Lines Matching +full:binutils +full:- +full:powerpc64 +full:- +full:linux +full:- +full:gnu
1 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
18 # This file is part of GNU Libtool.
20 # GNU Libtool is free software; you can redistribute it and/or
21 # modify it under the terms of the GNU General Public License as
25 # As a special exception to the GNU General Public License,
27 # is built using GNU Libtool, you may include this file under the
30 # GNU Libtool is distributed in the hope that it will be useful,
33 # GNU General Public License for more details.
35 # You should have received a copy of the GNU General Public License
36 # along with GNU Libtool; see the file COPYING. If not, a copy
37 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
39 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
46 # ------------------
49 [m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
57 # ------------------
68 # ------------------
78 m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
88 _LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
109 dnl aclocal-1.4 backwards compatibility:
115 # -------------------
116 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
122 \-*) ;;
126 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
131 # ----------------------
135 [: ${CP="cp -f"}
136 : ${MV="mv -f"}
137 : ${RM="rm -f"}
142 # ---------
164 test -z "$LN_S" && LN_S="ln -s"
184 if test -n "\${ZSH_VERSION+set}" ; then
188 if test -n "${ZSH_VERSION+set}" ; then
222 test -z "$CC" && CC=cc
223 test -z "$LTCC" && LTCC=$CC
224 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
225 test -z "$LD" && LD=ld
226 test -z "$ac_objext" && ac_objext=o
231 test -z "$MAGIC_CMD" && MAGIC_CMD=file
249 # --------------------------
253 # double-quoted strings.
271 # ---------------
283 ## ------------------------------------- ##
285 ## ------------------------------------- ##
293 # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
294 # ----------------------------------------
295 # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
307 # ------------------------------
320 # -----------------------------------------------------
328 # -----------------------------
330 # full-stop to the whole comment if one is not present already.
339 ## ------------------------ ##
341 ## ------------------------ ##
344 # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
345 # -------------------------------------------------------------------
363 # --------------------------------------------------------
368 # ------------------------------------------------
374 # ---------------------------------------------------------
386 # --------------------------------------------------
392 # ---------------------------------------------------
398 # ---------------------------------------------------
409 # ------------------------------------------------
423 # ------------------------------------
432 # ------------------------------
445 # ----------------
454 # -----------------------------------
475 # -----------------------
476 # Produce commented declarations of non-tagged libtool config variables
487 # -------------------------
494 # ------------------------------
499 # -------------------
525 # The HP-UX ksh and POSIX shell print the target directory to stdout
558 # Double-quote double-evaled strings.
563 …\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_s…
575 # ------------------------------------
581 # the child script. The macro ends with non-zero status if the
593 SHELL=\${CONFIG_SHELL-$SHELL}
605 # ---------
630 -h, --help print this help, then exit
631 -V, --version print version number, then exit
632 -q, --quiet do not print progress messages
633 -d, --debug don't remove temporary files
635 Report bugs to <bug-libtool@gnu.org>."
649 --version | --v* | -V )
651 --help | --h* | -h )
653 --debug | --d* | -d )
655 --quiet | --q* | --silent | --s* | -q )
658 -*) AC_MSG_ERROR([unrecognized option: $[1]
659 Try \`$[0] --help' for more information.]) ;;
662 Try \`$[0] --help' for more information.]) ;;
689 lt_config_lt_args="$lt_config_lt_args --quiet"
698 # ---------------
699 # If TAG is the built-in tag, create an initial libtool script with a
710 if test -n "${ZSH_VERSION+set}" ; then
721 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
723 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
753 # if finds mixed CR/LF and LF-only lines. Since sed operates in
757 || (rm -f "$cfgfile"; exit 1)
761 mv -f "$cfgfile" "$ofile" ||
762 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
786 # ---------------------
788 # --tag option, using:
789 # autoconf --trace 'LT_SUPPORTED_TAG:$1'
793 # C support is built-in for now
799 # -------------
818 # ------------------
831 # GNU Autoconf as AC_PROG_GO. When it is available in #
841 if test -z "$GOC"; then
842 if test -n "$ac_tool_prefix"; then
846 if test -z "$GOC"; then
854 # -----------------------
898 dnl aclocal-1.4 backwards compatibility:
907 # ----------------
914 _LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
917 LTCC=${LTCC-"$CC"}
920 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
928 # ------------------------
942 # ----------------------
951 $RM -r conftest*
955 # -------------------------
971 [ldd/readelf like tool for Mach-O binaries on Mac OS X])
973 [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
975 AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
977 if test -z "${LT_MULTI_MODULE}"; then
978 # By default we will add the -single_module flag. You can override
980 # non-empty at configure time, or by adding -multi_module to the
982 rm -rf libconftest.dylib*
984 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
985 -dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
986 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
987 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
989 # If there is a non-empty error log, and "single_module"
991 if test -s conftest.err && $GREP single_module conftest.err; then
995 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
1000 rm -rf libconftest.dylib*
1001 rm -f conftest.*
1004 AC_CACHE_CHECK([for -exported_symbols_list linker flag],
1009 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
1016 AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
1021 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
1022 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
1030 …echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAG…
1031 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
1033 if test -s conftest.err && $GREP force_load conftest.err; then
1035 …elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; th…
1040 rm -f conftest.err libconftest.a conftest conftest.c
1041 rm -rf conftest.dSYM
1045 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
1047 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1052 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
1053 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
1054 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
1056 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1058 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
1066 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
1068 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
1081 # ---------------------------------
1091 …c, $1)='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience…
1105 …_LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs…
1106 …_LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$co…
1107 …output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobj…
1108 …sym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$C…
1111 …-r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefine…
1112 …-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynami…
1121 # ----------------------------------
1144 …_LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_a…
1145 # Check for a 64-bit object if we didn't find anything.
1146 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
1147 …_LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$l…
1149 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
1159 # -------------------
1161 [m4_divert_text([M4SH-INIT], [$1
1167 # -----------------------
1179 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
1180 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
1181 ECHO='print -r --'
1196 # Invoke $ECHO with all args, space-separated.
1204 print*) AC_MSG_RESULT([print -r]) ;;
1210 test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
1216 || test "X`print -r -- $ECHO`" = "X$ECHO" )])])
1224 # ----------------
1228 [ --with-sysroot[=DIR] Search for dependent libraries within DIR
1238 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
1242 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
1252 AC_MSG_RESULT([${lt_sysroot:-no}])
1257 # ---------------
1259 [AC_ARG_ENABLE([libtool-lock],
1260 [AS_HELP_STRING([--disable-libtool-lock],
1267 ia64-*-hpux*)
1272 *ELF-32*)
1275 *ELF-64*)
1280 rm -rf conftest*
1282 *-*-irix6*)
1288 *32-bit*)
1289 LD="${LD-ld} -melf32bsmip"
1292 LD="${LD-ld} -melf32bmipn32"
1294 *64-bit*)
1295 LD="${LD-ld} -melf64bmip"
1300 *32-bit*)
1301 LD="${LD-ld} -32"
1304 LD="${LD-ld} -n32"
1306 *64-bit*)
1307 LD="${LD-ld} -64"
1312 rm -rf conftest*
1315 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
1316 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
1321 *32-bit*)
1323 x86_64-*kfreebsd*-gnu)
1324 LD="${LD-ld} -m elf_i386_fbsd"
1326 x86_64-*linux*)
1328 *x86-64*)
1329 LD="${LD-ld} -m elf32_x86_64"
1332 LD="${LD-ld} -m elf_i386"
1336 powerpc64le-*)
1337 LD="${LD-ld} -m elf32lppclinux"
1339 powerpc64-*)
1340 LD="${LD-ld} -m elf32ppclinux"
1342 s390x-*linux*)
1343 LD="${LD-ld} -m elf_s390"
1345 sparc64-*linux*)
1346 LD="${LD-ld} -m elf32_sparc"
1350 *64-bit*)
1352 x86_64-*kfreebsd*-gnu)
1353 LD="${LD-ld} -m elf_x86_64_fbsd"
1355 x86_64-*linux*)
1356 LD="${LD-ld} -m elf_x86_64"
1358 powerpcle-*)
1359 LD="${LD-ld} -m elf64lppc"
1361 powerpc-*)
1362 LD="${LD-ld} -m elf64ppc"
1364 s390*-*linux*|s390*-*tpf*)
1365 LD="${LD-ld} -m elf64_s390"
1367 sparc*-*linux*)
1368 LD="${LD-ld} -m elf64_sparc"
1374 rm -rf conftest*
1377 *-*-sco3.2v5*)
1378 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1380 CFLAGS="$CFLAGS -belf"
1381 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
1386 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1390 *-*solaris*)
1395 *64-bit*)
1399 i?86-*-solaris*)
1400 LD="${LD-ld} -m elf_x86_64"
1402 sparc*-*-solaris*)
1403 LD="${LD-ld} -m elf64_sparc"
1406 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
1407 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
1408 LD="${LD-ld}_sol2"
1412 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
1413 LD="${LD-ld} -64"
1420 rm -rf conftest*
1429 # -----------
1443 if test "$ac_status" -eq 0; then
1445 rm -f conftest.$ac_objext libconftest.a
1447 if test "$ac_status" -ne 0; then
1451 rm -f conftest.* libconftest.a
1466 # -------------------
1471 test -z "$STRIP" && STRIP=:
1475 test -z "$RANLIB" && RANLIB=:
1477 [Commands used to install an old-style archive])
1479 # Determine commands to create old-style static archives.
1484 if test -n "$RANLIB"; then
1487 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
1505 [Commands used to build an old-style archive])
1511 # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1512 # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
1513 # ----------------------------------------------------------------
1529 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1530 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1531 -e 's:$: $lt_compiler_flag:'`
1537 if (exit $ac_status) && test -s "$ac_outfile"; then
1542 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
1558 dnl aclocal-1.4 backwards compatibility:
1562 # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1563 # [ACTION-SUCCESS], [ACTION-FAILURE])
1564 # ----------------------------------------------------
1574 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
1577 if test -s conftest.err; then
1589 $RM -r conftest*
1602 dnl aclocal-1.4 backwards compatibility:
1607 #---------------
1625 gnu*)
1626 # Under GNU Hurd, this test is not required because there is
1628 # Libtool will interpret -1 as no limit whatsoever
1629 lt_cv_sys_max_cmd_len=-1;
1633 # On Win9x/ME, this test blows up -- it succeeds, but takes
1635 # Worse, since 9x/ME are not pre-emptively multitasking,
1656 if test -x /sbin/sysctl; then
1657 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
1658 elif test -x /usr/sbin/sysctl; then
1659 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
1685 if test -x /sbin/sysconfig; then
1686 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
1687 *1*) lt_cv_sys_max_cmd_len=-1 ;;
1696 if test -n "$kargmax"; then
1704 if test -n "$lt_cv_sys_max_cmd_len" && \
1714 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
1715 # If test is not a shell built-in, we'll probably end up computing a
1736 if test -n $lt_cv_sys_max_cmd_len ; then
1748 dnl aclocal-1.4 backwards compatibility:
1753 # ----------------
1759 # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
1760 # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
1761 # ----------------------------------------------------------------
1811 /* When -fvisbility=hidden is used, assume the code has been annotated
1839 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
1852 rm -fr conftest*
1857 # ------------------
1888 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
1899 [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
1903 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
1905 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
1907 [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
1925 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
1976 dnl aclocal-1.4 backwards compatibility:
1981 # ---------------------------
1982 # Check to see if options -c and -o are simultaneously supported by compiler.
1988 AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
1991 $RM -r conftest 2>/dev/null
1997 lt_compiler_flag="-o out/conftest2.$ac_objext"
2003 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2004 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
2005 -e 's:$: $lt_compiler_flag:'`
2011 if (exit $ac_status) && test -s out/conftest2.$ac_objext
2017 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
2025 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
2028 $RM -r conftest
2032 [Does compiler simultaneously support -c and -o options?])
2037 # ----------------------------------
2056 AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
2067 # ----------------
2070 [rm -f .libs 2>/dev/null
2072 if test -d .libs; then
2075 # MS-DOS does not allow filenames that begin with a dot.
2084 [Define to the sub-directory in which libtool stores uninstalled libraries.])
2089 # --------------------------------------
2094 if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
2095 test -n "$_LT_TAGVAR(runpath_var, $1)" ||
2098 # We can hardcode non-existent directories.
2102 # when we should be linking with a yet-to-be-installed one
2133 # ----------------
2139 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
2140 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
2141 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
2144 # FIXME - insert some real tests, host_os isn't really good enough
2147 if test -n "$STRIP" ; then
2148 striplib="$STRIP -x"
2149 old_striplib="$STRIP -S"
2166 # -----------------------------
2184 mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;;
2187 …lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_s…
2191 # otherwise default to the standard path separator (i.e. ":") - it is
2203 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
2205 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
2208 test -d "$lt_sys_path" && \
2216 for (lt_i = NF; lt_i > 0; lt_i--) {
2224 lt_count--;
2236 $SED 's,/\([[A-Za-z]]:\),\1,g'` ;;
2258 # when you set need_version to no, make sure it does not cause -set_version
2264 version_type=linux # correct to gnu/linux during the next big refactor
2272 aix[[4-9]]*)
2273 version_type=linux # correct to gnu/linux during the next big refactor
2291 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
2320 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
2338 version_type=linux # correct to gnu/linux during the next big refactor
2348 # libtool to hard-code these into programs
2363 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
2365 test -d \$dldir || mkdir -p \$dldir~
2368 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
2371 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2379 …soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${ve…
2385 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2389 …library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g…
2398 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2415 …path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|…
2421 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
2422 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
2423 …sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEP…
2427 if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
2429 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2431 … sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2434 # common. (e.g. "Program Files" -> "PROGRA~1")
2440 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
2442 test -d \$dldir || mkdir -p \$dldir~
2444 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2453 …library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $…
2477 version_type=linux # correct to gnu/linux during the next big refactor
2488 if test -x /usr/bin/objformat; then
2496 version_type=freebsd-$objformat
2498 freebsd-elf*)
2503 freebsd-*)
2517 freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
2518 freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
2530 version_type=linux # correct to gnu/linux during the next big refactor
2584 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
2590 interix[[3-9]]*)
2591 version_type=linux # correct to gnu/linux during the next big refactor
2607 version_type=linux # correct to gnu/linux during the next big refactor
2622 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
2623 libsuff= shlibsuff= libmagic=32-bit;;
2624 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
2626 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
2627 libsuff=64 shlibsuff=64 libmagic=64-bit;;
2628 *) libsuff= shlibsuff= libmagic=never-match;;
2639 # No shared lib support for Linux oldld, aout, or coff.
2640 linux*oldld* | linux*aout* | linux*coff*)
2645 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
2646 version_type=linux # correct to gnu/linux during the next big refactor
2651 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
2655 # Some binutils ld are patched to set DT_RUNPATH
2663 [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
2676 if test -f /etc/ld.so.conf; then
2677 …skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwc…
2683 # GNU dynamic linker. Since this was broken with cross compilers,
2684 # most powerpc-linux boxes support dynamic linking these days and
2685 # people can always --disable-shared, the test was removed, and we
2686 # assume the GNU/Linux dynamic linker is in use.
2687 dynamic_linker='GNU/Linux ld.so'
2690 netbsdelf*-gnu)
2691 version_type=linux
2706 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
2708 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2721 version_type=linux # correct to gnu/linux during the next big refactor
2749 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2751 …if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-…
2790 version_type=linux # correct to gnu/linux during the next big refactor
2815 version_type=linux # correct to gnu/linux during the next big refactor
2838 if test -d /usr/nec ;then
2839 version_type=linux # correct to gnu/linux during the next big refactor
2847 version_type=freebsd-elf
2856 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
2869 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
2870 version_type=linux # correct to gnu/linux during the next big refactor
2880 version_type=linux # correct to gnu/linux during the next big refactor
2915 [Is shlibpath searched before the hard-coded library search path?])
2919 The last name is the one that the linker finds with -lNAME]])
2936 [Compile-time system search path for libraries])
2938 [Run-time system search path for libraries])
2943 # --------------------------
2956 dnl $ac_dummy forces splitting on constant user-supplied paths.
2962 test -z "$ac_dir" && ac_dir=.
2963 if test -f $ac_dir/$1; then
2965 if test -n "$file_magic_test_file"; then
2983 *** bug-libtool@gnu.org
2997 if test -n "$MAGIC_CMD"; then
3008 dnl aclocal-1.4 backwards compatibility:
3013 # --------------
3017 if test -z "$lt_cv_path_MAGIC_CMD"; then
3018 if test -n "$ac_tool_prefix"; then
3028 # ----------
3029 # find the pathname to the GNU or non-GNU linker
3038 AC_ARG_WITH([gnu-ld],
3039 [AS_HELP_STRING([--with-gnu-ld],
3040 [assume the C compiler uses GNU ld @<:@default=no@:>@])],
3046 # Check if gcc -print-prog-name=ld gives a path.
3049 *-*-mingw*)
3051 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3053 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3064 test -z "$LD" && LD="$ac_prog"
3076 AC_MSG_CHECKING([for GNU ld])
3078 AC_MSG_CHECKING([for non-GNU ld])
3081 [if test -z "$LD"; then
3085 test -z "$ac_dir" && ac_dir=.
3086 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3088 # Check to see if the program is GNU ld. I'd rather use --version,
3089 # but apparently some variants of GNU ld only accept -v.
3090 # Break only if it was the GNU/non-GNU ld that we prefer.
3091 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3092 *GNU* | *'with BFD'*)
3106 if test -n "$LD"; then
3111 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
3121 dnl aclocal-1.4 backwards compatibility:
3127 #- --------------
3129 [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
3130 [# I'd rather use --version here, but apparently some GNU lds only accept -v.
3131 case `$LD -v 2>&1 </dev/null` in
3132 *GNU* | *'with BFD'*)
3144 # --------------
3146 # -- PORTME Some linkers may need a different reload flag.
3150 [lt_cv_ld_reload_flag='-r'])
3156 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3165 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3167 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3177 # ----------------------
3179 # -- PORTME fill in with the dynamic library characteristics
3190 # 'none' -- dependencies not supported.
3191 # `unknown' -- same as none, but documents that we really don't know.
3192 # 'pass_all' -- all dependencies passed with no checks.
3193 # 'test_compile' -- check by making test program.
3194 # 'file_magic [[regex]]' -- check by looking for files in library path
3200 aix[[4-9]]*)
3209 …lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib…
3210 lt_cv_file_magic_cmd='/usr/bin/file -L'
3223 # unless we find 'file', for example because we are cross-compiling.
3230 …v_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x…
3231 lt_cv_file_magic_cmd='$OBJDUMP -f'
3237 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
3238 lt_cv_file_magic_cmd='$OBJDUMP -f'
3246 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3251 …lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand pa…
3269 …lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object f…
3273 …heck_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)…
3277 …lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared lib…
3283 interix[[3-9]]*)
3290 *-32|*"-32 ") libmagic=32-bit;;
3291 *-n32|*"-n32 ") libmagic=N32;;
3292 *-64|*"-64 ") libmagic=64-bit;;
3293 *) libmagic=never-match;;
3299 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
3303 netbsd* | netbsdelf*-gnu)
3304 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3305 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3312 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
3322 …if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-…
3323 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
3325 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3348 …bs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][…
3356 …lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib…
3360 lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
3386 …file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/…
3394 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3408 # ----------
3409 # find the pathname to a BSD- or MS-compatible name lister
3412 AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
3413 [if test -n "$NM"; then
3418 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3425 test -z "$ac_dir" && ac_dir=.
3427 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3428 # Check to see if the nm accepts a BSD-compat flag.
3429 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3432 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3434 lt_cv_path_NM="$tmp_nm -B"
3438 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3440 lt_cv_path_NM="$tmp_nm -p"
3460 if test -n "$DUMPBIN"; then :
3463 AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
3464 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
3466 DUMPBIN="$DUMPBIN -symbols"
3478 test -z "$NM" && NM=nm
3480 _LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
3496 rm -f conftest*])
3502 dnl aclocal-1.4 backwards compatibility:
3507 # --------------------------------
3510 # -- PORTME fill in with the dynamic library characteristics
3523 case `$DLLTOOL --help 2>&1` in
3524 *--identify-strict*)
3539 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
3547 # ----------------------
3551 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
3554 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
3555 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
3560 rm -f conftest*])
3569 # --------
3575 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
3578 *-ncr-sysv4.3*)
3579 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
3580 AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
3583 AC_CHECK_LIB(m, cos, LIBM="-lm")
3591 dnl aclocal-1.4 backwards compatibility:
3596 # -------------------------------
3605 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
3607 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;;
3610 _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
3612 [-fno-rtti -fno-exceptions], [],
3613 …o_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
3621 # ----------------------
3643 sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
3645 # Define system-specific variables.
3681 # If we're using GNU nm, then use its standard symbol codes.
3682 case `$NM -V 2>&1` in
3683 *GNU* | *'with BFD'*)
3690 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .…
3693 …_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *…
3694 …x="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) …
3712 # Fake it for dumpbin and say T for any non-static function
3729 …lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$…
3736 rm -f conftest*
3753 …if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$n…
3756 mv -f "$nlist"T "$nlist"
3758 rm -f "$nlist"T
3768 relocations are performed -- see ld's documentation on pseudo-relocs. */
3783 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
3796 …$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main …
3818 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
3836 rm -rf conftest* conftst*
3846 if test -z "$lt_cv_sys_global_symbol_pipe"; then
3849 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
3858 elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then
3878 # ---------------------------
3888 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3889 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
3896 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3904 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3908 # adding the `-m68020' flag to GCC prevents building anything better,
3909 # like `-m68040'.
3910 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
3921 # Although the cygwin gcc ignores -fPIC, still need this for old-style
3922 # (--disable-auto-import) libraries
3924 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
3929 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
3937 # The "-static" flag exists, but is broken.
3940 interix[[3-9]]*)
3941 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
3945 if test -d /usr/nec; then
3946 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
3950 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
3951 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
3957 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3962 # QNX uses GNU C++, but need to define -shared option too, otherwise
3964 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
3967 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3972 aix[[4-9]]*)
3976 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3978 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
3985 …# _LT_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abor…
3993 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
3998 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4002 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4009 # FreeBSD uses GNU C++
4014 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4015 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4021 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4022 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4043 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4044 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4045 # CC pic flag -KPIC is the default.
4051 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
4055 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4056 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4059 # old Intel C++ for x86_64 which still supported -KPIC.
4060 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4061 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4062 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4066 # ICC 10 doesn't accept -KPIC any more.
4067 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4068 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4069 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4073 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4074 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4075 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4080 # Linux and Compaq Tru64 Unix objects are PIC.
4082 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4086 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4087 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4088 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4091 case `$CC -V 2>&1 | sed 5q` in
4094 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4095 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4096 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4109 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
4115 netbsd* | netbsdelf*-gnu)
4118 # QNX uses GNU C++, but need to define -shared option too, otherwise
4120 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4125 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4129 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4133 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4135 # Linux and Compaq Tru64 Unix objects are PIC.
4137 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4149 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4150 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4151 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4155 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4165 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4166 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4170 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4179 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4180 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4181 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4188 # NonStop-UX NCC 3.20
4189 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4205 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4206 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4213 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4221 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4225 # adding the `-m68020' flag to GCC prevents building anything better,
4226 # like `-m68040'.
4227 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4239 # Although the cygwin gcc ignores -fPIC, still need this for old-style
4240 # (--disable-auto-import) libraries
4242 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4248 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4253 # The "-static" flag exists, but is broken.
4258 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
4259 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
4266 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4271 interix[[3-9]]*)
4272 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4284 # QNX uses GNU C++, but need to define -shared option too, otherwise
4286 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4290 if test -d /usr/nec; then
4291 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
4296 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4302 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
4303 if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
4304 _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)"
4312 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4315 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4317 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
4325 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4329 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4330 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
4331 # not for PA HP-UX.
4341 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4345 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4346 # PIC (with -KPIC) is the default.
4347 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4350 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
4352 # old Intel for x86_64 which still supported -KPIC.
4354 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4355 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4356 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4359 # ICC 10 doesn't accept -KPIC any more.
4361 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4362 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4363 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4367 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4368 _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
4369 _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
4373 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
4374 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4375 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4380 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4381 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4382 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4385 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4387 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4391 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4392 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4393 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4396 case `$CC -V 2>&1 | sed 5q` in
4397 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*)
4399 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4400 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4404 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4405 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4406 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4410 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4411 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4412 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4415 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4416 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4417 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4420 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4421 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4422 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4430 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4431 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4435 # QNX uses GNU C++, but need to define -shared option too, otherwise
4437 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4441 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4443 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4447 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4451 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4452 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4455 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
4457 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
4462 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4463 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4464 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4468 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4469 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4470 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4474 if test -d /usr/nec ;then
4475 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
4476 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4481 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4482 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4483 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4487 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4492 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4493 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4503 # For platforms which do not support PIC, -DPIC is meaningless:
4508 …$1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[]…
4520 if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
4523 …[$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])]…
4551 # ----------------------------
4567 aix[[4-9]]*)
4568 # If we're using GNU nm, then we don't want the "-C" option.
4569 # -C means demangle to AIX nm, but means don't demangle with GNU nm
4571 # symbols, whereas GNU nm marks them as "W".
4572 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4573 …-Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$…
4575 …-BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (…
4587 …_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\'…
4588 … $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_…
4592 linux* | k*bsd*-gnu | gnu*)
4624 # include_expsyms should be a list of space-separated symbols to be *always*
4657 linux* | k*bsd*-gnu | gnu*)
4664 # On some targets, GNU ld is compatible enough with the native linker
4670 # The AIX port of GNU ld has always aspired to compatibility
4671 # with the native linker. However, as the warning in the GNU ld
4674 case `$LD -v 2>&1` in
4675 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
4676 *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;;
4677 *\ \(GNU\ Binutils\)\ [[3-9]]*) ;;
4693 # Set some defaults for GNU ld with shared library support. These
4697 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4698 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4699 # ancient GNU ld didn't support --whole-archive et. al.
4700 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
4701 …_LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-…
4706 case `$LD -v 2>&1` in
4707 *GNU\ gold*) supports_anon_versioning=yes ;;
4708 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
4715 # See if GNU ld supports shared libraries.
4717 aix[[3-9]]*)
4718 # On AIX/PPC, the GNU linker is very broken
4723 *** Warning: the GNU linker, at least up to release 2.19, is reported
4726 *** really care for shared libraries, you may want to install binutils
4727 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
4738 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$sonam…
4742 …r/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
4743 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4750 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4753 # support --undefined. This deserves some investigation. FIXME
4754 …_LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$sona…
4763 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4764 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
4768 …_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\'…
4769 … $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_…
4771 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
4772 …_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-…
4773 # If the export-symbols file already is a .def file (1st line
4781 …C -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $…
4788 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$sonam…
4792 interix[[3-9]]*)
4795 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4796 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4801 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
4803 …='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr …
4804 …-shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$ou…
4807 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
4809 if test "$host_os" = linux-dietlibc; then
4811 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
4814 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
4818 tmp_sharedflag='-shared'
4821 …--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_conv…
4826 …--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_conv…
4827 tmp_addflag=' $pic_flag -Mnomain' ;;
4829 tmp_addflag=' -i_dynamic' ;;
4831 tmp_addflag=' -i_dynamic -nofor_main' ;;
4833 tmp_addflag=' -nofor_main' ;;
4836 tmp_sharedflag='--shared' ;;
4838 tmp_sharedflag='-qmkshrobj'
4841 …--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_conv…
4845 case `$CC -V 2>&1 | sed 5q` in
4847 …--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_conven…
4849 tmp_sharedflag='-G' ;;
4851 tmp_sharedflag='-G' ;;
4853 …"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4857 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
4859 …$libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir…
4865 _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
4866 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4867 … _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
4870 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
4872 …$LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libnam…
4881 netbsd* | netbsdelf*-gnu)
4882 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
4883 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
4886 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname…
4887 …cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-r…
4892 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
4896 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
4898 *** is disabling shared libraries support. We urge you to upgrade GNU
4899 *** binutils to release 2.9.1 or newer. Another option is to modify
4904 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4905 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname…
4906 …cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-r…
4913 case `$LD -v 2>&1` in
4914 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
4918 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
4920 *** is disabling shared libraries support. We urge you to upgrade GNU
4921 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
4932 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4933 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4934 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$sonam…
4935 …psym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain…
4944 …_LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_…
4951 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4952 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname…
4953 …cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-r…
4967 # PORTME fill in a description of your system's linker (not GNU ld)
4972 …(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$expo…
4974 # are no directories specified by -L.
4976 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
4983 aix[[4-9]]*)
4988 exp_sym_flag='-Bexport'
4991 # If we're using GNU nm, then we don't want the "-C" option.
4992 # -C means demangle to AIX nm, but means don't demangle with GNU nm
4994 # defined symbols, whereas GNU nm marks them as "W".
4995 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4996 …-Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$…
4998 …-BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (…
5003 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5005 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
5007 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5015 exp_sym_flag='-bexport'
5016 no_entry_flag='-bnoentry'
5021 # or program results in "error TOC overflow" add -mminimal-toc to
5023 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5030 _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
5036 collect2name=`${CC} -print-prog-name=collect2`
5037 if test -f "$collect2name" &&
5049 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5054 shared_flag='-shared'
5056 shared_flag="$shared_flag "'${wl}-G'
5062 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
5063 # chokes on -Wl,-G. The following line is correct:
5064 shared_flag='-G'
5067 shared_flag='${wl}-G'
5069 shared_flag='${wl}-bM:SRE'
5074 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
5075 # It seems that -bexpall does not export symbols beginning with
5079 # Warning - without using the other runtime loading flags (-brtl),
5080 # -berok will link without error, but may produce a broken library.
5081 _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
5085 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5086 …_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_e…
5089 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
5090 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
5091 …_LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $depli…
5096 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5097 # Warning - without using the other run time loading flags,
5098 # -berok will link without error, but may produce a broken library.
5099 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
5100 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5102 # We only use this code for GNU lds that support --whole-archive.
5103 … _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
5110 …psym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $co…
5119 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$sonam…
5123 …r/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
5124 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5131 _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
5151 …_LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,…
5153 …sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $outpu…
5155 …sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$sonam…
5157 …$CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.e…
5163 … $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1,DATA/'…
5175 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
5176 …$MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || e…
5189 …TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\…
5193 _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
5204 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5205 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5214 …_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++…
5215 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5222 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5228 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5230 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5231 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5238 …R(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir…
5240 …_LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objd…
5249 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5254 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_lib…
5256 …_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $link…
5263 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5274 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler…
5277 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $…
5280 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_lib…
5286 …_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flag…
5289 …_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $d…
5293 # Older versions of the 11.00 compiler do not understand -b yet
5294 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
5295 _LT_LINKER_OPTION([if $CC understands -b],
5296 _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b],
5297 …[_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $l…
5298 …[_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $lin…
5299 …[_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $l…
5315 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5327 …-shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring…
5328 # Try to use the -exported_symbol ld option, if it does not
5329 # work, assume that -exports_file does not work either and
5331 # This should be the same for all languages, so no per-tag cache variable.
5332 AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
5335 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
5350 …-shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring…
5353 …-shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "…
5354 …-shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "…
5357 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5363 netbsd* | netbsdelf*-gnu)
5364 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
5365 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5367 _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5369 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5375 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5377 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5386 if test -f /usr/libexec/ld.so; then
5390 …if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-…
5391 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5392 …AGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${…
5393 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5394 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5397 openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
5398 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5399 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5402 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5403 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5413 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5416 …dir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobj…
5417 …_LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$lib…
5422 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5423 …-shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -…
5425 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5426 …-shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstr…
5429 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5433 osf4* | osf5*) # as osf3* with the addition of -msym flag
5435 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5436 …-shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname…
5437 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5439 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5440 …-shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$…
5441 …in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%…
5442 …-shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname…
5444 # Both c and cxx compiler support -rpath directly
5445 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
5452 _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
5455 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib…
5456 …_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/…
5457 …$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobj…
5459 case `$CC -V 2>&1` in
5462 …_LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $…
5463 …_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/…
5464 …$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $…
5468 …_LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $…
5469 …_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/…
5470 …$CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM…
5474 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5477 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
5480 # but understands `-z linker_flag'. GCC discards it without `$wl',
5484 …_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaulte…
5486 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
5497 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5499 …_LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_fla…
5501 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5510 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5516 _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5517 _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
5521 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5530 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5532 _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
5536 if test -d /usr/nec; then
5537 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5546 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
5552 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flag…
5553 …_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o …
5555 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5556 …_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib …
5561 # Note: We can NOT use -z defs as we might desire, because we do not
5562 # link with -lc, and that would cause any symbols used from libc to
5564 # ever link correctly. If we're not using GNU ld we use -z text
5565 # though, which does catch some bad symbols but isn't as heavy-handed
5566 # as -z defs.
5567 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
5568 _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
5571 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
5574 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
5578 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flag…
5579 …_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o …
5581 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5582 …_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib …
5587 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5588 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5600 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
5621 # Assume -lc should be added
5627 # FIXME: we may have to deal with multi-command sequences.
5630 # Test whether the compiler implicitly links with -lc since on some
5631 # systems, -lgcc has to come before -lc. If gcc already passes -lc
5632 # to ld, don't add -lc before -lgcc.
5633 AC_CACHE_CHECK([whether -lc should be explicitly linked in],
5645 compiler_flags=-v
5646 linker_flags=-v
5652 if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
5672 [Whether or not to add -lc for building shared libraries])
5683 [Create an old-style archive from a shared archive])
5685 [Create a temporary old-style archive to link instead of a shared archive])
5693 [Whether we are building with GNU ld or not])
5702 [Whether we need a single "-rpath" flag with a separated argument])
5712 [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
5747 # ------------------------
5782 if test -n "$compiler"; then
5805 if test -n "$RANLIB"; then
5811 aix[[4-9]]*)
5832 # --------------------------
5840 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5841 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5883 # and will be corrupted by setting them based on a non-working compiler.
5906 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
5911 if test -n "${lt_cv_path_LDCXX+set}"; then
5916 test -z "${LDCXX+set}" || LD=$LDCXX
5917 CC=${CXX-"c++"}
5923 if test -n "$compiler"; then
5924 # We don't want -fno-exception when compiling C++ code, so set the
5927 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
5933 # Set up default GNU C++ configuration
5937 # Check if GNU C++ uses GNU ld as the underlying linker, since the
5938 # archiving commands below assume that GNU ld is being used.
5940 …, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compile…
5941 …-shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname …
5943 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5944 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5947 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
5951 # ancient GNU ld didn't support --whole-archive et. al.
5952 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
5953 $GREP 'no-whole-archive' > /dev/null; then
5954 …_LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-…
5963 # command for GNU C++ for the case where it uses the native
5964 # linker, instead of GNU ld. If possible, this setting should
5967 …LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_obje…
5973 …output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with…
5989 aix[[4-9]]*)
5994 exp_sym_flag='-Bexport'
6000 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6002 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
6005 *-brtl*)
6014 exp_sym_flag='-bexport'
6015 no_entry_flag='-bnoentry'
6020 # or program results in "error TOC overflow" add -mminimal-toc to
6022 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6029 _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
6035 collect2name=`${CC} -print-prog-name=collect2`
6036 if test -f "$collect2name" &&
6048 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6052 shared_flag='-shared'
6054 shared_flag="$shared_flag "'${wl}-G'
6059 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6060 # chokes on -Wl,-G. The following line is correct:
6061 shared_flag='-G'
6064 shared_flag='${wl}-G'
6066 shared_flag='${wl}-bM:SRE'
6071 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
6072 # It seems that -bexpall does not export symbols beginning with
6077 # Warning - without using the other runtime loading flags (-brtl),
6078 # -berok will link without error, but may produce a broken library.
6079 _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
6083 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6085 …_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_e…
6088 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
6089 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
6090 …_LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $depli…
6095 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6096 # Warning - without using the other run time loading flags,
6097 # -berok will link without error, but may produce a broken library.
6098 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
6099 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
6101 # We only use this code for GNU lds that support --whole-archive.
6102 … _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
6110 …psym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $co…
6116 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6119 # support --undefined. This deserves some investigation. FIXME
6120 …_LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$sona…
6150 …_LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,…
6152 …$SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $outp…
6154 …$SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$sona…
6156 …$CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.e…
6173 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
6174 …$MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || e…
6182 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6183 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
6188 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6189 …-shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_ob…
6190 # If the export-symbols file already is a .def file (1st line
6198 …-shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $c…
6233 freebsd-elf*)
6238 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
6244 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$sonam…
6251 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6263 …LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $ou…
6272 …output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list…
6276 …hive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_l…
6294 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6320 …_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplib…
6323 …_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_obj…
6326 …_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $pr…
6337 …output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=…
6344 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_obj…
6347 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefault…
6350 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$i…
6362 interix[[3-9]]*)
6365 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6366 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6371 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6373 …='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr …
6374 …-shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$ou…
6380 …-shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname …
6383 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
6386 _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
6391 …-shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${w…
6393 …-shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${w…
6399 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6404 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6410 # ends with ".so" (or ".sl" for HP-UX), so rename the library
6412 …-e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so…
6413 …-e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so…
6422 …_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GRE…
6424 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6425 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6428 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
6429 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
6437 case `$CC -V 2>&1` in
6439 …AR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_fla…
6440 …$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$so…
6445 ia64*) tmp_idyn=' -i_dynamic';;
6447 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-son…
6448 …mds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}…
6452 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6453 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6454 … _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
6458 case `$CC -V` in
6459 *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
6461 rm -rf $tpldir~
6462 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
6463 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
6465 rm -rf $tpldir~
6466 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
6467 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
6470 rm -rf $tpldir~
6471 …$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $…
6472 …-shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $pos…
6474 rm -rf $tpldir~
6475 …$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $…
6476 …-shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $pos…
6479 …hive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler…
6480 …-shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname …
6484 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
6485 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6486 …--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_conv…
6490 …AR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_fla…
6491 …s, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-sonam…
6494 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6505 …output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; tem…
6508 # IBM XL 8.0 on PPC, with GNU ld
6509 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6510 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6511 …_LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$so…
6514 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6516 …$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl…
6520 case `$CC -V 2>&1 | sed 5q` in
6523 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
6524 …_LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $lib…
6525 … $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_o…
6526 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6527 …--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_conven…
6531 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
6536 # "CC -xar", where "CC" is the Sun C++ compiler. This is
6539 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
6570 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
6571 …_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_…
6573 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6577 # Workaround some broken pre-1.5 toolchains
6578 …output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $…
6591 if test -f /usr/libexec/ld.so; then
6595 …LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_obje…
6596 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6597 …if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-p…
6598 …s, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $…
6599 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6600 …_LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-…
6614 # ends with ".so" (or ".sl" for HP-UX), so rename the library
6616 …-e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.…
6618 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6624 osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
6625 *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
6636 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6637 …-shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags …
6638 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6641 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6642 …-shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags …
6643 …hive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i"…
6644 echo "-hidden">> $lib.exp~
6645 …-shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -m…
6647 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6661 …output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GR…
6665 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6668 …-shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $comp…
6671 …-shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_obj…
6675 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6681 …output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with…
6720 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
6721 …_LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $li…
6722 …_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/…
6723 …$CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $de…
6725 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6728 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6731 # but understands `-z linker_flag'.
6733 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
6741 # "CC -xar", where "CC" is the Sun C++ compiler. This is
6744 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
6748 …AGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_…
6751 _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
6754 # GNU C++ compiler with Solaris linker
6756 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
6757 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
6758 …mds, $1)='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_obje…
6759 …ve_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> …
6760 …$CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $pos…
6765 …output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with…
6767 # g++ 2.7 appears to require `-G' NOT `-shared' on this
6769 …rchive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $co…
6770 …ve_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> …
6771 …$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $c…
6776 …output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | …
6779 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
6781 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6783 …_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaulte…
6792 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6799 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6800 …_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib …
6803 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flag…
6804 …_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o …
6810 # Note: We can NOT use -z defs as we might desire, because we do not
6811 # link with -lc, and that would cause any symbols used from libc to
6813 # ever link correctly. If we're not using GNU ld we use -z text
6814 # though, which does catch some bad symbols but isn't as heavy-handed
6815 # as -z defs.
6816 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6817 _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
6820 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
6823 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
6828 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6829 …_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib …
6830 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~
6832 _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
6836 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flag…
6837 …_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o …
6845 # NonStop-UX NCC 3.20
6886 fi # test -n "$compiler"
6905 # ----------------------
6912 # This function is identical to the (non-XSI) version of func_stripname,
6928 # ---------------------------------
6994 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
6995 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
6996 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
7012 -L* | -R* | -l*)
7013 # Some compilers place space between "-{L,R}" and the path.
7015 if test $p = "-L" ||
7016 test $p = "-R"; then
7022 if test -z "$prev"; then
7024 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
7025 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
7026 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
7034 -L | -R)
7038 if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
7044 # The "-l" case would never come before the object being
7048 if test -z "$_LT_TAGVAR(postdeps, $1)"; then
7067 if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
7073 if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
7087 rm -f a.out a.exe
7092 $RM -f confest.$objext
7098 interix[[3-9]]*)
7106 linux*)
7107 case `$CC -V 2>&1 | sed 5q` in
7111 # The more standards-conforming stlport4 library is
7114 # -library=stlport4 depends on it.
7116 *" -library=stlport4 "*)
7122 _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
7131 # The more standards-conforming stlport4 library is
7134 # -library=stlport4 depends on it.
7136 *" -library=stlport4 "*)
7141 # Adding this requires a known-good setup of shared libraries for
7145 _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
7154 *" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
7157 if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
7158 …dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
7175 # --------------------------
7181 if test -z "$F77" || test "X$F77" = "Xno"; then
7217 # and will be corrupted by setting them based on a non-working compiler.
7243 CC=${F77-"f77"}
7249 if test -n "$compiler"; then
7261 if test -n "$RANLIB"; then
7266 aix[[4-9]]*)
7294 fi # test -n "$compiler"
7306 # -------------------------
7313 if test -z "$FC" || test "X$FC" = "Xno"; then
7340 ac_ext=${ac_fc_srcext-f}
7349 # and will be corrupted by setting them based on a non-working compiler.
7375 CC=${FC-"f95"}
7383 if test -n "$compiler"; then
7395 if test -n "$RANLIB"; then
7400 aix[[4-9]]*)
7429 fi # test -n "$compiler"
7441 # --------------------------
7442 # Ensure that the configuration variables for the GNU Java Compiler compiler
7474 CC=${GCJ-"gcj"}
7492 if test -n "$compiler"; then
7512 # --------------------------
7513 # Ensure that the configuration variables for the GNU Go compiler
7545 CC=${GOC-"gccgo"}
7563 if test -n "$compiler"; then
7583 # -------------------------
7616 CC=${RC-"windres"}
7623 if test -n "$compiler"; then
7636 # -----------
7641 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
7647 dnl aclocal-1.4 backwards compatibility:
7652 # ----------
7659 # ----------
7666 dnl aclocal-1.4 backwards compatibility:
7671 # --------------
7677 test -z "$GREP" && GREP=grep
7681 dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
7687 # --------------
7692 test -z "$OBJDUMP" && OBJDUMP=objdump
7698 # ----------------
7702 test -z "$DLLTOOL" && DLLTOOL=dlltool
7708 # ------------
7709 # Check for a fully-functional sed program, that truncates
7710 # as few characters as possible. Prefer GNU sed if found.
7713 test -z "$SED" && SED=sed
7714 Xsed="$SED -e 1s/^X//"
7716 _LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
7717 [Sed that helps us avoid accidentally triggering echo(1) options like -n])
7723 # GNU Autoconf as AC_PROG_SED. When it is available in #
7737 test -z "$as_dir" && as_dir=.
7752 test ! -f $lt_ac_sed && continue
7756 # Check for GNU sed and select it if it is found.
7757 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
7766 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
7767 cmp -s conftest.out conftest.nl || break
7769 test $lt_ac_count -gt 10 && break
7771 if test $lt_ac_count -gt $lt_ac_max; then
7786 dnl aclocal-1.4 backwards compatibility:
7791 # ------------------------
7801 && eval 'test $(( 1 + 1 )) -eq 2 \
7802 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7839 # _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY)
7840 # ------------------------------------------------------
7842 # '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY.
7845 sed -e '/^$1 ()$/,/^} # $1 /c\
7849 } # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \
7850 && mv -f "$cfgfile.tmp" "$cfgfile" \
7851 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7852 test 0 -eq $? || _lt_function_replace_fail=:
7857 # -------------------------
7915 sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
7916 && mv -f "$cfgfile.tmp" "$cfgfile" \
7917 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7918 test 0 -eq $? || _lt_function_replace_fail=:
7921 sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
7922 && mv -f "$cfgfile.tmp" "$cfgfile" \
7923 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7924 test 0 -eq $? || _lt_function_replace_fail=:
7933 # -----------------------------
7936 # for certain cross-compile configurations and native mingw.
7943 *-*-mingw* )
7945 *-*-mingw* ) # actually msys
7948 *-*-cygwin* )
7956 *-*-cygwin* )
7958 *-*-mingw* ) # actually msys
7961 *-*-cygwin* )
7984 *-*-mingw* )
7986 *-*-mingw* ) # actually msys