1140
# _LT_SYS_MODULE_PATH_AIX
1141
# -----------------------
1245
# _LT_SYS_MODULE_PATH_AIX([TAGNAME])
1246
# ----------------------------------
1142
1247
# Links a minimal program and checks the executable
1143
1248
# for the system default hardcoded library path. In most cases,
1144
1249
# this is /usr/lib:/lib, but when the MPI compilers are used
1145
1250
# the location of the communication and MPI libs are included too.
1146
1251
# If we don't find anything, use the default library path according
1147
1252
# to the aix ld manual.
1253
# Store the results from the different compilers for each TAGNAME.
1254
# Allow to override them for all tags through lt_cv_aix_libpath.
1148
1255
m4_defun([_LT_SYS_MODULE_PATH_AIX],
1149
1256
[m4_require([_LT_DECL_SED])dnl
1150
AC_LINK_IFELSE(AC_LANG_PROGRAM,[
1151
lt_aix_libpath_sed='
1152
/Import File Strings/,/^$/ {
1158
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1159
# Check for a 64-bit object if we didn't find anything.
1160
if test -z "$aix_libpath"; then
1161
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1163
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
1257
if test "${lt_cv_aix_libpath+set}" = set; then
1258
aix_libpath=$lt_cv_aix_libpath
1260
AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
1261
[AC_LINK_IFELSE([AC_LANG_PROGRAM],[
1262
lt_aix_libpath_sed='[
1263
/Import File Strings/,/^$/ {
1265
s/^0 *\([^ ]*\) *$/\1/
1269
_LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1270
# Check for a 64-bit object if we didn't find anything.
1271
if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
1272
_LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1274
if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
1275
_LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib"
1278
aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
1164
1280
])# _LT_SYS_MODULE_PATH_AIX
1167
1283
# _LT_SHELL_INIT(ARG)
1168
1284
# -------------------
1169
1285
m4_define([_LT_SHELL_INIT],
1170
[ifdef([AC_DIVERSION_NOTICE],
1171
[AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
1172
[AC_DIVERT_PUSH(NOTICE)])
1286
[m4_divert_text([M4SH-INIT], [$1
1287
])])# _LT_SHELL_INIT
1178
1291
# _LT_PROG_ECHO_BACKSLASH
1179
1292
# -----------------------
1180
# Add some code to the start of the generated configure script which
1181
# will find an echo command which doesn't interpret backslashes.
1293
# Find how we can fake an echo command that does not interpret backslash.
1294
# In particular, with Autoconf 2.60 or later we add some code to the start
1295
# of the generated configure script which will find a shell with a builtin
1296
# printf (which we can use as an echo command).
1182
1297
m4_defun([_LT_PROG_ECHO_BACKSLASH],
1184
# Check that we are running under the correct shell.
1185
SHELL=${CONFIG_SHELL-/bin/sh}
1189
# Remove one level of quotation (which was required for Make).
1190
ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
1298
[ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
1299
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
1300
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
1302
AC_MSG_CHECKING([how to print strings])
1303
# Test print first, because it will be a builtin if present.
1304
if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
1305
test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
1307
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
1310
# Use this function as a fallback that always works.
1311
func_fallback_echo ()
1313
eval 'cat <<_LTECHO_EOF
1317
ECHO='func_fallback_echo'
1320
# func_echo_all arg...
1321
# Invoke $ECHO with all args, space-separated.
1328
printf*) AC_MSG_RESULT([printf]) ;;
1329
print*) AC_MSG_RESULT([print -r]) ;;
1330
*) AC_MSG_RESULT([cat]) ;;
1194
ECHO=${lt_ECHO-echo}
1195
if test "X[$]1" = X--no-reexec; then
1196
# Discard the --no-reexec flag, and continue.
1198
elif test "X[$]1" = X--fallback-echo; then
1199
# Avoid inline document here, it may be left over
1201
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
1202
# Yippee, $ECHO works!
1205
# Restart under the correct shell.
1206
exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
1209
if test "X[$]1" = X--fallback-echo; then
1210
# used as fallback echo
1218
# The HP-UX ksh and POSIX shell print the target directory to stdout
1220
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1222
if test -z "$lt_ECHO"; then
1223
if test "X${echo_test_string+set}" != Xset; then
1224
# find a string as large as possible, as long as the shell can cope with it
1225
for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
1226
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
1227
if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
1228
{ test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
1235
if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
1236
echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
1237
test "X$echo_testing_string" = "X$echo_test_string"; then
1240
# The Solaris, AIX, and Digital Unix default echo programs unquote
1241
# backslashes. This makes it impossible to quote backslashes using
1242
# echo "$something" | sed 's/\\/\\\\/g'
1244
# So, first we look for a working echo in the user's PATH.
1246
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1247
for dir in $PATH /usr/ucb; do
1249
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
1250
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
1251
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
1252
test "X$echo_testing_string" = "X$echo_test_string"; then
1259
if test "X$ECHO" = Xecho; then
1260
# We didn't find a better echo, so look for alternatives.
1261
if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
1262
echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
1263
test "X$echo_testing_string" = "X$echo_test_string"; then
1264
# This shell has a builtin print -r that does the trick.
1266
elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
1267
test "X$CONFIG_SHELL" != X/bin/ksh; then
1268
# If we have ksh, try running configure again with it.
1269
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
1270
export ORIGINAL_CONFIG_SHELL
1271
CONFIG_SHELL=/bin/ksh
1273
exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
1277
if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
1278
echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
1279
test "X$echo_testing_string" = "X$echo_test_string"; then
1280
# Cool, printf works
1282
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1283
test "X$echo_testing_string" = 'X\t' &&
1284
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1285
test "X$echo_testing_string" = "X$echo_test_string"; then
1286
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
1288
SHELL="$CONFIG_SHELL"
1290
ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
1291
elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1292
test "X$echo_testing_string" = 'X\t' &&
1293
echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1294
test "X$echo_testing_string" = "X$echo_test_string"; then
1295
ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
1297
# maybe with a smaller string...
1300
for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
1301
if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
1308
if test "$prev" != 'sed 50q "[$]0"'; then
1309
echo_test_string=`eval $prev`
1310
export echo_test_string
1311
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
1313
# Oops. We lost completely, so just stick with echo.
1322
# Copy echo and quote the copy suitably for passing to libtool from
1323
# the Makefile, instead of quoting the original, which is used later.
1325
if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
1326
lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
1333
m4_ifdef([_AS_DETECT_SUGGESTED],
1334
[_AS_DETECT_SUGGESTED([
1335
test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
1336
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
1337
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
1338
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
1339
PATH=/empty FPATH=/empty; export PATH FPATH
1340
test "X`printf %s $ECHO`" = "X$ECHO" \
1341
|| test "X`print -r -- $ECHO`" = "X$ECHO" )])])
1331
1343
_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
1332
_LT_DECL([], [ECHO], [1],
1333
[An echo program that does not interpret backslashes])
1344
_LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
1334
1345
])# _LT_PROG_ECHO_BACKSLASH
1350
AC_DEFUN([_LT_WITH_SYSROOT],
1351
[AC_MSG_CHECKING([for sysroot])
1352
AC_ARG_WITH([sysroot],
1353
[ --with-sysroot[=DIR] Search for dependent libraries within DIR
1354
(or the compiler's sysroot if not specified).],
1355
[], [with_sysroot=no])
1357
dnl lt_sysroot will always be passed unquoted. We quote it here
1358
dnl in case the user passed a directory name.
1360
case ${with_sysroot} in #(
1362
if test "$GCC" = yes; then
1363
lt_sysroot=`$CC --print-sysroot 2>/dev/null`
1367
lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
1372
AC_MSG_RESULT([${with_sysroot}])
1373
AC_MSG_ERROR([The sysroot must be an absolute path.])
1377
AC_MSG_RESULT([${lt_sysroot:-no}])
1378
_LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
1379
[dependent libraries, and in which our libraries should be installed.])])
1337
1381
# _LT_ENABLE_LOCK
1338
1382
# ---------------
1339
1383
m4_defun([_LT_ENABLE_LOCK],
2355
2489
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
2356
2490
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2357
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
2492
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
2359
2494
mingw* | cegcc*)
2360
2495
# MinGW DLLs use traditional 'lib' prefix
2361
2496
soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2362
sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2363
if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
2364
# It is most probably a Windows format PATH printed by
2365
# mingw gcc, but we are running on Cygwin. Gcc prints its search
2366
# path with ; separators, and with drive letters. We can handle the
2367
# drive letters (cygwin fileutils understands them), so leave them,
2368
# especially as we might pass files found there to a mingw objdump,
2369
# which wouldn't understand a cygwinified path. Ahh.
2370
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2372
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2376
2499
# pw32 DLLs use 'pw' prefix rather than 'lib'
2377
2500
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2503
dynamic_linker='Win32 ld.exe'
2508
libname_spec='$name'
2509
soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2510
library_names_spec='${libname}.dll.lib'
2514
sys_lib_search_path_spec=
2520
# Let DOS variable expansion print the short 8.3 style file name.
2521
lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
2522
sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
2525
# Convert to MSYS style.
2526
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
2529
# Convert to unix form, then to dos form, then back to unix form
2530
# but this time dos style (no spaces!) so that the unix form looks
2531
# like /cygdrive/c/PROGRA~1:/cygdr...
2532
sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
2533
sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
2534
sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2537
sys_lib_search_path_spec="$LIB"
2538
if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
2539
# It is most probably a Windows format PATH.
2540
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2542
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2544
# FIXME: find the short name or the path components, as spaces are
2545
# common. (e.g. "Program Files" -> "PROGRA~1")
2549
# DLL is installed to $(libdir)/../bin by postinstall_cmds
2550
postinstall_cmds='base_file=`basename \${file}`~
2551
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
2552
dldir=$destdir/`dirname \$dlpath`~
2553
test -d \$dldir || mkdir -p \$dldir~
2554
$install_prog $dir/$dlname \$dldir/$dlname'
2555
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2556
dlpath=$dir/\$dldll~
2558
shlibpath_overrides_runpath=yes
2559
dynamic_linker='Win32 link.exe'
2563
# Assume MSVC wrapper
2383
2564
library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
2565
dynamic_linker='Win32 ld.exe'
2386
dynamic_linker='Win32 ld.exe'
2387
2568
# FIXME: first we should search . and the directory the executable is in
2388
2569
shlibpath_var=PATH
3386
3629
dnl AC_DEFUN([AM_PROG_NM], [])
3387
3630
dnl AC_DEFUN([AC_PROG_NM], [])
3632
# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
3633
# --------------------------------
3634
# how to determine the name of the shared library
3635
# associated with a specific link library.
3636
# -- PORTME fill in with the dynamic library characteristics
3637
m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB],
3638
[m4_require([_LT_DECL_EGREP])
3639
m4_require([_LT_DECL_OBJDUMP])
3640
m4_require([_LT_DECL_DLLTOOL])
3641
AC_CACHE_CHECK([how to associate runtime and link libraries],
3642
lt_cv_sharedlib_from_linklib_cmd,
3643
[lt_cv_sharedlib_from_linklib_cmd='unknown'
3646
cygwin* | mingw* | pw32* | cegcc*)
3647
# two different shell functions defined in ltmain.sh
3648
# decide which to use based on capabilities of $DLLTOOL
3649
case `$DLLTOOL --help 2>&1` in
3650
*--identify-strict*)
3651
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
3654
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
3659
# fallback: assume linklib IS sharedlib
3660
lt_cv_sharedlib_from_linklib_cmd="$ECHO"
3664
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
3665
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
3667
_LT_DECL([], [sharedlib_from_linklib_cmd], [1],
3668
[Command to associate shared and link libraries])
3669
])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
3672
# _LT_PATH_MANIFEST_TOOL
3673
# ----------------------
3674
# locate the manifest tool
3675
m4_defun([_LT_PATH_MANIFEST_TOOL],
3676
[AC_CHECK_TOOL(MANIFEST_TOOL, mt, :)
3677
test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
3678
AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool],
3679
[lt_cv_path_mainfest_tool=no
3680
echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
3681
$MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
3682
cat conftest.err >&AS_MESSAGE_LOG_FD
3683
if $GREP 'Manifest Tool' conftest.out > /dev/null; then
3684
lt_cv_path_mainfest_tool=yes
3687
if test "x$lt_cv_path_mainfest_tool" != xyes; then
3690
_LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
3691
])# _LT_PATH_MANIFEST_TOOL
4824
5262
# Microsoft Visual C++.
4825
5263
# hardcode_libdir_flag_spec is actually meaningless, as there is
4826
5264
# no search path for DLLs.
4827
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
4828
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4829
# Tell ltmain to make .lib files, not .a files.
4831
# Tell ltmain to make .dll files, not .so files.
4833
# FIXME: Setting linknames here is a bad hack.
4834
_LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
4835
# The linker will automatically build a .lib file if we build a DLL.
4836
_LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
4837
# FIXME: Should let the user specify the lib program.
4838
_LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
4839
_LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
4840
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5265
case $cc_basename in
5268
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
5269
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5270
_LT_TAGVAR(always_export_symbols, $1)=yes
5271
_LT_TAGVAR(file_list_spec, $1)='@'
5272
# Tell ltmain to make .lib files, not .a files.
5274
# Tell ltmain to make .dll files, not .so files.
5276
# FIXME: Setting linknames here is a bad hack.
5277
_LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
5278
_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5279
sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
5281
sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
5283
$CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
5285
# The linker will not automatically build a static lib if we build a DLL.
5286
# _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
5287
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5288
_LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
5289
_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'
5291
_LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
5292
_LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
5293
lt_tool_outputfile="@TOOL_OUTPUT@"~
5294
case $lt_outputfile in
5297
lt_outputfile="$lt_outputfile.exe"
5298
lt_tool_outputfile="$lt_tool_outputfile.exe"
5301
if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
5302
$MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
5303
$RM "$lt_outputfile.manifest";
5307
# Assume MSVC wrapper
5308
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
5309
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5310
# Tell ltmain to make .lib files, not .a files.
5312
# Tell ltmain to make .dll files, not .so files.
5314
# FIXME: Setting linknames here is a bad hack.
5315
_LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
5316
# The linker will automatically build a .lib file if we build a DLL.
5317
_LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
5318
# FIXME: Should let the user specify the lib program.
5319
_LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
5320
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
4843
5325
darwin* | rhapsody*)
4967
5451
irix5* | irix6* | nonstopux*)
4968
5452
if test "$GCC" = yes; then
4969
_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'
5453
_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'
4970
5454
# Try to use the -exported_symbol ld option, if it does not
4971
5455
# work, assume that -exports_file does not work either and
4972
5456
# implicitly export all symbols.
4973
save_LDFLAGS="$LDFLAGS"
4974
LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
4975
AC_LINK_IFELSE(int foo(void) {},
4976
_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'
4978
LDFLAGS="$save_LDFLAGS"
5457
# This should be the same for all languages, so no per-tag cache variable.
5458
AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
5459
[lt_cv_irix_exported_symbol],
5460
[save_LDFLAGS="$LDFLAGS"
5461
LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
5464
[AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
5465
[C++], [[int foo (void) { return 0; }]],
5472
[lt_cv_irix_exported_symbol=yes],
5473
[lt_cv_irix_exported_symbol=no])
5474
LDFLAGS="$save_LDFLAGS"])
5475
if test "$lt_cv_irix_exported_symbol" = yes; then
5476
_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'
4980
_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'
4981
_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'
5479
_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'
5480
_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'
4983
5482
_LT_TAGVAR(archive_cmds_need_lc, $1)='no'
4984
5483
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5257
5756
# Test whether the compiler implicitly links with -lc since on some
5258
5757
# systems, -lgcc has to come before -lc. If gcc already passes -lc
5259
5758
# to ld, don't add -lc before -lgcc.
5260
AC_MSG_CHECKING([whether -lc should be explicitly linked in])
5262
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5759
AC_CACHE_CHECK([whether -lc should be explicitly linked in],
5760
[lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1),
5762
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5264
if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
5267
libobjs=conftest.$ac_objext
5269
wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
5270
pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
5276
lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
5277
_LT_TAGVAR(allow_undefined_flag, $1)=
5278
if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
5280
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
5282
_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5284
_LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
5286
cat conftest.err 1>&5
5289
AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
5764
if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
5767
libobjs=conftest.$ac_objext
5769
wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
5770
pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
5776
lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
5777
_LT_TAGVAR(allow_undefined_flag, $1)=
5778
if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
5780
lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no
5782
lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5784
_LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
5786
cat conftest.err 1>&5
5790
_LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)
5766
6257
cygwin* | mingw* | pw32* | cegcc*)
5767
# _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
5768
# as there is no search path for DLLs.
5769
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5770
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5771
_LT_TAGVAR(always_export_symbols, $1)=no
5772
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6258
case $GXX,$cc_basename in
6261
# hardcode_libdir_flag_spec is actually meaningless, as there is
6262
# no search path for DLLs.
6263
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
6264
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6265
_LT_TAGVAR(always_export_symbols, $1)=yes
6266
_LT_TAGVAR(file_list_spec, $1)='@'
6267
# Tell ltmain to make .lib files, not .a files.
6269
# Tell ltmain to make .dll files, not .so files.
6271
# FIXME: Setting linknames here is a bad hack.
6272
_LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
6273
_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6274
$SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
6276
$SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
6278
$CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
6280
# The linker will not automatically build a static lib if we build a DLL.
6281
# _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
6282
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6284
_LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
6285
_LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
6286
lt_tool_outputfile="@TOOL_OUTPUT@"~
6287
case $lt_outputfile in
6290
lt_outputfile="$lt_outputfile.exe"
6291
lt_tool_outputfile="$lt_tool_outputfile.exe"
6294
func_to_tool_file "$lt_outputfile"~
6295
if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
6296
$MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
6297
$RM "$lt_outputfile.manifest";
6302
# _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
6303
# as there is no search path for DLLs.
6304
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6305
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
6306
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6307
_LT_TAGVAR(always_export_symbols, $1)=no
6308
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5774
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
5775
_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'
5776
# If the export-symbols file already is a .def file (1st line
5777
# is EXPORTS), use it as is; otherwise, prepend...
5778
_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5779
cp $export_symbols $output_objdir/$soname.def;
5781
echo EXPORTS > $output_objdir/$soname.def;
5782
cat $export_symbols >> $output_objdir/$soname.def;
5784
$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'
5786
_LT_TAGVAR(ld_shlibs, $1)=no
6310
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6311
_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'
6312
# If the export-symbols file already is a .def file (1st line
6313
# is EXPORTS), use it as is; otherwise, prepend...
6314
_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6315
cp $export_symbols $output_objdir/$soname.def;
6317
echo EXPORTS > $output_objdir/$soname.def;
6318
cat $export_symbols >> $output_objdir/$soname.def;
6320
$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'
6322
_LT_TAGVAR(ld_shlibs, $1)=no
5789
6327
darwin* | rhapsody*)
5790
6328
_LT_DARWIN_LINKER_FEATURES($1)
7286
7951
])# _LT_CHECK_SHELL_FEATURES
7289
# _LT_PROG_XSI_SHELLFNS
7290
# ---------------------
7291
# Bourne and XSI compatible variants of some useful shell functions.
7292
m4_defun([_LT_PROG_XSI_SHELLFNS],
7295
cat << \_LT_EOF >> "$cfgfile"
7297
# func_dirname file append nondir_replacement
7298
# Compute the dirname of FILE. If nonempty, add APPEND to the result,
7299
# otherwise set result to NONDIR_REPLACEMENT.
7303
*/*) func_dirname_result="${1%/*}${2}" ;;
7304
* ) func_dirname_result="${3}" ;;
7308
# func_basename file
7311
func_basename_result="${1##*/}"
7314
# func_dirname_and_basename file append nondir_replacement
7315
# perform func_basename and func_dirname in a single function
7317
# dirname: Compute the dirname of FILE. If nonempty,
7318
# add APPEND to the result, otherwise set result
7319
# to NONDIR_REPLACEMENT.
7320
# value returned in "$func_dirname_result"
7321
# basename: Compute filename of FILE.
7322
# value retuned in "$func_basename_result"
7323
# Implementation must be kept synchronized with func_dirname
7324
# and func_basename. For efficiency, we do not delegate to
7325
# those functions but instead duplicate the functionality here.
7326
func_dirname_and_basename ()
7329
*/*) func_dirname_result="${1%/*}${2}" ;;
7330
* ) func_dirname_result="${3}" ;;
7332
func_basename_result="${1##*/}"
7335
# func_stripname prefix suffix name
7336
# strip PREFIX and SUFFIX off of NAME.
7337
# PREFIX and SUFFIX must not contain globbing or regex special
7338
# characters, hashes, percent signs, but SUFFIX may contain a leading
7339
# dot (in which case that matches only a dot).
7342
# pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
7343
# positional parameters, so assign one to ordinary parameter first.
7344
func_stripname_result=${3}
7345
func_stripname_result=${func_stripname_result#"${1}"}
7346
func_stripname_result=${func_stripname_result%"${2}"}
7352
func_opt_split_opt=${1%%=*}
7353
func_opt_split_arg=${1#*=}
7360
*.lo) func_lo2o_result=${1%.lo}.${objext} ;;
7361
*) func_lo2o_result=${1} ;;
7365
# func_xform libobj-or-source
7368
func_xform_result=${1%.*}.lo
7371
# func_arith arithmetic-term...
7374
func_arith_result=$(( $[*] ))
7378
# STRING may not start with a hyphen.
7381
func_len_result=${#1}
7386
*) # Bourne compatible functions.
7387
cat << \_LT_EOF >> "$cfgfile"
7389
# func_dirname file append nondir_replacement
7390
# Compute the dirname of FILE. If nonempty, add APPEND to the result,
7391
# otherwise set result to NONDIR_REPLACEMENT.
7394
# Extract subdirectory from the argument.
7395
func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
7396
if test "X$func_dirname_result" = "X${1}"; then
7397
func_dirname_result="${3}"
7399
func_dirname_result="$func_dirname_result${2}"
7403
# func_basename file
7406
func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
7409
dnl func_dirname_and_basename
7410
dnl A portable version of this function is already defined in general.m4sh
7411
dnl so there is no need for it here.
7413
# func_stripname prefix suffix name
7414
# strip PREFIX and SUFFIX off of NAME.
7415
# PREFIX and SUFFIX must not contain globbing or regex special
7416
# characters, hashes, percent signs, but SUFFIX may contain a leading
7417
# dot (in which case that matches only a dot).
7418
# func_strip_suffix prefix name
7422
.*) func_stripname_result=`$ECHO "X${3}" \
7423
| $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
7424
*) func_stripname_result=`$ECHO "X${3}" \
7425
| $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
7430
my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
7431
my_sed_long_arg='1s/^-[[^=]]*=//'
7436
func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
7437
func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
7443
func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
7446
# func_xform libobj-or-source
7449
func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
7452
# func_arith arithmetic-term...
7455
func_arith_result=`expr "$[@]"`
7459
# STRING may not start with a hyphen.
7462
func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
7468
case $lt_shell_append in
7470
cat << \_LT_EOF >> "$cfgfile"
7472
# func_append var value
7473
# Append VALUE to the end of shell variable VAR.
7481
cat << \_LT_EOF >> "$cfgfile"
7483
# func_append var value
7484
# Append VALUE to the end of shell variable VAR.
7487
eval "$[1]=\$$[1]\$[2]"
7954
# _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY)
7955
# ------------------------------------------------------
7956
# In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and
7957
# '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY.
7958
m4_defun([_LT_PROG_FUNCTION_REPLACE],
7960
sed -e '/^$1 ()$/,/^} # $1 /c\
7963
m4_bpatsubsts([$2], [$], [\\], [^\([ ]\)], [\\\1])
7964
} # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \
7965
&& mv -f "$cfgfile.tmp" "$cfgfile" \
7966
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7967
test 0 -eq $? || _lt_function_replace_fail=:
7971
# _LT_PROG_REPLACE_SHELLFNS
7972
# -------------------------
7973
# Replace existing portable implementations of several shell functions with
7974
# equivalent extended shell implementations where those features are available..
7975
m4_defun([_LT_PROG_REPLACE_SHELLFNS],
7976
[if test x"$xsi_shell" = xyes; then
7977
_LT_PROG_FUNCTION_REPLACE([func_dirname], [dnl
7979
*/*) func_dirname_result="${1%/*}${2}" ;;
7980
* ) func_dirname_result="${3}" ;;
7983
_LT_PROG_FUNCTION_REPLACE([func_basename], [dnl
7984
func_basename_result="${1##*/}"])
7986
_LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl
7988
*/*) func_dirname_result="${1%/*}${2}" ;;
7989
* ) func_dirname_result="${3}" ;;
7991
func_basename_result="${1##*/}"])
7993
_LT_PROG_FUNCTION_REPLACE([func_stripname], [dnl
7994
# pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
7995
# positional parameters, so assign one to ordinary parameter first.
7996
func_stripname_result=${3}
7997
func_stripname_result=${func_stripname_result#"${1}"}
7998
func_stripname_result=${func_stripname_result%"${2}"}])
8000
_LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl
8001
func_split_long_opt_name=${1%%=*}
8002
func_split_long_opt_arg=${1#*=}])
8004
_LT_PROG_FUNCTION_REPLACE([func_split_short_opt], [dnl
8005
func_split_short_opt_arg=${1#??}
8006
func_split_short_opt_name=${1%"$func_split_short_opt_arg"}])
8008
_LT_PROG_FUNCTION_REPLACE([func_lo2o], [dnl
8010
*.lo) func_lo2o_result=${1%.lo}.${objext} ;;
8011
*) func_lo2o_result=${1} ;;
8014
_LT_PROG_FUNCTION_REPLACE([func_xform], [ func_xform_result=${1%.*}.lo])
8016
_LT_PROG_FUNCTION_REPLACE([func_arith], [ func_arith_result=$(( $[*] ))])
8018
_LT_PROG_FUNCTION_REPLACE([func_len], [ func_len_result=${#1}])
8021
if test x"$lt_shell_append" = xyes; then
8022
_LT_PROG_FUNCTION_REPLACE([func_append], [ eval "${1}+=\\${2}"])
8024
_LT_PROG_FUNCTION_REPLACE([func_append_quoted], [dnl
8025
func_quote_for_eval "${2}"
8026
dnl m4 expansion turns \\\\ into \\, and then the shell eval turns that into \
8027
eval "${1}+=\\\\ \\$func_quote_for_eval_result"])
8029
# Save a `func_append' function call where possible by direct use of '+='
8030
sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
8031
&& mv -f "$cfgfile.tmp" "$cfgfile" \
8032
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
8033
test 0 -eq $? || _lt_function_replace_fail=:
8035
# Save a `func_append' function call even when '+=' is not available
8036
sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
8037
&& mv -f "$cfgfile.tmp" "$cfgfile" \
8038
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
8039
test 0 -eq $? || _lt_function_replace_fail=:
8042
if test x"$_lt_function_replace_fail" = x":"; then
8043
AC_MSG_WARN([Unable to substitute extended shell functions in $ofile])
8047
# _LT_PATH_CONVERSION_FUNCTIONS
8048
# -----------------------------
8049
# Determine which file name conversion functions should be used by
8050
# func_to_host_file (and, implicitly, by func_to_host_path). These are needed
8051
# for certain cross-compile configurations and native mingw.
8052
m4_defun([_LT_PATH_CONVERSION_FUNCTIONS],
8053
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
8054
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
8055
AC_MSG_CHECKING([how to convert $build file names to $host format])
8056
AC_CACHE_VAL(lt_cv_to_host_file_cmd,
8060
*-*-mingw* ) # actually msys
8061
lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8064
lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8066
* ) # otherwise, assume *nix
8067
lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8073
*-*-mingw* ) # actually msys
8074
lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8077
lt_cv_to_host_file_cmd=func_convert_file_noop
8079
* ) # otherwise, assume *nix
8080
lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8084
* ) # unhandled hosts (and "normal" native builds)
8085
lt_cv_to_host_file_cmd=func_convert_file_noop
8089
to_host_file_cmd=$lt_cv_to_host_file_cmd
8090
AC_MSG_RESULT([$lt_cv_to_host_file_cmd])
8091
_LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd],
8092
[0], [convert $build file names to $host format])dnl
8094
AC_MSG_CHECKING([how to convert $build file names to toolchain format])
8095
AC_CACHE_VAL(lt_cv_to_tool_file_cmd,
8096
[#assume ordinary cross tools, or native build.
8097
lt_cv_to_tool_file_cmd=func_convert_file_noop
8101
*-*-mingw* ) # actually msys
8102
lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8108
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8109
AC_MSG_RESULT([$lt_cv_to_tool_file_cmd])
8110
_LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd],
8111
[0], [convert $build files to toolchain format])dnl
8112
])# _LT_PATH_CONVERSION_FUNCTIONS
7495
8114
# Helper functions for option handling. -*- Autoconf -*-
7497
# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
8116
# Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
7498
8118
# Written by Gary V. Vaughan, 2004
7500
8120
# This file is free software; the Free Software Foundation gives
7501
8121
# unlimited permission to copy and/or distribute it, with or without
7502
8122
# modifications, as long as this notice is preserved.
7504
# serial 6 ltoptions.m4
8124
# serial 7 ltoptions.m4
7506
8126
# This is to help aclocal find these macros, as it can't see m4_define.
7507
8127
AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])