Lines Matching +full:binutils +full:- +full:powerpc64 +full:- +full:linux +full:- +full:gnu
1 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
3 # Copyright (C) 1996-2001, 2003-2019, 2021-2022 Free Software
16 # GNU Libtool is free software; you can redistribute it and/or modify
17 # it under the terms of the GNU General Public License as published by
21 # As a special exception to the GNU General Public License, if you
23 # using GNU Libtool, you may include this file under the same
26 # GNU Libtool is distributed in the hope that it will be useful, but
29 # GNU General Public License for more details.
31 # You should have received a copy of the GNU General Public License
32 # along with this program. If not, see <http://www.gnu.org/licenses/>.
39 # ------------------
42 [m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
50 # ------------------
61 # ------------------
71 m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
81 _LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
102 dnl aclocal-1.4 backwards compatibility:
108 # -----------------------
110 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
117 \-*) ;;
121 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
127 # -------------------
141 # ----------------------
145 [: ${CP="cp -f"}
146 : ${MV="mv -f"}
147 : ${RM="rm -f"}
152 # ---------
174 test -z "$LN_S" && LN_S="ln -s"
196 if test -n "\${ZSH_VERSION+set}"; then
200 if test -n "${ZSH_VERSION+set}"; then
234 test -z "$CC" && CC=cc
235 test -z "$LTCC" && LTCC=$CC
236 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
237 test -z "$LD" && LD=ld
238 test -z "$ac_objext" && ac_objext=o
243 test -z "$MAGIC_CMD" && MAGIC_CMD=file
261 # --------------------------
265 # double-quoted strings.
283 # ---------------
295 ## ------------------------------------- ##
297 ## ------------------------------------- ##
305 # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
306 # ----------------------------------------
307 # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
319 # ------------------------------
332 # -----------------------------------------------------
340 # -----------------------------
342 # full-stop to the whole comment if one is not present already.
351 ## ------------------------ ##
353 ## ------------------------ ##
356 # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
357 # -------------------------------------------------------------------
375 # --------------------------------------------------------
380 # ------------------------------------------------
386 # ---------------------------------------------------------
398 # --------------------------------------------------
404 # ---------------------------------------------------
410 # ---------------------------------------------------
421 # ------------------------------------------------
435 # ------------------------------------
444 # ------------------------------
457 # ----------------
466 # -----------------------------------
487 # -----------------------
488 # Produce commented declarations of non-tagged libtool config variables
499 # -------------------------
506 # ------------------------------
511 # -------------------
537 # The HP-UX ksh and POSIX shell print the target directory to stdout
570 # Double-quote double-evaled strings.
575 …\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_s…
587 # ------------------------------------
593 # the child script. The macro ends with non-zero status if the
605 SHELL=\${CONFIG_SHELL-$SHELL}
617 # ---------
642 -h, --help print this help, then exit
643 -V, --version print version number, then exit
644 -q, --quiet do not print progress messages
645 -d, --debug don't remove temporary files
647 Report bugs to <bug-libtool@gnu.org>."
661 --version | --v* | -V )
663 --help | --h* | -h )
665 --debug | --d* | -d )
667 --quiet | --q* | --silent | --s* | -q )
670 -*) AC_MSG_ERROR([unrecognized option: $[1]
671 Try '$[0] --help' for more information.]) ;;
674 Try '$[0] --help' for more information.]) ;;
701 lt_config_lt_args="$lt_config_lt_args --quiet"
710 # ---------------
711 # If TAG is the built-in tag, create an initial libtool script with a
722 if test -n "${ZSH_VERSION+set}"; then
735 # Provide generalized library-building support services.
779 # if finds mixed CR/LF and LF-only lines. Since sed operates in
783 || (rm -f "$cfgfile"; exit 1)
785 mv -f "$cfgfile" "$ofile" ||
786 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
809 # ---------------------
811 # --tag option, using:
812 # autoconf --trace 'LT_SUPPORTED_TAG:$1'
816 # C support is built-in for now
822 # -------------
841 # ------------------
854 # GNU Autoconf as AC_PROG_GO. When it is available in #
864 if test -z "$GOC"; then
865 if test -n "$ac_tool_prefix"; then
869 if test -z "$GOC"; then
877 # -----------------------
921 dnl aclocal-1.4 backwards compatibility:
930 # ----------------
937 _LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
940 LTCC=${LTCC-"$CC"}
943 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
951 # ------------------------
965 # ----------------------
974 $RM -r conftest*
978 # -------------------------
994 [ldd/readelf like tool for Mach-O binaries on Mac OS X])
996 [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
998 AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
1000 if test -z "$LT_MULTI_MODULE"; then
1001 # By default we will add the -single_module flag. You can override
1003 # non-empty at configure time, or by adding -multi_module to the
1005 rm -rf libconftest.dylib*
1007 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
1008 -dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
1009 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
1010 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
1012 # If there is a non-empty error log, and "single_module"
1014 if test -s conftest.err && $GREP single_module conftest.err; then
1018 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
1023 rm -rf libconftest.dylib*
1024 rm -f conftest.*
1027 AC_CACHE_CHECK([for -exported_symbols_list linker flag],
1032 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
1039 AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
1044 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
1053 …echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAG…
1054 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
1056 if test -s conftest.err && $GREP force_load conftest.err; then
1058 …elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
1063 rm -f conftest.err libconftest.a conftest conftest.c
1064 rm -rf conftest.dSYM
1068 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
1070 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
1073 10.[[012]],*|,*powerpc*-darwin[[5-8]]*)
1074 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
1076 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
1084 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
1086 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
1099 # ---------------------------------
1109 …ec, $1)='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenienc…
1123 …_LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs…
1124 …_LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$co…
1125 …\$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobj…
1126 …sym_cmds, $1)="$SED -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC…
1129 …-r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_…
1130 …-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamicl…
1139 # ----------------------------------
1162 …_LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_a…
1163 # Check for a 64-bit object if we didn't find anything.
1164 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
1165 …_LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$l…
1167 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
1177 # -------------------
1179 [m4_divert_text([M4SH-INIT], [$1
1185 # -----------------------
1197 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
1198 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
1199 ECHO='print -r --'
1214 # Invoke $ECHO with all args, space-separated.
1222 print*) AC_MSG_RESULT([print -r]) ;;
1228 test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
1234 || test "X`print -r -- $ECHO`" = "X$ECHO" )])])
1242 # ----------------
1247 [AS_HELP_STRING([--with-sysroot@<:@=DIR@:>@],
1258 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
1262 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
1272 AC_MSG_RESULT([${lt_sysroot:-no}])
1277 # ---------------
1279 [AC_ARG_ENABLE([libtool-lock],
1280 [AS_HELP_STRING([--disable-libtool-lock],
1287 ia64-*-hpux*)
1293 *ELF-32*)
1296 *ELF-64*)
1301 rm -rf conftest*
1303 *-*-irix6*)
1310 *32-bit*)
1311 LD="${LD-ld} -melf32bsmip"
1314 LD="${LD-ld} -melf32bmipn32"
1316 *64-bit*)
1317 LD="${LD-ld} -melf64bmip"
1322 *32-bit*)
1323 LD="${LD-ld} -32"
1326 LD="${LD-ld} -n32"
1328 *64-bit*)
1329 LD="${LD-ld} -64"
1334 rm -rf conftest*
1337 mips64*-*linux*)
1344 *32-bit*)
1347 *64-bit*)
1364 LD="${LD-ld} -m $emul"
1366 rm -rf conftest*
1369 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
1370 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
1374 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
1380 *32-bit*)
1382 x86_64-*kfreebsd*-gnu)
1383 LD="${LD-ld} -m elf_i386_fbsd"
1385 x86_64-*linux*)
1387 *x86-64*)
1388 LD="${LD-ld} -m elf32_x86_64"
1391 LD="${LD-ld} -m elf_i386"
1395 powerpc64le-*linux*)
1396 LD="${LD-ld} -m elf32lppclinux"
1398 powerpc64-*linux*)
1399 LD="${LD-ld} -m elf32ppclinux"
1401 s390x-*linux*)
1402 LD="${LD-ld} -m elf_s390"
1404 sparc64-*linux*)
1405 LD="${LD-ld} -m elf32_sparc"
1409 *64-bit*)
1411 x86_64-*kfreebsd*-gnu)
1412 LD="${LD-ld} -m elf_x86_64_fbsd"
1414 x86_64-*linux*)
1415 LD="${LD-ld} -m elf_x86_64"
1417 powerpcle-*linux*)
1418 LD="${LD-ld} -m elf64lppc"
1420 powerpc-*linux*)
1421 LD="${LD-ld} -m elf64ppc"
1423 s390*-*linux*|s390*-*tpf*)
1424 LD="${LD-ld} -m elf64_s390"
1426 sparc*-*linux*)
1427 LD="${LD-ld} -m elf64_sparc"
1433 rm -rf conftest*
1436 *-*-sco3.2v5*)
1437 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1439 CFLAGS="$CFLAGS -belf"
1440 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
1445 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1449 *-*solaris*)
1455 *64-bit*)
1459 i?86-*-solaris*|x86_64-*-solaris*)
1460 LD="${LD-ld} -m elf_x86_64"
1462 sparc*-*-solaris*)
1463 LD="${LD-ld} -m elf64_sparc"
1466 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
1467 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
1468 LD=${LD-ld}_sol2
1472 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
1473 LD="${LD-ld} -64"
1480 rm -rf conftest*
1489 # -----------
1501 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
1505 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
1507 _LT_DECL([], [AR_FLAGS], [\@S|@{ARFLAGS-"\@S|@lt_ar_flags"}],
1516 if test 0 -eq "$ac_status"; then
1518 rm -f conftest.$ac_objext libconftest.a
1520 if test 0 -ne "$ac_status"; then
1524 rm -f conftest.* libconftest.a
1539 # -------------------
1544 test -z "$STRIP" && STRIP=:
1548 test -z "$RANLIB" && RANLIB=:
1550 [Commands used to install an old-style archive])
1552 # Determine commands to create old-style static archives.
1557 if test -n "$RANLIB"; then
1560 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
1578 [Commands used to build an old-style archive])
1584 # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1585 # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
1586 # ----------------------------------------------------------------
1602 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1603 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1604 -e 's:$: $lt_compiler_flag:'`
1610 if (exit $ac_status) && test -s "$ac_outfile"; then
1615 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
1631 dnl aclocal-1.4 backwards compatibility:
1635 # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1636 # [ACTION-SUCCESS], [ACTION-FAILURE])
1637 # ----------------------------------------------------
1647 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
1650 if test -s conftest.err; then
1662 $RM -r conftest*
1675 dnl aclocal-1.4 backwards compatibility:
1680 #---------------
1698 gnu*)
1699 # Under GNU Hurd, this test is not required because there is
1701 # Libtool will interpret -1 as no limit whatsoever
1702 lt_cv_sys_max_cmd_len=-1;
1706 # On Win9x/ME, this test blows up -- it succeeds, but takes
1708 # Worse, since 9x/ME are not pre-emptively multitasking,
1729 if test -x /sbin/sysctl; then
1730 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
1731 elif test -x /usr/sbin/sysctl; then
1732 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
1758 if test -x /sbin/sysconfig; then
1759 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
1760 *1*) lt_cv_sys_max_cmd_len=-1 ;;
1769 if test -n "$kargmax"; then
1777 if test -n "$lt_cv_sys_max_cmd_len" && \
1787 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
1788 # If test is not a shell built-in, we'll probably end up computing a
1809 if test -n "$lt_cv_sys_max_cmd_len"; then
1821 dnl aclocal-1.4 backwards compatibility:
1826 # ----------------
1832 # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
1833 # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
1834 # ----------------------------------------------------------------
1884 /* When -fvisibility=hidden is used, assume the code has been annotated
1912 if AC_TRY_EVAL(ac_link) && test -s "conftest$ac_exeext" 2>/dev/null; then
1925 rm -fr conftest*
1930 # ------------------
1961 [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl],[
1970 # because TPF is a cross-compiler, and we know how we open DSOs.
1980 [lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld],
1984 [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl],
1986 [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld],
1988 [lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld])
2006 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
2057 dnl aclocal-1.4 backwards compatibility:
2062 # ---------------------------
2063 # Check to see if options -c and -o are simultaneously supported by compiler.
2069 AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
2072 $RM -r conftest 2>/dev/null
2078 lt_compiler_flag="-o out/conftest2.$ac_objext"
2084 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2085 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
2086 -e 's:$: $lt_compiler_flag:'`
2092 if (exit $ac_status) && test -s out/conftest2.$ac_objext
2098 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
2106 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
2109 $RM -r conftest
2113 [Does compiler simultaneously support -c and -o options?])
2118 # ----------------------------------
2137 AC_MSG_WARN(['$CC' does not support '-c -o', so 'make -j' may be unsafe])
2148 # ----------------
2151 [rm -f .libs 2>/dev/null
2153 if test -d .libs; then
2156 # MS-DOS does not allow filenames that begin with a dot.
2165 [Define to the sub-directory where libtool stores uninstalled libraries.])
2170 # --------------------------------------
2175 if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
2176 test -n "$_LT_TAGVAR(runpath_var, $1)" ||
2179 # We can hardcode non-existent directories.
2183 # when we should be linking with a yet-to-be-installed one
2214 # ----------------
2220 if test -z "$STRIP"; then
2223 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
2224 old_striplib="$STRIP --strip-debug"
2225 striplib="$STRIP --strip-unneeded"
2230 # FIXME - insert some real tests, host_os isn't really good enough
2231 striplib="$STRIP -x"
2232 old_striplib="$STRIP -S"
2236 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
2237 old_striplib="$STRIP --strip-debug"
2238 striplib="$STRIP --strip-unneeded"
2256 # ---------------------------
2260 # -----------------------------------
2285 eval @S|@1=\"\@S|@@S|@1\ `$ECHO @S|@2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
2286 eval @S|@1=\"`$ECHO @S|@2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \@S|@@S|@1\"
2297 # -----------------------------
2316 mingw* | cegcc*) lt_sed_strip_eq='s|=\([[A-Za-z]]:\)|\1|g' ;;
2319 …lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_s…
2323 # otherwise default to the standard path separator (i.e. ":") - it is
2335 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
2337 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
2344 if test -d "$lt_sys_path$lt_multi_os_dir"; then
2346 elif test -n "$lt_multi_os_dir"; then
2347 test -d "$lt_sys_path" && \
2355 for (lt_i = NF; lt_i > 0; lt_i--) {
2363 lt_count--;
2375 $SED 's|/\([[A-Za-z]]:\)|\1|g'` ;;
2397 # when you set need_version to no, make sure it does not cause -set_version
2402 [User-defined run-time library search path.])
2406 version_type=linux # correct to gnu/linux during the next big refactor
2414 aix[[4-9]]*)
2415 version_type=linux # correct to gnu/linux during the next big refactor
2433 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
2441 # filename-based versioning of shared library archives on AIX. While
2443 # prevent static linking of such archives. So we do filename-based
2448 # versioned .so libs for executables only if there is the -brtl
2449 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
2450 # To allow for filename-based versioning support, we need to create
2460 # but for link time we create the symlink libNAME.so -> libNAME.so.V
2490 …-n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$…
2500 …-z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z …
2501 …postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_librar…
2512 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
2530 version_type=linux # correct to gnu/linux during the next big refactor
2540 # libtool to hard-code these into programs
2555 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
2557 test -d \$dldir || mkdir -p \$dldir~
2560 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
2563 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2571 …soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuf…
2577 soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
2581 …library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[[.]]/-/g'`$…
2590 soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
2607 …ath_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|…
2613 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
2614 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
2615 …sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEP…
2619 if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
2621 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2623 … sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2626 # common. (e.g. "Program Files" -> "PROGRA~1")
2632 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
2634 test -d \$dldir || mkdir -p \$dldir~
2636 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2645 …library_names_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext $libname.…
2669 version_type=linux # correct to gnu/linux during the next big refactor
2680 if test -x /usr/bin/objformat; then
2688 version_type=freebsd-$objformat
2690 freebsd-elf*)
2696 freebsd-*)
2710 freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
2711 freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
2723 version_type=linux # correct to gnu/linux during the next big refactor
2778 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
2784 interix[[3-9]]*)
2785 version_type=linux # correct to gnu/linux during the next big refactor
2801 version_type=linux # correct to gnu/linux during the next big refactor
2816 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
2817 libsuff= shlibsuff= libmagic=32-bit;;
2818 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
2820 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
2821 libsuff=64 shlibsuff=64 libmagic=64-bit;;
2822 *) libsuff= shlibsuff= libmagic=never-match;;
2833 # No shared lib support for Linux oldld, aout, or coff.
2834 linux*oldld* | linux*aout* | linux*coff*)
2838 linux*android*)
2854 # Don't embed -rpath directories since the linker doesn't support them.
2855 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
2859 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
2860 version_type=linux # correct to gnu/linux during the next big refactor
2865 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
2869 # Some binutils ld are patched to set DT_RUNPATH
2877 [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
2892 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
2893 # even though it is searched at run-time. Try to do the best guess by
2895 if test -f /etc/ld.so.conf; then
2896 …skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwc…
2902 # GNU dynamic linker. Since this was broken with cross compilers,
2903 # most powerpc-linux boxes support dynamic linking these days and
2904 # people can always --disable-shared, the test was removed, and we
2905 # assume the GNU/Linux dynamic linker is in use.
2906 dynamic_linker='GNU/Linux ld.so'
2909 netbsdelf*-gnu)
2910 version_type=linux
2925 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
2927 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2940 version_type=linux # correct to gnu/linux during the next big refactor
2962 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
2968 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2980 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
2981 v=$($ECHO $release$versuffix | tr -d .-);
2982 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
2990 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
2992 test -d \$dldir || mkdir -p \$dldir~
2995 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
2998 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
3019 version_type=linux # correct to gnu/linux during the next big refactor
3044 version_type=linux # correct to gnu/linux during the next big refactor
3067 if test -d /usr/nec; then
3068 version_type=linux # correct to gnu/linux during the next big refactor
3085 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
3098 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
3099 version_type=linux # correct to gnu/linux during the next big refactor
3109 version_type=linux # correct to gnu/linux during the next big refactor
3138 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
3154 [Is shlibpath searched before the hard-coded library search path?])
3158 The last name is the one that the linker finds with -lNAME]])
3175 [Compile-time system search path for libraries])
3177 [Detected run-time system search path for libraries])
3184 # --------------------------
3197 dnl $ac_dummy forces splitting on constant user-supplied paths.
3203 test -z "$ac_dir" && ac_dir=.
3204 if test -f "$ac_dir/$1"; then
3206 if test -n "$file_magic_test_file"; then
3224 *** bug-libtool@gnu.org
3238 if test -n "$MAGIC_CMD"; then
3249 dnl aclocal-1.4 backwards compatibility:
3254 # --------------
3258 if test -z "$lt_cv_path_MAGIC_CMD"; then
3259 if test -n "$ac_tool_prefix"; then
3269 # ----------
3270 # find the pathname to the GNU or non-GNU linker
3279 AC_ARG_WITH([gnu-ld],
3280 [AS_HELP_STRING([--with-gnu-ld],
3281 [assume the C compiler uses GNU ld @<:@default=no@:>@])],
3287 # Check if gcc -print-prog-name=ld gives a path.
3290 *-*-mingw*)
3292 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3294 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3305 test -z "$LD" && LD=$ac_prog
3317 AC_MSG_CHECKING([for GNU ld])
3319 AC_MSG_CHECKING([for non-GNU ld])
3322 [if test -z "$LD"; then
3326 test -z "$ac_dir" && ac_dir=.
3327 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3329 # Check to see if the program is GNU ld. I'd rather use --version,
3330 # but apparently some variants of GNU ld only accept -v.
3331 # Break only if it was the GNU/non-GNU ld that we prefer.
3332 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3333 *GNU* | *'with BFD'*)
3347 if test -n "$LD"; then
3352 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
3362 dnl aclocal-1.4 backwards compatibility:
3368 #- --------------
3370 [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
3371 [# I'd rather use --version here, but apparently some GNU lds only accept -v.
3372 case `$LD -v 2>&1 </dev/null` in
3373 *GNU* | *'with BFD'*)
3385 # --------------
3387 # -- PORTME Some linkers may need a different reload flag.
3391 [lt_cv_ld_reload_flag='-r'])
3397 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3406 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
3408 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3418 # -----------
3427 cmp -s conftest.i conftest.out \
3430 rm -f conftest.i conftest2.i conftest.out])
3435 # ----------------
3444 cmp -s conftest.i conftest.out \
3447 rm -f conftest.i conftest2.i conftest.out
3448 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"])
3455 # ----------------------
3457 # -- PORTME fill in with the dynamic library characteristics
3468 # 'none' -- dependencies not supported.
3469 # 'unknown' -- same as none, but documents that we really don't know.
3470 # 'pass_all' -- all dependencies passed with no checks.
3471 # 'test_compile' -- check by making test program.
3472 # 'file_magic [[regex]]' -- check by looking for files in library path
3478 aix[[4-9]]*)
3487 …lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib…
3488 lt_cv_file_magic_cmd='$FILECMD -L'
3501 # unless we find 'file', for example because we are cross-compiling.
3507 …v_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x…
3508 lt_cv_file_magic_cmd='$OBJDUMP -f'
3514 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
3515 lt_cv_file_magic_cmd='$OBJDUMP -f'
3523 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3528 …lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand pa…
3546 …lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object f…
3550 …heck_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)…
3554 …lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared lib…
3560 interix[[3-9]]*)
3567 *-32|*"-32 ") libmagic=32-bit;;
3568 *-n32|*"-n32 ") libmagic=N32;;
3569 *-64|*"-64 ") libmagic=64-bit;;
3570 *) libmagic=never-match;;
3576 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
3580 netbsd* | netbsdelf*-gnu)
3581 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3582 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3589 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
3599 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
3600 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
3602 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3625 …bs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][…
3633 …lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib…
3637 lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
3666 …file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/…
3674 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3688 # ----------
3689 # find the pathname to a BSD- or MS-compatible name lister
3692 AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
3693 [if test -n "$NM"; then
3698 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3705 test -z "$ac_dir" && ac_dir=.
3707 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
3708 # Check to see if the nm accepts a BSD-compat flag.
3709 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
3717 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
3719 lt_cv_path_NM="$tmp_nm -B"
3723 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
3725 lt_cv_path_NM="$tmp_nm -p"
3745 if test -n "$DUMPBIN"; then :
3748 AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
3749 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
3751 DUMPBIN="$DUMPBIN -symbols -headers"
3763 test -z "$NM" && NM=nm
3765 _LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
3781 rm -f conftest*])
3787 dnl aclocal-1.4 backwards compatibility:
3792 # --------------------------------
3795 # -- PORTME fill in with the dynamic library characteristics
3808 case `$DLLTOOL --help 2>&1` in
3809 *--identify-strict*)
3824 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
3832 # ----------------------
3836 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
3839 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
3840 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
3845 rm -f conftest*])
3854 # ---------------------
3859 test DEF = "`$SED -n dnl
3860 -e '\''s/^[[ ]]*//'\'' dnl Strip leading whitespace
3861 -e '\''/^\(;.*\)*$/d'\'' dnl Delete empty lines and comments
3862 -e '\''s/^\(EXPORTS\|LIBRARY\)\([[ ]].*\)*$/DEF/p'\'' dnl
3863 -e q dnl Only consider the first "real" line
3869 # --------
3875 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
3878 *-ncr-sysv4.3*)
3879 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM=-lmw)
3880 AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
3883 AC_CHECK_LIB(m, cos, LIBM=-lm)
3891 dnl aclocal-1.4 backwards compatibility:
3896 # -------------------------------
3905 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
3907 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;;
3910 _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
3912 [-fno-rtti -fno-exceptions], [],
3913 …o_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
3921 # ----------------------
3943 sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
3945 # Define system-specific variables.
3981 # If we're using GNU nm, then use its standard symbol codes.
3982 case `$NM -V 2>&1` in
3983 *GNU* | *'with BFD'*)
3989 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
3991 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
3992 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
3994 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
3995 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
4007 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
4009 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
4010 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
4013 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
4015 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
4016 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
4020 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
4022 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
4023 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
4024 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
4042 # Fake it for dumpbin and say T for any non-static function,
4062 …lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx…
4069 rm -f conftest*
4087 …_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&AS_MESSAGE_LOG_FD && test -s "$nlist"; then
4090 mv -f "$nlist"T "$nlist"
4092 rm -f "$nlist"T
4102 relocations are performed -- see ld's documentation on pseudo-relocs. */
4117 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
4130 …$SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> c…
4152 if AC_TRY_EVAL(ac_link) && test -s conftest$ac_exeext; then
4170 rm -rf conftest* conftst*
4180 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4183 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4192 elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then
4216 # ---------------------------
4226 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4227 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4234 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4236 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4243 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4247 # adding the '-m68020' flag to GCC prevents building anything better,
4248 # like '-m68040'.
4249 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4260 # Although the cygwin gcc ignores -fPIC, still need this for old-style
4261 # (--disable-auto-import) libraries
4263 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4266 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static'
4273 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4281 # The "-static" flag exists, but is broken.
4284 interix[[3-9]]*)
4285 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4289 if test -d /usr/nec; then
4290 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
4294 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
4295 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
4301 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4306 # QNX uses GNU C++, but need to define -shared option too, otherwise
4308 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4311 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4316 aix[[4-9]]*)
4320 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4322 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
4329 …# _LT_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abor…
4337 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4342 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4346 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4353 # FreeBSD uses GNU C++
4358 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4359 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive'
4365 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4366 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive'
4387 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4388 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4389 # CC pic flag -KPIC is the default.
4395 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
4399 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4400 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4403 # old Intel C++ for x86_64, which still supported -KPIC.
4404 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4405 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4406 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4410 # ICC 10 doesn't accept -KPIC any more.
4411 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4412 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4413 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4417 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4418 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4419 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4424 # Linux and Compaq Tru64 Unix objects are PIC.
4426 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4430 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4431 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4432 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4435 case `$CC -V 2>&1 | $SED 5q` in
4438 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4439 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4440 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4453 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
4459 netbsd* | netbsdelf*-gnu)
4462 # QNX uses GNU C++, but need to define -shared option too, otherwise
4464 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4469 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4473 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4477 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4479 # Linux and Compaq Tru64 Unix objects are PIC.
4481 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4493 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4494 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4495 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4499 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4509 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4510 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4514 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4523 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4524 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4525 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4532 # NonStop-UX NCC 3.20
4533 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4549 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4550 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4557 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4559 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4566 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4570 # adding the '-m68020' flag to GCC prevents building anything better,
4571 # like '-m68040'.
4572 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4584 # Although the cygwin gcc ignores -fPIC, still need this for old-style
4585 # (--disable-auto-import) libraries
4587 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4590 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static'
4598 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4603 # The "-static" flag exists, but is broken.
4608 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
4609 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
4616 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4621 interix[[3-9]]*)
4622 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4634 # QNX uses GNU C++, but need to define -shared option too, otherwise
4636 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4640 if test -d /usr/nec; then
4641 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
4646 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4652 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
4653 if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
4654 _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)"
4662 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4665 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4667 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
4674 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4678 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
4679 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4680 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4689 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4692 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static'
4698 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4699 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
4700 # not for PA HP-UX.
4710 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive'
4714 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4715 # PIC (with -KPIC) is the default.
4716 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4719 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
4721 # old Intel for x86_64, which still supported -KPIC.
4723 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4724 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4725 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4729 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4730 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4731 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4734 # ICC 10 doesn't accept -KPIC any more.
4736 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4737 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4738 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4742 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4743 _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
4744 _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
4748 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
4749 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4750 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4754 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4755 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4756 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4761 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4762 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4763 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4766 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4768 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4772 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4773 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4774 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4777 case `$CC -V 2>&1 | $SED 5q` in
4778 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*)
4780 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4781 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4785 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4786 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4787 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4791 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4792 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4793 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4796 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4797 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4798 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4801 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4802 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4803 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4811 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4812 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4816 # QNX uses GNU C++, but need to define -shared option too, otherwise
4818 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4822 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4824 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4828 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4832 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4833 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4836 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
4838 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
4843 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4844 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4845 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4849 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4850 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4851 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4855 if test -d /usr/nec; then
4856 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
4857 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4862 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4863 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4864 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4868 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4873 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4874 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4884 # For platforms that do not support PIC, -DPIC is meaningless:
4889 …$1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[]…
4901 if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
4904 …[$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])]…
4932 # ----------------------------
4948 aix[[4-9]]*)
4949 # If we're using GNU nm, then we don't want the "-C" option.
4950 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
4951 # Without the "-l" option, or with the "-B" option, AIX nm treats
4953 # GNU nm marks them as "W".
4955 # it in the Import File for the 'aix-soname' feature, so we have
4956 # to replace the "-B" option with "-P" for AIX nm.
4957 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4958 …-Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$…
4960 …-e '\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\…
4972 …_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\'…
4973 … $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_…
4977 linux* | k*bsd*-gnu | gnu*)
5009 # include_expsyms should be a list of space-separated symbols to be *always*
5042 linux* | k*bsd*-gnu | gnu*)
5049 # On some targets, GNU ld is compatible enough with the native linker
5055 # The AIX port of GNU ld has always aspired to compatibility
5056 # with the native linker. However, as the warning in the GNU ld
5059 case `$LD -v 2>&1` in
5060 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
5061 *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;;
5062 *\ \(GNU\ Binutils\)\ [[3-9]]*) ;;
5078 # Set some defaults for GNU ld with shared library support. These
5082 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
5083 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
5084 # ancient GNU ld didn't support --whole-archive et. al.
5085 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
5086 …_LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-arch…
5091 case `$LD -v | $SED -e 's/([[^)]]\+)\s\+//' 2>&1` in
5092 *GNU\ gold*) supports_anon_versioning=yes ;;
5093 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
5100 # See if GNU ld supports shared libraries.
5102 aix[[3-9]]*)
5103 # On AIX/PPC, the GNU linker is very broken
5108 *** Warning: the GNU linker, at least up to release 2.19, is reported
5111 *** really care for shared libraries, you may want to install binutils
5112 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
5123 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname …
5127 …r/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
5128 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5135 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5138 # support --undefined. This deserves some investigation. FIXME
5139 …_LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname…
5148 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5149 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols'
5153 …_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\'…
5154 … $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_…
5156 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
5157 …e_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-a…
5158 # If the export-symbols file already is a .def file, use it as
5166 …CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname …
5173 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname …
5178 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5187 …$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$lib…
5188 emximp -o $lib $output_objdir/$libname.def'
5195 prefix_cmds="$prefix_cmds -e 1d";
5197 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
5199 …$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$lib…
5200 emximp -o $lib $output_objdir/$libname.def'
5201 …_LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdi…
5206 interix[[3-9]]*)
5209 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
5210 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
5215 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
5217 …1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${…
5218 …-shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output…
5221 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
5223 if test linux-dietlibc = "$host_os"; then
5225 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
5228 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
5232 tmp_sharedflag='-shared'
5235 …--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_conv…
5240 …--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_conv…
5241 tmp_addflag=' $pic_flag -Mnomain' ;;
5243 tmp_addflag=' -i_dynamic' ;;
5245 tmp_addflag=' -i_dynamic -nofor_main' ;;
5247 tmp_addflag=' -nofor_main' ;;
5250 tmp_sharedflag='--shared' ;;
5252 tmp_sharedflag='-Wl,-shared' ;;
5254 tmp_sharedflag='-qmkshrobj'
5257 …--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_conv…
5261 case `$CC -V 2>&1 | $SED 5q` in
5263 …--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_conven…
5265 tmp_sharedflag='-G' ;;
5267 tmp_sharedflag='-G' ;;
5269 … '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
5273 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5275 …g"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$…
5280 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
5281 _LT_TAGVAR(export_dynamic_flag_spec, $1)='-rdynamic'
5285 _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
5286 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
5287 … _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
5290 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5292 …$LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libnam…
5301 netbsd* | netbsdelf*-gnu)
5302 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
5303 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5306 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $…
5307 …m_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-ret…
5312 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
5316 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5318 *** is disabling shared libraries support. We urge you to upgrade GNU
5319 *** binutils to release 2.9.1 or newer. Another option is to modify
5324 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5325 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $…
5326 …m_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-ret…
5333 case `$LD -v 2>&1` in
5334 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
5338 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
5340 *** is disabling shared libraries support. We urge you to upgrade GNU
5341 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
5352 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5353 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
5354 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname …
5355 …expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-s…
5364 …_LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_…
5371 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5372 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $…
5373 …m_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-ret…
5387 # PORTME fill in a description of your system's linker (not GNU ld)
5392 …(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$expo…
5394 # are no directories specified by -L.
5396 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
5403 aix[[4-9]]*)
5408 exp_sym_flag='-Bexport'
5411 # If we're using GNU nm, then we don't want the "-C" option.
5412 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
5413 # Without the "-l" option, or with the "-B" option, AIX nm treats
5415 # GNU nm marks them as "W".
5417 # it in the Import File for the 'aix-soname' feature, so we have
5418 # to replace the "-B" option with "-P" for AIX nm.
5419 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
5420 …-Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$…
5422 …-e '\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\…
5427 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5430 # depending on the kind of the shared library created -
5441 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
5443 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
5449 # With aix-soname=svr4, we create the lib.so.V shared archives only,
5453 LDFLAGS="$LDFLAGS -Wl,-brtl"
5458 exp_sym_flag='-bexport'
5459 no_entry_flag='-bnoentry'
5464 # or program results in "error TOC overflow" add -mminimal-toc to
5466 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5473 _LT_TAGVAR(file_list_spec, $1)='$wl-f,'
5487 collect2name=`$CC -print-prog-name=collect2`
5488 if test -f "$collect2name" &&
5500 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5505 shared_flag='-shared'
5507 shared_flag="$shared_flag "'$wl-G'
5511 # /with/ Import File - we do not want to mix them.
5512 shared_flag_aix='-shared'
5513 shared_flag_svr4='-shared $wl-G'
5517 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
5518 # chokes on -Wl,-G. The following line is correct:
5519 shared_flag='-G'
5522 shared_flag='$wl-G'
5524 shared_flag='$wl-bM:SRE'
5526 shared_flag_aix='$wl-bM:SRE'
5527 shared_flag_svr4='$wl-G'
5531 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall'
5532 # It seems that -bexpall does not export symbols beginning with
5536 # Warning - without using the other runtime loading flags (-brtl),
5537 # -berok will link without error, but may produce a broken library.
5538 _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
5542 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
5543 …(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $co…
5546 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib'
5547 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
5548 …_LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $depli…
5553 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
5554 # Warning - without using the other run time loading flags,
5555 # -berok will link without error, but may produce a broken library.
5556 _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok'
5557 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok'
5559 # We only use this code for GNU lds that support --whole-archive.
5560 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive'
5566 …_LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$real…
5567 # -brtl affects multiple linker settings, -berok does not and is overridden later
5568 …compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([[, ]]\\)%-berok\\…
5571 …)"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$…
5574 …-o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compi…
5576 # used by -dlpreopen to get the symbols
5579 …_LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$RM -r $output_objdir/…
5588 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname …
5592 …r/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
5593 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5600 _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
5620 …_LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,…
5625 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
5627 …$CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.e…
5633 … $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1,DATA/'…
5645 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
5646 …$MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || e…
5659 …TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\…
5663 _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
5674 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5675 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5684 …_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++…
5685 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5692 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5698 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5700 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5701 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5708 …VAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -…
5710 …_LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objd…
5719 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
5724 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $…
5726 …_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $link…
5733 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
5744 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_fla…
5747 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $l…
5750 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $…
5756 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
5759 …_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs…
5763 # Older versions of the 11.00 compiler do not understand -b yet
5764 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
5765 _LT_LINKER_OPTION([if $CC understands -b],
5766 _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b],
5767 …[_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $…
5768 …[_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $lin…
5769 …[_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $…
5785 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
5797 …-shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" &&…
5798 # Try to use the -exported_symbol ld option, if it does not
5799 # work, assume that -exports_file does not work either and
5801 # This should be the same for all languages, so no per-tag cache variable.
5802 AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
5805 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
5820 …-shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" &&…
5824 …-shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "…
5825 …-shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "…
5828 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
5834 linux*)
5839 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5840 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
5845 netbsd* | netbsdelf*-gnu)
5846 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
5847 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5849 _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5851 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5857 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5859 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
5868 if test -f /usr/libexec/ld.so; then
5872 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5873 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5874 …TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $…
5875 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
5876 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
5878 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5879 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
5887 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5896 …$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$lib…
5897 emximp -o $lib $output_objdir/$libname.def'
5904 prefix_cmds="$prefix_cmds -e 1d";
5906 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
5908 …$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$lib…
5909 emximp -o $lib $output_objdir/$libname.def'
5910 …_LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdi…
5917 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
5918 …-shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$ve…
5920 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5921 …-shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstrin…
5924 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
5928 osf4* | osf5*) # as osf3* with the addition of -msym flag
5930 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
5931 …-shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$s…
5932 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
5934 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5935 …-shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$ve…
5936 …in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%…
5937 …-shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $sona…
5939 # Both c and cxx compiler support -rpath directly
5940 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
5947 _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
5950 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libo…
5951 …_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/…
5952 …$CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs…
5954 case `$CC -V 2>&1` in
5957 …_LT_TAGVAR(archive_cmds, $1)='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $li…
5958 …_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/…
5959 …$LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $li…
5963 …_LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $co…
5964 …_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/…
5965 …$CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $…
5969 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5972 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
5975 # but understands '-z linker_flag'. GCC discards it without '$wl',
5979 …_LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextra…
5981 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
5992 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5994 …_LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_fla…
5996 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6005 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6011 _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6012 _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
6016 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6025 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6027 _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
6031 if test -d /usr/nec; then
6032 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6041 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
6047 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6048 …_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib…
6050 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6051 …_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $lib…
6056 # Note: We CANNOT use -z defs as we might desire, because we do not
6057 # link with -lc, and that would cause any symbols used from libc to
6059 # ever link correctly. If we're not using GNU ld we use -z text
6060 # though, which does catch some bad symbols but isn't as heavy-handed
6061 # as -z defs.
6062 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
6063 _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs'
6066 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir'
6069 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport'
6073 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6074 …_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib…
6076 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6077 …_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $lib…
6082 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6083 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6095 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Blargedynsym'
6116 # Assume -lc should be added
6122 # FIXME: we may have to deal with multi-command sequences.
6125 # Test whether the compiler implicitly links with -lc since on some
6126 # systems, -lgcc has to come before -lc. If gcc already passes -lc
6127 # to ld, don't add -lc before -lgcc.
6128 AC_CACHE_CHECK([whether -lc should be explicitly linked in],
6140 compiler_flags=-v
6141 linker_flags=-v
6147 if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
6167 [Whether or not to add -lc for building shared libraries])
6178 [Create an old-style archive from a shared archive])
6180 [Create a temporary old-style archive to link instead of a shared archive])
6188 [Whether we are building with GNU ld or not])
6197 [Whether we need a single "-rpath" flag with a separated argument])
6207 [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
6242 # ------------------------
6277 if test -n "$compiler"; then
6300 if test -n "$RANLIB"; then
6306 aix[[4-9]]*)
6331 # --------------------------
6339 if test -n "$CXX" && ( test no != "$CXX" &&
6340 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
6382 # and will be corrupted by setting them based on a non-working compiler.
6405 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
6410 if test -n "${lt_cv_path_LDCXX+set}"; then
6415 test -z "${LDCXX+set}" || LD=$LDCXX
6416 CC=${CXX-"c++"}
6422 if test -n "$compiler"; then
6423 # We don't want -fno-exception when compiling C++ code, so set the
6426 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
6432 # Set up default GNU C++ configuration
6436 # Check if GNU C++ uses GNU ld as the underlying linker, since the
6437 # archiving commands below assume that GNU ld is being used.
6439 …s, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compil…
6440 … -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $…
6442 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
6443 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
6446 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
6450 # ancient GNU ld didn't support --whole-archive et. al.
6451 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
6452 $GREP 'no-whole-archive' > /dev/null; then
6453 …_LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-arch…
6462 # command for GNU C++ for the case where it uses the native
6463 # linker, instead of GNU ld. If possible, this setting should
6466 …LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_obje…
6472 …output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with…
6488 aix[[4-9]]*)
6493 exp_sym_flag='-Bexport'
6499 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6502 # depending on the kind of the shared library created -
6513 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
6516 *-brtl*)
6523 # With aix-soname=svr4, we create the lib.so.V shared archives only,
6527 LDFLAGS="$LDFLAGS -Wl,-brtl"
6532 exp_sym_flag='-bexport'
6533 no_entry_flag='-bnoentry'
6538 # or program results in "error TOC overflow" add -mminimal-toc to
6540 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6547 _LT_TAGVAR(file_list_spec, $1)='$wl-f,'
6561 collect2name=`$CC -print-prog-name=collect2`
6562 if test -f "$collect2name" &&
6574 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6578 shared_flag='-shared'
6580 shared_flag=$shared_flag' $wl-G'
6584 # /with/ Import File - we do not want to mix them.
6585 shared_flag_aix='-shared'
6586 shared_flag_svr4='-shared $wl-G'
6590 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6591 # chokes on -Wl,-G. The following line is correct:
6592 shared_flag='-G'
6595 shared_flag='$wl-G'
6597 shared_flag='$wl-bM:SRE'
6599 shared_flag_aix='$wl-bM:SRE'
6600 shared_flag_svr4='$wl-G'
6604 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall'
6605 # It seems that -bexpall does not export symbols beginning with
6610 # Warning - without using the other runtime loading flags (-brtl),
6611 # -berok will link without error, but may produce a broken library.
6612 # The "-G" linker flag allows undefined symbols.
6613 _LT_TAGVAR(no_undefined_flag, $1)='-bernotok'
6617 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
6619 …(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $co…
6622 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib'
6623 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
6624 …_LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $depli…
6629 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
6630 # Warning - without using the other run time loading flags,
6631 # -berok will link without error, but may produce a broken library.
6632 _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok'
6633 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok'
6635 # We only use this code for GNU lds that support --whole-archive.
6636 … _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive'
6642 …_LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$real…
6643 # -brtl affects multiple linker settings, -berok does not and is overridden later
6644 …compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([[, ]]\\)%-berok\\…
6647 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
6648 …)"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$…
6651 …-o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compi…
6653 # used by -dlpreopen to get the symbols
6656 …_LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$RM -r $output_objdir/…
6662 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6665 # support --undefined. This deserves some investigation. FIXME
6666 …_LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname…
6696 …_LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,…
6701 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
6703 …$CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.e…
6720 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
6721 …$MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || e…
6729 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6730 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols'
6735 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6736 …-shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_ob…
6737 # If the export-symbols file already is a .def file, use it as
6745 …-shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $c…
6757 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6766 …$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$lib…
6767 emximp -o $lib $output_objdir/$libname.def'
6774 prefix_cmds="$prefix_cmds -e 1d";
6776 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
6778 …$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$lib…
6779 emximp -o $lib $output_objdir/$libname.def'
6780 …_LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdi…
6809 freebsd-elf*)
6814 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
6820 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname …
6827 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
6839 …_LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $outpu…
6848 …output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP " \-L"`; lis…
6852 …rchive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_lib…
6870 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
6896 …_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $p…
6899 …_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $…
6902 …_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_obj…
6913 …output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP " \-L"`; list…
6920 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects…
6923 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath …
6926 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_l…
6938 interix[[3-9]]*)
6941 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
6942 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
6947 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6949 …1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${…
6950 …-shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output…
6956 …-shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname …
6959 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
6962 _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
6967 …-shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl…
6969 …-shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl…
6975 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
6980 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6986 # ends with ".so" (or ".sl" for HP-UX), so rename the library
6988 …-e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"…
6989 …-e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"…
6998 …_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GRE…
7000 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
7001 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
7004 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
7005 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
7013 case `$CC -V 2>&1` in
7015 …VAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_fl…
7016 …='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$so…
7021 ia64*) tmp_idyn=' -i_dynamic';;
7023 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-sonam…
7024 …_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-r…
7028 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
7029 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
7030 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive'
7034 case `$CC -V` in
7035 *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
7037 rm -rf $tpldir~
7038 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
7039 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
7041 rm -rf $tpldir~
7042 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
7043 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
7046 rm -rf $tpldir~
7047 …$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $…
7048 … -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $po…
7050 rm -rf $tpldir~
7051 …$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $…
7052 …-shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $pos…
7055 …rchive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compil…
7056 … -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $…
7060 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl--rpath $wl$libdir'
7061 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
7062 …--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_conv…
7066 …VAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_fl…
7067 …mds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-sonam…
7070 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
7081 …output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; tem…
7084 # IBM XL 8.0 on PPC, with GNU ld
7085 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
7086 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
7087 …_LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$sona…
7090 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7092 …$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$outp…
7096 case `$CC -V 2>&1 | $SED 5q` in
7099 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
7100 …_LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libob…
7101 …s, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_o…
7102 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7103 …--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_conven…
7107 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
7112 # "CC -xar", where "CC" is the Sun C++ compiler. This is
7115 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
7146 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7147 …_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_…
7149 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7153 # Workaround some broken pre-1.5 toolchains
7154 …output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $…
7162 if test -f /usr/libexec/ld.so; then
7166 …LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_obje…
7167 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
7168 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
7169 …ds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags …
7170 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
7171 …_LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-arch…
7185 # ends with ".so" (or ".sl" for HP-UX), so rename the library
7187 …-e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so…
7189 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
7195 osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
7196 *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
7207 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
7208 …-shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $w…
7209 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
7212 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
7213 …-shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -m…
7214 …hive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i"…
7215 echo "-hidden">> $lib.exp~
7216 …-shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -m…
7218 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
7232 …output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GR…
7236 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
7239 …-shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compil…
7242 …-shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objec…
7246 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
7252 …output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with…
7291 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
7292 …_LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libob…
7293 …_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/…
7294 …$CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs …
7296 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7299 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
7302 # but understands '-z linker_flag'.
7304 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
7312 # "CC -xar", where "CC" is the Sun C++ compiler. This is
7315 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
7319 …TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler…
7322 _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
7325 # GNU C++ compiler with Solaris linker
7327 _LT_TAGVAR(no_undefined_flag, $1)=' $wl-z ${wl}defs'
7328 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
7329 …hive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects…
7330 …ve_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> …
7331 …$CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobj…
7336 …output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with…
7338 # g++ 2.7 appears to require '-G' NOT '-shared' on this
7340 …VAR(archive_cmds, $1)='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compil…
7341 …ve_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> …
7342 …$CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $pos…
7347 …output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | …
7350 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $wl$libdir'
7352 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
7354 …_LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextra…
7363 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
7370 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7371 …_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $lib…
7374 … _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7375 …_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib…
7381 # Note: We CANNOT use -z defs as we might desire, because we do not
7382 # link with -lc, and that would cause any symbols used from libc to
7384 # ever link correctly. If we're not using GNU ld we use -z text
7385 # though, which does catch some bad symbols but isn't as heavy-handed
7386 # as -z defs.
7387 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
7388 _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs'
7391 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir'
7394 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport'
7399 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7400 …_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $lib…
7401 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~
7403 _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
7407 … _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7408 …_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib…
7416 # NonStop-UX NCC 3.20
7457 fi # test -n "$compiler"
7476 # ----------------------
7483 # This function is identical to the (non-XSI) version of func_stripname,
7500 # ---------------------------------
7566 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
7567 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
7568 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
7584 -L* | -R* | -l*)
7585 # Some compilers place space between "-{L,R}" and the path.
7587 if test x-L = "$p" ||
7588 test x-R = "$p"; then
7594 if test -z "$prev"; then
7596 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
7597 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
7598 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
7606 -L | -R)
7610 if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
7616 # The "-l" case would never come before the object being
7620 if test -z "$_LT_TAGVAR(postdeps, $1)"; then
7639 if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
7645 if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
7659 rm -f a.out a.exe
7664 $RM -f confest.$objext
7670 interix[[3-9]]*)
7681 *" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
7684 if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
7685 …h_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | $SED -e 's! -L! !g' -e 's!^ !!'`
7702 # --------------------------
7708 if test -z "$F77" || test no = "$F77"; then
7744 # and will be corrupted by setting them based on a non-working compiler.
7770 CC=${F77-"f77"}
7776 if test -n "$compiler"; then
7788 if test -n "$RANLIB"; then
7793 aix[[4-9]]*)
7825 fi # test -n "$compiler"
7837 # -------------------------
7844 if test -z "$FC" || test no = "$FC"; then
7871 ac_ext=${ac_fc_srcext-f}
7880 # and will be corrupted by setting them based on a non-working compiler.
7906 CC=${FC-"f95"}
7914 if test -n "$compiler"; then
7926 if test -n "$RANLIB"; then
7931 aix[[4-9]]*)
7964 fi # test -n "$compiler"
7976 # --------------------------
7977 # Ensure that the configuration variables for the GNU Java Compiler compiler
8009 CC=${GCJ-"gcj"}
8027 if test -n "$compiler"; then
8047 # --------------------------
8048 # Ensure that the configuration variables for the GNU Go compiler
8080 CC=${GOC-"gccgo"}
8098 if test -n "$compiler"; then
8118 # -------------------------
8151 CC=${RC-"windres"}
8158 if test -n "$compiler"; then
8171 # -----------
8176 test set = "${GCJFLAGS+set}" || GCJFLAGS="-g -O2"
8182 dnl aclocal-1.4 backwards compatibility:
8187 # ----------
8194 # ----------
8201 dnl aclocal-1.4 backwards compatibility:
8206 # --------------
8212 test -z "$GREP" && GREP=grep
8216 dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
8222 # --------------
8227 test -z "$OBJDUMP" && OBJDUMP=objdump
8233 # ----------------
8237 test -z "$DLLTOOL" && DLLTOOL=dlltool
8243 # ----------------
8251 # ------------
8252 # Check for a fully-functional sed program, that truncates
8253 # as few characters as possible. Prefer GNU sed if found.
8256 test -z "$SED" && SED=sed
8257 Xsed="$SED -e 1s/^X//"
8259 _LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
8260 [Sed that helps us avoid accidentally triggering echo(1) options like -n])
8266 # GNU Autoconf as AC_PROG_SED. When it is available in #
8280 test -z "$as_dir" && as_dir=.
8295 test ! -f "$lt_ac_sed" && continue
8299 # Check for GNU sed and select it if it is found.
8300 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
8309 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
8310 cmp -s conftest.out conftest.nl || break
8312 test 10 -lt "$lt_ac_count" && break
8314 if test "$lt_ac_count" -gt "$lt_ac_max"; then
8329 dnl aclocal-1.4 backwards compatibility:
8334 # ------------------------
8363 # -----------------------------
8366 # for certain cross-compile configurations and native mingw.
8373 *-*-mingw* )
8375 *-*-mingw* ) # actually msys
8378 *-*-cygwin* )
8386 *-*-cygwin* )
8388 *-*-mingw* ) # actually msys
8391 *-*-cygwin* )
8414 *-*-mingw* )
8416 *-*-mingw* ) # actually msys