comparison acinclude.m4 @ 947:3bb035750537

Updated libtool support for libtool 1.5.8
author Sam Lantinga <slouken@libsdl.org>
date Sat, 21 Aug 2004 20:35:50 +0000
parents c7c04f811994
children ac488ad4ef1d
comparison
equal deleted inserted replaced
946:8520712f8ef0 947:3bb035750537
332 AC_SUBST(ESD_CFLAGS) 332 AC_SUBST(ESD_CFLAGS)
333 AC_SUBST(ESD_LIBS) 333 AC_SUBST(ESD_LIBS)
334 rm -f conf.esdtest 334 rm -f conf.esdtest
335 ]) 335 ])
336 336
337 # Based on libtool-1.5.8
337 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- 338 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
338 ## Copyright 1996, 1997, 1998, 1999, 2000, 2001 339 ## Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004
339 ## Free Software Foundation, Inc. 340 ## Free Software Foundation, Inc.
340 ## Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 341 ## Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
341 ## 342 ##
342 ## This program is free software; you can redistribute it and/or modify 343 ## This program is free software; you can redistribute it and/or modify
343 ## it under the terms of the GNU General Public License as published by 344 ## it under the terms of the GNU General Public License as published by
534 ;; 535 ;;
535 esac 536 esac
536 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 537 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
537 fi 538 fi
538 539
540 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
541
539 # Only perform the check for file, if the check method requires it 542 # Only perform the check for file, if the check method requires it
540 case $deplibs_check_method in 543 case $deplibs_check_method in
541 file_magic*) 544 file_magic*)
542 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 545 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
543 AC_PATH_MAGIC 546 AC_PATH_MAGIC
651 exit 0 654 exit 0
652 fi 655 fi
653 656
654 # The HP-UX ksh and POSIX shell print the target directory to stdout 657 # The HP-UX ksh and POSIX shell print the target directory to stdout
655 # if CDPATH is set. 658 # if CDPATH is set.
656 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi 659 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
657 660
658 if test -z "$ECHO"; then 661 if test -z "$ECHO"; then
659 if test "X${echo_test_string+set}" != Xset; then 662 if test "X${echo_test_string+set}" != Xset; then
660 # find a string as large as possible, as long as the shell can cope with it 663 # find a string as large as possible, as long as the shell can cope with it
661 for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do 664 for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
834 *32-bit*) 837 *32-bit*)
835 case $host in 838 case $host in
836 x86_64-*linux*) 839 x86_64-*linux*)
837 LD="${LD-ld} -m elf_i386" 840 LD="${LD-ld} -m elf_i386"
838 ;; 841 ;;
839 ppc64-*linux*) 842 ppc64-*linux*|powerpc64-*linux*)
840 LD="${LD-ld} -m elf32ppclinux" 843 LD="${LD-ld} -m elf32ppclinux"
841 ;; 844 ;;
842 s390x-*linux*) 845 s390x-*linux*)
843 LD="${LD-ld} -m elf_s390" 846 LD="${LD-ld} -m elf_s390"
844 ;; 847 ;;
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
974 AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], 978 AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
975 [# find the maximum length of command line arguments 979 [# find the maximum length of command line arguments
976 AC_MSG_CHECKING([the maximum length of command line arguments]) 980 AC_MSG_CHECKING([the maximum length of command line arguments])
977 AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl 981 AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
978 i=0 982 i=0
979 testring="ABCD" 983 teststring="ABCD"
980 984
981 case $build_os in 985 case $build_os in
982 msdosdjgpp*) 986 msdosdjgpp*)
983 # On DJGPP, this test can blow up pretty badly due to problems in libc 987 # On DJGPP, this test can blow up pretty badly due to problems in libc
984 # (any single argument exceeding 2000 bytes causes a buffer overrun 988 # (any single argument exceeding 2000 bytes causes a buffer overrun
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 ;;
1166 lt_cv_dlopen="dyld" 1190 lt_cv_dlopen="dyld"
1167 lt_cv_dlopen_libs= 1191 lt_cv_dlopen_libs=
1168 lt_cv_dlopen_self=yes 1192 lt_cv_dlopen_self=yes
1169 ]) 1193 ])
1170 ;; 1194 ;;
1171 1195
1172 *) 1196 *)
1173 AC_CHECK_FUNC([shl_load], 1197 AC_CHECK_FUNC([shl_load],
1174 [lt_cv_dlopen="shl_load"], 1198 [lt_cv_dlopen="shl_load"],
1175 [AC_CHECK_LIB([dld], [shl_load], 1199 [AC_CHECK_LIB([dld], [shl_load],
1176 [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"], 1200 [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
1254 $rm -r conftest 2>/dev/null 1278 $rm -r conftest 2>/dev/null
1255 mkdir conftest 1279 mkdir conftest
1256 cd conftest 1280 cd conftest
1257 mkdir out 1281 mkdir out
1258 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 1282 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
1259
1260 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
1261 # that will create temporary files in the current directory regardless of
1262 # the output directory. Thus, making CWD read-only will cause this test
1263 # to fail, enabling locking or at least warning the user not to do parallel
1264 # builds.
1265 chmod -w .
1266 1283
1267 lt_compiler_flag="-o out/conftest2.$ac_objext" 1284 lt_compiler_flag="-o out/conftest2.$ac_objext"
1268 # Insert the option either (1) after the last *FLAGS variable, or 1285 # Insert the option either (1) after the last *FLAGS variable, or
1269 # (2) before a word containing "conftest.", or (3) at the end. 1286 # (2) before a word containing "conftest.", or (3) at the end.
1270 # Note that $ac_compile itself does not contain backslashes and begins 1287 # Note that $ac_compile itself does not contain backslashes and begins
1285 if test ! -s out/conftest.err; then 1302 if test ! -s out/conftest.err; then
1286 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes 1303 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
1287 fi 1304 fi
1288 fi 1305 fi
1289 chmod u+w . 1306 chmod u+w .
1290 $rm conftest* out/* 1307 $rm conftest*
1291 rmdir out 1308 # SGI C++ compiler will create directory out/ii_files/ for
1309 # template instantiation
1310 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
1311 $rm out/* && rmdir out
1292 cd .. 1312 cd ..
1293 rmdir conftest 1313 rmdir conftest
1294 $rm conftest* 1314 $rm conftest*
1295 ]) 1315 ])
1296 ])# AC_LIBTOOL_PROG_CC_C_O 1316 ])# AC_LIBTOOL_PROG_CC_C_O
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
1403 fi 1423 fi
1404 ;; 1424 ;;
1405 *) 1425 *)
1406 AC_MSG_RESULT([no]) 1426 AC_MSG_RESULT([no])
1407 ;; 1427 ;;
1408 esac 1428 esac
1409 fi 1429 fi
1410 ])# AC_LIBTOOL_SYS_LIB_STRIP 1430 ])# AC_LIBTOOL_SYS_LIB_STRIP
1411 1431
1412 1432
1413 # AC_LIBTOOL_SYS_DYNAMIC_LINKER 1433 # AC_LIBTOOL_SYS_DYNAMIC_LINKER
1416 AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER], 1436 AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
1417 [AC_MSG_CHECKING([dynamic linker characteristics]) 1437 [AC_MSG_CHECKING([dynamic linker characteristics])
1418 library_names_spec= 1438 library_names_spec=
1419 libname_spec='lib$name' 1439 libname_spec='lib$name'
1420 soname_spec= 1440 soname_spec=
1421 shrext=".so" 1441 shrext_cmds=".so"
1422 postinstall_cmds= 1442 postinstall_cmds=
1423 postuninstall_cmds= 1443 postuninstall_cmds=
1424 finish_cmds= 1444 finish_cmds=
1425 finish_eval= 1445 finish_eval=
1426 shlibpath_var= 1446 shlibpath_var=
1504 ;; 1524 ;;
1505 1525
1506 amigaos*) 1526 amigaos*)
1507 library_names_spec='$libname.ixlibrary $libname.a' 1527 library_names_spec='$libname.ixlibrary $libname.a'
1508 # Create ${libname}_ixlibrary.a entries in /sys/libs. 1528 # Create ${libname}_ixlibrary.a entries in /sys/libs.
1509 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done' 1529 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
1510 ;; 1530 ;;
1511 1531
1512 beos*) 1532 beos*)
1513 library_names_spec='${libname}${shared_ext}' 1533 library_names_spec='${libname}${shared_ext}'
1514 dynamic_linker="$host_os ld.so" 1534 dynamic_linker="$host_os ld.so"
1515 shlibpath_var=LIBRARY_PATH 1535 shlibpath_var=LIBRARY_PATH
1516 ;; 1536 ;;
1517 1537
1518 bsdi4*) 1538 bsdi[[45]]*)
1519 version_type=linux 1539 version_type=linux
1520 need_version=no 1540 need_version=no
1521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 1541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1522 soname_spec='${libname}${release}${shared_ext}$major' 1542 soname_spec='${libname}${release}${shared_ext}$major'
1523 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 1543 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
1529 # libtool to hard-code these into programs 1549 # libtool to hard-code these into programs
1530 ;; 1550 ;;
1531 1551
1532 cygwin* | mingw* | pw32*) 1552 cygwin* | mingw* | pw32*)
1533 version_type=windows 1553 version_type=windows
1534 shrext=".dll" 1554 shrext_cmds=".dll"
1535 need_version=no 1555 need_version=no
1536 need_lib_prefix=no 1556 need_lib_prefix=no
1537 1557
1538 case $GCC,$host_os in 1558 case $GCC,$host_os in
1539 yes,cygwin* | yes,mingw* | yes,pw32*) 1559 yes,cygwin* | yes,mingw* | yes,pw32*)
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*)
1618 shlibpath_var=LD_LIBRARY_PATH 1637 shlibpath_var=LD_LIBRARY_PATH
1619 ;; 1638 ;;
1620 1639
1621 freebsd1*) 1640 freebsd1*)
1622 dynamic_linker=no 1641 dynamic_linker=no
1642 ;;
1643
1644 kfreebsd*-gnu)
1645 version_type=linux
1646 need_lib_prefix=no
1647 need_version=no
1648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1649 soname_spec='${libname}${release}${shared_ext}$major'
1650 shlibpath_var=LD_LIBRARY_PATH
1651 shlibpath_overrides_runpath=no
1652 hardcode_into_libs=yes
1653 dynamic_linker='GNU ld.so'
1623 ;; 1654 ;;
1624 1655
1625 freebsd*) 1656 freebsd*)
1626 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` 1657 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
1627 version_type=freebsd-$objformat 1658 version_type=freebsd-$objformat
1668 version_type=sunos 1699 version_type=sunos
1669 need_lib_prefix=no 1700 need_lib_prefix=no
1670 need_version=no 1701 need_version=no
1671 case "$host_cpu" in 1702 case "$host_cpu" in
1672 ia64*) 1703 ia64*)
1673 shrext='.so' 1704 shrext_cmds='.so'
1674 hardcode_into_libs=yes 1705 hardcode_into_libs=yes
1675 dynamic_linker="$host_os dld.so" 1706 dynamic_linker="$host_os dld.so"
1676 shlibpath_var=LD_LIBRARY_PATH 1707 shlibpath_var=LD_LIBRARY_PATH
1677 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 1708 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
1678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 1709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
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
1781 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 1830 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
1782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 1831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1783 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 1832 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1784 dynamic_linker='NetBSD (a.out) ld.so' 1833 dynamic_linker='NetBSD (a.out) ld.so'
1785 else 1834 else
1786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}' 1835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1787 soname_spec='${libname}${release}${shared_ext}$major' 1836 soname_spec='${libname}${release}${shared_ext}$major'
1788 dynamic_linker='NetBSD ld.elf_so' 1837 dynamic_linker='NetBSD ld.elf_so'
1789 fi 1838 fi
1790 shlibpath_var=LD_LIBRARY_PATH 1839 shlibpath_var=LD_LIBRARY_PATH
1791 shlibpath_overrides_runpath=yes 1840 shlibpath_overrides_runpath=yes
1797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 1846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1798 shlibpath_var=LD_LIBRARY_PATH 1847 shlibpath_var=LD_LIBRARY_PATH
1799 shlibpath_overrides_runpath=yes 1848 shlibpath_overrides_runpath=yes
1800 ;; 1849 ;;
1801 1850
1802 *qnx* | *nto*) 1851 nto-qnx*)
1803 version_type=qnx 1852 version_type=linux
1804 need_lib_prefix=no 1853 need_lib_prefix=no
1805 need_version=no 1854 need_version=no
1806 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 1855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1807 soname_spec='${libname}${release}.so$major' 1856 soname_spec='${libname}${release}${shared_ext}$major'
1808 shlibpath_var=LD_LIBRARY_PATH 1857 shlibpath_var=LD_LIBRARY_PATH
1809 shlibpath_overrides_runpath=no 1858 shlibpath_overrides_runpath=yes
1810 hardcode_into_libs=yes
1811 dynamic_linker='ldqnx.so'
1812 ;; 1859 ;;
1813 1860
1814 openbsd*) 1861 openbsd*)
1815 version_type=sunos 1862 version_type=sunos
1816 need_lib_prefix=no 1863 need_lib_prefix=no
1832 fi 1879 fi
1833 ;; 1880 ;;
1834 1881
1835 os2*) 1882 os2*)
1836 libname_spec='$name' 1883 libname_spec='$name'
1837 shrext=".dll" 1884 shrext_cmds=".dll"
1838 need_lib_prefix=no 1885 need_lib_prefix=no
1839 library_names_spec='$libname${shared_ext} $libname.a' 1886 library_names_spec='$libname${shared_ext} $libname.a'
1840 dynamic_linker='OS/2 ld.exe' 1887 dynamic_linker='OS/2 ld.exe'
1841 shlibpath_var=LIBPATH 1888 shlibpath_var=LIBPATH
1842 ;; 1889 ;;
2268 ])# AC_PATH_MAGIC 2315 ])# AC_PATH_MAGIC
2269 2316
2270 2317
2271 # AC_PROG_LD 2318 # AC_PROG_LD
2272 # ---------- 2319 # ----------
2273 # find the path to the GNU or non-GNU linker 2320 # find the pathname to the GNU or non-GNU linker
2274 AC_DEFUN([AC_PROG_LD], 2321 AC_DEFUN([AC_PROG_LD],
2275 [AC_ARG_WITH([gnu-ld], 2322 [AC_ARG_WITH([gnu-ld],
2276 [AC_HELP_STRING([--with-gnu-ld], 2323 [AC_HELP_STRING([--with-gnu-ld],
2277 [assume the C compiler uses GNU ld @<:@default=no@:>@])], 2324 [assume the C compiler uses GNU ld @<:@default=no@:>@])],
2278 [test "$withval" = no || with_gnu_ld=yes], 2325 [test "$withval" = no || with_gnu_ld=yes],
2294 esac 2341 esac
2295 case $ac_prog in 2342 case $ac_prog in
2296 # Accept absolute paths. 2343 # Accept absolute paths.
2297 [[\\/]]* | ?:[[\\/]]*) 2344 [[\\/]]* | ?:[[\\/]]*)
2298 re_direlt='/[[^/]][[^/]]*/\.\./' 2345 re_direlt='/[[^/]][[^/]]*/\.\./'
2299 # Canonicalize the path of ld 2346 # Canonicalize the pathname of ld
2300 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 2347 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
2301 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 2348 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2302 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 2349 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
2303 done 2350 done
2304 test -z "$LD" && LD="$ac_prog" 2351 test -z "$LD" && LD="$ac_prog"
2357 # -------------- 2404 # --------------
2358 AC_DEFUN([AC_PROG_LD_GNU], 2405 AC_DEFUN([AC_PROG_LD_GNU],
2359 [AC_REQUIRE([AC_PROG_EGREP])dnl 2406 [AC_REQUIRE([AC_PROG_EGREP])dnl
2360 AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld, 2407 AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
2361 [# I'd rather use --version here, but apparently some GNU ld's only accept -v. 2408 [# I'd rather use --version here, but apparently some GNU ld's only accept -v.
2362 case `"$LD" -v 2>&1 </dev/null` in 2409 case `$LD -v 2>&1 </dev/null` in
2363 *GNU* | *'with BFD'*) 2410 *GNU* | *'with BFD'*)
2364 lt_cv_prog_gnu_ld=yes 2411 lt_cv_prog_gnu_ld=yes
2365 ;; 2412 ;;
2366 *) 2413 *)
2367 lt_cv_prog_gnu_ld=no 2414 lt_cv_prog_gnu_ld=no
2383 case $reload_flag in 2430 case $reload_flag in
2384 "" | " "*) ;; 2431 "" | " "*) ;;
2385 *) reload_flag=" $reload_flag" ;; 2432 *) reload_flag=" $reload_flag" ;;
2386 esac 2433 esac
2387 reload_cmds='$LD$reload_flag -o $output$reload_objs' 2434 reload_cmds='$LD$reload_flag -o $output$reload_objs'
2435 case $host_os in
2436 darwin*)
2437 if test "$GCC" = yes; then
2438 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
2439 else
2440 reload_cmds='$LD$reload_flag -o $output$reload_objs'
2441 fi
2442 ;;
2443 esac
2388 ])# AC_PROG_LD_RELOAD_FLAG 2444 ])# AC_PROG_LD_RELOAD_FLAG
2389 2445
2390 2446
2391 # AC_DEPLIBS_CHECK_METHOD 2447 # AC_DEPLIBS_CHECK_METHOD
2392 # ----------------------- 2448 # -----------------------
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)
2596 ])# AC_DEPLIBS_CHECK_METHOD 2634 ])# AC_DEPLIBS_CHECK_METHOD
2597 2635
2598 2636
2599 # AC_PROG_NM 2637 # AC_PROG_NM
2600 # ---------- 2638 # ----------
2601 # find the path to a BSD-compatible name lister 2639 # find the pathname to a BSD-compatible name lister
2602 AC_DEFUN([AC_PROG_NM], 2640 AC_DEFUN([AC_PROG_NM],
2603 [AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM, 2641 [AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
2604 [if test -n "$NM"; then 2642 [if test -n "$NM"; then
2605 # Let the user override the test. 2643 # Let the user override the test.
2606 lt_cv_path_NM="$NM" 2644 lt_cv_path_NM="$NM"
2734 # _LT_AC_LANG_CXX 2772 # _LT_AC_LANG_CXX
2735 # --------------- 2773 # ---------------
2736 AC_DEFUN([_LT_AC_LANG_CXX], 2774 AC_DEFUN([_LT_AC_LANG_CXX],
2737 [AC_REQUIRE([AC_PROG_CXX]) 2775 [AC_REQUIRE([AC_PROG_CXX])
2738 AC_REQUIRE([AC_PROG_CXXCPP]) 2776 AC_REQUIRE([AC_PROG_CXXCPP])
2739 _LT_AC_SHELL_INIT([tagnames=`echo "$tagnames,CXX" | sed 's/^,//'`]) 2777 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
2740 ])# _LT_AC_LANG_CXX 2778 ])# _LT_AC_LANG_CXX
2741 2779
2742 2780
2743 # AC_LIBTOOL_F77 2781 # AC_LIBTOOL_F77
2744 # -------------- 2782 # --------------
2750 2788
2751 # _LT_AC_LANG_F77 2789 # _LT_AC_LANG_F77
2752 # --------------- 2790 # ---------------
2753 AC_DEFUN([_LT_AC_LANG_F77], 2791 AC_DEFUN([_LT_AC_LANG_F77],
2754 [AC_REQUIRE([AC_PROG_F77]) 2792 [AC_REQUIRE([AC_PROG_F77])
2755 _LT_AC_SHELL_INIT([tagnames=`echo "$tagnames,F77" | sed 's/^,//'`]) 2793 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
2756 ])# _LT_AC_LANG_F77 2794 ])# _LT_AC_LANG_F77
2757 2795
2758 2796
2759 # AC_LIBTOOL_GCJ 2797 # AC_LIBTOOL_GCJ
2760 # -------------- 2798 # --------------
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 # ------------------------
2822 ;; 2860 ;;
2823 esac 2861 esac
2824 fi 2862 fi
2825 if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then 2863 if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then
2826 AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries]) 2864 AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries])
2827 if echo "$old_CC $old_CFLAGS " | grep "[[ ]]$]_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[[ ]]" >/dev/null; then : 2865 if echo "$old_CC $old_CFLAGS " | grep "[[ ]]$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[ ]]" >/dev/null; then :
2828 else 2866 else
2829 AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure]) 2867 AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure])
2830 _LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no 2868 _LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no
2831 fi 2869 fi
2832 fi 2870 fi
2849 AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) 2887 AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
2850 AC_LIBTOOL_PROG_COMPILER_PIC($1) 2888 AC_LIBTOOL_PROG_COMPILER_PIC($1)
2851 AC_LIBTOOL_PROG_CC_C_O($1) 2889 AC_LIBTOOL_PROG_CC_C_O($1)
2852 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) 2890 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
2853 AC_LIBTOOL_PROG_LD_SHLIBS($1) 2891 AC_LIBTOOL_PROG_LD_SHLIBS($1)
2892 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
2854 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) 2893 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
2855 AC_LIBTOOL_SYS_LIB_STRIP 2894 AC_LIBTOOL_SYS_LIB_STRIP
2856 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
2857 AC_LIBTOOL_DLOPEN_SELF($1) 2895 AC_LIBTOOL_DLOPEN_SELF($1)
2858 2896
2859 # Report which librarie types wil actually be built 2897 # Report which librarie types wil actually be built
2860 AC_MSG_CHECKING([if libtool supports shared libraries]) 2898 AC_MSG_CHECKING([if libtool supports shared libraries])
2861 AC_MSG_RESULT([$can_build_shared]) 2899 AC_MSG_RESULT([$can_build_shared])
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.
3039 # A generic and very simple default shared library creation 3049 # A generic and very simple default shared library creation
3040 # command for GNU C++ for the case where it uses the native 3050 # command for GNU C++ for the case where it uses the native
3041 # linker, instead of GNU ld. If possible, this setting should 3051 # linker, instead of GNU ld. If possible, this setting should
3042 # overridden to take advantage of the native linker features on 3052 # overridden to take advantage of the native linker features on
3043 # the platform it is being used on. 3053 # the platform it is being used on.
3044 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 3054 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3045 fi 3055 fi
3046 3056
3047 # Commands to make compiler produce verbose output that lists 3057 # Commands to make compiler produce verbose output that lists
3048 # what "hidden" libraries, object files and flags are used when 3058 # what "hidden" libraries, object files and flags are used when
3049 # linking a shared library. 3059 # linking a shared library.
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
3267 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3310 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3268 ;; 3311 ;;
3269 freebsd-elf*) 3312 freebsd-elf*)
3270 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 3313 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3271 ;; 3314 ;;
3272 freebsd*) 3315 freebsd* | kfreebsd*-gnu)
3273 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 3316 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
3274 # conventions 3317 # conventions
3275 _LT_AC_TAGVAR(ld_shlibs, $1)=yes 3318 _LT_AC_TAGVAR(ld_shlibs, $1)=yes
3276 ;; 3319 ;;
3277 gnu*) 3320 gnu*)
3298 # 3341 #
3299 # There doesn't appear to be a way to prevent this compiler from 3342 # There doesn't appear to be a way to prevent this compiler from
3300 # explicitly linking system object files so we need to strip them 3343 # explicitly linking system object files so we need to strip them
3301 # from the output so that they don't get included in the library 3344 # from the output so that they don't get included in the library
3302 # dependencies. 3345 # dependencies.
3303 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 3346 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
3304 ;; 3347 ;;
3305 *) 3348 *)
3306 if test "$GXX" = yes; then 3349 if test "$GXX" = yes; then
3307 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 3350 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
3308 else 3351 else
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
3761 ;; 3829 ;;
3762 vxworks*) 3830 vxworks*)
3763 # FIXME: insert proper C++ library support 3831 # FIXME: insert proper C++ library support
3764 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3832 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3765 ;; 3833 ;;
3766 *qnx* | *nto*)
3767 ;;
3768 *) 3834 *)
3769 # FIXME: insert proper C++ library support 3835 # FIXME: insert proper C++ library support
3770 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3836 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3771 ;; 3837 ;;
3772 esac 3838 esac
3783 AC_LIBTOOL_POSTDEP_PREDEP($1) 3849 AC_LIBTOOL_POSTDEP_PREDEP($1)
3784 AC_LIBTOOL_PROG_COMPILER_PIC($1) 3850 AC_LIBTOOL_PROG_COMPILER_PIC($1)
3785 AC_LIBTOOL_PROG_CC_C_O($1) 3851 AC_LIBTOOL_PROG_CC_C_O($1)
3786 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) 3852 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
3787 AC_LIBTOOL_PROG_LD_SHLIBS($1) 3853 AC_LIBTOOL_PROG_LD_SHLIBS($1)
3854 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3788 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) 3855 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3789 AC_LIBTOOL_SYS_LIB_STRIP 3856 AC_LIBTOOL_SYS_LIB_STRIP
3790 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3791 AC_LIBTOOL_DLOPEN_SELF($1) 3857 AC_LIBTOOL_DLOPEN_SELF($1)
3792 3858
3793 AC_LIBTOOL_CONFIG($1) 3859 AC_LIBTOOL_CONFIG($1)
3794 3860
3795 AC_LANG_POP 3861 AC_LANG_POP
4007 if test -n "$RANLIB"; then 4073 if test -n "$RANLIB"; then
4008 archive_cmds="$archive_cmds~\$RANLIB \$lib" 4074 archive_cmds="$archive_cmds~\$RANLIB \$lib"
4009 postinstall_cmds='$RANLIB $lib' 4075 postinstall_cmds='$RANLIB $lib'
4010 fi 4076 fi
4011 ;; 4077 ;;
4012 aix4*) 4078 aix4* | aix5*)
4013 test "$enable_shared" = yes && enable_static=no 4079 test "$enable_shared" = yes && enable_static=no
4014 ;; 4080 ;;
4015 esac 4081 esac
4016 AC_MSG_RESULT([$enable_shared]) 4082 AC_MSG_RESULT([$enable_shared])
4017 4083
4027 4093
4028 AC_LIBTOOL_PROG_COMPILER_PIC($1) 4094 AC_LIBTOOL_PROG_COMPILER_PIC($1)
4029 AC_LIBTOOL_PROG_CC_C_O($1) 4095 AC_LIBTOOL_PROG_CC_C_O($1)
4030 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) 4096 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4031 AC_LIBTOOL_PROG_LD_SHLIBS($1) 4097 AC_LIBTOOL_PROG_LD_SHLIBS($1)
4098 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4032 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) 4099 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4033 AC_LIBTOOL_SYS_LIB_STRIP 4100 AC_LIBTOOL_SYS_LIB_STRIP
4034 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) 4101
4035 4102
4036 AC_LIBTOOL_CONFIG($1) 4103 AC_LIBTOOL_CONFIG($1)
4037 4104
4038 AC_LANG_POP 4105 AC_LANG_POP
4039 CC="$lt_save_CC" 4106 CC="$lt_save_CC"
4081 AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) 4148 AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
4082 AC_LIBTOOL_PROG_COMPILER_PIC($1) 4149 AC_LIBTOOL_PROG_COMPILER_PIC($1)
4083 AC_LIBTOOL_PROG_CC_C_O($1) 4150 AC_LIBTOOL_PROG_CC_C_O($1)
4084 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) 4151 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4085 AC_LIBTOOL_PROG_LD_SHLIBS($1) 4152 AC_LIBTOOL_PROG_LD_SHLIBS($1)
4153 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4086 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) 4154 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4087 AC_LIBTOOL_SYS_LIB_STRIP 4155 AC_LIBTOOL_SYS_LIB_STRIP
4088 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4089 AC_LIBTOOL_DLOPEN_SELF($1) 4156 AC_LIBTOOL_DLOPEN_SELF($1)
4090 4157
4091 AC_LIBTOOL_CONFIG($1) 4158 AC_LIBTOOL_CONFIG($1)
4092 4159
4093 AC_LANG_RESTORE 4160 AC_LANG_RESTORE
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 | \
4272 # Sed that helps us avoid accidentally triggering echo(1) options like -n. 4340 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
4273 Xsed="$SED -e s/^X//" 4341 Xsed="$SED -e s/^X//"
4274 4342
4275 # The HP-UX ksh and POSIX shell print the target directory to stdout 4343 # The HP-UX ksh and POSIX shell print the target directory to stdout
4276 # if CDPATH is set. 4344 # if CDPATH is set.
4277 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi 4345 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4278 4346
4279 # The names of the tagged configurations supported by this script. 4347 # The names of the tagged configurations supported by this script.
4280 available_tags= 4348 available_tags=
4281 4349
4282 # ### BEGIN LIBTOOL CONFIG], 4350 # ### BEGIN LIBTOOL CONFIG],
4333 4401
4334 # A BSD-compatible nm program. 4402 # A BSD-compatible nm program.
4335 NM=$lt_NM 4403 NM=$lt_NM
4336 4404
4337 # A symbol stripping program 4405 # A symbol stripping program
4338 STRIP=$STRIP 4406 STRIP=$lt_STRIP
4339 4407
4340 # Used to examine libraries when file_magic_cmd begins "file" 4408 # Used to examine libraries when file_magic_cmd begins "file"
4341 MAGIC_CMD=$MAGIC_CMD 4409 MAGIC_CMD=$MAGIC_CMD
4342 4410
4343 # Used on cygwin: DLL creation program. 4411 # Used on cygwin: DLL creation program.
4364 4432
4365 # Old archive suffix (normally "a"). 4433 # Old archive suffix (normally "a").
4366 libext="$libext" 4434 libext="$libext"
4367 4435
4368 # Shared library suffix (normally ".so"). 4436 # Shared library suffix (normally ".so").
4369 shrext='$shrext' 4437 shrext_cmds='$shrext_cmds'
4370 4438
4371 # Executable file suffix (normally ""). 4439 # Executable file suffix (normally "").
4372 exeext="$exeext" 4440 exeext="$exeext"
4373 4441
4374 # Additional compiler flags for building library objects. 4442 # Additional compiler flags for building library objects.
4608 ]) 4676 ])
4609 else 4677 else
4610 # If there is no Makefile yet, we rely on a make rule to execute 4678 # If there is no Makefile yet, we rely on a make rule to execute
4611 # `config.status --recheck' to rerun these tests and create the 4679 # `config.status --recheck' to rerun these tests and create the
4612 # libtool script then. 4680 # libtool script then.
4613 test -f Makefile && make "$ltmain" 4681 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
4682 if test -f "$ltmain_in"; then
4683 test -f Makefile && make "$ltmain"
4684 fi
4614 fi 4685 fi
4615 ])# AC_LIBTOOL_CONFIG 4686 ])# AC_LIBTOOL_CONFIG
4616 4687
4617 4688
4618 # AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME]) 4689 # AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
4681 ;; 4752 ;;
4682 osf*) 4753 osf*)
4683 symcode='[[BCDEGQRST]]' 4754 symcode='[[BCDEGQRST]]'
4684 ;; 4755 ;;
4685 solaris* | sysv5*) 4756 solaris* | sysv5*)
4686 symcode='[[BDT]]' 4757 symcode='[[BDRT]]'
4687 ;; 4758 ;;
4688 sysv4) 4759 sysv4)
4689 symcode='[[DFNSTU]]' 4760 symcode='[[DFNSTU]]'
4690 ;; 4761 ;;
4691 esac 4762 esac
4699 esac 4770 esac
4700 4771
4701 # If we're using GNU nm, then use its standard symbol codes. 4772 # If we're using GNU nm, then use its standard symbol codes.
4702 case `$NM -V 2>&1` in 4773 case `$NM -V 2>&1` in
4703 *GNU* | *'with BFD'*) 4774 *GNU* | *'with BFD'*)
4704 symcode='[[ABCDGISTW]]' ;; 4775 symcode='[[ABCDGIRSTW]]' ;;
4705 esac 4776 esac
4706 4777
4707 # Try without a prefix undercore, then with it. 4778 # Try without a prefix undercore, then with it.
4708 for ac_symprfx in "" "_"; do 4779 for ac_symprfx in "" "_"; do
4709 4780
4878 *) 4949 *)
4879 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 4950 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4880 ;; 4951 ;;
4881 esac 4952 esac
4882 ;; 4953 ;;
4883 *qnx* | *nto*)
4884 # QNX uses GNU C++, but need to define -shared option too, otherwise it will coredumped.
4885 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4886 ;;
4887 *) 4954 *)
4888 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 4955 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4889 ;; 4956 ;;
4890 esac 4957 esac
4891 else 4958 else
4905 # Green Hills C++ Compiler 4972 # Green Hills C++ Compiler
4906 # _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" 4973 # _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
4907 ;; 4974 ;;
4908 esac 4975 esac
4909 ;; 4976 ;;
4977 darwin*)
4978 # PIC is the default on this platform
4979 # Common symbols not allowed in MH_DYLIB files
4980 case "$cc_basename" in
4981 xlc*)
4982 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
4983 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4984 ;;
4985 esac
4986 ;;
4910 dgux*) 4987 dgux*)
4911 case $cc_basename in 4988 case $cc_basename in
4912 ec++) 4989 ec++)
4913 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4990 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4914 ;; 4991 ;;
4918 ;; 4995 ;;
4919 *) 4996 *)
4920 ;; 4997 ;;
4921 esac 4998 esac
4922 ;; 4999 ;;
4923 freebsd*) 5000 freebsd* | kfreebsd*-gnu)
4924 # FreeBSD uses GNU C++ 5001 # FreeBSD uses GNU C++
4925 ;; 5002 ;;
4926 *qnx* | *nto*)
4927 # QNX uses GNU C++, but need to define -shared option too, otherwise it will coredumped.
4928 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4929 ;;
4930 hpux9* | hpux10* | hpux11*) 5003 hpux9* | hpux10* | hpux11*)
4931 case $cc_basename in 5004 case $cc_basename in
4932 CC) 5005 CC)
4933 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5006 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4934 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" 5007 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
4973 icpc) 5046 icpc)
4974 # Intel C++ 5047 # Intel C++
4975 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5048 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4976 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5049 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4977 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' 5050 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
4978 ;; 5051 ;;
4979 cxx) 5052 cxx)
4980 # Compaq C++ 5053 # Compaq C++
4981 # Make sure the PIC flag is empty. It appears that all Alpha 5054 # Make sure the PIC flag is empty. It appears that all Alpha
4982 # Linux and Compaq Tru64 Unix objects are PIC. 5055 # Linux and Compaq Tru64 Unix objects are PIC.
4983 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= 5056 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5145 *) 5218 *)
5146 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 5219 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5147 ;; 5220 ;;
5148 esac 5221 esac
5149 ;; 5222 ;;
5150 *qnx* | *nto*)
5151 # QNX uses GNU C++, but need to define -shared option too, otherwise it will coredumped.
5152 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
5153 ;;
5154 5223
5155 *) 5224 *)
5156 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 5225 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5157 ;; 5226 ;;
5158 esac 5227 esac
5166 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5235 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5167 else 5236 else
5168 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' 5237 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
5169 fi 5238 fi
5170 ;; 5239 ;;
5240 darwin*)
5241 # PIC is the default on this platform
5242 # Common symbols not allowed in MH_DYLIB files
5243 case "$cc_basename" in
5244 xlc*)
5245 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
5246 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5247 ;;
5248 esac
5249 ;;
5171 5250
5172 mingw* | pw32* | os2*) 5251 mingw* | pw32* | os2*)
5173 # This hack is so that the source file can tell whether it is being 5252 # This hack is so that the source file can tell whether it is being
5174 # built for inclusion in a dll (and should export symbols for example). 5253 # built for inclusion in a dll (and should export symbols for example).
5175 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' 5254 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
5189 esac 5268 esac
5190 # Is there a better lt_prog_compiler_static that works with the bundled CC? 5269 # Is there a better lt_prog_compiler_static that works with the bundled CC?
5191 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' 5270 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5192 ;; 5271 ;;
5193 5272
5194 *qnx* | *nto*)
5195 # QNX uses GNU C++, but need to define -shared option too, otherwise it will coredumped.
5196 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
5197 ;;
5198
5199 irix5* | irix6* | nonstopux*) 5273 irix5* | irix6* | nonstopux*)
5200 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5274 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5201 # PIC (with -KPIC) is the default. 5275 # PIC (with -KPIC) is the default.
5202 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 5276 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5203 ;; 5277 ;;
5207 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5281 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5208 ;; 5282 ;;
5209 5283
5210 linux*) 5284 linux*)
5211 case $CC in 5285 case $CC in
5212 icc|ecc) 5286 icc* | ecc*)
5213 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5287 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5214 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5288 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5215 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' 5289 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5216 ;; 5290 ;;
5217 ccc) 5291 ccc*)
5218 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5292 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5219 # All Alpha code is PIC. 5293 # All Alpha code is PIC.
5220 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 5294 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5221 ;; 5295 ;;
5222 esac 5296 esac
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'
5647 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 5754 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5648 # see comment about different semantics on the GNU ld section 5755 # see comment about different semantics on the GNU ld section
5649 _LT_AC_TAGVAR(ld_shlibs, $1)=no 5756 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5650 ;; 5757 ;;
5651 5758
5652 bsdi4*) 5759 bsdi[[45]]*)
5653 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic 5760 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
5654 ;; 5761 ;;
5655 5762
5656 cygwin* | mingw* | pw32*) 5763 cygwin* | mingw* | pw32*)
5657 # When not using gcc, we currently assume that we are using 5764 # When not using gcc, we currently assume that we are using
5661 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' 5768 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
5662 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported 5769 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5663 # Tell ltmain to make .lib files, not .a files. 5770 # Tell ltmain to make .lib files, not .a files.
5664 libext=lib 5771 libext=lib
5665 # Tell ltmain to make .dll files, not .so files. 5772 # Tell ltmain to make .dll files, not .so files.
5666 shrext=".dll" 5773 shrext_cmds=".dll"
5667 # FIXME: Setting linknames here is a bad hack. 5774 # FIXME: Setting linknames here is a bad hack.
5668 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 5775 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
5669 # The linker will automatically build a .lib file if we build a DLL. 5776 # The linker will automatically build a .lib file if we build a DLL.
5670 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true' 5777 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
5671 # FIXME: Should let the user specify the lib program. 5778 # FIXME: Should let the user specify the lib program.
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'
5743 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 5859 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5744 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 5860 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5745 ;; 5861 ;;
5746 5862
5747 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 5863 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5748 freebsd*) 5864 freebsd* | kfreebsd*-gnu)
5749 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 5865 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5750 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 5866 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5751 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 5867 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5752 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 5868 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5753 ;; 5869 ;;
5854 openbsd*) 5970 openbsd*)
5855 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 5971 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5856 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 5972 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5857 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5973 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5858 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 5974 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5975 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
5859 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 5976 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5860 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 5977 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5861 else 5978 else
5862 case $host_os in 5979 case $host_os in
5863 openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*) 5980 openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
6060 # systems, -lgcc has to come before -lc. If gcc already passes -lc 6177 # systems, -lgcc has to come before -lc. If gcc already passes -lc
6061 # to ld, don't add -lc before -lgcc. 6178 # to ld, don't add -lc before -lgcc.
6062 AC_MSG_CHECKING([whether -lc should be explicitly linked in]) 6179 AC_MSG_CHECKING([whether -lc should be explicitly linked in])
6063 $rm conftest* 6180 $rm conftest*
6064 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 6181 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6065 6182
6066 if AC_TRY_EVAL(ac_compile) 2>conftest.err; then 6183 if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
6067 soname=conftest 6184 soname=conftest
6068 lib=conftest 6185 lib=conftest
6069 libobjs=conftest.$ac_objext 6186 libobjs=conftest.$ac_objext
6070 deplibs= 6187 deplibs=
6219 lt_ac_max=$lt_ac_count 6336 lt_ac_max=$lt_ac_count
6220 lt_cv_path_SED=$lt_ac_sed 6337 lt_cv_path_SED=$lt_ac_sed
6221 fi 6338 fi
6222 done 6339 done
6223 done 6340 done
6341 ])
6224 SED=$lt_cv_path_SED 6342 SED=$lt_cv_path_SED
6225 ])
6226 AC_MSG_RESULT([$SED]) 6343 AC_MSG_RESULT([$SED])
6227 ]) 6344 ])