diff options
Diffstat (limited to 'm4/libtool.m4')
-rw-r--r-- | m4/libtool.m4 | 275 |
1 files changed, 135 insertions, 140 deletions
diff --git a/m4/libtool.m4 b/m4/libtool.m4 index 717e769..c4c0294 100644 --- a/m4/libtool.m4 +++ b/m4/libtool.m4 | |||
@@ -1,7 +1,6 @@ | |||
1 | # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- | 1 | # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- |
2 | # | 2 | # |
3 | # Copyright (C) 1996-2001, 2003-2019, 2021-2022 Free Software | 3 | # Copyright (C) 1996-2001, 2003-2015 Free Software Foundation, Inc. |
4 | # Foundation, Inc. | ||
5 | # Written by Gordon Matzigkeit, 1996 | 4 | # Written by Gordon Matzigkeit, 1996 |
6 | # | 5 | # |
7 | # This file is free software; the Free Software Foundation gives | 6 | # This file is free software; the Free Software Foundation gives |
@@ -32,7 +31,7 @@ m4_define([_LT_COPYING], [dnl | |||
32 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | 31 | # along with this program. If not, see <http://www.gnu.org/licenses/>. |
33 | ]) | 32 | ]) |
34 | 33 | ||
35 | # serial 59 LT_INIT | 34 | # serial 58 LT_INIT |
36 | 35 | ||
37 | 36 | ||
38 | # LT_PREREQ(VERSION) | 37 | # LT_PREREQ(VERSION) |
@@ -182,7 +181,6 @@ m4_require([_LT_FILEUTILS_DEFAULTS])dnl | |||
182 | m4_require([_LT_CHECK_SHELL_FEATURES])dnl | 181 | m4_require([_LT_CHECK_SHELL_FEATURES])dnl |
183 | m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl | 182 | m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl |
184 | m4_require([_LT_CMD_RELOAD])dnl | 183 | m4_require([_LT_CMD_RELOAD])dnl |
185 | m4_require([_LT_DECL_FILECMD])dnl | ||
186 | m4_require([_LT_CHECK_MAGIC_METHOD])dnl | 184 | m4_require([_LT_CHECK_MAGIC_METHOD])dnl |
187 | m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl | 185 | m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl |
188 | m4_require([_LT_CMD_OLD_ARCHIVE])dnl | 186 | m4_require([_LT_CMD_OLD_ARCHIVE])dnl |
@@ -221,8 +219,8 @@ esac | |||
221 | ofile=libtool | 219 | ofile=libtool |
222 | can_build_shared=yes | 220 | can_build_shared=yes |
223 | 221 | ||
224 | # All known linkers require a '.a' archive for static linking (except MSVC and | 222 | # All known linkers require a '.a' archive for static linking (except MSVC, |
225 | # ICC, which need '.lib'). | 223 | # which needs '.lib'). |
226 | libext=a | 224 | libext=a |
227 | 225 | ||
228 | with_gnu_ld=$lt_cv_prog_gnu_ld | 226 | with_gnu_ld=$lt_cv_prog_gnu_ld |
@@ -779,7 +777,7 @@ _LT_EOF | |||
779 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | 777 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
780 | # text mode, it properly converts lines to CR/LF. This bash problem | 778 | # text mode, it properly converts lines to CR/LF. This bash problem |
781 | # is reportedly fixed, but why not run on old versions too? | 779 | # is reportedly fixed, but why not run on old versions too? |
782 | $SED '$q' "$ltmain" >> "$cfgfile" \ | 780 | sed '$q' "$ltmain" >> "$cfgfile" \ |
783 | || (rm -f "$cfgfile"; exit 1) | 781 | || (rm -f "$cfgfile"; exit 1) |
784 | 782 | ||
785 | mv -f "$cfgfile" "$ofile" || | 783 | mv -f "$cfgfile" "$ofile" || |
@@ -1043,8 +1041,8 @@ int forced_loaded() { return 2;} | |||
1043 | _LT_EOF | 1041 | _LT_EOF |
1044 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD | 1042 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD |
1045 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD | 1043 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD |
1046 | echo "$AR $AR_FLAGS libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD | 1044 | echo "$AR cr libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD |
1047 | $AR $AR_FLAGS libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD | 1045 | $AR cr libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD |
1048 | echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD | 1046 | echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD |
1049 | $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD | 1047 | $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD |
1050 | cat > conftest.c << _LT_EOF | 1048 | cat > conftest.c << _LT_EOF |
@@ -1068,12 +1066,17 @@ _LT_EOF | |||
1068 | _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; | 1066 | _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; |
1069 | darwin1.*) | 1067 | darwin1.*) |
1070 | _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; | 1068 | _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; |
1071 | darwin*) | 1069 | darwin*) # darwin 5.x on |
1072 | case $MACOSX_DEPLOYMENT_TARGET,$host in | 1070 | # if running on 10.5 or later, the deployment target defaults |
1073 | 10.[[012]],*|,*powerpc*-darwin[[5-8]]*) | 1071 | # to the OS version, if on x86, and 10.4, the deployment |
1074 | _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; | 1072 | # target defaults to 10.4. Don't you love it? |
1075 | *) | 1073 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in |
1076 | _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; | 1074 | 10.0,*86*-darwin8*|10.0,*-darwin[[912]]*) |
1075 | _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; | ||
1076 | 10.[[012]][[,.]]*) | ||
1077 | _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; | ||
1078 | 10.*|11.*) | ||
1079 | _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; | ||
1077 | esac | 1080 | esac |
1078 | ;; | 1081 | ;; |
1079 | esac | 1082 | esac |
@@ -1122,12 +1125,12 @@ m4_defun([_LT_DARWIN_LINKER_FEATURES], | |||
1122 | output_verbose_link_cmd=func_echo_all | 1125 | output_verbose_link_cmd=func_echo_all |
1123 | _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" | 1126 | _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" |
1124 | _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" | 1127 | _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" |
1125 | _LT_TAGVAR(archive_expsym_cmds, $1)="$SED 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil" | 1128 | _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil" |
1126 | _LT_TAGVAR(module_expsym_cmds, $1)="$SED -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil" | 1129 | _LT_TAGVAR(module_expsym_cmds, $1)="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil" |
1127 | m4_if([$1], [CXX], | 1130 | m4_if([$1], [CXX], |
1128 | [ if test yes != "$lt_cv_apple_cc_single_mod"; then | 1131 | [ if test yes != "$lt_cv_apple_cc_single_mod"; then |
1129 | _LT_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil" | 1132 | _LT_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil" |
1130 | _LT_TAGVAR(archive_expsym_cmds, $1)="$SED 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil" | 1133 | _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil" |
1131 | fi | 1134 | fi |
1132 | ],[]) | 1135 | ],[]) |
1133 | else | 1136 | else |
@@ -1241,8 +1244,7 @@ _LT_DECL([], [ECHO], [1], [An echo program that protects backslashes]) | |||
1241 | # _LT_WITH_SYSROOT | 1244 | # _LT_WITH_SYSROOT |
1242 | # ---------------- | 1245 | # ---------------- |
1243 | AC_DEFUN([_LT_WITH_SYSROOT], | 1246 | AC_DEFUN([_LT_WITH_SYSROOT], |
1244 | [m4_require([_LT_DECL_SED])dnl | 1247 | [AC_MSG_CHECKING([for sysroot]) |
1245 | AC_MSG_CHECKING([for sysroot]) | ||
1246 | AC_ARG_WITH([sysroot], | 1248 | AC_ARG_WITH([sysroot], |
1247 | [AS_HELP_STRING([--with-sysroot@<:@=DIR@:>@], | 1249 | [AS_HELP_STRING([--with-sysroot@<:@=DIR@:>@], |
1248 | [Search for dependent libraries within DIR (or the compiler's sysroot | 1250 | [Search for dependent libraries within DIR (or the compiler's sysroot |
@@ -1259,7 +1261,7 @@ case $with_sysroot in #( | |||
1259 | fi | 1261 | fi |
1260 | ;; #( | 1262 | ;; #( |
1261 | /*) | 1263 | /*) |
1262 | lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"` | 1264 | lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` |
1263 | ;; #( | 1265 | ;; #( |
1264 | no|'') | 1266 | no|'') |
1265 | ;; #( | 1267 | ;; #( |
@@ -1289,7 +1291,7 @@ ia64-*-hpux*) | |||
1289 | # options accordingly. | 1291 | # options accordingly. |
1290 | echo 'int i;' > conftest.$ac_ext | 1292 | echo 'int i;' > conftest.$ac_ext |
1291 | if AC_TRY_EVAL(ac_compile); then | 1293 | if AC_TRY_EVAL(ac_compile); then |
1292 | case `$FILECMD conftest.$ac_objext` in | 1294 | case `/usr/bin/file conftest.$ac_objext` in |
1293 | *ELF-32*) | 1295 | *ELF-32*) |
1294 | HPUX_IA64_MODE=32 | 1296 | HPUX_IA64_MODE=32 |
1295 | ;; | 1297 | ;; |
@@ -1306,7 +1308,7 @@ ia64-*-hpux*) | |||
1306 | echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext | 1308 | echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext |
1307 | if AC_TRY_EVAL(ac_compile); then | 1309 | if AC_TRY_EVAL(ac_compile); then |
1308 | if test yes = "$lt_cv_prog_gnu_ld"; then | 1310 | if test yes = "$lt_cv_prog_gnu_ld"; then |
1309 | case `$FILECMD conftest.$ac_objext` in | 1311 | case `/usr/bin/file conftest.$ac_objext` in |
1310 | *32-bit*) | 1312 | *32-bit*) |
1311 | LD="${LD-ld} -melf32bsmip" | 1313 | LD="${LD-ld} -melf32bsmip" |
1312 | ;; | 1314 | ;; |
@@ -1318,7 +1320,7 @@ ia64-*-hpux*) | |||
1318 | ;; | 1320 | ;; |
1319 | esac | 1321 | esac |
1320 | else | 1322 | else |
1321 | case `$FILECMD conftest.$ac_objext` in | 1323 | case `/usr/bin/file conftest.$ac_objext` in |
1322 | *32-bit*) | 1324 | *32-bit*) |
1323 | LD="${LD-ld} -32" | 1325 | LD="${LD-ld} -32" |
1324 | ;; | 1326 | ;; |
@@ -1340,7 +1342,7 @@ mips64*-*linux*) | |||
1340 | echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext | 1342 | echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext |
1341 | if AC_TRY_EVAL(ac_compile); then | 1343 | if AC_TRY_EVAL(ac_compile); then |
1342 | emul=elf | 1344 | emul=elf |
1343 | case `$FILECMD conftest.$ac_objext` in | 1345 | case `/usr/bin/file conftest.$ac_objext` in |
1344 | *32-bit*) | 1346 | *32-bit*) |
1345 | emul="${emul}32" | 1347 | emul="${emul}32" |
1346 | ;; | 1348 | ;; |
@@ -1348,7 +1350,7 @@ mips64*-*linux*) | |||
1348 | emul="${emul}64" | 1350 | emul="${emul}64" |
1349 | ;; | 1351 | ;; |
1350 | esac | 1352 | esac |
1351 | case `$FILECMD conftest.$ac_objext` in | 1353 | case `/usr/bin/file conftest.$ac_objext` in |
1352 | *MSB*) | 1354 | *MSB*) |
1353 | emul="${emul}btsmip" | 1355 | emul="${emul}btsmip" |
1354 | ;; | 1356 | ;; |
@@ -1356,7 +1358,7 @@ mips64*-*linux*) | |||
1356 | emul="${emul}ltsmip" | 1358 | emul="${emul}ltsmip" |
1357 | ;; | 1359 | ;; |
1358 | esac | 1360 | esac |
1359 | case `$FILECMD conftest.$ac_objext` in | 1361 | case `/usr/bin/file conftest.$ac_objext` in |
1360 | *N32*) | 1362 | *N32*) |
1361 | emul="${emul}n32" | 1363 | emul="${emul}n32" |
1362 | ;; | 1364 | ;; |
@@ -1376,14 +1378,14 @@ s390*-*linux*|s390*-*tpf*|sparc*-*linux*) | |||
1376 | # not appear in the list. | 1378 | # not appear in the list. |
1377 | echo 'int i;' > conftest.$ac_ext | 1379 | echo 'int i;' > conftest.$ac_ext |
1378 | if AC_TRY_EVAL(ac_compile); then | 1380 | if AC_TRY_EVAL(ac_compile); then |
1379 | case `$FILECMD conftest.o` in | 1381 | case `/usr/bin/file conftest.o` in |
1380 | *32-bit*) | 1382 | *32-bit*) |
1381 | case $host in | 1383 | case $host in |
1382 | x86_64-*kfreebsd*-gnu) | 1384 | x86_64-*kfreebsd*-gnu) |
1383 | LD="${LD-ld} -m elf_i386_fbsd" | 1385 | LD="${LD-ld} -m elf_i386_fbsd" |
1384 | ;; | 1386 | ;; |
1385 | x86_64-*linux*) | 1387 | x86_64-*linux*) |
1386 | case `$FILECMD conftest.o` in | 1388 | case `/usr/bin/file conftest.o` in |
1387 | *x86-64*) | 1389 | *x86-64*) |
1388 | LD="${LD-ld} -m elf32_x86_64" | 1390 | LD="${LD-ld} -m elf32_x86_64" |
1389 | ;; | 1391 | ;; |
@@ -1451,7 +1453,7 @@ s390*-*linux*|s390*-*tpf*|sparc*-*linux*) | |||
1451 | # options accordingly. | 1453 | # options accordingly. |
1452 | echo 'int i;' > conftest.$ac_ext | 1454 | echo 'int i;' > conftest.$ac_ext |
1453 | if AC_TRY_EVAL(ac_compile); then | 1455 | if AC_TRY_EVAL(ac_compile); then |
1454 | case `$FILECMD conftest.o` in | 1456 | case `/usr/bin/file conftest.o` in |
1455 | *64-bit*) | 1457 | *64-bit*) |
1456 | case $lt_cv_prog_gnu_ld in | 1458 | case $lt_cv_prog_gnu_ld in |
1457 | yes*) | 1459 | yes*) |
@@ -1490,22 +1492,9 @@ need_locks=$enable_libtool_lock | |||
1490 | m4_defun([_LT_PROG_AR], | 1492 | m4_defun([_LT_PROG_AR], |
1491 | [AC_CHECK_TOOLS(AR, [ar], false) | 1493 | [AC_CHECK_TOOLS(AR, [ar], false) |
1492 | : ${AR=ar} | 1494 | : ${AR=ar} |
1495 | : ${AR_FLAGS=cr} | ||
1493 | _LT_DECL([], [AR], [1], [The archiver]) | 1496 | _LT_DECL([], [AR], [1], [The archiver]) |
1494 | 1497 | _LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive]) | |
1495 | # Use ARFLAGS variable as AR's operation code to sync the variable naming with | ||
1496 | # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have | ||
1497 | # higher priority because thats what people were doing historically (setting | ||
1498 | # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS | ||
1499 | # variable obsoleted/removed. | ||
1500 | |||
1501 | test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr} | ||
1502 | lt_ar_flags=$AR_FLAGS | ||
1503 | _LT_DECL([], [lt_ar_flags], [0], [Flags to create an archive (by configure)]) | ||
1504 | |||
1505 | # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override | ||
1506 | # by AR_FLAGS because that was never working and AR_FLAGS is about to die. | ||
1507 | _LT_DECL([], [AR_FLAGS], [\@S|@{ARFLAGS-"\@S|@lt_ar_flags"}], | ||
1508 | [Flags to create an archive]) | ||
1509 | 1498 | ||
1510 | AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file], | 1499 | AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file], |
1511 | [lt_cv_ar_at_file=no | 1500 | [lt_cv_ar_at_file=no |
@@ -1724,7 +1713,7 @@ AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl | |||
1724 | lt_cv_sys_max_cmd_len=8192; | 1713 | lt_cv_sys_max_cmd_len=8192; |
1725 | ;; | 1714 | ;; |
1726 | 1715 | ||
1727 | bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*) | 1716 | bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) |
1728 | # This has been around since 386BSD, at least. Likely further. | 1717 | # This has been around since 386BSD, at least. Likely further. |
1729 | if test -x /sbin/sysctl; then | 1718 | if test -x /sbin/sysctl; then |
1730 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | 1719 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
@@ -1767,7 +1756,7 @@ AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl | |||
1767 | sysv5* | sco5v6* | sysv4.2uw2*) | 1756 | sysv5* | sco5v6* | sysv4.2uw2*) |
1768 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | 1757 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
1769 | if test -n "$kargmax"; then | 1758 | if test -n "$kargmax"; then |
1770 | lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[[ ]]//'` | 1759 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'` |
1771 | else | 1760 | else |
1772 | lt_cv_sys_max_cmd_len=32768 | 1761 | lt_cv_sys_max_cmd_len=32768 |
1773 | fi | 1762 | fi |
@@ -2217,35 +2206,26 @@ m4_defun([_LT_CMD_STRIPLIB], | |||
2217 | striplib= | 2206 | striplib= |
2218 | old_striplib= | 2207 | old_striplib= |
2219 | AC_MSG_CHECKING([whether stripping libraries is possible]) | 2208 | AC_MSG_CHECKING([whether stripping libraries is possible]) |
2220 | if test -z "$STRIP"; then | 2209 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then |
2221 | AC_MSG_RESULT([no]) | 2210 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
2211 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | ||
2212 | AC_MSG_RESULT([yes]) | ||
2222 | else | 2213 | else |
2223 | if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | 2214 | # FIXME - insert some real tests, host_os isn't really good enough |
2224 | old_striplib="$STRIP --strip-debug" | 2215 | case $host_os in |
2225 | striplib="$STRIP --strip-unneeded" | 2216 | darwin*) |
2226 | AC_MSG_RESULT([yes]) | 2217 | if test -n "$STRIP"; then |
2227 | else | ||
2228 | case $host_os in | ||
2229 | darwin*) | ||
2230 | # FIXME - insert some real tests, host_os isn't really good enough | ||
2231 | striplib="$STRIP -x" | 2218 | striplib="$STRIP -x" |
2232 | old_striplib="$STRIP -S" | 2219 | old_striplib="$STRIP -S" |
2233 | AC_MSG_RESULT([yes]) | 2220 | AC_MSG_RESULT([yes]) |
2234 | ;; | 2221 | else |
2235 | freebsd*) | ||
2236 | if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then | ||
2237 | old_striplib="$STRIP --strip-debug" | ||
2238 | striplib="$STRIP --strip-unneeded" | ||
2239 | AC_MSG_RESULT([yes]) | ||
2240 | else | ||
2241 | AC_MSG_RESULT([no]) | ||
2242 | fi | ||
2243 | ;; | ||
2244 | *) | ||
2245 | AC_MSG_RESULT([no]) | 2222 | AC_MSG_RESULT([no]) |
2246 | ;; | 2223 | fi |
2247 | esac | 2224 | ;; |
2248 | fi | 2225 | *) |
2226 | AC_MSG_RESULT([no]) | ||
2227 | ;; | ||
2228 | esac | ||
2249 | fi | 2229 | fi |
2250 | _LT_DECL([], [old_striplib], [1], [Commands to strip libraries]) | 2230 | _LT_DECL([], [old_striplib], [1], [Commands to strip libraries]) |
2251 | _LT_DECL([], [striplib], [1]) | 2231 | _LT_DECL([], [striplib], [1]) |
@@ -2568,7 +2548,7 @@ cygwin* | mingw* | pw32* | cegcc*) | |||
2568 | case $host_os in | 2548 | case $host_os in |
2569 | cygwin*) | 2549 | cygwin*) |
2570 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | 2550 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
2571 | soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext' | 2551 | soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext' |
2572 | m4_if([$1], [],[ | 2552 | m4_if([$1], [],[ |
2573 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"]) | 2553 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"]) |
2574 | ;; | 2554 | ;; |
@@ -2578,14 +2558,14 @@ m4_if([$1], [],[ | |||
2578 | ;; | 2558 | ;; |
2579 | pw32*) | 2559 | pw32*) |
2580 | # pw32 DLLs use 'pw' prefix rather than 'lib' | 2560 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
2581 | library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext' | 2561 | library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext' |
2582 | ;; | 2562 | ;; |
2583 | esac | 2563 | esac |
2584 | dynamic_linker='Win32 ld.exe' | 2564 | dynamic_linker='Win32 ld.exe' |
2585 | ;; | 2565 | ;; |
2586 | 2566 | ||
2587 | *,cl* | *,icl*) | 2567 | *,cl*) |
2588 | # Native MSVC or ICC | 2568 | # Native MSVC |
2589 | libname_spec='$name' | 2569 | libname_spec='$name' |
2590 | soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext' | 2570 | soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext' |
2591 | library_names_spec='$libname.dll.lib' | 2571 | library_names_spec='$libname.dll.lib' |
@@ -2604,7 +2584,7 @@ m4_if([$1], [],[ | |||
2604 | done | 2584 | done |
2605 | IFS=$lt_save_ifs | 2585 | IFS=$lt_save_ifs |
2606 | # Convert to MSYS style. | 2586 | # Convert to MSYS style. |
2607 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'` | 2587 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'` |
2608 | ;; | 2588 | ;; |
2609 | cygwin*) | 2589 | cygwin*) |
2610 | # Convert to unix form, then to dos form, then back to unix form | 2590 | # Convert to unix form, then to dos form, then back to unix form |
@@ -2641,7 +2621,7 @@ m4_if([$1], [],[ | |||
2641 | ;; | 2621 | ;; |
2642 | 2622 | ||
2643 | *) | 2623 | *) |
2644 | # Assume MSVC and ICC wrapper | 2624 | # Assume MSVC wrapper |
2645 | library_names_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext $libname.lib' | 2625 | library_names_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext $libname.lib' |
2646 | dynamic_linker='Win32 ld.exe' | 2626 | dynamic_linker='Win32 ld.exe' |
2647 | ;; | 2627 | ;; |
@@ -2674,7 +2654,7 @@ dgux*) | |||
2674 | shlibpath_var=LD_LIBRARY_PATH | 2654 | shlibpath_var=LD_LIBRARY_PATH |
2675 | ;; | 2655 | ;; |
2676 | 2656 | ||
2677 | freebsd* | dragonfly* | midnightbsd*) | 2657 | freebsd* | dragonfly*) |
2678 | # DragonFly does not have aout. When/if they implement a new | 2658 | # DragonFly does not have aout. When/if they implement a new |
2679 | # versioning mechanism, adjust this. | 2659 | # versioning mechanism, adjust this. |
2680 | if test -x /usr/bin/objformat; then | 2660 | if test -x /usr/bin/objformat; then |
@@ -2906,6 +2886,18 @@ linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) | |||
2906 | dynamic_linker='GNU/Linux ld.so' | 2886 | dynamic_linker='GNU/Linux ld.so' |
2907 | ;; | 2887 | ;; |
2908 | 2888 | ||
2889 | netbsdelf*-gnu) | ||
2890 | version_type=linux | ||
2891 | need_lib_prefix=no | ||
2892 | need_version=no | ||
2893 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | ||
2894 | soname_spec='${libname}${release}${shared_ext}$major' | ||
2895 | shlibpath_var=LD_LIBRARY_PATH | ||
2896 | shlibpath_overrides_runpath=no | ||
2897 | hardcode_into_libs=yes | ||
2898 | dynamic_linker='NetBSD ld.elf_so' | ||
2899 | ;; | ||
2900 | |||
2909 | netbsd*) | 2901 | netbsd*) |
2910 | version_type=sunos | 2902 | version_type=sunos |
2911 | need_lib_prefix=no | 2903 | need_lib_prefix=no |
@@ -3473,7 +3465,7 @@ beos*) | |||
3473 | 3465 | ||
3474 | bsdi[[45]]*) | 3466 | bsdi[[45]]*) |
3475 | lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)' | 3467 | lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)' |
3476 | lt_cv_file_magic_cmd='$FILECMD -L' | 3468 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
3477 | lt_cv_file_magic_test_file=/shlib/libc.so | 3469 | lt_cv_file_magic_test_file=/shlib/libc.so |
3478 | ;; | 3470 | ;; |
3479 | 3471 | ||
@@ -3507,14 +3499,14 @@ darwin* | rhapsody*) | |||
3507 | lt_cv_deplibs_check_method=pass_all | 3499 | lt_cv_deplibs_check_method=pass_all |
3508 | ;; | 3500 | ;; |
3509 | 3501 | ||
3510 | freebsd* | dragonfly* | midnightbsd*) | 3502 | freebsd* | dragonfly*) |
3511 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | 3503 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
3512 | case $host_cpu in | 3504 | case $host_cpu in |
3513 | i*86 ) | 3505 | i*86 ) |
3514 | # Not sure whether the presence of OpenBSD here was a mistake. | 3506 | # Not sure whether the presence of OpenBSD here was a mistake. |
3515 | # Let's accept both of them until this is cleared up. | 3507 | # Let's accept both of them until this is cleared up. |
3516 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' | 3508 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' |
3517 | lt_cv_file_magic_cmd=$FILECMD | 3509 | lt_cv_file_magic_cmd=/usr/bin/file |
3518 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | 3510 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
3519 | ;; | 3511 | ;; |
3520 | esac | 3512 | esac |
@@ -3528,7 +3520,7 @@ haiku*) | |||
3528 | ;; | 3520 | ;; |
3529 | 3521 | ||
3530 | hpux10.20* | hpux11*) | 3522 | hpux10.20* | hpux11*) |
3531 | lt_cv_file_magic_cmd=$FILECMD | 3523 | lt_cv_file_magic_cmd=/usr/bin/file |
3532 | case $host_cpu in | 3524 | case $host_cpu in |
3533 | ia64*) | 3525 | ia64*) |
3534 | lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' | 3526 | lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' |
@@ -3565,7 +3557,7 @@ linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) | |||
3565 | lt_cv_deplibs_check_method=pass_all | 3557 | lt_cv_deplibs_check_method=pass_all |
3566 | ;; | 3558 | ;; |
3567 | 3559 | ||
3568 | netbsd*) | 3560 | netbsd* | netbsdelf*-gnu) |
3569 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | 3561 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
3570 | lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' | 3562 | lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' |
3571 | else | 3563 | else |
@@ -3575,7 +3567,7 @@ netbsd*) | |||
3575 | 3567 | ||
3576 | newos6*) | 3568 | newos6*) |
3577 | lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' | 3569 | lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' |
3578 | lt_cv_file_magic_cmd=$FILECMD | 3570 | lt_cv_file_magic_cmd=/usr/bin/file |
3579 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | 3571 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
3580 | ;; | 3572 | ;; |
3581 | 3573 | ||
@@ -3702,13 +3694,13 @@ else | |||
3702 | mingw*) lt_bad_file=conftest.nm/nofile ;; | 3694 | mingw*) lt_bad_file=conftest.nm/nofile ;; |
3703 | *) lt_bad_file=/dev/null ;; | 3695 | *) lt_bad_file=/dev/null ;; |
3704 | esac | 3696 | esac |
3705 | case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in | 3697 | case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in |
3706 | *$lt_bad_file* | *'Invalid file or object type'*) | 3698 | *$lt_bad_file* | *'Invalid file or object type'*) |
3707 | lt_cv_path_NM="$tmp_nm -B" | 3699 | lt_cv_path_NM="$tmp_nm -B" |
3708 | break 2 | 3700 | break 2 |
3709 | ;; | 3701 | ;; |
3710 | *) | 3702 | *) |
3711 | case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in | 3703 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
3712 | */dev/null*) | 3704 | */dev/null*) |
3713 | lt_cv_path_NM="$tmp_nm -p" | 3705 | lt_cv_path_NM="$tmp_nm -p" |
3714 | break 2 | 3706 | break 2 |
@@ -3734,7 +3726,7 @@ else | |||
3734 | # Let the user override the test. | 3726 | # Let the user override the test. |
3735 | else | 3727 | else |
3736 | AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :) | 3728 | AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :) |
3737 | case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in | 3729 | case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in |
3738 | *COFF*) | 3730 | *COFF*) |
3739 | DUMPBIN="$DUMPBIN -symbols -headers" | 3731 | DUMPBIN="$DUMPBIN -symbols -headers" |
3740 | ;; | 3732 | ;; |
@@ -3974,7 +3966,7 @@ esac | |||
3974 | 3966 | ||
3975 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | 3967 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
3976 | # Gets list of data symbols to import. | 3968 | # Gets list of data symbols to import. |
3977 | lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'" | 3969 | lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" |
3978 | # Adjust the below global symbol transforms to fixup imported variables. | 3970 | # Adjust the below global symbol transforms to fixup imported variables. |
3979 | lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" | 3971 | lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" |
3980 | lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" | 3972 | lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" |
@@ -3992,20 +3984,20 @@ fi | |||
3992 | # Transform an extracted symbol line into a proper C declaration. | 3984 | # Transform an extracted symbol line into a proper C declaration. |
3993 | # Some systems (esp. on ia64) link data and code symbols differently, | 3985 | # Some systems (esp. on ia64) link data and code symbols differently, |
3994 | # so use this general approach. | 3986 | # so use this general approach. |
3995 | lt_cv_sys_global_symbol_to_cdecl="$SED -n"\ | 3987 | lt_cv_sys_global_symbol_to_cdecl="sed -n"\ |
3996 | $lt_cdecl_hook\ | 3988 | $lt_cdecl_hook\ |
3997 | " -e 's/^T .* \(.*\)$/extern int \1();/p'"\ | 3989 | " -e 's/^T .* \(.*\)$/extern int \1();/p'"\ |
3998 | " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" | 3990 | " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" |
3999 | 3991 | ||
4000 | # Transform an extracted symbol line into symbol name and symbol address | 3992 | # Transform an extracted symbol line into symbol name and symbol address |
4001 | lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\ | 3993 | lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ |
4002 | $lt_c_name_hook\ | 3994 | $lt_c_name_hook\ |
4003 | " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ | 3995 | " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ |
4004 | " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" | 3996 | " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" |
4005 | 3997 | ||
4006 | # Transform an extracted symbol line into symbol name with lib prefix and | 3998 | # Transform an extracted symbol line into symbol name with lib prefix and |
4007 | # symbol address. | 3999 | # symbol address. |
4008 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\ | 4000 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ |
4009 | $lt_c_name_lib_hook\ | 4001 | $lt_c_name_lib_hook\ |
4010 | " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ | 4002 | " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ |
4011 | " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ | 4003 | " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ |
@@ -4029,7 +4021,7 @@ for ac_symprfx in "" "_"; do | |||
4029 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | 4021 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
4030 | # Fake it for dumpbin and say T for any non-static function, | 4022 | # Fake it for dumpbin and say T for any non-static function, |
4031 | # D for any global variable and I for any imported variable. | 4023 | # D for any global variable and I for any imported variable. |
4032 | # Also find C++ and __fastcall symbols from MSVC++ or ICC, | 4024 | # Also find C++ and __fastcall symbols from MSVC++, |
4033 | # which start with @ or ?. | 4025 | # which start with @ or ?. |
4034 | lt_cv_sys_global_symbol_pipe="$AWK ['"\ | 4026 | lt_cv_sys_global_symbol_pipe="$AWK ['"\ |
4035 | " {last_section=section; section=\$ 3};"\ | 4027 | " {last_section=section; section=\$ 3};"\ |
@@ -4047,9 +4039,9 @@ for ac_symprfx in "" "_"; do | |||
4047 | " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ | 4039 | " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ |
4048 | " ' prfx=^$ac_symprfx]" | 4040 | " ' prfx=^$ac_symprfx]" |
4049 | else | 4041 | else |
4050 | lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | 4042 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
4051 | fi | 4043 | fi |
4052 | lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'" | 4044 | lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" |
4053 | 4045 | ||
4054 | # Check to see that the pipe works correctly. | 4046 | # Check to see that the pipe works correctly. |
4055 | pipe_works=no | 4047 | pipe_works=no |
@@ -4071,7 +4063,8 @@ _LT_EOF | |||
4071 | if AC_TRY_EVAL(ac_compile); then | 4063 | if AC_TRY_EVAL(ac_compile); then |
4072 | # Now try to grab the symbols. | 4064 | # Now try to grab the symbols. |
4073 | nlist=conftest.nm | 4065 | nlist=conftest.nm |
4074 | if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then | 4066 | $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&AS_MESSAGE_LOG_FD |
4067 | if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&AS_MESSAGE_LOG_FD && test -s "$nlist"; then | ||
4075 | # Try sorting and uniquifying the output. | 4068 | # Try sorting and uniquifying the output. |
4076 | if sort "$nlist" | uniq > "$nlist"T; then | 4069 | if sort "$nlist" | uniq > "$nlist"T; then |
4077 | mv -f "$nlist"T "$nlist" | 4070 | mv -f "$nlist"T "$nlist" |
@@ -4336,7 +4329,7 @@ m4_if([$1], [CXX], [ | |||
4336 | ;; | 4329 | ;; |
4337 | esac | 4330 | esac |
4338 | ;; | 4331 | ;; |
4339 | freebsd* | dragonfly* | midnightbsd*) | 4332 | freebsd* | dragonfly*) |
4340 | # FreeBSD uses GNU C++ | 4333 | # FreeBSD uses GNU C++ |
4341 | ;; | 4334 | ;; |
4342 | hpux9* | hpux10* | hpux11*) | 4335 | hpux9* | hpux10* | hpux11*) |
@@ -4419,7 +4412,7 @@ m4_if([$1], [CXX], [ | |||
4419 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' | 4412 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' |
4420 | ;; | 4413 | ;; |
4421 | *) | 4414 | *) |
4422 | case `$CC -V 2>&1 | $SED 5q` in | 4415 | case `$CC -V 2>&1 | sed 5q` in |
4423 | *Sun\ C*) | 4416 | *Sun\ C*) |
4424 | # Sun C++ 5.9 | 4417 | # Sun C++ 5.9 |
4425 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | 4418 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
@@ -4443,7 +4436,7 @@ m4_if([$1], [CXX], [ | |||
4443 | ;; | 4436 | ;; |
4444 | esac | 4437 | esac |
4445 | ;; | 4438 | ;; |
4446 | netbsd*) | 4439 | netbsd* | netbsdelf*-gnu) |
4447 | ;; | 4440 | ;; |
4448 | *qnx* | *nto*) | 4441 | *qnx* | *nto*) |
4449 | # QNX uses GNU C++, but need to define -shared option too, otherwise | 4442 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
@@ -4711,6 +4704,12 @@ m4_if([$1], [CXX], [ | |||
4711 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | 4704 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
4712 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' | 4705 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' |
4713 | ;; | 4706 | ;; |
4707 | # flang / f18. f95 an alias for gfortran or flang on Debian | ||
4708 | flang* | f18* | f95*) | ||
4709 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
4710 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' | ||
4711 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' | ||
4712 | ;; | ||
4714 | # icc used to be incompatible with GCC. | 4713 | # icc used to be incompatible with GCC. |
4715 | # ICC 10 doesn't accept -KPIC any more. | 4714 | # ICC 10 doesn't accept -KPIC any more. |
4716 | icc* | ifort*) | 4715 | icc* | ifort*) |
@@ -4755,7 +4754,7 @@ m4_if([$1], [CXX], [ | |||
4755 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' | 4754 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' |
4756 | ;; | 4755 | ;; |
4757 | *) | 4756 | *) |
4758 | case `$CC -V 2>&1 | $SED 5q` in | 4757 | case `$CC -V 2>&1 | sed 5q` in |
4759 | *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*) | 4758 | *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*) |
4760 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | 4759 | # Sun Fortran 8.3 passes all unrecognized flags to the linker |
4761 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | 4760 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
@@ -4938,7 +4937,7 @@ m4_if([$1], [CXX], [ | |||
4938 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | 4937 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
4939 | _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' | 4938 | _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' |
4940 | else | 4939 | else |
4941 | _LT_TAGVAR(export_symbols_cmds, $1)='`func_echo_all $NM | $SED -e '\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && ([substr](\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' | 4940 | _LT_TAGVAR(export_symbols_cmds, $1)='`func_echo_all $NM | $SED -e '\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && ([substr](\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' |
4942 | fi | 4941 | fi |
4943 | ;; | 4942 | ;; |
4944 | pw32*) | 4943 | pw32*) |
@@ -4946,7 +4945,7 @@ m4_if([$1], [CXX], [ | |||
4946 | ;; | 4945 | ;; |
4947 | cygwin* | mingw* | cegcc*) | 4946 | cygwin* | mingw* | cegcc*) |
4948 | case $cc_basename in | 4947 | case $cc_basename in |
4949 | cl* | icl*) | 4948 | cl*) |
4950 | _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' | 4949 | _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' |
4951 | ;; | 4950 | ;; |
4952 | *) | 4951 | *) |
@@ -4955,6 +4954,9 @@ m4_if([$1], [CXX], [ | |||
4955 | ;; | 4954 | ;; |
4956 | esac | 4955 | esac |
4957 | ;; | 4956 | ;; |
4957 | linux* | k*bsd*-gnu | gnu*) | ||
4958 | _LT_TAGVAR(link_all_deplibs, $1)=no | ||
4959 | ;; | ||
4958 | *) | 4960 | *) |
4959 | _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | 4961 | _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
4960 | ;; | 4962 | ;; |
@@ -5003,20 +5005,23 @@ dnl Note also adjust exclude_expsyms for C++ above. | |||
5003 | 5005 | ||
5004 | case $host_os in | 5006 | case $host_os in |
5005 | cygwin* | mingw* | pw32* | cegcc*) | 5007 | cygwin* | mingw* | pw32* | cegcc*) |
5006 | # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time | 5008 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
5007 | # When not using gcc, we currently assume that we are using | 5009 | # When not using gcc, we currently assume that we are using |
5008 | # Microsoft Visual C++ or Intel C++ Compiler. | 5010 | # Microsoft Visual C++. |
5009 | if test yes != "$GCC"; then | 5011 | if test yes != "$GCC"; then |
5010 | with_gnu_ld=no | 5012 | with_gnu_ld=no |
5011 | fi | 5013 | fi |
5012 | ;; | 5014 | ;; |
5013 | interix*) | 5015 | interix*) |
5014 | # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC) | 5016 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
5015 | with_gnu_ld=yes | 5017 | with_gnu_ld=yes |
5016 | ;; | 5018 | ;; |
5017 | openbsd* | bitrig*) | 5019 | openbsd* | bitrig*) |
5018 | with_gnu_ld=no | 5020 | with_gnu_ld=no |
5019 | ;; | 5021 | ;; |
5022 | linux* | k*bsd*-gnu | gnu*) | ||
5023 | _LT_TAGVAR(link_all_deplibs, $1)=no | ||
5024 | ;; | ||
5020 | esac | 5025 | esac |
5021 | 5026 | ||
5022 | _LT_TAGVAR(ld_shlibs, $1)=yes | 5027 | _LT_TAGVAR(ld_shlibs, $1)=yes |
@@ -5063,7 +5068,7 @@ dnl Note also adjust exclude_expsyms for C++ above. | |||
5063 | _LT_TAGVAR(whole_archive_flag_spec, $1)= | 5068 | _LT_TAGVAR(whole_archive_flag_spec, $1)= |
5064 | fi | 5069 | fi |
5065 | supports_anon_versioning=no | 5070 | supports_anon_versioning=no |
5066 | case `$LD -v | $SED -e 's/([[^)]]\+)\s\+//' 2>&1` in | 5071 | case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in |
5067 | *GNU\ gold*) supports_anon_versioning=yes ;; | 5072 | *GNU\ gold*) supports_anon_versioning=yes ;; |
5068 | *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 | 5073 | *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 |
5069 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | 5074 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
@@ -5175,7 +5180,6 @@ _LT_EOF | |||
5175 | emximp -o $lib $output_objdir/$libname.def' | 5180 | emximp -o $lib $output_objdir/$libname.def' |
5176 | _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' | 5181 | _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' |
5177 | _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes | 5182 | _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes |
5178 | _LT_TAGVAR(file_list_spec, $1)='@' | ||
5179 | ;; | 5183 | ;; |
5180 | 5184 | ||
5181 | interix[[3-9]]*) | 5185 | interix[[3-9]]*) |
@@ -5190,7 +5194,7 @@ _LT_EOF | |||
5190 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | 5194 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
5191 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | 5195 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
5192 | _LT_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' | 5196 | _LT_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' |
5193 | _LT_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' | 5197 | _LT_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' |
5194 | ;; | 5198 | ;; |
5195 | 5199 | ||
5196 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) | 5200 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) |
@@ -5233,7 +5237,7 @@ _LT_EOF | |||
5233 | _LT_TAGVAR(compiler_needs_object, $1)=yes | 5237 | _LT_TAGVAR(compiler_needs_object, $1)=yes |
5234 | ;; | 5238 | ;; |
5235 | esac | 5239 | esac |
5236 | case `$CC -V 2>&1 | $SED 5q` in | 5240 | case `$CC -V 2>&1 | sed 5q` in |
5237 | *Sun\ C*) # Sun C 5.9 | 5241 | *Sun\ C*) # Sun C 5.9 |
5238 | _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' | 5242 | _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' |
5239 | _LT_TAGVAR(compiler_needs_object, $1)=yes | 5243 | _LT_TAGVAR(compiler_needs_object, $1)=yes |
@@ -5245,7 +5249,7 @@ _LT_EOF | |||
5245 | 5249 | ||
5246 | if test yes = "$supports_anon_versioning"; then | 5250 | if test yes = "$supports_anon_versioning"; then |
5247 | _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ | 5251 | _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ |
5248 | cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | 5252 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
5249 | echo "local: *; };" >> $output_objdir/$libname.ver~ | 5253 | echo "local: *; };" >> $output_objdir/$libname.ver~ |
5250 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' | 5254 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' |
5251 | fi | 5255 | fi |
@@ -5261,7 +5265,7 @@ _LT_EOF | |||
5261 | _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' | 5265 | _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' |
5262 | if test yes = "$supports_anon_versioning"; then | 5266 | if test yes = "$supports_anon_versioning"; then |
5263 | _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ | 5267 | _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ |
5264 | cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | 5268 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
5265 | echo "local: *; };" >> $output_objdir/$libname.ver~ | 5269 | echo "local: *; };" >> $output_objdir/$libname.ver~ |
5266 | $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | 5270 | $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' |
5267 | fi | 5271 | fi |
@@ -5272,7 +5276,7 @@ _LT_EOF | |||
5272 | fi | 5276 | fi |
5273 | ;; | 5277 | ;; |
5274 | 5278 | ||
5275 | netbsd*) | 5279 | netbsd* | netbsdelf*-gnu) |
5276 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | 5280 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
5277 | _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | 5281 | _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
5278 | wlarc= | 5282 | wlarc= |
@@ -5393,7 +5397,7 @@ _LT_EOF | |||
5393 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | 5397 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
5394 | _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' | 5398 | _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' |
5395 | else | 5399 | else |
5396 | _LT_TAGVAR(export_symbols_cmds, $1)='`func_echo_all $NM | $SED -e '\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && ([substr](\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' | 5400 | _LT_TAGVAR(export_symbols_cmds, $1)='`func_echo_all $NM | $SED -e '\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && ([substr](\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' |
5397 | fi | 5401 | fi |
5398 | aix_use_runtimelinking=no | 5402 | aix_use_runtimelinking=no |
5399 | 5403 | ||
@@ -5576,12 +5580,12 @@ _LT_EOF | |||
5576 | 5580 | ||
5577 | cygwin* | mingw* | pw32* | cegcc*) | 5581 | cygwin* | mingw* | pw32* | cegcc*) |
5578 | # When not using gcc, we currently assume that we are using | 5582 | # When not using gcc, we currently assume that we are using |
5579 | # Microsoft Visual C++ or Intel C++ Compiler. | 5583 | # Microsoft Visual C++. |
5580 | # hardcode_libdir_flag_spec is actually meaningless, as there is | 5584 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
5581 | # no search path for DLLs. | 5585 | # no search path for DLLs. |
5582 | case $cc_basename in | 5586 | case $cc_basename in |
5583 | cl* | icl*) | 5587 | cl*) |
5584 | # Native MSVC or ICC | 5588 | # Native MSVC |
5585 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' | 5589 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' |
5586 | _LT_TAGVAR(allow_undefined_flag, $1)=unsupported | 5590 | _LT_TAGVAR(allow_undefined_flag, $1)=unsupported |
5587 | _LT_TAGVAR(always_export_symbols, $1)=yes | 5591 | _LT_TAGVAR(always_export_symbols, $1)=yes |
@@ -5622,7 +5626,7 @@ _LT_EOF | |||
5622 | fi' | 5626 | fi' |
5623 | ;; | 5627 | ;; |
5624 | *) | 5628 | *) |
5625 | # Assume MSVC and ICC wrapper | 5629 | # Assume MSVC wrapper |
5626 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' | 5630 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' |
5627 | _LT_TAGVAR(allow_undefined_flag, $1)=unsupported | 5631 | _LT_TAGVAR(allow_undefined_flag, $1)=unsupported |
5628 | # Tell ltmain to make .lib files, not .a files. | 5632 | # Tell ltmain to make .lib files, not .a files. |
@@ -5670,7 +5674,7 @@ _LT_EOF | |||
5670 | ;; | 5674 | ;; |
5671 | 5675 | ||
5672 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | 5676 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
5673 | freebsd* | dragonfly* | midnightbsd*) | 5677 | freebsd* | dragonfly*) |
5674 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | 5678 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
5675 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' | 5679 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
5676 | _LT_TAGVAR(hardcode_direct, $1)=yes | 5680 | _LT_TAGVAR(hardcode_direct, $1)=yes |
@@ -5793,6 +5797,7 @@ _LT_EOF | |||
5793 | if test yes = "$lt_cv_irix_exported_symbol"; then | 5797 | if test yes = "$lt_cv_irix_exported_symbol"; then |
5794 | _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib' | 5798 | _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib' |
5795 | fi | 5799 | fi |
5800 | _LT_TAGVAR(link_all_deplibs, $1)=no | ||
5796 | else | 5801 | else |
5797 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' | 5802 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' |
5798 | _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib' | 5803 | _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib' |
@@ -5814,7 +5819,7 @@ _LT_EOF | |||
5814 | esac | 5819 | esac |
5815 | ;; | 5820 | ;; |
5816 | 5821 | ||
5817 | netbsd*) | 5822 | netbsd* | netbsdelf*-gnu) |
5818 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | 5823 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
5819 | _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | 5824 | _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
5820 | else | 5825 | else |
@@ -5881,7 +5886,6 @@ _LT_EOF | |||
5881 | emximp -o $lib $output_objdir/$libname.def' | 5886 | emximp -o $lib $output_objdir/$libname.def' |
5882 | _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' | 5887 | _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' |
5883 | _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes | 5888 | _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes |
5884 | _LT_TAGVAR(file_list_spec, $1)='@' | ||
5885 | ;; | 5889 | ;; |
5886 | 5890 | ||
5887 | osf3*) | 5891 | osf3*) |
@@ -6441,7 +6445,7 @@ if test yes != "$_lt_caught_CXX_error"; then | |||
6441 | # Commands to make compiler produce verbose output that lists | 6445 | # Commands to make compiler produce verbose output that lists |
6442 | # what "hidden" libraries, object files and flags are used when | 6446 | # what "hidden" libraries, object files and flags are used when |
6443 | # linking a shared library. | 6447 | # linking a shared library. |
6444 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' | 6448 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"' |
6445 | 6449 | ||
6446 | else | 6450 | else |
6447 | GXX=no | 6451 | GXX=no |
@@ -6652,8 +6656,8 @@ if test yes != "$_lt_caught_CXX_error"; then | |||
6652 | 6656 | ||
6653 | cygwin* | mingw* | pw32* | cegcc*) | 6657 | cygwin* | mingw* | pw32* | cegcc*) |
6654 | case $GXX,$cc_basename in | 6658 | case $GXX,$cc_basename in |
6655 | ,cl* | no,cl* | ,icl* | no,icl*) | 6659 | ,cl* | no,cl*) |
6656 | # Native MSVC or ICC | 6660 | # Native MSVC |
6657 | # hardcode_libdir_flag_spec is actually meaningless, as there is | 6661 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
6658 | # no search path for DLLs. | 6662 | # no search path for DLLs. |
6659 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' | 6663 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' |
@@ -6751,7 +6755,6 @@ if test yes != "$_lt_caught_CXX_error"; then | |||
6751 | emximp -o $lib $output_objdir/$libname.def' | 6755 | emximp -o $lib $output_objdir/$libname.def' |
6752 | _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' | 6756 | _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' |
6753 | _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes | 6757 | _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes |
6754 | _LT_TAGVAR(file_list_spec, $1)='@' | ||
6755 | ;; | 6758 | ;; |
6756 | 6759 | ||
6757 | dgux*) | 6760 | dgux*) |
@@ -6782,7 +6785,7 @@ if test yes != "$_lt_caught_CXX_error"; then | |||
6782 | _LT_TAGVAR(archive_cmds_need_lc, $1)=no | 6785 | _LT_TAGVAR(archive_cmds_need_lc, $1)=no |
6783 | ;; | 6786 | ;; |
6784 | 6787 | ||
6785 | freebsd* | dragonfly* | midnightbsd*) | 6788 | freebsd* | dragonfly*) |
6786 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF | 6789 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
6787 | # conventions | 6790 | # conventions |
6788 | _LT_TAGVAR(ld_shlibs, $1)=yes | 6791 | _LT_TAGVAR(ld_shlibs, $1)=yes |
@@ -6817,7 +6820,7 @@ if test yes != "$_lt_caught_CXX_error"; then | |||
6817 | # explicitly linking system object files so we need to strip them | 6820 | # explicitly linking system object files so we need to strip them |
6818 | # from the output so that they don't get included in the library | 6821 | # from the output so that they don't get included in the library |
6819 | # dependencies. | 6822 | # dependencies. |
6820 | output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' | 6823 | output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP " \-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' |
6821 | ;; | 6824 | ;; |
6822 | *) | 6825 | *) |
6823 | if test yes = "$GXX"; then | 6826 | if test yes = "$GXX"; then |
@@ -6882,7 +6885,7 @@ if test yes != "$_lt_caught_CXX_error"; then | |||
6882 | # explicitly linking system object files so we need to strip them | 6885 | # explicitly linking system object files so we need to strip them |
6883 | # from the output so that they don't get included in the library | 6886 | # from the output so that they don't get included in the library |
6884 | # dependencies. | 6887 | # dependencies. |
6885 | output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' | 6888 | output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP " \-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' |
6886 | ;; | 6889 | ;; |
6887 | *) | 6890 | *) |
6888 | if test yes = "$GXX"; then | 6891 | if test yes = "$GXX"; then |
@@ -6919,7 +6922,7 @@ if test yes != "$_lt_caught_CXX_error"; then | |||
6919 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | 6922 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
6920 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | 6923 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
6921 | _LT_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' | 6924 | _LT_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' |
6922 | _LT_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' | 6925 | _LT_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' |
6923 | ;; | 6926 | ;; |
6924 | irix5* | irix6*) | 6927 | irix5* | irix6*) |
6925 | case $cc_basename in | 6928 | case $cc_basename in |
@@ -7059,13 +7062,13 @@ if test yes != "$_lt_caught_CXX_error"; then | |||
7059 | _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' | 7062 | _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
7060 | if test yes = "$supports_anon_versioning"; then | 7063 | if test yes = "$supports_anon_versioning"; then |
7061 | _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ | 7064 | _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ |
7062 | cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | 7065 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
7063 | echo "local: *; };" >> $output_objdir/$libname.ver~ | 7066 | echo "local: *; };" >> $output_objdir/$libname.ver~ |
7064 | $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' | 7067 | $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' |
7065 | fi | 7068 | fi |
7066 | ;; | 7069 | ;; |
7067 | *) | 7070 | *) |
7068 | case `$CC -V 2>&1 | $SED 5q` in | 7071 | case `$CC -V 2>&1 | sed 5q` in |
7069 | *Sun\ C*) | 7072 | *Sun\ C*) |
7070 | # Sun C++ 5.9 | 7073 | # Sun C++ 5.9 |
7071 | _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' | 7074 | _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' |
@@ -7221,7 +7224,7 @@ if test yes != "$_lt_caught_CXX_error"; then | |||
7221 | # Commands to make compiler produce verbose output that lists | 7224 | # Commands to make compiler produce verbose output that lists |
7222 | # what "hidden" libraries, object files and flags are used when | 7225 | # what "hidden" libraries, object files and flags are used when |
7223 | # linking a shared library. | 7226 | # linking a shared library. |
7224 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' | 7227 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"' |
7225 | 7228 | ||
7226 | else | 7229 | else |
7227 | # FIXME: insert proper C++ library support | 7230 | # FIXME: insert proper C++ library support |
@@ -7305,7 +7308,7 @@ if test yes != "$_lt_caught_CXX_error"; then | |||
7305 | # Commands to make compiler produce verbose output that lists | 7308 | # Commands to make compiler produce verbose output that lists |
7306 | # what "hidden" libraries, object files and flags are used when | 7309 | # what "hidden" libraries, object files and flags are used when |
7307 | # linking a shared library. | 7310 | # linking a shared library. |
7308 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' | 7311 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"' |
7309 | else | 7312 | else |
7310 | # g++ 2.7 appears to require '-G' NOT '-shared' on this | 7313 | # g++ 2.7 appears to require '-G' NOT '-shared' on this |
7311 | # platform. | 7314 | # platform. |
@@ -7316,7 +7319,7 @@ if test yes != "$_lt_caught_CXX_error"; then | |||
7316 | # Commands to make compiler produce verbose output that lists | 7319 | # Commands to make compiler produce verbose output that lists |
7317 | # what "hidden" libraries, object files and flags are used when | 7320 | # what "hidden" libraries, object files and flags are used when |
7318 | # linking a shared library. | 7321 | # linking a shared library. |
7319 | output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' | 7322 | output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"' |
7320 | fi | 7323 | fi |
7321 | 7324 | ||
7322 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $wl$libdir' | 7325 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $wl$libdir' |
@@ -8211,14 +8214,6 @@ _LT_DECL([], [DLLTOOL], [1], [DLL creation program]) | |||
8211 | AC_SUBST([DLLTOOL]) | 8214 | AC_SUBST([DLLTOOL]) |
8212 | ]) | 8215 | ]) |
8213 | 8216 | ||
8214 | # _LT_DECL_FILECMD | ||
8215 | # ---------------- | ||
8216 | # Check for a file(cmd) program that can be used to detect file type and magic | ||
8217 | m4_defun([_LT_DECL_FILECMD], | ||
8218 | [AC_CHECK_TOOL([FILECMD], [file], [:]) | ||
8219 | _LT_DECL([], [FILECMD], [1], [A file(cmd) program that detects file types]) | ||
8220 | ])# _LD_DECL_FILECMD | ||
8221 | |||
8222 | # _LT_DECL_SED | 8217 | # _LT_DECL_SED |
8223 | # ------------ | 8218 | # ------------ |
8224 | # Check for a fully-functional sed program, that truncates | 8219 | # Check for a fully-functional sed program, that truncates |