1013
# _LT_SYS_MODULE_PATH_AIX
1014
# -----------------------
1076
# _LT_SYS_MODULE_PATH_AIX([TAGNAME])
1077
# ----------------------------------
1015
1078
# Links a minimal program and checks the executable
1016
1079
# for the system default hardcoded library path. In most cases,
1017
1080
# this is /usr/lib:/lib, but when the MPI compilers are used
1018
1081
# the location of the communication and MPI libs are included too.
1019
1082
# If we don't find anything, use the default library path according
1020
1083
# to the aix ld manual.
1084
# Store the results from the different compilers for each TAGNAME.
1085
# Allow to override them for all tags through lt_cv_aix_libpath.
1021
1086
m4_defun([_LT_SYS_MODULE_PATH_AIX],
1022
1087
[m4_require([_LT_DECL_SED])dnl
1023
AC_LINK_IFELSE(AC_LANG_PROGRAM,[
1024
lt_aix_libpath_sed='
1025
/Import File Strings/,/^$/ {
1031
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1032
# Check for a 64-bit object if we didn't find anything.
1033
if test -z "$aix_libpath"; then
1034
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1036
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
1088
if test "${lt_cv_aix_libpath+set}" = set; then
1089
aix_libpath=$lt_cv_aix_libpath
1091
AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
1092
[AC_LINK_IFELSE([AC_LANG_PROGRAM],[
1093
lt_aix_libpath_sed='[
1094
/Import File Strings/,/^$/ {
1096
s/^0 *\([^ ]*\) *$/\1/
1100
_LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1101
# Check for a 64-bit object if we didn't find anything.
1102
if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
1103
_LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1105
if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
1106
_LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib"
1109
aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
1037
1111
])# _LT_SYS_MODULE_PATH_AIX
1040
1114
# _LT_SHELL_INIT(ARG)
1041
1115
# -------------------
1042
1116
m4_define([_LT_SHELL_INIT],
1043
[ifdef([AC_DIVERSION_NOTICE],
1044
[AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
1045
[AC_DIVERT_PUSH(NOTICE)])
1117
[m4_divert_text([M4SH-INIT], [$1
1118
])])# _LT_SHELL_INIT
1051
1122
# _LT_PROG_ECHO_BACKSLASH
1052
1123
# -----------------------
1053
# Add some code to the start of the generated configure script which
1054
# will find an echo command which doesn't interpret backslashes.
1124
# Find how we can fake an echo command that does not interpret backslash.
1125
# In particular, with Autoconf 2.60 or later we add some code to the start
1126
# of the generated configure script which will find a shell with a builtin
1127
# printf (which we can use as an echo command).
1055
1128
m4_defun([_LT_PROG_ECHO_BACKSLASH],
1057
# Check that we are running under the correct shell.
1058
SHELL=${CONFIG_SHELL-/bin/sh}
1062
# Remove one level of quotation (which was required for Make).
1063
ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
1129
[ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
1130
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
1131
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
1133
AC_MSG_CHECKING([how to print strings])
1134
# Test print first, because it will be a builtin if present.
1135
if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
1136
test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
1138
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
1141
# Use this function as a fallback that always works.
1142
func_fallback_echo ()
1144
eval 'cat <<_LTECHO_EOF
1148
ECHO='func_fallback_echo'
1151
# func_echo_all arg...
1152
# Invoke $ECHO with all args, space-separated.
1159
printf*) AC_MSG_RESULT([printf]) ;;
1160
print*) AC_MSG_RESULT([print -r]) ;;
1161
*) AC_MSG_RESULT([cat]) ;;
1067
ECHO=${lt_ECHO-echo}
1068
if test "X[$]1" = X--no-reexec; then
1069
# Discard the --no-reexec flag, and continue.
1071
elif test "X[$]1" = X--fallback-echo; then
1072
# Avoid inline document here, it may be left over
1074
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
1075
# Yippee, $ECHO works!
1078
# Restart under the correct shell.
1079
exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
1082
if test "X[$]1" = X--fallback-echo; then
1083
# used as fallback echo
1091
# The HP-UX ksh and POSIX shell print the target directory to stdout
1093
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1095
if test -z "$lt_ECHO"; then
1096
if test "X${echo_test_string+set}" != Xset; then
1097
# find a string as large as possible, as long as the shell can cope with it
1098
for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
1099
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
1100
if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
1101
{ test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
1108
if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
1109
echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
1110
test "X$echo_testing_string" = "X$echo_test_string"; then
1113
# The Solaris, AIX, and Digital Unix default echo programs unquote
1114
# backslashes. This makes it impossible to quote backslashes using
1115
# echo "$something" | sed 's/\\/\\\\/g'
1117
# So, first we look for a working echo in the user's PATH.
1119
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1120
for dir in $PATH /usr/ucb; do
1122
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
1123
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
1124
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
1125
test "X$echo_testing_string" = "X$echo_test_string"; then
1132
if test "X$ECHO" = Xecho; then
1133
# We didn't find a better echo, so look for alternatives.
1134
if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
1135
echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
1136
test "X$echo_testing_string" = "X$echo_test_string"; then
1137
# This shell has a builtin print -r that does the trick.
1139
elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
1140
test "X$CONFIG_SHELL" != X/bin/ksh; then
1141
# If we have ksh, try running configure again with it.
1142
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
1143
export ORIGINAL_CONFIG_SHELL
1144
CONFIG_SHELL=/bin/ksh
1146
exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
1150
if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
1151
echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
1152
test "X$echo_testing_string" = "X$echo_test_string"; then
1153
# Cool, printf works
1155
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1156
test "X$echo_testing_string" = 'X\t' &&
1157
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1158
test "X$echo_testing_string" = "X$echo_test_string"; then
1159
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
1161
SHELL="$CONFIG_SHELL"
1163
ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
1164
elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1165
test "X$echo_testing_string" = 'X\t' &&
1166
echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1167
test "X$echo_testing_string" = "X$echo_test_string"; then
1168
ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
1170
# maybe with a smaller string...
1173
for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
1174
if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
1181
if test "$prev" != 'sed 50q "[$]0"'; then
1182
echo_test_string=`eval $prev`
1183
export echo_test_string
1184
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
1186
# Oops. We lost completely, so just stick with echo.
1195
# Copy echo and quote the copy suitably for passing to libtool from
1196
# the Makefile, instead of quoting the original, which is used later.
1198
if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
1199
lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
1164
m4_ifdef([_AS_DETECT_SUGGESTED],
1165
[_AS_DETECT_SUGGESTED([
1166
test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
1167
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
1168
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
1169
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
1170
PATH=/empty FPATH=/empty; export PATH FPATH
1171
test "X`printf %s $ECHO`" = "X$ECHO" \
1172
|| test "X`print -r -- $ECHO`" = "X$ECHO" )])])
1204
1174
_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
1205
_LT_DECL([], [ECHO], [1],
1206
[An echo program that does not interpret backslashes])
1175
_LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
1207
1176
])# _LT_PROG_ECHO_BACKSLASH
1181
AC_DEFUN([_LT_WITH_SYSROOT],
1182
[AC_MSG_CHECKING([for sysroot])
1183
AC_ARG_WITH([sysroot],
1184
[ --with-sysroot[=DIR] Search for dependent libraries within DIR
1185
(or the compiler's sysroot if not specified).],
1186
[], [with_sysroot=no])
1188
dnl lt_sysroot will always be passed unquoted. We quote it here
1189
dnl in case the user passed a directory name.
1191
case ${with_sysroot} in #(
1193
if test "$GCC" = yes; then
1194
lt_sysroot=`$CC --print-sysroot 2>/dev/null`
1198
lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
1203
AC_MSG_RESULT([${with_sysroot}])
1204
AC_MSG_ERROR([The sysroot must be an absolute path.])
1208
AC_MSG_RESULT([${lt_sysroot:-no}])
1209
_LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
1210
[dependent libraries, and in which our libraries should be installed.])])
1210
1212
# _LT_ENABLE_LOCK
1211
1213
# ---------------
1212
1214
m4_defun([_LT_ENABLE_LOCK],
2228
2302
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
2229
2303
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2230
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
2305
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
2232
2307
mingw* | cegcc*)
2233
2308
# MinGW DLLs use traditional 'lib' prefix
2234
2309
soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2235
sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2236
if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
2237
# It is most probably a Windows format PATH printed by
2238
# mingw gcc, but we are running on Cygwin. Gcc prints its search
2239
# path with ; separators, and with drive letters. We can handle the
2240
# drive letters (cygwin fileutils understands them), so leave them,
2241
# especially as we might pass files found there to a mingw objdump,
2242
# which wouldn't understand a cygwinified path. Ahh.
2243
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2245
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2249
2312
# pw32 DLLs use 'pw' prefix rather than 'lib'
2250
2313
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2316
dynamic_linker='Win32 ld.exe'
2321
libname_spec='$name'
2322
soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2323
library_names_spec='${libname}.dll.lib'
2327
sys_lib_search_path_spec=
2333
# Let DOS variable expansion print the short 8.3 style file name.
2334
lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
2335
sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
2338
# Convert to MSYS style.
2339
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
2342
# Convert to unix form, then to dos form, then back to unix form
2343
# but this time dos style (no spaces!) so that the unix form looks
2344
# like /cygdrive/c/PROGRA~1:/cygdr...
2345
sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
2346
sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
2347
sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2350
sys_lib_search_path_spec="$LIB"
2351
if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
2352
# It is most probably a Windows format PATH.
2353
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2355
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2357
# FIXME: find the short name or the path components, as spaces are
2358
# common. (e.g. "Program Files" -> "PROGRA~1")
2362
# DLL is installed to $(libdir)/../bin by postinstall_cmds
2363
postinstall_cmds='base_file=`basename \${file}`~
2364
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
2365
dldir=$destdir/`dirname \$dlpath`~
2366
test -d \$dldir || mkdir -p \$dldir~
2367
$install_prog $dir/$dlname \$dldir/$dlname'
2368
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2369
dlpath=$dir/\$dldll~
2371
shlibpath_overrides_runpath=yes
2372
dynamic_linker='Win32 link.exe'
2376
# Assume MSVC wrapper
2256
2377
library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
2378
dynamic_linker='Win32 ld.exe'
2259
dynamic_linker='Win32 ld.exe'
2260
2381
# FIXME: first we should search . and the directory the executable is in
2261
2382
shlibpath_var=PATH
3247
3433
dnl AC_DEFUN([AM_PROG_NM], [])
3248
3434
dnl AC_DEFUN([AC_PROG_NM], [])
3436
# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
3437
# --------------------------------
3438
# how to determine the name of the shared library
3439
# associated with a specific link library.
3440
# -- PORTME fill in with the dynamic library characteristics
3441
m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB],
3442
[m4_require([_LT_DECL_EGREP])
3443
m4_require([_LT_DECL_OBJDUMP])
3444
m4_require([_LT_DECL_DLLTOOL])
3445
AC_CACHE_CHECK([how to associate runtime and link libraries],
3446
lt_cv_sharedlib_from_linklib_cmd,
3447
[lt_cv_sharedlib_from_linklib_cmd='unknown'
3450
cygwin* | mingw* | pw32* | cegcc*)
3451
# two different shell functions defined in ltmain.sh
3452
# decide which to use based on capabilities of $DLLTOOL
3453
case `$DLLTOOL --help 2>&1` in
3454
*--identify-strict*)
3455
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
3458
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
3463
# fallback: assume linklib IS sharedlib
3464
lt_cv_sharedlib_from_linklib_cmd="$ECHO"
3468
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
3469
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
3471
_LT_DECL([], [sharedlib_from_linklib_cmd], [1],
3472
[Command to associate shared and link libraries])
3473
])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
3476
# _LT_PATH_MANIFEST_TOOL
3477
# ----------------------
3478
# locate the manifest tool
3479
m4_defun([_LT_PATH_MANIFEST_TOOL],
3480
[AC_CHECK_TOOL(MANIFEST_TOOL, mt, :)
3481
test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
3482
AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool],
3483
[lt_cv_path_mainfest_tool=no
3484
echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
3485
$MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
3486
cat conftest.err >&AS_MESSAGE_LOG_FD
3487
if $GREP 'Manifest Tool' conftest.out > /dev/null; then
3488
lt_cv_path_mainfest_tool=yes
3491
if test "x$lt_cv_path_mainfest_tool" != xyes; then
3494
_LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
3495
])# _LT_PATH_MANIFEST_TOOL
4677
5041
# Microsoft Visual C++.
4678
5042
# hardcode_libdir_flag_spec is actually meaningless, as there is
4679
5043
# no search path for DLLs.
4680
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
4681
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4682
# Tell ltmain to make .lib files, not .a files.
4684
# Tell ltmain to make .dll files, not .so files.
4686
# FIXME: Setting linknames here is a bad hack.
4687
_LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
4688
# The linker will automatically build a .lib file if we build a DLL.
4689
_LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
4690
# FIXME: Should let the user specify the lib program.
4691
_LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
4692
_LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
4693
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5044
case $cc_basename in
5047
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
5048
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5049
_LT_TAGVAR(always_export_symbols, $1)=yes
5050
_LT_TAGVAR(file_list_spec, $1)='@'
5051
# Tell ltmain to make .lib files, not .a files.
5053
# Tell ltmain to make .dll files, not .so files.
5055
# FIXME: Setting linknames here is a bad hack.
5056
_LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
5057
_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5058
sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
5060
sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
5062
$CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
5064
# The linker will not automatically build a static lib if we build a DLL.
5065
# _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
5066
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5067
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1,DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
5069
_LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
5070
_LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
5071
lt_tool_outputfile="@TOOL_OUTPUT@"~
5072
case $lt_outputfile in
5075
lt_outputfile="$lt_outputfile.exe"
5076
lt_tool_outputfile="$lt_tool_outputfile.exe"
5079
if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
5080
$MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
5081
$RM "$lt_outputfile.manifest";
5085
# Assume MSVC wrapper
5086
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
5087
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5088
# Tell ltmain to make .lib files, not .a files.
5090
# Tell ltmain to make .dll files, not .so files.
5092
# FIXME: Setting linknames here is a bad hack.
5093
_LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
5094
# The linker will automatically build a .lib file if we build a DLL.
5095
_LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
5096
# FIXME: Should let the user specify the lib program.
5097
_LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
5098
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
4696
5103
darwin* | rhapsody*)
4820
5234
irix5* | irix6* | nonstopux*)
4821
5235
if test "$GCC" = yes; then
4822
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5236
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4823
5237
# Try to use the -exported_symbol ld option, if it does not
4824
5238
# work, assume that -exports_file does not work either and
4825
5239
# implicitly export all symbols.
4826
save_LDFLAGS="$LDFLAGS"
4827
LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
4828
AC_LINK_IFELSE(int foo(void) {},
4829
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
4831
LDFLAGS="$save_LDFLAGS"
5240
# This should be the same for all languages, so no per-tag cache variable.
5241
AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
5242
[lt_cv_irix_exported_symbol],
5243
[save_LDFLAGS="$LDFLAGS"
5244
LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
5247
[AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
5248
[C++], [[int foo (void) { return 0; }]],
5255
[lt_cv_irix_exported_symbol=yes],
5256
[lt_cv_irix_exported_symbol=no])
5257
LDFLAGS="$save_LDFLAGS"])
5258
if test "$lt_cv_irix_exported_symbol" = yes; then
5259
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
4833
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
4834
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
5262
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
5263
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
4836
5265
_LT_TAGVAR(archive_cmds_need_lc, $1)='no'
4837
5266
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5110
5539
# Test whether the compiler implicitly links with -lc since on some
5111
5540
# systems, -lgcc has to come before -lc. If gcc already passes -lc
5112
5541
# to ld, don't add -lc before -lgcc.
5113
AC_MSG_CHECKING([whether -lc should be explicitly linked in])
5115
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5542
AC_CACHE_CHECK([whether -lc should be explicitly linked in],
5543
[lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1),
5545
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5117
if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
5120
libobjs=conftest.$ac_objext
5122
wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
5123
pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
5129
lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
5130
_LT_TAGVAR(allow_undefined_flag, $1)=
5131
if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
5133
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
5135
_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5137
_LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
5139
cat conftest.err 1>&5
5142
AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
5547
if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
5550
libobjs=conftest.$ac_objext
5552
wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
5553
pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
5559
lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
5560
_LT_TAGVAR(allow_undefined_flag, $1)=
5561
if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
5563
lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no
5565
lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5567
_LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
5569
cat conftest.err 1>&5
5573
_LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)
5623
6048
cygwin* | mingw* | pw32* | cegcc*)
5624
# _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
5625
# as there is no search path for DLLs.
5626
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5627
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5628
_LT_TAGVAR(always_export_symbols, $1)=no
5629
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6049
case $GXX,$cc_basename in
6052
# hardcode_libdir_flag_spec is actually meaningless, as there is
6053
# no search path for DLLs.
6054
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
6055
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6056
_LT_TAGVAR(always_export_symbols, $1)=yes
6057
_LT_TAGVAR(file_list_spec, $1)='@'
6058
# Tell ltmain to make .lib files, not .a files.
6060
# Tell ltmain to make .dll files, not .so files.
6062
# FIXME: Setting linknames here is a bad hack.
6063
_LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
6064
_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6065
$SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
6067
$SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
6069
$CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
6071
# The linker will not automatically build a static lib if we build a DLL.
6072
# _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
6073
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6075
_LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
6076
_LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
6077
lt_tool_outputfile="@TOOL_OUTPUT@"~
6078
case $lt_outputfile in
6081
lt_outputfile="$lt_outputfile.exe"
6082
lt_tool_outputfile="$lt_tool_outputfile.exe"
6085
func_to_tool_file "$lt_outputfile"~
6086
if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
6087
$MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
6088
$RM "$lt_outputfile.manifest";
6093
# _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
6094
# as there is no search path for DLLs.
6095
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6096
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
6097
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6098
_LT_TAGVAR(always_export_symbols, $1)=no
6099
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5631
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
5632
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5633
# If the export-symbols file already is a .def file (1st line
5634
# is EXPORTS), use it as is; otherwise, prepend...
5635
_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5636
cp $export_symbols $output_objdir/$soname.def;
5638
echo EXPORTS > $output_objdir/$soname.def;
5639
cat $export_symbols >> $output_objdir/$soname.def;
5641
$CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5643
_LT_TAGVAR(ld_shlibs, $1)=no
6101
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6102
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6103
# If the export-symbols file already is a .def file (1st line
6104
# is EXPORTS), use it as is; otherwise, prepend...
6105
_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6106
cp $export_symbols $output_objdir/$soname.def;
6108
echo EXPORTS > $output_objdir/$soname.def;
6109
cat $export_symbols >> $output_objdir/$soname.def;
6111
$CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6113
_LT_TAGVAR(ld_shlibs, $1)=no
5646
6118
darwin* | rhapsody*)
5647
6119
_LT_DARWIN_LINKER_FEATURES($1)
7149
7670
])# _LT_CHECK_SHELL_FEATURES
7152
# _LT_PROG_XSI_SHELLFNS
7153
# ---------------------
7154
# Bourne and XSI compatible variants of some useful shell functions.
7155
m4_defun([_LT_PROG_XSI_SHELLFNS],
7158
cat << \_LT_EOF >> "$cfgfile"
7160
# func_dirname file append nondir_replacement
7161
# Compute the dirname of FILE. If nonempty, add APPEND to the result,
7162
# otherwise set result to NONDIR_REPLACEMENT.
7166
*/*) func_dirname_result="${1%/*}${2}" ;;
7167
* ) func_dirname_result="${3}" ;;
7171
# func_basename file
7174
func_basename_result="${1##*/}"
7177
# func_dirname_and_basename file append nondir_replacement
7178
# perform func_basename and func_dirname in a single function
7180
# dirname: Compute the dirname of FILE. If nonempty,
7181
# add APPEND to the result, otherwise set result
7182
# to NONDIR_REPLACEMENT.
7183
# value returned in "$func_dirname_result"
7184
# basename: Compute filename of FILE.
7185
# value retuned in "$func_basename_result"
7186
# Implementation must be kept synchronized with func_dirname
7187
# and func_basename. For efficiency, we do not delegate to
7188
# those functions but instead duplicate the functionality here.
7189
func_dirname_and_basename ()
7192
*/*) func_dirname_result="${1%/*}${2}" ;;
7193
* ) func_dirname_result="${3}" ;;
7195
func_basename_result="${1##*/}"
7198
# func_stripname prefix suffix name
7199
# strip PREFIX and SUFFIX off of NAME.
7200
# PREFIX and SUFFIX must not contain globbing or regex special
7201
# characters, hashes, percent signs, but SUFFIX may contain a leading
7202
# dot (in which case that matches only a dot).
7205
# pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
7206
# positional parameters, so assign one to ordinary parameter first.
7207
func_stripname_result=${3}
7208
func_stripname_result=${func_stripname_result#"${1}"}
7209
func_stripname_result=${func_stripname_result%"${2}"}
7215
func_opt_split_opt=${1%%=*}
7216
func_opt_split_arg=${1#*=}
7223
*.lo) func_lo2o_result=${1%.lo}.${objext} ;;
7224
*) func_lo2o_result=${1} ;;
7228
# func_xform libobj-or-source
7231
func_xform_result=${1%.*}.lo
7234
# func_arith arithmetic-term...
7237
func_arith_result=$(( $[*] ))
7241
# STRING may not start with a hyphen.
7244
func_len_result=${#1}
7249
*) # Bourne compatible functions.
7250
cat << \_LT_EOF >> "$cfgfile"
7252
# func_dirname file append nondir_replacement
7253
# Compute the dirname of FILE. If nonempty, add APPEND to the result,
7254
# otherwise set result to NONDIR_REPLACEMENT.
7257
# Extract subdirectory from the argument.
7258
func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
7259
if test "X$func_dirname_result" = "X${1}"; then
7260
func_dirname_result="${3}"
7262
func_dirname_result="$func_dirname_result${2}"
7266
# func_basename file
7269
func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
7272
dnl func_dirname_and_basename
7273
dnl A portable version of this function is already defined in general.m4sh
7274
dnl so there is no need for it here.
7276
# func_stripname prefix suffix name
7277
# strip PREFIX and SUFFIX off of NAME.
7278
# PREFIX and SUFFIX must not contain globbing or regex special
7279
# characters, hashes, percent signs, but SUFFIX may contain a leading
7280
# dot (in which case that matches only a dot).
7281
# func_strip_suffix prefix name
7285
.*) func_stripname_result=`$ECHO "X${3}" \
7286
| $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
7287
*) func_stripname_result=`$ECHO "X${3}" \
7288
| $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
7293
my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
7294
my_sed_long_arg='1s/^-[[^=]]*=//'
7299
func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
7300
func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
7306
func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
7309
# func_xform libobj-or-source
7312
func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
7315
# func_arith arithmetic-term...
7318
func_arith_result=`expr "$[@]"`
7322
# STRING may not start with a hyphen.
7325
func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
7331
case $lt_shell_append in
7333
cat << \_LT_EOF >> "$cfgfile"
7335
# func_append var value
7336
# Append VALUE to the end of shell variable VAR.
7344
cat << \_LT_EOF >> "$cfgfile"
7346
# func_append var value
7347
# Append VALUE to the end of shell variable VAR.
7350
eval "$[1]=\$$[1]\$[2]"
7673
# _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY)
7674
# ------------------------------------------------------
7675
# In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and
7676
# '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY.
7677
m4_defun([_LT_PROG_FUNCTION_REPLACE],
7679
sed -e '/^$1 ()$/,/^} # $1 /c\
7682
m4_bpatsubsts([$2], [$], [\\], [^\([ ]\)], [\\\1])
7683
} # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \
7684
&& mv -f "$cfgfile.tmp" "$cfgfile" \
7685
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7686
test 0 -eq $? || _lt_function_replace_fail=:
7690
# _LT_PROG_REPLACE_SHELLFNS
7691
# -------------------------
7692
# Replace existing portable implementations of several shell functions with
7693
# equivalent extended shell implementations where those features are available..
7694
m4_defun([_LT_PROG_REPLACE_SHELLFNS],
7695
[if test x"$xsi_shell" = xyes; then
7696
_LT_PROG_FUNCTION_REPLACE([func_dirname], [dnl
7698
*/*) func_dirname_result="${1%/*}${2}" ;;
7699
* ) func_dirname_result="${3}" ;;
7702
_LT_PROG_FUNCTION_REPLACE([func_basename], [dnl
7703
func_basename_result="${1##*/}"])
7705
_LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl
7707
*/*) func_dirname_result="${1%/*}${2}" ;;
7708
* ) func_dirname_result="${3}" ;;
7710
func_basename_result="${1##*/}"])
7712
_LT_PROG_FUNCTION_REPLACE([func_stripname], [dnl
7713
# pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
7714
# positional parameters, so assign one to ordinary parameter first.
7715
func_stripname_result=${3}
7716
func_stripname_result=${func_stripname_result#"${1}"}
7717
func_stripname_result=${func_stripname_result%"${2}"}])
7719
_LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl
7720
func_split_long_opt_name=${1%%=*}
7721
func_split_long_opt_arg=${1#*=}])
7723
_LT_PROG_FUNCTION_REPLACE([func_split_short_opt], [dnl
7724
func_split_short_opt_arg=${1#??}
7725
func_split_short_opt_name=${1%"$func_split_short_opt_arg"}])
7727
_LT_PROG_FUNCTION_REPLACE([func_lo2o], [dnl
7729
*.lo) func_lo2o_result=${1%.lo}.${objext} ;;
7730
*) func_lo2o_result=${1} ;;
7733
_LT_PROG_FUNCTION_REPLACE([func_xform], [ func_xform_result=${1%.*}.lo])
7735
_LT_PROG_FUNCTION_REPLACE([func_arith], [ func_arith_result=$(( $[*] ))])
7737
_LT_PROG_FUNCTION_REPLACE([func_len], [ func_len_result=${#1}])
7740
if test x"$lt_shell_append" = xyes; then
7741
_LT_PROG_FUNCTION_REPLACE([func_append], [ eval "${1}+=\\${2}"])
7743
_LT_PROG_FUNCTION_REPLACE([func_append_quoted], [dnl
7744
func_quote_for_eval "${2}"
7745
dnl m4 expansion turns \\\\ into \\, and then the shell eval turns that into \
7746
eval "${1}+=\\\\ \\$func_quote_for_eval_result"])
7748
# Save a `func_append' function call where possible by direct use of '+='
7749
sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
7750
&& mv -f "$cfgfile.tmp" "$cfgfile" \
7751
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7752
test 0 -eq $? || _lt_function_replace_fail=:
7754
# Save a `func_append' function call even when '+=' is not available
7755
sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
7756
&& mv -f "$cfgfile.tmp" "$cfgfile" \
7757
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7758
test 0 -eq $? || _lt_function_replace_fail=:
7761
if test x"$_lt_function_replace_fail" = x":"; then
7762
AC_MSG_WARN([Unable to substitute extended shell functions in $ofile])
7766
# _LT_PATH_CONVERSION_FUNCTIONS
7767
# -----------------------------
7768
# Determine which file name conversion functions should be used by
7769
# func_to_host_file (and, implicitly, by func_to_host_path). These are needed
7770
# for certain cross-compile configurations and native mingw.
7771
m4_defun([_LT_PATH_CONVERSION_FUNCTIONS],
7772
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
7773
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
7774
AC_MSG_CHECKING([how to convert $build file names to $host format])
7775
AC_CACHE_VAL(lt_cv_to_host_file_cmd,
7779
*-*-mingw* ) # actually msys
7780
lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7783
lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7785
* ) # otherwise, assume *nix
7786
lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7792
*-*-mingw* ) # actually msys
7793
lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7796
lt_cv_to_host_file_cmd=func_convert_file_noop
7798
* ) # otherwise, assume *nix
7799
lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7803
* ) # unhandled hosts (and "normal" native builds)
7804
lt_cv_to_host_file_cmd=func_convert_file_noop
7808
to_host_file_cmd=$lt_cv_to_host_file_cmd
7809
AC_MSG_RESULT([$lt_cv_to_host_file_cmd])
7810
_LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd],
7811
[0], [convert $build file names to $host format])dnl
7813
AC_MSG_CHECKING([how to convert $build file names to toolchain format])
7814
AC_CACHE_VAL(lt_cv_to_tool_file_cmd,
7815
[#assume ordinary cross tools, or native build.
7816
lt_cv_to_tool_file_cmd=func_convert_file_noop
7820
*-*-mingw* ) # actually msys
7821
lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7827
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7828
AC_MSG_RESULT([$lt_cv_to_tool_file_cmd])
7829
_LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd],
7830
[0], [convert $build files to toolchain format])dnl
7831
])# _LT_PATH_CONVERSION_FUNCTIONS