aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2006-03-13 01:37:51 +0000
committerChristian Grothoff <christian@grothoff.org>2006-03-13 01:37:51 +0000
commit91574251fe4a5d386a3226e647a89e73a479e101 (patch)
treeb17108bad02ff784db5bf98d4c8f8750b000e268
parentb6298727e5e8e38de31b4bdc50b349bed5611da8 (diff)
downloadgnunet-gtk-91574251fe4a5d386a3226e647a89e73a479e101.tar.gz
gnunet-gtk-91574251fe4a5d386a3226e647a89e73a479e101.zip
autotools update?
-rw-r--r--libltdl/aclocal.m4711
-rwxr-xr-xlibltdl/config.guess51
-rwxr-xr-xlibltdl/config.sub47
-rwxr-xr-xlibltdl/configure3325
-rw-r--r--libltdl/ltmain.sh575
-rw-r--r--ltmain.sh575
6 files changed, 2605 insertions, 2679 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
163test -z "$AS" && AS=as 163test -z "$AS" && AS=as
164test -z "$CC" && CC=cc 164test -z "$CC" && CC=cc
165test -z "$LTCC" && LTCC=$CC 165test -z "$LTCC" && LTCC=$CC
166test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
166test -z "$DLLTOOL" && DLLTOOL=dlltool 167test -z "$DLLTOOL" && DLLTOOL=dlltool
167test -z "$LD" && LD=ld 168test -z "$LD" && LD=ld
168test -z "$LN_S" && LN_S="ln -s" 169test -z "$LN_S" && LN_S="ln -s"
@@ -182,10 +183,10 @@ old_postuninstall_cmds=
182if test -n "$RANLIB"; then 183if 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.
234LTCC=${LTCC-"$CC"} 235LTCC=${LTCC-"$CC"}
235 236
237# If no C compiler flags were specified, use CFLAGS.
238LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
239
236# Allow CC to be a program name with arguments. 240# Allow CC to be a program name with arguments.
237compiler=$CC 241compiler=$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-%%"`
261AC_DEFUN([_LT_COMPILER_BOILERPLATE], 265AC_DEFUN([_LT_COMPILER_BOILERPLATE],
262[ac_outfile=conftest.$ac_objext 266[ac_outfile=conftest.$ac_objext
263printf "$lt_simple_compile_test_code" >conftest.$ac_ext 267printf "$lt_simple_compile_test_code" >conftest.$ac_ext
264eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 268eval "$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*
274AC_DEFUN([_LT_LINKER_BOILERPLATE], 278AC_DEFUN([_LT_LINKER_BOILERPLATE],
275[ac_outfile=conftest.$ac_objext 279[ac_outfile=conftest.$ac_objext
276printf "$lt_simple_link_test_code" >conftest.$ac_ext 280printf "$lt_simple_link_test_code" >conftest.$ac_ext
277eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 281eval "$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 ;;
587sparc*-*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
583AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], 603AC_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# ------------------
779AC_DEFUN([_LT_AC_CHECK_DLFCN], 816AC_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# ---------------------------------------------------------------------
787AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF], 824AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
788[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl 825[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
789if test "$cross_compiling" = yes; then : 826if 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# ----------------------
875AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], 914AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
876[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl 915[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
877if test "x$enable_dlopen" != xyes; then 916if 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
1512interix3*)
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
1468irix5* | irix6* | nonstopux*) 1524irix5* | 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
1599openbsd*) 1655openbsd*)
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
1644sco3.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
1651solaris*) 1701solaris*)
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
1676sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 1726sysv4 | 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
1759sysv5* | 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
1709uts4*) 1782uts4*)
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*)
1719esac 1792esac
1720AC_MSG_RESULT([$dynamic_linker]) 1793AC_MSG_RESULT([$dynamic_linker])
1721test "$dynamic_linker" = no && can_build_shared=no 1794test "$dynamic_linker" = no && can_build_shared=no
1795
1796variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
1797if test "$GCC" = yes; then
1798 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
1799fi
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
1875AC_DEFUN([AC_DISABLE_SHARED], 1956AC_DEFUN([AC_DISABLE_SHARED],
1876[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl 1957[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
1877AC_ENABLE_SHARED(no) 1958AC_ENABLE_SHARED(no)
@@ -2179,7 +2260,7 @@ reload_cmds='$LD$reload_flag -o $output$reload_objs'
2179case $host_os in 2260case $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
2363interix3*)
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
2282irix5* | irix6* | nonstopux*) 2368irix5* | 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
2327sco3.2v5*)
2328 lt_cv_deplibs_check_method=pass_all
2329 ;;
2330
2331solaris*) 2413solaris*)
2332 lt_cv_deplibs_check_method=pass_all 2414 lt_cv_deplibs_check_method=pass_all
2333 ;; 2415 ;;
2334 2416
2335sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 2417sysv4 | 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
2359sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7* | sysv4*uw2*) 2444sysv5* | 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 ;;
2362esac 2447esac
@@ -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"
2378else 2463else
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
2410fi]) 2502fi])
2411NM="$lt_cv_path_NM" 2503NM="$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# ------------------
2515AC_DEFUN([_LT_AC_PROG_CXXCPP], 2607AC_DEFUN([_LT_AC_PROG_CXXCPP],
2516[ 2608[
2517AC_REQUIRE([AC_PROG_CXX]) 2609AC_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
2565AC_DEFUN([AC_LIBTOOL_RC], 2657AC_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)=
2604if 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
2610fi
2611if 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
2618fi
2619
2620
2621#
2622# Check to make sure the static flag actually works.
2623#
2624AC_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
2631AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) 2692AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
2632AC_LIBTOOL_PROG_COMPILER_PIC($1) 2693AC_LIBTOOL_PROG_COMPILER_PIC($1)
2633AC_LIBTOOL_PROG_CC_C_O($1) 2694AC_LIBTOOL_PROG_CC_C_O($1)
@@ -2636,9 +2697,9 @@ AC_LIBTOOL_PROG_LD_SHLIBS($1)
2636AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) 2697AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
2637AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) 2698AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
2638AC_LIBTOOL_SYS_LIB_STRIP 2699AC_LIBTOOL_SYS_LIB_STRIP
2639AC_LIBTOOL_DLOPEN_SELF($1) 2700AC_LIBTOOL_DLOPEN_SELF
2640 2701
2641# Report which librarie types wil actually be built 2702# Report which library types will actually be built
2642AC_MSG_CHECKING([if libtool supports shared libraries]) 2703AC_MSG_CHECKING([if libtool supports shared libraries])
2643AC_MSG_RESULT([$can_build_shared]) 2704AC_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
2724lt_simple_compile_test_code="int some_variable = 0;\n" 2786lt_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
2727lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' 2789lt_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
2743if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 2805if 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
2745else 2807else
2746 unset lt_cv_prog_gnu_ld 2808 $as_unset lt_cv_prog_gnu_ld
2747fi 2809fi
2748if test -n "${lt_cv_path_LDCXX+set}"; then 2810if 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
2750else 2812else
2751 unset lt_cv_path_LD 2813 $as_unset lt_cv_path_LD
2752fi 2814fi
2753test -z "${LDCXX+set}" || LD=$LDCXX 2815test -z "${LDCXX+set}" || LD=$LDCXX
2754CC=${CXX-"c++"} 2816CC=${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)
3604AC_LIBTOOL_PROG_LD_SHLIBS($1) 3724AC_LIBTOOL_PROG_LD_SHLIBS($1)
3605AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) 3725AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3606AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) 3726AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3607AC_LIBTOOL_SYS_LIB_STRIP
3608AC_LIBTOOL_DLOPEN_SELF($1)
3609 3727
3610AC_LIBTOOL_CONFIG($1) 3728AC_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
3757ifelse([$1],[CXX], 3875ifelse([$1],[CXX],
3758[case $host_os in 3876[case $host_os in
3877interix3*)
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
3759solaris*) 3885solaris*)
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 ;;
3768esac 3895esac
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])
3858test "$enable_shared" = yes || enable_static=yes 3985test "$enable_shared" = yes || enable_static=yes
3859AC_MSG_RESULT([$enable_static]) 3986AC_MSG_RESULT([$enable_static])
3860 3987
3861test "$_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)
3869AC_LIBTOOL_PROG_LD_SHLIBS($1) 3994AC_LIBTOOL_PROG_LD_SHLIBS($1)
3870AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) 3995AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3871AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) 3996AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3872AC_LIBTOOL_SYS_LIB_STRIP
3873
3874 3997
3875AC_LIBTOOL_CONFIG($1) 3998AC_LIBTOOL_CONFIG($1)
3876 3999
@@ -3927,8 +4050,6 @@ AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
3927AC_LIBTOOL_PROG_LD_SHLIBS($1) 4050AC_LIBTOOL_PROG_LD_SHLIBS($1)
3928AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) 4051AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3929AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) 4052AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3930AC_LIBTOOL_SYS_LIB_STRIP
3931AC_LIBTOOL_DLOPEN_SELF($1)
3932 4053
3933AC_LIBTOOL_CONFIG($1) 4054AC_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.
4171LTCC=$lt_LTCC 4292LTCC=$lt_LTCC
4172 4293
4294# LTCC compiler flags.
4295LTCFLAGS=$lt_LTCFLAGS
4296
4173# A language-specific compiler. 4297# A language-specific compiler.
4174CC=$lt_[]_LT_AC_TAGVAR(compiler, $1) 4298CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
4175 4299
@@ -4543,9 +4667,18 @@ irix* | nonstopux*)
4543osf*) 4667osf*)
4544 symcode='[[BCDEGQRST]]' 4668 symcode='[[BCDEGQRST]]'
4545 ;; 4669 ;;
4546solaris* | sysv5*) 4670solaris*)
4547 symcode='[[BDRT]]' 4671 symcode='[[BDRT]]'
4548 ;; 4672 ;;
4673sco3.2v5*)
4674 symcode='[[DT]]'
4675 ;;
4676sysv4.2uw2*)
4677 symcode='[[DT]]'
4678 ;;
4679sysv5* | sco5v6* | unixware* | OpenUNIX*)
4680 symcode='[[ABDT]]'
4681 ;;
4549sysv4) 4682sysv4)
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 ;;
5186esac 5331esac
5332
5333#
5334# Check to make sure the static flag actually works.
5335#
5336wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
5337AC_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
6004AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)]) 6233AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
6005test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no 6234test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
6006 6235
6007variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6008if test "$GCC" = yes; then
6009 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6010fi
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
6287AM_CONDITIONAL(INSTALL_LTDL, test x"${enable_ltdl_install-no}" != xno) 6512AM_CONDITIONAL(INSTALL_LTDL, test x"${enable_ltdl_install-no}" != xno)
6288AM_CONDITIONAL(CONVENIENCE_LTDL, test x"${enable_ltdl_convenience-no}" != xno) 6513AM_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 ])
6367if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then 6598if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
diff --git a/libltdl/config.guess b/libltdl/config.guess
index ad5281e6..c38553dc 100755
--- a/libltdl/config.guess
+++ b/libltdl/config.guess
@@ -3,7 +3,7 @@
3# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 3# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
4# 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. 4# 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
5 5
6timestamp='2005-08-03' 6timestamp='2006-02-23'
7 7
8# This file is free software; you can redistribute it and/or modify it 8# This file is free software; you can redistribute it and/or modify it
9# under the terms of the GNU General Public License as published by 9# under the terms of the GNU General Public License as published by
@@ -106,7 +106,7 @@ set_cc_for_build='
106trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; 106trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
107trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; 107trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
108: ${TMPDIR=/tmp} ; 108: ${TMPDIR=/tmp} ;
109 { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || 109 { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
110 { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || 110 { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
111 { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || 111 { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
112 { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; 112 { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
@@ -206,6 +206,9 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
206 *:ekkoBSD:*:*) 206 *:ekkoBSD:*:*)
207 echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} 207 echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
208 exit ;; 208 exit ;;
209 *:SolidBSD:*:*)
210 echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
211 exit ;;
209 macppc:MirBSD:*:*) 212 macppc:MirBSD:*:*)
210 echo powerppc-unknown-mirbsd${UNAME_RELEASE} 213 echo powerppc-unknown-mirbsd${UNAME_RELEASE}
211 exit ;; 214 exit ;;
@@ -764,7 +767,12 @@ EOF
764 echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} 767 echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
765 exit ;; 768 exit ;;
766 *:FreeBSD:*:*) 769 *:FreeBSD:*:*)
767 echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` 770 case ${UNAME_MACHINE} in
771 pc98)
772 echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
773 *)
774 echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
775 esac
768 exit ;; 776 exit ;;
769 i*:CYGWIN*:*) 777 i*:CYGWIN*:*)
770 echo ${UNAME_MACHINE}-pc-cygwin 778 echo ${UNAME_MACHINE}-pc-cygwin
@@ -772,6 +780,9 @@ EOF
772 i*:MINGW*:*) 780 i*:MINGW*:*)
773 echo ${UNAME_MACHINE}-pc-mingw32 781 echo ${UNAME_MACHINE}-pc-mingw32
774 exit ;; 782 exit ;;
783 i*:MSYS_NT-*:*:*)
784 echo ${UNAME_MACHINE}-pc-mingw32
785 exit ;;
775 i*:windows32*:*) 786 i*:windows32*:*)
776 # uname -m includes "-pc" on this system. 787 # uname -m includes "-pc" on this system.
777 echo ${UNAME_MACHINE}-mingw32 788 echo ${UNAME_MACHINE}-mingw32
@@ -779,8 +790,11 @@ EOF
779 i*:PW*:*) 790 i*:PW*:*)
780 echo ${UNAME_MACHINE}-pc-pw32 791 echo ${UNAME_MACHINE}-pc-pw32
781 exit ;; 792 exit ;;
782 x86:Interix*:[34]*) 793 x86:Interix*:[345]*)
783 echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//' 794 echo i586-pc-interix${UNAME_RELEASE}
795 exit ;;
796 EM64T:Interix*:[345]*)
797 echo x86_64-unknown-interix${UNAME_RELEASE}
784 exit ;; 798 exit ;;
785 [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) 799 [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
786 echo i${UNAME_MACHINE}-pc-mks 800 echo i${UNAME_MACHINE}-pc-mks
@@ -851,7 +865,11 @@ EOF
851 #endif 865 #endif
852 #endif 866 #endif
853EOF 867EOF
854 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=` 868 eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
869 /^CPU/{
870 s: ::g
871 p
872 }'`"
855 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } 873 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
856 ;; 874 ;;
857 mips64:Linux:*:*) 875 mips64:Linux:*:*)
@@ -870,7 +888,11 @@ EOF
870 #endif 888 #endif
871 #endif 889 #endif
872EOF 890EOF
873 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=` 891 eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
892 /^CPU/{
893 s: ::g
894 p
895 }'`"
874 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } 896 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
875 ;; 897 ;;
876 or32:Linux:*:*) 898 or32:Linux:*:*)
@@ -919,6 +941,9 @@ EOF
919 sparc:Linux:*:* | sparc64:Linux:*:*) 941 sparc:Linux:*:* | sparc64:Linux:*:*)
920 echo ${UNAME_MACHINE}-unknown-linux-gnu 942 echo ${UNAME_MACHINE}-unknown-linux-gnu
921 exit ;; 943 exit ;;
944 vax:Linux:*:*)
945 echo ${UNAME_MACHINE}-dec-linux-gnu
946 exit ;;
922 x86_64:Linux:*:*) 947 x86_64:Linux:*:*)
923 echo x86_64-unknown-linux-gnu 948 echo x86_64-unknown-linux-gnu
924 exit ;; 949 exit ;;
@@ -964,7 +989,7 @@ EOF
964 LIBC=gnulibc1 989 LIBC=gnulibc1
965 # endif 990 # endif
966 #else 991 #else
967 #ifdef __INTEL_COMPILER 992 #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__sun)
968 LIBC=gnu 993 LIBC=gnu
969 #else 994 #else
970 LIBC=gnuaout 995 LIBC=gnuaout
@@ -974,7 +999,11 @@ EOF
974 LIBC=dietlibc 999 LIBC=dietlibc
975 #endif 1000 #endif
976EOF 1001EOF
977 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=` 1002 eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
1003 /^LIBC/{
1004 s: ::g
1005 p
1006 }'`"
978 test x"${LIBC}" != x && { 1007 test x"${LIBC}" != x && {
979 echo "${UNAME_MACHINE}-pc-linux-${LIBC}" 1008 echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
980 exit 1009 exit
@@ -1185,7 +1214,6 @@ EOF
1185 *:Darwin:*:*) 1214 *:Darwin:*:*)
1186 UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown 1215 UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
1187 case $UNAME_PROCESSOR in 1216 case $UNAME_PROCESSOR in
1188 *86) UNAME_PROCESSOR=i686 ;;
1189 unknown) UNAME_PROCESSOR=powerpc ;; 1217 unknown) UNAME_PROCESSOR=powerpc ;;
1190 esac 1218 esac
1191 echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} 1219 echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
@@ -1264,6 +1292,9 @@ EOF
1264 i*86:skyos:*:*) 1292 i*86:skyos:*:*)
1265 echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//' 1293 echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
1266 exit ;; 1294 exit ;;
1295 i*86:rdos:*:*)
1296 echo ${UNAME_MACHINE}-pc-rdos
1297 exit ;;
1267esac 1298esac
1268 1299
1269#echo '(No uname command or uname output not recognized.)' 1>&2 1300#echo '(No uname command or uname output not recognized.)' 1>&2
diff --git a/libltdl/config.sub b/libltdl/config.sub
index 1c366dfd..ad9f3957 100755
--- a/libltdl/config.sub
+++ b/libltdl/config.sub
@@ -3,7 +3,7 @@
3# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 3# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
4# 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. 4# 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
5 5
6timestamp='2005-07-08' 6timestamp='2006-02-23'
7 7
8# This file is (in principle) common to ALL GNU software. 8# This file is (in principle) common to ALL GNU software.
9# The presence of a machine in this file suggests that SOME GNU software 9# The presence of a machine in this file suggests that SOME GNU software
@@ -119,8 +119,9 @@ esac
119# Here we must recognize all the valid KERNEL-OS combinations. 119# Here we must recognize all the valid KERNEL-OS combinations.
120maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` 120maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
121case $maybe_os in 121case $maybe_os in
122 nto-qnx* | linux-gnu* | linux-dietlibc | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | \ 122 nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
123 kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*) 123 uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
124 storm-chaos* | os2-emx* | rtmk-nova*)
124 os=-$maybe_os 125 os=-$maybe_os
125 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` 126 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
126 ;; 127 ;;
@@ -171,6 +172,10 @@ case $os in
171 -hiux*) 172 -hiux*)
172 os=-hiuxwe2 173 os=-hiuxwe2
173 ;; 174 ;;
175 -sco6)
176 os=-sco5v6
177 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
178 ;;
174 -sco5) 179 -sco5)
175 os=-sco3.2v5 180 os=-sco3.2v5
176 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 181 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
@@ -187,6 +192,10 @@ case $os in
187 # Don't forget version if it is 3.2v4 or newer. 192 # Don't forget version if it is 3.2v4 or newer.
188 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 193 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
189 ;; 194 ;;
195 -sco5v6*)
196 # Don't forget version if it is 3.2v4 or newer.
197 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
198 ;;
190 -sco*) 199 -sco*)
191 os=-sco3.2v2 200 os=-sco3.2v2
192 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 201 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
@@ -239,7 +248,7 @@ case $basic_machine in
239 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ 248 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
240 | i370 | i860 | i960 | ia64 \ 249 | i370 | i860 | i960 | ia64 \
241 | ip2k | iq2000 \ 250 | ip2k | iq2000 \
242 | m32r | m32rle | m68000 | m68k | m88k | maxq | mcore \ 251 | m32r | m32rle | m68000 | m68k | m88k | maxq | mb | microblaze | mcore \
243 | mips | mipsbe | mipseb | mipsel | mipsle \ 252 | mips | mipsbe | mipseb | mipsel | mipsle \
244 | mips16 \ 253 | mips16 \
245 | mips64 | mips64el \ 254 | mips64 | mips64el \
@@ -257,8 +266,9 @@ case $basic_machine in
257 | mipsisa64sr71k | mipsisa64sr71kel \ 266 | mipsisa64sr71k | mipsisa64sr71kel \
258 | mipstx39 | mipstx39el \ 267 | mipstx39 | mipstx39el \
259 | mn10200 | mn10300 \ 268 | mn10200 | mn10300 \
260 | ms1 \ 269 | mt \
261 | msp430 \ 270 | msp430 \
271 | nios | nios2 \
262 | ns16k | ns32k \ 272 | ns16k | ns32k \
263 | or32 \ 273 | or32 \
264 | pdp10 | pdp11 | pj | pjl \ 274 | pdp10 | pdp11 | pj | pjl \
@@ -286,6 +296,9 @@ case $basic_machine in
286 ;; 296 ;;
287 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) 297 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
288 ;; 298 ;;
299 ms1)
300 basic_machine=mt-unknown
301 ;;
289 302
290 # We use `pc' rather than `unknown' 303 # We use `pc' rather than `unknown'
291 # because (1) that's what they normally are, and 304 # because (1) that's what they normally are, and
@@ -336,8 +349,9 @@ case $basic_machine in
336 | mipsisa64sr71k-* | mipsisa64sr71kel-* \ 349 | mipsisa64sr71k-* | mipsisa64sr71kel-* \
337 | mipstx39-* | mipstx39el-* \ 350 | mipstx39-* | mipstx39el-* \
338 | mmix-* \ 351 | mmix-* \
339 | ms1-* \ 352 | mt-* \
340 | msp430-* \ 353 | msp430-* \
354 | nios-* | nios2-* \
341 | none-* | np1-* | ns16k-* | ns32k-* \ 355 | none-* | np1-* | ns16k-* | ns32k-* \
342 | orion-* \ 356 | orion-* \
343 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ 357 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
@@ -696,6 +710,9 @@ case $basic_machine in
696 basic_machine=i386-pc 710 basic_machine=i386-pc
697 os=-msdos 711 os=-msdos
698 ;; 712 ;;
713 ms1-*)
714 basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
715 ;;
699 mvs) 716 mvs)
700 basic_machine=i370-ibm 717 basic_machine=i370-ibm
701 os=-mvs 718 os=-mvs
@@ -803,6 +820,12 @@ case $basic_machine in
803 pc532 | pc532-*) 820 pc532 | pc532-*)
804 basic_machine=ns32k-pc532 821 basic_machine=ns32k-pc532
805 ;; 822 ;;
823 pc98)
824 basic_machine=i386-pc
825 ;;
826 pc98-*)
827 basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
828 ;;
806 pentium | p5 | k5 | k6 | nexgen | viac3) 829 pentium | p5 | k5 | k6 | nexgen | viac3)
807 basic_machine=i586-pc 830 basic_machine=i586-pc
808 ;; 831 ;;
@@ -859,6 +882,10 @@ case $basic_machine in
859 basic_machine=i586-unknown 882 basic_machine=i586-unknown
860 os=-pw32 883 os=-pw32
861 ;; 884 ;;
885 rdos)
886 basic_machine=i386-pc
887 os=-rdos
888 ;;
862 rom68k) 889 rom68k)
863 basic_machine=m68k-rom68k 890 basic_machine=m68k-rom68k
864 os=-coff 891 os=-coff
@@ -1174,21 +1201,23 @@ case $os in
1174 | -aos* \ 1201 | -aos* \
1175 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ 1202 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1176 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ 1203 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1177 | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* | -openbsd* \ 1204 | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
1205 | -openbsd* | -solidbsd* \
1178 | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ 1206 | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
1179 | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ 1207 | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
1180 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ 1208 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1181 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ 1209 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1182 | -chorusos* | -chorusrdb* \ 1210 | -chorusos* | -chorusrdb* \
1183 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ 1211 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1184 | -mingw32* | -linux-gnu* | -linux-uclibc* | -uxpv* | -beos* | -mpeix* | -udk* \ 1212 | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
1213 | -uxpv* | -beos* | -mpeix* | -udk* \
1185 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ 1214 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
1186 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ 1215 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
1187 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ 1216 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
1188 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ 1217 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
1189 | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ 1218 | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
1190 | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ 1219 | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
1191 | -skyos* | -haiku*) 1220 | -skyos* | -haiku* | -rdos*)
1192 # Remember, each alternative MUST END IN *, to match a version number. 1221 # Remember, each alternative MUST END IN *, to match a version number.
1193 ;; 1222 ;;
1194 -qnx*) 1223 -qnx*)
diff --git a/libltdl/configure b/libltdl/configure
index 4bf2ba56..5bce4b0d 100755
--- a/libltdl/configure
+++ b/libltdl/configure
@@ -3592,7 +3592,7 @@ reload_cmds='$LD$reload_flag -o $output$reload_objs'
3592case $host_os in 3592case $host_os in
3593 darwin*) 3593 darwin*)
3594 if test "$GCC" = yes; then 3594 if test "$GCC" = yes; then
3595 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs' 3595 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3596 else 3596 else
3597 reload_cmds='$LD$reload_flag -o $output$reload_objs' 3597 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3598 fi 3598 fi
@@ -3608,36 +3608,43 @@ else
3608 # Let the user override the test. 3608 # Let the user override the test.
3609 lt_cv_path_NM="$NM" 3609 lt_cv_path_NM="$NM"
3610else 3610else
3611 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3611 lt_nm_to_check="${ac_tool_prefix}nm"
3612 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do 3612 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3613 IFS="$lt_save_ifs" 3613 lt_nm_to_check="$lt_nm_to_check nm"
3614 test -z "$ac_dir" && ac_dir=. 3614 fi
3615 tmp_nm="$ac_dir/${ac_tool_prefix}nm" 3615 for lt_tmp_nm in $lt_nm_to_check; do
3616 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 3616 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3617 # Check to see if the nm accepts a BSD-compat flag. 3617 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3618 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 3618 IFS="$lt_save_ifs"
3619 # nm: unknown option "B" ignored 3619 test -z "$ac_dir" && ac_dir=.
3620 # Tru64's nm complains that /dev/null is an invalid object file 3620 tmp_nm="$ac_dir/$lt_tmp_nm"
3621 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 3621 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3622 */dev/null* | *'Invalid file or object type'*) 3622 # Check to see if the nm accepts a BSD-compat flag.
3623 lt_cv_path_NM="$tmp_nm -B" 3623 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3624 break 3624 # nm: unknown option "B" ignored
3625 ;; 3625 # Tru64's nm complains that /dev/null is an invalid object file
3626 *) 3626 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3627 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 3627 */dev/null* | *'Invalid file or object type'*)
3628 */dev/null*) 3628 lt_cv_path_NM="$tmp_nm -B"
3629 lt_cv_path_NM="$tmp_nm -p"
3630 break 3629 break
3631 ;; 3630 ;;
3632 *) 3631 *)
3633 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 3632 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3634 continue # so that we can try to find one that supports BSD flags 3633 */dev/null*)
3634 lt_cv_path_NM="$tmp_nm -p"
3635 break
3636 ;;
3637 *)
3638 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3639 continue # so that we can try to find one that supports BSD flags
3640 ;;
3641 esac
3635 ;; 3642 ;;
3636 esac 3643 esac
3637 esac 3644 fi
3638 fi 3645 done
3646 IFS="$lt_save_ifs"
3639 done 3647 done
3640 IFS="$lt_save_ifs"
3641 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 3648 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3642fi 3649fi
3643fi 3650fi
@@ -3745,6 +3752,11 @@ hpux10.20* | hpux11*)
3745 esac 3752 esac
3746 ;; 3753 ;;
3747 3754
3755interix3*)
3756 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3757 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
3758 ;;
3759
3748irix5* | irix6* | nonstopux*) 3760irix5* | irix6* | nonstopux*)
3749 case $LD in 3761 case $LD in
3750 *-32|*"-32 ") libmagic=32-bit;; 3762 *-32|*"-32 ") libmagic=32-bit;;
@@ -3790,15 +3802,11 @@ osf3* | osf4* | osf5*)
3790 lt_cv_deplibs_check_method=pass_all 3802 lt_cv_deplibs_check_method=pass_all
3791 ;; 3803 ;;
3792 3804
3793sco3.2v5*)
3794 lt_cv_deplibs_check_method=pass_all
3795 ;;
3796
3797solaris*) 3805solaris*)
3798 lt_cv_deplibs_check_method=pass_all 3806 lt_cv_deplibs_check_method=pass_all
3799 ;; 3807 ;;
3800 3808
3801sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 3809sysv4 | sysv4.3*)
3802 case $host_vendor in 3810 case $host_vendor in
3803 motorola) 3811 motorola)
3804 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]' 3812 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]'
@@ -3819,10 +3827,13 @@ sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3819 siemens) 3827 siemens)
3820 lt_cv_deplibs_check_method=pass_all 3828 lt_cv_deplibs_check_method=pass_all
3821 ;; 3829 ;;
3830 pc)
3831 lt_cv_deplibs_check_method=pass_all
3832 ;;
3822 esac 3833 esac
3823 ;; 3834 ;;
3824 3835
3825sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*) 3836sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3826 lt_cv_deplibs_check_method=pass_all 3837 lt_cv_deplibs_check_method=pass_all
3827 ;; 3838 ;;
3828esac 3839esac
@@ -3840,6 +3851,9 @@ test -z "$deplibs_check_method" && deplibs_check_method=unknown
3840# If no C compiler was specified, use CC. 3851# If no C compiler was specified, use CC.
3841LTCC=${LTCC-"$CC"} 3852LTCC=${LTCC-"$CC"}
3842 3853
3854# If no C compiler flags were specified, use CFLAGS.
3855LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
3856
3843# Allow CC to be a program name with arguments. 3857# Allow CC to be a program name with arguments.
3844compiler=$CC 3858compiler=$CC
3845 3859
@@ -3874,7 +3888,7 @@ ia64-*-hpux*)
3874 ;; 3888 ;;
3875*-*-irix6*) 3889*-*-irix6*)
3876 # Find out which ABI we are using. 3890 # Find out which ABI we are using.
3877 echo '#line 3877 "configure"' > conftest.$ac_ext 3891 echo '#line 3891 "configure"' > conftest.$ac_ext
3878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3879 (eval $ac_compile) 2>&5 3893 (eval $ac_compile) 2>&5
3880 ac_status=$? 3894 ac_status=$?
@@ -4029,6 +4043,26 @@ echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4029 CFLAGS="$SAVE_CFLAGS" 4043 CFLAGS="$SAVE_CFLAGS"
4030 fi 4044 fi
4031 ;; 4045 ;;
4046sparc*-*solaris*)
4047 # Find out which ABI we are using.
4048 echo 'int i;' > conftest.$ac_ext
4049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4050 (eval $ac_compile) 2>&5
4051 ac_status=$?
4052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4053 (exit $ac_status); }; then
4054 case `/usr/bin/file conftest.o` in
4055 *64-bit*)
4056 case $lt_cv_prog_gnu_ld in
4057 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4058 *) LD="${LD-ld} -64" ;;
4059 esac
4060 ;;
4061 esac
4062 fi
4063 rm -rf conftest*
4064 ;;
4065
4032*-*-cygwin* | *-*-mingw* | *-*-pw32*) 4066*-*-cygwin* | *-*-mingw* | *-*-pw32*)
4033 if test -n "$ac_tool_prefix"; then 4067 if test -n "$ac_tool_prefix"; then
4034 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 4068 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
@@ -5687,7 +5721,7 @@ fi
5687 5721
5688 5722
5689# Provide some information about the compiler. 5723# Provide some information about the compiler.
5690echo "$as_me:5690:" \ 5724echo "$as_me:5724:" \
5691 "checking for Fortran 77 compiler version" >&5 5725 "checking for Fortran 77 compiler version" >&5
5692ac_compiler=`set X $ac_compile; echo $2` 5726ac_compiler=`set X $ac_compile; echo $2`
5693{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 5727{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
@@ -5888,6 +5922,12 @@ else
5888 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5922 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5889 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5923 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5890 ;; 5924 ;;
5925
5926 interix*)
5927 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5928 lt_cv_sys_max_cmd_len=196608
5929 ;;
5930
5891 osf*) 5931 osf*)
5892 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5932 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5893 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5933 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
@@ -5901,6 +5941,17 @@ else
5901 esac 5941 esac
5902 fi 5942 fi
5903 ;; 5943 ;;
5944 sco3.2v5*)
5945 lt_cv_sys_max_cmd_len=102400
5946 ;;
5947 sysv5* | sco5v6* | sysv4.2uw2*)
5948 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5949 if test -n "$kargmax"; then
5950 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5951 else
5952 lt_cv_sys_max_cmd_len=32768
5953 fi
5954 ;;
5904 *) 5955 *)
5905 # If test is not a shell built-in, we'll probably end up computing a 5956 # If test is not a shell built-in, we'll probably end up computing a
5906 # maximum length that is only half of the actual maximum length, but 5957 # maximum length that is only half of the actual maximum length, but
@@ -5986,9 +6037,18 @@ irix* | nonstopux*)
5986osf*) 6037osf*)
5987 symcode='[BCDEGQRST]' 6038 symcode='[BCDEGQRST]'
5988 ;; 6039 ;;
5989solaris* | sysv5*) 6040solaris*)
5990 symcode='[BDRT]' 6041 symcode='[BDRT]'
5991 ;; 6042 ;;
6043sco3.2v5*)
6044 symcode='[DT]'
6045 ;;
6046sysv4.2uw2*)
6047 symcode='[DT]'
6048 ;;
6049sysv5* | sco5v6* | unixware* | OpenUNIX*)
6050 symcode='[ABDT]'
6051 ;;
5992sysv4) 6052sysv4)
5993 symcode='[DFNSTU]' 6053 symcode='[DFNSTU]'
5994 ;; 6054 ;;
@@ -6454,6 +6514,7 @@ test -z "$AR_FLAGS" && AR_FLAGS=cru
6454test -z "$AS" && AS=as 6514test -z "$AS" && AS=as
6455test -z "$CC" && CC=cc 6515test -z "$CC" && CC=cc
6456test -z "$LTCC" && LTCC=$CC 6516test -z "$LTCC" && LTCC=$CC
6517test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6457test -z "$DLLTOOL" && DLLTOOL=dlltool 6518test -z "$DLLTOOL" && DLLTOOL=dlltool
6458test -z "$LD" && LD=ld 6519test -z "$LD" && LD=ld
6459test -z "$LN_S" && LN_S="ln -s" 6520test -z "$LN_S" && LN_S="ln -s"
@@ -6473,10 +6534,10 @@ old_postuninstall_cmds=
6473if test -n "$RANLIB"; then 6534if test -n "$RANLIB"; then
6474 case $host_os in 6535 case $host_os in
6475 openbsd*) 6536 openbsd*)
6476 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" 6537 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6477 ;; 6538 ;;
6478 *) 6539 *)
6479 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" 6540 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6480 ;; 6541 ;;
6481 esac 6542 esac
6482 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6543 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
@@ -6675,6 +6736,9 @@ lt_simple_link_test_code='int main(){return(0);}\n'
6675# If no C compiler was specified, use CC. 6736# If no C compiler was specified, use CC.
6676LTCC=${LTCC-"$CC"} 6737LTCC=${LTCC-"$CC"}
6677 6738
6739# If no C compiler flags were specified, use CFLAGS.
6740LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6741
6678# Allow CC to be a program name with arguments. 6742# Allow CC to be a program name with arguments.
6679compiler=$CC 6743compiler=$CC
6680 6744
@@ -6682,82 +6746,17 @@ compiler=$CC
6682# save warnings/boilerplate of simple test code 6746# save warnings/boilerplate of simple test code
6683ac_outfile=conftest.$ac_objext 6747ac_outfile=conftest.$ac_objext
6684printf "$lt_simple_compile_test_code" >conftest.$ac_ext 6748printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6685eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 6749eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6686_lt_compiler_boilerplate=`cat conftest.err` 6750_lt_compiler_boilerplate=`cat conftest.err`
6687$rm conftest* 6751$rm conftest*
6688 6752
6689ac_outfile=conftest.$ac_objext 6753ac_outfile=conftest.$ac_objext
6690printf "$lt_simple_link_test_code" >conftest.$ac_ext 6754printf "$lt_simple_link_test_code" >conftest.$ac_ext
6691eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 6755eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6692_lt_linker_boilerplate=`cat conftest.err` 6756_lt_linker_boilerplate=`cat conftest.err`
6693$rm conftest* 6757$rm conftest*
6694 6758
6695 6759
6696#
6697# Check for any special shared library compilation flags.
6698#
6699lt_prog_cc_shlib=
6700if test "$GCC" = no; then
6701 case $host_os in
6702 sco3.2v5*)
6703 lt_prog_cc_shlib='-belf'
6704 ;;
6705 esac
6706fi
6707if test -n "$lt_prog_cc_shlib"; then
6708 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6709echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6710 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6711 else
6712 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6713echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6714 lt_cv_prog_cc_can_build_shared=no
6715 fi
6716fi
6717
6718
6719#
6720# Check to make sure the static flag actually works.
6721#
6722echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6723echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6724if test "${lt_prog_compiler_static_works+set}" = set; then
6725 echo $ECHO_N "(cached) $ECHO_C" >&6
6726else
6727 lt_prog_compiler_static_works=no
6728 save_LDFLAGS="$LDFLAGS"
6729 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6730 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6731 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6732 # The linker can only warn and ignore the option if not recognized
6733 # So say no if there are warnings
6734 if test -s conftest.err; then
6735 # Append any errors to the config.log.
6736 cat conftest.err 1>&5
6737 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
6738 $SED '/^$/d' conftest.err >conftest.er2
6739 if diff conftest.exp conftest.er2 >/dev/null; then
6740 lt_prog_compiler_static_works=yes
6741 fi
6742 else
6743 lt_prog_compiler_static_works=yes
6744 fi
6745 fi
6746 $rm conftest*
6747 LDFLAGS="$save_LDFLAGS"
6748
6749fi
6750echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6751echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6752
6753if test x"$lt_prog_compiler_static_works" = xyes; then
6754 :
6755else
6756 lt_prog_compiler_static=
6757fi
6758
6759
6760
6761 6760
6762lt_prog_compiler_no_builtin_flag= 6761lt_prog_compiler_no_builtin_flag=
6763 6762
@@ -6783,17 +6782,17 @@ else
6783 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 6782 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6784 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6783 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6785 -e 's:$: $lt_compiler_flag:'` 6784 -e 's:$: $lt_compiler_flag:'`
6786 (eval echo "\"\$as_me:6786: $lt_compile\"" >&5) 6785 (eval echo "\"\$as_me:6785: $lt_compile\"" >&5)
6787 (eval "$lt_compile" 2>conftest.err) 6786 (eval "$lt_compile" 2>conftest.err)
6788 ac_status=$? 6787 ac_status=$?
6789 cat conftest.err >&5 6788 cat conftest.err >&5
6790 echo "$as_me:6790: \$? = $ac_status" >&5 6789 echo "$as_me:6789: \$? = $ac_status" >&5
6791 if (exit $ac_status) && test -s "$ac_outfile"; then 6790 if (exit $ac_status) && test -s "$ac_outfile"; then
6792 # The compiler can only warn and ignore the option if not recognized 6791 # The compiler can only warn and ignore the option if not recognized
6793 # So say no if there are warnings other than the usual output. 6792 # So say no if there are warnings other than the usual output.
6794 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp 6793 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6795 $SED '/^$/d' conftest.err >conftest.er2 6794 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6796 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then 6795 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6797 lt_cv_prog_compiler_rtti_exceptions=yes 6796 lt_cv_prog_compiler_rtti_exceptions=yes
6798 fi 6797 fi
6799 fi 6798 fi
@@ -6854,6 +6853,11 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6854 lt_prog_compiler_pic='-fno-common' 6853 lt_prog_compiler_pic='-fno-common'
6855 ;; 6854 ;;
6856 6855
6856 interix3*)
6857 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6858 # Instead, we relocate shared libraries at runtime.
6859 ;;
6860
6857 msdosdjgpp*) 6861 msdosdjgpp*)
6858 # Just because we use GCC doesn't mean we suddenly get shared libraries 6862 # Just because we use GCC doesn't mean we suddenly get shared libraries
6859 # on systems that don't support them. 6863 # on systems that don't support them.
@@ -6968,11 +6972,6 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6968 lt_prog_compiler_static='-non_shared' 6972 lt_prog_compiler_static='-non_shared'
6969 ;; 6973 ;;
6970 6974
6971 sco3.2v5*)
6972 lt_prog_compiler_pic='-Kpic'
6973 lt_prog_compiler_static='-dn'
6974 ;;
6975
6976 solaris*) 6975 solaris*)
6977 lt_prog_compiler_pic='-KPIC' 6976 lt_prog_compiler_pic='-KPIC'
6978 lt_prog_compiler_static='-Bstatic' 6977 lt_prog_compiler_static='-Bstatic'
@@ -6990,7 +6989,7 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6990 lt_prog_compiler_static='-Bstatic' 6989 lt_prog_compiler_static='-Bstatic'
6991 ;; 6990 ;;
6992 6991
6993 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 6992 sysv4 | sysv4.2uw2* | sysv4.3*)
6994 lt_prog_compiler_wl='-Wl,' 6993 lt_prog_compiler_wl='-Wl,'
6995 lt_prog_compiler_pic='-KPIC' 6994 lt_prog_compiler_pic='-KPIC'
6996 lt_prog_compiler_static='-Bstatic' 6995 lt_prog_compiler_static='-Bstatic'
@@ -7003,6 +7002,12 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7003 fi 7002 fi
7004 ;; 7003 ;;
7005 7004
7005 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7006 lt_prog_compiler_wl='-Wl,'
7007 lt_prog_compiler_pic='-KPIC'
7008 lt_prog_compiler_static='-Bstatic'
7009 ;;
7010
7006 unicos*) 7011 unicos*)
7007 lt_prog_compiler_wl='-Wl,' 7012 lt_prog_compiler_wl='-Wl,'
7008 lt_prog_compiler_can_build_shared=no 7013 lt_prog_compiler_can_build_shared=no
@@ -7045,17 +7050,17 @@ else
7045 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7050 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7046 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7051 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7047 -e 's:$: $lt_compiler_flag:'` 7052 -e 's:$: $lt_compiler_flag:'`
7048 (eval echo "\"\$as_me:7048: $lt_compile\"" >&5) 7053 (eval echo "\"\$as_me:7053: $lt_compile\"" >&5)
7049 (eval "$lt_compile" 2>conftest.err) 7054 (eval "$lt_compile" 2>conftest.err)
7050 ac_status=$? 7055 ac_status=$?
7051 cat conftest.err >&5 7056 cat conftest.err >&5
7052 echo "$as_me:7052: \$? = $ac_status" >&5 7057 echo "$as_me:7057: \$? = $ac_status" >&5
7053 if (exit $ac_status) && test -s "$ac_outfile"; then 7058 if (exit $ac_status) && test -s "$ac_outfile"; then
7054 # The compiler can only warn and ignore the option if not recognized 7059 # The compiler can only warn and ignore the option if not recognized
7055 # So say no if there are warnings other than the usual output. 7060 # So say no if there are warnings other than the usual output.
7056 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp 7061 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7057 $SED '/^$/d' conftest.err >conftest.er2 7062 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7058 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then 7063 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7059 lt_prog_compiler_pic_works=yes 7064 lt_prog_compiler_pic_works=yes
7060 fi 7065 fi
7061 fi 7066 fi
@@ -7086,6 +7091,48 @@ case $host_os in
7086 ;; 7091 ;;
7087esac 7092esac
7088 7093
7094#
7095# Check to make sure the static flag actually works.
7096#
7097wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7098echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7099echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7100if test "${lt_prog_compiler_static_works+set}" = set; then
7101 echo $ECHO_N "(cached) $ECHO_C" >&6
7102else
7103 lt_prog_compiler_static_works=no
7104 save_LDFLAGS="$LDFLAGS"
7105 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7106 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7107 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7108 # The linker can only warn and ignore the option if not recognized
7109 # So say no if there are warnings
7110 if test -s conftest.err; then
7111 # Append any errors to the config.log.
7112 cat conftest.err 1>&5
7113 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7114 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7115 if diff conftest.exp conftest.er2 >/dev/null; then
7116 lt_prog_compiler_static_works=yes
7117 fi
7118 else
7119 lt_prog_compiler_static_works=yes
7120 fi
7121 fi
7122 $rm conftest*
7123 LDFLAGS="$save_LDFLAGS"
7124
7125fi
7126echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7127echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7128
7129if test x"$lt_prog_compiler_static_works" = xyes; then
7130 :
7131else
7132 lt_prog_compiler_static=
7133fi
7134
7135
7089echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 7136echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7090echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 7137echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7091if test "${lt_cv_prog_compiler_c_o+set}" = set; then 7138if test "${lt_cv_prog_compiler_c_o+set}" = set; then
@@ -7107,18 +7154,18 @@ else
7107 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7154 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7108 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7155 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7109 -e 's:$: $lt_compiler_flag:'` 7156 -e 's:$: $lt_compiler_flag:'`
7110 (eval echo "\"\$as_me:7110: $lt_compile\"" >&5) 7157 (eval echo "\"\$as_me:7157: $lt_compile\"" >&5)
7111 (eval "$lt_compile" 2>out/conftest.err) 7158 (eval "$lt_compile" 2>out/conftest.err)
7112 ac_status=$? 7159 ac_status=$?
7113 cat out/conftest.err >&5 7160 cat out/conftest.err >&5
7114 echo "$as_me:7114: \$? = $ac_status" >&5 7161 echo "$as_me:7161: \$? = $ac_status" >&5
7115 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7162 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7116 then 7163 then
7117 # The compiler can only warn and ignore the option if not recognized 7164 # The compiler can only warn and ignore the option if not recognized
7118 # So say no if there are warnings 7165 # So say no if there are warnings
7119 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp 7166 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7120 $SED '/^$/d' out/conftest.err >out/conftest.er2 7167 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7121 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7168 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7122 lt_cv_prog_compiler_c_o=yes 7169 lt_cv_prog_compiler_c_o=yes
7123 fi 7170 fi
7124 fi 7171 fi
@@ -7218,6 +7265,10 @@ cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7218 with_gnu_ld=no 7265 with_gnu_ld=no
7219 fi 7266 fi
7220 ;; 7267 ;;
7268 interix*)
7269 # we just hope/assume this is gcc and not c89 (= MSVC++)
7270 with_gnu_ld=yes
7271 ;;
7221 openbsd*) 7272 openbsd*)
7222 with_gnu_ld=no 7273 with_gnu_ld=no
7223 ;; 7274 ;;
@@ -7302,7 +7353,7 @@ EOF
7302 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 7353 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7303 7354
7304 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 7355 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7305 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 7356 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7306 # If the export-symbols file already is a .def file (1st line 7357 # If the export-symbols file already is a .def file (1st line
7307 # is EXPORTS), use it as is; otherwise, prepend... 7358 # is EXPORTS), use it as is; otherwise, prepend...
7308 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 7359 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
@@ -7311,12 +7362,27 @@ EOF
7311 echo EXPORTS > $output_objdir/$soname.def; 7362 echo EXPORTS > $output_objdir/$soname.def;
7312 cat $export_symbols >> $output_objdir/$soname.def; 7363 cat $export_symbols >> $output_objdir/$soname.def;
7313 fi~ 7364 fi~
7314 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 7365 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7315 else 7366 else
7316 ld_shlibs=no 7367 ld_shlibs=no
7317 fi 7368 fi
7318 ;; 7369 ;;
7319 7370
7371 interix3*)
7372 hardcode_direct=no
7373 hardcode_shlibpath_var=no
7374 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7375 export_dynamic_flag_spec='${wl}-E'
7376 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7377 # Instead, shared libraries are loaded at an image base (0x10000000 by
7378 # default) and relocated if they conflict, which is a slow very memory
7379 # consuming and fragmenting process. To avoid this, we pick a random,
7380 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7381 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7382 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7383 archive_expsym_cmds='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'
7384 ;;
7385
7320 linux*) 7386 linux*)
7321 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7387 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7322 tmp_addflag= 7388 tmp_addflag=
@@ -7359,7 +7425,7 @@ EOF
7359 fi 7425 fi
7360 ;; 7426 ;;
7361 7427
7362 solaris* | sysv5*) 7428 solaris*)
7363 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 7429 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7364 ld_shlibs=no 7430 ld_shlibs=no
7365 cat <<EOF 1>&2 7431 cat <<EOF 1>&2
@@ -7380,6 +7446,33 @@ EOF
7380 fi 7446 fi
7381 ;; 7447 ;;
7382 7448
7449 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7450 case `$LD -v 2>&1` in
7451 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7452 ld_shlibs=no
7453 cat <<_LT_EOF 1>&2
7454
7455*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7456*** reliably create shared libraries on SCO systems. Therefore, libtool
7457*** is disabling shared libraries support. We urge you to upgrade GNU
7458*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7459*** your PATH or compiler configuration so that the native linker is
7460*** used, and then restart.
7461
7462_LT_EOF
7463 ;;
7464 *)
7465 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7466 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7467 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7468 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7469 else
7470 ld_shlibs=no
7471 fi
7472 ;;
7473 esac
7474 ;;
7475
7383 sunos4*) 7476 sunos4*)
7384 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7477 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7385 wlarc= 7478 wlarc=
@@ -7413,7 +7506,7 @@ EOF
7413 # Note: this linker hardcodes the directories in LIBPATH if there 7506 # Note: this linker hardcodes the directories in LIBPATH if there
7414 # are no directories specified by -L. 7507 # are no directories specified by -L.
7415 hardcode_minus_L=yes 7508 hardcode_minus_L=yes
7416 if test "$GCC" = yes && test -z "$link_static_flag"; then 7509 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7417 # Neither direct hardcoding nor static linking is supported with a 7510 # Neither direct hardcoding nor static linking is supported with a
7418 # broken collect2. 7511 # broken collect2.
7419 hardcode_direct=unsupported 7512 hardcode_direct=unsupported
@@ -7447,6 +7540,7 @@ EOF
7447 break 7540 break
7448 fi 7541 fi
7449 done 7542 done
7543 ;;
7450 esac 7544 esac
7451 7545
7452 exp_sym_flag='-bexport' 7546 exp_sym_flag='-bexport'
@@ -7484,6 +7578,7 @@ EOF
7484 hardcode_libdir_flag_spec='-L$libdir' 7578 hardcode_libdir_flag_spec='-L$libdir'
7485 hardcode_libdir_separator= 7579 hardcode_libdir_separator=
7486 fi 7580 fi
7581 ;;
7487 esac 7582 esac
7488 shared_flag='-shared' 7583 shared_flag='-shared'
7489 if test "$aix_use_runtimelinking" = yes; then 7584 if test "$aix_use_runtimelinking" = yes; then
@@ -7496,11 +7591,11 @@ EOF
7496 # chokes on -Wl,-G. The following line is correct: 7591 # chokes on -Wl,-G. The following line is correct:
7497 shared_flag='-G' 7592 shared_flag='-G'
7498 else 7593 else
7499 if test "$aix_use_runtimelinking" = yes; then 7594 if test "$aix_use_runtimelinking" = yes; then
7500 shared_flag='${wl}-G' 7595 shared_flag='${wl}-G'
7501 else 7596 else
7502 shared_flag='${wl}-bM:SRE' 7597 shared_flag='${wl}-bM:SRE'
7503 fi 7598 fi
7504 fi 7599 fi
7505 fi 7600 fi
7506 7601
@@ -7564,12 +7659,12 @@ rm -f conftest.err conftest.$ac_objext \
7564if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 7659if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7565 7660
7566 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 7661 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7567 archive_expsym_cmds="\$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" 7662 archive_expsym_cmds="\$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"
7568 else 7663 else
7569 if test "$host_cpu" = ia64; then 7664 if test "$host_cpu" = ia64; then
7570 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 7665 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7571 allow_undefined_flag="-z nodefs" 7666 allow_undefined_flag="-z nodefs"
7572 archive_expsym_cmds="\$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" 7667 archive_expsym_cmds="\$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"
7573 else 7668 else
7574 # Determine the default libpath from the value encoded in an empty executable. 7669 # Determine the default libpath from the value encoded in an empty executable.
7575 cat >conftest.$ac_ext <<_ACEOF 7670 cat >conftest.$ac_ext <<_ACEOF
@@ -7628,13 +7723,11 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7628 # -berok will link without error, but may produce a broken library. 7723 # -berok will link without error, but may produce a broken library.
7629 no_undefined_flag=' ${wl}-bernotok' 7724 no_undefined_flag=' ${wl}-bernotok'
7630 allow_undefined_flag=' ${wl}-berok' 7725 allow_undefined_flag=' ${wl}-berok'
7631 # -bexpall does not export symbols beginning with underscore (_)
7632 always_export_symbols=yes
7633 # Exported symbols can be pulled into shared objects from archives 7726 # Exported symbols can be pulled into shared objects from archives
7634 whole_archive_flag_spec=' ' 7727 whole_archive_flag_spec='$convenience'
7635 archive_cmds_need_lc=yes 7728 archive_cmds_need_lc=yes
7636 # This is similar to how AIX traditionally builds its shared libraries. 7729 # This is similar to how AIX traditionally builds its shared libraries.
7637 archive_expsym_cmds="\$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' 7730 archive_expsym_cmds="\$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'
7638 fi 7731 fi
7639 fi 7732 fi
7640 ;; 7733 ;;
@@ -7752,11 +7845,20 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7752 ;; 7845 ;;
7753 7846
7754 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 7847 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7755 freebsd* | kfreebsd*-gnu | dragonfly*) 7848 freebsd* | dragonfly*)
7849 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7850 hardcode_libdir_flag_spec='-R$libdir'
7851 hardcode_direct=yes
7852 hardcode_shlibpath_var=no
7853 ;;
7854
7855 # GNU/kFreeBSD uses gcc -shared to do shared libraries.
7856 kfreebsd*-gnu)
7756 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 7857 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7757 hardcode_libdir_flag_spec='-R$libdir' 7858 hardcode_libdir_flag_spec='-R$libdir'
7758 hardcode_direct=yes 7859 hardcode_direct=yes
7759 hardcode_shlibpath_var=no 7860 hardcode_shlibpath_var=no
7861 link_all_deplibs=no
7760 ;; 7862 ;;
7761 7863
7762 hpux9*) 7864 hpux9*)
@@ -7775,47 +7877,62 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7775 export_dynamic_flag_spec='${wl}-E' 7877 export_dynamic_flag_spec='${wl}-E'
7776 ;; 7878 ;;
7777 7879
7778 hpux10* | hpux11*) 7880 hpux10*)
7881 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7882 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7883 else
7884 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7885 fi
7886 if test "$with_gnu_ld" = no; then
7887 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7888 hardcode_libdir_separator=:
7889
7890 hardcode_direct=yes
7891 export_dynamic_flag_spec='${wl}-E'
7892
7893 # hardcode_minus_L: Not really in the search PATH,
7894 # but as the default location of the library.
7895 hardcode_minus_L=yes
7896 fi
7897 ;;
7898
7899 hpux11*)
7779 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 7900 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7780 case $host_cpu in 7901 case $host_cpu in
7781 hppa*64*|ia64*) 7902 hppa*64*)
7782 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7903 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7783 ;; 7904 ;;
7905 ia64*)
7906 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7907 ;;
7784 *) 7908 *)
7785 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 7909 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7786 ;; 7910 ;;
7787 esac 7911 esac
7788 else 7912 else
7789 case $host_cpu in 7913 case $host_cpu in
7790 hppa*64*|ia64*) 7914 hppa*64*)
7791 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 7915 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7916 ;;
7917 ia64*)
7918 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7792 ;; 7919 ;;
7793 *) 7920 *)
7794 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 7921 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7795 ;; 7922 ;;
7796 esac 7923 esac
7797 fi 7924 fi
7798 if test "$with_gnu_ld" = no; then 7925 if test "$with_gnu_ld" = no; then
7926 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7927 hardcode_libdir_separator=:
7928
7799 case $host_cpu in 7929 case $host_cpu in
7800 hppa*64*) 7930 hppa*64*|ia64*)
7801 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7802 hardcode_libdir_flag_spec_ld='+b $libdir' 7931 hardcode_libdir_flag_spec_ld='+b $libdir'
7803 hardcode_libdir_separator=:
7804 hardcode_direct=no 7932 hardcode_direct=no
7805 hardcode_shlibpath_var=no 7933 hardcode_shlibpath_var=no
7806 ;; 7934 ;;
7807 ia64*)
7808 hardcode_libdir_flag_spec='-L$libdir'
7809 hardcode_direct=no
7810 hardcode_shlibpath_var=no
7811
7812 # hardcode_minus_L: Not really in the search PATH,
7813 # but as the default location of the library.
7814 hardcode_minus_L=yes
7815 ;;
7816 *) 7935 *)
7817 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7818 hardcode_libdir_separator=:
7819 hardcode_direct=yes 7936 hardcode_direct=yes
7820 export_dynamic_flag_spec='${wl}-E' 7937 export_dynamic_flag_spec='${wl}-E'
7821 7938
@@ -7917,14 +8034,6 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7917 hardcode_libdir_separator=: 8034 hardcode_libdir_separator=:
7918 ;; 8035 ;;
7919 8036
7920 sco3.2v5*)
7921 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7922 hardcode_shlibpath_var=no
7923 export_dynamic_flag_spec='${wl}-Bexport'
7924 runpath_var=LD_RUN_PATH
7925 hardcode_runpath_var=yes
7926 ;;
7927
7928 solaris*) 8037 solaris*)
7929 no_undefined_flag=' -z text' 8038 no_undefined_flag=' -z text'
7930 if test "$GCC" = yes; then 8039 if test "$GCC" = yes; then
@@ -8010,36 +8119,45 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8010 fi 8119 fi
8011 ;; 8120 ;;
8012 8121
8013 sysv4.2uw2*) 8122 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8014 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 8123 no_undefined_flag='${wl}-z,text'
8015 hardcode_direct=yes 8124 archive_cmds_need_lc=no
8016 hardcode_minus_L=no
8017 hardcode_shlibpath_var=no 8125 hardcode_shlibpath_var=no
8018 hardcode_runpath_var=yes 8126 runpath_var='LD_RUN_PATH'
8019 runpath_var=LD_RUN_PATH
8020 ;;
8021 8127
8022 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
8023 no_undefined_flag='${wl}-z ${wl}text'
8024 if test "$GCC" = yes; then 8128 if test "$GCC" = yes; then
8025 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8129 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8130 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8026 else 8131 else
8027 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8132 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8133 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8028 fi 8134 fi
8029 runpath_var='LD_RUN_PATH'
8030 hardcode_shlibpath_var=no
8031 ;; 8135 ;;
8032 8136
8033 sysv5*) 8137 sysv5* | sco3.2v5* | sco5v6*)
8034 no_undefined_flag=' -z text' 8138 # Note: We can NOT use -z defs as we might desire, because we do not
8035 # $CC -shared without GNU ld will not create a library from C++ 8139 # link with -lc, and that would cause any symbols used from libc to
8036 # object files and a static libstdc++, better avoid it by now 8140 # always be unresolved, which means just about no library would
8037 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 8141 # ever link correctly. If we're not using GNU ld we use -z text
8038 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8142 # though, which does catch some bad symbols but isn't as heavy-handed
8039 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 8143 # as -z defs.
8040 hardcode_libdir_flag_spec= 8144 no_undefined_flag='${wl}-z,text'
8145 allow_undefined_flag='${wl}-z,nodefs'
8146 archive_cmds_need_lc=no
8041 hardcode_shlibpath_var=no 8147 hardcode_shlibpath_var=no
8148 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8149 hardcode_libdir_separator=':'
8150 link_all_deplibs=yes
8151 export_dynamic_flag_spec='${wl}-Bexport'
8042 runpath_var='LD_RUN_PATH' 8152 runpath_var='LD_RUN_PATH'
8153
8154 if test "$GCC" = yes; then
8155 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8156 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8157 else
8158 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8159 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8160 fi
8043 ;; 8161 ;;
8044 8162
8045 uts4*) 8163 uts4*)
@@ -8058,11 +8176,6 @@ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8058echo "${ECHO_T}$ld_shlibs" >&6 8176echo "${ECHO_T}$ld_shlibs" >&6
8059test "$ld_shlibs" = no && can_build_shared=no 8177test "$ld_shlibs" = no && can_build_shared=no
8060 8178
8061variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8062if test "$GCC" = yes; then
8063 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8064fi
8065
8066# 8179#
8067# Do we need to explicitly link libc? 8180# Do we need to explicitly link libc?
8068# 8181#
@@ -8095,6 +8208,7 @@ echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&
8095 libobjs=conftest.$ac_objext 8208 libobjs=conftest.$ac_objext
8096 deplibs= 8209 deplibs=
8097 wl=$lt_prog_compiler_wl 8210 wl=$lt_prog_compiler_wl
8211 pic_flag=$lt_prog_compiler_pic
8098 compiler_flags=-v 8212 compiler_flags=-v
8099 linker_flags=-v 8213 linker_flags=-v
8100 verstring= 8214 verstring=
@@ -8376,10 +8490,15 @@ freebsd* | dragonfly*)
8376 shlibpath_overrides_runpath=yes 8490 shlibpath_overrides_runpath=yes
8377 hardcode_into_libs=yes 8491 hardcode_into_libs=yes
8378 ;; 8492 ;;
8379 *) # from 3.2 on 8493 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8494 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8380 shlibpath_overrides_runpath=no 8495 shlibpath_overrides_runpath=no
8381 hardcode_into_libs=yes 8496 hardcode_into_libs=yes
8382 ;; 8497 ;;
8498 freebsd*) # from 4.6 on
8499 shlibpath_overrides_runpath=yes
8500 hardcode_into_libs=yes
8501 ;;
8383 esac 8502 esac
8384 ;; 8503 ;;
8385 8504
@@ -8439,6 +8558,18 @@ hpux9* | hpux10* | hpux11*)
8439 postinstall_cmds='chmod 555 $lib' 8558 postinstall_cmds='chmod 555 $lib'
8440 ;; 8559 ;;
8441 8560
8561interix3*)
8562 version_type=linux
8563 need_lib_prefix=no
8564 need_version=no
8565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8566 soname_spec='${libname}${release}${shared_ext}$major'
8567 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8568 shlibpath_var=LD_LIBRARY_PATH
8569 shlibpath_overrides_runpath=no
8570 hardcode_into_libs=yes
8571 ;;
8572
8442irix5* | irix6* | nonstopux*) 8573irix5* | irix6* | nonstopux*)
8443 case $host_os in 8574 case $host_os in
8444 nonstopux*) version_type=nonstopux ;; 8575 nonstopux*) version_type=nonstopux ;;
@@ -8572,6 +8703,7 @@ nto-qnx*)
8572 8703
8573openbsd*) 8704openbsd*)
8574 version_type=sunos 8705 version_type=sunos
8706 sys_lib_dlsearch_path_spec="/usr/lib"
8575 need_lib_prefix=no 8707 need_lib_prefix=no
8576 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 8708 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8577 case $host_os in 8709 case $host_os in
@@ -8615,13 +8747,6 @@ osf3* | osf4* | osf5*)
8615 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 8747 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8616 ;; 8748 ;;
8617 8749
8618sco3.2v5*)
8619 version_type=osf
8620 soname_spec='${libname}${release}${shared_ext}$major'
8621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8622 shlibpath_var=LD_LIBRARY_PATH
8623 ;;
8624
8625solaris*) 8750solaris*)
8626 version_type=linux 8751 version_type=linux
8627 need_lib_prefix=no 8752 need_lib_prefix=no
@@ -8647,7 +8772,7 @@ sunos4*)
8647 need_version=yes 8772 need_version=yes
8648 ;; 8773 ;;
8649 8774
8650sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 8775sysv4 | sysv4.3*)
8651 version_type=linux 8776 version_type=linux
8652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8653 soname_spec='${libname}${release}${shared_ext}$major' 8778 soname_spec='${libname}${release}${shared_ext}$major'
@@ -8680,6 +8805,29 @@ sysv4*MP*)
8680 fi 8805 fi
8681 ;; 8806 ;;
8682 8807
8808sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8809 version_type=freebsd-elf
8810 need_lib_prefix=no
8811 need_version=no
8812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8813 soname_spec='${libname}${release}${shared_ext}$major'
8814 shlibpath_var=LD_LIBRARY_PATH
8815 hardcode_into_libs=yes
8816 if test "$with_gnu_ld" = yes; then
8817 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8818 shlibpath_overrides_runpath=no
8819 else
8820 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8821 shlibpath_overrides_runpath=yes
8822 case $host_os in
8823 sco3.2v5*)
8824 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8825 ;;
8826 esac
8827 fi
8828 sys_lib_dlsearch_path_spec='/usr/lib'
8829 ;;
8830
8683uts4*) 8831uts4*)
8684 version_type=linux 8832 version_type=linux
8685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
@@ -8695,6 +8843,11 @@ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8695echo "${ECHO_T}$dynamic_linker" >&6 8843echo "${ECHO_T}$dynamic_linker" >&6
8696test "$dynamic_linker" = no && can_build_shared=no 8844test "$dynamic_linker" = no && can_build_shared=no
8697 8845
8846variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8847if test "$GCC" = yes; then
8848 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8849fi
8850
8698echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 8851echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8699echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 8852echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8700hardcode_action= 8853hardcode_action=
@@ -9343,7 +9496,7 @@ fi
9343 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 9496 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9344 9497
9345 save_LDFLAGS="$LDFLAGS" 9498 save_LDFLAGS="$LDFLAGS"
9346 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 9499 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9347 9500
9348 save_LIBS="$LIBS" 9501 save_LIBS="$LIBS"
9349 LIBS="$lt_cv_dlopen_libs $LIBS" 9502 LIBS="$lt_cv_dlopen_libs $LIBS"
@@ -9359,7 +9512,7 @@ else
9359 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 9512 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9360 lt_status=$lt_dlunknown 9513 lt_status=$lt_dlunknown
9361 cat > conftest.$ac_ext <<EOF 9514 cat > conftest.$ac_ext <<EOF
9362#line 9362 "configure" 9515#line 9515 "configure"
9363#include "confdefs.h" 9516#include "confdefs.h"
9364 9517
9365#if HAVE_DLFCN_H 9518#if HAVE_DLFCN_H
@@ -9416,6 +9569,8 @@ int main ()
9416 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 9569 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9417 /* dlclose (self); */ 9570 /* dlclose (self); */
9418 } 9571 }
9572 else
9573 puts (dlerror ());
9419 9574
9420 exit (status); 9575 exit (status);
9421} 9576}
@@ -9430,7 +9585,7 @@ EOF
9430 case x$lt_status in 9585 case x$lt_status in
9431 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 9586 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9432 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 9587 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9433 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; 9588 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9434 esac 9589 esac
9435 else : 9590 else :
9436 # compilation failed 9591 # compilation failed
@@ -9445,7 +9600,7 @@ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9445echo "${ECHO_T}$lt_cv_dlopen_self" >&6 9600echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9446 9601
9447 if test "x$lt_cv_dlopen_self" = xyes; then 9602 if test "x$lt_cv_dlopen_self" = xyes; then
9448 LDFLAGS="$LDFLAGS $link_static_flag" 9603 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9449 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 9604 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9450echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 9605echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9451if test "${lt_cv_dlopen_self_static+set}" = set; then 9606if test "${lt_cv_dlopen_self_static+set}" = set; then
@@ -9457,7 +9612,7 @@ else
9457 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 9612 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9458 lt_status=$lt_dlunknown 9613 lt_status=$lt_dlunknown
9459 cat > conftest.$ac_ext <<EOF 9614 cat > conftest.$ac_ext <<EOF
9460#line 9460 "configure" 9615#line 9615 "configure"
9461#include "confdefs.h" 9616#include "confdefs.h"
9462 9617
9463#if HAVE_DLFCN_H 9618#if HAVE_DLFCN_H
@@ -9514,6 +9669,8 @@ int main ()
9514 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 9669 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9515 /* dlclose (self); */ 9670 /* dlclose (self); */
9516 } 9671 }
9672 else
9673 puts (dlerror ());
9517 9674
9518 exit (status); 9675 exit (status);
9519} 9676}
@@ -9528,7 +9685,7 @@ EOF
9528 case x$lt_status in 9685 case x$lt_status in
9529 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 9686 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9530 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 9687 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9531 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; 9688 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9532 esac 9689 esac
9533 else : 9690 else :
9534 # compilation failed 9691 # compilation failed
@@ -9561,7 +9718,7 @@ echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9561fi 9718fi
9562 9719
9563 9720
9564# Report which librarie types wil actually be built 9721# Report which library types will actually be built
9565echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 9722echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9566echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 9723echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9567echo "$as_me:$LINENO: result: $can_build_shared" >&5 9724echo "$as_me:$LINENO: result: $can_build_shared" >&5
@@ -9611,7 +9768,7 @@ if test -f "$ltmain"; then
9611 # Now quote all the things that may contain metacharacters while being 9768 # Now quote all the things that may contain metacharacters while being
9612 # careful not to overquote the AC_SUBSTed values. We take copies of the 9769 # careful not to overquote the AC_SUBSTed values. We take copies of the
9613 # variables and quote the copies for generation of the libtool script. 9770 # variables and quote the copies for generation of the libtool script.
9614 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 9771 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9615 SED SHELL STRIP \ 9772 SED SHELL STRIP \
9616 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 9773 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9617 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 9774 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
@@ -9777,6 +9934,9 @@ AR_FLAGS=$lt_AR_FLAGS
9777# A C compiler. 9934# A C compiler.
9778LTCC=$lt_LTCC 9935LTCC=$lt_LTCC
9779 9936
9937# LTCC compiler flags.
9938LTCFLAGS=$lt_LTCFLAGS
9939
9780# A language-specific compiler. 9940# A language-specific compiler.
9781CC=$lt_compiler 9941CC=$lt_compiler
9782 9942
@@ -10107,6 +10267,9 @@ echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script
10107echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 10267echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10108 fi 10268 fi
10109 fi 10269 fi
10270 if test -z "$LTCFLAGS"; then
10271 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10272 fi
10110 10273
10111 # Extract list of available tagged configurations in $ofile. 10274 # Extract list of available tagged configurations in $ofile.
10112 # Note that this assumes the entire list is on one line. 10275 # Note that this assumes the entire list is on one line.
@@ -10159,6 +10322,7 @@ hardcode_libdir_flag_spec_CXX=
10159hardcode_libdir_flag_spec_ld_CXX= 10322hardcode_libdir_flag_spec_ld_CXX=
10160hardcode_libdir_separator_CXX= 10323hardcode_libdir_separator_CXX=
10161hardcode_minus_L_CXX=no 10324hardcode_minus_L_CXX=no
10325hardcode_shlibpath_var_CXX=unsupported
10162hardcode_automatic_CXX=no 10326hardcode_automatic_CXX=no
10163module_cmds_CXX= 10327module_cmds_CXX=
10164module_expsym_cmds_CXX= 10328module_expsym_cmds_CXX=
@@ -10186,13 +10350,16 @@ objext_CXX=$objext
10186lt_simple_compile_test_code="int some_variable = 0;\n" 10350lt_simple_compile_test_code="int some_variable = 0;\n"
10187 10351
10188# Code to be used in simple link tests 10352# Code to be used in simple link tests
10189lt_simple_link_test_code='int main(int, char *) { return(0); }\n' 10353lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10190 10354
10191# ltmain only uses $CC for tagged configurations so make sure $CC is set. 10355# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10192 10356
10193# If no C compiler was specified, use CC. 10357# If no C compiler was specified, use CC.
10194LTCC=${LTCC-"$CC"} 10358LTCC=${LTCC-"$CC"}
10195 10359
10360# If no C compiler flags were specified, use CFLAGS.
10361LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10362
10196# Allow CC to be a program name with arguments. 10363# Allow CC to be a program name with arguments.
10197compiler=$CC 10364compiler=$CC
10198 10365
@@ -10200,13 +10367,13 @@ compiler=$CC
10200# save warnings/boilerplate of simple test code 10367# save warnings/boilerplate of simple test code
10201ac_outfile=conftest.$ac_objext 10368ac_outfile=conftest.$ac_objext
10202printf "$lt_simple_compile_test_code" >conftest.$ac_ext 10369printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10203eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 10370eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10204_lt_compiler_boilerplate=`cat conftest.err` 10371_lt_compiler_boilerplate=`cat conftest.err`
10205$rm conftest* 10372$rm conftest*
10206 10373
10207ac_outfile=conftest.$ac_objext 10374ac_outfile=conftest.$ac_objext
10208printf "$lt_simple_link_test_code" >conftest.$ac_ext 10375printf "$lt_simple_link_test_code" >conftest.$ac_ext
10209eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 10376eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10210_lt_linker_boilerplate=`cat conftest.err` 10377_lt_linker_boilerplate=`cat conftest.err`
10211$rm conftest* 10378$rm conftest*
10212 10379
@@ -10221,12 +10388,12 @@ lt_save_path_LD=$lt_cv_path_LD
10221if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 10388if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10222 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 10389 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10223else 10390else
10224 unset lt_cv_prog_gnu_ld 10391 $as_unset lt_cv_prog_gnu_ld
10225fi 10392fi
10226if test -n "${lt_cv_path_LDCXX+set}"; then 10393if test -n "${lt_cv_path_LDCXX+set}"; then
10227 lt_cv_path_LD=$lt_cv_path_LDCXX 10394 lt_cv_path_LD=$lt_cv_path_LDCXX
10228else 10395else
10229 unset lt_cv_path_LD 10396 $as_unset lt_cv_path_LD
10230fi 10397fi
10231test -z "${LDCXX+set}" || LD=$LDCXX 10398test -z "${LDCXX+set}" || LD=$LDCXX
10232CC=${CXX-"c++"} 10399CC=${CXX-"c++"}
@@ -10437,6 +10604,7 @@ case $host_os in
10437 ;; 10604 ;;
10438 esac 10605 esac
10439 done 10606 done
10607 ;;
10440 esac 10608 esac
10441 10609
10442 exp_sym_flag='-bexport' 10610 exp_sym_flag='-bexport'
@@ -10474,6 +10642,7 @@ case $host_os in
10474 hardcode_libdir_flag_spec_CXX='-L$libdir' 10642 hardcode_libdir_flag_spec_CXX='-L$libdir'
10475 hardcode_libdir_separator_CXX= 10643 hardcode_libdir_separator_CXX=
10476 fi 10644 fi
10645 ;;
10477 esac 10646 esac
10478 shared_flag='-shared' 10647 shared_flag='-shared'
10479 if test "$aix_use_runtimelinking" = yes; then 10648 if test "$aix_use_runtimelinking" = yes; then
@@ -10555,12 +10724,12 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10555 10724
10556 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 10725 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10557 10726
10558 archive_expsym_cmds_CXX="\$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" 10727 archive_expsym_cmds_CXX="\$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"
10559 else 10728 else
10560 if test "$host_cpu" = ia64; then 10729 if test "$host_cpu" = ia64; then
10561 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 10730 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10562 allow_undefined_flag_CXX="-z nodefs" 10731 allow_undefined_flag_CXX="-z nodefs"
10563 archive_expsym_cmds_CXX="\$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" 10732 archive_expsym_cmds_CXX="\$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"
10564 else 10733 else
10565 # Determine the default libpath from the value encoded in an empty executable. 10734 # Determine the default libpath from the value encoded in an empty executable.
10566 cat >conftest.$ac_ext <<_ACEOF 10735 cat >conftest.$ac_ext <<_ACEOF
@@ -10619,16 +10788,26 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10619 # -berok will link without error, but may produce a broken library. 10788 # -berok will link without error, but may produce a broken library.
10620 no_undefined_flag_CXX=' ${wl}-bernotok' 10789 no_undefined_flag_CXX=' ${wl}-bernotok'
10621 allow_undefined_flag_CXX=' ${wl}-berok' 10790 allow_undefined_flag_CXX=' ${wl}-berok'
10622 # -bexpall does not export symbols beginning with underscore (_)
10623 always_export_symbols_CXX=yes
10624 # Exported symbols can be pulled into shared objects from archives 10791 # Exported symbols can be pulled into shared objects from archives
10625 whole_archive_flag_spec_CXX=' ' 10792 whole_archive_flag_spec_CXX='$convenience'
10626 archive_cmds_need_lc_CXX=yes 10793 archive_cmds_need_lc_CXX=yes
10627 # This is similar to how AIX traditionally builds its shared libraries. 10794 # This is similar to how AIX traditionally builds its shared libraries.
10628 archive_expsym_cmds_CXX="\$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' 10795 archive_expsym_cmds_CXX="\$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'
10629 fi 10796 fi
10630 fi 10797 fi
10631 ;; 10798 ;;
10799
10800 beos*)
10801 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10802 allow_undefined_flag_CXX=unsupported
10803 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10804 # support --undefined. This deserves some investigation. FIXME
10805 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10806 else
10807 ld_shlibs_CXX=no
10808 fi
10809 ;;
10810
10632 chorus*) 10811 chorus*)
10633 case $cc_basename in 10812 case $cc_basename in
10634 *) 10813 *)
@@ -10638,7 +10817,6 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10638 esac 10817 esac
10639 ;; 10818 ;;
10640 10819
10641
10642 cygwin* | mingw* | pw32*) 10820 cygwin* | mingw* | pw32*)
10643 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 10821 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10644 # as there is no search path for DLLs. 10822 # as there is no search path for DLLs.
@@ -10648,7 +10826,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10648 enable_shared_with_static_runtimes_CXX=yes 10826 enable_shared_with_static_runtimes_CXX=yes
10649 10827
10650 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 10828 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10651 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 10829 archive_cmds_CXX='$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'
10652 # If the export-symbols file already is a .def file (1st line 10830 # If the export-symbols file already is a .def file (1st line
10653 # is EXPORTS), use it as is; otherwise, prepend... 10831 # is EXPORTS), use it as is; otherwise, prepend...
10654 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 10832 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
@@ -10657,7 +10835,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10657 echo EXPORTS > $output_objdir/$soname.def; 10835 echo EXPORTS > $output_objdir/$soname.def;
10658 cat $export_symbols >> $output_objdir/$soname.def; 10836 cat $export_symbols >> $output_objdir/$soname.def;
10659 fi~ 10837 fi~
10660 $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' 10838 $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'
10661 else 10839 else
10662 ld_shlibs_CXX=no 10840 ld_shlibs_CXX=no
10663 fi 10841 fi
@@ -10794,34 +10972,23 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10794 ;; 10972 ;;
10795 hpux10*|hpux11*) 10973 hpux10*|hpux11*)
10796 if test $with_gnu_ld = no; then 10974 if test $with_gnu_ld = no; then
10975 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10976 hardcode_libdir_separator_CXX=:
10977
10797 case $host_cpu in 10978 case $host_cpu in
10798 hppa*64*) 10979 hppa*64*|ia64*)
10799 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10800 hardcode_libdir_flag_spec_ld_CXX='+b $libdir' 10980 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10801 hardcode_libdir_separator_CXX=:
10802 ;;
10803 ia64*)
10804 hardcode_libdir_flag_spec_CXX='-L$libdir'
10805 ;; 10981 ;;
10806 *) 10982 *)
10807 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10808 hardcode_libdir_separator_CXX=:
10809 export_dynamic_flag_spec_CXX='${wl}-E' 10983 export_dynamic_flag_spec_CXX='${wl}-E'
10810 ;; 10984 ;;
10811 esac 10985 esac
10812 fi 10986 fi
10813 case $host_cpu in 10987 case $host_cpu in
10814 hppa*64*) 10988 hppa*64*|ia64*)
10815 hardcode_direct_CXX=no 10989 hardcode_direct_CXX=no
10816 hardcode_shlibpath_var_CXX=no 10990 hardcode_shlibpath_var_CXX=no
10817 ;; 10991 ;;
10818 ia64*)
10819 hardcode_direct_CXX=no
10820 hardcode_shlibpath_var_CXX=no
10821 hardcode_minus_L_CXX=yes # Not in the search PATH,
10822 # but as the default
10823 # location of the library.
10824 ;;
10825 *) 10992 *)
10826 hardcode_direct_CXX=yes 10993 hardcode_direct_CXX=yes
10827 hardcode_minus_L_CXX=yes # Not in the search PATH, 10994 hardcode_minus_L_CXX=yes # Not in the search PATH,
@@ -10837,8 +11004,11 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10837 ;; 11004 ;;
10838 aCC*) 11005 aCC*)
10839 case $host_cpu in 11006 case $host_cpu in
10840 hppa*64*|ia64*) 11007 hppa*64*)
10841 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' 11008 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11009 ;;
11010 ia64*)
11011 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10842 ;; 11012 ;;
10843 *) 11013 *)
10844 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11014 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
@@ -10858,8 +11028,11 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10858 if test "$GXX" = yes; then 11028 if test "$GXX" = yes; then
10859 if test $with_gnu_ld = no; then 11029 if test $with_gnu_ld = no; then
10860 case $host_cpu in 11030 case $host_cpu in
10861 ia64*|hppa*64*) 11031 hppa*64*)
10862 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' 11032 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11033 ;;
11034 ia64*)
11035 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10863 ;; 11036 ;;
10864 *) 11037 *)
10865 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11038 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
@@ -10873,6 +11046,20 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10873 ;; 11046 ;;
10874 esac 11047 esac
10875 ;; 11048 ;;
11049 interix3*)
11050 hardcode_direct_CXX=no
11051 hardcode_shlibpath_var_CXX=no
11052 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11053 export_dynamic_flag_spec_CXX='${wl}-E'
11054 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11055 # Instead, shared libraries are loaded at an image base (0x10000000 by
11056 # default) and relocated if they conflict, which is a slow very memory
11057 # consuming and fragmenting process. To avoid this, we pick a random,
11058 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11059 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11060 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11061 archive_expsym_cmds_CXX='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'
11062 ;;
10876 irix5* | irix6*) 11063 irix5* | irix6*)
10877 case $cc_basename in 11064 case $cc_basename in
10878 CC*) 11065 CC*)
@@ -11155,19 +11342,6 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11155 # FIXME: insert proper C++ library support 11342 # FIXME: insert proper C++ library support
11156 ld_shlibs_CXX=no 11343 ld_shlibs_CXX=no
11157 ;; 11344 ;;
11158 sco*)
11159 archive_cmds_need_lc_CXX=no
11160 case $cc_basename in
11161 CC*)
11162 # FIXME: insert proper C++ library support
11163 ld_shlibs_CXX=no
11164 ;;
11165 *)
11166 # FIXME: insert proper C++ library support
11167 ld_shlibs_CXX=no
11168 ;;
11169 esac
11170 ;;
11171 sunos4*) 11345 sunos4*)
11172 case $cc_basename in 11346 case $cc_basename in
11173 CC*) 11347 CC*)
@@ -11260,8 +11434,59 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11260 ;; 11434 ;;
11261 esac 11435 esac
11262 ;; 11436 ;;
11263 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 11437 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11438 no_undefined_flag_CXX='${wl}-z,text'
11264 archive_cmds_need_lc_CXX=no 11439 archive_cmds_need_lc_CXX=no
11440 hardcode_shlibpath_var_CXX=no
11441 runpath_var='LD_RUN_PATH'
11442
11443 case $cc_basename in
11444 CC*)
11445 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11446 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11447 ;;
11448 *)
11449 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11450 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11451 ;;
11452 esac
11453 ;;
11454 sysv5* | sco3.2v5* | sco5v6*)
11455 # Note: We can NOT use -z defs as we might desire, because we do not
11456 # link with -lc, and that would cause any symbols used from libc to
11457 # always be unresolved, which means just about no library would
11458 # ever link correctly. If we're not using GNU ld we use -z text
11459 # though, which does catch some bad symbols but isn't as heavy-handed
11460 # as -z defs.
11461 # For security reasons, it is highly recommended that you always
11462 # use absolute paths for naming shared libraries, and exclude the
11463 # DT_RUNPATH tag from executables and libraries. But doing so
11464 # requires that you compile everything twice, which is a pain.
11465 # So that behaviour is only enabled if SCOABSPATH is set to a
11466 # non-empty value in the environment. Most likely only useful for
11467 # creating official distributions of packages.
11468 # This is a hack until libtool officially supports absolute path
11469 # names for shared libraries.
11470 no_undefined_flag_CXX='${wl}-z,text'
11471 allow_undefined_flag_CXX='${wl}-z,nodefs'
11472 archive_cmds_need_lc_CXX=no
11473 hardcode_shlibpath_var_CXX=no
11474 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11475 hardcode_libdir_separator_CXX=':'
11476 link_all_deplibs_CXX=yes
11477 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11478 runpath_var='LD_RUN_PATH'
11479
11480 case $cc_basename in
11481 CC*)
11482 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11483 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11484 ;;
11485 *)
11486 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11487 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11488 ;;
11489 esac
11265 ;; 11490 ;;
11266 tandem*) 11491 tandem*)
11267 case $cc_basename in 11492 case $cc_basename in
@@ -11396,6 +11621,14 @@ $rm -f confest.$objext
11396 11621
11397# PORTME: override above test on systems where it is broken 11622# PORTME: override above test on systems where it is broken
11398case $host_os in 11623case $host_os in
11624interix3*)
11625 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11626 # hack all around it, let's just trust "g++" to DTRT.
11627 predep_objects_CXX=
11628 postdep_objects_CXX=
11629 postdeps_CXX=
11630 ;;
11631
11399solaris*) 11632solaris*)
11400 case $cc_basename in 11633 case $cc_basename in
11401 CC*) 11634 CC*)
@@ -11405,6 +11638,7 @@ solaris*)
11405 postdeps_CXX='-lCstd -lCrun' 11638 postdeps_CXX='-lCstd -lCrun'
11406 ;; 11639 ;;
11407 esac 11640 esac
11641 ;;
11408esac 11642esac
11409 11643
11410 11644
@@ -11455,6 +11689,10 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11455 # DJGPP does not support shared libraries at all 11689 # DJGPP does not support shared libraries at all
11456 lt_prog_compiler_pic_CXX= 11690 lt_prog_compiler_pic_CXX=
11457 ;; 11691 ;;
11692 interix3*)
11693 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11694 # Instead, we relocate shared libraries at runtime.
11695 ;;
11458 sysv4*MP*) 11696 sysv4*MP*)
11459 if test -d /usr/nec; then 11697 if test -d /usr/nec; then
11460 lt_prog_compiler_pic_CXX=-Kconform_pic 11698 lt_prog_compiler_pic_CXX=-Kconform_pic
@@ -11524,14 +11762,14 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11524 case $cc_basename in 11762 case $cc_basename in
11525 CC*) 11763 CC*)
11526 lt_prog_compiler_wl_CXX='-Wl,' 11764 lt_prog_compiler_wl_CXX='-Wl,'
11527 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" 11765 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11528 if test "$host_cpu" != ia64; then 11766 if test "$host_cpu" != ia64; then
11529 lt_prog_compiler_pic_CXX='+Z' 11767 lt_prog_compiler_pic_CXX='+Z'
11530 fi 11768 fi
11531 ;; 11769 ;;
11532 aCC*) 11770 aCC*)
11533 lt_prog_compiler_wl_CXX='-Wl,' 11771 lt_prog_compiler_wl_CXX='-Wl,'
11534 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" 11772 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11535 case $host_cpu in 11773 case $host_cpu in
11536 hppa*64*|ia64*) 11774 hppa*64*|ia64*)
11537 # +Z the default 11775 # +Z the default
@@ -11545,6 +11783,10 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11545 ;; 11783 ;;
11546 esac 11784 esac
11547 ;; 11785 ;;
11786 interix*)
11787 # This is c89, which is MS Visual C++ (no shared libs)
11788 # Anyone wants to do a port?
11789 ;;
11548 irix5* | irix6* | nonstopux*) 11790 irix5* | irix6* | nonstopux*)
11549 case $cc_basename in 11791 case $cc_basename in
11550 CC*) 11792 CC*)
@@ -11624,15 +11866,6 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11624 ;; 11866 ;;
11625 psos*) 11867 psos*)
11626 ;; 11868 ;;
11627 sco*)
11628 case $cc_basename in
11629 CC*)
11630 lt_prog_compiler_pic_CXX='-fPIC'
11631 ;;
11632 *)
11633 ;;
11634 esac
11635 ;;
11636 solaris*) 11869 solaris*)
11637 case $cc_basename in 11870 case $cc_basename in
11638 CC*) 11871 CC*)
@@ -11674,7 +11907,14 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11674 ;; 11907 ;;
11675 esac 11908 esac
11676 ;; 11909 ;;
11677 unixware*) 11910 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11911 case $cc_basename in
11912 CC*)
11913 lt_prog_compiler_wl_CXX='-Wl,'
11914 lt_prog_compiler_pic_CXX='-KPIC'
11915 lt_prog_compiler_static_CXX='-Bstatic'
11916 ;;
11917 esac
11678 ;; 11918 ;;
11679 vxworks*) 11919 vxworks*)
11680 ;; 11920 ;;
@@ -11710,17 +11950,17 @@ else
11710 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11950 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11711 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11951 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11712 -e 's:$: $lt_compiler_flag:'` 11952 -e 's:$: $lt_compiler_flag:'`
11713 (eval echo "\"\$as_me:11713: $lt_compile\"" >&5) 11953 (eval echo "\"\$as_me:11953: $lt_compile\"" >&5)
11714 (eval "$lt_compile" 2>conftest.err) 11954 (eval "$lt_compile" 2>conftest.err)
11715 ac_status=$? 11955 ac_status=$?
11716 cat conftest.err >&5 11956 cat conftest.err >&5
11717 echo "$as_me:11717: \$? = $ac_status" >&5 11957 echo "$as_me:11957: \$? = $ac_status" >&5
11718 if (exit $ac_status) && test -s "$ac_outfile"; then 11958 if (exit $ac_status) && test -s "$ac_outfile"; then
11719 # The compiler can only warn and ignore the option if not recognized 11959 # The compiler can only warn and ignore the option if not recognized
11720 # So say no if there are warnings other than the usual output. 11960 # So say no if there are warnings other than the usual output.
11721 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp 11961 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11722 $SED '/^$/d' conftest.err >conftest.er2 11962 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11723 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then 11963 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11724 lt_prog_compiler_pic_works_CXX=yes 11964 lt_prog_compiler_pic_works_CXX=yes
11725 fi 11965 fi
11726 fi 11966 fi
@@ -11751,6 +11991,48 @@ case $host_os in
11751 ;; 11991 ;;
11752esac 11992esac
11753 11993
11994#
11995# Check to make sure the static flag actually works.
11996#
11997wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11998echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11999echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
12000if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12001 echo $ECHO_N "(cached) $ECHO_C" >&6
12002else
12003 lt_prog_compiler_static_works_CXX=no
12004 save_LDFLAGS="$LDFLAGS"
12005 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12006 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12007 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12008 # The linker can only warn and ignore the option if not recognized
12009 # So say no if there are warnings
12010 if test -s conftest.err; then
12011 # Append any errors to the config.log.
12012 cat conftest.err 1>&5
12013 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12014 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12015 if diff conftest.exp conftest.er2 >/dev/null; then
12016 lt_prog_compiler_static_works_CXX=yes
12017 fi
12018 else
12019 lt_prog_compiler_static_works_CXX=yes
12020 fi
12021 fi
12022 $rm conftest*
12023 LDFLAGS="$save_LDFLAGS"
12024
12025fi
12026echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12027echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
12028
12029if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12030 :
12031else
12032 lt_prog_compiler_static_CXX=
12033fi
12034
12035
11754echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 12036echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11755echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 12037echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11756if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 12038if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
@@ -11772,18 +12054,18 @@ else
11772 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12054 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11773 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12055 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11774 -e 's:$: $lt_compiler_flag:'` 12056 -e 's:$: $lt_compiler_flag:'`
11775 (eval echo "\"\$as_me:11775: $lt_compile\"" >&5) 12057 (eval echo "\"\$as_me:12057: $lt_compile\"" >&5)
11776 (eval "$lt_compile" 2>out/conftest.err) 12058 (eval "$lt_compile" 2>out/conftest.err)
11777 ac_status=$? 12059 ac_status=$?
11778 cat out/conftest.err >&5 12060 cat out/conftest.err >&5
11779 echo "$as_me:11779: \$? = $ac_status" >&5 12061 echo "$as_me:12061: \$? = $ac_status" >&5
11780 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12062 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11781 then 12063 then
11782 # The compiler can only warn and ignore the option if not recognized 12064 # The compiler can only warn and ignore the option if not recognized
11783 # So say no if there are warnings 12065 # So say no if there are warnings
11784 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp 12066 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11785 $SED '/^$/d' out/conftest.err >out/conftest.er2 12067 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11786 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then 12068 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11787 lt_cv_prog_compiler_c_o_CXX=yes 12069 lt_cv_prog_compiler_c_o_CXX=yes
11788 fi 12070 fi
11789 fi 12071 fi
@@ -11844,6 +12126,9 @@ echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared librar
11844 cygwin* | mingw*) 12126 cygwin* | mingw*)
11845 export_symbols_cmds_CXX='$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' 12127 export_symbols_cmds_CXX='$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'
11846 ;; 12128 ;;
12129 kfreebsd*-gnu)
12130 link_all_deplibs_CXX=no
12131 ;;
11847 linux*) 12132 linux*)
11848 link_all_deplibs_CXX=no 12133 link_all_deplibs_CXX=no
11849 ;; 12134 ;;
@@ -11856,11 +12141,6 @@ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11856echo "${ECHO_T}$ld_shlibs_CXX" >&6 12141echo "${ECHO_T}$ld_shlibs_CXX" >&6
11857test "$ld_shlibs_CXX" = no && can_build_shared=no 12142test "$ld_shlibs_CXX" = no && can_build_shared=no
11858 12143
11859variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11860if test "$GCC" = yes; then
11861 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11862fi
11863
11864# 12144#
11865# Do we need to explicitly link libc? 12145# Do we need to explicitly link libc?
11866# 12146#
@@ -11893,6 +12173,7 @@ echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&
11893 libobjs=conftest.$ac_objext 12173 libobjs=conftest.$ac_objext
11894 deplibs= 12174 deplibs=
11895 wl=$lt_prog_compiler_wl_CXX 12175 wl=$lt_prog_compiler_wl_CXX
12176 pic_flag=$lt_prog_compiler_pic_CXX
11896 compiler_flags=-v 12177 compiler_flags=-v
11897 linker_flags=-v 12178 linker_flags=-v
11898 verstring= 12179 verstring=
@@ -12174,10 +12455,15 @@ freebsd* | dragonfly*)
12174 shlibpath_overrides_runpath=yes 12455 shlibpath_overrides_runpath=yes
12175 hardcode_into_libs=yes 12456 hardcode_into_libs=yes
12176 ;; 12457 ;;
12177 *) # from 3.2 on 12458 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12459 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12178 shlibpath_overrides_runpath=no 12460 shlibpath_overrides_runpath=no
12179 hardcode_into_libs=yes 12461 hardcode_into_libs=yes
12180 ;; 12462 ;;
12463 freebsd*) # from 4.6 on
12464 shlibpath_overrides_runpath=yes
12465 hardcode_into_libs=yes
12466 ;;
12181 esac 12467 esac
12182 ;; 12468 ;;
12183 12469
@@ -12237,6 +12523,18 @@ hpux9* | hpux10* | hpux11*)
12237 postinstall_cmds='chmod 555 $lib' 12523 postinstall_cmds='chmod 555 $lib'
12238 ;; 12524 ;;
12239 12525
12526interix3*)
12527 version_type=linux
12528 need_lib_prefix=no
12529 need_version=no
12530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12531 soname_spec='${libname}${release}${shared_ext}$major'
12532 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12533 shlibpath_var=LD_LIBRARY_PATH
12534 shlibpath_overrides_runpath=no
12535 hardcode_into_libs=yes
12536 ;;
12537
12240irix5* | irix6* | nonstopux*) 12538irix5* | irix6* | nonstopux*)
12241 case $host_os in 12539 case $host_os in
12242 nonstopux*) version_type=nonstopux ;; 12540 nonstopux*) version_type=nonstopux ;;
@@ -12370,6 +12668,7 @@ nto-qnx*)
12370 12668
12371openbsd*) 12669openbsd*)
12372 version_type=sunos 12670 version_type=sunos
12671 sys_lib_dlsearch_path_spec="/usr/lib"
12373 need_lib_prefix=no 12672 need_lib_prefix=no
12374 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 12673 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12375 case $host_os in 12674 case $host_os in
@@ -12413,13 +12712,6 @@ osf3* | osf4* | osf5*)
12413 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 12712 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12414 ;; 12713 ;;
12415 12714
12416sco3.2v5*)
12417 version_type=osf
12418 soname_spec='${libname}${release}${shared_ext}$major'
12419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12420 shlibpath_var=LD_LIBRARY_PATH
12421 ;;
12422
12423solaris*) 12715solaris*)
12424 version_type=linux 12716 version_type=linux
12425 need_lib_prefix=no 12717 need_lib_prefix=no
@@ -12445,7 +12737,7 @@ sunos4*)
12445 need_version=yes 12737 need_version=yes
12446 ;; 12738 ;;
12447 12739
12448sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 12740sysv4 | sysv4.3*)
12449 version_type=linux 12741 version_type=linux
12450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12451 soname_spec='${libname}${release}${shared_ext}$major' 12743 soname_spec='${libname}${release}${shared_ext}$major'
@@ -12478,6 +12770,29 @@ sysv4*MP*)
12478 fi 12770 fi
12479 ;; 12771 ;;
12480 12772
12773sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12774 version_type=freebsd-elf
12775 need_lib_prefix=no
12776 need_version=no
12777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12778 soname_spec='${libname}${release}${shared_ext}$major'
12779 shlibpath_var=LD_LIBRARY_PATH
12780 hardcode_into_libs=yes
12781 if test "$with_gnu_ld" = yes; then
12782 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12783 shlibpath_overrides_runpath=no
12784 else
12785 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12786 shlibpath_overrides_runpath=yes
12787 case $host_os in
12788 sco3.2v5*)
12789 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12790 ;;
12791 esac
12792 fi
12793 sys_lib_dlsearch_path_spec='/usr/lib'
12794 ;;
12795
12481uts4*) 12796uts4*)
12482 version_type=linux 12797 version_type=linux
12483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
@@ -12493,6 +12808,11 @@ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12493echo "${ECHO_T}$dynamic_linker" >&6 12808echo "${ECHO_T}$dynamic_linker" >&6
12494test "$dynamic_linker" = no && can_build_shared=no 12809test "$dynamic_linker" = no && can_build_shared=no
12495 12810
12811variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12812if test "$GCC" = yes; then
12813 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12814fi
12815
12496echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 12816echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12497echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 12817echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12498hardcode_action_CXX= 12818hardcode_action_CXX=
@@ -12530,834 +12850,6 @@ elif test "$shlibpath_overrides_runpath" = yes ||
12530 enable_fast_install=needless 12850 enable_fast_install=needless
12531fi 12851fi
12532 12852
12533striplib=
12534old_striplib=
12535echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12536echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12537if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12538 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12539 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12540 echo "$as_me:$LINENO: result: yes" >&5
12541echo "${ECHO_T}yes" >&6
12542else
12543# FIXME - insert some real tests, host_os isn't really good enough
12544 case $host_os in
12545 darwin*)
12546 if test -n "$STRIP" ; then
12547 striplib="$STRIP -x"
12548 echo "$as_me:$LINENO: result: yes" >&5
12549echo "${ECHO_T}yes" >&6
12550 else
12551 echo "$as_me:$LINENO: result: no" >&5
12552echo "${ECHO_T}no" >&6
12553fi
12554 ;;
12555 *)
12556 echo "$as_me:$LINENO: result: no" >&5
12557echo "${ECHO_T}no" >&6
12558 ;;
12559 esac
12560fi
12561
12562if test "x$enable_dlopen" != xyes; then
12563 enable_dlopen=unknown
12564 enable_dlopen_self=unknown
12565 enable_dlopen_self_static=unknown
12566else
12567 lt_cv_dlopen=no
12568 lt_cv_dlopen_libs=
12569
12570 case $host_os in
12571 beos*)
12572 lt_cv_dlopen="load_add_on"
12573 lt_cv_dlopen_libs=
12574 lt_cv_dlopen_self=yes
12575 ;;
12576
12577 mingw* | pw32*)
12578 lt_cv_dlopen="LoadLibrary"
12579 lt_cv_dlopen_libs=
12580 ;;
12581
12582 cygwin*)
12583 lt_cv_dlopen="dlopen"
12584 lt_cv_dlopen_libs=
12585 ;;
12586
12587 darwin*)
12588 # if libdl is installed we need to link against it
12589 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12590echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12591if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12592 echo $ECHO_N "(cached) $ECHO_C" >&6
12593else
12594 ac_check_lib_save_LIBS=$LIBS
12595LIBS="-ldl $LIBS"
12596cat >conftest.$ac_ext <<_ACEOF
12597/* confdefs.h. */
12598_ACEOF
12599cat confdefs.h >>conftest.$ac_ext
12600cat >>conftest.$ac_ext <<_ACEOF
12601/* end confdefs.h. */
12602
12603/* Override any gcc2 internal prototype to avoid an error. */
12604#ifdef __cplusplus
12605extern "C"
12606#endif
12607/* We use char because int might match the return type of a gcc2
12608 builtin and then its argument prototype would still apply. */
12609char dlopen ();
12610int
12611main ()
12612{
12613dlopen ();
12614 ;
12615 return 0;
12616}
12617_ACEOF
12618rm -f conftest.$ac_objext conftest$ac_exeext
12619if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12620 (eval $ac_link) 2>conftest.er1
12621 ac_status=$?
12622 grep -v '^ *+' conftest.er1 >conftest.err
12623 rm -f conftest.er1
12624 cat conftest.err >&5
12625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12626 (exit $ac_status); } &&
12627 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12629 (eval $ac_try) 2>&5
12630 ac_status=$?
12631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12632 (exit $ac_status); }; } &&
12633 { ac_try='test -s conftest$ac_exeext'
12634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12635 (eval $ac_try) 2>&5
12636 ac_status=$?
12637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12638 (exit $ac_status); }; }; then
12639 ac_cv_lib_dl_dlopen=yes
12640else
12641 echo "$as_me: failed program was:" >&5
12642sed 's/^/| /' conftest.$ac_ext >&5
12643
12644ac_cv_lib_dl_dlopen=no
12645fi
12646rm -f conftest.err conftest.$ac_objext \
12647 conftest$ac_exeext conftest.$ac_ext
12648LIBS=$ac_check_lib_save_LIBS
12649fi
12650echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12651echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12652if test $ac_cv_lib_dl_dlopen = yes; then
12653 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12654else
12655
12656 lt_cv_dlopen="dyld"
12657 lt_cv_dlopen_libs=
12658 lt_cv_dlopen_self=yes
12659
12660fi
12661
12662 ;;
12663
12664 *)
12665 echo "$as_me:$LINENO: checking for shl_load" >&5
12666echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12667if test "${ac_cv_func_shl_load+set}" = set; then
12668 echo $ECHO_N "(cached) $ECHO_C" >&6
12669else
12670 cat >conftest.$ac_ext <<_ACEOF
12671/* confdefs.h. */
12672_ACEOF
12673cat confdefs.h >>conftest.$ac_ext
12674cat >>conftest.$ac_ext <<_ACEOF
12675/* end confdefs.h. */
12676/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12677 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12678#define shl_load innocuous_shl_load
12679
12680/* System header to define __stub macros and hopefully few prototypes,
12681 which can conflict with char shl_load (); below.
12682 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12683 <limits.h> exists even on freestanding compilers. */
12684
12685#ifdef __STDC__
12686# include <limits.h>
12687#else
12688# include <assert.h>
12689#endif
12690
12691#undef shl_load
12692
12693/* Override any gcc2 internal prototype to avoid an error. */
12694#ifdef __cplusplus
12695extern "C"
12696{
12697#endif
12698/* We use char because int might match the return type of a gcc2
12699 builtin and then its argument prototype would still apply. */
12700char shl_load ();
12701/* The GNU C library defines this for functions which it implements
12702 to always fail with ENOSYS. Some functions are actually named
12703 something starting with __ and the normal name is an alias. */
12704#if defined (__stub_shl_load) || defined (__stub___shl_load)
12705choke me
12706#else
12707char (*f) () = shl_load;
12708#endif
12709#ifdef __cplusplus
12710}
12711#endif
12712
12713int
12714main ()
12715{
12716return f != shl_load;
12717 ;
12718 return 0;
12719}
12720_ACEOF
12721rm -f conftest.$ac_objext conftest$ac_exeext
12722if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12723 (eval $ac_link) 2>conftest.er1
12724 ac_status=$?
12725 grep -v '^ *+' conftest.er1 >conftest.err
12726 rm -f conftest.er1
12727 cat conftest.err >&5
12728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12729 (exit $ac_status); } &&
12730 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12732 (eval $ac_try) 2>&5
12733 ac_status=$?
12734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12735 (exit $ac_status); }; } &&
12736 { ac_try='test -s conftest$ac_exeext'
12737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12738 (eval $ac_try) 2>&5
12739 ac_status=$?
12740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12741 (exit $ac_status); }; }; then
12742 ac_cv_func_shl_load=yes
12743else
12744 echo "$as_me: failed program was:" >&5
12745sed 's/^/| /' conftest.$ac_ext >&5
12746
12747ac_cv_func_shl_load=no
12748fi
12749rm -f conftest.err conftest.$ac_objext \
12750 conftest$ac_exeext conftest.$ac_ext
12751fi
12752echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12753echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12754if test $ac_cv_func_shl_load = yes; then
12755 lt_cv_dlopen="shl_load"
12756else
12757 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12758echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12759if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12760 echo $ECHO_N "(cached) $ECHO_C" >&6
12761else
12762 ac_check_lib_save_LIBS=$LIBS
12763LIBS="-ldld $LIBS"
12764cat >conftest.$ac_ext <<_ACEOF
12765/* confdefs.h. */
12766_ACEOF
12767cat confdefs.h >>conftest.$ac_ext
12768cat >>conftest.$ac_ext <<_ACEOF
12769/* end confdefs.h. */
12770
12771/* Override any gcc2 internal prototype to avoid an error. */
12772#ifdef __cplusplus
12773extern "C"
12774#endif
12775/* We use char because int might match the return type of a gcc2
12776 builtin and then its argument prototype would still apply. */
12777char shl_load ();
12778int
12779main ()
12780{
12781shl_load ();
12782 ;
12783 return 0;
12784}
12785_ACEOF
12786rm -f conftest.$ac_objext conftest$ac_exeext
12787if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12788 (eval $ac_link) 2>conftest.er1
12789 ac_status=$?
12790 grep -v '^ *+' conftest.er1 >conftest.err
12791 rm -f conftest.er1
12792 cat conftest.err >&5
12793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12794 (exit $ac_status); } &&
12795 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12797 (eval $ac_try) 2>&5
12798 ac_status=$?
12799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12800 (exit $ac_status); }; } &&
12801 { ac_try='test -s conftest$ac_exeext'
12802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12803 (eval $ac_try) 2>&5
12804 ac_status=$?
12805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12806 (exit $ac_status); }; }; then
12807 ac_cv_lib_dld_shl_load=yes
12808else
12809 echo "$as_me: failed program was:" >&5
12810sed 's/^/| /' conftest.$ac_ext >&5
12811
12812ac_cv_lib_dld_shl_load=no
12813fi
12814rm -f conftest.err conftest.$ac_objext \
12815 conftest$ac_exeext conftest.$ac_ext
12816LIBS=$ac_check_lib_save_LIBS
12817fi
12818echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12819echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12820if test $ac_cv_lib_dld_shl_load = yes; then
12821 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12822else
12823 echo "$as_me:$LINENO: checking for dlopen" >&5
12824echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12825if test "${ac_cv_func_dlopen+set}" = set; then
12826 echo $ECHO_N "(cached) $ECHO_C" >&6
12827else
12828 cat >conftest.$ac_ext <<_ACEOF
12829/* confdefs.h. */
12830_ACEOF
12831cat confdefs.h >>conftest.$ac_ext
12832cat >>conftest.$ac_ext <<_ACEOF
12833/* end confdefs.h. */
12834/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12835 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12836#define dlopen innocuous_dlopen
12837
12838/* System header to define __stub macros and hopefully few prototypes,
12839 which can conflict with char dlopen (); below.
12840 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12841 <limits.h> exists even on freestanding compilers. */
12842
12843#ifdef __STDC__
12844# include <limits.h>
12845#else
12846# include <assert.h>
12847#endif
12848
12849#undef dlopen
12850
12851/* Override any gcc2 internal prototype to avoid an error. */
12852#ifdef __cplusplus
12853extern "C"
12854{
12855#endif
12856/* We use char because int might match the return type of a gcc2
12857 builtin and then its argument prototype would still apply. */
12858char dlopen ();
12859/* The GNU C library defines this for functions which it implements
12860 to always fail with ENOSYS. Some functions are actually named
12861 something starting with __ and the normal name is an alias. */
12862#if defined (__stub_dlopen) || defined (__stub___dlopen)
12863choke me
12864#else
12865char (*f) () = dlopen;
12866#endif
12867#ifdef __cplusplus
12868}
12869#endif
12870
12871int
12872main ()
12873{
12874return f != dlopen;
12875 ;
12876 return 0;
12877}
12878_ACEOF
12879rm -f conftest.$ac_objext conftest$ac_exeext
12880if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12881 (eval $ac_link) 2>conftest.er1
12882 ac_status=$?
12883 grep -v '^ *+' conftest.er1 >conftest.err
12884 rm -f conftest.er1
12885 cat conftest.err >&5
12886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12887 (exit $ac_status); } &&
12888 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12890 (eval $ac_try) 2>&5
12891 ac_status=$?
12892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12893 (exit $ac_status); }; } &&
12894 { ac_try='test -s conftest$ac_exeext'
12895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12896 (eval $ac_try) 2>&5
12897 ac_status=$?
12898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12899 (exit $ac_status); }; }; then
12900 ac_cv_func_dlopen=yes
12901else
12902 echo "$as_me: failed program was:" >&5
12903sed 's/^/| /' conftest.$ac_ext >&5
12904
12905ac_cv_func_dlopen=no
12906fi
12907rm -f conftest.err conftest.$ac_objext \
12908 conftest$ac_exeext conftest.$ac_ext
12909fi
12910echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12911echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12912if test $ac_cv_func_dlopen = yes; then
12913 lt_cv_dlopen="dlopen"
12914else
12915 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12916echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12917if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12918 echo $ECHO_N "(cached) $ECHO_C" >&6
12919else
12920 ac_check_lib_save_LIBS=$LIBS
12921LIBS="-ldl $LIBS"
12922cat >conftest.$ac_ext <<_ACEOF
12923/* confdefs.h. */
12924_ACEOF
12925cat confdefs.h >>conftest.$ac_ext
12926cat >>conftest.$ac_ext <<_ACEOF
12927/* end confdefs.h. */
12928
12929/* Override any gcc2 internal prototype to avoid an error. */
12930#ifdef __cplusplus
12931extern "C"
12932#endif
12933/* We use char because int might match the return type of a gcc2
12934 builtin and then its argument prototype would still apply. */
12935char dlopen ();
12936int
12937main ()
12938{
12939dlopen ();
12940 ;
12941 return 0;
12942}
12943_ACEOF
12944rm -f conftest.$ac_objext conftest$ac_exeext
12945if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12946 (eval $ac_link) 2>conftest.er1
12947 ac_status=$?
12948 grep -v '^ *+' conftest.er1 >conftest.err
12949 rm -f conftest.er1
12950 cat conftest.err >&5
12951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12952 (exit $ac_status); } &&
12953 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12955 (eval $ac_try) 2>&5
12956 ac_status=$?
12957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12958 (exit $ac_status); }; } &&
12959 { ac_try='test -s conftest$ac_exeext'
12960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12961 (eval $ac_try) 2>&5
12962 ac_status=$?
12963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12964 (exit $ac_status); }; }; then
12965 ac_cv_lib_dl_dlopen=yes
12966else
12967 echo "$as_me: failed program was:" >&5
12968sed 's/^/| /' conftest.$ac_ext >&5
12969
12970ac_cv_lib_dl_dlopen=no
12971fi
12972rm -f conftest.err conftest.$ac_objext \
12973 conftest$ac_exeext conftest.$ac_ext
12974LIBS=$ac_check_lib_save_LIBS
12975fi
12976echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12977echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12978if test $ac_cv_lib_dl_dlopen = yes; then
12979 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12980else
12981 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12982echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12983if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12984 echo $ECHO_N "(cached) $ECHO_C" >&6
12985else
12986 ac_check_lib_save_LIBS=$LIBS
12987LIBS="-lsvld $LIBS"
12988cat >conftest.$ac_ext <<_ACEOF
12989/* confdefs.h. */
12990_ACEOF
12991cat confdefs.h >>conftest.$ac_ext
12992cat >>conftest.$ac_ext <<_ACEOF
12993/* end confdefs.h. */
12994
12995/* Override any gcc2 internal prototype to avoid an error. */
12996#ifdef __cplusplus
12997extern "C"
12998#endif
12999/* We use char because int might match the return type of a gcc2
13000 builtin and then its argument prototype would still apply. */
13001char dlopen ();
13002int
13003main ()
13004{
13005dlopen ();
13006 ;
13007 return 0;
13008}
13009_ACEOF
13010rm -f conftest.$ac_objext conftest$ac_exeext
13011if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13012 (eval $ac_link) 2>conftest.er1
13013 ac_status=$?
13014 grep -v '^ *+' conftest.er1 >conftest.err
13015 rm -f conftest.er1
13016 cat conftest.err >&5
13017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13018 (exit $ac_status); } &&
13019 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13021 (eval $ac_try) 2>&5
13022 ac_status=$?
13023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13024 (exit $ac_status); }; } &&
13025 { ac_try='test -s conftest$ac_exeext'
13026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13027 (eval $ac_try) 2>&5
13028 ac_status=$?
13029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13030 (exit $ac_status); }; }; then
13031 ac_cv_lib_svld_dlopen=yes
13032else
13033 echo "$as_me: failed program was:" >&5
13034sed 's/^/| /' conftest.$ac_ext >&5
13035
13036ac_cv_lib_svld_dlopen=no
13037fi
13038rm -f conftest.err conftest.$ac_objext \
13039 conftest$ac_exeext conftest.$ac_ext
13040LIBS=$ac_check_lib_save_LIBS
13041fi
13042echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
13043echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
13044if test $ac_cv_lib_svld_dlopen = yes; then
13045 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13046else
13047 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
13048echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
13049if test "${ac_cv_lib_dld_dld_link+set}" = set; then
13050 echo $ECHO_N "(cached) $ECHO_C" >&6
13051else
13052 ac_check_lib_save_LIBS=$LIBS
13053LIBS="-ldld $LIBS"
13054cat >conftest.$ac_ext <<_ACEOF
13055/* confdefs.h. */
13056_ACEOF
13057cat confdefs.h >>conftest.$ac_ext
13058cat >>conftest.$ac_ext <<_ACEOF
13059/* end confdefs.h. */
13060
13061/* Override any gcc2 internal prototype to avoid an error. */
13062#ifdef __cplusplus
13063extern "C"
13064#endif
13065/* We use char because int might match the return type of a gcc2
13066 builtin and then its argument prototype would still apply. */
13067char dld_link ();
13068int
13069main ()
13070{
13071dld_link ();
13072 ;
13073 return 0;
13074}
13075_ACEOF
13076rm -f conftest.$ac_objext conftest$ac_exeext
13077if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13078 (eval $ac_link) 2>conftest.er1
13079 ac_status=$?
13080 grep -v '^ *+' conftest.er1 >conftest.err
13081 rm -f conftest.er1
13082 cat conftest.err >&5
13083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13084 (exit $ac_status); } &&
13085 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13087 (eval $ac_try) 2>&5
13088 ac_status=$?
13089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13090 (exit $ac_status); }; } &&
13091 { ac_try='test -s conftest$ac_exeext'
13092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13093 (eval $ac_try) 2>&5
13094 ac_status=$?
13095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13096 (exit $ac_status); }; }; then
13097 ac_cv_lib_dld_dld_link=yes
13098else
13099 echo "$as_me: failed program was:" >&5
13100sed 's/^/| /' conftest.$ac_ext >&5
13101
13102ac_cv_lib_dld_dld_link=no
13103fi
13104rm -f conftest.err conftest.$ac_objext \
13105 conftest$ac_exeext conftest.$ac_ext
13106LIBS=$ac_check_lib_save_LIBS
13107fi
13108echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
13109echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
13110if test $ac_cv_lib_dld_dld_link = yes; then
13111 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
13112fi
13113
13114
13115fi
13116
13117
13118fi
13119
13120
13121fi
13122
13123
13124fi
13125
13126
13127fi
13128
13129 ;;
13130 esac
13131
13132 if test "x$lt_cv_dlopen" != xno; then
13133 enable_dlopen=yes
13134 else
13135 enable_dlopen=no
13136 fi
13137
13138 case $lt_cv_dlopen in
13139 dlopen)
13140 save_CPPFLAGS="$CPPFLAGS"
13141 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13142
13143 save_LDFLAGS="$LDFLAGS"
13144 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13145
13146 save_LIBS="$LIBS"
13147 LIBS="$lt_cv_dlopen_libs $LIBS"
13148
13149 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
13150echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
13151if test "${lt_cv_dlopen_self+set}" = set; then
13152 echo $ECHO_N "(cached) $ECHO_C" >&6
13153else
13154 if test "$cross_compiling" = yes; then :
13155 lt_cv_dlopen_self=cross
13156else
13157 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13158 lt_status=$lt_dlunknown
13159 cat > conftest.$ac_ext <<EOF
13160#line 13160 "configure"
13161#include "confdefs.h"
13162
13163#if HAVE_DLFCN_H
13164#include <dlfcn.h>
13165#endif
13166
13167#include <stdio.h>
13168
13169#ifdef RTLD_GLOBAL
13170# define LT_DLGLOBAL RTLD_GLOBAL
13171#else
13172# ifdef DL_GLOBAL
13173# define LT_DLGLOBAL DL_GLOBAL
13174# else
13175# define LT_DLGLOBAL 0
13176# endif
13177#endif
13178
13179/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13180 find out it does not work in some platform. */
13181#ifndef LT_DLLAZY_OR_NOW
13182# ifdef RTLD_LAZY
13183# define LT_DLLAZY_OR_NOW RTLD_LAZY
13184# else
13185# ifdef DL_LAZY
13186# define LT_DLLAZY_OR_NOW DL_LAZY
13187# else
13188# ifdef RTLD_NOW
13189# define LT_DLLAZY_OR_NOW RTLD_NOW
13190# else
13191# ifdef DL_NOW
13192# define LT_DLLAZY_OR_NOW DL_NOW
13193# else
13194# define LT_DLLAZY_OR_NOW 0
13195# endif
13196# endif
13197# endif
13198# endif
13199#endif
13200
13201#ifdef __cplusplus
13202extern "C" void exit (int);
13203#endif
13204
13205void fnord() { int i=42;}
13206int main ()
13207{
13208 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13209 int status = $lt_dlunknown;
13210
13211 if (self)
13212 {
13213 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13214 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13215 /* dlclose (self); */
13216 }
13217
13218 exit (status);
13219}
13220EOF
13221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13222 (eval $ac_link) 2>&5
13223 ac_status=$?
13224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13225 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13226 (./conftest; exit; ) >&5 2>/dev/null
13227 lt_status=$?
13228 case x$lt_status in
13229 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13230 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13231 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
13232 esac
13233 else :
13234 # compilation failed
13235 lt_cv_dlopen_self=no
13236 fi
13237fi
13238rm -fr conftest*
13239
13240
13241fi
13242echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
13243echo "${ECHO_T}$lt_cv_dlopen_self" >&6
13244
13245 if test "x$lt_cv_dlopen_self" = xyes; then
13246 LDFLAGS="$LDFLAGS $link_static_flag"
13247 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
13248echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
13249if test "${lt_cv_dlopen_self_static+set}" = set; then
13250 echo $ECHO_N "(cached) $ECHO_C" >&6
13251else
13252 if test "$cross_compiling" = yes; then :
13253 lt_cv_dlopen_self_static=cross
13254else
13255 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13256 lt_status=$lt_dlunknown
13257 cat > conftest.$ac_ext <<EOF
13258#line 13258 "configure"
13259#include "confdefs.h"
13260
13261#if HAVE_DLFCN_H
13262#include <dlfcn.h>
13263#endif
13264
13265#include <stdio.h>
13266
13267#ifdef RTLD_GLOBAL
13268# define LT_DLGLOBAL RTLD_GLOBAL
13269#else
13270# ifdef DL_GLOBAL
13271# define LT_DLGLOBAL DL_GLOBAL
13272# else
13273# define LT_DLGLOBAL 0
13274# endif
13275#endif
13276
13277/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13278 find out it does not work in some platform. */
13279#ifndef LT_DLLAZY_OR_NOW
13280# ifdef RTLD_LAZY
13281# define LT_DLLAZY_OR_NOW RTLD_LAZY
13282# else
13283# ifdef DL_LAZY
13284# define LT_DLLAZY_OR_NOW DL_LAZY
13285# else
13286# ifdef RTLD_NOW
13287# define LT_DLLAZY_OR_NOW RTLD_NOW
13288# else
13289# ifdef DL_NOW
13290# define LT_DLLAZY_OR_NOW DL_NOW
13291# else
13292# define LT_DLLAZY_OR_NOW 0
13293# endif
13294# endif
13295# endif
13296# endif
13297#endif
13298
13299#ifdef __cplusplus
13300extern "C" void exit (int);
13301#endif
13302
13303void fnord() { int i=42;}
13304int main ()
13305{
13306 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13307 int status = $lt_dlunknown;
13308
13309 if (self)
13310 {
13311 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13312 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13313 /* dlclose (self); */
13314 }
13315
13316 exit (status);
13317}
13318EOF
13319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13320 (eval $ac_link) 2>&5
13321 ac_status=$?
13322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13323 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13324 (./conftest; exit; ) >&5 2>/dev/null
13325 lt_status=$?
13326 case x$lt_status in
13327 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13328 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13329 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
13330 esac
13331 else :
13332 # compilation failed
13333 lt_cv_dlopen_self_static=no
13334 fi
13335fi
13336rm -fr conftest*
13337
13338
13339fi
13340echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13341echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
13342 fi
13343
13344 CPPFLAGS="$save_CPPFLAGS"
13345 LDFLAGS="$save_LDFLAGS"
13346 LIBS="$save_LIBS"
13347 ;;
13348 esac
13349
13350 case $lt_cv_dlopen_self in
13351 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13352 *) enable_dlopen_self=unknown ;;
13353 esac
13354
13355 case $lt_cv_dlopen_self_static in
13356 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13357 *) enable_dlopen_self_static=unknown ;;
13358 esac
13359fi
13360
13361 12853
13362# The else clause should only fire when bootstrapping the 12854# The else clause should only fire when bootstrapping the
13363# libtool distribution, otherwise you forgot to ship ltmain.sh 12855# libtool distribution, otherwise you forgot to ship ltmain.sh
@@ -13372,7 +12864,7 @@ if test -f "$ltmain"; then
13372 # Now quote all the things that may contain metacharacters while being 12864 # Now quote all the things that may contain metacharacters while being
13373 # careful not to overquote the AC_SUBSTed values. We take copies of the 12865 # careful not to overquote the AC_SUBSTed values. We take copies of the
13374 # variables and quote the copies for generation of the libtool script. 12866 # variables and quote the copies for generation of the libtool script.
13375 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 12867 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13376 SED SHELL STRIP \ 12868 SED SHELL STRIP \
13377 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 12869 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13378 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 12870 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
@@ -13490,6 +12982,9 @@ AR_FLAGS=$lt_AR_FLAGS
13490# A C compiler. 12982# A C compiler.
13491LTCC=$lt_LTCC 12983LTCC=$lt_LTCC
13492 12984
12985# LTCC compiler flags.
12986LTCFLAGS=$lt_LTCFLAGS
12987
13493# A language-specific compiler. 12988# A language-specific compiler.
13494CC=$lt_compiler_CXX 12989CC=$lt_compiler_CXX
13495 12990
@@ -13832,6 +13327,9 @@ lt_simple_link_test_code=" program t\n end\n"
13832# If no C compiler was specified, use CC. 13327# If no C compiler was specified, use CC.
13833LTCC=${LTCC-"$CC"} 13328LTCC=${LTCC-"$CC"}
13834 13329
13330# If no C compiler flags were specified, use CFLAGS.
13331LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13332
13835# Allow CC to be a program name with arguments. 13333# Allow CC to be a program name with arguments.
13836compiler=$CC 13334compiler=$CC
13837 13335
@@ -13839,13 +13337,13 @@ compiler=$CC
13839# save warnings/boilerplate of simple test code 13337# save warnings/boilerplate of simple test code
13840ac_outfile=conftest.$ac_objext 13338ac_outfile=conftest.$ac_objext
13841printf "$lt_simple_compile_test_code" >conftest.$ac_ext 13339printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13842eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 13340eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13843_lt_compiler_boilerplate=`cat conftest.err` 13341_lt_compiler_boilerplate=`cat conftest.err`
13844$rm conftest* 13342$rm conftest*
13845 13343
13846ac_outfile=conftest.$ac_objext 13344ac_outfile=conftest.$ac_objext
13847printf "$lt_simple_link_test_code" >conftest.$ac_ext 13345printf "$lt_simple_link_test_code" >conftest.$ac_ext
13848eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 13346eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13849_lt_linker_boilerplate=`cat conftest.err` 13347_lt_linker_boilerplate=`cat conftest.err`
13850$rm conftest* 13348$rm conftest*
13851 13349
@@ -13901,8 +13399,6 @@ test "$enable_shared" = yes || enable_static=yes
13901echo "$as_me:$LINENO: result: $enable_static" >&5 13399echo "$as_me:$LINENO: result: $enable_static" >&5
13902echo "${ECHO_T}$enable_static" >&6 13400echo "${ECHO_T}$enable_static" >&6
13903 13401
13904test "$ld_shlibs_F77" = no && can_build_shared=no
13905
13906GCC_F77="$G77" 13402GCC_F77="$G77"
13907LD_F77="$LD" 13403LD_F77="$LD"
13908 13404
@@ -13949,6 +13445,11 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13949 lt_prog_compiler_pic_F77='-fno-common' 13445 lt_prog_compiler_pic_F77='-fno-common'
13950 ;; 13446 ;;
13951 13447
13448 interix3*)
13449 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13450 # Instead, we relocate shared libraries at runtime.
13451 ;;
13452
13952 msdosdjgpp*) 13453 msdosdjgpp*)
13953 # Just because we use GCC doesn't mean we suddenly get shared libraries 13454 # Just because we use GCC doesn't mean we suddenly get shared libraries
13954 # on systems that don't support them. 13455 # on systems that don't support them.
@@ -14063,11 +13564,6 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14063 lt_prog_compiler_static_F77='-non_shared' 13564 lt_prog_compiler_static_F77='-non_shared'
14064 ;; 13565 ;;
14065 13566
14066 sco3.2v5*)
14067 lt_prog_compiler_pic_F77='-Kpic'
14068 lt_prog_compiler_static_F77='-dn'
14069 ;;
14070
14071 solaris*) 13567 solaris*)
14072 lt_prog_compiler_pic_F77='-KPIC' 13568 lt_prog_compiler_pic_F77='-KPIC'
14073 lt_prog_compiler_static_F77='-Bstatic' 13569 lt_prog_compiler_static_F77='-Bstatic'
@@ -14085,7 +13581,7 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14085 lt_prog_compiler_static_F77='-Bstatic' 13581 lt_prog_compiler_static_F77='-Bstatic'
14086 ;; 13582 ;;
14087 13583
14088 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 13584 sysv4 | sysv4.2uw2* | sysv4.3*)
14089 lt_prog_compiler_wl_F77='-Wl,' 13585 lt_prog_compiler_wl_F77='-Wl,'
14090 lt_prog_compiler_pic_F77='-KPIC' 13586 lt_prog_compiler_pic_F77='-KPIC'
14091 lt_prog_compiler_static_F77='-Bstatic' 13587 lt_prog_compiler_static_F77='-Bstatic'
@@ -14098,6 +13594,12 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14098 fi 13594 fi
14099 ;; 13595 ;;
14100 13596
13597 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13598 lt_prog_compiler_wl_F77='-Wl,'
13599 lt_prog_compiler_pic_F77='-KPIC'
13600 lt_prog_compiler_static_F77='-Bstatic'
13601 ;;
13602
14101 unicos*) 13603 unicos*)
14102 lt_prog_compiler_wl_F77='-Wl,' 13604 lt_prog_compiler_wl_F77='-Wl,'
14103 lt_prog_compiler_can_build_shared_F77=no 13605 lt_prog_compiler_can_build_shared_F77=no
@@ -14140,17 +13642,17 @@ else
14140 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13642 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14141 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13643 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14142 -e 's:$: $lt_compiler_flag:'` 13644 -e 's:$: $lt_compiler_flag:'`
14143 (eval echo "\"\$as_me:14143: $lt_compile\"" >&5) 13645 (eval echo "\"\$as_me:13645: $lt_compile\"" >&5)
14144 (eval "$lt_compile" 2>conftest.err) 13646 (eval "$lt_compile" 2>conftest.err)
14145 ac_status=$? 13647 ac_status=$?
14146 cat conftest.err >&5 13648 cat conftest.err >&5
14147 echo "$as_me:14147: \$? = $ac_status" >&5 13649 echo "$as_me:13649: \$? = $ac_status" >&5
14148 if (exit $ac_status) && test -s "$ac_outfile"; then 13650 if (exit $ac_status) && test -s "$ac_outfile"; then
14149 # The compiler can only warn and ignore the option if not recognized 13651 # The compiler can only warn and ignore the option if not recognized
14150 # So say no if there are warnings other than the usual output. 13652 # So say no if there are warnings other than the usual output.
14151 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp 13653 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14152 $SED '/^$/d' conftest.err >conftest.er2 13654 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14153 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then 13655 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14154 lt_prog_compiler_pic_works_F77=yes 13656 lt_prog_compiler_pic_works_F77=yes
14155 fi 13657 fi
14156 fi 13658 fi
@@ -14181,6 +13683,48 @@ case $host_os in
14181 ;; 13683 ;;
14182esac 13684esac
14183 13685
13686#
13687# Check to make sure the static flag actually works.
13688#
13689wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13690echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13691echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13692if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13693 echo $ECHO_N "(cached) $ECHO_C" >&6
13694else
13695 lt_prog_compiler_static_works_F77=no
13696 save_LDFLAGS="$LDFLAGS"
13697 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13698 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13699 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13700 # The linker can only warn and ignore the option if not recognized
13701 # So say no if there are warnings
13702 if test -s conftest.err; then
13703 # Append any errors to the config.log.
13704 cat conftest.err 1>&5
13705 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13706 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13707 if diff conftest.exp conftest.er2 >/dev/null; then
13708 lt_prog_compiler_static_works_F77=yes
13709 fi
13710 else
13711 lt_prog_compiler_static_works_F77=yes
13712 fi
13713 fi
13714 $rm conftest*
13715 LDFLAGS="$save_LDFLAGS"
13716
13717fi
13718echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13719echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
13720
13721if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13722 :
13723else
13724 lt_prog_compiler_static_F77=
13725fi
13726
13727
14184echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 13728echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14185echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 13729echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14186if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 13730if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
@@ -14202,18 +13746,18 @@ else
14202 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13746 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14203 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13747 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14204 -e 's:$: $lt_compiler_flag:'` 13748 -e 's:$: $lt_compiler_flag:'`
14205 (eval echo "\"\$as_me:14205: $lt_compile\"" >&5) 13749 (eval echo "\"\$as_me:13749: $lt_compile\"" >&5)
14206 (eval "$lt_compile" 2>out/conftest.err) 13750 (eval "$lt_compile" 2>out/conftest.err)
14207 ac_status=$? 13751 ac_status=$?
14208 cat out/conftest.err >&5 13752 cat out/conftest.err >&5
14209 echo "$as_me:14209: \$? = $ac_status" >&5 13753 echo "$as_me:13753: \$? = $ac_status" >&5
14210 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13754 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14211 then 13755 then
14212 # The compiler can only warn and ignore the option if not recognized 13756 # The compiler can only warn and ignore the option if not recognized
14213 # So say no if there are warnings 13757 # So say no if there are warnings
14214 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp 13758 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14215 $SED '/^$/d' out/conftest.err >out/conftest.er2 13759 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14216 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then 13760 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14217 lt_cv_prog_compiler_c_o_F77=yes 13761 lt_cv_prog_compiler_c_o_F77=yes
14218 fi 13762 fi
14219 fi 13763 fi
@@ -14313,6 +13857,10 @@ cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14313 with_gnu_ld=no 13857 with_gnu_ld=no
14314 fi 13858 fi
14315 ;; 13859 ;;
13860 interix*)
13861 # we just hope/assume this is gcc and not c89 (= MSVC++)
13862 with_gnu_ld=yes
13863 ;;
14316 openbsd*) 13864 openbsd*)
14317 with_gnu_ld=no 13865 with_gnu_ld=no
14318 ;; 13866 ;;
@@ -14397,7 +13945,7 @@ EOF
14397 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 13945 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14398 13946
14399 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 13947 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14400 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 13948 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14401 # If the export-symbols file already is a .def file (1st line 13949 # If the export-symbols file already is a .def file (1st line
14402 # is EXPORTS), use it as is; otherwise, prepend... 13950 # is EXPORTS), use it as is; otherwise, prepend...
14403 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 13951 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
@@ -14406,12 +13954,27 @@ EOF
14406 echo EXPORTS > $output_objdir/$soname.def; 13954 echo EXPORTS > $output_objdir/$soname.def;
14407 cat $export_symbols >> $output_objdir/$soname.def; 13955 cat $export_symbols >> $output_objdir/$soname.def;
14408 fi~ 13956 fi~
14409 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 13957 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14410 else 13958 else
14411 ld_shlibs_F77=no 13959 ld_shlibs_F77=no
14412 fi 13960 fi
14413 ;; 13961 ;;
14414 13962
13963 interix3*)
13964 hardcode_direct_F77=no
13965 hardcode_shlibpath_var_F77=no
13966 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13967 export_dynamic_flag_spec_F77='${wl}-E'
13968 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13969 # Instead, shared libraries are loaded at an image base (0x10000000 by
13970 # default) and relocated if they conflict, which is a slow very memory
13971 # consuming and fragmenting process. To avoid this, we pick a random,
13972 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13973 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13974 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13975 archive_expsym_cmds_F77='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'
13976 ;;
13977
14415 linux*) 13978 linux*)
14416 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 13979 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14417 tmp_addflag= 13980 tmp_addflag=
@@ -14454,7 +14017,7 @@ EOF
14454 fi 14017 fi
14455 ;; 14018 ;;
14456 14019
14457 solaris* | sysv5*) 14020 solaris*)
14458 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 14021 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14459 ld_shlibs_F77=no 14022 ld_shlibs_F77=no
14460 cat <<EOF 1>&2 14023 cat <<EOF 1>&2
@@ -14475,6 +14038,33 @@ EOF
14475 fi 14038 fi
14476 ;; 14039 ;;
14477 14040
14041 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14042 case `$LD -v 2>&1` in
14043 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14044 ld_shlibs_F77=no
14045 cat <<_LT_EOF 1>&2
14046
14047*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14048*** reliably create shared libraries on SCO systems. Therefore, libtool
14049*** is disabling shared libraries support. We urge you to upgrade GNU
14050*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14051*** your PATH or compiler configuration so that the native linker is
14052*** used, and then restart.
14053
14054_LT_EOF
14055 ;;
14056 *)
14057 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14058 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14059 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14060 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14061 else
14062 ld_shlibs_F77=no
14063 fi
14064 ;;
14065 esac
14066 ;;
14067
14478 sunos4*) 14068 sunos4*)
14479 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14069 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14480 wlarc= 14070 wlarc=
@@ -14508,7 +14098,7 @@ EOF
14508 # Note: this linker hardcodes the directories in LIBPATH if there 14098 # Note: this linker hardcodes the directories in LIBPATH if there
14509 # are no directories specified by -L. 14099 # are no directories specified by -L.
14510 hardcode_minus_L_F77=yes 14100 hardcode_minus_L_F77=yes
14511 if test "$GCC" = yes && test -z "$link_static_flag"; then 14101 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14512 # Neither direct hardcoding nor static linking is supported with a 14102 # Neither direct hardcoding nor static linking is supported with a
14513 # broken collect2. 14103 # broken collect2.
14514 hardcode_direct_F77=unsupported 14104 hardcode_direct_F77=unsupported
@@ -14542,6 +14132,7 @@ EOF
14542 break 14132 break
14543 fi 14133 fi
14544 done 14134 done
14135 ;;
14545 esac 14136 esac
14546 14137
14547 exp_sym_flag='-bexport' 14138 exp_sym_flag='-bexport'
@@ -14579,6 +14170,7 @@ EOF
14579 hardcode_libdir_flag_spec_F77='-L$libdir' 14170 hardcode_libdir_flag_spec_F77='-L$libdir'
14580 hardcode_libdir_separator_F77= 14171 hardcode_libdir_separator_F77=
14581 fi 14172 fi
14173 ;;
14582 esac 14174 esac
14583 shared_flag='-shared' 14175 shared_flag='-shared'
14584 if test "$aix_use_runtimelinking" = yes; then 14176 if test "$aix_use_runtimelinking" = yes; then
@@ -14591,11 +14183,11 @@ EOF
14591 # chokes on -Wl,-G. The following line is correct: 14183 # chokes on -Wl,-G. The following line is correct:
14592 shared_flag='-G' 14184 shared_flag='-G'
14593 else 14185 else
14594 if test "$aix_use_runtimelinking" = yes; then 14186 if test "$aix_use_runtimelinking" = yes; then
14595 shared_flag='${wl}-G' 14187 shared_flag='${wl}-G'
14596 else 14188 else
14597 shared_flag='${wl}-bM:SRE' 14189 shared_flag='${wl}-bM:SRE'
14598 fi 14190 fi
14599 fi 14191 fi
14600 fi 14192 fi
14601 14193
@@ -14649,12 +14241,12 @@ rm -f conftest.err conftest.$ac_objext \
14649if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 14241if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14650 14242
14651 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 14243 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14652 archive_expsym_cmds_F77="\$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" 14244 archive_expsym_cmds_F77="\$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"
14653 else 14245 else
14654 if test "$host_cpu" = ia64; then 14246 if test "$host_cpu" = ia64; then
14655 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 14247 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14656 allow_undefined_flag_F77="-z nodefs" 14248 allow_undefined_flag_F77="-z nodefs"
14657 archive_expsym_cmds_F77="\$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" 14249 archive_expsym_cmds_F77="\$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"
14658 else 14250 else
14659 # Determine the default libpath from the value encoded in an empty executable. 14251 # Determine the default libpath from the value encoded in an empty executable.
14660 cat >conftest.$ac_ext <<_ACEOF 14252 cat >conftest.$ac_ext <<_ACEOF
@@ -14703,13 +14295,11 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14703 # -berok will link without error, but may produce a broken library. 14295 # -berok will link without error, but may produce a broken library.
14704 no_undefined_flag_F77=' ${wl}-bernotok' 14296 no_undefined_flag_F77=' ${wl}-bernotok'
14705 allow_undefined_flag_F77=' ${wl}-berok' 14297 allow_undefined_flag_F77=' ${wl}-berok'
14706 # -bexpall does not export symbols beginning with underscore (_)
14707 always_export_symbols_F77=yes
14708 # Exported symbols can be pulled into shared objects from archives 14298 # Exported symbols can be pulled into shared objects from archives
14709 whole_archive_flag_spec_F77=' ' 14299 whole_archive_flag_spec_F77='$convenience'
14710 archive_cmds_need_lc_F77=yes 14300 archive_cmds_need_lc_F77=yes
14711 # This is similar to how AIX traditionally builds its shared libraries. 14301 # This is similar to how AIX traditionally builds its shared libraries.
14712 archive_expsym_cmds_F77="\$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' 14302 archive_expsym_cmds_F77="\$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'
14713 fi 14303 fi
14714 fi 14304 fi
14715 ;; 14305 ;;
@@ -14827,11 +14417,20 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14827 ;; 14417 ;;
14828 14418
14829 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 14419 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14830 freebsd* | kfreebsd*-gnu | dragonfly*) 14420 freebsd* | dragonfly*)
14421 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14422 hardcode_libdir_flag_spec_F77='-R$libdir'
14423 hardcode_direct_F77=yes
14424 hardcode_shlibpath_var_F77=no
14425 ;;
14426
14427 # GNU/kFreeBSD uses gcc -shared to do shared libraries.
14428 kfreebsd*-gnu)
14831 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 14429 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14832 hardcode_libdir_flag_spec_F77='-R$libdir' 14430 hardcode_libdir_flag_spec_F77='-R$libdir'
14833 hardcode_direct_F77=yes 14431 hardcode_direct_F77=yes
14834 hardcode_shlibpath_var_F77=no 14432 hardcode_shlibpath_var_F77=no
14433 link_all_deplibs_F77=no
14835 ;; 14434 ;;
14836 14435
14837 hpux9*) 14436 hpux9*)
@@ -14850,47 +14449,62 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14850 export_dynamic_flag_spec_F77='${wl}-E' 14449 export_dynamic_flag_spec_F77='${wl}-E'
14851 ;; 14450 ;;
14852 14451
14853 hpux10* | hpux11*) 14452 hpux10*)
14453 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14454 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14455 else
14456 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14457 fi
14458 if test "$with_gnu_ld" = no; then
14459 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14460 hardcode_libdir_separator_F77=:
14461
14462 hardcode_direct_F77=yes
14463 export_dynamic_flag_spec_F77='${wl}-E'
14464
14465 # hardcode_minus_L: Not really in the search PATH,
14466 # but as the default location of the library.
14467 hardcode_minus_L_F77=yes
14468 fi
14469 ;;
14470
14471 hpux11*)
14854 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 14472 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14855 case $host_cpu in 14473 case $host_cpu in
14856 hppa*64*|ia64*) 14474 hppa*64*)
14857 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14475 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14858 ;; 14476 ;;
14477 ia64*)
14478 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14479 ;;
14859 *) 14480 *)
14860 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14481 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14861 ;; 14482 ;;
14862 esac 14483 esac
14863 else 14484 else
14864 case $host_cpu in 14485 case $host_cpu in
14865 hppa*64*|ia64*) 14486 hppa*64*)
14866 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 14487 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14488 ;;
14489 ia64*)
14490 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14867 ;; 14491 ;;
14868 *) 14492 *)
14869 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 14493 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14870 ;; 14494 ;;
14871 esac 14495 esac
14872 fi 14496 fi
14873 if test "$with_gnu_ld" = no; then 14497 if test "$with_gnu_ld" = no; then
14498 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14499 hardcode_libdir_separator_F77=:
14500
14874 case $host_cpu in 14501 case $host_cpu in
14875 hppa*64*) 14502 hppa*64*|ia64*)
14876 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14877 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 14503 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14878 hardcode_libdir_separator_F77=:
14879 hardcode_direct_F77=no 14504 hardcode_direct_F77=no
14880 hardcode_shlibpath_var_F77=no 14505 hardcode_shlibpath_var_F77=no
14881 ;; 14506 ;;
14882 ia64*)
14883 hardcode_libdir_flag_spec_F77='-L$libdir'
14884 hardcode_direct_F77=no
14885 hardcode_shlibpath_var_F77=no
14886
14887 # hardcode_minus_L: Not really in the search PATH,
14888 # but as the default location of the library.
14889 hardcode_minus_L_F77=yes
14890 ;;
14891 *) 14507 *)
14892 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14893 hardcode_libdir_separator_F77=:
14894 hardcode_direct_F77=yes 14508 hardcode_direct_F77=yes
14895 export_dynamic_flag_spec_F77='${wl}-E' 14509 export_dynamic_flag_spec_F77='${wl}-E'
14896 14510
@@ -14992,14 +14606,6 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14992 hardcode_libdir_separator_F77=: 14606 hardcode_libdir_separator_F77=:
14993 ;; 14607 ;;
14994 14608
14995 sco3.2v5*)
14996 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14997 hardcode_shlibpath_var_F77=no
14998 export_dynamic_flag_spec_F77='${wl}-Bexport'
14999 runpath_var=LD_RUN_PATH
15000 hardcode_runpath_var=yes
15001 ;;
15002
15003 solaris*) 14609 solaris*)
15004 no_undefined_flag_F77=' -z text' 14610 no_undefined_flag_F77=' -z text'
15005 if test "$GCC" = yes; then 14611 if test "$GCC" = yes; then
@@ -15085,36 +14691,45 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15085 fi 14691 fi
15086 ;; 14692 ;;
15087 14693
15088 sysv4.2uw2*) 14694 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15089 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 14695 no_undefined_flag_F77='${wl}-z,text'
15090 hardcode_direct_F77=yes 14696 archive_cmds_need_lc_F77=no
15091 hardcode_minus_L_F77=no
15092 hardcode_shlibpath_var_F77=no 14697 hardcode_shlibpath_var_F77=no
15093 hardcode_runpath_var=yes 14698 runpath_var='LD_RUN_PATH'
15094 runpath_var=LD_RUN_PATH
15095 ;;
15096 14699
15097 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
15098 no_undefined_flag_F77='${wl}-z ${wl}text'
15099 if test "$GCC" = yes; then 14700 if test "$GCC" = yes; then
15100 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14701 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14702 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15101 else 14703 else
15102 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14704 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14705 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15103 fi 14706 fi
15104 runpath_var='LD_RUN_PATH'
15105 hardcode_shlibpath_var_F77=no
15106 ;; 14707 ;;
15107 14708
15108 sysv5*) 14709 sysv5* | sco3.2v5* | sco5v6*)
15109 no_undefined_flag_F77=' -z text' 14710 # Note: We can NOT use -z defs as we might desire, because we do not
15110 # $CC -shared without GNU ld will not create a library from C++ 14711 # link with -lc, and that would cause any symbols used from libc to
15111 # object files and a static libstdc++, better avoid it by now 14712 # always be unresolved, which means just about no library would
15112 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 14713 # ever link correctly. If we're not using GNU ld we use -z text
15113 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14714 # though, which does catch some bad symbols but isn't as heavy-handed
15114 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 14715 # as -z defs.
15115 hardcode_libdir_flag_spec_F77= 14716 no_undefined_flag_F77='${wl}-z,text'
14717 allow_undefined_flag_F77='${wl}-z,nodefs'
14718 archive_cmds_need_lc_F77=no
15116 hardcode_shlibpath_var_F77=no 14719 hardcode_shlibpath_var_F77=no
14720 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14721 hardcode_libdir_separator_F77=':'
14722 link_all_deplibs_F77=yes
14723 export_dynamic_flag_spec_F77='${wl}-Bexport'
15117 runpath_var='LD_RUN_PATH' 14724 runpath_var='LD_RUN_PATH'
14725
14726 if test "$GCC" = yes; then
14727 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14728 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14729 else
14730 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14731 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14732 fi
15118 ;; 14733 ;;
15119 14734
15120 uts4*) 14735 uts4*)
@@ -15133,11 +14748,6 @@ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15133echo "${ECHO_T}$ld_shlibs_F77" >&6 14748echo "${ECHO_T}$ld_shlibs_F77" >&6
15134test "$ld_shlibs_F77" = no && can_build_shared=no 14749test "$ld_shlibs_F77" = no && can_build_shared=no
15135 14750
15136variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15137if test "$GCC" = yes; then
15138 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15139fi
15140
15141# 14751#
15142# Do we need to explicitly link libc? 14752# Do we need to explicitly link libc?
15143# 14753#
@@ -15170,6 +14780,7 @@ echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&
15170 libobjs=conftest.$ac_objext 14780 libobjs=conftest.$ac_objext
15171 deplibs= 14781 deplibs=
15172 wl=$lt_prog_compiler_wl_F77 14782 wl=$lt_prog_compiler_wl_F77
14783 pic_flag=$lt_prog_compiler_pic_F77
15173 compiler_flags=-v 14784 compiler_flags=-v
15174 linker_flags=-v 14785 linker_flags=-v
15175 verstring= 14786 verstring=
@@ -15451,10 +15062,15 @@ freebsd* | dragonfly*)
15451 shlibpath_overrides_runpath=yes 15062 shlibpath_overrides_runpath=yes
15452 hardcode_into_libs=yes 15063 hardcode_into_libs=yes
15453 ;; 15064 ;;
15454 *) # from 3.2 on 15065 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15066 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15455 shlibpath_overrides_runpath=no 15067 shlibpath_overrides_runpath=no
15456 hardcode_into_libs=yes 15068 hardcode_into_libs=yes
15457 ;; 15069 ;;
15070 freebsd*) # from 4.6 on
15071 shlibpath_overrides_runpath=yes
15072 hardcode_into_libs=yes
15073 ;;
15458 esac 15074 esac
15459 ;; 15075 ;;
15460 15076
@@ -15514,6 +15130,18 @@ hpux9* | hpux10* | hpux11*)
15514 postinstall_cmds='chmod 555 $lib' 15130 postinstall_cmds='chmod 555 $lib'
15515 ;; 15131 ;;
15516 15132
15133interix3*)
15134 version_type=linux
15135 need_lib_prefix=no
15136 need_version=no
15137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15138 soname_spec='${libname}${release}${shared_ext}$major'
15139 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15140 shlibpath_var=LD_LIBRARY_PATH
15141 shlibpath_overrides_runpath=no
15142 hardcode_into_libs=yes
15143 ;;
15144
15517irix5* | irix6* | nonstopux*) 15145irix5* | irix6* | nonstopux*)
15518 case $host_os in 15146 case $host_os in
15519 nonstopux*) version_type=nonstopux ;; 15147 nonstopux*) version_type=nonstopux ;;
@@ -15647,6 +15275,7 @@ nto-qnx*)
15647 15275
15648openbsd*) 15276openbsd*)
15649 version_type=sunos 15277 version_type=sunos
15278 sys_lib_dlsearch_path_spec="/usr/lib"
15650 need_lib_prefix=no 15279 need_lib_prefix=no
15651 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 15280 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15652 case $host_os in 15281 case $host_os in
@@ -15690,13 +15319,6 @@ osf3* | osf4* | osf5*)
15690 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 15319 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15691 ;; 15320 ;;
15692 15321
15693sco3.2v5*)
15694 version_type=osf
15695 soname_spec='${libname}${release}${shared_ext}$major'
15696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15697 shlibpath_var=LD_LIBRARY_PATH
15698 ;;
15699
15700solaris*) 15322solaris*)
15701 version_type=linux 15323 version_type=linux
15702 need_lib_prefix=no 15324 need_lib_prefix=no
@@ -15722,7 +15344,7 @@ sunos4*)
15722 need_version=yes 15344 need_version=yes
15723 ;; 15345 ;;
15724 15346
15725sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 15347sysv4 | sysv4.3*)
15726 version_type=linux 15348 version_type=linux
15727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15728 soname_spec='${libname}${release}${shared_ext}$major' 15350 soname_spec='${libname}${release}${shared_ext}$major'
@@ -15755,6 +15377,29 @@ sysv4*MP*)
15755 fi 15377 fi
15756 ;; 15378 ;;
15757 15379
15380sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15381 version_type=freebsd-elf
15382 need_lib_prefix=no
15383 need_version=no
15384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15385 soname_spec='${libname}${release}${shared_ext}$major'
15386 shlibpath_var=LD_LIBRARY_PATH
15387 hardcode_into_libs=yes
15388 if test "$with_gnu_ld" = yes; then
15389 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15390 shlibpath_overrides_runpath=no
15391 else
15392 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15393 shlibpath_overrides_runpath=yes
15394 case $host_os in
15395 sco3.2v5*)
15396 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15397 ;;
15398 esac
15399 fi
15400 sys_lib_dlsearch_path_spec='/usr/lib'
15401 ;;
15402
15758uts4*) 15403uts4*)
15759 version_type=linux 15404 version_type=linux
15760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
@@ -15770,6 +15415,11 @@ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15770echo "${ECHO_T}$dynamic_linker" >&6 15415echo "${ECHO_T}$dynamic_linker" >&6
15771test "$dynamic_linker" = no && can_build_shared=no 15416test "$dynamic_linker" = no && can_build_shared=no
15772 15417
15418variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15419if test "$GCC" = yes; then
15420 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15421fi
15422
15773echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 15423echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15774echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 15424echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15775hardcode_action_F77= 15425hardcode_action_F77=
@@ -15807,36 +15457,6 @@ elif test "$shlibpath_overrides_runpath" = yes ||
15807 enable_fast_install=needless 15457 enable_fast_install=needless
15808fi 15458fi
15809 15459
15810striplib=
15811old_striplib=
15812echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15813echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15814if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15815 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15816 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15817 echo "$as_me:$LINENO: result: yes" >&5
15818echo "${ECHO_T}yes" >&6
15819else
15820# FIXME - insert some real tests, host_os isn't really good enough
15821 case $host_os in
15822 darwin*)
15823 if test -n "$STRIP" ; then
15824 striplib="$STRIP -x"
15825 echo "$as_me:$LINENO: result: yes" >&5
15826echo "${ECHO_T}yes" >&6
15827 else
15828 echo "$as_me:$LINENO: result: no" >&5
15829echo "${ECHO_T}no" >&6
15830fi
15831 ;;
15832 *)
15833 echo "$as_me:$LINENO: result: no" >&5
15834echo "${ECHO_T}no" >&6
15835 ;;
15836 esac
15837fi
15838
15839
15840 15460
15841# The else clause should only fire when bootstrapping the 15461# The else clause should only fire when bootstrapping the
15842# libtool distribution, otherwise you forgot to ship ltmain.sh 15462# libtool distribution, otherwise you forgot to ship ltmain.sh
@@ -15851,7 +15471,7 @@ if test -f "$ltmain"; then
15851 # Now quote all the things that may contain metacharacters while being 15471 # Now quote all the things that may contain metacharacters while being
15852 # careful not to overquote the AC_SUBSTed values. We take copies of the 15472 # careful not to overquote the AC_SUBSTed values. We take copies of the
15853 # variables and quote the copies for generation of the libtool script. 15473 # variables and quote the copies for generation of the libtool script.
15854 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 15474 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15855 SED SHELL STRIP \ 15475 SED SHELL STRIP \
15856 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 15476 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15857 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 15477 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
@@ -15969,6 +15589,9 @@ AR_FLAGS=$lt_AR_FLAGS
15969# A C compiler. 15589# A C compiler.
15970LTCC=$lt_LTCC 15590LTCC=$lt_LTCC
15971 15591
15592# LTCC compiler flags.
15593LTCFLAGS=$lt_LTCFLAGS
15594
15972# A language-specific compiler. 15595# A language-specific compiler.
15973CC=$lt_compiler_F77 15596CC=$lt_compiler_F77
15974 15597
@@ -16279,6 +15902,9 @@ lt_simple_link_test_code='public class conftest { public static void main(String
16279# If no C compiler was specified, use CC. 15902# If no C compiler was specified, use CC.
16280LTCC=${LTCC-"$CC"} 15903LTCC=${LTCC-"$CC"}
16281 15904
15905# If no C compiler flags were specified, use CFLAGS.
15906LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15907
16282# Allow CC to be a program name with arguments. 15908# Allow CC to be a program name with arguments.
16283compiler=$CC 15909compiler=$CC
16284 15910
@@ -16286,13 +15912,13 @@ compiler=$CC
16286# save warnings/boilerplate of simple test code 15912# save warnings/boilerplate of simple test code
16287ac_outfile=conftest.$ac_objext 15913ac_outfile=conftest.$ac_objext
16288printf "$lt_simple_compile_test_code" >conftest.$ac_ext 15914printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16289eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 15915eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16290_lt_compiler_boilerplate=`cat conftest.err` 15916_lt_compiler_boilerplate=`cat conftest.err`
16291$rm conftest* 15917$rm conftest*
16292 15918
16293ac_outfile=conftest.$ac_objext 15919ac_outfile=conftest.$ac_objext
16294printf "$lt_simple_link_test_code" >conftest.$ac_ext 15920printf "$lt_simple_link_test_code" >conftest.$ac_ext
16295eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 15921eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16296_lt_linker_boilerplate=`cat conftest.err` 15922_lt_linker_boilerplate=`cat conftest.err`
16297$rm conftest* 15923$rm conftest*
16298 15924
@@ -16343,17 +15969,17 @@ else
16343 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15969 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16344 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15970 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16345 -e 's:$: $lt_compiler_flag:'` 15971 -e 's:$: $lt_compiler_flag:'`
16346 (eval echo "\"\$as_me:16346: $lt_compile\"" >&5) 15972 (eval echo "\"\$as_me:15972: $lt_compile\"" >&5)
16347 (eval "$lt_compile" 2>conftest.err) 15973 (eval "$lt_compile" 2>conftest.err)
16348 ac_status=$? 15974 ac_status=$?
16349 cat conftest.err >&5 15975 cat conftest.err >&5
16350 echo "$as_me:16350: \$? = $ac_status" >&5 15976 echo "$as_me:15976: \$? = $ac_status" >&5
16351 if (exit $ac_status) && test -s "$ac_outfile"; then 15977 if (exit $ac_status) && test -s "$ac_outfile"; then
16352 # The compiler can only warn and ignore the option if not recognized 15978 # The compiler can only warn and ignore the option if not recognized
16353 # So say no if there are warnings other than the usual output. 15979 # So say no if there are warnings other than the usual output.
16354 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp 15980 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16355 $SED '/^$/d' conftest.err >conftest.er2 15981 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16356 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then 15982 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16357 lt_cv_prog_compiler_rtti_exceptions=yes 15983 lt_cv_prog_compiler_rtti_exceptions=yes
16358 fi 15984 fi
16359 fi 15985 fi
@@ -16414,6 +16040,11 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16414 lt_prog_compiler_pic_GCJ='-fno-common' 16040 lt_prog_compiler_pic_GCJ='-fno-common'
16415 ;; 16041 ;;
16416 16042
16043 interix3*)
16044 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16045 # Instead, we relocate shared libraries at runtime.
16046 ;;
16047
16417 msdosdjgpp*) 16048 msdosdjgpp*)
16418 # Just because we use GCC doesn't mean we suddenly get shared libraries 16049 # Just because we use GCC doesn't mean we suddenly get shared libraries
16419 # on systems that don't support them. 16050 # on systems that don't support them.
@@ -16528,11 +16159,6 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16528 lt_prog_compiler_static_GCJ='-non_shared' 16159 lt_prog_compiler_static_GCJ='-non_shared'
16529 ;; 16160 ;;
16530 16161
16531 sco3.2v5*)
16532 lt_prog_compiler_pic_GCJ='-Kpic'
16533 lt_prog_compiler_static_GCJ='-dn'
16534 ;;
16535
16536 solaris*) 16162 solaris*)
16537 lt_prog_compiler_pic_GCJ='-KPIC' 16163 lt_prog_compiler_pic_GCJ='-KPIC'
16538 lt_prog_compiler_static_GCJ='-Bstatic' 16164 lt_prog_compiler_static_GCJ='-Bstatic'
@@ -16550,7 +16176,7 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16550 lt_prog_compiler_static_GCJ='-Bstatic' 16176 lt_prog_compiler_static_GCJ='-Bstatic'
16551 ;; 16177 ;;
16552 16178
16553 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 16179 sysv4 | sysv4.2uw2* | sysv4.3*)
16554 lt_prog_compiler_wl_GCJ='-Wl,' 16180 lt_prog_compiler_wl_GCJ='-Wl,'
16555 lt_prog_compiler_pic_GCJ='-KPIC' 16181 lt_prog_compiler_pic_GCJ='-KPIC'
16556 lt_prog_compiler_static_GCJ='-Bstatic' 16182 lt_prog_compiler_static_GCJ='-Bstatic'
@@ -16563,6 +16189,12 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16563 fi 16189 fi
16564 ;; 16190 ;;
16565 16191
16192 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16193 lt_prog_compiler_wl_GCJ='-Wl,'
16194 lt_prog_compiler_pic_GCJ='-KPIC'
16195 lt_prog_compiler_static_GCJ='-Bstatic'
16196 ;;
16197
16566 unicos*) 16198 unicos*)
16567 lt_prog_compiler_wl_GCJ='-Wl,' 16199 lt_prog_compiler_wl_GCJ='-Wl,'
16568 lt_prog_compiler_can_build_shared_GCJ=no 16200 lt_prog_compiler_can_build_shared_GCJ=no
@@ -16605,17 +16237,17 @@ else
16605 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16237 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16606 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16238 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16607 -e 's:$: $lt_compiler_flag:'` 16239 -e 's:$: $lt_compiler_flag:'`
16608 (eval echo "\"\$as_me:16608: $lt_compile\"" >&5) 16240 (eval echo "\"\$as_me:16240: $lt_compile\"" >&5)
16609 (eval "$lt_compile" 2>conftest.err) 16241 (eval "$lt_compile" 2>conftest.err)
16610 ac_status=$? 16242 ac_status=$?
16611 cat conftest.err >&5 16243 cat conftest.err >&5
16612 echo "$as_me:16612: \$? = $ac_status" >&5 16244 echo "$as_me:16244: \$? = $ac_status" >&5
16613 if (exit $ac_status) && test -s "$ac_outfile"; then 16245 if (exit $ac_status) && test -s "$ac_outfile"; then
16614 # The compiler can only warn and ignore the option if not recognized 16246 # The compiler can only warn and ignore the option if not recognized
16615 # So say no if there are warnings other than the usual output. 16247 # So say no if there are warnings other than the usual output.
16616 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp 16248 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16617 $SED '/^$/d' conftest.err >conftest.er2 16249 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16618 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then 16250 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16619 lt_prog_compiler_pic_works_GCJ=yes 16251 lt_prog_compiler_pic_works_GCJ=yes
16620 fi 16252 fi
16621 fi 16253 fi
@@ -16646,6 +16278,48 @@ case $host_os in
16646 ;; 16278 ;;
16647esac 16279esac
16648 16280
16281#
16282# Check to make sure the static flag actually works.
16283#
16284wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16285echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16286echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
16287if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16288 echo $ECHO_N "(cached) $ECHO_C" >&6
16289else
16290 lt_prog_compiler_static_works_GCJ=no
16291 save_LDFLAGS="$LDFLAGS"
16292 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16293 printf "$lt_simple_link_test_code" > conftest.$ac_ext
16294 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16295 # The linker can only warn and ignore the option if not recognized
16296 # So say no if there are warnings
16297 if test -s conftest.err; then
16298 # Append any errors to the config.log.
16299 cat conftest.err 1>&5
16300 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16301 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16302 if diff conftest.exp conftest.er2 >/dev/null; then
16303 lt_prog_compiler_static_works_GCJ=yes
16304 fi
16305 else
16306 lt_prog_compiler_static_works_GCJ=yes
16307 fi
16308 fi
16309 $rm conftest*
16310 LDFLAGS="$save_LDFLAGS"
16311
16312fi
16313echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16314echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
16315
16316if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16317 :
16318else
16319 lt_prog_compiler_static_GCJ=
16320fi
16321
16322
16649echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 16323echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16650echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 16324echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16651if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 16325if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
@@ -16667,18 +16341,18 @@ else
16667 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16341 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16668 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16342 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16669 -e 's:$: $lt_compiler_flag:'` 16343 -e 's:$: $lt_compiler_flag:'`
16670 (eval echo "\"\$as_me:16670: $lt_compile\"" >&5) 16344 (eval echo "\"\$as_me:16344: $lt_compile\"" >&5)
16671 (eval "$lt_compile" 2>out/conftest.err) 16345 (eval "$lt_compile" 2>out/conftest.err)
16672 ac_status=$? 16346 ac_status=$?
16673 cat out/conftest.err >&5 16347 cat out/conftest.err >&5
16674 echo "$as_me:16674: \$? = $ac_status" >&5 16348 echo "$as_me:16348: \$? = $ac_status" >&5
16675 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16349 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16676 then 16350 then
16677 # The compiler can only warn and ignore the option if not recognized 16351 # The compiler can only warn and ignore the option if not recognized
16678 # So say no if there are warnings 16352 # So say no if there are warnings
16679 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp 16353 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16680 $SED '/^$/d' out/conftest.err >out/conftest.er2 16354 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16681 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16355 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16682 lt_cv_prog_compiler_c_o_GCJ=yes 16356 lt_cv_prog_compiler_c_o_GCJ=yes
16683 fi 16357 fi
16684 fi 16358 fi
@@ -16778,6 +16452,10 @@ cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16778 with_gnu_ld=no 16452 with_gnu_ld=no
16779 fi 16453 fi
16780 ;; 16454 ;;
16455 interix*)
16456 # we just hope/assume this is gcc and not c89 (= MSVC++)
16457 with_gnu_ld=yes
16458 ;;
16781 openbsd*) 16459 openbsd*)
16782 with_gnu_ld=no 16460 with_gnu_ld=no
16783 ;; 16461 ;;
@@ -16862,7 +16540,7 @@ EOF
16862 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 16540 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16863 16541
16864 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 16542 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16865 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 16543 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16866 # If the export-symbols file already is a .def file (1st line 16544 # If the export-symbols file already is a .def file (1st line
16867 # is EXPORTS), use it as is; otherwise, prepend... 16545 # is EXPORTS), use it as is; otherwise, prepend...
16868 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 16546 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
@@ -16871,12 +16549,27 @@ EOF
16871 echo EXPORTS > $output_objdir/$soname.def; 16549 echo EXPORTS > $output_objdir/$soname.def;
16872 cat $export_symbols >> $output_objdir/$soname.def; 16550 cat $export_symbols >> $output_objdir/$soname.def;
16873 fi~ 16551 fi~
16874 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 16552 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16875 else 16553 else
16876 ld_shlibs_GCJ=no 16554 ld_shlibs_GCJ=no
16877 fi 16555 fi
16878 ;; 16556 ;;
16879 16557
16558 interix3*)
16559 hardcode_direct_GCJ=no
16560 hardcode_shlibpath_var_GCJ=no
16561 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16562 export_dynamic_flag_spec_GCJ='${wl}-E'
16563 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16564 # Instead, shared libraries are loaded at an image base (0x10000000 by
16565 # default) and relocated if they conflict, which is a slow very memory
16566 # consuming and fragmenting process. To avoid this, we pick a random,
16567 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16568 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16569 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16570 archive_expsym_cmds_GCJ='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'
16571 ;;
16572
16880 linux*) 16573 linux*)
16881 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16574 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16882 tmp_addflag= 16575 tmp_addflag=
@@ -16919,7 +16612,7 @@ EOF
16919 fi 16612 fi
16920 ;; 16613 ;;
16921 16614
16922 solaris* | sysv5*) 16615 solaris*)
16923 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 16616 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16924 ld_shlibs_GCJ=no 16617 ld_shlibs_GCJ=no
16925 cat <<EOF 1>&2 16618 cat <<EOF 1>&2
@@ -16940,6 +16633,33 @@ EOF
16940 fi 16633 fi
16941 ;; 16634 ;;
16942 16635
16636 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16637 case `$LD -v 2>&1` in
16638 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16639 ld_shlibs_GCJ=no
16640 cat <<_LT_EOF 1>&2
16641
16642*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16643*** reliably create shared libraries on SCO systems. Therefore, libtool
16644*** is disabling shared libraries support. We urge you to upgrade GNU
16645*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16646*** your PATH or compiler configuration so that the native linker is
16647*** used, and then restart.
16648
16649_LT_EOF
16650 ;;
16651 *)
16652 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16653 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16654 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16655 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16656 else
16657 ld_shlibs_GCJ=no
16658 fi
16659 ;;
16660 esac
16661 ;;
16662
16943 sunos4*) 16663 sunos4*)
16944 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16664 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16945 wlarc= 16665 wlarc=
@@ -16973,7 +16693,7 @@ EOF
16973 # Note: this linker hardcodes the directories in LIBPATH if there 16693 # Note: this linker hardcodes the directories in LIBPATH if there
16974 # are no directories specified by -L. 16694 # are no directories specified by -L.
16975 hardcode_minus_L_GCJ=yes 16695 hardcode_minus_L_GCJ=yes
16976 if test "$GCC" = yes && test -z "$link_static_flag"; then 16696 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16977 # Neither direct hardcoding nor static linking is supported with a 16697 # Neither direct hardcoding nor static linking is supported with a
16978 # broken collect2. 16698 # broken collect2.
16979 hardcode_direct_GCJ=unsupported 16699 hardcode_direct_GCJ=unsupported
@@ -17007,6 +16727,7 @@ EOF
17007 break 16727 break
17008 fi 16728 fi
17009 done 16729 done
16730 ;;
17010 esac 16731 esac
17011 16732
17012 exp_sym_flag='-bexport' 16733 exp_sym_flag='-bexport'
@@ -17044,6 +16765,7 @@ EOF
17044 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16765 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17045 hardcode_libdir_separator_GCJ= 16766 hardcode_libdir_separator_GCJ=
17046 fi 16767 fi
16768 ;;
17047 esac 16769 esac
17048 shared_flag='-shared' 16770 shared_flag='-shared'
17049 if test "$aix_use_runtimelinking" = yes; then 16771 if test "$aix_use_runtimelinking" = yes; then
@@ -17056,11 +16778,11 @@ EOF
17056 # chokes on -Wl,-G. The following line is correct: 16778 # chokes on -Wl,-G. The following line is correct:
17057 shared_flag='-G' 16779 shared_flag='-G'
17058 else 16780 else
17059 if test "$aix_use_runtimelinking" = yes; then 16781 if test "$aix_use_runtimelinking" = yes; then
17060 shared_flag='${wl}-G' 16782 shared_flag='${wl}-G'
17061 else 16783 else
17062 shared_flag='${wl}-bM:SRE' 16784 shared_flag='${wl}-bM:SRE'
17063 fi 16785 fi
17064 fi 16786 fi
17065 fi 16787 fi
17066 16788
@@ -17124,12 +16846,12 @@ rm -f conftest.err conftest.$ac_objext \
17124if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 16846if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17125 16847
17126 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 16848 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17127 archive_expsym_cmds_GCJ="\$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" 16849 archive_expsym_cmds_GCJ="\$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"
17128 else 16850 else
17129 if test "$host_cpu" = ia64; then 16851 if test "$host_cpu" = ia64; then
17130 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 16852 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17131 allow_undefined_flag_GCJ="-z nodefs" 16853 allow_undefined_flag_GCJ="-z nodefs"
17132 archive_expsym_cmds_GCJ="\$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" 16854 archive_expsym_cmds_GCJ="\$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"
17133 else 16855 else
17134 # Determine the default libpath from the value encoded in an empty executable. 16856 # Determine the default libpath from the value encoded in an empty executable.
17135 cat >conftest.$ac_ext <<_ACEOF 16857 cat >conftest.$ac_ext <<_ACEOF
@@ -17188,13 +16910,11 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17188 # -berok will link without error, but may produce a broken library. 16910 # -berok will link without error, but may produce a broken library.
17189 no_undefined_flag_GCJ=' ${wl}-bernotok' 16911 no_undefined_flag_GCJ=' ${wl}-bernotok'
17190 allow_undefined_flag_GCJ=' ${wl}-berok' 16912 allow_undefined_flag_GCJ=' ${wl}-berok'
17191 # -bexpall does not export symbols beginning with underscore (_)
17192 always_export_symbols_GCJ=yes
17193 # Exported symbols can be pulled into shared objects from archives 16913 # Exported symbols can be pulled into shared objects from archives
17194 whole_archive_flag_spec_GCJ=' ' 16914 whole_archive_flag_spec_GCJ='$convenience'
17195 archive_cmds_need_lc_GCJ=yes 16915 archive_cmds_need_lc_GCJ=yes
17196 # This is similar to how AIX traditionally builds its shared libraries. 16916 # This is similar to how AIX traditionally builds its shared libraries.
17197 archive_expsym_cmds_GCJ="\$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' 16917 archive_expsym_cmds_GCJ="\$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'
17198 fi 16918 fi
17199 fi 16919 fi
17200 ;; 16920 ;;
@@ -17312,13 +17032,22 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17312 ;; 17032 ;;
17313 17033
17314 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 17034 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17315 freebsd* | kfreebsd*-gnu | dragonfly*) 17035 freebsd* | dragonfly*)
17316 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 17036 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17317 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17037 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17318 hardcode_direct_GCJ=yes 17038 hardcode_direct_GCJ=yes
17319 hardcode_shlibpath_var_GCJ=no 17039 hardcode_shlibpath_var_GCJ=no
17320 ;; 17040 ;;
17321 17041
17042 # GNU/kFreeBSD uses gcc -shared to do shared libraries.
17043 kfreebsd*-gnu)
17044 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17045 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17046 hardcode_direct_GCJ=yes
17047 hardcode_shlibpath_var_GCJ=no
17048 link_all_deplibs_GCJ=no
17049 ;;
17050
17322 hpux9*) 17051 hpux9*)
17323 if test "$GCC" = yes; then 17052 if test "$GCC" = yes; then
17324 archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 17053 archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
@@ -17335,47 +17064,62 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17335 export_dynamic_flag_spec_GCJ='${wl}-E' 17064 export_dynamic_flag_spec_GCJ='${wl}-E'
17336 ;; 17065 ;;
17337 17066
17338 hpux10* | hpux11*) 17067 hpux10*)
17068 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17069 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17070 else
17071 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17072 fi
17073 if test "$with_gnu_ld" = no; then
17074 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17075 hardcode_libdir_separator_GCJ=:
17076
17077 hardcode_direct_GCJ=yes
17078 export_dynamic_flag_spec_GCJ='${wl}-E'
17079
17080 # hardcode_minus_L: Not really in the search PATH,
17081 # but as the default location of the library.
17082 hardcode_minus_L_GCJ=yes
17083 fi
17084 ;;
17085
17086 hpux11*)
17339 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 17087 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17340 case $host_cpu in 17088 case $host_cpu in
17341 hppa*64*|ia64*) 17089 hppa*64*)
17342 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17090 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17343 ;; 17091 ;;
17092 ia64*)
17093 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17094 ;;
17344 *) 17095 *)
17345 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17096 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17346 ;; 17097 ;;
17347 esac 17098 esac
17348 else 17099 else
17349 case $host_cpu in 17100 case $host_cpu in
17350 hppa*64*|ia64*) 17101 hppa*64*)
17351 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 17102 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17103 ;;
17104 ia64*)
17105 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17352 ;; 17106 ;;
17353 *) 17107 *)
17354 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 17108 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17355 ;; 17109 ;;
17356 esac 17110 esac
17357 fi 17111 fi
17358 if test "$with_gnu_ld" = no; then 17112 if test "$with_gnu_ld" = no; then
17113 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17114 hardcode_libdir_separator_GCJ=:
17115
17359 case $host_cpu in 17116 case $host_cpu in
17360 hppa*64*) 17117 hppa*64*|ia64*)
17361 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17362 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 17118 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17363 hardcode_libdir_separator_GCJ=:
17364 hardcode_direct_GCJ=no 17119 hardcode_direct_GCJ=no
17365 hardcode_shlibpath_var_GCJ=no 17120 hardcode_shlibpath_var_GCJ=no
17366 ;; 17121 ;;
17367 ia64*)
17368 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17369 hardcode_direct_GCJ=no
17370 hardcode_shlibpath_var_GCJ=no
17371
17372 # hardcode_minus_L: Not really in the search PATH,
17373 # but as the default location of the library.
17374 hardcode_minus_L_GCJ=yes
17375 ;;
17376 *) 17122 *)
17377 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17378 hardcode_libdir_separator_GCJ=:
17379 hardcode_direct_GCJ=yes 17123 hardcode_direct_GCJ=yes
17380 export_dynamic_flag_spec_GCJ='${wl}-E' 17124 export_dynamic_flag_spec_GCJ='${wl}-E'
17381 17125
@@ -17477,14 +17221,6 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17477 hardcode_libdir_separator_GCJ=: 17221 hardcode_libdir_separator_GCJ=:
17478 ;; 17222 ;;
17479 17223
17480 sco3.2v5*)
17481 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17482 hardcode_shlibpath_var_GCJ=no
17483 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17484 runpath_var=LD_RUN_PATH
17485 hardcode_runpath_var=yes
17486 ;;
17487
17488 solaris*) 17224 solaris*)
17489 no_undefined_flag_GCJ=' -z text' 17225 no_undefined_flag_GCJ=' -z text'
17490 if test "$GCC" = yes; then 17226 if test "$GCC" = yes; then
@@ -17570,36 +17306,45 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17570 fi 17306 fi
17571 ;; 17307 ;;
17572 17308
17573 sysv4.2uw2*) 17309 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17574 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 17310 no_undefined_flag_GCJ='${wl}-z,text'
17575 hardcode_direct_GCJ=yes 17311 archive_cmds_need_lc_GCJ=no
17576 hardcode_minus_L_GCJ=no
17577 hardcode_shlibpath_var_GCJ=no 17312 hardcode_shlibpath_var_GCJ=no
17578 hardcode_runpath_var=yes 17313 runpath_var='LD_RUN_PATH'
17579 runpath_var=LD_RUN_PATH
17580 ;;
17581 17314
17582 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
17583 no_undefined_flag_GCJ='${wl}-z ${wl}text'
17584 if test "$GCC" = yes; then 17315 if test "$GCC" = yes; then
17585 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17316 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17317 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17586 else 17318 else
17587 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17319 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17320 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17588 fi 17321 fi
17589 runpath_var='LD_RUN_PATH'
17590 hardcode_shlibpath_var_GCJ=no
17591 ;; 17322 ;;
17592 17323
17593 sysv5*) 17324 sysv5* | sco3.2v5* | sco5v6*)
17594 no_undefined_flag_GCJ=' -z text' 17325 # Note: We can NOT use -z defs as we might desire, because we do not
17595 # $CC -shared without GNU ld will not create a library from C++ 17326 # link with -lc, and that would cause any symbols used from libc to
17596 # object files and a static libstdc++, better avoid it by now 17327 # always be unresolved, which means just about no library would
17597 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 17328 # ever link correctly. If we're not using GNU ld we use -z text
17598 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 17329 # though, which does catch some bad symbols but isn't as heavy-handed
17599 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 17330 # as -z defs.
17600 hardcode_libdir_flag_spec_GCJ= 17331 no_undefined_flag_GCJ='${wl}-z,text'
17332 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17333 archive_cmds_need_lc_GCJ=no
17601 hardcode_shlibpath_var_GCJ=no 17334 hardcode_shlibpath_var_GCJ=no
17335 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17336 hardcode_libdir_separator_GCJ=':'
17337 link_all_deplibs_GCJ=yes
17338 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17602 runpath_var='LD_RUN_PATH' 17339 runpath_var='LD_RUN_PATH'
17340
17341 if test "$GCC" = yes; then
17342 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17343 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17344 else
17345 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17346 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17347 fi
17603 ;; 17348 ;;
17604 17349
17605 uts4*) 17350 uts4*)
@@ -17618,11 +17363,6 @@ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17618echo "${ECHO_T}$ld_shlibs_GCJ" >&6 17363echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17619test "$ld_shlibs_GCJ" = no && can_build_shared=no 17364test "$ld_shlibs_GCJ" = no && can_build_shared=no
17620 17365
17621variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17622if test "$GCC" = yes; then
17623 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17624fi
17625
17626# 17366#
17627# Do we need to explicitly link libc? 17367# Do we need to explicitly link libc?
17628# 17368#
@@ -17655,6 +17395,7 @@ echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&
17655 libobjs=conftest.$ac_objext 17395 libobjs=conftest.$ac_objext
17656 deplibs= 17396 deplibs=
17657 wl=$lt_prog_compiler_wl_GCJ 17397 wl=$lt_prog_compiler_wl_GCJ
17398 pic_flag=$lt_prog_compiler_pic_GCJ
17658 compiler_flags=-v 17399 compiler_flags=-v
17659 linker_flags=-v 17400 linker_flags=-v
17660 verstring= 17401 verstring=
@@ -17936,10 +17677,15 @@ freebsd* | dragonfly*)
17936 shlibpath_overrides_runpath=yes 17677 shlibpath_overrides_runpath=yes
17937 hardcode_into_libs=yes 17678 hardcode_into_libs=yes
17938 ;; 17679 ;;
17939 *) # from 3.2 on 17680 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17681 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17940 shlibpath_overrides_runpath=no 17682 shlibpath_overrides_runpath=no
17941 hardcode_into_libs=yes 17683 hardcode_into_libs=yes
17942 ;; 17684 ;;
17685 freebsd*) # from 4.6 on
17686 shlibpath_overrides_runpath=yes
17687 hardcode_into_libs=yes
17688 ;;
17943 esac 17689 esac
17944 ;; 17690 ;;
17945 17691
@@ -17999,6 +17745,18 @@ hpux9* | hpux10* | hpux11*)
17999 postinstall_cmds='chmod 555 $lib' 17745 postinstall_cmds='chmod 555 $lib'
18000 ;; 17746 ;;
18001 17747
17748interix3*)
17749 version_type=linux
17750 need_lib_prefix=no
17751 need_version=no
17752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17753 soname_spec='${libname}${release}${shared_ext}$major'
17754 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17755 shlibpath_var=LD_LIBRARY_PATH
17756 shlibpath_overrides_runpath=no
17757 hardcode_into_libs=yes
17758 ;;
17759
18002irix5* | irix6* | nonstopux*) 17760irix5* | irix6* | nonstopux*)
18003 case $host_os in 17761 case $host_os in
18004 nonstopux*) version_type=nonstopux ;; 17762 nonstopux*) version_type=nonstopux ;;
@@ -18132,6 +17890,7 @@ nto-qnx*)
18132 17890
18133openbsd*) 17891openbsd*)
18134 version_type=sunos 17892 version_type=sunos
17893 sys_lib_dlsearch_path_spec="/usr/lib"
18135 need_lib_prefix=no 17894 need_lib_prefix=no
18136 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 17895 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18137 case $host_os in 17896 case $host_os in
@@ -18175,13 +17934,6 @@ osf3* | osf4* | osf5*)
18175 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 17934 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18176 ;; 17935 ;;
18177 17936
18178sco3.2v5*)
18179 version_type=osf
18180 soname_spec='${libname}${release}${shared_ext}$major'
18181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18182 shlibpath_var=LD_LIBRARY_PATH
18183 ;;
18184
18185solaris*) 17937solaris*)
18186 version_type=linux 17938 version_type=linux
18187 need_lib_prefix=no 17939 need_lib_prefix=no
@@ -18207,7 +17959,7 @@ sunos4*)
18207 need_version=yes 17959 need_version=yes
18208 ;; 17960 ;;
18209 17961
18210sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 17962sysv4 | sysv4.3*)
18211 version_type=linux 17963 version_type=linux
18212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18213 soname_spec='${libname}${release}${shared_ext}$major' 17965 soname_spec='${libname}${release}${shared_ext}$major'
@@ -18240,6 +17992,29 @@ sysv4*MP*)
18240 fi 17992 fi
18241 ;; 17993 ;;
18242 17994
17995sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17996 version_type=freebsd-elf
17997 need_lib_prefix=no
17998 need_version=no
17999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18000 soname_spec='${libname}${release}${shared_ext}$major'
18001 shlibpath_var=LD_LIBRARY_PATH
18002 hardcode_into_libs=yes
18003 if test "$with_gnu_ld" = yes; then
18004 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18005 shlibpath_overrides_runpath=no
18006 else
18007 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18008 shlibpath_overrides_runpath=yes
18009 case $host_os in
18010 sco3.2v5*)
18011 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18012 ;;
18013 esac
18014 fi
18015 sys_lib_dlsearch_path_spec='/usr/lib'
18016 ;;
18017
18243uts4*) 18018uts4*)
18244 version_type=linux 18019 version_type=linux
18245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
@@ -18255,6 +18030,11 @@ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18255echo "${ECHO_T}$dynamic_linker" >&6 18030echo "${ECHO_T}$dynamic_linker" >&6
18256test "$dynamic_linker" = no && can_build_shared=no 18031test "$dynamic_linker" = no && can_build_shared=no
18257 18032
18033variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18034if test "$GCC" = yes; then
18035 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18036fi
18037
18258echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 18038echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18259echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 18039echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18260hardcode_action_GCJ= 18040hardcode_action_GCJ=
@@ -18292,834 +18072,6 @@ elif test "$shlibpath_overrides_runpath" = yes ||
18292 enable_fast_install=needless 18072 enable_fast_install=needless
18293fi 18073fi
18294 18074
18295striplib=
18296old_striplib=
18297echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
18298echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
18299if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
18300 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18301 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18302 echo "$as_me:$LINENO: result: yes" >&5
18303echo "${ECHO_T}yes" >&6
18304else
18305# FIXME - insert some real tests, host_os isn't really good enough
18306 case $host_os in
18307 darwin*)
18308 if test -n "$STRIP" ; then
18309 striplib="$STRIP -x"
18310 echo "$as_me:$LINENO: result: yes" >&5
18311echo "${ECHO_T}yes" >&6
18312 else
18313 echo "$as_me:$LINENO: result: no" >&5
18314echo "${ECHO_T}no" >&6
18315fi
18316 ;;
18317 *)
18318 echo "$as_me:$LINENO: result: no" >&5
18319echo "${ECHO_T}no" >&6
18320 ;;
18321 esac
18322fi
18323
18324if test "x$enable_dlopen" != xyes; then
18325 enable_dlopen=unknown
18326 enable_dlopen_self=unknown
18327 enable_dlopen_self_static=unknown
18328else
18329 lt_cv_dlopen=no
18330 lt_cv_dlopen_libs=
18331
18332 case $host_os in
18333 beos*)
18334 lt_cv_dlopen="load_add_on"
18335 lt_cv_dlopen_libs=
18336 lt_cv_dlopen_self=yes
18337 ;;
18338
18339 mingw* | pw32*)
18340 lt_cv_dlopen="LoadLibrary"
18341 lt_cv_dlopen_libs=
18342 ;;
18343
18344 cygwin*)
18345 lt_cv_dlopen="dlopen"
18346 lt_cv_dlopen_libs=
18347 ;;
18348
18349 darwin*)
18350 # if libdl is installed we need to link against it
18351 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18352echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18353if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18354 echo $ECHO_N "(cached) $ECHO_C" >&6
18355else
18356 ac_check_lib_save_LIBS=$LIBS
18357LIBS="-ldl $LIBS"
18358cat >conftest.$ac_ext <<_ACEOF
18359/* confdefs.h. */
18360_ACEOF
18361cat confdefs.h >>conftest.$ac_ext
18362cat >>conftest.$ac_ext <<_ACEOF
18363/* end confdefs.h. */
18364
18365/* Override any gcc2 internal prototype to avoid an error. */
18366#ifdef __cplusplus
18367extern "C"
18368#endif
18369/* We use char because int might match the return type of a gcc2
18370 builtin and then its argument prototype would still apply. */
18371char dlopen ();
18372int
18373main ()
18374{
18375dlopen ();
18376 ;
18377 return 0;
18378}
18379_ACEOF
18380rm -f conftest.$ac_objext conftest$ac_exeext
18381if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18382 (eval $ac_link) 2>conftest.er1
18383 ac_status=$?
18384 grep -v '^ *+' conftest.er1 >conftest.err
18385 rm -f conftest.er1
18386 cat conftest.err >&5
18387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18388 (exit $ac_status); } &&
18389 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18391 (eval $ac_try) 2>&5
18392 ac_status=$?
18393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18394 (exit $ac_status); }; } &&
18395 { ac_try='test -s conftest$ac_exeext'
18396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18397 (eval $ac_try) 2>&5
18398 ac_status=$?
18399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18400 (exit $ac_status); }; }; then
18401 ac_cv_lib_dl_dlopen=yes
18402else
18403 echo "$as_me: failed program was:" >&5
18404sed 's/^/| /' conftest.$ac_ext >&5
18405
18406ac_cv_lib_dl_dlopen=no
18407fi
18408rm -f conftest.err conftest.$ac_objext \
18409 conftest$ac_exeext conftest.$ac_ext
18410LIBS=$ac_check_lib_save_LIBS
18411fi
18412echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18413echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18414if test $ac_cv_lib_dl_dlopen = yes; then
18415 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18416else
18417
18418 lt_cv_dlopen="dyld"
18419 lt_cv_dlopen_libs=
18420 lt_cv_dlopen_self=yes
18421
18422fi
18423
18424 ;;
18425
18426 *)
18427 echo "$as_me:$LINENO: checking for shl_load" >&5
18428echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
18429if test "${ac_cv_func_shl_load+set}" = set; then
18430 echo $ECHO_N "(cached) $ECHO_C" >&6
18431else
18432 cat >conftest.$ac_ext <<_ACEOF
18433/* confdefs.h. */
18434_ACEOF
18435cat confdefs.h >>conftest.$ac_ext
18436cat >>conftest.$ac_ext <<_ACEOF
18437/* end confdefs.h. */
18438/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
18439 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18440#define shl_load innocuous_shl_load
18441
18442/* System header to define __stub macros and hopefully few prototypes,
18443 which can conflict with char shl_load (); below.
18444 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18445 <limits.h> exists even on freestanding compilers. */
18446
18447#ifdef __STDC__
18448# include <limits.h>
18449#else
18450# include <assert.h>
18451#endif
18452
18453#undef shl_load
18454
18455/* Override any gcc2 internal prototype to avoid an error. */
18456#ifdef __cplusplus
18457extern "C"
18458{
18459#endif
18460/* We use char because int might match the return type of a gcc2
18461 builtin and then its argument prototype would still apply. */
18462char shl_load ();
18463/* The GNU C library defines this for functions which it implements
18464 to always fail with ENOSYS. Some functions are actually named
18465 something starting with __ and the normal name is an alias. */
18466#if defined (__stub_shl_load) || defined (__stub___shl_load)
18467choke me
18468#else
18469char (*f) () = shl_load;
18470#endif
18471#ifdef __cplusplus
18472}
18473#endif
18474
18475int
18476main ()
18477{
18478return f != shl_load;
18479 ;
18480 return 0;
18481}
18482_ACEOF
18483rm -f conftest.$ac_objext conftest$ac_exeext
18484if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18485 (eval $ac_link) 2>conftest.er1
18486 ac_status=$?
18487 grep -v '^ *+' conftest.er1 >conftest.err
18488 rm -f conftest.er1
18489 cat conftest.err >&5
18490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18491 (exit $ac_status); } &&
18492 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18494 (eval $ac_try) 2>&5
18495 ac_status=$?
18496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18497 (exit $ac_status); }; } &&
18498 { ac_try='test -s conftest$ac_exeext'
18499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18500 (eval $ac_try) 2>&5
18501 ac_status=$?
18502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18503 (exit $ac_status); }; }; then
18504 ac_cv_func_shl_load=yes
18505else
18506 echo "$as_me: failed program was:" >&5
18507sed 's/^/| /' conftest.$ac_ext >&5
18508
18509ac_cv_func_shl_load=no
18510fi
18511rm -f conftest.err conftest.$ac_objext \
18512 conftest$ac_exeext conftest.$ac_ext
18513fi
18514echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18515echo "${ECHO_T}$ac_cv_func_shl_load" >&6
18516if test $ac_cv_func_shl_load = yes; then
18517 lt_cv_dlopen="shl_load"
18518else
18519 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18520echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
18521if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18522 echo $ECHO_N "(cached) $ECHO_C" >&6
18523else
18524 ac_check_lib_save_LIBS=$LIBS
18525LIBS="-ldld $LIBS"
18526cat >conftest.$ac_ext <<_ACEOF
18527/* confdefs.h. */
18528_ACEOF
18529cat confdefs.h >>conftest.$ac_ext
18530cat >>conftest.$ac_ext <<_ACEOF
18531/* end confdefs.h. */
18532
18533/* Override any gcc2 internal prototype to avoid an error. */
18534#ifdef __cplusplus
18535extern "C"
18536#endif
18537/* We use char because int might match the return type of a gcc2
18538 builtin and then its argument prototype would still apply. */
18539char shl_load ();
18540int
18541main ()
18542{
18543shl_load ();
18544 ;
18545 return 0;
18546}
18547_ACEOF
18548rm -f conftest.$ac_objext conftest$ac_exeext
18549if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18550 (eval $ac_link) 2>conftest.er1
18551 ac_status=$?
18552 grep -v '^ *+' conftest.er1 >conftest.err
18553 rm -f conftest.er1
18554 cat conftest.err >&5
18555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18556 (exit $ac_status); } &&
18557 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18559 (eval $ac_try) 2>&5
18560 ac_status=$?
18561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18562 (exit $ac_status); }; } &&
18563 { ac_try='test -s conftest$ac_exeext'
18564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18565 (eval $ac_try) 2>&5
18566 ac_status=$?
18567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18568 (exit $ac_status); }; }; then
18569 ac_cv_lib_dld_shl_load=yes
18570else
18571 echo "$as_me: failed program was:" >&5
18572sed 's/^/| /' conftest.$ac_ext >&5
18573
18574ac_cv_lib_dld_shl_load=no
18575fi
18576rm -f conftest.err conftest.$ac_objext \
18577 conftest$ac_exeext conftest.$ac_ext
18578LIBS=$ac_check_lib_save_LIBS
18579fi
18580echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18581echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
18582if test $ac_cv_lib_dld_shl_load = yes; then
18583 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18584else
18585 echo "$as_me:$LINENO: checking for dlopen" >&5
18586echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
18587if test "${ac_cv_func_dlopen+set}" = set; then
18588 echo $ECHO_N "(cached) $ECHO_C" >&6
18589else
18590 cat >conftest.$ac_ext <<_ACEOF
18591/* confdefs.h. */
18592_ACEOF
18593cat confdefs.h >>conftest.$ac_ext
18594cat >>conftest.$ac_ext <<_ACEOF
18595/* end confdefs.h. */
18596/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18597 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18598#define dlopen innocuous_dlopen
18599
18600/* System header to define __stub macros and hopefully few prototypes,
18601 which can conflict with char dlopen (); below.
18602 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18603 <limits.h> exists even on freestanding compilers. */
18604
18605#ifdef __STDC__
18606# include <limits.h>
18607#else
18608# include <assert.h>
18609#endif
18610
18611#undef dlopen
18612
18613/* Override any gcc2 internal prototype to avoid an error. */
18614#ifdef __cplusplus
18615extern "C"
18616{
18617#endif
18618/* We use char because int might match the return type of a gcc2
18619 builtin and then its argument prototype would still apply. */
18620char dlopen ();
18621/* The GNU C library defines this for functions which it implements
18622 to always fail with ENOSYS. Some functions are actually named
18623 something starting with __ and the normal name is an alias. */
18624#if defined (__stub_dlopen) || defined (__stub___dlopen)
18625choke me
18626#else
18627char (*f) () = dlopen;
18628#endif
18629#ifdef __cplusplus
18630}
18631#endif
18632
18633int
18634main ()
18635{
18636return f != dlopen;
18637 ;
18638 return 0;
18639}
18640_ACEOF
18641rm -f conftest.$ac_objext conftest$ac_exeext
18642if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18643 (eval $ac_link) 2>conftest.er1
18644 ac_status=$?
18645 grep -v '^ *+' conftest.er1 >conftest.err
18646 rm -f conftest.er1
18647 cat conftest.err >&5
18648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18649 (exit $ac_status); } &&
18650 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18652 (eval $ac_try) 2>&5
18653 ac_status=$?
18654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18655 (exit $ac_status); }; } &&
18656 { ac_try='test -s conftest$ac_exeext'
18657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18658 (eval $ac_try) 2>&5
18659 ac_status=$?
18660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18661 (exit $ac_status); }; }; then
18662 ac_cv_func_dlopen=yes
18663else
18664 echo "$as_me: failed program was:" >&5
18665sed 's/^/| /' conftest.$ac_ext >&5
18666
18667ac_cv_func_dlopen=no
18668fi
18669rm -f conftest.err conftest.$ac_objext \
18670 conftest$ac_exeext conftest.$ac_ext
18671fi
18672echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18673echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18674if test $ac_cv_func_dlopen = yes; then
18675 lt_cv_dlopen="dlopen"
18676else
18677 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18678echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18679if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18680 echo $ECHO_N "(cached) $ECHO_C" >&6
18681else
18682 ac_check_lib_save_LIBS=$LIBS
18683LIBS="-ldl $LIBS"
18684cat >conftest.$ac_ext <<_ACEOF
18685/* confdefs.h. */
18686_ACEOF
18687cat confdefs.h >>conftest.$ac_ext
18688cat >>conftest.$ac_ext <<_ACEOF
18689/* end confdefs.h. */
18690
18691/* Override any gcc2 internal prototype to avoid an error. */
18692#ifdef __cplusplus
18693extern "C"
18694#endif
18695/* We use char because int might match the return type of a gcc2
18696 builtin and then its argument prototype would still apply. */
18697char dlopen ();
18698int
18699main ()
18700{
18701dlopen ();
18702 ;
18703 return 0;
18704}
18705_ACEOF
18706rm -f conftest.$ac_objext conftest$ac_exeext
18707if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18708 (eval $ac_link) 2>conftest.er1
18709 ac_status=$?
18710 grep -v '^ *+' conftest.er1 >conftest.err
18711 rm -f conftest.er1
18712 cat conftest.err >&5
18713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18714 (exit $ac_status); } &&
18715 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18717 (eval $ac_try) 2>&5
18718 ac_status=$?
18719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18720 (exit $ac_status); }; } &&
18721 { ac_try='test -s conftest$ac_exeext'
18722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18723 (eval $ac_try) 2>&5
18724 ac_status=$?
18725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18726 (exit $ac_status); }; }; then
18727 ac_cv_lib_dl_dlopen=yes
18728else
18729 echo "$as_me: failed program was:" >&5
18730sed 's/^/| /' conftest.$ac_ext >&5
18731
18732ac_cv_lib_dl_dlopen=no
18733fi
18734rm -f conftest.err conftest.$ac_objext \
18735 conftest$ac_exeext conftest.$ac_ext
18736LIBS=$ac_check_lib_save_LIBS
18737fi
18738echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18739echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18740if test $ac_cv_lib_dl_dlopen = yes; then
18741 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18742else
18743 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18744echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18745if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18746 echo $ECHO_N "(cached) $ECHO_C" >&6
18747else
18748 ac_check_lib_save_LIBS=$LIBS
18749LIBS="-lsvld $LIBS"
18750cat >conftest.$ac_ext <<_ACEOF
18751/* confdefs.h. */
18752_ACEOF
18753cat confdefs.h >>conftest.$ac_ext
18754cat >>conftest.$ac_ext <<_ACEOF
18755/* end confdefs.h. */
18756
18757/* Override any gcc2 internal prototype to avoid an error. */
18758#ifdef __cplusplus
18759extern "C"
18760#endif
18761/* We use char because int might match the return type of a gcc2
18762 builtin and then its argument prototype would still apply. */
18763char dlopen ();
18764int
18765main ()
18766{
18767dlopen ();
18768 ;
18769 return 0;
18770}
18771_ACEOF
18772rm -f conftest.$ac_objext conftest$ac_exeext
18773if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18774 (eval $ac_link) 2>conftest.er1
18775 ac_status=$?
18776 grep -v '^ *+' conftest.er1 >conftest.err
18777 rm -f conftest.er1
18778 cat conftest.err >&5
18779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18780 (exit $ac_status); } &&
18781 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18783 (eval $ac_try) 2>&5
18784 ac_status=$?
18785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18786 (exit $ac_status); }; } &&
18787 { ac_try='test -s conftest$ac_exeext'
18788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18789 (eval $ac_try) 2>&5
18790 ac_status=$?
18791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18792 (exit $ac_status); }; }; then
18793 ac_cv_lib_svld_dlopen=yes
18794else
18795 echo "$as_me: failed program was:" >&5
18796sed 's/^/| /' conftest.$ac_ext >&5
18797
18798ac_cv_lib_svld_dlopen=no
18799fi
18800rm -f conftest.err conftest.$ac_objext \
18801 conftest$ac_exeext conftest.$ac_ext
18802LIBS=$ac_check_lib_save_LIBS
18803fi
18804echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18805echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18806if test $ac_cv_lib_svld_dlopen = yes; then
18807 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18808else
18809 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18810echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18811if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18812 echo $ECHO_N "(cached) $ECHO_C" >&6
18813else
18814 ac_check_lib_save_LIBS=$LIBS
18815LIBS="-ldld $LIBS"
18816cat >conftest.$ac_ext <<_ACEOF
18817/* confdefs.h. */
18818_ACEOF
18819cat confdefs.h >>conftest.$ac_ext
18820cat >>conftest.$ac_ext <<_ACEOF
18821/* end confdefs.h. */
18822
18823/* Override any gcc2 internal prototype to avoid an error. */
18824#ifdef __cplusplus
18825extern "C"
18826#endif
18827/* We use char because int might match the return type of a gcc2
18828 builtin and then its argument prototype would still apply. */
18829char dld_link ();
18830int
18831main ()
18832{
18833dld_link ();
18834 ;
18835 return 0;
18836}
18837_ACEOF
18838rm -f conftest.$ac_objext conftest$ac_exeext
18839if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18840 (eval $ac_link) 2>conftest.er1
18841 ac_status=$?
18842 grep -v '^ *+' conftest.er1 >conftest.err
18843 rm -f conftest.er1
18844 cat conftest.err >&5
18845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18846 (exit $ac_status); } &&
18847 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18849 (eval $ac_try) 2>&5
18850 ac_status=$?
18851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18852 (exit $ac_status); }; } &&
18853 { ac_try='test -s conftest$ac_exeext'
18854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18855 (eval $ac_try) 2>&5
18856 ac_status=$?
18857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18858 (exit $ac_status); }; }; then
18859 ac_cv_lib_dld_dld_link=yes
18860else
18861 echo "$as_me: failed program was:" >&5
18862sed 's/^/| /' conftest.$ac_ext >&5
18863
18864ac_cv_lib_dld_dld_link=no
18865fi
18866rm -f conftest.err conftest.$ac_objext \
18867 conftest$ac_exeext conftest.$ac_ext
18868LIBS=$ac_check_lib_save_LIBS
18869fi
18870echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18871echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18872if test $ac_cv_lib_dld_dld_link = yes; then
18873 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18874fi
18875
18876
18877fi
18878
18879
18880fi
18881
18882
18883fi
18884
18885
18886fi
18887
18888
18889fi
18890
18891 ;;
18892 esac
18893
18894 if test "x$lt_cv_dlopen" != xno; then
18895 enable_dlopen=yes
18896 else
18897 enable_dlopen=no
18898 fi
18899
18900 case $lt_cv_dlopen in
18901 dlopen)
18902 save_CPPFLAGS="$CPPFLAGS"
18903 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18904
18905 save_LDFLAGS="$LDFLAGS"
18906 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18907
18908 save_LIBS="$LIBS"
18909 LIBS="$lt_cv_dlopen_libs $LIBS"
18910
18911 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18912echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18913if test "${lt_cv_dlopen_self+set}" = set; then
18914 echo $ECHO_N "(cached) $ECHO_C" >&6
18915else
18916 if test "$cross_compiling" = yes; then :
18917 lt_cv_dlopen_self=cross
18918else
18919 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18920 lt_status=$lt_dlunknown
18921 cat > conftest.$ac_ext <<EOF
18922#line 18922 "configure"
18923#include "confdefs.h"
18924
18925#if HAVE_DLFCN_H
18926#include <dlfcn.h>
18927#endif
18928
18929#include <stdio.h>
18930
18931#ifdef RTLD_GLOBAL
18932# define LT_DLGLOBAL RTLD_GLOBAL
18933#else
18934# ifdef DL_GLOBAL
18935# define LT_DLGLOBAL DL_GLOBAL
18936# else
18937# define LT_DLGLOBAL 0
18938# endif
18939#endif
18940
18941/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18942 find out it does not work in some platform. */
18943#ifndef LT_DLLAZY_OR_NOW
18944# ifdef RTLD_LAZY
18945# define LT_DLLAZY_OR_NOW RTLD_LAZY
18946# else
18947# ifdef DL_LAZY
18948# define LT_DLLAZY_OR_NOW DL_LAZY
18949# else
18950# ifdef RTLD_NOW
18951# define LT_DLLAZY_OR_NOW RTLD_NOW
18952# else
18953# ifdef DL_NOW
18954# define LT_DLLAZY_OR_NOW DL_NOW
18955# else
18956# define LT_DLLAZY_OR_NOW 0
18957# endif
18958# endif
18959# endif
18960# endif
18961#endif
18962
18963#ifdef __cplusplus
18964extern "C" void exit (int);
18965#endif
18966
18967void fnord() { int i=42;}
18968int main ()
18969{
18970 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18971 int status = $lt_dlunknown;
18972
18973 if (self)
18974 {
18975 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18976 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18977 /* dlclose (self); */
18978 }
18979
18980 exit (status);
18981}
18982EOF
18983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18984 (eval $ac_link) 2>&5
18985 ac_status=$?
18986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18987 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18988 (./conftest; exit; ) >&5 2>/dev/null
18989 lt_status=$?
18990 case x$lt_status in
18991 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18992 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18993 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18994 esac
18995 else :
18996 # compilation failed
18997 lt_cv_dlopen_self=no
18998 fi
18999fi
19000rm -fr conftest*
19001
19002
19003fi
19004echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
19005echo "${ECHO_T}$lt_cv_dlopen_self" >&6
19006
19007 if test "x$lt_cv_dlopen_self" = xyes; then
19008 LDFLAGS="$LDFLAGS $link_static_flag"
19009 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
19010echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
19011if test "${lt_cv_dlopen_self_static+set}" = set; then
19012 echo $ECHO_N "(cached) $ECHO_C" >&6
19013else
19014 if test "$cross_compiling" = yes; then :
19015 lt_cv_dlopen_self_static=cross
19016else
19017 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19018 lt_status=$lt_dlunknown
19019 cat > conftest.$ac_ext <<EOF
19020#line 19020 "configure"
19021#include "confdefs.h"
19022
19023#if HAVE_DLFCN_H
19024#include <dlfcn.h>
19025#endif
19026
19027#include <stdio.h>
19028
19029#ifdef RTLD_GLOBAL
19030# define LT_DLGLOBAL RTLD_GLOBAL
19031#else
19032# ifdef DL_GLOBAL
19033# define LT_DLGLOBAL DL_GLOBAL
19034# else
19035# define LT_DLGLOBAL 0
19036# endif
19037#endif
19038
19039/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19040 find out it does not work in some platform. */
19041#ifndef LT_DLLAZY_OR_NOW
19042# ifdef RTLD_LAZY
19043# define LT_DLLAZY_OR_NOW RTLD_LAZY
19044# else
19045# ifdef DL_LAZY
19046# define LT_DLLAZY_OR_NOW DL_LAZY
19047# else
19048# ifdef RTLD_NOW
19049# define LT_DLLAZY_OR_NOW RTLD_NOW
19050# else
19051# ifdef DL_NOW
19052# define LT_DLLAZY_OR_NOW DL_NOW
19053# else
19054# define LT_DLLAZY_OR_NOW 0
19055# endif
19056# endif
19057# endif
19058# endif
19059#endif
19060
19061#ifdef __cplusplus
19062extern "C" void exit (int);
19063#endif
19064
19065void fnord() { int i=42;}
19066int main ()
19067{
19068 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19069 int status = $lt_dlunknown;
19070
19071 if (self)
19072 {
19073 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19074 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19075 /* dlclose (self); */
19076 }
19077
19078 exit (status);
19079}
19080EOF
19081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19082 (eval $ac_link) 2>&5
19083 ac_status=$?
19084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19085 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19086 (./conftest; exit; ) >&5 2>/dev/null
19087 lt_status=$?
19088 case x$lt_status in
19089 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19090 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19091 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
19092 esac
19093 else :
19094 # compilation failed
19095 lt_cv_dlopen_self_static=no
19096 fi
19097fi
19098rm -fr conftest*
19099
19100
19101fi
19102echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
19103echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
19104 fi
19105
19106 CPPFLAGS="$save_CPPFLAGS"
19107 LDFLAGS="$save_LDFLAGS"
19108 LIBS="$save_LIBS"
19109 ;;
19110 esac
19111
19112 case $lt_cv_dlopen_self in
19113 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19114 *) enable_dlopen_self=unknown ;;
19115 esac
19116
19117 case $lt_cv_dlopen_self_static in
19118 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19119 *) enable_dlopen_self_static=unknown ;;
19120 esac
19121fi
19122
19123 18075
19124# The else clause should only fire when bootstrapping the 18076# The else clause should only fire when bootstrapping the
19125# libtool distribution, otherwise you forgot to ship ltmain.sh 18077# libtool distribution, otherwise you forgot to ship ltmain.sh
@@ -19134,7 +18086,7 @@ if test -f "$ltmain"; then
19134 # Now quote all the things that may contain metacharacters while being 18086 # Now quote all the things that may contain metacharacters while being
19135 # careful not to overquote the AC_SUBSTed values. We take copies of the 18087 # careful not to overquote the AC_SUBSTed values. We take copies of the
19136 # variables and quote the copies for generation of the libtool script. 18088 # variables and quote the copies for generation of the libtool script.
19137 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 18089 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19138 SED SHELL STRIP \ 18090 SED SHELL STRIP \
19139 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 18091 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19140 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 18092 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
@@ -19252,6 +18204,9 @@ AR_FLAGS=$lt_AR_FLAGS
19252# A C compiler. 18204# A C compiler.
19253LTCC=$lt_LTCC 18205LTCC=$lt_LTCC
19254 18206
18207# LTCC compiler flags.
18208LTCFLAGS=$lt_LTCFLAGS
18209
19255# A language-specific compiler. 18210# A language-specific compiler.
19256CC=$lt_compiler_GCJ 18211CC=$lt_compiler_GCJ
19257 18212
@@ -19561,6 +18516,9 @@ lt_simple_link_test_code="$lt_simple_compile_test_code"
19561# If no C compiler was specified, use CC. 18516# If no C compiler was specified, use CC.
19562LTCC=${LTCC-"$CC"} 18517LTCC=${LTCC-"$CC"}
19563 18518
18519# If no C compiler flags were specified, use CFLAGS.
18520LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18521
19564# Allow CC to be a program name with arguments. 18522# Allow CC to be a program name with arguments.
19565compiler=$CC 18523compiler=$CC
19566 18524
@@ -19568,13 +18526,13 @@ compiler=$CC
19568# save warnings/boilerplate of simple test code 18526# save warnings/boilerplate of simple test code
19569ac_outfile=conftest.$ac_objext 18527ac_outfile=conftest.$ac_objext
19570printf "$lt_simple_compile_test_code" >conftest.$ac_ext 18528printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19571eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 18529eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19572_lt_compiler_boilerplate=`cat conftest.err` 18530_lt_compiler_boilerplate=`cat conftest.err`
19573$rm conftest* 18531$rm conftest*
19574 18532
19575ac_outfile=conftest.$ac_objext 18533ac_outfile=conftest.$ac_objext
19576printf "$lt_simple_link_test_code" >conftest.$ac_ext 18534printf "$lt_simple_link_test_code" >conftest.$ac_ext
19577eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 18535eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19578_lt_linker_boilerplate=`cat conftest.err` 18536_lt_linker_boilerplate=`cat conftest.err`
19579$rm conftest* 18537$rm conftest*
19580 18538
@@ -19609,7 +18567,7 @@ if test -f "$ltmain"; then
19609 # Now quote all the things that may contain metacharacters while being 18567 # Now quote all the things that may contain metacharacters while being
19610 # careful not to overquote the AC_SUBSTed values. We take copies of the 18568 # careful not to overquote the AC_SUBSTed values. We take copies of the
19611 # variables and quote the copies for generation of the libtool script. 18569 # variables and quote the copies for generation of the libtool script.
19612 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 18570 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19613 SED SHELL STRIP \ 18571 SED SHELL STRIP \
19614 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 18572 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19615 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 18573 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
@@ -19727,6 +18685,9 @@ AR_FLAGS=$lt_AR_FLAGS
19727# A C compiler. 18685# A C compiler.
19728LTCC=$lt_LTCC 18686LTCC=$lt_LTCC
19729 18687
18688# LTCC compiler flags.
18689LTCFLAGS=$lt_LTCFLAGS
18690
19730# A language-specific compiler. 18691# A language-specific compiler.
19731CC=$lt_compiler_RC 18692CC=$lt_compiler_RC
19732 18693
@@ -21270,7 +20231,7 @@ else
21270 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 20231 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
21271 lt_status=$lt_dlunknown 20232 lt_status=$lt_dlunknown
21272 cat > conftest.$ac_ext <<EOF 20233 cat > conftest.$ac_ext <<EOF
21273#line 21273 "configure" 20234#line 20234 "configure"
21274#include "confdefs.h" 20235#include "confdefs.h"
21275 20236
21276#if HAVE_DLFCN_H 20237#if HAVE_DLFCN_H
@@ -21327,6 +20288,8 @@ int main ()
21327 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 20288 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
21328 /* dlclose (self); */ 20289 /* dlclose (self); */
21329 } 20290 }
20291 else
20292 puts (dlerror ());
21330 20293
21331 exit (status); 20294 exit (status);
21332} 20295}
@@ -21341,7 +20304,7 @@ EOF
21341 case x$lt_status in 20304 case x$lt_status in
21342 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;; 20305 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
21343 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;; 20306 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
21344 x$lt_unknown|x*) ;; 20307 x$lt_dlunknown|x*) ;;
21345 esac 20308 esac
21346 else : 20309 else :
21347 # compilation failed 20310 # compilation failed
@@ -21398,6 +20361,9 @@ else
21398 hpux10*|hpux11*) 20361 hpux10*|hpux11*)
21399 libltdl_cv_sys_dlopen_deplibs=yes 20362 libltdl_cv_sys_dlopen_deplibs=yes
21400 ;; 20363 ;;
20364 interix*)
20365 libltdl_cv_sys_dlopen_deplibs=yes
20366 ;;
21401 irix[12345]*|irix6.[01]*) 20367 irix[12345]*|irix6.[01]*)
21402 # Catch all versions of IRIX before 6.2, and indicate that we don't 20368 # Catch all versions of IRIX before 6.2, and indicate that we don't
21403 # know how it worked for any of those versions. 20369 # know how it worked for any of those versions.
@@ -21439,6 +20405,9 @@ else
21439 solaris*) 20405 solaris*)
21440 libltdl_cv_sys_dlopen_deplibs=yes 20406 libltdl_cv_sys_dlopen_deplibs=yes
21441 ;; 20407 ;;
20408 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20409 libltdl_cv_sys_dlopen_deplibs=yes
20410 ;;
21442 esac 20411 esac
21443 20412
21444fi 20413fi
diff --git a/libltdl/ltmain.sh b/libltdl/ltmain.sh
index db4982d8..8fc56db8 100644
--- a/libltdl/ltmain.sh
+++ b/libltdl/ltmain.sh
@@ -43,8 +43,8 @@ EXIT_FAILURE=1
43 43
44PROGRAM=ltmain.sh 44PROGRAM=ltmain.sh
45PACKAGE=libtool 45PACKAGE=libtool
46VERSION="1.5.20 Debian 1.5.20-2" 46VERSION="1.5.22 Debian 1.5.22-2"
47TIMESTAMP=" (1.1220.2.287 2005/08/31 18:54:15)" 47TIMESTAMP=" (1.1220.2.365 2005/12/18 22:14:06)"
48 48
49# See if we are running on zsh, and set the options which allow our 49# See if we are running on zsh, and set the options which allow our
50# commands through without removal of \ escapes. 50# commands through without removal of \ escapes.
@@ -132,6 +132,8 @@ run=
132show="$echo" 132show="$echo"
133show_help= 133show_help=
134execute_dlfiles= 134execute_dlfiles=
135duplicate_deps=no
136preserve_args=
135lo2o="s/\\.lo\$/.${objext}/" 137lo2o="s/\\.lo\$/.${objext}/"
136o2lo="s/\\.${objext}\$/.lo/" 138o2lo="s/\\.${objext}\$/.lo/"
137 139
@@ -139,6 +141,43 @@ o2lo="s/\\.${objext}\$/.lo/"
139# Shell function definitions: 141# Shell function definitions:
140# This seems to be the best place for them 142# This seems to be the best place for them
141 143
144# func_mktempdir [string]
145# Make a temporary directory that won't clash with other running
146# libtool processes, and avoids race conditions if possible. If
147# given, STRING is the basename for that directory.
148func_mktempdir ()
149{
150 my_template="${TMPDIR-/tmp}/${1-$progname}"
151
152 if test "$run" = ":"; then
153 # Return a directory name, but don't create it in dry-run mode
154 my_tmpdir="${my_template}-$$"
155 else
156
157 # If mktemp works, use that first and foremost
158 my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null`
159
160 if test ! -d "$my_tmpdir"; then
161 # Failing that, at least try and use $RANDOM to avoid a race
162 my_tmpdir="${my_template}-${RANDOM-0}$$"
163
164 save_mktempdir_umask=`umask`
165 umask 0077
166 $mkdir "$my_tmpdir"
167 umask $save_mktempdir_umask
168 fi
169
170 # If we're not in dry-run mode, bomb out on failure
171 test -d "$my_tmpdir" || {
172 $echo "cannot create temporary directory \`$my_tmpdir'" 1>&2
173 exit $EXIT_FAILURE
174 }
175 fi
176
177 $echo "X$my_tmpdir" | $Xsed
178}
179
180
142# func_win32_libid arg 181# func_win32_libid arg
143# return the library type of file 'arg' 182# return the library type of file 'arg'
144# 183#
@@ -157,12 +196,11 @@ func_win32_libid ()
157 if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | \ 196 if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | \
158 $EGREP -e 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then 197 $EGREP -e 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
159 win32_nmres=`eval $NM -f posix -A $1 | \ 198 win32_nmres=`eval $NM -f posix -A $1 | \
160 sed -n -e '1,100{/ I /{x;/import/!{s/^/import/;h;p;};x;};}'` 199 $SED -n -e '1,100{/ I /{s,.*,import,;p;q;};}'`
161 if test "X$win32_nmres" = "Ximport" ; then 200 case $win32_nmres in
162 win32_libid_type="x86 archive import" 201 import*) win32_libid_type="x86 archive import";;
163 else 202 *) win32_libid_type="x86 archive static";;
164 win32_libid_type="x86 archive static" 203 esac
165 fi
166 fi 204 fi
167 ;; 205 ;;
168 *DLL*) 206 *DLL*)
@@ -295,9 +333,9 @@ func_extract_archives ()
295 $run ${rm}r "$my_xdir" 333 $run ${rm}r "$my_xdir"
296 $show "$mkdir $my_xdir" 334 $show "$mkdir $my_xdir"
297 $run $mkdir "$my_xdir" 335 $run $mkdir "$my_xdir"
298 status=$? 336 exit_status=$?
299 if test "$status" -ne 0 && test ! -d "$my_xdir"; then 337 if test "$exit_status" -ne 0 && test ! -d "$my_xdir"; then
300 exit $status 338 exit $exit_status
301 fi 339 fi
302 case $host in 340 case $host in
303 *-darwin*) 341 *-darwin*)
@@ -352,6 +390,8 @@ func_extract_archives ()
352# Darwin sucks 390# Darwin sucks
353eval std_shrext=\"$shrext_cmds\" 391eval std_shrext=\"$shrext_cmds\"
354 392
393disable_libs=no
394
355# Parse our command line options once, thoroughly. 395# Parse our command line options once, thoroughly.
356while test "$#" -gt 0 396while test "$#" -gt 0
357do 397do
@@ -468,7 +508,11 @@ do
468 preserve_args="$preserve_args $arg" 508 preserve_args="$preserve_args $arg"
469 ;; 509 ;;
470 510
471 --tag) prevopt="--tag" prev=tag ;; 511 --tag)
512 prevopt="--tag"
513 prev=tag
514 preserve_args="$preserve_args --tag"
515 ;;
472 --tag=*) 516 --tag=*)
473 set tag "$optarg" ${1+"$@"} 517 set tag "$optarg" ${1+"$@"}
474 shift 518 shift
@@ -500,6 +544,18 @@ if test -n "$prevopt"; then
500 exit $EXIT_FAILURE 544 exit $EXIT_FAILURE
501fi 545fi
502 546
547case $disable_libs in
548no)
549 ;;
550shared)
551 build_libtool_libs=no
552 build_old_libs=yes
553 ;;
554static)
555 build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac`
556 ;;
557esac
558
503# If this variable is set in any of the actions, the command in it 559# If this variable is set in any of the actions, the command in it
504# will be execed at the end. This prevents here-documents from being 560# will be execed at the end. This prevents here-documents from being
505# left over by shells. 561# left over by shells.
@@ -856,9 +912,9 @@ EOF
856 if test ! -d "${xdir}$objdir"; then 912 if test ! -d "${xdir}$objdir"; then
857 $show "$mkdir ${xdir}$objdir" 913 $show "$mkdir ${xdir}$objdir"
858 $run $mkdir ${xdir}$objdir 914 $run $mkdir ${xdir}$objdir
859 status=$? 915 exit_status=$?
860 if test "$status" -ne 0 && test ! -d "${xdir}$objdir"; then 916 if test "$exit_status" -ne 0 && test ! -d "${xdir}$objdir"; then
861 exit $status 917 exit $exit_status
862 fi 918 fi
863 fi 919 fi
864 920
@@ -1061,6 +1117,7 @@ EOF
1061 no_install=no 1117 no_install=no
1062 objs= 1118 objs=
1063 non_pic_objects= 1119 non_pic_objects=
1120 notinst_path= # paths that contain not-installed libtool libraries
1064 precious_files_regex= 1121 precious_files_regex=
1065 prefer_static_libs=no 1122 prefer_static_libs=no
1066 preload=no 1123 preload=no
@@ -1089,14 +1146,15 @@ EOF
1089 if test -n "$link_static_flag"; then 1146 if test -n "$link_static_flag"; then
1090 dlopen_self=$dlopen_self_static 1147 dlopen_self=$dlopen_self_static
1091 fi 1148 fi
1149 prefer_static_libs=yes
1092 else 1150 else
1093 if test -z "$pic_flag" && test -n "$link_static_flag"; then 1151 if test -z "$pic_flag" && test -n "$link_static_flag"; then
1094 dlopen_self=$dlopen_self_static 1152 dlopen_self=$dlopen_self_static
1095 fi 1153 fi
1154 prefer_static_libs=built
1096 fi 1155 fi
1097 build_libtool_libs=no 1156 build_libtool_libs=no
1098 build_old_libs=yes 1157 build_old_libs=yes
1099 prefer_static_libs=yes
1100 break 1158 break
1101 ;; 1159 ;;
1102 esac 1160 esac
@@ -1271,6 +1329,11 @@ EOF
1271 if test -z "$pic_object" || test "$pic_object" = none ; then 1329 if test -z "$pic_object" || test "$pic_object" = none ; then
1272 arg="$non_pic_object" 1330 arg="$non_pic_object"
1273 fi 1331 fi
1332 else
1333 # If the PIC object exists, use it instead.
1334 # $xdir was prepended to $pic_object above.
1335 non_pic_object="$pic_object"
1336 non_pic_objects="$non_pic_objects $non_pic_object"
1274 fi 1337 fi
1275 else 1338 else
1276 # Only an error if not doing a dry-run. 1339 # Only an error if not doing a dry-run.
@@ -1354,8 +1417,8 @@ EOF
1354 prev= 1417 prev=
1355 continue 1418 continue
1356 ;; 1419 ;;
1357 darwin_framework) 1420 darwin_framework|darwin_framework_skip)
1358 compiler_flags="$compiler_flags $arg" 1421 test "$prev" = "darwin_framework" && compiler_flags="$compiler_flags $arg"
1359 compile_command="$compile_command $arg" 1422 compile_command="$compile_command $arg"
1360 finalize_command="$finalize_command $arg" 1423 finalize_command="$finalize_command $arg"
1361 prev= 1424 prev=
@@ -1419,13 +1482,17 @@ EOF
1419 continue 1482 continue
1420 ;; 1483 ;;
1421 1484
1422 -framework|-arch) 1485 -framework|-arch|-isysroot)
1423 prev=darwin_framework 1486 case " $CC " in
1424 compiler_flags="$compiler_flags $arg" 1487 *" ${arg} ${1} "* | *" ${arg} ${1} "*)
1488 prev=darwin_framework_skip ;;
1489 *) compiler_flags="$compiler_flags $arg"
1490 prev=darwin_framework ;;
1491 esac
1425 compile_command="$compile_command $arg" 1492 compile_command="$compile_command $arg"
1426 finalize_command="$finalize_command $arg" 1493 finalize_command="$finalize_command $arg"
1427 continue 1494 continue
1428 ;; 1495 ;;
1429 1496
1430 -inst-prefix-dir) 1497 -inst-prefix-dir)
1431 prev=inst_prefix 1498 prev=inst_prefix
@@ -1453,7 +1520,8 @@ EOF
1453 absdir=`cd "$dir" && pwd` 1520 absdir=`cd "$dir" && pwd`
1454 if test -z "$absdir"; then 1521 if test -z "$absdir"; then
1455 $echo "$modename: cannot determine absolute directory name of \`$dir'" 1>&2 1522 $echo "$modename: cannot determine absolute directory name of \`$dir'" 1>&2
1456 exit $EXIT_FAILURE 1523 absdir="$dir"
1524 notinst_path="$notinst_path $dir"
1457 fi 1525 fi
1458 dir="$absdir" 1526 dir="$absdir"
1459 ;; 1527 ;;
@@ -1467,10 +1535,15 @@ EOF
1467 esac 1535 esac
1468 case $host in 1536 case $host in
1469 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*) 1537 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
1538 testbindir=`$echo "X$dir" | $Xsed -e 's*/lib$*/bin*'`
1470 case :$dllsearchpath: in 1539 case :$dllsearchpath: in
1471 *":$dir:"*) ;; 1540 *":$dir:"*) ;;
1472 *) dllsearchpath="$dllsearchpath:$dir";; 1541 *) dllsearchpath="$dllsearchpath:$dir";;
1473 esac 1542 esac
1543 case :$dllsearchpath: in
1544 *":$testbindir:"*) ;;
1545 *) dllsearchpath="$dllsearchpath:$testbindir";;
1546 esac
1474 ;; 1547 ;;
1475 esac 1548 esac
1476 continue 1549 continue
@@ -1479,11 +1552,11 @@ EOF
1479 -l*) 1552 -l*)
1480 if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then 1553 if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
1481 case $host in 1554 case $host in
1482 *-*-cygwin* | *-*-pw32* | *-*-beos*) 1555 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos*)
1483 # These systems don't actually have a C or math library (as such) 1556 # These systems don't actually have a C or math library (as such)
1484 continue 1557 continue
1485 ;; 1558 ;;
1486 *-*-mingw* | *-*-os2*) 1559 *-*-os2*)
1487 # These systems don't actually have a C library (as such) 1560 # These systems don't actually have a C library (as such)
1488 test "X$arg" = "X-lc" && continue 1561 test "X$arg" = "X-lc" && continue
1489 ;; 1562 ;;
@@ -1495,6 +1568,15 @@ EOF
1495 # Rhapsody C and math libraries are in the System framework 1568 # Rhapsody C and math libraries are in the System framework
1496 deplibs="$deplibs -framework System" 1569 deplibs="$deplibs -framework System"
1497 continue 1570 continue
1571 ;;
1572 *-*-sco3.2v5* | *-*-sco5v6*)
1573 # Causes problems with __ctype
1574 test "X$arg" = "X-lc" && continue
1575 ;;
1576 *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
1577 # Compiler inserts libc in the correct place for threads to work
1578 test "X$arg" = "X-lc" && continue
1579 ;;
1498 esac 1580 esac
1499 elif test "X$arg" = "X-lc_r"; then 1581 elif test "X$arg" = "X-lc_r"; then
1500 case $host in 1582 case $host in
@@ -1536,7 +1618,12 @@ EOF
1536 # +DA*, +DD* enable 64-bit mode on the HP compiler 1618 # +DA*, +DD* enable 64-bit mode on the HP compiler
1537 # -q* pass through compiler args for the IBM compiler 1619 # -q* pass through compiler args for the IBM compiler
1538 # -m* pass through architecture-specific compiler args for GCC 1620 # -m* pass through architecture-specific compiler args for GCC
1539 -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*) 1621 # -m*, -t[45]*, -txscale* pass through architecture-specific
1622 # compiler args for GCC
1623 # -pg pass through profiling flag for GCC
1624 # @file GCC response files
1625 -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*|-pg| \
1626 -t[45]*|-txscale*|@*)
1540 1627
1541 # Unknown arguments in both finalize_command and compile_command need 1628 # Unknown arguments in both finalize_command and compile_command need
1542 # to be aesthetically quoted because they are evaled later. 1629 # to be aesthetically quoted because they are evaled later.
@@ -1548,9 +1635,7 @@ EOF
1548 esac 1635 esac
1549 compile_command="$compile_command $arg" 1636 compile_command="$compile_command $arg"
1550 finalize_command="$finalize_command $arg" 1637 finalize_command="$finalize_command $arg"
1551 if test "$with_gcc" = "yes" ; then 1638 compiler_flags="$compiler_flags $arg"
1552 compiler_flags="$compiler_flags $arg"
1553 fi
1554 continue 1639 continue
1555 ;; 1640 ;;
1556 1641
@@ -1788,6 +1873,11 @@ EOF
1788 if test -z "$pic_object" || test "$pic_object" = none ; then 1873 if test -z "$pic_object" || test "$pic_object" = none ; then
1789 arg="$non_pic_object" 1874 arg="$non_pic_object"
1790 fi 1875 fi
1876 else
1877 # If the PIC object exists, use it instead.
1878 # $xdir was prepended to $pic_object above.
1879 non_pic_object="$pic_object"
1880 non_pic_objects="$non_pic_objects $non_pic_object"
1791 fi 1881 fi
1792 else 1882 else
1793 # Only an error if not doing a dry-run. 1883 # Only an error if not doing a dry-run.
@@ -1893,9 +1983,9 @@ EOF
1893 if test ! -d "$output_objdir"; then 1983 if test ! -d "$output_objdir"; then
1894 $show "$mkdir $output_objdir" 1984 $show "$mkdir $output_objdir"
1895 $run $mkdir $output_objdir 1985 $run $mkdir $output_objdir
1896 status=$? 1986 exit_status=$?
1897 if test "$status" -ne 0 && test ! -d "$output_objdir"; then 1987 if test "$exit_status" -ne 0 && test ! -d "$output_objdir"; then
1898 exit $status 1988 exit $exit_status
1899 fi 1989 fi
1900 fi 1990 fi
1901 1991
@@ -1958,7 +2048,6 @@ EOF
1958 newlib_search_path= 2048 newlib_search_path=
1959 need_relink=no # whether we're linking any uninstalled libtool libraries 2049 need_relink=no # whether we're linking any uninstalled libtool libraries
1960 notinst_deplibs= # not-installed libtool libraries 2050 notinst_deplibs= # not-installed libtool libraries
1961 notinst_path= # paths that contain not-installed libtool libraries
1962 case $linkmode in 2051 case $linkmode in
1963 lib) 2052 lib)
1964 passes="conv link" 2053 passes="conv link"
@@ -2197,7 +2286,7 @@ EOF
2197 esac # case $deplib 2286 esac # case $deplib
2198 if test "$found" = yes || test -f "$lib"; then : 2287 if test "$found" = yes || test -f "$lib"; then :
2199 else 2288 else
2200 $echo "$modename: cannot find the library \`$lib'" 1>&2 2289 $echo "$modename: cannot find the library \`$lib' or unhandled argument \`$deplib'" 1>&2
2201 exit $EXIT_FAILURE 2290 exit $EXIT_FAILURE
2202 fi 2291 fi
2203 2292
@@ -2448,8 +2537,12 @@ EOF
2448 fi 2537 fi
2449 2538
2450 link_static=no # Whether the deplib will be linked statically 2539 link_static=no # Whether the deplib will be linked statically
2540 use_static_libs=$prefer_static_libs
2541 if test "$use_static_libs" = built && test "$installed" = yes ; then
2542 use_static_libs=no
2543 fi
2451 if test -n "$library_names" && 2544 if test -n "$library_names" &&
2452 { test "$prefer_static_libs" = no || test -z "$old_library"; }; then 2545 { test "$use_static_libs" = no || test -z "$old_library"; }; then
2453 if test "$installed" = no; then 2546 if test "$installed" = no; then
2454 notinst_deplibs="$notinst_deplibs $lib" 2547 notinst_deplibs="$notinst_deplibs $lib"
2455 need_relink=yes 2548 need_relink=yes
@@ -2562,11 +2655,15 @@ EOF
2562 if test "$hardcode_direct" = no; then 2655 if test "$hardcode_direct" = no; then
2563 add="$dir/$linklib" 2656 add="$dir/$linklib"
2564 case $host in 2657 case $host in
2565 *-*-sco3.2v5* ) add_dir="-L$dir" ;; 2658 *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;;
2659 *-*-sysv4*uw2*) add_dir="-L$dir" ;;
2660 *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \
2661 *-*-unixware7*) add_dir="-L$dir" ;;
2566 *-*-darwin* ) 2662 *-*-darwin* )
2567 # if the lib is a module then we can not link against 2663 # if the lib is a module then we can not link against
2568 # it, someone is ignoring the new warnings I added 2664 # it, someone is ignoring the new warnings I added
2569 if /usr/bin/file -L $add 2> /dev/null | $EGREP "bundle" >/dev/null ; then 2665 if /usr/bin/file -L $add 2> /dev/null |
2666 $EGREP ": [^:]* bundle" >/dev/null ; then
2570 $echo "** Warning, lib $linklib is a module, not a shared library" 2667 $echo "** Warning, lib $linklib is a module, not a shared library"
2571 if test -z "$old_library" ; then 2668 if test -z "$old_library" ; then
2572 $echo 2669 $echo
@@ -3322,9 +3419,9 @@ EOF
3322 3419
3323 # Eliminate all temporary directories. 3420 # Eliminate all temporary directories.
3324 for path in $notinst_path; do 3421 for path in $notinst_path; do
3325 lib_search_path=`$echo "$lib_search_path " | ${SED} -e 's% $path % %g'` 3422 lib_search_path=`$echo "$lib_search_path " | ${SED} -e "s% $path % %g"`
3326 deplibs=`$echo "$deplibs " | ${SED} -e 's% -L$path % %g'` 3423 deplibs=`$echo "$deplibs " | ${SED} -e "s% -L$path % %g"`
3327 dependency_libs=`$echo "$dependency_libs " | ${SED} -e 's% -L$path % %g'` 3424 dependency_libs=`$echo "$dependency_libs " | ${SED} -e "s% -L$path % %g"`
3328 done 3425 done
3329 3426
3330 if test -n "$xrpath"; then 3427 if test -n "$xrpath"; then
@@ -3377,7 +3474,12 @@ EOF
3377 ;; 3474 ;;
3378 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) 3475 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
3379 # Do not include libc due to us having libc/libc_r. 3476 # Do not include libc due to us having libc/libc_r.
3380 test "X$arg" = "X-lc" && continue 3477 ;;
3478 *-*-sco3.2v5* | *-*-sco5v6*)
3479 # Causes problems with __ctype
3480 ;;
3481 *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
3482 # Compiler inserts libc in the correct place for threads to work
3381 ;; 3483 ;;
3382 *) 3484 *)
3383 # Add libc to deplibs on all other systems if necessary. 3485 # Add libc to deplibs on all other systems if necessary.
@@ -3421,7 +3523,7 @@ EOF
3421 int main() { return 0; } 3523 int main() { return 0; }
3422EOF 3524EOF
3423 $rm conftest 3525 $rm conftest
3424 $LTCC -o conftest conftest.c $deplibs 3526 $LTCC $LTCFLAGS -o conftest conftest.c $deplibs
3425 if test "$?" -eq 0 ; then 3527 if test "$?" -eq 0 ; then
3426 ldd_output=`ldd conftest` 3528 ldd_output=`ldd conftest`
3427 for i in $deplibs; do 3529 for i in $deplibs; do
@@ -3466,7 +3568,7 @@ EOF
3466 # If $name is empty we are operating on a -L argument. 3568 # If $name is empty we are operating on a -L argument.
3467 if test "$name" != "" && test "$name" != "0"; then 3569 if test "$name" != "" && test "$name" != "0"; then
3468 $rm conftest 3570 $rm conftest
3469 $LTCC -o conftest conftest.c $i 3571 $LTCC $LTCFLAGS -o conftest conftest.c $i
3470 # Did it work? 3572 # Did it work?
3471 if test "$?" -eq 0 ; then 3573 if test "$?" -eq 0 ; then
3472 ldd_output=`ldd conftest` 3574 ldd_output=`ldd conftest`
@@ -3713,6 +3815,35 @@ EOF
3713 deplibs=$newdeplibs 3815 deplibs=$newdeplibs
3714 fi 3816 fi
3715 3817
3818
3819 # move library search paths that coincide with paths to not yet
3820 # installed libraries to the beginning of the library search list
3821 new_libs=
3822 for path in $notinst_path; do
3823 case " $new_libs " in
3824 *" -L$path/$objdir "*) ;;
3825 *)
3826 case " $deplibs " in
3827 *" -L$path/$objdir "*)
3828 new_libs="$new_libs -L$path/$objdir" ;;
3829 esac
3830 ;;
3831 esac
3832 done
3833 for deplib in $deplibs; do
3834 case $deplib in
3835 -L*)
3836 case " $new_libs " in
3837 *" $deplib "*) ;;
3838 *) new_libs="$new_libs $deplib" ;;
3839 esac
3840 ;;
3841 *) new_libs="$new_libs $deplib" ;;
3842 esac
3843 done
3844 deplibs="$new_libs"
3845
3846
3716 # All the library-specific variables (install_libdir is set above). 3847 # All the library-specific variables (install_libdir is set above).
3717 library_names= 3848 library_names=
3718 old_library= 3849 old_library=
@@ -3796,6 +3927,7 @@ EOF
3796 fi 3927 fi
3797 3928
3798 lib="$output_objdir/$realname" 3929 lib="$output_objdir/$realname"
3930 linknames=
3799 for link 3931 for link
3800 do 3932 do
3801 linknames="$linknames $link" 3933 linknames="$linknames $link"
@@ -4227,6 +4359,35 @@ EOF
4227 ;; 4359 ;;
4228 esac 4360 esac
4229 4361
4362
4363 # move library search paths that coincide with paths to not yet
4364 # installed libraries to the beginning of the library search list
4365 new_libs=
4366 for path in $notinst_path; do
4367 case " $new_libs " in
4368 *" -L$path/$objdir "*) ;;
4369 *)
4370 case " $compile_deplibs " in
4371 *" -L$path/$objdir "*)
4372 new_libs="$new_libs -L$path/$objdir" ;;
4373 esac
4374 ;;
4375 esac
4376 done
4377 for deplib in $compile_deplibs; do
4378 case $deplib in
4379 -L*)
4380 case " $new_libs " in
4381 *" $deplib "*) ;;
4382 *) new_libs="$new_libs $deplib" ;;
4383 esac
4384 ;;
4385 *) new_libs="$new_libs $deplib" ;;
4386 esac
4387 done
4388 compile_deplibs="$new_libs"
4389
4390
4230 compile_command="$compile_command $compile_deplibs" 4391 compile_command="$compile_command $compile_deplibs"
4231 finalize_command="$finalize_command $finalize_deplibs" 4392 finalize_command="$finalize_command $finalize_deplibs"
4232 4393
@@ -4271,10 +4432,15 @@ EOF
4271 fi 4432 fi
4272 case $host in 4433 case $host in
4273 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*) 4434 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
4435 testbindir=`$echo "X$libdir" | $Xsed -e 's*/lib$*/bin*'`
4274 case :$dllsearchpath: in 4436 case :$dllsearchpath: in
4275 *":$libdir:"*) ;; 4437 *":$libdir:"*) ;;
4276 *) dllsearchpath="$dllsearchpath:$libdir";; 4438 *) dllsearchpath="$dllsearchpath:$libdir";;
4277 esac 4439 esac
4440 case :$dllsearchpath: in
4441 *":$testbindir:"*) ;;
4442 *) dllsearchpath="$dllsearchpath:$testbindir";;
4443 esac
4278 ;; 4444 ;;
4279 esac 4445 esac
4280 done 4446 done
@@ -4391,10 +4557,22 @@ extern \"C\" {
4391 export_symbols="$output_objdir/$outputname.exp" 4557 export_symbols="$output_objdir/$outputname.exp"
4392 $run $rm $export_symbols 4558 $run $rm $export_symbols
4393 $run eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"' 4559 $run eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
4560 case $host in
4561 *cygwin* | *mingw* )
4562 $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
4563 $run eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"'
4564 ;;
4565 esac
4394 else 4566 else
4395 $run eval "${SED} -e 's/\([ ][.*^$]\)/\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"' 4567 $run eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
4396 $run eval 'grep -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T' 4568 $run eval 'grep -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
4397 $run eval 'mv "$nlist"T "$nlist"' 4569 $run eval 'mv "$nlist"T "$nlist"'
4570 case $host in
4571 *cygwin* | *mingw* )
4572 $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
4573 $run eval 'cat "$nlist" >> "$output_objdir/$outputname.def"'
4574 ;;
4575 esac
4398 fi 4576 fi
4399 fi 4577 fi
4400 4578
@@ -4511,16 +4689,29 @@ static const void *lt_preloaded_setup() {
4511 esac 4689 esac
4512 4690
4513 # Now compile the dynamic symbol file. 4691 # Now compile the dynamic symbol file.
4514 $show "(cd $output_objdir && $LTCC -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")" 4692 $show "(cd $output_objdir && $LTCC $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")"
4515 $run eval '(cd $output_objdir && $LTCC -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $? 4693 $run eval '(cd $output_objdir && $LTCC $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $?
4516 4694
4517 # Clean up the generated files. 4695 # Clean up the generated files.
4518 $show "$rm $output_objdir/$dlsyms $nlist ${nlist}S ${nlist}T" 4696 $show "$rm $output_objdir/$dlsyms $nlist ${nlist}S ${nlist}T"
4519 $run $rm "$output_objdir/$dlsyms" "$nlist" "${nlist}S" "${nlist}T" 4697 $run $rm "$output_objdir/$dlsyms" "$nlist" "${nlist}S" "${nlist}T"
4520 4698
4521 # Transform the symbol file into the correct name. 4699 # Transform the symbol file into the correct name.
4522 compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"` 4700 case $host in
4523 finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"` 4701 *cygwin* | *mingw* )
4702 if test -f "$output_objdir/${outputname}.def" ; then
4703 compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%"`
4704 finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%"`
4705 else
4706 compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
4707 finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
4708 fi
4709 ;;
4710 * )
4711 compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
4712 finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
4713 ;;
4714 esac
4524 ;; 4715 ;;
4525 *) 4716 *)
4526 $echo "$modename: unknown suffix for \`$dlsyms'" 1>&2 4717 $echo "$modename: unknown suffix for \`$dlsyms'" 1>&2
@@ -4545,7 +4736,7 @@ static const void *lt_preloaded_setup() {
4545 # We have no uninstalled library dependencies, so finalize right now. 4736 # We have no uninstalled library dependencies, so finalize right now.
4546 $show "$link_command" 4737 $show "$link_command"
4547 $run eval "$link_command" 4738 $run eval "$link_command"
4548 status=$? 4739 exit_status=$?
4549 4740
4550 # Delete the generated files. 4741 # Delete the generated files.
4551 if test -n "$dlsyms"; then 4742 if test -n "$dlsyms"; then
@@ -4553,7 +4744,7 @@ static const void *lt_preloaded_setup() {
4553 $run $rm "$output_objdir/${outputname}S.${objext}" 4744 $run $rm "$output_objdir/${outputname}S.${objext}"
4554 fi 4745 fi
4555 4746
4556 exit $status 4747 exit $exit_status
4557 fi 4748 fi
4558 4749
4559 if test -n "$shlibpath_var"; then 4750 if test -n "$shlibpath_var"; then
@@ -4693,10 +4884,12 @@ static const void *lt_preloaded_setup() {
4693 esac 4884 esac
4694 case $host in 4885 case $host in
4695 *cygwin* | *mingw* ) 4886 *cygwin* | *mingw* )
4696 cwrappersource=`$echo ${objdir}/lt-${outputname}.c` 4887 output_name=`basename $output`
4697 cwrapper=`$echo ${output}.exe` 4888 output_path=`dirname $output`
4698 $rm $cwrappersource $cwrapper 4889 cwrappersource="$output_path/$objdir/lt-$output_name.c"
4699 trap "$rm $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15 4890 cwrapper="$output_path/$output_name.exe"
4891 $rm $cwrappersource $cwrapper
4892 trap "$rm $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
4700 4893
4701 cat > $cwrappersource <<EOF 4894 cat > $cwrappersource <<EOF
4702 4895
@@ -4721,6 +4914,9 @@ EOF
4721#include <malloc.h> 4914#include <malloc.h>
4722#include <stdarg.h> 4915#include <stdarg.h>
4723#include <assert.h> 4916#include <assert.h>
4917#include <string.h>
4918#include <ctype.h>
4919#include <sys/stat.h>
4724 4920
4725#if defined(PATH_MAX) 4921#if defined(PATH_MAX)
4726# define LT_PATHMAX PATH_MAX 4922# define LT_PATHMAX PATH_MAX
@@ -4731,15 +4927,19 @@ EOF
4731#endif 4927#endif
4732 4928
4733#ifndef DIR_SEPARATOR 4929#ifndef DIR_SEPARATOR
4734#define DIR_SEPARATOR '/' 4930# define DIR_SEPARATOR '/'
4931# define PATH_SEPARATOR ':'
4735#endif 4932#endif
4736 4933
4737#if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \ 4934#if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
4738 defined (__OS2__) 4935 defined (__OS2__)
4739#define HAVE_DOS_BASED_FILE_SYSTEM 4936# define HAVE_DOS_BASED_FILE_SYSTEM
4740#ifndef DIR_SEPARATOR_2 4937# ifndef DIR_SEPARATOR_2
4741#define DIR_SEPARATOR_2 '\\' 4938# define DIR_SEPARATOR_2 '\\'
4742#endif 4939# endif
4940# ifndef PATH_SEPARATOR_2
4941# define PATH_SEPARATOR_2 ';'
4942# endif
4743#endif 4943#endif
4744 4944
4745#ifndef DIR_SEPARATOR_2 4945#ifndef DIR_SEPARATOR_2
@@ -4749,17 +4949,32 @@ EOF
4749 (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2)) 4949 (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
4750#endif /* DIR_SEPARATOR_2 */ 4950#endif /* DIR_SEPARATOR_2 */
4751 4951
4952#ifndef PATH_SEPARATOR_2
4953# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR)
4954#else /* PATH_SEPARATOR_2 */
4955# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2)
4956#endif /* PATH_SEPARATOR_2 */
4957
4752#define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type))) 4958#define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type)))
4753#define XFREE(stale) do { \ 4959#define XFREE(stale) do { \
4754 if (stale) { free ((void *) stale); stale = 0; } \ 4960 if (stale) { free ((void *) stale); stale = 0; } \
4755} while (0) 4961} while (0)
4756 4962
4963/* -DDEBUG is fairly common in CFLAGS. */
4964#undef DEBUG
4965#if defined DEBUGWRAPPER
4966# define DEBUG(format, ...) fprintf(stderr, format, __VA_ARGS__)
4967#else
4968# define DEBUG(format, ...)
4969#endif
4970
4757const char *program_name = NULL; 4971const char *program_name = NULL;
4758 4972
4759void * xmalloc (size_t num); 4973void * xmalloc (size_t num);
4760char * xstrdup (const char *string); 4974char * xstrdup (const char *string);
4761char * basename (const char *name); 4975const char * base_name (const char *name);
4762char * fnqualify(const char *path); 4976char * find_executable(const char *wrapper);
4977int check_executable(const char *path);
4763char * strendzap(char *str, const char *pat); 4978char * strendzap(char *str, const char *pat);
4764void lt_fatal (const char *message, ...); 4979void lt_fatal (const char *message, ...);
4765 4980
@@ -4769,29 +4984,50 @@ main (int argc, char *argv[])
4769 char **newargz; 4984 char **newargz;
4770 int i; 4985 int i;
4771 4986
4772 program_name = (char *) xstrdup ((char *) basename (argv[0])); 4987 program_name = (char *) xstrdup (base_name (argv[0]));
4988 DEBUG("(main) argv[0] : %s\n",argv[0]);
4989 DEBUG("(main) program_name : %s\n",program_name);
4773 newargz = XMALLOC(char *, argc+2); 4990 newargz = XMALLOC(char *, argc+2);
4774EOF 4991EOF
4775 4992
4776 cat >> $cwrappersource <<EOF 4993 cat >> $cwrappersource <<EOF
4777 newargz[0] = "$SHELL"; 4994 newargz[0] = (char *) xstrdup("$SHELL");
4778EOF 4995EOF
4779 4996
4780 cat >> $cwrappersource <<"EOF" 4997 cat >> $cwrappersource <<"EOF"
4781 newargz[1] = fnqualify(argv[0]); 4998 newargz[1] = find_executable(argv[0]);
4999 if (newargz[1] == NULL)
5000 lt_fatal("Couldn't find %s", argv[0]);
5001 DEBUG("(main) found exe at : %s\n",newargz[1]);
4782 /* we know the script has the same name, without the .exe */ 5002 /* we know the script has the same name, without the .exe */
4783 /* so make sure newargz[1] doesn't end in .exe */ 5003 /* so make sure newargz[1] doesn't end in .exe */
4784 strendzap(newargz[1],".exe"); 5004 strendzap(newargz[1],".exe");
4785 for (i = 1; i < argc; i++) 5005 for (i = 1; i < argc; i++)
4786 newargz[i+1] = xstrdup(argv[i]); 5006 newargz[i+1] = xstrdup(argv[i]);
4787 newargz[argc+1] = NULL; 5007 newargz[argc+1] = NULL;
5008
5009 for (i=0; i<argc+1; i++)
5010 {
5011 DEBUG("(main) newargz[%d] : %s\n",i,newargz[i]);
5012 ;
5013 }
5014
4788EOF 5015EOF
4789 5016
4790 cat >> $cwrappersource <<EOF 5017 case $host_os in
5018 mingw*)
5019 cat >> $cwrappersource <<EOF
5020 execv("$SHELL",(char const **)newargz);
5021EOF
5022 ;;
5023 *)
5024 cat >> $cwrappersource <<EOF
4791 execv("$SHELL",newargz); 5025 execv("$SHELL",newargz);
4792EOF 5026EOF
5027 ;;
5028 esac
4793 5029
4794 cat >> $cwrappersource <<"EOF" 5030 cat >> $cwrappersource <<"EOF"
4795 return 127; 5031 return 127;
4796} 5032}
4797 5033
@@ -4812,48 +5048,148 @@ xstrdup (const char *string)
4812; 5048;
4813} 5049}
4814 5050
4815char * 5051const char *
4816basename (const char *name) 5052base_name (const char *name)
4817{ 5053{
4818 const char *base; 5054 const char *base;
4819 5055
4820#if defined (HAVE_DOS_BASED_FILE_SYSTEM) 5056#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
4821 /* Skip over the disk name in MSDOS pathnames. */ 5057 /* Skip over the disk name in MSDOS pathnames. */
4822 if (isalpha (name[0]) && name[1] == ':') 5058 if (isalpha ((unsigned char)name[0]) && name[1] == ':')
4823 name += 2; 5059 name += 2;
4824#endif 5060#endif
4825 5061
4826 for (base = name; *name; name++) 5062 for (base = name; *name; name++)
4827 if (IS_DIR_SEPARATOR (*name)) 5063 if (IS_DIR_SEPARATOR (*name))
4828 base = name + 1; 5064 base = name + 1;
4829 return (char *) base; 5065 return base;
5066}
5067
5068int
5069check_executable(const char * path)
5070{
5071 struct stat st;
5072
5073 DEBUG("(check_executable) : %s\n", path ? (*path ? path : "EMPTY!") : "NULL!");
5074 if ((!path) || (!*path))
5075 return 0;
5076
5077 if ((stat (path, &st) >= 0) &&
5078 (
5079 /* MinGW & native WIN32 do not support S_IXOTH or S_IXGRP */
5080#if defined (S_IXOTH)
5081 ((st.st_mode & S_IXOTH) == S_IXOTH) ||
5082#endif
5083#if defined (S_IXGRP)
5084 ((st.st_mode & S_IXGRP) == S_IXGRP) ||
5085#endif
5086 ((st.st_mode & S_IXUSR) == S_IXUSR))
5087 )
5088 return 1;
5089 else
5090 return 0;
4830} 5091}
4831 5092
5093/* Searches for the full path of the wrapper. Returns
5094 newly allocated full path name if found, NULL otherwise */
4832char * 5095char *
4833fnqualify(const char *path) 5096find_executable (const char* wrapper)
4834{ 5097{
4835 size_t size; 5098 int has_slash = 0;
4836 char *p; 5099 const char* p;
5100 const char* p_next;
5101 /* static buffer for getcwd */
4837 char tmp[LT_PATHMAX + 1]; 5102 char tmp[LT_PATHMAX + 1];
5103 int tmp_len;
5104 char* concat_name;
4838 5105
4839 assert(path != NULL); 5106 DEBUG("(find_executable) : %s\n", wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!");
4840 5107
4841 /* Is it qualified already? */ 5108 if ((wrapper == NULL) || (*wrapper == '\0'))
5109 return NULL;
5110
5111 /* Absolute path? */
4842#if defined (HAVE_DOS_BASED_FILE_SYSTEM) 5112#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
4843 if (isalpha (path[0]) && path[1] == ':') 5113 if (isalpha ((unsigned char)wrapper[0]) && wrapper[1] == ':')
4844 return xstrdup (path); 5114 {
5115 concat_name = xstrdup (wrapper);
5116 if (check_executable(concat_name))
5117 return concat_name;
5118 XFREE(concat_name);
5119 }
5120 else
5121 {
5122#endif
5123 if (IS_DIR_SEPARATOR (wrapper[0]))
5124 {
5125 concat_name = xstrdup (wrapper);
5126 if (check_executable(concat_name))
5127 return concat_name;
5128 XFREE(concat_name);
5129 }
5130#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
5131 }
4845#endif 5132#endif
4846 if (IS_DIR_SEPARATOR (path[0]))
4847 return xstrdup (path);
4848 5133
4849 /* prepend the current directory */ 5134 for (p = wrapper; *p; p++)
4850 /* doesn't handle '~' */ 5135 if (*p == '/')
5136 {
5137 has_slash = 1;
5138 break;
5139 }
5140 if (!has_slash)
5141 {
5142 /* no slashes; search PATH */
5143 const char* path = getenv ("PATH");
5144 if (path != NULL)
5145 {
5146 for (p = path; *p; p = p_next)
5147 {
5148 const char* q;
5149 size_t p_len;
5150 for (q = p; *q; q++)
5151 if (IS_PATH_SEPARATOR(*q))
5152 break;
5153 p_len = q - p;
5154 p_next = (*q == '\0' ? q : q + 1);
5155 if (p_len == 0)
5156 {
5157 /* empty path: current directory */
5158 if (getcwd (tmp, LT_PATHMAX) == NULL)
5159 lt_fatal ("getcwd failed");
5160 tmp_len = strlen(tmp);
5161 concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1);
5162 memcpy (concat_name, tmp, tmp_len);
5163 concat_name[tmp_len] = '/';
5164 strcpy (concat_name + tmp_len + 1, wrapper);
5165 }
5166 else
5167 {
5168 concat_name = XMALLOC(char, p_len + 1 + strlen(wrapper) + 1);
5169 memcpy (concat_name, p, p_len);
5170 concat_name[p_len] = '/';
5171 strcpy (concat_name + p_len + 1, wrapper);
5172 }
5173 if (check_executable(concat_name))
5174 return concat_name;
5175 XFREE(concat_name);
5176 }
5177 }
5178 /* not found in PATH; assume curdir */
5179 }
5180 /* Relative path | not found in path: prepend cwd */
4851 if (getcwd (tmp, LT_PATHMAX) == NULL) 5181 if (getcwd (tmp, LT_PATHMAX) == NULL)
4852 lt_fatal ("getcwd failed"); 5182 lt_fatal ("getcwd failed");
4853 size = strlen(tmp) + 1 + strlen(path) + 1; /* +2 for '/' and '\0' */ 5183 tmp_len = strlen(tmp);
4854 p = XMALLOC(char, size); 5184 concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1);
4855 sprintf(p, "%s%c%s", tmp, DIR_SEPARATOR, path); 5185 memcpy (concat_name, tmp, tmp_len);
4856 return p; 5186 concat_name[tmp_len] = '/';
5187 strcpy (concat_name + tmp_len + 1, wrapper);
5188
5189 if (check_executable(concat_name))
5190 return concat_name;
5191 XFREE(concat_name);
5192 return NULL;
4857} 5193}
4858 5194
4859char * 5195char *
@@ -4897,16 +5233,16 @@ lt_fatal (const char *message, ...)
4897 va_end (ap); 5233 va_end (ap);
4898} 5234}
4899EOF 5235EOF
4900 # we should really use a build-platform specific compiler 5236 # we should really use a build-platform specific compiler
4901 # here, but OTOH, the wrappers (shell script and this C one) 5237 # here, but OTOH, the wrappers (shell script and this C one)
4902 # are only useful if you want to execute the "real" binary. 5238 # are only useful if you want to execute the "real" binary.
4903 # Since the "real" binary is built for $host, then this 5239 # Since the "real" binary is built for $host, then this
4904 # wrapper might as well be built for $host, too. 5240 # wrapper might as well be built for $host, too.
4905 $run $LTCC -s -o $cwrapper $cwrappersource 5241 $run $LTCC $LTCFLAGS -s -o $cwrapper $cwrappersource
4906 ;; 5242 ;;
4907 esac 5243 esac
4908 $rm $output 5244 $rm $output
4909 trap "$rm $output; exit $EXIT_FAILURE" 1 2 15 5245 trap "$rm $output; exit $EXIT_FAILURE" 1 2 15
4910 5246
4911 $echo > $output "\ 5247 $echo > $output "\
4912#! $SHELL 5248#! $SHELL
@@ -5136,9 +5472,9 @@ fi\
5136 $run ${rm}r "$gentop" 5472 $run ${rm}r "$gentop"
5137 $show "$mkdir $gentop" 5473 $show "$mkdir $gentop"
5138 $run $mkdir "$gentop" 5474 $run $mkdir "$gentop"
5139 status=$? 5475 exit_status=$?
5140 if test "$status" -ne 0 && test ! -d "$gentop"; then 5476 if test "$exit_status" -ne 0 && test ! -d "$gentop"; then
5141 exit $status 5477 exit $exit_status
5142 fi 5478 fi
5143 fi 5479 fi
5144 5480
@@ -5805,18 +6141,7 @@ relink_command=\"$relink_command\""
5805 outputname= 6141 outputname=
5806 if test "$fast_install" = no && test -n "$relink_command"; then 6142 if test "$fast_install" = no && test -n "$relink_command"; then
5807 if test "$finalize" = yes && test -z "$run"; then 6143 if test "$finalize" = yes && test -z "$run"; then
5808 tmpdir="/tmp" 6144 tmpdir=`func_mktempdir`
5809 test -n "$TMPDIR" && tmpdir="$TMPDIR"
5810 tmpdir="$tmpdir/libtool-$$"
5811 save_umask=`umask`
5812 umask 0077
5813 if $mkdir "$tmpdir"; then
5814 umask $save_umask
5815 else
5816 umask $save_umask
5817 $echo "$modename: error: cannot create temporary directory \`$tmpdir'" 1>&2
5818 continue
5819 fi
5820 file=`$echo "X$file$stripped_ext" | $Xsed -e 's%^.*/%%'` 6145 file=`$echo "X$file$stripped_ext" | $Xsed -e 's%^.*/%%'`
5821 outputname="$tmpdir/$file" 6146 outputname="$tmpdir/$file"
5822 # Replace the output file specification. 6147 # Replace the output file specification.
@@ -5940,7 +6265,7 @@ relink_command=\"$relink_command\""
5940 # Exit here if they wanted silent mode. 6265 # Exit here if they wanted silent mode.
5941 test "$show" = : && exit $EXIT_SUCCESS 6266 test "$show" = : && exit $EXIT_SUCCESS
5942 6267
5943 $echo "----------------------------------------------------------------------" 6268 $echo "X----------------------------------------------------------------------" | $Xsed
5944 $echo "Libraries have been installed in:" 6269 $echo "Libraries have been installed in:"
5945 for libdir in $libdirs; do 6270 for libdir in $libdirs; do
5946 $echo " $libdir" 6271 $echo " $libdir"
@@ -5973,7 +6298,7 @@ relink_command=\"$relink_command\""
5973 $echo 6298 $echo
5974 $echo "See any operating system documentation about shared libraries for" 6299 $echo "See any operating system documentation about shared libraries for"
5975 $echo "more information, such as the ld(1) and ld.so(8) manual pages." 6300 $echo "more information, such as the ld(1) and ld.so(8) manual pages."
5976 $echo "----------------------------------------------------------------------" 6301 $echo "X----------------------------------------------------------------------" | $Xsed
5977 exit $EXIT_SUCCESS 6302 exit $EXIT_SUCCESS
5978 ;; 6303 ;;
5979 6304
@@ -6190,9 +6515,17 @@ relink_command=\"$relink_command\""
6190 rmfiles="$rmfiles $objdir/$n" 6515 rmfiles="$rmfiles $objdir/$n"
6191 done 6516 done
6192 test -n "$old_library" && rmfiles="$rmfiles $objdir/$old_library" 6517 test -n "$old_library" && rmfiles="$rmfiles $objdir/$old_library"
6193 test "$mode" = clean && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
6194 6518
6195 if test "$mode" = uninstall; then 6519 case "$mode" in
6520 clean)
6521 case " $library_names " in
6522 # " " in the beginning catches empty $dlname
6523 *" $dlname "*) ;;
6524 *) rmfiles="$rmfiles $objdir/$dlname" ;;
6525 esac
6526 test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
6527 ;;
6528 uninstall)
6196 if test -n "$library_names"; then 6529 if test -n "$library_names"; then
6197 # Do each command in the postuninstall commands. 6530 # Do each command in the postuninstall commands.
6198 cmds=$postuninstall_cmds 6531 cmds=$postuninstall_cmds
@@ -6225,7 +6558,8 @@ relink_command=\"$relink_command\""
6225 IFS="$save_ifs" 6558 IFS="$save_ifs"
6226 fi 6559 fi
6227 # FIXME: should reinstall the best remaining shared library. 6560 # FIXME: should reinstall the best remaining shared library.
6228 fi 6561 ;;
6562 esac
6229 fi 6563 fi
6230 ;; 6564 ;;
6231 6565
@@ -6524,12 +6858,11 @@ exit $?
6524# configuration. But we'll never go from static-only to shared-only. 6858# configuration. But we'll never go from static-only to shared-only.
6525 6859
6526# ### BEGIN LIBTOOL TAG CONFIG: disable-shared 6860# ### BEGIN LIBTOOL TAG CONFIG: disable-shared
6527build_libtool_libs=no 6861disable_libs=shared
6528build_old_libs=yes
6529# ### END LIBTOOL TAG CONFIG: disable-shared 6862# ### END LIBTOOL TAG CONFIG: disable-shared
6530 6863
6531# ### BEGIN LIBTOOL TAG CONFIG: disable-static 6864# ### BEGIN LIBTOOL TAG CONFIG: disable-static
6532build_old_libs=`case $build_libtool_libs in yes) $echo no;; *) $echo yes;; esac` 6865disable_libs=static
6533# ### END LIBTOOL TAG CONFIG: disable-static 6866# ### END LIBTOOL TAG CONFIG: disable-static
6534 6867
6535# Local Variables: 6868# Local Variables:
diff --git a/ltmain.sh b/ltmain.sh
index db4982d8..8fc56db8 100644
--- a/ltmain.sh
+++ b/ltmain.sh
@@ -43,8 +43,8 @@ EXIT_FAILURE=1
43 43
44PROGRAM=ltmain.sh 44PROGRAM=ltmain.sh
45PACKAGE=libtool 45PACKAGE=libtool
46VERSION="1.5.20 Debian 1.5.20-2" 46VERSION="1.5.22 Debian 1.5.22-2"
47TIMESTAMP=" (1.1220.2.287 2005/08/31 18:54:15)" 47TIMESTAMP=" (1.1220.2.365 2005/12/18 22:14:06)"
48 48
49# See if we are running on zsh, and set the options which allow our 49# See if we are running on zsh, and set the options which allow our
50# commands through without removal of \ escapes. 50# commands through without removal of \ escapes.
@@ -132,6 +132,8 @@ run=
132show="$echo" 132show="$echo"
133show_help= 133show_help=
134execute_dlfiles= 134execute_dlfiles=
135duplicate_deps=no
136preserve_args=
135lo2o="s/\\.lo\$/.${objext}/" 137lo2o="s/\\.lo\$/.${objext}/"
136o2lo="s/\\.${objext}\$/.lo/" 138o2lo="s/\\.${objext}\$/.lo/"
137 139
@@ -139,6 +141,43 @@ o2lo="s/\\.${objext}\$/.lo/"
139# Shell function definitions: 141# Shell function definitions:
140# This seems to be the best place for them 142# This seems to be the best place for them
141 143
144# func_mktempdir [string]
145# Make a temporary directory that won't clash with other running
146# libtool processes, and avoids race conditions if possible. If
147# given, STRING is the basename for that directory.
148func_mktempdir ()
149{
150 my_template="${TMPDIR-/tmp}/${1-$progname}"
151
152 if test "$run" = ":"; then
153 # Return a directory name, but don't create it in dry-run mode
154 my_tmpdir="${my_template}-$$"
155 else
156
157 # If mktemp works, use that first and foremost
158 my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null`
159
160 if test ! -d "$my_tmpdir"; then
161 # Failing that, at least try and use $RANDOM to avoid a race
162 my_tmpdir="${my_template}-${RANDOM-0}$$"
163
164 save_mktempdir_umask=`umask`
165 umask 0077
166 $mkdir "$my_tmpdir"
167 umask $save_mktempdir_umask
168 fi
169
170 # If we're not in dry-run mode, bomb out on failure
171 test -d "$my_tmpdir" || {
172 $echo "cannot create temporary directory \`$my_tmpdir'" 1>&2
173 exit $EXIT_FAILURE
174 }
175 fi
176
177 $echo "X$my_tmpdir" | $Xsed
178}
179
180
142# func_win32_libid arg 181# func_win32_libid arg
143# return the library type of file 'arg' 182# return the library type of file 'arg'
144# 183#
@@ -157,12 +196,11 @@ func_win32_libid ()
157 if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | \ 196 if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | \
158 $EGREP -e 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then 197 $EGREP -e 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
159 win32_nmres=`eval $NM -f posix -A $1 | \ 198 win32_nmres=`eval $NM -f posix -A $1 | \
160 sed -n -e '1,100{/ I /{x;/import/!{s/^/import/;h;p;};x;};}'` 199 $SED -n -e '1,100{/ I /{s,.*,import,;p;q;};}'`
161 if test "X$win32_nmres" = "Ximport" ; then 200 case $win32_nmres in
162 win32_libid_type="x86 archive import" 201 import*) win32_libid_type="x86 archive import";;
163 else 202 *) win32_libid_type="x86 archive static";;
164 win32_libid_type="x86 archive static" 203 esac
165 fi
166 fi 204 fi
167 ;; 205 ;;
168 *DLL*) 206 *DLL*)
@@ -295,9 +333,9 @@ func_extract_archives ()
295 $run ${rm}r "$my_xdir" 333 $run ${rm}r "$my_xdir"
296 $show "$mkdir $my_xdir" 334 $show "$mkdir $my_xdir"
297 $run $mkdir "$my_xdir" 335 $run $mkdir "$my_xdir"
298 status=$? 336 exit_status=$?
299 if test "$status" -ne 0 && test ! -d "$my_xdir"; then 337 if test "$exit_status" -ne 0 && test ! -d "$my_xdir"; then
300 exit $status 338 exit $exit_status
301 fi 339 fi
302 case $host in 340 case $host in
303 *-darwin*) 341 *-darwin*)
@@ -352,6 +390,8 @@ func_extract_archives ()
352# Darwin sucks 390# Darwin sucks
353eval std_shrext=\"$shrext_cmds\" 391eval std_shrext=\"$shrext_cmds\"
354 392
393disable_libs=no
394
355# Parse our command line options once, thoroughly. 395# Parse our command line options once, thoroughly.
356while test "$#" -gt 0 396while test "$#" -gt 0
357do 397do
@@ -468,7 +508,11 @@ do
468 preserve_args="$preserve_args $arg" 508 preserve_args="$preserve_args $arg"
469 ;; 509 ;;
470 510
471 --tag) prevopt="--tag" prev=tag ;; 511 --tag)
512 prevopt="--tag"
513 prev=tag
514 preserve_args="$preserve_args --tag"
515 ;;
472 --tag=*) 516 --tag=*)
473 set tag "$optarg" ${1+"$@"} 517 set tag "$optarg" ${1+"$@"}
474 shift 518 shift
@@ -500,6 +544,18 @@ if test -n "$prevopt"; then
500 exit $EXIT_FAILURE 544 exit $EXIT_FAILURE
501fi 545fi
502 546
547case $disable_libs in
548no)
549 ;;
550shared)
551 build_libtool_libs=no
552 build_old_libs=yes
553 ;;
554static)
555 build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac`
556 ;;
557esac
558
503# If this variable is set in any of the actions, the command in it 559# If this variable is set in any of the actions, the command in it
504# will be execed at the end. This prevents here-documents from being 560# will be execed at the end. This prevents here-documents from being
505# left over by shells. 561# left over by shells.
@@ -856,9 +912,9 @@ EOF
856 if test ! -d "${xdir}$objdir"; then 912 if test ! -d "${xdir}$objdir"; then
857 $show "$mkdir ${xdir}$objdir" 913 $show "$mkdir ${xdir}$objdir"
858 $run $mkdir ${xdir}$objdir 914 $run $mkdir ${xdir}$objdir
859 status=$? 915 exit_status=$?
860 if test "$status" -ne 0 && test ! -d "${xdir}$objdir"; then 916 if test "$exit_status" -ne 0 && test ! -d "${xdir}$objdir"; then
861 exit $status 917 exit $exit_status
862 fi 918 fi
863 fi 919 fi
864 920
@@ -1061,6 +1117,7 @@ EOF
1061 no_install=no 1117 no_install=no
1062 objs= 1118 objs=
1063 non_pic_objects= 1119 non_pic_objects=
1120 notinst_path= # paths that contain not-installed libtool libraries
1064 precious_files_regex= 1121 precious_files_regex=
1065 prefer_static_libs=no 1122 prefer_static_libs=no
1066 preload=no 1123 preload=no
@@ -1089,14 +1146,15 @@ EOF
1089 if test -n "$link_static_flag"; then 1146 if test -n "$link_static_flag"; then
1090 dlopen_self=$dlopen_self_static 1147 dlopen_self=$dlopen_self_static
1091 fi 1148 fi
1149 prefer_static_libs=yes
1092 else 1150 else
1093 if test -z "$pic_flag" && test -n "$link_static_flag"; then 1151 if test -z "$pic_flag" && test -n "$link_static_flag"; then
1094 dlopen_self=$dlopen_self_static 1152 dlopen_self=$dlopen_self_static
1095 fi 1153 fi
1154 prefer_static_libs=built
1096 fi 1155 fi
1097 build_libtool_libs=no 1156 build_libtool_libs=no
1098 build_old_libs=yes 1157 build_old_libs=yes
1099 prefer_static_libs=yes
1100 break 1158 break
1101 ;; 1159 ;;
1102 esac 1160 esac
@@ -1271,6 +1329,11 @@ EOF
1271 if test -z "$pic_object" || test "$pic_object" = none ; then 1329 if test -z "$pic_object" || test "$pic_object" = none ; then
1272 arg="$non_pic_object" 1330 arg="$non_pic_object"
1273 fi 1331 fi
1332 else
1333 # If the PIC object exists, use it instead.
1334 # $xdir was prepended to $pic_object above.
1335 non_pic_object="$pic_object"
1336 non_pic_objects="$non_pic_objects $non_pic_object"
1274 fi 1337 fi
1275 else 1338 else
1276 # Only an error if not doing a dry-run. 1339 # Only an error if not doing a dry-run.
@@ -1354,8 +1417,8 @@ EOF
1354 prev= 1417 prev=
1355 continue 1418 continue
1356 ;; 1419 ;;
1357 darwin_framework) 1420 darwin_framework|darwin_framework_skip)
1358 compiler_flags="$compiler_flags $arg" 1421 test "$prev" = "darwin_framework" && compiler_flags="$compiler_flags $arg"
1359 compile_command="$compile_command $arg" 1422 compile_command="$compile_command $arg"
1360 finalize_command="$finalize_command $arg" 1423 finalize_command="$finalize_command $arg"
1361 prev= 1424 prev=
@@ -1419,13 +1482,17 @@ EOF
1419 continue 1482 continue
1420 ;; 1483 ;;
1421 1484
1422 -framework|-arch) 1485 -framework|-arch|-isysroot)
1423 prev=darwin_framework 1486 case " $CC " in
1424 compiler_flags="$compiler_flags $arg" 1487 *" ${arg} ${1} "* | *" ${arg} ${1} "*)
1488 prev=darwin_framework_skip ;;
1489 *) compiler_flags="$compiler_flags $arg"
1490 prev=darwin_framework ;;
1491 esac
1425 compile_command="$compile_command $arg" 1492 compile_command="$compile_command $arg"
1426 finalize_command="$finalize_command $arg" 1493 finalize_command="$finalize_command $arg"
1427 continue 1494 continue
1428 ;; 1495 ;;
1429 1496
1430 -inst-prefix-dir) 1497 -inst-prefix-dir)
1431 prev=inst_prefix 1498 prev=inst_prefix
@@ -1453,7 +1520,8 @@ EOF
1453 absdir=`cd "$dir" && pwd` 1520 absdir=`cd "$dir" && pwd`
1454 if test -z "$absdir"; then 1521 if test -z "$absdir"; then
1455 $echo "$modename: cannot determine absolute directory name of \`$dir'" 1>&2 1522 $echo "$modename: cannot determine absolute directory name of \`$dir'" 1>&2
1456 exit $EXIT_FAILURE 1523 absdir="$dir"
1524 notinst_path="$notinst_path $dir"
1457 fi 1525 fi
1458 dir="$absdir" 1526 dir="$absdir"
1459 ;; 1527 ;;
@@ -1467,10 +1535,15 @@ EOF
1467 esac 1535 esac
1468 case $host in 1536 case $host in
1469 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*) 1537 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
1538 testbindir=`$echo "X$dir" | $Xsed -e 's*/lib$*/bin*'`
1470 case :$dllsearchpath: in 1539 case :$dllsearchpath: in
1471 *":$dir:"*) ;; 1540 *":$dir:"*) ;;
1472 *) dllsearchpath="$dllsearchpath:$dir";; 1541 *) dllsearchpath="$dllsearchpath:$dir";;
1473 esac 1542 esac
1543 case :$dllsearchpath: in
1544 *":$testbindir:"*) ;;
1545 *) dllsearchpath="$dllsearchpath:$testbindir";;
1546 esac
1474 ;; 1547 ;;
1475 esac 1548 esac
1476 continue 1549 continue
@@ -1479,11 +1552,11 @@ EOF
1479 -l*) 1552 -l*)
1480 if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then 1553 if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
1481 case $host in 1554 case $host in
1482 *-*-cygwin* | *-*-pw32* | *-*-beos*) 1555 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos*)
1483 # These systems don't actually have a C or math library (as such) 1556 # These systems don't actually have a C or math library (as such)
1484 continue 1557 continue
1485 ;; 1558 ;;
1486 *-*-mingw* | *-*-os2*) 1559 *-*-os2*)
1487 # These systems don't actually have a C library (as such) 1560 # These systems don't actually have a C library (as such)
1488 test "X$arg" = "X-lc" && continue 1561 test "X$arg" = "X-lc" && continue
1489 ;; 1562 ;;
@@ -1495,6 +1568,15 @@ EOF
1495 # Rhapsody C and math libraries are in the System framework 1568 # Rhapsody C and math libraries are in the System framework
1496 deplibs="$deplibs -framework System" 1569 deplibs="$deplibs -framework System"
1497 continue 1570 continue
1571 ;;
1572 *-*-sco3.2v5* | *-*-sco5v6*)
1573 # Causes problems with __ctype
1574 test "X$arg" = "X-lc" && continue
1575 ;;
1576 *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
1577 # Compiler inserts libc in the correct place for threads to work
1578 test "X$arg" = "X-lc" && continue
1579 ;;
1498 esac 1580 esac
1499 elif test "X$arg" = "X-lc_r"; then 1581 elif test "X$arg" = "X-lc_r"; then
1500 case $host in 1582 case $host in
@@ -1536,7 +1618,12 @@ EOF
1536 # +DA*, +DD* enable 64-bit mode on the HP compiler 1618 # +DA*, +DD* enable 64-bit mode on the HP compiler
1537 # -q* pass through compiler args for the IBM compiler 1619 # -q* pass through compiler args for the IBM compiler
1538 # -m* pass through architecture-specific compiler args for GCC 1620 # -m* pass through architecture-specific compiler args for GCC
1539 -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*) 1621 # -m*, -t[45]*, -txscale* pass through architecture-specific
1622 # compiler args for GCC
1623 # -pg pass through profiling flag for GCC
1624 # @file GCC response files
1625 -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*|-pg| \
1626 -t[45]*|-txscale*|@*)
1540 1627
1541 # Unknown arguments in both finalize_command and compile_command need 1628 # Unknown arguments in both finalize_command and compile_command need
1542 # to be aesthetically quoted because they are evaled later. 1629 # to be aesthetically quoted because they are evaled later.
@@ -1548,9 +1635,7 @@ EOF
1548 esac 1635 esac
1549 compile_command="$compile_command $arg" 1636 compile_command="$compile_command $arg"
1550 finalize_command="$finalize_command $arg" 1637 finalize_command="$finalize_command $arg"
1551 if test "$with_gcc" = "yes" ; then 1638 compiler_flags="$compiler_flags $arg"
1552 compiler_flags="$compiler_flags $arg"
1553 fi
1554 continue 1639 continue
1555 ;; 1640 ;;
1556 1641
@@ -1788,6 +1873,11 @@ EOF
1788 if test -z "$pic_object" || test "$pic_object" = none ; then 1873 if test -z "$pic_object" || test "$pic_object" = none ; then
1789 arg="$non_pic_object" 1874 arg="$non_pic_object"
1790 fi 1875 fi
1876 else
1877 # If the PIC object exists, use it instead.
1878 # $xdir was prepended to $pic_object above.
1879 non_pic_object="$pic_object"
1880 non_pic_objects="$non_pic_objects $non_pic_object"
1791 fi 1881 fi
1792 else 1882 else
1793 # Only an error if not doing a dry-run. 1883 # Only an error if not doing a dry-run.
@@ -1893,9 +1983,9 @@ EOF
1893 if test ! -d "$output_objdir"; then 1983 if test ! -d "$output_objdir"; then
1894 $show "$mkdir $output_objdir" 1984 $show "$mkdir $output_objdir"
1895 $run $mkdir $output_objdir 1985 $run $mkdir $output_objdir
1896 status=$? 1986 exit_status=$?
1897 if test "$status" -ne 0 && test ! -d "$output_objdir"; then 1987 if test "$exit_status" -ne 0 && test ! -d "$output_objdir"; then
1898 exit $status 1988 exit $exit_status
1899 fi 1989 fi
1900 fi 1990 fi
1901 1991
@@ -1958,7 +2048,6 @@ EOF
1958 newlib_search_path= 2048 newlib_search_path=
1959 need_relink=no # whether we're linking any uninstalled libtool libraries 2049 need_relink=no # whether we're linking any uninstalled libtool libraries
1960 notinst_deplibs= # not-installed libtool libraries 2050 notinst_deplibs= # not-installed libtool libraries
1961 notinst_path= # paths that contain not-installed libtool libraries
1962 case $linkmode in 2051 case $linkmode in
1963 lib) 2052 lib)
1964 passes="conv link" 2053 passes="conv link"
@@ -2197,7 +2286,7 @@ EOF
2197 esac # case $deplib 2286 esac # case $deplib
2198 if test "$found" = yes || test -f "$lib"; then : 2287 if test "$found" = yes || test -f "$lib"; then :
2199 else 2288 else
2200 $echo "$modename: cannot find the library \`$lib'" 1>&2 2289 $echo "$modename: cannot find the library \`$lib' or unhandled argument \`$deplib'" 1>&2
2201 exit $EXIT_FAILURE 2290 exit $EXIT_FAILURE
2202 fi 2291 fi
2203 2292
@@ -2448,8 +2537,12 @@ EOF
2448 fi 2537 fi
2449 2538
2450 link_static=no # Whether the deplib will be linked statically 2539 link_static=no # Whether the deplib will be linked statically
2540 use_static_libs=$prefer_static_libs
2541 if test "$use_static_libs" = built && test "$installed" = yes ; then
2542 use_static_libs=no
2543 fi
2451 if test -n "$library_names" && 2544 if test -n "$library_names" &&
2452 { test "$prefer_static_libs" = no || test -z "$old_library"; }; then 2545 { test "$use_static_libs" = no || test -z "$old_library"; }; then
2453 if test "$installed" = no; then 2546 if test "$installed" = no; then
2454 notinst_deplibs="$notinst_deplibs $lib" 2547 notinst_deplibs="$notinst_deplibs $lib"
2455 need_relink=yes 2548 need_relink=yes
@@ -2562,11 +2655,15 @@ EOF
2562 if test "$hardcode_direct" = no; then 2655 if test "$hardcode_direct" = no; then
2563 add="$dir/$linklib" 2656 add="$dir/$linklib"
2564 case $host in 2657 case $host in
2565 *-*-sco3.2v5* ) add_dir="-L$dir" ;; 2658 *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;;
2659 *-*-sysv4*uw2*) add_dir="-L$dir" ;;
2660 *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \
2661 *-*-unixware7*) add_dir="-L$dir" ;;
2566 *-*-darwin* ) 2662 *-*-darwin* )
2567 # if the lib is a module then we can not link against 2663 # if the lib is a module then we can not link against
2568 # it, someone is ignoring the new warnings I added 2664 # it, someone is ignoring the new warnings I added
2569 if /usr/bin/file -L $add 2> /dev/null | $EGREP "bundle" >/dev/null ; then 2665 if /usr/bin/file -L $add 2> /dev/null |
2666 $EGREP ": [^:]* bundle" >/dev/null ; then
2570 $echo "** Warning, lib $linklib is a module, not a shared library" 2667 $echo "** Warning, lib $linklib is a module, not a shared library"
2571 if test -z "$old_library" ; then 2668 if test -z "$old_library" ; then
2572 $echo 2669 $echo
@@ -3322,9 +3419,9 @@ EOF
3322 3419
3323 # Eliminate all temporary directories. 3420 # Eliminate all temporary directories.
3324 for path in $notinst_path; do 3421 for path in $notinst_path; do
3325 lib_search_path=`$echo "$lib_search_path " | ${SED} -e 's% $path % %g'` 3422 lib_search_path=`$echo "$lib_search_path " | ${SED} -e "s% $path % %g"`
3326 deplibs=`$echo "$deplibs " | ${SED} -e 's% -L$path % %g'` 3423 deplibs=`$echo "$deplibs " | ${SED} -e "s% -L$path % %g"`
3327 dependency_libs=`$echo "$dependency_libs " | ${SED} -e 's% -L$path % %g'` 3424 dependency_libs=`$echo "$dependency_libs " | ${SED} -e "s% -L$path % %g"`
3328 done 3425 done
3329 3426
3330 if test -n "$xrpath"; then 3427 if test -n "$xrpath"; then
@@ -3377,7 +3474,12 @@ EOF
3377 ;; 3474 ;;
3378 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) 3475 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
3379 # Do not include libc due to us having libc/libc_r. 3476 # Do not include libc due to us having libc/libc_r.
3380 test "X$arg" = "X-lc" && continue 3477 ;;
3478 *-*-sco3.2v5* | *-*-sco5v6*)
3479 # Causes problems with __ctype
3480 ;;
3481 *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
3482 # Compiler inserts libc in the correct place for threads to work
3381 ;; 3483 ;;
3382 *) 3484 *)
3383 # Add libc to deplibs on all other systems if necessary. 3485 # Add libc to deplibs on all other systems if necessary.
@@ -3421,7 +3523,7 @@ EOF
3421 int main() { return 0; } 3523 int main() { return 0; }
3422EOF 3524EOF
3423 $rm conftest 3525 $rm conftest
3424 $LTCC -o conftest conftest.c $deplibs 3526 $LTCC $LTCFLAGS -o conftest conftest.c $deplibs
3425 if test "$?" -eq 0 ; then 3527 if test "$?" -eq 0 ; then
3426 ldd_output=`ldd conftest` 3528 ldd_output=`ldd conftest`
3427 for i in $deplibs; do 3529 for i in $deplibs; do
@@ -3466,7 +3568,7 @@ EOF
3466 # If $name is empty we are operating on a -L argument. 3568 # If $name is empty we are operating on a -L argument.
3467 if test "$name" != "" && test "$name" != "0"; then 3569 if test "$name" != "" && test "$name" != "0"; then
3468 $rm conftest 3570 $rm conftest
3469 $LTCC -o conftest conftest.c $i 3571 $LTCC $LTCFLAGS -o conftest conftest.c $i
3470 # Did it work? 3572 # Did it work?
3471 if test "$?" -eq 0 ; then 3573 if test "$?" -eq 0 ; then
3472 ldd_output=`ldd conftest` 3574 ldd_output=`ldd conftest`
@@ -3713,6 +3815,35 @@ EOF
3713 deplibs=$newdeplibs 3815 deplibs=$newdeplibs
3714 fi 3816 fi
3715 3817
3818
3819 # move library search paths that coincide with paths to not yet
3820 # installed libraries to the beginning of the library search list
3821 new_libs=
3822 for path in $notinst_path; do
3823 case " $new_libs " in
3824 *" -L$path/$objdir "*) ;;
3825 *)
3826 case " $deplibs " in
3827 *" -L$path/$objdir "*)
3828 new_libs="$new_libs -L$path/$objdir" ;;
3829 esac
3830 ;;
3831 esac
3832 done
3833 for deplib in $deplibs; do
3834 case $deplib in
3835 -L*)
3836 case " $new_libs " in
3837 *" $deplib "*) ;;
3838 *) new_libs="$new_libs $deplib" ;;
3839 esac
3840 ;;
3841 *) new_libs="$new_libs $deplib" ;;
3842 esac
3843 done
3844 deplibs="$new_libs"
3845
3846
3716 # All the library-specific variables (install_libdir is set above). 3847 # All the library-specific variables (install_libdir is set above).
3717 library_names= 3848 library_names=
3718 old_library= 3849 old_library=
@@ -3796,6 +3927,7 @@ EOF
3796 fi 3927 fi
3797 3928
3798 lib="$output_objdir/$realname" 3929 lib="$output_objdir/$realname"
3930 linknames=
3799 for link 3931 for link
3800 do 3932 do
3801 linknames="$linknames $link" 3933 linknames="$linknames $link"
@@ -4227,6 +4359,35 @@ EOF
4227 ;; 4359 ;;
4228 esac 4360 esac
4229 4361
4362
4363 # move library search paths that coincide with paths to not yet
4364 # installed libraries to the beginning of the library search list
4365 new_libs=
4366 for path in $notinst_path; do
4367 case " $new_libs " in
4368 *" -L$path/$objdir "*) ;;
4369 *)
4370 case " $compile_deplibs " in
4371 *" -L$path/$objdir "*)
4372 new_libs="$new_libs -L$path/$objdir" ;;
4373 esac
4374 ;;
4375 esac
4376 done
4377 for deplib in $compile_deplibs; do
4378 case $deplib in
4379 -L*)
4380 case " $new_libs " in
4381 *" $deplib "*) ;;
4382 *) new_libs="$new_libs $deplib" ;;
4383 esac
4384 ;;
4385 *) new_libs="$new_libs $deplib" ;;
4386 esac
4387 done
4388 compile_deplibs="$new_libs"
4389
4390
4230 compile_command="$compile_command $compile_deplibs" 4391 compile_command="$compile_command $compile_deplibs"
4231 finalize_command="$finalize_command $finalize_deplibs" 4392 finalize_command="$finalize_command $finalize_deplibs"
4232 4393
@@ -4271,10 +4432,15 @@ EOF
4271 fi 4432 fi
4272 case $host in 4433 case $host in
4273 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*) 4434 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
4435 testbindir=`$echo "X$libdir" | $Xsed -e 's*/lib$*/bin*'`
4274 case :$dllsearchpath: in 4436 case :$dllsearchpath: in
4275 *":$libdir:"*) ;; 4437 *":$libdir:"*) ;;
4276 *) dllsearchpath="$dllsearchpath:$libdir";; 4438 *) dllsearchpath="$dllsearchpath:$libdir";;
4277 esac 4439 esac
4440 case :$dllsearchpath: in
4441 *":$testbindir:"*) ;;
4442 *) dllsearchpath="$dllsearchpath:$testbindir";;
4443 esac
4278 ;; 4444 ;;
4279 esac 4445 esac
4280 done 4446 done
@@ -4391,10 +4557,22 @@ extern \"C\" {
4391 export_symbols="$output_objdir/$outputname.exp" 4557 export_symbols="$output_objdir/$outputname.exp"
4392 $run $rm $export_symbols 4558 $run $rm $export_symbols
4393 $run eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"' 4559 $run eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
4560 case $host in
4561 *cygwin* | *mingw* )
4562 $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
4563 $run eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"'
4564 ;;
4565 esac
4394 else 4566 else
4395 $run eval "${SED} -e 's/\([ ][.*^$]\)/\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"' 4567 $run eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
4396 $run eval 'grep -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T' 4568 $run eval 'grep -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
4397 $run eval 'mv "$nlist"T "$nlist"' 4569 $run eval 'mv "$nlist"T "$nlist"'
4570 case $host in
4571 *cygwin* | *mingw* )
4572 $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
4573 $run eval 'cat "$nlist" >> "$output_objdir/$outputname.def"'
4574 ;;
4575 esac
4398 fi 4576 fi
4399 fi 4577 fi
4400 4578
@@ -4511,16 +4689,29 @@ static const void *lt_preloaded_setup() {
4511 esac 4689 esac
4512 4690
4513 # Now compile the dynamic symbol file. 4691 # Now compile the dynamic symbol file.
4514 $show "(cd $output_objdir && $LTCC -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")" 4692 $show "(cd $output_objdir && $LTCC $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")"
4515 $run eval '(cd $output_objdir && $LTCC -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $? 4693 $run eval '(cd $output_objdir && $LTCC $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $?
4516 4694
4517 # Clean up the generated files. 4695 # Clean up the generated files.
4518 $show "$rm $output_objdir/$dlsyms $nlist ${nlist}S ${nlist}T" 4696 $show "$rm $output_objdir/$dlsyms $nlist ${nlist}S ${nlist}T"
4519 $run $rm "$output_objdir/$dlsyms" "$nlist" "${nlist}S" "${nlist}T" 4697 $run $rm "$output_objdir/$dlsyms" "$nlist" "${nlist}S" "${nlist}T"
4520 4698
4521 # Transform the symbol file into the correct name. 4699 # Transform the symbol file into the correct name.
4522 compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"` 4700 case $host in
4523 finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"` 4701 *cygwin* | *mingw* )
4702 if test -f "$output_objdir/${outputname}.def" ; then
4703 compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%"`
4704 finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%"`
4705 else
4706 compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
4707 finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
4708 fi
4709 ;;
4710 * )
4711 compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
4712 finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
4713 ;;
4714 esac
4524 ;; 4715 ;;
4525 *) 4716 *)
4526 $echo "$modename: unknown suffix for \`$dlsyms'" 1>&2 4717 $echo "$modename: unknown suffix for \`$dlsyms'" 1>&2
@@ -4545,7 +4736,7 @@ static const void *lt_preloaded_setup() {
4545 # We have no uninstalled library dependencies, so finalize right now. 4736 # We have no uninstalled library dependencies, so finalize right now.
4546 $show "$link_command" 4737 $show "$link_command"
4547 $run eval "$link_command" 4738 $run eval "$link_command"
4548 status=$? 4739 exit_status=$?
4549 4740
4550 # Delete the generated files. 4741 # Delete the generated files.
4551 if test -n "$dlsyms"; then 4742 if test -n "$dlsyms"; then
@@ -4553,7 +4744,7 @@ static const void *lt_preloaded_setup() {
4553 $run $rm "$output_objdir/${outputname}S.${objext}" 4744 $run $rm "$output_objdir/${outputname}S.${objext}"
4554 fi 4745 fi
4555 4746
4556 exit $status 4747 exit $exit_status
4557 fi 4748 fi
4558 4749
4559 if test -n "$shlibpath_var"; then 4750 if test -n "$shlibpath_var"; then
@@ -4693,10 +4884,12 @@ static const void *lt_preloaded_setup() {
4693 esac 4884 esac
4694 case $host in 4885 case $host in
4695 *cygwin* | *mingw* ) 4886 *cygwin* | *mingw* )
4696 cwrappersource=`$echo ${objdir}/lt-${outputname}.c` 4887 output_name=`basename $output`
4697 cwrapper=`$echo ${output}.exe` 4888 output_path=`dirname $output`
4698 $rm $cwrappersource $cwrapper 4889 cwrappersource="$output_path/$objdir/lt-$output_name.c"
4699 trap "$rm $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15 4890 cwrapper="$output_path/$output_name.exe"
4891 $rm $cwrappersource $cwrapper
4892 trap "$rm $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
4700 4893
4701 cat > $cwrappersource <<EOF 4894 cat > $cwrappersource <<EOF
4702 4895
@@ -4721,6 +4914,9 @@ EOF
4721#include <malloc.h> 4914#include <malloc.h>
4722#include <stdarg.h> 4915#include <stdarg.h>
4723#include <assert.h> 4916#include <assert.h>
4917#include <string.h>
4918#include <ctype.h>
4919#include <sys/stat.h>
4724 4920
4725#if defined(PATH_MAX) 4921#if defined(PATH_MAX)
4726# define LT_PATHMAX PATH_MAX 4922# define LT_PATHMAX PATH_MAX
@@ -4731,15 +4927,19 @@ EOF
4731#endif 4927#endif
4732 4928
4733#ifndef DIR_SEPARATOR 4929#ifndef DIR_SEPARATOR
4734#define DIR_SEPARATOR '/' 4930# define DIR_SEPARATOR '/'
4931# define PATH_SEPARATOR ':'
4735#endif 4932#endif
4736 4933
4737#if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \ 4934#if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
4738 defined (__OS2__) 4935 defined (__OS2__)
4739#define HAVE_DOS_BASED_FILE_SYSTEM 4936# define HAVE_DOS_BASED_FILE_SYSTEM
4740#ifndef DIR_SEPARATOR_2 4937# ifndef DIR_SEPARATOR_2
4741#define DIR_SEPARATOR_2 '\\' 4938# define DIR_SEPARATOR_2 '\\'
4742#endif 4939# endif
4940# ifndef PATH_SEPARATOR_2
4941# define PATH_SEPARATOR_2 ';'
4942# endif
4743#endif 4943#endif
4744 4944
4745#ifndef DIR_SEPARATOR_2 4945#ifndef DIR_SEPARATOR_2
@@ -4749,17 +4949,32 @@ EOF
4749 (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2)) 4949 (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
4750#endif /* DIR_SEPARATOR_2 */ 4950#endif /* DIR_SEPARATOR_2 */
4751 4951
4952#ifndef PATH_SEPARATOR_2
4953# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR)
4954#else /* PATH_SEPARATOR_2 */
4955# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2)
4956#endif /* PATH_SEPARATOR_2 */
4957
4752#define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type))) 4958#define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type)))
4753#define XFREE(stale) do { \ 4959#define XFREE(stale) do { \
4754 if (stale) { free ((void *) stale); stale = 0; } \ 4960 if (stale) { free ((void *) stale); stale = 0; } \
4755} while (0) 4961} while (0)
4756 4962
4963/* -DDEBUG is fairly common in CFLAGS. */
4964#undef DEBUG
4965#if defined DEBUGWRAPPER
4966# define DEBUG(format, ...) fprintf(stderr, format, __VA_ARGS__)
4967#else
4968# define DEBUG(format, ...)
4969#endif
4970
4757const char *program_name = NULL; 4971const char *program_name = NULL;
4758 4972
4759void * xmalloc (size_t num); 4973void * xmalloc (size_t num);
4760char * xstrdup (const char *string); 4974char * xstrdup (const char *string);
4761char * basename (const char *name); 4975const char * base_name (const char *name);
4762char * fnqualify(const char *path); 4976char * find_executable(const char *wrapper);
4977int check_executable(const char *path);
4763char * strendzap(char *str, const char *pat); 4978char * strendzap(char *str, const char *pat);
4764void lt_fatal (const char *message, ...); 4979void lt_fatal (const char *message, ...);
4765 4980
@@ -4769,29 +4984,50 @@ main (int argc, char *argv[])
4769 char **newargz; 4984 char **newargz;
4770 int i; 4985 int i;
4771 4986
4772 program_name = (char *) xstrdup ((char *) basename (argv[0])); 4987 program_name = (char *) xstrdup (base_name (argv[0]));
4988 DEBUG("(main) argv[0] : %s\n",argv[0]);
4989 DEBUG("(main) program_name : %s\n",program_name);
4773 newargz = XMALLOC(char *, argc+2); 4990 newargz = XMALLOC(char *, argc+2);
4774EOF 4991EOF
4775 4992
4776 cat >> $cwrappersource <<EOF 4993 cat >> $cwrappersource <<EOF
4777 newargz[0] = "$SHELL"; 4994 newargz[0] = (char *) xstrdup("$SHELL");
4778EOF 4995EOF
4779 4996
4780 cat >> $cwrappersource <<"EOF" 4997 cat >> $cwrappersource <<"EOF"
4781 newargz[1] = fnqualify(argv[0]); 4998 newargz[1] = find_executable(argv[0]);
4999 if (newargz[1] == NULL)
5000 lt_fatal("Couldn't find %s", argv[0]);
5001 DEBUG("(main) found exe at : %s\n",newargz[1]);
4782 /* we know the script has the same name, without the .exe */ 5002 /* we know the script has the same name, without the .exe */
4783 /* so make sure newargz[1] doesn't end in .exe */ 5003 /* so make sure newargz[1] doesn't end in .exe */
4784 strendzap(newargz[1],".exe"); 5004 strendzap(newargz[1],".exe");
4785 for (i = 1; i < argc; i++) 5005 for (i = 1; i < argc; i++)
4786 newargz[i+1] = xstrdup(argv[i]); 5006 newargz[i+1] = xstrdup(argv[i]);
4787 newargz[argc+1] = NULL; 5007 newargz[argc+1] = NULL;
5008
5009 for (i=0; i<argc+1; i++)
5010 {
5011 DEBUG("(main) newargz[%d] : %s\n",i,newargz[i]);
5012 ;
5013 }
5014
4788EOF 5015EOF
4789 5016
4790 cat >> $cwrappersource <<EOF 5017 case $host_os in
5018 mingw*)
5019 cat >> $cwrappersource <<EOF
5020 execv("$SHELL",(char const **)newargz);
5021EOF
5022 ;;
5023 *)
5024 cat >> $cwrappersource <<EOF
4791 execv("$SHELL",newargz); 5025 execv("$SHELL",newargz);
4792EOF 5026EOF
5027 ;;
5028 esac
4793 5029
4794 cat >> $cwrappersource <<"EOF" 5030 cat >> $cwrappersource <<"EOF"
4795 return 127; 5031 return 127;
4796} 5032}
4797 5033
@@ -4812,48 +5048,148 @@ xstrdup (const char *string)
4812; 5048;
4813} 5049}
4814 5050
4815char * 5051const char *
4816basename (const char *name) 5052base_name (const char *name)
4817{ 5053{
4818 const char *base; 5054 const char *base;
4819 5055
4820#if defined (HAVE_DOS_BASED_FILE_SYSTEM) 5056#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
4821 /* Skip over the disk name in MSDOS pathnames. */ 5057 /* Skip over the disk name in MSDOS pathnames. */
4822 if (isalpha (name[0]) && name[1] == ':') 5058 if (isalpha ((unsigned char)name[0]) && name[1] == ':')
4823 name += 2; 5059 name += 2;
4824#endif 5060#endif
4825 5061
4826 for (base = name; *name; name++) 5062 for (base = name; *name; name++)
4827 if (IS_DIR_SEPARATOR (*name)) 5063 if (IS_DIR_SEPARATOR (*name))
4828 base = name + 1; 5064 base = name + 1;
4829 return (char *) base; 5065 return base;
5066}
5067
5068int
5069check_executable(const char * path)
5070{
5071 struct stat st;
5072
5073 DEBUG("(check_executable) : %s\n", path ? (*path ? path : "EMPTY!") : "NULL!");
5074 if ((!path) || (!*path))
5075 return 0;
5076
5077 if ((stat (path, &st) >= 0) &&
5078 (
5079 /* MinGW & native WIN32 do not support S_IXOTH or S_IXGRP */
5080#if defined (S_IXOTH)
5081 ((st.st_mode & S_IXOTH) == S_IXOTH) ||
5082#endif
5083#if defined (S_IXGRP)
5084 ((st.st_mode & S_IXGRP) == S_IXGRP) ||
5085#endif
5086 ((st.st_mode & S_IXUSR) == S_IXUSR))
5087 )
5088 return 1;
5089 else
5090 return 0;
4830} 5091}
4831 5092
5093/* Searches for the full path of the wrapper. Returns
5094 newly allocated full path name if found, NULL otherwise */
4832char * 5095char *
4833fnqualify(const char *path) 5096find_executable (const char* wrapper)
4834{ 5097{
4835 size_t size; 5098 int has_slash = 0;
4836 char *p; 5099 const char* p;
5100 const char* p_next;
5101 /* static buffer for getcwd */
4837 char tmp[LT_PATHMAX + 1]; 5102 char tmp[LT_PATHMAX + 1];
5103 int tmp_len;
5104 char* concat_name;
4838 5105
4839 assert(path != NULL); 5106 DEBUG("(find_executable) : %s\n", wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!");
4840 5107
4841 /* Is it qualified already? */ 5108 if ((wrapper == NULL) || (*wrapper == '\0'))
5109 return NULL;
5110
5111 /* Absolute path? */
4842#if defined (HAVE_DOS_BASED_FILE_SYSTEM) 5112#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
4843 if (isalpha (path[0]) && path[1] == ':') 5113 if (isalpha ((unsigned char)wrapper[0]) && wrapper[1] == ':')
4844 return xstrdup (path); 5114 {
5115 concat_name = xstrdup (wrapper);
5116 if (check_executable(concat_name))
5117 return concat_name;
5118 XFREE(concat_name);
5119 }
5120 else
5121 {
5122#endif
5123 if (IS_DIR_SEPARATOR (wrapper[0]))
5124 {
5125 concat_name = xstrdup (wrapper);
5126 if (check_executable(concat_name))
5127 return concat_name;
5128 XFREE(concat_name);
5129 }
5130#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
5131 }
4845#endif 5132#endif
4846 if (IS_DIR_SEPARATOR (path[0]))
4847 return xstrdup (path);
4848 5133
4849 /* prepend the current directory */ 5134 for (p = wrapper; *p; p++)
4850 /* doesn't handle '~' */ 5135 if (*p == '/')
5136 {
5137 has_slash = 1;
5138 break;
5139 }
5140 if (!has_slash)
5141 {
5142 /* no slashes; search PATH */
5143 const char* path = getenv ("PATH");
5144 if (path != NULL)
5145 {
5146 for (p = path; *p; p = p_next)
5147 {
5148 const char* q;
5149 size_t p_len;
5150 for (q = p; *q; q++)
5151 if (IS_PATH_SEPARATOR(*q))
5152 break;
5153 p_len = q - p;
5154 p_next = (*q == '\0' ? q : q + 1);
5155 if (p_len == 0)
5156 {
5157 /* empty path: current directory */
5158 if (getcwd (tmp, LT_PATHMAX) == NULL)
5159 lt_fatal ("getcwd failed");
5160 tmp_len = strlen(tmp);
5161 concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1);
5162 memcpy (concat_name, tmp, tmp_len);
5163 concat_name[tmp_len] = '/';
5164 strcpy (concat_name + tmp_len + 1, wrapper);
5165 }
5166 else
5167 {
5168 concat_name = XMALLOC(char, p_len + 1 + strlen(wrapper) + 1);
5169 memcpy (concat_name, p, p_len);
5170 concat_name[p_len] = '/';
5171 strcpy (concat_name + p_len + 1, wrapper);
5172 }
5173 if (check_executable(concat_name))
5174 return concat_name;
5175 XFREE(concat_name);
5176 }
5177 }
5178 /* not found in PATH; assume curdir */
5179 }
5180 /* Relative path | not found in path: prepend cwd */
4851 if (getcwd (tmp, LT_PATHMAX) == NULL) 5181 if (getcwd (tmp, LT_PATHMAX) == NULL)
4852 lt_fatal ("getcwd failed"); 5182 lt_fatal ("getcwd failed");
4853 size = strlen(tmp) + 1 + strlen(path) + 1; /* +2 for '/' and '\0' */ 5183 tmp_len = strlen(tmp);
4854 p = XMALLOC(char, size); 5184 concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1);
4855 sprintf(p, "%s%c%s", tmp, DIR_SEPARATOR, path); 5185 memcpy (concat_name, tmp, tmp_len);
4856 return p; 5186 concat_name[tmp_len] = '/';
5187 strcpy (concat_name + tmp_len + 1, wrapper);
5188
5189 if (check_executable(concat_name))
5190 return concat_name;
5191 XFREE(concat_name);
5192 return NULL;
4857} 5193}
4858 5194
4859char * 5195char *
@@ -4897,16 +5233,16 @@ lt_fatal (const char *message, ...)
4897 va_end (ap); 5233 va_end (ap);
4898} 5234}
4899EOF 5235EOF
4900 # we should really use a build-platform specific compiler 5236 # we should really use a build-platform specific compiler
4901 # here, but OTOH, the wrappers (shell script and this C one) 5237 # here, but OTOH, the wrappers (shell script and this C one)
4902 # are only useful if you want to execute the "real" binary. 5238 # are only useful if you want to execute the "real" binary.
4903 # Since the "real" binary is built for $host, then this 5239 # Since the "real" binary is built for $host, then this
4904 # wrapper might as well be built for $host, too. 5240 # wrapper might as well be built for $host, too.
4905 $run $LTCC -s -o $cwrapper $cwrappersource 5241 $run $LTCC $LTCFLAGS -s -o $cwrapper $cwrappersource
4906 ;; 5242 ;;
4907 esac 5243 esac
4908 $rm $output 5244 $rm $output
4909 trap "$rm $output; exit $EXIT_FAILURE" 1 2 15 5245 trap "$rm $output; exit $EXIT_FAILURE" 1 2 15
4910 5246
4911 $echo > $output "\ 5247 $echo > $output "\
4912#! $SHELL 5248#! $SHELL
@@ -5136,9 +5472,9 @@ fi\
5136 $run ${rm}r "$gentop" 5472 $run ${rm}r "$gentop"
5137 $show "$mkdir $gentop" 5473 $show "$mkdir $gentop"
5138 $run $mkdir "$gentop" 5474 $run $mkdir "$gentop"
5139 status=$? 5475 exit_status=$?
5140 if test "$status" -ne 0 && test ! -d "$gentop"; then 5476 if test "$exit_status" -ne 0 && test ! -d "$gentop"; then
5141 exit $status 5477 exit $exit_status
5142 fi 5478 fi
5143 fi 5479 fi
5144 5480
@@ -5805,18 +6141,7 @@ relink_command=\"$relink_command\""
5805 outputname= 6141 outputname=
5806 if test "$fast_install" = no && test -n "$relink_command"; then 6142 if test "$fast_install" = no && test -n "$relink_command"; then
5807 if test "$finalize" = yes && test -z "$run"; then 6143 if test "$finalize" = yes && test -z "$run"; then
5808 tmpdir="/tmp" 6144 tmpdir=`func_mktempdir`
5809 test -n "$TMPDIR" && tmpdir="$TMPDIR"
5810 tmpdir="$tmpdir/libtool-$$"
5811 save_umask=`umask`
5812 umask 0077
5813 if $mkdir "$tmpdir"; then
5814 umask $save_umask
5815 else
5816 umask $save_umask
5817 $echo "$modename: error: cannot create temporary directory \`$tmpdir'" 1>&2
5818 continue
5819 fi
5820 file=`$echo "X$file$stripped_ext" | $Xsed -e 's%^.*/%%'` 6145 file=`$echo "X$file$stripped_ext" | $Xsed -e 's%^.*/%%'`
5821 outputname="$tmpdir/$file" 6146 outputname="$tmpdir/$file"
5822 # Replace the output file specification. 6147 # Replace the output file specification.
@@ -5940,7 +6265,7 @@ relink_command=\"$relink_command\""
5940 # Exit here if they wanted silent mode. 6265 # Exit here if they wanted silent mode.
5941 test "$show" = : && exit $EXIT_SUCCESS 6266 test "$show" = : && exit $EXIT_SUCCESS
5942 6267
5943 $echo "----------------------------------------------------------------------" 6268 $echo "X----------------------------------------------------------------------" | $Xsed
5944 $echo "Libraries have been installed in:" 6269 $echo "Libraries have been installed in:"
5945 for libdir in $libdirs; do 6270 for libdir in $libdirs; do
5946 $echo " $libdir" 6271 $echo " $libdir"
@@ -5973,7 +6298,7 @@ relink_command=\"$relink_command\""
5973 $echo 6298 $echo
5974 $echo "See any operating system documentation about shared libraries for" 6299 $echo "See any operating system documentation about shared libraries for"
5975 $echo "more information, such as the ld(1) and ld.so(8) manual pages." 6300 $echo "more information, such as the ld(1) and ld.so(8) manual pages."
5976 $echo "----------------------------------------------------------------------" 6301 $echo "X----------------------------------------------------------------------" | $Xsed
5977 exit $EXIT_SUCCESS 6302 exit $EXIT_SUCCESS
5978 ;; 6303 ;;
5979 6304
@@ -6190,9 +6515,17 @@ relink_command=\"$relink_command\""
6190 rmfiles="$rmfiles $objdir/$n" 6515 rmfiles="$rmfiles $objdir/$n"
6191 done 6516 done
6192 test -n "$old_library" && rmfiles="$rmfiles $objdir/$old_library" 6517 test -n "$old_library" && rmfiles="$rmfiles $objdir/$old_library"
6193 test "$mode" = clean && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
6194 6518
6195 if test "$mode" = uninstall; then 6519 case "$mode" in
6520 clean)
6521 case " $library_names " in
6522 # " " in the beginning catches empty $dlname
6523 *" $dlname "*) ;;
6524 *) rmfiles="$rmfiles $objdir/$dlname" ;;
6525 esac
6526 test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
6527 ;;
6528 uninstall)
6196 if test -n "$library_names"; then 6529 if test -n "$library_names"; then
6197 # Do each command in the postuninstall commands. 6530 # Do each command in the postuninstall commands.
6198 cmds=$postuninstall_cmds 6531 cmds=$postuninstall_cmds
@@ -6225,7 +6558,8 @@ relink_command=\"$relink_command\""
6225 IFS="$save_ifs" 6558 IFS="$save_ifs"
6226 fi 6559 fi
6227 # FIXME: should reinstall the best remaining shared library. 6560 # FIXME: should reinstall the best remaining shared library.
6228 fi 6561 ;;
6562 esac
6229 fi 6563 fi
6230 ;; 6564 ;;
6231 6565
@@ -6524,12 +6858,11 @@ exit $?
6524# configuration. But we'll never go from static-only to shared-only. 6858# configuration. But we'll never go from static-only to shared-only.
6525 6859
6526# ### BEGIN LIBTOOL TAG CONFIG: disable-shared 6860# ### BEGIN LIBTOOL TAG CONFIG: disable-shared
6527build_libtool_libs=no 6861disable_libs=shared
6528build_old_libs=yes
6529# ### END LIBTOOL TAG CONFIG: disable-shared 6862# ### END LIBTOOL TAG CONFIG: disable-shared
6530 6863
6531# ### BEGIN LIBTOOL TAG CONFIG: disable-static 6864# ### BEGIN LIBTOOL TAG CONFIG: disable-static
6532build_old_libs=`case $build_libtool_libs in yes) $echo no;; *) $echo yes;; esac` 6865disable_libs=static
6533# ### END LIBTOOL TAG CONFIG: disable-static 6866# ### END LIBTOOL TAG CONFIG: disable-static
6534 6867
6535# Local Variables: 6868# Local Variables: