181
181
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
183
# serial 48 AC_PROG_LIBTOOL
183
# serial 51 AC_PROG_LIBTOOL
186
186
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
343
343
test -z "$ac_objext" && ac_objext=o
345
345
# Determine commands to create old-style static archives.
346
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
346
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
347
347
old_postinstall_cmds='chmod 644 $oldlib'
348
348
old_postuninstall_cmds=
386
386
[pic_mode=default])
387
387
test -z "$pic_mode" && pic_mode=default
389
# Check if we have a version mismatch between libtool.m4 and ltmain.sh.
391
# Note: This should be in AC_LIBTOOL_SETUP, _after_ $ltmain have been defined.
392
# We also should do it _before_ AC_LIBTOOL_LANG_C_CONFIG that actually
393
# calls AC_LIBTOOL_CONFIG and creates libtool.
389
397
# Use C for the default configuration in the libtool script
391
399
AC_LIBTOOL_LANG_C_CONFIG
393
401
])# AC_LIBTOOL_SETUP
406
AC_DEFUN([_LT_VERSION_CHECK],
407
[AC_MSG_CHECKING([for correct ltmain.sh version])
408
if test "x$ltmain" = "x" ; then
412
*** @<:@Gentoo@:>@ sanity check failed! ***
413
*** \$ltmain is not defined, please check the patch for consistency! ***
416
gentoo_lt_version="1.5.24"
417
gentoo_ltmain_version=`sed -n '/^[[ ]]*VERSION=/{s/^[[ ]]*VERSION=//;p;q;}' "$ltmain"`
418
if test "x$gentoo_lt_version" != "x$gentoo_ltmain_version" ; then
422
*** @<:@Gentoo@:>@ sanity check failed! ***
423
*** libtool.m4 and ltmain.sh have a version mismatch! ***
424
*** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) ***
428
libtoolize --copy --force
430
if appropriate, please contact the maintainer of this
431
package (or your distribution) for help.
436
])# _LT_VERSION_CHECK
396
439
# _LT_AC_SYS_COMPILER
397
440
# -------------------
398
441
AC_DEFUN([_LT_AC_SYS_COMPILER],
430
473
# Check for compiler boilerplate output or warnings with
431
474
# the simple compiler test code.
432
475
AC_DEFUN([_LT_COMPILER_BOILERPLATE],
433
[ac_outfile=conftest.$ac_objext
434
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
476
[AC_REQUIRE([LT_AC_PROG_SED])dnl
477
ac_outfile=conftest.$ac_objext
478
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
435
479
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
436
480
_lt_compiler_boilerplate=`cat conftest.err`
443
487
# Check for linker boilerplate output or warnings with
444
488
# the simple link test code.
445
489
AC_DEFUN([_LT_LINKER_BOILERPLATE],
446
[ac_outfile=conftest.$ac_objext
447
printf "$lt_simple_link_test_code" >conftest.$ac_ext
490
[AC_REQUIRE([LT_AC_PROG_SED])dnl
491
ac_outfile=conftest.$ac_objext
492
echo "$lt_simple_link_test_code" >conftest.$ac_ext
448
493
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
449
494
_lt_linker_boilerplate=`cat conftest.err`
460
505
# If we don't find anything, use the default library path according
461
506
# to the aix ld manual.
462
507
AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
463
[AC_LINK_IFELSE(AC_LANG_PROGRAM,[
464
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
508
[AC_REQUIRE([LT_AC_PROG_SED])dnl
509
AC_LINK_IFELSE(AC_LANG_PROGRAM,[
511
/Import File Strings/,/^$/ {
517
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
466
518
# Check for a 64-bit object if we didn't find anything.
467
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
519
if test -z "$aix_libpath"; then
520
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
469
522
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
470
523
])# _LT_AC_SYS_LIBPATH_AIX
699
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
752
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
753
s390*-*linux*|sparc*-*linux*)
700
754
# Find out which ABI we are using.
701
755
echo 'int i;' > conftest.$ac_ext
702
756
if AC_TRY_EVAL(ac_compile); then
703
757
case `/usr/bin/file conftest.o` in
760
x86_64-*kfreebsd*-gnu)
761
LD="${LD-ld} -m elf_i386_fbsd"
707
764
LD="${LD-ld} -m elf_i386"
790
850
AC_CACHE_CHECK([$1], [$2],
792
852
ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
793
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
853
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
794
854
lt_compiler_flag="$3"
795
855
# Insert the option either (1) after the last *FLAGS variable, or
796
856
# (2) before a word containing "conftest.", or (3) at the end.
831
891
# ------------------------------------------------------------
832
892
# Check whether the given compiler option works
833
893
AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
834
[AC_CACHE_CHECK([$1], [$2],
894
[AC_REQUIRE([LT_AC_PROG_SED])dnl
895
AC_CACHE_CHECK([$1], [$2],
836
897
save_LDFLAGS="$LDFLAGS"
837
898
LDFLAGS="$LDFLAGS $3"
838
printf "$lt_simple_link_test_code" > conftest.$ac_ext
899
echo "$lt_simple_link_test_code" > conftest.$ac_ext
839
900
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
840
901
# The linker can only warn and ignore the option if not recognized
841
902
# So say no if there are warnings
952
# If test is not a shell built-in, we'll probably end up computing a
953
# maximum length that is only half of the actual maximum length, but
955
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
956
while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
1013
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
1014
if test -n "$lt_cv_sys_max_cmd_len"; then
1015
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
1016
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
1018
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
1019
while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
957
1020
= "XX$teststring") >/dev/null 2>&1 &&
958
new_result=`expr "X$teststring" : ".*" 2>&1` &&
959
lt_cv_sys_max_cmd_len=$new_result &&
960
test $i != 17 # 1/2 MB should be enough
963
teststring=$teststring$teststring
966
# Add a significant safety factor because C++ compilers can tack on massive
967
# amounts of additional arguments before passing them to the linker.
968
# It appears as though 1/2 is a usable value.
969
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
1021
new_result=`expr "X$teststring" : ".*" 2>&1` &&
1022
lt_cv_sys_max_cmd_len=$new_result &&
1023
test $i != 17 # 1/2 MB should be enough
1026
teststring=$teststring$teststring
1029
# Add a significant safety factor because C++ compilers can tack on massive
1030
# amounts of additional arguments before passing them to the linker.
1031
# It appears as though 1/2 is a usable value.
1032
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
1193
1257
# ---------------------------------
1194
1258
# Check to see if options -c and -o are simultaneously supported by compiler
1195
1259
AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
1196
[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
1260
[AC_REQUIRE([LT_AC_PROG_SED])dnl
1261
AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
1197
1262
AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
1198
1263
[_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
1199
1264
[_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
1358
1424
# -----------------------------
1359
1425
# PORTME Fill in your ld.so characteristics
1360
1426
AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
1361
[AC_MSG_CHECKING([dynamic linker characteristics])
1427
[AC_REQUIRE([LT_AC_PROG_SED])dnl
1428
AC_MSG_CHECKING([dynamic linker characteristics])
1362
1429
library_names_spec=
1363
1430
libname_spec='lib$name'
1372
1439
version_type=none
1373
1440
dynamic_linker="$host_os ld.so"
1374
1441
sys_lib_dlsearch_path_spec="/lib /usr/lib"
1375
1443
if test "$GCC" = yes; then
1376
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1377
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
1445
darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
1446
*) lt_awk_arg="/^libraries:/" ;;
1448
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1449
if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
1378
1450
# if the path contains ";" then we assume it to be the separator
1379
1451
# otherwise default to the standard path separator (i.e. ":") - it is
1380
1452
# assumed that no part of a normal pathname contains ";" but that should
1381
1453
# okay in the real world where ";" in dirpaths is itself problematic.
1382
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
1454
lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
1384
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1456
lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1458
# Ok, now we have the path, separated by spaces, we can step through it
1459
# and add multilib dir if necessary.
1460
lt_tmp_lt_search_path_spec=
1461
lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
1462
for lt_sys_path in $lt_search_path_spec; do
1463
if test -d "$lt_sys_path/$lt_multi_os_dir"; then
1464
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
1466
test -d "$lt_sys_path" && \
1467
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
1470
lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
1471
BEGIN {RS=" "; FS="/|\n";} {
1474
for (lt_i = NF; lt_i > 0; lt_i--) {
1475
if ($lt_i != "" && $lt_i != ".") {
1476
if ($lt_i == "..") {
1479
if (lt_count == 0) {
1480
lt_foo="/" $lt_i lt_foo;
1487
if (lt_foo != "") { lt_freq[[lt_foo]]++; }
1488
if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
1490
sys_lib_search_path_spec=`echo $lt_search_path_spec`
1387
1492
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
1389
1494
need_lib_prefix=unknown
1390
1495
hardcode_into_libs=no
1542
1647
shlibpath_overrides_runpath=yes
1543
1648
shlibpath_var=DYLD_LIBRARY_PATH
1544
1649
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
1545
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
1546
if test "$GCC" = yes; then
1547
sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
1549
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
1651
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
1551
1652
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
1564
1665
dynamic_linker=no
1571
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1572
soname_spec='${libname}${release}${shared_ext}$major'
1573
shlibpath_var=LD_LIBRARY_PATH
1574
shlibpath_overrides_runpath=no
1575
hardcode_into_libs=yes
1576
dynamic_linker='GNU ld.so'
1579
1668
freebsd* | dragonfly*)
1580
1669
# DragonFly does not have aout. When/if they implement a new
1581
1670
# versioning mechanism, adjust this.
1748
1850
# Append ld.so.conf contents to the search path
1749
1851
if test -f /etc/ld.so.conf; then
1750
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
1852
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
1751
1853
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
1760
1862
dynamic_linker='GNU/Linux ld.so'
1767
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1768
soname_spec='${libname}${release}${shared_ext}$major'
1769
shlibpath_var=LD_LIBRARY_PATH
1770
shlibpath_overrides_runpath=no
1771
hardcode_into_libs=yes
1772
dynamic_linker='GNU ld.so'
1776
1866
version_type=sunos
1777
1867
need_lib_prefix=no
1958
2052
# _LT_AC_TAGCONFIG
1959
2053
# ----------------
1960
2054
AC_DEFUN([_LT_AC_TAGCONFIG],
1961
[AC_ARG_WITH([tags],
2055
[AC_REQUIRE([LT_AC_PROG_SED])dnl
1962
2057
[AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
1963
2058
[include additional configurations @<:@automatic@:>@])],
1964
2059
[tagnames="$withval"])
2220
2315
# AC_PATH_TOOL_PREFIX
2221
2316
# -------------------
2222
# find a file program which can recognise shared library
2317
# find a file program which can recognize shared library
2223
2318
AC_DEFUN([AC_PATH_TOOL_PREFIX],
2224
2319
[AC_REQUIRE([AC_PROG_EGREP])dnl
2225
2320
AC_MSG_CHECKING([for $1])
2283
2378
# AC_PATH_MAGIC
2284
2379
# -------------
2285
# find a file program which can recognise a shared library
2380
# find a file program which can recognize a shared library
2286
2381
AC_DEFUN([AC_PATH_MAGIC],
2287
2382
[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
2288
2383
if test -z "$lt_cv_path_MAGIC_CMD"; then
2429
2524
# how to check for library dependencies
2430
2525
# -- PORTME fill in with the dynamic library characteristics
2431
2526
AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
2432
[AC_CACHE_CHECK([how to recognise dependent libraries],
2527
[AC_CACHE_CHECK([how to recognize dependent libraries],
2433
2528
lt_cv_deplibs_check_method,
2434
2529
[lt_cv_file_magic_cmd='$MAGIC_CMD'
2435
2530
lt_cv_file_magic_test_file=
2469
2564
mingw* | pw32*)
2470
2565
# Base MSYS/MinGW do not provide the 'file' command needed by
2471
# func_win32_libid shell function, so use a weaker test based on 'objdump'.
2472
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2473
lt_cv_file_magic_cmd='$OBJDUMP -f'
2566
# func_win32_libid shell function, so use a weaker test based on 'objdump',
2567
# unless we find 'file', for example because we are cross-compiling.
2568
if ( file / ) >/dev/null 2>&1; then
2569
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
2570
lt_cv_file_magic_cmd='func_win32_libid'
2572
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2573
lt_cv_file_magic_cmd='$OBJDUMP -f'
2476
2577
darwin* | rhapsody*)
2477
2578
lt_cv_deplibs_check_method=pass_all
2480
freebsd* | kfreebsd*-gnu | dragonfly*)
2581
freebsd* | dragonfly*)
2481
2582
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2482
2583
case $host_cpu in
2617
2722
lt_cv_path_NM="$NM"
2619
2724
lt_nm_to_check="${ac_tool_prefix}nm"
2620
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
2725
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
2621
2726
lt_nm_to_check="$lt_nm_to_check nm"
2623
2728
for lt_tmp_nm in $lt_nm_to_check; do
2833
2938
_LT_AC_TAGVAR(objext, $1)=$objext
2835
2940
# Code to be used in simple compile tests
2836
lt_simple_compile_test_code="int some_variable = 0;\n"
2941
lt_simple_compile_test_code="int some_variable = 0;"
2838
2943
# Code to be used in simple link tests
2839
lt_simple_link_test_code='int main(){return(0);}\n'
2944
lt_simple_link_test_code='int main(){return(0);}'
2841
2946
_LT_AC_SYS_COMPILER
2938
3043
_LT_AC_TAGVAR(objext, $1)=$objext
2940
3045
# Code to be used in simple compile tests
2941
lt_simple_compile_test_code="int some_variable = 0;\n"
3046
lt_simple_compile_test_code="int some_variable = 0;"
2943
3048
# Code to be used in simple link tests
2944
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n'
3049
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
2946
3051
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
2947
3052
_LT_AC_SYS_COMPILER
3087
3192
strings "$collect2name" | grep resolve_lib_name >/dev/null
3089
3194
# We have reworked collect2
3090
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
3092
3197
# We have old collect2
3093
3198
_LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
3246
3351
case $cc_basename in
3248
3353
output_verbose_link_cmd='echo'
3249
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
3354
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
3250
3355
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3251
3356
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3252
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3357
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3253
3358
_LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3284
3389
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3286
freebsd* | kfreebsd*-gnu | dragonfly*)
3391
freebsd* | dragonfly*)
3287
3392
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
3289
3394
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
3522
3625
# dependencies.
3523
3626
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
3629
case `$CC -V 2>&1 | sed 5q` in
3632
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
3633
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3634
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
3635
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3636
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
3638
# Not sure whether something based on
3639
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
3641
output_verbose_link_cmd='echo'
3643
# Archives containing C++ object files must be created using
3644
# "CC -xar", where "CC" is the Sun C++ compiler. This is
3645
# necessary to make sure instantiated templates are included
3647
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
3560
3686
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3563
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
3564
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3565
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3566
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3567
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3568
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
3569
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3570
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3689
if test -f /usr/libexec/ld.so; then
3690
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
3691
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3692
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3693
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3694
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3695
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
3696
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3697
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3699
output_verbose_link_cmd='echo'
3701
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3572
output_verbose_link_cmd='echo'
3575
3705
case $cc_basename in
3731
3861
case $host_os in
3732
3862
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
3734
# The C++ compiler is used as linker so we must use $wl
3735
# flag to pass the commands to the underlying system
3736
# linker. We must also pass each convience library through
3737
# to the system linker between allextract/defaultextract.
3738
# The C++ compiler will combine linker options so we
3739
# cannot just pass the convience library names through
3864
# The compiler driver will combine and reorder linker options,
3865
# but understands `-z linker_flag'.
3741
3866
# Supported since Solaris 2.6 (maybe 2.5.1?)
3742
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
3867
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
3745
3870
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4029
4160
# PORTME: override above test on systems where it is broken
4030
4161
ifelse([$1],[CXX],
4031
4162
[case $host_os in
4033
4164
# Interix 3.5 installs completely hosed .la files for C++, so rather than
4034
4165
# hack all around it, let's just trust "g++" to DTRT.
4035
4166
_LT_AC_TAGVAR(predep_objects,$1)=
4037
4168
_LT_AC_TAGVAR(postdeps,$1)=
4172
case `$CC -V 2>&1 | sed 5q` in
4176
# The more standards-conforming stlport4 library is
4177
# incompatible with the Cstd library. Avoid specifying
4178
# it if it's in CXXFLAGS. Ignore libCrun as
4179
# -library=stlport4 depends on it.
4180
case " $CXX $CXXFLAGS " in
4181
*" -library=stlport4 "*)
4182
solaris_use_stlport4=yes
4185
if test "$solaris_use_stlport4" != yes; then
4186
_LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
4041
4193
case $cc_basename in
4195
# The more standards-conforming stlport4 library is
4196
# incompatible with the Cstd library. Avoid specifying
4197
# it if it's in CXXFLAGS. Ignore libCrun as
4198
# -library=stlport4 depends on it.
4199
case " $CXX $CXXFLAGS " in
4200
*" -library=stlport4 "*)
4201
solaris_use_stlport4=yes
4043
4205
# Adding this requires a known-good setup of shared libraries for
4044
4206
# Sun compiler versions before 5.6, else PIC objects from an old
4045
4207
# archive will be linked into the output, leading to subtle bugs.
4046
_LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
4208
if test "$solaris_use_stlport4" != yes; then
4209
_LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
4092
4256
_LT_AC_TAGVAR(objext, $1)=$objext
4094
4258
# Code to be used in simple compile tests
4095
lt_simple_compile_test_code=" subroutine t\n return\n end\n"
4259
lt_simple_compile_test_code="\
4097
4265
# Code to be used in simple link tests
4098
lt_simple_link_test_code=" program t\n end\n"
4266
lt_simple_link_test_code="\
4100
4271
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4101
4272
_LT_AC_SYS_COMPILER
4174
4345
_LT_AC_TAGVAR(objext, $1)=$objext
4176
4347
# Code to be used in simple compile tests
4177
lt_simple_compile_test_code="class foo {}\n"
4348
lt_simple_compile_test_code="class foo {}"
4179
4350
# Code to be used in simple link tests
4180
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
4351
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
4182
4353
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4183
4354
_LT_AC_SYS_COMPILER
4230
4401
_LT_AC_TAGVAR(objext, $1)=$objext
4232
4403
# Code to be used in simple compile tests
4233
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
4404
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
4235
4406
# Code to be used in simple link tests
4236
4407
lt_simple_link_test_code="$lt_simple_compile_test_code"
4319
4490
_LT_AC_TAGVAR(module_cmds, $1) \
4320
4491
_LT_AC_TAGVAR(module_expsym_cmds, $1) \
4321
4492
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
4493
_LT_AC_TAGVAR(fix_srcfile_path, $1) \
4322
4494
_LT_AC_TAGVAR(exclude_expsyms, $1) \
4323
4495
_LT_AC_TAGVAR(include_expsyms, $1); do
4365
4537
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
4366
4538
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
4368
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
4540
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
4369
4541
# Free Software Foundation, Inc.
4371
4543
# This file is part of GNU Libtool:
4690
4862
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
4692
4864
# Fix the shell variable \$srcfile for the compiler.
4693
fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
4865
fix_srcfile_path=$lt_fix_srcfile_path
4695
4867
# Set to yes if exported symbols are required.
4696
4868
always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
4773
4945
# ---------------------------------
4774
4946
AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
4775
4947
[AC_REQUIRE([AC_CANONICAL_HOST])
4948
AC_REQUIRE([LT_AC_PROG_SED])
4776
4949
AC_REQUIRE([AC_PROG_NM])
4777
4950
AC_REQUIRE([AC_OBJEXT])
4778
4951
# Check for command to grab the raw symbol name followed by C symbol from nm.
4809
4982
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4810
4983
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
4985
linux* | k*bsd*-gnu)
4813
4986
if test "$host_cpu" = ia64; then
4814
4987
symcode='[[ABCDGIRSTW]]'
4815
4988
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4999
5172
# like `-m68040'.
5000
5173
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
5002
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5175
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5003
5176
# PIC is the default for these OSes.
5005
mingw* | os2* | pw32*)
5178
mingw* | cygwin* | os2* | pw32*)
5006
5179
# This hack is so that the source file can tell whether it is being
5007
5180
# built for inclusion in a dll (and should export symbols for example).
5181
# Although the cygwin gcc ignores -fPIC, still need this for old-style
5182
# (--disable-auto-import) libraries
5008
5183
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
5010
5185
darwin* | rhapsody*)
5016
5191
# DJGPP does not support shared libraries at all
5017
5192
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5020
5195
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
5021
5196
# Instead, we relocate shared libraries at runtime.
5152
5327
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5330
case `$CC -V 2>&1 | sed 5q` in
5333
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5334
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5335
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5272
5455
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
5275
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5458
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5276
5459
# PIC is the default for these OSes.
5279
mingw* | pw32* | os2*)
5462
mingw* | cygwin* | pw32* | os2*)
5280
5463
# This hack is so that the source file can tell whether it is being
5281
5464
# built for inclusion in a dll (and should export symbols for example).
5465
# Although the cygwin gcc ignores -fPIC, still need this for old-style
5466
# (--disable-auto-import) libraries
5282
5467
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
5398
5583
# All Alpha code is PIC.
5399
5584
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5587
case `$CC -V 2>&1 | sed 5q` in
5590
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5591
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5592
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5595
# Sun Fortran 8.3 passes all unrecognized flags to the linker
5596
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5597
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5598
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=''
5407
5608
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5612
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5411
5616
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5412
5617
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5501
5706
# ------------------------------------
5502
5707
# See if the linker supports building shared libraries.
5503
5708
AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
5504
[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5709
[AC_REQUIRE([LT_AC_PROG_SED])dnl
5710
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5505
5711
ifelse([$1],[CXX],[
5506
5712
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5507
5713
case $host_os in
5518
5724
_LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
5520
5726
cygwin* | mingw*)
5521
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([[^ ]]*\) [[^ ]]*/\1 DATA/;/^I /d;/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
5727
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
5524
5730
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5657
5863
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5658
5864
_LT_AC_TAGVAR(always_export_symbols, $1)=no
5659
5865
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5660
_LT_AC_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'
5866
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
5662
5868
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
5663
5869
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5690
5896
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
5899
gnu* | linux* | k*bsd*-gnu)
5694
5900
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5696
5902
case $cc_basename,$host_cpu in
5708
5914
ifc* | ifort*) # Intel Fortran compiler
5709
5915
tmp_addflag=' -nofor_main' ;;
5711
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5917
case `$CC -V 2>&1 | sed 5q` in
5918
*Sun\ C*) # Sun C 5.9
5919
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
5920
tmp_sharedflag='-G' ;;
5921
*Sun\ F*) # Sun Fortran 8.3
5922
tmp_sharedflag='-G' ;;
5924
tmp_sharedflag='-shared' ;;
5926
_LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5713
5928
if test $supports_anon_versioning = yes; then
5714
5929
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
5715
5930
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5716
5931
$echo "local: *; };" >> $output_objdir/$libname.ver~
5717
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5932
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5720
5935
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5873
6088
strings "$collect2name" | grep resolve_lib_name >/dev/null
5875
6090
# We have reworked collect2
5876
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
5878
6093
# We have old collect2
5879
6094
_LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
5966
6181
# The linker will automatically build a .lib file if we build a DLL.
5967
6182
_LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
5968
6183
# FIXME: Should let the user specify the lib program.
5969
_LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
6184
_LT_AC_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
5970
6185
_LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
5971
6186
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6008
6223
case $cc_basename in
6010
6225
output_verbose_link_cmd='echo'
6011
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
6226
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
6012
6227
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6013
6228
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
6014
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6229
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6015
6230
_LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6053
6268
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6054
freebsd* | kfreebsd*-gnu | dragonfly*)
6269
freebsd* | dragonfly*)
6055
6270
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6056
6271
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6057
6272
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6176
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6177
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6178
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6179
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6180
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
6181
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6182
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6391
if test -f /usr/libexec/ld.so; then
6392
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6393
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6394
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6395
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6396
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
6397
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6398
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6401
openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
6402
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6403
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6406
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6407
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6185
openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
6186
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6187
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6190
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6191
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6412
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6249
6468
case $host_os in
6250
6469
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6252
# The compiler driver will combine linker options so we
6253
# cannot just pass the convience library names through
6254
# without $wl, iff we do not link with $LD.
6255
# Luckily, gcc supports the same syntax we need for Sun Studio.
6471
# The compiler driver will combine and reorder linker options,
6472
# but understands `-z linker_flag'. GCC discards it without `$wl',
6473
# but is careful enough not to reorder.
6256
6474
# Supported since Solaris 2.6 (maybe 2.5.1?)
6259
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
6261
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
6475
if test "$GCC" = yes; then
6476
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
6478
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
6264
6482
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6319
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*)
6537
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
6320
6538
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6321
6539
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6322
6540
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6391
6609
# to ld, don't add -lc before -lgcc.
6392
6610
AC_MSG_CHECKING([whether -lc should be explicitly linked in])
6394
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6612
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6396
6614
if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
6397
6615
soname=conftest
6494
6712
[AC_CHECK_TOOL(RC, windres, no)
6716
# Cheap backport of AS_EXECUTABLE_P and required macros
6717
# from Autoconf 2.59; we should not use $as_executable_p directly.
6721
m4_ifndef([_AS_TEST_PREPARE],
6722
[m4_defun([_AS_TEST_PREPARE],
6723
[if test -x / >/dev/null 2>&1; then
6724
as_executable_p='test -x'
6726
as_executable_p='test -f'
6728
])])# _AS_TEST_PREPARE
6732
# Check whether a file is executable.
6733
m4_ifndef([AS_EXECUTABLE_P],
6734
[m4_defun([AS_EXECUTABLE_P],
6735
[AS_REQUIRE([_AS_TEST_PREPARE])dnl
6736
$as_executable_p $1[]dnl
6737
])])# AS_EXECUTABLE_P
6497
6739
# NOTE: This macro has been submitted for inclusion into #
6498
6740
# GNU Autoconf as AC_PROG_SED. When it is available in #
6499
6741
# a released version of Autoconf we should remove this #
6514
6756
test -z "$as_dir" && as_dir=.
6515
6757
for lt_ac_prog in sed gsed; do
6516
6758
for ac_exec_ext in '' $ac_executable_extensions; do
6517
if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
6759
if AS_EXECUTABLE_P(["$as_dir/$lt_ac_prog$ac_exec_ext"]); then
6518
6760
lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6525
6768
# Add /usr/xpg4/bin/sed as it is typically found on Solaris