1091
# _LT_SYS_MODULE_PATH_AIX
1092
# -----------------------
1153
# _LT_SYS_MODULE_PATH_AIX([TAGNAME])
1154
# ----------------------------------
1093
1155
# Links a minimal program and checks the executable
1094
1156
# for the system default hardcoded library path. In most cases,
1095
1157
# this is /usr/lib:/lib, but when the MPI compilers are used
1096
1158
# the location of the communication and MPI libs are included too.
1097
1159
# If we don't find anything, use the default library path according
1098
1160
# to the aix ld manual.
1161
# Store the results from the different compilers for each TAGNAME.
1162
# Allow to override them for all tags through lt_cv_aix_libpath.
1099
1163
m4_defun([_LT_SYS_MODULE_PATH_AIX],
1100
1164
[m4_require([_LT_DECL_SED])dnl
1101
AC_LINK_IFELSE(AC_LANG_PROGRAM,[
1102
lt_aix_libpath_sed='
1103
/Import File Strings/,/^$/ {
1109
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1110
# Check for a 64-bit object if we didn't find anything.
1111
if test -z "$aix_libpath"; then
1112
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1114
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
1165
if test "${lt_cv_aix_libpath+set}" = set; then
1166
aix_libpath=$lt_cv_aix_libpath
1168
AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
1169
[AC_LINK_IFELSE([AC_LANG_PROGRAM],[
1170
lt_aix_libpath_sed='[
1171
/Import File Strings/,/^$/ {
1173
s/^0 *\([^ ]*\) *$/\1/
1177
_LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1178
# Check for a 64-bit object if we didn't find anything.
1179
if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
1180
_LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1182
if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
1183
_LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib"
1186
aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
1115
1188
])# _LT_SYS_MODULE_PATH_AIX
1118
1191
# _LT_SHELL_INIT(ARG)
1119
1192
# -------------------
1120
1193
m4_define([_LT_SHELL_INIT],
1121
[ifdef([AC_DIVERSION_NOTICE],
1122
[AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
1123
[AC_DIVERT_PUSH(NOTICE)])
1194
[m4_divert_text([M4SH-INIT], [$1
1195
])])# _LT_SHELL_INIT
1129
1199
# _LT_PROG_ECHO_BACKSLASH
1130
1200
# -----------------------
1131
# Add some code to the start of the generated configure script which
1132
# will find an echo command which doesn't interpret backslashes.
1201
# Find how we can fake an echo command that does not interpret backslash.
1202
# In particular, with Autoconf 2.60 or later we add some code to the start
1203
# of the generated configure script which will find a shell with a builtin
1204
# printf (which we can use as an echo command).
1133
1205
m4_defun([_LT_PROG_ECHO_BACKSLASH],
1135
# Check that we are running under the correct shell.
1136
SHELL=${CONFIG_SHELL-/bin/sh}
1140
# Remove one level of quotation (which was required for Make).
1141
ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
1206
[ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
1207
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
1208
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
1210
AC_MSG_CHECKING([how to print strings])
1211
# Test print first, because it will be a builtin if present.
1212
if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
1213
test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
1215
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
1218
# Use this function as a fallback that always works.
1219
func_fallback_echo ()
1221
eval 'cat <<_LTECHO_EOF
1225
ECHO='func_fallback_echo'
1228
# func_echo_all arg...
1229
# Invoke $ECHO with all args, space-separated.
1236
printf*) AC_MSG_RESULT([printf]) ;;
1237
print*) AC_MSG_RESULT([print -r]) ;;
1238
*) AC_MSG_RESULT([cat]) ;;
1145
ECHO=${lt_ECHO-echo}
1146
if test "X[$]1" = X--no-reexec; then
1147
# Discard the --no-reexec flag, and continue.
1149
elif test "X[$]1" = X--fallback-echo; then
1150
# Avoid inline document here, it may be left over
1152
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
1153
# Yippee, $ECHO works!
1156
# Restart under the correct shell.
1157
exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
1160
if test "X[$]1" = X--fallback-echo; then
1161
# used as fallback echo
1169
# The HP-UX ksh and POSIX shell print the target directory to stdout
1171
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1173
if test -z "$lt_ECHO"; then
1174
if test "X${echo_test_string+set}" != Xset; then
1175
# find a string as large as possible, as long as the shell can cope with it
1176
for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
1177
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
1178
if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
1179
{ test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
1186
if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
1187
echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
1188
test "X$echo_testing_string" = "X$echo_test_string"; then
1191
# The Solaris, AIX, and Digital Unix default echo programs unquote
1192
# backslashes. This makes it impossible to quote backslashes using
1193
# echo "$something" | sed 's/\\/\\\\/g'
1195
# So, first we look for a working echo in the user's PATH.
1197
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1198
for dir in $PATH /usr/ucb; do
1200
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
1201
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
1202
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
1203
test "X$echo_testing_string" = "X$echo_test_string"; then
1210
if test "X$ECHO" = Xecho; then
1211
# We didn't find a better echo, so look for alternatives.
1212
if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
1213
echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
1214
test "X$echo_testing_string" = "X$echo_test_string"; then
1215
# This shell has a builtin print -r that does the trick.
1217
elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
1218
test "X$CONFIG_SHELL" != X/bin/ksh; then
1219
# If we have ksh, try running configure again with it.
1220
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
1221
export ORIGINAL_CONFIG_SHELL
1222
CONFIG_SHELL=/bin/ksh
1224
exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
1228
if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
1229
echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
1230
test "X$echo_testing_string" = "X$echo_test_string"; then
1231
# Cool, printf works
1233
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1234
test "X$echo_testing_string" = 'X\t' &&
1235
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1236
test "X$echo_testing_string" = "X$echo_test_string"; then
1237
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
1239
SHELL="$CONFIG_SHELL"
1241
ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
1242
elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1243
test "X$echo_testing_string" = 'X\t' &&
1244
echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1245
test "X$echo_testing_string" = "X$echo_test_string"; then
1246
ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
1248
# maybe with a smaller string...
1251
for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
1252
if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
1259
if test "$prev" != 'sed 50q "[$]0"'; then
1260
echo_test_string=`eval $prev`
1261
export echo_test_string
1262
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
1264
# Oops. We lost completely, so just stick with echo.
1273
# Copy echo and quote the copy suitably for passing to libtool from
1274
# the Makefile, instead of quoting the original, which is used later.
1276
if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
1277
lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
1241
m4_ifdef([_AS_DETECT_SUGGESTED],
1242
[_AS_DETECT_SUGGESTED([
1243
test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
1244
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
1245
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
1246
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
1247
PATH=/empty FPATH=/empty; export PATH FPATH
1248
test "X`printf %s $ECHO`" = "X$ECHO" \
1249
|| test "X`print -r -- $ECHO`" = "X$ECHO" )])])
1282
1251
_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
1283
_LT_DECL([], [ECHO], [1],
1284
[An echo program that does not interpret backslashes])
1252
_LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
1285
1253
])# _LT_PROG_ECHO_BACKSLASH
1258
AC_DEFUN([_LT_WITH_SYSROOT],
1259
[AC_MSG_CHECKING([for sysroot])
1260
AC_ARG_WITH([sysroot],
1261
[ --with-sysroot[=DIR] Search for dependent libraries within DIR
1262
(or the compiler's sysroot if not specified).],
1263
[], [with_sysroot=no])
1265
dnl lt_sysroot will always be passed unquoted. We quote it here
1266
dnl in case the user passed a directory name.
1268
case ${with_sysroot} in #(
1270
if test "$GCC" = yes; then
1271
lt_sysroot=`$CC --print-sysroot 2>/dev/null`
1275
lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
1280
AC_MSG_RESULT([${with_sysroot}])
1281
AC_MSG_ERROR([The sysroot must be an absolute path.])
1285
AC_MSG_RESULT([${lt_sysroot:-no}])
1286
_LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
1287
[dependent libraries, and in which our libraries should be installed.])])
1288
1289
# _LT_ENABLE_LOCK
1289
1290
# ---------------
1290
1291
m4_defun([_LT_ENABLE_LOCK],
2306
2379
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
2307
2380
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2308
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
2382
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
2310
2384
mingw* | cegcc*)
2311
2385
# MinGW DLLs use traditional 'lib' prefix
2312
2386
soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2313
sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2314
if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
2315
# It is most probably a Windows format PATH printed by
2316
# mingw gcc, but we are running on Cygwin. Gcc prints its search
2317
# path with ; separators, and with drive letters. We can handle the
2318
# drive letters (cygwin fileutils understands them), so leave them,
2319
# especially as we might pass files found there to a mingw objdump,
2320
# which wouldn't understand a cygwinified path. Ahh.
2321
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2323
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2327
2389
# pw32 DLLs use 'pw' prefix rather than 'lib'
2328
2390
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2393
dynamic_linker='Win32 ld.exe'
2398
libname_spec='$name'
2399
soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2400
library_names_spec='${libname}.dll.lib'
2404
sys_lib_search_path_spec=
2410
# Let DOS variable expansion print the short 8.3 style file name.
2411
lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
2412
sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
2415
# Convert to MSYS style.
2416
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
2419
# Convert to unix form, then to dos form, then back to unix form
2420
# but this time dos style (no spaces!) so that the unix form looks
2421
# like /cygdrive/c/PROGRA~1:/cygdr...
2422
sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
2423
sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
2424
sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2427
sys_lib_search_path_spec="$LIB"
2428
if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
2429
# It is most probably a Windows format PATH.
2430
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2432
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2434
# FIXME: find the short name or the path components, as spaces are
2435
# common. (e.g. "Program Files" -> "PROGRA~1")
2439
# DLL is installed to $(libdir)/../bin by postinstall_cmds
2440
postinstall_cmds='base_file=`basename \${file}`~
2441
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
2442
dldir=$destdir/`dirname \$dlpath`~
2443
test -d \$dldir || mkdir -p \$dldir~
2444
$install_prog $dir/$dlname \$dldir/$dlname'
2445
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2446
dlpath=$dir/\$dldll~
2448
shlibpath_overrides_runpath=yes
2449
dynamic_linker='Win32 link.exe'
2453
# Assume MSVC wrapper
2334
2454
library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
2455
dynamic_linker='Win32 ld.exe'
2337
dynamic_linker='Win32 ld.exe'
2338
2458
# FIXME: first we should search . and the directory the executable is in
2339
2459
shlibpath_var=PATH
3337
3523
dnl AC_DEFUN([AM_PROG_NM], [])
3338
3524
dnl AC_DEFUN([AC_PROG_NM], [])
3526
# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
3527
# --------------------------------
3528
# how to determine the name of the shared library
3529
# associated with a specific link library.
3530
# -- PORTME fill in with the dynamic library characteristics
3531
m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB],
3532
[m4_require([_LT_DECL_EGREP])
3533
m4_require([_LT_DECL_OBJDUMP])
3534
m4_require([_LT_DECL_DLLTOOL])
3535
AC_CACHE_CHECK([how to associate runtime and link libraries],
3536
lt_cv_sharedlib_from_linklib_cmd,
3537
[lt_cv_sharedlib_from_linklib_cmd='unknown'
3540
cygwin* | mingw* | pw32* | cegcc*)
3541
# two different shell functions defined in ltmain.sh
3542
# decide which to use based on capabilities of $DLLTOOL
3543
case `$DLLTOOL --help 2>&1` in
3544
*--identify-strict*)
3545
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
3548
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
3553
# fallback: assume linklib IS sharedlib
3554
lt_cv_sharedlib_from_linklib_cmd="$ECHO"
3558
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
3559
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
3561
_LT_DECL([], [sharedlib_from_linklib_cmd], [1],
3562
[Command to associate shared and link libraries])
3563
])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
3566
# _LT_PATH_MANIFEST_TOOL
3567
# ----------------------
3568
# locate the manifest tool
3569
m4_defun([_LT_PATH_MANIFEST_TOOL],
3570
[AC_CHECK_TOOL(MANIFEST_TOOL, mt, :)
3571
test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
3572
AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool],
3573
[lt_cv_path_mainfest_tool=no
3574
echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
3575
$MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
3576
cat conftest.err >&AS_MESSAGE_LOG_FD
3577
if $GREP 'Manifest Tool' conftest.out > /dev/null; then
3578
lt_cv_path_mainfest_tool=yes
3581
if test "x$lt_cv_path_mainfest_tool" != xyes; then
3584
_LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
3585
])# _LT_PATH_MANIFEST_TOOL
4775
5138
# Microsoft Visual C++.
4776
5139
# hardcode_libdir_flag_spec is actually meaningless, as there is
4777
5140
# no search path for DLLs.
4778
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
4779
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4780
# Tell ltmain to make .lib files, not .a files.
4782
# Tell ltmain to make .dll files, not .so files.
4784
# FIXME: Setting linknames here is a bad hack.
4785
_LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
4786
# The linker will automatically build a .lib file if we build a DLL.
4787
_LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
4788
# FIXME: Should let the user specify the lib program.
4789
_LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
4790
_LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
4791
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5141
case $cc_basename in
5144
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
5145
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5146
_LT_TAGVAR(always_export_symbols, $1)=yes
5147
_LT_TAGVAR(file_list_spec, $1)='@'
5148
# Tell ltmain to make .lib files, not .a files.
5150
# Tell ltmain to make .dll files, not .so files.
5152
# FIXME: Setting linknames here is a bad hack.
5153
_LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
5154
_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5155
sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
5157
sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
5159
$CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
5161
# The linker will not automatically build a static lib if we build a DLL.
5162
# _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
5163
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5164
_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'
5166
_LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
5167
_LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
5168
lt_tool_outputfile="@TOOL_OUTPUT@"~
5169
case $lt_outputfile in
5172
lt_outputfile="$lt_outputfile.exe"
5173
lt_tool_outputfile="$lt_tool_outputfile.exe"
5176
if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
5177
$MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
5178
$RM "$lt_outputfile.manifest";
5182
# Assume MSVC wrapper
5183
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
5184
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5185
# Tell ltmain to make .lib files, not .a files.
5187
# Tell ltmain to make .dll files, not .so files.
5189
# FIXME: Setting linknames here is a bad hack.
5190
_LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
5191
# The linker will automatically build a .lib file if we build a DLL.
5192
_LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
5193
# FIXME: Should let the user specify the lib program.
5194
_LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
5195
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
4794
5200
darwin* | rhapsody*)
4918
5331
irix5* | irix6* | nonstopux*)
4919
5332
if test "$GCC" = yes; then
4920
_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'
5333
_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'
4921
5334
# Try to use the -exported_symbol ld option, if it does not
4922
5335
# work, assume that -exports_file does not work either and
4923
5336
# implicitly export all symbols.
4924
save_LDFLAGS="$LDFLAGS"
4925
LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
4926
AC_LINK_IFELSE(int foo(void) {},
4927
_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'
4929
LDFLAGS="$save_LDFLAGS"
5337
# This should be the same for all languages, so no per-tag cache variable.
5338
AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
5339
[lt_cv_irix_exported_symbol],
5340
[save_LDFLAGS="$LDFLAGS"
5341
LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
5344
[AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
5345
[C++], [[int foo (void) { return 0; }]],
5352
[lt_cv_irix_exported_symbol=yes],
5353
[lt_cv_irix_exported_symbol=no])
5354
LDFLAGS="$save_LDFLAGS"])
5355
if test "$lt_cv_irix_exported_symbol" = yes; then
5356
_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'
4931
_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'
4932
_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'
5359
_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'
5360
_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'
4934
5362
_LT_TAGVAR(archive_cmds_need_lc, $1)='no'
4935
5363
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5208
5636
# Test whether the compiler implicitly links with -lc since on some
5209
5637
# systems, -lgcc has to come before -lc. If gcc already passes -lc
5210
5638
# to ld, don't add -lc before -lgcc.
5211
AC_MSG_CHECKING([whether -lc should be explicitly linked in])
5213
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5639
AC_CACHE_CHECK([whether -lc should be explicitly linked in],
5640
[lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1),
5642
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5215
if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
5218
libobjs=conftest.$ac_objext
5220
wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
5221
pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
5227
lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
5228
_LT_TAGVAR(allow_undefined_flag, $1)=
5229
if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
5231
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
5233
_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5235
_LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
5237
cat conftest.err 1>&5
5240
AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
5644
if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
5647
libobjs=conftest.$ac_objext
5649
wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
5650
pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
5656
lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
5657
_LT_TAGVAR(allow_undefined_flag, $1)=
5658
if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
5660
lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no
5662
lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5664
_LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
5666
cat conftest.err 1>&5
5670
_LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)
5717
6141
cygwin* | mingw* | pw32* | cegcc*)
5718
# _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
5719
# as there is no search path for DLLs.
5720
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5721
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5722
_LT_TAGVAR(always_export_symbols, $1)=no
5723
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6142
case $GXX,$cc_basename in
6145
# hardcode_libdir_flag_spec is actually meaningless, as there is
6146
# no search path for DLLs.
6147
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
6148
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6149
_LT_TAGVAR(always_export_symbols, $1)=yes
6150
_LT_TAGVAR(file_list_spec, $1)='@'
6151
# Tell ltmain to make .lib files, not .a files.
6153
# Tell ltmain to make .dll files, not .so files.
6155
# FIXME: Setting linknames here is a bad hack.
6156
_LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
6157
_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6158
$SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
6160
$SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
6162
$CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
6164
# The linker will not automatically build a static lib if we build a DLL.
6165
# _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
6166
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6168
_LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
6169
_LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
6170
lt_tool_outputfile="@TOOL_OUTPUT@"~
6171
case $lt_outputfile in
6174
lt_outputfile="$lt_outputfile.exe"
6175
lt_tool_outputfile="$lt_tool_outputfile.exe"
6178
func_to_tool_file "$lt_outputfile"~
6179
if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
6180
$MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
6181
$RM "$lt_outputfile.manifest";
6186
# _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
6187
# as there is no search path for DLLs.
6188
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6189
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
6190
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6191
_LT_TAGVAR(always_export_symbols, $1)=no
6192
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5725
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
5726
_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'
5727
# If the export-symbols file already is a .def file (1st line
5728
# is EXPORTS), use it as is; otherwise, prepend...
5729
_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5730
cp $export_symbols $output_objdir/$soname.def;
5732
echo EXPORTS > $output_objdir/$soname.def;
5733
cat $export_symbols >> $output_objdir/$soname.def;
5735
$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'
5737
_LT_TAGVAR(ld_shlibs, $1)=no
6194
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6195
_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'
6196
# If the export-symbols file already is a .def file (1st line
6197
# is EXPORTS), use it as is; otherwise, prepend...
6198
_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6199
cp $export_symbols $output_objdir/$soname.def;
6201
echo EXPORTS > $output_objdir/$soname.def;
6202
cat $export_symbols >> $output_objdir/$soname.def;
6204
$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'
6206
_LT_TAGVAR(ld_shlibs, $1)=no
5740
6211
darwin* | rhapsody*)
5741
6212
_LT_DARWIN_LINKER_FEATURES($1)
7237
7757
])# _LT_CHECK_SHELL_FEATURES
7240
# _LT_PROG_XSI_SHELLFNS
7241
# ---------------------
7242
# Bourne and XSI compatible variants of some useful shell functions.
7243
m4_defun([_LT_PROG_XSI_SHELLFNS],
7246
cat << \_LT_EOF >> "$cfgfile"
7248
# func_dirname file append nondir_replacement
7249
# Compute the dirname of FILE. If nonempty, add APPEND to the result,
7250
# otherwise set result to NONDIR_REPLACEMENT.
7254
*/*) func_dirname_result="${1%/*}${2}" ;;
7255
* ) func_dirname_result="${3}" ;;
7259
# func_basename file
7262
func_basename_result="${1##*/}"
7265
# func_dirname_and_basename file append nondir_replacement
7266
# perform func_basename and func_dirname in a single function
7268
# dirname: Compute the dirname of FILE. If nonempty,
7269
# add APPEND to the result, otherwise set result
7270
# to NONDIR_REPLACEMENT.
7271
# value returned in "$func_dirname_result"
7272
# basename: Compute filename of FILE.
7273
# value retuned in "$func_basename_result"
7274
# Implementation must be kept synchronized with func_dirname
7275
# and func_basename. For efficiency, we do not delegate to
7276
# those functions but instead duplicate the functionality here.
7277
func_dirname_and_basename ()
7280
*/*) func_dirname_result="${1%/*}${2}" ;;
7281
* ) func_dirname_result="${3}" ;;
7283
func_basename_result="${1##*/}"
7286
# func_stripname prefix suffix name
7287
# strip PREFIX and SUFFIX off of NAME.
7288
# PREFIX and SUFFIX must not contain globbing or regex special
7289
# characters, hashes, percent signs, but SUFFIX may contain a leading
7290
# dot (in which case that matches only a dot).
7293
# pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
7294
# positional parameters, so assign one to ordinary parameter first.
7295
func_stripname_result=${3}
7296
func_stripname_result=${func_stripname_result#"${1}"}
7297
func_stripname_result=${func_stripname_result%"${2}"}
7303
func_opt_split_opt=${1%%=*}
7304
func_opt_split_arg=${1#*=}
7311
*.lo) func_lo2o_result=${1%.lo}.${objext} ;;
7312
*) func_lo2o_result=${1} ;;
7316
# func_xform libobj-or-source
7319
func_xform_result=${1%.*}.lo
7322
# func_arith arithmetic-term...
7325
func_arith_result=$(( $[*] ))
7329
# STRING may not start with a hyphen.
7332
func_len_result=${#1}
7337
*) # Bourne compatible functions.
7338
cat << \_LT_EOF >> "$cfgfile"
7340
# func_dirname file append nondir_replacement
7341
# Compute the dirname of FILE. If nonempty, add APPEND to the result,
7342
# otherwise set result to NONDIR_REPLACEMENT.
7345
# Extract subdirectory from the argument.
7346
func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
7347
if test "X$func_dirname_result" = "X${1}"; then
7348
func_dirname_result="${3}"
7350
func_dirname_result="$func_dirname_result${2}"
7354
# func_basename file
7357
func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
7360
dnl func_dirname_and_basename
7361
dnl A portable version of this function is already defined in general.m4sh
7362
dnl so there is no need for it here.
7364
# func_stripname prefix suffix name
7365
# strip PREFIX and SUFFIX off of NAME.
7366
# PREFIX and SUFFIX must not contain globbing or regex special
7367
# characters, hashes, percent signs, but SUFFIX may contain a leading
7368
# dot (in which case that matches only a dot).
7369
# func_strip_suffix prefix name
7373
.*) func_stripname_result=`$ECHO "X${3}" \
7374
| $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
7375
*) func_stripname_result=`$ECHO "X${3}" \
7376
| $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
7381
my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
7382
my_sed_long_arg='1s/^-[[^=]]*=//'
7387
func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
7388
func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
7394
func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
7397
# func_xform libobj-or-source
7400
func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
7403
# func_arith arithmetic-term...
7406
func_arith_result=`expr "$[@]"`
7410
# STRING may not start with a hyphen.
7413
func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
7419
case $lt_shell_append in
7421
cat << \_LT_EOF >> "$cfgfile"
7423
# func_append var value
7424
# Append VALUE to the end of shell variable VAR.
7432
cat << \_LT_EOF >> "$cfgfile"
7434
# func_append var value
7435
# Append VALUE to the end of shell variable VAR.
7438
eval "$[1]=\$$[1]\$[2]"
7760
# _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY)
7761
# ------------------------------------------------------
7762
# In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and
7763
# '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY.
7764
m4_defun([_LT_PROG_FUNCTION_REPLACE],
7766
sed -e '/^$1 ()$/,/^} # $1 /c\
7769
m4_bpatsubsts([$2], [$], [\\], [^\([ ]\)], [\\\1])
7770
} # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \
7771
&& mv -f "$cfgfile.tmp" "$cfgfile" \
7772
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7773
test 0 -eq $? || _lt_function_replace_fail=:
7777
# _LT_PROG_REPLACE_SHELLFNS
7778
# -------------------------
7779
# Replace existing portable implementations of several shell functions with
7780
# equivalent extended shell implementations where those features are available..
7781
m4_defun([_LT_PROG_REPLACE_SHELLFNS],
7782
[if test x"$xsi_shell" = xyes; then
7783
_LT_PROG_FUNCTION_REPLACE([func_dirname], [dnl
7785
*/*) func_dirname_result="${1%/*}${2}" ;;
7786
* ) func_dirname_result="${3}" ;;
7789
_LT_PROG_FUNCTION_REPLACE([func_basename], [dnl
7790
func_basename_result="${1##*/}"])
7792
_LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl
7794
*/*) func_dirname_result="${1%/*}${2}" ;;
7795
* ) func_dirname_result="${3}" ;;
7797
func_basename_result="${1##*/}"])
7799
_LT_PROG_FUNCTION_REPLACE([func_stripname], [dnl
7800
# pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
7801
# positional parameters, so assign one to ordinary parameter first.
7802
func_stripname_result=${3}
7803
func_stripname_result=${func_stripname_result#"${1}"}
7804
func_stripname_result=${func_stripname_result%"${2}"}])
7806
_LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl
7807
func_split_long_opt_name=${1%%=*}
7808
func_split_long_opt_arg=${1#*=}])
7810
_LT_PROG_FUNCTION_REPLACE([func_split_short_opt], [dnl
7811
func_split_short_opt_arg=${1#??}
7812
func_split_short_opt_name=${1%"$func_split_short_opt_arg"}])
7814
_LT_PROG_FUNCTION_REPLACE([func_lo2o], [dnl
7816
*.lo) func_lo2o_result=${1%.lo}.${objext} ;;
7817
*) func_lo2o_result=${1} ;;
7820
_LT_PROG_FUNCTION_REPLACE([func_xform], [ func_xform_result=${1%.*}.lo])
7822
_LT_PROG_FUNCTION_REPLACE([func_arith], [ func_arith_result=$(( $[*] ))])
7824
_LT_PROG_FUNCTION_REPLACE([func_len], [ func_len_result=${#1}])
7827
if test x"$lt_shell_append" = xyes; then
7828
_LT_PROG_FUNCTION_REPLACE([func_append], [ eval "${1}+=\\${2}"])
7830
_LT_PROG_FUNCTION_REPLACE([func_append_quoted], [dnl
7831
func_quote_for_eval "${2}"
7832
dnl m4 expansion turns \\\\ into \\, and then the shell eval turns that into \
7833
eval "${1}+=\\\\ \\$func_quote_for_eval_result"])
7835
# Save a `func_append' function call where possible by direct use of '+='
7836
sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
7837
&& mv -f "$cfgfile.tmp" "$cfgfile" \
7838
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7839
test 0 -eq $? || _lt_function_replace_fail=:
7841
# Save a `func_append' function call even when '+=' is not available
7842
sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
7843
&& mv -f "$cfgfile.tmp" "$cfgfile" \
7844
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7845
test 0 -eq $? || _lt_function_replace_fail=:
7848
if test x"$_lt_function_replace_fail" = x":"; then
7849
AC_MSG_WARN([Unable to substitute extended shell functions in $ofile])
7853
# _LT_PATH_CONVERSION_FUNCTIONS
7854
# -----------------------------
7855
# Determine which file name conversion functions should be used by
7856
# func_to_host_file (and, implicitly, by func_to_host_path). These are needed
7857
# for certain cross-compile configurations and native mingw.
7858
m4_defun([_LT_PATH_CONVERSION_FUNCTIONS],
7859
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
7860
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
7861
AC_MSG_CHECKING([how to convert $build file names to $host format])
7862
AC_CACHE_VAL(lt_cv_to_host_file_cmd,
7866
*-*-mingw* ) # actually msys
7867
lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7870
lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7872
* ) # otherwise, assume *nix
7873
lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7879
*-*-mingw* ) # actually msys
7880
lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7883
lt_cv_to_host_file_cmd=func_convert_file_noop
7885
* ) # otherwise, assume *nix
7886
lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7890
* ) # unhandled hosts (and "normal" native builds)
7891
lt_cv_to_host_file_cmd=func_convert_file_noop
7895
to_host_file_cmd=$lt_cv_to_host_file_cmd
7896
AC_MSG_RESULT([$lt_cv_to_host_file_cmd])
7897
_LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd],
7898
[0], [convert $build file names to $host format])dnl
7900
AC_MSG_CHECKING([how to convert $build file names to toolchain format])
7901
AC_CACHE_VAL(lt_cv_to_tool_file_cmd,
7902
[#assume ordinary cross tools, or native build.
7903
lt_cv_to_tool_file_cmd=func_convert_file_noop
7907
*-*-mingw* ) # actually msys
7908
lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7914
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7915
AC_MSG_RESULT([$lt_cv_to_tool_file_cmd])
7916
_LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd],
7917
[0], [convert $build files to toolchain format])dnl
7918
])# _LT_PATH_CONVERSION_FUNCTIONS
7446
7920
# Helper functions for option handling. -*- Autoconf -*-
7448
# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
7922
# Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
7449
7924
# Written by Gary V. Vaughan, 2004
7451
7926
# This file is free software; the Free Software Foundation gives
7452
7927
# unlimited permission to copy and/or distribute it, with or without
7453
7928
# modifications, as long as this notice is preserved.
7455
# serial 6 ltoptions.m4
7930
# serial 7 ltoptions.m4
7457
7932
# This is to help aclocal find these macros, as it can't see m4_define.
7458
7933
AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])