898 # AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, |
901 # AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, |
899 # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) |
902 # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) |
900 # ---------------------------------------------------------------- |
903 # ---------------------------------------------------------------- |
901 # Check whether the given compiler option works |
904 # Check whether the given compiler option works |
902 AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], |
905 AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], |
903 [AC_CACHE_CHECK([$1], [$2], |
906 [AC_REQUIRE([LT_AC_PROG_SED]) |
|
907 AC_CACHE_CHECK([$1], [$2], |
904 [$2=no |
908 [$2=no |
905 ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) |
909 ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) |
906 printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
910 printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
907 lt_compiler_flag="$3" |
911 lt_compiler_flag="$3" |
908 # Insert the option either (1) after the last *FLAGS variable, or |
912 # Insert the option either (1) after the last *FLAGS variable, or |
1003 # Instead, let's just punt: use the minimum linelength reported by |
1007 # Instead, let's just punt: use the minimum linelength reported by |
1004 # all of the supported platforms: 8192 (on NT/2K/XP). |
1008 # all of the supported platforms: 8192 (on NT/2K/XP). |
1005 lt_cv_sys_max_cmd_len=8192; |
1009 lt_cv_sys_max_cmd_len=8192; |
1006 ;; |
1010 ;; |
1007 |
1011 |
|
1012 amigaos*) |
|
1013 # On AmigaOS with pdksh, this test takes hours, literally. |
|
1014 # So we just punt and use a minimum line length of 8192. |
|
1015 lt_cv_sys_max_cmd_len=8192; |
|
1016 ;; |
|
1017 |
|
1018 netbsd* | freebsd* | openbsd* | darwin* ) |
|
1019 # This has been around since 386BSD, at least. Likely further. |
|
1020 if test -x /sbin/sysctl; then |
|
1021 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
|
1022 elif test -x /usr/sbin/sysctl; then |
|
1023 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
|
1024 else |
|
1025 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD |
|
1026 fi |
|
1027 # And add a safety zone |
|
1028 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
|
1029 ;; |
|
1030 |
1008 *) |
1031 *) |
1009 # If test is not a shell built-in, we'll probably end up computing a |
1032 # If test is not a shell built-in, we'll probably end up computing a |
1010 # maximum length that is only half of the actual maximum length, but |
1033 # maximum length that is only half of the actual maximum length, but |
1011 # we can't tell. |
1034 # we can't tell. |
1012 while (test "X"`$CONFIG_SHELL [$]0 --fallback-echo "X$testring" 2>/dev/null` \ |
1035 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
1013 = "XX$testring") >/dev/null 2>&1 && |
1036 while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \ |
1014 new_result=`expr "X$testring" : ".*" 2>&1` && |
1037 = "XX$teststring") >/dev/null 2>&1 && |
|
1038 new_result=`expr "X$teststring" : ".*" 2>&1` && |
1015 lt_cv_sys_max_cmd_len=$new_result && |
1039 lt_cv_sys_max_cmd_len=$new_result && |
1016 test $i != 17 # 1/2 MB should be enough |
1040 test $i != 17 # 1/2 MB should be enough |
1017 do |
1041 do |
1018 i=`expr $i + 1` |
1042 i=`expr $i + 1` |
1019 testring=$testring$testring |
1043 teststring=$teststring$teststring |
1020 done |
1044 done |
1021 testring= |
1045 teststring= |
1022 # Add a significant safety factor because C++ compilers can tack on massive |
1046 # Add a significant safety factor because C++ compilers can tack on massive |
1023 # amounts of additional arguments before passing them to the linker. |
1047 # amounts of additional arguments before passing them to the linker. |
1024 # It appears as though 1/2 is a usable value. |
1048 # It appears as though 1/2 is a usable value. |
1025 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
1049 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
1026 ;; |
1050 ;; |
1345 # Check hardcoding attributes. |
1365 # Check hardcoding attributes. |
1346 AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], |
1366 AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], |
1347 [AC_MSG_CHECKING([how to hardcode library paths into programs]) |
1367 [AC_MSG_CHECKING([how to hardcode library paths into programs]) |
1348 _LT_AC_TAGVAR(hardcode_action, $1)= |
1368 _LT_AC_TAGVAR(hardcode_action, $1)= |
1349 if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \ |
1369 if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \ |
1350 test -n "$_LT_AC_TAGVAR(runpath_var $1)" || \ |
1370 test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \ |
1351 test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)"="Xyes" ; then |
1371 test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then |
1352 |
1372 |
1353 # We can hardcode non-existant directories. |
1373 # We can hardcode non-existant directories. |
1354 if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no && |
1374 if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no && |
1355 # If the only mechanism to avoid hardcoding is shlibpath_var, we |
1375 # If the only mechanism to avoid hardcoding is shlibpath_var, we |
1356 # have to relink, otherwise we might link with an installed library |
1376 # have to relink, otherwise we might link with an installed library |
1592 darwin* | rhapsody*) |
1612 darwin* | rhapsody*) |
1593 dynamic_linker="$host_os dyld" |
1613 dynamic_linker="$host_os dyld" |
1594 version_type=darwin |
1614 version_type=darwin |
1595 need_lib_prefix=no |
1615 need_lib_prefix=no |
1596 need_version=no |
1616 need_version=no |
1597 # FIXME: Relying on posixy $() will cause problems for |
|
1598 # cross-compilation, but unfortunately the echo tests do not |
|
1599 # yet detect zsh echo's removal of \ escapes. |
|
1600 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
1617 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
1601 soname_spec='${libname}${release}${major}$shared_ext' |
1618 soname_spec='${libname}${release}${major}$shared_ext' |
1602 shlibpath_overrides_runpath=yes |
1619 shlibpath_overrides_runpath=yes |
1603 shlibpath_var=DYLD_LIBRARY_PATH |
1620 shlibpath_var=DYLD_LIBRARY_PATH |
1604 shrext='$(test .$module = .yes && echo .so || echo .dylib)' |
1621 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' |
1605 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
1622 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
1606 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then |
1623 if test "$GCC" = yes; then |
1607 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"` |
1624 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"` |
|
1625 else |
|
1626 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
1608 fi |
1627 fi |
1609 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
1628 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
1610 ;; |
1629 ;; |
1611 |
1630 |
1612 dgux*) |
1631 dgux*) |
1683 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
1714 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
1684 fi |
1715 fi |
1685 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
1716 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
1686 ;; |
1717 ;; |
1687 hppa*64*) |
1718 hppa*64*) |
1688 shrext='.sl' |
1719 shrext_cmds='.sl' |
1689 hardcode_into_libs=yes |
1720 hardcode_into_libs=yes |
1690 dynamic_linker="$host_os dld.sl" |
1721 dynamic_linker="$host_os dld.sl" |
1691 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
1722 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
1692 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
1723 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
1693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
1724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
1694 soname_spec='${libname}${release}${shared_ext}$major' |
1725 soname_spec='${libname}${release}${shared_ext}$major' |
1695 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
1726 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
1696 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
1727 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
1697 ;; |
1728 ;; |
1698 *) |
1729 *) |
1699 shrext='.sl' |
1730 shrext_cmds='.sl' |
1700 dynamic_linker="$host_os dld.sl" |
1731 dynamic_linker="$host_os dld.sl" |
1701 shlibpath_var=SHLIB_PATH |
1732 shlibpath_var=SHLIB_PATH |
1702 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
1733 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
1703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
1734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
1704 soname_spec='${libname}${release}${shared_ext}$major' |
1735 soname_spec='${libname}${release}${shared_ext}$major' |
1763 # This implies no fast_install, which is unacceptable. |
1794 # This implies no fast_install, which is unacceptable. |
1764 # Some rework will be needed to allow for fast_install |
1795 # Some rework will be needed to allow for fast_install |
1765 # before this can be enabled. |
1796 # before this can be enabled. |
1766 hardcode_into_libs=yes |
1797 hardcode_into_libs=yes |
1767 |
1798 |
|
1799 # Append ld.so.conf contents to the search path |
|
1800 if test -f /etc/ld.so.conf; then |
|
1801 lt_ld_extra=`$SED -e 's/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g' /etc/ld.so.conf | tr '\n' ' '` |
|
1802 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
|
1803 fi |
|
1804 |
1768 # We used to test for /lib/ld.so.1 and disable shared libraries on |
1805 # We used to test for /lib/ld.so.1 and disable shared libraries on |
1769 # powerpc, because MkLinux only supported shared libraries with the |
1806 # powerpc, because MkLinux only supported shared libraries with the |
1770 # GNU dynamic linker. Since this was broken with cross compilers, |
1807 # GNU dynamic linker. Since this was broken with cross compilers, |
1771 # most powerpc-linux boxes support dynamic linking these days and |
1808 # most powerpc-linux boxes support dynamic linking these days and |
1772 # people can always --disable-shared, the test was removed, and we |
1809 # people can always --disable-shared, the test was removed, and we |
1773 # assume the GNU/Linux dynamic linker is in use. |
1810 # assume the GNU/Linux dynamic linker is in use. |
1774 dynamic_linker='GNU/Linux ld.so' |
1811 dynamic_linker='GNU/Linux ld.so' |
|
1812 ;; |
|
1813 |
|
1814 knetbsd*-gnu) |
|
1815 version_type=linux |
|
1816 need_lib_prefix=no |
|
1817 need_version=no |
|
1818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
|
1819 soname_spec='${libname}${release}${shared_ext}$major' |
|
1820 shlibpath_var=LD_LIBRARY_PATH |
|
1821 shlibpath_overrides_runpath=no |
|
1822 hardcode_into_libs=yes |
|
1823 dynamic_linker='GNU ld.so' |
1775 ;; |
1824 ;; |
1776 |
1825 |
1777 netbsd*) |
1826 netbsd*) |
1778 version_type=sunos |
1827 version_type=sunos |
1779 need_lib_prefix=no |
1828 need_lib_prefix=no |
2416 |
2472 |
2417 beos*) |
2473 beos*) |
2418 lt_cv_deplibs_check_method=pass_all |
2474 lt_cv_deplibs_check_method=pass_all |
2419 ;; |
2475 ;; |
2420 |
2476 |
2421 bsdi4*) |
2477 bsdi[[45]]*) |
2422 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)' |
2478 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)' |
2423 lt_cv_file_magic_cmd='/usr/bin/file -L' |
2479 lt_cv_file_magic_cmd='/usr/bin/file -L' |
2424 lt_cv_file_magic_test_file=/shlib/libc.so |
2480 lt_cv_file_magic_test_file=/shlib/libc.so |
2425 ;; |
2481 ;; |
2426 |
2482 |
2427 cygwin* | mingw* | pw32*) |
2483 cygwin*) |
2428 # win32_libid is a shell function defined in ltmain.sh |
2484 # func_win32_libid is a shell function defined in ltmain.sh |
2429 #lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
2485 #lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
2430 lt_cv_deplibs_check_method=pass_all |
2486 lt_cv_deplibs_check_method=pass_all |
2431 lt_cv_file_magic_cmd='win32_libid' |
2487 lt_cv_file_magic_cmd='func_win32_libid' |
|
2488 ;; |
|
2489 |
|
2490 mingw* | pw32*) |
|
2491 # Base MSYS/MinGW do not provide the 'file' command needed by |
|
2492 # func_win32_libid shell function, so use a weaker test based on 'objdump'. |
|
2493 #lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
|
2494 lt_cv_deplibs_check_method=pass_all |
|
2495 lt_cv_file_magic_cmd='$OBJDUMP -f' |
2432 ;; |
2496 ;; |
2433 |
2497 |
2434 darwin* | rhapsody*) |
2498 darwin* | rhapsody*) |
2435 # this will be overwritten by pass_all, but leave it in just in case |
|
2436 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' |
|
2437 lt_cv_file_magic_cmd='/usr/bin/file -L' |
|
2438 case "$host_os" in |
|
2439 rhapsody* | darwin1.[[012]]) |
|
2440 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System` |
|
2441 ;; |
|
2442 *) # Darwin 1.3 on |
|
2443 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' |
|
2444 ;; |
|
2445 esac |
|
2446 lt_cv_deplibs_check_method=pass_all |
2499 lt_cv_deplibs_check_method=pass_all |
2447 ;; |
2500 ;; |
2448 |
2501 |
2449 freebsd*) |
2502 freebsd* | kfreebsd*-gnu) |
2450 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
2503 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
2451 case $host_cpu in |
2504 case $host_cpu in |
2452 i*86 ) |
2505 i*86 ) |
2453 # Not sure whether the presence of OpenBSD here was a mistake. |
2506 # Not sure whether the presence of OpenBSD here was a mistake. |
2454 # Let's accept both of them until this is cleared up. |
2507 # Let's accept both of them until this is cleared up. |
2483 ;; |
2536 ;; |
2484 esac |
2537 esac |
2485 ;; |
2538 ;; |
2486 |
2539 |
2487 irix5* | irix6* | nonstopux*) |
2540 irix5* | irix6* | nonstopux*) |
2488 case $host_os in |
2541 case $LD in |
2489 irix5* | nonstopux*) |
2542 *-32|*"-32 ") libmagic=32-bit;; |
2490 # this will be overridden with pass_all, but let us keep it just in case |
2543 *-n32|*"-n32 ") libmagic=N32;; |
2491 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" |
2544 *-64|*"-64 ") libmagic=64-bit;; |
2492 ;; |
2545 *) libmagic=never-match;; |
2493 *) |
|
2494 case $LD in |
|
2495 *-32|*"-32 ") libmagic=32-bit;; |
|
2496 *-n32|*"-n32 ") libmagic=N32;; |
|
2497 *-64|*"-64 ") libmagic=64-bit;; |
|
2498 *) libmagic=never-match;; |
|
2499 esac |
|
2500 # this will be overridden with pass_all, but let us keep it just in case |
|
2501 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[[1234]] dynamic lib MIPS - version 1" |
|
2502 ;; |
|
2503 esac |
2546 esac |
2504 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` |
|
2505 lt_cv_deplibs_check_method=pass_all |
|
2506 ;; |
|
2507 |
|
2508 *qnx* | *nto*) |
|
2509 lt_cv_deplibs_check_method=pass_all |
2547 lt_cv_deplibs_check_method=pass_all |
2510 ;; |
2548 ;; |
2511 |
2549 |
2512 # This must be Linux ELF. |
2550 # This must be Linux ELF. |
2513 linux*) |
2551 linux*) |
2514 case $host_cpu in |
2552 case $host_cpu in |
2515 alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*) |
2553 alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*) |
2516 lt_cv_deplibs_check_method=pass_all ;; |
2554 lt_cv_deplibs_check_method=pass_all ;; |
2517 *) |
2555 *) |
2518 # glibc up to 2.1.1 does not perform some relocations on ARM |
2556 # glibc up to 2.1.1 does not perform some relocations on ARM |
|
2557 # this will be overridden with pass_all, but let us keep it just in case |
2519 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' ;; |
2558 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' ;; |
2520 esac |
2559 esac |
2521 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` |
2560 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` |
|
2561 lt_cv_deplibs_check_method=pass_all |
2522 ;; |
2562 ;; |
2523 |
2563 |
2524 netbsd*) |
2564 netbsd*) |
2525 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
2565 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
2526 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' |
2566 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' |
2533 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' |
2573 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' |
2534 lt_cv_file_magic_cmd=/usr/bin/file |
2574 lt_cv_file_magic_cmd=/usr/bin/file |
2535 lt_cv_file_magic_test_file=/usr/lib/libnls.so |
2575 lt_cv_file_magic_test_file=/usr/lib/libnls.so |
2536 ;; |
2576 ;; |
2537 |
2577 |
|
2578 nto-qnx*) |
|
2579 lt_cv_deplibs_check_method=unknown |
|
2580 ;; |
|
2581 |
2538 openbsd*) |
2582 openbsd*) |
2539 lt_cv_file_magic_cmd=/usr/bin/file |
|
2540 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
|
2541 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
2583 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
2542 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB shared object' |
2584 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' |
2543 else |
2585 else |
2544 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library' |
2586 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' |
2545 fi |
2587 fi |
2546 ;; |
2588 ;; |
2547 |
2589 |
2548 osf3* | osf4* | osf5*) |
2590 osf3* | osf4* | osf5*) |
2549 # this will be overridden with pass_all, but let us keep it just in case |
|
2550 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' |
|
2551 lt_cv_file_magic_test_file=/shlib/libc.so |
|
2552 lt_cv_deplibs_check_method=pass_all |
2591 lt_cv_deplibs_check_method=pass_all |
2553 ;; |
2592 ;; |
2554 |
2593 |
2555 sco3.2v5*) |
2594 sco3.2v5*) |
2556 lt_cv_deplibs_check_method=pass_all |
2595 lt_cv_deplibs_check_method=pass_all |
2557 ;; |
2596 ;; |
2558 |
2597 |
2559 solaris*) |
2598 solaris*) |
2560 lt_cv_deplibs_check_method=pass_all |
2599 lt_cv_deplibs_check_method=pass_all |
2561 lt_cv_file_magic_test_file=/lib/libc.so |
|
2562 ;; |
2600 ;; |
2563 |
2601 |
2564 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
2602 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
2565 case $host_vendor in |
2603 case $host_vendor in |
2566 motorola) |
2604 motorola) |
2771 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[], |
2809 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[], |
2772 [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[], |
2810 [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[], |
2773 [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])], |
2811 [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])], |
2774 [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])], |
2812 [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])], |
2775 [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])]) |
2813 [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])]) |
2776 _LT_AC_SHELL_INIT([tagnames=`echo "$tagnames,GCJ" | sed 's/^,//'`]) |
2814 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ]) |
2777 ])# _LT_AC_LANG_GCJ |
2815 ])# _LT_AC_LANG_GCJ |
2778 |
2816 |
2779 |
2817 |
2780 # AC_LIBTOOL_RC |
2818 # AC_LIBTOOL_RC |
2781 # -------------- |
2819 # -------------- |
2782 # enable support for Windows resource files |
2820 # enable support for Windows resource files |
2783 AC_DEFUN([AC_LIBTOOL_RC], |
2821 AC_DEFUN([AC_LIBTOOL_RC], |
2784 [AC_REQUIRE([LT_AC_PROG_RC]) |
2822 [AC_REQUIRE([LT_AC_PROG_RC]) |
2785 _LT_AC_SHELL_INIT([tagnames=`echo "$tagnames,RC" | sed 's/^,//'`]) |
2823 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC]) |
2786 ])# AC_LIBTOOL_RC |
2824 ])# AC_LIBTOOL_RC |
2787 |
2825 |
2788 |
2826 |
2789 # AC_LIBTOOL_LANG_C_CONFIG |
2827 # AC_LIBTOOL_LANG_C_CONFIG |
2790 # ------------------------ |
2828 # ------------------------ |
2872 archive_cmds="$archive_cmds~\$RANLIB \$lib" |
2910 archive_cmds="$archive_cmds~\$RANLIB \$lib" |
2873 postinstall_cmds='$RANLIB $lib' |
2911 postinstall_cmds='$RANLIB $lib' |
2874 fi |
2912 fi |
2875 ;; |
2913 ;; |
2876 |
2914 |
2877 aix4*) |
2915 aix4* | aix5*) |
2878 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
2916 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
2879 test "$enable_shared" = yes && enable_static=no |
2917 test "$enable_shared" = yes && enable_static=no |
2880 fi |
2918 fi |
2881 ;; |
2919 ;; |
2882 darwin* | rhapsody*) |
|
2883 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then |
|
2884 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
|
2885 case "$host_os" in |
|
2886 rhapsody* | darwin1.[[012]]) |
|
2887 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress' |
|
2888 ;; |
|
2889 *) # Darwin 1.3 on |
|
2890 test -z ${LD_TWOLEVEL_NAMESPACE} && _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress' |
|
2891 ;; |
|
2892 esac |
|
2893 # FIXME: Relying on posixy $() will cause problems for |
|
2894 # cross-compilation, but unfortunately the echo tests do not |
|
2895 # yet detect zsh echo's removal of \ escapes. Also zsh mangles |
|
2896 # `"' quotes if we put them in here... so don't! |
|
2897 output_verbose_link_cmd='echo' |
|
2898 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring' |
|
2899 _LT_AC_TAGVAR(module_cmds, $1)='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags' |
|
2900 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
|
2901 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
|
2902 _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
|
2903 _LT_AC_TAGVAR(hardcode_direct, $1)=no |
|
2904 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes |
|
2905 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported |
|
2906 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience' |
|
2907 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
|
2908 fi |
|
2909 ;; |
|
2910 esac |
2920 esac |
2911 AC_MSG_RESULT([$enable_shared]) |
2921 AC_MSG_RESULT([$enable_shared]) |
2912 |
2922 |
2913 AC_MSG_CHECKING([whether to build static libraries]) |
2923 AC_MSG_CHECKING([whether to build static libraries]) |
2914 # Make sure either enable_shared or enable_static is yes. |
2924 # Make sure either enable_shared or enable_static is yes. |
3181 _LT_AC_TAGVAR(ld_shlibs, $1)=no |
3191 _LT_AC_TAGVAR(ld_shlibs, $1)=no |
3182 ;; |
3192 ;; |
3183 esac |
3193 esac |
3184 ;; |
3194 ;; |
3185 |
3195 |
|
3196 |
3186 cygwin* | mingw* | pw32*) |
3197 cygwin* | mingw* | pw32*) |
3187 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, |
3198 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, |
3188 # as there is no search path for DLLs. |
3199 # as there is no search path for DLLs. |
3189 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
3200 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
3190 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported |
3201 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported |
3191 _LT_AC_TAGVAR(always_export_symbols, $1)=no |
3202 _LT_AC_TAGVAR(always_export_symbols, $1)=no |
3192 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes |
3203 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes |
3193 |
3204 |
3194 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
3205 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
|
3206 ## _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
3195 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base ${wl}--out-implib,$lib' |
3207 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base ${wl}--out-implib,$lib' |
3196 # If the export-symbols file already is a .def file (1st line |
3208 # If the export-symbols file already is a .def file (1st line |
3197 # is EXPORTS), use it as is; otherwise, prepend... |
3209 # is EXPORTS), use it as is; otherwise, prepend... |
|
3210 ## _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
|
3211 ## cp $export_symbols $output_objdir/$soname.def; |
|
3212 ## else |
|
3213 ## echo EXPORTS > $output_objdir/$soname.def; |
|
3214 ## cat $export_symbols >> $output_objdir/$soname.def; |
|
3215 ## fi~ |
|
3216 ## $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
3198 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
3217 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
3199 cp $export_symbols $output_objdir/$soname.def; |
3218 cp $export_symbols $output_objdir/$soname.def; |
3200 else |
3219 else |
3201 echo EXPORTS > $output_objdir/$soname.def; |
3220 echo EXPORTS > $output_objdir/$soname.def; |
3202 cat $export_symbols >> $output_objdir/$soname.def; |
3221 cat $export_symbols >> $output_objdir/$soname.def; |
3204 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base ${wl}--out-implib,$lib' |
3223 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base ${wl}--out-implib,$lib' |
3205 else |
3224 else |
3206 _LT_AC_TAGVAR(ld_shlibs, $1)=no |
3225 _LT_AC_TAGVAR(ld_shlibs, $1)=no |
3207 fi |
3226 fi |
3208 ;; |
3227 ;; |
3209 |
3228 darwin* | rhapsody*) |
3210 darwin* | rhapsody*) |
3229 case "$host_os" in |
3211 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then |
3230 rhapsody* | darwin1.[[012]]) |
3212 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
3231 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress' |
3213 case "$host_os" in |
3232 ;; |
3214 rhapsody* | darwin1.[[012]]) |
3233 *) # Darwin 1.3 on |
3215 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress' |
3234 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
3216 ;; |
3235 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
3217 *) # Darwin 1.3 on |
3236 else |
3218 test -z ${LD_TWOLEVEL_NAMESPACE} && _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress' |
3237 case ${MACOSX_DEPLOYMENT_TARGET} in |
3219 ;; |
3238 10.[[012]]) |
3220 esac |
3239 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
3221 lt_int_apple_cc_single_mod=no |
3240 ;; |
3222 output_verbose_link_cmd='echo' |
3241 10.*) |
3223 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then |
3242 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup' |
3224 lt_int_apple_cc_single_mod=yes |
3243 ;; |
3225 fi |
3244 esac |
3226 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
3245 fi |
3227 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
3246 ;; |
3228 else |
3247 esac |
3229 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
3248 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
|
3249 _LT_AC_TAGVAR(hardcode_direct, $1)=no |
|
3250 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes |
|
3251 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported |
|
3252 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='' |
|
3253 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
|
3254 |
|
3255 if test "$GXX" = yes ; then |
|
3256 lt_int_apple_cc_single_mod=no |
|
3257 output_verbose_link_cmd='echo' |
|
3258 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then |
|
3259 lt_int_apple_cc_single_mod=yes |
3230 fi |
3260 fi |
3231 _LT_AC_TAGVAR(module_cmds, $1)='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags' |
|
3232 |
|
3233 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
|
3234 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
3261 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
3235 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
3262 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
3236 else |
3263 else |
3237 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
3264 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
|
3265 fi |
|
3266 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
|
3267 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
|
3268 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
|
3269 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
|
3270 else |
|
3271 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
|
3272 fi |
|
3273 _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}' |
|
3274 else |
|
3275 case "$cc_basename" in |
|
3276 xlc*) |
|
3277 output_verbose_link_cmd='echo' |
|
3278 _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' |
|
3279 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
|
3280 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
|
3281 _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}' |
|
3282 _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}' |
|
3283 ;; |
|
3284 *) |
|
3285 _LT_AC_TAGVAR(ld_shlibs, $1)=no |
|
3286 ;; |
|
3287 esac |
3238 fi |
3288 fi |
3239 _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
3289 ;; |
3240 _LT_AC_TAGVAR(hardcode_direct, $1)=no |
|
3241 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes |
|
3242 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported |
|
3243 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience' |
|
3244 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
|
3245 fi |
|
3246 ;; |
|
3247 |
3290 |
3248 dgux*) |
3291 dgux*) |
3249 case $cc_basename in |
3292 case $cc_basename in |
3250 ec++) |
3293 ec++) |
3251 # FIXME: insert proper C++ library support |
3294 # FIXME: insert proper C++ library support |
3447 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' |
3490 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' |
3448 ;; |
3491 ;; |
3449 icpc) |
3492 icpc) |
3450 # Intel C++ |
3493 # Intel C++ |
3451 with_gnu_ld=yes |
3494 with_gnu_ld=yes |
|
3495 # version 8.0 and above of icpc choke on multiply defined symbols |
|
3496 # if we add $predep_objects and $postdep_objects, however 7.1 and |
|
3497 # earlier do not add the objects themselves. |
|
3498 case `$CC -V 2>&1` in |
|
3499 *"Version 7."*) |
|
3500 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
3501 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
|
3502 ;; |
|
3503 *) # Version 8.0 or newer |
|
3504 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
3505 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
|
3506 ;; |
|
3507 esac |
3452 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
3508 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
3453 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
3454 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
|
3455 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
3509 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
3456 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' |
3510 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' |
3457 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
3511 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
3458 ;; |
3512 ;; |
3459 cxx) |
3513 cxx) |
3505 _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
3559 _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
3506 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
3560 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
3507 fi |
3561 fi |
3508 # Workaround some broken pre-1.5 toolchains |
3562 # Workaround some broken pre-1.5 toolchains |
3509 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' |
3563 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' |
|
3564 ;; |
|
3565 openbsd2*) |
|
3566 # C++ shared libraries are fairly broken |
|
3567 _LT_AC_TAGVAR(ld_shlibs, $1)=no |
|
3568 ;; |
|
3569 openbsd*) |
|
3570 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
|
3571 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
|
3572 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
|
3573 _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' |
|
3574 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
|
3575 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
|
3576 fi |
|
3577 output_verbose_link_cmd='echo' |
3510 ;; |
3578 ;; |
3511 osf3*) |
3579 osf3*) |
3512 case $cc_basename in |
3580 case $cc_basename in |
3513 KCC) |
3581 KCC) |
3514 # Kuck and Associates, Inc. (KAI) C++ Compiler |
3582 # Kuck and Associates, Inc. (KAI) C++ Compiler |
4148 if test -f "$ltmain"; then |
4215 if test -f "$ltmain"; then |
4149 # See if we are running on zsh, and set the options which allow our commands through |
4216 # See if we are running on zsh, and set the options which allow our commands through |
4150 # without removal of \ escapes. |
4217 # without removal of \ escapes. |
4151 if test -n "${ZSH_VERSION+set}" ; then |
4218 if test -n "${ZSH_VERSION+set}" ; then |
4152 setopt NO_GLOB_SUBST |
4219 setopt NO_GLOB_SUBST |
4153 fi |
4220 fi |
4154 # Now quote all the things that may contain metacharacters while being |
4221 # Now quote all the things that may contain metacharacters while being |
4155 # careful not to overquote the AC_SUBSTed values. We take copies of the |
4222 # careful not to overquote the AC_SUBSTed values. We take copies of the |
4156 # variables and quote the copies for generation of the libtool script. |
4223 # variables and quote the copies for generation of the libtool script. |
4157 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \ |
4224 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ |
|
4225 SED SHELL STRIP \ |
4158 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
4226 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
4159 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
4227 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
4160 deplibs_check_method reload_flag reload_cmds need_locks \ |
4228 deplibs_check_method reload_flag reload_cmds need_locks \ |
4161 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
4229 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
4162 lt_cv_sys_global_symbol_to_c_name_address \ |
4230 lt_cv_sys_global_symbol_to_c_name_address \ |
4202 _LT_AC_TAGVAR(old_archive_cmds, $1) | \ |
4270 _LT_AC_TAGVAR(old_archive_cmds, $1) | \ |
4203 _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \ |
4271 _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \ |
4204 _LT_AC_TAGVAR(archive_cmds, $1) | \ |
4272 _LT_AC_TAGVAR(archive_cmds, $1) | \ |
4205 _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \ |
4273 _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \ |
4206 _LT_AC_TAGVAR(module_cmds, $1) | \ |
4274 _LT_AC_TAGVAR(module_cmds, $1) | \ |
4207 _LT_AC_TAGVAR(module_expsym_cmds, $1) | \ |
4275 _LT_AC_TAGVAR(module_expsym_cmds, $1) | \ |
4208 _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \ |
4276 _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \ |
4209 _LT_AC_TAGVAR(export_symbols_cmds, $1) | \ |
4277 _LT_AC_TAGVAR(export_symbols_cmds, $1) | \ |
4210 extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
4278 extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
4211 postinstall_cmds | postuninstall_cmds | \ |
4279 postinstall_cmds | postuninstall_cmds | \ |
4212 old_postinstall_cmds | old_postuninstall_cmds | \ |
4280 old_postinstall_cmds | old_postuninstall_cmds | \ |
5342 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no |
5416 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no |
5343 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported |
5417 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported |
5344 _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown |
5418 _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown |
5345 _LT_AC_TAGVAR(hardcode_automatic, $1)=no |
5419 _LT_AC_TAGVAR(hardcode_automatic, $1)=no |
5346 _LT_AC_TAGVAR(module_cmds, $1)= |
5420 _LT_AC_TAGVAR(module_cmds, $1)= |
5347 _LT_AC_TAGVAR(module_expsym_cmds, $1)= |
5421 _LT_AC_TAGVAR(module_expsym_cmds, $1)= |
5348 _LT_AC_TAGVAR(always_export_symbols, $1)=no |
5422 _LT_AC_TAGVAR(always_export_symbols, $1)=no |
5349 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
5423 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
5350 # include_expsyms should be a list of space-separated symbols to be *always* |
5424 # include_expsyms should be a list of space-separated symbols to be *always* |
5351 # included in the symbol list |
5425 # included in the symbol list |
5352 _LT_AC_TAGVAR(include_expsyms, $1)= |
5426 _LT_AC_TAGVAR(include_expsyms, $1)= |
5432 _LT_AC_TAGVAR(always_export_symbols, $1)=no |
5506 _LT_AC_TAGVAR(always_export_symbols, $1)=no |
5433 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes |
5507 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes |
5434 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols' |
5508 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols' |
5435 |
5509 |
5436 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
5510 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
|
5511 ## _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
5437 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base ${wl}--out-implib,$lib' |
5512 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base ${wl}--out-implib,$lib' |
5438 # If the export-symbols file already is a .def file (1st line |
5513 # If the export-symbols file already is a .def file (1st line |
5439 # is EXPORTS), use it as is; otherwise, prepend... |
5514 # is EXPORTS), use it as is; otherwise, prepend... |
|
5515 ## _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
|
5516 ## cp $export_symbols $output_objdir/$soname.def; |
|
5517 ## else |
|
5518 ## echo EXPORTS > $output_objdir/$soname.def; |
|
5519 ## cat $export_symbols >> $output_objdir/$soname.def; |
|
5520 ## fi~ |
|
5521 ## $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
5440 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
5522 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
5441 cp $export_symbols $output_objdir/$soname.def; |
5523 cp $export_symbols $output_objdir/$soname.def; |
5442 else |
5524 else |
5443 echo EXPORTS > $output_objdir/$soname.def; |
5525 echo EXPORTS > $output_objdir/$soname.def; |
5444 cat $export_symbols >> $output_objdir/$soname.def; |
5526 cat $export_symbols >> $output_objdir/$soname.def; |
5484 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
5566 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
5485 wlarc= |
5567 wlarc= |
5486 _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
5568 _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
5487 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
5569 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
5488 ;; |
5570 ;; |
|
5571 |
|
5572 linux*) |
|
5573 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
|
5574 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
5575 _LT_AC_TAGVAR(archive_cmds, $1)="$tmp_archive_cmds" |
|
5576 supports_anon_versioning=no |
|
5577 case `$LD -v 2>/dev/null` in |
|
5578 *\ [01].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 |
|
5579 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
|
5580 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
|
5581 *\ 2.11.*) ;; # other 2.11 versions |
|
5582 *) supports_anon_versioning=yes ;; |
|
5583 esac |
|
5584 if test $supports_anon_versioning = yes; then |
|
5585 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~ |
|
5586 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
|
5587 $echo "local: *; };" >> $output_objdir/$libname.ver~ |
|
5588 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
|
5589 else |
|
5590 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="$tmp_archive_cmds" |
|
5591 fi |
|
5592 else |
|
5593 _LT_AC_TAGVAR(ld_shlibs, $1)=no |
|
5594 fi |
|
5595 ;; |
5489 |
5596 |
5490 *) |
5597 *) |
5491 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
5598 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
5492 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
5599 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
5493 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
5600 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
5673 fix_srcfile_path='`cygpath -w "$srcfile"`' |
5780 fix_srcfile_path='`cygpath -w "$srcfile"`' |
5674 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes |
5781 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes |
5675 ;; |
5782 ;; |
5676 |
5783 |
5677 darwin* | rhapsody*) |
5784 darwin* | rhapsody*) |
5678 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then |
5785 case "$host_os" in |
|
5786 rhapsody* | darwin1.[[012]]) |
|
5787 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress' |
|
5788 ;; |
|
5789 *) # Darwin 1.3 on |
|
5790 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
|
5791 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
|
5792 else |
|
5793 case ${MACOSX_DEPLOYMENT_TARGET} in |
|
5794 10.[[012]]) |
|
5795 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
|
5796 ;; |
|
5797 10.*) |
|
5798 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup' |
|
5799 ;; |
|
5800 esac |
|
5801 fi |
|
5802 ;; |
|
5803 esac |
5679 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
5804 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
5680 case "$host_os" in |
|
5681 rhapsody* | darwin1.[[012]]) |
|
5682 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress' |
|
5683 ;; |
|
5684 *) # Darwin 1.3 on |
|
5685 test -z ${LD_TWOLEVEL_NAMESPACE} && _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress' |
|
5686 ;; |
|
5687 esac |
|
5688 # FIXME: Relying on posixy $() will cause problems for |
|
5689 # cross-compilation, but unfortunately the echo tests do not |
|
5690 # yet detect zsh echo's removal of \ escapes. Also zsh mangles |
|
5691 # `"' quotes if we put them in here... so don't! |
|
5692 lt_int_apple_cc_single_mod=no |
|
5693 output_verbose_link_cmd='echo' |
|
5694 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then |
|
5695 lt_int_apple_cc_single_mod=yes |
|
5696 fi |
|
5697 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
|
5698 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
|
5699 else |
|
5700 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
|
5701 fi |
|
5702 _LT_AC_TAGVAR(module_cmds, $1)='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags' |
|
5703 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
|
5704 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
|
5705 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
|
5706 else |
|
5707 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
|
5708 fi |
|
5709 _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
|
5710 _LT_AC_TAGVAR(hardcode_direct, $1)=no |
5805 _LT_AC_TAGVAR(hardcode_direct, $1)=no |
5711 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes |
5806 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes |
5712 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported |
5807 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported |
5713 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience' |
5808 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='' |
5714 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
5809 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
5715 fi |
5810 if test "$GCC" = yes ; then |
|
5811 output_verbose_link_cmd='echo' |
|
5812 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
|
5813 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
|
5814 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
|
5815 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
|
5816 _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}' |
|
5817 else |
|
5818 case "$cc_basename" in |
|
5819 xlc*) |
|
5820 output_verbose_link_cmd='echo' |
|
5821 _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' |
|
5822 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
|
5823 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
|
5824 _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}' |
|
5825 _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}' |
|
5826 ;; |
|
5827 *) |
|
5828 _LT_AC_TAGVAR(ld_shlibs, $1)=no |
|
5829 ;; |
|
5830 esac |
|
5831 fi |
5716 ;; |
5832 ;; |
5717 |
5833 |
5718 dgux*) |
5834 dgux*) |
5719 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
5835 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
5720 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
5836 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |