• Home
  • Raw
  • Download

Lines Matching +full:binutils +full:- +full:powerpc64 +full:- +full:linux +full:- +full:gnu

1 # generated automatically by aclocal 1.16.2 -*- Autoconf -*-
3 # Copyright (C) 1996-2020 Free Software Foundation, Inc.
23 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
25 # Copyright (C) 1996-2001, 2003-2015 Free Software Foundation, Inc.
37 # GNU Libtool is free software; you can redistribute it and/or modify
38 # it under the terms of the GNU General Public License as published by
42 # As a special exception to the GNU General Public License, if you
44 # using GNU Libtool, you may include this file under the same
47 # GNU Libtool is distributed in the hope that it will be useful, but
50 # GNU General Public License for more details.
52 # You should have received a copy of the GNU General Public License
53 # along with this program. If not, see <http://www.gnu.org/licenses/>.
60 # ------------------
63 [m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
71 # ------------------
82 # ------------------
92 m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
102 _LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
123 dnl aclocal-1.4 backwards compatibility:
129 # -----------------------
131 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
138 \-*) ;;
142 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
148 # -------------------
162 # ----------------------
166 [: ${CP="cp -f"}
167 : ${MV="mv -f"}
168 : ${RM="rm -f"}
173 # ---------
195 test -z "$LN_S" && LN_S="ln -s"
216 if test -n "\${ZSH_VERSION+set}"; then
220 if test -n "${ZSH_VERSION+set}"; then
254 test -z "$CC" && CC=cc
255 test -z "$LTCC" && LTCC=$CC
256 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
257 test -z "$LD" && LD=ld
258 test -z "$ac_objext" && ac_objext=o
263 test -z "$MAGIC_CMD" && MAGIC_CMD=file
281 # --------------------------
285 # double-quoted strings.
303 # ---------------
322 # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
323 # ----------------------------------------
324 # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
336 # ------------------------------
349 # -----------------------------------------------------
357 # -----------------------------
359 # full-stop to the whole comment if one is not present already.
370 # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
371 # -------------------------------------------------------------------
389 # --------------------------------------------------------
394 # ------------------------------------------------
400 # ---------------------------------------------------------
412 # --------------------------------------------------
418 # ---------------------------------------------------
424 # ---------------------------------------------------
435 # ------------------------------------------------
449 # ------------------------------------
458 # ------------------------------
471 # ----------------
480 # -----------------------------------
501 # -----------------------
502 # Produce commented declarations of non-tagged libtool config variables
513 # -------------------------
520 # ------------------------------
525 # -------------------
551 # The HP-UX ksh and POSIX shell print the target directory to stdout
584 # Double-quote double-evaled strings.
589 …\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_s…
601 # ------------------------------------
607 # the child script. The macro ends with non-zero status if the
619 SHELL=\${CONFIG_SHELL-$SHELL}
631 # ---------
656 -h, --help print this help, then exit
657 -V, --version print version number, then exit
658 -q, --quiet do not print progress messages
659 -d, --debug don't remove temporary files
661 Report bugs to <bug-libtool@gnu.org>."
675 --version | --v* | -V )
677 --help | --h* | -h )
679 --debug | --d* | -d )
681 --quiet | --q* | --silent | --s* | -q )
684 -*) AC_MSG_ERROR([unrecognized option: $[1]
685 Try '$[0] --help' for more information.]) ;;
688 Try '$[0] --help' for more information.]) ;;
715 lt_config_lt_args="$lt_config_lt_args --quiet"
724 # ---------------
725 # If TAG is the built-in tag, create an initial libtool script with a
736 if test -n "${ZSH_VERSION+set}"; then
747 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
750 # Provide generalized library-building support services.
794 # if finds mixed CR/LF and LF-only lines. Since sed operates in
798 || (rm -f "$cfgfile"; exit 1)
800 mv -f "$cfgfile" "$ofile" ||
801 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
824 # ---------------------
826 # --tag option, using:
827 # autoconf --trace 'LT_SUPPORTED_TAG:$1'
831 # C support is built-in for now
837 # -------------
856 # ------------------
868 # GNU Autoconf as AC_PROG_GO. When it is available in #
877 if test -z "$GOC"; then
878 if test -n "$ac_tool_prefix"; then
882 if test -z "$GOC"; then
890 # -----------------------
934 dnl aclocal-1.4 backwards compatibility:
943 # ----------------
950 _LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
953 LTCC=${LTCC-"$CC"}
956 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
964 # ------------------------
978 # ----------------------
987 $RM -r conftest*
991 # -------------------------
1007 [ldd/readelf like tool for Mach-O binaries on Mac OS X])
1009 [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
1011 AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
1013 if test -z "$LT_MULTI_MODULE"; then
1014 # By default we will add the -single_module flag. You can override
1016 # non-empty at configure time, or by adding -multi_module to the
1018 rm -rf libconftest.dylib*
1020 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
1021 -dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
1022 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
1023 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
1025 # If there is a non-empty error log, and "single_module"
1027 if test -s conftest.err && $GREP single_module conftest.err; then
1031 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
1036 rm -rf libconftest.dylib*
1037 rm -f conftest.*
1040 AC_CACHE_CHECK([for -exported_symbols_list linker flag],
1045 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
1052 AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
1057 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
1058 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
1066 …echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAG…
1067 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
1069 if test -s conftest.err && $GREP force_load conftest.err; then
1071 …elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
1076 rm -f conftest.err libconftest.a conftest conftest.c
1077 rm -rf conftest.dSYM
1081 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
1083 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
1087 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
1089 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
1097 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
1099 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
1112 # ---------------------------------
1122 …ec, $1)='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenienc…
1136 …_LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs…
1137 …_LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$co…
1138 …\$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobj…
1139 …psym_cmds, $1)="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC…
1142-r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_…
1143-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamicl…
1152 # ----------------------------------
1175 …_LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_a…
1176 # Check for a 64-bit object if we didn't find anything.
1177 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
1178 …_LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$l…
1180 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
1190 # -------------------
1192 [m4_divert_text([M4SH-INIT], [$1
1198 # -----------------------
1210 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
1211 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
1212 ECHO='print -r --'
1227 # Invoke $ECHO with all args, space-separated.
1235 print*) AC_MSG_RESULT([print -r]) ;;
1241 test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
1247 || test "X`print -r -- $ECHO`" = "X$ECHO" )])])
1255 # ----------------
1259 [AS_HELP_STRING([--with-sysroot@<:@=DIR@:>@],
1270 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
1274 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
1284 AC_MSG_RESULT([${lt_sysroot:-no}])
1289 # ---------------
1291 [AC_ARG_ENABLE([libtool-lock],
1292 [AS_HELP_STRING([--disable-libtool-lock],
1299 ia64-*-hpux*)
1305 *ELF-32*)
1308 *ELF-64*)
1313 rm -rf conftest*
1315 *-*-irix6*)
1322 *32-bit*)
1323 LD="${LD-ld} -melf32bsmip"
1326 LD="${LD-ld} -melf32bmipn32"
1328 *64-bit*)
1329 LD="${LD-ld} -melf64bmip"
1334 *32-bit*)
1335 LD="${LD-ld} -32"
1338 LD="${LD-ld} -n32"
1340 *64-bit*)
1341 LD="${LD-ld} -64"
1346 rm -rf conftest*
1349 mips64*-*linux*)
1356 *32-bit*)
1359 *64-bit*)
1376 LD="${LD-ld} -m $emul"
1378 rm -rf conftest*
1381 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
1382 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
1386 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
1392 *32-bit*)
1394 x86_64-*kfreebsd*-gnu)
1395 LD="${LD-ld} -m elf_i386_fbsd"
1397 x86_64-*linux*)
1399 *x86-64*)
1400 LD="${LD-ld} -m elf32_x86_64"
1403 LD="${LD-ld} -m elf_i386"
1407 powerpc64le-*linux*)
1408 LD="${LD-ld} -m elf32lppclinux"
1410 powerpc64-*linux*)
1411 LD="${LD-ld} -m elf32ppclinux"
1413 s390x-*linux*)
1414 LD="${LD-ld} -m elf_s390"
1416 sparc64-*linux*)
1417 LD="${LD-ld} -m elf32_sparc"
1421 *64-bit*)
1423 x86_64-*kfreebsd*-gnu)
1424 LD="${LD-ld} -m elf_x86_64_fbsd"
1426 x86_64-*linux*)
1427 LD="${LD-ld} -m elf_x86_64"
1429 powerpcle-*linux*)
1430 LD="${LD-ld} -m elf64lppc"
1432 powerpc-*linux*)
1433 LD="${LD-ld} -m elf64ppc"
1435 s390*-*linux*|s390*-*tpf*)
1436 LD="${LD-ld} -m elf64_s390"
1438 sparc*-*linux*)
1439 LD="${LD-ld} -m elf64_sparc"
1445 rm -rf conftest*
1448 *-*-sco3.2v5*)
1449 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1451 CFLAGS="$CFLAGS -belf"
1452 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
1457 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1461 *-*solaris*)
1467 *64-bit*)
1471 i?86-*-solaris*|x86_64-*-solaris*)
1472 LD="${LD-ld} -m elf_x86_64"
1474 sparc*-*-solaris*)
1475 LD="${LD-ld} -m elf64_sparc"
1478 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
1479 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
1480 LD=${LD-ld}_sol2
1484 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
1485 LD="${LD-ld} -64"
1492 rm -rf conftest*
1501 # -----------
1515 if test 0 -eq "$ac_status"; then
1517 rm -f conftest.$ac_objext libconftest.a
1519 if test 0 -ne "$ac_status"; then
1523 rm -f conftest.* libconftest.a
1538 # -------------------
1543 test -z "$STRIP" && STRIP=:
1547 test -z "$RANLIB" && RANLIB=:
1549 [Commands used to install an old-style archive])
1551 # Determine commands to create old-style static archives.
1556 if test -n "$RANLIB"; then
1559 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
1577 [Commands used to build an old-style archive])
1583 # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1584 # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
1585 # ----------------------------------------------------------------
1601 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1602 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1603 -e 's:$: $lt_compiler_flag:'`
1609 if (exit $ac_status) && test -s "$ac_outfile"; then
1614 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
1630 dnl aclocal-1.4 backwards compatibility:
1634 # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1635 # [ACTION-SUCCESS], [ACTION-FAILURE])
1636 # ----------------------------------------------------
1646 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
1649 if test -s conftest.err; then
1661 $RM -r conftest*
1674 dnl aclocal-1.4 backwards compatibility:
1679 #---------------
1697 gnu*)
1698 # Under GNU Hurd, this test is not required because there is
1700 # Libtool will interpret -1 as no limit whatsoever
1701 lt_cv_sys_max_cmd_len=-1;
1705 # On Win9x/ME, this test blows up -- it succeeds, but takes
1707 # Worse, since 9x/ME are not pre-emptively multitasking,
1728 if test -x /sbin/sysctl; then
1729 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
1730 elif test -x /usr/sbin/sysctl; then
1731 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
1757 if test -x /sbin/sysconfig; then
1758 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
1759 *1*) lt_cv_sys_max_cmd_len=-1 ;;
1768 if test -n "$kargmax"; then
1776 if test -n "$lt_cv_sys_max_cmd_len" && \
1786 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
1787 # If test is not a shell built-in, we'll probably end up computing a
1808 if test -n "$lt_cv_sys_max_cmd_len"; then
1820 dnl aclocal-1.4 backwards compatibility:
1825 # ----------------
1831 # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
1832 # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
1833 # ----------------------------------------------------------------
1883 /* When -fvisibility=hidden is used, assume the code has been annotated
1911 if AC_TRY_EVAL(ac_link) && test -s "conftest$ac_exeext" 2>/dev/null; then
1924 rm -fr conftest*
1929 # ------------------
1960 [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl],[
1969 # because TPF is a cross-compiler, and we know how we open DSOs.
1979 [lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld],
1983 [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl],
1985 [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld],
1987 [lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld])
2005 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
2056 dnl aclocal-1.4 backwards compatibility:
2061 # ---------------------------
2062 # Check to see if options -c and -o are simultaneously supported by compiler.
2068 AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
2071 $RM -r conftest 2>/dev/null
2077 lt_compiler_flag="-o out/conftest2.$ac_objext"
2083 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2084 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
2085 -e 's:$: $lt_compiler_flag:'`
2091 if (exit $ac_status) && test -s out/conftest2.$ac_objext
2097 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
2105 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
2108 $RM -r conftest
2112 [Does compiler simultaneously support -c and -o options?])
2117 # ----------------------------------
2136 AC_MSG_WARN(['$CC' does not support '-c -o', so 'make -j' may be unsafe])
2147 # ----------------
2150 [rm -f .libs 2>/dev/null
2152 if test -d .libs; then
2155 # MS-DOS does not allow filenames that begin with a dot.
2164 [Define to the sub-directory where libtool stores uninstalled libraries.])
2169 # --------------------------------------
2174 if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
2175 test -n "$_LT_TAGVAR(runpath_var, $1)" ||
2178 # We can hardcode non-existent directories.
2182 # when we should be linking with a yet-to-be-installed one
2213 # ----------------
2219 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
2220 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
2221 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
2224 # FIXME - insert some real tests, host_os isn't really good enough
2227 if test -n "$STRIP"; then
2228 striplib="$STRIP -x"
2229 old_striplib="$STRIP -S"
2246 # ---------------------------
2250 # -----------------------------------
2275 eval @S|@1=\"\@S|@@S|@1\ `$ECHO @S|@2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
2276 eval @S|@1=\"`$ECHO @S|@2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \@S|@@S|@1\"
2287 # -----------------------------
2306 mingw* | cegcc*) lt_sed_strip_eq='s|=\([[A-Za-z]]:\)|\1|g' ;;
2309 …lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_s…
2313 # otherwise default to the standard path separator (i.e. ":") - it is
2325 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
2327 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
2334 if test -d "$lt_sys_path$lt_multi_os_dir"; then
2336 elif test -n "$lt_multi_os_dir"; then
2337 test -d "$lt_sys_path" && \
2345 for (lt_i = NF; lt_i > 0; lt_i--) {
2353 lt_count--;
2365 $SED 's|/\([[A-Za-z]]:\)|\1|g'` ;;
2387 # when you set need_version to no, make sure it does not cause -set_version
2392 [User-defined run-time library search path.])
2396 version_type=linux # correct to gnu/linux during the next big refactor
2404 aix[[4-9]]*)
2405 version_type=linux # correct to gnu/linux during the next big refactor
2423 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
2431 # filename-based versioning of shared library archives on AIX. While
2433 # prevent static linking of such archives. So we do filename-based
2438 # versioned .so libs for executables only if there is the -brtl
2439 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
2440 # To allow for filename-based versioning support, we need to create
2450 # but for link time we create the symlink libNAME.so -> libNAME.so.V
2480-n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$…
2490-z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z …
2491 …postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_librar…
2502 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
2520 version_type=linux # correct to gnu/linux during the next big refactor
2530 # libtool to hard-code these into programs
2545 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
2547 test -d \$dldir || mkdir -p \$dldir~
2550 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
2553 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2561 …soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuff…
2567 soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
2571 …library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[[.]]/-/g'`$v…
2580 soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
2597 …path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|…
2603 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
2604 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
2605 …sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEP…
2609 if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
2611 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2613 … sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2616 # common. (e.g. "Program Files" -> "PROGRA~1")
2622 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
2624 test -d \$dldir || mkdir -p \$dldir~
2626 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2635 …library_names_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext $libname.…
2659 version_type=linux # correct to gnu/linux during the next big refactor
2670 if test -x /usr/bin/objformat; then
2678 version_type=freebsd-$objformat
2680 freebsd-elf*)
2686 freebsd-*)
2700 freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
2701 freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
2713 version_type=linux # correct to gnu/linux during the next big refactor
2768 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
2774 interix[[3-9]]*)
2775 version_type=linux # correct to gnu/linux during the next big refactor
2791 version_type=linux # correct to gnu/linux during the next big refactor
2806 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
2807 libsuff= shlibsuff= libmagic=32-bit;;
2808 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
2810 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
2811 libsuff=64 shlibsuff=64 libmagic=64-bit;;
2812 *) libsuff= shlibsuff= libmagic=never-match;;
2823 # No shared lib support for Linux oldld, aout, or coff.
2824 linux*oldld* | linux*aout* | linux*coff*)
2828 linux*android*)
2844 # Don't embed -rpath directories since the linker doesn't support them.
2845 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
2849 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
2850 version_type=linux # correct to gnu/linux during the next big refactor
2855 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
2859 # Some binutils ld are patched to set DT_RUNPATH
2867 [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
2882 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
2883 # even though it is searched at run-time. Try to do the best guess by
2885 if test -f /etc/ld.so.conf; then
2886 …skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwc…
2892 # GNU dynamic linker. Since this was broken with cross compilers,
2893 # most powerpc-linux boxes support dynamic linking these days and
2894 # people can always --disable-shared, the test was removed, and we
2895 # assume the GNU/Linux dynamic linker is in use.
2896 dynamic_linker='GNU/Linux ld.so'
2903 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
2905 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2918 version_type=linux # correct to gnu/linux during the next big refactor
2940 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
2946 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2958 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
2959 v=$($ECHO $release$versuffix | tr -d .-);
2960 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
2968 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
2970 test -d \$dldir || mkdir -p \$dldir~
2973 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
2976 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
2997 version_type=linux # correct to gnu/linux during the next big refactor
3022 version_type=linux # correct to gnu/linux during the next big refactor
3045 if test -d /usr/nec; then
3046 version_type=linux # correct to gnu/linux during the next big refactor
3063 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
3076 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
3077 version_type=linux # correct to gnu/linux during the next big refactor
3087 version_type=linux # correct to gnu/linux during the next big refactor
3116 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
3132 [Is shlibpath searched before the hard-coded library search path?])
3136 The last name is the one that the linker finds with -lNAME]])
3153 [Compile-time system search path for libraries])
3155 [Detected run-time system search path for libraries])
3162 # --------------------------
3175 dnl $ac_dummy forces splitting on constant user-supplied paths.
3181 test -z "$ac_dir" && ac_dir=.
3182 if test -f "$ac_dir/$1"; then
3184 if test -n "$file_magic_test_file"; then
3202 *** bug-libtool@gnu.org
3216 if test -n "$MAGIC_CMD"; then
3227 dnl aclocal-1.4 backwards compatibility:
3232 # --------------
3236 if test -z "$lt_cv_path_MAGIC_CMD"; then
3237 if test -n "$ac_tool_prefix"; then
3247 # ----------
3248 # find the pathname to the GNU or non-GNU linker
3257 AC_ARG_WITH([gnu-ld],
3258 [AS_HELP_STRING([--with-gnu-ld],
3259 [assume the C compiler uses GNU ld @<:@default=no@:>@])],
3265 # Check if gcc -print-prog-name=ld gives a path.
3268 *-*-mingw*)
3270 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3272 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3283 test -z "$LD" && LD=$ac_prog
3295 AC_MSG_CHECKING([for GNU ld])
3297 AC_MSG_CHECKING([for non-GNU ld])
3300 [if test -z "$LD"; then
3304 test -z "$ac_dir" && ac_dir=.
3305 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3307 # Check to see if the program is GNU ld. I'd rather use --version,
3308 # but apparently some variants of GNU ld only accept -v.
3309 # Break only if it was the GNU/non-GNU ld that we prefer.
3310 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3311 *GNU* | *'with BFD'*)
3325 if test -n "$LD"; then
3330 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
3340 dnl aclocal-1.4 backwards compatibility:
3346 #- --------------
3348 [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
3349 [# I'd rather use --version here, but apparently some GNU lds only accept -v.
3350 case `$LD -v 2>&1 </dev/null` in
3351 *GNU* | *'with BFD'*)
3363 # --------------
3365 # -- PORTME Some linkers may need a different reload flag.
3369 [lt_cv_ld_reload_flag='-r'])
3375 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3384 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
3386 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3396 # -----------
3405 cmp -s conftest.i conftest.out \
3408 rm -f conftest.i conftest2.i conftest.out])
3413 # ----------------
3422 cmp -s conftest.i conftest.out \
3425 rm -f conftest.i conftest2.i conftest.out
3426 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"])
3433 # ----------------------
3435 # -- PORTME fill in with the dynamic library characteristics
3446 # 'none' -- dependencies not supported.
3447 # 'unknown' -- same as none, but documents that we really don't know.
3448 # 'pass_all' -- all dependencies passed with no checks.
3449 # 'test_compile' -- check by making test program.
3450 # 'file_magic [[regex]]' -- check by looking for files in library path
3456 aix[[4-9]]*)
3465 …lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib…
3466 lt_cv_file_magic_cmd='/usr/bin/file -L'
3479 # unless we find 'file', for example because we are cross-compiling.
3485 …v_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x…
3486 lt_cv_file_magic_cmd='$OBJDUMP -f'
3492 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
3493 lt_cv_file_magic_cmd='$OBJDUMP -f'
3501 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3506 …lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand pa…
3524 …lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object f…
3528 …heck_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)…
3532 …lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared lib…
3538 interix[[3-9]]*)
3545 *-32|*"-32 ") libmagic=32-bit;;
3546 *-n32|*"-n32 ") libmagic=N32;;
3547 *-64|*"-64 ") libmagic=64-bit;;
3548 *) libmagic=never-match;;
3554 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
3559 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3560 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3567 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
3577 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
3578 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
3580 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3603 …bs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][…
3611 …lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib…
3615 lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
3644 …file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/…
3652 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3666 # ----------
3667 # find the pathname to a BSD- or MS-compatible name lister
3670 AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
3671 [if test -n "$NM"; then
3676 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3683 test -z "$ac_dir" && ac_dir=.
3685 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
3686 # Check to see if the nm accepts a BSD-compat flag.
3687 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
3695 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
3697 lt_cv_path_NM="$tmp_nm -B"
3701 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3703 lt_cv_path_NM="$tmp_nm -p"
3723 if test -n "$DUMPBIN"; then :
3726 AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
3727 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
3729 DUMPBIN="$DUMPBIN -symbols -headers"
3741 test -z "$NM" && NM=nm
3743 _LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
3759 rm -f conftest*])
3765 dnl aclocal-1.4 backwards compatibility:
3770 # --------------------------------
3773 # -- PORTME fill in with the dynamic library characteristics
3786 case `$DLLTOOL --help 2>&1` in
3787 *--identify-strict*)
3802 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
3810 # ----------------------
3814 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
3817 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
3818 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
3823 rm -f conftest*])
3832 # ---------------------
3837 test DEF = "`$SED -n dnl
3838 -e '\''s/^[[ ]]*//'\'' dnl Strip leading whitespace
3839 -e '\''/^\(;.*\)*$/d'\'' dnl Delete empty lines and comments
3840 -e '\''s/^\(EXPORTS\|LIBRARY\)\([[ ]].*\)*$/DEF/p'\'' dnl
3841 -e q dnl Only consider the first "real" line
3847 # --------
3853 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
3856 *-ncr-sysv4.3*)
3857 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM=-lmw)
3858 AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
3861 AC_CHECK_LIB(m, cos, LIBM=-lm)
3869 dnl aclocal-1.4 backwards compatibility:
3874 # -------------------------------
3883 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
3885 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;;
3888 _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
3890 [-fno-rtti -fno-exceptions], [],
3891 …o_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
3899 # ----------------------
3921 sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
3923 # Define system-specific variables.
3959 # If we're using GNU nm, then use its standard symbol codes.
3960 case `$NM -V 2>&1` in
3961 *GNU* | *'with BFD'*)
3967 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
3969 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
3970 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
3972 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
3973 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
3985 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
3987 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
3988 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
3991 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
3993 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
3994 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
3998 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
4000 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
4001 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
4002 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
4020 # Fake it for dumpbin and say T for any non-static function,
4040 …lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$…
4047 rm -f conftest*
4064 …if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$n…
4067 mv -f "$nlist"T "$nlist"
4069 rm -f "$nlist"T
4079 relocations are performed -- see ld's documentation on pseudo-relocs. */
4094 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
4107 …$SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> c…
4129 if AC_TRY_EVAL(ac_link) && test -s conftest$ac_exeext; then
4147 rm -rf conftest* conftst*
4157 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4160 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4169 elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then
4193 # ---------------------------
4203 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4204 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4211 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4213 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4220 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4224 # adding the '-m68020' flag to GCC prevents building anything better,
4225 # like '-m68040'.
4226 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4237 # Although the cygwin gcc ignores -fPIC, still need this for old-style
4238 # (--disable-auto-import) libraries
4240 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4243 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static'
4250 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4258 # The "-static" flag exists, but is broken.
4261 interix[[3-9]]*)
4262 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4266 if test -d /usr/nec; then
4267 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
4271 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
4272 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
4278 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4283 # QNX uses GNU C++, but need to define -shared option too, otherwise
4285 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4288 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4293 aix[[4-9]]*)
4297 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4299 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
4306 …# _LT_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abor…
4314 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4319 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4323 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4330 # FreeBSD uses GNU C++
4335 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4336 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive'
4342 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4343 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive'
4364 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4365 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4366 # CC pic flag -KPIC is the default.
4372 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
4376 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4377 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4380 # old Intel C++ for x86_64, which still supported -KPIC.
4381 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4382 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4383 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4387 # ICC 10 doesn't accept -KPIC any more.
4388 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4389 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4390 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4394 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4395 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4396 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4401 # Linux and Compaq Tru64 Unix objects are PIC.
4403 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4407 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4408 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4409 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4412 case `$CC -V 2>&1 | sed 5q` in
4415 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4416 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4417 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4430 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
4439 # QNX uses GNU C++, but need to define -shared option too, otherwise
4441 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4446 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4450 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4454 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4456 # Linux and Compaq Tru64 Unix objects are PIC.
4458 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4470 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4471 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4472 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4476 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4486 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4487 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4491 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4500 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4501 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4502 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4509 # NonStop-UX NCC 3.20
4510 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4526 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4527 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4534 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4536 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4543 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4547 # adding the '-m68020' flag to GCC prevents building anything better,
4548 # like '-m68040'.
4549 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4561 # Although the cygwin gcc ignores -fPIC, still need this for old-style
4562 # (--disable-auto-import) libraries
4564 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4567 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static'
4575 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4580 # The "-static" flag exists, but is broken.
4585 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
4586 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
4593 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4598 interix[[3-9]]*)
4599 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4611 # QNX uses GNU C++, but need to define -shared option too, otherwise
4613 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4617 if test -d /usr/nec; then
4618 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
4623 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4629 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
4630 if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
4631 _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)"
4639 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4642 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4644 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
4651 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4655 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
4656 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4657 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4666 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4669 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static'
4675 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4676 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
4677 # not for PA HP-UX.
4687 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive'
4691 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4692 # PIC (with -KPIC) is the default.
4693 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4696 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
4698 # old Intel for x86_64, which still supported -KPIC.
4700 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4701 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4702 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4705 # ICC 10 doesn't accept -KPIC any more.
4707 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4708 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4709 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4713 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4714 _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
4715 _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
4719 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
4720 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4721 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4725 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4726 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4727 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4732 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4733 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4734 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4737 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4739 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4743 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4744 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4745 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4748 case `$CC -V 2>&1 | sed 5q` in
4749 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*)
4751 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4752 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4756 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4757 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4758 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4762 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4763 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4764 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4767 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4768 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4769 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4772 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4773 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4774 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4782 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4783 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4787 # QNX uses GNU C++, but need to define -shared option too, otherwise
4789 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4793 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4795 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4799 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4803 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4804 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4807 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
4809 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
4814 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4815 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4816 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4820 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4821 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4822 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4826 if test -d /usr/nec; then
4827 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
4828 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4833 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4834 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4835 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4839 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4844 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4845 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4855 # For platforms that do not support PIC, -DPIC is meaningless:
4860 …$1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[]…
4872 if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
4875 …[$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])]…
4903 # ----------------------------
4919 aix[[4-9]]*)
4920 # If we're using GNU nm, then we don't want the "-C" option.
4921 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
4922 # Without the "-l" option, or with the "-B" option, AIX nm treats
4924 # GNU nm marks them as "W".
4926 # it in the Import File for the 'aix-soname' feature, so we have
4927 # to replace the "-B" option with "-P" for AIX nm.
4928 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4929-Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$…
4931-e '\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\…
4943 …_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\'…
4944 … $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_…
4977 # include_expsyms should be a list of space-separated symbols to be *always*
5014 # On some targets, GNU ld is compatible enough with the native linker
5020 # The AIX port of GNU ld has always aspired to compatibility
5021 # with the native linker. However, as the warning in the GNU ld
5024 case `$LD -v 2>&1` in
5025 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
5026 *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;;
5027 *\ \(GNU\ Binutils\)\ [[3-9]]*) ;;
5043 # Set some defaults for GNU ld with shared library support. These
5047 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
5048 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
5049 # ancient GNU ld didn't support --whole-archive et. al.
5050 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
5051 …_LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-arch…
5056 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
5057 *GNU\ gold*) supports_anon_versioning=yes ;;
5058 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
5065 # See if GNU ld supports shared libraries.
5067 aix[[3-9]]*)
5068 # On AIX/PPC, the GNU linker is very broken
5073 *** Warning: the GNU linker, at least up to release 2.19, is reported
5076 *** really care for shared libraries, you may want to install binutils
5077 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
5088 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname
5092 …r/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
5093 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5100 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5103 # support --undefined. This deserves some investigation. FIXME
5104 …_LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname…
5113 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5114 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols'
5118 …_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\'…
5119 … $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_…
5121 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
5122 …e_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-a…
5123 # If the export-symbols file already is a .def file, use it as
5131 …CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname …
5138 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname
5143 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5152 …$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$lib…
5153 emximp -o $lib $output_objdir/$libname.def'
5160 prefix_cmds="$prefix_cmds -e 1d";
5162 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
5164 …$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$lib…
5165 emximp -o $lib $output_objdir/$libname.def'
5166 …_LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdi…
5170 interix[[3-9]]*)
5173 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
5174 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
5179 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
5181 …1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${…
5182-shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output…
5185 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
5187 if test linux-dietlibc = "$host_os"; then
5189 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
5192 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
5196 tmp_sharedflag='-shared'
5199--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_conv…
5204--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_conv…
5205 tmp_addflag=' $pic_flag -Mnomain' ;;
5207 tmp_addflag=' -i_dynamic' ;;
5209 tmp_addflag=' -i_dynamic -nofor_main' ;;
5211 tmp_addflag=' -nofor_main' ;;
5214 tmp_sharedflag='--shared' ;;
5216 tmp_sharedflag='-Wl,-shared' ;;
5218 tmp_sharedflag='-qmkshrobj'
5221--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_conv…
5225 case `$CC -V 2>&1 | sed 5q` in
5227--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_conven…
5229 tmp_sharedflag='-G' ;;
5231 tmp_sharedflag='-G' ;;
5233 … '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
5237 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5239 …g"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$…
5244 _LT_TAGVAR(export_dynamic_flag_spec, $1)='-rdynamic'
5248 _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
5249 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
5250 … _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
5253 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5255 …$LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libnam…
5265 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
5266 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5269 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $…
5270 …m_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-ret…
5275 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
5279 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5281 *** is disabling shared libraries support. We urge you to upgrade GNU
5282 *** binutils to release 2.9.1 or newer. Another option is to modify
5287 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5288 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $…
5289 …m_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-ret…
5296 case `$LD -v 2>&1` in
5297 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
5301 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
5303 *** is disabling shared libraries support. We urge you to upgrade GNU
5304 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
5315 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5316 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
5317 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname
5318 …expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-s…
5327 …_LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_…
5334 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5335 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $…
5336 …m_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-ret…
5350 # PORTME fill in a description of your system's linker (not GNU ld)
5355 …(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$expo…
5357 # are no directories specified by -L.
5359 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
5366 aix[[4-9]]*)
5371 exp_sym_flag='-Bexport'
5374 # If we're using GNU nm, then we don't want the "-C" option.
5375 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
5376 # Without the "-l" option, or with the "-B" option, AIX nm treats
5378 # GNU nm marks them as "W".
5380 # it in the Import File for the 'aix-soname' feature, so we have
5381 # to replace the "-B" option with "-P" for AIX nm.
5382 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
5383-Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$…
5385-e '\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\…
5390 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5393 # depending on the kind of the shared library created -
5404 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
5406 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
5412 # With aix-soname=svr4, we create the lib.so.V shared archives only,
5416 LDFLAGS="$LDFLAGS -Wl,-brtl"
5421 exp_sym_flag='-bexport'
5422 no_entry_flag='-bnoentry'
5427 # or program results in "error TOC overflow" add -mminimal-toc to
5429 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5436 _LT_TAGVAR(file_list_spec, $1)='$wl-f,'
5450 collect2name=`$CC -print-prog-name=collect2`
5451 if test -f "$collect2name" &&
5463 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5468 shared_flag='-shared'
5470 shared_flag="$shared_flag "'$wl-G'
5474 # /with/ Import File - we do not want to mix them.
5475 shared_flag_aix='-shared'
5476 shared_flag_svr4='-shared $wl-G'
5480 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
5481 # chokes on -Wl,-G. The following line is correct:
5482 shared_flag='-G'
5485 shared_flag='$wl-G'
5487 shared_flag='$wl-bM:SRE'
5489 shared_flag_aix='$wl-bM:SRE'
5490 shared_flag_svr4='$wl-G'
5494 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall'
5495 # It seems that -bexpall does not export symbols beginning with
5499 # Warning - without using the other runtime loading flags (-brtl),
5500 # -berok will link without error, but may produce a broken library.
5501 _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
5505 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
5506 …(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $co…
5509 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib'
5510 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
5511 …_LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $depli…
5516 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
5517 # Warning - without using the other run time loading flags,
5518 # -berok will link without error, but may produce a broken library.
5519 _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok'
5520 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok'
5522 # We only use this code for GNU lds that support --whole-archive.
5523 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive'
5529 …_LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$real…
5530 # -brtl affects multiple linker settings, -berok does not and is overridden later
5531 …compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([[, ]]\\)%-berok\\…
5534 …)"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$…
5537-o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compi…
5539 # used by -dlpreopen to get the symbols
5542 …_LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$RM -r $output_objdir/…
5551 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname
5555 …r/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
5556 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5563 _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
5583 …_LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,
5588 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
5590 …$CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.e…
5596 … $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1,DATA/'…
5608 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
5609 …$MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || e…
5622 …TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\…
5626 _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
5637 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5638 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5647 …_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++…
5648 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5655 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5661 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5663 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5664 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5671 …VAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -
5673 …_LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objd…
5682 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
5687 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $…
5689 …_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $link…
5696 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
5707 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_fla…
5710 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $l…
5713 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $…
5719 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
5722 …_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs…
5726 # Older versions of the 11.00 compiler do not understand -b yet
5727 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
5728 _LT_LINKER_OPTION([if $CC understands -b],
5729 _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b],
5730 …[_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $…
5731 …[_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $lin…
5732 …[_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $…
5748 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
5760-shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" &&…
5761 # Try to use the -exported_symbol ld option, if it does not
5762 # work, assume that -exports_file does not work either and
5764 # This should be the same for all languages, so no per-tag cache variable.
5765 AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
5768 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
5783-shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" &&…
5786-shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "
5787-shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "
5790 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
5796 linux*)
5801 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5807 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
5808 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5810 _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5812 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5818 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5820 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
5829 if test -f /usr/libexec/ld.so; then
5833 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5834 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5835 …TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $…
5836 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
5837 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
5839 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5840 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
5848 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5857 …$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$lib…
5858 emximp -o $lib $output_objdir/$libname.def'
5865 prefix_cmds="$prefix_cmds -e 1d";
5867 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
5869 …$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$lib…
5870 emximp -o $lib $output_objdir/$libname.def'
5871 …_LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdi…
5877 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
5878-shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$ve…
5880 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5881-shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstrin…
5884 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
5888 osf4* | osf5*) # as osf3* with the addition of -msym flag
5890 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
5891-shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$s…
5892 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
5894 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5895-shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$ve…
5896 …in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%…
5897-shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $sona…
5899 # Both c and cxx compiler support -rpath directly
5900 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
5907 _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
5910 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libo…
5911 …_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/…
5912 …$CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs…
5914 case `$CC -V 2>&1` in
5917 …_LT_TAGVAR(archive_cmds, $1)='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $li…
5918 …_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/…
5919 …$LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $li…
5923 …_LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $co…
5924 …_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/…
5925 …$CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $…
5929 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5932 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
5935 # but understands '-z linker_flag'. GCC discards it without '$wl',
5939 …_LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextra…
5941 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
5952 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5954 …_LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_fla…
5956 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5965 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5971 _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5972 _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
5976 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5985 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5987 _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
5991 if test -d /usr/nec; then
5992 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6001 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
6007 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6008 …_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib…
6010 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6011 …_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $lib…
6016 # Note: We CANNOT use -z defs as we might desire, because we do not
6017 # link with -lc, and that would cause any symbols used from libc to
6019 # ever link correctly. If we're not using GNU ld we use -z text
6020 # though, which does catch some bad symbols but isn't as heavy-handed
6021 # as -z defs.
6022 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
6023 _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs'
6026 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir'
6029 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport'
6033 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6034 …_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib…
6036 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6037 …_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $lib…
6042 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6043 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6055 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Blargedynsym'
6076 # Assume -lc should be added
6082 # FIXME: we may have to deal with multi-command sequences.
6085 # Test whether the compiler implicitly links with -lc since on some
6086 # systems, -lgcc has to come before -lc. If gcc already passes -lc
6087 # to ld, don't add -lc before -lgcc.
6088 AC_CACHE_CHECK([whether -lc should be explicitly linked in],
6100 compiler_flags=-v
6101 linker_flags=-v
6107 if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
6127 [Whether or not to add -lc for building shared libraries])
6138 [Create an old-style archive from a shared archive])
6140 [Create a temporary old-style archive to link instead of a shared archive])
6148 [Whether we are building with GNU ld or not])
6157 [Whether we need a single "-rpath" flag with a separated argument])
6167 [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
6202 # ------------------------
6233 if test -n "$compiler"; then
6256 if test -n "$RANLIB"; then
6262 aix[[4-9]]*)
6287 # --------------------------
6295 if test -n "$CXX" && ( test no != "$CXX" &&
6296 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
6338 # and will be corrupted by setting them based on a non-working compiler.
6361 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
6366 if test -n "${lt_cv_path_LDCXX+set}"; then
6371 test -z "${LDCXX+set}" || LD=$LDCXX
6372 CC=${CXX-"c++"}
6378 if test -n "$compiler"; then
6379 # We don't want -fno-exception when compiling C++ code, so set the
6382 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
6388 # Set up default GNU C++ configuration
6392 # Check if GNU C++ uses GNU ld as the underlying linker, since the
6393 # archiving commands below assume that GNU ld is being used.
6395 …s, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compil…
6396-shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $…
6398 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
6399 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
6402 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
6406 # ancient GNU ld didn't support --whole-archive et. al.
6407 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
6408 $GREP 'no-whole-archive' > /dev/null; then
6409 …_LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-arch…
6418 # command for GNU C++ for the case where it uses the native
6419 # linker, instead of GNU ld. If possible, this setting should
6422 …LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_obje…
6428 …output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with…
6444 aix[[4-9]]*)
6449 exp_sym_flag='-Bexport'
6455 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6458 # depending on the kind of the shared library created -
6469 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
6472 *-brtl*)
6479 # With aix-soname=svr4, we create the lib.so.V shared archives only,
6483 LDFLAGS="$LDFLAGS -Wl,-brtl"
6488 exp_sym_flag='-bexport'
6489 no_entry_flag='-bnoentry'
6494 # or program results in "error TOC overflow" add -mminimal-toc to
6496 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6503 _LT_TAGVAR(file_list_spec, $1)='$wl-f,'
6517 collect2name=`$CC -print-prog-name=collect2`
6518 if test -f "$collect2name" &&
6530 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6534 shared_flag='-shared'
6536 shared_flag=$shared_flag' $wl-G'
6540 # /with/ Import File - we do not want to mix them.
6541 shared_flag_aix='-shared'
6542 shared_flag_svr4='-shared $wl-G'
6546 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6547 # chokes on -Wl,-G. The following line is correct:
6548 shared_flag='-G'
6551 shared_flag='$wl-G'
6553 shared_flag='$wl-bM:SRE'
6555 shared_flag_aix='$wl-bM:SRE'
6556 shared_flag_svr4='$wl-G'
6560 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall'
6561 # It seems that -bexpall does not export symbols beginning with
6566 # Warning - without using the other runtime loading flags (-brtl),
6567 # -berok will link without error, but may produce a broken library.
6568 # The "-G" linker flag allows undefined symbols.
6569 _LT_TAGVAR(no_undefined_flag, $1)='-bernotok'
6573 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
6575 …(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $co…
6578 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib'
6579 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
6580 …_LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $depli…
6585 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
6586 # Warning - without using the other run time loading flags,
6587 # -berok will link without error, but may produce a broken library.
6588 _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok'
6589 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok'
6591 # We only use this code for GNU lds that support --whole-archive.
6592 … _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive'
6598 …_LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$real…
6599 # -brtl affects multiple linker settings, -berok does not and is overridden later
6600 …compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([[, ]]\\)%-berok\\…
6603 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
6604 …)"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$…
6607-o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compi…
6609 # used by -dlpreopen to get the symbols
6612 …_LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$RM -r $output_objdir/…
6618 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6621 # support --undefined. This deserves some investigation. FIXME
6622 …_LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname…
6652 …_LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,
6657 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
6659 …$CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.e…
6676 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
6677 …$MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || e…
6685 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6686 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols'
6691 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6692-shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_ob…
6693 # If the export-symbols file already is a .def file, use it as
6701-shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $c…
6713 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6722 …$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$lib…
6723 emximp -o $lib $output_objdir/$libname.def'
6730 prefix_cmds="$prefix_cmds -e 1d";
6732 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
6734 …$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$lib…
6735 emximp -o $lib $output_objdir/$libname.def'
6736 …_LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdi…
6764 freebsd-elf*)
6769 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
6775 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname
6782 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
6794 …_LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $outpu…
6803 …output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list…
6807 …rchive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_lib…
6825 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
6851 …_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $p…
6854 …_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $…
6857 …_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_obj…
6868 …output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=…
6875 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects…
6878 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath
6881 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_l…
6893 interix[[3-9]]*)
6896 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
6897 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
6902 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6904 …1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${…
6905-shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output…
6911-shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname …
6914 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
6917 _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
6922-shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl
6924-shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl
6930 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
6935 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6941 # ends with ".so" (or ".sl" for HP-UX), so rename the library
6943-e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"…
6944-e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"…
6953 …_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GRE…
6955 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
6956 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
6959 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
6960 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
6968 case `$CC -V 2>&1` in
6970 …VAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_fl…
6971 …='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$so…
6976 ia64*) tmp_idyn=' -i_dynamic';;
6978 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-sonam…
6979 …_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-r…
6983 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
6984 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
6985 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive'
6989 case `$CC -V` in
6990 *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
6992 rm -rf $tpldir~
6993 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
6994 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
6996 rm -rf $tpldir~
6997 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
6998 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
7001 rm -rf $tpldir~
7002 …$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $…
7003-shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $po…
7005 rm -rf $tpldir~
7006 …$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $…
7007-shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $pos…
7010 …rchive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compil…
7011-shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $…
7015 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl--rpath $wl$libdir'
7016 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
7017--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_conv…
7021 …VAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_fl…
7022 …mds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-sonam…
7025 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
7036 …output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; tem…
7039 # IBM XL 8.0 on PPC, with GNU ld
7040 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
7041 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
7042 …_LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$sona…
7045 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7047 …$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$outp…
7051 case `$CC -V 2>&1 | sed 5q` in
7054 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
7055 …_LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libob…
7056 …s, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_o…
7057 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7058--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_conven…
7062 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
7067 # "CC -xar", where "CC" is the Sun C++ compiler. This is
7070 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
7101 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7102 …_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_…
7104 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7108 # Workaround some broken pre-1.5 toolchains
7109 …output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $…
7117 if test -f /usr/libexec/ld.so; then
7121 …LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_obje…
7122 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
7123 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
7124 …ds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags …
7125 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
7126 …_LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-arch…
7140 # ends with ".so" (or ".sl" for HP-UX), so rename the library
7142-e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so…
7144 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
7150 osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
7151 *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
7162 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
7163-shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $w…
7164 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
7167 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
7168-shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -m…
7169 …hive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i"…
7170 echo "-hidden">> $lib.exp~
7171-shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -m…
7173 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
7187 …output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GR…
7191 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
7194-shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compil…
7197-shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objec…
7201 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
7207 …output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with…
7246 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
7247 …_LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libob…
7248 …_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/…
7249 …$CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs …
7251 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7254 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
7257 # but understands '-z linker_flag'.
7259 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
7267 # "CC -xar", where "CC" is the Sun C++ compiler. This is
7270 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
7274 …TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler…
7277 _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
7280 # GNU C++ compiler with Solaris linker
7282 _LT_TAGVAR(no_undefined_flag, $1)=' $wl-z ${wl}defs'
7283 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
7284 …hive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects…
7285 …ve_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> …
7286 …$CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobj…
7291 …output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with…
7293 # g++ 2.7 appears to require '-G' NOT '-shared' on this
7295 …VAR(archive_cmds, $1)='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compil…
7296 …ve_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> …
7297 …$CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $pos…
7302 …output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | …
7305 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $wl$libdir'
7307 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
7309 …_LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextra…
7318 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
7325 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7326 …_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $lib…
7329 … _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7330 …_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib…
7336 # Note: We CANNOT use -z defs as we might desire, because we do not
7337 # link with -lc, and that would cause any symbols used from libc to
7339 # ever link correctly. If we're not using GNU ld we use -z text
7340 # though, which does catch some bad symbols but isn't as heavy-handed
7341 # as -z defs.
7342 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
7343 _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs'
7346 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir'
7349 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport'
7354 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7355 …_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $lib…
7356 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~
7358 _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
7362 … _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7363 …_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib…
7371 # NonStop-UX NCC 3.20
7412 fi # test -n "$compiler"
7431 # ----------------------
7438 # This function is identical to the (non-XSI) version of func_stripname,
7455 # ---------------------------------
7521 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
7522 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
7523 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
7539 -L* | -R* | -l*)
7540 # Some compilers place space between "-{L,R}" and the path.
7542 if test x-L = "$p" ||
7543 test x-R = "$p"; then
7549 if test -z "$prev"; then
7551 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
7552 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
7553 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
7561 -L | -R)
7565 if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
7571 # The "-l" case would never come before the object being
7575 if test -z "$_LT_TAGVAR(postdeps, $1)"; then
7594 if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
7600 if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
7614 rm -f a.out a.exe
7619 $RM -f confest.$objext
7625 interix[[3-9]]*)
7636 *" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
7639 if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
7640 …h_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | $SED -e 's! -L! !g' -e 's!^ !!'`
7657 # --------------------------
7663 if test -z "$F77" || test no = "$F77"; then
7699 # and will be corrupted by setting them based on a non-working compiler.
7725 CC=${F77-"f77"}
7731 if test -n "$compiler"; then
7743 if test -n "$RANLIB"; then
7748 aix[[4-9]]*)
7780 fi # test -n "$compiler"
7792 # -------------------------
7799 if test -z "$FC" || test no = "$FC"; then
7826 ac_ext=${ac_fc_srcext-f}
7835 # and will be corrupted by setting them based on a non-working compiler.
7861 CC=${FC-"f95"}
7869 if test -n "$compiler"; then
7881 if test -n "$RANLIB"; then
7886 aix[[4-9]]*)
7919 fi # test -n "$compiler"
7931 # --------------------------
7932 # Ensure that the configuration variables for the GNU Java Compiler compiler
7964 CC=${GCJ-"gcj"}
7978 if test -n "$compiler"; then
7998 # --------------------------
7999 # Ensure that the configuration variables for the GNU Go compiler
8031 CC=${GOC-"gccgo"}
8045 if test -n "$compiler"; then
8065 # -------------------------
8098 CC=${RC-"windres"}
8105 if test -n "$compiler"; then
8118 # -----------
8123 test set = "${GCJFLAGS+set}" || GCJFLAGS="-g -O2"
8129 dnl aclocal-1.4 backwards compatibility:
8134 # ----------
8141 # ----------
8148 dnl aclocal-1.4 backwards compatibility:
8153 # --------------
8159 test -z "$GREP" && GREP=grep
8163 dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
8169 # --------------
8174 test -z "$OBJDUMP" && OBJDUMP=objdump
8180 # ----------------
8184 test -z "$DLLTOOL" && DLLTOOL=dlltool
8190 # ------------
8191 # Check for a fully-functional sed program, that truncates
8192 # as few characters as possible. Prefer GNU sed if found.
8195 test -z "$SED" && SED=sed
8196 Xsed="$SED -e 1s/^X//"
8198 _LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
8199 [Sed that helps us avoid accidentally triggering echo(1) options like -n])
8204 # GNU Autoconf as AC_PROG_SED. When it is available in #
8217 test -z "$as_dir" && as_dir=.
8232 test ! -f "$lt_ac_sed" && continue
8236 # Check for GNU sed and select it if it is found.
8237 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
8246 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
8247 cmp -s conftest.out conftest.nl || break
8249 test 10 -lt "$lt_ac_count" && break
8251 if test "$lt_ac_count" -gt "$lt_ac_max"; then
8266 dnl aclocal-1.4 backwards compatibility:
8271 # ------------------------
8300 # -----------------------------
8303 # for certain cross-compile configurations and native mingw.
8310 *-*-mingw* )
8312 *-*-mingw* ) # actually msys
8315 *-*-cygwin* )
8323 *-*-cygwin* )
8325 *-*-mingw* ) # actually msys
8328 *-*-cygwin* )
8351 *-*-mingw* )
8353 *-*-mingw* ) # actually msys
8366 # Helper functions for option handling. -*- Autoconf -*-
8368 # Copyright (C) 2004-2005, 2007-2009, 2011-2015 Free Software
8382 # _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
8383 # ------------------------------------------
8385 [[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
8388 # _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
8389 # ---------------------------------------
8390 # Set option OPTION-NAME for macro MACRO-NAME, and if there is a
8391 # matching handler defined, dispatch to it. Other OPTION-NAMEs are
8401 # _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
8402 # ------------------------------------------------------------
8403 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
8408 # _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
8409 # -------------------------------------------------------
8410 # Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
8421 # _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
8422 # ----------------------------------------
8423 # OPTION-LIST is a space-separated list of Libtool options associated
8424 # with MACRO-NAME. If any OPTION has a matching handler declared with
8438 _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
8443 dnl 'shared' nor 'disable-shared' was passed, we enable building of shared
8445 _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
8446 _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
8447 _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
8448 _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
8450 _LT_UNLESS_OPTIONS([LT_INIT], [aix-soname=aix aix-soname=both aix-soname=svr4],
8457 # _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
8458 # -----------------------------------------
8460 [[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
8463 # LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
8464 # -----------------------------------------------
8471 # ------
8482 dnl aclocal-1.4 backwards compatibility:
8486 # win32-dll
8487 # ---------
8489 LT_OPTION_DEFINE([LT_INIT], [win32-dll],
8493 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
8500 test -z "$AS" && AS=as
8503 test -z "$DLLTOOL" && DLLTOOL=dlltool
8506 test -z "$OBJDUMP" && OBJDUMP=objdump
8508 ])# win32-dll
8512 _LT_SET_OPTION([LT_INIT], [win32-dll])
8515 put the 'win32-dll' option into LT_INIT's first parameter.])
8518 dnl aclocal-1.4 backwards compatibility:
8523 # ----------------------------
8524 # implement the --enable-shared flag, and supports the 'shared' and
8525 # 'disable-shared' LT_INIT options.
8530 [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
8532 [p=${PACKAGE-default}
8556 LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
8560 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
8564 [_LT_SET_OPTION([LT_INIT], [disable-shared])
8570 dnl aclocal-1.4 backwards compatibility:
8577 # ----------------------------
8578 # implement the --enable-static flag, and support the 'static' and
8579 # 'disable-static' LT_INIT options.
8584 [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
8586 [p=${PACKAGE-default}
8610 LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
8614 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
8618 [_LT_SET_OPTION([LT_INIT], [disable-static])
8624 dnl aclocal-1.4 backwards compatibility:
8631 # ----------------------------------
8632 # implement the --enable-fast-install flag, and support the 'fast-install'
8633 # and 'disable-fast-install' LT_INIT options.
8637 AC_ARG_ENABLE([fast-install],
8638 [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
8640 [p=${PACKAGE-default}
8663 LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
8664 LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
8668 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
8671 the 'fast-install' option into LT_INIT's first parameter.])
8675 [_LT_SET_OPTION([LT_INIT], [disable-fast-install])
8678 the 'disable-fast-install' option into LT_INIT's first parameter.])
8681 dnl aclocal-1.4 backwards compatibility:
8687 # ----------------------------------
8688 # implement the --with-aix-soname flag, and support the `aix-soname=aix'
8689 # and `aix-soname=both' and `aix-soname=svr4' LT_INIT options. DEFAULT
8695 power*-*-aix[[5-9]]*,yes)
8697 AC_ARG_WITH([aix-soname],
8698 [AS_HELP_STRING([--with-aix-soname=aix|svr4|both],
8704 AC_MSG_ERROR([Unknown argument to --with-aix-soname])
8716 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8718 if test 64 = "${OBJECT_MODE-32}"; then
8734 LT_OPTION_DEFINE([LT_INIT], [aix-soname=aix], [_LT_WITH_AIX_SONAME([aix])])
8735 LT_OPTION_DEFINE([LT_INIT], [aix-soname=both], [_LT_WITH_AIX_SONAME([both])])
8736 LT_OPTION_DEFINE([LT_INIT], [aix-soname=svr4], [_LT_WITH_AIX_SONAME([svr4])])
8740 # --------------------
8741 # implement the --with-pic flag, and support the 'pic-only' and 'no-pic'
8746 [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@],
8747 [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
8748 [lt_p=${PACKAGE-default}
8769 LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
8770 LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
8774 [_LT_SET_OPTION([LT_INIT], [pic-only])
8777 put the 'pic-only' option into LT_INIT's first parameter.])
8780 dnl aclocal-1.4 backwards compatibility:
8798 # ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
8800 # Copyright (C) 2004-2005, 2007-2008, 2011-2015 Free Software
8815 # -----------------------------
8831 # ------------
8834 # Autoconf-2.59, which quotes differently.
8843 # lt_append(MACRO-NAME, STRING, [SEPARATOR])
8844 # ------------------------------------------
8845 # Redefine MACRO-NAME to hold its former content plus 'SEPARATOR''STRING'.
8847 # to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
8848 # No SEPARATOR is output if MACRO-NAME was previously undefined (different
8859 # lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
8860 # ----------------------------------------------------------
8862 # PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
8874 # lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
8875 # -----------------------------------------------------------------------
8876 # Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
8877 # by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
8880 [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
8887 # -----------------------------
8893 # --------------------------------------------
8899 # ----------------------------------
8906 # lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
8907 # -----------------------------------------------------------------
8915 # --------------------------------------------------------------
8923 # ltversion.m4 -- version numbers -*- Autoconf -*-
8925 # Copyright (C) 2004, 2011-2015 Free Software Foundation, Inc.
8935 # This file is part of GNU Libtool
8947 # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
8949 # Copyright (C) 2004-2005, 2007, 2009, 2011-2015 Free Software
8975 # We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
9047 # Copyright (C) 2002-2020 Free Software Foundation, Inc.
9054 # ----------------------------
9067 # -----------------------------
9074 # -------------------------------
9083 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
9085 # Copyright (C) 2001-2020 Free Software Foundation, Inc.
9111 # are both prefixed by $srcdir. In an in-source build this is usually
9135 # AM_CONDITIONAL -*- Autoconf -*-
9137 # Copyright (C) 1997-2020 Free Software Foundation, Inc.
9143 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
9144 # -------------------------------------
9163 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
9168 # Copyright (C) 1999-2020 Free Software Foundation, Inc.
9183 # ----------------------
9208 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
9211 # instance it was reported that on HP-UX the gcc test will end up
9212 # making a dummy file named 'D' -- because '-MD' means "put the output
9214 rm -rf conftest.dir
9222 # both Tru64's cc and ICC support -MD to output dependencies as a
9230 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
9235 *\ -arch\ *\ -arch\ *) am__universal=true ;;
9239 *\ -arch\ *\ -arch\ *) am__universal=true ;;
9259 # We check with '-c' and '-o' for the sake of the "dashmstdout"
9261 # handle '-M -o', and we need to detect this. Also, some Intel
9263 am__obj=sub/conftest.${OBJEXT-o}
9264 am__minus_obj="-o $am__obj"
9271 # After this tag, mechanisms are not by side-effect, so they'll
9280 # This compiler won't grok '-c -o', but also, the minuso test has
9283 am__obj=conftest.${OBJEXT-o}
9291 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
9296 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
9298 # or remarks (even with -Werror). So we grep stderr for any message
9300 # When given -MP, icc 7.0 and 7.1 complain thusly:
9301 # icc: Command line warning: ignoring option '-M'; no argument required
9303 # icc: Command line remark: option '-MP' not supported
9313 rm -rf conftest.dir
9326 # -------------
9336 # ------------
9338 [AC_ARG_ENABLE([dependency-tracking], [dnl
9340 [--enable-dependency-tracking],
9343 [--disable-dependency-tracking],
9344 [speeds up one-time build])])
9357 # Generate code to set up dependency tracking. -*- Autoconf -*-
9359 # Copyright (C) 1999-2020 Free Software Foundation, Inc.
9366 # ------------------------------
9369 # Older Autoconf quotes --file arguments for eval, but not when files
9370 # are listed without --file. Let's play safe and only enable the eval
9383 am_mf=`AS_ECHO(["$am_mf"]) | sed -e 's/:.*$//'`
9385 # dependency-tracking related rules and includes.
9388 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
9393 && sed -e '/# am--include-marker/d' "$am_filepart" \
9394 | $MAKE -f - am--depfiles]) || am_rc=$?
9396 if test $am_rc -ne 0; then
9398 for automatic dependency tracking. If GNU make was not used, consider
9399 re-running the configure script with MAKE="gmake" (or whatever is
9400 necessary). You can also try re-running configure with the
9401 '--disable-dependency-tracking' option to at least be able to build
9408 rm -f conftest-deps.mk
9414 # -----------------------------
9415 # This macro should only be invoked once -- use via AC_REQUIRE.
9423 [AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"])])
9425 # Do all the work for Automake. -*- Autoconf -*-
9427 # Copyright (C) 1996-2020 Free Software Foundation, Inc.
9442 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
9444 # -----------------------------------------------
9446 # call (pre autoconf-2.50), which is being phased out. PACKAGE
9457 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
9461 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
9462 # is not polluted with repeated "-I."
9463 AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
9465 if test -f $srcdir/config.status; then
9471 if test -z "$CYGPATH_W"; then
9472 if (cygpath --version) >/dev/null 2>/dev/null; then
9473 CYGPATH_W='cygpath -w'
9481 dnl Distinguish between old-style and new-style calls.
9484 [$0: two- and three-arguments forms are deprecated.])
9485 m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
9489 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
9497 _AM_IF_OPTION([no-define],,
9504 AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
9506 AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
9514 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
9515 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
9522 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
9523 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
9525 _AM_IF_OPTION([no-dependencies],,
9549 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
9551 # POSIX will say in a future version that running "rm -f" with no argument
9559 if rm -f && rm -fr && rm -rf; then : OK; else
9564 on the command line, even when the '-f' option is present. This is contrary
9568 Please tell bug-automake@gnu.org about your system, including the value
9581 You can download and install GNU coreutils to get an 'rm' implementation
9582 that behaves properly: <https://www.gnu.org/software/coreutils/>.
9586 to "yes", and re-run configure.
9593 dnl backward compatibility and to allow trailing 'dnl'-style comments
9603 # When config.status generates a header, we must update the stamp-h file.
9622 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
9624 # Copyright (C) 2001-2020 Free Software Foundation, Inc.
9631 # ------------------
9638 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
9640 install_sh="\${SHELL} $am_aux_dir/install-sh"
9645 # Copyright (C) 2003-2020 Free Software Foundation, Inc.
9651 # Check whether the underlying file-system supports filenames
9652 # with a leading dot. For instance MS-DOS doesn't.
9654 [rm -rf .tst 2>/dev/null
9656 if test -d .tst; then
9664 # Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
9667 # Copyright (C) 1996-2020 Free Software Foundation, Inc.
9673 # AM_MAINTAINER_MODE([DEFAULT-MODE])
9674 # ----------------------------------
9675 # Control maintainer-specific portions of Makefiles.
9678 # can override the default with the --enable/--disable switch.
9685 AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
9686 dnl maintainer-mode's default is 'disable' unless 'enable' is passed
9687 AC_ARG_ENABLE([maintainer-mode],
9688 [AS_HELP_STRING([--]am_maintainer_other[-maintainer-mode],
9700 # Check to see how 'make' treats includes. -*- Autoconf -*-
9702 # Copyright (C) 2001-2020 Free Software Foundation, Inc.
9709 # -----------------
9713 [AC_MSG_CHECKING([whether ${MAKE-make} supports the include directive])
9723 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
9724 echo 'include confinc.mk # ignored' > confmf.GNU
9726 for s in GNU BSD; do
9727 AM_RUN_LOG([${MAKE-make} -f confmf.$s && cat confinc.out])
9738 rm -f confinc.* confmf.*
9743 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
9745 # Copyright (C) 1997-2020 Free Software Foundation, Inc.
9752 # ------------------------------
9755 $1=${$1-"${am_missing_run}$2"}
9759 # ------------------
9774 if eval "$MISSING --is-lightweight"; then
9782 # -*- Autoconf -*-
9786 # Copyright (C) 1996-2020 Free Software Foundation, Inc.
9808 [AC_FATAL([automatic de-ANSI-fication support has been removed])])
9811 # Helper functions for option handling. -*- Autoconf -*-
9813 # Copyright (C) 2001-2020 Free Software Foundation, Inc.
9820 # -----------------------
9822 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
9825 # --------------------
9831 # ------------------------
9832 # OPTIONS is a space-separated list of Automake options.
9836 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
9837 # -------------------------------------------
9838 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
9842 # Copyright (C) 1999-2020 Free Software Foundation, Inc.
9849 # ---------------
9857 [whether $CC understands -c and -o together],
9862 # compilers refuse to overwrite an existing .o file with -o,
9866 if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \
9867 && test -f conftest2.$ac_objext; then
9874 rm -f core conftest*
9880 # A longer-term fix would be to have automake use am__CC in this case,
9889 # Copyright (C) 2001-2020 Free Software Foundation, Inc.
9896 # -------------------
9906 # Check to make sure that the build environment is sane. -*- Autoconf -*-
9908 # Copyright (C) 1996-2020 Free Software Foundation, Inc.
9915 # ---------------
9932 # arguments. Must try -L first in case configure is actually a
9940 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
9942 # -L didn't work.
9943 set X `ls -t "$srcdir/configure" conftest.file`
9952 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
9955 if test "$[2]" = conftest.file || test $am_try -eq 2; then
9981 if test -n "$am_sleep_pid"; then
9986 rm -f conftest.file
9989 # Copyright (C) 2009-2020 Free Software Foundation, Inc.
9996 # --------------------------
10000 [AC_ARG_ENABLE([silent-rules], [dnl
10002 [--enable-silent-rules],
10005 [--disable-silent-rules],
10017 am_make=${MAKE-make}
10026 .PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
10049 # Copyright (C) 2001-2020 Free Software Foundation, Inc.
10056 # ---------------------
10057 # One issue with vendor 'install' (even GNU) is that you can't
10059 # annoying in cross-compiling environments, where the build's strip
10061 # Fortunately install-sh will honor a STRIPPROG variable, so we
10062 # always use install-sh in "make install-strip", and initialize
10067 # run "make install-strip". However 'strip' might not be the right
10068 # tool to use in cross-compilation environments, therefore Automake
10074 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
10077 # Copyright (C) 2006-2020 Free Software Foundation, Inc.
10084 # ---------------------------
10090 # --------------------------
10094 # Check how to create a tarball. -*- Autoconf -*-
10096 # Copyright (C) 2004-2020 Free Software Foundation, Inc.
10103 # --------------------
10108 # writing to stdout a FORMAT-tarball containing the directory
10118 # in the wild :-( We should find a proper way to deprecate it ...
10119 AC_SUBST([AMTAR], ['$${TAR-tar}'])
10125 [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
10129 [# The POSIX 1988 'ustar' format is defined with fixed-size fields.
10133 am_max_uid=2097151 # 2^21 - 1
10136 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
10139 am_uid=`id -u || echo unknown`
10140 am_gid=`id -g || echo unknown`
10142 if test $am_uid -le $am_max_uid; then
10149 if test $am_gid -le $am_max_gid; then
10165 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
10171 AM_RUN_LOG([$_am_tar --version]) && break
10173 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
10174 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
10175 am__untar="$_am_tar -xf -"
10178 # Must skip GNU tar: if it does not support --format= it doesn't create
10180 (tar --version) >/dev/null 2>&1 && continue
10181 am__tar='tar chf - "$$tardir"'
10182 am__tar_='tar chf - "$tardir"'
10183 am__untar='tar xf -'
10186 am__tar='pax -L -x $1 -w "$$tardir"'
10187 am__tar_='pax -L -x $1 -w "$tardir"'
10188 am__untar='pax -r'
10191 am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
10192 am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
10193 am__untar='cpio -i -H $1 -d'
10204 test -n "${am_cv_prog_tar_$1}" && break
10207 rm -rf conftest.dir
10211 rm -rf conftest.dir
10212 if test -s conftest.tar; then
10218 rm -rf conftest.dir