• Home
  • Raw
  • Download

Lines Matching +full:gcc +full:- +full:riscv64 +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 # host-cpu-c-abi.m4 serial 13
24 dnl Copyright (C) 2002-2020 Free Software Foundation, Inc.
46 dnl contains 32-bit instructions, whereas 'sparc64' code contains 64-bit
47 dnl instructions. A process on a SPARC CPU can be in 32-bit mode or in 64-bit
58 dnl - 'arm': test __ARMEL__.
59 dnl - 'mips', 'mipsn32', 'mips64': test _MIPSEB vs. _MIPSEL.
60 dnl - 'powerpc64': test _BIG_ENDIAN vs. _LITTLE_ENDIAN.
63 dnl - Instructions that do not exist on all of these CPUs (cmpxchg,
67 dnl - Speed of execution of the common instruction set is reasonable across
69 dnl that are optimized for particular CPU types (like GNU gmp has), you
88 # - 64-bit instruction set, 64-bit pointers, 64-bit 'long': x86_64.
89 # - 64-bit instruction set, 64-bit pointers, 32-bit 'long': x86_64
91 # - 64-bit instruction set, 32-bit pointers, 32-bit 'long': x86_64-x32.
92 # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': i386.
110 [gl_cv_host_cpu_c_abi=x86_64-x32],
116 alphaev[4-8] | alphaev56 | alphapca5[67] | alphaev6[78] )
125 # - aarch64 instruction set, 64-bit pointers, 64-bit 'long': arm64.
126 # - aarch64 instruction set, 32-bit pointers, 32-bit 'long': arm64-ilp32.
127 # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': arm or armhf.
144 [gl_cv_host_cpu_c_abi=arm64-ilp32],
146 [# Don't distinguish little-endian and big-endian arm, since they
150 # But distinguish arm which passes floating-point arguments and
151 # return values in integer registers (r0, r1, ...) - this is
152 # gcc -mfloat-abi=soft or gcc -mfloat-abi=softfp - from arm which
154 # (d0, d1, ...) - this is gcc -mfloat-abi=hard. GCC 4.6 or newer
156 # __ARM_PCS_VFP (for the second case), but older GCC does not.
159 AC_TRY_COMMAND(${CC-cc} $CFLAGS $CPPFLAGS $gl_c_asm_opt conftest.c) >/dev/null 2>&1
165 rm -f conftest*
170 # On hppa, the C compiler may be generating 32-bit code or 64-bit
185 # On ia64 on HP-UX, the C compiler may be generating 64-bit code or
186 # 32-bit code. In the latter case, it defines _ILP32.
195 [gl_cv_host_cpu_c_abi=ia64-ilp32],
200 # We should also check for (_MIPS_SZPTR == 64), but gcc keeps this
228 # Different ABIs are in use on AIX vs. Mac OS X vs. Linux,*BSD.
232 # 32-bit code. And on powerpc-ibm-aix systems, the C compiler may
233 # be generating 64-bit code.
242 [# On powerpc64, there are two ABIs on Linux: The AIX compatible
252 [gl_cv_host_cpu_c_abi=powerpc64-elfv2],
262 riscv32 | riscv64 )
272 [cpu=riscv64],
288 # 'float' and 'double' are passed in floating-point registers.
290 # 'float' are passed in floating-point registers.
292 # No values are passed in floating-point registers.
313 gl_cv_host_cpu_c_abi="${cpu}-${main_abi}${float_abi}"
317 # On s390x, the C compiler may be generating 64-bit (= s390x) code
318 # or 31-bit (= s390) code.
332 # UltraSPARCs running Linux have `uname -m` = "sparc64", but the
333 # C compiler still generates 32-bit code.
353 HOST_CPU=`echo "$gl_cv_host_cpu_c_abi" | sed -e 's/-.*//'`
362 sed -e 's/-/_/g' >> confdefs.h <<EOF
482 dnl (application binary interface) is a 32-bit one, to 'no' if it is a 64-bit
488 AC_CACHE_CHECK([32-bit host C ABI], [gl_cv_host_cpu_c_abi_32bit],
489 [if test -n "$gl_cv_host_cpu_c_abi"; then
491 …i386 | x86_64-x32 | arm | armhf | arm64-ilp32 | hppa | ia64-ilp32 | mips | mipsn32 | powerpc | ris…
493 …x86_64 | alpha | arm64 | hppa64 | ia64 | mips64 | powerpc64 | powerpc64-elfv2 | riscv*-lp64* | s39…
501 # CPUs that only support a 32-bit ABI.
521 # CPUs that only support a 64-bit ABI.
523 alpha | alphaev[4-8] | alphaev56 | alphapca5[67] | alphaev6[78] \
538 # - 64-bit instruction set, 64-bit pointers, 64-bit 'long': x86_64.
539 # - 64-bit instruction set, 64-bit pointers, 32-bit 'long': x86_64
541 # - 64-bit instruction set, 32-bit pointers, 32-bit 'long': x86_64-x32.
542 # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': i386.
561 # - aarch64 instruction set, 64-bit pointers, 64-bit 'long': arm64.
562 # - aarch64 instruction set, 32-bit pointers, 32-bit 'long': arm64-ilp32.
563 # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': arm or armhf.
577 # On hppa, the C compiler may be generating 32-bit code or 64-bit
592 # On ia64 on HP-UX, the C compiler may be generating 64-bit code or
593 # 32-bit code. In the latter case, it defines _ILP32.
607 # We should also check for (_MIPS_SZPTR == 64), but gcc keeps this
622 # Different ABIs are in use on AIX vs. Mac OS X vs. Linux,*BSD.
626 # 32-bit code. And on powerpc-ibm-aix systems, the C compiler may
627 # be generating 64-bit code.
644 riscv32 | riscv64 )
660 # On s390x, the C compiler may be generating 64-bit (= s390x) code
661 # or 31-bit (= s390) code.
675 # UltraSPARCs running Linux have `uname -m` = "sparc64", but the
676 # C compiler still generates 32-bit code.
700 dnl Copyright (C) 2000-2002, 2007-2014, 2016-2020 Free Software Foundation,
722 dnl those with the standalone portable GNU libiconv installed).
723 AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
731 dnl via --without-libiconv-prefix, he wants to use it. The first
737 am_cv_func_iconv="no, consider installing GNU libiconv"
768 dnl This tests against bugs in AIX 5.1, AIX 6.1..7.1, HP-UX 11.11,
790 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
791 if (cd_utf8_to_88591 != (iconv_t)(-1))
810 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
811 if (cd_ascii_to_88591 != (iconv_t)(-1))
829 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
830 if (cd_88591_to_utf8 != (iconv_t)(-1))
841 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
847 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
850 if (cd_88591_to_utf8 != (iconv_t)(-1))
867 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
871 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
873 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
875 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
876 /* Try HP-UX names. */
878 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
879 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
881 if (cd1 != (iconv_t)(-1))
883 if (cd2 != (iconv_t)(-1))
885 if (cd3 != (iconv_t)(-1))
887 if (cd4 != (iconv_t)(-1))
930 dnl - It requires defining an auxiliary macro whose name ends in AC_DEFUN.
932 dnl - It requires a line break inside the AC_DEFUN_ONCE and AC_DEFUN expansions.
969 am_cv_proto_iconv=`echo "[$]am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
973 dnl When compiling GNU libiconv on a system that does not have iconv yet,
982 if test -n "$am_cv_proto_iconv_arg1"; then
988 # lib-ld.m4 serial 9
989 dnl Copyright (C) 1996-2003, 2009-2020 Free Software Foundation, Inc.
998 dnl From libtool-2.4. Sets the variable with_gnu_ld to yes or no.
1000 [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], [acl_cv_prog_gnu_ld],
1001 [# I'd rather use --version here, but apparently some GNU lds only accept -v.
1002 case `$LD -v 2>&1 </dev/null` in
1003 *GNU* | *'with BFD'*)
1013 dnl From libtool-2.4. Sets the variable LD.
1018 AC_ARG_WITH([gnu-ld],
1019 [AS_HELP_STRING([--with-gnu-ld],
1020 [assume the C compiler uses GNU ld [default=no]])],
1031 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
1032 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
1037 if test -n "$LD"; then
1039 elif test "$GCC" = yes; then
1042 AC_MSG_CHECKING([for GNU ld])
1044 AC_MSG_CHECKING([for non-GNU ld])
1046 if test -n "$LD"; then
1054 if test "$GCC" = yes; then
1055 # Check if gcc -print-prog-name=ld gives a path.
1057 *-*-mingw*)
1058 # gcc leaves a trailing carriage return which upsets mingw
1059 acl_output=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1061 acl_output=`($CC -print-prog-name=ld) 2>&5` ;;
1077 # If it fails, then pretend we aren't using GCC.
1085 if test -n "$ac_prog"; then
1090 test -z "$ac_dir" && ac_dir=.
1091 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1093 # Check to see if the program is GNU ld. I'd rather use --version,
1094 # but apparently some variants of GNU ld only accept -v.
1095 # Break only if it was the GNU/non-GNU ld that we prefer.
1096 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
1097 *GNU* | *'with BFD'*)
1109 *-*-aix*)
1118 [# The compiler produces 64-bit code. Add option '-b64' so that the
1119 # linker groks 64-bit object files.
1121 *" -b64 "*) ;;
1122 *) acl_cv_path_LD="$acl_cv_path_LD -b64" ;;
1126 sparc64-*-netbsd*)
1136 [# The compiler produces 32-bit code. Add option '-m elf32_sparc'
1137 # so that the linker groks 32-bit object files.
1139 *" -m elf32_sparc "*) ;;
1140 *) acl_cv_path_LD="$acl_cv_path_LD -m elf32_sparc" ;;
1148 if test -n "$LD"; then
1157 # lib-link.m4 serial 31
1158 dnl Copyright (C) 2001-2020 Free Software Foundation, Inc.
1177 pushdef([Name],[m4_translit([$1],[./+-], [____])])
1178 pushdef([NAME],[m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./+-],
1202 dnl AC_LIB_HAVE_LINKFLAGS(name, dependencies, includes, testcode, [missing-message])
1205 dnl the ability to compile and link the specified testcode. The missing-message
1217 pushdef([Name],[m4_translit([$1],[./+-], [____])])
1218 pushdef([NAME],[m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./+-],
1227 dnl via --without-lib[]Name-prefix, he wants to use it.
1233 dnl If $LIB[]NAME contains some -l options, add it to the end of LIBS,
1234 dnl because these -l options might require -L options that are present in
1235 dnl LIBS. -l options benefit only from the -L options listed before it.
1241 *" -l"*) LIBS="$LIBS $LIB[]NAME" ;;
1285 AC_REQUIRE([AC_PROG_CC]) dnl we use $CC, $GCC, $LDFLAGS
1290 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
1291 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
1293 rm -f ./conftest.sh
1307 [ --disable-rpath do not hardcode runtime library paths],
1313 dnl will then not have a --with-libname-prefix option but a
1314 dnl --with-package-prefix option. Several libraries can come from the same
1319 pushdef([NAME],[m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./+-],
1324 pushdef([PACKUP],[m4_translit(PACK,[abcdefghijklmnopqrstuvwxyz./+-],
1340 pushdef([NAME],[m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./+-],
1343 pushdef([PACKUP],[m4_translit(PACK,[abcdefghijklmnopqrstuvwxyz./+-],
1354 AC_ARG_WITH(PACK[-prefix],
1355 [[ --with-]]PACK[[-prefix[=DIR] search for ]PACKLIBS[ in DIR/include and DIR/lib
1356 --without-]]PACK[[-prefix don't search for ]PACKLIBS[ in includedir and libdir]],
1383 dnl $LDFLAGS. Using breadth-first-seach.
1395 while test -n "$names_next_round"; do
1406 if test -z "$already_handled"; then
1410 …uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|…
1412 if test -n "$value"; then
1415 test -z "$value" || LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$value"
1417 test -z "$value" || LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$value"
1431 if test -n "$acl_shlibext"; then
1440 if test -n "$dir"; then
1443 if test -n "$acl_shlibext"; then
1444 … if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
1451 | sed -e "s,^$libname$shrext\\\\.,," \
1452 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
1454 …if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libn…
1461 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
1472 …if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expecte…
1478 if test -f "$dir/$libname.la"; then
1490 -L*)
1491 dir=`echo "X$x" | sed -e 's/^X-L//'`
1493 if test -n "$acl_shlibext"; then
1494 … if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
1501 | sed -e "s,^$libname$shrext\\\\.,," \
1502 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
1504 …if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libn…
1511 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
1522 …if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expecte…
1528 if test -f "$dir/$libname.la"; then
1541 LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$found_dir -l$name"
1564 if test -z "$haveit"; then
1573 … if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
1586 if test -z "$haveit"; then
1590 dnl Rely on "-L$found_dir".
1596 if test "X$x" = "X-L$found_dir"; then
1601 if test -z "$haveit"; then
1602 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir"
1606 dnl "-L$found_dir -l$name" or "-L$found_dir $found_so"
1615 dnl "-L$found_dir -l$name" or "-L$found_dir $found_so"
1617 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name"
1629 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir -l$name"
1636 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
1643 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
1650 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'`
1661 dnl 2. if it's /usr/local/include and we are using GCC on Linux,
1668 if test -n "$GCC"; then
1670 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
1674 if test -z "$haveit"; then
1677 if test "X$x" = "X-I$additional_includedir"; then
1682 if test -z "$haveit"; then
1683 if test -d "$additional_includedir"; then
1685 INC[]NAME="${INC[]NAME}${INC[]NAME:+ }-I$additional_includedir"
1692 if test -n "$found_la"; then
1705 -L*)
1706 dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
1710 dnl 2. if it's /usr/local/lib and we are using GCC on Linux,
1721 if test -n "$GCC"; then
1723 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
1727 if test -z "$haveit"; then
1731 if test "X$x" = "X-L$dependency_libdir"; then
1736 if test -z "$haveit"; then
1737 if test -d "$dependency_libdir"; then
1739 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$dependency_libdir"
1745 if test "X$x" = "X-L$dependency_libdir"; then
1750 if test -z "$haveit"; then
1751 if test -d "$dependency_libdir"; then
1753 LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$dependency_libdir"
1759 -R*)
1760 dir=`echo "X$dep" | sed -e 's/^X-R//'`
1771 if test -z "$haveit"; then
1783 if test -z "$haveit"; then
1788 -l*)
1790 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
1794 dnl directory; it is already contained in a preceding -L
1796 …names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,…
1811 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name"
1812 LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-l$name"
1819 if test -n "$acl_hardcode_libdir_separator"; then
1820 dnl Weird platform: only the last -rpath option counts, the user must
1834 dnl The -rpath options are cumulative.
1846 dnl executables is -R. The -R options are cumulative.
1848 LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-R$found_dir"
1872 if test -z "$haveit"; then
1878 dnl For those cases where a variable contains several -L and -l options
1881 dnl AC_LIB_LINKFLAGS_FROM_LIBS([LDADDVAR], [LIBSVALUE], [USE-LIBTOOL])
1883 dnl If USE-LIBTOOL evaluates to non-empty, linking with libtool is assumed,
1891 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
1897 if test -n "$next"; then
1908 -L) next=yes ;;
1909 -L*) dir=`echo "X$opt" | sed -e 's,^X-L,,'`
1922 if test -n ""$3""; then
1923 dnl libtool is used for linking. Use -R options.
1925 $1="${$1}${$1:+ }-R$dir"
1929 if test -n "$acl_hardcode_libdir_separator"; then
1930 dnl Weird platform: only the last -rpath option counts, the user
1942 dnl The -rpath options are cumulative.
1958 # lib-prefix.m4 serial 17
1959 dnl Copyright (C) 2001-2005, 2008-2020 Free Software Foundation, Inc.
1969 dnl with the same --prefix option.
1985 AC_ARG_WITH([lib-prefix],
1986 [[ --with-lib-prefix[=DIR] search for libraries in DIR/include and DIR/lib
1987 --without-lib-prefix don't search for libraries in includedir and libdir]],
2008 dnl 3. if it's /usr/local/include and we are using GCC on Linux,
2014 if test "X$x" = "X-I$additional_includedir"; then
2019 if test -z "$haveit"; then
2021 if test -n "$GCC"; then
2023 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
2027 if test -z "$haveit"; then
2028 if test -d "$additional_includedir"; then
2030 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }-I$additional_includedir"
2039 dnl 3. if it's /usr/local/lib and we are using GCC on Linux,
2045 if test "X$x" = "X-L$additional_libdir"; then
2050 if test -z "$haveit"; then
2052 if test -n "$GCC"; then
2054 linux*) haveit=yes;;
2058 if test -z "$haveit"; then
2059 if test -d "$additional_libdir"; then
2061 LDFLAGS="${LDFLAGS}${LDFLAGS:+ }-L$additional_libdir"
2107 dnl - a function acl_is_expected_elfclass, that tests whether standard input
2108 dn; has a 32-bit or 64-bit ELF header, depending on the host CPU ABI,
2109 dnl - 3 variables acl_libdirstem, acl_libdirstem2, acl_libdirstem3, containing
2116 dnl 32-bit and 64-bit instruction sets or ABIs, 64-bit libraries go under
2117 dnl $prefix/lib64 and 32-bit libraries go under $prefix/lib. However, on
2118 dnl Arch Linux based distributions, it's the opposite: 32-bit libraries go
2119 dnl under $prefix/lib32 and 64-bit libraries go under $prefix/lib.
2123 dnl for 64-bit ABIs. Similarly for 32-bit ABIs. Otherwise we use the default,
2126 dnl 32-bit and 64-bit instruction sets or ABIs, 64-bit libraries go under
2128 dnl $prefix/lib/amd64) and 32-bit libraries go under $prefix/lib.
2144 if od -A x < /dev/null >/dev/null 2>/dev/null; then
2148 od -A n -t d1 -j 4 -N 1
2154 dd bs=1 count=1 skip=4 2>/dev/null | hexdump -e '1/1 "%3d "'
2161 # 32-bit ABI.
2164 test "`func_elfclass | sed -e 's/[ ]//g'`" = 1
2168 # 64-bit ABI.
2171 test "`func_elfclass | sed -e 's/[ ]//g'`" = 2
2193 [dnl Try 'lib' first, because that's the default for libdir in GNU, see
2194 dnl <https://www.gnu.org/prep/standards/html_node/Directory-Variables.html>.
2200 …dnl See Solaris 10 Software Developer Collection > Solaris 64-bit Developer's Guide > The Developm…
2201 dnl <https://docs.oracle.com/cd/E19253-01/816-5138/dev-env/index.html>.
2214 dnl If $CC generates code for a 32-bit ABI, the libraries are
2216 dnl Similarly, if $CC generates code for a 64-bit ABI, the libraries
2218 dnl Find the compiler's search path. However, non-system compilers
2220 dnl '/usr/bin/gcc -print-search-dirs' because that would not take into
2221 dnl account the -m32/-m31 or -m64 options from the $CC or $CFLAGS.
2222 searchpath=`(LC_ALL=C $CC $CPPFLAGS $CFLAGS -print-search-dirs) 2>/dev/null \
2223 | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
2225 # 32-bit or unknown ABI.
2226 if test -d /usr/lib32; then
2231 # 64-bit or unknown ABI.
2232 if test -d /usr/lib64; then
2236 if test -n "$searchpath"; then
2239 if test -d "$searchdir"; then
2256 # 32-bit ABI.
2260 # 64-bit ABI.
2266 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
2267 test -n "$acl_libdirstem3" || acl_libdirstem3="$acl_libdirstem"
2273 acl_libdirstem=`echo "$acl_cv_libdirstems" | sed -e 's/,.*//'`
2274 acl_libdirstem2=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,//' -e 's/,.*//'`
2275 acl_libdirstem3=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,[^,]*,//' -e 's/,.*//'`
2279 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
2281 # Copyright (C) 1996-2001, 2003-2015 Free Software Foundation, Inc.
2293 # GNU Libtool is free software; you can redistribute it and/or modify
2294 # it under the terms of the GNU General Public License as published by
2298 # As a special exception to the GNU General Public License, if you
2300 # using GNU Libtool, you may include this file under the same
2303 # GNU Libtool is distributed in the hope that it will be useful, but
2306 # GNU General Public License for more details.
2308 # You should have received a copy of the GNU General Public License
2309 # along with this program. If not, see <http://www.gnu.org/licenses/>.
2316 # ------------------
2319 [m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
2327 # ------------------
2338 # ------------------
2348 m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
2358 _LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
2379 dnl aclocal-1.4 backwards compatibility:
2385 # -----------------------
2387 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
2394 \-*) ;;
2398 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
2404 # -------------------
2418 # ----------------------
2422 [: ${CP="cp -f"}
2423 : ${MV="mv -f"}
2424 : ${RM="rm -f"}
2429 # ---------
2451 test -z "$LN_S" && LN_S="ln -s"
2472 if test -n "\${ZSH_VERSION+set}"; then
2476 if test -n "${ZSH_VERSION+set}"; then
2486 # AIX sometimes has problems with the GCC collect2 program. For some
2510 test -z "$CC" && CC=cc
2511 test -z "$LTCC" && LTCC=$CC
2512 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
2513 test -z "$LD" && LD=ld
2514 test -z "$ac_objext" && ac_objext=o
2519 test -z "$MAGIC_CMD" && MAGIC_CMD=file
2537 # --------------------------
2541 # double-quoted strings.
2559 # ---------------
2578 # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
2579 # ----------------------------------------
2580 # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
2592 # ------------------------------
2605 # -----------------------------------------------------
2613 # -----------------------------
2615 # full-stop to the whole comment if one is not present already.
2626 # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
2627 # -------------------------------------------------------------------
2645 # --------------------------------------------------------
2650 # ------------------------------------------------
2656 # ---------------------------------------------------------
2668 # --------------------------------------------------
2674 # ---------------------------------------------------
2680 # ---------------------------------------------------
2691 # ------------------------------------------------
2705 # ------------------------------------
2714 # ------------------------------
2727 # ----------------
2736 # -----------------------------------
2757 # -----------------------
2758 # Produce commented declarations of non-tagged libtool config variables
2769 # -------------------------
2776 # ------------------------------
2781 # -------------------
2807 # The HP-UX ksh and POSIX shell print the target directory to stdout
2840 # Double-quote double-evaled strings.
2845 …\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_s…
2857 # ------------------------------------
2863 # the child script. The macro ends with non-zero status if the
2875 SHELL=\${CONFIG_SHELL-$SHELL}
2887 # ---------
2912 -h, --help print this help, then exit
2913 -V, --version print version number, then exit
2914 -q, --quiet do not print progress messages
2915 -d, --debug don't remove temporary files
2917 Report bugs to <bug-libtool@gnu.org>."
2931 --version | --v* | -V )
2933 --help | --h* | -h )
2935 --debug | --d* | -d )
2937 --quiet | --q* | --silent | --s* | -q )
2940 -*) AC_MSG_ERROR([unrecognized option: $[1]
2941 Try '$[0] --help' for more information.]) ;;
2944 Try '$[0] --help' for more information.]) ;;
2971 lt_config_lt_args="$lt_config_lt_args --quiet"
2980 # ---------------
2981 # If TAG is the built-in tag, create an initial libtool script with a
2992 if test -n "${ZSH_VERSION+set}"; then
3003 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3006 # Provide generalized library-building support services.
3036 # AIX sometimes has problems with the GCC collect2 program. For some
3050 # if finds mixed CR/LF and LF-only lines. Since sed operates in
3054 || (rm -f "$cfgfile"; exit 1)
3056 mv -f "$cfgfile" "$ofile" ||
3057 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
3080 # ---------------------
3082 # --tag option, using:
3083 # autoconf --trace 'LT_SUPPORTED_TAG:$1'
3087 # C support is built-in for now
3093 # -------------
3112 # ------------------
3124 # GNU Autoconf as AC_PROG_GO. When it is available in #
3133 if test -z "$GOC"; then
3134 if test -n "$ac_tool_prefix"; then
3138 if test -z "$GOC"; then
3146 # -----------------------
3190 dnl aclocal-1.4 backwards compatibility:
3199 # ----------------
3206 _LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
3209 LTCC=${LTCC-"$CC"}
3212 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
3220 # ------------------------
3234 # ----------------------
3243 $RM -r conftest*
3247 # -------------------------
3263 [ldd/readelf like tool for Mach-O binaries on Mac OS X])
3265 [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
3267 AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
3269 if test -z "$LT_MULTI_MODULE"; then
3270 # By default we will add the -single_module flag. You can override
3272 # non-empty at configure time, or by adding -multi_module to the
3274 rm -rf libconftest.dylib*
3276 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
3277 -dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
3278 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
3279 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
3281 # If there is a non-empty error log, and "single_module"
3283 if test -s conftest.err && $GREP single_module conftest.err; then
3287 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
3292 rm -rf libconftest.dylib*
3293 rm -f conftest.*
3296 AC_CACHE_CHECK([for -exported_symbols_list linker flag],
3301 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
3308 AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
3313 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
3314 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
3322 …echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAG…
3323 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
3325 if test -s conftest.err && $GREP force_load conftest.err; then
3327 …elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
3332 rm -f conftest.err libconftest.a conftest conftest.c
3333 rm -rf conftest.dSYM
3337 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
3339 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
3344 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
3345 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
3346 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
3348 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
3350 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
3358 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
3360 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
3373 # ---------------------------------
3383 …ec, $1)='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenienc…
3393 *) _lt_dar_can_shared=$GCC ;;
3397 …_LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs…
3398 …_LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$co…
3399 …\$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobj…
3400 …psym_cmds, $1)="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC…
3403-r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_…
3404-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamicl…
3413 # ----------------------------------
3436 …_LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_a…
3437 # Check for a 64-bit object if we didn't find anything.
3438 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
3439 …_LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$l…
3441 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
3451 # -------------------
3453 [m4_divert_text([M4SH-INIT], [$1
3459 # -----------------------
3471 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3472 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3473 ECHO='print -r --'
3488 # Invoke $ECHO with all args, space-separated.
3496 print*) AC_MSG_RESULT([print -r]) ;;
3502 test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
3508 || test "X`print -r -- $ECHO`" = "X$ECHO" )])])
3516 # ----------------
3520 [AS_HELP_STRING([--with-sysroot@<:@=DIR@:>@],
3530 if test yes = "$GCC"; then
3531 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
3535 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
3545 AC_MSG_RESULT([${lt_sysroot:-no}])
3550 # ---------------
3552 [AC_ARG_ENABLE([libtool-lock],
3553 [AS_HELP_STRING([--disable-libtool-lock],
3560 ia64-*-hpux*)
3566 *ELF-32*)
3569 *ELF-64*)
3574 rm -rf conftest*
3576 *-*-irix6*)
3583 *32-bit*)
3584 LD="${LD-ld} -melf32bsmip"
3587 LD="${LD-ld} -melf32bmipn32"
3589 *64-bit*)
3590 LD="${LD-ld} -melf64bmip"
3595 *32-bit*)
3596 LD="${LD-ld} -32"
3599 LD="${LD-ld} -n32"
3601 *64-bit*)
3602 LD="${LD-ld} -64"
3607 rm -rf conftest*
3610 mips64*-*linux*)
3617 *32-bit*)
3620 *64-bit*)
3637 LD="${LD-ld} -m $emul"
3639 rm -rf conftest*
3642 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
3643 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
3647 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
3653 *32-bit*)
3655 x86_64-*kfreebsd*-gnu)
3656 LD="${LD-ld} -m elf_i386_fbsd"
3658 x86_64-*linux*)
3660 *x86-64*)
3661 LD="${LD-ld} -m elf32_x86_64"
3664 LD="${LD-ld} -m elf_i386"
3668 powerpc64le-*linux*)
3669 LD="${LD-ld} -m elf32lppclinux"
3671 powerpc64-*linux*)
3672 LD="${LD-ld} -m elf32ppclinux"
3674 s390x-*linux*)
3675 LD="${LD-ld} -m elf_s390"
3677 sparc64-*linux*)
3678 LD="${LD-ld} -m elf32_sparc"
3682 *64-bit*)
3684 x86_64-*kfreebsd*-gnu)
3685 LD="${LD-ld} -m elf_x86_64_fbsd"
3687 x86_64-*linux*)
3688 LD="${LD-ld} -m elf_x86_64"
3690 powerpcle-*linux*)
3691 LD="${LD-ld} -m elf64lppc"
3693 powerpc-*linux*)
3694 LD="${LD-ld} -m elf64ppc"
3696 s390*-*linux*|s390*-*tpf*)
3697 LD="${LD-ld} -m elf64_s390"
3699 sparc*-*linux*)
3700 LD="${LD-ld} -m elf64_sparc"
3706 rm -rf conftest*
3709 *-*-sco3.2v5*)
3710 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3712 CFLAGS="$CFLAGS -belf"
3713 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
3718 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3722 *-*solaris*)
3728 *64-bit*)
3732 i?86-*-solaris*|x86_64-*-solaris*)
3733 LD="${LD-ld} -m elf_x86_64"
3735 sparc*-*-solaris*)
3736 LD="${LD-ld} -m elf64_sparc"
3739 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
3740 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
3741 LD=${LD-ld}_sol2
3745 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
3746 LD="${LD-ld} -64"
3753 rm -rf conftest*
3762 # -----------
3776 if test 0 -eq "$ac_status"; then
3778 rm -f conftest.$ac_objext libconftest.a
3780 if test 0 -ne "$ac_status"; then
3784 rm -f conftest.* libconftest.a
3799 # -------------------
3804 test -z "$STRIP" && STRIP=:
3808 test -z "$RANLIB" && RANLIB=:
3810 [Commands used to install an old-style archive])
3812 # Determine commands to create old-style static archives.
3817 if test -n "$RANLIB"; then
3820 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
3838 [Commands used to build an old-style archive])
3844 # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
3845 # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
3846 # ----------------------------------------------------------------
3862 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
3863 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
3864 -e 's:$: $lt_compiler_flag:'`
3870 if (exit $ac_status) && test -s "$ac_outfile"; then
3875 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
3891 dnl aclocal-1.4 backwards compatibility:
3895 # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
3896 # [ACTION-SUCCESS], [ACTION-FAILURE])
3897 # ----------------------------------------------------
3907 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
3910 if test -s conftest.err; then
3922 $RM -r conftest*
3935 dnl aclocal-1.4 backwards compatibility:
3940 #---------------
3958 gnu*)
3959 # Under GNU Hurd, this test is not required because there is
3961 # Libtool will interpret -1 as no limit whatsoever
3962 lt_cv_sys_max_cmd_len=-1;
3966 # On Win9x/ME, this test blows up -- it succeeds, but takes
3968 # Worse, since 9x/ME are not pre-emptively multitasking,
3989 if test -x /sbin/sysctl; then
3990 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3991 elif test -x /usr/sbin/sysctl; then
3992 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4018 if test -x /sbin/sysconfig; then
4019 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4020 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4029 if test -n "$kargmax"; then
4037 if test -n "$lt_cv_sys_max_cmd_len" && \
4047 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4048 # If test is not a shell built-in, we'll probably end up computing a
4069 if test -n "$lt_cv_sys_max_cmd_len"; then
4081 dnl aclocal-1.4 backwards compatibility:
4086 # ----------------
4092 # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
4093 # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
4094 # ----------------------------------------------------------------
4144 /* When -fvisibility=hidden is used, assume the code has been annotated
4172 if AC_TRY_EVAL(ac_link) && test -s "conftest$ac_exeext" 2>/dev/null; then
4185 rm -fr conftest*
4190 # ------------------
4221 [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl],[
4230 # because TPF is a cross-compiler, and we know how we open DSOs.
4240 [lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld],
4244 [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl],
4246 [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld],
4248 [lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld])
4266 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
4317 dnl aclocal-1.4 backwards compatibility:
4322 # ---------------------------
4323 # Check to see if options -c and -o are simultaneously supported by compiler.
4329 AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
4332 $RM -r conftest 2>/dev/null
4338 lt_compiler_flag="-o out/conftest2.$ac_objext"
4344 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
4345 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
4346 -e 's:$: $lt_compiler_flag:'`
4352 if (exit $ac_status) && test -s out/conftest2.$ac_objext
4358 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
4366 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
4369 $RM -r conftest
4373 [Does compiler simultaneously support -c and -o options?])
4378 # ----------------------------------
4397 AC_MSG_WARN(['$CC' does not support '-c -o', so 'make -j' may be unsafe])
4408 # ----------------
4411 [rm -f .libs 2>/dev/null
4413 if test -d .libs; then
4416 # MS-DOS does not allow filenames that begin with a dot.
4425 [Define to the sub-directory where libtool stores uninstalled libraries.])
4430 # --------------------------------------
4435 if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
4436 test -n "$_LT_TAGVAR(runpath_var, $1)" ||
4439 # We can hardcode non-existent directories.
4443 # when we should be linking with a yet-to-be-installed one
4474 # ----------------
4480 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
4481 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
4482 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
4485 # FIXME - insert some real tests, host_os isn't really good enough
4488 if test -n "$STRIP"; then
4489 striplib="$STRIP -x"
4490 old_striplib="$STRIP -S"
4507 # ---------------------------
4511 # -----------------------------------
4536 eval @S|@1=\"\@S|@@S|@1\ `$ECHO @S|@2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
4537 eval @S|@1=\"`$ECHO @S|@2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \@S|@@S|@1\"
4548 # -----------------------------
4561 if test yes = "$GCC"; then
4567 mingw* | cegcc*) lt_sed_strip_eq='s|=\([[A-Za-z]]:\)|\1|g' ;;
4570 …lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_s…
4574 # otherwise default to the standard path separator (i.e. ":") - it is
4586 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
4588 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
4595 if test -d "$lt_sys_path$lt_multi_os_dir"; then
4597 elif test -n "$lt_multi_os_dir"; then
4598 test -d "$lt_sys_path" && \
4606 for (lt_i = NF; lt_i > 0; lt_i--) {
4614 lt_count--;
4626 $SED 's|/\([[A-Za-z]]:\)|\1|g'` ;;
4648 # when you set need_version to no, make sure it does not cause -set_version
4653 [User-defined run-time library search path.])
4657 version_type=linux # correct to gnu/linux during the next big refactor
4665 aix[[4-9]]*)
4666 version_type=linux # correct to gnu/linux during the next big refactor
4675 # With GCC up to 2.95.x, collect2 would create an import file
4679 # development snapshots of GCC prior to 3.0.
4684 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
4692 # filename-based versioning of shared library archives on AIX. While
4694 # prevent static linking of such archives. So we do filename-based
4699 # versioned .so libs for executables only if there is the -brtl
4700 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
4701 # To allow for filename-based versioning support, we need to create
4711 # but for link time we create the symlink libNAME.so -> libNAME.so.V
4741-n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$…
4751-z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z …
4752 …postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_librar…
4763 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
4781 version_type=linux # correct to gnu/linux during the next big refactor
4791 # libtool to hard-code these into programs
4800 case $GCC,$cc_basename in
4802 # gcc
4806 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
4808 test -d \$dldir || mkdir -p \$dldir~
4811 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
4814 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
4822 …soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuff…
4828 soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
4832 …library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[[.]]/-/g'`$v…
4841 soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
4858 …path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|…
4864 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
4865 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
4866 …sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEP…
4870 if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
4872 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
4874 … sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
4877 # common. (e.g. "Program Files" -> "PROGRA~1")
4883 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
4885 test -d \$dldir || mkdir -p \$dldir~
4887 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
4896 …library_names_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext $libname.…
4920 version_type=linux # correct to gnu/linux during the next big refactor
4931 if test -x /usr/bin/objformat; then
4939 version_type=freebsd-$objformat
4941 freebsd-elf*)
4947 freebsd-*)
4961 freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
4962 freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
4974 version_type=linux # correct to gnu/linux during the next big refactor
5029 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
5035 interix[[3-9]]*)
5036 version_type=linux # correct to gnu/linux during the next big refactor
5052 version_type=linux # correct to gnu/linux during the next big refactor
5067 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
5068 libsuff= shlibsuff= libmagic=32-bit;;
5069 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
5071 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
5072 libsuff=64 shlibsuff=64 libmagic=64-bit;;
5073 *) libsuff= shlibsuff= libmagic=never-match;;
5084 # No shared lib support for Linux oldld, aout, or coff.
5085 linux*oldld* | linux*aout* | linux*coff*)
5089 linux*android*)
5105 # Don't embed -rpath directories since the linker doesn't support them.
5106 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5110 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5111 version_type=linux # correct to gnu/linux during the next big refactor
5116 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
5128 [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
5143 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
5144 # even though it is searched at run-time. Try to do the best guess by
5146 if test -f /etc/ld.so.conf; then
5147 …skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwc…
5153 # GNU dynamic linker. Since this was broken with cross compilers,
5154 # most powerpc-linux boxes support dynamic linking these days and
5155 # people can always --disable-shared, the test was removed, and we
5156 # assume the GNU/Linux dynamic linker is in use.
5157 dynamic_linker='GNU/Linux ld.so'
5164 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
5166 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5179 version_type=linux # correct to gnu/linux during the next big refactor
5201 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5207 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5219 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
5220 v=$($ECHO $release$versuffix | tr -d .-);
5221 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
5229 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
5231 test -d \$dldir || mkdir -p \$dldir~
5234 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
5237 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
5258 version_type=linux # correct to gnu/linux during the next big refactor
5283 version_type=linux # correct to gnu/linux during the next big refactor
5306 if test -d /usr/nec; then
5307 version_type=linux # correct to gnu/linux during the next big refactor
5324 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
5337 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
5338 version_type=linux # correct to gnu/linux during the next big refactor
5348 version_type=linux # correct to gnu/linux during the next big refactor
5362 if test yes = "$GCC"; then
5377 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
5393 [Is shlibpath searched before the hard-coded library search path?])
5397 The last name is the one that the linker finds with -lNAME]])
5414 [Compile-time system search path for libraries])
5416 [Detected run-time system search path for libraries])
5423 # --------------------------
5436 dnl $ac_dummy forces splitting on constant user-supplied paths.
5442 test -z "$ac_dir" && ac_dir=.
5443 if test -f "$ac_dir/$1"; then
5445 if test -n "$file_magic_test_file"; then
5463 *** bug-libtool@gnu.org
5477 if test -n "$MAGIC_CMD"; then
5488 dnl aclocal-1.4 backwards compatibility:
5493 # --------------
5497 if test -z "$lt_cv_path_MAGIC_CMD"; then
5498 if test -n "$ac_tool_prefix"; then
5508 # ----------
5509 # find the pathname to the GNU or non-GNU linker
5518 AC_ARG_WITH([gnu-ld],
5519 [AS_HELP_STRING([--with-gnu-ld],
5520 [assume the C compiler uses GNU ld @<:@default=no@:>@])],
5525 if test yes = "$GCC"; then
5526 # Check if gcc -print-prog-name=ld gives a path.
5529 *-*-mingw*)
5530 # gcc leaves a trailing carriage return, which upsets mingw
5531 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5533 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5544 test -z "$LD" && LD=$ac_prog
5547 # If it fails, then pretend we aren't using GCC.
5556 AC_MSG_CHECKING([for GNU ld])
5558 AC_MSG_CHECKING([for non-GNU ld])
5561 [if test -z "$LD"; then
5565 test -z "$ac_dir" && ac_dir=.
5566 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5568 # Check to see if the program is GNU ld. I'd rather use --version,
5569 # but apparently some variants of GNU ld only accept -v.
5570 # Break only if it was the GNU/non-GNU ld that we prefer.
5571 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5572 *GNU* | *'with BFD'*)
5586 if test -n "$LD"; then
5591 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
5601 dnl aclocal-1.4 backwards compatibility:
5607 #- --------------
5609 [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
5610 [# I'd rather use --version here, but apparently some GNU lds only accept -v.
5611 case `$LD -v 2>&1 </dev/null` in
5612 *GNU* | *'with BFD'*)
5624 # --------------
5626 # -- PORTME Some linkers may need a different reload flag.
5630 [lt_cv_ld_reload_flag='-r'])
5636 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5639 if test yes != "$GCC"; then
5644 if test yes = "$GCC"; then
5645 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5647 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5657 # -----------
5666 cmp -s conftest.i conftest.out \
5669 rm -f conftest.i conftest2.i conftest.out])
5674 # ----------------
5683 cmp -s conftest.i conftest.out \
5686 rm -f conftest.i conftest2.i conftest.out
5687 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"])
5694 # ----------------------
5696 # -- PORTME fill in with the dynamic library characteristics
5707 # 'none' -- dependencies not supported.
5708 # 'unknown' -- same as none, but documents that we really don't know.
5709 # 'pass_all' -- all dependencies passed with no checks.
5710 # 'test_compile' -- check by making test program.
5711 # 'file_magic [[regex]]' -- check by looking for files in library path
5717 aix[[4-9]]*)
5726 …lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib…
5727 lt_cv_file_magic_cmd='/usr/bin/file -L'
5740 # unless we find 'file', for example because we are cross-compiling.
5746 …v_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x…
5747 lt_cv_file_magic_cmd='$OBJDUMP -f'
5753 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5754 lt_cv_file_magic_cmd='$OBJDUMP -f'
5762 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5767 …lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand pa…
5785 …lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object f…
5789 …heck_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)…
5793 …lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared lib…
5799 interix[[3-9]]*)
5806 *-32|*"-32 ") libmagic=32-bit;;
5807 *-n32|*"-n32 ") libmagic=N32;;
5808 *-64|*"-64 ") libmagic=64-bit;;
5809 *) libmagic=never-match;;
5815 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5820 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5821 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
5828 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
5838 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5839 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
5841 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
5864 …bs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][…
5872 …lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib…
5876 lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
5905 …file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/…
5913 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5927 # ----------
5928 # find the pathname to a BSD- or MS-compatible name lister
5931 AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
5932 [if test -n "$NM"; then
5937 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5944 test -z "$ac_dir" && ac_dir=.
5946 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5947 # Check to see if the nm accepts a BSD-compat flag.
5948 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5956 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5958 lt_cv_path_NM="$tmp_nm -B"
5962 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5964 lt_cv_path_NM="$tmp_nm -p"
5984 if test -n "$DUMPBIN"; then :
5987 AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
5988 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5990 DUMPBIN="$DUMPBIN -symbols -headers"
6002 test -z "$NM" && NM=nm
6004 _LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
6020 rm -f conftest*])
6026 dnl aclocal-1.4 backwards compatibility:
6031 # --------------------------------
6034 # -- PORTME fill in with the dynamic library characteristics
6047 case `$DLLTOOL --help 2>&1` in
6048 *--identify-strict*)
6063 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6071 # ----------------------
6075 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6078 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
6079 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6084 rm -f conftest*])
6093 # ---------------------
6098 test DEF = "`$SED -n dnl
6099 -e '\''s/^[[ ]]*//'\'' dnl Strip leading whitespace
6100 -e '\''/^\(;.*\)*$/d'\'' dnl Delete empty lines and comments
6101 -e '\''s/^\(EXPORTS\|LIBRARY\)\([[ ]].*\)*$/DEF/p'\'' dnl
6102 -e q dnl Only consider the first "real" line
6108 # --------
6114 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
6117 *-ncr-sysv4.3*)
6118 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM=-lmw)
6119 AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
6122 AC_CHECK_LIB(m, cos, LIBM=-lm)
6130 dnl aclocal-1.4 backwards compatibility:
6135 # -------------------------------
6141 if test yes = "$GCC"; then
6144 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
6146 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;;
6149 _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
6151 [-fno-rtti -fno-exceptions], [],
6152 …o_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
6160 # ----------------------
6182 sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
6184 # Define system-specific variables.
6220 # If we're using GNU nm, then use its standard symbol codes.
6221 case `$NM -V 2>&1` in
6222 *GNU* | *'with BFD'*)
6228 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6230 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6231 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6233 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6234 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6246 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6248 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6249 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6252 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6254 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6255 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6259 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6261 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6262 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6263 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6281 # Fake it for dumpbin and say T for any non-static function,
6301 …lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$…
6308 rm -f conftest*
6325 …if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$n…
6328 mv -f "$nlist"T "$nlist"
6330 rm -f "$nlist"T
6340 relocations are performed -- see ld's documentation on pseudo-relocs. */
6355 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6368 …$SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> c…
6390 if AC_TRY_EVAL(ac_link) && test -s conftest$ac_exeext; then
6408 rm -rf conftest* conftst*
6418 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6421 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6430 elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then
6454 # ---------------------------
6464 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6465 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
6472 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6474 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6481 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6485 # adding the '-m68020' flag to GCC prevents building anything better,
6486 # like '-m68040'.
6487 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
6498 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6499 # (--disable-auto-import) libraries
6501 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
6504 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static'
6511 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
6519 # The "-static" flag exists, but is broken.
6522 interix[[3-9]]*)
6523 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6527 if test -d /usr/nec; then
6528 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
6532 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
6533 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
6539 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6544 # QNX uses GNU C++, but need to define -shared option too, otherwise
6546 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
6549 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6554 aix[[4-9]]*)
6558 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6560 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
6567 …# _LT_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abor…
6575 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
6580 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6584 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
6591 # FreeBSD uses GNU C++
6596 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6597 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive'
6603 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6604 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive'
6625 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6626 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6627 # CC pic flag -KPIC is the default.
6633 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6637 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
6638 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6641 # old Intel C++ for x86_64, which still supported -KPIC.
6642 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6643 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6644 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
6647 # Intel C++, used to be incompatible with GCC.
6648 # ICC 10 doesn't accept -KPIC any more.
6649 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6650 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6651 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
6655 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6656 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
6657 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6662 # Linux and Compaq Tru64 Unix objects are PIC.
6664 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6668 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6669 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
6670 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
6673 case `$CC -V 2>&1 | sed 5q` in
6676 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6677 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6678 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
6691 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
6700 # QNX uses GNU C++, but need to define -shared option too, otherwise
6702 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
6707 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
6711 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
6715 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6717 # Linux and Compaq Tru64 Unix objects are PIC.
6719 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6731 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6732 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6733 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
6737 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
6747 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
6748 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6752 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
6761 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6762 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6763 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6770 # NonStop-UX NCC 3.20
6771 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6786 if test yes = "$GCC"; then
6787 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6788 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
6795 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6797 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6804 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6808 # adding the '-m68020' flag to GCC prevents building anything better,
6809 # like '-m68040'.
6810 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
6822 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6823 # (--disable-auto-import) libraries
6825 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
6828 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static'
6836 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
6841 # The "-static" flag exists, but is broken.
6846 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
6847 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
6854 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6859 interix[[3-9]]*)
6860 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6865 # Just because we use GCC doesn't mean we suddenly get shared libraries
6872 # QNX uses GNU C++, but need to define -shared option too, otherwise
6874 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
6878 if test -d /usr/nec; then
6879 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
6884 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6890 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
6891 if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
6892 _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)"
6900 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6903 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6905 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
6912 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
6916 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
6917 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
6918 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6927 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
6930 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static'
6936 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6937 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6938 # not for PA HP-UX.
6948 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive'
6952 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6953 # PIC (with -KPIC) is the default.
6954 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6957 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6959 # old Intel for x86_64, which still supported -KPIC.
6961 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6962 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6963 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
6965 # icc used to be incompatible with GCC.
6966 # ICC 10 doesn't accept -KPIC any more.
6968 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6969 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6970 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
6974 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6975 _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
6976 _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
6980 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
6981 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
6982 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6986 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6987 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6988 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
6991 # Portland Group compilers (*not* the Pentium gcc compiler,
6993 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6994 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
6995 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6998 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7000 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
7004 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7005 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
7006 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
7009 case `$CC -V 2>&1 | sed 5q` in
7010 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*)
7012 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7013 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7017 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7018 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7019 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
7023 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7024 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7025 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7028 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7029 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
7030 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
7033 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7034 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
7035 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7043 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7044 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7048 # QNX uses GNU C++, but need to define -shared option too, otherwise
7050 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
7054 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7056 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
7060 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
7064 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7065 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7068 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
7070 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
7075 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
7076 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
7077 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7081 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7082 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7083 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7087 if test -d /usr/nec; then
7088 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
7089 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7094 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7095 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7096 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7100 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7105 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
7106 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7116 # For platforms that do not support PIC, -DPIC is meaningless:
7121 …$1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[]…
7133 if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
7136 …[$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])]…
7164 # ----------------------------
7180 aix[[4-9]]*)
7181 # If we're using GNU nm, then we don't want the "-C" option.
7182 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
7183 # Without the "-l" option, or with the "-B" option, AIX nm treats
7185 # GNU nm marks them as "W".
7187 # it in the Import File for the 'aix-soname' feature, so we have
7188 # to replace the "-B" option with "-P" for AIX nm.
7189 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7190-Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$…
7192-e '\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\…
7204 …_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\'…
7205 … $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_…
7238 # include_expsyms should be a list of space-separated symbols to be *always*
7258 # When not using gcc, we currently assume that we are using
7260 if test yes != "$GCC"; then
7265 # we just hope/assume this is gcc and not c89 (= MSVC++)
7275 # On some targets, GNU ld is compatible enough with the native linker
7281 # The AIX port of GNU ld has always aspired to compatibility
7282 # with the native linker. However, as the warning in the GNU ld
7285 case `$LD -v 2>&1` in
7286 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
7287 *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;;
7288 *\ \(GNU\ Binutils\)\ [[3-9]]*) ;;
7304 # Set some defaults for GNU ld with shared library support. These
7308 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
7309 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
7310 # ancient GNU ld didn't support --whole-archive et. al.
7311 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7312 …_LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-arch…
7317 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
7318 *GNU\ gold*) supports_anon_versioning=yes ;;
7319 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
7326 # See if GNU ld supports shared libraries.
7328 aix[[3-9]]*)
7329 # On AIX/PPC, the GNU linker is very broken
7334 *** Warning: the GNU linker, at least up to release 2.19, is reported
7338 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
7349 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname
7353 …r/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
7354 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7361 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7363 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7364 # support --undefined. This deserves some investigation. FIXME
7365 …_LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname…
7374 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7375 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols'
7379 …_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\'…
7380 … $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_…
7382 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7383 …e_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-a…
7384 # If the export-symbols file already is a .def file, use it as
7392 …CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname …
7399 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname
7404 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7413 …$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$lib…
7414 emximp -o $lib $output_objdir/$libname.def'
7421 prefix_cmds="$prefix_cmds -e 1d";
7423 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
7425 …$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$lib…
7426 emximp -o $lib $output_objdir/$libname.def'
7427 …_LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdi…
7431 interix[[3-9]]*)
7434 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
7435 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
7436 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7440 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7442 …1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${…
7443-shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output…
7446 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
7448 if test linux-dietlibc = "$host_os"; then
7450 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7453 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7457 tmp_sharedflag='-shared'
7460--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_conv…
7465--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_conv…
7466 tmp_addflag=' $pic_flag -Mnomain' ;;
7468 tmp_addflag=' -i_dynamic' ;;
7470 tmp_addflag=' -i_dynamic -nofor_main' ;;
7472 tmp_addflag=' -nofor_main' ;;
7475 tmp_sharedflag='--shared' ;;
7477 tmp_sharedflag='-Wl,-shared' ;;
7479 tmp_sharedflag='-qmkshrobj'
7482--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_conv…
7486 case `$CC -V 2>&1 | sed 5q` in
7488--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_conven…
7490 tmp_sharedflag='-G' ;;
7492 tmp_sharedflag='-G' ;;
7494 … '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
7498 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7500 …g"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$…
7505 _LT_TAGVAR(export_dynamic_flag_spec, $1)='-rdynamic'
7509 _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
7510 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
7511 … _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
7514 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7516 …$LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libnam…
7526 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7527 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7530 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $…
7531 …m_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-ret…
7536 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7540 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7542 *** is disabling shared libraries support. We urge you to upgrade GNU
7548 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7549 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $…
7550 …m_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-ret…
7557 case `$LD -v 2>&1` in
7558 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
7562 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
7564 *** is disabling shared libraries support. We urge you to upgrade GNU
7576 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7577 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
7578 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname
7579 …expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-s…
7588 …_LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_…
7595 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7596 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $…
7597 …m_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-ret…
7611 # PORTME fill in a description of your system's linker (not GNU ld)
7616 …(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$expo…
7618 # are no directories specified by -L.
7620 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
7627 aix[[4-9]]*)
7632 exp_sym_flag='-Bexport'
7635 # If we're using GNU nm, then we don't want the "-C" option.
7636 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
7637 # Without the "-l" option, or with the "-B" option, AIX nm treats
7639 # GNU nm marks them as "W".
7641 # it in the Import File for the 'aix-soname' feature, so we have
7642 # to replace the "-B" option with "-P" for AIX nm.
7643 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7644-Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$…
7646-e '\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\…
7651 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7654 # depending on the kind of the shared library created -
7665 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
7667 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
7673 # With aix-soname=svr4, we create the lib.so.V shared archives only,
7677 LDFLAGS="$LDFLAGS -Wl,-brtl"
7682 exp_sym_flag='-bexport'
7683 no_entry_flag='-bnoentry'
7688 # or program results in "error TOC overflow" add -mminimal-toc to
7689 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7690 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7697 _LT_TAGVAR(file_list_spec, $1)='$wl-f,'
7707 if test yes = "$GCC"; then
7711 collect2name=`$CC -print-prog-name=collect2`
7712 if test -f "$collect2name" &&
7724 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7729 shared_flag='-shared'
7731 shared_flag="$shared_flag "'$wl-G'
7735 # /with/ Import File - we do not want to mix them.
7736 shared_flag_aix='-shared'
7737 shared_flag_svr4='-shared $wl-G'
7739 # not using gcc
7741 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7742 # chokes on -Wl,-G. The following line is correct:
7743 shared_flag='-G'
7746 shared_flag='$wl-G'
7748 shared_flag='$wl-bM:SRE'
7750 shared_flag_aix='$wl-bM:SRE'
7751 shared_flag_svr4='$wl-G'
7755 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall'
7756 # It seems that -bexpall does not export symbols beginning with
7760 # Warning - without using the other runtime loading flags (-brtl),
7761 # -berok will link without error, but may produce a broken library.
7762 _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
7766 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
7767 …(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $co…
7770 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib'
7771 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
7772 …_LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $depli…
7777 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
7778 # Warning - without using the other run time loading flags,
7779 # -berok will link without error, but may produce a broken library.
7780 _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok'
7781 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok'
7783 # We only use this code for GNU lds that support --whole-archive.
7784 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive'
7790 …_LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$real…
7791 # -brtl affects multiple linker settings, -berok does not and is overridden later
7792 …compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([[, ]]\\)%-berok\\…
7795 …)"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$…
7798-o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compi…
7800 # used by -dlpreopen to get the symbols
7803 …_LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$RM -r $output_objdir/…
7812 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname
7816 …r/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
7817 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7824 _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
7828 # When not using gcc, we currently assume that we are using
7844 …_LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,
7849 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
7851 …$CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.e…
7857 … $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1,DATA/'…
7869 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
7870 …$MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || e…
7883 …TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\…
7887 _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
7898 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7899 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7908 …_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++…
7909 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7916 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7922 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7924 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7925 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7931 if test yes = "$GCC"; then
7932 …VAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -
7934 …_LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objd…
7943 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
7947 if test yes,no = "$GCC,$with_gnu_ld"; then
7948 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $…
7950 …_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $link…
7957 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
7965 if test yes,no = "$GCC,$with_gnu_ld"; then
7968 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_fla…
7971 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $l…
7974 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $…
7980 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
7983 …_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs…
7987 # Older versions of the 11.00 compiler do not understand -b yet
7988 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
7989 _LT_LINKER_OPTION([if $CC understands -b],
7990 _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b],
7991 …[_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $…
7992 …[_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $lin…
7993 …[_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $…
8009 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
8020 if test yes = "$GCC"; then
8021-shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" &&…
8022 # Try to use the -exported_symbol ld option, if it does not
8023 # work, assume that -exports_file does not work either and
8025 # This should be the same for all languages, so no per-tag cache variable.
8026 AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
8029 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
8044-shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" &&…
8047-shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "
8048-shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "
8051 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
8057 linux*)
8062 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8068 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8069 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8071 _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8073 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
8079 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8081 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
8090 if test -f /usr/libexec/ld.so; then
8094 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
8095 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8096 …TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $…
8097 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
8098 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
8100 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8101 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
8109 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
8118 …$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$lib…
8119 emximp -o $lib $output_objdir/$libname.def'
8126 prefix_cmds="$prefix_cmds -e 1d";
8128 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
8130 …$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$lib…
8131 emximp -o $lib $output_objdir/$libname.def'
8132 …_LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdi…
8137 if test yes = "$GCC"; then
8138 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
8139-shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$ve…
8141 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
8142-shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstrin…
8145 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
8149 osf4* | osf5*) # as osf3* with the addition of -msym flag
8150 if test yes = "$GCC"; then
8151 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
8152-shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$s…
8153 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
8155 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
8156-shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$ve…
8157 …in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%…
8158-shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $sona…
8160 # Both c and cxx compiler support -rpath directly
8161 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
8168 _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
8169 if test yes = "$GCC"; then
8171 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libo…
8172 …_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/…
8173 …$CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs…
8175 case `$CC -V 2>&1` in
8178 …_LT_TAGVAR(archive_cmds, $1)='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $li…
8179 …_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/…
8180 …$LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $li…
8184 …_LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $co…
8185 …_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/…
8186 …$CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $…
8190 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
8193 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
8196 # but understands '-z linker_flag'. GCC discards it without '$wl',
8199 if test yes = "$GCC"; then
8200 …_LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextra…
8202 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
8213 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8215 …_LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_fla…
8217 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
8226 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8232 _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8233 _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
8237 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8246 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8248 _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
8252 if test -d /usr/nec; then
8253 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8262 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
8267 if test yes = "$GCC"; then
8268 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8269 …_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib…
8271 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8272 …_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $lib…
8277 # Note: We CANNOT use -z defs as we might desire, because we do not
8278 # link with -lc, and that would cause any symbols used from libc to
8280 # ever link correctly. If we're not using GNU ld we use -z text
8281 # though, which does catch some bad symbols but isn't as heavy-handed
8282 # as -z defs.
8283 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
8284 _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs'
8287 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir'
8290 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport'
8293 if test yes = "$GCC"; then
8294 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8295 …_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib…
8297 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8298 …_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $lib…
8303 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8304 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
8316 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Blargedynsym'
8337 # Assume -lc should be added
8340 if test yes,yes = "$GCC,$enable_shared"; then
8343 # FIXME: we may have to deal with multi-command sequences.
8346 # Test whether the compiler implicitly links with -lc since on some
8347 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8348 # to ld, don't add -lc before -lgcc.
8349 AC_CACHE_CHECK([whether -lc should be explicitly linked in],
8361 compiler_flags=-v
8362 linker_flags=-v
8368 if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
8388 [Whether or not to add -lc for building shared libraries])
8399 [Create an old-style archive from a shared archive])
8401 [Create a temporary old-style archive to link instead of a shared archive])
8409 [Whether we are building with GNU ld or not])
8418 [Whether we need a single "-rpath" flag with a separated argument])
8428 [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
8463 # ------------------------
8494 if test -n "$compiler"; then
8517 if test -n "$RANLIB"; then
8523 aix[[4-9]]*)
8548 # --------------------------
8556 if test -n "$CXX" && ( test no != "$CXX" &&
8557 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
8599 # and will be corrupted by setting them based on a non-working compiler.
8618 lt_save_GCC=$GCC
8619 GCC=$GXX
8622 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
8627 if test -n "${lt_cv_path_LDCXX+set}"; then
8632 test -z "${LDCXX+set}" || LD=$LDCXX
8633 CC=${CXX-"c++"}
8639 if test -n "$compiler"; then
8640 # We don't want -fno-exception when compiling C++ code, so set the
8643 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
8649 # Set up default GNU C++ configuration
8653 # Check if GNU C++ uses GNU ld as the underlying linker, since the
8654 # archiving commands below assume that GNU ld is being used.
8656 …s, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compil…
8657-shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $…
8659 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
8660 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
8663 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
8667 # ancient GNU ld didn't support --whole-archive et. al.
8668 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
8669 $GREP 'no-whole-archive' > /dev/null; then
8670 …_LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-arch…
8679 # command for GNU C++ for the case where it uses the native
8680 # linker, instead of GNU ld. If possible, this setting should
8683 …LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_obje…
8689 …output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with…
8705 aix[[4-9]]*)
8710 exp_sym_flag='-Bexport'
8716 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8719 # depending on the kind of the shared library created -
8730 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
8733 *-brtl*)
8740 # With aix-soname=svr4, we create the lib.so.V shared archives only,
8744 LDFLAGS="$LDFLAGS -Wl,-brtl"
8749 exp_sym_flag='-bexport'
8750 no_entry_flag='-bnoentry'
8755 # or program results in "error TOC overflow" add -mminimal-toc to
8756 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8757 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8764 _LT_TAGVAR(file_list_spec, $1)='$wl-f,'
8778 collect2name=`$CC -print-prog-name=collect2`
8779 if test -f "$collect2name" &&
8791 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
8795 shared_flag='-shared'
8797 shared_flag=$shared_flag' $wl-G'
8801 # /with/ Import File - we do not want to mix them.
8802 shared_flag_aix='-shared'
8803 shared_flag_svr4='-shared $wl-G'
8805 # not using gcc
8807 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8808 # chokes on -Wl,-G. The following line is correct:
8809 shared_flag='-G'
8812 shared_flag='$wl-G'
8814 shared_flag='$wl-bM:SRE'
8816 shared_flag_aix='$wl-bM:SRE'
8817 shared_flag_svr4='$wl-G'
8821 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall'
8822 # It seems that -bexpall does not export symbols beginning with
8827 # Warning - without using the other runtime loading flags (-brtl),
8828 # -berok will link without error, but may produce a broken library.
8829 # The "-G" linker flag allows undefined symbols.
8830 _LT_TAGVAR(no_undefined_flag, $1)='-bernotok'
8834 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
8836 …(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $co…
8839 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib'
8840 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
8841 …_LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $depli…
8846 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
8847 # Warning - without using the other run time loading flags,
8848 # -berok will link without error, but may produce a broken library.
8849 _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok'
8850 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok'
8852 # We only use this code for GNU lds that support --whole-archive.
8853 … _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive'
8859 …_LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$real…
8860 # -brtl affects multiple linker settings, -berok does not and is overridden later
8861 …compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([[, ]]\\)%-berok\\…
8864 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
8865 …)"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$…
8868-o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compi…
8870 # used by -dlpreopen to get the symbols
8873 …_LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$RM -r $output_objdir/…
8879 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8881 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8882 # support --undefined. This deserves some investigation. FIXME
8883 …_LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname…
8913 …_LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,
8918 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
8920 …$CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.e…
8937 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
8938 …$MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || e…
8946 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
8947 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols'
8952 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8953-shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_ob…
8954 # If the export-symbols file already is a .def file, use it as
8962-shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $c…
8974 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
8983 …$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$lib…
8984 emximp -o $lib $output_objdir/$libname.def'
8991 prefix_cmds="$prefix_cmds -e 1d";
8993 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
8995 …$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$lib…
8996 emximp -o $lib $output_objdir/$libname.def'
8997 …_LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdi…
9025 freebsd-elf*)
9030 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9036 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname
9043 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
9055 …_LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $outpu…
9064 …output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list…
9068 …rchive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_lib…
9086 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
9112 …_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $p…
9115 …_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $…
9118 …_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_obj…
9129 …output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=…
9136 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects…
9139 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath
9142 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_l…
9154 interix[[3-9]]*)
9157 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
9158 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
9159 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9163 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9165 …1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${…
9166-shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output…
9172-shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname …
9175 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
9178 _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
9183-shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl
9185-shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl
9191 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
9196 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9202 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9204-e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"…
9205-e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"…
9214 …_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GRE…
9216 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
9217 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
9220 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9221 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
9229 case `$CC -V 2>&1` in
9231 …VAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_fl…
9232 …='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$so…
9237 ia64*) tmp_idyn=' -i_dynamic';;
9239 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-sonam…
9240 …_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-r…
9244 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
9245 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
9246 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive'
9250 case `$CC -V` in
9251 *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
9253 rm -rf $tpldir~
9254 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
9255 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
9257 rm -rf $tpldir~
9258 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
9259 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
9262 rm -rf $tpldir~
9263 …$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $…
9264-shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $po…
9266 rm -rf $tpldir~
9267 …$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $…
9268-shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $pos…
9271 …rchive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compil…
9272-shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $…
9276 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl--rpath $wl$libdir'
9277 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
9278--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_conv…
9282 …VAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_fl…
9283 …mds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-sonam…
9286 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
9297 …output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; tem…
9300 # IBM XL 8.0 on PPC, with GNU ld
9301 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
9302 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
9303 …_LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$sona…
9306 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9308 …$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$outp…
9312 case `$CC -V 2>&1 | sed 5q` in
9315 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
9316 …_LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libob…
9317 …s, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_o…
9318 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
9319--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_conven…
9323 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
9328 # "CC -xar", where "CC" is the Sun C++ compiler. This is
9331 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
9362 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9363 …_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_…
9365 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
9369 # Workaround some broken pre-1.5 toolchains
9370 …output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $…
9378 if test -f /usr/libexec/ld.so; then
9382 …LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_obje…
9383 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
9384 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
9385 …ds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags …
9386 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
9387 …_LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-arch…
9401 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9403-e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so…
9405 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
9411 osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
9412 *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
9423 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
9424-shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $w…
9425 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
9428 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
9429-shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -m…
9430 …hive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i"…
9431 echo "-hidden">> $lib.exp~
9432-shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -m…
9434 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
9448 …output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GR…
9452 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
9455-shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compil…
9458-shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objec…
9462 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
9468 …output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with…
9507 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
9508 …_LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libob…
9509 …_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/…
9510 …$CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs …
9512 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
9515 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
9518 # but understands '-z linker_flag'.
9520 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
9528 # "CC -xar", where "CC" is the Sun C++ compiler. This is
9531 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
9535 …TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler…
9538 _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
9541 # GNU C++ compiler with Solaris linker
9543 _LT_TAGVAR(no_undefined_flag, $1)=' $wl-z ${wl}defs'
9544 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
9545 …hive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects…
9546 …ve_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> …
9547 …$CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobj…
9552 …output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with…
9554 # g++ 2.7 appears to require '-G' NOT '-shared' on this
9556 …VAR(archive_cmds, $1)='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compil…
9557 …ve_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> …
9558 …$CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $pos…
9563 …output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | …
9566 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $wl$libdir'
9568 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
9570 …_LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextra…
9579 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
9586 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9587 …_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $lib…
9590 … _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9591 …_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib…
9597 # Note: We CANNOT use -z defs as we might desire, because we do not
9598 # link with -lc, and that would cause any symbols used from libc to
9600 # ever link correctly. If we're not using GNU ld we use -z text
9601 # though, which does catch some bad symbols but isn't as heavy-handed
9602 # as -z defs.
9603 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
9604 _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs'
9607 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir'
9610 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport'
9615 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9616 …_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $lib…
9617 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~
9619 _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
9623 … _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9624 …_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib…
9632 # NonStop-UX NCC 3.20
9657 _LT_TAGVAR(GCC, $1)=$GXX
9673 fi # test -n "$compiler"
9679 GCC=$lt_save_GCC
9692 # ----------------------
9699 # This function is identical to the (non-XSI) version of func_stripname,
9716 # ---------------------------------
9782 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
9783 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
9784 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
9800 -L* | -R* | -l*)
9801 # Some compilers place space between "-{L,R}" and the path.
9803 if test x-L = "$p" ||
9804 test x-R = "$p"; then
9810 if test -z "$prev"; then
9812 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
9813 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
9814 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
9822 -L | -R)
9826 if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
9832 # The "-l" case would never come before the object being
9836 if test -z "$_LT_TAGVAR(postdeps, $1)"; then
9845 *.lto.$objext) ;; # Ignore GCC LTO objects
9855 if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
9861 if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
9875 rm -f a.out a.exe
9880 $RM -f confest.$objext
9886 interix[[3-9]]*)
9897 *" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
9900 if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
9901 …h_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | $SED -e 's! -L! !g' -e 's!^ !!'`
9918 # --------------------------
9924 if test -z "$F77" || test no = "$F77"; then
9960 # and will be corrupted by setting them based on a non-working compiler.
9984 lt_save_GCC=$GCC
9986 CC=${F77-"f77"}
9991 GCC=$G77
9992 if test -n "$compiler"; then
10004 if test -n "$RANLIB"; then
10009 aix[[4-9]]*)
10026 _LT_TAGVAR(GCC, $1)=$G77
10041 fi # test -n "$compiler"
10043 GCC=$lt_save_GCC
10053 # -------------------------
10060 if test -z "$FC" || test no = "$FC"; then
10087 ac_ext=${ac_fc_srcext-f}
10096 # and will be corrupted by setting them based on a non-working compiler.
10120 lt_save_GCC=$GCC
10122 CC=${FC-"f95"}
10125 GCC=$ac_cv_fc_compiler_gnu
10130 if test -n "$compiler"; then
10142 if test -n "$RANLIB"; then
10147 aix[[4-9]]*)
10164 _LT_TAGVAR(GCC, $1)=$ac_cv_fc_compiler_gnu
10180 fi # test -n "$compiler"
10182 GCC=$lt_save_GCC
10192 # --------------------------
10193 # Ensure that the configuration variables for the GNU Java Compiler compiler
10223 lt_save_GCC=$GCC
10224 GCC=yes
10225 CC=${GCJ-"gcj"}
10232 # GCJ did not exist at the time GCC didn't implicitly link libc in.
10239 if test -n "$compiler"; then
10252 GCC=$lt_save_GCC
10259 # --------------------------
10260 # Ensure that the configuration variables for the GNU Go compiler
10290 lt_save_GCC=$GCC
10291 GCC=yes
10292 CC=${GOC-"gccgo"}
10299 # Go did not exist at the time GCC didn't implicitly link libc in.
10306 if test -n "$compiler"; then
10319 GCC=$lt_save_GCC
10326 # -------------------------
10357 lt_save_GCC=$GCC
10358 GCC=
10359 CC=${RC-"windres"}
10366 if test -n "$compiler"; then
10371 GCC=$lt_save_GCC
10379 # -----------
10384 test set = "${GCJFLAGS+set}" || GCJFLAGS="-g -O2"
10390 dnl aclocal-1.4 backwards compatibility:
10395 # ----------
10402 # ----------
10409 dnl aclocal-1.4 backwards compatibility:
10414 # --------------
10420 test -z "$GREP" && GREP=grep
10424 dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
10430 # --------------
10435 test -z "$OBJDUMP" && OBJDUMP=objdump
10441 # ----------------
10445 test -z "$DLLTOOL" && DLLTOOL=dlltool
10451 # ------------
10452 # Check for a fully-functional sed program, that truncates
10453 # as few characters as possible. Prefer GNU sed if found.
10456 test -z "$SED" && SED=sed
10457 Xsed="$SED -e 1s/^X//"
10459 _LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
10460 [Sed that helps us avoid accidentally triggering echo(1) options like -n])
10465 # GNU Autoconf as AC_PROG_SED. When it is available in #
10478 test -z "$as_dir" && as_dir=.
10493 test ! -f "$lt_ac_sed" && continue
10497 # Check for GNU sed and select it if it is found.
10498 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
10507 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
10508 cmp -s conftest.out conftest.nl || break
10510 test 10 -lt "$lt_ac_count" && break
10512 if test "$lt_ac_count" -gt "$lt_ac_max"; then
10527 dnl aclocal-1.4 backwards compatibility:
10532 # ------------------------
10561 # -----------------------------
10564 # for certain cross-compile configurations and native mingw.
10571 *-*-mingw* )
10573 *-*-mingw* ) # actually msys
10576 *-*-cygwin* )
10584 *-*-cygwin* )
10586 *-*-mingw* ) # actually msys
10589 *-*-cygwin* )
10612 *-*-mingw* )
10614 *-*-mingw* ) # actually msys
10627 # Helper functions for option handling. -*- Autoconf -*-
10629 # Copyright (C) 2004-2005, 2007-2009, 2011-2015 Free Software
10643 # _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
10644 # ------------------------------------------
10646 [[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
10649 # _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
10650 # ---------------------------------------
10651 # Set option OPTION-NAME for macro MACRO-NAME, and if there is a
10652 # matching handler defined, dispatch to it. Other OPTION-NAMEs are
10662 # _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
10663 # ------------------------------------------------------------
10664 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
10669 # _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
10670 # -------------------------------------------------------
10671 # Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
10682 # _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
10683 # ----------------------------------------
10684 # OPTION-LIST is a space-separated list of Libtool options associated
10685 # with MACRO-NAME. If any OPTION has a matching handler declared with
10699 _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
10704 dnl 'shared' nor 'disable-shared' was passed, we enable building of shared
10706 _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
10707 _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
10708 _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
10709 _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
10711 _LT_UNLESS_OPTIONS([LT_INIT], [aix-soname=aix aix-soname=both aix-soname=svr4],
10718 # _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
10719 # -----------------------------------------
10721 [[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
10724 # LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
10725 # -----------------------------------------------
10732 # ------
10743 dnl aclocal-1.4 backwards compatibility:
10747 # win32-dll
10748 # ---------
10750 LT_OPTION_DEFINE([LT_INIT], [win32-dll],
10754 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
10761 test -z "$AS" && AS=as
10764 test -z "$DLLTOOL" && DLLTOOL=dlltool
10767 test -z "$OBJDUMP" && OBJDUMP=objdump
10769 ])# win32-dll
10773 _LT_SET_OPTION([LT_INIT], [win32-dll])
10776 put the 'win32-dll' option into LT_INIT's first parameter.])
10779 dnl aclocal-1.4 backwards compatibility:
10784 # ----------------------------
10785 # implement the --enable-shared flag, and supports the 'shared' and
10786 # 'disable-shared' LT_INIT options.
10791 [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
10793 [p=${PACKAGE-default}
10817 LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
10821 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
10825 [_LT_SET_OPTION([LT_INIT], [disable-shared])
10831 dnl aclocal-1.4 backwards compatibility:
10838 # ----------------------------
10839 # implement the --enable-static flag, and support the 'static' and
10840 # 'disable-static' LT_INIT options.
10845 [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
10847 [p=${PACKAGE-default}
10871 LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
10875 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
10879 [_LT_SET_OPTION([LT_INIT], [disable-static])
10885 dnl aclocal-1.4 backwards compatibility:
10892 # ----------------------------------
10893 # implement the --enable-fast-install flag, and support the 'fast-install'
10894 # and 'disable-fast-install' LT_INIT options.
10898 AC_ARG_ENABLE([fast-install],
10899 [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
10901 [p=${PACKAGE-default}
10924 LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
10925 LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
10929 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
10932 the 'fast-install' option into LT_INIT's first parameter.])
10936 [_LT_SET_OPTION([LT_INIT], [disable-fast-install])
10939 the 'disable-fast-install' option into LT_INIT's first parameter.])
10942 dnl aclocal-1.4 backwards compatibility:
10948 # ----------------------------------
10949 # implement the --with-aix-soname flag, and support the `aix-soname=aix'
10950 # and `aix-soname=both' and `aix-soname=svr4' LT_INIT options. DEFAULT
10956 power*-*-aix[[5-9]]*,yes)
10958 AC_ARG_WITH([aix-soname],
10959 [AS_HELP_STRING([--with-aix-soname=aix|svr4|both],
10965 AC_MSG_ERROR([Unknown argument to --with-aix-soname])
10977 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
10979 if test 64 = "${OBJECT_MODE-32}"; then
10995 LT_OPTION_DEFINE([LT_INIT], [aix-soname=aix], [_LT_WITH_AIX_SONAME([aix])])
10996 LT_OPTION_DEFINE([LT_INIT], [aix-soname=both], [_LT_WITH_AIX_SONAME([both])])
10997 LT_OPTION_DEFINE([LT_INIT], [aix-soname=svr4], [_LT_WITH_AIX_SONAME([svr4])])
11001 # --------------------
11002 # implement the --with-pic flag, and support the 'pic-only' and 'no-pic'
11007 [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@],
11008 [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
11009 [lt_p=${PACKAGE-default}
11030 LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
11031 LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
11035 [_LT_SET_OPTION([LT_INIT], [pic-only])
11038 put the 'pic-only' option into LT_INIT's first parameter.])
11041 dnl aclocal-1.4 backwards compatibility:
11059 # ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
11061 # Copyright (C) 2004-2005, 2007-2008, 2011-2015 Free Software
11076 # -----------------------------
11092 # ------------
11095 # Autoconf-2.59, which quotes differently.
11104 # lt_append(MACRO-NAME, STRING, [SEPARATOR])
11105 # ------------------------------------------
11106 # Redefine MACRO-NAME to hold its former content plus 'SEPARATOR''STRING'.
11108 # to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
11109 # No SEPARATOR is output if MACRO-NAME was previously undefined (different
11120 # lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
11121 # ----------------------------------------------------------
11123 # PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
11135 # lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
11136 # -----------------------------------------------------------------------
11137 # Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
11138 # by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
11141 [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
11148 # -----------------------------
11154 # --------------------------------------------
11160 # ----------------------------------
11167 # lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
11168 # -----------------------------------------------------------------
11176 # --------------------------------------------------------------
11184 # ltversion.m4 -- version numbers -*- Autoconf -*-
11186 # Copyright (C) 2004, 2011-2015 Free Software Foundation, Inc.
11196 # This file is part of GNU Libtool
11208 # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
11210 # Copyright (C) 2004-2005, 2007, 2009, 2011-2015 Free Software
11236 # We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
11308 # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
11309 # serial 11 (pkg-config-0.29.1)
11312 dnl Copyright © 2012-2015 Dan Nicholson <dbn.lists@gmail.com>
11315 dnl it under the terms of the GNU General Public License as published by
11321 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11324 dnl You should have received a copy of the GNU General Public License
11326 dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
11327 dnl 02111-1307, USA.
11329 dnl As a special exception to the GNU General Public License, if you
11335 dnl PKG_PREREQ(MIN-VERSION)
11336 dnl -----------------------
11339 dnl Verify that the version of the pkg-config macros are at least
11340 dnl MIN-VERSION. Unlike PKG_PROG_PKG_CONFIG, which checks the user's
11341 dnl installed version of pkg-config, this checks the developer's version
11346 dnl [m4_fatal([must install pkg-config 0.29 or later before running autoconf/autogen])])
11352 m4_if(m4_version_compare(PKG_MACROS_VERSION, [$1]), -1,
11356 dnl PKG_PROG_PKG_CONFIG([MIN-VERSION])
11357 dnl ----------------------------------
11360 dnl Search for the pkg-config tool and set the PKG_CONFIG variable to
11361 dnl first found in the path. Checks that the version of pkg-config found
11362 dnl is at least MIN-VERSION. If MIN-VERSION is not specified, 0.9.0 is
11364 dnl pkg-config existed.
11366 [m4_pattern_forbid([^_?PKG_[A-Z_]+$])
11369 AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
11370 AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
11371 AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
11374 AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
11376 if test -n "$PKG_CONFIG"; then
11378 AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
11379 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11388 dnl PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
11389 dnl -------------------------------------------------------------------
11401 if test -n "$PKG_CONFIG" && \
11402 AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
11409 dnl ---------------------------------------------
11410 dnl Internal wrapper calling pkg-config via PKG_CONFIG and setting
11413 [if test -n "$$1"; then
11415 elif test -n "$PKG_CONFIG"; then
11417 [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`
11426 dnl ---------------------------
11427 dnl Internal check to see if pkg-config supports short errors.
11430 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11438 dnl PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
11439 dnl [ACTION-IF-NOT-FOUND])
11440 dnl --------------------------------------------------------------
11448 AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
11449 AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
11458 and $1[]_LIBS to avoid the need to call pkg-config.
11459 See the pkg-config man page for more details.])
11465 $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1`
11467 $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1`
11478 installed software in a non-standard prefix.
11485 [The pkg-config script could not be found or is too old. Make sure it
11487 path to pkg-config.
11491 To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl
11502 dnl PKG_CHECK_MODULES_STATIC(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
11503 dnl [ACTION-IF-NOT-FOUND])
11504 dnl ---------------------------------------------------------------------
11508 dnl static libraries enabled. Sets VARIABLE-PREFIX_CFLAGS from --cflags
11509 dnl and VARIABLE-PREFIX_LIBS from --libs.
11518 PKG_CONFIG="$PKG_CONFIG --static"
11525 dnl -------------------------
11529 dnl should install pkg-config .pc files. By default the directory is
11531 dnl DIRECTORY. The user can override through the --with-pkgconfigdir
11536 [pkg-config installation directory @<:@]pkg_default[@:>@])
11538 [AS_HELP_STRING([--with-pkgconfigdir], pkg_description)],,
11547 dnl --------------------------------
11551 dnl module should install arch-independent pkg-config .pc files. By
11554 dnl --with-noarch-pkgconfigdir parameter.
11558 [pkg-config arch-independent installation directory @<:@]pkg_default[@:>@])
11559 AC_ARG_WITH([noarch-pkgconfigdir],
11560 [AS_HELP_STRING([--with-noarch-pkgconfigdir], pkg_description)],,
11568 dnl PKG_CHECK_VAR(VARIABLE, MODULE, CONFIG-VARIABLE,
11569 dnl [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
11570 dnl -------------------------------------------
11573 dnl Retrieves the value of the pkg-config variable for the given module.
11576 AC_ARG_VAR([$1], [value of $3 for $2, overriding pkg-config])dnl
11584 dnl PKG_WITH_MODULES(VARIABLE-PREFIX, MODULES,
11585 dnl [ACTION-IF-FOUND],[ACTION-IF-NOT-FOUND],
11587 dnl ------------------------------------------
11589 dnl Prepare a "--with-" configure option using the lowercase
11590 dnl [VARIABLE-PREFIX] name, merging the behaviour of AC_ARG_WITH and
11604 [yes],[m4_pushdef([with_without], [--without-]with_arg)],
11605 [m4_pushdef([with_without],[--with-]with_arg)])
11623 dnl PKG_HAVE_WITH_MODULES(VARIABLE-PREFIX, MODULES,
11625 dnl -----------------------------------------------
11628 dnl check._[VARIABLE-PREFIX] is exported as make variable.
11637 dnl PKG_HAVE_DEFINE_WITH_MODULES(VARIABLE-PREFIX, MODULES,
11639 dnl ------------------------------------------------------
11642 dnl PKG_WITH_MODULES check. HAVE_[VARIABLE-PREFIX] is exported as make
11652 # Copyright (C) 2002-2020 Free Software Foundation, Inc.
11659 # ----------------------------
11672 # -----------------------------
11679 # -------------------------------
11688 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
11690 # Copyright (C) 2001-2020 Free Software Foundation, Inc.
11716 # are both prefixed by $srcdir. In an in-source build this is usually
11740 # AM_CONDITIONAL -*- Autoconf -*-
11742 # Copyright (C) 1997-2020 Free Software Foundation, Inc.
11748 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
11749 # -------------------------------------
11768 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
11773 # Copyright (C) 1999-2020 Free Software Foundation, Inc.
11788 # ----------------------
11805 [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
11806 [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
11808 [$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
11813 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11816 # instance it was reported that on HP-UX the gcc test will end up
11817 # making a dummy file named 'D' -- because '-MD' means "put the output
11819 rm -rf conftest.dir
11827 # both Tru64's cc and ICC support -MD to output dependencies as a
11835 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
11840 *\ -arch\ *\ -arch\ *) am__universal=true ;;
11844 *\ -arch\ *\ -arch\ *) am__universal=true ;;
11864 # We check with '-c' and '-o' for the sake of the "dashmstdout"
11866 # handle '-M -o', and we need to detect this. Also, some Intel
11868 am__obj=sub/conftest.${OBJEXT-o}
11869 am__minus_obj="-o $am__obj"
11871 gcc)
11876 # After this tag, mechanisms are not by side-effect, so they'll
11885 # This compiler won't grok '-c -o', but also, the minuso test has
11888 am__obj=conftest.${OBJEXT-o}
11896 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11901 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11903 # or remarks (even with -Werror). So we grep stderr for any message
11905 # When given -MP, icc 7.0 and 7.1 complain thusly:
11906 # icc: Command line warning: ignoring option '-M'; no argument required
11908 # icc: Command line remark: option '-MP' not supported
11918 rm -rf conftest.dir
11931 # -------------
11941 # ------------
11943 [AC_ARG_ENABLE([dependency-tracking], [dnl
11945 [--enable-dependency-tracking],
11948 [--disable-dependency-tracking],
11949 [speeds up one-time build])])
11962 # Generate code to set up dependency tracking. -*- Autoconf -*-
11964 # Copyright (C) 1999-2020 Free Software Foundation, Inc.
11971 # ------------------------------
11974 # Older Autoconf quotes --file arguments for eval, but not when files
11975 # are listed without --file. Let's play safe and only enable the eval
11988 am_mf=`AS_ECHO(["$am_mf"]) | sed -e 's/:.*$//'`
11990 # dependency-tracking related rules and includes.
11993 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
11998 && sed -e '/# am--include-marker/d' "$am_filepart" \
11999 | $MAKE -f - am--depfiles]) || am_rc=$?
12001 if test $am_rc -ne 0; then
12003 for automatic dependency tracking. If GNU make was not used, consider
12004 re-running the configure script with MAKE="gmake" (or whatever is
12005 necessary). You can also try re-running configure with the
12006 '--disable-dependency-tracking' option to at least be able to build
12013 rm -f conftest-deps.mk
12019 # -----------------------------
12020 # This macro should only be invoked once -- use via AC_REQUIRE.
12028 [AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"])])
12031 # Copyright (C) 1996-2020 Free Software Foundation, Inc.
12040 [AS_HELP_STRING([--with-dmalloc],
12046 LIBS="$LIBS -ldmalloc"
12047 LDFLAGS="$LDFLAGS -g"
12053 # Do all the work for Automake. -*- Autoconf -*-
12055 # Copyright (C) 1996-2020 Free Software Foundation, Inc.
12070 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
12072 # -----------------------------------------------
12074 # call (pre autoconf-2.50), which is being phased out. PACKAGE
12085 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
12089 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
12090 # is not polluted with repeated "-I."
12091 AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
12093 if test -f $srcdir/config.status; then
12099 if test -z "$CYGPATH_W"; then
12100 if (cygpath --version) >/dev/null 2>/dev/null; then
12101 CYGPATH_W='cygpath -w'
12109 dnl Distinguish between old-style and new-style calls.
12112 [$0: two- and three-arguments forms are deprecated.])
12113 m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
12117 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
12125 _AM_IF_OPTION([no-define],,
12132 AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
12134 AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
12142 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
12143 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
12150 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
12151 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
12153 _AM_IF_OPTION([no-dependencies],,
12177 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
12179 # POSIX will say in a future version that running "rm -f" with no argument
12187 if rm -f && rm -fr && rm -rf; then : OK; else
12192 on the command line, even when the '-f' option is present. This is contrary
12196 Please tell bug-automake@gnu.org about your system, including the value
12209 You can download and install GNU coreutils to get an 'rm' implementation
12210 that behaves properly: <https://www.gnu.org/software/coreutils/>.
12214 to "yes", and re-run configure.
12221 dnl backward compatibility and to allow trailing 'dnl'-style comments
12231 # When config.status generates a header, we must update the stamp-h file.
12250 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
12252 # Copyright (C) 2001-2020 Free Software Foundation, Inc.
12259 # ------------------
12266 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
12268 install_sh="\${SHELL} $am_aux_dir/install-sh"
12273 # Copyright (C) 2003-2020 Free Software Foundation, Inc.
12279 # Check whether the underlying file-system supports filenames
12280 # with a leading dot. For instance MS-DOS doesn't.
12282 [rm -rf .tst 2>/dev/null
12284 if test -d .tst; then
12292 # Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
12295 # Copyright (C) 1996-2020 Free Software Foundation, Inc.
12301 # AM_MAINTAINER_MODE([DEFAULT-MODE])
12302 # ----------------------------------
12303 # Control maintainer-specific portions of Makefiles.
12306 # can override the default with the --enable/--disable switch.
12313 AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
12314 dnl maintainer-mode's default is 'disable' unless 'enable' is passed
12315 AC_ARG_ENABLE([maintainer-mode],
12316 [AS_HELP_STRING([--]am_maintainer_other[-maintainer-mode],
12328 # Check to see how 'make' treats includes. -*- Autoconf -*-
12330 # Copyright (C) 2001-2020 Free Software Foundation, Inc.
12337 # -----------------
12341 [AC_MSG_CHECKING([whether ${MAKE-make} supports the include directive])
12351 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
12352 echo 'include confinc.mk # ignored' > confmf.GNU
12354 for s in GNU BSD; do
12355 AM_RUN_LOG([${MAKE-make} -f confmf.$s && cat confinc.out])
12366 rm -f confinc.* confmf.*
12371 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
12373 # Copyright (C) 1997-2020 Free Software Foundation, Inc.
12380 # ------------------------------
12383 $1=${$1-"${am_missing_run}$2"}
12387 # ------------------
12402 if eval "$MISSING --is-lightweight"; then
12410 # Helper functions for option handling. -*- Autoconf -*-
12412 # Copyright (C) 2001-2020 Free Software Foundation, Inc.
12419 # -----------------------
12421 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
12424 # --------------------
12430 # ------------------------
12431 # OPTIONS is a space-separated list of Automake options.
12435 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
12436 # -------------------------------------------
12437 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
12441 # Copyright (C) 1999-2020 Free Software Foundation, Inc.
12448 # ---------------
12456 [whether $CC understands -c and -o together],
12461 # compilers refuse to overwrite an existing .o file with -o,
12465 if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \
12466 && test -f conftest2.$ac_objext; then
12473 rm -f core conftest*
12479 # A longer-term fix would be to have automake use am__CC in this case,
12488 # Copyright (C) 2001-2020 Free Software Foundation, Inc.
12495 # -------------------
12505 # Check to make sure that the build environment is sane. -*- Autoconf -*-
12507 # Copyright (C) 1996-2020 Free Software Foundation, Inc.
12514 # ---------------
12531 # arguments. Must try -L first in case configure is actually a
12539 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
12541 # -L didn't work.
12542 set X `ls -t "$srcdir/configure" conftest.file`
12551 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
12554 if test "$[2]" = conftest.file || test $am_try -eq 2; then
12580 if test -n "$am_sleep_pid"; then
12585 rm -f conftest.file
12588 # Copyright (C) 2009-2020 Free Software Foundation, Inc.
12595 # --------------------------
12599 [AC_ARG_ENABLE([silent-rules], [dnl
12601 [--enable-silent-rules],
12604 [--disable-silent-rules],
12616 am_make=${MAKE-make}
12625 .PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
12648 # Copyright (C) 2001-2020 Free Software Foundation, Inc.
12655 # ---------------------
12656 # One issue with vendor 'install' (even GNU) is that you can't
12658 # annoying in cross-compiling environments, where the build's strip
12660 # Fortunately install-sh will honor a STRIPPROG variable, so we
12661 # always use install-sh in "make install-strip", and initialize
12666 # run "make install-strip". However 'strip' might not be the right
12667 # tool to use in cross-compilation environments, therefore Automake
12673 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
12676 # Copyright (C) 2006-2020 Free Software Foundation, Inc.
12683 # ---------------------------
12689 # --------------------------
12693 # Check how to create a tarball. -*- Autoconf -*-
12695 # Copyright (C) 2004-2020 Free Software Foundation, Inc.
12702 # --------------------
12707 # writing to stdout a FORMAT-tarball containing the directory
12717 # in the wild :-( We should find a proper way to deprecate it ...
12718 AC_SUBST([AMTAR], ['$${TAR-tar}'])
12724 [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
12728 [# The POSIX 1988 'ustar' format is defined with fixed-size fields.
12732 am_max_uid=2097151 # 2^21 - 1
12735 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
12738 am_uid=`id -u || echo unknown`
12739 am_gid=`id -g || echo unknown`
12741 if test $am_uid -le $am_max_uid; then
12748 if test $am_gid -le $am_max_gid; then
12764 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
12770 AM_RUN_LOG([$_am_tar --version]) && break
12772 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
12773 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
12774 am__untar="$_am_tar -xf -"
12777 # Must skip GNU tar: if it does not support --format= it doesn't create
12779 (tar --version) >/dev/null 2>&1 && continue
12780 am__tar='tar chf - "$$tardir"'
12781 am__tar_='tar chf - "$tardir"'
12782 am__untar='tar xf -'
12785 am__tar='pax -L -x $1 -w "$$tardir"'
12786 am__tar_='pax -L -x $1 -w "$tardir"'
12787 am__untar='pax -r'
12790 am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
12791 am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
12792 am__untar='cpio -i -H $1 -d'
12803 test -n "${am_cv_prog_tar_$1}" && break
12806 rm -rf conftest.dir
12810 rm -rf conftest.dir
12811 if test -s conftest.tar; then
12817 rm -rf conftest.dir