diff options
Diffstat (limited to 'libltdl/aclocal.m4')
-rw-r--r-- | libltdl/aclocal.m4 | 711 |
1 files changed, 471 insertions, 240 deletions
diff --git a/libltdl/aclocal.m4 b/libltdl/aclocal.m4 index 2c8d3ea4..8e09194b 100644 --- a/libltdl/aclocal.m4 +++ b/libltdl/aclocal.m4 | |||
@@ -13,7 +13,7 @@ | |||
13 | 13 | ||
14 | # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- | 14 | # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- |
15 | 15 | ||
16 | # serial 47 Debian 1.5.20-2 AC_PROG_LIBTOOL | 16 | # serial 48 Debian 1.5.22-2 AC_PROG_LIBTOOL |
17 | 17 | ||
18 | 18 | ||
19 | # AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED) | 19 | # AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED) |
@@ -163,6 +163,7 @@ test -z "$AR_FLAGS" && AR_FLAGS=cru | |||
163 | test -z "$AS" && AS=as | 163 | test -z "$AS" && AS=as |
164 | test -z "$CC" && CC=cc | 164 | test -z "$CC" && CC=cc |
165 | test -z "$LTCC" && LTCC=$CC | 165 | test -z "$LTCC" && LTCC=$CC |
166 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | ||
166 | test -z "$DLLTOOL" && DLLTOOL=dlltool | 167 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
167 | test -z "$LD" && LD=ld | 168 | test -z "$LD" && LD=ld |
168 | test -z "$LN_S" && LN_S="ln -s" | 169 | test -z "$LN_S" && LN_S="ln -s" |
@@ -182,10 +183,10 @@ old_postuninstall_cmds= | |||
182 | if test -n "$RANLIB"; then | 183 | if test -n "$RANLIB"; then |
183 | case $host_os in | 184 | case $host_os in |
184 | openbsd*) | 185 | openbsd*) |
185 | old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" | 186 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" |
186 | ;; | 187 | ;; |
187 | *) | 188 | *) |
188 | old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" | 189 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" |
189 | ;; | 190 | ;; |
190 | esac | 191 | esac |
191 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | 192 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
@@ -233,6 +234,9 @@ AC_DEFUN([_LT_AC_SYS_COMPILER], | |||
233 | # If no C compiler was specified, use CC. | 234 | # If no C compiler was specified, use CC. |
234 | LTCC=${LTCC-"$CC"} | 235 | LTCC=${LTCC-"$CC"} |
235 | 236 | ||
237 | # If no C compiler flags were specified, use CFLAGS. | ||
238 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | ||
239 | |||
236 | # Allow CC to be a program name with arguments. | 240 | # Allow CC to be a program name with arguments. |
237 | compiler=$CC | 241 | compiler=$CC |
238 | ])# _LT_AC_SYS_COMPILER | 242 | ])# _LT_AC_SYS_COMPILER |
@@ -261,7 +265,7 @@ cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |||
261 | AC_DEFUN([_LT_COMPILER_BOILERPLATE], | 265 | AC_DEFUN([_LT_COMPILER_BOILERPLATE], |
262 | [ac_outfile=conftest.$ac_objext | 266 | [ac_outfile=conftest.$ac_objext |
263 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext | 267 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
264 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err | 268 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
265 | _lt_compiler_boilerplate=`cat conftest.err` | 269 | _lt_compiler_boilerplate=`cat conftest.err` |
266 | $rm conftest* | 270 | $rm conftest* |
267 | ])# _LT_COMPILER_BOILERPLATE | 271 | ])# _LT_COMPILER_BOILERPLATE |
@@ -274,7 +278,7 @@ $rm conftest* | |||
274 | AC_DEFUN([_LT_LINKER_BOILERPLATE], | 278 | AC_DEFUN([_LT_LINKER_BOILERPLATE], |
275 | [ac_outfile=conftest.$ac_objext | 279 | [ac_outfile=conftest.$ac_objext |
276 | printf "$lt_simple_link_test_code" >conftest.$ac_ext | 280 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
277 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err | 281 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
278 | _lt_linker_boilerplate=`cat conftest.err` | 282 | _lt_linker_boilerplate=`cat conftest.err` |
279 | $rm conftest* | 283 | $rm conftest* |
280 | ])# _LT_LINKER_BOILERPLATE | 284 | ])# _LT_LINKER_BOILERPLATE |
@@ -580,6 +584,22 @@ x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) | |||
580 | CFLAGS="$SAVE_CFLAGS" | 584 | CFLAGS="$SAVE_CFLAGS" |
581 | fi | 585 | fi |
582 | ;; | 586 | ;; |
587 | sparc*-*solaris*) | ||
588 | # Find out which ABI we are using. | ||
589 | echo 'int i;' > conftest.$ac_ext | ||
590 | if AC_TRY_EVAL(ac_compile); then | ||
591 | case `/usr/bin/file conftest.o` in | ||
592 | *64-bit*) | ||
593 | case $lt_cv_prog_gnu_ld in | ||
594 | yes*) LD="${LD-ld} -m elf64_sparc" ;; | ||
595 | *) LD="${LD-ld} -64" ;; | ||
596 | esac | ||
597 | ;; | ||
598 | esac | ||
599 | fi | ||
600 | rm -rf conftest* | ||
601 | ;; | ||
602 | |||
583 | AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], | 603 | AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], |
584 | [*-*-cygwin* | *-*-mingw* | *-*-pw32*) | 604 | [*-*-cygwin* | *-*-mingw* | *-*-pw32*) |
585 | AC_CHECK_TOOL(DLLTOOL, dlltool, false) | 605 | AC_CHECK_TOOL(DLLTOOL, dlltool, false) |
@@ -622,9 +642,9 @@ AC_CACHE_CHECK([$1], [$2], | |||
622 | if (exit $ac_status) && test -s "$ac_outfile"; then | 642 | if (exit $ac_status) && test -s "$ac_outfile"; then |
623 | # The compiler can only warn and ignore the option if not recognized | 643 | # The compiler can only warn and ignore the option if not recognized |
624 | # So say no if there are warnings other than the usual output. | 644 | # So say no if there are warnings other than the usual output. |
625 | $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp | 645 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
626 | $SED '/^$/d' conftest.err >conftest.er2 | 646 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
627 | if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then | 647 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
628 | $2=yes | 648 | $2=yes |
629 | fi | 649 | fi |
630 | fi | 650 | fi |
@@ -655,8 +675,8 @@ AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], | |||
655 | if test -s conftest.err; then | 675 | if test -s conftest.err; then |
656 | # Append any errors to the config.log. | 676 | # Append any errors to the config.log. |
657 | cat conftest.err 1>&AS_MESSAGE_LOG_FD | 677 | cat conftest.err 1>&AS_MESSAGE_LOG_FD |
658 | $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp | 678 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
659 | $SED '/^$/d' conftest.err >conftest.er2 | 679 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
660 | if diff conftest.exp conftest.er2 >/dev/null; then | 680 | if diff conftest.exp conftest.er2 >/dev/null; then |
661 | $2=yes | 681 | $2=yes |
662 | fi | 682 | fi |
@@ -731,6 +751,12 @@ AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl | |||
731 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | 751 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
732 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | 752 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
733 | ;; | 753 | ;; |
754 | |||
755 | interix*) | ||
756 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | ||
757 | lt_cv_sys_max_cmd_len=196608 | ||
758 | ;; | ||
759 | |||
734 | osf*) | 760 | osf*) |
735 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | 761 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
736 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | 762 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
@@ -744,6 +770,17 @@ AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl | |||
744 | esac | 770 | esac |
745 | fi | 771 | fi |
746 | ;; | 772 | ;; |
773 | sco3.2v5*) | ||
774 | lt_cv_sys_max_cmd_len=102400 | ||
775 | ;; | ||
776 | sysv5* | sco5v6* | sysv4.2uw2*) | ||
777 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | ||
778 | if test -n "$kargmax"; then | ||
779 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'` | ||
780 | else | ||
781 | lt_cv_sys_max_cmd_len=32768 | ||
782 | fi | ||
783 | ;; | ||
747 | *) | 784 | *) |
748 | # If test is not a shell built-in, we'll probably end up computing a | 785 | # If test is not a shell built-in, we'll probably end up computing a |
749 | # maximum length that is only half of the actual maximum length, but | 786 | # maximum length that is only half of the actual maximum length, but |
@@ -775,7 +812,7 @@ fi | |||
775 | 812 | ||
776 | 813 | ||
777 | # _LT_AC_CHECK_DLFCN | 814 | # _LT_AC_CHECK_DLFCN |
778 | # -------------------- | 815 | # ------------------ |
779 | AC_DEFUN([_LT_AC_CHECK_DLFCN], | 816 | AC_DEFUN([_LT_AC_CHECK_DLFCN], |
780 | [AC_CHECK_HEADERS(dlfcn.h)dnl | 817 | [AC_CHECK_HEADERS(dlfcn.h)dnl |
781 | ])# _LT_AC_CHECK_DLFCN | 818 | ])# _LT_AC_CHECK_DLFCN |
@@ -783,7 +820,7 @@ AC_DEFUN([_LT_AC_CHECK_DLFCN], | |||
783 | 820 | ||
784 | # _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, | 821 | # _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, |
785 | # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) | 822 | # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) |
786 | # ------------------------------------------------------------------ | 823 | # --------------------------------------------------------------------- |
787 | AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF], | 824 | AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF], |
788 | [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl | 825 | [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl |
789 | if test "$cross_compiling" = yes; then : | 826 | if test "$cross_compiling" = yes; then : |
@@ -849,6 +886,8 @@ int main () | |||
849 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | 886 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
850 | /* dlclose (self); */ | 887 | /* dlclose (self); */ |
851 | } | 888 | } |
889 | else | ||
890 | puts (dlerror ()); | ||
852 | 891 | ||
853 | exit (status); | 892 | exit (status); |
854 | }] | 893 | }] |
@@ -859,7 +898,7 @@ EOF | |||
859 | case x$lt_status in | 898 | case x$lt_status in |
860 | x$lt_dlno_uscore) $1 ;; | 899 | x$lt_dlno_uscore) $1 ;; |
861 | x$lt_dlneed_uscore) $2 ;; | 900 | x$lt_dlneed_uscore) $2 ;; |
862 | x$lt_unknown|x*) $3 ;; | 901 | x$lt_dlunknown|x*) $3 ;; |
863 | esac | 902 | esac |
864 | else : | 903 | else : |
865 | # compilation failed | 904 | # compilation failed |
@@ -871,7 +910,7 @@ rm -fr conftest* | |||
871 | 910 | ||
872 | 911 | ||
873 | # AC_LIBTOOL_DLOPEN_SELF | 912 | # AC_LIBTOOL_DLOPEN_SELF |
874 | # ------------------- | 913 | # ---------------------- |
875 | AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], | 914 | AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], |
876 | [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl | 915 | [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl |
877 | if test "x$enable_dlopen" != xyes; then | 916 | if test "x$enable_dlopen" != xyes; then |
@@ -942,7 +981,7 @@ else | |||
942 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | 981 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
943 | 982 | ||
944 | save_LDFLAGS="$LDFLAGS" | 983 | save_LDFLAGS="$LDFLAGS" |
945 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | 984 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
946 | 985 | ||
947 | save_LIBS="$LIBS" | 986 | save_LIBS="$LIBS" |
948 | LIBS="$lt_cv_dlopen_libs $LIBS" | 987 | LIBS="$lt_cv_dlopen_libs $LIBS" |
@@ -955,7 +994,7 @@ else | |||
955 | ]) | 994 | ]) |
956 | 995 | ||
957 | if test "x$lt_cv_dlopen_self" = xyes; then | 996 | if test "x$lt_cv_dlopen_self" = xyes; then |
958 | LDFLAGS="$LDFLAGS $link_static_flag" | 997 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
959 | AC_CACHE_CHECK([whether a statically linked program can dlopen itself], | 998 | AC_CACHE_CHECK([whether a statically linked program can dlopen itself], |
960 | lt_cv_dlopen_self_static, [dnl | 999 | lt_cv_dlopen_self_static, [dnl |
961 | _LT_AC_TRY_DLOPEN_SELF( | 1000 | _LT_AC_TRY_DLOPEN_SELF( |
@@ -1015,9 +1054,9 @@ AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], | |||
1015 | then | 1054 | then |
1016 | # The compiler can only warn and ignore the option if not recognized | 1055 | # The compiler can only warn and ignore the option if not recognized |
1017 | # So say no if there are warnings | 1056 | # So say no if there are warnings |
1018 | $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp | 1057 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
1019 | $SED '/^$/d' out/conftest.err >out/conftest.er2 | 1058 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
1020 | if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then | 1059 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
1021 | _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes | 1060 | _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes |
1022 | fi | 1061 | fi |
1023 | fi | 1062 | fi |
@@ -1402,10 +1441,15 @@ freebsd* | dragonfly*) | |||
1402 | shlibpath_overrides_runpath=yes | 1441 | shlibpath_overrides_runpath=yes |
1403 | hardcode_into_libs=yes | 1442 | hardcode_into_libs=yes |
1404 | ;; | 1443 | ;; |
1405 | *) # from 3.2 on | 1444 | freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ |
1445 | freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) | ||
1406 | shlibpath_overrides_runpath=no | 1446 | shlibpath_overrides_runpath=no |
1407 | hardcode_into_libs=yes | 1447 | hardcode_into_libs=yes |
1408 | ;; | 1448 | ;; |
1449 | freebsd*) # from 4.6 on | ||
1450 | shlibpath_overrides_runpath=yes | ||
1451 | hardcode_into_libs=yes | ||
1452 | ;; | ||
1409 | esac | 1453 | esac |
1410 | ;; | 1454 | ;; |
1411 | 1455 | ||
@@ -1465,6 +1509,18 @@ hpux9* | hpux10* | hpux11*) | |||
1465 | postinstall_cmds='chmod 555 $lib' | 1509 | postinstall_cmds='chmod 555 $lib' |
1466 | ;; | 1510 | ;; |
1467 | 1511 | ||
1512 | interix3*) | ||
1513 | version_type=linux | ||
1514 | need_lib_prefix=no | ||
1515 | need_version=no | ||
1516 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | ||
1517 | soname_spec='${libname}${release}${shared_ext}$major' | ||
1518 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | ||
1519 | shlibpath_var=LD_LIBRARY_PATH | ||
1520 | shlibpath_overrides_runpath=no | ||
1521 | hardcode_into_libs=yes | ||
1522 | ;; | ||
1523 | |||
1468 | irix5* | irix6* | nonstopux*) | 1524 | irix5* | irix6* | nonstopux*) |
1469 | case $host_os in | 1525 | case $host_os in |
1470 | nonstopux*) version_type=nonstopux ;; | 1526 | nonstopux*) version_type=nonstopux ;; |
@@ -1598,6 +1654,7 @@ nto-qnx*) | |||
1598 | 1654 | ||
1599 | openbsd*) | 1655 | openbsd*) |
1600 | version_type=sunos | 1656 | version_type=sunos |
1657 | sys_lib_dlsearch_path_spec="/usr/lib" | ||
1601 | need_lib_prefix=no | 1658 | need_lib_prefix=no |
1602 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | 1659 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
1603 | case $host_os in | 1660 | case $host_os in |
@@ -1641,13 +1698,6 @@ osf3* | osf4* | osf5*) | |||
1641 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | 1698 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
1642 | ;; | 1699 | ;; |
1643 | 1700 | ||
1644 | sco3.2v5*) | ||
1645 | version_type=osf | ||
1646 | soname_spec='${libname}${release}${shared_ext}$major' | ||
1647 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
1648 | shlibpath_var=LD_LIBRARY_PATH | ||
1649 | ;; | ||
1650 | |||
1651 | solaris*) | 1701 | solaris*) |
1652 | version_type=linux | 1702 | version_type=linux |
1653 | need_lib_prefix=no | 1703 | need_lib_prefix=no |
@@ -1673,7 +1723,7 @@ sunos4*) | |||
1673 | need_version=yes | 1723 | need_version=yes |
1674 | ;; | 1724 | ;; |
1675 | 1725 | ||
1676 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | 1726 | sysv4 | sysv4.3*) |
1677 | version_type=linux | 1727 | version_type=linux |
1678 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 1728 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
1679 | soname_spec='${libname}${release}${shared_ext}$major' | 1729 | soname_spec='${libname}${release}${shared_ext}$major' |
@@ -1706,6 +1756,29 @@ sysv4*MP*) | |||
1706 | fi | 1756 | fi |
1707 | ;; | 1757 | ;; |
1708 | 1758 | ||
1759 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | ||
1760 | version_type=freebsd-elf | ||
1761 | need_lib_prefix=no | ||
1762 | need_version=no | ||
1763 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | ||
1764 | soname_spec='${libname}${release}${shared_ext}$major' | ||
1765 | shlibpath_var=LD_LIBRARY_PATH | ||
1766 | hardcode_into_libs=yes | ||
1767 | if test "$with_gnu_ld" = yes; then | ||
1768 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | ||
1769 | shlibpath_overrides_runpath=no | ||
1770 | else | ||
1771 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | ||
1772 | shlibpath_overrides_runpath=yes | ||
1773 | case $host_os in | ||
1774 | sco3.2v5*) | ||
1775 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | ||
1776 | ;; | ||
1777 | esac | ||
1778 | fi | ||
1779 | sys_lib_dlsearch_path_spec='/usr/lib' | ||
1780 | ;; | ||
1781 | |||
1709 | uts4*) | 1782 | uts4*) |
1710 | version_type=linux | 1783 | version_type=linux |
1711 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 1784 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
@@ -1719,6 +1792,11 @@ uts4*) | |||
1719 | esac | 1792 | esac |
1720 | AC_MSG_RESULT([$dynamic_linker]) | 1793 | AC_MSG_RESULT([$dynamic_linker]) |
1721 | test "$dynamic_linker" = no && can_build_shared=no | 1794 | test "$dynamic_linker" = no && can_build_shared=no |
1795 | |||
1796 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | ||
1797 | if test "$GCC" = yes; then | ||
1798 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | ||
1799 | fi | ||
1722 | ])# AC_LIBTOOL_SYS_DYNAMIC_LINKER | 1800 | ])# AC_LIBTOOL_SYS_DYNAMIC_LINKER |
1723 | 1801 | ||
1724 | 1802 | ||
@@ -1743,6 +1821,9 @@ if test -f "$ltmain" && test -n "$tagnames"; then | |||
1743 | AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile']) | 1821 | AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile']) |
1744 | fi | 1822 | fi |
1745 | fi | 1823 | fi |
1824 | if test -z "$LTCFLAGS"; then | ||
1825 | eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" | ||
1826 | fi | ||
1746 | 1827 | ||
1747 | # Extract list of available tagged configurations in $ofile. | 1828 | # Extract list of available tagged configurations in $ofile. |
1748 | # Note that this assumes the entire list is on one line. | 1829 | # Note that this assumes the entire list is on one line. |
@@ -1871,7 +1952,7 @@ AC_ARG_ENABLE([shared], | |||
1871 | 1952 | ||
1872 | # AC_DISABLE_SHARED | 1953 | # AC_DISABLE_SHARED |
1873 | # ----------------- | 1954 | # ----------------- |
1874 | #- set the default shared flag to --disable-shared | 1955 | # set the default shared flag to --disable-shared |
1875 | AC_DEFUN([AC_DISABLE_SHARED], | 1956 | AC_DEFUN([AC_DISABLE_SHARED], |
1876 | [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl | 1957 | [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl |
1877 | AC_ENABLE_SHARED(no) | 1958 | AC_ENABLE_SHARED(no) |
@@ -2179,7 +2260,7 @@ reload_cmds='$LD$reload_flag -o $output$reload_objs' | |||
2179 | case $host_os in | 2260 | case $host_os in |
2180 | darwin*) | 2261 | darwin*) |
2181 | if test "$GCC" = yes; then | 2262 | if test "$GCC" = yes; then |
2182 | reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs' | 2263 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' |
2183 | else | 2264 | else |
2184 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | 2265 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
2185 | fi | 2266 | fi |
@@ -2279,6 +2360,11 @@ hpux10.20* | hpux11*) | |||
2279 | esac | 2360 | esac |
2280 | ;; | 2361 | ;; |
2281 | 2362 | ||
2363 | interix3*) | ||
2364 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | ||
2365 | lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' | ||
2366 | ;; | ||
2367 | |||
2282 | irix5* | irix6* | nonstopux*) | 2368 | irix5* | irix6* | nonstopux*) |
2283 | case $LD in | 2369 | case $LD in |
2284 | *-32|*"-32 ") libmagic=32-bit;; | 2370 | *-32|*"-32 ") libmagic=32-bit;; |
@@ -2324,15 +2410,11 @@ osf3* | osf4* | osf5*) | |||
2324 | lt_cv_deplibs_check_method=pass_all | 2410 | lt_cv_deplibs_check_method=pass_all |
2325 | ;; | 2411 | ;; |
2326 | 2412 | ||
2327 | sco3.2v5*) | ||
2328 | lt_cv_deplibs_check_method=pass_all | ||
2329 | ;; | ||
2330 | |||
2331 | solaris*) | 2413 | solaris*) |
2332 | lt_cv_deplibs_check_method=pass_all | 2414 | lt_cv_deplibs_check_method=pass_all |
2333 | ;; | 2415 | ;; |
2334 | 2416 | ||
2335 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | 2417 | sysv4 | sysv4.3*) |
2336 | case $host_vendor in | 2418 | case $host_vendor in |
2337 | motorola) | 2419 | motorola) |
2338 | lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]' | 2420 | lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]' |
@@ -2353,10 +2435,13 @@ sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |||
2353 | siemens) | 2435 | siemens) |
2354 | lt_cv_deplibs_check_method=pass_all | 2436 | lt_cv_deplibs_check_method=pass_all |
2355 | ;; | 2437 | ;; |
2438 | pc) | ||
2439 | lt_cv_deplibs_check_method=pass_all | ||
2440 | ;; | ||
2356 | esac | 2441 | esac |
2357 | ;; | 2442 | ;; |
2358 | 2443 | ||
2359 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7* | sysv4*uw2*) | 2444 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
2360 | lt_cv_deplibs_check_method=pass_all | 2445 | lt_cv_deplibs_check_method=pass_all |
2361 | ;; | 2446 | ;; |
2362 | esac | 2447 | esac |
@@ -2376,36 +2461,43 @@ AC_DEFUN([AC_PROG_NM], | |||
2376 | # Let the user override the test. | 2461 | # Let the user override the test. |
2377 | lt_cv_path_NM="$NM" | 2462 | lt_cv_path_NM="$NM" |
2378 | else | 2463 | else |
2379 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | 2464 | lt_nm_to_check="${ac_tool_prefix}nm" |
2380 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do | 2465 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
2381 | IFS="$lt_save_ifs" | 2466 | lt_nm_to_check="$lt_nm_to_check nm" |
2382 | test -z "$ac_dir" && ac_dir=. | 2467 | fi |
2383 | tmp_nm="$ac_dir/${ac_tool_prefix}nm" | 2468 | for lt_tmp_nm in $lt_nm_to_check; do |
2384 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | 2469 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
2385 | # Check to see if the nm accepts a BSD-compat flag. | 2470 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
2386 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | 2471 | IFS="$lt_save_ifs" |
2387 | # nm: unknown option "B" ignored | 2472 | test -z "$ac_dir" && ac_dir=. |
2388 | # Tru64's nm complains that /dev/null is an invalid object file | 2473 | tmp_nm="$ac_dir/$lt_tmp_nm" |
2389 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | 2474 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
2390 | */dev/null* | *'Invalid file or object type'*) | 2475 | # Check to see if the nm accepts a BSD-compat flag. |
2391 | lt_cv_path_NM="$tmp_nm -B" | 2476 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
2392 | break | 2477 | # nm: unknown option "B" ignored |
2393 | ;; | 2478 | # Tru64's nm complains that /dev/null is an invalid object file |
2394 | *) | 2479 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
2395 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | 2480 | */dev/null* | *'Invalid file or object type'*) |
2396 | */dev/null*) | 2481 | lt_cv_path_NM="$tmp_nm -B" |
2397 | lt_cv_path_NM="$tmp_nm -p" | ||
2398 | break | 2482 | break |
2399 | ;; | 2483 | ;; |
2400 | *) | 2484 | *) |
2401 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | 2485 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
2402 | continue # so that we can try to find one that supports BSD flags | 2486 | */dev/null*) |
2487 | lt_cv_path_NM="$tmp_nm -p" | ||
2488 | break | ||
2489 | ;; | ||
2490 | *) | ||
2491 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | ||
2492 | continue # so that we can try to find one that supports BSD flags | ||
2493 | ;; | ||
2494 | esac | ||
2403 | ;; | 2495 | ;; |
2404 | esac | 2496 | esac |
2405 | esac | 2497 | fi |
2406 | fi | 2498 | done |
2499 | IFS="$lt_save_ifs" | ||
2407 | done | 2500 | done |
2408 | IFS="$lt_save_ifs" | ||
2409 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm | 2501 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
2410 | fi]) | 2502 | fi]) |
2411 | NM="$lt_cv_path_NM" | 2503 | NM="$lt_cv_path_NM" |
@@ -2511,7 +2603,7 @@ _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX]) | |||
2511 | ])# _LT_AC_LANG_CXX | 2603 | ])# _LT_AC_LANG_CXX |
2512 | 2604 | ||
2513 | # _LT_AC_PROG_CXXCPP | 2605 | # _LT_AC_PROG_CXXCPP |
2514 | # --------------- | 2606 | # ------------------ |
2515 | AC_DEFUN([_LT_AC_PROG_CXXCPP], | 2607 | AC_DEFUN([_LT_AC_PROG_CXXCPP], |
2516 | [ | 2608 | [ |
2517 | AC_REQUIRE([AC_PROG_CXX]) | 2609 | AC_REQUIRE([AC_PROG_CXX]) |
@@ -2560,7 +2652,7 @@ _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ]) | |||
2560 | 2652 | ||
2561 | 2653 | ||
2562 | # AC_LIBTOOL_RC | 2654 | # AC_LIBTOOL_RC |
2563 | # -------------- | 2655 | # ------------- |
2564 | # enable support for Windows resource files | 2656 | # enable support for Windows resource files |
2565 | AC_DEFUN([AC_LIBTOOL_RC], | 2657 | AC_DEFUN([AC_LIBTOOL_RC], |
2566 | [AC_REQUIRE([LT_AC_PROG_RC]) | 2658 | [AC_REQUIRE([LT_AC_PROG_RC]) |
@@ -2597,37 +2689,6 @@ _LT_AC_SYS_COMPILER | |||
2597 | _LT_COMPILER_BOILERPLATE | 2689 | _LT_COMPILER_BOILERPLATE |
2598 | _LT_LINKER_BOILERPLATE | 2690 | _LT_LINKER_BOILERPLATE |
2599 | 2691 | ||
2600 | # | ||
2601 | # Check for any special shared library compilation flags. | ||
2602 | # | ||
2603 | _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)= | ||
2604 | if test "$GCC" = no; then | ||
2605 | case $host_os in | ||
2606 | sco3.2v5*) | ||
2607 | _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf' | ||
2608 | ;; | ||
2609 | esac | ||
2610 | fi | ||
2611 | if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then | ||
2612 | AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries]) | ||
2613 | if echo "$old_CC $old_CFLAGS " | grep "[[ ]]$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[ ]]" >/dev/null; then : | ||
2614 | else | ||
2615 | AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure]) | ||
2616 | _LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no | ||
2617 | fi | ||
2618 | fi | ||
2619 | |||
2620 | |||
2621 | # | ||
2622 | # Check to make sure the static flag actually works. | ||
2623 | # | ||
2624 | AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works], | ||
2625 | _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1), | ||
2626 | $_LT_AC_TAGVAR(lt_prog_compiler_static, $1), | ||
2627 | [], | ||
2628 | [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=]) | ||
2629 | |||
2630 | |||
2631 | AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) | 2692 | AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) |
2632 | AC_LIBTOOL_PROG_COMPILER_PIC($1) | 2693 | AC_LIBTOOL_PROG_COMPILER_PIC($1) |
2633 | AC_LIBTOOL_PROG_CC_C_O($1) | 2694 | AC_LIBTOOL_PROG_CC_C_O($1) |
@@ -2636,9 +2697,9 @@ AC_LIBTOOL_PROG_LD_SHLIBS($1) | |||
2636 | AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) | 2697 | AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) |
2637 | AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) | 2698 | AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) |
2638 | AC_LIBTOOL_SYS_LIB_STRIP | 2699 | AC_LIBTOOL_SYS_LIB_STRIP |
2639 | AC_LIBTOOL_DLOPEN_SELF($1) | 2700 | AC_LIBTOOL_DLOPEN_SELF |
2640 | 2701 | ||
2641 | # Report which librarie types wil actually be built | 2702 | # Report which library types will actually be built |
2642 | AC_MSG_CHECKING([if libtool supports shared libraries]) | 2703 | AC_MSG_CHECKING([if libtool supports shared libraries]) |
2643 | AC_MSG_RESULT([$can_build_shared]) | 2704 | AC_MSG_RESULT([$can_build_shared]) |
2644 | 2705 | ||
@@ -2697,6 +2758,7 @@ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= | |||
2697 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= | 2758 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= |
2698 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= | 2759 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= |
2699 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=no | 2760 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=no |
2761 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported | ||
2700 | _LT_AC_TAGVAR(hardcode_automatic, $1)=no | 2762 | _LT_AC_TAGVAR(hardcode_automatic, $1)=no |
2701 | _LT_AC_TAGVAR(module_cmds, $1)= | 2763 | _LT_AC_TAGVAR(module_cmds, $1)= |
2702 | _LT_AC_TAGVAR(module_expsym_cmds, $1)= | 2764 | _LT_AC_TAGVAR(module_expsym_cmds, $1)= |
@@ -2724,7 +2786,7 @@ _LT_AC_TAGVAR(objext, $1)=$objext | |||
2724 | lt_simple_compile_test_code="int some_variable = 0;\n" | 2786 | lt_simple_compile_test_code="int some_variable = 0;\n" |
2725 | 2787 | ||
2726 | # Code to be used in simple link tests | 2788 | # Code to be used in simple link tests |
2727 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' | 2789 | lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n' |
2728 | 2790 | ||
2729 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | 2791 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
2730 | _LT_AC_SYS_COMPILER | 2792 | _LT_AC_SYS_COMPILER |
@@ -2743,12 +2805,12 @@ lt_save_path_LD=$lt_cv_path_LD | |||
2743 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then | 2805 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
2744 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx | 2806 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
2745 | else | 2807 | else |
2746 | unset lt_cv_prog_gnu_ld | 2808 | $as_unset lt_cv_prog_gnu_ld |
2747 | fi | 2809 | fi |
2748 | if test -n "${lt_cv_path_LDCXX+set}"; then | 2810 | if test -n "${lt_cv_path_LDCXX+set}"; then |
2749 | lt_cv_path_LD=$lt_cv_path_LDCXX | 2811 | lt_cv_path_LD=$lt_cv_path_LDCXX |
2750 | else | 2812 | else |
2751 | unset lt_cv_path_LD | 2813 | $as_unset lt_cv_path_LD |
2752 | fi | 2814 | fi |
2753 | test -z "${LDCXX+set}" || LD=$LDCXX | 2815 | test -z "${LDCXX+set}" || LD=$LDCXX |
2754 | CC=${CXX-"c++"} | 2816 | CC=${CXX-"c++"} |
@@ -2843,6 +2905,7 @@ case $host_os in | |||
2843 | ;; | 2905 | ;; |
2844 | esac | 2906 | esac |
2845 | done | 2907 | done |
2908 | ;; | ||
2846 | esac | 2909 | esac |
2847 | 2910 | ||
2848 | exp_sym_flag='-bexport' | 2911 | exp_sym_flag='-bexport' |
@@ -2880,6 +2943,7 @@ case $host_os in | |||
2880 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | 2943 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
2881 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= | 2944 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= |
2882 | fi | 2945 | fi |
2946 | ;; | ||
2883 | esac | 2947 | esac |
2884 | shared_flag='-shared' | 2948 | shared_flag='-shared' |
2885 | if test "$aix_use_runtimelinking" = yes; then | 2949 | if test "$aix_use_runtimelinking" = yes; then |
@@ -2911,12 +2975,12 @@ case $host_os in | |||
2911 | _LT_AC_SYS_LIBPATH_AIX | 2975 | _LT_AC_SYS_LIBPATH_AIX |
2912 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" | 2976 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" |
2913 | 2977 | ||
2914 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" | 2978 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
2915 | else | 2979 | else |
2916 | if test "$host_cpu" = ia64; then | 2980 | if test "$host_cpu" = ia64; then |
2917 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' | 2981 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' |
2918 | _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" | 2982 | _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" |
2919 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" | 2983 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" |
2920 | else | 2984 | else |
2921 | # Determine the default libpath from the value encoded in an empty executable. | 2985 | # Determine the default libpath from the value encoded in an empty executable. |
2922 | _LT_AC_SYS_LIBPATH_AIX | 2986 | _LT_AC_SYS_LIBPATH_AIX |
@@ -2925,16 +2989,26 @@ case $host_os in | |||
2925 | # -berok will link without error, but may produce a broken library. | 2989 | # -berok will link without error, but may produce a broken library. |
2926 | _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' | 2990 | _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' |
2927 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' | 2991 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' |
2928 | # -bexpall does not export symbols beginning with underscore (_) | ||
2929 | _LT_AC_TAGVAR(always_export_symbols, $1)=yes | ||
2930 | # Exported symbols can be pulled into shared objects from archives | 2992 | # Exported symbols can be pulled into shared objects from archives |
2931 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' ' | 2993 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience' |
2932 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes | 2994 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes |
2933 | # This is similar to how AIX traditionally builds its shared libraries. | 2995 | # This is similar to how AIX traditionally builds its shared libraries. |
2934 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' | 2996 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
2935 | fi | 2997 | fi |
2936 | fi | 2998 | fi |
2937 | ;; | 2999 | ;; |
3000 | |||
3001 | beos*) | ||
3002 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | ||
3003 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported | ||
3004 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | ||
3005 | # support --undefined. This deserves some investigation. FIXME | ||
3006 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
3007 | else | ||
3008 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
3009 | fi | ||
3010 | ;; | ||
3011 | |||
2938 | chorus*) | 3012 | chorus*) |
2939 | case $cc_basename in | 3013 | case $cc_basename in |
2940 | *) | 3014 | *) |
@@ -2944,7 +3018,6 @@ case $host_os in | |||
2944 | esac | 3018 | esac |
2945 | ;; | 3019 | ;; |
2946 | 3020 | ||
2947 | |||
2948 | cygwin* | mingw* | pw32*) | 3021 | cygwin* | mingw* | pw32*) |
2949 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, | 3022 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, |
2950 | # as there is no search path for DLLs. | 3023 | # as there is no search path for DLLs. |
@@ -2954,7 +3027,7 @@ case $host_os in | |||
2954 | _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes | 3027 | _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes |
2955 | 3028 | ||
2956 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | 3029 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
2957 | _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' | 3030 | _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 -Xlinker --out-implib -Xlinker $lib' |
2958 | # If the export-symbols file already is a .def file (1st line | 3031 | # If the export-symbols file already is a .def file (1st line |
2959 | # is EXPORTS), use it as is; otherwise, prepend... | 3032 | # is EXPORTS), use it as is; otherwise, prepend... |
2960 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | 3033 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
@@ -2963,7 +3036,7 @@ case $host_os in | |||
2963 | echo EXPORTS > $output_objdir/$soname.def; | 3036 | echo EXPORTS > $output_objdir/$soname.def; |
2964 | cat $export_symbols >> $output_objdir/$soname.def; | 3037 | cat $export_symbols >> $output_objdir/$soname.def; |
2965 | fi~ | 3038 | fi~ |
2966 | $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' | 3039 | $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
2967 | else | 3040 | else |
2968 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | 3041 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
2969 | fi | 3042 | fi |
@@ -3100,34 +3173,23 @@ case $host_os in | |||
3100 | ;; | 3173 | ;; |
3101 | hpux10*|hpux11*) | 3174 | hpux10*|hpux11*) |
3102 | if test $with_gnu_ld = no; then | 3175 | if test $with_gnu_ld = no; then |
3176 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' | ||
3177 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | ||
3178 | |||
3103 | case $host_cpu in | 3179 | case $host_cpu in |
3104 | hppa*64*) | 3180 | hppa*64*|ia64*) |
3105 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' | ||
3106 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' | 3181 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' |
3107 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | ||
3108 | ;; | ||
3109 | ia64*) | ||
3110 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | ||
3111 | ;; | 3182 | ;; |
3112 | *) | 3183 | *) |
3113 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' | ||
3114 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | ||
3115 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | 3184 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
3116 | ;; | 3185 | ;; |
3117 | esac | 3186 | esac |
3118 | fi | 3187 | fi |
3119 | case $host_cpu in | 3188 | case $host_cpu in |
3120 | hppa*64*) | 3189 | hppa*64*|ia64*) |
3121 | _LT_AC_TAGVAR(hardcode_direct, $1)=no | 3190 | _LT_AC_TAGVAR(hardcode_direct, $1)=no |
3122 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | 3191 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
3123 | ;; | 3192 | ;; |
3124 | ia64*) | ||
3125 | _LT_AC_TAGVAR(hardcode_direct, $1)=no | ||
3126 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | ||
3127 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, | ||
3128 | # but as the default | ||
3129 | # location of the library. | ||
3130 | ;; | ||
3131 | *) | 3193 | *) |
3132 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes | 3194 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
3133 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, | 3195 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, |
@@ -3143,8 +3205,11 @@ case $host_os in | |||
3143 | ;; | 3205 | ;; |
3144 | aCC*) | 3206 | aCC*) |
3145 | case $host_cpu in | 3207 | case $host_cpu in |
3146 | hppa*64*|ia64*) | 3208 | hppa*64*) |
3147 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' | 3209 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
3210 | ;; | ||
3211 | ia64*) | ||
3212 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | ||
3148 | ;; | 3213 | ;; |
3149 | *) | 3214 | *) |
3150 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | 3215 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
@@ -3164,8 +3229,11 @@ case $host_os in | |||
3164 | if test "$GXX" = yes; then | 3229 | if test "$GXX" = yes; then |
3165 | if test $with_gnu_ld = no; then | 3230 | if test $with_gnu_ld = no; then |
3166 | case $host_cpu in | 3231 | case $host_cpu in |
3167 | ia64*|hppa*64*) | 3232 | hppa*64*) |
3168 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' | 3233 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
3234 | ;; | ||
3235 | ia64*) | ||
3236 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | ||
3169 | ;; | 3237 | ;; |
3170 | *) | 3238 | *) |
3171 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | 3239 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
@@ -3179,6 +3247,20 @@ case $host_os in | |||
3179 | ;; | 3247 | ;; |
3180 | esac | 3248 | esac |
3181 | ;; | 3249 | ;; |
3250 | interix3*) | ||
3251 | _LT_AC_TAGVAR(hardcode_direct, $1)=no | ||
3252 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | ||
3253 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' | ||
3254 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | ||
3255 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | ||
3256 | # Instead, shared libraries are loaded at an image base (0x10000000 by | ||
3257 | # default) and relocated if they conflict, which is a slow very memory | ||
3258 | # consuming and fragmenting process. To avoid this, we pick a random, | ||
3259 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | ||
3260 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | ||
3261 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | ||
3262 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | ||
3263 | ;; | ||
3182 | irix5* | irix6*) | 3264 | irix5* | irix6*) |
3183 | case $cc_basename in | 3265 | case $cc_basename in |
3184 | CC*) | 3266 | CC*) |
@@ -3461,19 +3543,6 @@ case $host_os in | |||
3461 | # FIXME: insert proper C++ library support | 3543 | # FIXME: insert proper C++ library support |
3462 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | 3544 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
3463 | ;; | 3545 | ;; |
3464 | sco*) | ||
3465 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no | ||
3466 | case $cc_basename in | ||
3467 | CC*) | ||
3468 | # FIXME: insert proper C++ library support | ||
3469 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
3470 | ;; | ||
3471 | *) | ||
3472 | # FIXME: insert proper C++ library support | ||
3473 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
3474 | ;; | ||
3475 | esac | ||
3476 | ;; | ||
3477 | sunos4*) | 3546 | sunos4*) |
3478 | case $cc_basename in | 3547 | case $cc_basename in |
3479 | CC*) | 3548 | CC*) |
@@ -3566,8 +3635,59 @@ case $host_os in | |||
3566 | ;; | 3635 | ;; |
3567 | esac | 3636 | esac |
3568 | ;; | 3637 | ;; |
3569 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*) | 3638 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) |
3639 | _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' | ||
3640 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no | ||
3641 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | ||
3642 | runpath_var='LD_RUN_PATH' | ||
3643 | |||
3644 | case $cc_basename in | ||
3645 | CC*) | ||
3646 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
3647 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
3648 | ;; | ||
3649 | *) | ||
3650 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
3651 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
3652 | ;; | ||
3653 | esac | ||
3654 | ;; | ||
3655 | sysv5* | sco3.2v5* | sco5v6*) | ||
3656 | # Note: We can NOT use -z defs as we might desire, because we do not | ||
3657 | # link with -lc, and that would cause any symbols used from libc to | ||
3658 | # always be unresolved, which means just about no library would | ||
3659 | # ever link correctly. If we're not using GNU ld we use -z text | ||
3660 | # though, which does catch some bad symbols but isn't as heavy-handed | ||
3661 | # as -z defs. | ||
3662 | # For security reasons, it is highly recommended that you always | ||
3663 | # use absolute paths for naming shared libraries, and exclude the | ||
3664 | # DT_RUNPATH tag from executables and libraries. But doing so | ||
3665 | # requires that you compile everything twice, which is a pain. | ||
3666 | # So that behaviour is only enabled if SCOABSPATH is set to a | ||
3667 | # non-empty value in the environment. Most likely only useful for | ||
3668 | # creating official distributions of packages. | ||
3669 | # This is a hack until libtool officially supports absolute path | ||
3670 | # names for shared libraries. | ||
3671 | _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' | ||
3672 | _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' | ||
3570 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no | 3673 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
3674 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | ||
3675 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' | ||
3676 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' | ||
3677 | _LT_AC_TAGVAR(link_all_deplibs, $1)=yes | ||
3678 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' | ||
3679 | runpath_var='LD_RUN_PATH' | ||
3680 | |||
3681 | case $cc_basename in | ||
3682 | CC*) | ||
3683 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
3684 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
3685 | ;; | ||
3686 | *) | ||
3687 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
3688 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
3689 | ;; | ||
3690 | esac | ||
3571 | ;; | 3691 | ;; |
3572 | tandem*) | 3692 | tandem*) |
3573 | case $cc_basename in | 3693 | case $cc_basename in |
@@ -3604,8 +3724,6 @@ AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) | |||
3604 | AC_LIBTOOL_PROG_LD_SHLIBS($1) | 3724 | AC_LIBTOOL_PROG_LD_SHLIBS($1) |
3605 | AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) | 3725 | AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) |
3606 | AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) | 3726 | AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) |
3607 | AC_LIBTOOL_SYS_LIB_STRIP | ||
3608 | AC_LIBTOOL_DLOPEN_SELF($1) | ||
3609 | 3727 | ||
3610 | AC_LIBTOOL_CONFIG($1) | 3728 | AC_LIBTOOL_CONFIG($1) |
3611 | 3729 | ||
@@ -3623,7 +3741,7 @@ lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld | |||
3623 | ])# AC_LIBTOOL_LANG_CXX_CONFIG | 3741 | ])# AC_LIBTOOL_LANG_CXX_CONFIG |
3624 | 3742 | ||
3625 | # AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME]) | 3743 | # AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME]) |
3626 | # ------------------------ | 3744 | # ------------------------------------ |
3627 | # Figure out "hidden" library dependencies from verbose | 3745 | # Figure out "hidden" library dependencies from verbose |
3628 | # compiler output when linking a shared library. | 3746 | # compiler output when linking a shared library. |
3629 | # Parse the compiler output and extract the necessary | 3747 | # Parse the compiler output and extract the necessary |
@@ -3756,6 +3874,14 @@ $rm -f confest.$objext | |||
3756 | # PORTME: override above test on systems where it is broken | 3874 | # PORTME: override above test on systems where it is broken |
3757 | ifelse([$1],[CXX], | 3875 | ifelse([$1],[CXX], |
3758 | [case $host_os in | 3876 | [case $host_os in |
3877 | interix3*) | ||
3878 | # Interix 3.5 installs completely hosed .la files for C++, so rather than | ||
3879 | # hack all around it, let's just trust "g++" to DTRT. | ||
3880 | _LT_AC_TAGVAR(predep_objects,$1)= | ||
3881 | _LT_AC_TAGVAR(postdep_objects,$1)= | ||
3882 | _LT_AC_TAGVAR(postdeps,$1)= | ||
3883 | ;; | ||
3884 | |||
3759 | solaris*) | 3885 | solaris*) |
3760 | case $cc_basename in | 3886 | case $cc_basename in |
3761 | CC*) | 3887 | CC*) |
@@ -3765,6 +3891,7 @@ solaris*) | |||
3765 | _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun' | 3891 | _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun' |
3766 | ;; | 3892 | ;; |
3767 | esac | 3893 | esac |
3894 | ;; | ||
3768 | esac | 3895 | esac |
3769 | ]) | 3896 | ]) |
3770 | 3897 | ||
@@ -3774,7 +3901,7 @@ esac | |||
3774 | ])# AC_LIBTOOL_POSTDEP_PREDEP | 3901 | ])# AC_LIBTOOL_POSTDEP_PREDEP |
3775 | 3902 | ||
3776 | # AC_LIBTOOL_LANG_F77_CONFIG | 3903 | # AC_LIBTOOL_LANG_F77_CONFIG |
3777 | # ------------------------ | 3904 | # -------------------------- |
3778 | # Ensure that the configuration vars for the C compiler are | 3905 | # Ensure that the configuration vars for the C compiler are |
3779 | # suitably defined. Those variables are subsequently used by | 3906 | # suitably defined. Those variables are subsequently used by |
3780 | # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. | 3907 | # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. |
@@ -3858,8 +3985,6 @@ AC_MSG_CHECKING([whether to build static libraries]) | |||
3858 | test "$enable_shared" = yes || enable_static=yes | 3985 | test "$enable_shared" = yes || enable_static=yes |
3859 | AC_MSG_RESULT([$enable_static]) | 3986 | AC_MSG_RESULT([$enable_static]) |
3860 | 3987 | ||
3861 | test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no | ||
3862 | |||
3863 | _LT_AC_TAGVAR(GCC, $1)="$G77" | 3988 | _LT_AC_TAGVAR(GCC, $1)="$G77" |
3864 | _LT_AC_TAGVAR(LD, $1)="$LD" | 3989 | _LT_AC_TAGVAR(LD, $1)="$LD" |
3865 | 3990 | ||
@@ -3869,8 +3994,6 @@ AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) | |||
3869 | AC_LIBTOOL_PROG_LD_SHLIBS($1) | 3994 | AC_LIBTOOL_PROG_LD_SHLIBS($1) |
3870 | AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) | 3995 | AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) |
3871 | AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) | 3996 | AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) |
3872 | AC_LIBTOOL_SYS_LIB_STRIP | ||
3873 | |||
3874 | 3997 | ||
3875 | AC_LIBTOOL_CONFIG($1) | 3998 | AC_LIBTOOL_CONFIG($1) |
3876 | 3999 | ||
@@ -3927,8 +4050,6 @@ AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) | |||
3927 | AC_LIBTOOL_PROG_LD_SHLIBS($1) | 4050 | AC_LIBTOOL_PROG_LD_SHLIBS($1) |
3928 | AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) | 4051 | AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) |
3929 | AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) | 4052 | AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) |
3930 | AC_LIBTOOL_SYS_LIB_STRIP | ||
3931 | AC_LIBTOOL_DLOPEN_SELF($1) | ||
3932 | 4053 | ||
3933 | AC_LIBTOOL_CONFIG($1) | 4054 | AC_LIBTOOL_CONFIG($1) |
3934 | 4055 | ||
@@ -3938,7 +4059,7 @@ CC="$lt_save_CC" | |||
3938 | 4059 | ||
3939 | 4060 | ||
3940 | # AC_LIBTOOL_LANG_RC_CONFIG | 4061 | # AC_LIBTOOL_LANG_RC_CONFIG |
3941 | # -------------------------- | 4062 | # ------------------------- |
3942 | # Ensure that the configuration vars for the Windows resource compiler are | 4063 | # Ensure that the configuration vars for the Windows resource compiler are |
3943 | # suitably defined. Those variables are subsequently used by | 4064 | # suitably defined. Those variables are subsequently used by |
3944 | # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. | 4065 | # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. |
@@ -4001,7 +4122,7 @@ if test -f "$ltmain"; then | |||
4001 | # Now quote all the things that may contain metacharacters while being | 4122 | # Now quote all the things that may contain metacharacters while being |
4002 | # careful not to overquote the AC_SUBSTed values. We take copies of the | 4123 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
4003 | # variables and quote the copies for generation of the libtool script. | 4124 | # variables and quote the copies for generation of the libtool script. |
4004 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ | 4125 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
4005 | SED SHELL STRIP \ | 4126 | SED SHELL STRIP \ |
4006 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | 4127 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
4007 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | 4128 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
@@ -4170,6 +4291,9 @@ AR_FLAGS=$lt_AR_FLAGS | |||
4170 | # A C compiler. | 4291 | # A C compiler. |
4171 | LTCC=$lt_LTCC | 4292 | LTCC=$lt_LTCC |
4172 | 4293 | ||
4294 | # LTCC compiler flags. | ||
4295 | LTCFLAGS=$lt_LTCFLAGS | ||
4296 | |||
4173 | # A language-specific compiler. | 4297 | # A language-specific compiler. |
4174 | CC=$lt_[]_LT_AC_TAGVAR(compiler, $1) | 4298 | CC=$lt_[]_LT_AC_TAGVAR(compiler, $1) |
4175 | 4299 | ||
@@ -4543,9 +4667,18 @@ irix* | nonstopux*) | |||
4543 | osf*) | 4667 | osf*) |
4544 | symcode='[[BCDEGQRST]]' | 4668 | symcode='[[BCDEGQRST]]' |
4545 | ;; | 4669 | ;; |
4546 | solaris* | sysv5*) | 4670 | solaris*) |
4547 | symcode='[[BDRT]]' | 4671 | symcode='[[BDRT]]' |
4548 | ;; | 4672 | ;; |
4673 | sco3.2v5*) | ||
4674 | symcode='[[DT]]' | ||
4675 | ;; | ||
4676 | sysv4.2uw2*) | ||
4677 | symcode='[[DT]]' | ||
4678 | ;; | ||
4679 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | ||
4680 | symcode='[[ABDT]]' | ||
4681 | ;; | ||
4549 | sysv4) | 4682 | sysv4) |
4550 | symcode='[[DFNSTU]]' | 4683 | symcode='[[DFNSTU]]' |
4551 | ;; | 4684 | ;; |
@@ -4728,6 +4861,10 @@ AC_MSG_CHECKING([for $compiler option to produce PIC]) | |||
4728 | # DJGPP does not support shared libraries at all | 4861 | # DJGPP does not support shared libraries at all |
4729 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= | 4862 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= |
4730 | ;; | 4863 | ;; |
4864 | interix3*) | ||
4865 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | ||
4866 | # Instead, we relocate shared libraries at runtime. | ||
4867 | ;; | ||
4731 | sysv4*MP*) | 4868 | sysv4*MP*) |
4732 | if test -d /usr/nec; then | 4869 | if test -d /usr/nec; then |
4733 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic | 4870 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic |
@@ -4797,14 +4934,14 @@ AC_MSG_CHECKING([for $compiler option to produce PIC]) | |||
4797 | case $cc_basename in | 4934 | case $cc_basename in |
4798 | CC*) | 4935 | CC*) |
4799 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | 4936 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
4800 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" | 4937 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' |
4801 | if test "$host_cpu" != ia64; then | 4938 | if test "$host_cpu" != ia64; then |
4802 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' | 4939 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' |
4803 | fi | 4940 | fi |
4804 | ;; | 4941 | ;; |
4805 | aCC*) | 4942 | aCC*) |
4806 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | 4943 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
4807 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" | 4944 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' |
4808 | case $host_cpu in | 4945 | case $host_cpu in |
4809 | hppa*64*|ia64*) | 4946 | hppa*64*|ia64*) |
4810 | # +Z the default | 4947 | # +Z the default |
@@ -4818,6 +4955,10 @@ AC_MSG_CHECKING([for $compiler option to produce PIC]) | |||
4818 | ;; | 4955 | ;; |
4819 | esac | 4956 | esac |
4820 | ;; | 4957 | ;; |
4958 | interix*) | ||
4959 | # This is c89, which is MS Visual C++ (no shared libs) | ||
4960 | # Anyone wants to do a port? | ||
4961 | ;; | ||
4821 | irix5* | irix6* | nonstopux*) | 4962 | irix5* | irix6* | nonstopux*) |
4822 | case $cc_basename in | 4963 | case $cc_basename in |
4823 | CC*) | 4964 | CC*) |
@@ -4897,15 +5038,6 @@ AC_MSG_CHECKING([for $compiler option to produce PIC]) | |||
4897 | ;; | 5038 | ;; |
4898 | psos*) | 5039 | psos*) |
4899 | ;; | 5040 | ;; |
4900 | sco*) | ||
4901 | case $cc_basename in | ||
4902 | CC*) | ||
4903 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' | ||
4904 | ;; | ||
4905 | *) | ||
4906 | ;; | ||
4907 | esac | ||
4908 | ;; | ||
4909 | solaris*) | 5041 | solaris*) |
4910 | case $cc_basename in | 5042 | case $cc_basename in |
4911 | CC*) | 5043 | CC*) |
@@ -4947,7 +5079,14 @@ AC_MSG_CHECKING([for $compiler option to produce PIC]) | |||
4947 | ;; | 5079 | ;; |
4948 | esac | 5080 | esac |
4949 | ;; | 5081 | ;; |
4950 | unixware*) | 5082 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
5083 | case $cc_basename in | ||
5084 | CC*) | ||
5085 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
5086 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | ||
5087 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | ||
5088 | ;; | ||
5089 | esac | ||
4951 | ;; | 5090 | ;; |
4952 | vxworks*) | 5091 | vxworks*) |
4953 | ;; | 5092 | ;; |
@@ -4994,6 +5133,11 @@ AC_MSG_CHECKING([for $compiler option to produce PIC]) | |||
4994 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' | 5133 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' |
4995 | ;; | 5134 | ;; |
4996 | 5135 | ||
5136 | interix3*) | ||
5137 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | ||
5138 | # Instead, we relocate shared libraries at runtime. | ||
5139 | ;; | ||
5140 | |||
4997 | msdosdjgpp*) | 5141 | msdosdjgpp*) |
4998 | # Just because we use GCC doesn't mean we suddenly get shared libraries | 5142 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
4999 | # on systems that don't support them. | 5143 | # on systems that don't support them. |
@@ -5108,11 +5252,6 @@ AC_MSG_CHECKING([for $compiler option to produce PIC]) | |||
5108 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' | 5252 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
5109 | ;; | 5253 | ;; |
5110 | 5254 | ||
5111 | sco3.2v5*) | ||
5112 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kpic' | ||
5113 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-dn' | ||
5114 | ;; | ||
5115 | |||
5116 | solaris*) | 5255 | solaris*) |
5117 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | 5256 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
5118 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | 5257 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
@@ -5130,7 +5269,7 @@ AC_MSG_CHECKING([for $compiler option to produce PIC]) | |||
5130 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | 5269 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
5131 | ;; | 5270 | ;; |
5132 | 5271 | ||
5133 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | 5272 | sysv4 | sysv4.2uw2* | sysv4.3*) |
5134 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | 5273 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
5135 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | 5274 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
5136 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | 5275 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
@@ -5143,6 +5282,12 @@ AC_MSG_CHECKING([for $compiler option to produce PIC]) | |||
5143 | fi | 5282 | fi |
5144 | ;; | 5283 | ;; |
5145 | 5284 | ||
5285 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | ||
5286 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
5287 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | ||
5288 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | ||
5289 | ;; | ||
5290 | |||
5146 | unicos*) | 5291 | unicos*) |
5147 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | 5292 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
5148 | _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no | 5293 | _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no |
@@ -5184,6 +5329,16 @@ case $host_os in | |||
5184 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])" | 5329 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])" |
5185 | ;; | 5330 | ;; |
5186 | esac | 5331 | esac |
5332 | |||
5333 | # | ||
5334 | # Check to make sure the static flag actually works. | ||
5335 | # | ||
5336 | wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\" | ||
5337 | AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], | ||
5338 | _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1), | ||
5339 | $lt_tmp_static_flag, | ||
5340 | [], | ||
5341 | [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=]) | ||
5187 | ]) | 5342 | ]) |
5188 | 5343 | ||
5189 | 5344 | ||
@@ -5210,6 +5365,9 @@ ifelse([$1],[CXX],[ | |||
5210 | cygwin* | mingw*) | 5365 | cygwin* | mingw*) |
5211 | _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([[^ ]]*\) [[^ ]]*/\1 DATA/;/^I /d;/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols' | 5366 | _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([[^ ]]*\) [[^ ]]*/\1 DATA/;/^I /d;/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols' |
5212 | ;; | 5367 | ;; |
5368 | kfreebsd*-gnu) | ||
5369 | _LT_AC_TAGVAR(link_all_deplibs, $1)=no | ||
5370 | ;; | ||
5213 | linux*) | 5371 | linux*) |
5214 | _LT_AC_TAGVAR(link_all_deplibs, $1)=no | 5372 | _LT_AC_TAGVAR(link_all_deplibs, $1)=no |
5215 | ;; | 5373 | ;; |
@@ -5265,6 +5423,10 @@ ifelse([$1],[CXX],[ | |||
5265 | with_gnu_ld=no | 5423 | with_gnu_ld=no |
5266 | fi | 5424 | fi |
5267 | ;; | 5425 | ;; |
5426 | interix*) | ||
5427 | # we just hope/assume this is gcc and not c89 (= MSVC++) | ||
5428 | with_gnu_ld=yes | ||
5429 | ;; | ||
5268 | openbsd*) | 5430 | openbsd*) |
5269 | with_gnu_ld=no | 5431 | with_gnu_ld=no |
5270 | ;; | 5432 | ;; |
@@ -5349,7 +5511,7 @@ EOF | |||
5349 | _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols' | 5511 | _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols' |
5350 | 5512 | ||
5351 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | 5513 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
5352 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' | 5514 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
5353 | # If the export-symbols file already is a .def file (1st line | 5515 | # If the export-symbols file already is a .def file (1st line |
5354 | # is EXPORTS), use it as is; otherwise, prepend... | 5516 | # is EXPORTS), use it as is; otherwise, prepend... |
5355 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | 5517 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
@@ -5358,12 +5520,27 @@ EOF | |||
5358 | echo EXPORTS > $output_objdir/$soname.def; | 5520 | echo EXPORTS > $output_objdir/$soname.def; |
5359 | cat $export_symbols >> $output_objdir/$soname.def; | 5521 | cat $export_symbols >> $output_objdir/$soname.def; |
5360 | fi~ | 5522 | fi~ |
5361 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' | 5523 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
5362 | else | 5524 | else |
5363 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | 5525 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
5364 | fi | 5526 | fi |
5365 | ;; | 5527 | ;; |
5366 | 5528 | ||
5529 | interix3*) | ||
5530 | _LT_AC_TAGVAR(hardcode_direct, $1)=no | ||
5531 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | ||
5532 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' | ||
5533 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | ||
5534 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | ||
5535 | # Instead, shared libraries are loaded at an image base (0x10000000 by | ||
5536 | # default) and relocated if they conflict, which is a slow very memory | ||
5537 | # consuming and fragmenting process. To avoid this, we pick a random, | ||
5538 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | ||
5539 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | ||
5540 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | ||
5541 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | ||
5542 | ;; | ||
5543 | |||
5367 | linux*) | 5544 | linux*) |
5368 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | 5545 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
5369 | tmp_addflag= | 5546 | tmp_addflag= |
@@ -5406,7 +5583,7 @@ EOF | |||
5406 | fi | 5583 | fi |
5407 | ;; | 5584 | ;; |
5408 | 5585 | ||
5409 | solaris* | sysv5*) | 5586 | solaris*) |
5410 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then | 5587 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
5411 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | 5588 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
5412 | cat <<EOF 1>&2 | 5589 | cat <<EOF 1>&2 |
@@ -5427,6 +5604,33 @@ EOF | |||
5427 | fi | 5604 | fi |
5428 | ;; | 5605 | ;; |
5429 | 5606 | ||
5607 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | ||
5608 | case `$LD -v 2>&1` in | ||
5609 | *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) | ||
5610 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
5611 | cat <<_LT_EOF 1>&2 | ||
5612 | |||
5613 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | ||
5614 | *** reliably create shared libraries on SCO systems. Therefore, libtool | ||
5615 | *** is disabling shared libraries support. We urge you to upgrade GNU | ||
5616 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | ||
5617 | *** your PATH or compiler configuration so that the native linker is | ||
5618 | *** used, and then restart. | ||
5619 | |||
5620 | _LT_EOF | ||
5621 | ;; | ||
5622 | *) | ||
5623 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | ||
5624 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' | ||
5625 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' | ||
5626 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' | ||
5627 | else | ||
5628 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
5629 | fi | ||
5630 | ;; | ||
5631 | esac | ||
5632 | ;; | ||
5633 | |||
5430 | sunos4*) | 5634 | sunos4*) |
5431 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | 5635 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
5432 | wlarc= | 5636 | wlarc= |
@@ -5460,7 +5664,7 @@ EOF | |||
5460 | # Note: this linker hardcodes the directories in LIBPATH if there | 5664 | # Note: this linker hardcodes the directories in LIBPATH if there |
5461 | # are no directories specified by -L. | 5665 | # are no directories specified by -L. |
5462 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes | 5666 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes |
5463 | if test "$GCC" = yes && test -z "$link_static_flag"; then | 5667 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
5464 | # Neither direct hardcoding nor static linking is supported with a | 5668 | # Neither direct hardcoding nor static linking is supported with a |
5465 | # broken collect2. | 5669 | # broken collect2. |
5466 | _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported | 5670 | _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported |
@@ -5494,6 +5698,7 @@ EOF | |||
5494 | break | 5698 | break |
5495 | fi | 5699 | fi |
5496 | done | 5700 | done |
5701 | ;; | ||
5497 | esac | 5702 | esac |
5498 | 5703 | ||
5499 | exp_sym_flag='-bexport' | 5704 | exp_sym_flag='-bexport' |
@@ -5531,6 +5736,7 @@ EOF | |||
5531 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | 5736 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
5532 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= | 5737 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= |
5533 | fi | 5738 | fi |
5739 | ;; | ||
5534 | esac | 5740 | esac |
5535 | shared_flag='-shared' | 5741 | shared_flag='-shared' |
5536 | if test "$aix_use_runtimelinking" = yes; then | 5742 | if test "$aix_use_runtimelinking" = yes; then |
@@ -5543,11 +5749,11 @@ EOF | |||
5543 | # chokes on -Wl,-G. The following line is correct: | 5749 | # chokes on -Wl,-G. The following line is correct: |
5544 | shared_flag='-G' | 5750 | shared_flag='-G' |
5545 | else | 5751 | else |
5546 | if test "$aix_use_runtimelinking" = yes; then | 5752 | if test "$aix_use_runtimelinking" = yes; then |
5547 | shared_flag='${wl}-G' | 5753 | shared_flag='${wl}-G' |
5548 | else | 5754 | else |
5549 | shared_flag='${wl}-bM:SRE' | 5755 | shared_flag='${wl}-bM:SRE' |
5550 | fi | 5756 | fi |
5551 | fi | 5757 | fi |
5552 | fi | 5758 | fi |
5553 | 5759 | ||
@@ -5561,12 +5767,12 @@ EOF | |||
5561 | # Determine the default libpath from the value encoded in an empty executable. | 5767 | # Determine the default libpath from the value encoded in an empty executable. |
5562 | _LT_AC_SYS_LIBPATH_AIX | 5768 | _LT_AC_SYS_LIBPATH_AIX |
5563 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" | 5769 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" |
5564 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" | 5770 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
5565 | else | 5771 | else |
5566 | if test "$host_cpu" = ia64; then | 5772 | if test "$host_cpu" = ia64; then |
5567 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' | 5773 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' |
5568 | _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" | 5774 | _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" |
5569 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" | 5775 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" |
5570 | else | 5776 | else |
5571 | # Determine the default libpath from the value encoded in an empty executable. | 5777 | # Determine the default libpath from the value encoded in an empty executable. |
5572 | _LT_AC_SYS_LIBPATH_AIX | 5778 | _LT_AC_SYS_LIBPATH_AIX |
@@ -5575,13 +5781,11 @@ EOF | |||
5575 | # -berok will link without error, but may produce a broken library. | 5781 | # -berok will link without error, but may produce a broken library. |
5576 | _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' | 5782 | _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' |
5577 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' | 5783 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' |
5578 | # -bexpall does not export symbols beginning with underscore (_) | ||
5579 | _LT_AC_TAGVAR(always_export_symbols, $1)=yes | ||
5580 | # Exported symbols can be pulled into shared objects from archives | 5784 | # Exported symbols can be pulled into shared objects from archives |
5581 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' ' | 5785 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience' |
5582 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes | 5786 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes |
5583 | # This is similar to how AIX traditionally builds its shared libraries. | 5787 | # This is similar to how AIX traditionally builds its shared libraries. |
5584 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' | 5788 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
5585 | fi | 5789 | fi |
5586 | fi | 5790 | fi |
5587 | ;; | 5791 | ;; |
@@ -5699,12 +5903,21 @@ EOF | |||
5699 | ;; | 5903 | ;; |
5700 | 5904 | ||
5701 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | 5905 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
5702 | freebsd* | kfreebsd*-gnu | dragonfly*) | 5906 | freebsd* | dragonfly*) |
5703 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | 5907 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
5704 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' | 5908 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
5705 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes | 5909 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
5706 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | 5910 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
5707 | ;; | 5911 | ;; |
5912 | |||
5913 | # GNU/kFreeBSD uses gcc -shared to do shared libraries. | ||
5914 | kfreebsd*-gnu) | ||
5915 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | ||
5916 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' | ||
5917 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes | ||
5918 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | ||
5919 | _LT_AC_TAGVAR(link_all_deplibs, $1)=no | ||
5920 | ;; | ||
5708 | 5921 | ||
5709 | hpux9*) | 5922 | hpux9*) |
5710 | if test "$GCC" = yes; then | 5923 | if test "$GCC" = yes; then |
@@ -5722,47 +5935,62 @@ EOF | |||
5722 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | 5935 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
5723 | ;; | 5936 | ;; |
5724 | 5937 | ||
5725 | hpux10* | hpux11*) | 5938 | hpux10*) |
5939 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | ||
5940 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
5941 | else | ||
5942 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | ||
5943 | fi | ||
5944 | if test "$with_gnu_ld" = no; then | ||
5945 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' | ||
5946 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | ||
5947 | |||
5948 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes | ||
5949 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | ||
5950 | |||
5951 | # hardcode_minus_L: Not really in the search PATH, | ||
5952 | # but as the default location of the library. | ||
5953 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes | ||
5954 | fi | ||
5955 | ;; | ||
5956 | |||
5957 | hpux11*) | ||
5726 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | 5958 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
5727 | case $host_cpu in | 5959 | case $host_cpu in |
5728 | hppa*64*|ia64*) | 5960 | hppa*64*) |
5729 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 5961 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
5730 | ;; | 5962 | ;; |
5963 | ia64*) | ||
5964 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | ||
5965 | ;; | ||
5731 | *) | 5966 | *) |
5732 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | 5967 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
5733 | ;; | 5968 | ;; |
5734 | esac | 5969 | esac |
5735 | else | 5970 | else |
5736 | case $host_cpu in | 5971 | case $host_cpu in |
5737 | hppa*64*|ia64*) | 5972 | hppa*64*) |
5738 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' | 5973 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
5974 | ;; | ||
5975 | ia64*) | ||
5976 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | ||
5739 | ;; | 5977 | ;; |
5740 | *) | 5978 | *) |
5741 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | 5979 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
5742 | ;; | 5980 | ;; |
5743 | esac | 5981 | esac |
5744 | fi | 5982 | fi |
5745 | if test "$with_gnu_ld" = no; then | 5983 | if test "$with_gnu_ld" = no; then |
5984 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' | ||
5985 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | ||
5986 | |||
5746 | case $host_cpu in | 5987 | case $host_cpu in |
5747 | hppa*64*) | 5988 | hppa*64*|ia64*) |
5748 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' | ||
5749 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' | 5989 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' |
5750 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | ||
5751 | _LT_AC_TAGVAR(hardcode_direct, $1)=no | ||
5752 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | ||
5753 | ;; | ||
5754 | ia64*) | ||
5755 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | ||
5756 | _LT_AC_TAGVAR(hardcode_direct, $1)=no | 5990 | _LT_AC_TAGVAR(hardcode_direct, $1)=no |
5757 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | 5991 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
5758 | |||
5759 | # hardcode_minus_L: Not really in the search PATH, | ||
5760 | # but as the default location of the library. | ||
5761 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes | ||
5762 | ;; | 5992 | ;; |
5763 | *) | 5993 | *) |
5764 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' | ||
5765 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | ||
5766 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes | 5994 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
5767 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | 5995 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
5768 | 5996 | ||
@@ -5864,14 +6092,6 @@ EOF | |||
5864 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | 6092 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
5865 | ;; | 6093 | ;; |
5866 | 6094 | ||
5867 | sco3.2v5*) | ||
5868 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
5869 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | ||
5870 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' | ||
5871 | runpath_var=LD_RUN_PATH | ||
5872 | hardcode_runpath_var=yes | ||
5873 | ;; | ||
5874 | |||
5875 | solaris*) | 6095 | solaris*) |
5876 | _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text' | 6096 | _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text' |
5877 | if test "$GCC" = yes; then | 6097 | if test "$GCC" = yes; then |
@@ -5957,36 +6177,45 @@ EOF | |||
5957 | fi | 6177 | fi |
5958 | ;; | 6178 | ;; |
5959 | 6179 | ||
5960 | sysv4.2uw2*) | 6180 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*) |
5961 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' | 6181 | _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' |
5962 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes | 6182 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
5963 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=no | ||
5964 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | 6183 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
5965 | hardcode_runpath_var=yes | 6184 | runpath_var='LD_RUN_PATH' |
5966 | runpath_var=LD_RUN_PATH | ||
5967 | ;; | ||
5968 | 6185 | ||
5969 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*) | ||
5970 | _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text' | ||
5971 | if test "$GCC" = yes; then | 6186 | if test "$GCC" = yes; then |
5972 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 6187 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
6188 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
5973 | else | 6189 | else |
5974 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 6190 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
6191 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
5975 | fi | 6192 | fi |
5976 | runpath_var='LD_RUN_PATH' | ||
5977 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | ||
5978 | ;; | 6193 | ;; |
5979 | 6194 | ||
5980 | sysv5*) | 6195 | sysv5* | sco3.2v5* | sco5v6*) |
5981 | _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text' | 6196 | # Note: We can NOT use -z defs as we might desire, because we do not |
5982 | # $CC -shared without GNU ld will not create a library from C++ | 6197 | # link with -lc, and that would cause any symbols used from libc to |
5983 | # object files and a static libstdc++, better avoid it by now | 6198 | # always be unresolved, which means just about no library would |
5984 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | 6199 | # ever link correctly. If we're not using GNU ld we use -z text |
5985 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | 6200 | # though, which does catch some bad symbols but isn't as heavy-handed |
5986 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | 6201 | # as -z defs. |
5987 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= | 6202 | _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' |
6203 | _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' | ||
6204 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no | ||
5988 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | 6205 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
6206 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' | ||
6207 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' | ||
6208 | _LT_AC_TAGVAR(link_all_deplibs, $1)=yes | ||
6209 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' | ||
5989 | runpath_var='LD_RUN_PATH' | 6210 | runpath_var='LD_RUN_PATH' |
6211 | |||
6212 | if test "$GCC" = yes; then | ||
6213 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
6214 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
6215 | else | ||
6216 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
6217 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
6218 | fi | ||
5990 | ;; | 6219 | ;; |
5991 | 6220 | ||
5992 | uts4*) | 6221 | uts4*) |
@@ -6004,11 +6233,6 @@ EOF | |||
6004 | AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)]) | 6233 | AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)]) |
6005 | test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no | 6234 | test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no |
6006 | 6235 | ||
6007 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | ||
6008 | if test "$GCC" = yes; then | ||
6009 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | ||
6010 | fi | ||
6011 | |||
6012 | # | 6236 | # |
6013 | # Do we need to explicitly link libc? | 6237 | # Do we need to explicitly link libc? |
6014 | # | 6238 | # |
@@ -6036,6 +6260,7 @@ x|xyes) | |||
6036 | libobjs=conftest.$ac_objext | 6260 | libobjs=conftest.$ac_objext |
6037 | deplibs= | 6261 | deplibs= |
6038 | wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) | 6262 | wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) |
6263 | pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) | ||
6039 | compiler_flags=-v | 6264 | compiler_flags=-v |
6040 | linker_flags=-v | 6265 | linker_flags=-v |
6041 | verstring= | 6266 | verstring= |
@@ -6192,7 +6417,7 @@ AC_MSG_RESULT([$SED]) | |||
6192 | ]) | 6417 | ]) |
6193 | 6418 | ||
6194 | 6419 | ||
6195 | # serial 6 AC_LIB_LTDL | 6420 | # serial 7 AC_LIB_LTDL |
6196 | 6421 | ||
6197 | # AC_WITH_LTDL | 6422 | # AC_WITH_LTDL |
6198 | # ------------ | 6423 | # ------------ |
@@ -6286,7 +6511,7 @@ AC_DEFUN([AC_LTDL_ENABLE_INSTALL], | |||
6286 | 6511 | ||
6287 | AM_CONDITIONAL(INSTALL_LTDL, test x"${enable_ltdl_install-no}" != xno) | 6512 | AM_CONDITIONAL(INSTALL_LTDL, test x"${enable_ltdl_install-no}" != xno) |
6288 | AM_CONDITIONAL(CONVENIENCE_LTDL, test x"${enable_ltdl_convenience-no}" != xno) | 6513 | AM_CONDITIONAL(CONVENIENCE_LTDL, test x"${enable_ltdl_convenience-no}" != xno) |
6289 | ])])# AC_LTDL_ENABLE_INSTALL | 6514 | ])# AC_LTDL_ENABLE_INSTALL |
6290 | 6515 | ||
6291 | 6516 | ||
6292 | # AC_LTDL_SYS_DLOPEN_DEPLIBS | 6517 | # AC_LTDL_SYS_DLOPEN_DEPLIBS |
@@ -6321,6 +6546,9 @@ AC_CACHE_CHECK([whether deplibs are loaded by dlopen], | |||
6321 | hpux10*|hpux11*) | 6546 | hpux10*|hpux11*) |
6322 | libltdl_cv_sys_dlopen_deplibs=yes | 6547 | libltdl_cv_sys_dlopen_deplibs=yes |
6323 | ;; | 6548 | ;; |
6549 | interix*) | ||
6550 | libltdl_cv_sys_dlopen_deplibs=yes | ||
6551 | ;; | ||
6324 | irix[[12345]]*|irix6.[[01]]*) | 6552 | irix[[12345]]*|irix6.[[01]]*) |
6325 | # Catch all versions of IRIX before 6.2, and indicate that we don't | 6553 | # Catch all versions of IRIX before 6.2, and indicate that we don't |
6326 | # know how it worked for any of those versions. | 6554 | # know how it worked for any of those versions. |
@@ -6362,6 +6590,9 @@ AC_CACHE_CHECK([whether deplibs are loaded by dlopen], | |||
6362 | solaris*) | 6590 | solaris*) |
6363 | libltdl_cv_sys_dlopen_deplibs=yes | 6591 | libltdl_cv_sys_dlopen_deplibs=yes |
6364 | ;; | 6592 | ;; |
6593 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | ||
6594 | libltdl_cv_sys_dlopen_deplibs=yes | ||
6595 | ;; | ||
6365 | esac | 6596 | esac |
6366 | ]) | 6597 | ]) |
6367 | if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then | 6598 | if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then |