• Home
  • Raw
  • Download

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*|ppc*-*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*)
1327 LD="${LD-ld} -m elf_i386"
1329 ppc64-*linux*|powerpc64-*linux*)
1330 LD="${LD-ld} -m elf32ppclinux"
1332 s390x-*linux*)
1333 LD="${LD-ld} -m elf_s390"
1335 sparc64-*linux*)
1336 LD="${LD-ld} -m elf32_sparc"
1340 *64-bit*)
1342 x86_64-*kfreebsd*-gnu)
1343 LD="${LD-ld} -m elf_x86_64_fbsd"
1345 x86_64-*linux*)
1346 LD="${LD-ld} -m elf_x86_64"
1348 ppc*-*linux*|powerpc*-*linux*)
1349 LD="${LD-ld} -m elf64ppc"
1351 s390*-*linux*|s390*-*tpf*)
1352 LD="${LD-ld} -m elf64_s390"
1354 sparc*-*linux*)
1355 LD="${LD-ld} -m elf64_sparc"
1361 rm -rf conftest*
1364 *-*-sco3.2v5*)
1365 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1367 CFLAGS="$CFLAGS -belf"
1368 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
1373 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1377 *-*solaris*)
1382 *64-bit*)
1386 i?86-*-solaris*)
1387 LD="${LD-ld} -m elf_x86_64"
1389 sparc*-*-solaris*)
1390 LD="${LD-ld} -m elf64_sparc"
1393 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
1394 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
1395 LD="${LD-ld}_sol2"
1399 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
1400 LD="${LD-ld} -64"
1407 rm -rf conftest*
1416 # -----------
1430 if test "$ac_status" -eq 0; then
1432 rm -f conftest.$ac_objext libconftest.a
1434 if test "$ac_status" -ne 0; then
1438 rm -f conftest.* libconftest.a
1453 # -------------------
1458 test -z "$STRIP" && STRIP=:
1462 test -z "$RANLIB" && RANLIB=:
1464 [Commands used to install an old-style archive])
1466 # Determine commands to create old-style static archives.
1471 if test -n "$RANLIB"; then
1474 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
1492 [Commands used to build an old-style archive])
1498 # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1499 # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
1500 # ----------------------------------------------------------------
1516 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1517 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1518 -e 's:$: $lt_compiler_flag:'`
1524 if (exit $ac_status) && test -s "$ac_outfile"; then
1529 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
1545 dnl aclocal-1.4 backwards compatibility:
1549 # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1550 # [ACTION-SUCCESS], [ACTION-FAILURE])
1551 # ----------------------------------------------------
1561 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
1564 if test -s conftest.err; then
1576 $RM -r conftest*
1589 dnl aclocal-1.4 backwards compatibility:
1594 #---------------
1612 gnu*)
1613 # Under GNU Hurd, this test is not required because there is
1615 # Libtool will interpret -1 as no limit whatsoever
1616 lt_cv_sys_max_cmd_len=-1;
1620 # On Win9x/ME, this test blows up -- it succeeds, but takes
1622 # Worse, since 9x/ME are not pre-emptively multitasking,
1643 if test -x /sbin/sysctl; then
1644 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
1645 elif test -x /usr/sbin/sysctl; then
1646 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
1672 if test -x /sbin/sysconfig; then
1673 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
1674 *1*) lt_cv_sys_max_cmd_len=-1 ;;
1683 if test -n "$kargmax"; then
1691 if test -n "$lt_cv_sys_max_cmd_len"; then
1700 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
1701 # If test is not a shell built-in, we'll probably end up computing a
1722 if test -n $lt_cv_sys_max_cmd_len ; then
1734 dnl aclocal-1.4 backwards compatibility:
1739 # ----------------
1745 # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
1746 # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
1747 # ----------------------------------------------------------------
1797 /* When -fvisbility=hidden is used, assume the code has been annotated
1825 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
1838 rm -fr conftest*
1843 # ------------------
1874 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
1885 [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
1889 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
1891 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
1893 [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
1911 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
1962 dnl aclocal-1.4 backwards compatibility:
1967 # ---------------------------
1968 # Check to see if options -c and -o are simultaneously supported by compiler.
1974 AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
1977 $RM -r conftest 2>/dev/null
1983 lt_compiler_flag="-o out/conftest2.$ac_objext"
1989 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1990 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1991 -e 's:$: $lt_compiler_flag:'`
1997 if (exit $ac_status) && test -s out/conftest2.$ac_objext
2003 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
2011 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
2014 $RM -r conftest
2018 [Does compiler simultaneously support -c and -o options?])
2023 # ----------------------------------
2042 AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
2053 # ----------------
2056 [rm -f .libs 2>/dev/null
2058 if test -d .libs; then
2061 # MS-DOS does not allow filenames that begin with a dot.
2070 [Define to the sub-directory in which libtool stores uninstalled libraries.])
2075 # --------------------------------------
2080 if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
2081 test -n "$_LT_TAGVAR(runpath_var, $1)" ||
2084 # We can hardcode non-existent directories.
2088 # when we should be linking with a yet-to-be-installed one
2119 # ----------------
2125 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
2126 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
2127 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
2130 # FIXME - insert some real tests, host_os isn't really good enough
2133 if test -n "$STRIP" ; then
2134 striplib="$STRIP -x"
2135 old_striplib="$STRIP -S"
2152 # -----------------------------
2170 mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;;
2173 …lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_s…
2177 # otherwise default to the standard path separator (i.e. ":") - it is
2189 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
2191 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
2194 test -d "$lt_sys_path" && \
2202 for (lt_i = NF; lt_i > 0; lt_i--) {
2210 lt_count--;
2222 $SED 's,/\([[A-Za-z]]:\),\1,g'` ;;
2244 # when you set need_version to no, make sure it does not cause -set_version
2250 version_type=linux # correct to gnu/linux during the next big refactor
2258 aix[[4-9]]*)
2259 version_type=linux # correct to gnu/linux during the next big refactor
2277 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
2306 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
2324 version_type=linux # correct to gnu/linux during the next big refactor
2334 # libtool to hard-code these into programs
2349 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
2351 test -d \$dldir || mkdir -p \$dldir~
2354 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
2357 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2365 …soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${ve…
2371 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2375 …library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g…
2384 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2401 …path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|…
2407 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
2408 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
2409 …sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEP…
2413 if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
2415 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2417 … sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2420 # common. (e.g. "Program Files" -> "PROGRA~1")
2426 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
2428 test -d \$dldir || mkdir -p \$dldir~
2430 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2439 …library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $…
2463 version_type=linux # correct to gnu/linux during the next big refactor
2474 if test -x /usr/bin/objformat; then
2482 version_type=freebsd-$objformat
2484 freebsd-elf*)
2489 freebsd-*)
2503 freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
2504 freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
2515 gnu*)
2516 version_type=linux # correct to gnu/linux during the next big refactor
2527 version_type=linux # correct to gnu/linux during the next big refactor
2581 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
2587 interix[[3-9]]*)
2588 version_type=linux # correct to gnu/linux during the next big refactor
2604 version_type=linux # correct to gnu/linux during the next big refactor
2619 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
2620 libsuff= shlibsuff= libmagic=32-bit;;
2621 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
2623 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
2624 libsuff=64 shlibsuff=64 libmagic=64-bit;;
2625 *) libsuff= shlibsuff= libmagic=never-match;;
2636 # No shared lib support for Linux oldld, aout, or coff.
2637 linux*oldld* | linux*aout* | linux*coff*)
2642 linux* | k*bsd*-gnu | kopensolaris*-gnu)
2643 version_type=linux # correct to gnu/linux during the next big refactor
2648 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
2652 # Some binutils ld are patched to set DT_RUNPATH
2660 [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
2672 # Add ABI-specific directories to the system library path.
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…
2684 # GNU dynamic linker. Since this was broken with cross compilers,
2685 # most powerpc-linux boxes support dynamic linking these days and
2686 # people can always --disable-shared, the test was removed, and we
2687 # assume the GNU/Linux dynamic linker is in use.
2688 dynamic_linker='GNU/Linux ld.so'
2695 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
2697 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2710 version_type=linux # correct to gnu/linux during the next big refactor
2738 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2740 …if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-
2779 version_type=linux # correct to gnu/linux during the next big refactor
2804 version_type=linux # correct to gnu/linux during the next big refactor
2827 if test -d /usr/nec ;then
2828 version_type=linux # correct to gnu/linux during the next big refactor
2836 version_type=freebsd-elf
2845 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
2858 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
2859 version_type=linux # correct to gnu/linux during the next big refactor
2869 version_type=linux # correct to gnu/linux during the next big refactor
2904 [Is shlibpath searched before the hard-coded library search path?])
2908 The last name is the one that the linker finds with -lNAME]])
2925 [Compile-time system search path for libraries])
2927 [Run-time system search path for libraries])
2932 # --------------------------
2945 dnl $ac_dummy forces splitting on constant user-supplied paths.
2951 test -z "$ac_dir" && ac_dir=.
2952 if test -f $ac_dir/$1; then
2954 if test -n "$file_magic_test_file"; then
2972 *** bug-libtool@gnu.org
2986 if test -n "$MAGIC_CMD"; then
2997 dnl aclocal-1.4 backwards compatibility:
3002 # --------------
3006 if test -z "$lt_cv_path_MAGIC_CMD"; then
3007 if test -n "$ac_tool_prefix"; then
3017 # ----------
3018 # find the pathname to the GNU or non-GNU linker
3027 AC_ARG_WITH([gnu-ld],
3028 [AS_HELP_STRING([--with-gnu-ld],
3029 [assume the C compiler uses GNU ld @<:@default=no@:>@])],
3035 # Check if gcc -print-prog-name=ld gives a path.
3038 *-*-mingw*)
3040 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3042 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3053 test -z "$LD" && LD="$ac_prog"
3065 AC_MSG_CHECKING([for GNU ld])
3067 AC_MSG_CHECKING([for non-GNU ld])
3070 [if test -z "$LD"; then
3074 test -z "$ac_dir" && ac_dir=.
3075 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3077 # Check to see if the program is GNU ld. I'd rather use --version,
3078 # but apparently some variants of GNU ld only accept -v.
3079 # Break only if it was the GNU/non-GNU ld that we prefer.
3080 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3081 *GNU* | *'with BFD'*)
3095 if test -n "$LD"; then
3100 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
3110 dnl aclocal-1.4 backwards compatibility:
3116 #- --------------
3118 [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
3119 [# I'd rather use --version here, but apparently some GNU lds only accept -v.
3120 case `$LD -v 2>&1 </dev/null` in
3121 *GNU* | *'with BFD'*)
3133 # --------------
3135 # -- PORTME Some linkers may need a different reload flag.
3139 [lt_cv_ld_reload_flag='-r'])
3145 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3154 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3156 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3166 # ----------------------
3168 # -- PORTME fill in with the dynamic library characteristics
3179 # 'none' -- dependencies not supported.
3180 # `unknown' -- same as none, but documents that we really don't know.
3181 # 'pass_all' -- all dependencies passed with no checks.
3182 # 'test_compile' -- check by making test program.
3183 # 'file_magic [[regex]]' -- check by looking for files in library path
3189 aix[[4-9]]*)
3198 …lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib…
3199 lt_cv_file_magic_cmd='/usr/bin/file -L'
3212 # unless we find 'file', for example because we are cross-compiling.
3219 …v_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x…
3220 lt_cv_file_magic_cmd='$OBJDUMP -f'
3226 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
3227 lt_cv_file_magic_cmd='$OBJDUMP -f'
3235 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3240 …lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand pa…
3250 gnu*)
3262 …lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object f…
3266 …heck_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)…
3270 …lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared lib…
3276 interix[[3-9]]*)
3283 *-32|*"-32 ") libmagic=32-bit;;
3284 *-n32|*"-n32 ") libmagic=N32;;
3285 *-64|*"-64 ") libmagic=64-bit;;
3286 *) libmagic=never-match;;
3292 linux* | k*bsd*-gnu | kopensolaris*-gnu)
3297 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3298 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3305 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
3315 …if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-
3316 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
3318 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3341 …bs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][…
3349 …lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib…
3353 lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
3379 …file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/…
3387 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3401 # ----------
3402 # find the pathname to a BSD- or MS-compatible name lister
3405 AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
3406 [if test -n "$NM"; then
3411 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3418 test -z "$ac_dir" && ac_dir=.
3420 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3421 # Check to see if the nm accepts a BSD-compat flag.
3422 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3425 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3427 lt_cv_path_NM="$tmp_nm -B"
3431 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3433 lt_cv_path_NM="$tmp_nm -p"
3453 if test -n "$DUMPBIN"; then :
3456 AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
3457 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
3459 DUMPBIN="$DUMPBIN -symbols"
3471 test -z "$NM" && NM=nm
3473 _LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
3489 rm -f conftest*])
3495 dnl aclocal-1.4 backwards compatibility:
3500 # --------------------------------
3503 # -- PORTME fill in with the dynamic library characteristics
3516 case `$DLLTOOL --help 2>&1` in
3517 *--identify-strict*)
3532 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
3540 # ----------------------
3544 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
3547 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
3548 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
3553 rm -f conftest*])
3562 # --------
3568 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
3571 *-ncr-sysv4.3*)
3572 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
3573 AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
3576 AC_CHECK_LIB(m, cos, LIBM="-lm")
3584 dnl aclocal-1.4 backwards compatibility:
3589 # -------------------------------
3598 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
3600 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;;
3603 _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
3605 [-fno-rtti -fno-exceptions], [],
3606 …o_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
3614 # ----------------------
3636 sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
3638 # Define system-specific variables.
3674 # If we're using GNU nm, then use its standard symbol codes.
3675 case `$NM -V 2>&1` in
3676 *GNU* | *'with BFD'*)
3683 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .…
3686 …_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *…
3687 …x="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) …
3705 # Fake it for dumpbin and say T for any non-static function
3722 …lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$…
3729 rm -f conftest*
3746 …if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$n…
3749 mv -f "$nlist"T "$nlist"
3751 rm -f "$nlist"T
3761 relocations are performed -- see ld's documentation on pseudo-relocs. */
3776 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
3789 …$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main …
3811 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
3829 rm -rf conftest* conftst*
3839 if test -z "$lt_cv_sys_global_symbol_pipe"; then
3842 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
3851 elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then
3871 # ---------------------------
3881 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3882 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
3889 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3897 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3901 # adding the `-m68020' flag to GCC prevents building anything better,
3902 # like `-m68040'.
3903 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
3914 # Although the cygwin gcc ignores -fPIC, still need this for old-style
3915 # (--disable-auto-import) libraries
3917 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
3922 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
3930 # The "-static" flag exists, but is broken.
3933 interix[[3-9]]*)
3934 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
3938 if test -d /usr/nec; then
3939 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
3943 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
3944 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
3950 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3955 # QNX uses GNU C++, but need to define -shared option too, otherwise
3957 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
3960 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3965 aix[[4-9]]*)
3969 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3971 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
3978 …# _LT_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abor…
3986 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
3991 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3995 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4002 # FreeBSD uses GNU C++
4007 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4008 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4014 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4015 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4036 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4037 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4038 # CC pic flag -KPIC is the default.
4044 linux* | k*bsd*-gnu | kopensolaris*-gnu)
4048 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4049 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4052 # old Intel C++ for x86_64 which still supported -KPIC.
4053 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4054 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4055 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4059 # ICC 10 doesn't accept -KPIC any more.
4060 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4061 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4062 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4066 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4067 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4068 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4073 # Linux and Compaq Tru64 Unix objects are PIC.
4075 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4079 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4080 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4081 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4084 case `$CC -V 2>&1 | sed 5q` in
4087 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4088 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4089 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4102 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
4111 # QNX uses GNU C++, but need to define -shared option too, otherwise
4113 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4118 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4122 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4126 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4128 # Linux and Compaq Tru64 Unix objects are PIC.
4130 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4142 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4143 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4144 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4148 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4158 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4159 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4163 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4172 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4173 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4174 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4181 # NonStop-UX NCC 3.20
4182 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4198 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4199 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4206 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4214 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4218 # adding the `-m68020' flag to GCC prevents building anything better,
4219 # like `-m68040'.
4220 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4232 # Although the cygwin gcc ignores -fPIC, still need this for old-style
4233 # (--disable-auto-import) libraries
4235 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4241 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4246 # The "-static" flag exists, but is broken.
4251 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
4252 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
4259 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4264 interix[[3-9]]*)
4265 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4277 # QNX uses GNU C++, but need to define -shared option too, otherwise
4279 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4283 if test -d /usr/nec; then
4284 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
4289 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4295 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
4296 if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
4297 _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)"
4305 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4308 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4310 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
4318 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4322 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4323 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
4324 # not for PA HP-UX.
4334 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4338 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4339 # PIC (with -KPIC) is the default.
4340 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4343 linux* | k*bsd*-gnu | kopensolaris*-gnu)
4345 # old Intel for x86_64 which still supported -KPIC.
4347 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4348 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4349 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4352 # ICC 10 doesn't accept -KPIC any more.
4354 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4355 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4356 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4360 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4361 _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
4362 _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
4366 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
4367 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4368 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4373 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4374 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4375 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4378 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4380 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4384 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4385 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4386 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4389 case `$CC -V 2>&1 | sed 5q` in
4390 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*)
4392 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4393 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4397 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4398 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4399 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4403 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4404 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4405 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4408 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4409 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4410 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4413 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4414 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4415 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4423 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4424 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4428 # QNX uses GNU C++, but need to define -shared option too, otherwise
4430 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4434 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4436 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4440 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4444 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4445 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4448 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
4450 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
4455 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4456 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4457 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4461 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4462 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4463 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4467 if test -d /usr/nec ;then
4468 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
4469 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4474 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4475 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4476 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4480 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4485 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4486 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4496 # For platforms which do not support PIC, -DPIC is meaningless:
4501 …$1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[]…
4513 if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
4516 …[$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])]…
4544 # ----------------------------
4560 aix[[4-9]]*)
4561 # If we're using GNU nm, then we don't want the "-C" option.
4562 # -C means demangle to AIX nm, but means don't demangle with GNU nm
4564 # symbols, whereas GNU nm marks them as "W".
4565 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4566-Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$…
4568-BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (…
4580 …_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\'…
4581 … $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_…
4614 # include_expsyms should be a list of space-separated symbols to be *always*
4651 # On some targets, GNU ld is compatible enough with the native linker
4657 # The AIX port of GNU ld has always aspired to compatibility
4658 # with the native linker. However, as the warning in the GNU ld
4661 case `$LD -v 2>&1` in
4662 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
4663 *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;;
4664 *\ \(GNU\ Binutils\)\ [[3-9]]*) ;;
4680 # Set some defaults for GNU ld with shared library support. These
4684 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4685 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4686 # ancient GNU ld didn't support --whole-archive et. al.
4687 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
4688 …_LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-
4693 case `$LD -v 2>&1` in
4694 *GNU\ gold*) supports_anon_versioning=yes ;;
4695 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
4702 # See if GNU ld supports shared libraries.
4704 aix[[3-9]]*)
4705 # On AIX/PPC, the GNU linker is very broken
4710 *** Warning: the GNU linker, at least up to release 2.19, is reported
4713 *** really care for shared libraries, you may want to install binutils
4714 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
4725 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$sonam…
4729 …r/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
4730 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4737 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4740 # support --undefined. This deserves some investigation. FIXME
4741 …_LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$sona…
4750 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4751 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
4755 …_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\'…
4756 … $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_…
4758 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
4759 …_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-
4760 # If the export-symbols file already is a .def file (1st line
4768 …C -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $…
4775 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$sonam…
4779 interix[[3-9]]*)
4782 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4783 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4788 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
4790 …='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr …
4791-shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$ou…
4794 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
4796 if test "$host_os" = linux-dietlibc; then
4798 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
4801 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
4805 tmp_sharedflag='-shared'
4808--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_conv…
4813--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_conv…
4814 tmp_addflag=' $pic_flag -Mnomain' ;;
4816 tmp_addflag=' -i_dynamic' ;;
4818 tmp_addflag=' -i_dynamic -nofor_main' ;;
4820 tmp_addflag=' -nofor_main' ;;
4823 tmp_sharedflag='--shared' ;;
4825 tmp_sharedflag='-qmkshrobj'
4828--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_conv…
4832 case `$CC -V 2>&1 | sed 5q` in
4834--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_conven…
4836 tmp_sharedflag='-G' ;;
4838 tmp_sharedflag='-G' ;;
4840 …"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4844 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
4846 …$libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir…
4852 _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
4853 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4854 … _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
4857 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
4859 …$LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libnam…
4869 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
4870 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
4873 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname…
4874 …cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-r…
4879 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
4883 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
4885 *** is disabling shared libraries support. We urge you to upgrade GNU
4886 *** binutils to release 2.9.1 or newer. Another option is to modify
4891 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4892 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname…
4893 …cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-r…
4900 case `$LD -v 2>&1` in
4901 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
4905 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
4907 *** is disabling shared libraries support. We urge you to upgrade GNU
4908 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
4919 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4920 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4921 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$sonam…
4922 …psym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain
4931 …_LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_…
4938 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4939 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname…
4940 …cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-r…
4954 # PORTME fill in a description of your system's linker (not GNU ld)
4959 …(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$expo…
4961 # are no directories specified by -L.
4963 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
4970 aix[[4-9]]*)
4975 exp_sym_flag='-Bexport'
4978 # If we're using GNU nm, then we don't want the "-C" option.
4979 # -C means demangle to AIX nm, but means don't demangle with GNU nm
4981 # defined symbols, whereas GNU nm marks them as "W".
4982 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4983-Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$…
4985-BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (…
4990 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
4992 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
4994 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5002 exp_sym_flag='-bexport'
5003 no_entry_flag='-bnoentry'
5008 # or program results in "error TOC overflow" add -mminimal-toc to
5010 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5017 _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
5023 collect2name=`${CC} -print-prog-name=collect2`
5024 if test -f "$collect2name" &&
5036 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5041 shared_flag='-shared'
5043 shared_flag="$shared_flag "'${wl}-G'
5048 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
5049 # chokes on -Wl,-G. The following line is correct:
5050 shared_flag='-G'
5053 shared_flag='${wl}-G'
5055 shared_flag='${wl}-bM:SRE'
5060 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
5061 # It seems that -bexpall does not export symbols beginning with
5065 # Warning - without using the other runtime loading flags (-brtl),
5066 # -berok will link without error, but may produce a broken library.
5067 _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
5071 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5072 …_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_e…
5075 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
5076 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
5077 …_LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $depli…
5082 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5083 # Warning - without using the other run time loading flags,
5084 # -berok will link without error, but may produce a broken library.
5085 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
5086 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5088 # We only use this code for GNU lds that support --whole-archive.
5089 … _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
5096 …psym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $co…
5105 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$sonam…
5109 …r/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
5110 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5117 _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
5137 …_LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,
5139 …sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $outpu…
5141 …sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$sonam…
5143 …$CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.e…
5149 … $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1,DATA/'…
5161 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
5162 …$MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || e…
5175 …TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\…
5179 _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
5190 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5191 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5200 …_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++…
5201 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5208 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5214 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5216 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5217 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5224 …R(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir…
5226 …_LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objd…
5235 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5240 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_lib…
5242 …_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $link…
5249 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5260 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler…
5263 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $…
5266 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_lib…
5272 …_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flag…
5275 …_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $d…
5279 # Older versions of the 11.00 compiler do not understand -b yet
5280 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
5281 _LT_LINKER_OPTION([if $CC understands -b],
5282 _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b],
5283 …[_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $l…
5284 …[_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $lin…
5285 …[_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $l…
5301 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5313-shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring…
5314 # Try to use the -exported_symbol ld option, if it does not
5315 # work, assume that -exports_file does not work either and
5317 # This should be the same for all languages, so no per-tag cache variable.
5318 AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
5321 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
5336-shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring…
5339-shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "
5340-shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "
5343 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5350 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
5351 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5353 _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5355 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5361 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5363 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5372 if test -f /usr/libexec/ld.so; then
5376 …if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-
5377 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5378 …AGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${…
5379 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5380 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5383 openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
5384 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5385 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5388 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5389 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5399 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5402 …dir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobj…
5403 …_LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$lib…
5408 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5409-shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -
5411 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5412-shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstr…
5415 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5419 osf4* | osf5*) # as osf3* with the addition of -msym flag
5421 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5422-shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname…
5423 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5425 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5426-shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$…
5427 …in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%…
5428-shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname…
5430 # Both c and cxx compiler support -rpath directly
5431 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
5438 _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
5441 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib…
5442 …_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/…
5443 …$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobj…
5445 case `$CC -V 2>&1` in
5448 …_LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $…
5449 …_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/…
5450 …$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $…
5454 …_LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $…
5455 …_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/…
5456 …$CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM…
5460 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5463 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
5466 # but understands `-z linker_flag'. GCC discards it without `$wl',
5470 …_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaulte…
5472 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
5483 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5485 …_LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_fla…
5487 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5496 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5502 _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5503 _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
5507 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5516 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5518 _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
5522 if test -d /usr/nec; then
5523 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5532 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
5538 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flag…
5539 …_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o …
5541 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5542 …_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib …
5547 # Note: We can NOT use -z defs as we might desire, because we do not
5548 # link with -lc, and that would cause any symbols used from libc to
5550 # ever link correctly. If we're not using GNU ld we use -z text
5551 # though, which does catch some bad symbols but isn't as heavy-handed
5552 # as -z defs.
5553 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
5554 _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
5557 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
5560 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
5564 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flag…
5565 …_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o …
5567 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5568 …_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib …
5573 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5574 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5586 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
5607 # Assume -lc should be added
5613 # FIXME: we may have to deal with multi-command sequences.
5616 # Test whether the compiler implicitly links with -lc since on some
5617 # systems, -lgcc has to come before -lc. If gcc already passes -lc
5618 # to ld, don't add -lc before -lgcc.
5619 AC_CACHE_CHECK([whether -lc should be explicitly linked in],
5631 compiler_flags=-v
5632 linker_flags=-v
5638 if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
5658 [Whether or not to add -lc for building shared libraries])
5669 [Create an old-style archive from a shared archive])
5671 [Create a temporary old-style archive to link instead of a shared archive])
5679 [Whether we are building with GNU ld or not])
5688 [Whether we need a single "-rpath" flag with a separated argument])
5698 [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
5733 # ------------------------
5768 if test -n "$compiler"; then
5791 if test -n "$RANLIB"; then
5797 aix[[4-9]]*)
5818 # --------------------------
5826 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5827 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5869 # and will be corrupted by setting them based on a non-working compiler.
5892 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
5897 if test -n "${lt_cv_path_LDCXX+set}"; then
5902 test -z "${LDCXX+set}" || LD=$LDCXX
5903 CC=${CXX-"c++"}
5909 if test -n "$compiler"; then
5910 # We don't want -fno-exception when compiling C++ code, so set the
5913 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
5919 # Set up default GNU C++ configuration
5923 # Check if GNU C++ uses GNU ld as the underlying linker, since the
5924 # archiving commands below assume that GNU ld is being used.
5926 …, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compile…
5927-shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname …
5929 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5930 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5933 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
5937 # ancient GNU ld didn't support --whole-archive et. al.
5938 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
5939 $GREP 'no-whole-archive' > /dev/null; then
5940 …_LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-
5949 # command for GNU C++ for the case where it uses the native
5950 # linker, instead of GNU ld. If possible, this setting should
5953 …LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_obje…
5959 …output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with…
5975 aix[[4-9]]*)
5980 exp_sym_flag='-Bexport'
5986 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5988 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
5991 *-brtl*)
6000 exp_sym_flag='-bexport'
6001 no_entry_flag='-bnoentry'
6006 # or program results in "error TOC overflow" add -mminimal-toc to
6008 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6015 _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
6021 collect2name=`${CC} -print-prog-name=collect2`
6022 if test -f "$collect2name" &&
6034 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6038 shared_flag='-shared'
6040 shared_flag="$shared_flag "'${wl}-G'
6045 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6046 # chokes on -Wl,-G. The following line is correct:
6047 shared_flag='-G'
6050 shared_flag='${wl}-G'
6052 shared_flag='${wl}-bM:SRE'
6057 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
6058 # It seems that -bexpall does not export symbols beginning with
6063 # Warning - without using the other runtime loading flags (-brtl),
6064 # -berok will link without error, but may produce a broken library.
6065 _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
6069 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6071 …_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_e…
6074 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
6075 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
6076 …_LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $depli…
6081 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6082 # Warning - without using the other run time loading flags,
6083 # -berok will link without error, but may produce a broken library.
6084 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
6085 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
6087 # We only use this code for GNU lds that support --whole-archive.
6088 … _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
6096 …psym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $co…
6102 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6105 # support --undefined. This deserves some investigation. FIXME
6106 …_LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$sona…
6136 …_LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,
6138 …$SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $outp…
6140 …$SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$sona…
6142 …$CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.e…
6159 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
6160 …$MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || e…
6168 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6169 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
6174 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6175-shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_ob…
6176 # If the export-symbols file already is a .def file (1st line
6184-shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $c…
6219 freebsd-elf*)
6224 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
6229 gnu*)
6233 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$sonam…
6240 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6252 …LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $ou…
6261 …output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list…
6265 …hive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_l…
6283 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6309 …_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplib…
6312 …_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_obj…
6315 …_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $pr…
6326 …output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=…
6333 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_obj…
6336 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefault…
6339 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$i…
6351 interix[[3-9]]*)
6354 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6355 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6360 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6362 …='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr …
6363-shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$ou…
6369-shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname …
6372 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
6375 _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
6380-shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${w…
6382-shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${w…
6388 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6393 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6399 # ends with ".so" (or ".sl" for HP-UX), so rename the library
6401-e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so…
6402-e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so…
6411 …_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GRE…
6413 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6414 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6417 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
6418 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
6426 case `$CC -V 2>&1` in
6428 …AR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_fla…
6429 …$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$so…
6434 ia64*) tmp_idyn=' -i_dynamic';;
6436 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-son…
6437 …mds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}
6441 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6442 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6443 … _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
6447 case `$CC -V` in
6448 *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
6450 rm -rf $tpldir~
6451 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
6452 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
6454 rm -rf $tpldir~
6455 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
6456 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
6459 rm -rf $tpldir~
6460 …$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $…
6461-shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $pos…
6463 rm -rf $tpldir~
6464 …$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $…
6465-shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $pos…
6468 …hive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler…
6469-shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname …
6473 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
6474 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6475--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_conv…
6479 …AR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_fla…
6480 …s, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-sonam…
6483 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6494 …output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; tem…
6497 # IBM XL 8.0 on PPC, with GNU ld
6498 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6499 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6500 …_LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$so…
6503 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6505 …$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl…
6509 case `$CC -V 2>&1 | sed 5q` in
6512 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
6513 …_LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $lib…
6514 … $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_o…
6515 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6516--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_conven…
6520 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
6525 # "CC -xar", where "CC" is the Sun C++ compiler. This is
6528 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
6559 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
6560 …_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_…
6562 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6566 # Workaround some broken pre-1.5 toolchains
6567 …output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $…
6580 if test -f /usr/libexec/ld.so; then
6584 …LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_obje…
6585 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6586 …if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-p…
6587 …s, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $…
6588 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6589 …_LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-
6603 # ends with ".so" (or ".sl" for HP-UX), so rename the library
6605-e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.…
6607 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6613 osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
6614 *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
6625 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6626-shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags …
6627 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6630 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6631-shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags
6632 …hive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i"…
6633 echo "-hidden">> $lib.exp~
6634-shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -m…
6636 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6650 …output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GR…
6654 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6657-shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $comp…
6660-shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_obj…
6664 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6670 …output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with…
6709 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
6710 …_LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $li…
6711 …_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/…
6712 …$CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $de…
6714 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6717 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6720 # but understands `-z linker_flag'.
6722 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
6730 # "CC -xar", where "CC" is the Sun C++ compiler. This is
6733 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
6737 …AGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_…
6740 _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
6743 # GNU C++ compiler with Solaris linker
6745 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
6746 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
6747 …mds, $1)='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_obje…
6748 …ve_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> …
6749 …$CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $pos…
6754 …output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with…
6756 # g++ 2.7 appears to require `-G' NOT `-shared' on this
6758 …rchive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $co…
6759 …ve_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> …
6760 …$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $c…
6765 …output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | …
6768 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
6770 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6772 …_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaulte…
6781 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6788 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6789 …_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib …
6792 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flag…
6793 …_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o …
6799 # Note: We can NOT use -z defs as we might desire, because we do not
6800 # link with -lc, and that would cause any symbols used from libc to
6802 # ever link correctly. If we're not using GNU ld we use -z text
6803 # though, which does catch some bad symbols but isn't as heavy-handed
6804 # as -z defs.
6805 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6806 _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
6809 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
6812 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
6817 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6818 …_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib …
6819 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~
6821 _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
6825 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flag…
6826 …_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o …
6834 # NonStop-UX NCC 3.20
6875 fi # test -n "$compiler"
6894 # ----------------------
6901 # This function is identical to the (non-XSI) version of func_stripname,
6917 # ---------------------------------
6983 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
6984 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
6985 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
7001 -L* | -R* | -l*)
7002 # Some compilers place space between "-{L,R}" and the path.
7004 if test $p = "-L" ||
7005 test $p = "-R"; then
7011 if test -z "$prev"; then
7013 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
7014 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
7015 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
7023 -L | -R)
7027 if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
7033 # The "-l" case would never come before the object being
7037 if test -z "$_LT_TAGVAR(postdeps, $1)"; then
7056 if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
7062 if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
7076 rm -f a.out a.exe
7081 $RM -f confest.$objext
7087 interix[[3-9]]*)
7095 linux*)
7096 case `$CC -V 2>&1 | sed 5q` in
7100 # The more standards-conforming stlport4 library is
7103 # -library=stlport4 depends on it.
7105 *" -library=stlport4 "*)
7111 _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
7120 # The more standards-conforming stlport4 library is
7123 # -library=stlport4 depends on it.
7125 *" -library=stlport4 "*)
7130 # Adding this requires a known-good setup of shared libraries for
7134 _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
7143 *" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
7146 if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
7147 …dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
7164 # --------------------------
7170 if test -z "$F77" || test "X$F77" = "Xno"; then
7206 # and will be corrupted by setting them based on a non-working compiler.
7232 CC=${F77-"f77"}
7238 if test -n "$compiler"; then
7250 if test -n "$RANLIB"; then
7255 aix[[4-9]]*)
7283 fi # test -n "$compiler"
7295 # -------------------------
7302 if test -z "$FC" || test "X$FC" = "Xno"; then
7329 ac_ext=${ac_fc_srcext-f}
7338 # and will be corrupted by setting them based on a non-working compiler.
7364 CC=${FC-"f95"}
7372 if test -n "$compiler"; then
7384 if test -n "$RANLIB"; then
7389 aix[[4-9]]*)
7418 fi # test -n "$compiler"
7430 # --------------------------
7431 # Ensure that the configuration variables for the GNU Java Compiler compiler
7463 CC=${GCJ-"gcj"}
7481 if test -n "$compiler"; then
7501 # --------------------------
7502 # Ensure that the configuration variables for the GNU Go compiler
7534 CC=${GOC-"gccgo"}
7552 if test -n "$compiler"; then
7572 # -------------------------
7605 CC=${RC-"windres"}
7612 if test -n "$compiler"; then
7625 # -----------
7630 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
7636 dnl aclocal-1.4 backwards compatibility:
7641 # ----------
7648 # ----------
7655 dnl aclocal-1.4 backwards compatibility:
7660 # --------------
7666 test -z "$GREP" && GREP=grep
7670 dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
7676 # --------------
7681 test -z "$OBJDUMP" && OBJDUMP=objdump
7687 # ----------------
7691 test -z "$DLLTOOL" && DLLTOOL=dlltool
7697 # ------------
7698 # Check for a fully-functional sed program, that truncates
7699 # as few characters as possible. Prefer GNU sed if found.
7702 test -z "$SED" && SED=sed
7703 Xsed="$SED -e 1s/^X//"
7705 _LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
7706 [Sed that helps us avoid accidentally triggering echo(1) options like -n])
7712 # GNU Autoconf as AC_PROG_SED. When it is available in #
7726 test -z "$as_dir" && as_dir=.
7741 test ! -f $lt_ac_sed && continue
7745 # Check for GNU sed and select it if it is found.
7746 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
7755 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
7756 cmp -s conftest.out conftest.nl || break
7758 test $lt_ac_count -gt 10 && break
7760 if test $lt_ac_count -gt $lt_ac_max; then
7775 dnl aclocal-1.4 backwards compatibility:
7780 # ------------------------
7790 && eval 'test $(( 1 + 1 )) -eq 2 \
7791 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7828 # _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY)
7829 # ------------------------------------------------------
7831 # '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY.
7834 sed -e '/^$1 ()$/,/^} # $1 /c\
7838 } # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \
7839 && mv -f "$cfgfile.tmp" "$cfgfile" \
7840 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7841 test 0 -eq $? || _lt_function_replace_fail=:
7846 # -------------------------
7904 sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
7905 && mv -f "$cfgfile.tmp" "$cfgfile" \
7906 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7907 test 0 -eq $? || _lt_function_replace_fail=:
7910 sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
7911 && mv -f "$cfgfile.tmp" "$cfgfile" \
7912 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7913 test 0 -eq $? || _lt_function_replace_fail=:
7922 # -----------------------------
7925 # for certain cross-compile configurations and native mingw.
7932 *-*-mingw* )
7934 *-*-mingw* ) # actually msys
7937 *-*-cygwin* )
7945 *-*-cygwin* )
7947 *-*-mingw* ) # actually msys
7950 *-*-cygwin* )
7973 *-*-mingw* )
7975 *-*-mingw* ) # actually msys