1029
# _LT_SYS_MODULE_PATH_AIX
1030
# -----------------------
1091
# _LT_SYS_MODULE_PATH_AIX([TAGNAME])
1092
# ----------------------------------
1031
1093
# Links a minimal program and checks the executable
1032
1094
# for the system default hardcoded library path. In most cases,
1033
1095
# this is /usr/lib:/lib, but when the MPI compilers are used
1034
1096
# the location of the communication and MPI libs are included too.
1035
1097
# If we don't find anything, use the default library path according
1036
1098
# to the aix ld manual.
1099
# Store the results from the different compilers for each TAGNAME.
1100
# Allow to override them for all tags through lt_cv_aix_libpath.
1037
1101
m4_defun([_LT_SYS_MODULE_PATH_AIX],
1038
1102
[m4_require([_LT_DECL_SED])dnl
1039
AC_LINK_IFELSE(AC_LANG_PROGRAM,[
1040
lt_aix_libpath_sed='
1041
/Import File Strings/,/^$/ {
1047
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1048
# Check for a 64-bit object if we didn't find anything.
1049
if test -z "$aix_libpath"; then
1050
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1052
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
1103
if test "${lt_cv_aix_libpath+set}" = set; then
1104
aix_libpath=$lt_cv_aix_libpath
1106
AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
1107
[AC_LINK_IFELSE([AC_LANG_PROGRAM],[
1108
lt_aix_libpath_sed='[
1109
/Import File Strings/,/^$/ {
1111
s/^0 *\([^ ]*\) *$/\1/
1115
_LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1116
# Check for a 64-bit object if we didn't find anything.
1117
if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
1118
_LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1120
if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
1121
_LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib"
1124
aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
1053
1126
])# _LT_SYS_MODULE_PATH_AIX
1056
1129
# _LT_SHELL_INIT(ARG)
1057
1130
# -------------------
1058
1131
m4_define([_LT_SHELL_INIT],
1059
[ifdef([AC_DIVERSION_NOTICE],
1060
[AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
1061
[AC_DIVERT_PUSH(NOTICE)])
1132
[m4_divert_text([M4SH-INIT], [$1
1133
])])# _LT_SHELL_INIT
1067
1137
# _LT_PROG_ECHO_BACKSLASH
1068
1138
# -----------------------
1069
# Add some code to the start of the generated configure script which
1070
# will find an echo command which doesn't interpret backslashes.
1139
# Find how we can fake an echo command that does not interpret backslash.
1140
# In particular, with Autoconf 2.60 or later we add some code to the start
1141
# of the generated configure script which will find a shell with a builtin
1142
# printf (which we can use as an echo command).
1071
1143
m4_defun([_LT_PROG_ECHO_BACKSLASH],
1073
# Check that we are running under the correct shell.
1074
SHELL=${CONFIG_SHELL-/bin/sh}
1078
# Remove one level of quotation (which was required for Make).
1079
ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
1144
[ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
1145
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
1146
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
1148
AC_MSG_CHECKING([how to print strings])
1149
# Test print first, because it will be a builtin if present.
1150
if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
1151
test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
1153
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
1156
# Use this function as a fallback that always works.
1157
func_fallback_echo ()
1159
eval 'cat <<_LTECHO_EOF
1163
ECHO='func_fallback_echo'
1166
# func_echo_all arg...
1167
# Invoke $ECHO with all args, space-separated.
1174
printf*) AC_MSG_RESULT([printf]) ;;
1175
print*) AC_MSG_RESULT([print -r]) ;;
1176
*) AC_MSG_RESULT([cat]) ;;
1083
ECHO=${lt_ECHO-echo}
1084
if test "X[$]1" = X--no-reexec; then
1085
# Discard the --no-reexec flag, and continue.
1087
elif test "X[$]1" = X--fallback-echo; then
1088
# Avoid inline document here, it may be left over
1090
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
1091
# Yippee, $ECHO works!
1094
# Restart under the correct shell.
1095
exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
1098
if test "X[$]1" = X--fallback-echo; then
1099
# used as fallback echo
1107
# The HP-UX ksh and POSIX shell print the target directory to stdout
1109
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1111
if test -z "$lt_ECHO"; then
1112
if test "X${echo_test_string+set}" != Xset; then
1113
# find a string as large as possible, as long as the shell can cope with it
1114
for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
1115
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
1116
if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
1117
{ test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
1124
if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
1125
echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
1126
test "X$echo_testing_string" = "X$echo_test_string"; then
1129
# The Solaris, AIX, and Digital Unix default echo programs unquote
1130
# backslashes. This makes it impossible to quote backslashes using
1131
# echo "$something" | sed 's/\\/\\\\/g'
1133
# So, first we look for a working echo in the user's PATH.
1135
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1136
for dir in $PATH /usr/ucb; do
1138
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
1139
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
1140
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
1141
test "X$echo_testing_string" = "X$echo_test_string"; then
1148
if test "X$ECHO" = Xecho; then
1149
# We didn't find a better echo, so look for alternatives.
1150
if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
1151
echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
1152
test "X$echo_testing_string" = "X$echo_test_string"; then
1153
# This shell has a builtin print -r that does the trick.
1155
elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
1156
test "X$CONFIG_SHELL" != X/bin/ksh; then
1157
# If we have ksh, try running configure again with it.
1158
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
1159
export ORIGINAL_CONFIG_SHELL
1160
CONFIG_SHELL=/bin/ksh
1162
exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
1166
if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
1167
echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
1168
test "X$echo_testing_string" = "X$echo_test_string"; then
1169
# Cool, printf works
1171
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1172
test "X$echo_testing_string" = 'X\t' &&
1173
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1174
test "X$echo_testing_string" = "X$echo_test_string"; then
1175
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
1177
SHELL="$CONFIG_SHELL"
1179
ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
1180
elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1181
test "X$echo_testing_string" = 'X\t' &&
1182
echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1183
test "X$echo_testing_string" = "X$echo_test_string"; then
1184
ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
1186
# maybe with a smaller string...
1189
for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
1190
if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
1197
if test "$prev" != 'sed 50q "[$]0"'; then
1198
echo_test_string=`eval $prev`
1199
export echo_test_string
1200
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
1202
# Oops. We lost completely, so just stick with echo.
1211
# Copy echo and quote the copy suitably for passing to libtool from
1212
# the Makefile, instead of quoting the original, which is used later.
1214
if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
1215
lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
1179
m4_ifdef([_AS_DETECT_SUGGESTED],
1180
[_AS_DETECT_SUGGESTED([
1181
test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
1182
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
1183
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
1184
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
1185
PATH=/empty FPATH=/empty; export PATH FPATH
1186
test "X`printf %s $ECHO`" = "X$ECHO" \
1187
|| test "X`print -r -- $ECHO`" = "X$ECHO" )])])
1220
1189
_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
1221
_LT_DECL([], [ECHO], [1],
1222
[An echo program that does not interpret backslashes])
1190
_LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
1223
1191
])# _LT_PROG_ECHO_BACKSLASH
1196
AC_DEFUN([_LT_WITH_SYSROOT],
1197
[AC_MSG_CHECKING([for sysroot])
1198
AC_ARG_WITH([sysroot],
1199
[ --with-sysroot[=DIR] Search for dependent libraries within DIR
1200
(or the compiler's sysroot if not specified).],
1201
[], [with_sysroot=no])
1203
dnl lt_sysroot will always be passed unquoted. We quote it here
1204
dnl in case the user passed a directory name.
1206
case ${with_sysroot} in #(
1208
if test "$GCC" = yes; then
1209
lt_sysroot=`$CC --print-sysroot 2>/dev/null`
1213
lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
1218
AC_MSG_RESULT([${with_sysroot}])
1219
AC_MSG_ERROR([The sysroot must be an absolute path.])
1223
AC_MSG_RESULT([${lt_sysroot:-no}])
1224
_LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
1225
[dependent libraries, and in which our libraries should be installed.])])
1226
1227
# _LT_ENABLE_LOCK
1227
1228
# ---------------
1228
1229
m4_defun([_LT_ENABLE_LOCK],
2244
2317
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
2245
2318
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2246
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
2320
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
2248
2322
mingw* | cegcc*)
2249
2323
# MinGW DLLs use traditional 'lib' prefix
2250
2324
soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2251
sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2252
if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
2253
# It is most probably a Windows format PATH printed by
2254
# mingw gcc, but we are running on Cygwin. Gcc prints its search
2255
# path with ; separators, and with drive letters. We can handle the
2256
# drive letters (cygwin fileutils understands them), so leave them,
2257
# especially as we might pass files found there to a mingw objdump,
2258
# which wouldn't understand a cygwinified path. Ahh.
2259
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2261
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2265
2327
# pw32 DLLs use 'pw' prefix rather than 'lib'
2266
2328
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2331
dynamic_linker='Win32 ld.exe'
2336
libname_spec='$name'
2337
soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2338
library_names_spec='${libname}.dll.lib'
2342
sys_lib_search_path_spec=
2348
# Let DOS variable expansion print the short 8.3 style file name.
2349
lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
2350
sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
2353
# Convert to MSYS style.
2354
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
2357
# Convert to unix form, then to dos form, then back to unix form
2358
# but this time dos style (no spaces!) so that the unix form looks
2359
# like /cygdrive/c/PROGRA~1:/cygdr...
2360
sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
2361
sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
2362
sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2365
sys_lib_search_path_spec="$LIB"
2366
if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
2367
# It is most probably a Windows format PATH.
2368
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2370
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2372
# FIXME: find the short name or the path components, as spaces are
2373
# common. (e.g. "Program Files" -> "PROGRA~1")
2377
# DLL is installed to $(libdir)/../bin by postinstall_cmds
2378
postinstall_cmds='base_file=`basename \${file}`~
2379
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
2380
dldir=$destdir/`dirname \$dlpath`~
2381
test -d \$dldir || mkdir -p \$dldir~
2382
$install_prog $dir/$dlname \$dldir/$dlname'
2383
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2384
dlpath=$dir/\$dldll~
2386
shlibpath_overrides_runpath=yes
2387
dynamic_linker='Win32 link.exe'
2391
# Assume MSVC wrapper
2272
2392
library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
2393
dynamic_linker='Win32 ld.exe'
2275
dynamic_linker='Win32 ld.exe'
2276
2396
# FIXME: first we should search . and the directory the executable is in
2277
2397
shlibpath_var=PATH
3275
3461
dnl AC_DEFUN([AM_PROG_NM], [])
3276
3462
dnl AC_DEFUN([AC_PROG_NM], [])
3464
# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
3465
# --------------------------------
3466
# how to determine the name of the shared library
3467
# associated with a specific link library.
3468
# -- PORTME fill in with the dynamic library characteristics
3469
m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB],
3470
[m4_require([_LT_DECL_EGREP])
3471
m4_require([_LT_DECL_OBJDUMP])
3472
m4_require([_LT_DECL_DLLTOOL])
3473
AC_CACHE_CHECK([how to associate runtime and link libraries],
3474
lt_cv_sharedlib_from_linklib_cmd,
3475
[lt_cv_sharedlib_from_linklib_cmd='unknown'
3478
cygwin* | mingw* | pw32* | cegcc*)
3479
# two different shell functions defined in ltmain.sh
3480
# decide which to use based on capabilities of $DLLTOOL
3481
case `$DLLTOOL --help 2>&1` in
3482
*--identify-strict*)
3483
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
3486
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
3491
# fallback: assume linklib IS sharedlib
3492
lt_cv_sharedlib_from_linklib_cmd="$ECHO"
3496
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
3497
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
3499
_LT_DECL([], [sharedlib_from_linklib_cmd], [1],
3500
[Command to associate shared and link libraries])
3501
])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
3504
# _LT_PATH_MANIFEST_TOOL
3505
# ----------------------
3506
# locate the manifest tool
3507
m4_defun([_LT_PATH_MANIFEST_TOOL],
3508
[AC_CHECK_TOOL(MANIFEST_TOOL, mt, :)
3509
test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
3510
AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool],
3511
[lt_cv_path_mainfest_tool=no
3512
echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
3513
$MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
3514
cat conftest.err >&AS_MESSAGE_LOG_FD
3515
if $GREP 'Manifest Tool' conftest.out > /dev/null; then
3516
lt_cv_path_mainfest_tool=yes
3519
if test "x$lt_cv_path_mainfest_tool" != xyes; then
3522
_LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
3523
])# _LT_PATH_MANIFEST_TOOL
4713
5076
# Microsoft Visual C++.
4714
5077
# hardcode_libdir_flag_spec is actually meaningless, as there is
4715
5078
# no search path for DLLs.
4716
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
4717
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4718
# Tell ltmain to make .lib files, not .a files.
4720
# Tell ltmain to make .dll files, not .so files.
4722
# FIXME: Setting linknames here is a bad hack.
4723
_LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
4724
# The linker will automatically build a .lib file if we build a DLL.
4725
_LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
4726
# FIXME: Should let the user specify the lib program.
4727
_LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
4728
_LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
4729
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5079
case $cc_basename in
5082
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
5083
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5084
_LT_TAGVAR(always_export_symbols, $1)=yes
5085
_LT_TAGVAR(file_list_spec, $1)='@'
5086
# Tell ltmain to make .lib files, not .a files.
5088
# Tell ltmain to make .dll files, not .so files.
5090
# FIXME: Setting linknames here is a bad hack.
5091
_LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
5092
_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5093
sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
5095
sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
5097
$CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
5099
# The linker will not automatically build a static lib if we build a DLL.
5100
# _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
5101
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5102
_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'
5104
_LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
5105
_LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
5106
lt_tool_outputfile="@TOOL_OUTPUT@"~
5107
case $lt_outputfile in
5110
lt_outputfile="$lt_outputfile.exe"
5111
lt_tool_outputfile="$lt_tool_outputfile.exe"
5114
if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
5115
$MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
5116
$RM "$lt_outputfile.manifest";
5120
# Assume MSVC wrapper
5121
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
5122
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5123
# Tell ltmain to make .lib files, not .a files.
5125
# Tell ltmain to make .dll files, not .so files.
5127
# FIXME: Setting linknames here is a bad hack.
5128
_LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
5129
# The linker will automatically build a .lib file if we build a DLL.
5130
_LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
5131
# FIXME: Should let the user specify the lib program.
5132
_LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
5133
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
4732
5138
darwin* | rhapsody*)
4856
5269
irix5* | irix6* | nonstopux*)
4857
5270
if test "$GCC" = yes; then
4858
_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'
5271
_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'
4859
5272
# Try to use the -exported_symbol ld option, if it does not
4860
5273
# work, assume that -exports_file does not work either and
4861
5274
# implicitly export all symbols.
4862
save_LDFLAGS="$LDFLAGS"
4863
LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
4864
AC_LINK_IFELSE(int foo(void) {},
4865
_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'
4867
LDFLAGS="$save_LDFLAGS"
5275
# This should be the same for all languages, so no per-tag cache variable.
5276
AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
5277
[lt_cv_irix_exported_symbol],
5278
[save_LDFLAGS="$LDFLAGS"
5279
LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
5282
[AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
5283
[C++], [[int foo (void) { return 0; }]],
5290
[lt_cv_irix_exported_symbol=yes],
5291
[lt_cv_irix_exported_symbol=no])
5292
LDFLAGS="$save_LDFLAGS"])
5293
if test "$lt_cv_irix_exported_symbol" = yes; then
5294
_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'
4869
_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'
4870
_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'
5297
_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'
5298
_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'
4872
5300
_LT_TAGVAR(archive_cmds_need_lc, $1)='no'
4873
5301
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5146
5574
# Test whether the compiler implicitly links with -lc since on some
5147
5575
# systems, -lgcc has to come before -lc. If gcc already passes -lc
5148
5576
# to ld, don't add -lc before -lgcc.
5149
AC_MSG_CHECKING([whether -lc should be explicitly linked in])
5151
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5577
AC_CACHE_CHECK([whether -lc should be explicitly linked in],
5578
[lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1),
5580
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5153
if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
5156
libobjs=conftest.$ac_objext
5158
wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
5159
pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
5165
lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
5166
_LT_TAGVAR(allow_undefined_flag, $1)=
5167
if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
5169
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
5171
_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5173
_LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
5175
cat conftest.err 1>&5
5178
AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
5582
if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
5585
libobjs=conftest.$ac_objext
5587
wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
5588
pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
5594
lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
5595
_LT_TAGVAR(allow_undefined_flag, $1)=
5596
if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
5598
lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no
5600
lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5602
_LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
5604
cat conftest.err 1>&5
5608
_LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)
5655
6079
cygwin* | mingw* | pw32* | cegcc*)
5656
# _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
5657
# as there is no search path for DLLs.
5658
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5659
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5660
_LT_TAGVAR(always_export_symbols, $1)=no
5661
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6080
case $GXX,$cc_basename in
6083
# hardcode_libdir_flag_spec is actually meaningless, as there is
6084
# no search path for DLLs.
6085
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
6086
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6087
_LT_TAGVAR(always_export_symbols, $1)=yes
6088
_LT_TAGVAR(file_list_spec, $1)='@'
6089
# Tell ltmain to make .lib files, not .a files.
6091
# Tell ltmain to make .dll files, not .so files.
6093
# FIXME: Setting linknames here is a bad hack.
6094
_LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
6095
_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6096
$SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
6098
$SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
6100
$CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
6102
# The linker will not automatically build a static lib if we build a DLL.
6103
# _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
6104
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6106
_LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
6107
_LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
6108
lt_tool_outputfile="@TOOL_OUTPUT@"~
6109
case $lt_outputfile in
6112
lt_outputfile="$lt_outputfile.exe"
6113
lt_tool_outputfile="$lt_tool_outputfile.exe"
6116
func_to_tool_file "$lt_outputfile"~
6117
if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
6118
$MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
6119
$RM "$lt_outputfile.manifest";
6124
# _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
6125
# as there is no search path for DLLs.
6126
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6127
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
6128
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6129
_LT_TAGVAR(always_export_symbols, $1)=no
6130
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5663
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
5664
_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'
5665
# If the export-symbols file already is a .def file (1st line
5666
# is EXPORTS), use it as is; otherwise, prepend...
5667
_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5668
cp $export_symbols $output_objdir/$soname.def;
5670
echo EXPORTS > $output_objdir/$soname.def;
5671
cat $export_symbols >> $output_objdir/$soname.def;
5673
$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'
5675
_LT_TAGVAR(ld_shlibs, $1)=no
6132
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6133
_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'
6134
# If the export-symbols file already is a .def file (1st line
6135
# is EXPORTS), use it as is; otherwise, prepend...
6136
_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6137
cp $export_symbols $output_objdir/$soname.def;
6139
echo EXPORTS > $output_objdir/$soname.def;
6140
cat $export_symbols >> $output_objdir/$soname.def;
6142
$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'
6144
_LT_TAGVAR(ld_shlibs, $1)=no
5678
6149
darwin* | rhapsody*)
5679
6150
_LT_DARWIN_LINKER_FEATURES($1)
7175
7695
])# _LT_CHECK_SHELL_FEATURES
7178
# _LT_PROG_XSI_SHELLFNS
7179
# ---------------------
7180
# Bourne and XSI compatible variants of some useful shell functions.
7181
m4_defun([_LT_PROG_XSI_SHELLFNS],
7184
cat << \_LT_EOF >> "$cfgfile"
7186
# func_dirname file append nondir_replacement
7187
# Compute the dirname of FILE. If nonempty, add APPEND to the result,
7188
# otherwise set result to NONDIR_REPLACEMENT.
7192
*/*) func_dirname_result="${1%/*}${2}" ;;
7193
* ) func_dirname_result="${3}" ;;
7197
# func_basename file
7200
func_basename_result="${1##*/}"
7203
# func_dirname_and_basename file append nondir_replacement
7204
# perform func_basename and func_dirname in a single function
7206
# dirname: Compute the dirname of FILE. If nonempty,
7207
# add APPEND to the result, otherwise set result
7208
# to NONDIR_REPLACEMENT.
7209
# value returned in "$func_dirname_result"
7210
# basename: Compute filename of FILE.
7211
# value retuned in "$func_basename_result"
7212
# Implementation must be kept synchronized with func_dirname
7213
# and func_basename. For efficiency, we do not delegate to
7214
# those functions but instead duplicate the functionality here.
7215
func_dirname_and_basename ()
7218
*/*) func_dirname_result="${1%/*}${2}" ;;
7219
* ) func_dirname_result="${3}" ;;
7221
func_basename_result="${1##*/}"
7224
# func_stripname prefix suffix name
7225
# strip PREFIX and SUFFIX off of NAME.
7226
# PREFIX and SUFFIX must not contain globbing or regex special
7227
# characters, hashes, percent signs, but SUFFIX may contain a leading
7228
# dot (in which case that matches only a dot).
7231
# pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
7232
# positional parameters, so assign one to ordinary parameter first.
7233
func_stripname_result=${3}
7234
func_stripname_result=${func_stripname_result#"${1}"}
7235
func_stripname_result=${func_stripname_result%"${2}"}
7241
func_opt_split_opt=${1%%=*}
7242
func_opt_split_arg=${1#*=}
7249
*.lo) func_lo2o_result=${1%.lo}.${objext} ;;
7250
*) func_lo2o_result=${1} ;;
7254
# func_xform libobj-or-source
7257
func_xform_result=${1%.*}.lo
7260
# func_arith arithmetic-term...
7263
func_arith_result=$(( $[*] ))
7267
# STRING may not start with a hyphen.
7270
func_len_result=${#1}
7275
*) # Bourne compatible functions.
7276
cat << \_LT_EOF >> "$cfgfile"
7278
# func_dirname file append nondir_replacement
7279
# Compute the dirname of FILE. If nonempty, add APPEND to the result,
7280
# otherwise set result to NONDIR_REPLACEMENT.
7283
# Extract subdirectory from the argument.
7284
func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
7285
if test "X$func_dirname_result" = "X${1}"; then
7286
func_dirname_result="${3}"
7288
func_dirname_result="$func_dirname_result${2}"
7292
# func_basename file
7295
func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
7298
dnl func_dirname_and_basename
7299
dnl A portable version of this function is already defined in general.m4sh
7300
dnl so there is no need for it here.
7302
# func_stripname prefix suffix name
7303
# strip PREFIX and SUFFIX off of NAME.
7304
# PREFIX and SUFFIX must not contain globbing or regex special
7305
# characters, hashes, percent signs, but SUFFIX may contain a leading
7306
# dot (in which case that matches only a dot).
7307
# func_strip_suffix prefix name
7311
.*) func_stripname_result=`$ECHO "X${3}" \
7312
| $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
7313
*) func_stripname_result=`$ECHO "X${3}" \
7314
| $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
7319
my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
7320
my_sed_long_arg='1s/^-[[^=]]*=//'
7325
func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
7326
func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
7332
func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
7335
# func_xform libobj-or-source
7338
func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
7341
# func_arith arithmetic-term...
7344
func_arith_result=`expr "$[@]"`
7348
# STRING may not start with a hyphen.
7351
func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
7357
case $lt_shell_append in
7359
cat << \_LT_EOF >> "$cfgfile"
7361
# func_append var value
7362
# Append VALUE to the end of shell variable VAR.
7370
cat << \_LT_EOF >> "$cfgfile"
7372
# func_append var value
7373
# Append VALUE to the end of shell variable VAR.
7376
eval "$[1]=\$$[1]\$[2]"
7698
# _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY)
7699
# ------------------------------------------------------
7700
# In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and
7701
# '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY.
7702
m4_defun([_LT_PROG_FUNCTION_REPLACE],
7704
sed -e '/^$1 ()$/,/^} # $1 /c\
7707
m4_bpatsubsts([$2], [$], [\\], [^\([ ]\)], [\\\1])
7708
} # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \
7709
&& mv -f "$cfgfile.tmp" "$cfgfile" \
7710
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7711
test 0 -eq $? || _lt_function_replace_fail=:
7715
# _LT_PROG_REPLACE_SHELLFNS
7716
# -------------------------
7717
# Replace existing portable implementations of several shell functions with
7718
# equivalent extended shell implementations where those features are available..
7719
m4_defun([_LT_PROG_REPLACE_SHELLFNS],
7720
[if test x"$xsi_shell" = xyes; then
7721
_LT_PROG_FUNCTION_REPLACE([func_dirname], [dnl
7723
*/*) func_dirname_result="${1%/*}${2}" ;;
7724
* ) func_dirname_result="${3}" ;;
7727
_LT_PROG_FUNCTION_REPLACE([func_basename], [dnl
7728
func_basename_result="${1##*/}"])
7730
_LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl
7732
*/*) func_dirname_result="${1%/*}${2}" ;;
7733
* ) func_dirname_result="${3}" ;;
7735
func_basename_result="${1##*/}"])
7737
_LT_PROG_FUNCTION_REPLACE([func_stripname], [dnl
7738
# pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
7739
# positional parameters, so assign one to ordinary parameter first.
7740
func_stripname_result=${3}
7741
func_stripname_result=${func_stripname_result#"${1}"}
7742
func_stripname_result=${func_stripname_result%"${2}"}])
7744
_LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl
7745
func_split_long_opt_name=${1%%=*}
7746
func_split_long_opt_arg=${1#*=}])
7748
_LT_PROG_FUNCTION_REPLACE([func_split_short_opt], [dnl
7749
func_split_short_opt_arg=${1#??}
7750
func_split_short_opt_name=${1%"$func_split_short_opt_arg"}])
7752
_LT_PROG_FUNCTION_REPLACE([func_lo2o], [dnl
7754
*.lo) func_lo2o_result=${1%.lo}.${objext} ;;
7755
*) func_lo2o_result=${1} ;;
7758
_LT_PROG_FUNCTION_REPLACE([func_xform], [ func_xform_result=${1%.*}.lo])
7760
_LT_PROG_FUNCTION_REPLACE([func_arith], [ func_arith_result=$(( $[*] ))])
7762
_LT_PROG_FUNCTION_REPLACE([func_len], [ func_len_result=${#1}])
7765
if test x"$lt_shell_append" = xyes; then
7766
_LT_PROG_FUNCTION_REPLACE([func_append], [ eval "${1}+=\\${2}"])
7768
_LT_PROG_FUNCTION_REPLACE([func_append_quoted], [dnl
7769
func_quote_for_eval "${2}"
7770
dnl m4 expansion turns \\\\ into \\, and then the shell eval turns that into \
7771
eval "${1}+=\\\\ \\$func_quote_for_eval_result"])
7773
# Save a `func_append' function call where possible by direct use of '+='
7774
sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
7775
&& mv -f "$cfgfile.tmp" "$cfgfile" \
7776
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7777
test 0 -eq $? || _lt_function_replace_fail=:
7779
# Save a `func_append' function call even when '+=' is not available
7780
sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
7781
&& mv -f "$cfgfile.tmp" "$cfgfile" \
7782
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7783
test 0 -eq $? || _lt_function_replace_fail=:
7786
if test x"$_lt_function_replace_fail" = x":"; then
7787
AC_MSG_WARN([Unable to substitute extended shell functions in $ofile])
7791
# _LT_PATH_CONVERSION_FUNCTIONS
7792
# -----------------------------
7793
# Determine which file name conversion functions should be used by
7794
# func_to_host_file (and, implicitly, by func_to_host_path). These are needed
7795
# for certain cross-compile configurations and native mingw.
7796
m4_defun([_LT_PATH_CONVERSION_FUNCTIONS],
7797
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
7798
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
7799
AC_MSG_CHECKING([how to convert $build file names to $host format])
7800
AC_CACHE_VAL(lt_cv_to_host_file_cmd,
7804
*-*-mingw* ) # actually msys
7805
lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7808
lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7810
* ) # otherwise, assume *nix
7811
lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7817
*-*-mingw* ) # actually msys
7818
lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7821
lt_cv_to_host_file_cmd=func_convert_file_noop
7823
* ) # otherwise, assume *nix
7824
lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7828
* ) # unhandled hosts (and "normal" native builds)
7829
lt_cv_to_host_file_cmd=func_convert_file_noop
7833
to_host_file_cmd=$lt_cv_to_host_file_cmd
7834
AC_MSG_RESULT([$lt_cv_to_host_file_cmd])
7835
_LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd],
7836
[0], [convert $build file names to $host format])dnl
7838
AC_MSG_CHECKING([how to convert $build file names to toolchain format])
7839
AC_CACHE_VAL(lt_cv_to_tool_file_cmd,
7840
[#assume ordinary cross tools, or native build.
7841
lt_cv_to_tool_file_cmd=func_convert_file_noop
7845
*-*-mingw* ) # actually msys
7846
lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7852
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7853
AC_MSG_RESULT([$lt_cv_to_tool_file_cmd])
7854
_LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd],
7855
[0], [convert $build files to toolchain format])dnl
7856
])# _LT_PATH_CONVERSION_FUNCTIONS
7384
7858
# Helper functions for option handling. -*- Autoconf -*-
7386
# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
7860
# Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
7387
7862
# Written by Gary V. Vaughan, 2004
7389
7864
# This file is free software; the Free Software Foundation gives
7390
7865
# unlimited permission to copy and/or distribute it, with or without
7391
7866
# modifications, as long as this notice is preserved.
7393
# serial 6 ltoptions.m4
7868
# serial 7 ltoptions.m4
7395
7870
# This is to help aclocal find these macros, as it can't see m4_define.
7396
7871
AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])