• 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)
2516 version_type=linux # correct to gnu/linux during the next big refactor
2570 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
2576 interix[[3-9]]*)
2577 version_type=linux # correct to gnu/linux during the next big refactor
2593 version_type=linux # correct to gnu/linux during the next big refactor
2608 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
2609 libsuff= shlibsuff= libmagic=32-bit;;
2610 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
2612 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
2613 libsuff=64 shlibsuff=64 libmagic=64-bit;;
2614 *) libsuff= shlibsuff= libmagic=never-match;;
2625 # No shared lib support for Linux oldld, aout, or coff.
2626 linux*oldld* | linux*aout* | linux*coff*)
2631 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
2632 version_type=linux # correct to gnu/linux during the next big refactor
2637 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
2641 # Some binutils ld are patched to set DT_RUNPATH
2649 [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
2662 if test -f /etc/ld.so.conf; then
2663 …skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwc…
2669 # GNU dynamic linker. Since this was broken with cross compilers,
2670 # most powerpc-linux boxes support dynamic linking these days and
2671 # people can always --disable-shared, the test was removed, and we
2672 # assume the GNU/Linux dynamic linker is in use.
2673 dynamic_linker='GNU/Linux ld.so'
2676 netbsdelf*-gnu)
2677 version_type=linux
2692 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
2694 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2707 version_type=linux # correct to gnu/linux during the next big refactor
2735 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2737 …if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-
2776 version_type=linux # correct to gnu/linux during the next big refactor
2801 version_type=linux # correct to gnu/linux during the next big refactor
2824 if test -d /usr/nec ;then
2825 version_type=linux # correct to gnu/linux during the next big refactor
2833 version_type=freebsd-elf
2842 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
2855 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
2856 version_type=linux # correct to gnu/linux during the next big refactor
2866 version_type=linux # correct to gnu/linux during the next big refactor
2901 [Is shlibpath searched before the hard-coded library search path?])
2905 The last name is the one that the linker finds with -lNAME]])
2922 [Compile-time system search path for libraries])
2924 [Run-time system search path for libraries])
2929 # --------------------------
2942 dnl $ac_dummy forces splitting on constant user-supplied paths.
2948 test -z "$ac_dir" && ac_dir=.
2949 if test -f $ac_dir/$1; then
2951 if test -n "$file_magic_test_file"; then
2969 *** bug-libtool@gnu.org
2983 if test -n "$MAGIC_CMD"; then
2994 dnl aclocal-1.4 backwards compatibility:
2999 # --------------
3003 if test -z "$lt_cv_path_MAGIC_CMD"; then
3004 if test -n "$ac_tool_prefix"; then
3014 # ----------
3015 # find the pathname to the GNU or non-GNU linker
3024 AC_ARG_WITH([gnu-ld],
3025 [AS_HELP_STRING([--with-gnu-ld],
3026 [assume the C compiler uses GNU ld @<:@default=no@:>@])],
3032 # Check if gcc -print-prog-name=ld gives a path.
3035 *-*-mingw*)
3037 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3039 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3050 test -z "$LD" && LD="$ac_prog"
3062 AC_MSG_CHECKING([for GNU ld])
3064 AC_MSG_CHECKING([for non-GNU ld])
3067 [if test -z "$LD"; then
3071 test -z "$ac_dir" && ac_dir=.
3072 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3074 # Check to see if the program is GNU ld. I'd rather use --version,
3075 # but apparently some variants of GNU ld only accept -v.
3076 # Break only if it was the GNU/non-GNU ld that we prefer.
3077 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3078 *GNU* | *'with BFD'*)
3092 if test -n "$LD"; then
3097 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
3107 dnl aclocal-1.4 backwards compatibility:
3113 #- --------------
3115 [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
3116 [# I'd rather use --version here, but apparently some GNU lds only accept -v.
3117 case `$LD -v 2>&1 </dev/null` in
3118 *GNU* | *'with BFD'*)
3130 # --------------
3132 # -- PORTME Some linkers may need a different reload flag.
3136 [lt_cv_ld_reload_flag='-r'])
3142 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3151 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3153 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3163 # ----------------------
3165 # -- PORTME fill in with the dynamic library characteristics
3176 # 'none' -- dependencies not supported.
3177 # `unknown' -- same as none, but documents that we really don't know.
3178 # 'pass_all' -- all dependencies passed with no checks.
3179 # 'test_compile' -- check by making test program.
3180 # 'file_magic [[regex]]' -- check by looking for files in library path
3186 aix[[4-9]]*)
3195 …lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib…
3196 lt_cv_file_magic_cmd='/usr/bin/file -L'
3209 # unless we find 'file', for example because we are cross-compiling.
3216 …v_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x…
3217 lt_cv_file_magic_cmd='$OBJDUMP -f'
3223 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
3224 lt_cv_file_magic_cmd='$OBJDUMP -f'
3232 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3237 …lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand pa…
3255 …lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object f…
3259 …heck_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)…
3263 …lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared lib…
3269 interix[[3-9]]*)
3276 *-32|*"-32 ") libmagic=32-bit;;
3277 *-n32|*"-n32 ") libmagic=N32;;
3278 *-64|*"-64 ") libmagic=64-bit;;
3279 *) libmagic=never-match;;
3285 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
3289 netbsd* | netbsdelf*-gnu)
3290 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3291 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3298 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
3308 …if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-
3309 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
3311 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3334 …bs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][…
3342 …lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib…
3346 lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
3372 …file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/…
3380 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3394 # ----------
3395 # find the pathname to a BSD- or MS-compatible name lister
3398 AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
3399 [if test -n "$NM"; then
3404 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3411 test -z "$ac_dir" && ac_dir=.
3413 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3414 # Check to see if the nm accepts a BSD-compat flag.
3415 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3418 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3420 lt_cv_path_NM="$tmp_nm -B"
3424 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3426 lt_cv_path_NM="$tmp_nm -p"
3446 if test -n "$DUMPBIN"; then :
3449 AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
3450 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
3452 DUMPBIN="$DUMPBIN -symbols"
3464 test -z "$NM" && NM=nm
3466 _LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
3482 rm -f conftest*])
3488 dnl aclocal-1.4 backwards compatibility:
3493 # --------------------------------
3496 # -- PORTME fill in with the dynamic library characteristics
3509 case `$DLLTOOL --help 2>&1` in
3510 *--identify-strict*)
3525 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
3533 # ----------------------
3537 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
3540 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
3541 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
3546 rm -f conftest*])
3555 # --------
3561 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
3564 *-ncr-sysv4.3*)
3565 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
3566 AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
3569 AC_CHECK_LIB(m, cos, LIBM="-lm")
3577 dnl aclocal-1.4 backwards compatibility:
3582 # -------------------------------
3591 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
3593 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;;
3596 _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
3598 [-fno-rtti -fno-exceptions], [],
3599 …o_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
3607 # ----------------------
3629 sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
3631 # Define system-specific variables.
3667 # If we're using GNU nm, then use its standard symbol codes.
3668 case `$NM -V 2>&1` in
3669 *GNU* | *'with BFD'*)
3676 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .…
3679 …_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *…
3680 …x="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) …
3698 # Fake it for dumpbin and say T for any non-static function
3715 …lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$…
3722 rm -f conftest*
3739 …if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$n…
3742 mv -f "$nlist"T "$nlist"
3744 rm -f "$nlist"T
3754 relocations are performed -- see ld's documentation on pseudo-relocs. */
3769 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
3782 …$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main …
3804 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
3822 rm -rf conftest* conftst*
3832 if test -z "$lt_cv_sys_global_symbol_pipe"; then
3835 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
3844 elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then
3864 # ---------------------------
3874 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3875 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
3882 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3890 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3894 # adding the `-m68020' flag to GCC prevents building anything better,
3895 # like `-m68040'.
3896 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
3907 # Although the cygwin gcc ignores -fPIC, still need this for old-style
3908 # (--disable-auto-import) libraries
3910 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
3915 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
3923 # The "-static" flag exists, but is broken.
3926 interix[[3-9]]*)
3927 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
3931 if test -d /usr/nec; then
3932 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
3936 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
3937 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
3943 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3948 # QNX uses GNU C++, but need to define -shared option too, otherwise
3950 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
3953 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3958 aix[[4-9]]*)
3962 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3964 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
3971 …# _LT_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abor…
3979 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
3984 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3988 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
3995 # FreeBSD uses GNU C++
4000 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4001 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4007 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4008 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4029 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4030 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4031 # CC pic flag -KPIC is the default.
4037 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
4041 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4042 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4045 # old Intel C++ for x86_64 which still supported -KPIC.
4046 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4047 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4048 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4052 # ICC 10 doesn't accept -KPIC any more.
4053 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4054 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4055 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4059 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4060 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4061 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4066 # Linux and Compaq Tru64 Unix objects are PIC.
4068 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4072 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4073 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4074 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4077 case `$CC -V 2>&1 | sed 5q` in
4080 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4081 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4082 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4095 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
4101 netbsd* | netbsdelf*-gnu)
4104 # QNX uses GNU C++, but need to define -shared option too, otherwise
4106 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4111 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4115 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4119 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4121 # Linux and Compaq Tru64 Unix objects are PIC.
4123 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4135 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4136 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4137 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4141 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4151 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4152 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4156 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4165 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4166 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4167 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4174 # NonStop-UX NCC 3.20
4175 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4191 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4192 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4199 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4207 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4211 # adding the `-m68020' flag to GCC prevents building anything better,
4212 # like `-m68040'.
4213 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4225 # Although the cygwin gcc ignores -fPIC, still need this for old-style
4226 # (--disable-auto-import) libraries
4228 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4234 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4239 # The "-static" flag exists, but is broken.
4244 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
4245 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
4252 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4257 interix[[3-9]]*)
4258 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4270 # QNX uses GNU C++, but need to define -shared option too, otherwise
4272 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4276 if test -d /usr/nec; then
4277 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
4282 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4288 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
4289 if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
4290 _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)"
4298 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4301 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4303 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
4311 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4315 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4316 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
4317 # not for PA HP-UX.
4327 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4331 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4332 # PIC (with -KPIC) is the default.
4333 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4336 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
4338 # old Intel for x86_64 which still supported -KPIC.
4340 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4341 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4342 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4345 # ICC 10 doesn't accept -KPIC any more.
4347 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4348 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4349 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4353 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4354 _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
4355 _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
4359 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
4360 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4361 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4366 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4367 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4368 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4371 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4373 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4377 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4378 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4379 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4382 case `$CC -V 2>&1 | sed 5q` in
4383 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*)
4385 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4386 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4390 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4391 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4392 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4396 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4397 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4398 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4401 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4402 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4403 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4406 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4407 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4408 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4416 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4417 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4421 # QNX uses GNU C++, but need to define -shared option too, otherwise
4423 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4427 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4429 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4433 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4437 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4438 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4441 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
4443 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
4448 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4449 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4450 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4454 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4455 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4456 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4460 if test -d /usr/nec ;then
4461 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
4462 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4467 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4468 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4469 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4473 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4478 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4479 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4489 # For platforms which do not support PIC, -DPIC is meaningless:
4494 …$1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[]…
4506 if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
4509 …[$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])]…
4537 # ----------------------------
4553 aix[[4-9]]*)
4554 # If we're using GNU nm, then we don't want the "-C" option.
4555 # -C means demangle to AIX nm, but means don't demangle with GNU nm
4557 # symbols, whereas GNU nm marks them as "W".
4558 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4559-Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$…
4561-BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (…
4573 …_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\'…
4574 … $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_…
4578 linux* | k*bsd*-gnu | gnu*)
4610 # include_expsyms should be a list of space-separated symbols to be *always*
4643 linux* | k*bsd*-gnu | gnu*)
4650 # On some targets, GNU ld is compatible enough with the native linker
4656 # The AIX port of GNU ld has always aspired to compatibility
4657 # with the native linker. However, as the warning in the GNU ld
4660 case `$LD -v 2>&1` in
4661 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
4662 *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;;
4663 *\ \(GNU\ Binutils\)\ [[3-9]]*) ;;
4679 # Set some defaults for GNU ld with shared library support. These
4683 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4684 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4685 # ancient GNU ld didn't support --whole-archive et. al.
4686 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
4687 …_LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-
4692 case `$LD -v 2>&1` in
4693 *GNU\ gold*) supports_anon_versioning=yes ;;
4694 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
4701 # See if GNU ld supports shared libraries.
4703 aix[[3-9]]*)
4704 # On AIX/PPC, the GNU linker is very broken
4709 *** Warning: the GNU linker, at least up to release 2.19, is reported
4712 *** really care for shared libraries, you may want to install binutils
4713 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
4724 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$sonam…
4728 …r/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
4729 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4736 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4739 # support --undefined. This deserves some investigation. FIXME
4740 …_LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$sona…
4749 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4750 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
4754 …_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\'…
4755 … $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_…
4757 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
4758 …_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-
4759 # If the export-symbols file already is a .def file (1st line
4767 …C -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $…
4774 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$sonam…
4778 interix[[3-9]]*)
4781 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4782 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4787 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
4789 …='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr …
4790-shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$ou…
4793 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
4795 if test "$host_os" = linux-dietlibc; then
4797 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
4800 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
4804 tmp_sharedflag='-shared'
4807--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_conv…
4812--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_conv…
4813 tmp_addflag=' $pic_flag -Mnomain' ;;
4815 tmp_addflag=' -i_dynamic' ;;
4817 tmp_addflag=' -i_dynamic -nofor_main' ;;
4819 tmp_addflag=' -nofor_main' ;;
4822 tmp_sharedflag='--shared' ;;
4824 tmp_sharedflag='-qmkshrobj'
4827--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_conv…
4831 case `$CC -V 2>&1 | sed 5q` in
4833--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_conven…
4835 tmp_sharedflag='-G' ;;
4837 tmp_sharedflag='-G' ;;
4839 …"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4843 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
4845 …$libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir…
4851 _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
4852 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4853 … _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
4856 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
4858 …$LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libnam…
4867 netbsd* | netbsdelf*-gnu)
4868 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
4869 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
4872 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname…
4873 …cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-r…
4878 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
4882 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
4884 *** is disabling shared libraries support. We urge you to upgrade GNU
4885 *** binutils to release 2.9.1 or newer. Another option is to modify
4890 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4891 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname…
4892 …cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-r…
4899 case `$LD -v 2>&1` in
4900 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
4904 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
4906 *** is disabling shared libraries support. We urge you to upgrade GNU
4907 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
4918 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4919 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4920 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$sonam…
4921 …psym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain
4930 …_LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_…
4937 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4938 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname…
4939 …cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-r…
4953 # PORTME fill in a description of your system's linker (not GNU ld)
4958 …(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$expo…
4960 # are no directories specified by -L.
4962 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
4969 aix[[4-9]]*)
4974 exp_sym_flag='-Bexport'
4977 # If we're using GNU nm, then we don't want the "-C" option.
4978 # -C means demangle to AIX nm, but means don't demangle with GNU nm
4980 # defined symbols, whereas GNU nm marks them as "W".
4981 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4982-Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$…
4984-BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (…
4989 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
4991 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
4993 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5001 exp_sym_flag='-bexport'
5002 no_entry_flag='-bnoentry'
5007 # or program results in "error TOC overflow" add -mminimal-toc to
5009 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5016 _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
5022 collect2name=`${CC} -print-prog-name=collect2`
5023 if test -f "$collect2name" &&
5035 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5040 shared_flag='-shared'
5042 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'
5349 netbsd* | netbsdelf*-gnu)
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
6230 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$sonam…
6237 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6249 …LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $ou…
6258 …output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list…
6262 …hive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_l…
6280 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6306 …_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplib…
6309 …_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_obj…
6312 …_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $pr…
6323 …output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=…
6330 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_obj…
6333 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefault…
6336 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$i…
6348 interix[[3-9]]*)
6351 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6352 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6357 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6359 …='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr …
6360-shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$ou…
6366-shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname …
6369 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
6372 _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
6377-shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${w…
6379-shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${w…
6385 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6390 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6396 # ends with ".so" (or ".sl" for HP-UX), so rename the library
6398-e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so…
6399-e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so…
6408 …_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GRE…
6410 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6411 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6414 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
6415 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
6423 case `$CC -V 2>&1` in
6425 …AR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_fla…
6426 …$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$so…
6431 ia64*) tmp_idyn=' -i_dynamic';;
6433 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-son…
6434 …mds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}
6438 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6439 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6440 … _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
6444 case `$CC -V` in
6445 *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
6447 rm -rf $tpldir~
6448 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
6449 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
6451 rm -rf $tpldir~
6452 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
6453 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
6456 rm -rf $tpldir~
6457 …$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $…
6458-shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $pos…
6460 rm -rf $tpldir~
6461 …$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $…
6462-shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $pos…
6465 …hive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler…
6466-shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname …
6470 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
6471 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6472--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_conv…
6476 …AR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_fla…
6477 …s, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-sonam…
6480 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6491 …output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; tem…
6494 # IBM XL 8.0 on PPC, with GNU ld
6495 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6496 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6497 …_LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$so…
6500 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6502 …$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl…
6506 case `$CC -V 2>&1 | sed 5q` in
6509 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
6510 …_LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $lib…
6511 … $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_o…
6512 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6513--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_conven…
6517 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
6522 # "CC -xar", where "CC" is the Sun C++ compiler. This is
6525 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
6556 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
6557 …_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_…
6559 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6563 # Workaround some broken pre-1.5 toolchains
6564 …output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $…
6577 if test -f /usr/libexec/ld.so; then
6581 …LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_obje…
6582 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6583 …if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-p…
6584 …s, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $…
6585 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6586 …_LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-
6600 # ends with ".so" (or ".sl" for HP-UX), so rename the library
6602-e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.…
6604 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6610 osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
6611 *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
6622 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6623-shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags …
6624 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6627 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6628-shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags
6629 …hive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i"…
6630 echo "-hidden">> $lib.exp~
6631-shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -m…
6633 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6647 …output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GR…
6651 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6654-shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $comp…
6657-shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_obj…
6661 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6667 …output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with…
6706 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
6707 …_LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $li…
6708 …_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/…
6709 …$CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $de…
6711 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6714 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6717 # but understands `-z linker_flag'.
6719 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
6727 # "CC -xar", where "CC" is the Sun C++ compiler. This is
6730 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
6734 …AGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_…
6737 _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
6740 # GNU C++ compiler with Solaris linker
6742 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
6743 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
6744 …mds, $1)='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_obje…
6745 …ve_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> …
6746 …$CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $pos…
6751 …output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with…
6753 # g++ 2.7 appears to require `-G' NOT `-shared' on this
6755 …rchive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $co…
6756 …ve_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> …
6757 …$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $c…
6762 …output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | …
6765 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
6767 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6769 …_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaulte…
6778 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6785 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6786 …_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib …
6789 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flag…
6790 …_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o …
6796 # Note: We can NOT use -z defs as we might desire, because we do not
6797 # link with -lc, and that would cause any symbols used from libc to
6799 # ever link correctly. If we're not using GNU ld we use -z text
6800 # though, which does catch some bad symbols but isn't as heavy-handed
6801 # as -z defs.
6802 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6803 _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
6806 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
6809 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
6814 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6815 …_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib …
6816 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~
6818 _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
6822 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flag…
6823 …_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o …
6831 # NonStop-UX NCC 3.20
6872 fi # test -n "$compiler"
6891 # ----------------------
6898 # This function is identical to the (non-XSI) version of func_stripname,
6914 # ---------------------------------
6980 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
6981 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
6982 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
6998 -L* | -R* | -l*)
6999 # Some compilers place space between "-{L,R}" and the path.
7001 if test $p = "-L" ||
7002 test $p = "-R"; then
7008 if test -z "$prev"; then
7010 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
7011 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
7012 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
7020 -L | -R)
7024 if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
7030 # The "-l" case would never come before the object being
7034 if test -z "$_LT_TAGVAR(postdeps, $1)"; then
7053 if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
7059 if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
7073 rm -f a.out a.exe
7078 $RM -f confest.$objext
7084 interix[[3-9]]*)
7092 linux*)
7093 case `$CC -V 2>&1 | sed 5q` in
7097 # The more standards-conforming stlport4 library is
7100 # -library=stlport4 depends on it.
7102 *" -library=stlport4 "*)
7108 _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
7117 # The more standards-conforming stlport4 library is
7120 # -library=stlport4 depends on it.
7122 *" -library=stlport4 "*)
7127 # Adding this requires a known-good setup of shared libraries for
7131 _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
7140 *" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
7143 if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
7144 …dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
7161 # --------------------------
7167 if test -z "$F77" || test "X$F77" = "Xno"; then
7203 # and will be corrupted by setting them based on a non-working compiler.
7229 CC=${F77-"f77"}
7235 if test -n "$compiler"; then
7247 if test -n "$RANLIB"; then
7252 aix[[4-9]]*)
7280 fi # test -n "$compiler"
7292 # -------------------------
7299 if test -z "$FC" || test "X$FC" = "Xno"; then
7326 ac_ext=${ac_fc_srcext-f}
7335 # and will be corrupted by setting them based on a non-working compiler.
7361 CC=${FC-"f95"}
7369 if test -n "$compiler"; then
7381 if test -n "$RANLIB"; then
7386 aix[[4-9]]*)
7415 fi # test -n "$compiler"
7427 # --------------------------
7428 # Ensure that the configuration variables for the GNU Java Compiler compiler
7460 CC=${GCJ-"gcj"}
7478 if test -n "$compiler"; then
7498 # --------------------------
7499 # Ensure that the configuration variables for the GNU Go compiler
7531 CC=${GOC-"gccgo"}
7549 if test -n "$compiler"; then
7569 # -------------------------
7602 CC=${RC-"windres"}
7609 if test -n "$compiler"; then
7622 # -----------
7627 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
7633 dnl aclocal-1.4 backwards compatibility:
7638 # ----------
7645 # ----------
7652 dnl aclocal-1.4 backwards compatibility:
7657 # --------------
7663 test -z "$GREP" && GREP=grep
7667 dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
7673 # --------------
7678 test -z "$OBJDUMP" && OBJDUMP=objdump
7684 # ----------------
7688 test -z "$DLLTOOL" && DLLTOOL=dlltool
7694 # ------------
7695 # Check for a fully-functional sed program, that truncates
7696 # as few characters as possible. Prefer GNU sed if found.
7699 test -z "$SED" && SED=sed
7700 Xsed="$SED -e 1s/^X//"
7702 _LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
7703 [Sed that helps us avoid accidentally triggering echo(1) options like -n])
7709 # GNU Autoconf as AC_PROG_SED. When it is available in #
7723 test -z "$as_dir" && as_dir=.
7738 test ! -f $lt_ac_sed && continue
7742 # Check for GNU sed and select it if it is found.
7743 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
7752 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
7753 cmp -s conftest.out conftest.nl || break
7755 test $lt_ac_count -gt 10 && break
7757 if test $lt_ac_count -gt $lt_ac_max; then
7772 dnl aclocal-1.4 backwards compatibility:
7777 # ------------------------
7787 && eval 'test $(( 1 + 1 )) -eq 2 \
7788 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7825 # _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY)
7826 # ------------------------------------------------------
7828 # '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY.
7831 sed -e '/^$1 ()$/,/^} # $1 /c\
7835 } # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \
7836 && mv -f "$cfgfile.tmp" "$cfgfile" \
7837 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7838 test 0 -eq $? || _lt_function_replace_fail=:
7843 # -------------------------
7901 sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
7902 && mv -f "$cfgfile.tmp" "$cfgfile" \
7903 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7904 test 0 -eq $? || _lt_function_replace_fail=:
7907 sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
7908 && mv -f "$cfgfile.tmp" "$cfgfile" \
7909 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7910 test 0 -eq $? || _lt_function_replace_fail=:
7919 # -----------------------------
7922 # for certain cross-compile configurations and native mingw.
7929 *-*-mingw* )
7931 *-*-mingw* ) # actually msys
7934 *-*-cygwin* )
7942 *-*-cygwin* )
7944 *-*-mingw* ) # actually msys
7947 *-*-cygwin* )
7970 *-*-mingw* )
7972 *-*-mingw* ) # actually msys