summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Hatle <mark.hatle@amd.com>2024-11-24 08:45:34 -0700
committerMark Hatle <mark.hatle@amd.com>2024-11-24 08:45:34 -0700
commitfcc7bcc417a488ac38909d6a78528536c18d383b (patch)
tree729754e1337dd1b9cc37cf650edf3870c3d156b3
parentab07add28ff4c8acf68157de49ff29f59238e4e0 (diff)
downloadmeta-xilinx-fcc7bcc417a488ac38909d6a78528536c18d383b.tar.gz
layer.conf: Move from scarthgap to styhead walnascar, bring in old recipes for parse
binutils-2.42 and gstreamer-1.22.12 were pulled in from the latest poky scarthgap, as of commit dce4163d42f7036ea216b52b9135968d51bec4c1. Signed-off-by: Mark Hatle <mark.hatle@amd.com>
-rw-r--r--meta-microblaze/conf/layer.conf7
-rw-r--r--meta-microblaze/recipes-devtools/binutils/binutils-2.42.inc40
-rw-r--r--meta-microblaze/recipes-devtools/binutils/binutils-cross-canadian.inc32
-rw-r--r--meta-microblaze/recipes-devtools/binutils/binutils-cross-canadian_2.42.bb3
-rw-r--r--meta-microblaze/recipes-devtools/binutils/binutils-cross-testsuite_2.42.bb83
-rw-r--r--meta-microblaze/recipes-devtools/binutils/binutils-cross.inc39
-rw-r--r--meta-microblaze/recipes-devtools/binutils/binutils-cross_2.42.bb3
-rw-r--r--meta-microblaze/recipes-devtools/binutils/binutils-crosssdk_2.42.bb11
-rw-r--r--meta-microblaze/recipes-devtools/binutils/binutils.inc207
-rw-r--r--meta-microblaze/recipes-devtools/binutils/binutils/0001-binutils-crosssdk-Generate-relocatable-SDKs.patch75
-rw-r--r--meta-microblaze/recipes-devtools/binutils/binutils/0002-binutils-cross-Do-not-generate-linker-script-directo.patch59
-rw-r--r--meta-microblaze/recipes-devtools/binutils/binutils/0003-binutils-nativesdk-Search-for-alternative-ld.so.conf.patch95
-rw-r--r--meta-microblaze/recipes-devtools/binutils/binutils/0004-Point-scripts-location-to-libdir.patch39
-rw-r--r--meta-microblaze/recipes-devtools/binutils/binutils/0005-don-t-let-the-distro-compiler-point-to-the-wrong-ins.patch32
-rw-r--r--meta-microblaze/recipes-devtools/binutils/binutils/0006-warn-for-uses-of-system-directories-when-cross-linki.patch287
-rw-r--r--meta-microblaze/recipes-devtools/binutils/binutils/0007-fix-the-incorrect-assembling-for-ppc-wait-mnemonic.patch37
-rw-r--r--meta-microblaze/recipes-devtools/binutils/binutils/0008-Use-libtool-2.4.patch34406
-rw-r--r--meta-microblaze/recipes-devtools/binutils/binutils/0009-Fix-rpath-in-libtool-when-sysroot-is-enabled.patch49
-rw-r--r--meta-microblaze/recipes-devtools/binutils/binutils/0010-sync-with-OE-libtool-changes.patch86
-rw-r--r--meta-microblaze/recipes-devtools/binutils/binutils/0011-Check-for-clang-before-checking-gcc-version.patch45
-rw-r--r--meta-microblaze/recipes-devtools/binutils/binutils/0012-Only-generate-an-RPATH-entry-if-LD_RUN_PATH-is-not-e.patch38
-rw-r--r--meta-microblaze/recipes-devtools/binutils/binutils/0013-Define-alignof-using-_Alignof-when-using-C11-or-newe.patch48
-rw-r--r--meta-microblaze/recipes-devtools/binutils/binutils/0014-Remove-duplicate-pe-dll.o-entry-deom-targ_extra_ofil.patch32
-rw-r--r--meta-microblaze/recipes-devtools/binutils/binutils/0015-gprofng-change-use-of-bignum-to-bigint.patch17
-rw-r--r--meta-microblaze/recipes-devtools/binutils/binutils_2.42.bb76
-rw-r--r--meta-microblaze/recipes-devtools/gcc/microblaze-block.inc1
-rw-r--r--meta-microblaze/recipes-support/attr/attr/microblaze-symver.patch32
-rw-r--r--meta-microblaze/recipes-support/attr/attr_%.bbappend2
-rw-r--r--meta-vitis-tc/conf/layer.conf2
-rw-r--r--meta-xilinx-bsp/conf/layer.conf2
-rw-r--r--meta-xilinx-contrib/conf/layer.conf2
-rw-r--r--meta-xilinx-core/conf/layer.conf2
-rw-r--r--meta-xilinx-demos/conf/layer.conf2
-rw-r--r--meta-xilinx-mali400/conf/layer.conf2
-rw-r--r--meta-xilinx-multimedia/conf/layer.conf14
-rw-r--r--meta-xilinx-multimedia/recipes-multimedia/gstreamer/gst-devtools/0001-connect-has-a-different-signature-on-musl.patch39
-rw-r--r--meta-xilinx-multimedia/recipes-multimedia/gstreamer/gst-devtools_1.22.12.bb52
-rw-r--r--meta-xilinx-multimedia/recipes-multimedia/gstreamer/gstreamer1.0-libav_1.22.12.bb28
-rw-r--r--meta-xilinx-multimedia/recipes-multimedia/gstreamer/gstreamer1.0-omx_1.22.12.bb47
-rw-r--r--meta-xilinx-multimedia/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0001-fix-maybe-uninitialized-warnings-when-compiling-with.patch26
-rw-r--r--meta-xilinx-multimedia/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0002-avoid-including-sys-poll.h-directly.patch28
-rw-r--r--meta-xilinx-multimedia/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0004-opencv-resolve-missing-opencv-data-dir-in-yocto-buil.patch33
-rw-r--r--meta-xilinx-multimedia/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.22.12.bb165
-rw-r--r--meta-xilinx-multimedia/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0001-ENGR00312515-get-caps-from-src-pad-when-query-caps.patch42
-rw-r--r--meta-xilinx-multimedia/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0002-ssaparse-enhance-SSA-text-lines-parsing.patch227
-rw-r--r--meta-xilinx-multimedia/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0003-viv-fb-Make-sure-config.h-is-included.patch30
-rw-r--r--meta-xilinx-multimedia/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.22.12.bb96
-rw-r--r--meta-xilinx-multimedia/recipes-multimedia/gstreamer/gstreamer1.0-plugins-common.inc47
-rw-r--r--meta-xilinx-multimedia/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good/0001-qt-include-ext-qt-gstqtgl.h-instead-of-gst-gl-gstglf.patch54
-rw-r--r--meta-xilinx-multimedia/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good/0001-v4l2-Define-ioctl_req_t-for-posix-linux-case.patch38
-rw-r--r--meta-xilinx-multimedia/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good_1.22.12.bb81
-rw-r--r--meta-xilinx-multimedia/recipes-multimedia/gstreamer/gstreamer1.0-plugins-license.inc19
-rw-r--r--meta-xilinx-multimedia/recipes-multimedia/gstreamer/gstreamer1.0-plugins-packaging.inc73
-rw-r--r--meta-xilinx-multimedia/recipes-multimedia/gstreamer/gstreamer1.0-plugins-ugly_1.22.12.bb47
-rw-r--r--meta-xilinx-multimedia/recipes-multimedia/gstreamer/gstreamer1.0-python_1.22.12.bb30
-rw-r--r--meta-xilinx-multimedia/recipes-multimedia/gstreamer/gstreamer1.0-rtsp-server_1.22.12.bb31
-rw-r--r--meta-xilinx-multimedia/recipes-multimedia/gstreamer/gstreamer1.0-vaapi_1.22.12.bb53
-rw-r--r--meta-xilinx-multimedia/recipes-multimedia/gstreamer/gstreamer1.0/0001-tests-respect-the-idententaion-used-in-meson.patch34
-rw-r--r--meta-xilinx-multimedia/recipes-multimedia/gstreamer/gstreamer1.0/0002-tests-add-support-for-install-the-tests.patch107
-rw-r--r--meta-xilinx-multimedia/recipes-multimedia/gstreamer/gstreamer1.0/0003-tests-use-a-dictionaries-for-environment.patch48
-rw-r--r--meta-xilinx-multimedia/recipes-multimedia/gstreamer/gstreamer1.0/0004-tests-add-helper-script-to-run-the-installed_tests.patch72
-rwxr-xr-xmeta-xilinx-multimedia/recipes-multimedia/gstreamer/gstreamer1.0/run-ptest26
-rw-r--r--meta-xilinx-multimedia/recipes-multimedia/gstreamer/gstreamer1.0_1.22.12.bb74
-rw-r--r--meta-xilinx-standalone-sdt/conf/layer.conf2
-rw-r--r--meta-xilinx-standalone/conf/layer.conf2
-rw-r--r--meta-xilinx-vendor/conf/layer.conf2
-rw-r--r--meta-xilinx-virtualization/conf/layer.conf2
67 files changed, 37549 insertions, 13 deletions
diff --git a/meta-microblaze/conf/layer.conf b/meta-microblaze/conf/layer.conf
index f7aaf40f..86e3aedc 100644
--- a/meta-microblaze/conf/layer.conf
+++ b/meta-microblaze/conf/layer.conf
@@ -11,7 +11,7 @@ BBFILE_PRIORITY_xilinx-microblaze = "5"
11 11
12LAYERDEPENDS_xilinx-microblaze = "core" 12LAYERDEPENDS_xilinx-microblaze = "core"
13 13
14LAYERSERIES_COMPAT_xilinx-microblaze = "scarthgap" 14LAYERSERIES_COMPAT_xilinx-microblaze = "styhead walnascar"
15 15
16# Microblaze does not support stack-protector! 16# Microblaze does not support stack-protector!
17SECURITY_STACK_PROTECTOR:microblaze = "" 17SECURITY_STACK_PROTECTOR:microblaze = ""
@@ -20,7 +20,10 @@ OLDEST_KERNEL:microblaze = "3.15"
20 20
21INHERIT += "rust_microblaze" 21INHERIT += "rust_microblaze"
22 22
23# We want to use gcc 12.x for the microblaze stuff, and 14.x for any host tooling 23# We want to use binutils 2.42 for the microblaze stuff
24BINUVERSION:microblaze = "2.42%"
25
26# We want to use gcc 13.x for the microblaze stuff, and 14.x for any host tooling
24GCCVERSION:microblaze = "13.3.%" 27GCCVERSION:microblaze = "13.3.%"
25SDKGCCVERSION:microblaze = "14.%" 28SDKGCCVERSION:microblaze = "14.%"
26 29
diff --git a/meta-microblaze/recipes-devtools/binutils/binutils-2.42.inc b/meta-microblaze/recipes-devtools/binutils/binutils-2.42.inc
new file mode 100644
index 00000000..5d5ba3d6
--- /dev/null
+++ b/meta-microblaze/recipes-devtools/binutils/binutils-2.42.inc
@@ -0,0 +1,40 @@
1LIC_FILES_CHKSUM="\
2 file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552\
3 file://COPYING.LIB;md5=9f604d8a4f8e74f4f5140845a21b6674\
4 file://COPYING3;md5=d32239bcb673463ab874e80d47fae504\
5 file://COPYING3.LIB;md5=6a6a8e020838b23406c81b19c1d46df6\
6 file://gas/COPYING;md5=d32239bcb673463ab874e80d47fae504\
7 file://include/COPYING;md5=59530bdf33659b29e73d4adb9f9f6552\
8 file://include/COPYING3;md5=d32239bcb673463ab874e80d47fae504\
9 file://libiberty/COPYING.LIB;md5=a916467b91076e631dd8edb7424769c7\
10 file://bfd/COPYING;md5=d32239bcb673463ab874e80d47fae504\
11 "
12
13# When upgrading to 2.42, please make sure there is no trailing .0, so
14# that upstream version check can work correctly.
15PV = "2.42"
16CVE_VERSION = "2.42"
17SRCBRANCH ?= "binutils-2_42-branch"
18
19UPSTREAM_CHECK_GITTAGREGEX = "binutils-(?P<pver>\d+_(\d_?)*)"
20
21CVE_STATUS[CVE-2023-25584] = "cpe-incorrect: Applies only for version 2.40 and earlier"
22
23SRCREV ?= "8a6764d35e5c15d78de8aef8f27af3eefd9d7544"
24BINUTILS_GIT_URI ?= "git://sourceware.org/git/binutils-gdb.git;branch=${SRCBRANCH};protocol=https"
25SRC_URI = "\
26 ${BINUTILS_GIT_URI} \
27 file://0004-Point-scripts-location-to-libdir.patch \
28 file://0005-don-t-let-the-distro-compiler-point-to-the-wrong-ins.patch \
29 file://0006-warn-for-uses-of-system-directories-when-cross-linki.patch \
30 file://0007-fix-the-incorrect-assembling-for-ppc-wait-mnemonic.patch \
31 file://0008-Use-libtool-2.4.patch \
32 file://0009-Fix-rpath-in-libtool-when-sysroot-is-enabled.patch \
33 file://0010-sync-with-OE-libtool-changes.patch \
34 file://0011-Check-for-clang-before-checking-gcc-version.patch \
35 file://0012-Only-generate-an-RPATH-entry-if-LD_RUN_PATH-is-not-e.patch \
36 file://0013-Define-alignof-using-_Alignof-when-using-C11-or-newe.patch \
37 file://0014-Remove-duplicate-pe-dll.o-entry-deom-targ_extra_ofil.patch \
38 file://0015-gprofng-change-use-of-bignum-to-bigint.patch \
39"
40S = "${WORKDIR}/git"
diff --git a/meta-microblaze/recipes-devtools/binutils/binutils-cross-canadian.inc b/meta-microblaze/recipes-devtools/binutils/binutils-cross-canadian.inc
new file mode 100644
index 00000000..62ebb3f5
--- /dev/null
+++ b/meta-microblaze/recipes-devtools/binutils/binutils-cross-canadian.inc
@@ -0,0 +1,32 @@
1inherit cross-canadian
2
3SUMMARY = "GNU binary utilities (cross-canadian for ${TARGET_ARCH} target)"
4PN = "binutils-cross-canadian-${TRANSLATED_TARGET_ARCH}"
5BPN = "binutils"
6
7DEPENDS = "flex-native bison-native virtual/${HOST_PREFIX}gcc virtual/nativesdk-libc nativesdk-zlib nativesdk-gettext nativesdk-flex"
8EXTRA_OECONF += "--with-sysroot=${SDKPATH}/sysroots/${TUNE_PKGARCH}${TARGET_VENDOR}-${TARGET_OS} \
9 --enable-poison-system-directories \
10 "
11
12# We have to point binutils at a sysroot but we don't need to rebuild if this changes
13# e.g. we switch between different machines with different tunes.
14EXTRA_OECONF[vardepsexclude] = "TUNE_PKGARCH"
15
16do_install () {
17 autotools_do_install
18
19 # We're not interested in the libs or headers, these would come from the
20 # nativesdk or target version of the binutils recipe
21 rm -rf ${D}${prefix}/${TARGET_SYS}
22 rm -f ${D}${libdir}/libbfd*
23 rm -f ${D}${libdir}/libiberty*
24 rm -f ${D}${libdir}/libopcodes*
25 rm -f ${D}${includedir}/*.h
26 rm -f ${D}${sysconfdir}/gprofng.rc
27 rmdir ${D}${sysconfdir} || :
28
29 cross_canadian_bindirlinks
30}
31
32BBCLASSEXTEND = ""
diff --git a/meta-microblaze/recipes-devtools/binutils/binutils-cross-canadian_2.42.bb b/meta-microblaze/recipes-devtools/binutils/binutils-cross-canadian_2.42.bb
new file mode 100644
index 00000000..5dbaa030
--- /dev/null
+++ b/meta-microblaze/recipes-devtools/binutils/binutils-cross-canadian_2.42.bb
@@ -0,0 +1,3 @@
1require binutils.inc
2require binutils-${PV}.inc
3require binutils-cross-canadian.inc
diff --git a/meta-microblaze/recipes-devtools/binutils/binutils-cross-testsuite_2.42.bb b/meta-microblaze/recipes-devtools/binutils/binutils-cross-testsuite_2.42.bb
new file mode 100644
index 00000000..630815c7
--- /dev/null
+++ b/meta-microblaze/recipes-devtools/binutils/binutils-cross-testsuite_2.42.bb
@@ -0,0 +1,83 @@
1require binutils.inc
2require binutils-${PV}.inc
3
4BPN = "binutils"
5
6DEPENDS += "dejagnu-native expect-native"
7DEPENDS += "binutils-native"
8
9deltask do_compile
10deltask do_install
11
12inherit nopackages
13
14do_configure[dirs] += "${B}/ld ${B}/bfd"
15do_configure() {
16 # create config.h, oe enables initfini-array by default
17 echo "#define HAVE_INITFINI_ARRAY" > ${B}/ld/config.h
18}
19
20# target depends
21DEPENDS += "virtual/${TARGET_PREFIX}binutils"
22DEPENDS += "virtual/${TARGET_PREFIX}gcc"
23DEPENDS += "virtual/${MLPREFIX}${TARGET_PREFIX}compilerlibs"
24DEPENDS += "virtual/${MLPREFIX}libc"
25
26python check_prepare() {
27 def suffix_sys(sys):
28 if sys.endswith("-linux"):
29 return sys + "-gnu"
30 return sys
31
32 def generate_site_exp(d, suite):
33 content = []
34 content.append('set srcdir "{0}/{1}"'.format(d.getVar("S"), suite))
35 content.append('set objdir "{0}/{1}"'.format(d.getVar("B"), suite))
36 content.append('set build_alias "{0}"'.format(d.getVar("BUILD_SYS")))
37 content.append('set build_triplet {0}'.format(d.getVar("BUILD_SYS")))
38 # use BUILD here since HOST=TARGET
39 content.append('set host_alias "{0}"'.format(d.getVar("BUILD_SYS")))
40 content.append('set host_triplet {0}'.format(d.getVar("BUILD_SYS")))
41 content.append('set target_alias "{0}"'.format(d.getVar("TARGET_SYS")))
42 content.append('set target_triplet {0}'.format(suffix_sys(d.getVar("TARGET_SYS"))))
43 content.append("set development true")
44 content.append("set experimental false")
45
46 content.append(d.expand('set CXXFILT "${TARGET_PREFIX}c++filt"'))
47 content.append(d.expand('set CC "${TARGET_PREFIX}gcc --sysroot=${STAGING_DIR_TARGET} ${TUNE_CCARGS}"'))
48 content.append(d.expand('set CXX "${TARGET_PREFIX}g++ --sysroot=${STAGING_DIR_TARGET} ${TUNE_CCARGS}"'))
49 content.append(d.expand('set CFLAGS_FOR_TARGET "--sysroot=${STAGING_DIR_TARGET} ${TUNE_CCARGS}"'))
50 content.append(d.expand('set LD "${TARGET_PREFIX}ld ${TUNE_LDARGS}"'))
51 content.append(d.expand('set LDFLAGS_FOR_TARGET "${TUNE_LDARGS}"'))
52
53 if suite == "ld" and d.getVar("TUNE_ARCH") == "mips64":
54 # oe patches binutils to have the default mips64 abi as 64bit, but
55 # skips gas causing issues with the ld test suite (which uses gas)
56 content.append('set ASFLAGS "-64"')
57
58 return "\n".join(content)
59
60 for i in ["binutils", "gas", "ld"]:
61 builddir = os.path.join(d.getVar("B"), i)
62 if not os.path.isdir(builddir):
63 os.makedirs(builddir)
64 with open(os.path.join(builddir, "site.exp"), "w") as f:
65 f.write(generate_site_exp(d, i))
66}
67
68CHECK_TARGETS ??= "binutils gas ld"
69
70do_check[dirs] = "${B} ${B}/binutils ${B}/gas ${B}/ld"
71do_check[prefuncs] += "check_prepare"
72do_check[nostamp] = "1"
73do_check() {
74 export LC_ALL=C
75 for i in ${CHECK_TARGETS}; do
76 (cd ${B}/$i; runtest \
77 --tool $i \
78 --srcdir ${S}/$i/testsuite \
79 --ignore 'plugin.exp' \
80 || true)
81 done
82}
83addtask check after do_configure
diff --git a/meta-microblaze/recipes-devtools/binutils/binutils-cross.inc b/meta-microblaze/recipes-devtools/binutils/binutils-cross.inc
new file mode 100644
index 00000000..835d4fa6
--- /dev/null
+++ b/meta-microblaze/recipes-devtools/binutils/binutils-cross.inc
@@ -0,0 +1,39 @@
1inherit cross
2PROVIDES = "virtual/${TARGET_PREFIX}binutils"
3
4PN = "binutils-cross-${TARGET_ARCH}"
5BPN = "binutils"
6
7# Ignore how TARGET_ARCH is computed.
8TARGET_ARCH[vardepvalue] = "${TARGET_ARCH}"
9
10INHIBIT_DEFAULT_DEPS = "1"
11INHIBIT_AUTOTOOLS_DEPS = "1"
12
13SRC_URI += "file://0002-binutils-cross-Do-not-generate-linker-script-directo.patch"
14
15# Specify lib-path else we use a load of search dirs which we don't use
16# and mean the linker scripts have to be relocated.
17EXTRA_OECONF += "--with-sysroot=${STAGING_DIR_TARGET} \
18 --disable-install-libbfd \
19 --disable-gprofng \
20 --enable-poison-system-directories \
21 --with-lib-path==${target_base_libdir}:=${target_libdir} \
22 "
23do_install () {
24 oe_runmake 'DESTDIR=${D}' install
25
26 # We don't really need these, so we'll remove them...
27 rm -rf ${D}${STAGING_DIR_NATIVE}${libdir_native}/libiberty.a
28 rm -rf ${D}${STAGING_DIR_NATIVE}${prefix_native}/${TARGET_SYS}
29 rm -rf ${D}${STAGING_DIR_NATIVE}${prefix_native}/lib/ldscripts
30 rm -rf ${D}${STAGING_DIR_NATIVE}${prefix_native}/share/info
31 rm -rf ${D}${STAGING_DIR_NATIVE}${prefix_native}/share/locale
32 rm -rf ${D}${STAGING_DIR_NATIVE}${prefix_native}/share/man
33 rmdir ${D}${STAGING_DIR_NATIVE}${prefix_native}/share || :
34 rmdir ${D}${STAGING_DIR_NATIVE}${prefix_native}/${libdir}/gcc-lib || :
35 rmdir ${D}${STAGING_DIR_NATIVE}${prefix_native}/${libdir}64/gcc-lib || :
36 rmdir ${D}${STAGING_DIR_NATIVE}${prefix_native}/${libdir} || :
37 rmdir ${D}${STAGING_DIR_NATIVE}${prefix_native}/${libdir}64 || :
38 rmdir ${D}${STAGING_DIR_NATIVE}${prefix_native}/${prefix} || :
39}
diff --git a/meta-microblaze/recipes-devtools/binutils/binutils-cross_2.42.bb b/meta-microblaze/recipes-devtools/binutils/binutils-cross_2.42.bb
new file mode 100644
index 00000000..fbd1f7d2
--- /dev/null
+++ b/meta-microblaze/recipes-devtools/binutils/binutils-cross_2.42.bb
@@ -0,0 +1,3 @@
1require binutils.inc
2require binutils-${PV}.inc
3require binutils-cross.inc
diff --git a/meta-microblaze/recipes-devtools/binutils/binutils-crosssdk_2.42.bb b/meta-microblaze/recipes-devtools/binutils/binutils-crosssdk_2.42.bb
new file mode 100644
index 00000000..67526593
--- /dev/null
+++ b/meta-microblaze/recipes-devtools/binutils/binutils-crosssdk_2.42.bb
@@ -0,0 +1,11 @@
1require binutils-cross_${PV}.bb
2
3inherit crosssdk
4
5PN = "binutils-crosssdk-${SDK_SYS}"
6
7SRC_URI += "file://0001-binutils-crosssdk-Generate-relocatable-SDKs.patch"
8
9do_configure:prepend () {
10 sed -i 's#/usr/local/lib /lib /usr/lib#${SDKPATHNATIVE}/lib ${SDKPATHNATIVE}/usr/lib /usr/local/lib /lib /usr/lib#' ${S}/ld/configure.tgt
11}
diff --git a/meta-microblaze/recipes-devtools/binutils/binutils.inc b/meta-microblaze/recipes-devtools/binutils/binutils.inc
new file mode 100644
index 00000000..e176b5cf
--- /dev/null
+++ b/meta-microblaze/recipes-devtools/binutils/binutils.inc
@@ -0,0 +1,207 @@
1SUMMARY = "GNU binary utilities"
2DESCRIPTION = "The GNU Binutils are a collection of binary tools. \
3The main ones are ld (GNU Linker), and as (GNU Assembler). This \
4package also includes addition tools such as addr2line (Converts \
5addresses into filenames and line numbers), ar (utility for creating, \
6modifying and extracting archives), nm (list symbols in object \
7files), objcopy (copy and translate object files), objdump (Display \
8object information), and other tools and related libraries."
9HOMEPAGE = "http://www.gnu.org/software/binutils/"
10BUGTRACKER = "http://sourceware.org/bugzilla/"
11SECTION = "devel"
12LICENSE = "GPL-3.0-only"
13
14DEPENDS = "flex-native bison-native zlib-native gnu-config-native autoconf-native"
15
16inherit autotools gettext multilib_header pkgconfig texinfo
17
18FILES:${PN} = " \
19 ${bindir}/${TARGET_PREFIX}* \
20 ${libdir}/lib*.so.* \
21 ${libdir}/bfd-plugins/lib*.so \
22 ${libdir}/lib*-${PV}*.so \
23 ${prefix}/${TARGET_SYS}/bin/* \
24 ${bindir}/embedspu"
25
26RPROVIDES:${PN} += "${PN}-symlinks"
27
28FILES:${PN}-dev = " \
29 ${includedir} \
30 ${libdir}/*.la \
31 ${libdir}/libbfd.so \
32 ${libdir}/libctf.so \
33 ${libdir}/libctf-nobfd.so \
34 ${libdir}/libopcodes.so"
35
36FILES:${PN}-staticdev += "${libdir}/gprofng/*.a"
37
38# Rather than duplicating multiple entries for these, make one
39# list and reuse it.
40
41GPROFNGS = " \
42 gp-archive \
43 gp-collect-app \
44 gp-display-html \
45 gp-display-src \
46 gp-display-text \
47 gprofng \
48"
49
50# it disables gprofng for clang and musl in the bb file
51GPROFNGS:toolchain-clang = ""
52GPROFNGS:libc-musl = ""
53
54GPROFNG_ALTS ?= ""
55GPROFNG_ALTS:x86 = "${GPROFNGS}"
56GPROFNG_ALTS:x86-64 = "${GPROFNGS}"
57GPROFNG_ALTS:aarch64 = "${GPROFNGS}"
58
59LDGOLD_ALTS ?= "ld.gold dwp"
60LDGOLD_ALTS:riscv64 = ""
61LDGOLD_ALTS:riscv32 = ""
62LDGOLD_ALTS:loongarch64 = ""
63LDGOLD_ALTS:libc-glibc:mipsarch = ""
64
65USE_ALTERNATIVES_FOR = " \
66 addr2line \
67 ar \
68 as \
69 c++filt \
70 elfedit \
71 gprof \
72 ${GPROFNG_ALTS} \
73 ld \
74 ld.bfd \
75 ${LDGOLD_ALTS} \
76 nm \
77 objcopy \
78 objdump \
79 ranlib \
80 readelf \
81 size \
82 strings \
83 strip \
84"
85
86python do_package:prepend() {
87 make_alts = d.getVar("USE_ALTERNATIVES_FOR") or ""
88 prefix = d.getVar("TARGET_PREFIX")
89 bindir = d.getVar("bindir")
90 for alt in make_alts.split():
91 d.setVarFlag('ALTERNATIVE_TARGET', alt, bindir + "/" + prefix + alt)
92 d.setVarFlag('ALTERNATIVE_LINK_NAME', alt, bindir + "/" + alt)
93}
94
95B = "${S}/build.${HOST_SYS}.${TARGET_SYS}"
96
97EXTRA_OECONF = "--program-prefix=${TARGET_PREFIX} \
98 --disable-werror \
99 --enable-deterministic-archives \
100 --enable-plugins \
101 --enable-new-dtags \
102 --disable-gdb \
103 --disable-gdbserver \
104 --disable-libdecnumber \
105 --disable-readline \
106 --disable-sim \
107 ${LDGOLD} \
108 ${EXTRA_TARGETS} \
109 ${@bb.utils.contains('DISTRO_FEATURES', 'multiarch', '--enable-64-bit-bfd', '', d)}"
110
111EXTRA_TARGETS = ""
112EXTRA_TARGETS:x86-64 = " --enable-targets=x86_64-pe,x86_64-pep "
113EXTRA_TARGETS:class-native = ""
114
115LDGOLD:class-native = ""
116LDGOLD:class-crosssdk = ""
117LDGOLD:libc-glibc:mipsarch = ""
118LDGOLD ?= "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', '--enable-gold=default --enable-threads', '--enable-gold --enable-ld=default --enable-threads', d)}"
119
120
121# This is necessary due to a bug in the binutils Makefiles
122# EXTRA_OEMAKE = "configure-build-libiberty all"
123
124export AR = "${HOST_PREFIX}ar"
125export AS = "${HOST_PREFIX}as"
126export LD = "${HOST_PREFIX}ld"
127export NM = "${HOST_PREFIX}nm"
128export RANLIB = "${HOST_PREFIX}ranlib"
129export OBJCOPY = "${HOST_PREFIX}objcopy"
130export OBJDUMP = "${HOST_PREFIX}objdump"
131
132export AR_FOR_TARGET = "${TARGET_PREFIX}ar"
133export AS_FOR_TARGET = "${TARGET_PREFIX}as"
134export LD_FOR_TARGET = "${TARGET_PREFIX}ld"
135export NM_FOR_TARGET = "${TARGET_PREFIX}nm"
136export RANLIB_FOR_TARGET = "${TARGET_PREFIX}ranlib"
137
138export CC_FOR_HOST = "${CCACHE}${HOST_PREFIX}gcc ${HOST_CC_ARCH}"
139export CXX_FOR_HOST = "${CCACHE}${HOST_PREFIX}gcc ${HOST_CC_ARCH}"
140
141# autotools.bbclass sets the _FOR_BUILD variables, but for some reason we need
142# to unset LD_LIBRARY_PATH.
143export CC_FOR_BUILD = "LD_LIBRARY_PATH= ${BUILD_CC}"
144
145MULTIARCH := "${@bb.utils.contains("DISTRO_FEATURES", "multiarch", "yes", "no", d)}"
146do_configure[vardeps] += "MULTIARCH"
147do_configure () {
148 (cd ${S} && gnu-configize)
149
150 oe_runconf
151#
152# must prime config.cache to ensure the build of libiberty
153#
154 mkdir -p ${B}/build-${BUILD_SYS}
155 for i in ${CONFIG_SITE}; do
156 cat $i >> ${B}/build-${BUILD_SYS}/config.cache || true
157 done
158}
159
160do_install () {
161 autotools_do_install
162
163 # We don't really need these, so we'll remove them...
164 rm -rf ${D}${libdir}/ldscripts
165
166 bindir_rel=${@os.path.relpath('${bindir}', '${prefix}/${TARGET_SYS}/bin')}
167
168 # Fix the /usr/${TARGET_SYS}/bin/* links
169 for l in ${D}${prefix}/${TARGET_SYS}/bin/*; do
170 rm -f $l
171 ln -sf $bindir_rel/${TARGET_PREFIX}`basename $l` $l
172 done
173
174 # Install the libiberty header
175 install -d ${D}${includedir}
176 install -m 644 ${S}/include/ansidecl.h ${D}${includedir}
177 install -m 644 ${S}/include/libiberty.h ${D}${includedir}
178
179 # insall pic version of libiberty if available
180 if [ -e ${B}/libiberty/pic/libiberty.a ]; then
181 install -Dm 0644 ${B}/libiberty/pic/libiberty.a ${D}${libdir}/libiberty.a
182 fi
183
184 cd ${D}${bindir}
185
186 # Symlinks for ease of running these on the native target
187 for p in ${TARGET_PREFIX}* ; do
188 ln -sf $p `echo $p | sed -e s,${TARGET_PREFIX},,`
189 done
190
191 for alt in ${USE_ALTERNATIVES_FOR}; do
192 rm -f ${D}${bindir}/$alt
193 done
194
195 oe_multilib_header bfd.h
196}
197
198inherit update-alternatives
199
200ALTERNATIVE_PRIORITY = "100"
201
202ALTERNATIVE:${PN}:class-target = "${USE_ALTERNATIVES_FOR}"
203
204python () {
205 if bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', True, False, d) and bb.utils.contains_any('TARGET_ARCH', 'riscv32 riscv64 loongarch64', True, False, d):
206 bb.fatal("Gold linker does not _yet_ support RISC-V and LoongArch architecture please remove ld-is-gold from DISTRO_FEATURES")
207}
diff --git a/meta-microblaze/recipes-devtools/binutils/binutils/0001-binutils-crosssdk-Generate-relocatable-SDKs.patch b/meta-microblaze/recipes-devtools/binutils/binutils/0001-binutils-crosssdk-Generate-relocatable-SDKs.patch
new file mode 100644
index 00000000..4ef11c56
--- /dev/null
+++ b/meta-microblaze/recipes-devtools/binutils/binutils/0001-binutils-crosssdk-Generate-relocatable-SDKs.patch
@@ -0,0 +1,75 @@
1From 089ee95b342e79af09258b45c888a13b35fadf26 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Mon, 2 Mar 2015 01:58:54 +0000
4Subject: [PATCH] binutils-crosssdk: Generate relocatable SDKs
5
6This patch will modify the ELF linker scripts so that the crosssdk
7linker will generate binaries with a 4096 bytes PT_INTERP section. When the binaries
8will be relocated, at SDK install time, the interpreter path can be easily
9changed by the relocating script.
10
11generate larger .interp section for gold linker as well
12
13Upstream-Status: Inappropriate [SDK specific]
14
15Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
16Signed-off-by: Khem Raj <raj.khem@gmail.com>
17---
18 gold/layout.cc | 2 +-
19 ld/genscripts.sh | 3 +++
20 ld/scripttempl/elf.sc | 4 ++--
21 3 files changed, 6 insertions(+), 3 deletions(-)
22
23diff --git a/gold/layout.cc b/gold/layout.cc
24index b43ae841a6c..6101a95195b 100644
25--- a/gold/layout.cc
26+++ b/gold/layout.cc
27@@ -5102,7 +5102,7 @@ Layout::create_interp(const Target* target)
28 gold_assert(interp != NULL);
29 }
30
31- size_t len = strlen(interp) + 1;
32+ size_t len = 4096;
33
34 Output_section_data* odata = new Output_data_const(interp, len, 1);
35
36diff --git a/ld/genscripts.sh b/ld/genscripts.sh
37index d6ceb3fe4f5..365c0e778cc 100755
38--- a/ld/genscripts.sh
39+++ b/ld/genscripts.sh
40@@ -298,6 +298,7 @@ DATA_ALIGNMENT_u="${DATA_ALIGNMENT_u-${DATA_ALIGNMENT_r}}"
41 LD_FLAG=r
42 DATA_ALIGNMENT=${DATA_ALIGNMENT_r}
43 DEFAULT_DATA_ALIGNMENT="ALIGN(${SEGMENT_SIZE})"
44+PARTIAL_LINKING=" "
45 ( echo "/* Script for -r */"
46 source_sh ${CUSTOMIZER_SCRIPT}
47 source_sh ${srcdir}/scripttempl/${SCRIPT_NAME}.sc
48@@ -306,10 +307,12 @@ DEFAULT_DATA_ALIGNMENT="ALIGN(${SEGMENT_SIZE})"
49 LD_FLAG=u
50 DATA_ALIGNMENT=${DATA_ALIGNMENT_u}
51 CONSTRUCTING=" "
52+PARTIAL_LINKING=" "
53 ( echo "/* Script for -Ur */"
54 source_sh ${CUSTOMIZER_SCRIPT}
55 source_sh ${srcdir}/scripttempl/${SCRIPT_NAME}.sc
56 ) | sed -e '/^ *$/d;s/[ ]*$//' > ldscripts/${EMULATION_NAME}.xu
57+unset PARTIAL_LINKING
58
59 DATA_ALIGNMENT=${DATA_ALIGNMENT_}
60 RELOCATING=" "
61diff --git a/ld/scripttempl/elf.sc b/ld/scripttempl/elf.sc
62index fae7c2ad71c..7fe37eb1874 100644
63--- a/ld/scripttempl/elf.sc
64+++ b/ld/scripttempl/elf.sc
65@@ -150,8 +150,8 @@ if test -z "$DATA_SEGMENT_ALIGN"; then
66 DATA_SEGMENT_RELRO_END=". = DATA_SEGMENT_RELRO_END (${SEPARATE_GOTPLT-0}, .);"
67 fi
68 fi
69-if test -z "${INITIAL_READONLY_SECTIONS}${CREATE_SHLIB}"; then
70- INITIAL_READONLY_SECTIONS=".interp ${RELOCATING-0} : { *(.interp) }"
71+if test -z "${INITIAL_READONLY_SECTIONS}${CREATE_SHLIB}${PARTIAL_LINKING}"; then
72+ INITIAL_READONLY_SECTIONS=".interp ${RELOCATING-0} : { *(.interp); . = 0x1000; }"
73 fi
74 if test -z "$PLT"; then
75 IPLT=".iplt ${RELOCATING-0} : { *(.iplt) }"
diff --git a/meta-microblaze/recipes-devtools/binutils/binutils/0002-binutils-cross-Do-not-generate-linker-script-directo.patch b/meta-microblaze/recipes-devtools/binutils/binutils/0002-binutils-cross-Do-not-generate-linker-script-directo.patch
new file mode 100644
index 00000000..1652473b
--- /dev/null
+++ b/meta-microblaze/recipes-devtools/binutils/binutils/0002-binutils-cross-Do-not-generate-linker-script-directo.patch
@@ -0,0 +1,59 @@
1From 6fae7afeb713a60755e17443964e46190bb97ede Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Mon, 6 Mar 2017 23:37:05 -0800
4Subject: [PATCH] binutils-cross: Do not generate linker script directories
5
6We don't place target libraries within ${exec_prefix}, we'd always place these
7within the target sysroot within the standard library directories. Worse, the
8append_to_lib_path code prefixes these paths with the sysroot which makes even
9less sense.
10
11These directories therefore don't make sense in our case and mean we have to
12relocate all the linker scripts if they're present. Dropping them
13gives a reasonable performance improvement/simplification.
14
15Upstream-Status: Inappropriate
16
17RP 2017/01/30
18
19Signed-off-by: Khem Raj <raj.khem@gmail.com>
20---
21 ld/genscripts.sh | 25 -------------------------
22 1 file changed, 25 deletions(-)
23
24diff --git a/ld/genscripts.sh b/ld/genscripts.sh
25index 365c0e778cc..b0893fda3c5 100755
26--- a/ld/genscripts.sh
27+++ b/ld/genscripts.sh
28@@ -229,31 +229,6 @@ append_to_lib_path()
29 fi
30 }
31
32-# Always search $(tooldir)/lib, aka /usr/local/TARGET/lib when native
33-# except when LIBPATH=":".
34-if [ "${LIB_PATH}" != ":" ] ; then
35- libs=
36- if [ "x${TOOL_LIB}" = "x" ] ; then
37- if [ "x${NATIVE}" = "xyes" ] ; then
38- libs="${exec_prefix}/${target_alias}/lib"
39- fi
40- else
41- # For multilib'ed targets, ensure both ${target_alias}/lib${LIBPATH_SUFFIX}
42- # and ${TOOL_LIB}/lib${LIBPATH_SUFFIX} are in the default search path,
43- # because 64bit libraries may be in both places, depending on
44- # cross-development setup method (e.g.: /usr/s390x-linux/lib64
45- # vs. /usr/s390-linux/lib64)
46- for libpath_suffix in ${LIBPATH_SUFFIX}; do
47- case "${NATIVE}:${libpath_suffix}:${TOOL_LIB}" in
48- :* | *::* | *:*:*${libpath_suffix}) ;;
49- *) libs="${exec_prefix}/${target_alias}/lib${libpath_suffix}" ;;
50- esac
51- done
52- libs="${exec_prefix}/${TOOL_LIB}/lib ${libs}"
53- fi
54- append_to_lib_path ${libs}
55-fi
56-
57 if [ "x${LIB_PATH}" = "x" ] && [ "x${USE_LIBPATH}" = xyes ] ; then
58 libs=${NATIVE_LIB_DIRS}
59 if [ "x${NATIVE}" = "xyes" ] ; then
diff --git a/meta-microblaze/recipes-devtools/binutils/binutils/0003-binutils-nativesdk-Search-for-alternative-ld.so.conf.patch b/meta-microblaze/recipes-devtools/binutils/binutils/0003-binutils-nativesdk-Search-for-alternative-ld.so.conf.patch
new file mode 100644
index 00000000..f45690ed
--- /dev/null
+++ b/meta-microblaze/recipes-devtools/binutils/binutils/0003-binutils-nativesdk-Search-for-alternative-ld.so.conf.patch
@@ -0,0 +1,95 @@
1From 1fe9aa3f25e09281cb018b29081db4cc44bdc01f Mon Sep 17 00:00:00 2001
2From: Richard Purdie <richard.purdie@linuxfoundation.org>
3Date: Wed, 19 Feb 2020 09:51:16 -0800
4Subject: [PATCH] binutils-nativesdk: Search for alternative ld.so.conf in SDK
5 installation
6
7We need binutils to look at our ld.so.conf file within the SDK to ensure
8we search the SDK's libdirs as well as those from the host system.
9
10We therefore pass in the directory to the code using a define, then add
11it to a section we relocate in a similar way to the way we relocate the
12gcc internal paths. This ensures that ld works correctly in our buildtools
13tarball.
14
15Standard sysroot relocation doesn't work since we're not in a sysroot,
16we want to use both the host system and SDK libs.
17
18Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
192020/1/17
20Upstream-Status: Inappropriate [OE specific tweak]
21
22Signed-off-by: Khem Raj <raj.khem@gmail.com>
23---
24 ld/Makefile.am | 3 ++-
25 ld/Makefile.in | 3 ++-
26 ld/ldelf.c | 2 +-
27 ld/ldmain.c | 1 +
28 ld/ldmain.h | 1 +
29 5 files changed, 7 insertions(+), 3 deletions(-)
30
31diff --git a/ld/Makefile.am b/ld/Makefile.am
32index f9ee05b1400..07801c2c3ac 100644
33--- a/ld/Makefile.am
34+++ b/ld/Makefile.am
35@@ -42,7 +42,8 @@ ZLIBINC = @zlibinc@
36
37 ELF_CFLAGS=-DELF_LIST_OPTIONS=@elf_list_options@ \
38 -DELF_SHLIB_LIST_OPTIONS=@elf_shlib_list_options@ \
39- -DELF_PLT_UNWIND_LIST_OPTIONS=@elf_plt_unwind_list_options@
40+ -DELF_PLT_UNWIND_LIST_OPTIONS=@elf_plt_unwind_list_options@ \
41+ -DSYSCONFDIR="\"$(sysconfdir)\""
42 WARN_CFLAGS = @WARN_CFLAGS@
43 NO_WERROR = @NO_WERROR@
44 AM_CFLAGS = $(WARN_CFLAGS) $(ELF_CFLAGS) $(JANSSON_CFLAGS) $(ZSTD_CFLAGS)
45diff --git a/ld/Makefile.in b/ld/Makefile.in
46index abb0565718f..6329a12a0d6 100644
47--- a/ld/Makefile.in
48+++ b/ld/Makefile.in
49@@ -576,7 +576,8 @@ ZLIB = @zlibdir@ -lz
50 ZLIBINC = @zlibinc@
51 ELF_CFLAGS = -DELF_LIST_OPTIONS=@elf_list_options@ \
52 -DELF_SHLIB_LIST_OPTIONS=@elf_shlib_list_options@ \
53- -DELF_PLT_UNWIND_LIST_OPTIONS=@elf_plt_unwind_list_options@
54+ -DELF_PLT_UNWIND_LIST_OPTIONS=@elf_plt_unwind_list_options@ \
55+ -DSYSCONFDIR="\"$(sysconfdir)\""
56
57 AM_CFLAGS = $(WARN_CFLAGS) $(ELF_CFLAGS) $(JANSSON_CFLAGS) $(ZSTD_CFLAGS)
58
59diff --git a/ld/ldelf.c b/ld/ldelf.c
60index 2852851dcd5..187b359af86 100644
61--- a/ld/ldelf.c
62+++ b/ld/ldelf.c
63@@ -939,7 +939,7 @@ ldelf_check_ld_so_conf (const struct bfd_link_needed_list *l, int force,
64
65 info.path = NULL;
66 info.len = info.alloc = 0;
67- tmppath = concat (ld_sysroot, prefix, "/etc/ld.so.conf",
68+ tmppath = concat (ld_sysconfdir, "/ld.so.conf",
69 (const char *) NULL);
70 if (!ldelf_parse_ld_so_conf (&info, tmppath))
71 {
72diff --git a/ld/ldmain.c b/ld/ldmain.c
73index e90c2021b33..01b306e58a1 100644
74--- a/ld/ldmain.c
75+++ b/ld/ldmain.c
76@@ -69,6 +69,7 @@ char *program_name;
77
78 /* The prefix for system library directories. */
79 const char *ld_sysroot;
80+char ld_sysconfdir[4096] __attribute__ ((section (".gccrelocprefix"))) = SYSCONFDIR;
81
82 /* The canonical representation of ld_sysroot. */
83 char *ld_canon_sysroot;
84diff --git a/ld/ldmain.h b/ld/ldmain.h
85index 0238aed0ebd..2dd00db13b3 100644
86--- a/ld/ldmain.h
87+++ b/ld/ldmain.h
88@@ -23,6 +23,7 @@
89
90 extern char *program_name;
91 extern const char *ld_sysroot;
92+extern char ld_sysconfdir[4096];
93 extern char *ld_canon_sysroot;
94 extern int ld_canon_sysroot_len;
95 extern FILE *saved_script_handle;
diff --git a/meta-microblaze/recipes-devtools/binutils/binutils/0004-Point-scripts-location-to-libdir.patch b/meta-microblaze/recipes-devtools/binutils/binutils/0004-Point-scripts-location-to-libdir.patch
new file mode 100644
index 00000000..ab12c145
--- /dev/null
+++ b/meta-microblaze/recipes-devtools/binutils/binutils/0004-Point-scripts-location-to-libdir.patch
@@ -0,0 +1,39 @@
1From 780109902b00652dfdc080607c614f210e96ae9b Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Mon, 2 Mar 2015 01:09:58 +0000
4Subject: [PATCH] Point scripts location to libdir
5
6Upstream-Status: Inappropriate [debian patch]
7
8Signed-off-by: Khem Raj <raj.khem@gmail.com>
9---
10 ld/Makefile.am | 2 +-
11 ld/Makefile.in | 2 +-
12 2 files changed, 2 insertions(+), 2 deletions(-)
13
14diff --git a/ld/Makefile.am b/ld/Makefile.am
15index 07801c2c3ac..a2bcffecf73 100644
16--- a/ld/Makefile.am
17+++ b/ld/Makefile.am
18@@ -51,7 +51,7 @@ AM_CFLAGS = $(WARN_CFLAGS) $(ELF_CFLAGS) $(JANSSON_CFLAGS) $(ZSTD_CFLAGS)
19 # We put the scripts in the directory $(scriptdir)/ldscripts.
20 # We can't put the scripts in $(datadir) because the SEARCH_DIR
21 # directives need to be different for native and cross linkers.
22-scriptdir = $(tooldir)/lib
23+scriptdir = $(libdir)
24
25 EMUL = @EMUL@
26 EMULATION_OFILES = @EMULATION_OFILES@
27diff --git a/ld/Makefile.in b/ld/Makefile.in
28index 6329a12a0d6..15311048855 100644
29--- a/ld/Makefile.in
30+++ b/ld/Makefile.in
31@@ -584,7 +584,7 @@ AM_CFLAGS = $(WARN_CFLAGS) $(ELF_CFLAGS) $(JANSSON_CFLAGS) $(ZSTD_CFLAGS)
32 # We put the scripts in the directory $(scriptdir)/ldscripts.
33 # We can't put the scripts in $(datadir) because the SEARCH_DIR
34 # directives need to be different for native and cross linkers.
35-scriptdir = $(tooldir)/lib
36+scriptdir = $(libdir)
37 BASEDIR = $(srcdir)/..
38 BFDDIR = $(BASEDIR)/bfd
39 INCDIR = $(BASEDIR)/include
diff --git a/meta-microblaze/recipes-devtools/binutils/binutils/0005-don-t-let-the-distro-compiler-point-to-the-wrong-ins.patch b/meta-microblaze/recipes-devtools/binutils/binutils/0005-don-t-let-the-distro-compiler-point-to-the-wrong-ins.patch
new file mode 100644
index 00000000..f7c39875
--- /dev/null
+++ b/meta-microblaze/recipes-devtools/binutils/binutils/0005-don-t-let-the-distro-compiler-point-to-the-wrong-ins.patch
@@ -0,0 +1,32 @@
1From c8cca8d2364c9f233d6e771136a4d4ff7f405c21 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Mon, 2 Mar 2015 01:39:01 +0000
4Subject: [PATCH] don't let the distro compiler point to the wrong installation
5 location
6
7Thanks to RP for helping find the source code causing the issue.
8
92010/08/13
10Nitin A Kamble <nitin.a.kamble@intel.com>
11
12Upstream-Status: Inappropriate [embedded specific]
13
14Signed-off-by: Khem Raj <raj.khem@gmail.com>
15---
16 libiberty/Makefile.in | 3 ++-
17 1 file changed, 2 insertions(+), 1 deletion(-)
18
19diff --git a/libiberty/Makefile.in b/libiberty/Makefile.in
20index 85c4b6b6ef8..cb6e91c8f9b 100644
21--- a/libiberty/Makefile.in
22+++ b/libiberty/Makefile.in
23@@ -385,7 +385,8 @@ install-strip: install
24 # multilib-specific flags, it's overridden by FLAGS_TO_PASS from the
25 # default multilib, so we have to take CFLAGS into account as well,
26 # since it will be passed the multilib flags.
27-MULTIOSDIR = `$(CC) $(CFLAGS) -print-multi-os-directory`
28+#MULTIOSDIR = `$(CC) $(CFLAGS) -print-multi-os-directory`
29+MULTIOSDIR = ""
30 install_to_libdir: all
31 if test -n "${target_header_dir}"; then \
32 ${mkinstalldirs} $(DESTDIR)$(libdir)/$(MULTIOSDIR); \
diff --git a/meta-microblaze/recipes-devtools/binutils/binutils/0006-warn-for-uses-of-system-directories-when-cross-linki.patch b/meta-microblaze/recipes-devtools/binutils/binutils/0006-warn-for-uses-of-system-directories-when-cross-linki.patch
new file mode 100644
index 00000000..bf6a1a39
--- /dev/null
+++ b/meta-microblaze/recipes-devtools/binutils/binutils/0006-warn-for-uses-of-system-directories-when-cross-linki.patch
@@ -0,0 +1,287 @@
1From a92c46e3703d038d7d810bdc91e8540ad9d9150a Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Fri, 15 Jan 2016 06:31:09 +0000
4Subject: [PATCH] warn for uses of system directories when cross linking
5
62008-07-02 Joseph Myers <joseph@codesourcery.com>
7
8 ld/
9 * ld.h (args_type): Add error_poison_system_directories.
10 * ld.texinfo (--error-poison-system-directories): Document.
11 * ldfile.c (ldfile_add_library_path): Check
12 command_line.error_poison_system_directories.
13 * ldmain.c (main): Initialize
14 command_line.error_poison_system_directories.
15 * lexsup.c (enum option_values): Add
16 OPTION_ERROR_POISON_SYSTEM_DIRECTORIES.
17 (ld_options): Add --error-poison-system-directories.
18 (parse_args): Handle new option.
19
202007-06-13 Joseph Myers <joseph@codesourcery.com>
21
22 ld/
23 * config.in: Regenerate.
24 * ld.h (args_type): Add poison_system_directories.
25 * ld.texinfo (--no-poison-system-directories): Document.
26 * ldfile.c (ldfile_add_library_path): Check
27 command_line.poison_system_directories.
28 * ldmain.c (main): Initialize
29 command_line.poison_system_directories.
30 * lexsup.c (enum option_values): Add
31 OPTION_NO_POISON_SYSTEM_DIRECTORIES.
32 (ld_options): Add --no-poison-system-directories.
33 (parse_args): Handle new option.
34
352007-04-20 Joseph Myers <joseph@codesourcery.com>
36
37 Merge from Sourcery G++ binutils 2.17:
38
39 2007-03-20 Joseph Myers <joseph@codesourcery.com>
40 Based on patch by Mark Hatle <mark.hatle@windriver.com>.
41 ld/
42 * configure.in (--enable-poison-system-directories): New option.
43 * configure, config.in: Regenerate.
44 * ldfile.c (ldfile_add_library_path): If
45 ENABLE_POISON_SYSTEM_DIRECTORIES defined, warn for use of /lib,
46 /usr/lib, /usr/local/lib or /usr/X11R6/lib.
47
48Upstream-Status: Pending
49
50Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
51Signed-off-by: Scott Garman <scott.a.garman@intel.com>
52Signed-off-by: Khem Raj <raj.khem@gmail.com>
53---
54 ld/config.in | 3 +++
55 ld/configure | 16 ++++++++++++++++
56 ld/configure.ac | 10 ++++++++++
57 ld/ld.h | 8 ++++++++
58 ld/ld.texi | 12 ++++++++++++
59 ld/ldfile.c | 17 +++++++++++++++++
60 ld/ldlex.h | 2 ++
61 ld/ldmain.c | 6 ++++--
62 ld/lexsup.c | 15 +++++++++++++++
63 9 files changed, 87 insertions(+), 2 deletions(-)
64
65diff --git a/ld/config.in b/ld/config.in
66index 52d62f06ff0..b5944e7ba55 100644
67--- a/ld/config.in
68+++ b/ld/config.in
69@@ -70,6 +70,9 @@
70 language is requested. */
71 #undef ENABLE_NLS
72
73+/* Define to warn for use of native system library directories */
74+#undef ENABLE_POISON_SYSTEM_DIRECTORIES
75+
76 /* Additional extension a shared object might have. */
77 #undef EXTRA_SHLIB_EXTENSION
78
79diff --git a/ld/configure b/ld/configure
80index 6f8a05c3b6c..98a76d6da7f 100755
81--- a/ld/configure
82+++ b/ld/configure
83@@ -844,6 +844,7 @@ with_lib_path
84 enable_targets
85 enable_64_bit_bfd
86 with_sysroot
87+enable_poison_system_directories
88 enable_gold
89 enable_got
90 enable_compressed_debug_sections
91@@ -1534,6 +1535,8 @@ Optional Features:
92 --enable-checking enable run-time checks
93 --enable-targets alternative target configurations
94 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
95+ --enable-poison-system-directories
96+ warn for use of native system library directories
97 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
98 --enable-got=<type> GOT handling scheme (target, single, negative,
99 multigot)
100@@ -15566,6 +15569,19 @@ fi
101
102
103
104+# Check whether --enable-poison-system-directories was given.
105+if test "${enable_poison_system_directories+set}" = set; then :
106+ enableval=$enable_poison_system_directories;
107+else
108+ enable_poison_system_directories=no
109+fi
110+
111+if test "x${enable_poison_system_directories}" = "xyes"; then
112+
113+$as_echo "#define ENABLE_POISON_SYSTEM_DIRECTORIES 1" >>confdefs.h
114+
115+fi
116+
117 # Check whether --enable-gold was given.
118 if test "${enable_gold+set}" = set; then :
119 enableval=$enable_gold; case "${enableval}" in
120diff --git a/ld/configure.ac b/ld/configure.ac
121index 4a11787ae71..104a531fb0f 100644
122--- a/ld/configure.ac
123+++ b/ld/configure.ac
124@@ -103,6 +103,16 @@ AC_SUBST(use_sysroot)
125 AC_SUBST(TARGET_SYSTEM_ROOT)
126 AC_SUBST(TARGET_SYSTEM_ROOT_DEFINE)
127
128+AC_ARG_ENABLE([poison-system-directories],
129+ AS_HELP_STRING([--enable-poison-system-directories],
130+ [warn for use of native system library directories]),,
131+ [enable_poison_system_directories=no])
132+if test "x${enable_poison_system_directories}" = "xyes"; then
133+ AC_DEFINE([ENABLE_POISON_SYSTEM_DIRECTORIES],
134+ [1],
135+ [Define to warn for use of native system library directories])
136+fi
137+
138 dnl Use --enable-gold to decide if this linker should be the default.
139 dnl "install_as_default" is set to false if gold is the default linker.
140 dnl "installed_linker" is the installed BFD linker name.
141diff --git a/ld/ld.h b/ld/ld.h
142index 54d9079678c..9f0163b2911 100644
143--- a/ld/ld.h
144+++ b/ld/ld.h
145@@ -166,6 +166,14 @@ typedef struct
146 in the linker script. */
147 bool force_group_allocation;
148
149+ /* If TRUE (the default) warn for uses of system directories when
150+ cross linking. */
151+ bool poison_system_directories;
152+
153+ /* If TRUE (default FALSE) give an error for uses of system
154+ directories when cross linking instead of a warning. */
155+ bool error_poison_system_directories;
156+
157 /* Big or little endian as set on command line. */
158 enum endian_enum endian;
159
160diff --git a/ld/ld.texi b/ld/ld.texi
161index 4fda259a552..22685f5f1dd 100644
162--- a/ld/ld.texi
163+++ b/ld/ld.texi
164@@ -3119,6 +3119,18 @@ creation of the metadata note, if one had been enabled by an earlier
165 occurrence of the --package-metadata option.
166 If the linker has been built with libjansson, then the JSON string
167 will be validated.
168+
169+@kindex --no-poison-system-directories
170+@item --no-poison-system-directories
171+Do not warn for @option{-L} options using system directories such as
172+@file{/usr/lib} when cross linking. This option is intended for use
173+in chroot environments when such directories contain the correct
174+libraries for the target system rather than the host.
175+
176+@kindex --error-poison-system-directories
177+@item --error-poison-system-directories
178+Give an error instead of a warning for @option{-L} options using
179+system directories when cross linking.
180 @end table
181
182 @c man end
183diff --git a/ld/ldfile.c b/ld/ldfile.c
184index dc9875d8813..49d899ee49d 100644
185--- a/ld/ldfile.c
186+++ b/ld/ldfile.c
187@@ -327,6 +327,23 @@ ldfile_add_library_path (const char *name, bool cmdline)
188 new_dirs->name = concat (ld_sysroot, name + strlen ("$SYSROOT"), (const char *) NULL);
189 else
190 new_dirs->name = xstrdup (name);
191+
192+#ifdef ENABLE_POISON_SYSTEM_DIRECTORIES
193+ if (command_line.poison_system_directories
194+ && ((!strncmp (name, "/lib", 4))
195+ || (!strncmp (name, "/usr/lib", 8))
196+ || (!strncmp (name, "/usr/local/lib", 14))
197+ || (!strncmp (name, "/usr/X11R6/lib", 14))))
198+ {
199+ if (command_line.error_poison_system_directories)
200+ einfo (_("%X%P: error: library search path \"%s\" is unsafe for "
201+ "cross-compilation\n"), name);
202+ else
203+ einfo (_("%P: warning: library search path \"%s\" is unsafe for "
204+ "cross-compilation\n"), name);
205+ }
206+#endif
207+
208 }
209
210 /* Try to open a BFD for a lang_input_statement. */
211diff --git a/ld/ldlex.h b/ld/ldlex.h
212index 161a9d4d8dc..757fe2f7650 100644
213--- a/ld/ldlex.h
214+++ b/ld/ldlex.h
215@@ -147,6 +147,8 @@ enum option_values
216 OPTION_PLUGIN,
217 OPTION_PLUGIN_OPT,
218 #endif /* BFD_SUPPORTS_PLUGINS */
219+ OPTION_NO_POISON_SYSTEM_DIRECTORIES,
220+ OPTION_ERROR_POISON_SYSTEM_DIRECTORIES,
221 OPTION_DEFAULT_SCRIPT,
222 OPTION_PRINT_OUTPUT_FORMAT,
223 OPTION_PRINT_SYSROOT,
224diff --git a/ld/ldmain.c b/ld/ldmain.c
225index 01b306e58a1..eddefc24332 100644
226--- a/ld/ldmain.c
227+++ b/ld/ldmain.c
228@@ -326,6 +326,8 @@ main (int argc, char **argv)
229 command_line.warn_mismatch = true;
230 command_line.warn_search_mismatch = true;
231 command_line.check_section_addresses = -1;
232+ command_line.poison_system_directories = true;
233+ command_line.error_poison_system_directories = false;
234
235 /* We initialize DEMANGLING based on the environment variable
236 COLLECT_NO_DEMANGLE. The gcc collect2 program will demangle the
237@@ -1458,7 +1460,7 @@ undefined_symbol (struct bfd_link_info *info,
238 argv[1] = "undefined-symbol";
239 argv[2] = (char *) name;
240 argv[3] = NULL;
241-
242+
243 if (verbose)
244 einfo (_("%P: About to run error handling script '%s' with arguments: '%s' '%s'\n"),
245 argv[0], argv[1], argv[2]);
246@@ -1479,7 +1481,7 @@ undefined_symbol (struct bfd_link_info *info,
247 carry on to issue the normal error message. */
248 }
249 #endif /* SUPPORT_ERROR_HANDLING_SCRIPT */
250-
251+
252 if (section != NULL)
253 {
254 if (error_count < MAX_ERRORS_IN_A_ROW)
255diff --git a/ld/lexsup.c b/ld/lexsup.c
256index 099dff8ecde..e9939000b2e 100644
257--- a/ld/lexsup.c
258+++ b/ld/lexsup.c
259@@ -642,6 +642,14 @@ static const struct ld_option ld_options[] =
260 " <method> is: share-unconflicted (default),\n"
261 " share-duplicated"),
262 TWO_DASHES },
263+ { {"no-poison-system-directories", no_argument, NULL,
264+ OPTION_NO_POISON_SYSTEM_DIRECTORIES},
265+ '\0', NULL, N_("Do not warn for -L options using system directories"),
266+ TWO_DASHES },
267+ { {"error-poison-system-directories", no_argument, NULL,
268+ + OPTION_ERROR_POISON_SYSTEM_DIRECTORIES},
269+ '\0', NULL, N_("Give an error for -L options using system directories"),
270+ TWO_DASHES },
271 };
272
273 #define OPTION_COUNT ARRAY_SIZE (ld_options)
274@@ -1818,6 +1826,13 @@ parse_args (unsigned argc, char **argv)
275
276 case OPTION_PRINT_MAP_LOCALS:
277 config.print_map_locals = true;
278+
279+ case OPTION_NO_POISON_SYSTEM_DIRECTORIES:
280+ command_line.poison_system_directories = false;
281+ break;
282+
283+ case OPTION_ERROR_POISON_SYSTEM_DIRECTORIES:
284+ command_line.error_poison_system_directories = true;
285 break;
286
287 case OPTION_DEPENDENCY_FILE:
diff --git a/meta-microblaze/recipes-devtools/binutils/binutils/0007-fix-the-incorrect-assembling-for-ppc-wait-mnemonic.patch b/meta-microblaze/recipes-devtools/binutils/binutils/0007-fix-the-incorrect-assembling-for-ppc-wait-mnemonic.patch
new file mode 100644
index 00000000..f9fa0d4f
--- /dev/null
+++ b/meta-microblaze/recipes-devtools/binutils/binutils/0007-fix-the-incorrect-assembling-for-ppc-wait-mnemonic.patch
@@ -0,0 +1,37 @@
1From d35fd95eee9930ab41d9ad637eacb35aa9fe6f44 Mon Sep 17 00:00:00 2001
2From: Zhenhua Luo <zhenhua.luo@nxp.com>
3Date: Sat, 11 Jun 2016 22:08:29 -0500
4Subject: [PATCH] fix the incorrect assembling for ppc wait mnemonic
5
6The wait mnemonic for ppc targets is incorrectly assembled into 0x7c00003c due
7to duplicated address definition with waitasec instruction. The issue causes
8kernel boot calltrace for ppc targets when wait instruction is executed.
9
10Upstream-Status: Pending
11Signed-off-by: Zhenhua Luo <zhenhua.luo@nxp.com>
12---
13 opcodes/ppc-opc.c | 4 +---
14 1 file changed, 1 insertion(+), 3 deletions(-)
15
16diff --git a/opcodes/ppc-opc.c b/opcodes/ppc-opc.c
17index e55bfe846cd..66b37e36e6f 100644
18--- a/opcodes/ppc-opc.c
19+++ b/opcodes/ppc-opc.c
20@@ -7138,8 +7138,6 @@ const struct powerpc_opcode powerpc_opcodes[] = {
21 {"waitasec", X(31,30), XRTRARB_MASK, POWER8, POWER9, {0}},
22 {"waitrsv", XWCPL(31,30,1,0),0xffffffff, POWER10, EXT, {0}},
23 {"pause_short", XWCPL(31,30,2,0),0xffffffff, POWER10, EXT, {0}},
24-{"wait", X(31,30), XWCPL_MASK, POWER10, 0, {WC, PL}},
25-{"wait", X(31,30), XWC_MASK, POWER9, POWER10, {WC}},
26
27 {"lwepx", X(31,31), X_MASK, E500MC|PPCA2, 0, {RT, RA0, RB}},
28
29@@ -7193,7 +7191,7 @@ const struct powerpc_opcode powerpc_opcodes[] = {
30
31 {"waitrsv", X(31,62)|(1<<21), 0xffffffff, E500MC|PPCA2, EXT, {0}},
32 {"waitimpl", X(31,62)|(2<<21), 0xffffffff, E500MC|PPCA2, EXT, {0}},
33-{"wait", X(31,62), XWC_MASK, E500MC|PPCA2, 0, {WC}},
34+{"wait", X(31,62), XWC_MASK, E500MC|PPCA2|POWER9|POWER10, 0, {WC}},
35
36 {"dcbstep", XRT(31,63,0), XRT_MASK, E500MC|PPCA2, 0, {RA0, RB}},
37
diff --git a/meta-microblaze/recipes-devtools/binutils/binutils/0008-Use-libtool-2.4.patch b/meta-microblaze/recipes-devtools/binutils/binutils/0008-Use-libtool-2.4.patch
new file mode 100644
index 00000000..8f74c639
--- /dev/null
+++ b/meta-microblaze/recipes-devtools/binutils/binutils/0008-Use-libtool-2.4.patch
@@ -0,0 +1,34406 @@
1From da089ddacb6506f406acd8939389183a4356ebf0 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Sun, 14 Feb 2016 17:04:07 +0000
4Subject: [PATCH] Use libtool 2.4
5
6get libtool sysroot support
7
8Upstream-Status: Pending
9
10Signed-off-by: Khem Raj <raj.khem@gmail.com>
11---
12 bfd/Makefile.in | 3 +
13 bfd/configure | 1333 +++++++++---
14 bfd/configure.ac | 2 +-
15 binutils/Makefile.in | 3 +
16 binutils/configure | 1331 +++++++++---
17 gas/Makefile.in | 3 +
18 gas/configure | 1331 +++++++++---
19 gprof/Makefile.in | 3 +
20 gprof/configure | 1331 +++++++++---
21 gprofng/Makefile.in | 2 +
22 gprofng/configure | 1693 ++++++++++++----
23 gprofng/doc/Makefile.in | 2 +
24 gprofng/gp-display-html/Makefile.in | 2 +
25 gprofng/libcollector/Makefile.in | 2 +
26 gprofng/libcollector/configure | 1693 ++++++++++++----
27 gprofng/src/Makefile.in | 2 +
28 ld/Makefile.in | 3 +
29 ld/configure | 1694 ++++++++++++----
30 libbacktrace/Makefile.in | 108 +-
31 libbacktrace/aclocal.m4 | 73 +-
32 libbacktrace/configure | 1441 +++++++++----
33 libctf/Makefile.in | 2 +
34 libctf/configure | 1334 +++++++++---
35 libsframe/Makefile.in | 344 ++--
36 libsframe/aclocal.m4 | 220 +-
37 libsframe/configure | 1553 ++++++++++----
38 libtool.m4 | 1085 ++++++----
39 ltmain.sh | 2921 ++++++++++++++++++---------
40 ltoptions.m4 | 2 +-
41 ltversion.m4 | 12 +-
42 lt~obsolete.m4 | 2 +-
43 opcodes/Makefile.in | 3 +
44 opcodes/configure | 1331 +++++++++---
45 zlib/Makefile.in | 3 +
46 zlib/configure | 1331 +++++++++---
47 35 files changed, 16094 insertions(+), 6104 deletions(-)
48
49diff --git a/bfd/Makefile.in b/bfd/Makefile.in
50index faaa0c424b8..5371e093163 100644
51--- a/bfd/Makefile.in
52+++ b/bfd/Makefile.in
53@@ -340,6 +340,7 @@ DATADIRNAME = @DATADIRNAME@
54 DEBUGDIR = @DEBUGDIR@
55 DEFS = @DEFS@
56 DEPDIR = @DEPDIR@
57+DLLTOOL = @DLLTOOL@
58 DSYMUTIL = @DSYMUTIL@
59 DUMPBIN = @DUMPBIN@
60 ECHO_C = @ECHO_C@
61@@ -379,6 +380,7 @@ LTLIBINTL = @LTLIBINTL@
62 LTLIBOBJS = @LTLIBOBJS@
63 MAINT = @MAINT@
64 MAKEINFO = @MAKEINFO@
65+MANIFEST_TOOL = @MANIFEST_TOOL@
66 MKDIR_P = @MKDIR_P@
67 MKINSTALLDIRS = @MKINSTALLDIRS@
68 MSGFMT = @MSGFMT@
69@@ -425,6 +427,7 @@ abs_builddir = @abs_builddir@
70 abs_srcdir = @abs_srcdir@
71 abs_top_builddir = @abs_top_builddir@
72 abs_top_srcdir = @abs_top_srcdir@
73+ac_ct_AR = @ac_ct_AR@
74 ac_ct_CC = @ac_ct_CC@
75 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
76 all_backends = @all_backends@
77diff --git a/bfd/configure b/bfd/configure
78index acbac2f364a..a53a9d52719 100755
79--- a/bfd/configure
80+++ b/bfd/configure
81@@ -712,6 +712,9 @@ OTOOL
82 LIPO
83 NMEDIT
84 DSYMUTIL
85+MANIFEST_TOOL
86+ac_ct_AR
87+DLLTOOL
88 OBJDUMP
89 LN_S
90 NM
91@@ -830,6 +833,7 @@ enable_static
92 with_pic
93 enable_fast_install
94 with_gnu_ld
95+with_libtool_sysroot
96 enable_libtool_lock
97 enable_plugins
98 enable_largefile
99@@ -1526,6 +1530,8 @@ Optional Packages:
100 --with-pic try to use only PIC/non-PIC objects [default=use
101 both]
102 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
103+ --with-libtool-sysroot=DIR Search for dependent libraries within DIR
104+ (or the compiler's sysroot if not specified).
105 --with-mmap try using mmap for BFD input files if available
106 --with-separate-debug-dir=DIR
107 Look for global separate debug info in DIR
108@@ -5063,8 +5069,8 @@ esac
109
110
111
112-macro_version='2.2.7a'
113-macro_revision='1.3134'
114+macro_version='2.4'
115+macro_revision='1.3293'
116
117
118
119@@ -5104,7 +5110,7 @@ ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
121 $as_echo_n "checking how to print strings... " >&6; }
122 # Test print first, because it will be a builtin if present.
123-if test "X`print -r -- -n 2>/dev/null`" = X-n && \
124+if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
125 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
126 ECHO='print -r --'
127 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
128@@ -5797,8 +5803,8 @@ $as_echo_n "checking whether the shell understands some XSI constructs... " >&6;
129 # Try some XSI features
130 xsi_shell=no
131 ( _lt_dummy="a/b/c"
132- test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
133- = c,a/b,, \
134+ test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
135+ = c,a/b,b/c, \
136 && eval 'test $(( 1 + 1 )) -eq 2 \
137 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
138 && xsi_shell=yes
139@@ -5847,6 +5853,80 @@ esac
140
141
142
143+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
144+$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
145+if ${lt_cv_to_host_file_cmd+:} false; then :
146+ $as_echo_n "(cached) " >&6
147+else
148+ case $host in
149+ *-*-mingw* )
150+ case $build in
151+ *-*-mingw* ) # actually msys
152+ lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
153+ ;;
154+ *-*-cygwin* )
155+ lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
156+ ;;
157+ * ) # otherwise, assume *nix
158+ lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
159+ ;;
160+ esac
161+ ;;
162+ *-*-cygwin* )
163+ case $build in
164+ *-*-mingw* ) # actually msys
165+ lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
166+ ;;
167+ *-*-cygwin* )
168+ lt_cv_to_host_file_cmd=func_convert_file_noop
169+ ;;
170+ * ) # otherwise, assume *nix
171+ lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
172+ ;;
173+ esac
174+ ;;
175+ * ) # unhandled hosts (and "normal" native builds)
176+ lt_cv_to_host_file_cmd=func_convert_file_noop
177+ ;;
178+esac
179+
180+fi
181+
182+to_host_file_cmd=$lt_cv_to_host_file_cmd
183+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
184+$as_echo "$lt_cv_to_host_file_cmd" >&6; }
185+
186+
187+
188+
189+
190+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
191+$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
192+if ${lt_cv_to_tool_file_cmd+:} false; then :
193+ $as_echo_n "(cached) " >&6
194+else
195+ #assume ordinary cross tools, or native build.
196+lt_cv_to_tool_file_cmd=func_convert_file_noop
197+case $host in
198+ *-*-mingw* )
199+ case $build in
200+ *-*-mingw* ) # actually msys
201+ lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
202+ ;;
203+ esac
204+ ;;
205+esac
206+
207+fi
208+
209+to_tool_file_cmd=$lt_cv_to_tool_file_cmd
210+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
211+$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
212+
213+
214+
215+
216+
217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
218 $as_echo_n "checking for $LD option to reload object files... " >&6; }
219 if ${lt_cv_ld_reload_flag+:} false; then :
220@@ -5863,6 +5943,11 @@ case $reload_flag in
221 esac
222 reload_cmds='$LD$reload_flag -o $output$reload_objs'
223 case $host_os in
224+ cygwin* | mingw* | pw32* | cegcc*)
225+ if test "$GCC" != yes; then
226+ reload_cmds=false
227+ fi
228+ ;;
229 darwin*)
230 if test "$GCC" = yes; then
231 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
232@@ -6031,7 +6116,8 @@ mingw* | pw32*)
233 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
234 lt_cv_file_magic_cmd='func_win32_libid'
235 else
236- lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
237+ # Keep this pattern in sync with the one in func_win32_libid.
238+ lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
239 lt_cv_file_magic_cmd='$OBJDUMP -f'
240 fi
241 ;;
242@@ -6190,6 +6276,21 @@ esac
243 fi
244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
245 $as_echo "$lt_cv_deplibs_check_method" >&6; }
246+
247+file_magic_glob=
248+want_nocaseglob=no
249+if test "$build" = "$host"; then
250+ case $host_os in
251+ mingw* | pw32*)
252+ if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
253+ want_nocaseglob=yes
254+ else
255+ file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
256+ fi
257+ ;;
258+ esac
259+fi
260+
261 file_magic_cmd=$lt_cv_file_magic_cmd
262 deplibs_check_method=$lt_cv_deplibs_check_method
263 test -z "$deplibs_check_method" && deplibs_check_method=unknown
264@@ -6205,6 +6306,157 @@ test -z "$deplibs_check_method" && deplibs_check_method=unknown
265
266
267
268+
269+
270+
271+
272+
273+
274+
275+
276+
277+
278+if test -n "$ac_tool_prefix"; then
279+ # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
280+set dummy ${ac_tool_prefix}dlltool; ac_word=$2
281+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
282+$as_echo_n "checking for $ac_word... " >&6; }
283+if ${ac_cv_prog_DLLTOOL+:} false; then :
284+ $as_echo_n "(cached) " >&6
285+else
286+ if test -n "$DLLTOOL"; then
287+ ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
288+else
289+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
290+for as_dir in $PATH
291+do
292+ IFS=$as_save_IFS
293+ test -z "$as_dir" && as_dir=.
294+ for ac_exec_ext in '' $ac_executable_extensions; do
295+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
296+ ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
297+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
298+ break 2
299+ fi
300+done
301+ done
302+IFS=$as_save_IFS
303+
304+fi
305+fi
306+DLLTOOL=$ac_cv_prog_DLLTOOL
307+if test -n "$DLLTOOL"; then
308+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
309+$as_echo "$DLLTOOL" >&6; }
310+else
311+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
312+$as_echo "no" >&6; }
313+fi
314+
315+
316+fi
317+if test -z "$ac_cv_prog_DLLTOOL"; then
318+ ac_ct_DLLTOOL=$DLLTOOL
319+ # Extract the first word of "dlltool", so it can be a program name with args.
320+set dummy dlltool; ac_word=$2
321+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
322+$as_echo_n "checking for $ac_word... " >&6; }
323+if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
324+ $as_echo_n "(cached) " >&6
325+else
326+ if test -n "$ac_ct_DLLTOOL"; then
327+ ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
328+else
329+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
330+for as_dir in $PATH
331+do
332+ IFS=$as_save_IFS
333+ test -z "$as_dir" && as_dir=.
334+ for ac_exec_ext in '' $ac_executable_extensions; do
335+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
336+ ac_cv_prog_ac_ct_DLLTOOL="dlltool"
337+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
338+ break 2
339+ fi
340+done
341+ done
342+IFS=$as_save_IFS
343+
344+fi
345+fi
346+ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
347+if test -n "$ac_ct_DLLTOOL"; then
348+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
349+$as_echo "$ac_ct_DLLTOOL" >&6; }
350+else
351+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
352+$as_echo "no" >&6; }
353+fi
354+
355+ if test "x$ac_ct_DLLTOOL" = x; then
356+ DLLTOOL="false"
357+ else
358+ case $cross_compiling:$ac_tool_warned in
359+yes:)
360+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
361+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
362+ac_tool_warned=yes ;;
363+esac
364+ DLLTOOL=$ac_ct_DLLTOOL
365+ fi
366+else
367+ DLLTOOL="$ac_cv_prog_DLLTOOL"
368+fi
369+
370+test -z "$DLLTOOL" && DLLTOOL=dlltool
371+
372+
373+
374+
375+
376+
377+
378+
379+
380+
381+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
382+$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
383+if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
384+ $as_echo_n "(cached) " >&6
385+else
386+ lt_cv_sharedlib_from_linklib_cmd='unknown'
387+
388+case $host_os in
389+cygwin* | mingw* | pw32* | cegcc*)
390+ # two different shell functions defined in ltmain.sh
391+ # decide which to use based on capabilities of $DLLTOOL
392+ case `$DLLTOOL --help 2>&1` in
393+ *--identify-strict*)
394+ lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
395+ ;;
396+ *)
397+ lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
398+ ;;
399+ esac
400+ ;;
401+*)
402+ # fallback: assume linklib IS sharedlib
403+ lt_cv_sharedlib_from_linklib_cmd="$ECHO"
404+ ;;
405+esac
406+
407+fi
408+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
409+$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
410+sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
411+test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
412+
413+
414+
415+
416+
417+
418+
419 plugin_option=
420 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
421 for plugin in $plugin_names; do
422@@ -6219,8 +6471,10 @@ for plugin in $plugin_names; do
423 done
424
425 if test -n "$ac_tool_prefix"; then
426- # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
427-set dummy ${ac_tool_prefix}ar; ac_word=$2
428+ for ac_prog in ar
429+ do
430+ # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
431+set dummy $ac_tool_prefix$ac_prog; ac_word=$2
432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
433 $as_echo_n "checking for $ac_word... " >&6; }
434 if ${ac_cv_prog_AR+:} false; then :
435@@ -6236,7 +6490,7 @@ do
436 test -z "$as_dir" && as_dir=.
437 for ac_exec_ext in '' $ac_executable_extensions; do
438 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
439- ac_cv_prog_AR="${ac_tool_prefix}ar"
440+ ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
442 break 2
443 fi
444@@ -6256,11 +6510,15 @@ $as_echo "no" >&6; }
445 fi
446
447
448+ test -n "$AR" && break
449+ done
450 fi
451-if test -z "$ac_cv_prog_AR"; then
452+if test -z "$AR"; then
453 ac_ct_AR=$AR
454- # Extract the first word of "ar", so it can be a program name with args.
455-set dummy ar; ac_word=$2
456+ for ac_prog in ar
457+do
458+ # Extract the first word of "$ac_prog", so it can be a program name with args.
459+set dummy $ac_prog; ac_word=$2
460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
461 $as_echo_n "checking for $ac_word... " >&6; }
462 if ${ac_cv_prog_ac_ct_AR+:} false; then :
463@@ -6276,7 +6534,7 @@ do
464 test -z "$as_dir" && as_dir=.
465 for ac_exec_ext in '' $ac_executable_extensions; do
466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
467- ac_cv_prog_ac_ct_AR="ar"
468+ ac_cv_prog_ac_ct_AR="$ac_prog"
469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
470 break 2
471 fi
472@@ -6295,6 +6553,10 @@ else
473 $as_echo "no" >&6; }
474 fi
475
476+
477+ test -n "$ac_ct_AR" && break
478+done
479+
480 if test "x$ac_ct_AR" = x; then
481 AR="false"
482 else
483@@ -6306,25 +6568,20 @@ ac_tool_warned=yes ;;
484 esac
485 AR=$ac_ct_AR
486 fi
487-else
488- AR="$ac_cv_prog_AR"
489 fi
490
491-test -z "$AR" && AR=ar
492-if test -n "$plugin_option"; then
493- if $AR --help 2>&1 | grep -q "\--plugin"; then
494- touch conftest.c
495- $AR $plugin_option rc conftest.a conftest.c
496- if test "$?" != 0; then
497- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
498+ touch conftest.c
499+ $AR $plugin_option rc conftest.a conftest.c
500+ if test "$?" != 0; then
501+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
502 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
503- else
504- AR="$AR $plugin_option"
505- fi
506- rm -f conftest.*
507+ else
508+ AR="$AR $plugin_option"
509 fi
510-fi
511-test -z "$AR_FLAGS" && AR_FLAGS=cru
512+ rm -f conftest.*
513+: ${AR=ar}
514+: ${AR_FLAGS=cru}
515+
516
517
518
519@@ -6335,6 +6592,63 @@ test -z "$AR_FLAGS" && AR_FLAGS=cru
520
521
522
523+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
524+$as_echo_n "checking for archiver @FILE support... " >&6; }
525+if ${lt_cv_ar_at_file+:} false; then :
526+ $as_echo_n "(cached) " >&6
527+else
528+ lt_cv_ar_at_file=no
529+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
530+/* end confdefs.h. */
531+
532+int
533+main ()
534+{
535+
536+ ;
537+ return 0;
538+}
539+_ACEOF
540+if ac_fn_c_try_compile "$LINENO"; then :
541+ echo conftest.$ac_objext > conftest.lst
542+ lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
543+ { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
544+ (eval $lt_ar_try) 2>&5
545+ ac_status=$?
546+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
547+ test $ac_status = 0; }
548+ if test "$ac_status" -eq 0; then
549+ # Ensure the archiver fails upon bogus file names.
550+ rm -f conftest.$ac_objext libconftest.a
551+ { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
552+ (eval $lt_ar_try) 2>&5
553+ ac_status=$?
554+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
555+ test $ac_status = 0; }
556+ if test "$ac_status" -ne 0; then
557+ lt_cv_ar_at_file=@
558+ fi
559+ fi
560+ rm -f conftest.* libconftest.a
561+
562+fi
563+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
564+
565+fi
566+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
567+$as_echo "$lt_cv_ar_at_file" >&6; }
568+
569+if test "x$lt_cv_ar_at_file" = xno; then
570+ archiver_list_spec=
571+else
572+ archiver_list_spec=$lt_cv_ar_at_file
573+fi
574+
575+
576+
577+
578+
579+
580
581 if test -n "$ac_tool_prefix"; then
582 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
583@@ -6675,8 +6989,8 @@ esac
584 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
585
586 # Transform an extracted symbol line into symbol name and symbol address
587-lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
588-lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
589+lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
590+lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
591
592 # Handle CRLF in mingw tool chain
593 opt_cr=
594@@ -6712,6 +7026,7 @@ for ac_symprfx in "" "_"; do
595 else
596 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
597 fi
598+ lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
599
600 # Check to see that the pipe works correctly.
601 pipe_works=no
602@@ -6753,6 +7068,18 @@ _LT_EOF
603 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
604 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
605 cat <<_LT_EOF > conftest.$ac_ext
606+/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
607+#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
608+/* DATA imports from DLLs on WIN32 con't be const, because runtime
609+ relocations are performed -- see ld's documentation on pseudo-relocs. */
610+# define LT_DLSYM_CONST
611+#elif defined(__osf__)
612+/* This system does not cope well with relocations in const data. */
613+# define LT_DLSYM_CONST
614+#else
615+# define LT_DLSYM_CONST const
616+#endif
617+
618 #ifdef __cplusplus
619 extern "C" {
620 #endif
621@@ -6764,7 +7091,7 @@ _LT_EOF
622 cat <<_LT_EOF >> conftest.$ac_ext
623
624 /* The mapping between symbol names and symbols. */
625-const struct {
626+LT_DLSYM_CONST struct {
627 const char *name;
628 void *address;
629 }
630@@ -6790,8 +7117,8 @@ static const void *lt_preloaded_setup() {
631 _LT_EOF
632 # Now try linking the two files.
633 mv conftest.$ac_objext conftstm.$ac_objext
634- lt_save_LIBS="$LIBS"
635- lt_save_CFLAGS="$CFLAGS"
636+ lt_globsym_save_LIBS=$LIBS
637+ lt_globsym_save_CFLAGS=$CFLAGS
638 LIBS="conftstm.$ac_objext"
639 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
640 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
641@@ -6801,8 +7128,8 @@ _LT_EOF
642 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
643 pipe_works=yes
644 fi
645- LIBS="$lt_save_LIBS"
646- CFLAGS="$lt_save_CFLAGS"
647+ LIBS=$lt_globsym_save_LIBS
648+ CFLAGS=$lt_globsym_save_CFLAGS
649 else
650 echo "cannot find nm_test_func in $nlist" >&5
651 fi
652@@ -6839,6 +7166,14 @@ else
653 $as_echo "ok" >&6; }
654 fi
655
656+# Response file support.
657+if test "$lt_cv_nm_interface" = "MS dumpbin"; then
658+ nm_file_list_spec='@'
659+elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
660+ nm_file_list_spec='@'
661+fi
662+
663+
664
665
666
667@@ -6857,6 +7192,47 @@ fi
668
669
670
671+
672+
673+
674+
675+
676+
677+
678+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
679+$as_echo_n "checking for sysroot... " >&6; }
680+
681+# Check whether --with-libtool-sysroot was given.
682+if test "${with_libtool_sysroot+set}" = set; then :
683+ withval=$with_libtool_sysroot;
684+else
685+ with_libtool_sysroot=no
686+fi
687+
688+
689+lt_sysroot=
690+case ${with_libtool_sysroot} in #(
691+ yes)
692+ if test "$GCC" = yes; then
693+ lt_sysroot=`$CC --print-sysroot 2>/dev/null`
694+ fi
695+ ;; #(
696+ /*)
697+ lt_sysroot=`echo "$with_libtool_sysroot" | sed -e "$sed_quote_subst"`
698+ ;; #(
699+ no|'')
700+ ;; #(
701+ *)
702+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_libtool_sysroot}" >&5
703+$as_echo "${with_libtool_sysroot}" >&6; }
704+ as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
705+ ;;
706+esac
707+
708+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
709+$as_echo "${lt_sysroot:-no}" >&6; }
710+
711+
712
713
714
715@@ -7066,6 +7442,123 @@ esac
716
717 need_locks="$enable_libtool_lock"
718
719+if test -n "$ac_tool_prefix"; then
720+ # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
721+set dummy ${ac_tool_prefix}mt; ac_word=$2
722+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
723+$as_echo_n "checking for $ac_word... " >&6; }
724+if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
725+ $as_echo_n "(cached) " >&6
726+else
727+ if test -n "$MANIFEST_TOOL"; then
728+ ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
729+else
730+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
731+for as_dir in $PATH
732+do
733+ IFS=$as_save_IFS
734+ test -z "$as_dir" && as_dir=.
735+ for ac_exec_ext in '' $ac_executable_extensions; do
736+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
737+ ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
738+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
739+ break 2
740+ fi
741+done
742+ done
743+IFS=$as_save_IFS
744+
745+fi
746+fi
747+MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
748+if test -n "$MANIFEST_TOOL"; then
749+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
750+$as_echo "$MANIFEST_TOOL" >&6; }
751+else
752+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
753+$as_echo "no" >&6; }
754+fi
755+
756+
757+fi
758+if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
759+ ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
760+ # Extract the first word of "mt", so it can be a program name with args.
761+set dummy mt; ac_word=$2
762+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
763+$as_echo_n "checking for $ac_word... " >&6; }
764+if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
765+ $as_echo_n "(cached) " >&6
766+else
767+ if test -n "$ac_ct_MANIFEST_TOOL"; then
768+ ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
769+else
770+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
771+for as_dir in $PATH
772+do
773+ IFS=$as_save_IFS
774+ test -z "$as_dir" && as_dir=.
775+ for ac_exec_ext in '' $ac_executable_extensions; do
776+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
777+ ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
778+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
779+ break 2
780+ fi
781+done
782+ done
783+IFS=$as_save_IFS
784+
785+fi
786+fi
787+ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
788+if test -n "$ac_ct_MANIFEST_TOOL"; then
789+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
790+$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
791+else
792+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
793+$as_echo "no" >&6; }
794+fi
795+
796+ if test "x$ac_ct_MANIFEST_TOOL" = x; then
797+ MANIFEST_TOOL=":"
798+ else
799+ case $cross_compiling:$ac_tool_warned in
800+yes:)
801+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
802+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
803+ac_tool_warned=yes ;;
804+esac
805+ MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
806+ fi
807+else
808+ MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
809+fi
810+
811+test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
812+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
813+$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
814+if ${lt_cv_path_mainfest_tool+:} false; then :
815+ $as_echo_n "(cached) " >&6
816+else
817+ lt_cv_path_mainfest_tool=no
818+ echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
819+ $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
820+ cat conftest.err >&5
821+ if $GREP 'Manifest Tool' conftest.out > /dev/null; then
822+ lt_cv_path_mainfest_tool=yes
823+ fi
824+ rm -f conftest*
825+fi
826+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
827+$as_echo "$lt_cv_path_mainfest_tool" >&6; }
828+if test "x$lt_cv_path_mainfest_tool" != xyes; then
829+ MANIFEST_TOOL=:
830+fi
831+
832+
833+
834+
835+
836
837 case $host_os in
838 rhapsody* | darwin*)
839@@ -7629,6 +8122,8 @@ _LT_EOF
840 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
841 echo "$AR cru libconftest.a conftest.o" >&5
842 $AR cru libconftest.a conftest.o 2>&5
843+ echo "$RANLIB libconftest.a" >&5
844+ $RANLIB libconftest.a 2>&5
845 cat > conftest.c << _LT_EOF
846 int main() { return 0;}
847 _LT_EOF
848@@ -8182,8 +8677,6 @@ fi
849 lt_prog_compiler_pic=
850 lt_prog_compiler_static=
851
852-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
853-$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
854
855 if test "$GCC" = yes; then
856 lt_prog_compiler_wl='-Wl,'
857@@ -8349,6 +8842,12 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
858 lt_prog_compiler_pic='--shared'
859 lt_prog_compiler_static='--static'
860 ;;
861+ nagfor*)
862+ # NAG Fortran compiler
863+ lt_prog_compiler_wl='-Wl,-Wl,,'
864+ lt_prog_compiler_pic='-PIC'
865+ lt_prog_compiler_static='-Bstatic'
866+ ;;
867 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
868 # Portland Group compilers (*not* the Pentium gcc compiler,
869 # which looks to be a dead project)
870@@ -8411,7 +8910,7 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
871 lt_prog_compiler_pic='-KPIC'
872 lt_prog_compiler_static='-Bstatic'
873 case $cc_basename in
874- f77* | f90* | f95*)
875+ f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
876 lt_prog_compiler_wl='-Qoption ld ';;
877 *)
878 lt_prog_compiler_wl='-Wl,';;
879@@ -8468,13 +8967,17 @@ case $host_os in
880 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
881 ;;
882 esac
883-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
884-$as_echo "$lt_prog_compiler_pic" >&6; }
885-
886-
887-
888-
889
890+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
891+$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
892+if ${lt_cv_prog_compiler_pic+:} false; then :
893+ $as_echo_n "(cached) " >&6
894+else
895+ lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
896+fi
897+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
898+$as_echo "$lt_cv_prog_compiler_pic" >&6; }
899+lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
900
901 #
902 # Check to make sure the PIC flag actually works.
903@@ -8535,6 +9038,11 @@ fi
904
905
906
907+
908+
909+
910+
911+
912 #
913 # Check to make sure the static flag actually works.
914 #
915@@ -8885,7 +9393,8 @@ _LT_EOF
916 allow_undefined_flag=unsupported
917 always_export_symbols=no
918 enable_shared_with_static_runtimes=yes
919- export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
920+ export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
921+ exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
922
923 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
924 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
925@@ -8984,12 +9493,12 @@ _LT_EOF
926 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
927 hardcode_libdir_flag_spec=
928 hardcode_libdir_flag_spec_ld='-rpath $libdir'
929- archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
930+ archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
931 if test "x$supports_anon_versioning" = xyes; then
932 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
933 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
934 echo "local: *; };" >> $output_objdir/$libname.ver~
935- $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
936+ $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
937 fi
938 ;;
939 esac
940@@ -9003,8 +9512,8 @@ _LT_EOF
941 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
942 wlarc=
943 else
944- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
945- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
946+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
947+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
948 fi
949 ;;
950
951@@ -9022,8 +9531,8 @@ _LT_EOF
952
953 _LT_EOF
954 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
955- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
956- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
957+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
958+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
959 else
960 ld_shlibs=no
961 fi
962@@ -9069,8 +9578,8 @@ _LT_EOF
963
964 *)
965 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
966- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
967- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
968+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
969+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
970 else
971 ld_shlibs=no
972 fi
973@@ -9200,7 +9709,13 @@ _LT_EOF
974 allow_undefined_flag='-berok'
975 # Determine the default libpath from the value encoded in an
976 # empty executable.
977- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
978+ if test "${lt_cv_aix_libpath+set}" = set; then
979+ aix_libpath=$lt_cv_aix_libpath
980+else
981+ if ${lt_cv_aix_libpath_+:} false; then :
982+ $as_echo_n "(cached) " >&6
983+else
984+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
985 /* end confdefs.h. */
986
987 int
988@@ -9213,22 +9728,29 @@ main ()
989 _ACEOF
990 if ac_fn_c_try_link "$LINENO"; then :
991
992-lt_aix_libpath_sed='
993- /Import File Strings/,/^$/ {
994- /^0/ {
995- s/^0 *\(.*\)$/\1/
996- p
997- }
998- }'
999-aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1000-# Check for a 64-bit object if we didn't find anything.
1001-if test -z "$aix_libpath"; then
1002- aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1003-fi
1004+ lt_aix_libpath_sed='
1005+ /Import File Strings/,/^$/ {
1006+ /^0/ {
1007+ s/^0 *\([^ ]*\) *$/\1/
1008+ p
1009+ }
1010+ }'
1011+ lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1012+ # Check for a 64-bit object if we didn't find anything.
1013+ if test -z "$lt_cv_aix_libpath_"; then
1014+ lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1015+ fi
1016 fi
1017 rm -f core conftest.err conftest.$ac_objext \
1018 conftest$ac_exeext conftest.$ac_ext
1019-if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
1020+ if test -z "$lt_cv_aix_libpath_"; then
1021+ lt_cv_aix_libpath_="/usr/lib:/lib"
1022+ fi
1023+
1024+fi
1025+
1026+ aix_libpath=$lt_cv_aix_libpath_
1027+fi
1028
1029 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
1030 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
1031@@ -9240,7 +9762,13 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
1032 else
1033 # Determine the default libpath from the value encoded in an
1034 # empty executable.
1035- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1036+ if test "${lt_cv_aix_libpath+set}" = set; then
1037+ aix_libpath=$lt_cv_aix_libpath
1038+else
1039+ if ${lt_cv_aix_libpath_+:} false; then :
1040+ $as_echo_n "(cached) " >&6
1041+else
1042+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1043 /* end confdefs.h. */
1044
1045 int
1046@@ -9253,22 +9781,29 @@ main ()
1047 _ACEOF
1048 if ac_fn_c_try_link "$LINENO"; then :
1049
1050-lt_aix_libpath_sed='
1051- /Import File Strings/,/^$/ {
1052- /^0/ {
1053- s/^0 *\(.*\)$/\1/
1054- p
1055- }
1056- }'
1057-aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1058-# Check for a 64-bit object if we didn't find anything.
1059-if test -z "$aix_libpath"; then
1060- aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1061-fi
1062+ lt_aix_libpath_sed='
1063+ /Import File Strings/,/^$/ {
1064+ /^0/ {
1065+ s/^0 *\([^ ]*\) *$/\1/
1066+ p
1067+ }
1068+ }'
1069+ lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1070+ # Check for a 64-bit object if we didn't find anything.
1071+ if test -z "$lt_cv_aix_libpath_"; then
1072+ lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1073+ fi
1074 fi
1075 rm -f core conftest.err conftest.$ac_objext \
1076 conftest$ac_exeext conftest.$ac_ext
1077-if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
1078+ if test -z "$lt_cv_aix_libpath_"; then
1079+ lt_cv_aix_libpath_="/usr/lib:/lib"
1080+ fi
1081+
1082+fi
1083+
1084+ aix_libpath=$lt_cv_aix_libpath_
1085+fi
1086
1087 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
1088 # Warning - without using the other run time loading flags,
1089@@ -9313,20 +9848,63 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
1090 # Microsoft Visual C++.
1091 # hardcode_libdir_flag_spec is actually meaningless, as there is
1092 # no search path for DLLs.
1093- hardcode_libdir_flag_spec=' '
1094- allow_undefined_flag=unsupported
1095- # Tell ltmain to make .lib files, not .a files.
1096- libext=lib
1097- # Tell ltmain to make .dll files, not .so files.
1098- shrext_cmds=".dll"
1099- # FIXME: Setting linknames here is a bad hack.
1100- archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
1101- # The linker will automatically build a .lib file if we build a DLL.
1102- old_archive_from_new_cmds='true'
1103- # FIXME: Should let the user specify the lib program.
1104- old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
1105- fix_srcfile_path='`cygpath -w "$srcfile"`'
1106- enable_shared_with_static_runtimes=yes
1107+ case $cc_basename in
1108+ cl*)
1109+ # Native MSVC
1110+ hardcode_libdir_flag_spec=' '
1111+ allow_undefined_flag=unsupported
1112+ always_export_symbols=yes
1113+ file_list_spec='@'
1114+ # Tell ltmain to make .lib files, not .a files.
1115+ libext=lib
1116+ # Tell ltmain to make .dll files, not .so files.
1117+ shrext_cmds=".dll"
1118+ # FIXME: Setting linknames here is a bad hack.
1119+ archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
1120+ archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
1121+ sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
1122+ else
1123+ sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
1124+ fi~
1125+ $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
1126+ linknames='
1127+ # The linker will not automatically build a static lib if we build a DLL.
1128+ # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
1129+ enable_shared_with_static_runtimes=yes
1130+ export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
1131+ # Don't use ranlib
1132+ old_postinstall_cmds='chmod 644 $oldlib'
1133+ postlink_cmds='lt_outputfile="@OUTPUT@"~
1134+ lt_tool_outputfile="@TOOL_OUTPUT@"~
1135+ case $lt_outputfile in
1136+ *.exe|*.EXE) ;;
1137+ *)
1138+ lt_outputfile="$lt_outputfile.exe"
1139+ lt_tool_outputfile="$lt_tool_outputfile.exe"
1140+ ;;
1141+ esac~
1142+ if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
1143+ $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
1144+ $RM "$lt_outputfile.manifest";
1145+ fi'
1146+ ;;
1147+ *)
1148+ # Assume MSVC wrapper
1149+ hardcode_libdir_flag_spec=' '
1150+ allow_undefined_flag=unsupported
1151+ # Tell ltmain to make .lib files, not .a files.
1152+ libext=lib
1153+ # Tell ltmain to make .dll files, not .so files.
1154+ shrext_cmds=".dll"
1155+ # FIXME: Setting linknames here is a bad hack.
1156+ archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
1157+ # The linker will automatically build a .lib file if we build a DLL.
1158+ old_archive_from_new_cmds='true'
1159+ # FIXME: Should let the user specify the lib program.
1160+ old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
1161+ enable_shared_with_static_runtimes=yes
1162+ ;;
1163+ esac
1164 ;;
1165
1166 darwin* | rhapsody*)
1167@@ -9387,7 +9965,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
1168
1169 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
1170 freebsd* | dragonfly*)
1171- archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
1172+ archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
1173 hardcode_libdir_flag_spec='-R$libdir'
1174 hardcode_direct=yes
1175 hardcode_shlibpath_var=no
1176@@ -9395,7 +9973,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
1177
1178 hpux9*)
1179 if test "$GCC" = yes; then
1180- archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
1181+ archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
1182 else
1183 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
1184 fi
1185@@ -9411,7 +9989,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
1186
1187 hpux10*)
1188 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
1189- archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
1190+ archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
1191 else
1192 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
1193 fi
1194@@ -9435,10 +10013,10 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
1195 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
1196 ;;
1197 ia64*)
1198- archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
1199+ archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
1200 ;;
1201 *)
1202- archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
1203+ archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
1204 ;;
1205 esac
1206 else
1207@@ -9517,23 +10095,36 @@ fi
1208
1209 irix5* | irix6* | nonstopux*)
1210 if test "$GCC" = yes; then
1211- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
1212+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
1213 # Try to use the -exported_symbol ld option, if it does not
1214 # work, assume that -exports_file does not work either and
1215 # implicitly export all symbols.
1216- save_LDFLAGS="$LDFLAGS"
1217- LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
1218- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1219+ # This should be the same for all languages, so no per-tag cache variable.
1220+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
1221+$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
1222+if ${lt_cv_irix_exported_symbol+:} false; then :
1223+ $as_echo_n "(cached) " >&6
1224+else
1225+ save_LDFLAGS="$LDFLAGS"
1226+ LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
1227+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1228 /* end confdefs.h. */
1229-int foo(void) {}
1230+int foo (void) { return 0; }
1231 _ACEOF
1232 if ac_fn_c_try_link "$LINENO"; then :
1233- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
1234-
1235+ lt_cv_irix_exported_symbol=yes
1236+else
1237+ lt_cv_irix_exported_symbol=no
1238 fi
1239 rm -f core conftest.err conftest.$ac_objext \
1240 conftest$ac_exeext conftest.$ac_ext
1241- LDFLAGS="$save_LDFLAGS"
1242+ LDFLAGS="$save_LDFLAGS"
1243+fi
1244+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
1245+$as_echo "$lt_cv_irix_exported_symbol" >&6; }
1246+ if test "$lt_cv_irix_exported_symbol" = yes; then
1247+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
1248+ fi
1249 else
1250 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
1251 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
1252@@ -9618,7 +10209,7 @@ rm -f core conftest.err conftest.$ac_objext \
1253 osf4* | osf5*) # as osf3* with the addition of -msym flag
1254 if test "$GCC" = yes; then
1255 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
1256- archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
1257+ archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
1258 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
1259 else
1260 allow_undefined_flag=' -expect_unresolved \*'
1261@@ -9637,9 +10228,9 @@ rm -f core conftest.err conftest.$ac_objext \
1262 no_undefined_flag=' -z defs'
1263 if test "$GCC" = yes; then
1264 wlarc='${wl}'
1265- archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
1266+ archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
1267 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
1268- $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
1269+ $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
1270 else
1271 case `$CC -V 2>&1` in
1272 *"Compilers 5.0"*)
1273@@ -10215,8 +10806,9 @@ cygwin* | mingw* | pw32* | cegcc*)
1274 need_version=no
1275 need_lib_prefix=no
1276
1277- case $GCC,$host_os in
1278- yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
1279+ case $GCC,$cc_basename in
1280+ yes,*)
1281+ # gcc
1282 library_names_spec='$libname.dll.a'
1283 # DLL is installed to $(libdir)/../bin by postinstall_cmds
1284 postinstall_cmds='base_file=`basename \${file}`~
1285@@ -10249,13 +10841,71 @@ cygwin* | mingw* | pw32* | cegcc*)
1286 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
1287 ;;
1288 esac
1289+ dynamic_linker='Win32 ld.exe'
1290+ ;;
1291+
1292+ *,cl*)
1293+ # Native MSVC
1294+ libname_spec='$name'
1295+ soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
1296+ library_names_spec='${libname}.dll.lib'
1297+
1298+ case $build_os in
1299+ mingw*)
1300+ sys_lib_search_path_spec=
1301+ lt_save_ifs=$IFS
1302+ IFS=';'
1303+ for lt_path in $LIB
1304+ do
1305+ IFS=$lt_save_ifs
1306+ # Let DOS variable expansion print the short 8.3 style file name.
1307+ lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
1308+ sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
1309+ done
1310+ IFS=$lt_save_ifs
1311+ # Convert to MSYS style.
1312+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
1313+ ;;
1314+ cygwin*)
1315+ # Convert to unix form, then to dos form, then back to unix form
1316+ # but this time dos style (no spaces!) so that the unix form looks
1317+ # like /cygdrive/c/PROGRA~1:/cygdr...
1318+ sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
1319+ sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
1320+ sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1321+ ;;
1322+ *)
1323+ sys_lib_search_path_spec="$LIB"
1324+ if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
1325+ # It is most probably a Windows format PATH.
1326+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
1327+ else
1328+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1329+ fi
1330+ # FIXME: find the short name or the path components, as spaces are
1331+ # common. (e.g. "Program Files" -> "PROGRA~1")
1332+ ;;
1333+ esac
1334+
1335+ # DLL is installed to $(libdir)/../bin by postinstall_cmds
1336+ postinstall_cmds='base_file=`basename \${file}`~
1337+ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
1338+ dldir=$destdir/`dirname \$dlpath`~
1339+ test -d \$dldir || mkdir -p \$dldir~
1340+ $install_prog $dir/$dlname \$dldir/$dlname'
1341+ postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
1342+ dlpath=$dir/\$dldll~
1343+ $RM \$dlpath'
1344+ shlibpath_overrides_runpath=yes
1345+ dynamic_linker='Win32 link.exe'
1346 ;;
1347
1348 *)
1349+ # Assume MSVC wrapper
1350 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
1351+ dynamic_linker='Win32 ld.exe'
1352 ;;
1353 esac
1354- dynamic_linker='Win32 ld.exe'
1355 # FIXME: first we should search . and the directory the executable is in
1356 shlibpath_var=PATH
1357 ;;
1358@@ -11157,7 +11807,7 @@ else
1359 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1360 lt_status=$lt_dlunknown
1361 cat > conftest.$ac_ext <<_LT_EOF
1362-#line 11160 "configure"
1363+#line $LINENO "configure"
1364 #include "confdefs.h"
1365
1366 #if HAVE_DLFCN_H
1367@@ -11201,10 +11851,10 @@ else
1368 /* When -fvisbility=hidden is used, assume the code has been annotated
1369 correspondingly for the symbols needed. */
1370 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
1371-void fnord () __attribute__((visibility("default")));
1372+int fnord () __attribute__((visibility("default")));
1373 #endif
1374
1375-void fnord () { int i=42; }
1376+int fnord () { return 42; }
1377 int main ()
1378 {
1379 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
1380@@ -11263,7 +11913,7 @@ else
1381 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1382 lt_status=$lt_dlunknown
1383 cat > conftest.$ac_ext <<_LT_EOF
1384-#line 11266 "configure"
1385+#line $LINENO "configure"
1386 #include "confdefs.h"
1387
1388 #if HAVE_DLFCN_H
1389@@ -11307,10 +11957,10 @@ else
1390 /* When -fvisbility=hidden is used, assume the code has been annotated
1391 correspondingly for the symbols needed. */
1392 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
1393-void fnord () __attribute__((visibility("default")));
1394+int fnord () __attribute__((visibility("default")));
1395 #endif
1396
1397-void fnord () { int i=42; }
1398+int fnord () { return 42; }
1399 int main ()
1400 {
1401 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
1402@@ -15691,7 +16341,7 @@ SHARED_LDFLAGS=
1403 if test "$enable_shared" = "yes"; then
1404 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
1405 if test -n "$x"; then
1406- SHARED_LIBADD="-L`pwd`/../libiberty/pic -liberty"
1407+ SHARED_LIBADD="`pwd`/../libiberty/pic/libiberty.a"
1408 fi
1409 fi
1410
1411@@ -18313,13 +18963,20 @@ exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
1412 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
1413 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
1414 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
1415+lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
1416+lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
1417 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
1418 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
1419 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
1420 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
1421 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
1422+file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
1423+want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
1424+DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
1425+sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
1426 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
1427 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
1428+archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
1429 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
1430 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
1431 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
1432@@ -18334,14 +18991,17 @@ lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$de
1433 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
1434 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
1435 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
1436+nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
1437+lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
1438 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
1439 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
1440 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
1441-lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
1442 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
1443+lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
1444 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
1445 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
1446 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
1447+MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
1448 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
1449 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
1450 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
1451@@ -18374,12 +19034,12 @@ hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_q
1452 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
1453 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
1454 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
1455-fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
1456 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
1457 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
1458 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
1459 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
1460 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
1461+postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
1462 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
1463 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
1464 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
1465@@ -18434,8 +19094,13 @@ reload_flag \
1466 OBJDUMP \
1467 deplibs_check_method \
1468 file_magic_cmd \
1469+file_magic_glob \
1470+want_nocaseglob \
1471+DLLTOOL \
1472+sharedlib_from_linklib_cmd \
1473 AR \
1474 AR_FLAGS \
1475+archiver_list_spec \
1476 STRIP \
1477 RANLIB \
1478 CC \
1479@@ -18445,12 +19110,14 @@ lt_cv_sys_global_symbol_pipe \
1480 lt_cv_sys_global_symbol_to_cdecl \
1481 lt_cv_sys_global_symbol_to_c_name_address \
1482 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
1483+nm_file_list_spec \
1484 lt_prog_compiler_no_builtin_flag \
1485-lt_prog_compiler_wl \
1486 lt_prog_compiler_pic \
1487+lt_prog_compiler_wl \
1488 lt_prog_compiler_static \
1489 lt_cv_prog_compiler_c_o \
1490 need_locks \
1491+MANIFEST_TOOL \
1492 DSYMUTIL \
1493 NMEDIT \
1494 LIPO \
1495@@ -18466,7 +19133,6 @@ no_undefined_flag \
1496 hardcode_libdir_flag_spec \
1497 hardcode_libdir_flag_spec_ld \
1498 hardcode_libdir_separator \
1499-fix_srcfile_path \
1500 exclude_expsyms \
1501 include_expsyms \
1502 file_list_spec \
1503@@ -18502,6 +19168,7 @@ module_cmds \
1504 module_expsym_cmds \
1505 export_symbols_cmds \
1506 prelink_cmds \
1507+postlink_cmds \
1508 postinstall_cmds \
1509 postuninstall_cmds \
1510 finish_cmds \
1511@@ -19278,7 +19945,8 @@ $as_echo X"$file" |
1512 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
1513 #
1514 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
1515-# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
1516+# 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
1517+# Inc.
1518 # Written by Gordon Matzigkeit, 1996
1519 #
1520 # This file is part of GNU Libtool.
1521@@ -19381,19 +20049,42 @@ SP2NL=$lt_lt_SP2NL
1522 # turn newlines into spaces.
1523 NL2SP=$lt_lt_NL2SP
1524
1525+# convert \$build file names to \$host format.
1526+to_host_file_cmd=$lt_cv_to_host_file_cmd
1527+
1528+# convert \$build files to toolchain format.
1529+to_tool_file_cmd=$lt_cv_to_tool_file_cmd
1530+
1531 # An object symbol dumper.
1532 OBJDUMP=$lt_OBJDUMP
1533
1534 # Method to check whether dependent libraries are shared objects.
1535 deplibs_check_method=$lt_deplibs_check_method
1536
1537-# Command to use when deplibs_check_method == "file_magic".
1538+# Command to use when deplibs_check_method = "file_magic".
1539 file_magic_cmd=$lt_file_magic_cmd
1540
1541+# How to find potential files when deplibs_check_method = "file_magic".
1542+file_magic_glob=$lt_file_magic_glob
1543+
1544+# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
1545+want_nocaseglob=$lt_want_nocaseglob
1546+
1547+# DLL creation program.
1548+DLLTOOL=$lt_DLLTOOL
1549+
1550+# Command to associate shared and link libraries.
1551+sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
1552+
1553 # The archiver.
1554 AR=$lt_AR
1555+
1556+# Flags to create an archive.
1557 AR_FLAGS=$lt_AR_FLAGS
1558
1559+# How to feed a file listing to the archiver.
1560+archiver_list_spec=$lt_archiver_list_spec
1561+
1562 # A symbol stripping program.
1563 STRIP=$lt_STRIP
1564
1565@@ -19423,6 +20114,12 @@ global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
1566 # Transform the output of nm in a C name address pair when lib prefix is needed.
1567 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
1568
1569+# Specify filename containing input files for \$NM.
1570+nm_file_list_spec=$lt_nm_file_list_spec
1571+
1572+# The root where to search for dependent libraries,and in which our libraries should be installed.
1573+lt_sysroot=$lt_sysroot
1574+
1575 # The name of the directory that contains temporary libtool files.
1576 objdir=$objdir
1577
1578@@ -19432,6 +20129,9 @@ MAGIC_CMD=$MAGIC_CMD
1579 # Must we lock files when doing compilation?
1580 need_locks=$lt_need_locks
1581
1582+# Manifest tool.
1583+MANIFEST_TOOL=$lt_MANIFEST_TOOL
1584+
1585 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
1586 DSYMUTIL=$lt_DSYMUTIL
1587
1588@@ -19546,12 +20246,12 @@ with_gcc=$GCC
1589 # Compiler flag to turn off builtin functions.
1590 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
1591
1592-# How to pass a linker flag through the compiler.
1593-wl=$lt_lt_prog_compiler_wl
1594-
1595 # Additional compiler flags for building library objects.
1596 pic_flag=$lt_lt_prog_compiler_pic
1597
1598+# How to pass a linker flag through the compiler.
1599+wl=$lt_lt_prog_compiler_wl
1600+
1601 # Compiler flag to prevent dynamic linking.
1602 link_static_flag=$lt_lt_prog_compiler_static
1603
1604@@ -19638,9 +20338,6 @@ inherit_rpath=$inherit_rpath
1605 # Whether libtool must link a program against all its dependency libraries.
1606 link_all_deplibs=$link_all_deplibs
1607
1608-# Fix the shell variable \$srcfile for the compiler.
1609-fix_srcfile_path=$lt_fix_srcfile_path
1610-
1611 # Set to "yes" if exported symbols are required.
1612 always_export_symbols=$always_export_symbols
1613
1614@@ -19656,6 +20353,9 @@ include_expsyms=$lt_include_expsyms
1615 # Commands necessary for linking programs (against libraries) with templates.
1616 prelink_cmds=$lt_prelink_cmds
1617
1618+# Commands necessary for finishing linking programs.
1619+postlink_cmds=$lt_postlink_cmds
1620+
1621 # Specify filename containing input files.
1622 file_list_spec=$lt_file_list_spec
1623
1624@@ -19688,210 +20388,169 @@ ltmain="$ac_aux_dir/ltmain.sh"
1625 # if finds mixed CR/LF and LF-only lines. Since sed operates in
1626 # text mode, it properly converts lines to CR/LF. This bash problem
1627 # is reportedly fixed, but why not run on old versions too?
1628- sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
1629- || (rm -f "$cfgfile"; exit 1)
1630-
1631- case $xsi_shell in
1632- yes)
1633- cat << \_LT_EOF >> "$cfgfile"
1634-
1635-# func_dirname file append nondir_replacement
1636-# Compute the dirname of FILE. If nonempty, add APPEND to the result,
1637-# otherwise set result to NONDIR_REPLACEMENT.
1638-func_dirname ()
1639-{
1640- case ${1} in
1641- */*) func_dirname_result="${1%/*}${2}" ;;
1642- * ) func_dirname_result="${3}" ;;
1643- esac
1644-}
1645-
1646-# func_basename file
1647-func_basename ()
1648-{
1649- func_basename_result="${1##*/}"
1650-}
1651-
1652-# func_dirname_and_basename file append nondir_replacement
1653-# perform func_basename and func_dirname in a single function
1654-# call:
1655-# dirname: Compute the dirname of FILE. If nonempty,
1656-# add APPEND to the result, otherwise set result
1657-# to NONDIR_REPLACEMENT.
1658-# value returned in "$func_dirname_result"
1659-# basename: Compute filename of FILE.
1660-# value retuned in "$func_basename_result"
1661-# Implementation must be kept synchronized with func_dirname
1662-# and func_basename. For efficiency, we do not delegate to
1663-# those functions but instead duplicate the functionality here.
1664-func_dirname_and_basename ()
1665-{
1666- case ${1} in
1667- */*) func_dirname_result="${1%/*}${2}" ;;
1668- * ) func_dirname_result="${3}" ;;
1669- esac
1670- func_basename_result="${1##*/}"
1671-}
1672-
1673-# func_stripname prefix suffix name
1674-# strip PREFIX and SUFFIX off of NAME.
1675-# PREFIX and SUFFIX must not contain globbing or regex special
1676-# characters, hashes, percent signs, but SUFFIX may contain a leading
1677-# dot (in which case that matches only a dot).
1678-func_stripname ()
1679-{
1680- # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
1681- # positional parameters, so assign one to ordinary parameter first.
1682- func_stripname_result=${3}
1683- func_stripname_result=${func_stripname_result#"${1}"}
1684- func_stripname_result=${func_stripname_result%"${2}"}
1685-}
1686-
1687-# func_opt_split
1688-func_opt_split ()
1689-{
1690- func_opt_split_opt=${1%%=*}
1691- func_opt_split_arg=${1#*=}
1692-}
1693-
1694-# func_lo2o object
1695-func_lo2o ()
1696-{
1697- case ${1} in
1698- *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
1699- *) func_lo2o_result=${1} ;;
1700- esac
1701-}
1702-
1703-# func_xform libobj-or-source
1704-func_xform ()
1705-{
1706- func_xform_result=${1%.*}.lo
1707-}
1708-
1709-# func_arith arithmetic-term...
1710-func_arith ()
1711-{
1712- func_arith_result=$(( $* ))
1713-}
1714-
1715-# func_len string
1716-# STRING may not start with a hyphen.
1717-func_len ()
1718-{
1719- func_len_result=${#1}
1720-}
1721-
1722-_LT_EOF
1723- ;;
1724- *) # Bourne compatible functions.
1725- cat << \_LT_EOF >> "$cfgfile"
1726-
1727-# func_dirname file append nondir_replacement
1728-# Compute the dirname of FILE. If nonempty, add APPEND to the result,
1729-# otherwise set result to NONDIR_REPLACEMENT.
1730-func_dirname ()
1731-{
1732- # Extract subdirectory from the argument.
1733- func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
1734- if test "X$func_dirname_result" = "X${1}"; then
1735- func_dirname_result="${3}"
1736- else
1737- func_dirname_result="$func_dirname_result${2}"
1738- fi
1739-}
1740-
1741-# func_basename file
1742-func_basename ()
1743-{
1744- func_basename_result=`$ECHO "${1}" | $SED "$basename"`
1745-}
1746-
1747-
1748-# func_stripname prefix suffix name
1749-# strip PREFIX and SUFFIX off of NAME.
1750-# PREFIX and SUFFIX must not contain globbing or regex special
1751-# characters, hashes, percent signs, but SUFFIX may contain a leading
1752-# dot (in which case that matches only a dot).
1753-# func_strip_suffix prefix name
1754-func_stripname ()
1755-{
1756- case ${2} in
1757- .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
1758- *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
1759- esac
1760-}
1761-
1762-# sed scripts:
1763-my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
1764-my_sed_long_arg='1s/^-[^=]*=//'
1765-
1766-# func_opt_split
1767-func_opt_split ()
1768-{
1769- func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
1770- func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
1771-}
1772-
1773-# func_lo2o object
1774-func_lo2o ()
1775-{
1776- func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
1777-}
1778-
1779-# func_xform libobj-or-source
1780-func_xform ()
1781-{
1782- func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
1783-}
1784-
1785-# func_arith arithmetic-term...
1786-func_arith ()
1787-{
1788- func_arith_result=`expr "$@"`
1789-}
1790-
1791-# func_len string
1792-# STRING may not start with a hyphen.
1793-func_len ()
1794-{
1795- func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
1796-}
1797-
1798-_LT_EOF
1799-esac
1800-
1801-case $lt_shell_append in
1802- yes)
1803- cat << \_LT_EOF >> "$cfgfile"
1804-
1805-# func_append var value
1806-# Append VALUE to the end of shell variable VAR.
1807-func_append ()
1808-{
1809- eval "$1+=\$2"
1810-}
1811-_LT_EOF
1812- ;;
1813- *)
1814- cat << \_LT_EOF >> "$cfgfile"
1815-
1816-# func_append var value
1817-# Append VALUE to the end of shell variable VAR.
1818-func_append ()
1819-{
1820- eval "$1=\$$1\$2"
1821-}
1822-
1823-_LT_EOF
1824- ;;
1825- esac
1826-
1827-
1828- sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
1829- || (rm -f "$cfgfile"; exit 1)
1830-
1831- mv -f "$cfgfile" "$ofile" ||
1832+ sed '$q' "$ltmain" >> "$cfgfile" \
1833+ || (rm -f "$cfgfile"; exit 1)
1834+
1835+ if test x"$xsi_shell" = xyes; then
1836+ sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
1837+func_dirname ()\
1838+{\
1839+\ case ${1} in\
1840+\ */*) func_dirname_result="${1%/*}${2}" ;;\
1841+\ * ) func_dirname_result="${3}" ;;\
1842+\ esac\
1843+} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
1844+ && mv -f "$cfgfile.tmp" "$cfgfile" \
1845+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
1846+test 0 -eq $? || _lt_function_replace_fail=:
1847+
1848+
1849+ sed -e '/^func_basename ()$/,/^} # func_basename /c\
1850+func_basename ()\
1851+{\
1852+\ func_basename_result="${1##*/}"\
1853+} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
1854+ && mv -f "$cfgfile.tmp" "$cfgfile" \
1855+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
1856+test 0 -eq $? || _lt_function_replace_fail=:
1857+
1858+
1859+ sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
1860+func_dirname_and_basename ()\
1861+{\
1862+\ case ${1} in\
1863+\ */*) func_dirname_result="${1%/*}${2}" ;;\
1864+\ * ) func_dirname_result="${3}" ;;\
1865+\ esac\
1866+\ func_basename_result="${1##*/}"\
1867+} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
1868+ && mv -f "$cfgfile.tmp" "$cfgfile" \
1869+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
1870+test 0 -eq $? || _lt_function_replace_fail=:
1871+
1872+
1873+ sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
1874+func_stripname ()\
1875+{\
1876+\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
1877+\ # positional parameters, so assign one to ordinary parameter first.\
1878+\ func_stripname_result=${3}\
1879+\ func_stripname_result=${func_stripname_result#"${1}"}\
1880+\ func_stripname_result=${func_stripname_result%"${2}"}\
1881+} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
1882+ && mv -f "$cfgfile.tmp" "$cfgfile" \
1883+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
1884+test 0 -eq $? || _lt_function_replace_fail=:
1885+
1886+
1887+ sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
1888+func_split_long_opt ()\
1889+{\
1890+\ func_split_long_opt_name=${1%%=*}\
1891+\ func_split_long_opt_arg=${1#*=}\
1892+} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
1893+ && mv -f "$cfgfile.tmp" "$cfgfile" \
1894+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
1895+test 0 -eq $? || _lt_function_replace_fail=:
1896+
1897+
1898+ sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
1899+func_split_short_opt ()\
1900+{\
1901+\ func_split_short_opt_arg=${1#??}\
1902+\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
1903+} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
1904+ && mv -f "$cfgfile.tmp" "$cfgfile" \
1905+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
1906+test 0 -eq $? || _lt_function_replace_fail=:
1907+
1908+
1909+ sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
1910+func_lo2o ()\
1911+{\
1912+\ case ${1} in\
1913+\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
1914+\ *) func_lo2o_result=${1} ;;\
1915+\ esac\
1916+} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
1917+ && mv -f "$cfgfile.tmp" "$cfgfile" \
1918+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
1919+test 0 -eq $? || _lt_function_replace_fail=:
1920+
1921+
1922+ sed -e '/^func_xform ()$/,/^} # func_xform /c\
1923+func_xform ()\
1924+{\
1925+ func_xform_result=${1%.*}.lo\
1926+} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
1927+ && mv -f "$cfgfile.tmp" "$cfgfile" \
1928+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
1929+test 0 -eq $? || _lt_function_replace_fail=:
1930+
1931+
1932+ sed -e '/^func_arith ()$/,/^} # func_arith /c\
1933+func_arith ()\
1934+{\
1935+ func_arith_result=$(( $* ))\
1936+} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
1937+ && mv -f "$cfgfile.tmp" "$cfgfile" \
1938+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
1939+test 0 -eq $? || _lt_function_replace_fail=:
1940+
1941+
1942+ sed -e '/^func_len ()$/,/^} # func_len /c\
1943+func_len ()\
1944+{\
1945+ func_len_result=${#1}\
1946+} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
1947+ && mv -f "$cfgfile.tmp" "$cfgfile" \
1948+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
1949+test 0 -eq $? || _lt_function_replace_fail=:
1950+
1951+fi
1952+
1953+if test x"$lt_shell_append" = xyes; then
1954+ sed -e '/^func_append ()$/,/^} # func_append /c\
1955+func_append ()\
1956+{\
1957+ eval "${1}+=\\${2}"\
1958+} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
1959+ && mv -f "$cfgfile.tmp" "$cfgfile" \
1960+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
1961+test 0 -eq $? || _lt_function_replace_fail=:
1962+
1963+
1964+ sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
1965+func_append_quoted ()\
1966+{\
1967+\ func_quote_for_eval "${2}"\
1968+\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
1969+} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
1970+ && mv -f "$cfgfile.tmp" "$cfgfile" \
1971+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
1972+test 0 -eq $? || _lt_function_replace_fail=:
1973+
1974+
1975+ # Save a `func_append' function call where possible by direct use of '+='
1976+ sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
1977+ && mv -f "$cfgfile.tmp" "$cfgfile" \
1978+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
1979+ test 0 -eq $? || _lt_function_replace_fail=:
1980+else
1981+ # Save a `func_append' function call even when '+=' is not available
1982+ sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
1983+ && mv -f "$cfgfile.tmp" "$cfgfile" \
1984+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
1985+ test 0 -eq $? || _lt_function_replace_fail=:
1986+fi
1987+
1988+if test x"$_lt_function_replace_fail" = x":"; then
1989+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
1990+$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
1991+fi
1992+
1993+
1994+ mv -f "$cfgfile" "$ofile" ||
1995 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
1996 chmod +x "$ofile"
1997
1998diff --git a/bfd/configure.ac b/bfd/configure.ac
1999index 7fcc5d4a947..f7191d3f30f 100644
2000--- a/bfd/configure.ac
2001+++ b/bfd/configure.ac
2002@@ -276,7 +276,7 @@ changequote(,)dnl
2003 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
2004 changequote([,])dnl
2005 if test -n "$x"; then
2006- SHARED_LIBADD="-L`pwd`/../libiberty/pic -liberty"
2007+ SHARED_LIBADD="`pwd`/../libiberty/pic/libiberty.a"
2008 fi
2009 fi
2010
2011diff --git a/binutils/Makefile.in b/binutils/Makefile.in
2012index 842a6d99b54..037cccde038 100644
2013--- a/binutils/Makefile.in
2014+++ b/binutils/Makefile.in
2015@@ -495,6 +495,7 @@ DEBUGINFOD_LIBS = @DEBUGINFOD_LIBS@
2016 DEFS = @DEFS@
2017 DEMANGLER_NAME = @DEMANGLER_NAME@
2018 DEPDIR = @DEPDIR@
2019+DLLTOOL = @DLLTOOL@
2020 DLLTOOL_DEFS = @DLLTOOL_DEFS@
2021 DSYMUTIL = @DSYMUTIL@
2022 DUMPBIN = @DUMPBIN@
2023@@ -539,6 +540,7 @@ LTLIBINTL = @LTLIBINTL@
2024 LTLIBOBJS = @LTLIBOBJS@
2025 MAINT = @MAINT@
2026 MAKEINFO = @MAKEINFO@
2027+MANIFEST_TOOL = @MANIFEST_TOOL@
2028 MKDIR_P = @MKDIR_P@
2029 MKINSTALLDIRS = @MKINSTALLDIRS@
2030 MSGFMT = @MSGFMT@
2031@@ -587,6 +589,7 @@ abs_builddir = @abs_builddir@
2032 abs_srcdir = @abs_srcdir@
2033 abs_top_builddir = @abs_top_builddir@
2034 abs_top_srcdir = @abs_top_srcdir@
2035+ac_ct_AR = @ac_ct_AR@
2036 ac_ct_CC = @ac_ct_CC@
2037 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
2038 am__include = @am__include@
2039diff --git a/binutils/configure b/binutils/configure
2040index a1092735311..f3bdee98f3f 100755
2041--- a/binutils/configure
2042+++ b/binutils/configure
2043@@ -704,8 +704,11 @@ OTOOL
2044 LIPO
2045 NMEDIT
2046 DSYMUTIL
2047+MANIFEST_TOOL
2048 RANLIB
2049+ac_ct_AR
2050 AR
2051+DLLTOOL
2052 OBJDUMP
2053 LN_S
2054 NM
2055@@ -822,6 +825,7 @@ enable_static
2056 with_pic
2057 enable_fast_install
2058 with_gnu_ld
2059+with_libtool_sysroot
2060 enable_libtool_lock
2061 enable_plugins
2062 enable_largefile
2063@@ -1529,6 +1533,8 @@ Optional Packages:
2064 --with-pic try to use only PIC/non-PIC objects [default=use
2065 both]
2066 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
2067+ --with-libtool-sysroot=DIR Search for dependent libraries within DIR
2068+ (or the compiler's sysroot if not specified).
2069 --with-debuginfod Enable debuginfo lookups with debuginfod
2070 (auto/yes/no)
2071 --with-gnu-ld assume the C compiler uses GNU ld default=no
2072@@ -4958,8 +4964,8 @@ esac
2073
2074
2075
2076-macro_version='2.2.7a'
2077-macro_revision='1.3134'
2078+macro_version='2.4'
2079+macro_revision='1.3293'
2080
2081
2082
2083@@ -4999,7 +5005,7 @@ ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2085 $as_echo_n "checking how to print strings... " >&6; }
2086 # Test print first, because it will be a builtin if present.
2087-if test "X`print -r -- -n 2>/dev/null`" = X-n && \
2088+if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2089 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2090 ECHO='print -r --'
2091 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2092@@ -5692,8 +5698,8 @@ $as_echo_n "checking whether the shell understands some XSI constructs... " >&6;
2093 # Try some XSI features
2094 xsi_shell=no
2095 ( _lt_dummy="a/b/c"
2096- test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
2097- = c,a/b,, \
2098+ test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
2099+ = c,a/b,b/c, \
2100 && eval 'test $(( 1 + 1 )) -eq 2 \
2101 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
2102 && xsi_shell=yes
2103@@ -5742,6 +5748,80 @@ esac
2104
2105
2106
2107+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
2108+$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
2109+if ${lt_cv_to_host_file_cmd+:} false; then :
2110+ $as_echo_n "(cached) " >&6
2111+else
2112+ case $host in
2113+ *-*-mingw* )
2114+ case $build in
2115+ *-*-mingw* ) # actually msys
2116+ lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
2117+ ;;
2118+ *-*-cygwin* )
2119+ lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
2120+ ;;
2121+ * ) # otherwise, assume *nix
2122+ lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
2123+ ;;
2124+ esac
2125+ ;;
2126+ *-*-cygwin* )
2127+ case $build in
2128+ *-*-mingw* ) # actually msys
2129+ lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
2130+ ;;
2131+ *-*-cygwin* )
2132+ lt_cv_to_host_file_cmd=func_convert_file_noop
2133+ ;;
2134+ * ) # otherwise, assume *nix
2135+ lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
2136+ ;;
2137+ esac
2138+ ;;
2139+ * ) # unhandled hosts (and "normal" native builds)
2140+ lt_cv_to_host_file_cmd=func_convert_file_noop
2141+ ;;
2142+esac
2143+
2144+fi
2145+
2146+to_host_file_cmd=$lt_cv_to_host_file_cmd
2147+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
2148+$as_echo "$lt_cv_to_host_file_cmd" >&6; }
2149+
2150+
2151+
2152+
2153+
2154+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
2155+$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
2156+if ${lt_cv_to_tool_file_cmd+:} false; then :
2157+ $as_echo_n "(cached) " >&6
2158+else
2159+ #assume ordinary cross tools, or native build.
2160+lt_cv_to_tool_file_cmd=func_convert_file_noop
2161+case $host in
2162+ *-*-mingw* )
2163+ case $build in
2164+ *-*-mingw* ) # actually msys
2165+ lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
2166+ ;;
2167+ esac
2168+ ;;
2169+esac
2170+
2171+fi
2172+
2173+to_tool_file_cmd=$lt_cv_to_tool_file_cmd
2174+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
2175+$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
2176+
2177+
2178+
2179+
2180+
2181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
2182 $as_echo_n "checking for $LD option to reload object files... " >&6; }
2183 if ${lt_cv_ld_reload_flag+:} false; then :
2184@@ -5758,6 +5838,11 @@ case $reload_flag in
2185 esac
2186 reload_cmds='$LD$reload_flag -o $output$reload_objs'
2187 case $host_os in
2188+ cygwin* | mingw* | pw32* | cegcc*)
2189+ if test "$GCC" != yes; then
2190+ reload_cmds=false
2191+ fi
2192+ ;;
2193 darwin*)
2194 if test "$GCC" = yes; then
2195 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
2196@@ -5926,7 +6011,8 @@ mingw* | pw32*)
2197 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
2198 lt_cv_file_magic_cmd='func_win32_libid'
2199 else
2200- lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2201+ # Keep this pattern in sync with the one in func_win32_libid.
2202+ lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
2203 lt_cv_file_magic_cmd='$OBJDUMP -f'
2204 fi
2205 ;;
2206@@ -6085,6 +6171,21 @@ esac
2207 fi
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
2209 $as_echo "$lt_cv_deplibs_check_method" >&6; }
2210+
2211+file_magic_glob=
2212+want_nocaseglob=no
2213+if test "$build" = "$host"; then
2214+ case $host_os in
2215+ mingw* | pw32*)
2216+ if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
2217+ want_nocaseglob=yes
2218+ else
2219+ file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
2220+ fi
2221+ ;;
2222+ esac
2223+fi
2224+
2225 file_magic_cmd=$lt_cv_file_magic_cmd
2226 deplibs_check_method=$lt_cv_deplibs_check_method
2227 test -z "$deplibs_check_method" && deplibs_check_method=unknown
2228@@ -6100,6 +6201,157 @@ test -z "$deplibs_check_method" && deplibs_check_method=unknown
2229
2230
2231
2232+
2233+
2234+
2235+
2236+
2237+
2238+
2239+
2240+
2241+
2242+if test -n "$ac_tool_prefix"; then
2243+ # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
2244+set dummy ${ac_tool_prefix}dlltool; ac_word=$2
2245+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2246+$as_echo_n "checking for $ac_word... " >&6; }
2247+if ${ac_cv_prog_DLLTOOL+:} false; then :
2248+ $as_echo_n "(cached) " >&6
2249+else
2250+ if test -n "$DLLTOOL"; then
2251+ ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
2252+else
2253+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2254+for as_dir in $PATH
2255+do
2256+ IFS=$as_save_IFS
2257+ test -z "$as_dir" && as_dir=.
2258+ for ac_exec_ext in '' $ac_executable_extensions; do
2259+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2260+ ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
2261+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2262+ break 2
2263+ fi
2264+done
2265+ done
2266+IFS=$as_save_IFS
2267+
2268+fi
2269+fi
2270+DLLTOOL=$ac_cv_prog_DLLTOOL
2271+if test -n "$DLLTOOL"; then
2272+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
2273+$as_echo "$DLLTOOL" >&6; }
2274+else
2275+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2276+$as_echo "no" >&6; }
2277+fi
2278+
2279+
2280+fi
2281+if test -z "$ac_cv_prog_DLLTOOL"; then
2282+ ac_ct_DLLTOOL=$DLLTOOL
2283+ # Extract the first word of "dlltool", so it can be a program name with args.
2284+set dummy dlltool; ac_word=$2
2285+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2286+$as_echo_n "checking for $ac_word... " >&6; }
2287+if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
2288+ $as_echo_n "(cached) " >&6
2289+else
2290+ if test -n "$ac_ct_DLLTOOL"; then
2291+ ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
2292+else
2293+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2294+for as_dir in $PATH
2295+do
2296+ IFS=$as_save_IFS
2297+ test -z "$as_dir" && as_dir=.
2298+ for ac_exec_ext in '' $ac_executable_extensions; do
2299+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2300+ ac_cv_prog_ac_ct_DLLTOOL="dlltool"
2301+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2302+ break 2
2303+ fi
2304+done
2305+ done
2306+IFS=$as_save_IFS
2307+
2308+fi
2309+fi
2310+ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
2311+if test -n "$ac_ct_DLLTOOL"; then
2312+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
2313+$as_echo "$ac_ct_DLLTOOL" >&6; }
2314+else
2315+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2316+$as_echo "no" >&6; }
2317+fi
2318+
2319+ if test "x$ac_ct_DLLTOOL" = x; then
2320+ DLLTOOL="false"
2321+ else
2322+ case $cross_compiling:$ac_tool_warned in
2323+yes:)
2324+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2325+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2326+ac_tool_warned=yes ;;
2327+esac
2328+ DLLTOOL=$ac_ct_DLLTOOL
2329+ fi
2330+else
2331+ DLLTOOL="$ac_cv_prog_DLLTOOL"
2332+fi
2333+
2334+test -z "$DLLTOOL" && DLLTOOL=dlltool
2335+
2336+
2337+
2338+
2339+
2340+
2341+
2342+
2343+
2344+
2345+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
2346+$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
2347+if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
2348+ $as_echo_n "(cached) " >&6
2349+else
2350+ lt_cv_sharedlib_from_linklib_cmd='unknown'
2351+
2352+case $host_os in
2353+cygwin* | mingw* | pw32* | cegcc*)
2354+ # two different shell functions defined in ltmain.sh
2355+ # decide which to use based on capabilities of $DLLTOOL
2356+ case `$DLLTOOL --help 2>&1` in
2357+ *--identify-strict*)
2358+ lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
2359+ ;;
2360+ *)
2361+ lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
2362+ ;;
2363+ esac
2364+ ;;
2365+*)
2366+ # fallback: assume linklib IS sharedlib
2367+ lt_cv_sharedlib_from_linklib_cmd="$ECHO"
2368+ ;;
2369+esac
2370+
2371+fi
2372+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
2373+$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
2374+sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
2375+test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
2376+
2377+
2378+
2379+
2380+
2381+
2382+
2383 plugin_option=
2384 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
2385 for plugin in $plugin_names; do
2386@@ -6114,8 +6366,10 @@ for plugin in $plugin_names; do
2387 done
2388
2389 if test -n "$ac_tool_prefix"; then
2390- # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2391-set dummy ${ac_tool_prefix}ar; ac_word=$2
2392+ for ac_prog in ar
2393+ do
2394+ # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2395+set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2397 $as_echo_n "checking for $ac_word... " >&6; }
2398 if ${ac_cv_prog_AR+:} false; then :
2399@@ -6131,7 +6385,7 @@ do
2400 test -z "$as_dir" && as_dir=.
2401 for ac_exec_ext in '' $ac_executable_extensions; do
2402 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2403- ac_cv_prog_AR="${ac_tool_prefix}ar"
2404+ ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
2405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2406 break 2
2407 fi
2408@@ -6151,11 +6405,15 @@ $as_echo "no" >&6; }
2409 fi
2410
2411
2412+ test -n "$AR" && break
2413+ done
2414 fi
2415-if test -z "$ac_cv_prog_AR"; then
2416+if test -z "$AR"; then
2417 ac_ct_AR=$AR
2418- # Extract the first word of "ar", so it can be a program name with args.
2419-set dummy ar; ac_word=$2
2420+ for ac_prog in ar
2421+do
2422+ # Extract the first word of "$ac_prog", so it can be a program name with args.
2423+set dummy $ac_prog; ac_word=$2
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2425 $as_echo_n "checking for $ac_word... " >&6; }
2426 if ${ac_cv_prog_ac_ct_AR+:} false; then :
2427@@ -6171,7 +6429,7 @@ do
2428 test -z "$as_dir" && as_dir=.
2429 for ac_exec_ext in '' $ac_executable_extensions; do
2430 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2431- ac_cv_prog_ac_ct_AR="ar"
2432+ ac_cv_prog_ac_ct_AR="$ac_prog"
2433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2434 break 2
2435 fi
2436@@ -6190,6 +6448,10 @@ else
2437 $as_echo "no" >&6; }
2438 fi
2439
2440+
2441+ test -n "$ac_ct_AR" && break
2442+done
2443+
2444 if test "x$ac_ct_AR" = x; then
2445 AR="false"
2446 else
2447@@ -6201,25 +6463,19 @@ ac_tool_warned=yes ;;
2448 esac
2449 AR=$ac_ct_AR
2450 fi
2451-else
2452- AR="$ac_cv_prog_AR"
2453 fi
2454
2455-test -z "$AR" && AR=ar
2456-if test -n "$plugin_option"; then
2457- if $AR --help 2>&1 | grep -q "\--plugin"; then
2458- touch conftest.c
2459- $AR $plugin_option rc conftest.a conftest.c
2460- if test "$?" != 0; then
2461- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
2462+ touch conftest.c
2463+ $AR $plugin_option rc conftest.a conftest.c
2464+ if test "$?" != 0; then
2465+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
2466 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
2467- else
2468- AR="$AR $plugin_option"
2469- fi
2470- rm -f conftest.*
2471+ else
2472+ AR="$AR $plugin_option"
2473 fi
2474-fi
2475-test -z "$AR_FLAGS" && AR_FLAGS=cru
2476+ rm -f conftest.*
2477+: ${AR=ar}
2478+: ${AR_FLAGS=cru}
2479
2480
2481
2482@@ -6231,6 +6487,64 @@ test -z "$AR_FLAGS" && AR_FLAGS=cru
2483
2484
2485
2486+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
2487+$as_echo_n "checking for archiver @FILE support... " >&6; }
2488+if ${lt_cv_ar_at_file+:} false; then :
2489+ $as_echo_n "(cached) " >&6
2490+else
2491+ lt_cv_ar_at_file=no
2492+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2493+/* end confdefs.h. */
2494+
2495+int
2496+main ()
2497+{
2498+
2499+ ;
2500+ return 0;
2501+}
2502+_ACEOF
2503+if ac_fn_c_try_compile "$LINENO"; then :
2504+ echo conftest.$ac_objext > conftest.lst
2505+ lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
2506+ { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
2507+ (eval $lt_ar_try) 2>&5
2508+ ac_status=$?
2509+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2510+ test $ac_status = 0; }
2511+ if test "$ac_status" -eq 0; then
2512+ # Ensure the archiver fails upon bogus file names.
2513+ rm -f conftest.$ac_objext libconftest.a
2514+ { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
2515+ (eval $lt_ar_try) 2>&5
2516+ ac_status=$?
2517+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2518+ test $ac_status = 0; }
2519+ if test "$ac_status" -ne 0; then
2520+ lt_cv_ar_at_file=@
2521+ fi
2522+ fi
2523+ rm -f conftest.* libconftest.a
2524+
2525+fi
2526+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2527+
2528+fi
2529+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
2530+$as_echo "$lt_cv_ar_at_file" >&6; }
2531+
2532+if test "x$lt_cv_ar_at_file" = xno; then
2533+ archiver_list_spec=
2534+else
2535+ archiver_list_spec=$lt_cv_ar_at_file
2536+fi
2537+
2538+
2539+
2540+
2541+
2542+
2543+
2544 if test -n "$ac_tool_prefix"; then
2545 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2546 set dummy ${ac_tool_prefix}strip; ac_word=$2
2547@@ -6570,8 +6884,8 @@ esac
2548 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
2549
2550 # Transform an extracted symbol line into symbol name and symbol address
2551-lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
2552-lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
2553+lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
2554+lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
2555
2556 # Handle CRLF in mingw tool chain
2557 opt_cr=
2558@@ -6607,6 +6921,7 @@ for ac_symprfx in "" "_"; do
2559 else
2560 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
2561 fi
2562+ lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
2563
2564 # Check to see that the pipe works correctly.
2565 pipe_works=no
2566@@ -6648,6 +6963,18 @@ _LT_EOF
2567 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
2568 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
2569 cat <<_LT_EOF > conftest.$ac_ext
2570+/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
2571+#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
2572+/* DATA imports from DLLs on WIN32 con't be const, because runtime
2573+ relocations are performed -- see ld's documentation on pseudo-relocs. */
2574+# define LT_DLSYM_CONST
2575+#elif defined(__osf__)
2576+/* This system does not cope well with relocations in const data. */
2577+# define LT_DLSYM_CONST
2578+#else
2579+# define LT_DLSYM_CONST const
2580+#endif
2581+
2582 #ifdef __cplusplus
2583 extern "C" {
2584 #endif
2585@@ -6659,7 +6986,7 @@ _LT_EOF
2586 cat <<_LT_EOF >> conftest.$ac_ext
2587
2588 /* The mapping between symbol names and symbols. */
2589-const struct {
2590+LT_DLSYM_CONST struct {
2591 const char *name;
2592 void *address;
2593 }
2594@@ -6685,8 +7012,8 @@ static const void *lt_preloaded_setup() {
2595 _LT_EOF
2596 # Now try linking the two files.
2597 mv conftest.$ac_objext conftstm.$ac_objext
2598- lt_save_LIBS="$LIBS"
2599- lt_save_CFLAGS="$CFLAGS"
2600+ lt_globsym_save_LIBS=$LIBS
2601+ lt_globsym_save_CFLAGS=$CFLAGS
2602 LIBS="conftstm.$ac_objext"
2603 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
2604 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
2605@@ -6696,8 +7023,8 @@ _LT_EOF
2606 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
2607 pipe_works=yes
2608 fi
2609- LIBS="$lt_save_LIBS"
2610- CFLAGS="$lt_save_CFLAGS"
2611+ LIBS=$lt_globsym_save_LIBS
2612+ CFLAGS=$lt_globsym_save_CFLAGS
2613 else
2614 echo "cannot find nm_test_func in $nlist" >&5
2615 fi
2616@@ -6734,6 +7061,18 @@ else
2617 $as_echo "ok" >&6; }
2618 fi
2619
2620+# Response file support.
2621+if test "$lt_cv_nm_interface" = "MS dumpbin"; then
2622+ nm_file_list_spec='@'
2623+elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
2624+ nm_file_list_spec='@'
2625+fi
2626+
2627+
2628+
2629+
2630+
2631+
2632
2633
2634
2635@@ -6750,6 +7089,43 @@ fi
2636
2637
2638
2639+
2640+
2641+
2642+
2643+
2644+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
2645+$as_echo_n "checking for sysroot... " >&6; }
2646+
2647+# Check whether --with-libtool-sysroot was given.
2648+if test "${with_libtool_sysroot+set}" = set; then :
2649+ withval=$with_libtool_sysroot;
2650+else
2651+ with_libtool_sysroot=no
2652+fi
2653+
2654+
2655+lt_sysroot=
2656+case ${with_libtool_sysroot} in #(
2657+ yes)
2658+ if test "$GCC" = yes; then
2659+ lt_sysroot=`$CC --print-sysroot 2>/dev/null`
2660+ fi
2661+ ;; #(
2662+ /*)
2663+ lt_sysroot=`echo "$with_libtool_sysroot" | sed -e "$sed_quote_subst"`
2664+ ;; #(
2665+ no|'')
2666+ ;; #(
2667+ *)
2668+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_libtool_sysroot}" >&5
2669+$as_echo "${with_libtool_sysroot}" >&6; }
2670+ as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
2671+ ;;
2672+esac
2673+
2674+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
2675+$as_echo "${lt_sysroot:-no}" >&6; }
2676
2677
2678
2679@@ -6961,6 +7337,123 @@ esac
2680
2681 need_locks="$enable_libtool_lock"
2682
2683+if test -n "$ac_tool_prefix"; then
2684+ # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
2685+set dummy ${ac_tool_prefix}mt; ac_word=$2
2686+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2687+$as_echo_n "checking for $ac_word... " >&6; }
2688+if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
2689+ $as_echo_n "(cached) " >&6
2690+else
2691+ if test -n "$MANIFEST_TOOL"; then
2692+ ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
2693+else
2694+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2695+for as_dir in $PATH
2696+do
2697+ IFS=$as_save_IFS
2698+ test -z "$as_dir" && as_dir=.
2699+ for ac_exec_ext in '' $ac_executable_extensions; do
2700+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2701+ ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
2702+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2703+ break 2
2704+ fi
2705+done
2706+ done
2707+IFS=$as_save_IFS
2708+
2709+fi
2710+fi
2711+MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
2712+if test -n "$MANIFEST_TOOL"; then
2713+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
2714+$as_echo "$MANIFEST_TOOL" >&6; }
2715+else
2716+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2717+$as_echo "no" >&6; }
2718+fi
2719+
2720+
2721+fi
2722+if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
2723+ ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
2724+ # Extract the first word of "mt", so it can be a program name with args.
2725+set dummy mt; ac_word=$2
2726+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2727+$as_echo_n "checking for $ac_word... " >&6; }
2728+if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
2729+ $as_echo_n "(cached) " >&6
2730+else
2731+ if test -n "$ac_ct_MANIFEST_TOOL"; then
2732+ ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
2733+else
2734+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2735+for as_dir in $PATH
2736+do
2737+ IFS=$as_save_IFS
2738+ test -z "$as_dir" && as_dir=.
2739+ for ac_exec_ext in '' $ac_executable_extensions; do
2740+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2741+ ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
2742+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2743+ break 2
2744+ fi
2745+done
2746+ done
2747+IFS=$as_save_IFS
2748+
2749+fi
2750+fi
2751+ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
2752+if test -n "$ac_ct_MANIFEST_TOOL"; then
2753+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
2754+$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
2755+else
2756+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2757+$as_echo "no" >&6; }
2758+fi
2759+
2760+ if test "x$ac_ct_MANIFEST_TOOL" = x; then
2761+ MANIFEST_TOOL=":"
2762+ else
2763+ case $cross_compiling:$ac_tool_warned in
2764+yes:)
2765+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2766+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2767+ac_tool_warned=yes ;;
2768+esac
2769+ MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
2770+ fi
2771+else
2772+ MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
2773+fi
2774+
2775+test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
2776+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
2777+$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
2778+if ${lt_cv_path_mainfest_tool+:} false; then :
2779+ $as_echo_n "(cached) " >&6
2780+else
2781+ lt_cv_path_mainfest_tool=no
2782+ echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
2783+ $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
2784+ cat conftest.err >&5
2785+ if $GREP 'Manifest Tool' conftest.out > /dev/null; then
2786+ lt_cv_path_mainfest_tool=yes
2787+ fi
2788+ rm -f conftest*
2789+fi
2790+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
2791+$as_echo "$lt_cv_path_mainfest_tool" >&6; }
2792+if test "x$lt_cv_path_mainfest_tool" != xyes; then
2793+ MANIFEST_TOOL=:
2794+fi
2795+
2796+
2797+
2798+
2799+
2800
2801 case $host_os in
2802 rhapsody* | darwin*)
2803@@ -7524,6 +8017,8 @@ _LT_EOF
2804 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
2805 echo "$AR cru libconftest.a conftest.o" >&5
2806 $AR cru libconftest.a conftest.o 2>&5
2807+ echo "$RANLIB libconftest.a" >&5
2808+ $RANLIB libconftest.a 2>&5
2809 cat > conftest.c << _LT_EOF
2810 int main() { return 0;}
2811 _LT_EOF
2812@@ -8108,8 +8603,6 @@ fi
2813 lt_prog_compiler_pic=
2814 lt_prog_compiler_static=
2815
2816-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
2817-$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
2818
2819 if test "$GCC" = yes; then
2820 lt_prog_compiler_wl='-Wl,'
2821@@ -8275,6 +8768,12 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
2822 lt_prog_compiler_pic='--shared'
2823 lt_prog_compiler_static='--static'
2824 ;;
2825+ nagfor*)
2826+ # NAG Fortran compiler
2827+ lt_prog_compiler_wl='-Wl,-Wl,,'
2828+ lt_prog_compiler_pic='-PIC'
2829+ lt_prog_compiler_static='-Bstatic'
2830+ ;;
2831 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
2832 # Portland Group compilers (*not* the Pentium gcc compiler,
2833 # which looks to be a dead project)
2834@@ -8337,7 +8836,7 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
2835 lt_prog_compiler_pic='-KPIC'
2836 lt_prog_compiler_static='-Bstatic'
2837 case $cc_basename in
2838- f77* | f90* | f95*)
2839+ f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
2840 lt_prog_compiler_wl='-Qoption ld ';;
2841 *)
2842 lt_prog_compiler_wl='-Wl,';;
2843@@ -8394,13 +8893,17 @@ case $host_os in
2844 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
2845 ;;
2846 esac
2847-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
2848-$as_echo "$lt_prog_compiler_pic" >&6; }
2849-
2850-
2851-
2852-
2853
2854+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
2855+$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
2856+if ${lt_cv_prog_compiler_pic+:} false; then :
2857+ $as_echo_n "(cached) " >&6
2858+else
2859+ lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
2860+fi
2861+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
2862+$as_echo "$lt_cv_prog_compiler_pic" >&6; }
2863+lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
2864
2865 #
2866 # Check to make sure the PIC flag actually works.
2867@@ -8461,6 +8964,11 @@ fi
2868
2869
2870
2871+
2872+
2873+
2874+
2875+
2876 #
2877 # Check to make sure the static flag actually works.
2878 #
2879@@ -8811,7 +9319,8 @@ _LT_EOF
2880 allow_undefined_flag=unsupported
2881 always_export_symbols=no
2882 enable_shared_with_static_runtimes=yes
2883- export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
2884+ export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
2885+ exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
2886
2887 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
2888 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
2889@@ -8910,12 +9419,12 @@ _LT_EOF
2890 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
2891 hardcode_libdir_flag_spec=
2892 hardcode_libdir_flag_spec_ld='-rpath $libdir'
2893- archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
2894+ archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
2895 if test "x$supports_anon_versioning" = xyes; then
2896 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
2897 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
2898 echo "local: *; };" >> $output_objdir/$libname.ver~
2899- $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
2900+ $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
2901 fi
2902 ;;
2903 esac
2904@@ -8929,8 +9438,8 @@ _LT_EOF
2905 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
2906 wlarc=
2907 else
2908- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
2909- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
2910+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
2911+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
2912 fi
2913 ;;
2914
2915@@ -8948,8 +9457,8 @@ _LT_EOF
2916
2917 _LT_EOF
2918 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
2919- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
2920- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
2921+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
2922+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
2923 else
2924 ld_shlibs=no
2925 fi
2926@@ -8995,8 +9504,8 @@ _LT_EOF
2927
2928 *)
2929 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
2930- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
2931- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
2932+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
2933+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
2934 else
2935 ld_shlibs=no
2936 fi
2937@@ -9126,7 +9635,13 @@ _LT_EOF
2938 allow_undefined_flag='-berok'
2939 # Determine the default libpath from the value encoded in an
2940 # empty executable.
2941- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2942+ if test "${lt_cv_aix_libpath+set}" = set; then
2943+ aix_libpath=$lt_cv_aix_libpath
2944+else
2945+ if ${lt_cv_aix_libpath_+:} false; then :
2946+ $as_echo_n "(cached) " >&6
2947+else
2948+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2949 /* end confdefs.h. */
2950
2951 int
2952@@ -9139,22 +9654,29 @@ main ()
2953 _ACEOF
2954 if ac_fn_c_try_link "$LINENO"; then :
2955
2956-lt_aix_libpath_sed='
2957- /Import File Strings/,/^$/ {
2958- /^0/ {
2959- s/^0 *\(.*\)$/\1/
2960- p
2961- }
2962- }'
2963-aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
2964-# Check for a 64-bit object if we didn't find anything.
2965-if test -z "$aix_libpath"; then
2966- aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
2967-fi
2968+ lt_aix_libpath_sed='
2969+ /Import File Strings/,/^$/ {
2970+ /^0/ {
2971+ s/^0 *\([^ ]*\) *$/\1/
2972+ p
2973+ }
2974+ }'
2975+ lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
2976+ # Check for a 64-bit object if we didn't find anything.
2977+ if test -z "$lt_cv_aix_libpath_"; then
2978+ lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
2979+ fi
2980 fi
2981 rm -f core conftest.err conftest.$ac_objext \
2982 conftest$ac_exeext conftest.$ac_ext
2983-if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
2984+ if test -z "$lt_cv_aix_libpath_"; then
2985+ lt_cv_aix_libpath_="/usr/lib:/lib"
2986+ fi
2987+
2988+fi
2989+
2990+ aix_libpath=$lt_cv_aix_libpath_
2991+fi
2992
2993 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
2994 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
2995@@ -9166,7 +9688,13 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
2996 else
2997 # Determine the default libpath from the value encoded in an
2998 # empty executable.
2999- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3000+ if test "${lt_cv_aix_libpath+set}" = set; then
3001+ aix_libpath=$lt_cv_aix_libpath
3002+else
3003+ if ${lt_cv_aix_libpath_+:} false; then :
3004+ $as_echo_n "(cached) " >&6
3005+else
3006+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3007 /* end confdefs.h. */
3008
3009 int
3010@@ -9179,22 +9707,29 @@ main ()
3011 _ACEOF
3012 if ac_fn_c_try_link "$LINENO"; then :
3013
3014-lt_aix_libpath_sed='
3015- /Import File Strings/,/^$/ {
3016- /^0/ {
3017- s/^0 *\(.*\)$/\1/
3018- p
3019- }
3020- }'
3021-aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
3022-# Check for a 64-bit object if we didn't find anything.
3023-if test -z "$aix_libpath"; then
3024- aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
3025-fi
3026+ lt_aix_libpath_sed='
3027+ /Import File Strings/,/^$/ {
3028+ /^0/ {
3029+ s/^0 *\([^ ]*\) *$/\1/
3030+ p
3031+ }
3032+ }'
3033+ lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
3034+ # Check for a 64-bit object if we didn't find anything.
3035+ if test -z "$lt_cv_aix_libpath_"; then
3036+ lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
3037+ fi
3038 fi
3039 rm -f core conftest.err conftest.$ac_objext \
3040 conftest$ac_exeext conftest.$ac_ext
3041-if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
3042+ if test -z "$lt_cv_aix_libpath_"; then
3043+ lt_cv_aix_libpath_="/usr/lib:/lib"
3044+ fi
3045+
3046+fi
3047+
3048+ aix_libpath=$lt_cv_aix_libpath_
3049+fi
3050
3051 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
3052 # Warning - without using the other run time loading flags,
3053@@ -9239,20 +9774,63 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
3054 # Microsoft Visual C++.
3055 # hardcode_libdir_flag_spec is actually meaningless, as there is
3056 # no search path for DLLs.
3057- hardcode_libdir_flag_spec=' '
3058- allow_undefined_flag=unsupported
3059- # Tell ltmain to make .lib files, not .a files.
3060- libext=lib
3061- # Tell ltmain to make .dll files, not .so files.
3062- shrext_cmds=".dll"
3063- # FIXME: Setting linknames here is a bad hack.
3064- archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
3065- # The linker will automatically build a .lib file if we build a DLL.
3066- old_archive_from_new_cmds='true'
3067- # FIXME: Should let the user specify the lib program.
3068- old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
3069- fix_srcfile_path='`cygpath -w "$srcfile"`'
3070- enable_shared_with_static_runtimes=yes
3071+ case $cc_basename in
3072+ cl*)
3073+ # Native MSVC
3074+ hardcode_libdir_flag_spec=' '
3075+ allow_undefined_flag=unsupported
3076+ always_export_symbols=yes
3077+ file_list_spec='@'
3078+ # Tell ltmain to make .lib files, not .a files.
3079+ libext=lib
3080+ # Tell ltmain to make .dll files, not .so files.
3081+ shrext_cmds=".dll"
3082+ # FIXME: Setting linknames here is a bad hack.
3083+ archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
3084+ archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
3085+ sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
3086+ else
3087+ sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
3088+ fi~
3089+ $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
3090+ linknames='
3091+ # The linker will not automatically build a static lib if we build a DLL.
3092+ # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
3093+ enable_shared_with_static_runtimes=yes
3094+ export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
3095+ # Don't use ranlib
3096+ old_postinstall_cmds='chmod 644 $oldlib'
3097+ postlink_cmds='lt_outputfile="@OUTPUT@"~
3098+ lt_tool_outputfile="@TOOL_OUTPUT@"~
3099+ case $lt_outputfile in
3100+ *.exe|*.EXE) ;;
3101+ *)
3102+ lt_outputfile="$lt_outputfile.exe"
3103+ lt_tool_outputfile="$lt_tool_outputfile.exe"
3104+ ;;
3105+ esac~
3106+ if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
3107+ $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
3108+ $RM "$lt_outputfile.manifest";
3109+ fi'
3110+ ;;
3111+ *)
3112+ # Assume MSVC wrapper
3113+ hardcode_libdir_flag_spec=' '
3114+ allow_undefined_flag=unsupported
3115+ # Tell ltmain to make .lib files, not .a files.
3116+ libext=lib
3117+ # Tell ltmain to make .dll files, not .so files.
3118+ shrext_cmds=".dll"
3119+ # FIXME: Setting linknames here is a bad hack.
3120+ archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
3121+ # The linker will automatically build a .lib file if we build a DLL.
3122+ old_archive_from_new_cmds='true'
3123+ # FIXME: Should let the user specify the lib program.
3124+ old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
3125+ enable_shared_with_static_runtimes=yes
3126+ ;;
3127+ esac
3128 ;;
3129
3130 darwin* | rhapsody*)
3131@@ -9313,7 +9891,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
3132
3133 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
3134 freebsd* | dragonfly*)
3135- archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
3136+ archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
3137 hardcode_libdir_flag_spec='-R$libdir'
3138 hardcode_direct=yes
3139 hardcode_shlibpath_var=no
3140@@ -9321,7 +9899,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
3141
3142 hpux9*)
3143 if test "$GCC" = yes; then
3144- archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
3145+ archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
3146 else
3147 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
3148 fi
3149@@ -9337,7 +9915,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
3150
3151 hpux10*)
3152 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
3153- archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
3154+ archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
3155 else
3156 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
3157 fi
3158@@ -9361,10 +9939,10 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
3159 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
3160 ;;
3161 ia64*)
3162- archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
3163+ archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
3164 ;;
3165 *)
3166- archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
3167+ archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
3168 ;;
3169 esac
3170 else
3171@@ -9443,23 +10021,36 @@ fi
3172
3173 irix5* | irix6* | nonstopux*)
3174 if test "$GCC" = yes; then
3175- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
3176+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
3177 # Try to use the -exported_symbol ld option, if it does not
3178 # work, assume that -exports_file does not work either and
3179 # implicitly export all symbols.
3180- save_LDFLAGS="$LDFLAGS"
3181- LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
3182- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3183+ # This should be the same for all languages, so no per-tag cache variable.
3184+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
3185+$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
3186+if ${lt_cv_irix_exported_symbol+:} false; then :
3187+ $as_echo_n "(cached) " >&6
3188+else
3189+ save_LDFLAGS="$LDFLAGS"
3190+ LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
3191+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3192 /* end confdefs.h. */
3193-int foo(void) {}
3194+int foo (void) { return 0; }
3195 _ACEOF
3196 if ac_fn_c_try_link "$LINENO"; then :
3197- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
3198-
3199+ lt_cv_irix_exported_symbol=yes
3200+else
3201+ lt_cv_irix_exported_symbol=no
3202 fi
3203 rm -f core conftest.err conftest.$ac_objext \
3204 conftest$ac_exeext conftest.$ac_ext
3205- LDFLAGS="$save_LDFLAGS"
3206+ LDFLAGS="$save_LDFLAGS"
3207+fi
3208+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
3209+$as_echo "$lt_cv_irix_exported_symbol" >&6; }
3210+ if test "$lt_cv_irix_exported_symbol" = yes; then
3211+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
3212+ fi
3213 else
3214 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
3215 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
3216@@ -9544,7 +10135,7 @@ rm -f core conftest.err conftest.$ac_objext \
3217 osf4* | osf5*) # as osf3* with the addition of -msym flag
3218 if test "$GCC" = yes; then
3219 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3220- archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
3221+ archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
3222 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
3223 else
3224 allow_undefined_flag=' -expect_unresolved \*'
3225@@ -9563,9 +10154,9 @@ rm -f core conftest.err conftest.$ac_objext \
3226 no_undefined_flag=' -z defs'
3227 if test "$GCC" = yes; then
3228 wlarc='${wl}'
3229- archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
3230+ archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
3231 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
3232- $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
3233+ $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
3234 else
3235 case `$CC -V 2>&1` in
3236 *"Compilers 5.0"*)
3237@@ -10141,8 +10732,9 @@ cygwin* | mingw* | pw32* | cegcc*)
3238 need_version=no
3239 need_lib_prefix=no
3240
3241- case $GCC,$host_os in
3242- yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
3243+ case $GCC,$cc_basename in
3244+ yes,*)
3245+ # gcc
3246 library_names_spec='$libname.dll.a'
3247 # DLL is installed to $(libdir)/../bin by postinstall_cmds
3248 postinstall_cmds='base_file=`basename \${file}`~
3249@@ -10175,13 +10767,71 @@ cygwin* | mingw* | pw32* | cegcc*)
3250 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
3251 ;;
3252 esac
3253+ dynamic_linker='Win32 ld.exe'
3254+ ;;
3255+
3256+ *,cl*)
3257+ # Native MSVC
3258+ libname_spec='$name'
3259+ soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
3260+ library_names_spec='${libname}.dll.lib'
3261+
3262+ case $build_os in
3263+ mingw*)
3264+ sys_lib_search_path_spec=
3265+ lt_save_ifs=$IFS
3266+ IFS=';'
3267+ for lt_path in $LIB
3268+ do
3269+ IFS=$lt_save_ifs
3270+ # Let DOS variable expansion print the short 8.3 style file name.
3271+ lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
3272+ sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
3273+ done
3274+ IFS=$lt_save_ifs
3275+ # Convert to MSYS style.
3276+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
3277+ ;;
3278+ cygwin*)
3279+ # Convert to unix form, then to dos form, then back to unix form
3280+ # but this time dos style (no spaces!) so that the unix form looks
3281+ # like /cygdrive/c/PROGRA~1:/cygdr...
3282+ sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
3283+ sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
3284+ sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
3285+ ;;
3286+ *)
3287+ sys_lib_search_path_spec="$LIB"
3288+ if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
3289+ # It is most probably a Windows format PATH.
3290+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
3291+ else
3292+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
3293+ fi
3294+ # FIXME: find the short name or the path components, as spaces are
3295+ # common. (e.g. "Program Files" -> "PROGRA~1")
3296+ ;;
3297+ esac
3298+
3299+ # DLL is installed to $(libdir)/../bin by postinstall_cmds
3300+ postinstall_cmds='base_file=`basename \${file}`~
3301+ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
3302+ dldir=$destdir/`dirname \$dlpath`~
3303+ test -d \$dldir || mkdir -p \$dldir~
3304+ $install_prog $dir/$dlname \$dldir/$dlname'
3305+ postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
3306+ dlpath=$dir/\$dldll~
3307+ $RM \$dlpath'
3308+ shlibpath_overrides_runpath=yes
3309+ dynamic_linker='Win32 link.exe'
3310 ;;
3311
3312 *)
3313+ # Assume MSVC wrapper
3314 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
3315+ dynamic_linker='Win32 ld.exe'
3316 ;;
3317 esac
3318- dynamic_linker='Win32 ld.exe'
3319 # FIXME: first we should search . and the directory the executable is in
3320 shlibpath_var=PATH
3321 ;;
3322@@ -11083,7 +11733,7 @@ else
3323 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
3324 lt_status=$lt_dlunknown
3325 cat > conftest.$ac_ext <<_LT_EOF
3326-#line 11086 "configure"
3327+#line $LINENO "configure"
3328 #include "confdefs.h"
3329
3330 #if HAVE_DLFCN_H
3331@@ -11127,10 +11777,10 @@ else
3332 /* When -fvisbility=hidden is used, assume the code has been annotated
3333 correspondingly for the symbols needed. */
3334 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
3335-void fnord () __attribute__((visibility("default")));
3336+int fnord () __attribute__((visibility("default")));
3337 #endif
3338
3339-void fnord () { int i=42; }
3340+int fnord () { return 42; }
3341 int main ()
3342 {
3343 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
3344@@ -11189,7 +11839,7 @@ else
3345 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
3346 lt_status=$lt_dlunknown
3347 cat > conftest.$ac_ext <<_LT_EOF
3348-#line 11192 "configure"
3349+#line $LINENO "configure"
3350 #include "confdefs.h"
3351
3352 #if HAVE_DLFCN_H
3353@@ -11233,10 +11883,10 @@ else
3354 /* When -fvisbility=hidden is used, assume the code has been annotated
3355 correspondingly for the symbols needed. */
3356 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
3357-void fnord () __attribute__((visibility("default")));
3358+int fnord () __attribute__((visibility("default")));
3359 #endif
3360
3361-void fnord () { int i=42; }
3362+int fnord () { return 42; }
3363 int main ()
3364 {
3365 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
3366@@ -17390,13 +18040,20 @@ exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
3367 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
3368 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
3369 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
3370+lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
3371+lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
3372 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
3373 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
3374 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
3375 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
3376 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
3377+file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
3378+want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
3379+DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
3380+sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
3381 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
3382 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
3383+archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
3384 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
3385 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
3386 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
3387@@ -17411,14 +18068,17 @@ lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$de
3388 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
3389 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
3390 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
3391+nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
3392+lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
3393 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
3394 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
3395 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
3396-lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
3397 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
3398+lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
3399 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
3400 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
3401 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
3402+MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
3403 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
3404 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
3405 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
3406@@ -17451,12 +18111,12 @@ hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_q
3407 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
3408 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
3409 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
3410-fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
3411 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
3412 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
3413 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
3414 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
3415 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
3416+postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
3417 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
3418 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
3419 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
3420@@ -17511,8 +18171,13 @@ reload_flag \
3421 OBJDUMP \
3422 deplibs_check_method \
3423 file_magic_cmd \
3424+file_magic_glob \
3425+want_nocaseglob \
3426+DLLTOOL \
3427+sharedlib_from_linklib_cmd \
3428 AR \
3429 AR_FLAGS \
3430+archiver_list_spec \
3431 STRIP \
3432 RANLIB \
3433 CC \
3434@@ -17522,12 +18187,14 @@ lt_cv_sys_global_symbol_pipe \
3435 lt_cv_sys_global_symbol_to_cdecl \
3436 lt_cv_sys_global_symbol_to_c_name_address \
3437 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
3438+nm_file_list_spec \
3439 lt_prog_compiler_no_builtin_flag \
3440-lt_prog_compiler_wl \
3441 lt_prog_compiler_pic \
3442+lt_prog_compiler_wl \
3443 lt_prog_compiler_static \
3444 lt_cv_prog_compiler_c_o \
3445 need_locks \
3446+MANIFEST_TOOL \
3447 DSYMUTIL \
3448 NMEDIT \
3449 LIPO \
3450@@ -17543,7 +18210,6 @@ no_undefined_flag \
3451 hardcode_libdir_flag_spec \
3452 hardcode_libdir_flag_spec_ld \
3453 hardcode_libdir_separator \
3454-fix_srcfile_path \
3455 exclude_expsyms \
3456 include_expsyms \
3457 file_list_spec \
3458@@ -17579,6 +18245,7 @@ module_cmds \
3459 module_expsym_cmds \
3460 export_symbols_cmds \
3461 prelink_cmds \
3462+postlink_cmds \
3463 postinstall_cmds \
3464 postuninstall_cmds \
3465 finish_cmds \
3466@@ -18352,7 +19019,8 @@ $as_echo X"$file" |
3467 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
3468 #
3469 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
3470-# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
3471+# 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
3472+# Inc.
3473 # Written by Gordon Matzigkeit, 1996
3474 #
3475 # This file is part of GNU Libtool.
3476@@ -18455,19 +19123,42 @@ SP2NL=$lt_lt_SP2NL
3477 # turn newlines into spaces.
3478 NL2SP=$lt_lt_NL2SP
3479
3480+# convert \$build file names to \$host format.
3481+to_host_file_cmd=$lt_cv_to_host_file_cmd
3482+
3483+# convert \$build files to toolchain format.
3484+to_tool_file_cmd=$lt_cv_to_tool_file_cmd
3485+
3486 # An object symbol dumper.
3487 OBJDUMP=$lt_OBJDUMP
3488
3489 # Method to check whether dependent libraries are shared objects.
3490 deplibs_check_method=$lt_deplibs_check_method
3491
3492-# Command to use when deplibs_check_method == "file_magic".
3493+# Command to use when deplibs_check_method = "file_magic".
3494 file_magic_cmd=$lt_file_magic_cmd
3495
3496+# How to find potential files when deplibs_check_method = "file_magic".
3497+file_magic_glob=$lt_file_magic_glob
3498+
3499+# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
3500+want_nocaseglob=$lt_want_nocaseglob
3501+
3502+# DLL creation program.
3503+DLLTOOL=$lt_DLLTOOL
3504+
3505+# Command to associate shared and link libraries.
3506+sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
3507+
3508 # The archiver.
3509 AR=$lt_AR
3510+
3511+# Flags to create an archive.
3512 AR_FLAGS=$lt_AR_FLAGS
3513
3514+# How to feed a file listing to the archiver.
3515+archiver_list_spec=$lt_archiver_list_spec
3516+
3517 # A symbol stripping program.
3518 STRIP=$lt_STRIP
3519
3520@@ -18497,6 +19188,12 @@ global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
3521 # Transform the output of nm in a C name address pair when lib prefix is needed.
3522 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
3523
3524+# Specify filename containing input files for \$NM.
3525+nm_file_list_spec=$lt_nm_file_list_spec
3526+
3527+# The root where to search for dependent libraries,and in which our libraries should be installed.
3528+lt_sysroot=$lt_sysroot
3529+
3530 # The name of the directory that contains temporary libtool files.
3531 objdir=$objdir
3532
3533@@ -18506,6 +19203,9 @@ MAGIC_CMD=$MAGIC_CMD
3534 # Must we lock files when doing compilation?
3535 need_locks=$lt_need_locks
3536
3537+# Manifest tool.
3538+MANIFEST_TOOL=$lt_MANIFEST_TOOL
3539+
3540 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
3541 DSYMUTIL=$lt_DSYMUTIL
3542
3543@@ -18620,12 +19320,12 @@ with_gcc=$GCC
3544 # Compiler flag to turn off builtin functions.
3545 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
3546
3547-# How to pass a linker flag through the compiler.
3548-wl=$lt_lt_prog_compiler_wl
3549-
3550 # Additional compiler flags for building library objects.
3551 pic_flag=$lt_lt_prog_compiler_pic
3552
3553+# How to pass a linker flag through the compiler.
3554+wl=$lt_lt_prog_compiler_wl
3555+
3556 # Compiler flag to prevent dynamic linking.
3557 link_static_flag=$lt_lt_prog_compiler_static
3558
3559@@ -18712,9 +19412,6 @@ inherit_rpath=$inherit_rpath
3560 # Whether libtool must link a program against all its dependency libraries.
3561 link_all_deplibs=$link_all_deplibs
3562
3563-# Fix the shell variable \$srcfile for the compiler.
3564-fix_srcfile_path=$lt_fix_srcfile_path
3565-
3566 # Set to "yes" if exported symbols are required.
3567 always_export_symbols=$always_export_symbols
3568
3569@@ -18730,6 +19427,9 @@ include_expsyms=$lt_include_expsyms
3570 # Commands necessary for linking programs (against libraries) with templates.
3571 prelink_cmds=$lt_prelink_cmds
3572
3573+# Commands necessary for finishing linking programs.
3574+postlink_cmds=$lt_postlink_cmds
3575+
3576 # Specify filename containing input files.
3577 file_list_spec=$lt_file_list_spec
3578
3579@@ -18762,210 +19462,169 @@ ltmain="$ac_aux_dir/ltmain.sh"
3580 # if finds mixed CR/LF and LF-only lines. Since sed operates in
3581 # text mode, it properly converts lines to CR/LF. This bash problem
3582 # is reportedly fixed, but why not run on old versions too?
3583- sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
3584- || (rm -f "$cfgfile"; exit 1)
3585-
3586- case $xsi_shell in
3587- yes)
3588- cat << \_LT_EOF >> "$cfgfile"
3589-
3590-# func_dirname file append nondir_replacement
3591-# Compute the dirname of FILE. If nonempty, add APPEND to the result,
3592-# otherwise set result to NONDIR_REPLACEMENT.
3593-func_dirname ()
3594-{
3595- case ${1} in
3596- */*) func_dirname_result="${1%/*}${2}" ;;
3597- * ) func_dirname_result="${3}" ;;
3598- esac
3599-}
3600-
3601-# func_basename file
3602-func_basename ()
3603-{
3604- func_basename_result="${1##*/}"
3605-}
3606-
3607-# func_dirname_and_basename file append nondir_replacement
3608-# perform func_basename and func_dirname in a single function
3609-# call:
3610-# dirname: Compute the dirname of FILE. If nonempty,
3611-# add APPEND to the result, otherwise set result
3612-# to NONDIR_REPLACEMENT.
3613-# value returned in "$func_dirname_result"
3614-# basename: Compute filename of FILE.
3615-# value retuned in "$func_basename_result"
3616-# Implementation must be kept synchronized with func_dirname
3617-# and func_basename. For efficiency, we do not delegate to
3618-# those functions but instead duplicate the functionality here.
3619-func_dirname_and_basename ()
3620-{
3621- case ${1} in
3622- */*) func_dirname_result="${1%/*}${2}" ;;
3623- * ) func_dirname_result="${3}" ;;
3624- esac
3625- func_basename_result="${1##*/}"
3626-}
3627-
3628-# func_stripname prefix suffix name
3629-# strip PREFIX and SUFFIX off of NAME.
3630-# PREFIX and SUFFIX must not contain globbing or regex special
3631-# characters, hashes, percent signs, but SUFFIX may contain a leading
3632-# dot (in which case that matches only a dot).
3633-func_stripname ()
3634-{
3635- # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
3636- # positional parameters, so assign one to ordinary parameter first.
3637- func_stripname_result=${3}
3638- func_stripname_result=${func_stripname_result#"${1}"}
3639- func_stripname_result=${func_stripname_result%"${2}"}
3640-}
3641-
3642-# func_opt_split
3643-func_opt_split ()
3644-{
3645- func_opt_split_opt=${1%%=*}
3646- func_opt_split_arg=${1#*=}
3647-}
3648-
3649-# func_lo2o object
3650-func_lo2o ()
3651-{
3652- case ${1} in
3653- *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
3654- *) func_lo2o_result=${1} ;;
3655- esac
3656-}
3657-
3658-# func_xform libobj-or-source
3659-func_xform ()
3660-{
3661- func_xform_result=${1%.*}.lo
3662-}
3663-
3664-# func_arith arithmetic-term...
3665-func_arith ()
3666-{
3667- func_arith_result=$(( $* ))
3668-}
3669-
3670-# func_len string
3671-# STRING may not start with a hyphen.
3672-func_len ()
3673-{
3674- func_len_result=${#1}
3675-}
3676-
3677-_LT_EOF
3678- ;;
3679- *) # Bourne compatible functions.
3680- cat << \_LT_EOF >> "$cfgfile"
3681-
3682-# func_dirname file append nondir_replacement
3683-# Compute the dirname of FILE. If nonempty, add APPEND to the result,
3684-# otherwise set result to NONDIR_REPLACEMENT.
3685-func_dirname ()
3686-{
3687- # Extract subdirectory from the argument.
3688- func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
3689- if test "X$func_dirname_result" = "X${1}"; then
3690- func_dirname_result="${3}"
3691- else
3692- func_dirname_result="$func_dirname_result${2}"
3693- fi
3694-}
3695-
3696-# func_basename file
3697-func_basename ()
3698-{
3699- func_basename_result=`$ECHO "${1}" | $SED "$basename"`
3700-}
3701-
3702-
3703-# func_stripname prefix suffix name
3704-# strip PREFIX and SUFFIX off of NAME.
3705-# PREFIX and SUFFIX must not contain globbing or regex special
3706-# characters, hashes, percent signs, but SUFFIX may contain a leading
3707-# dot (in which case that matches only a dot).
3708-# func_strip_suffix prefix name
3709-func_stripname ()
3710-{
3711- case ${2} in
3712- .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
3713- *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
3714- esac
3715-}
3716-
3717-# sed scripts:
3718-my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
3719-my_sed_long_arg='1s/^-[^=]*=//'
3720-
3721-# func_opt_split
3722-func_opt_split ()
3723-{
3724- func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
3725- func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
3726-}
3727-
3728-# func_lo2o object
3729-func_lo2o ()
3730-{
3731- func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
3732-}
3733-
3734-# func_xform libobj-or-source
3735-func_xform ()
3736-{
3737- func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
3738-}
3739-
3740-# func_arith arithmetic-term...
3741-func_arith ()
3742-{
3743- func_arith_result=`expr "$@"`
3744-}
3745-
3746-# func_len string
3747-# STRING may not start with a hyphen.
3748-func_len ()
3749-{
3750- func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
3751-}
3752-
3753-_LT_EOF
3754-esac
3755-
3756-case $lt_shell_append in
3757- yes)
3758- cat << \_LT_EOF >> "$cfgfile"
3759-
3760-# func_append var value
3761-# Append VALUE to the end of shell variable VAR.
3762-func_append ()
3763-{
3764- eval "$1+=\$2"
3765-}
3766-_LT_EOF
3767- ;;
3768- *)
3769- cat << \_LT_EOF >> "$cfgfile"
3770-
3771-# func_append var value
3772-# Append VALUE to the end of shell variable VAR.
3773-func_append ()
3774-{
3775- eval "$1=\$$1\$2"
3776-}
3777-
3778-_LT_EOF
3779- ;;
3780- esac
3781-
3782-
3783- sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
3784- || (rm -f "$cfgfile"; exit 1)
3785-
3786- mv -f "$cfgfile" "$ofile" ||
3787+ sed '$q' "$ltmain" >> "$cfgfile" \
3788+ || (rm -f "$cfgfile"; exit 1)
3789+
3790+ if test x"$xsi_shell" = xyes; then
3791+ sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
3792+func_dirname ()\
3793+{\
3794+\ case ${1} in\
3795+\ */*) func_dirname_result="${1%/*}${2}" ;;\
3796+\ * ) func_dirname_result="${3}" ;;\
3797+\ esac\
3798+} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
3799+ && mv -f "$cfgfile.tmp" "$cfgfile" \
3800+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
3801+test 0 -eq $? || _lt_function_replace_fail=:
3802+
3803+
3804+ sed -e '/^func_basename ()$/,/^} # func_basename /c\
3805+func_basename ()\
3806+{\
3807+\ func_basename_result="${1##*/}"\
3808+} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
3809+ && mv -f "$cfgfile.tmp" "$cfgfile" \
3810+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
3811+test 0 -eq $? || _lt_function_replace_fail=:
3812+
3813+
3814+ sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
3815+func_dirname_and_basename ()\
3816+{\
3817+\ case ${1} in\
3818+\ */*) func_dirname_result="${1%/*}${2}" ;;\
3819+\ * ) func_dirname_result="${3}" ;;\
3820+\ esac\
3821+\ func_basename_result="${1##*/}"\
3822+} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
3823+ && mv -f "$cfgfile.tmp" "$cfgfile" \
3824+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
3825+test 0 -eq $? || _lt_function_replace_fail=:
3826+
3827+
3828+ sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
3829+func_stripname ()\
3830+{\
3831+\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
3832+\ # positional parameters, so assign one to ordinary parameter first.\
3833+\ func_stripname_result=${3}\
3834+\ func_stripname_result=${func_stripname_result#"${1}"}\
3835+\ func_stripname_result=${func_stripname_result%"${2}"}\
3836+} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
3837+ && mv -f "$cfgfile.tmp" "$cfgfile" \
3838+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
3839+test 0 -eq $? || _lt_function_replace_fail=:
3840+
3841+
3842+ sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
3843+func_split_long_opt ()\
3844+{\
3845+\ func_split_long_opt_name=${1%%=*}\
3846+\ func_split_long_opt_arg=${1#*=}\
3847+} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
3848+ && mv -f "$cfgfile.tmp" "$cfgfile" \
3849+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
3850+test 0 -eq $? || _lt_function_replace_fail=:
3851+
3852+
3853+ sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
3854+func_split_short_opt ()\
3855+{\
3856+\ func_split_short_opt_arg=${1#??}\
3857+\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
3858+} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
3859+ && mv -f "$cfgfile.tmp" "$cfgfile" \
3860+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
3861+test 0 -eq $? || _lt_function_replace_fail=:
3862+
3863+
3864+ sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
3865+func_lo2o ()\
3866+{\
3867+\ case ${1} in\
3868+\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
3869+\ *) func_lo2o_result=${1} ;;\
3870+\ esac\
3871+} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
3872+ && mv -f "$cfgfile.tmp" "$cfgfile" \
3873+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
3874+test 0 -eq $? || _lt_function_replace_fail=:
3875+
3876+
3877+ sed -e '/^func_xform ()$/,/^} # func_xform /c\
3878+func_xform ()\
3879+{\
3880+ func_xform_result=${1%.*}.lo\
3881+} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
3882+ && mv -f "$cfgfile.tmp" "$cfgfile" \
3883+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
3884+test 0 -eq $? || _lt_function_replace_fail=:
3885+
3886+
3887+ sed -e '/^func_arith ()$/,/^} # func_arith /c\
3888+func_arith ()\
3889+{\
3890+ func_arith_result=$(( $* ))\
3891+} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
3892+ && mv -f "$cfgfile.tmp" "$cfgfile" \
3893+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
3894+test 0 -eq $? || _lt_function_replace_fail=:
3895+
3896+
3897+ sed -e '/^func_len ()$/,/^} # func_len /c\
3898+func_len ()\
3899+{\
3900+ func_len_result=${#1}\
3901+} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
3902+ && mv -f "$cfgfile.tmp" "$cfgfile" \
3903+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
3904+test 0 -eq $? || _lt_function_replace_fail=:
3905+
3906+fi
3907+
3908+if test x"$lt_shell_append" = xyes; then
3909+ sed -e '/^func_append ()$/,/^} # func_append /c\
3910+func_append ()\
3911+{\
3912+ eval "${1}+=\\${2}"\
3913+} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
3914+ && mv -f "$cfgfile.tmp" "$cfgfile" \
3915+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
3916+test 0 -eq $? || _lt_function_replace_fail=:
3917+
3918+
3919+ sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
3920+func_append_quoted ()\
3921+{\
3922+\ func_quote_for_eval "${2}"\
3923+\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
3924+} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
3925+ && mv -f "$cfgfile.tmp" "$cfgfile" \
3926+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
3927+test 0 -eq $? || _lt_function_replace_fail=:
3928+
3929+
3930+ # Save a `func_append' function call where possible by direct use of '+='
3931+ sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
3932+ && mv -f "$cfgfile.tmp" "$cfgfile" \
3933+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
3934+ test 0 -eq $? || _lt_function_replace_fail=:
3935+else
3936+ # Save a `func_append' function call even when '+=' is not available
3937+ sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
3938+ && mv -f "$cfgfile.tmp" "$cfgfile" \
3939+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
3940+ test 0 -eq $? || _lt_function_replace_fail=:
3941+fi
3942+
3943+if test x"$_lt_function_replace_fail" = x":"; then
3944+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
3945+$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
3946+fi
3947+
3948+
3949+ mv -f "$cfgfile" "$ofile" ||
3950 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
3951 chmod +x "$ofile"
3952
3953diff --git a/gas/Makefile.in b/gas/Makefile.in
3954index bc25765cb5b..c481d96a05a 100644
3955--- a/gas/Makefile.in
3956+++ b/gas/Makefile.in
3957@@ -384,6 +384,7 @@ CYGPATH_W = @CYGPATH_W@
3958 DATADIRNAME = @DATADIRNAME@
3959 DEFS = @DEFS@
3960 DEPDIR = @DEPDIR@
3961+DLLTOOL = @DLLTOOL@
3962 DSYMUTIL = @DSYMUTIL@
3963 DUMPBIN = @DUMPBIN@
3964 ECHO_C = @ECHO_C@
3965@@ -425,6 +426,7 @@ LTLIBINTL = @LTLIBINTL@
3966 LTLIBOBJS = @LTLIBOBJS@
3967 MAINT = @MAINT@
3968 MAKEINFO = @MAKEINFO@
3969+MANIFEST_TOOL = @MANIFEST_TOOL@
3970 MKDIR_P = @MKDIR_P@
3971 MKINSTALLDIRS = @MKINSTALLDIRS@
3972 MSGFMT = @MSGFMT@
3973@@ -468,6 +470,7 @@ abs_builddir = @abs_builddir@
3974 abs_srcdir = @abs_srcdir@
3975 abs_top_builddir = @abs_top_builddir@
3976 abs_top_srcdir = @abs_top_srcdir@
3977+ac_ct_AR = @ac_ct_AR@
3978 ac_ct_CC = @ac_ct_CC@
3979 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
3980 am__include = @am__include@
3981diff --git a/gas/configure b/gas/configure
3982index 5f8c8493589..998727b6108 100755
3983--- a/gas/configure
3984+++ b/gas/configure
3985@@ -692,8 +692,11 @@ OTOOL
3986 LIPO
3987 NMEDIT
3988 DSYMUTIL
3989+MANIFEST_TOOL
3990 RANLIB
3991+ac_ct_AR
3992 AR
3993+DLLTOOL
3994 OBJDUMP
3995 LN_S
3996 NM
3997@@ -810,6 +813,7 @@ enable_static
3998 with_pic
3999 enable_fast_install
4000 with_gnu_ld
4001+with_libtool_sysroot
4002 enable_libtool_lock
4003 enable_plugins
4004 enable_largefile
4005@@ -1517,6 +1521,8 @@ Optional Packages:
4006 --with-pic try to use only PIC/non-PIC objects [default=use
4007 both]
4008 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
4009+ --with-libtool-sysroot=DIR Search for dependent libraries within DIR
4010+ (or the compiler's sysroot if not specified).
4011 --with-cpu=CPU default cpu variant is CPU (currently only supported
4012 on ARC)
4013 --with-gnu-ld assume the C compiler uses GNU ld default=no
4014@@ -4652,8 +4658,8 @@ esac
4015
4016
4017
4018-macro_version='2.2.7a'
4019-macro_revision='1.3134'
4020+macro_version='2.4'
4021+macro_revision='1.3293'
4022
4023
4024
4025@@ -4693,7 +4699,7 @@ ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4027 $as_echo_n "checking how to print strings... " >&6; }
4028 # Test print first, because it will be a builtin if present.
4029-if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4030+if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4031 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4032 ECHO='print -r --'
4033 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4034@@ -5386,8 +5392,8 @@ $as_echo_n "checking whether the shell understands some XSI constructs... " >&6;
4035 # Try some XSI features
4036 xsi_shell=no
4037 ( _lt_dummy="a/b/c"
4038- test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4039- = c,a/b,, \
4040+ test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4041+ = c,a/b,b/c, \
4042 && eval 'test $(( 1 + 1 )) -eq 2 \
4043 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4044 && xsi_shell=yes
4045@@ -5436,6 +5442,80 @@ esac
4046
4047
4048
4049+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4050+$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4051+if ${lt_cv_to_host_file_cmd+:} false; then :
4052+ $as_echo_n "(cached) " >&6
4053+else
4054+ case $host in
4055+ *-*-mingw* )
4056+ case $build in
4057+ *-*-mingw* ) # actually msys
4058+ lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4059+ ;;
4060+ *-*-cygwin* )
4061+ lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4062+ ;;
4063+ * ) # otherwise, assume *nix
4064+ lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4065+ ;;
4066+ esac
4067+ ;;
4068+ *-*-cygwin* )
4069+ case $build in
4070+ *-*-mingw* ) # actually msys
4071+ lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4072+ ;;
4073+ *-*-cygwin* )
4074+ lt_cv_to_host_file_cmd=func_convert_file_noop
4075+ ;;
4076+ * ) # otherwise, assume *nix
4077+ lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4078+ ;;
4079+ esac
4080+ ;;
4081+ * ) # unhandled hosts (and "normal" native builds)
4082+ lt_cv_to_host_file_cmd=func_convert_file_noop
4083+ ;;
4084+esac
4085+
4086+fi
4087+
4088+to_host_file_cmd=$lt_cv_to_host_file_cmd
4089+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4090+$as_echo "$lt_cv_to_host_file_cmd" >&6; }
4091+
4092+
4093+
4094+
4095+
4096+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4097+$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4098+if ${lt_cv_to_tool_file_cmd+:} false; then :
4099+ $as_echo_n "(cached) " >&6
4100+else
4101+ #assume ordinary cross tools, or native build.
4102+lt_cv_to_tool_file_cmd=func_convert_file_noop
4103+case $host in
4104+ *-*-mingw* )
4105+ case $build in
4106+ *-*-mingw* ) # actually msys
4107+ lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4108+ ;;
4109+ esac
4110+ ;;
4111+esac
4112+
4113+fi
4114+
4115+to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4116+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4117+$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4118+
4119+
4120+
4121+
4122+
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4124 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4125 if ${lt_cv_ld_reload_flag+:} false; then :
4126@@ -5452,6 +5532,11 @@ case $reload_flag in
4127 esac
4128 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4129 case $host_os in
4130+ cygwin* | mingw* | pw32* | cegcc*)
4131+ if test "$GCC" != yes; then
4132+ reload_cmds=false
4133+ fi
4134+ ;;
4135 darwin*)
4136 if test "$GCC" = yes; then
4137 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4138@@ -5620,7 +5705,8 @@ mingw* | pw32*)
4139 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4140 lt_cv_file_magic_cmd='func_win32_libid'
4141 else
4142- lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4143+ # Keep this pattern in sync with the one in func_win32_libid.
4144+ lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4145 lt_cv_file_magic_cmd='$OBJDUMP -f'
4146 fi
4147 ;;
4148@@ -5779,6 +5865,21 @@ esac
4149 fi
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4151 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4152+
4153+file_magic_glob=
4154+want_nocaseglob=no
4155+if test "$build" = "$host"; then
4156+ case $host_os in
4157+ mingw* | pw32*)
4158+ if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
4159+ want_nocaseglob=yes
4160+ else
4161+ file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
4162+ fi
4163+ ;;
4164+ esac
4165+fi
4166+
4167 file_magic_cmd=$lt_cv_file_magic_cmd
4168 deplibs_check_method=$lt_cv_deplibs_check_method
4169 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4170@@ -5794,6 +5895,157 @@ test -z "$deplibs_check_method" && deplibs_check_method=unknown
4171
4172
4173
4174+
4175+
4176+
4177+
4178+
4179+
4180+
4181+
4182+
4183+
4184+if test -n "$ac_tool_prefix"; then
4185+ # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4186+set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4187+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4188+$as_echo_n "checking for $ac_word... " >&6; }
4189+if ${ac_cv_prog_DLLTOOL+:} false; then :
4190+ $as_echo_n "(cached) " >&6
4191+else
4192+ if test -n "$DLLTOOL"; then
4193+ ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4194+else
4195+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4196+for as_dir in $PATH
4197+do
4198+ IFS=$as_save_IFS
4199+ test -z "$as_dir" && as_dir=.
4200+ for ac_exec_ext in '' $ac_executable_extensions; do
4201+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4202+ ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4203+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4204+ break 2
4205+ fi
4206+done
4207+ done
4208+IFS=$as_save_IFS
4209+
4210+fi
4211+fi
4212+DLLTOOL=$ac_cv_prog_DLLTOOL
4213+if test -n "$DLLTOOL"; then
4214+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
4215+$as_echo "$DLLTOOL" >&6; }
4216+else
4217+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4218+$as_echo "no" >&6; }
4219+fi
4220+
4221+
4222+fi
4223+if test -z "$ac_cv_prog_DLLTOOL"; then
4224+ ac_ct_DLLTOOL=$DLLTOOL
4225+ # Extract the first word of "dlltool", so it can be a program name with args.
4226+set dummy dlltool; ac_word=$2
4227+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4228+$as_echo_n "checking for $ac_word... " >&6; }
4229+if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
4230+ $as_echo_n "(cached) " >&6
4231+else
4232+ if test -n "$ac_ct_DLLTOOL"; then
4233+ ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4234+else
4235+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4236+for as_dir in $PATH
4237+do
4238+ IFS=$as_save_IFS
4239+ test -z "$as_dir" && as_dir=.
4240+ for ac_exec_ext in '' $ac_executable_extensions; do
4241+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4242+ ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4243+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4244+ break 2
4245+ fi
4246+done
4247+ done
4248+IFS=$as_save_IFS
4249+
4250+fi
4251+fi
4252+ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4253+if test -n "$ac_ct_DLLTOOL"; then
4254+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
4255+$as_echo "$ac_ct_DLLTOOL" >&6; }
4256+else
4257+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4258+$as_echo "no" >&6; }
4259+fi
4260+
4261+ if test "x$ac_ct_DLLTOOL" = x; then
4262+ DLLTOOL="false"
4263+ else
4264+ case $cross_compiling:$ac_tool_warned in
4265+yes:)
4266+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4267+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4268+ac_tool_warned=yes ;;
4269+esac
4270+ DLLTOOL=$ac_ct_DLLTOOL
4271+ fi
4272+else
4273+ DLLTOOL="$ac_cv_prog_DLLTOOL"
4274+fi
4275+
4276+test -z "$DLLTOOL" && DLLTOOL=dlltool
4277+
4278+
4279+
4280+
4281+
4282+
4283+
4284+
4285+
4286+
4287+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
4288+$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
4289+if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
4290+ $as_echo_n "(cached) " >&6
4291+else
4292+ lt_cv_sharedlib_from_linklib_cmd='unknown'
4293+
4294+case $host_os in
4295+cygwin* | mingw* | pw32* | cegcc*)
4296+ # two different shell functions defined in ltmain.sh
4297+ # decide which to use based on capabilities of $DLLTOOL
4298+ case `$DLLTOOL --help 2>&1` in
4299+ *--identify-strict*)
4300+ lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
4301+ ;;
4302+ *)
4303+ lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
4304+ ;;
4305+ esac
4306+ ;;
4307+*)
4308+ # fallback: assume linklib IS sharedlib
4309+ lt_cv_sharedlib_from_linklib_cmd="$ECHO"
4310+ ;;
4311+esac
4312+
4313+fi
4314+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
4315+$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
4316+sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
4317+test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
4318+
4319+
4320+
4321+
4322+
4323+
4324+
4325 plugin_option=
4326 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
4327 for plugin in $plugin_names; do
4328@@ -5808,8 +6060,10 @@ for plugin in $plugin_names; do
4329 done
4330
4331 if test -n "$ac_tool_prefix"; then
4332- # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4333-set dummy ${ac_tool_prefix}ar; ac_word=$2
4334+ for ac_prog in ar
4335+ do
4336+ # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4337+set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4339 $as_echo_n "checking for $ac_word... " >&6; }
4340 if ${ac_cv_prog_AR+:} false; then :
4341@@ -5825,7 +6079,7 @@ do
4342 test -z "$as_dir" && as_dir=.
4343 for ac_exec_ext in '' $ac_executable_extensions; do
4344 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4345- ac_cv_prog_AR="${ac_tool_prefix}ar"
4346+ ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4348 break 2
4349 fi
4350@@ -5845,11 +6099,15 @@ $as_echo "no" >&6; }
4351 fi
4352
4353
4354+ test -n "$AR" && break
4355+ done
4356 fi
4357-if test -z "$ac_cv_prog_AR"; then
4358+if test -z "$AR"; then
4359 ac_ct_AR=$AR
4360- # Extract the first word of "ar", so it can be a program name with args.
4361-set dummy ar; ac_word=$2
4362+ for ac_prog in ar
4363+do
4364+ # Extract the first word of "$ac_prog", so it can be a program name with args.
4365+set dummy $ac_prog; ac_word=$2
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4367 $as_echo_n "checking for $ac_word... " >&6; }
4368 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4369@@ -5865,7 +6123,7 @@ do
4370 test -z "$as_dir" && as_dir=.
4371 for ac_exec_ext in '' $ac_executable_extensions; do
4372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4373- ac_cv_prog_ac_ct_AR="ar"
4374+ ac_cv_prog_ac_ct_AR="$ac_prog"
4375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4376 break 2
4377 fi
4378@@ -5884,6 +6142,10 @@ else
4379 $as_echo "no" >&6; }
4380 fi
4381
4382+
4383+ test -n "$ac_ct_AR" && break
4384+done
4385+
4386 if test "x$ac_ct_AR" = x; then
4387 AR="false"
4388 else
4389@@ -5895,29 +6157,81 @@ ac_tool_warned=yes ;;
4390 esac
4391 AR=$ac_ct_AR
4392 fi
4393-else
4394- AR="$ac_cv_prog_AR"
4395 fi
4396
4397-test -z "$AR" && AR=ar
4398-if test -n "$plugin_option"; then
4399- if $AR --help 2>&1 | grep -q "\--plugin"; then
4400- touch conftest.c
4401- $AR $plugin_option rc conftest.a conftest.c
4402- if test "$?" != 0; then
4403- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
4404+ touch conftest.c
4405+ $AR $plugin_option rc conftest.a conftest.c
4406+ if test "$?" != 0; then
4407+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
4408 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
4409- else
4410- AR="$AR $plugin_option"
4411- fi
4412- rm -f conftest.*
4413+ else
4414+ AR="$AR $plugin_option"
4415 fi
4416-fi
4417-test -z "$AR_FLAGS" && AR_FLAGS=cru
4418+ rm -f conftest.*
4419+: ${AR=ar}
4420+: ${AR_FLAGS=cru}
4421+
4422+
4423+
4424+
4425+
4426+
4427+
4428+
4429+
4430+
4431+
4432+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
4433+$as_echo_n "checking for archiver @FILE support... " >&6; }
4434+if ${lt_cv_ar_at_file+:} false; then :
4435+ $as_echo_n "(cached) " >&6
4436+else
4437+ lt_cv_ar_at_file=no
4438+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4439+/* end confdefs.h. */
4440+
4441+int
4442+main ()
4443+{
4444
4445+ ;
4446+ return 0;
4447+}
4448+_ACEOF
4449+if ac_fn_c_try_compile "$LINENO"; then :
4450+ echo conftest.$ac_objext > conftest.lst
4451+ lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
4452+ { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
4453+ (eval $lt_ar_try) 2>&5
4454+ ac_status=$?
4455+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4456+ test $ac_status = 0; }
4457+ if test "$ac_status" -eq 0; then
4458+ # Ensure the archiver fails upon bogus file names.
4459+ rm -f conftest.$ac_objext libconftest.a
4460+ { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
4461+ (eval $lt_ar_try) 2>&5
4462+ ac_status=$?
4463+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4464+ test $ac_status = 0; }
4465+ if test "$ac_status" -ne 0; then
4466+ lt_cv_ar_at_file=@
4467+ fi
4468+ fi
4469+ rm -f conftest.* libconftest.a
4470
4471+fi
4472+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4473
4474+fi
4475+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
4476+$as_echo "$lt_cv_ar_at_file" >&6; }
4477
4478+if test "x$lt_cv_ar_at_file" = xno; then
4479+ archiver_list_spec=
4480+else
4481+ archiver_list_spec=$lt_cv_ar_at_file
4482+fi
4483
4484
4485
4486@@ -6264,8 +6578,8 @@ esac
4487 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4488
4489 # Transform an extracted symbol line into symbol name and symbol address
4490-lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
4491-lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
4492+lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
4493+lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
4494
4495 # Handle CRLF in mingw tool chain
4496 opt_cr=
4497@@ -6301,6 +6615,7 @@ for ac_symprfx in "" "_"; do
4498 else
4499 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4500 fi
4501+ lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
4502
4503 # Check to see that the pipe works correctly.
4504 pipe_works=no
4505@@ -6342,6 +6657,18 @@ _LT_EOF
4506 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4507 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4508 cat <<_LT_EOF > conftest.$ac_ext
4509+/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
4510+#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
4511+/* DATA imports from DLLs on WIN32 con't be const, because runtime
4512+ relocations are performed -- see ld's documentation on pseudo-relocs. */
4513+# define LT_DLSYM_CONST
4514+#elif defined(__osf__)
4515+/* This system does not cope well with relocations in const data. */
4516+# define LT_DLSYM_CONST
4517+#else
4518+# define LT_DLSYM_CONST const
4519+#endif
4520+
4521 #ifdef __cplusplus
4522 extern "C" {
4523 #endif
4524@@ -6353,7 +6680,7 @@ _LT_EOF
4525 cat <<_LT_EOF >> conftest.$ac_ext
4526
4527 /* The mapping between symbol names and symbols. */
4528-const struct {
4529+LT_DLSYM_CONST struct {
4530 const char *name;
4531 void *address;
4532 }
4533@@ -6379,8 +6706,8 @@ static const void *lt_preloaded_setup() {
4534 _LT_EOF
4535 # Now try linking the two files.
4536 mv conftest.$ac_objext conftstm.$ac_objext
4537- lt_save_LIBS="$LIBS"
4538- lt_save_CFLAGS="$CFLAGS"
4539+ lt_globsym_save_LIBS=$LIBS
4540+ lt_globsym_save_CFLAGS=$CFLAGS
4541 LIBS="conftstm.$ac_objext"
4542 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
4543 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
4544@@ -6390,8 +6717,8 @@ _LT_EOF
4545 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
4546 pipe_works=yes
4547 fi
4548- LIBS="$lt_save_LIBS"
4549- CFLAGS="$lt_save_CFLAGS"
4550+ LIBS=$lt_globsym_save_LIBS
4551+ CFLAGS=$lt_globsym_save_CFLAGS
4552 else
4553 echo "cannot find nm_test_func in $nlist" >&5
4554 fi
4555@@ -6428,6 +6755,19 @@ else
4556 $as_echo "ok" >&6; }
4557 fi
4558
4559+# Response file support.
4560+if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4561+ nm_file_list_spec='@'
4562+elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
4563+ nm_file_list_spec='@'
4564+fi
4565+
4566+
4567+
4568+
4569+
4570+
4571+
4572
4573
4574
4575@@ -6444,6 +6784,42 @@ fi
4576
4577
4578
4579+
4580+
4581+
4582+
4583+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
4584+$as_echo_n "checking for sysroot... " >&6; }
4585+
4586+# Check whether --with-libtool-sysroot was given.
4587+if test "${with_libtool_sysroot+set}" = set; then :
4588+ withval=$with_libtool_sysroot;
4589+else
4590+ with_libtool_sysroot=no
4591+fi
4592+
4593+
4594+lt_sysroot=
4595+case ${with_libtool_sysroot} in #(
4596+ yes)
4597+ if test "$GCC" = yes; then
4598+ lt_sysroot=`$CC --print-sysroot 2>/dev/null`
4599+ fi
4600+ ;; #(
4601+ /*)
4602+ lt_sysroot=`echo "$with_libtool_sysroot" | sed -e "$sed_quote_subst"`
4603+ ;; #(
4604+ no|'')
4605+ ;; #(
4606+ *)
4607+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_libtool_sysroot}" >&5
4608+$as_echo "${with_libtool_sysroot}" >&6; }
4609+ as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
4610+ ;;
4611+esac
4612+
4613+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
4614+$as_echo "${lt_sysroot:-no}" >&6; }
4615
4616
4617
4618@@ -6655,6 +7031,123 @@ esac
4619
4620 need_locks="$enable_libtool_lock"
4621
4622+if test -n "$ac_tool_prefix"; then
4623+ # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
4624+set dummy ${ac_tool_prefix}mt; ac_word=$2
4625+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4626+$as_echo_n "checking for $ac_word... " >&6; }
4627+if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
4628+ $as_echo_n "(cached) " >&6
4629+else
4630+ if test -n "$MANIFEST_TOOL"; then
4631+ ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
4632+else
4633+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4634+for as_dir in $PATH
4635+do
4636+ IFS=$as_save_IFS
4637+ test -z "$as_dir" && as_dir=.
4638+ for ac_exec_ext in '' $ac_executable_extensions; do
4639+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4640+ ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
4641+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4642+ break 2
4643+ fi
4644+done
4645+ done
4646+IFS=$as_save_IFS
4647+
4648+fi
4649+fi
4650+MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
4651+if test -n "$MANIFEST_TOOL"; then
4652+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
4653+$as_echo "$MANIFEST_TOOL" >&6; }
4654+else
4655+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4656+$as_echo "no" >&6; }
4657+fi
4658+
4659+
4660+fi
4661+if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
4662+ ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
4663+ # Extract the first word of "mt", so it can be a program name with args.
4664+set dummy mt; ac_word=$2
4665+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4666+$as_echo_n "checking for $ac_word... " >&6; }
4667+if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
4668+ $as_echo_n "(cached) " >&6
4669+else
4670+ if test -n "$ac_ct_MANIFEST_TOOL"; then
4671+ ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
4672+else
4673+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4674+for as_dir in $PATH
4675+do
4676+ IFS=$as_save_IFS
4677+ test -z "$as_dir" && as_dir=.
4678+ for ac_exec_ext in '' $ac_executable_extensions; do
4679+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4680+ ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
4681+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4682+ break 2
4683+ fi
4684+done
4685+ done
4686+IFS=$as_save_IFS
4687+
4688+fi
4689+fi
4690+ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
4691+if test -n "$ac_ct_MANIFEST_TOOL"; then
4692+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
4693+$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
4694+else
4695+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4696+$as_echo "no" >&6; }
4697+fi
4698+
4699+ if test "x$ac_ct_MANIFEST_TOOL" = x; then
4700+ MANIFEST_TOOL=":"
4701+ else
4702+ case $cross_compiling:$ac_tool_warned in
4703+yes:)
4704+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4705+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4706+ac_tool_warned=yes ;;
4707+esac
4708+ MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
4709+ fi
4710+else
4711+ MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
4712+fi
4713+
4714+test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
4715+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
4716+$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
4717+if ${lt_cv_path_mainfest_tool+:} false; then :
4718+ $as_echo_n "(cached) " >&6
4719+else
4720+ lt_cv_path_mainfest_tool=no
4721+ echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
4722+ $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
4723+ cat conftest.err >&5
4724+ if $GREP 'Manifest Tool' conftest.out > /dev/null; then
4725+ lt_cv_path_mainfest_tool=yes
4726+ fi
4727+ rm -f conftest*
4728+fi
4729+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
4730+$as_echo "$lt_cv_path_mainfest_tool" >&6; }
4731+if test "x$lt_cv_path_mainfest_tool" != xyes; then
4732+ MANIFEST_TOOL=:
4733+fi
4734+
4735+
4736+
4737+
4738+
4739
4740 case $host_os in
4741 rhapsody* | darwin*)
4742@@ -7218,6 +7711,8 @@ _LT_EOF
4743 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
4744 echo "$AR cru libconftest.a conftest.o" >&5
4745 $AR cru libconftest.a conftest.o 2>&5
4746+ echo "$RANLIB libconftest.a" >&5
4747+ $RANLIB libconftest.a 2>&5
4748 cat > conftest.c << _LT_EOF
4749 int main() { return 0;}
4750 _LT_EOF
4751@@ -7802,8 +8297,6 @@ fi
4752 lt_prog_compiler_pic=
4753 lt_prog_compiler_static=
4754
4755-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
4756-$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
4757
4758 if test "$GCC" = yes; then
4759 lt_prog_compiler_wl='-Wl,'
4760@@ -7969,6 +8462,12 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
4761 lt_prog_compiler_pic='--shared'
4762 lt_prog_compiler_static='--static'
4763 ;;
4764+ nagfor*)
4765+ # NAG Fortran compiler
4766+ lt_prog_compiler_wl='-Wl,-Wl,,'
4767+ lt_prog_compiler_pic='-PIC'
4768+ lt_prog_compiler_static='-Bstatic'
4769+ ;;
4770 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
4771 # Portland Group compilers (*not* the Pentium gcc compiler,
4772 # which looks to be a dead project)
4773@@ -8031,7 +8530,7 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
4774 lt_prog_compiler_pic='-KPIC'
4775 lt_prog_compiler_static='-Bstatic'
4776 case $cc_basename in
4777- f77* | f90* | f95*)
4778+ f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
4779 lt_prog_compiler_wl='-Qoption ld ';;
4780 *)
4781 lt_prog_compiler_wl='-Wl,';;
4782@@ -8088,13 +8587,17 @@ case $host_os in
4783 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
4784 ;;
4785 esac
4786-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
4787-$as_echo "$lt_prog_compiler_pic" >&6; }
4788-
4789-
4790-
4791-
4792
4793+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
4794+$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
4795+if ${lt_cv_prog_compiler_pic+:} false; then :
4796+ $as_echo_n "(cached) " >&6
4797+else
4798+ lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
4799+fi
4800+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
4801+$as_echo "$lt_cv_prog_compiler_pic" >&6; }
4802+lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
4803
4804 #
4805 # Check to make sure the PIC flag actually works.
4806@@ -8155,6 +8658,11 @@ fi
4807
4808
4809
4810+
4811+
4812+
4813+
4814+
4815 #
4816 # Check to make sure the static flag actually works.
4817 #
4818@@ -8505,7 +9013,8 @@ _LT_EOF
4819 allow_undefined_flag=unsupported
4820 always_export_symbols=no
4821 enable_shared_with_static_runtimes=yes
4822- export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
4823+ export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
4824+ exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
4825
4826 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
4827 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
4828@@ -8604,12 +9113,12 @@ _LT_EOF
4829 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
4830 hardcode_libdir_flag_spec=
4831 hardcode_libdir_flag_spec_ld='-rpath $libdir'
4832- archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
4833+ archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
4834 if test "x$supports_anon_versioning" = xyes; then
4835 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
4836 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
4837 echo "local: *; };" >> $output_objdir/$libname.ver~
4838- $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
4839+ $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
4840 fi
4841 ;;
4842 esac
4843@@ -8623,8 +9132,8 @@ _LT_EOF
4844 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
4845 wlarc=
4846 else
4847- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4848- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4849+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4850+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4851 fi
4852 ;;
4853
4854@@ -8642,8 +9151,8 @@ _LT_EOF
4855
4856 _LT_EOF
4857 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4858- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4859- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4860+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4861+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4862 else
4863 ld_shlibs=no
4864 fi
4865@@ -8689,8 +9198,8 @@ _LT_EOF
4866
4867 *)
4868 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4869- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4870- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4871+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4872+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4873 else
4874 ld_shlibs=no
4875 fi
4876@@ -8820,7 +9329,13 @@ _LT_EOF
4877 allow_undefined_flag='-berok'
4878 # Determine the default libpath from the value encoded in an
4879 # empty executable.
4880- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4881+ if test "${lt_cv_aix_libpath+set}" = set; then
4882+ aix_libpath=$lt_cv_aix_libpath
4883+else
4884+ if ${lt_cv_aix_libpath_+:} false; then :
4885+ $as_echo_n "(cached) " >&6
4886+else
4887+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4888 /* end confdefs.h. */
4889
4890 int
4891@@ -8833,22 +9348,29 @@ main ()
4892 _ACEOF
4893 if ac_fn_c_try_link "$LINENO"; then :
4894
4895-lt_aix_libpath_sed='
4896- /Import File Strings/,/^$/ {
4897- /^0/ {
4898- s/^0 *\(.*\)$/\1/
4899- p
4900- }
4901- }'
4902-aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
4903-# Check for a 64-bit object if we didn't find anything.
4904-if test -z "$aix_libpath"; then
4905- aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
4906-fi
4907+ lt_aix_libpath_sed='
4908+ /Import File Strings/,/^$/ {
4909+ /^0/ {
4910+ s/^0 *\([^ ]*\) *$/\1/
4911+ p
4912+ }
4913+ }'
4914+ lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
4915+ # Check for a 64-bit object if we didn't find anything.
4916+ if test -z "$lt_cv_aix_libpath_"; then
4917+ lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
4918+ fi
4919 fi
4920 rm -f core conftest.err conftest.$ac_objext \
4921 conftest$ac_exeext conftest.$ac_ext
4922-if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
4923+ if test -z "$lt_cv_aix_libpath_"; then
4924+ lt_cv_aix_libpath_="/usr/lib:/lib"
4925+ fi
4926+
4927+fi
4928+
4929+ aix_libpath=$lt_cv_aix_libpath_
4930+fi
4931
4932 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
4933 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
4934@@ -8860,7 +9382,13 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
4935 else
4936 # Determine the default libpath from the value encoded in an
4937 # empty executable.
4938- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4939+ if test "${lt_cv_aix_libpath+set}" = set; then
4940+ aix_libpath=$lt_cv_aix_libpath
4941+else
4942+ if ${lt_cv_aix_libpath_+:} false; then :
4943+ $as_echo_n "(cached) " >&6
4944+else
4945+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4946 /* end confdefs.h. */
4947
4948 int
4949@@ -8873,22 +9401,29 @@ main ()
4950 _ACEOF
4951 if ac_fn_c_try_link "$LINENO"; then :
4952
4953-lt_aix_libpath_sed='
4954- /Import File Strings/,/^$/ {
4955- /^0/ {
4956- s/^0 *\(.*\)$/\1/
4957- p
4958- }
4959- }'
4960-aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
4961-# Check for a 64-bit object if we didn't find anything.
4962-if test -z "$aix_libpath"; then
4963- aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
4964-fi
4965+ lt_aix_libpath_sed='
4966+ /Import File Strings/,/^$/ {
4967+ /^0/ {
4968+ s/^0 *\([^ ]*\) *$/\1/
4969+ p
4970+ }
4971+ }'
4972+ lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
4973+ # Check for a 64-bit object if we didn't find anything.
4974+ if test -z "$lt_cv_aix_libpath_"; then
4975+ lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
4976+ fi
4977 fi
4978 rm -f core conftest.err conftest.$ac_objext \
4979 conftest$ac_exeext conftest.$ac_ext
4980-if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
4981+ if test -z "$lt_cv_aix_libpath_"; then
4982+ lt_cv_aix_libpath_="/usr/lib:/lib"
4983+ fi
4984+
4985+fi
4986+
4987+ aix_libpath=$lt_cv_aix_libpath_
4988+fi
4989
4990 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
4991 # Warning - without using the other run time loading flags,
4992@@ -8933,20 +9468,63 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
4993 # Microsoft Visual C++.
4994 # hardcode_libdir_flag_spec is actually meaningless, as there is
4995 # no search path for DLLs.
4996- hardcode_libdir_flag_spec=' '
4997- allow_undefined_flag=unsupported
4998- # Tell ltmain to make .lib files, not .a files.
4999- libext=lib
5000- # Tell ltmain to make .dll files, not .so files.
5001- shrext_cmds=".dll"
5002- # FIXME: Setting linknames here is a bad hack.
5003- archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
5004- # The linker will automatically build a .lib file if we build a DLL.
5005- old_archive_from_new_cmds='true'
5006- # FIXME: Should let the user specify the lib program.
5007- old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
5008- fix_srcfile_path='`cygpath -w "$srcfile"`'
5009- enable_shared_with_static_runtimes=yes
5010+ case $cc_basename in
5011+ cl*)
5012+ # Native MSVC
5013+ hardcode_libdir_flag_spec=' '
5014+ allow_undefined_flag=unsupported
5015+ always_export_symbols=yes
5016+ file_list_spec='@'
5017+ # Tell ltmain to make .lib files, not .a files.
5018+ libext=lib
5019+ # Tell ltmain to make .dll files, not .so files.
5020+ shrext_cmds=".dll"
5021+ # FIXME: Setting linknames here is a bad hack.
5022+ archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
5023+ archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5024+ sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
5025+ else
5026+ sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
5027+ fi~
5028+ $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
5029+ linknames='
5030+ # The linker will not automatically build a static lib if we build a DLL.
5031+ # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
5032+ enable_shared_with_static_runtimes=yes
5033+ export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
5034+ # Don't use ranlib
5035+ old_postinstall_cmds='chmod 644 $oldlib'
5036+ postlink_cmds='lt_outputfile="@OUTPUT@"~
5037+ lt_tool_outputfile="@TOOL_OUTPUT@"~
5038+ case $lt_outputfile in
5039+ *.exe|*.EXE) ;;
5040+ *)
5041+ lt_outputfile="$lt_outputfile.exe"
5042+ lt_tool_outputfile="$lt_tool_outputfile.exe"
5043+ ;;
5044+ esac~
5045+ if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
5046+ $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
5047+ $RM "$lt_outputfile.manifest";
5048+ fi'
5049+ ;;
5050+ *)
5051+ # Assume MSVC wrapper
5052+ hardcode_libdir_flag_spec=' '
5053+ allow_undefined_flag=unsupported
5054+ # Tell ltmain to make .lib files, not .a files.
5055+ libext=lib
5056+ # Tell ltmain to make .dll files, not .so files.
5057+ shrext_cmds=".dll"
5058+ # FIXME: Setting linknames here is a bad hack.
5059+ archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
5060+ # The linker will automatically build a .lib file if we build a DLL.
5061+ old_archive_from_new_cmds='true'
5062+ # FIXME: Should let the user specify the lib program.
5063+ old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
5064+ enable_shared_with_static_runtimes=yes
5065+ ;;
5066+ esac
5067 ;;
5068
5069 darwin* | rhapsody*)
5070@@ -9007,7 +9585,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
5071
5072 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5073 freebsd* | dragonfly*)
5074- archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5075+ archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5076 hardcode_libdir_flag_spec='-R$libdir'
5077 hardcode_direct=yes
5078 hardcode_shlibpath_var=no
5079@@ -9015,7 +9593,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
5080
5081 hpux9*)
5082 if test "$GCC" = yes; then
5083- archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
5084+ archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
5085 else
5086 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
5087 fi
5088@@ -9031,7 +9609,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
5089
5090 hpux10*)
5091 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
5092- archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5093+ archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5094 else
5095 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
5096 fi
5097@@ -9055,10 +9633,10 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
5098 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5099 ;;
5100 ia64*)
5101- archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5102+ archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5103 ;;
5104 *)
5105- archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5106+ archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5107 ;;
5108 esac
5109 else
5110@@ -9137,23 +9715,36 @@ fi
5111
5112 irix5* | irix6* | nonstopux*)
5113 if test "$GCC" = yes; then
5114- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5115+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5116 # Try to use the -exported_symbol ld option, if it does not
5117 # work, assume that -exports_file does not work either and
5118 # implicitly export all symbols.
5119- save_LDFLAGS="$LDFLAGS"
5120- LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
5121- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5122+ # This should be the same for all languages, so no per-tag cache variable.
5123+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
5124+$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
5125+if ${lt_cv_irix_exported_symbol+:} false; then :
5126+ $as_echo_n "(cached) " >&6
5127+else
5128+ save_LDFLAGS="$LDFLAGS"
5129+ LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
5130+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5131 /* end confdefs.h. */
5132-int foo(void) {}
5133+int foo (void) { return 0; }
5134 _ACEOF
5135 if ac_fn_c_try_link "$LINENO"; then :
5136- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
5137-
5138+ lt_cv_irix_exported_symbol=yes
5139+else
5140+ lt_cv_irix_exported_symbol=no
5141 fi
5142 rm -f core conftest.err conftest.$ac_objext \
5143 conftest$ac_exeext conftest.$ac_ext
5144- LDFLAGS="$save_LDFLAGS"
5145+ LDFLAGS="$save_LDFLAGS"
5146+fi
5147+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
5148+$as_echo "$lt_cv_irix_exported_symbol" >&6; }
5149+ if test "$lt_cv_irix_exported_symbol" = yes; then
5150+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
5151+ fi
5152 else
5153 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
5154 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
5155@@ -9238,7 +9829,7 @@ rm -f core conftest.err conftest.$ac_objext \
5156 osf4* | osf5*) # as osf3* with the addition of -msym flag
5157 if test "$GCC" = yes; then
5158 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5159- archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5160+ archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5161 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5162 else
5163 allow_undefined_flag=' -expect_unresolved \*'
5164@@ -9257,9 +9848,9 @@ rm -f core conftest.err conftest.$ac_objext \
5165 no_undefined_flag=' -z defs'
5166 if test "$GCC" = yes; then
5167 wlarc='${wl}'
5168- archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5169+ archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5170 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5171- $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
5172+ $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
5173 else
5174 case `$CC -V 2>&1` in
5175 *"Compilers 5.0"*)
5176@@ -9835,8 +10426,9 @@ cygwin* | mingw* | pw32* | cegcc*)
5177 need_version=no
5178 need_lib_prefix=no
5179
5180- case $GCC,$host_os in
5181- yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
5182+ case $GCC,$cc_basename in
5183+ yes,*)
5184+ # gcc
5185 library_names_spec='$libname.dll.a'
5186 # DLL is installed to $(libdir)/../bin by postinstall_cmds
5187 postinstall_cmds='base_file=`basename \${file}`~
5188@@ -9869,13 +10461,71 @@ cygwin* | mingw* | pw32* | cegcc*)
5189 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
5190 ;;
5191 esac
5192+ dynamic_linker='Win32 ld.exe'
5193+ ;;
5194+
5195+ *,cl*)
5196+ # Native MSVC
5197+ libname_spec='$name'
5198+ soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
5199+ library_names_spec='${libname}.dll.lib'
5200+
5201+ case $build_os in
5202+ mingw*)
5203+ sys_lib_search_path_spec=
5204+ lt_save_ifs=$IFS
5205+ IFS=';'
5206+ for lt_path in $LIB
5207+ do
5208+ IFS=$lt_save_ifs
5209+ # Let DOS variable expansion print the short 8.3 style file name.
5210+ lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
5211+ sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
5212+ done
5213+ IFS=$lt_save_ifs
5214+ # Convert to MSYS style.
5215+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
5216+ ;;
5217+ cygwin*)
5218+ # Convert to unix form, then to dos form, then back to unix form
5219+ # but this time dos style (no spaces!) so that the unix form looks
5220+ # like /cygdrive/c/PROGRA~1:/cygdr...
5221+ sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
5222+ sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
5223+ sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
5224+ ;;
5225+ *)
5226+ sys_lib_search_path_spec="$LIB"
5227+ if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
5228+ # It is most probably a Windows format PATH.
5229+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
5230+ else
5231+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
5232+ fi
5233+ # FIXME: find the short name or the path components, as spaces are
5234+ # common. (e.g. "Program Files" -> "PROGRA~1")
5235+ ;;
5236+ esac
5237+
5238+ # DLL is installed to $(libdir)/../bin by postinstall_cmds
5239+ postinstall_cmds='base_file=`basename \${file}`~
5240+ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
5241+ dldir=$destdir/`dirname \$dlpath`~
5242+ test -d \$dldir || mkdir -p \$dldir~
5243+ $install_prog $dir/$dlname \$dldir/$dlname'
5244+ postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
5245+ dlpath=$dir/\$dldll~
5246+ $RM \$dlpath'
5247+ shlibpath_overrides_runpath=yes
5248+ dynamic_linker='Win32 link.exe'
5249 ;;
5250
5251 *)
5252+ # Assume MSVC wrapper
5253 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
5254+ dynamic_linker='Win32 ld.exe'
5255 ;;
5256 esac
5257- dynamic_linker='Win32 ld.exe'
5258 # FIXME: first we should search . and the directory the executable is in
5259 shlibpath_var=PATH
5260 ;;
5261@@ -10777,7 +11427,7 @@ else
5262 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
5263 lt_status=$lt_dlunknown
5264 cat > conftest.$ac_ext <<_LT_EOF
5265-#line 10780 "configure"
5266+#line $LINENO "configure"
5267 #include "confdefs.h"
5268
5269 #if HAVE_DLFCN_H
5270@@ -10821,10 +11471,10 @@ else
5271 /* When -fvisbility=hidden is used, assume the code has been annotated
5272 correspondingly for the symbols needed. */
5273 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
5274-void fnord () __attribute__((visibility("default")));
5275+int fnord () __attribute__((visibility("default")));
5276 #endif
5277
5278-void fnord () { int i=42; }
5279+int fnord () { return 42; }
5280 int main ()
5281 {
5282 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
5283@@ -10883,7 +11533,7 @@ else
5284 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
5285 lt_status=$lt_dlunknown
5286 cat > conftest.$ac_ext <<_LT_EOF
5287-#line 10886 "configure"
5288+#line $LINENO "configure"
5289 #include "confdefs.h"
5290
5291 #if HAVE_DLFCN_H
5292@@ -10927,10 +11577,10 @@ else
5293 /* When -fvisbility=hidden is used, assume the code has been annotated
5294 correspondingly for the symbols needed. */
5295 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
5296-void fnord () __attribute__((visibility("default")));
5297+int fnord () __attribute__((visibility("default")));
5298 #endif
5299
5300-void fnord () { int i=42; }
5301+int fnord () { return 42; }
5302 int main ()
5303 {
5304 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
5305@@ -17080,13 +17730,20 @@ exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
5306 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
5307 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
5308 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
5309+lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
5310+lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
5311 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
5312 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
5313 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
5314 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
5315 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
5316+file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
5317+want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
5318+DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
5319+sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
5320 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
5321 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
5322+archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
5323 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
5324 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
5325 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
5326@@ -17101,14 +17758,17 @@ lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$de
5327 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
5328 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
5329 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
5330+nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
5331+lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
5332 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
5333 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
5334 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
5335-lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
5336 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
5337+lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
5338 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
5339 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
5340 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
5341+MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
5342 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
5343 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
5344 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
5345@@ -17141,12 +17801,12 @@ hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_q
5346 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
5347 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
5348 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
5349-fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
5350 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
5351 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
5352 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
5353 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
5354 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
5355+postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
5356 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
5357 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
5358 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
5359@@ -17201,8 +17861,13 @@ reload_flag \
5360 OBJDUMP \
5361 deplibs_check_method \
5362 file_magic_cmd \
5363+file_magic_glob \
5364+want_nocaseglob \
5365+DLLTOOL \
5366+sharedlib_from_linklib_cmd \
5367 AR \
5368 AR_FLAGS \
5369+archiver_list_spec \
5370 STRIP \
5371 RANLIB \
5372 CC \
5373@@ -17212,12 +17877,14 @@ lt_cv_sys_global_symbol_pipe \
5374 lt_cv_sys_global_symbol_to_cdecl \
5375 lt_cv_sys_global_symbol_to_c_name_address \
5376 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
5377+nm_file_list_spec \
5378 lt_prog_compiler_no_builtin_flag \
5379-lt_prog_compiler_wl \
5380 lt_prog_compiler_pic \
5381+lt_prog_compiler_wl \
5382 lt_prog_compiler_static \
5383 lt_cv_prog_compiler_c_o \
5384 need_locks \
5385+MANIFEST_TOOL \
5386 DSYMUTIL \
5387 NMEDIT \
5388 LIPO \
5389@@ -17233,7 +17900,6 @@ no_undefined_flag \
5390 hardcode_libdir_flag_spec \
5391 hardcode_libdir_flag_spec_ld \
5392 hardcode_libdir_separator \
5393-fix_srcfile_path \
5394 exclude_expsyms \
5395 include_expsyms \
5396 file_list_spec \
5397@@ -17269,6 +17935,7 @@ module_cmds \
5398 module_expsym_cmds \
5399 export_symbols_cmds \
5400 prelink_cmds \
5401+postlink_cmds \
5402 postinstall_cmds \
5403 postuninstall_cmds \
5404 finish_cmds \
5405@@ -18049,7 +18716,8 @@ $as_echo X"$file" |
5406 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
5407 #
5408 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
5409-# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
5410+# 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
5411+# Inc.
5412 # Written by Gordon Matzigkeit, 1996
5413 #
5414 # This file is part of GNU Libtool.
5415@@ -18152,19 +18820,42 @@ SP2NL=$lt_lt_SP2NL
5416 # turn newlines into spaces.
5417 NL2SP=$lt_lt_NL2SP
5418
5419+# convert \$build file names to \$host format.
5420+to_host_file_cmd=$lt_cv_to_host_file_cmd
5421+
5422+# convert \$build files to toolchain format.
5423+to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5424+
5425 # An object symbol dumper.
5426 OBJDUMP=$lt_OBJDUMP
5427
5428 # Method to check whether dependent libraries are shared objects.
5429 deplibs_check_method=$lt_deplibs_check_method
5430
5431-# Command to use when deplibs_check_method == "file_magic".
5432+# Command to use when deplibs_check_method = "file_magic".
5433 file_magic_cmd=$lt_file_magic_cmd
5434
5435+# How to find potential files when deplibs_check_method = "file_magic".
5436+file_magic_glob=$lt_file_magic_glob
5437+
5438+# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
5439+want_nocaseglob=$lt_want_nocaseglob
5440+
5441+# DLL creation program.
5442+DLLTOOL=$lt_DLLTOOL
5443+
5444+# Command to associate shared and link libraries.
5445+sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
5446+
5447 # The archiver.
5448 AR=$lt_AR
5449+
5450+# Flags to create an archive.
5451 AR_FLAGS=$lt_AR_FLAGS
5452
5453+# How to feed a file listing to the archiver.
5454+archiver_list_spec=$lt_archiver_list_spec
5455+
5456 # A symbol stripping program.
5457 STRIP=$lt_STRIP
5458
5459@@ -18194,6 +18885,12 @@ global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
5460 # Transform the output of nm in a C name address pair when lib prefix is needed.
5461 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
5462
5463+# Specify filename containing input files for \$NM.
5464+nm_file_list_spec=$lt_nm_file_list_spec
5465+
5466+# The root where to search for dependent libraries,and in which our libraries should be installed.
5467+lt_sysroot=$lt_sysroot
5468+
5469 # The name of the directory that contains temporary libtool files.
5470 objdir=$objdir
5471
5472@@ -18203,6 +18900,9 @@ MAGIC_CMD=$MAGIC_CMD
5473 # Must we lock files when doing compilation?
5474 need_locks=$lt_need_locks
5475
5476+# Manifest tool.
5477+MANIFEST_TOOL=$lt_MANIFEST_TOOL
5478+
5479 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
5480 DSYMUTIL=$lt_DSYMUTIL
5481
5482@@ -18317,12 +19017,12 @@ with_gcc=$GCC
5483 # Compiler flag to turn off builtin functions.
5484 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
5485
5486-# How to pass a linker flag through the compiler.
5487-wl=$lt_lt_prog_compiler_wl
5488-
5489 # Additional compiler flags for building library objects.
5490 pic_flag=$lt_lt_prog_compiler_pic
5491
5492+# How to pass a linker flag through the compiler.
5493+wl=$lt_lt_prog_compiler_wl
5494+
5495 # Compiler flag to prevent dynamic linking.
5496 link_static_flag=$lt_lt_prog_compiler_static
5497
5498@@ -18409,9 +19109,6 @@ inherit_rpath=$inherit_rpath
5499 # Whether libtool must link a program against all its dependency libraries.
5500 link_all_deplibs=$link_all_deplibs
5501
5502-# Fix the shell variable \$srcfile for the compiler.
5503-fix_srcfile_path=$lt_fix_srcfile_path
5504-
5505 # Set to "yes" if exported symbols are required.
5506 always_export_symbols=$always_export_symbols
5507
5508@@ -18427,6 +19124,9 @@ include_expsyms=$lt_include_expsyms
5509 # Commands necessary for linking programs (against libraries) with templates.
5510 prelink_cmds=$lt_prelink_cmds
5511
5512+# Commands necessary for finishing linking programs.
5513+postlink_cmds=$lt_postlink_cmds
5514+
5515 # Specify filename containing input files.
5516 file_list_spec=$lt_file_list_spec
5517
5518@@ -18459,210 +19159,169 @@ ltmain="$ac_aux_dir/ltmain.sh"
5519 # if finds mixed CR/LF and LF-only lines. Since sed operates in
5520 # text mode, it properly converts lines to CR/LF. This bash problem
5521 # is reportedly fixed, but why not run on old versions too?
5522- sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
5523- || (rm -f "$cfgfile"; exit 1)
5524-
5525- case $xsi_shell in
5526- yes)
5527- cat << \_LT_EOF >> "$cfgfile"
5528-
5529-# func_dirname file append nondir_replacement
5530-# Compute the dirname of FILE. If nonempty, add APPEND to the result,
5531-# otherwise set result to NONDIR_REPLACEMENT.
5532-func_dirname ()
5533-{
5534- case ${1} in
5535- */*) func_dirname_result="${1%/*}${2}" ;;
5536- * ) func_dirname_result="${3}" ;;
5537- esac
5538-}
5539-
5540-# func_basename file
5541-func_basename ()
5542-{
5543- func_basename_result="${1##*/}"
5544-}
5545-
5546-# func_dirname_and_basename file append nondir_replacement
5547-# perform func_basename and func_dirname in a single function
5548-# call:
5549-# dirname: Compute the dirname of FILE. If nonempty,
5550-# add APPEND to the result, otherwise set result
5551-# to NONDIR_REPLACEMENT.
5552-# value returned in "$func_dirname_result"
5553-# basename: Compute filename of FILE.
5554-# value retuned in "$func_basename_result"
5555-# Implementation must be kept synchronized with func_dirname
5556-# and func_basename. For efficiency, we do not delegate to
5557-# those functions but instead duplicate the functionality here.
5558-func_dirname_and_basename ()
5559-{
5560- case ${1} in
5561- */*) func_dirname_result="${1%/*}${2}" ;;
5562- * ) func_dirname_result="${3}" ;;
5563- esac
5564- func_basename_result="${1##*/}"
5565-}
5566-
5567-# func_stripname prefix suffix name
5568-# strip PREFIX and SUFFIX off of NAME.
5569-# PREFIX and SUFFIX must not contain globbing or regex special
5570-# characters, hashes, percent signs, but SUFFIX may contain a leading
5571-# dot (in which case that matches only a dot).
5572-func_stripname ()
5573-{
5574- # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
5575- # positional parameters, so assign one to ordinary parameter first.
5576- func_stripname_result=${3}
5577- func_stripname_result=${func_stripname_result#"${1}"}
5578- func_stripname_result=${func_stripname_result%"${2}"}
5579-}
5580-
5581-# func_opt_split
5582-func_opt_split ()
5583-{
5584- func_opt_split_opt=${1%%=*}
5585- func_opt_split_arg=${1#*=}
5586-}
5587-
5588-# func_lo2o object
5589-func_lo2o ()
5590-{
5591- case ${1} in
5592- *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
5593- *) func_lo2o_result=${1} ;;
5594- esac
5595-}
5596-
5597-# func_xform libobj-or-source
5598-func_xform ()
5599-{
5600- func_xform_result=${1%.*}.lo
5601-}
5602-
5603-# func_arith arithmetic-term...
5604-func_arith ()
5605-{
5606- func_arith_result=$(( $* ))
5607-}
5608-
5609-# func_len string
5610-# STRING may not start with a hyphen.
5611-func_len ()
5612-{
5613- func_len_result=${#1}
5614-}
5615-
5616-_LT_EOF
5617- ;;
5618- *) # Bourne compatible functions.
5619- cat << \_LT_EOF >> "$cfgfile"
5620-
5621-# func_dirname file append nondir_replacement
5622-# Compute the dirname of FILE. If nonempty, add APPEND to the result,
5623-# otherwise set result to NONDIR_REPLACEMENT.
5624-func_dirname ()
5625-{
5626- # Extract subdirectory from the argument.
5627- func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
5628- if test "X$func_dirname_result" = "X${1}"; then
5629- func_dirname_result="${3}"
5630- else
5631- func_dirname_result="$func_dirname_result${2}"
5632- fi
5633-}
5634-
5635-# func_basename file
5636-func_basename ()
5637-{
5638- func_basename_result=`$ECHO "${1}" | $SED "$basename"`
5639-}
5640-
5641-
5642-# func_stripname prefix suffix name
5643-# strip PREFIX and SUFFIX off of NAME.
5644-# PREFIX and SUFFIX must not contain globbing or regex special
5645-# characters, hashes, percent signs, but SUFFIX may contain a leading
5646-# dot (in which case that matches only a dot).
5647-# func_strip_suffix prefix name
5648-func_stripname ()
5649-{
5650- case ${2} in
5651- .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
5652- *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
5653- esac
5654-}
5655-
5656-# sed scripts:
5657-my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
5658-my_sed_long_arg='1s/^-[^=]*=//'
5659-
5660-# func_opt_split
5661-func_opt_split ()
5662-{
5663- func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
5664- func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
5665-}
5666-
5667-# func_lo2o object
5668-func_lo2o ()
5669-{
5670- func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
5671-}
5672-
5673-# func_xform libobj-or-source
5674-func_xform ()
5675-{
5676- func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
5677-}
5678-
5679-# func_arith arithmetic-term...
5680-func_arith ()
5681-{
5682- func_arith_result=`expr "$@"`
5683-}
5684-
5685-# func_len string
5686-# STRING may not start with a hyphen.
5687-func_len ()
5688-{
5689- func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
5690-}
5691-
5692-_LT_EOF
5693-esac
5694-
5695-case $lt_shell_append in
5696- yes)
5697- cat << \_LT_EOF >> "$cfgfile"
5698-
5699-# func_append var value
5700-# Append VALUE to the end of shell variable VAR.
5701-func_append ()
5702-{
5703- eval "$1+=\$2"
5704-}
5705-_LT_EOF
5706- ;;
5707- *)
5708- cat << \_LT_EOF >> "$cfgfile"
5709-
5710-# func_append var value
5711-# Append VALUE to the end of shell variable VAR.
5712-func_append ()
5713-{
5714- eval "$1=\$$1\$2"
5715-}
5716-
5717-_LT_EOF
5718- ;;
5719- esac
5720-
5721-
5722- sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
5723- || (rm -f "$cfgfile"; exit 1)
5724-
5725- mv -f "$cfgfile" "$ofile" ||
5726+ sed '$q' "$ltmain" >> "$cfgfile" \
5727+ || (rm -f "$cfgfile"; exit 1)
5728+
5729+ if test x"$xsi_shell" = xyes; then
5730+ sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
5731+func_dirname ()\
5732+{\
5733+\ case ${1} in\
5734+\ */*) func_dirname_result="${1%/*}${2}" ;;\
5735+\ * ) func_dirname_result="${3}" ;;\
5736+\ esac\
5737+} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
5738+ && mv -f "$cfgfile.tmp" "$cfgfile" \
5739+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
5740+test 0 -eq $? || _lt_function_replace_fail=:
5741+
5742+
5743+ sed -e '/^func_basename ()$/,/^} # func_basename /c\
5744+func_basename ()\
5745+{\
5746+\ func_basename_result="${1##*/}"\
5747+} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
5748+ && mv -f "$cfgfile.tmp" "$cfgfile" \
5749+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
5750+test 0 -eq $? || _lt_function_replace_fail=:
5751+
5752+
5753+ sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
5754+func_dirname_and_basename ()\
5755+{\
5756+\ case ${1} in\
5757+\ */*) func_dirname_result="${1%/*}${2}" ;;\
5758+\ * ) func_dirname_result="${3}" ;;\
5759+\ esac\
5760+\ func_basename_result="${1##*/}"\
5761+} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
5762+ && mv -f "$cfgfile.tmp" "$cfgfile" \
5763+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
5764+test 0 -eq $? || _lt_function_replace_fail=:
5765+
5766+
5767+ sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
5768+func_stripname ()\
5769+{\
5770+\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
5771+\ # positional parameters, so assign one to ordinary parameter first.\
5772+\ func_stripname_result=${3}\
5773+\ func_stripname_result=${func_stripname_result#"${1}"}\
5774+\ func_stripname_result=${func_stripname_result%"${2}"}\
5775+} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
5776+ && mv -f "$cfgfile.tmp" "$cfgfile" \
5777+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
5778+test 0 -eq $? || _lt_function_replace_fail=:
5779+
5780+
5781+ sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
5782+func_split_long_opt ()\
5783+{\
5784+\ func_split_long_opt_name=${1%%=*}\
5785+\ func_split_long_opt_arg=${1#*=}\
5786+} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
5787+ && mv -f "$cfgfile.tmp" "$cfgfile" \
5788+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
5789+test 0 -eq $? || _lt_function_replace_fail=:
5790+
5791+
5792+ sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
5793+func_split_short_opt ()\
5794+{\
5795+\ func_split_short_opt_arg=${1#??}\
5796+\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
5797+} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
5798+ && mv -f "$cfgfile.tmp" "$cfgfile" \
5799+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
5800+test 0 -eq $? || _lt_function_replace_fail=:
5801+
5802+
5803+ sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
5804+func_lo2o ()\
5805+{\
5806+\ case ${1} in\
5807+\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
5808+\ *) func_lo2o_result=${1} ;;\
5809+\ esac\
5810+} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
5811+ && mv -f "$cfgfile.tmp" "$cfgfile" \
5812+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
5813+test 0 -eq $? || _lt_function_replace_fail=:
5814+
5815+
5816+ sed -e '/^func_xform ()$/,/^} # func_xform /c\
5817+func_xform ()\
5818+{\
5819+ func_xform_result=${1%.*}.lo\
5820+} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
5821+ && mv -f "$cfgfile.tmp" "$cfgfile" \
5822+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
5823+test 0 -eq $? || _lt_function_replace_fail=:
5824+
5825+
5826+ sed -e '/^func_arith ()$/,/^} # func_arith /c\
5827+func_arith ()\
5828+{\
5829+ func_arith_result=$(( $* ))\
5830+} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
5831+ && mv -f "$cfgfile.tmp" "$cfgfile" \
5832+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
5833+test 0 -eq $? || _lt_function_replace_fail=:
5834+
5835+
5836+ sed -e '/^func_len ()$/,/^} # func_len /c\
5837+func_len ()\
5838+{\
5839+ func_len_result=${#1}\
5840+} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
5841+ && mv -f "$cfgfile.tmp" "$cfgfile" \
5842+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
5843+test 0 -eq $? || _lt_function_replace_fail=:
5844+
5845+fi
5846+
5847+if test x"$lt_shell_append" = xyes; then
5848+ sed -e '/^func_append ()$/,/^} # func_append /c\
5849+func_append ()\
5850+{\
5851+ eval "${1}+=\\${2}"\
5852+} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
5853+ && mv -f "$cfgfile.tmp" "$cfgfile" \
5854+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
5855+test 0 -eq $? || _lt_function_replace_fail=:
5856+
5857+
5858+ sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
5859+func_append_quoted ()\
5860+{\
5861+\ func_quote_for_eval "${2}"\
5862+\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
5863+} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
5864+ && mv -f "$cfgfile.tmp" "$cfgfile" \
5865+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
5866+test 0 -eq $? || _lt_function_replace_fail=:
5867+
5868+
5869+ # Save a `func_append' function call where possible by direct use of '+='
5870+ sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
5871+ && mv -f "$cfgfile.tmp" "$cfgfile" \
5872+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
5873+ test 0 -eq $? || _lt_function_replace_fail=:
5874+else
5875+ # Save a `func_append' function call even when '+=' is not available
5876+ sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
5877+ && mv -f "$cfgfile.tmp" "$cfgfile" \
5878+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
5879+ test 0 -eq $? || _lt_function_replace_fail=:
5880+fi
5881+
5882+if test x"$_lt_function_replace_fail" = x":"; then
5883+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
5884+$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
5885+fi
5886+
5887+
5888+ mv -f "$cfgfile" "$ofile" ||
5889 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
5890 chmod +x "$ofile"
5891
5892diff --git a/gprof/Makefile.in b/gprof/Makefile.in
5893index a7398231030..fc7a3d78db0 100644
5894--- a/gprof/Makefile.in
5895+++ b/gprof/Makefile.in
5896@@ -327,6 +327,7 @@ CYGPATH_W = @CYGPATH_W@
5897 DATADIRNAME = @DATADIRNAME@
5898 DEFS = @DEFS@
5899 DEPDIR = @DEPDIR@
5900+DLLTOOL = @DLLTOOL@
5901 DSYMUTIL = @DSYMUTIL@
5902 DUMPBIN = @DUMPBIN@
5903 ECHO_C = @ECHO_C@
5904@@ -363,6 +364,7 @@ LTLIBINTL = @LTLIBINTL@
5905 LTLIBOBJS = @LTLIBOBJS@
5906 MAINT = @MAINT@
5907 MAKEINFO = @MAKEINFO@
5908+MANIFEST_TOOL = @MANIFEST_TOOL@
5909 MKDIR_P = @MKDIR_P@
5910 MKINSTALLDIRS = @MKINSTALLDIRS@
5911 MSGFMT = @MSGFMT@
5912@@ -398,6 +400,7 @@ abs_builddir = @abs_builddir@
5913 abs_srcdir = @abs_srcdir@
5914 abs_top_builddir = @abs_top_builddir@
5915 abs_top_srcdir = @abs_top_srcdir@
5916+ac_ct_AR = @ac_ct_AR@
5917 ac_ct_CC = @ac_ct_CC@
5918 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
5919 am__include = @am__include@
5920diff --git a/gprof/configure b/gprof/configure
5921index 2d62b6fbb07..0cafee249eb 100755
5922--- a/gprof/configure
5923+++ b/gprof/configure
5924@@ -669,8 +669,11 @@ OTOOL
5925 LIPO
5926 NMEDIT
5927 DSYMUTIL
5928+MANIFEST_TOOL
5929 RANLIB
5930+ac_ct_AR
5931 AR
5932+DLLTOOL
5933 OBJDUMP
5934 LN_S
5935 NM
5936@@ -787,6 +790,7 @@ enable_static
5937 with_pic
5938 enable_fast_install
5939 with_gnu_ld
5940+with_libtool_sysroot
5941 enable_libtool_lock
5942 enable_plugins
5943 enable_largefile
5944@@ -1462,6 +1466,8 @@ Optional Packages:
5945 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
5946 --without-libintl-prefix don't search for libintl in includedir and libdir
5947 --with-libintl-type=TYPE type of library to search for (auto/static/shared)
5948+ --with-libtool-sysroot=DIR Search for dependent libraries within DIR
5949+ (or the compiler's sysroot if not specified).
5950
5951 Some influential environment variables:
5952 CC C compiler command
5953@@ -4530,8 +4536,8 @@ esac
5954
5955
5956
5957-macro_version='2.2.7a'
5958-macro_revision='1.3134'
5959+macro_version='2.4'
5960+macro_revision='1.3293'
5961
5962
5963
5964@@ -4571,7 +4577,7 @@ ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5966 $as_echo_n "checking how to print strings... " >&6; }
5967 # Test print first, because it will be a builtin if present.
5968-if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5969+if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5970 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5971 ECHO='print -r --'
5972 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5973@@ -5264,8 +5270,8 @@ $as_echo_n "checking whether the shell understands some XSI constructs... " >&6;
5974 # Try some XSI features
5975 xsi_shell=no
5976 ( _lt_dummy="a/b/c"
5977- test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5978- = c,a/b,, \
5979+ test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5980+ = c,a/b,b/c, \
5981 && eval 'test $(( 1 + 1 )) -eq 2 \
5982 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5983 && xsi_shell=yes
5984@@ -5314,6 +5320,80 @@ esac
5985
5986
5987
5988+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5989+$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5990+if ${lt_cv_to_host_file_cmd+:} false; then :
5991+ $as_echo_n "(cached) " >&6
5992+else
5993+ case $host in
5994+ *-*-mingw* )
5995+ case $build in
5996+ *-*-mingw* ) # actually msys
5997+ lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5998+ ;;
5999+ *-*-cygwin* )
6000+ lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6001+ ;;
6002+ * ) # otherwise, assume *nix
6003+ lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6004+ ;;
6005+ esac
6006+ ;;
6007+ *-*-cygwin* )
6008+ case $build in
6009+ *-*-mingw* ) # actually msys
6010+ lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6011+ ;;
6012+ *-*-cygwin* )
6013+ lt_cv_to_host_file_cmd=func_convert_file_noop
6014+ ;;
6015+ * ) # otherwise, assume *nix
6016+ lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6017+ ;;
6018+ esac
6019+ ;;
6020+ * ) # unhandled hosts (and "normal" native builds)
6021+ lt_cv_to_host_file_cmd=func_convert_file_noop
6022+ ;;
6023+esac
6024+
6025+fi
6026+
6027+to_host_file_cmd=$lt_cv_to_host_file_cmd
6028+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6029+$as_echo "$lt_cv_to_host_file_cmd" >&6; }
6030+
6031+
6032+
6033+
6034+
6035+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6036+$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6037+if ${lt_cv_to_tool_file_cmd+:} false; then :
6038+ $as_echo_n "(cached) " >&6
6039+else
6040+ #assume ordinary cross tools, or native build.
6041+lt_cv_to_tool_file_cmd=func_convert_file_noop
6042+case $host in
6043+ *-*-mingw* )
6044+ case $build in
6045+ *-*-mingw* ) # actually msys
6046+ lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6047+ ;;
6048+ esac
6049+ ;;
6050+esac
6051+
6052+fi
6053+
6054+to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6055+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6056+$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6057+
6058+
6059+
6060+
6061+
6062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6063 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6064 if ${lt_cv_ld_reload_flag+:} false; then :
6065@@ -5330,6 +5410,11 @@ case $reload_flag in
6066 esac
6067 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6068 case $host_os in
6069+ cygwin* | mingw* | pw32* | cegcc*)
6070+ if test "$GCC" != yes; then
6071+ reload_cmds=false
6072+ fi
6073+ ;;
6074 darwin*)
6075 if test "$GCC" = yes; then
6076 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6077@@ -5498,7 +5583,8 @@ mingw* | pw32*)
6078 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6079 lt_cv_file_magic_cmd='func_win32_libid'
6080 else
6081- lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6082+ # Keep this pattern in sync with the one in func_win32_libid.
6083+ lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6084 lt_cv_file_magic_cmd='$OBJDUMP -f'
6085 fi
6086 ;;
6087@@ -5657,6 +5743,21 @@ esac
6088 fi
6089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6090 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6091+
6092+file_magic_glob=
6093+want_nocaseglob=no
6094+if test "$build" = "$host"; then
6095+ case $host_os in
6096+ mingw* | pw32*)
6097+ if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6098+ want_nocaseglob=yes
6099+ else
6100+ file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6101+ fi
6102+ ;;
6103+ esac
6104+fi
6105+
6106 file_magic_cmd=$lt_cv_file_magic_cmd
6107 deplibs_check_method=$lt_cv_deplibs_check_method
6108 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6109@@ -5672,6 +5773,157 @@ test -z "$deplibs_check_method" && deplibs_check_method=unknown
6110
6111
6112
6113+
6114+
6115+
6116+
6117+
6118+
6119+
6120+
6121+
6122+
6123+if test -n "$ac_tool_prefix"; then
6124+ # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6125+set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6126+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6127+$as_echo_n "checking for $ac_word... " >&6; }
6128+if ${ac_cv_prog_DLLTOOL+:} false; then :
6129+ $as_echo_n "(cached) " >&6
6130+else
6131+ if test -n "$DLLTOOL"; then
6132+ ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6133+else
6134+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6135+for as_dir in $PATH
6136+do
6137+ IFS=$as_save_IFS
6138+ test -z "$as_dir" && as_dir=.
6139+ for ac_exec_ext in '' $ac_executable_extensions; do
6140+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6141+ ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6142+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6143+ break 2
6144+ fi
6145+done
6146+ done
6147+IFS=$as_save_IFS
6148+
6149+fi
6150+fi
6151+DLLTOOL=$ac_cv_prog_DLLTOOL
6152+if test -n "$DLLTOOL"; then
6153+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6154+$as_echo "$DLLTOOL" >&6; }
6155+else
6156+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6157+$as_echo "no" >&6; }
6158+fi
6159+
6160+
6161+fi
6162+if test -z "$ac_cv_prog_DLLTOOL"; then
6163+ ac_ct_DLLTOOL=$DLLTOOL
6164+ # Extract the first word of "dlltool", so it can be a program name with args.
6165+set dummy dlltool; ac_word=$2
6166+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6167+$as_echo_n "checking for $ac_word... " >&6; }
6168+if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6169+ $as_echo_n "(cached) " >&6
6170+else
6171+ if test -n "$ac_ct_DLLTOOL"; then
6172+ ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6173+else
6174+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6175+for as_dir in $PATH
6176+do
6177+ IFS=$as_save_IFS
6178+ test -z "$as_dir" && as_dir=.
6179+ for ac_exec_ext in '' $ac_executable_extensions; do
6180+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6181+ ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6182+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6183+ break 2
6184+ fi
6185+done
6186+ done
6187+IFS=$as_save_IFS
6188+
6189+fi
6190+fi
6191+ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6192+if test -n "$ac_ct_DLLTOOL"; then
6193+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6194+$as_echo "$ac_ct_DLLTOOL" >&6; }
6195+else
6196+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6197+$as_echo "no" >&6; }
6198+fi
6199+
6200+ if test "x$ac_ct_DLLTOOL" = x; then
6201+ DLLTOOL="false"
6202+ else
6203+ case $cross_compiling:$ac_tool_warned in
6204+yes:)
6205+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6206+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6207+ac_tool_warned=yes ;;
6208+esac
6209+ DLLTOOL=$ac_ct_DLLTOOL
6210+ fi
6211+else
6212+ DLLTOOL="$ac_cv_prog_DLLTOOL"
6213+fi
6214+
6215+test -z "$DLLTOOL" && DLLTOOL=dlltool
6216+
6217+
6218+
6219+
6220+
6221+
6222+
6223+
6224+
6225+
6226+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6227+$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6228+if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6229+ $as_echo_n "(cached) " >&6
6230+else
6231+ lt_cv_sharedlib_from_linklib_cmd='unknown'
6232+
6233+case $host_os in
6234+cygwin* | mingw* | pw32* | cegcc*)
6235+ # two different shell functions defined in ltmain.sh
6236+ # decide which to use based on capabilities of $DLLTOOL
6237+ case `$DLLTOOL --help 2>&1` in
6238+ *--identify-strict*)
6239+ lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6240+ ;;
6241+ *)
6242+ lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6243+ ;;
6244+ esac
6245+ ;;
6246+*)
6247+ # fallback: assume linklib IS sharedlib
6248+ lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6249+ ;;
6250+esac
6251+
6252+fi
6253+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6254+$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6255+sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6256+test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6257+
6258+
6259+
6260+
6261+
6262+
6263+
6264 plugin_option=
6265 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
6266 for plugin in $plugin_names; do
6267@@ -5686,8 +5938,10 @@ for plugin in $plugin_names; do
6268 done
6269
6270 if test -n "$ac_tool_prefix"; then
6271- # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6272-set dummy ${ac_tool_prefix}ar; ac_word=$2
6273+ for ac_prog in ar
6274+ do
6275+ # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6276+set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6278 $as_echo_n "checking for $ac_word... " >&6; }
6279 if ${ac_cv_prog_AR+:} false; then :
6280@@ -5703,7 +5957,7 @@ do
6281 test -z "$as_dir" && as_dir=.
6282 for ac_exec_ext in '' $ac_executable_extensions; do
6283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6284- ac_cv_prog_AR="${ac_tool_prefix}ar"
6285+ ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6287 break 2
6288 fi
6289@@ -5723,11 +5977,15 @@ $as_echo "no" >&6; }
6290 fi
6291
6292
6293+ test -n "$AR" && break
6294+ done
6295 fi
6296-if test -z "$ac_cv_prog_AR"; then
6297+if test -z "$AR"; then
6298 ac_ct_AR=$AR
6299- # Extract the first word of "ar", so it can be a program name with args.
6300-set dummy ar; ac_word=$2
6301+ for ac_prog in ar
6302+do
6303+ # Extract the first word of "$ac_prog", so it can be a program name with args.
6304+set dummy $ac_prog; ac_word=$2
6305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6306 $as_echo_n "checking for $ac_word... " >&6; }
6307 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6308@@ -5743,7 +6001,7 @@ do
6309 test -z "$as_dir" && as_dir=.
6310 for ac_exec_ext in '' $ac_executable_extensions; do
6311 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6312- ac_cv_prog_ac_ct_AR="ar"
6313+ ac_cv_prog_ac_ct_AR="$ac_prog"
6314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6315 break 2
6316 fi
6317@@ -5762,6 +6020,10 @@ else
6318 $as_echo "no" >&6; }
6319 fi
6320
6321+
6322+ test -n "$ac_ct_AR" && break
6323+done
6324+
6325 if test "x$ac_ct_AR" = x; then
6326 AR="false"
6327 else
6328@@ -5773,25 +6035,19 @@ ac_tool_warned=yes ;;
6329 esac
6330 AR=$ac_ct_AR
6331 fi
6332-else
6333- AR="$ac_cv_prog_AR"
6334 fi
6335
6336-test -z "$AR" && AR=ar
6337-if test -n "$plugin_option"; then
6338- if $AR --help 2>&1 | grep -q "\--plugin"; then
6339- touch conftest.c
6340- $AR $plugin_option rc conftest.a conftest.c
6341- if test "$?" != 0; then
6342- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
6343+ touch conftest.c
6344+ $AR $plugin_option rc conftest.a conftest.c
6345+ if test "$?" != 0; then
6346+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
6347 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
6348- else
6349- AR="$AR $plugin_option"
6350- fi
6351- rm -f conftest.*
6352+ else
6353+ AR="$AR $plugin_option"
6354 fi
6355-fi
6356-test -z "$AR_FLAGS" && AR_FLAGS=cru
6357+ rm -f conftest.*
6358+: ${AR=ar}
6359+: ${AR_FLAGS=cru}
6360
6361
6362
6363@@ -5803,6 +6059,64 @@ test -z "$AR_FLAGS" && AR_FLAGS=cru
6364
6365
6366
6367+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6368+$as_echo_n "checking for archiver @FILE support... " >&6; }
6369+if ${lt_cv_ar_at_file+:} false; then :
6370+ $as_echo_n "(cached) " >&6
6371+else
6372+ lt_cv_ar_at_file=no
6373+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6374+/* end confdefs.h. */
6375+
6376+int
6377+main ()
6378+{
6379+
6380+ ;
6381+ return 0;
6382+}
6383+_ACEOF
6384+if ac_fn_c_try_compile "$LINENO"; then :
6385+ echo conftest.$ac_objext > conftest.lst
6386+ lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6387+ { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6388+ (eval $lt_ar_try) 2>&5
6389+ ac_status=$?
6390+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6391+ test $ac_status = 0; }
6392+ if test "$ac_status" -eq 0; then
6393+ # Ensure the archiver fails upon bogus file names.
6394+ rm -f conftest.$ac_objext libconftest.a
6395+ { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6396+ (eval $lt_ar_try) 2>&5
6397+ ac_status=$?
6398+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6399+ test $ac_status = 0; }
6400+ if test "$ac_status" -ne 0; then
6401+ lt_cv_ar_at_file=@
6402+ fi
6403+ fi
6404+ rm -f conftest.* libconftest.a
6405+
6406+fi
6407+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6408+
6409+fi
6410+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6411+$as_echo "$lt_cv_ar_at_file" >&6; }
6412+
6413+if test "x$lt_cv_ar_at_file" = xno; then
6414+ archiver_list_spec=
6415+else
6416+ archiver_list_spec=$lt_cv_ar_at_file
6417+fi
6418+
6419+
6420+
6421+
6422+
6423+
6424+
6425 if test -n "$ac_tool_prefix"; then
6426 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6427 set dummy ${ac_tool_prefix}strip; ac_word=$2
6428@@ -6142,8 +6456,8 @@ esac
6429 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6430
6431 # Transform an extracted symbol line into symbol name and symbol address
6432-lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6433-lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6434+lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6435+lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6436
6437 # Handle CRLF in mingw tool chain
6438 opt_cr=
6439@@ -6179,6 +6493,7 @@ for ac_symprfx in "" "_"; do
6440 else
6441 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6442 fi
6443+ lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6444
6445 # Check to see that the pipe works correctly.
6446 pipe_works=no
6447@@ -6220,6 +6535,18 @@ _LT_EOF
6448 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6449 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6450 cat <<_LT_EOF > conftest.$ac_ext
6451+/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6452+#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6453+/* DATA imports from DLLs on WIN32 con't be const, because runtime
6454+ relocations are performed -- see ld's documentation on pseudo-relocs. */
6455+# define LT_DLSYM_CONST
6456+#elif defined(__osf__)
6457+/* This system does not cope well with relocations in const data. */
6458+# define LT_DLSYM_CONST
6459+#else
6460+# define LT_DLSYM_CONST const
6461+#endif
6462+
6463 #ifdef __cplusplus
6464 extern "C" {
6465 #endif
6466@@ -6231,7 +6558,7 @@ _LT_EOF
6467 cat <<_LT_EOF >> conftest.$ac_ext
6468
6469 /* The mapping between symbol names and symbols. */
6470-const struct {
6471+LT_DLSYM_CONST struct {
6472 const char *name;
6473 void *address;
6474 }
6475@@ -6257,8 +6584,8 @@ static const void *lt_preloaded_setup() {
6476 _LT_EOF
6477 # Now try linking the two files.
6478 mv conftest.$ac_objext conftstm.$ac_objext
6479- lt_save_LIBS="$LIBS"
6480- lt_save_CFLAGS="$CFLAGS"
6481+ lt_globsym_save_LIBS=$LIBS
6482+ lt_globsym_save_CFLAGS=$CFLAGS
6483 LIBS="conftstm.$ac_objext"
6484 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6485 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6486@@ -6268,8 +6595,8 @@ _LT_EOF
6487 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6488 pipe_works=yes
6489 fi
6490- LIBS="$lt_save_LIBS"
6491- CFLAGS="$lt_save_CFLAGS"
6492+ LIBS=$lt_globsym_save_LIBS
6493+ CFLAGS=$lt_globsym_save_CFLAGS
6494 else
6495 echo "cannot find nm_test_func in $nlist" >&5
6496 fi
6497@@ -6306,6 +6633,18 @@ else
6498 $as_echo "ok" >&6; }
6499 fi
6500
6501+# Response file support.
6502+if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6503+ nm_file_list_spec='@'
6504+elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6505+ nm_file_list_spec='@'
6506+fi
6507+
6508+
6509+
6510+
6511+
6512+
6513
6514
6515
6516@@ -6322,6 +6661,43 @@ fi
6517
6518
6519
6520+
6521+
6522+
6523+
6524+
6525+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6526+$as_echo_n "checking for sysroot... " >&6; }
6527+
6528+# Check whether --with-libtool-sysroot was given.
6529+if test "${with_libtool_sysroot+set}" = set; then :
6530+ withval=$with_libtool_sysroot;
6531+else
6532+ with_libtool_sysroot=no
6533+fi
6534+
6535+
6536+lt_sysroot=
6537+case ${with_libtool_sysroot} in #(
6538+ yes)
6539+ if test "$GCC" = yes; then
6540+ lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6541+ fi
6542+ ;; #(
6543+ /*)
6544+ lt_sysroot=`echo "$with_libtool_sysroot" | sed -e "$sed_quote_subst"`
6545+ ;; #(
6546+ no|'')
6547+ ;; #(
6548+ *)
6549+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_libtool_sysroot}" >&5
6550+$as_echo "${with_libtool_sysroot}" >&6; }
6551+ as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6552+ ;;
6553+esac
6554+
6555+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6556+$as_echo "${lt_sysroot:-no}" >&6; }
6557
6558
6559
6560@@ -6533,6 +6909,123 @@ esac
6561
6562 need_locks="$enable_libtool_lock"
6563
6564+if test -n "$ac_tool_prefix"; then
6565+ # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6566+set dummy ${ac_tool_prefix}mt; ac_word=$2
6567+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6568+$as_echo_n "checking for $ac_word... " >&6; }
6569+if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6570+ $as_echo_n "(cached) " >&6
6571+else
6572+ if test -n "$MANIFEST_TOOL"; then
6573+ ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6574+else
6575+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6576+for as_dir in $PATH
6577+do
6578+ IFS=$as_save_IFS
6579+ test -z "$as_dir" && as_dir=.
6580+ for ac_exec_ext in '' $ac_executable_extensions; do
6581+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6582+ ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6583+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6584+ break 2
6585+ fi
6586+done
6587+ done
6588+IFS=$as_save_IFS
6589+
6590+fi
6591+fi
6592+MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6593+if test -n "$MANIFEST_TOOL"; then
6594+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6595+$as_echo "$MANIFEST_TOOL" >&6; }
6596+else
6597+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6598+$as_echo "no" >&6; }
6599+fi
6600+
6601+
6602+fi
6603+if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6604+ ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6605+ # Extract the first word of "mt", so it can be a program name with args.
6606+set dummy mt; ac_word=$2
6607+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6608+$as_echo_n "checking for $ac_word... " >&6; }
6609+if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6610+ $as_echo_n "(cached) " >&6
6611+else
6612+ if test -n "$ac_ct_MANIFEST_TOOL"; then
6613+ ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6614+else
6615+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6616+for as_dir in $PATH
6617+do
6618+ IFS=$as_save_IFS
6619+ test -z "$as_dir" && as_dir=.
6620+ for ac_exec_ext in '' $ac_executable_extensions; do
6621+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6622+ ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6623+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6624+ break 2
6625+ fi
6626+done
6627+ done
6628+IFS=$as_save_IFS
6629+
6630+fi
6631+fi
6632+ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6633+if test -n "$ac_ct_MANIFEST_TOOL"; then
6634+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6635+$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6636+else
6637+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6638+$as_echo "no" >&6; }
6639+fi
6640+
6641+ if test "x$ac_ct_MANIFEST_TOOL" = x; then
6642+ MANIFEST_TOOL=":"
6643+ else
6644+ case $cross_compiling:$ac_tool_warned in
6645+yes:)
6646+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6647+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6648+ac_tool_warned=yes ;;
6649+esac
6650+ MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6651+ fi
6652+else
6653+ MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6654+fi
6655+
6656+test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6657+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6658+$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6659+if ${lt_cv_path_mainfest_tool+:} false; then :
6660+ $as_echo_n "(cached) " >&6
6661+else
6662+ lt_cv_path_mainfest_tool=no
6663+ echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6664+ $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6665+ cat conftest.err >&5
6666+ if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6667+ lt_cv_path_mainfest_tool=yes
6668+ fi
6669+ rm -f conftest*
6670+fi
6671+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6672+$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6673+if test "x$lt_cv_path_mainfest_tool" != xyes; then
6674+ MANIFEST_TOOL=:
6675+fi
6676+
6677+
6678+
6679+
6680+
6681
6682 case $host_os in
6683 rhapsody* | darwin*)
6684@@ -7096,6 +7589,8 @@ _LT_EOF
6685 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6686 echo "$AR cru libconftest.a conftest.o" >&5
6687 $AR cru libconftest.a conftest.o 2>&5
6688+ echo "$RANLIB libconftest.a" >&5
6689+ $RANLIB libconftest.a 2>&5
6690 cat > conftest.c << _LT_EOF
6691 int main() { return 0;}
6692 _LT_EOF
6693@@ -7680,8 +8175,6 @@ fi
6694 lt_prog_compiler_pic=
6695 lt_prog_compiler_static=
6696
6697-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
6698-$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
6699
6700 if test "$GCC" = yes; then
6701 lt_prog_compiler_wl='-Wl,'
6702@@ -7847,6 +8340,12 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
6703 lt_prog_compiler_pic='--shared'
6704 lt_prog_compiler_static='--static'
6705 ;;
6706+ nagfor*)
6707+ # NAG Fortran compiler
6708+ lt_prog_compiler_wl='-Wl,-Wl,,'
6709+ lt_prog_compiler_pic='-PIC'
6710+ lt_prog_compiler_static='-Bstatic'
6711+ ;;
6712 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
6713 # Portland Group compilers (*not* the Pentium gcc compiler,
6714 # which looks to be a dead project)
6715@@ -7909,7 +8408,7 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
6716 lt_prog_compiler_pic='-KPIC'
6717 lt_prog_compiler_static='-Bstatic'
6718 case $cc_basename in
6719- f77* | f90* | f95*)
6720+ f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
6721 lt_prog_compiler_wl='-Qoption ld ';;
6722 *)
6723 lt_prog_compiler_wl='-Wl,';;
6724@@ -7966,13 +8465,17 @@ case $host_os in
6725 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6726 ;;
6727 esac
6728-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
6729-$as_echo "$lt_prog_compiler_pic" >&6; }
6730-
6731-
6732-
6733-
6734
6735+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
6736+$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
6737+if ${lt_cv_prog_compiler_pic+:} false; then :
6738+ $as_echo_n "(cached) " >&6
6739+else
6740+ lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
6741+fi
6742+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
6743+$as_echo "$lt_cv_prog_compiler_pic" >&6; }
6744+lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
6745
6746 #
6747 # Check to make sure the PIC flag actually works.
6748@@ -8033,6 +8536,11 @@ fi
6749
6750
6751
6752+
6753+
6754+
6755+
6756+
6757 #
6758 # Check to make sure the static flag actually works.
6759 #
6760@@ -8383,7 +8891,8 @@ _LT_EOF
6761 allow_undefined_flag=unsupported
6762 always_export_symbols=no
6763 enable_shared_with_static_runtimes=yes
6764- export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
6765+ export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
6766+ exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
6767
6768 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6769 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6770@@ -8482,12 +8991,12 @@ _LT_EOF
6771 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
6772 hardcode_libdir_flag_spec=
6773 hardcode_libdir_flag_spec_ld='-rpath $libdir'
6774- archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
6775+ archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
6776 if test "x$supports_anon_versioning" = xyes; then
6777 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
6778 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6779 echo "local: *; };" >> $output_objdir/$libname.ver~
6780- $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
6781+ $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
6782 fi
6783 ;;
6784 esac
6785@@ -8501,8 +9010,8 @@ _LT_EOF
6786 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6787 wlarc=
6788 else
6789- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6790- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6791+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6792+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6793 fi
6794 ;;
6795
6796@@ -8520,8 +9029,8 @@ _LT_EOF
6797
6798 _LT_EOF
6799 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6800- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6801- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6802+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6803+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6804 else
6805 ld_shlibs=no
6806 fi
6807@@ -8567,8 +9076,8 @@ _LT_EOF
6808
6809 *)
6810 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6811- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6812- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6813+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6814+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6815 else
6816 ld_shlibs=no
6817 fi
6818@@ -8698,7 +9207,13 @@ _LT_EOF
6819 allow_undefined_flag='-berok'
6820 # Determine the default libpath from the value encoded in an
6821 # empty executable.
6822- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6823+ if test "${lt_cv_aix_libpath+set}" = set; then
6824+ aix_libpath=$lt_cv_aix_libpath
6825+else
6826+ if ${lt_cv_aix_libpath_+:} false; then :
6827+ $as_echo_n "(cached) " >&6
6828+else
6829+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6830 /* end confdefs.h. */
6831
6832 int
6833@@ -8711,22 +9226,29 @@ main ()
6834 _ACEOF
6835 if ac_fn_c_try_link "$LINENO"; then :
6836
6837-lt_aix_libpath_sed='
6838- /Import File Strings/,/^$/ {
6839- /^0/ {
6840- s/^0 *\(.*\)$/\1/
6841- p
6842- }
6843- }'
6844-aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
6845-# Check for a 64-bit object if we didn't find anything.
6846-if test -z "$aix_libpath"; then
6847- aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
6848-fi
6849+ lt_aix_libpath_sed='
6850+ /Import File Strings/,/^$/ {
6851+ /^0/ {
6852+ s/^0 *\([^ ]*\) *$/\1/
6853+ p
6854+ }
6855+ }'
6856+ lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
6857+ # Check for a 64-bit object if we didn't find anything.
6858+ if test -z "$lt_cv_aix_libpath_"; then
6859+ lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
6860+ fi
6861 fi
6862 rm -f core conftest.err conftest.$ac_objext \
6863 conftest$ac_exeext conftest.$ac_ext
6864-if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6865+ if test -z "$lt_cv_aix_libpath_"; then
6866+ lt_cv_aix_libpath_="/usr/lib:/lib"
6867+ fi
6868+
6869+fi
6870+
6871+ aix_libpath=$lt_cv_aix_libpath_
6872+fi
6873
6874 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6875 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6876@@ -8738,7 +9260,13 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6877 else
6878 # Determine the default libpath from the value encoded in an
6879 # empty executable.
6880- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6881+ if test "${lt_cv_aix_libpath+set}" = set; then
6882+ aix_libpath=$lt_cv_aix_libpath
6883+else
6884+ if ${lt_cv_aix_libpath_+:} false; then :
6885+ $as_echo_n "(cached) " >&6
6886+else
6887+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6888 /* end confdefs.h. */
6889
6890 int
6891@@ -8751,22 +9279,29 @@ main ()
6892 _ACEOF
6893 if ac_fn_c_try_link "$LINENO"; then :
6894
6895-lt_aix_libpath_sed='
6896- /Import File Strings/,/^$/ {
6897- /^0/ {
6898- s/^0 *\(.*\)$/\1/
6899- p
6900- }
6901- }'
6902-aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
6903-# Check for a 64-bit object if we didn't find anything.
6904-if test -z "$aix_libpath"; then
6905- aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
6906-fi
6907+ lt_aix_libpath_sed='
6908+ /Import File Strings/,/^$/ {
6909+ /^0/ {
6910+ s/^0 *\([^ ]*\) *$/\1/
6911+ p
6912+ }
6913+ }'
6914+ lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
6915+ # Check for a 64-bit object if we didn't find anything.
6916+ if test -z "$lt_cv_aix_libpath_"; then
6917+ lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
6918+ fi
6919 fi
6920 rm -f core conftest.err conftest.$ac_objext \
6921 conftest$ac_exeext conftest.$ac_ext
6922-if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6923+ if test -z "$lt_cv_aix_libpath_"; then
6924+ lt_cv_aix_libpath_="/usr/lib:/lib"
6925+ fi
6926+
6927+fi
6928+
6929+ aix_libpath=$lt_cv_aix_libpath_
6930+fi
6931
6932 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6933 # Warning - without using the other run time loading flags,
6934@@ -8811,20 +9346,63 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6935 # Microsoft Visual C++.
6936 # hardcode_libdir_flag_spec is actually meaningless, as there is
6937 # no search path for DLLs.
6938- hardcode_libdir_flag_spec=' '
6939- allow_undefined_flag=unsupported
6940- # Tell ltmain to make .lib files, not .a files.
6941- libext=lib
6942- # Tell ltmain to make .dll files, not .so files.
6943- shrext_cmds=".dll"
6944- # FIXME: Setting linknames here is a bad hack.
6945- archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
6946- # The linker will automatically build a .lib file if we build a DLL.
6947- old_archive_from_new_cmds='true'
6948- # FIXME: Should let the user specify the lib program.
6949- old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
6950- fix_srcfile_path='`cygpath -w "$srcfile"`'
6951- enable_shared_with_static_runtimes=yes
6952+ case $cc_basename in
6953+ cl*)
6954+ # Native MSVC
6955+ hardcode_libdir_flag_spec=' '
6956+ allow_undefined_flag=unsupported
6957+ always_export_symbols=yes
6958+ file_list_spec='@'
6959+ # Tell ltmain to make .lib files, not .a files.
6960+ libext=lib
6961+ # Tell ltmain to make .dll files, not .so files.
6962+ shrext_cmds=".dll"
6963+ # FIXME: Setting linknames here is a bad hack.
6964+ archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
6965+ archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6966+ sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
6967+ else
6968+ sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
6969+ fi~
6970+ $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
6971+ linknames='
6972+ # The linker will not automatically build a static lib if we build a DLL.
6973+ # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
6974+ enable_shared_with_static_runtimes=yes
6975+ export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
6976+ # Don't use ranlib
6977+ old_postinstall_cmds='chmod 644 $oldlib'
6978+ postlink_cmds='lt_outputfile="@OUTPUT@"~
6979+ lt_tool_outputfile="@TOOL_OUTPUT@"~
6980+ case $lt_outputfile in
6981+ *.exe|*.EXE) ;;
6982+ *)
6983+ lt_outputfile="$lt_outputfile.exe"
6984+ lt_tool_outputfile="$lt_tool_outputfile.exe"
6985+ ;;
6986+ esac~
6987+ if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
6988+ $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
6989+ $RM "$lt_outputfile.manifest";
6990+ fi'
6991+ ;;
6992+ *)
6993+ # Assume MSVC wrapper
6994+ hardcode_libdir_flag_spec=' '
6995+ allow_undefined_flag=unsupported
6996+ # Tell ltmain to make .lib files, not .a files.
6997+ libext=lib
6998+ # Tell ltmain to make .dll files, not .so files.
6999+ shrext_cmds=".dll"
7000+ # FIXME: Setting linknames here is a bad hack.
7001+ archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
7002+ # The linker will automatically build a .lib file if we build a DLL.
7003+ old_archive_from_new_cmds='true'
7004+ # FIXME: Should let the user specify the lib program.
7005+ old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7006+ enable_shared_with_static_runtimes=yes
7007+ ;;
7008+ esac
7009 ;;
7010
7011 darwin* | rhapsody*)
7012@@ -8885,7 +9463,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7013
7014 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7015 freebsd* | dragonfly*)
7016- archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7017+ archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7018 hardcode_libdir_flag_spec='-R$libdir'
7019 hardcode_direct=yes
7020 hardcode_shlibpath_var=no
7021@@ -8893,7 +9471,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7022
7023 hpux9*)
7024 if test "$GCC" = yes; then
7025- archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7026+ archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7027 else
7028 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7029 fi
7030@@ -8909,7 +9487,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7031
7032 hpux10*)
7033 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
7034- archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7035+ archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7036 else
7037 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7038 fi
7039@@ -8933,10 +9511,10 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7040 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7041 ;;
7042 ia64*)
7043- archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7044+ archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7045 ;;
7046 *)
7047- archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7048+ archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7049 ;;
7050 esac
7051 else
7052@@ -9015,23 +9593,36 @@ fi
7053
7054 irix5* | irix6* | nonstopux*)
7055 if test "$GCC" = yes; then
7056- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7057+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7058 # Try to use the -exported_symbol ld option, if it does not
7059 # work, assume that -exports_file does not work either and
7060 # implicitly export all symbols.
7061- save_LDFLAGS="$LDFLAGS"
7062- LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
7063- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7064+ # This should be the same for all languages, so no per-tag cache variable.
7065+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
7066+$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
7067+if ${lt_cv_irix_exported_symbol+:} false; then :
7068+ $as_echo_n "(cached) " >&6
7069+else
7070+ save_LDFLAGS="$LDFLAGS"
7071+ LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
7072+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7073 /* end confdefs.h. */
7074-int foo(void) {}
7075+int foo (void) { return 0; }
7076 _ACEOF
7077 if ac_fn_c_try_link "$LINENO"; then :
7078- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
7079-
7080+ lt_cv_irix_exported_symbol=yes
7081+else
7082+ lt_cv_irix_exported_symbol=no
7083 fi
7084 rm -f core conftest.err conftest.$ac_objext \
7085 conftest$ac_exeext conftest.$ac_ext
7086- LDFLAGS="$save_LDFLAGS"
7087+ LDFLAGS="$save_LDFLAGS"
7088+fi
7089+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
7090+$as_echo "$lt_cv_irix_exported_symbol" >&6; }
7091+ if test "$lt_cv_irix_exported_symbol" = yes; then
7092+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
7093+ fi
7094 else
7095 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
7096 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
7097@@ -9116,7 +9707,7 @@ rm -f core conftest.err conftest.$ac_objext \
7098 osf4* | osf5*) # as osf3* with the addition of -msym flag
7099 if test "$GCC" = yes; then
7100 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7101- archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7102+ archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7103 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7104 else
7105 allow_undefined_flag=' -expect_unresolved \*'
7106@@ -9135,9 +9726,9 @@ rm -f core conftest.err conftest.$ac_objext \
7107 no_undefined_flag=' -z defs'
7108 if test "$GCC" = yes; then
7109 wlarc='${wl}'
7110- archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7111+ archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7112 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7113- $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7114+ $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7115 else
7116 case `$CC -V 2>&1` in
7117 *"Compilers 5.0"*)
7118@@ -9713,8 +10304,9 @@ cygwin* | mingw* | pw32* | cegcc*)
7119 need_version=no
7120 need_lib_prefix=no
7121
7122- case $GCC,$host_os in
7123- yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
7124+ case $GCC,$cc_basename in
7125+ yes,*)
7126+ # gcc
7127 library_names_spec='$libname.dll.a'
7128 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7129 postinstall_cmds='base_file=`basename \${file}`~
7130@@ -9747,13 +10339,71 @@ cygwin* | mingw* | pw32* | cegcc*)
7131 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7132 ;;
7133 esac
7134+ dynamic_linker='Win32 ld.exe'
7135+ ;;
7136+
7137+ *,cl*)
7138+ # Native MSVC
7139+ libname_spec='$name'
7140+ soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7141+ library_names_spec='${libname}.dll.lib'
7142+
7143+ case $build_os in
7144+ mingw*)
7145+ sys_lib_search_path_spec=
7146+ lt_save_ifs=$IFS
7147+ IFS=';'
7148+ for lt_path in $LIB
7149+ do
7150+ IFS=$lt_save_ifs
7151+ # Let DOS variable expansion print the short 8.3 style file name.
7152+ lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
7153+ sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
7154+ done
7155+ IFS=$lt_save_ifs
7156+ # Convert to MSYS style.
7157+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
7158+ ;;
7159+ cygwin*)
7160+ # Convert to unix form, then to dos form, then back to unix form
7161+ # but this time dos style (no spaces!) so that the unix form looks
7162+ # like /cygdrive/c/PROGRA~1:/cygdr...
7163+ sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
7164+ sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
7165+ sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7166+ ;;
7167+ *)
7168+ sys_lib_search_path_spec="$LIB"
7169+ if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
7170+ # It is most probably a Windows format PATH.
7171+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7172+ else
7173+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7174+ fi
7175+ # FIXME: find the short name or the path components, as spaces are
7176+ # common. (e.g. "Program Files" -> "PROGRA~1")
7177+ ;;
7178+ esac
7179+
7180+ # DLL is installed to $(libdir)/../bin by postinstall_cmds
7181+ postinstall_cmds='base_file=`basename \${file}`~
7182+ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
7183+ dldir=$destdir/`dirname \$dlpath`~
7184+ test -d \$dldir || mkdir -p \$dldir~
7185+ $install_prog $dir/$dlname \$dldir/$dlname'
7186+ postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7187+ dlpath=$dir/\$dldll~
7188+ $RM \$dlpath'
7189+ shlibpath_overrides_runpath=yes
7190+ dynamic_linker='Win32 link.exe'
7191 ;;
7192
7193 *)
7194+ # Assume MSVC wrapper
7195 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7196+ dynamic_linker='Win32 ld.exe'
7197 ;;
7198 esac
7199- dynamic_linker='Win32 ld.exe'
7200 # FIXME: first we should search . and the directory the executable is in
7201 shlibpath_var=PATH
7202 ;;
7203@@ -10655,7 +11305,7 @@ else
7204 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7205 lt_status=$lt_dlunknown
7206 cat > conftest.$ac_ext <<_LT_EOF
7207-#line 10658 "configure"
7208+#line $LINENO "configure"
7209 #include "confdefs.h"
7210
7211 #if HAVE_DLFCN_H
7212@@ -10699,10 +11349,10 @@ else
7213 /* When -fvisbility=hidden is used, assume the code has been annotated
7214 correspondingly for the symbols needed. */
7215 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
7216-void fnord () __attribute__((visibility("default")));
7217+int fnord () __attribute__((visibility("default")));
7218 #endif
7219
7220-void fnord () { int i=42; }
7221+int fnord () { return 42; }
7222 int main ()
7223 {
7224 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7225@@ -10761,7 +11411,7 @@ else
7226 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7227 lt_status=$lt_dlunknown
7228 cat > conftest.$ac_ext <<_LT_EOF
7229-#line 10764 "configure"
7230+#line $LINENO "configure"
7231 #include "confdefs.h"
7232
7233 #if HAVE_DLFCN_H
7234@@ -10805,10 +11455,10 @@ else
7235 /* When -fvisbility=hidden is used, assume the code has been annotated
7236 correspondingly for the symbols needed. */
7237 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
7238-void fnord () __attribute__((visibility("default")));
7239+int fnord () __attribute__((visibility("default")));
7240 #endif
7241
7242-void fnord () { int i=42; }
7243+int fnord () { return 42; }
7244 int main ()
7245 {
7246 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7247@@ -14728,13 +15378,20 @@ exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
7248 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
7249 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
7250 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
7251+lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
7252+lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
7253 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
7254 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
7255 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
7256 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
7257 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
7258+file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
7259+want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
7260+DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
7261+sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
7262 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
7263 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
7264+archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
7265 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
7266 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
7267 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
7268@@ -14749,14 +15406,17 @@ lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$de
7269 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
7270 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
7271 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
7272+nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
7273+lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
7274 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
7275 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
7276 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
7277-lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
7278 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
7279+lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
7280 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
7281 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
7282 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
7283+MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
7284 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
7285 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
7286 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
7287@@ -14789,12 +15449,12 @@ hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_q
7288 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
7289 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
7290 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
7291-fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
7292 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
7293 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
7294 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
7295 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
7296 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
7297+postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
7298 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
7299 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
7300 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
7301@@ -14849,8 +15509,13 @@ reload_flag \
7302 OBJDUMP \
7303 deplibs_check_method \
7304 file_magic_cmd \
7305+file_magic_glob \
7306+want_nocaseglob \
7307+DLLTOOL \
7308+sharedlib_from_linklib_cmd \
7309 AR \
7310 AR_FLAGS \
7311+archiver_list_spec \
7312 STRIP \
7313 RANLIB \
7314 CC \
7315@@ -14860,12 +15525,14 @@ lt_cv_sys_global_symbol_pipe \
7316 lt_cv_sys_global_symbol_to_cdecl \
7317 lt_cv_sys_global_symbol_to_c_name_address \
7318 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
7319+nm_file_list_spec \
7320 lt_prog_compiler_no_builtin_flag \
7321-lt_prog_compiler_wl \
7322 lt_prog_compiler_pic \
7323+lt_prog_compiler_wl \
7324 lt_prog_compiler_static \
7325 lt_cv_prog_compiler_c_o \
7326 need_locks \
7327+MANIFEST_TOOL \
7328 DSYMUTIL \
7329 NMEDIT \
7330 LIPO \
7331@@ -14881,7 +15548,6 @@ no_undefined_flag \
7332 hardcode_libdir_flag_spec \
7333 hardcode_libdir_flag_spec_ld \
7334 hardcode_libdir_separator \
7335-fix_srcfile_path \
7336 exclude_expsyms \
7337 include_expsyms \
7338 file_list_spec \
7339@@ -14917,6 +15583,7 @@ module_cmds \
7340 module_expsym_cmds \
7341 export_symbols_cmds \
7342 prelink_cmds \
7343+postlink_cmds \
7344 postinstall_cmds \
7345 postuninstall_cmds \
7346 finish_cmds \
7347@@ -15690,7 +16357,8 @@ $as_echo X"$file" |
7348 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
7349 #
7350 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
7351-# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
7352+# 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
7353+# Inc.
7354 # Written by Gordon Matzigkeit, 1996
7355 #
7356 # This file is part of GNU Libtool.
7357@@ -15793,19 +16461,42 @@ SP2NL=$lt_lt_SP2NL
7358 # turn newlines into spaces.
7359 NL2SP=$lt_lt_NL2SP
7360
7361+# convert \$build file names to \$host format.
7362+to_host_file_cmd=$lt_cv_to_host_file_cmd
7363+
7364+# convert \$build files to toolchain format.
7365+to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7366+
7367 # An object symbol dumper.
7368 OBJDUMP=$lt_OBJDUMP
7369
7370 # Method to check whether dependent libraries are shared objects.
7371 deplibs_check_method=$lt_deplibs_check_method
7372
7373-# Command to use when deplibs_check_method == "file_magic".
7374+# Command to use when deplibs_check_method = "file_magic".
7375 file_magic_cmd=$lt_file_magic_cmd
7376
7377+# How to find potential files when deplibs_check_method = "file_magic".
7378+file_magic_glob=$lt_file_magic_glob
7379+
7380+# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
7381+want_nocaseglob=$lt_want_nocaseglob
7382+
7383+# DLL creation program.
7384+DLLTOOL=$lt_DLLTOOL
7385+
7386+# Command to associate shared and link libraries.
7387+sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
7388+
7389 # The archiver.
7390 AR=$lt_AR
7391+
7392+# Flags to create an archive.
7393 AR_FLAGS=$lt_AR_FLAGS
7394
7395+# How to feed a file listing to the archiver.
7396+archiver_list_spec=$lt_archiver_list_spec
7397+
7398 # A symbol stripping program.
7399 STRIP=$lt_STRIP
7400
7401@@ -15835,6 +16526,12 @@ global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
7402 # Transform the output of nm in a C name address pair when lib prefix is needed.
7403 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
7404
7405+# Specify filename containing input files for \$NM.
7406+nm_file_list_spec=$lt_nm_file_list_spec
7407+
7408+# The root where to search for dependent libraries,and in which our libraries should be installed.
7409+lt_sysroot=$lt_sysroot
7410+
7411 # The name of the directory that contains temporary libtool files.
7412 objdir=$objdir
7413
7414@@ -15844,6 +16541,9 @@ MAGIC_CMD=$MAGIC_CMD
7415 # Must we lock files when doing compilation?
7416 need_locks=$lt_need_locks
7417
7418+# Manifest tool.
7419+MANIFEST_TOOL=$lt_MANIFEST_TOOL
7420+
7421 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
7422 DSYMUTIL=$lt_DSYMUTIL
7423
7424@@ -15958,12 +16658,12 @@ with_gcc=$GCC
7425 # Compiler flag to turn off builtin functions.
7426 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
7427
7428-# How to pass a linker flag through the compiler.
7429-wl=$lt_lt_prog_compiler_wl
7430-
7431 # Additional compiler flags for building library objects.
7432 pic_flag=$lt_lt_prog_compiler_pic
7433
7434+# How to pass a linker flag through the compiler.
7435+wl=$lt_lt_prog_compiler_wl
7436+
7437 # Compiler flag to prevent dynamic linking.
7438 link_static_flag=$lt_lt_prog_compiler_static
7439
7440@@ -16050,9 +16750,6 @@ inherit_rpath=$inherit_rpath
7441 # Whether libtool must link a program against all its dependency libraries.
7442 link_all_deplibs=$link_all_deplibs
7443
7444-# Fix the shell variable \$srcfile for the compiler.
7445-fix_srcfile_path=$lt_fix_srcfile_path
7446-
7447 # Set to "yes" if exported symbols are required.
7448 always_export_symbols=$always_export_symbols
7449
7450@@ -16068,6 +16765,9 @@ include_expsyms=$lt_include_expsyms
7451 # Commands necessary for linking programs (against libraries) with templates.
7452 prelink_cmds=$lt_prelink_cmds
7453
7454+# Commands necessary for finishing linking programs.
7455+postlink_cmds=$lt_postlink_cmds
7456+
7457 # Specify filename containing input files.
7458 file_list_spec=$lt_file_list_spec
7459
7460@@ -16100,210 +16800,169 @@ ltmain="$ac_aux_dir/ltmain.sh"
7461 # if finds mixed CR/LF and LF-only lines. Since sed operates in
7462 # text mode, it properly converts lines to CR/LF. This bash problem
7463 # is reportedly fixed, but why not run on old versions too?
7464- sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
7465- || (rm -f "$cfgfile"; exit 1)
7466-
7467- case $xsi_shell in
7468- yes)
7469- cat << \_LT_EOF >> "$cfgfile"
7470-
7471-# func_dirname file append nondir_replacement
7472-# Compute the dirname of FILE. If nonempty, add APPEND to the result,
7473-# otherwise set result to NONDIR_REPLACEMENT.
7474-func_dirname ()
7475-{
7476- case ${1} in
7477- */*) func_dirname_result="${1%/*}${2}" ;;
7478- * ) func_dirname_result="${3}" ;;
7479- esac
7480-}
7481-
7482-# func_basename file
7483-func_basename ()
7484-{
7485- func_basename_result="${1##*/}"
7486-}
7487-
7488-# func_dirname_and_basename file append nondir_replacement
7489-# perform func_basename and func_dirname in a single function
7490-# call:
7491-# dirname: Compute the dirname of FILE. If nonempty,
7492-# add APPEND to the result, otherwise set result
7493-# to NONDIR_REPLACEMENT.
7494-# value returned in "$func_dirname_result"
7495-# basename: Compute filename of FILE.
7496-# value retuned in "$func_basename_result"
7497-# Implementation must be kept synchronized with func_dirname
7498-# and func_basename. For efficiency, we do not delegate to
7499-# those functions but instead duplicate the functionality here.
7500-func_dirname_and_basename ()
7501-{
7502- case ${1} in
7503- */*) func_dirname_result="${1%/*}${2}" ;;
7504- * ) func_dirname_result="${3}" ;;
7505- esac
7506- func_basename_result="${1##*/}"
7507-}
7508-
7509-# func_stripname prefix suffix name
7510-# strip PREFIX and SUFFIX off of NAME.
7511-# PREFIX and SUFFIX must not contain globbing or regex special
7512-# characters, hashes, percent signs, but SUFFIX may contain a leading
7513-# dot (in which case that matches only a dot).
7514-func_stripname ()
7515-{
7516- # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
7517- # positional parameters, so assign one to ordinary parameter first.
7518- func_stripname_result=${3}
7519- func_stripname_result=${func_stripname_result#"${1}"}
7520- func_stripname_result=${func_stripname_result%"${2}"}
7521-}
7522-
7523-# func_opt_split
7524-func_opt_split ()
7525-{
7526- func_opt_split_opt=${1%%=*}
7527- func_opt_split_arg=${1#*=}
7528-}
7529-
7530-# func_lo2o object
7531-func_lo2o ()
7532-{
7533- case ${1} in
7534- *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
7535- *) func_lo2o_result=${1} ;;
7536- esac
7537-}
7538-
7539-# func_xform libobj-or-source
7540-func_xform ()
7541-{
7542- func_xform_result=${1%.*}.lo
7543-}
7544-
7545-# func_arith arithmetic-term...
7546-func_arith ()
7547-{
7548- func_arith_result=$(( $* ))
7549-}
7550-
7551-# func_len string
7552-# STRING may not start with a hyphen.
7553-func_len ()
7554-{
7555- func_len_result=${#1}
7556-}
7557-
7558-_LT_EOF
7559- ;;
7560- *) # Bourne compatible functions.
7561- cat << \_LT_EOF >> "$cfgfile"
7562-
7563-# func_dirname file append nondir_replacement
7564-# Compute the dirname of FILE. If nonempty, add APPEND to the result,
7565-# otherwise set result to NONDIR_REPLACEMENT.
7566-func_dirname ()
7567-{
7568- # Extract subdirectory from the argument.
7569- func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
7570- if test "X$func_dirname_result" = "X${1}"; then
7571- func_dirname_result="${3}"
7572- else
7573- func_dirname_result="$func_dirname_result${2}"
7574- fi
7575-}
7576-
7577-# func_basename file
7578-func_basename ()
7579-{
7580- func_basename_result=`$ECHO "${1}" | $SED "$basename"`
7581-}
7582-
7583-
7584-# func_stripname prefix suffix name
7585-# strip PREFIX and SUFFIX off of NAME.
7586-# PREFIX and SUFFIX must not contain globbing or regex special
7587-# characters, hashes, percent signs, but SUFFIX may contain a leading
7588-# dot (in which case that matches only a dot).
7589-# func_strip_suffix prefix name
7590-func_stripname ()
7591-{
7592- case ${2} in
7593- .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
7594- *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
7595- esac
7596-}
7597-
7598-# sed scripts:
7599-my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
7600-my_sed_long_arg='1s/^-[^=]*=//'
7601-
7602-# func_opt_split
7603-func_opt_split ()
7604-{
7605- func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
7606- func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
7607-}
7608-
7609-# func_lo2o object
7610-func_lo2o ()
7611-{
7612- func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
7613-}
7614-
7615-# func_xform libobj-or-source
7616-func_xform ()
7617-{
7618- func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
7619-}
7620-
7621-# func_arith arithmetic-term...
7622-func_arith ()
7623-{
7624- func_arith_result=`expr "$@"`
7625-}
7626-
7627-# func_len string
7628-# STRING may not start with a hyphen.
7629-func_len ()
7630-{
7631- func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
7632-}
7633-
7634-_LT_EOF
7635-esac
7636-
7637-case $lt_shell_append in
7638- yes)
7639- cat << \_LT_EOF >> "$cfgfile"
7640-
7641-# func_append var value
7642-# Append VALUE to the end of shell variable VAR.
7643-func_append ()
7644-{
7645- eval "$1+=\$2"
7646-}
7647-_LT_EOF
7648- ;;
7649- *)
7650- cat << \_LT_EOF >> "$cfgfile"
7651-
7652-# func_append var value
7653-# Append VALUE to the end of shell variable VAR.
7654-func_append ()
7655-{
7656- eval "$1=\$$1\$2"
7657-}
7658-
7659-_LT_EOF
7660- ;;
7661- esac
7662-
7663-
7664- sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
7665- || (rm -f "$cfgfile"; exit 1)
7666-
7667- mv -f "$cfgfile" "$ofile" ||
7668+ sed '$q' "$ltmain" >> "$cfgfile" \
7669+ || (rm -f "$cfgfile"; exit 1)
7670+
7671+ if test x"$xsi_shell" = xyes; then
7672+ sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
7673+func_dirname ()\
7674+{\
7675+\ case ${1} in\
7676+\ */*) func_dirname_result="${1%/*}${2}" ;;\
7677+\ * ) func_dirname_result="${3}" ;;\
7678+\ esac\
7679+} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
7680+ && mv -f "$cfgfile.tmp" "$cfgfile" \
7681+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7682+test 0 -eq $? || _lt_function_replace_fail=:
7683+
7684+
7685+ sed -e '/^func_basename ()$/,/^} # func_basename /c\
7686+func_basename ()\
7687+{\
7688+\ func_basename_result="${1##*/}"\
7689+} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
7690+ && mv -f "$cfgfile.tmp" "$cfgfile" \
7691+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7692+test 0 -eq $? || _lt_function_replace_fail=:
7693+
7694+
7695+ sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
7696+func_dirname_and_basename ()\
7697+{\
7698+\ case ${1} in\
7699+\ */*) func_dirname_result="${1%/*}${2}" ;;\
7700+\ * ) func_dirname_result="${3}" ;;\
7701+\ esac\
7702+\ func_basename_result="${1##*/}"\
7703+} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
7704+ && mv -f "$cfgfile.tmp" "$cfgfile" \
7705+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7706+test 0 -eq $? || _lt_function_replace_fail=:
7707+
7708+
7709+ sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
7710+func_stripname ()\
7711+{\
7712+\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
7713+\ # positional parameters, so assign one to ordinary parameter first.\
7714+\ func_stripname_result=${3}\
7715+\ func_stripname_result=${func_stripname_result#"${1}"}\
7716+\ func_stripname_result=${func_stripname_result%"${2}"}\
7717+} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
7718+ && mv -f "$cfgfile.tmp" "$cfgfile" \
7719+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7720+test 0 -eq $? || _lt_function_replace_fail=:
7721+
7722+
7723+ sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
7724+func_split_long_opt ()\
7725+{\
7726+\ func_split_long_opt_name=${1%%=*}\
7727+\ func_split_long_opt_arg=${1#*=}\
7728+} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
7729+ && mv -f "$cfgfile.tmp" "$cfgfile" \
7730+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7731+test 0 -eq $? || _lt_function_replace_fail=:
7732+
7733+
7734+ sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
7735+func_split_short_opt ()\
7736+{\
7737+\ func_split_short_opt_arg=${1#??}\
7738+\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
7739+} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
7740+ && mv -f "$cfgfile.tmp" "$cfgfile" \
7741+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7742+test 0 -eq $? || _lt_function_replace_fail=:
7743+
7744+
7745+ sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
7746+func_lo2o ()\
7747+{\
7748+\ case ${1} in\
7749+\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
7750+\ *) func_lo2o_result=${1} ;;\
7751+\ esac\
7752+} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
7753+ && mv -f "$cfgfile.tmp" "$cfgfile" \
7754+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7755+test 0 -eq $? || _lt_function_replace_fail=:
7756+
7757+
7758+ sed -e '/^func_xform ()$/,/^} # func_xform /c\
7759+func_xform ()\
7760+{\
7761+ func_xform_result=${1%.*}.lo\
7762+} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
7763+ && mv -f "$cfgfile.tmp" "$cfgfile" \
7764+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7765+test 0 -eq $? || _lt_function_replace_fail=:
7766+
7767+
7768+ sed -e '/^func_arith ()$/,/^} # func_arith /c\
7769+func_arith ()\
7770+{\
7771+ func_arith_result=$(( $* ))\
7772+} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
7773+ && mv -f "$cfgfile.tmp" "$cfgfile" \
7774+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7775+test 0 -eq $? || _lt_function_replace_fail=:
7776+
7777+
7778+ sed -e '/^func_len ()$/,/^} # func_len /c\
7779+func_len ()\
7780+{\
7781+ func_len_result=${#1}\
7782+} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
7783+ && mv -f "$cfgfile.tmp" "$cfgfile" \
7784+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7785+test 0 -eq $? || _lt_function_replace_fail=:
7786+
7787+fi
7788+
7789+if test x"$lt_shell_append" = xyes; then
7790+ sed -e '/^func_append ()$/,/^} # func_append /c\
7791+func_append ()\
7792+{\
7793+ eval "${1}+=\\${2}"\
7794+} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
7795+ && mv -f "$cfgfile.tmp" "$cfgfile" \
7796+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7797+test 0 -eq $? || _lt_function_replace_fail=:
7798+
7799+
7800+ sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
7801+func_append_quoted ()\
7802+{\
7803+\ func_quote_for_eval "${2}"\
7804+\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
7805+} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
7806+ && mv -f "$cfgfile.tmp" "$cfgfile" \
7807+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7808+test 0 -eq $? || _lt_function_replace_fail=:
7809+
7810+
7811+ # Save a `func_append' function call where possible by direct use of '+='
7812+ sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
7813+ && mv -f "$cfgfile.tmp" "$cfgfile" \
7814+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7815+ test 0 -eq $? || _lt_function_replace_fail=:
7816+else
7817+ # Save a `func_append' function call even when '+=' is not available
7818+ sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
7819+ && mv -f "$cfgfile.tmp" "$cfgfile" \
7820+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7821+ test 0 -eq $? || _lt_function_replace_fail=:
7822+fi
7823+
7824+if test x"$_lt_function_replace_fail" = x":"; then
7825+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
7826+$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
7827+fi
7828+
7829+
7830+ mv -f "$cfgfile" "$ofile" ||
7831 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
7832 chmod +x "$ofile"
7833
7834diff --git a/gprofng/Makefile.in b/gprofng/Makefile.in
7835index dbc868191b7..1ca6dd01f58 100644
7836--- a/gprofng/Makefile.in
7837+++ b/gprofng/Makefile.in
7838@@ -253,6 +253,7 @@ CXXFLAGS = @CXXFLAGS@
7839 CYGPATH_W = @CYGPATH_W@
7840 DEFS = @DEFS@
7841 DEPDIR = @DEPDIR@
7842+DLLTOOL = @DLLTOOL@
7843 DSYMUTIL = @DSYMUTIL@
7844 DUMPBIN = @DUMPBIN@
7845 ECHO_C = @ECHO_C@
7846@@ -289,6 +290,7 @@ LN_S = @LN_S@
7847 LTLIBOBJS = @LTLIBOBJS@
7848 MAINT = @MAINT@
7849 MAKEINFO = @MAKEINFO@
7850+MANIFEST_TOOL = @MANIFEST_TOOL@
7851 MKDIR_P = @MKDIR_P@
7852 NM = @NM@
7853 NMEDIT = @NMEDIT@
7854diff --git a/gprofng/configure b/gprofng/configure
7855index bdfa2281f2c..b6376eb3f77 100755
7856--- a/gprofng/configure
7857+++ b/gprofng/configure
7858@@ -671,6 +671,8 @@ OTOOL
7859 LIPO
7860 NMEDIT
7861 DSYMUTIL
7862+MANIFEST_TOOL
7863+DLLTOOL
7864 OBJDUMP
7865 LN_S
7866 NM
7867@@ -801,6 +803,7 @@ enable_static
7868 with_pic
7869 enable_fast_install
7870 with_gnu_ld
7871+with_libtool_sysroot
7872 enable_libtool_lock
7873 enable_werror_always
7874 enable_gprofng_tools
7875@@ -1464,6 +1467,8 @@ Optional Packages:
7876 --with-pic try to use only PIC/non-PIC objects [default=use
7877 both]
7878 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
7879+ --with-libtool-sysroot=DIR Search for dependent libraries within DIR
7880+ (or the compiler's sysroot if not specified).
7881 --with-jdk=PATH specify prefix directory for installed JDK.
7882 --with-system-zlib use installed libz
7883
7884@@ -6152,8 +6157,8 @@ esac
7885
7886
7887
7888-macro_version='2.2.7a'
7889-macro_revision='1.3134'
7890+macro_version='2.4'
7891+macro_revision='1.3293'
7892
7893
7894
7895@@ -6193,7 +6198,7 @@ ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7897 $as_echo_n "checking how to print strings... " >&6; }
7898 # Test print first, because it will be a builtin if present.
7899-if test "X`print -r -- -n 2>/dev/null`" = X-n && \
7900+if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7901 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7902 ECHO='print -r --'
7903 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7904@@ -6886,8 +6891,8 @@ $as_echo_n "checking whether the shell understands some XSI constructs... " >&6;
7905 # Try some XSI features
7906 xsi_shell=no
7907 ( _lt_dummy="a/b/c"
7908- test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7909- = c,a/b,, \
7910+ test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
7911+ = c,a/b,b/c, \
7912 && eval 'test $(( 1 + 1 )) -eq 2 \
7913 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7914 && xsi_shell=yes
7915@@ -6936,6 +6941,80 @@ esac
7916
7917
7918
7919+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7920+$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7921+if ${lt_cv_to_host_file_cmd+:} false; then :
7922+ $as_echo_n "(cached) " >&6
7923+else
7924+ case $host in
7925+ *-*-mingw* )
7926+ case $build in
7927+ *-*-mingw* ) # actually msys
7928+ lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7929+ ;;
7930+ *-*-cygwin* )
7931+ lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7932+ ;;
7933+ * ) # otherwise, assume *nix
7934+ lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7935+ ;;
7936+ esac
7937+ ;;
7938+ *-*-cygwin* )
7939+ case $build in
7940+ *-*-mingw* ) # actually msys
7941+ lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7942+ ;;
7943+ *-*-cygwin* )
7944+ lt_cv_to_host_file_cmd=func_convert_file_noop
7945+ ;;
7946+ * ) # otherwise, assume *nix
7947+ lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7948+ ;;
7949+ esac
7950+ ;;
7951+ * ) # unhandled hosts (and "normal" native builds)
7952+ lt_cv_to_host_file_cmd=func_convert_file_noop
7953+ ;;
7954+esac
7955+
7956+fi
7957+
7958+to_host_file_cmd=$lt_cv_to_host_file_cmd
7959+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7960+$as_echo "$lt_cv_to_host_file_cmd" >&6; }
7961+
7962+
7963+
7964+
7965+
7966+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7967+$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7968+if ${lt_cv_to_tool_file_cmd+:} false; then :
7969+ $as_echo_n "(cached) " >&6
7970+else
7971+ #assume ordinary cross tools, or native build.
7972+lt_cv_to_tool_file_cmd=func_convert_file_noop
7973+case $host in
7974+ *-*-mingw* )
7975+ case $build in
7976+ *-*-mingw* ) # actually msys
7977+ lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7978+ ;;
7979+ esac
7980+ ;;
7981+esac
7982+
7983+fi
7984+
7985+to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7986+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7987+$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7988+
7989+
7990+
7991+
7992+
7993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7994 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7995 if ${lt_cv_ld_reload_flag+:} false; then :
7996@@ -6952,6 +7031,11 @@ case $reload_flag in
7997 esac
7998 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7999 case $host_os in
8000+ cygwin* | mingw* | pw32* | cegcc*)
8001+ if test "$GCC" != yes; then
8002+ reload_cmds=false
8003+ fi
8004+ ;;
8005 darwin*)
8006 if test "$GCC" = yes; then
8007 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
8008@@ -7120,7 +7204,8 @@ mingw* | pw32*)
8009 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8010 lt_cv_file_magic_cmd='func_win32_libid'
8011 else
8012- lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
8013+ # Keep this pattern in sync with the one in func_win32_libid.
8014+ lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8015 lt_cv_file_magic_cmd='$OBJDUMP -f'
8016 fi
8017 ;;
8018@@ -7279,6 +7364,21 @@ esac
8019 fi
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8021 $as_echo "$lt_cv_deplibs_check_method" >&6; }
8022+
8023+file_magic_glob=
8024+want_nocaseglob=no
8025+if test "$build" = "$host"; then
8026+ case $host_os in
8027+ mingw* | pw32*)
8028+ if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8029+ want_nocaseglob=yes
8030+ else
8031+ file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8032+ fi
8033+ ;;
8034+ esac
8035+fi
8036+
8037 file_magic_cmd=$lt_cv_file_magic_cmd
8038 deplibs_check_method=$lt_cv_deplibs_check_method
8039 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8040@@ -7294,6 +7394,157 @@ test -z "$deplibs_check_method" && deplibs_check_method=unknown
8041
8042
8043
8044+
8045+
8046+
8047+
8048+
8049+
8050+
8051+
8052+
8053+
8054+if test -n "$ac_tool_prefix"; then
8055+ # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8056+set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8057+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8058+$as_echo_n "checking for $ac_word... " >&6; }
8059+if ${ac_cv_prog_DLLTOOL+:} false; then :
8060+ $as_echo_n "(cached) " >&6
8061+else
8062+ if test -n "$DLLTOOL"; then
8063+ ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8064+else
8065+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8066+for as_dir in $PATH
8067+do
8068+ IFS=$as_save_IFS
8069+ test -z "$as_dir" && as_dir=.
8070+ for ac_exec_ext in '' $ac_executable_extensions; do
8071+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8072+ ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8073+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8074+ break 2
8075+ fi
8076+done
8077+ done
8078+IFS=$as_save_IFS
8079+
8080+fi
8081+fi
8082+DLLTOOL=$ac_cv_prog_DLLTOOL
8083+if test -n "$DLLTOOL"; then
8084+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8085+$as_echo "$DLLTOOL" >&6; }
8086+else
8087+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8088+$as_echo "no" >&6; }
8089+fi
8090+
8091+
8092+fi
8093+if test -z "$ac_cv_prog_DLLTOOL"; then
8094+ ac_ct_DLLTOOL=$DLLTOOL
8095+ # Extract the first word of "dlltool", so it can be a program name with args.
8096+set dummy dlltool; ac_word=$2
8097+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8098+$as_echo_n "checking for $ac_word... " >&6; }
8099+if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8100+ $as_echo_n "(cached) " >&6
8101+else
8102+ if test -n "$ac_ct_DLLTOOL"; then
8103+ ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8104+else
8105+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8106+for as_dir in $PATH
8107+do
8108+ IFS=$as_save_IFS
8109+ test -z "$as_dir" && as_dir=.
8110+ for ac_exec_ext in '' $ac_executable_extensions; do
8111+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8112+ ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8113+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8114+ break 2
8115+ fi
8116+done
8117+ done
8118+IFS=$as_save_IFS
8119+
8120+fi
8121+fi
8122+ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8123+if test -n "$ac_ct_DLLTOOL"; then
8124+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8125+$as_echo "$ac_ct_DLLTOOL" >&6; }
8126+else
8127+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8128+$as_echo "no" >&6; }
8129+fi
8130+
8131+ if test "x$ac_ct_DLLTOOL" = x; then
8132+ DLLTOOL="false"
8133+ else
8134+ case $cross_compiling:$ac_tool_warned in
8135+yes:)
8136+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8137+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8138+ac_tool_warned=yes ;;
8139+esac
8140+ DLLTOOL=$ac_ct_DLLTOOL
8141+ fi
8142+else
8143+ DLLTOOL="$ac_cv_prog_DLLTOOL"
8144+fi
8145+
8146+test -z "$DLLTOOL" && DLLTOOL=dlltool
8147+
8148+
8149+
8150+
8151+
8152+
8153+
8154+
8155+
8156+
8157+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8158+$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
8159+if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
8160+ $as_echo_n "(cached) " >&6
8161+else
8162+ lt_cv_sharedlib_from_linklib_cmd='unknown'
8163+
8164+case $host_os in
8165+cygwin* | mingw* | pw32* | cegcc*)
8166+ # two different shell functions defined in ltmain.sh
8167+ # decide which to use based on capabilities of $DLLTOOL
8168+ case `$DLLTOOL --help 2>&1` in
8169+ *--identify-strict*)
8170+ lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8171+ ;;
8172+ *)
8173+ lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8174+ ;;
8175+ esac
8176+ ;;
8177+*)
8178+ # fallback: assume linklib IS sharedlib
8179+ lt_cv_sharedlib_from_linklib_cmd="$ECHO"
8180+ ;;
8181+esac
8182+
8183+fi
8184+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8185+$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8186+sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8187+test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8188+
8189+
8190+
8191+
8192+
8193+
8194+
8195 plugin_option=
8196 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
8197 for plugin in $plugin_names; do
8198@@ -7308,8 +7559,10 @@ for plugin in $plugin_names; do
8199 done
8200
8201 if test -n "$ac_tool_prefix"; then
8202- # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8203-set dummy ${ac_tool_prefix}ar; ac_word=$2
8204+ for ac_prog in ar
8205+ do
8206+ # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8207+set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8209 $as_echo_n "checking for $ac_word... " >&6; }
8210 if ${ac_cv_prog_AR+:} false; then :
8211@@ -7325,7 +7578,7 @@ do
8212 test -z "$as_dir" && as_dir=.
8213 for ac_exec_ext in '' $ac_executable_extensions; do
8214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8215- ac_cv_prog_AR="${ac_tool_prefix}ar"
8216+ ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8218 break 2
8219 fi
8220@@ -7345,11 +7598,15 @@ $as_echo "no" >&6; }
8221 fi
8222
8223
8224+ test -n "$AR" && break
8225+ done
8226 fi
8227-if test -z "$ac_cv_prog_AR"; then
8228+if test -z "$AR"; then
8229 ac_ct_AR=$AR
8230- # Extract the first word of "ar", so it can be a program name with args.
8231-set dummy ar; ac_word=$2
8232+ for ac_prog in ar
8233+do
8234+ # Extract the first word of "$ac_prog", so it can be a program name with args.
8235+set dummy $ac_prog; ac_word=$2
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8237 $as_echo_n "checking for $ac_word... " >&6; }
8238 if ${ac_cv_prog_ac_ct_AR+:} false; then :
8239@@ -7365,7 +7622,7 @@ do
8240 test -z "$as_dir" && as_dir=.
8241 for ac_exec_ext in '' $ac_executable_extensions; do
8242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8243- ac_cv_prog_ac_ct_AR="ar"
8244+ ac_cv_prog_ac_ct_AR="$ac_prog"
8245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8246 break 2
8247 fi
8248@@ -7384,6 +7641,10 @@ else
8249 $as_echo "no" >&6; }
8250 fi
8251
8252+
8253+ test -n "$ac_ct_AR" && break
8254+done
8255+
8256 if test "x$ac_ct_AR" = x; then
8257 AR="false"
8258 else
8259@@ -7395,25 +7656,19 @@ ac_tool_warned=yes ;;
8260 esac
8261 AR=$ac_ct_AR
8262 fi
8263-else
8264- AR="$ac_cv_prog_AR"
8265 fi
8266
8267-test -z "$AR" && AR=ar
8268-if test -n "$plugin_option"; then
8269- if $AR --help 2>&1 | grep -q "\--plugin"; then
8270- touch conftest.c
8271- $AR $plugin_option rc conftest.a conftest.c
8272- if test "$?" != 0; then
8273- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
8274+ touch conftest.c
8275+ $AR $plugin_option rc conftest.a conftest.c
8276+ if test "$?" != 0; then
8277+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
8278 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
8279- else
8280- AR="$AR $plugin_option"
8281- fi
8282- rm -f conftest.*
8283+ else
8284+ AR="$AR $plugin_option"
8285 fi
8286-fi
8287-test -z "$AR_FLAGS" && AR_FLAGS=cru
8288+ rm -f conftest.*
8289+: ${AR=ar}
8290+: ${AR_FLAGS=cru}
8291
8292
8293
8294@@ -7425,6 +7680,64 @@ test -z "$AR_FLAGS" && AR_FLAGS=cru
8295
8296
8297
8298+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8299+$as_echo_n "checking for archiver @FILE support... " >&6; }
8300+if ${lt_cv_ar_at_file+:} false; then :
8301+ $as_echo_n "(cached) " >&6
8302+else
8303+ lt_cv_ar_at_file=no
8304+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8305+/* end confdefs.h. */
8306+
8307+int
8308+main ()
8309+{
8310+
8311+ ;
8312+ return 0;
8313+}
8314+_ACEOF
8315+if ac_fn_c_try_compile "$LINENO"; then :
8316+ echo conftest.$ac_objext > conftest.lst
8317+ lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8318+ { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8319+ (eval $lt_ar_try) 2>&5
8320+ ac_status=$?
8321+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8322+ test $ac_status = 0; }
8323+ if test "$ac_status" -eq 0; then
8324+ # Ensure the archiver fails upon bogus file names.
8325+ rm -f conftest.$ac_objext libconftest.a
8326+ { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8327+ (eval $lt_ar_try) 2>&5
8328+ ac_status=$?
8329+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8330+ test $ac_status = 0; }
8331+ if test "$ac_status" -ne 0; then
8332+ lt_cv_ar_at_file=@
8333+ fi
8334+ fi
8335+ rm -f conftest.* libconftest.a
8336+
8337+fi
8338+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8339+
8340+fi
8341+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8342+$as_echo "$lt_cv_ar_at_file" >&6; }
8343+
8344+if test "x$lt_cv_ar_at_file" = xno; then
8345+ archiver_list_spec=
8346+else
8347+ archiver_list_spec=$lt_cv_ar_at_file
8348+fi
8349+
8350+
8351+
8352+
8353+
8354+
8355+
8356 if test -n "$ac_tool_prefix"; then
8357 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8358 set dummy ${ac_tool_prefix}strip; ac_word=$2
8359@@ -7764,8 +8077,8 @@ esac
8360 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8361
8362 # Transform an extracted symbol line into symbol name and symbol address
8363-lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
8364-lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
8365+lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
8366+lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
8367
8368 # Handle CRLF in mingw tool chain
8369 opt_cr=
8370@@ -7801,6 +8114,7 @@ for ac_symprfx in "" "_"; do
8371 else
8372 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8373 fi
8374+ lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8375
8376 # Check to see that the pipe works correctly.
8377 pipe_works=no
8378@@ -7842,6 +8156,18 @@ _LT_EOF
8379 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8380 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8381 cat <<_LT_EOF > conftest.$ac_ext
8382+/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
8383+#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
8384+/* DATA imports from DLLs on WIN32 con't be const, because runtime
8385+ relocations are performed -- see ld's documentation on pseudo-relocs. */
8386+# define LT_DLSYM_CONST
8387+#elif defined(__osf__)
8388+/* This system does not cope well with relocations in const data. */
8389+# define LT_DLSYM_CONST
8390+#else
8391+# define LT_DLSYM_CONST const
8392+#endif
8393+
8394 #ifdef __cplusplus
8395 extern "C" {
8396 #endif
8397@@ -7853,7 +8179,7 @@ _LT_EOF
8398 cat <<_LT_EOF >> conftest.$ac_ext
8399
8400 /* The mapping between symbol names and symbols. */
8401-const struct {
8402+LT_DLSYM_CONST struct {
8403 const char *name;
8404 void *address;
8405 }
8406@@ -7879,8 +8205,8 @@ static const void *lt_preloaded_setup() {
8407 _LT_EOF
8408 # Now try linking the two files.
8409 mv conftest.$ac_objext conftstm.$ac_objext
8410- lt_save_LIBS="$LIBS"
8411- lt_save_CFLAGS="$CFLAGS"
8412+ lt_globsym_save_LIBS=$LIBS
8413+ lt_globsym_save_CFLAGS=$CFLAGS
8414 LIBS="conftstm.$ac_objext"
8415 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8416 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8417@@ -7890,8 +8216,8 @@ _LT_EOF
8418 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8419 pipe_works=yes
8420 fi
8421- LIBS="$lt_save_LIBS"
8422- CFLAGS="$lt_save_CFLAGS"
8423+ LIBS=$lt_globsym_save_LIBS
8424+ CFLAGS=$lt_globsym_save_CFLAGS
8425 else
8426 echo "cannot find nm_test_func in $nlist" >&5
8427 fi
8428@@ -7928,6 +8254,14 @@ else
8429 $as_echo "ok" >&6; }
8430 fi
8431
8432+# Response file support.
8433+if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8434+ nm_file_list_spec='@'
8435+elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8436+ nm_file_list_spec='@'
8437+fi
8438+
8439+
8440
8441
8442
8443@@ -7946,6 +8280,47 @@ fi
8444
8445
8446
8447+
8448+
8449+
8450+
8451+
8452+
8453+
8454+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8455+$as_echo_n "checking for sysroot... " >&6; }
8456+
8457+# Check whether --with-libtool-sysroot was given.
8458+if test "${with_libtool_sysroot+set}" = set; then :
8459+ withval=$with_libtool_sysroot;
8460+else
8461+ with_libtool_sysroot=no
8462+fi
8463+
8464+
8465+lt_sysroot=
8466+case ${with_libtool_sysroot} in #(
8467+ yes)
8468+ if test "$GCC" = yes; then
8469+ lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8470+ fi
8471+ ;; #(
8472+ /*)
8473+ lt_sysroot=`echo "$with_libtool_sysroot" | sed -e "$sed_quote_subst"`
8474+ ;; #(
8475+ no|'')
8476+ ;; #(
8477+ *)
8478+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_libtool_sysroot}" >&5
8479+$as_echo "${with_libtool_sysroot}" >&6; }
8480+ as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8481+ ;;
8482+esac
8483+
8484+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8485+$as_echo "${lt_sysroot:-no}" >&6; }
8486+
8487+
8488
8489
8490
8491@@ -8155,6 +8530,123 @@ esac
8492
8493 need_locks="$enable_libtool_lock"
8494
8495+if test -n "$ac_tool_prefix"; then
8496+ # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8497+set dummy ${ac_tool_prefix}mt; ac_word=$2
8498+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8499+$as_echo_n "checking for $ac_word... " >&6; }
8500+if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8501+ $as_echo_n "(cached) " >&6
8502+else
8503+ if test -n "$MANIFEST_TOOL"; then
8504+ ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8505+else
8506+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8507+for as_dir in $PATH
8508+do
8509+ IFS=$as_save_IFS
8510+ test -z "$as_dir" && as_dir=.
8511+ for ac_exec_ext in '' $ac_executable_extensions; do
8512+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8513+ ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8514+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8515+ break 2
8516+ fi
8517+done
8518+ done
8519+IFS=$as_save_IFS
8520+
8521+fi
8522+fi
8523+MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8524+if test -n "$MANIFEST_TOOL"; then
8525+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8526+$as_echo "$MANIFEST_TOOL" >&6; }
8527+else
8528+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8529+$as_echo "no" >&6; }
8530+fi
8531+
8532+
8533+fi
8534+if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8535+ ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8536+ # Extract the first word of "mt", so it can be a program name with args.
8537+set dummy mt; ac_word=$2
8538+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8539+$as_echo_n "checking for $ac_word... " >&6; }
8540+if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8541+ $as_echo_n "(cached) " >&6
8542+else
8543+ if test -n "$ac_ct_MANIFEST_TOOL"; then
8544+ ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8545+else
8546+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8547+for as_dir in $PATH
8548+do
8549+ IFS=$as_save_IFS
8550+ test -z "$as_dir" && as_dir=.
8551+ for ac_exec_ext in '' $ac_executable_extensions; do
8552+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8553+ ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8554+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8555+ break 2
8556+ fi
8557+done
8558+ done
8559+IFS=$as_save_IFS
8560+
8561+fi
8562+fi
8563+ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8564+if test -n "$ac_ct_MANIFEST_TOOL"; then
8565+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8566+$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8567+else
8568+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8569+$as_echo "no" >&6; }
8570+fi
8571+
8572+ if test "x$ac_ct_MANIFEST_TOOL" = x; then
8573+ MANIFEST_TOOL=":"
8574+ else
8575+ case $cross_compiling:$ac_tool_warned in
8576+yes:)
8577+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8578+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8579+ac_tool_warned=yes ;;
8580+esac
8581+ MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8582+ fi
8583+else
8584+ MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8585+fi
8586+
8587+test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8588+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8589+$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8590+if ${lt_cv_path_mainfest_tool+:} false; then :
8591+ $as_echo_n "(cached) " >&6
8592+else
8593+ lt_cv_path_mainfest_tool=no
8594+ echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8595+ $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8596+ cat conftest.err >&5
8597+ if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8598+ lt_cv_path_mainfest_tool=yes
8599+ fi
8600+ rm -f conftest*
8601+fi
8602+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8603+$as_echo "$lt_cv_path_mainfest_tool" >&6; }
8604+if test "x$lt_cv_path_mainfest_tool" != xyes; then
8605+ MANIFEST_TOOL=:
8606+fi
8607+
8608+
8609+
8610+
8611+
8612
8613 case $host_os in
8614 rhapsody* | darwin*)
8615@@ -8718,6 +9210,8 @@ _LT_EOF
8616 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8617 echo "$AR cru libconftest.a conftest.o" >&5
8618 $AR cru libconftest.a conftest.o 2>&5
8619+ echo "$RANLIB libconftest.a" >&5
8620+ $RANLIB libconftest.a 2>&5
8621 cat > conftest.c << _LT_EOF
8622 int main() { return 0;}
8623 _LT_EOF
8624@@ -8788,6 +9282,16 @@ done
8625
8626
8627
8628+func_stripname_cnf ()
8629+{
8630+ case ${2} in
8631+ .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8632+ *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8633+ esac
8634+} # func_stripname_cnf
8635+
8636+
8637+
8638
8639
8640 # Set options
8641@@ -9273,8 +9777,6 @@ fi
8642 lt_prog_compiler_pic=
8643 lt_prog_compiler_static=
8644
8645-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8646-$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8647
8648 if test "$GCC" = yes; then
8649 lt_prog_compiler_wl='-Wl,'
8650@@ -9440,6 +9942,12 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8651 lt_prog_compiler_pic='--shared'
8652 lt_prog_compiler_static='--static'
8653 ;;
8654+ nagfor*)
8655+ # NAG Fortran compiler
8656+ lt_prog_compiler_wl='-Wl,-Wl,,'
8657+ lt_prog_compiler_pic='-PIC'
8658+ lt_prog_compiler_static='-Bstatic'
8659+ ;;
8660 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8661 # Portland Group compilers (*not* the Pentium gcc compiler,
8662 # which looks to be a dead project)
8663@@ -9502,7 +10010,7 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8664 lt_prog_compiler_pic='-KPIC'
8665 lt_prog_compiler_static='-Bstatic'
8666 case $cc_basename in
8667- f77* | f90* | f95*)
8668+ f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8669 lt_prog_compiler_wl='-Qoption ld ';;
8670 *)
8671 lt_prog_compiler_wl='-Wl,';;
8672@@ -9559,13 +10067,17 @@ case $host_os in
8673 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8674 ;;
8675 esac
8676-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8677-$as_echo "$lt_prog_compiler_pic" >&6; }
8678-
8679-
8680-
8681-
8682
8683+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8684+$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8685+if ${lt_cv_prog_compiler_pic+:} false; then :
8686+ $as_echo_n "(cached) " >&6
8687+else
8688+ lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8689+fi
8690+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8691+$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8692+lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8693
8694 #
8695 # Check to make sure the PIC flag actually works.
8696@@ -9626,6 +10138,11 @@ fi
8697
8698
8699
8700+
8701+
8702+
8703+
8704+
8705 #
8706 # Check to make sure the static flag actually works.
8707 #
8708@@ -9976,7 +10493,8 @@ _LT_EOF
8709 allow_undefined_flag=unsupported
8710 always_export_symbols=no
8711 enable_shared_with_static_runtimes=yes
8712- export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8713+ export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
8714+ exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8715
8716 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8717 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8718@@ -10075,12 +10593,12 @@ _LT_EOF
8719 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8720 hardcode_libdir_flag_spec=
8721 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8722- archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8723+ archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8724 if test "x$supports_anon_versioning" = xyes; then
8725 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8726 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8727 echo "local: *; };" >> $output_objdir/$libname.ver~
8728- $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8729+ $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8730 fi
8731 ;;
8732 esac
8733@@ -10094,8 +10612,8 @@ _LT_EOF
8734 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8735 wlarc=
8736 else
8737- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8738- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8739+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8740+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8741 fi
8742 ;;
8743
8744@@ -10113,8 +10631,8 @@ _LT_EOF
8745
8746 _LT_EOF
8747 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8748- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8749- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8750+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8751+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8752 else
8753 ld_shlibs=no
8754 fi
8755@@ -10160,8 +10678,8 @@ _LT_EOF
8756
8757 *)
8758 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8759- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8760- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8761+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8762+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8763 else
8764 ld_shlibs=no
8765 fi
8766@@ -10291,7 +10809,13 @@ _LT_EOF
8767 allow_undefined_flag='-berok'
8768 # Determine the default libpath from the value encoded in an
8769 # empty executable.
8770- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8771+ if test "${lt_cv_aix_libpath+set}" = set; then
8772+ aix_libpath=$lt_cv_aix_libpath
8773+else
8774+ if ${lt_cv_aix_libpath_+:} false; then :
8775+ $as_echo_n "(cached) " >&6
8776+else
8777+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8778 /* end confdefs.h. */
8779
8780 int
8781@@ -10304,22 +10828,29 @@ main ()
8782 _ACEOF
8783 if ac_fn_c_try_link "$LINENO"; then :
8784
8785-lt_aix_libpath_sed='
8786- /Import File Strings/,/^$/ {
8787- /^0/ {
8788- s/^0 *\(.*\)$/\1/
8789- p
8790- }
8791- }'
8792-aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8793-# Check for a 64-bit object if we didn't find anything.
8794-if test -z "$aix_libpath"; then
8795- aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8796-fi
8797+ lt_aix_libpath_sed='
8798+ /Import File Strings/,/^$/ {
8799+ /^0/ {
8800+ s/^0 *\([^ ]*\) *$/\1/
8801+ p
8802+ }
8803+ }'
8804+ lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8805+ # Check for a 64-bit object if we didn't find anything.
8806+ if test -z "$lt_cv_aix_libpath_"; then
8807+ lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8808+ fi
8809 fi
8810 rm -f core conftest.err conftest.$ac_objext \
8811 conftest$ac_exeext conftest.$ac_ext
8812-if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8813+ if test -z "$lt_cv_aix_libpath_"; then
8814+ lt_cv_aix_libpath_="/usr/lib:/lib"
8815+ fi
8816+
8817+fi
8818+
8819+ aix_libpath=$lt_cv_aix_libpath_
8820+fi
8821
8822 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8823 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8824@@ -10331,7 +10862,13 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8825 else
8826 # Determine the default libpath from the value encoded in an
8827 # empty executable.
8828- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8829+ if test "${lt_cv_aix_libpath+set}" = set; then
8830+ aix_libpath=$lt_cv_aix_libpath
8831+else
8832+ if ${lt_cv_aix_libpath_+:} false; then :
8833+ $as_echo_n "(cached) " >&6
8834+else
8835+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8836 /* end confdefs.h. */
8837
8838 int
8839@@ -10344,22 +10881,29 @@ main ()
8840 _ACEOF
8841 if ac_fn_c_try_link "$LINENO"; then :
8842
8843-lt_aix_libpath_sed='
8844- /Import File Strings/,/^$/ {
8845- /^0/ {
8846- s/^0 *\(.*\)$/\1/
8847- p
8848- }
8849- }'
8850-aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8851-# Check for a 64-bit object if we didn't find anything.
8852-if test -z "$aix_libpath"; then
8853- aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8854-fi
8855+ lt_aix_libpath_sed='
8856+ /Import File Strings/,/^$/ {
8857+ /^0/ {
8858+ s/^0 *\([^ ]*\) *$/\1/
8859+ p
8860+ }
8861+ }'
8862+ lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8863+ # Check for a 64-bit object if we didn't find anything.
8864+ if test -z "$lt_cv_aix_libpath_"; then
8865+ lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8866+ fi
8867 fi
8868 rm -f core conftest.err conftest.$ac_objext \
8869 conftest$ac_exeext conftest.$ac_ext
8870-if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8871+ if test -z "$lt_cv_aix_libpath_"; then
8872+ lt_cv_aix_libpath_="/usr/lib:/lib"
8873+ fi
8874+
8875+fi
8876+
8877+ aix_libpath=$lt_cv_aix_libpath_
8878+fi
8879
8880 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8881 # Warning - without using the other run time loading flags,
8882@@ -10404,20 +10948,63 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8883 # Microsoft Visual C++.
8884 # hardcode_libdir_flag_spec is actually meaningless, as there is
8885 # no search path for DLLs.
8886- hardcode_libdir_flag_spec=' '
8887- allow_undefined_flag=unsupported
8888- # Tell ltmain to make .lib files, not .a files.
8889- libext=lib
8890- # Tell ltmain to make .dll files, not .so files.
8891- shrext_cmds=".dll"
8892- # FIXME: Setting linknames here is a bad hack.
8893- archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8894- # The linker will automatically build a .lib file if we build a DLL.
8895- old_archive_from_new_cmds='true'
8896- # FIXME: Should let the user specify the lib program.
8897- old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8898- fix_srcfile_path='`cygpath -w "$srcfile"`'
8899- enable_shared_with_static_runtimes=yes
8900+ case $cc_basename in
8901+ cl*)
8902+ # Native MSVC
8903+ hardcode_libdir_flag_spec=' '
8904+ allow_undefined_flag=unsupported
8905+ always_export_symbols=yes
8906+ file_list_spec='@'
8907+ # Tell ltmain to make .lib files, not .a files.
8908+ libext=lib
8909+ # Tell ltmain to make .dll files, not .so files.
8910+ shrext_cmds=".dll"
8911+ # FIXME: Setting linknames here is a bad hack.
8912+ archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
8913+ archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8914+ sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
8915+ else
8916+ sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
8917+ fi~
8918+ $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
8919+ linknames='
8920+ # The linker will not automatically build a static lib if we build a DLL.
8921+ # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
8922+ enable_shared_with_static_runtimes=yes
8923+ export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8924+ # Don't use ranlib
8925+ old_postinstall_cmds='chmod 644 $oldlib'
8926+ postlink_cmds='lt_outputfile="@OUTPUT@"~
8927+ lt_tool_outputfile="@TOOL_OUTPUT@"~
8928+ case $lt_outputfile in
8929+ *.exe|*.EXE) ;;
8930+ *)
8931+ lt_outputfile="$lt_outputfile.exe"
8932+ lt_tool_outputfile="$lt_tool_outputfile.exe"
8933+ ;;
8934+ esac~
8935+ if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
8936+ $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
8937+ $RM "$lt_outputfile.manifest";
8938+ fi'
8939+ ;;
8940+ *)
8941+ # Assume MSVC wrapper
8942+ hardcode_libdir_flag_spec=' '
8943+ allow_undefined_flag=unsupported
8944+ # Tell ltmain to make .lib files, not .a files.
8945+ libext=lib
8946+ # Tell ltmain to make .dll files, not .so files.
8947+ shrext_cmds=".dll"
8948+ # FIXME: Setting linknames here is a bad hack.
8949+ archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8950+ # The linker will automatically build a .lib file if we build a DLL.
8951+ old_archive_from_new_cmds='true'
8952+ # FIXME: Should let the user specify the lib program.
8953+ old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8954+ enable_shared_with_static_runtimes=yes
8955+ ;;
8956+ esac
8957 ;;
8958
8959 darwin* | rhapsody*)
8960@@ -10478,7 +11065,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8961
8962 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8963 freebsd* | dragonfly*)
8964- archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8965+ archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8966 hardcode_libdir_flag_spec='-R$libdir'
8967 hardcode_direct=yes
8968 hardcode_shlibpath_var=no
8969@@ -10486,7 +11073,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8970
8971 hpux9*)
8972 if test "$GCC" = yes; then
8973- archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8974+ archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8975 else
8976 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8977 fi
8978@@ -10502,7 +11089,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8979
8980 hpux10*)
8981 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8982- archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8983+ archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8984 else
8985 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8986 fi
8987@@ -10526,10 +11113,10 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8988 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8989 ;;
8990 ia64*)
8991- archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8992+ archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8993 ;;
8994 *)
8995- archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8996+ archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8997 ;;
8998 esac
8999 else
9000@@ -10608,23 +11195,36 @@ fi
9001
9002 irix5* | irix6* | nonstopux*)
9003 if test "$GCC" = yes; then
9004- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9005+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9006 # Try to use the -exported_symbol ld option, if it does not
9007 # work, assume that -exports_file does not work either and
9008 # implicitly export all symbols.
9009- save_LDFLAGS="$LDFLAGS"
9010- LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9011- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9012+ # This should be the same for all languages, so no per-tag cache variable.
9013+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9014+$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9015+if ${lt_cv_irix_exported_symbol+:} false; then :
9016+ $as_echo_n "(cached) " >&6
9017+else
9018+ save_LDFLAGS="$LDFLAGS"
9019+ LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9020+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9021 /* end confdefs.h. */
9022-int foo(void) {}
9023+int foo (void) { return 0; }
9024 _ACEOF
9025 if ac_fn_c_try_link "$LINENO"; then :
9026- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9027-
9028+ lt_cv_irix_exported_symbol=yes
9029+else
9030+ lt_cv_irix_exported_symbol=no
9031 fi
9032 rm -f core conftest.err conftest.$ac_objext \
9033 conftest$ac_exeext conftest.$ac_ext
9034- LDFLAGS="$save_LDFLAGS"
9035+ LDFLAGS="$save_LDFLAGS"
9036+fi
9037+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9038+$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9039+ if test "$lt_cv_irix_exported_symbol" = yes; then
9040+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9041+ fi
9042 else
9043 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9044 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9045@@ -10709,7 +11309,7 @@ rm -f core conftest.err conftest.$ac_objext \
9046 osf4* | osf5*) # as osf3* with the addition of -msym flag
9047 if test "$GCC" = yes; then
9048 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9049- archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9050+ archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9051 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9052 else
9053 allow_undefined_flag=' -expect_unresolved \*'
9054@@ -10728,9 +11328,9 @@ rm -f core conftest.err conftest.$ac_objext \
9055 no_undefined_flag=' -z defs'
9056 if test "$GCC" = yes; then
9057 wlarc='${wl}'
9058- archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9059+ archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9060 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9061- $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9062+ $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9063 else
9064 case `$CC -V 2>&1` in
9065 *"Compilers 5.0"*)
9066@@ -11306,8 +11906,9 @@ cygwin* | mingw* | pw32* | cegcc*)
9067 need_version=no
9068 need_lib_prefix=no
9069
9070- case $GCC,$host_os in
9071- yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9072+ case $GCC,$cc_basename in
9073+ yes,*)
9074+ # gcc
9075 library_names_spec='$libname.dll.a'
9076 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9077 postinstall_cmds='base_file=`basename \${file}`~
9078@@ -11340,13 +11941,71 @@ cygwin* | mingw* | pw32* | cegcc*)
9079 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9080 ;;
9081 esac
9082+ dynamic_linker='Win32 ld.exe'
9083+ ;;
9084+
9085+ *,cl*)
9086+ # Native MSVC
9087+ libname_spec='$name'
9088+ soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9089+ library_names_spec='${libname}.dll.lib'
9090+
9091+ case $build_os in
9092+ mingw*)
9093+ sys_lib_search_path_spec=
9094+ lt_save_ifs=$IFS
9095+ IFS=';'
9096+ for lt_path in $LIB
9097+ do
9098+ IFS=$lt_save_ifs
9099+ # Let DOS variable expansion print the short 8.3 style file name.
9100+ lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
9101+ sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
9102+ done
9103+ IFS=$lt_save_ifs
9104+ # Convert to MSYS style.
9105+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
9106+ ;;
9107+ cygwin*)
9108+ # Convert to unix form, then to dos form, then back to unix form
9109+ # but this time dos style (no spaces!) so that the unix form looks
9110+ # like /cygdrive/c/PROGRA~1:/cygdr...
9111+ sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
9112+ sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
9113+ sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9114+ ;;
9115+ *)
9116+ sys_lib_search_path_spec="$LIB"
9117+ if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9118+ # It is most probably a Windows format PATH.
9119+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9120+ else
9121+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9122+ fi
9123+ # FIXME: find the short name or the path components, as spaces are
9124+ # common. (e.g. "Program Files" -> "PROGRA~1")
9125+ ;;
9126+ esac
9127+
9128+ # DLL is installed to $(libdir)/../bin by postinstall_cmds
9129+ postinstall_cmds='base_file=`basename \${file}`~
9130+ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9131+ dldir=$destdir/`dirname \$dlpath`~
9132+ test -d \$dldir || mkdir -p \$dldir~
9133+ $install_prog $dir/$dlname \$dldir/$dlname'
9134+ postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9135+ dlpath=$dir/\$dldll~
9136+ $RM \$dlpath'
9137+ shlibpath_overrides_runpath=yes
9138+ dynamic_linker='Win32 link.exe'
9139 ;;
9140
9141 *)
9142+ # Assume MSVC wrapper
9143 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9144+ dynamic_linker='Win32 ld.exe'
9145 ;;
9146 esac
9147- dynamic_linker='Win32 ld.exe'
9148 # FIXME: first we should search . and the directory the executable is in
9149 shlibpath_var=PATH
9150 ;;
9151@@ -12248,7 +12907,7 @@ else
9152 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9153 lt_status=$lt_dlunknown
9154 cat > conftest.$ac_ext <<_LT_EOF
9155-#line 12251 "configure"
9156+#line $LINENO "configure"
9157 #include "confdefs.h"
9158
9159 #if HAVE_DLFCN_H
9160@@ -12292,10 +12951,10 @@ else
9161 /* When -fvisbility=hidden is used, assume the code has been annotated
9162 correspondingly for the symbols needed. */
9163 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
9164-void fnord () __attribute__((visibility("default")));
9165+int fnord () __attribute__((visibility("default")));
9166 #endif
9167
9168-void fnord () { int i=42; }
9169+int fnord () { return 42; }
9170 int main ()
9171 {
9172 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9173@@ -12354,7 +13013,7 @@ else
9174 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9175 lt_status=$lt_dlunknown
9176 cat > conftest.$ac_ext <<_LT_EOF
9177-#line 12357 "configure"
9178+#line $LINENO "configure"
9179 #include "confdefs.h"
9180
9181 #if HAVE_DLFCN_H
9182@@ -12398,10 +13057,10 @@ else
9183 /* When -fvisbility=hidden is used, assume the code has been annotated
9184 correspondingly for the symbols needed. */
9185 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
9186-void fnord () __attribute__((visibility("default")));
9187+int fnord () __attribute__((visibility("default")));
9188 #endif
9189
9190-void fnord () { int i=42; }
9191+int fnord () { return 42; }
9192 int main ()
9193 {
9194 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9195@@ -12793,6 +13452,7 @@ $RM -r conftest*
9196
9197 # Allow CC to be a program name with arguments.
9198 lt_save_CC=$CC
9199+ lt_save_CFLAGS=$CFLAGS
9200 lt_save_LD=$LD
9201 lt_save_GCC=$GCC
9202 GCC=$GXX
9203@@ -12810,6 +13470,7 @@ $RM -r conftest*
9204 fi
9205 test -z "${LDCXX+set}" || LD=$LDCXX
9206 CC=${CXX-"c++"}
9207+ CFLAGS=$CXXFLAGS
9208 compiler=$CC
9209 compiler_CXX=$CC
9210 for cc_temp in $compiler""; do
9211@@ -13092,7 +13753,13 @@ $as_echo_n "checking whether the $compiler linker ($LD) supports shared librarie
9212 allow_undefined_flag_CXX='-berok'
9213 # Determine the default libpath from the value encoded in an empty
9214 # executable.
9215- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9216+ if test "${lt_cv_aix_libpath+set}" = set; then
9217+ aix_libpath=$lt_cv_aix_libpath
9218+else
9219+ if ${lt_cv_aix_libpath__CXX+:} false; then :
9220+ $as_echo_n "(cached) " >&6
9221+else
9222+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9223 /* end confdefs.h. */
9224
9225 int
9226@@ -13105,22 +13772,29 @@ main ()
9227 _ACEOF
9228 if ac_fn_cxx_try_link "$LINENO"; then :
9229
9230-lt_aix_libpath_sed='
9231- /Import File Strings/,/^$/ {
9232- /^0/ {
9233- s/^0 *\(.*\)$/\1/
9234- p
9235- }
9236- }'
9237-aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9238-# Check for a 64-bit object if we didn't find anything.
9239-if test -z "$aix_libpath"; then
9240- aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9241-fi
9242+ lt_aix_libpath_sed='
9243+ /Import File Strings/,/^$/ {
9244+ /^0/ {
9245+ s/^0 *\([^ ]*\) *$/\1/
9246+ p
9247+ }
9248+ }'
9249+ lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9250+ # Check for a 64-bit object if we didn't find anything.
9251+ if test -z "$lt_cv_aix_libpath__CXX"; then
9252+ lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9253+ fi
9254 fi
9255 rm -f core conftest.err conftest.$ac_objext \
9256 conftest$ac_exeext conftest.$ac_ext
9257-if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9258+ if test -z "$lt_cv_aix_libpath__CXX"; then
9259+ lt_cv_aix_libpath__CXX="/usr/lib:/lib"
9260+ fi
9261+
9262+fi
9263+
9264+ aix_libpath=$lt_cv_aix_libpath__CXX
9265+fi
9266
9267 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9268
9269@@ -13133,7 +13807,13 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9270 else
9271 # Determine the default libpath from the value encoded in an
9272 # empty executable.
9273- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9274+ if test "${lt_cv_aix_libpath+set}" = set; then
9275+ aix_libpath=$lt_cv_aix_libpath
9276+else
9277+ if ${lt_cv_aix_libpath__CXX+:} false; then :
9278+ $as_echo_n "(cached) " >&6
9279+else
9280+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9281 /* end confdefs.h. */
9282
9283 int
9284@@ -13146,22 +13826,29 @@ main ()
9285 _ACEOF
9286 if ac_fn_cxx_try_link "$LINENO"; then :
9287
9288-lt_aix_libpath_sed='
9289- /Import File Strings/,/^$/ {
9290- /^0/ {
9291- s/^0 *\(.*\)$/\1/
9292- p
9293- }
9294- }'
9295-aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9296-# Check for a 64-bit object if we didn't find anything.
9297-if test -z "$aix_libpath"; then
9298- aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9299-fi
9300+ lt_aix_libpath_sed='
9301+ /Import File Strings/,/^$/ {
9302+ /^0/ {
9303+ s/^0 *\([^ ]*\) *$/\1/
9304+ p
9305+ }
9306+ }'
9307+ lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9308+ # Check for a 64-bit object if we didn't find anything.
9309+ if test -z "$lt_cv_aix_libpath__CXX"; then
9310+ lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9311+ fi
9312 fi
9313 rm -f core conftest.err conftest.$ac_objext \
9314 conftest$ac_exeext conftest.$ac_ext
9315-if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9316+ if test -z "$lt_cv_aix_libpath__CXX"; then
9317+ lt_cv_aix_libpath__CXX="/usr/lib:/lib"
9318+ fi
9319+
9320+fi
9321+
9322+ aix_libpath=$lt_cv_aix_libpath__CXX
9323+fi
9324
9325 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9326 # Warning - without using the other run time loading flags,
9327@@ -13204,29 +13891,75 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9328 ;;
9329
9330 cygwin* | mingw* | pw32* | cegcc*)
9331- # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9332- # as there is no search path for DLLs.
9333- hardcode_libdir_flag_spec_CXX='-L$libdir'
9334- export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
9335- allow_undefined_flag_CXX=unsupported
9336- always_export_symbols_CXX=no
9337- enable_shared_with_static_runtimes_CXX=yes
9338-
9339- if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9340- archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9341- # If the export-symbols file already is a .def file (1st line
9342- # is EXPORTS), use it as is; otherwise, prepend...
9343- archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9344- cp $export_symbols $output_objdir/$soname.def;
9345- else
9346- echo EXPORTS > $output_objdir/$soname.def;
9347- cat $export_symbols >> $output_objdir/$soname.def;
9348- fi~
9349- $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9350- else
9351- ld_shlibs_CXX=no
9352- fi
9353- ;;
9354+ case $GXX,$cc_basename in
9355+ ,cl* | no,cl*)
9356+ # Native MSVC
9357+ # hardcode_libdir_flag_spec is actually meaningless, as there is
9358+ # no search path for DLLs.
9359+ hardcode_libdir_flag_spec_CXX=' '
9360+ allow_undefined_flag_CXX=unsupported
9361+ always_export_symbols_CXX=yes
9362+ file_list_spec_CXX='@'
9363+ # Tell ltmain to make .lib files, not .a files.
9364+ libext=lib
9365+ # Tell ltmain to make .dll files, not .so files.
9366+ shrext_cmds=".dll"
9367+ # FIXME: Setting linknames here is a bad hack.
9368+ archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9369+ archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9370+ $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9371+ else
9372+ $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9373+ fi~
9374+ $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9375+ linknames='
9376+ # The linker will not automatically build a static lib if we build a DLL.
9377+ # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
9378+ enable_shared_with_static_runtimes_CXX=yes
9379+ # Don't use ranlib
9380+ old_postinstall_cmds_CXX='chmod 644 $oldlib'
9381+ postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
9382+ lt_tool_outputfile="@TOOL_OUTPUT@"~
9383+ case $lt_outputfile in
9384+ *.exe|*.EXE) ;;
9385+ *)
9386+ lt_outputfile="$lt_outputfile.exe"
9387+ lt_tool_outputfile="$lt_tool_outputfile.exe"
9388+ ;;
9389+ esac~
9390+ func_to_tool_file "$lt_outputfile"~
9391+ if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9392+ $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9393+ $RM "$lt_outputfile.manifest";
9394+ fi'
9395+ ;;
9396+ *)
9397+ # g++
9398+ # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9399+ # as there is no search path for DLLs.
9400+ hardcode_libdir_flag_spec_CXX='-L$libdir'
9401+ export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
9402+ allow_undefined_flag_CXX=unsupported
9403+ always_export_symbols_CXX=no
9404+ enable_shared_with_static_runtimes_CXX=yes
9405+
9406+ if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9407+ archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9408+ # If the export-symbols file already is a .def file (1st line
9409+ # is EXPORTS), use it as is; otherwise, prepend...
9410+ archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9411+ cp $export_symbols $output_objdir/$soname.def;
9412+ else
9413+ echo EXPORTS > $output_objdir/$soname.def;
9414+ cat $export_symbols >> $output_objdir/$soname.def;
9415+ fi~
9416+ $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9417+ else
9418+ ld_shlibs_CXX=no
9419+ fi
9420+ ;;
9421+ esac
9422+ ;;
9423 darwin* | rhapsody*)
9424
9425
9426@@ -13332,7 +14065,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9427 ;;
9428 *)
9429 if test "$GXX" = yes; then
9430- archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9431+ archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9432 else
9433 # FIXME: insert proper C++ library support
9434 ld_shlibs_CXX=no
9435@@ -13403,10 +14136,10 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9436 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9437 ;;
9438 ia64*)
9439- archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9440+ archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9441 ;;
9442 *)
9443- archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9444+ archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9445 ;;
9446 esac
9447 fi
9448@@ -13447,9 +14180,9 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9449 *)
9450 if test "$GXX" = yes; then
9451 if test "$with_gnu_ld" = no; then
9452- archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9453+ archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9454 else
9455- archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
9456+ archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
9457 fi
9458 fi
9459 link_all_deplibs_CXX=yes
9460@@ -13727,7 +14460,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9461 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9462 ;;
9463 *)
9464- archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9465+ archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9466 ;;
9467 esac
9468
9469@@ -13773,7 +14506,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9470
9471 solaris*)
9472 case $cc_basename in
9473- CC*)
9474+ CC* | sunCC*)
9475 # Sun C++ 4.2, 5.x and Centerline C++
9476 archive_cmds_need_lc_CXX=yes
9477 no_undefined_flag_CXX=' -zdefs'
9478@@ -13814,9 +14547,9 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9479 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9480 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
9481 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
9482- archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9483+ archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9484 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9485- $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
9486+ $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
9487
9488 # Commands to make compiler produce verbose output that lists
9489 # what "hidden" libraries, object files and flags are used when
9490@@ -13952,6 +14685,13 @@ private:
9491 };
9492 _LT_EOF
9493
9494+
9495+_lt_libdeps_save_CFLAGS=$CFLAGS
9496+case "$CC $CFLAGS " in #(
9497+*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
9498+*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
9499+esac
9500+
9501 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9502 (eval $ac_compile) 2>&5
9503 ac_status=$?
9504@@ -13965,7 +14705,7 @@ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9505 pre_test_object_deps_done=no
9506
9507 for p in `eval "$output_verbose_link_cmd"`; do
9508- case $p in
9509+ case ${prev}${p} in
9510
9511 -L* | -R* | -l*)
9512 # Some compilers place space between "-{L,R}" and the path.
9513@@ -13974,13 +14714,22 @@ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9514 test $p = "-R"; then
9515 prev=$p
9516 continue
9517- else
9518- prev=
9519 fi
9520
9521+ # Expand the sysroot to ease extracting the directories later.
9522+ if test -z "$prev"; then
9523+ case $p in
9524+ -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
9525+ -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
9526+ -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
9527+ esac
9528+ fi
9529+ case $p in
9530+ =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
9531+ esac
9532 if test "$pre_test_object_deps_done" = no; then
9533- case $p in
9534- -L* | -R*)
9535+ case ${prev} in
9536+ -L | -R)
9537 # Internal compiler library paths should come after those
9538 # provided the user. The postdeps already come after the
9539 # user supplied libs so there is no need to process them.
9540@@ -14000,8 +14749,10 @@ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9541 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
9542 fi
9543 fi
9544+ prev=
9545 ;;
9546
9547+ *.lto.$objext) ;; # Ignore GCC LTO objects
9548 *.$objext)
9549 # This assumes that the test object file only shows up
9550 # once in the compiler output.
9551@@ -14037,6 +14788,7 @@ else
9552 fi
9553
9554 $RM -f confest.$objext
9555+CFLAGS=$_lt_libdeps_save_CFLAGS
9556
9557 # PORTME: override above test on systems where it is broken
9558 case $host_os in
9559@@ -14072,7 +14824,7 @@ linux*)
9560
9561 solaris*)
9562 case $cc_basename in
9563- CC*)
9564+ CC* | sunCC*)
9565 # The more standards-conforming stlport4 library is
9566 # incompatible with the Cstd library. Avoid specifying
9567 # it if it's in CXXFLAGS. Ignore libCrun as
9568@@ -14137,8 +14889,6 @@ fi
9569 lt_prog_compiler_pic_CXX=
9570 lt_prog_compiler_static_CXX=
9571
9572-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9573-$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9574
9575 # C++ specific cases for pic, static, wl, etc.
9576 if test "$GXX" = yes; then
9577@@ -14243,6 +14993,11 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9578 ;;
9579 esac
9580 ;;
9581+ mingw* | cygwin* | os2* | pw32* | cegcc*)
9582+ # This hack is so that the source file can tell whether it is being
9583+ # built for inclusion in a dll (and should export symbols for example).
9584+ lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
9585+ ;;
9586 dgux*)
9587 case $cc_basename in
9588 ec++*)
9589@@ -14395,7 +15150,7 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9590 ;;
9591 solaris*)
9592 case $cc_basename in
9593- CC*)
9594+ CC* | sunCC*)
9595 # Sun C++ 4.2, 5.x and Centerline C++
9596 lt_prog_compiler_pic_CXX='-KPIC'
9597 lt_prog_compiler_static_CXX='-Bstatic'
9598@@ -14460,10 +15215,17 @@ case $host_os in
9599 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
9600 ;;
9601 esac
9602-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
9603-$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
9604-
9605
9606+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9607+$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9608+if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
9609+ $as_echo_n "(cached) " >&6
9610+else
9611+ lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
9612+fi
9613+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
9614+$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
9615+lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
9616
9617 #
9618 # Check to make sure the PIC flag actually works.
9619@@ -14521,6 +15283,8 @@ fi
9620
9621
9622
9623+
9624+
9625 #
9626 # Check to make sure the static flag actually works.
9627 #
9628@@ -14698,6 +15462,7 @@ fi
9629 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9630
9631 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9632+ exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9633 case $host_os in
9634 aix[4-9]*)
9635 # If we're using GNU nm, then we don't want the "-C" option.
9636@@ -14712,15 +15477,20 @@ $as_echo_n "checking whether the $compiler linker ($LD) supports shared librarie
9637 ;;
9638 pw32*)
9639 export_symbols_cmds_CXX="$ltdll_cmds"
9640- ;;
9641+ ;;
9642 cygwin* | mingw* | cegcc*)
9643- export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9644- ;;
9645+ case $cc_basename in
9646+ cl*) ;;
9647+ *)
9648+ export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9649+ exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9650+ ;;
9651+ esac
9652+ ;;
9653 *)
9654 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9655- ;;
9656+ ;;
9657 esac
9658- exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9659
9660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
9661 $as_echo "$ld_shlibs_CXX" >&6; }
9662@@ -14983,8 +15753,9 @@ cygwin* | mingw* | pw32* | cegcc*)
9663 need_version=no
9664 need_lib_prefix=no
9665
9666- case $GCC,$host_os in
9667- yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9668+ case $GCC,$cc_basename in
9669+ yes,*)
9670+ # gcc
9671 library_names_spec='$libname.dll.a'
9672 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9673 postinstall_cmds='base_file=`basename \${file}`~
9674@@ -15016,13 +15787,71 @@ cygwin* | mingw* | pw32* | cegcc*)
9675 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9676 ;;
9677 esac
9678+ dynamic_linker='Win32 ld.exe'
9679+ ;;
9680+
9681+ *,cl*)
9682+ # Native MSVC
9683+ libname_spec='$name'
9684+ soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9685+ library_names_spec='${libname}.dll.lib'
9686+
9687+ case $build_os in
9688+ mingw*)
9689+ sys_lib_search_path_spec=
9690+ lt_save_ifs=$IFS
9691+ IFS=';'
9692+ for lt_path in $LIB
9693+ do
9694+ IFS=$lt_save_ifs
9695+ # Let DOS variable expansion print the short 8.3 style file name.
9696+ lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
9697+ sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
9698+ done
9699+ IFS=$lt_save_ifs
9700+ # Convert to MSYS style.
9701+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
9702+ ;;
9703+ cygwin*)
9704+ # Convert to unix form, then to dos form, then back to unix form
9705+ # but this time dos style (no spaces!) so that the unix form looks
9706+ # like /cygdrive/c/PROGRA~1:/cygdr...
9707+ sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
9708+ sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
9709+ sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9710+ ;;
9711+ *)
9712+ sys_lib_search_path_spec="$LIB"
9713+ if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9714+ # It is most probably a Windows format PATH.
9715+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9716+ else
9717+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9718+ fi
9719+ # FIXME: find the short name or the path components, as spaces are
9720+ # common. (e.g. "Program Files" -> "PROGRA~1")
9721+ ;;
9722+ esac
9723+
9724+ # DLL is installed to $(libdir)/../bin by postinstall_cmds
9725+ postinstall_cmds='base_file=`basename \${file}`~
9726+ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9727+ dldir=$destdir/`dirname \$dlpath`~
9728+ test -d \$dldir || mkdir -p \$dldir~
9729+ $install_prog $dir/$dlname \$dldir/$dlname'
9730+ postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9731+ dlpath=$dir/\$dldll~
9732+ $RM \$dlpath'
9733+ shlibpath_overrides_runpath=yes
9734+ dynamic_linker='Win32 link.exe'
9735 ;;
9736
9737 *)
9738+ # Assume MSVC wrapper
9739 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9740+ dynamic_linker='Win32 ld.exe'
9741 ;;
9742 esac
9743- dynamic_linker='Win32 ld.exe'
9744 # FIXME: first we should search . and the directory the executable is in
9745 shlibpath_var=PATH
9746 ;;
9747@@ -15586,6 +16415,7 @@ fi
9748 fi # test -n "$compiler"
9749
9750 CC=$lt_save_CC
9751+ CFLAGS=$lt_save_CFLAGS
9752 LDCXX=$LD
9753 LD=$lt_save_LD
9754 GCC=$lt_save_GCC
9755@@ -17738,13 +18568,20 @@ exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
9756 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
9757 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
9758 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
9759+lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
9760+lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
9761 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
9762 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
9763 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
9764 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
9765 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
9766+file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
9767+want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
9768+DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
9769+sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
9770 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
9771 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
9772+archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
9773 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
9774 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
9775 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
9776@@ -17759,14 +18596,17 @@ lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$de
9777 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
9778 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
9779 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
9780+nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
9781+lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
9782 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
9783 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
9784 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
9785-lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
9786 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
9787+lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
9788 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
9789 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
9790 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
9791+MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
9792 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
9793 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
9794 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
9795@@ -17799,12 +18639,12 @@ hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_q
9796 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
9797 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
9798 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
9799-fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
9800 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
9801 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
9802 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
9803 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
9804 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
9805+postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
9806 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
9807 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
9808 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
9809@@ -17843,8 +18683,8 @@ old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote
9810 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
9811 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
9812 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
9813-lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
9814 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
9815+lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
9816 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
9817 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
9818 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
9819@@ -17871,12 +18711,12 @@ hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_
9820 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
9821 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
9822 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
9823-fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
9824 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
9825 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
9826 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
9827 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
9828 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
9829+postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
9830 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
9831 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
9832 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
9833@@ -17914,8 +18754,13 @@ reload_flag \
9834 OBJDUMP \
9835 deplibs_check_method \
9836 file_magic_cmd \
9837+file_magic_glob \
9838+want_nocaseglob \
9839+DLLTOOL \
9840+sharedlib_from_linklib_cmd \
9841 AR \
9842 AR_FLAGS \
9843+archiver_list_spec \
9844 STRIP \
9845 RANLIB \
9846 CC \
9847@@ -17925,12 +18770,14 @@ lt_cv_sys_global_symbol_pipe \
9848 lt_cv_sys_global_symbol_to_cdecl \
9849 lt_cv_sys_global_symbol_to_c_name_address \
9850 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
9851+nm_file_list_spec \
9852 lt_prog_compiler_no_builtin_flag \
9853-lt_prog_compiler_wl \
9854 lt_prog_compiler_pic \
9855+lt_prog_compiler_wl \
9856 lt_prog_compiler_static \
9857 lt_cv_prog_compiler_c_o \
9858 need_locks \
9859+MANIFEST_TOOL \
9860 DSYMUTIL \
9861 NMEDIT \
9862 LIPO \
9863@@ -17946,7 +18793,6 @@ no_undefined_flag \
9864 hardcode_libdir_flag_spec \
9865 hardcode_libdir_flag_spec_ld \
9866 hardcode_libdir_separator \
9867-fix_srcfile_path \
9868 exclude_expsyms \
9869 include_expsyms \
9870 file_list_spec \
9871@@ -17968,8 +18814,8 @@ LD_CXX \
9872 reload_flag_CXX \
9873 compiler_CXX \
9874 lt_prog_compiler_no_builtin_flag_CXX \
9875-lt_prog_compiler_wl_CXX \
9876 lt_prog_compiler_pic_CXX \
9877+lt_prog_compiler_wl_CXX \
9878 lt_prog_compiler_static_CXX \
9879 lt_cv_prog_compiler_c_o_CXX \
9880 export_dynamic_flag_spec_CXX \
9881@@ -17981,7 +18827,6 @@ no_undefined_flag_CXX \
9882 hardcode_libdir_flag_spec_CXX \
9883 hardcode_libdir_flag_spec_ld_CXX \
9884 hardcode_libdir_separator_CXX \
9885-fix_srcfile_path_CXX \
9886 exclude_expsyms_CXX \
9887 include_expsyms_CXX \
9888 file_list_spec_CXX \
9889@@ -18015,6 +18860,7 @@ module_cmds \
9890 module_expsym_cmds \
9891 export_symbols_cmds \
9892 prelink_cmds \
9893+postlink_cmds \
9894 postinstall_cmds \
9895 postuninstall_cmds \
9896 finish_cmds \
9897@@ -18029,7 +18875,8 @@ archive_expsym_cmds_CXX \
9898 module_cmds_CXX \
9899 module_expsym_cmds_CXX \
9900 export_symbols_cmds_CXX \
9901-prelink_cmds_CXX; do
9902+prelink_cmds_CXX \
9903+postlink_cmds_CXX; do
9904 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
9905 *[\\\\\\\`\\"\\\$]*)
9906 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
9907@@ -18786,7 +19633,8 @@ $as_echo X"$file" |
9908 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9909 #
9910 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
9911-# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
9912+# 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
9913+# Inc.
9914 # Written by Gordon Matzigkeit, 1996
9915 #
9916 # This file is part of GNU Libtool.
9917@@ -18889,19 +19737,42 @@ SP2NL=$lt_lt_SP2NL
9918 # turn newlines into spaces.
9919 NL2SP=$lt_lt_NL2SP
9920
9921+# convert \$build file names to \$host format.
9922+to_host_file_cmd=$lt_cv_to_host_file_cmd
9923+
9924+# convert \$build files to toolchain format.
9925+to_tool_file_cmd=$lt_cv_to_tool_file_cmd
9926+
9927 # An object symbol dumper.
9928 OBJDUMP=$lt_OBJDUMP
9929
9930 # Method to check whether dependent libraries are shared objects.
9931 deplibs_check_method=$lt_deplibs_check_method
9932
9933-# Command to use when deplibs_check_method == "file_magic".
9934+# Command to use when deplibs_check_method = "file_magic".
9935 file_magic_cmd=$lt_file_magic_cmd
9936
9937+# How to find potential files when deplibs_check_method = "file_magic".
9938+file_magic_glob=$lt_file_magic_glob
9939+
9940+# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
9941+want_nocaseglob=$lt_want_nocaseglob
9942+
9943+# DLL creation program.
9944+DLLTOOL=$lt_DLLTOOL
9945+
9946+# Command to associate shared and link libraries.
9947+sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
9948+
9949 # The archiver.
9950 AR=$lt_AR
9951+
9952+# Flags to create an archive.
9953 AR_FLAGS=$lt_AR_FLAGS
9954
9955+# How to feed a file listing to the archiver.
9956+archiver_list_spec=$lt_archiver_list_spec
9957+
9958 # A symbol stripping program.
9959 STRIP=$lt_STRIP
9960
9961@@ -18931,6 +19802,12 @@ global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9962 # Transform the output of nm in a C name address pair when lib prefix is needed.
9963 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
9964
9965+# Specify filename containing input files for \$NM.
9966+nm_file_list_spec=$lt_nm_file_list_spec
9967+
9968+# The root where to search for dependent libraries,and in which our libraries should be installed.
9969+lt_sysroot=$lt_sysroot
9970+
9971 # The name of the directory that contains temporary libtool files.
9972 objdir=$objdir
9973
9974@@ -18940,6 +19817,9 @@ MAGIC_CMD=$MAGIC_CMD
9975 # Must we lock files when doing compilation?
9976 need_locks=$lt_need_locks
9977
9978+# Manifest tool.
9979+MANIFEST_TOOL=$lt_MANIFEST_TOOL
9980+
9981 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
9982 DSYMUTIL=$lt_DSYMUTIL
9983
9984@@ -19054,12 +19934,12 @@ with_gcc=$GCC
9985 # Compiler flag to turn off builtin functions.
9986 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9987
9988-# How to pass a linker flag through the compiler.
9989-wl=$lt_lt_prog_compiler_wl
9990-
9991 # Additional compiler flags for building library objects.
9992 pic_flag=$lt_lt_prog_compiler_pic
9993
9994+# How to pass a linker flag through the compiler.
9995+wl=$lt_lt_prog_compiler_wl
9996+
9997 # Compiler flag to prevent dynamic linking.
9998 link_static_flag=$lt_lt_prog_compiler_static
9999
10000@@ -19146,9 +20026,6 @@ inherit_rpath=$inherit_rpath
10001 # Whether libtool must link a program against all its dependency libraries.
10002 link_all_deplibs=$link_all_deplibs
10003
10004-# Fix the shell variable \$srcfile for the compiler.
10005-fix_srcfile_path=$lt_fix_srcfile_path
10006-
10007 # Set to "yes" if exported symbols are required.
10008 always_export_symbols=$always_export_symbols
10009
10010@@ -19164,6 +20041,9 @@ include_expsyms=$lt_include_expsyms
10011 # Commands necessary for linking programs (against libraries) with templates.
10012 prelink_cmds=$lt_prelink_cmds
10013
10014+# Commands necessary for finishing linking programs.
10015+postlink_cmds=$lt_postlink_cmds
10016+
10017 # Specify filename containing input files.
10018 file_list_spec=$lt_file_list_spec
10019
10020@@ -19210,210 +20090,169 @@ ltmain="$ac_aux_dir/ltmain.sh"
10021 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10022 # text mode, it properly converts lines to CR/LF. This bash problem
10023 # is reportedly fixed, but why not run on old versions too?
10024- sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
10025- || (rm -f "$cfgfile"; exit 1)
10026-
10027- case $xsi_shell in
10028- yes)
10029- cat << \_LT_EOF >> "$cfgfile"
10030-
10031-# func_dirname file append nondir_replacement
10032-# Compute the dirname of FILE. If nonempty, add APPEND to the result,
10033-# otherwise set result to NONDIR_REPLACEMENT.
10034-func_dirname ()
10035-{
10036- case ${1} in
10037- */*) func_dirname_result="${1%/*}${2}" ;;
10038- * ) func_dirname_result="${3}" ;;
10039- esac
10040-}
10041-
10042-# func_basename file
10043-func_basename ()
10044-{
10045- func_basename_result="${1##*/}"
10046-}
10047-
10048-# func_dirname_and_basename file append nondir_replacement
10049-# perform func_basename and func_dirname in a single function
10050-# call:
10051-# dirname: Compute the dirname of FILE. If nonempty,
10052-# add APPEND to the result, otherwise set result
10053-# to NONDIR_REPLACEMENT.
10054-# value returned in "$func_dirname_result"
10055-# basename: Compute filename of FILE.
10056-# value retuned in "$func_basename_result"
10057-# Implementation must be kept synchronized with func_dirname
10058-# and func_basename. For efficiency, we do not delegate to
10059-# those functions but instead duplicate the functionality here.
10060-func_dirname_and_basename ()
10061-{
10062- case ${1} in
10063- */*) func_dirname_result="${1%/*}${2}" ;;
10064- * ) func_dirname_result="${3}" ;;
10065- esac
10066- func_basename_result="${1##*/}"
10067-}
10068-
10069-# func_stripname prefix suffix name
10070-# strip PREFIX and SUFFIX off of NAME.
10071-# PREFIX and SUFFIX must not contain globbing or regex special
10072-# characters, hashes, percent signs, but SUFFIX may contain a leading
10073-# dot (in which case that matches only a dot).
10074-func_stripname ()
10075-{
10076- # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
10077- # positional parameters, so assign one to ordinary parameter first.
10078- func_stripname_result=${3}
10079- func_stripname_result=${func_stripname_result#"${1}"}
10080- func_stripname_result=${func_stripname_result%"${2}"}
10081-}
10082-
10083-# func_opt_split
10084-func_opt_split ()
10085-{
10086- func_opt_split_opt=${1%%=*}
10087- func_opt_split_arg=${1#*=}
10088-}
10089-
10090-# func_lo2o object
10091-func_lo2o ()
10092-{
10093- case ${1} in
10094- *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
10095- *) func_lo2o_result=${1} ;;
10096- esac
10097-}
10098-
10099-# func_xform libobj-or-source
10100-func_xform ()
10101-{
10102- func_xform_result=${1%.*}.lo
10103-}
10104-
10105-# func_arith arithmetic-term...
10106-func_arith ()
10107-{
10108- func_arith_result=$(( $* ))
10109-}
10110-
10111-# func_len string
10112-# STRING may not start with a hyphen.
10113-func_len ()
10114-{
10115- func_len_result=${#1}
10116-}
10117-
10118-_LT_EOF
10119- ;;
10120- *) # Bourne compatible functions.
10121- cat << \_LT_EOF >> "$cfgfile"
10122-
10123-# func_dirname file append nondir_replacement
10124-# Compute the dirname of FILE. If nonempty, add APPEND to the result,
10125-# otherwise set result to NONDIR_REPLACEMENT.
10126-func_dirname ()
10127-{
10128- # Extract subdirectory from the argument.
10129- func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
10130- if test "X$func_dirname_result" = "X${1}"; then
10131- func_dirname_result="${3}"
10132- else
10133- func_dirname_result="$func_dirname_result${2}"
10134- fi
10135-}
10136-
10137-# func_basename file
10138-func_basename ()
10139-{
10140- func_basename_result=`$ECHO "${1}" | $SED "$basename"`
10141-}
10142-
10143-
10144-# func_stripname prefix suffix name
10145-# strip PREFIX and SUFFIX off of NAME.
10146-# PREFIX and SUFFIX must not contain globbing or regex special
10147-# characters, hashes, percent signs, but SUFFIX may contain a leading
10148-# dot (in which case that matches only a dot).
10149-# func_strip_suffix prefix name
10150-func_stripname ()
10151-{
10152- case ${2} in
10153- .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
10154- *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
10155- esac
10156-}
10157-
10158-# sed scripts:
10159-my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
10160-my_sed_long_arg='1s/^-[^=]*=//'
10161-
10162-# func_opt_split
10163-func_opt_split ()
10164-{
10165- func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
10166- func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
10167-}
10168-
10169-# func_lo2o object
10170-func_lo2o ()
10171-{
10172- func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
10173-}
10174-
10175-# func_xform libobj-or-source
10176-func_xform ()
10177-{
10178- func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
10179-}
10180-
10181-# func_arith arithmetic-term...
10182-func_arith ()
10183-{
10184- func_arith_result=`expr "$@"`
10185-}
10186-
10187-# func_len string
10188-# STRING may not start with a hyphen.
10189-func_len ()
10190-{
10191- func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
10192-}
10193-
10194-_LT_EOF
10195-esac
10196-
10197-case $lt_shell_append in
10198- yes)
10199- cat << \_LT_EOF >> "$cfgfile"
10200-
10201-# func_append var value
10202-# Append VALUE to the end of shell variable VAR.
10203-func_append ()
10204-{
10205- eval "$1+=\$2"
10206-}
10207-_LT_EOF
10208- ;;
10209- *)
10210- cat << \_LT_EOF >> "$cfgfile"
10211-
10212-# func_append var value
10213-# Append VALUE to the end of shell variable VAR.
10214-func_append ()
10215-{
10216- eval "$1=\$$1\$2"
10217-}
10218-
10219-_LT_EOF
10220- ;;
10221- esac
10222-
10223-
10224- sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
10225- || (rm -f "$cfgfile"; exit 1)
10226-
10227- mv -f "$cfgfile" "$ofile" ||
10228+ sed '$q' "$ltmain" >> "$cfgfile" \
10229+ || (rm -f "$cfgfile"; exit 1)
10230+
10231+ if test x"$xsi_shell" = xyes; then
10232+ sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
10233+func_dirname ()\
10234+{\
10235+\ case ${1} in\
10236+\ */*) func_dirname_result="${1%/*}${2}" ;;\
10237+\ * ) func_dirname_result="${3}" ;;\
10238+\ esac\
10239+} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
10240+ && mv -f "$cfgfile.tmp" "$cfgfile" \
10241+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
10242+test 0 -eq $? || _lt_function_replace_fail=:
10243+
10244+
10245+ sed -e '/^func_basename ()$/,/^} # func_basename /c\
10246+func_basename ()\
10247+{\
10248+\ func_basename_result="${1##*/}"\
10249+} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
10250+ && mv -f "$cfgfile.tmp" "$cfgfile" \
10251+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
10252+test 0 -eq $? || _lt_function_replace_fail=:
10253+
10254+
10255+ sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
10256+func_dirname_and_basename ()\
10257+{\
10258+\ case ${1} in\
10259+\ */*) func_dirname_result="${1%/*}${2}" ;;\
10260+\ * ) func_dirname_result="${3}" ;;\
10261+\ esac\
10262+\ func_basename_result="${1##*/}"\
10263+} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
10264+ && mv -f "$cfgfile.tmp" "$cfgfile" \
10265+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
10266+test 0 -eq $? || _lt_function_replace_fail=:
10267+
10268+
10269+ sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
10270+func_stripname ()\
10271+{\
10272+\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
10273+\ # positional parameters, so assign one to ordinary parameter first.\
10274+\ func_stripname_result=${3}\
10275+\ func_stripname_result=${func_stripname_result#"${1}"}\
10276+\ func_stripname_result=${func_stripname_result%"${2}"}\
10277+} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
10278+ && mv -f "$cfgfile.tmp" "$cfgfile" \
10279+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
10280+test 0 -eq $? || _lt_function_replace_fail=:
10281+
10282+
10283+ sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
10284+func_split_long_opt ()\
10285+{\
10286+\ func_split_long_opt_name=${1%%=*}\
10287+\ func_split_long_opt_arg=${1#*=}\
10288+} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
10289+ && mv -f "$cfgfile.tmp" "$cfgfile" \
10290+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
10291+test 0 -eq $? || _lt_function_replace_fail=:
10292+
10293+
10294+ sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
10295+func_split_short_opt ()\
10296+{\
10297+\ func_split_short_opt_arg=${1#??}\
10298+\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
10299+} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
10300+ && mv -f "$cfgfile.tmp" "$cfgfile" \
10301+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
10302+test 0 -eq $? || _lt_function_replace_fail=:
10303+
10304+
10305+ sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
10306+func_lo2o ()\
10307+{\
10308+\ case ${1} in\
10309+\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
10310+\ *) func_lo2o_result=${1} ;;\
10311+\ esac\
10312+} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
10313+ && mv -f "$cfgfile.tmp" "$cfgfile" \
10314+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
10315+test 0 -eq $? || _lt_function_replace_fail=:
10316+
10317+
10318+ sed -e '/^func_xform ()$/,/^} # func_xform /c\
10319+func_xform ()\
10320+{\
10321+ func_xform_result=${1%.*}.lo\
10322+} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
10323+ && mv -f "$cfgfile.tmp" "$cfgfile" \
10324+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
10325+test 0 -eq $? || _lt_function_replace_fail=:
10326+
10327+
10328+ sed -e '/^func_arith ()$/,/^} # func_arith /c\
10329+func_arith ()\
10330+{\
10331+ func_arith_result=$(( $* ))\
10332+} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
10333+ && mv -f "$cfgfile.tmp" "$cfgfile" \
10334+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
10335+test 0 -eq $? || _lt_function_replace_fail=:
10336+
10337+
10338+ sed -e '/^func_len ()$/,/^} # func_len /c\
10339+func_len ()\
10340+{\
10341+ func_len_result=${#1}\
10342+} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
10343+ && mv -f "$cfgfile.tmp" "$cfgfile" \
10344+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
10345+test 0 -eq $? || _lt_function_replace_fail=:
10346+
10347+fi
10348+
10349+if test x"$lt_shell_append" = xyes; then
10350+ sed -e '/^func_append ()$/,/^} # func_append /c\
10351+func_append ()\
10352+{\
10353+ eval "${1}+=\\${2}"\
10354+} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
10355+ && mv -f "$cfgfile.tmp" "$cfgfile" \
10356+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
10357+test 0 -eq $? || _lt_function_replace_fail=:
10358+
10359+
10360+ sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
10361+func_append_quoted ()\
10362+{\
10363+\ func_quote_for_eval "${2}"\
10364+\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
10365+} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
10366+ && mv -f "$cfgfile.tmp" "$cfgfile" \
10367+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
10368+test 0 -eq $? || _lt_function_replace_fail=:
10369+
10370+
10371+ # Save a `func_append' function call where possible by direct use of '+='
10372+ sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
10373+ && mv -f "$cfgfile.tmp" "$cfgfile" \
10374+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
10375+ test 0 -eq $? || _lt_function_replace_fail=:
10376+else
10377+ # Save a `func_append' function call even when '+=' is not available
10378+ sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
10379+ && mv -f "$cfgfile.tmp" "$cfgfile" \
10380+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
10381+ test 0 -eq $? || _lt_function_replace_fail=:
10382+fi
10383+
10384+if test x"$_lt_function_replace_fail" = x":"; then
10385+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
10386+$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
10387+fi
10388+
10389+
10390+ mv -f "$cfgfile" "$ofile" ||
10391 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10392 chmod +x "$ofile"
10393
10394@@ -19441,12 +20280,12 @@ with_gcc=$GCC_CXX
10395 # Compiler flag to turn off builtin functions.
10396 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
10397
10398-# How to pass a linker flag through the compiler.
10399-wl=$lt_lt_prog_compiler_wl_CXX
10400-
10401 # Additional compiler flags for building library objects.
10402 pic_flag=$lt_lt_prog_compiler_pic_CXX
10403
10404+# How to pass a linker flag through the compiler.
10405+wl=$lt_lt_prog_compiler_wl_CXX
10406+
10407 # Compiler flag to prevent dynamic linking.
10408 link_static_flag=$lt_lt_prog_compiler_static_CXX
10409
10410@@ -19533,9 +20372,6 @@ inherit_rpath=$inherit_rpath_CXX
10411 # Whether libtool must link a program against all its dependency libraries.
10412 link_all_deplibs=$link_all_deplibs_CXX
10413
10414-# Fix the shell variable \$srcfile for the compiler.
10415-fix_srcfile_path=$lt_fix_srcfile_path_CXX
10416-
10417 # Set to "yes" if exported symbols are required.
10418 always_export_symbols=$always_export_symbols_CXX
10419
10420@@ -19551,6 +20387,9 @@ include_expsyms=$lt_include_expsyms_CXX
10421 # Commands necessary for linking programs (against libraries) with templates.
10422 prelink_cmds=$lt_prelink_cmds_CXX
10423
10424+# Commands necessary for finishing linking programs.
10425+postlink_cmds=$lt_postlink_cmds_CXX
10426+
10427 # Specify filename containing input files.
10428 file_list_spec=$lt_file_list_spec_CXX
10429
10430diff --git a/gprofng/doc/Makefile.in b/gprofng/doc/Makefile.in
10431index 3306c51b31c..6ab3d9636c8 100644
10432--- a/gprofng/doc/Makefile.in
10433+++ b/gprofng/doc/Makefile.in
10434@@ -238,6 +238,7 @@ CXXFLAGS = @CXXFLAGS@
10435 CYGPATH_W = @CYGPATH_W@
10436 DEFS = @DEFS@
10437 DEPDIR = @DEPDIR@
10438+DLLTOOL = @DLLTOOL@
10439 DSYMUTIL = @DSYMUTIL@
10440 DUMPBIN = @DUMPBIN@
10441 ECHO_C = @ECHO_C@
10442@@ -272,6 +273,7 @@ LN_S = @LN_S@
10443 LTLIBOBJS = @LTLIBOBJS@
10444 MAINT = @MAINT@
10445 MAKEINFO = @MAKEINFO@
10446+MANIFEST_TOOL = @MANIFEST_TOOL@
10447 MKDIR_P = @MKDIR_P@
10448 NM = @NM@
10449 NMEDIT = @NMEDIT@
10450diff --git a/gprofng/gp-display-html/Makefile.in b/gprofng/gp-display-html/Makefile.in
10451index 61c00cd6e46..edce3cb94c5 100644
10452--- a/gprofng/gp-display-html/Makefile.in
10453+++ b/gprofng/gp-display-html/Makefile.in
10454@@ -197,6 +197,7 @@ CXXFLAGS = @CXXFLAGS@
10455 CYGPATH_W = @CYGPATH_W@
10456 DEFS = @DEFS@
10457 DEPDIR = @DEPDIR@
10458+DLLTOOL = @DLLTOOL@
10459 DSYMUTIL = @DSYMUTIL@
10460 DUMPBIN = @DUMPBIN@
10461 ECHO_C = @ECHO_C@
10462@@ -231,6 +232,7 @@ LN_S = @LN_S@
10463 LTLIBOBJS = @LTLIBOBJS@
10464 MAINT = @MAINT@
10465 MAKEINFO = @MAKEINFO@
10466+MANIFEST_TOOL = @MANIFEST_TOOL@
10467 MKDIR_P = @MKDIR_P@
10468 NM = @NM@
10469 NMEDIT = @NMEDIT@
10470diff --git a/gprofng/libcollector/Makefile.in b/gprofng/libcollector/Makefile.in
10471index ce8755c80c9..91e29c29ab8 100644
10472--- a/gprofng/libcollector/Makefile.in
10473+++ b/gprofng/libcollector/Makefile.in
10474@@ -316,6 +316,7 @@ CXXFLAGS = @CXXFLAGS@
10475 CYGPATH_W = @CYGPATH_W@
10476 DEFS = @DEFS@
10477 DEPDIR = @DEPDIR@
10478+DLLTOOL = @DLLTOOL@
10479 DSYMUTIL = @DSYMUTIL@
10480 DUMPBIN = @DUMPBIN@
10481 ECHO_C = @ECHO_C@
10482@@ -341,6 +342,7 @@ LN_S = @LN_S@
10483 LTLIBOBJS = @LTLIBOBJS@
10484 MAINT = @MAINT@
10485 MAKEINFO = @MAKEINFO@
10486+MANIFEST_TOOL = @MANIFEST_TOOL@
10487 MKDIR_P = @MKDIR_P@
10488 NM = @NM@
10489 NMEDIT = @NMEDIT@
10490diff --git a/gprofng/libcollector/configure b/gprofng/libcollector/configure
10491index 8b0092433fe..a363ab1047c 100755
10492--- a/gprofng/libcollector/configure
10493+++ b/gprofng/libcollector/configure
10494@@ -640,6 +640,8 @@ OTOOL
10495 LIPO
10496 NMEDIT
10497 DSYMUTIL
10498+MANIFEST_TOOL
10499+DLLTOOL
10500 OBJDUMP
10501 LN_S
10502 NM
10503@@ -769,6 +771,7 @@ enable_static
10504 with_pic
10505 enable_fast_install
10506 with_gnu_ld
10507+with_libtool_sysroot
10508 enable_libtool_lock
10509 '
10510 ac_precious_vars='build_alias
10511@@ -1424,6 +1427,8 @@ Optional Packages:
10512 --with-pic try to use only PIC/non-PIC objects [default=use
10513 both]
10514 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
10515+ --with-libtool-sysroot=DIR Search for dependent libraries within DIR
10516+ (or the compiler's sysroot if not specified).
10517
10518 Some influential environment variables:
10519 CC C compiler command
10520@@ -5968,8 +5973,8 @@ esac
10521
10522
10523
10524-macro_version='2.2.7a'
10525-macro_revision='1.3134'
10526+macro_version='2.4'
10527+macro_revision='1.3293'
10528
10529
10530
10531@@ -6009,7 +6014,7 @@ ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
10532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
10533 $as_echo_n "checking how to print strings... " >&6; }
10534 # Test print first, because it will be a builtin if present.
10535-if test "X`print -r -- -n 2>/dev/null`" = X-n && \
10536+if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
10537 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
10538 ECHO='print -r --'
10539 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
10540@@ -6702,8 +6707,8 @@ $as_echo_n "checking whether the shell understands some XSI constructs... " >&6;
10541 # Try some XSI features
10542 xsi_shell=no
10543 ( _lt_dummy="a/b/c"
10544- test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
10545- = c,a/b,, \
10546+ test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
10547+ = c,a/b,b/c, \
10548 && eval 'test $(( 1 + 1 )) -eq 2 \
10549 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
10550 && xsi_shell=yes
10551@@ -6752,6 +6757,80 @@ esac
10552
10553
10554
10555+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
10556+$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
10557+if ${lt_cv_to_host_file_cmd+:} false; then :
10558+ $as_echo_n "(cached) " >&6
10559+else
10560+ case $host in
10561+ *-*-mingw* )
10562+ case $build in
10563+ *-*-mingw* ) # actually msys
10564+ lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
10565+ ;;
10566+ *-*-cygwin* )
10567+ lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
10568+ ;;
10569+ * ) # otherwise, assume *nix
10570+ lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
10571+ ;;
10572+ esac
10573+ ;;
10574+ *-*-cygwin* )
10575+ case $build in
10576+ *-*-mingw* ) # actually msys
10577+ lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
10578+ ;;
10579+ *-*-cygwin* )
10580+ lt_cv_to_host_file_cmd=func_convert_file_noop
10581+ ;;
10582+ * ) # otherwise, assume *nix
10583+ lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
10584+ ;;
10585+ esac
10586+ ;;
10587+ * ) # unhandled hosts (and "normal" native builds)
10588+ lt_cv_to_host_file_cmd=func_convert_file_noop
10589+ ;;
10590+esac
10591+
10592+fi
10593+
10594+to_host_file_cmd=$lt_cv_to_host_file_cmd
10595+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
10596+$as_echo "$lt_cv_to_host_file_cmd" >&6; }
10597+
10598+
10599+
10600+
10601+
10602+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
10603+$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
10604+if ${lt_cv_to_tool_file_cmd+:} false; then :
10605+ $as_echo_n "(cached) " >&6
10606+else
10607+ #assume ordinary cross tools, or native build.
10608+lt_cv_to_tool_file_cmd=func_convert_file_noop
10609+case $host in
10610+ *-*-mingw* )
10611+ case $build in
10612+ *-*-mingw* ) # actually msys
10613+ lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
10614+ ;;
10615+ esac
10616+ ;;
10617+esac
10618+
10619+fi
10620+
10621+to_tool_file_cmd=$lt_cv_to_tool_file_cmd
10622+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
10623+$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
10624+
10625+
10626+
10627+
10628+
10629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
10630 $as_echo_n "checking for $LD option to reload object files... " >&6; }
10631 if ${lt_cv_ld_reload_flag+:} false; then :
10632@@ -6768,6 +6847,11 @@ case $reload_flag in
10633 esac
10634 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10635 case $host_os in
10636+ cygwin* | mingw* | pw32* | cegcc*)
10637+ if test "$GCC" != yes; then
10638+ reload_cmds=false
10639+ fi
10640+ ;;
10641 darwin*)
10642 if test "$GCC" = yes; then
10643 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
10644@@ -6936,7 +7020,8 @@ mingw* | pw32*)
10645 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10646 lt_cv_file_magic_cmd='func_win32_libid'
10647 else
10648- lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10649+ # Keep this pattern in sync with the one in func_win32_libid.
10650+ lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
10651 lt_cv_file_magic_cmd='$OBJDUMP -f'
10652 fi
10653 ;;
10654@@ -7095,6 +7180,21 @@ esac
10655 fi
10656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
10657 $as_echo "$lt_cv_deplibs_check_method" >&6; }
10658+
10659+file_magic_glob=
10660+want_nocaseglob=no
10661+if test "$build" = "$host"; then
10662+ case $host_os in
10663+ mingw* | pw32*)
10664+ if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
10665+ want_nocaseglob=yes
10666+ else
10667+ file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
10668+ fi
10669+ ;;
10670+ esac
10671+fi
10672+
10673 file_magic_cmd=$lt_cv_file_magic_cmd
10674 deplibs_check_method=$lt_cv_deplibs_check_method
10675 test -z "$deplibs_check_method" && deplibs_check_method=unknown
10676@@ -7110,6 +7210,157 @@ test -z "$deplibs_check_method" && deplibs_check_method=unknown
10677
10678
10679
10680+
10681+
10682+
10683+
10684+
10685+
10686+
10687+
10688+
10689+
10690+if test -n "$ac_tool_prefix"; then
10691+ # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10692+set dummy ${ac_tool_prefix}dlltool; ac_word=$2
10693+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10694+$as_echo_n "checking for $ac_word... " >&6; }
10695+if ${ac_cv_prog_DLLTOOL+:} false; then :
10696+ $as_echo_n "(cached) " >&6
10697+else
10698+ if test -n "$DLLTOOL"; then
10699+ ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10700+else
10701+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10702+for as_dir in $PATH
10703+do
10704+ IFS=$as_save_IFS
10705+ test -z "$as_dir" && as_dir=.
10706+ for ac_exec_ext in '' $ac_executable_extensions; do
10707+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10708+ ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10709+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10710+ break 2
10711+ fi
10712+done
10713+ done
10714+IFS=$as_save_IFS
10715+
10716+fi
10717+fi
10718+DLLTOOL=$ac_cv_prog_DLLTOOL
10719+if test -n "$DLLTOOL"; then
10720+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10721+$as_echo "$DLLTOOL" >&6; }
10722+else
10723+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10724+$as_echo "no" >&6; }
10725+fi
10726+
10727+
10728+fi
10729+if test -z "$ac_cv_prog_DLLTOOL"; then
10730+ ac_ct_DLLTOOL=$DLLTOOL
10731+ # Extract the first word of "dlltool", so it can be a program name with args.
10732+set dummy dlltool; ac_word=$2
10733+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10734+$as_echo_n "checking for $ac_word... " >&6; }
10735+if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
10736+ $as_echo_n "(cached) " >&6
10737+else
10738+ if test -n "$ac_ct_DLLTOOL"; then
10739+ ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10740+else
10741+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10742+for as_dir in $PATH
10743+do
10744+ IFS=$as_save_IFS
10745+ test -z "$as_dir" && as_dir=.
10746+ for ac_exec_ext in '' $ac_executable_extensions; do
10747+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10748+ ac_cv_prog_ac_ct_DLLTOOL="dlltool"
10749+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10750+ break 2
10751+ fi
10752+done
10753+ done
10754+IFS=$as_save_IFS
10755+
10756+fi
10757+fi
10758+ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10759+if test -n "$ac_ct_DLLTOOL"; then
10760+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
10761+$as_echo "$ac_ct_DLLTOOL" >&6; }
10762+else
10763+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10764+$as_echo "no" >&6; }
10765+fi
10766+
10767+ if test "x$ac_ct_DLLTOOL" = x; then
10768+ DLLTOOL="false"
10769+ else
10770+ case $cross_compiling:$ac_tool_warned in
10771+yes:)
10772+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10773+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10774+ac_tool_warned=yes ;;
10775+esac
10776+ DLLTOOL=$ac_ct_DLLTOOL
10777+ fi
10778+else
10779+ DLLTOOL="$ac_cv_prog_DLLTOOL"
10780+fi
10781+
10782+test -z "$DLLTOOL" && DLLTOOL=dlltool
10783+
10784+
10785+
10786+
10787+
10788+
10789+
10790+
10791+
10792+
10793+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
10794+$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
10795+if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
10796+ $as_echo_n "(cached) " >&6
10797+else
10798+ lt_cv_sharedlib_from_linklib_cmd='unknown'
10799+
10800+case $host_os in
10801+cygwin* | mingw* | pw32* | cegcc*)
10802+ # two different shell functions defined in ltmain.sh
10803+ # decide which to use based on capabilities of $DLLTOOL
10804+ case `$DLLTOOL --help 2>&1` in
10805+ *--identify-strict*)
10806+ lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
10807+ ;;
10808+ *)
10809+ lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
10810+ ;;
10811+ esac
10812+ ;;
10813+*)
10814+ # fallback: assume linklib IS sharedlib
10815+ lt_cv_sharedlib_from_linklib_cmd="$ECHO"
10816+ ;;
10817+esac
10818+
10819+fi
10820+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
10821+$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
10822+sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
10823+test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
10824+
10825+
10826+
10827+
10828+
10829+
10830+
10831 plugin_option=
10832 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
10833 for plugin in $plugin_names; do
10834@@ -7124,8 +7375,10 @@ for plugin in $plugin_names; do
10835 done
10836
10837 if test -n "$ac_tool_prefix"; then
10838- # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
10839-set dummy ${ac_tool_prefix}ar; ac_word=$2
10840+ for ac_prog in ar
10841+ do
10842+ # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10843+set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10845 $as_echo_n "checking for $ac_word... " >&6; }
10846 if ${ac_cv_prog_AR+:} false; then :
10847@@ -7141,7 +7394,7 @@ do
10848 test -z "$as_dir" && as_dir=.
10849 for ac_exec_ext in '' $ac_executable_extensions; do
10850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10851- ac_cv_prog_AR="${ac_tool_prefix}ar"
10852+ ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
10853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10854 break 2
10855 fi
10856@@ -7161,11 +7414,15 @@ $as_echo "no" >&6; }
10857 fi
10858
10859
10860+ test -n "$AR" && break
10861+ done
10862 fi
10863-if test -z "$ac_cv_prog_AR"; then
10864+if test -z "$AR"; then
10865 ac_ct_AR=$AR
10866- # Extract the first word of "ar", so it can be a program name with args.
10867-set dummy ar; ac_word=$2
10868+ for ac_prog in ar
10869+do
10870+ # Extract the first word of "$ac_prog", so it can be a program name with args.
10871+set dummy $ac_prog; ac_word=$2
10872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10873 $as_echo_n "checking for $ac_word... " >&6; }
10874 if ${ac_cv_prog_ac_ct_AR+:} false; then :
10875@@ -7181,7 +7438,7 @@ do
10876 test -z "$as_dir" && as_dir=.
10877 for ac_exec_ext in '' $ac_executable_extensions; do
10878 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10879- ac_cv_prog_ac_ct_AR="ar"
10880+ ac_cv_prog_ac_ct_AR="$ac_prog"
10881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10882 break 2
10883 fi
10884@@ -7200,6 +7457,10 @@ else
10885 $as_echo "no" >&6; }
10886 fi
10887
10888+
10889+ test -n "$ac_ct_AR" && break
10890+done
10891+
10892 if test "x$ac_ct_AR" = x; then
10893 AR="false"
10894 else
10895@@ -7211,25 +7472,19 @@ ac_tool_warned=yes ;;
10896 esac
10897 AR=$ac_ct_AR
10898 fi
10899-else
10900- AR="$ac_cv_prog_AR"
10901 fi
10902
10903-test -z "$AR" && AR=ar
10904-if test -n "$plugin_option"; then
10905- if $AR --help 2>&1 | grep -q "\--plugin"; then
10906- touch conftest.c
10907- $AR $plugin_option rc conftest.a conftest.c
10908- if test "$?" != 0; then
10909- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
10910+ touch conftest.c
10911+ $AR $plugin_option rc conftest.a conftest.c
10912+ if test "$?" != 0; then
10913+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
10914 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
10915- else
10916- AR="$AR $plugin_option"
10917- fi
10918- rm -f conftest.*
10919+ else
10920+ AR="$AR $plugin_option"
10921 fi
10922-fi
10923-test -z "$AR_FLAGS" && AR_FLAGS=cru
10924+ rm -f conftest.*
10925+: ${AR=ar}
10926+: ${AR_FLAGS=cru}
10927
10928
10929
10930@@ -7241,6 +7496,64 @@ test -z "$AR_FLAGS" && AR_FLAGS=cru
10931
10932
10933
10934+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
10935+$as_echo_n "checking for archiver @FILE support... " >&6; }
10936+if ${lt_cv_ar_at_file+:} false; then :
10937+ $as_echo_n "(cached) " >&6
10938+else
10939+ lt_cv_ar_at_file=no
10940+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10941+/* end confdefs.h. */
10942+
10943+int
10944+main ()
10945+{
10946+
10947+ ;
10948+ return 0;
10949+}
10950+_ACEOF
10951+if ac_fn_c_try_compile "$LINENO"; then :
10952+ echo conftest.$ac_objext > conftest.lst
10953+ lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
10954+ { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10955+ (eval $lt_ar_try) 2>&5
10956+ ac_status=$?
10957+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10958+ test $ac_status = 0; }
10959+ if test "$ac_status" -eq 0; then
10960+ # Ensure the archiver fails upon bogus file names.
10961+ rm -f conftest.$ac_objext libconftest.a
10962+ { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10963+ (eval $lt_ar_try) 2>&5
10964+ ac_status=$?
10965+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10966+ test $ac_status = 0; }
10967+ if test "$ac_status" -ne 0; then
10968+ lt_cv_ar_at_file=@
10969+ fi
10970+ fi
10971+ rm -f conftest.* libconftest.a
10972+
10973+fi
10974+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10975+
10976+fi
10977+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
10978+$as_echo "$lt_cv_ar_at_file" >&6; }
10979+
10980+if test "x$lt_cv_ar_at_file" = xno; then
10981+ archiver_list_spec=
10982+else
10983+ archiver_list_spec=$lt_cv_ar_at_file
10984+fi
10985+
10986+
10987+
10988+
10989+
10990+
10991+
10992 if test -n "$ac_tool_prefix"; then
10993 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10994 set dummy ${ac_tool_prefix}strip; ac_word=$2
10995@@ -7580,8 +7893,8 @@ esac
10996 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10997
10998 # Transform an extracted symbol line into symbol name and symbol address
10999-lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
11000-lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
11001+lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
11002+lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
11003
11004 # Handle CRLF in mingw tool chain
11005 opt_cr=
11006@@ -7617,6 +7930,7 @@ for ac_symprfx in "" "_"; do
11007 else
11008 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
11009 fi
11010+ lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
11011
11012 # Check to see that the pipe works correctly.
11013 pipe_works=no
11014@@ -7658,6 +7972,18 @@ _LT_EOF
11015 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
11016 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
11017 cat <<_LT_EOF > conftest.$ac_ext
11018+/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
11019+#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
11020+/* DATA imports from DLLs on WIN32 con't be const, because runtime
11021+ relocations are performed -- see ld's documentation on pseudo-relocs. */
11022+# define LT_DLSYM_CONST
11023+#elif defined(__osf__)
11024+/* This system does not cope well with relocations in const data. */
11025+# define LT_DLSYM_CONST
11026+#else
11027+# define LT_DLSYM_CONST const
11028+#endif
11029+
11030 #ifdef __cplusplus
11031 extern "C" {
11032 #endif
11033@@ -7669,7 +7995,7 @@ _LT_EOF
11034 cat <<_LT_EOF >> conftest.$ac_ext
11035
11036 /* The mapping between symbol names and symbols. */
11037-const struct {
11038+LT_DLSYM_CONST struct {
11039 const char *name;
11040 void *address;
11041 }
11042@@ -7695,8 +8021,8 @@ static const void *lt_preloaded_setup() {
11043 _LT_EOF
11044 # Now try linking the two files.
11045 mv conftest.$ac_objext conftstm.$ac_objext
11046- lt_save_LIBS="$LIBS"
11047- lt_save_CFLAGS="$CFLAGS"
11048+ lt_globsym_save_LIBS=$LIBS
11049+ lt_globsym_save_CFLAGS=$CFLAGS
11050 LIBS="conftstm.$ac_objext"
11051 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11052 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11053@@ -7706,8 +8032,8 @@ _LT_EOF
11054 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
11055 pipe_works=yes
11056 fi
11057- LIBS="$lt_save_LIBS"
11058- CFLAGS="$lt_save_CFLAGS"
11059+ LIBS=$lt_globsym_save_LIBS
11060+ CFLAGS=$lt_globsym_save_CFLAGS
11061 else
11062 echo "cannot find nm_test_func in $nlist" >&5
11063 fi
11064@@ -7744,6 +8070,13 @@ else
11065 $as_echo "ok" >&6; }
11066 fi
11067
11068+# Response file support.
11069+if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11070+ nm_file_list_spec='@'
11071+elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
11072+ nm_file_list_spec='@'
11073+fi
11074+
11075
11076
11077
11078@@ -7763,6 +8096,48 @@ fi
11079
11080
11081
11082+
11083+
11084+
11085+
11086+
11087+
11088+
11089+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
11090+$as_echo_n "checking for sysroot... " >&6; }
11091+
11092+# Check whether --with-libtool-sysroot was given.
11093+if test "${with_libtool_sysroot+set}" = set; then :
11094+ withval=$with_libtool_sysroot;
11095+else
11096+ with_libtool_sysroot=no
11097+fi
11098+
11099+
11100+lt_sysroot=
11101+case ${with_libtool_sysroot} in #(
11102+ yes)
11103+ if test "$GCC" = yes; then
11104+ lt_sysroot=`$CC --print-sysroot 2>/dev/null`
11105+ fi
11106+ ;; #(
11107+ /*)
11108+ lt_sysroot=`echo "$with_libtool_sysroot" | sed -e "$sed_quote_subst"`
11109+ ;; #(
11110+ no|'')
11111+ ;; #(
11112+ *)
11113+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_libtool_sysroot}" >&5
11114+$as_echo "${with_libtool_sysroot}" >&6; }
11115+ as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
11116+ ;;
11117+esac
11118+
11119+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
11120+$as_echo "${lt_sysroot:-no}" >&6; }
11121+
11122+
11123+
11124
11125
11126 # Check whether --enable-libtool-lock was given.
11127@@ -7971,6 +8346,123 @@ esac
11128
11129 need_locks="$enable_libtool_lock"
11130
11131+if test -n "$ac_tool_prefix"; then
11132+ # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
11133+set dummy ${ac_tool_prefix}mt; ac_word=$2
11134+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11135+$as_echo_n "checking for $ac_word... " >&6; }
11136+if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
11137+ $as_echo_n "(cached) " >&6
11138+else
11139+ if test -n "$MANIFEST_TOOL"; then
11140+ ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
11141+else
11142+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11143+for as_dir in $PATH
11144+do
11145+ IFS=$as_save_IFS
11146+ test -z "$as_dir" && as_dir=.
11147+ for ac_exec_ext in '' $ac_executable_extensions; do
11148+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11149+ ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
11150+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11151+ break 2
11152+ fi
11153+done
11154+ done
11155+IFS=$as_save_IFS
11156+
11157+fi
11158+fi
11159+MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
11160+if test -n "$MANIFEST_TOOL"; then
11161+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
11162+$as_echo "$MANIFEST_TOOL" >&6; }
11163+else
11164+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11165+$as_echo "no" >&6; }
11166+fi
11167+
11168+
11169+fi
11170+if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
11171+ ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
11172+ # Extract the first word of "mt", so it can be a program name with args.
11173+set dummy mt; ac_word=$2
11174+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11175+$as_echo_n "checking for $ac_word... " >&6; }
11176+if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
11177+ $as_echo_n "(cached) " >&6
11178+else
11179+ if test -n "$ac_ct_MANIFEST_TOOL"; then
11180+ ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
11181+else
11182+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11183+for as_dir in $PATH
11184+do
11185+ IFS=$as_save_IFS
11186+ test -z "$as_dir" && as_dir=.
11187+ for ac_exec_ext in '' $ac_executable_extensions; do
11188+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11189+ ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
11190+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11191+ break 2
11192+ fi
11193+done
11194+ done
11195+IFS=$as_save_IFS
11196+
11197+fi
11198+fi
11199+ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
11200+if test -n "$ac_ct_MANIFEST_TOOL"; then
11201+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
11202+$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
11203+else
11204+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11205+$as_echo "no" >&6; }
11206+fi
11207+
11208+ if test "x$ac_ct_MANIFEST_TOOL" = x; then
11209+ MANIFEST_TOOL=":"
11210+ else
11211+ case $cross_compiling:$ac_tool_warned in
11212+yes:)
11213+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11214+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11215+ac_tool_warned=yes ;;
11216+esac
11217+ MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
11218+ fi
11219+else
11220+ MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
11221+fi
11222+
11223+test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
11224+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
11225+$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
11226+if ${lt_cv_path_mainfest_tool+:} false; then :
11227+ $as_echo_n "(cached) " >&6
11228+else
11229+ lt_cv_path_mainfest_tool=no
11230+ echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
11231+ $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
11232+ cat conftest.err >&5
11233+ if $GREP 'Manifest Tool' conftest.out > /dev/null; then
11234+ lt_cv_path_mainfest_tool=yes
11235+ fi
11236+ rm -f conftest*
11237+fi
11238+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
11239+$as_echo "$lt_cv_path_mainfest_tool" >&6; }
11240+if test "x$lt_cv_path_mainfest_tool" != xyes; then
11241+ MANIFEST_TOOL=:
11242+fi
11243+
11244+
11245+
11246+
11247+
11248
11249 case $host_os in
11250 rhapsody* | darwin*)
11251@@ -8534,6 +9026,8 @@ _LT_EOF
11252 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
11253 echo "$AR cru libconftest.a conftest.o" >&5
11254 $AR cru libconftest.a conftest.o 2>&5
11255+ echo "$RANLIB libconftest.a" >&5
11256+ $RANLIB libconftest.a 2>&5
11257 cat > conftest.c << _LT_EOF
11258 int main() { return 0;}
11259 _LT_EOF
11260@@ -8604,6 +9098,16 @@ done
11261
11262
11263
11264+func_stripname_cnf ()
11265+{
11266+ case ${2} in
11267+ .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
11268+ *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
11269+ esac
11270+} # func_stripname_cnf
11271+
11272+
11273+
11274
11275
11276 # Set options
11277@@ -9119,8 +9623,6 @@ fi
11278 lt_prog_compiler_pic=
11279 lt_prog_compiler_static=
11280
11281-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11282-$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11283
11284 if test "$GCC" = yes; then
11285 lt_prog_compiler_wl='-Wl,'
11286@@ -9286,6 +9788,12 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11287 lt_prog_compiler_pic='--shared'
11288 lt_prog_compiler_static='--static'
11289 ;;
11290+ nagfor*)
11291+ # NAG Fortran compiler
11292+ lt_prog_compiler_wl='-Wl,-Wl,,'
11293+ lt_prog_compiler_pic='-PIC'
11294+ lt_prog_compiler_static='-Bstatic'
11295+ ;;
11296 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11297 # Portland Group compilers (*not* the Pentium gcc compiler,
11298 # which looks to be a dead project)
11299@@ -9348,7 +9856,7 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11300 lt_prog_compiler_pic='-KPIC'
11301 lt_prog_compiler_static='-Bstatic'
11302 case $cc_basename in
11303- f77* | f90* | f95*)
11304+ f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
11305 lt_prog_compiler_wl='-Qoption ld ';;
11306 *)
11307 lt_prog_compiler_wl='-Wl,';;
11308@@ -9405,13 +9913,17 @@ case $host_os in
11309 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11310 ;;
11311 esac
11312-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
11313-$as_echo "$lt_prog_compiler_pic" >&6; }
11314-
11315-
11316-
11317-
11318
11319+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11320+$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11321+if ${lt_cv_prog_compiler_pic+:} false; then :
11322+ $as_echo_n "(cached) " >&6
11323+else
11324+ lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
11325+fi
11326+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
11327+$as_echo "$lt_cv_prog_compiler_pic" >&6; }
11328+lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
11329
11330 #
11331 # Check to make sure the PIC flag actually works.
11332@@ -9472,6 +9984,11 @@ fi
11333
11334
11335
11336+
11337+
11338+
11339+
11340+
11341 #
11342 # Check to make sure the static flag actually works.
11343 #
11344@@ -9822,7 +10339,8 @@ _LT_EOF
11345 allow_undefined_flag=unsupported
11346 always_export_symbols=no
11347 enable_shared_with_static_runtimes=yes
11348- export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11349+ export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
11350+ exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11351
11352 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11353 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11354@@ -9921,12 +10439,12 @@ _LT_EOF
11355 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11356 hardcode_libdir_flag_spec=
11357 hardcode_libdir_flag_spec_ld='-rpath $libdir'
11358- archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
11359+ archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11360 if test "x$supports_anon_versioning" = xyes; then
11361 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11362 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11363 echo "local: *; };" >> $output_objdir/$libname.ver~
11364- $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11365+ $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11366 fi
11367 ;;
11368 esac
11369@@ -9940,8 +10458,8 @@ _LT_EOF
11370 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11371 wlarc=
11372 else
11373- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11374- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11375+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11376+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11377 fi
11378 ;;
11379
11380@@ -9959,8 +10477,8 @@ _LT_EOF
11381
11382 _LT_EOF
11383 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11384- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11385- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11386+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11387+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11388 else
11389 ld_shlibs=no
11390 fi
11391@@ -10006,8 +10524,8 @@ _LT_EOF
11392
11393 *)
11394 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11395- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11396- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11397+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11398+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11399 else
11400 ld_shlibs=no
11401 fi
11402@@ -10137,7 +10655,13 @@ _LT_EOF
11403 allow_undefined_flag='-berok'
11404 # Determine the default libpath from the value encoded in an
11405 # empty executable.
11406- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11407+ if test "${lt_cv_aix_libpath+set}" = set; then
11408+ aix_libpath=$lt_cv_aix_libpath
11409+else
11410+ if ${lt_cv_aix_libpath_+:} false; then :
11411+ $as_echo_n "(cached) " >&6
11412+else
11413+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11414 /* end confdefs.h. */
11415
11416 int
11417@@ -10150,22 +10674,29 @@ main ()
11418 _ACEOF
11419 if ac_fn_c_try_link "$LINENO"; then :
11420
11421-lt_aix_libpath_sed='
11422- /Import File Strings/,/^$/ {
11423- /^0/ {
11424- s/^0 *\(.*\)$/\1/
11425- p
11426- }
11427- }'
11428-aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11429-# Check for a 64-bit object if we didn't find anything.
11430-if test -z "$aix_libpath"; then
11431- aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11432-fi
11433+ lt_aix_libpath_sed='
11434+ /Import File Strings/,/^$/ {
11435+ /^0/ {
11436+ s/^0 *\([^ ]*\) *$/\1/
11437+ p
11438+ }
11439+ }'
11440+ lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11441+ # Check for a 64-bit object if we didn't find anything.
11442+ if test -z "$lt_cv_aix_libpath_"; then
11443+ lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11444+ fi
11445 fi
11446 rm -f core conftest.err conftest.$ac_objext \
11447 conftest$ac_exeext conftest.$ac_ext
11448-if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11449+ if test -z "$lt_cv_aix_libpath_"; then
11450+ lt_cv_aix_libpath_="/usr/lib:/lib"
11451+ fi
11452+
11453+fi
11454+
11455+ aix_libpath=$lt_cv_aix_libpath_
11456+fi
11457
11458 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11459 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11460@@ -10177,7 +10708,13 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11461 else
11462 # Determine the default libpath from the value encoded in an
11463 # empty executable.
11464- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11465+ if test "${lt_cv_aix_libpath+set}" = set; then
11466+ aix_libpath=$lt_cv_aix_libpath
11467+else
11468+ if ${lt_cv_aix_libpath_+:} false; then :
11469+ $as_echo_n "(cached) " >&6
11470+else
11471+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11472 /* end confdefs.h. */
11473
11474 int
11475@@ -10190,22 +10727,29 @@ main ()
11476 _ACEOF
11477 if ac_fn_c_try_link "$LINENO"; then :
11478
11479-lt_aix_libpath_sed='
11480- /Import File Strings/,/^$/ {
11481- /^0/ {
11482- s/^0 *\(.*\)$/\1/
11483- p
11484- }
11485- }'
11486-aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11487-# Check for a 64-bit object if we didn't find anything.
11488-if test -z "$aix_libpath"; then
11489- aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11490-fi
11491+ lt_aix_libpath_sed='
11492+ /Import File Strings/,/^$/ {
11493+ /^0/ {
11494+ s/^0 *\([^ ]*\) *$/\1/
11495+ p
11496+ }
11497+ }'
11498+ lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11499+ # Check for a 64-bit object if we didn't find anything.
11500+ if test -z "$lt_cv_aix_libpath_"; then
11501+ lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11502+ fi
11503 fi
11504 rm -f core conftest.err conftest.$ac_objext \
11505 conftest$ac_exeext conftest.$ac_ext
11506-if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11507+ if test -z "$lt_cv_aix_libpath_"; then
11508+ lt_cv_aix_libpath_="/usr/lib:/lib"
11509+ fi
11510+
11511+fi
11512+
11513+ aix_libpath=$lt_cv_aix_libpath_
11514+fi
11515
11516 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11517 # Warning - without using the other run time loading flags,
11518@@ -10250,20 +10794,63 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11519 # Microsoft Visual C++.
11520 # hardcode_libdir_flag_spec is actually meaningless, as there is
11521 # no search path for DLLs.
11522- hardcode_libdir_flag_spec=' '
11523- allow_undefined_flag=unsupported
11524- # Tell ltmain to make .lib files, not .a files.
11525- libext=lib
11526- # Tell ltmain to make .dll files, not .so files.
11527- shrext_cmds=".dll"
11528- # FIXME: Setting linknames here is a bad hack.
11529- archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11530- # The linker will automatically build a .lib file if we build a DLL.
11531- old_archive_from_new_cmds='true'
11532- # FIXME: Should let the user specify the lib program.
11533- old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11534- fix_srcfile_path='`cygpath -w "$srcfile"`'
11535- enable_shared_with_static_runtimes=yes
11536+ case $cc_basename in
11537+ cl*)
11538+ # Native MSVC
11539+ hardcode_libdir_flag_spec=' '
11540+ allow_undefined_flag=unsupported
11541+ always_export_symbols=yes
11542+ file_list_spec='@'
11543+ # Tell ltmain to make .lib files, not .a files.
11544+ libext=lib
11545+ # Tell ltmain to make .dll files, not .so files.
11546+ shrext_cmds=".dll"
11547+ # FIXME: Setting linknames here is a bad hack.
11548+ archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
11549+ archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11550+ sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
11551+ else
11552+ sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
11553+ fi~
11554+ $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11555+ linknames='
11556+ # The linker will not automatically build a static lib if we build a DLL.
11557+ # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11558+ enable_shared_with_static_runtimes=yes
11559+ export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11560+ # Don't use ranlib
11561+ old_postinstall_cmds='chmod 644 $oldlib'
11562+ postlink_cmds='lt_outputfile="@OUTPUT@"~
11563+ lt_tool_outputfile="@TOOL_OUTPUT@"~
11564+ case $lt_outputfile in
11565+ *.exe|*.EXE) ;;
11566+ *)
11567+ lt_outputfile="$lt_outputfile.exe"
11568+ lt_tool_outputfile="$lt_tool_outputfile.exe"
11569+ ;;
11570+ esac~
11571+ if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
11572+ $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11573+ $RM "$lt_outputfile.manifest";
11574+ fi'
11575+ ;;
11576+ *)
11577+ # Assume MSVC wrapper
11578+ hardcode_libdir_flag_spec=' '
11579+ allow_undefined_flag=unsupported
11580+ # Tell ltmain to make .lib files, not .a files.
11581+ libext=lib
11582+ # Tell ltmain to make .dll files, not .so files.
11583+ shrext_cmds=".dll"
11584+ # FIXME: Setting linknames here is a bad hack.
11585+ archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11586+ # The linker will automatically build a .lib file if we build a DLL.
11587+ old_archive_from_new_cmds='true'
11588+ # FIXME: Should let the user specify the lib program.
11589+ old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11590+ enable_shared_with_static_runtimes=yes
11591+ ;;
11592+ esac
11593 ;;
11594
11595 darwin* | rhapsody*)
11596@@ -10324,7 +10911,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11597
11598 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11599 freebsd* | dragonfly*)
11600- archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
11601+ archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11602 hardcode_libdir_flag_spec='-R$libdir'
11603 hardcode_direct=yes
11604 hardcode_shlibpath_var=no
11605@@ -10332,7 +10919,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11606
11607 hpux9*)
11608 if test "$GCC" = yes; then
11609- archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11610+ archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11611 else
11612 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11613 fi
11614@@ -10348,7 +10935,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11615
11616 hpux10*)
11617 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11618- archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11619+ archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11620 else
11621 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11622 fi
11623@@ -10372,10 +10959,10 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11624 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11625 ;;
11626 ia64*)
11627- archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11628+ archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11629 ;;
11630 *)
11631- archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11632+ archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11633 ;;
11634 esac
11635 else
11636@@ -10454,23 +11041,36 @@ fi
11637
11638 irix5* | irix6* | nonstopux*)
11639 if test "$GCC" = yes; then
11640- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11641+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11642 # Try to use the -exported_symbol ld option, if it does not
11643 # work, assume that -exports_file does not work either and
11644 # implicitly export all symbols.
11645- save_LDFLAGS="$LDFLAGS"
11646- LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11647- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11648+ # This should be the same for all languages, so no per-tag cache variable.
11649+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11650+$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11651+if ${lt_cv_irix_exported_symbol+:} false; then :
11652+ $as_echo_n "(cached) " >&6
11653+else
11654+ save_LDFLAGS="$LDFLAGS"
11655+ LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11656+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11657 /* end confdefs.h. */
11658-int foo(void) {}
11659+int foo (void) { return 0; }
11660 _ACEOF
11661 if ac_fn_c_try_link "$LINENO"; then :
11662- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
11663-
11664+ lt_cv_irix_exported_symbol=yes
11665+else
11666+ lt_cv_irix_exported_symbol=no
11667 fi
11668 rm -f core conftest.err conftest.$ac_objext \
11669 conftest$ac_exeext conftest.$ac_ext
11670- LDFLAGS="$save_LDFLAGS"
11671+ LDFLAGS="$save_LDFLAGS"
11672+fi
11673+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11674+$as_echo "$lt_cv_irix_exported_symbol" >&6; }
11675+ if test "$lt_cv_irix_exported_symbol" = yes; then
11676+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
11677+ fi
11678 else
11679 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
11680 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
11681@@ -10555,7 +11155,7 @@ rm -f core conftest.err conftest.$ac_objext \
11682 osf4* | osf5*) # as osf3* with the addition of -msym flag
11683 if test "$GCC" = yes; then
11684 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11685- archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11686+ archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11687 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11688 else
11689 allow_undefined_flag=' -expect_unresolved \*'
11690@@ -10574,9 +11174,9 @@ rm -f core conftest.err conftest.$ac_objext \
11691 no_undefined_flag=' -z defs'
11692 if test "$GCC" = yes; then
11693 wlarc='${wl}'
11694- archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11695+ archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11696 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11697- $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11698+ $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11699 else
11700 case `$CC -V 2>&1` in
11701 *"Compilers 5.0"*)
11702@@ -11152,8 +11752,9 @@ cygwin* | mingw* | pw32* | cegcc*)
11703 need_version=no
11704 need_lib_prefix=no
11705
11706- case $GCC,$host_os in
11707- yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11708+ case $GCC,$cc_basename in
11709+ yes,*)
11710+ # gcc
11711 library_names_spec='$libname.dll.a'
11712 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11713 postinstall_cmds='base_file=`basename \${file}`~
11714@@ -11186,13 +11787,71 @@ cygwin* | mingw* | pw32* | cegcc*)
11715 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11716 ;;
11717 esac
11718+ dynamic_linker='Win32 ld.exe'
11719+ ;;
11720+
11721+ *,cl*)
11722+ # Native MSVC
11723+ libname_spec='$name'
11724+ soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11725+ library_names_spec='${libname}.dll.lib'
11726+
11727+ case $build_os in
11728+ mingw*)
11729+ sys_lib_search_path_spec=
11730+ lt_save_ifs=$IFS
11731+ IFS=';'
11732+ for lt_path in $LIB
11733+ do
11734+ IFS=$lt_save_ifs
11735+ # Let DOS variable expansion print the short 8.3 style file name.
11736+ lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11737+ sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11738+ done
11739+ IFS=$lt_save_ifs
11740+ # Convert to MSYS style.
11741+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11742+ ;;
11743+ cygwin*)
11744+ # Convert to unix form, then to dos form, then back to unix form
11745+ # but this time dos style (no spaces!) so that the unix form looks
11746+ # like /cygdrive/c/PROGRA~1:/cygdr...
11747+ sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11748+ sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11749+ sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11750+ ;;
11751+ *)
11752+ sys_lib_search_path_spec="$LIB"
11753+ if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11754+ # It is most probably a Windows format PATH.
11755+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11756+ else
11757+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11758+ fi
11759+ # FIXME: find the short name or the path components, as spaces are
11760+ # common. (e.g. "Program Files" -> "PROGRA~1")
11761+ ;;
11762+ esac
11763+
11764+ # DLL is installed to $(libdir)/../bin by postinstall_cmds
11765+ postinstall_cmds='base_file=`basename \${file}`~
11766+ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11767+ dldir=$destdir/`dirname \$dlpath`~
11768+ test -d \$dldir || mkdir -p \$dldir~
11769+ $install_prog $dir/$dlname \$dldir/$dlname'
11770+ postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11771+ dlpath=$dir/\$dldll~
11772+ $RM \$dlpath'
11773+ shlibpath_overrides_runpath=yes
11774+ dynamic_linker='Win32 link.exe'
11775 ;;
11776
11777 *)
11778+ # Assume MSVC wrapper
11779 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11780+ dynamic_linker='Win32 ld.exe'
11781 ;;
11782 esac
11783- dynamic_linker='Win32 ld.exe'
11784 # FIXME: first we should search . and the directory the executable is in
11785 shlibpath_var=PATH
11786 ;;
11787@@ -12094,7 +12753,7 @@ else
11788 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11789 lt_status=$lt_dlunknown
11790 cat > conftest.$ac_ext <<_LT_EOF
11791-#line 12097 "configure"
11792+#line $LINENO "configure"
11793 #include "confdefs.h"
11794
11795 #if HAVE_DLFCN_H
11796@@ -12138,10 +12797,10 @@ else
11797 /* When -fvisbility=hidden is used, assume the code has been annotated
11798 correspondingly for the symbols needed. */
11799 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11800-void fnord () __attribute__((visibility("default")));
11801+int fnord () __attribute__((visibility("default")));
11802 #endif
11803
11804-void fnord () { int i=42; }
11805+int fnord () { return 42; }
11806 int main ()
11807 {
11808 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11809@@ -12200,7 +12859,7 @@ else
11810 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11811 lt_status=$lt_dlunknown
11812 cat > conftest.$ac_ext <<_LT_EOF
11813-#line 12203 "configure"
11814+#line $LINENO "configure"
11815 #include "confdefs.h"
11816
11817 #if HAVE_DLFCN_H
11818@@ -12244,10 +12903,10 @@ else
11819 /* When -fvisbility=hidden is used, assume the code has been annotated
11820 correspondingly for the symbols needed. */
11821 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11822-void fnord () __attribute__((visibility("default")));
11823+int fnord () __attribute__((visibility("default")));
11824 #endif
11825
11826-void fnord () { int i=42; }
11827+int fnord () { return 42; }
11828 int main ()
11829 {
11830 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11831@@ -12639,6 +13298,7 @@ $RM -r conftest*
11832
11833 # Allow CC to be a program name with arguments.
11834 lt_save_CC=$CC
11835+ lt_save_CFLAGS=$CFLAGS
11836 lt_save_LD=$LD
11837 lt_save_GCC=$GCC
11838 GCC=$GXX
11839@@ -12656,6 +13316,7 @@ $RM -r conftest*
11840 fi
11841 test -z "${LDCXX+set}" || LD=$LDCXX
11842 CC=${CXX-"c++"}
11843+ CFLAGS=$CXXFLAGS
11844 compiler=$CC
11845 compiler_CXX=$CC
11846 for cc_temp in $compiler""; do
11847@@ -12938,7 +13599,13 @@ $as_echo_n "checking whether the $compiler linker ($LD) supports shared librarie
11848 allow_undefined_flag_CXX='-berok'
11849 # Determine the default libpath from the value encoded in an empty
11850 # executable.
11851- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11852+ if test "${lt_cv_aix_libpath+set}" = set; then
11853+ aix_libpath=$lt_cv_aix_libpath
11854+else
11855+ if ${lt_cv_aix_libpath__CXX+:} false; then :
11856+ $as_echo_n "(cached) " >&6
11857+else
11858+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11859 /* end confdefs.h. */
11860
11861 int
11862@@ -12951,22 +13618,29 @@ main ()
11863 _ACEOF
11864 if ac_fn_cxx_try_link "$LINENO"; then :
11865
11866-lt_aix_libpath_sed='
11867- /Import File Strings/,/^$/ {
11868- /^0/ {
11869- s/^0 *\(.*\)$/\1/
11870- p
11871- }
11872- }'
11873-aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11874-# Check for a 64-bit object if we didn't find anything.
11875-if test -z "$aix_libpath"; then
11876- aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11877-fi
11878+ lt_aix_libpath_sed='
11879+ /Import File Strings/,/^$/ {
11880+ /^0/ {
11881+ s/^0 *\([^ ]*\) *$/\1/
11882+ p
11883+ }
11884+ }'
11885+ lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11886+ # Check for a 64-bit object if we didn't find anything.
11887+ if test -z "$lt_cv_aix_libpath__CXX"; then
11888+ lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11889+ fi
11890 fi
11891 rm -f core conftest.err conftest.$ac_objext \
11892 conftest$ac_exeext conftest.$ac_ext
11893-if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11894+ if test -z "$lt_cv_aix_libpath__CXX"; then
11895+ lt_cv_aix_libpath__CXX="/usr/lib:/lib"
11896+ fi
11897+
11898+fi
11899+
11900+ aix_libpath=$lt_cv_aix_libpath__CXX
11901+fi
11902
11903 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11904
11905@@ -12979,7 +13653,13 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11906 else
11907 # Determine the default libpath from the value encoded in an
11908 # empty executable.
11909- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11910+ if test "${lt_cv_aix_libpath+set}" = set; then
11911+ aix_libpath=$lt_cv_aix_libpath
11912+else
11913+ if ${lt_cv_aix_libpath__CXX+:} false; then :
11914+ $as_echo_n "(cached) " >&6
11915+else
11916+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11917 /* end confdefs.h. */
11918
11919 int
11920@@ -12992,22 +13672,29 @@ main ()
11921 _ACEOF
11922 if ac_fn_cxx_try_link "$LINENO"; then :
11923
11924-lt_aix_libpath_sed='
11925- /Import File Strings/,/^$/ {
11926- /^0/ {
11927- s/^0 *\(.*\)$/\1/
11928- p
11929- }
11930- }'
11931-aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11932-# Check for a 64-bit object if we didn't find anything.
11933-if test -z "$aix_libpath"; then
11934- aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11935-fi
11936+ lt_aix_libpath_sed='
11937+ /Import File Strings/,/^$/ {
11938+ /^0/ {
11939+ s/^0 *\([^ ]*\) *$/\1/
11940+ p
11941+ }
11942+ }'
11943+ lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11944+ # Check for a 64-bit object if we didn't find anything.
11945+ if test -z "$lt_cv_aix_libpath__CXX"; then
11946+ lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11947+ fi
11948 fi
11949 rm -f core conftest.err conftest.$ac_objext \
11950 conftest$ac_exeext conftest.$ac_ext
11951-if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11952+ if test -z "$lt_cv_aix_libpath__CXX"; then
11953+ lt_cv_aix_libpath__CXX="/usr/lib:/lib"
11954+ fi
11955+
11956+fi
11957+
11958+ aix_libpath=$lt_cv_aix_libpath__CXX
11959+fi
11960
11961 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11962 # Warning - without using the other run time loading flags,
11963@@ -13050,29 +13737,75 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11964 ;;
11965
11966 cygwin* | mingw* | pw32* | cegcc*)
11967- # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11968- # as there is no search path for DLLs.
11969- hardcode_libdir_flag_spec_CXX='-L$libdir'
11970- export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
11971- allow_undefined_flag_CXX=unsupported
11972- always_export_symbols_CXX=no
11973- enable_shared_with_static_runtimes_CXX=yes
11974-
11975- if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11976- archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11977- # If the export-symbols file already is a .def file (1st line
11978- # is EXPORTS), use it as is; otherwise, prepend...
11979- archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11980- cp $export_symbols $output_objdir/$soname.def;
11981- else
11982- echo EXPORTS > $output_objdir/$soname.def;
11983- cat $export_symbols >> $output_objdir/$soname.def;
11984- fi~
11985- $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11986- else
11987- ld_shlibs_CXX=no
11988- fi
11989- ;;
11990+ case $GXX,$cc_basename in
11991+ ,cl* | no,cl*)
11992+ # Native MSVC
11993+ # hardcode_libdir_flag_spec is actually meaningless, as there is
11994+ # no search path for DLLs.
11995+ hardcode_libdir_flag_spec_CXX=' '
11996+ allow_undefined_flag_CXX=unsupported
11997+ always_export_symbols_CXX=yes
11998+ file_list_spec_CXX='@'
11999+ # Tell ltmain to make .lib files, not .a files.
12000+ libext=lib
12001+ # Tell ltmain to make .dll files, not .so files.
12002+ shrext_cmds=".dll"
12003+ # FIXME: Setting linknames here is a bad hack.
12004+ archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12005+ archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12006+ $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12007+ else
12008+ $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12009+ fi~
12010+ $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12011+ linknames='
12012+ # The linker will not automatically build a static lib if we build a DLL.
12013+ # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
12014+ enable_shared_with_static_runtimes_CXX=yes
12015+ # Don't use ranlib
12016+ old_postinstall_cmds_CXX='chmod 644 $oldlib'
12017+ postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
12018+ lt_tool_outputfile="@TOOL_OUTPUT@"~
12019+ case $lt_outputfile in
12020+ *.exe|*.EXE) ;;
12021+ *)
12022+ lt_outputfile="$lt_outputfile.exe"
12023+ lt_tool_outputfile="$lt_tool_outputfile.exe"
12024+ ;;
12025+ esac~
12026+ func_to_tool_file "$lt_outputfile"~
12027+ if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12028+ $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12029+ $RM "$lt_outputfile.manifest";
12030+ fi'
12031+ ;;
12032+ *)
12033+ # g++
12034+ # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12035+ # as there is no search path for DLLs.
12036+ hardcode_libdir_flag_spec_CXX='-L$libdir'
12037+ export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12038+ allow_undefined_flag_CXX=unsupported
12039+ always_export_symbols_CXX=no
12040+ enable_shared_with_static_runtimes_CXX=yes
12041+
12042+ if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12043+ archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12044+ # If the export-symbols file already is a .def file (1st line
12045+ # is EXPORTS), use it as is; otherwise, prepend...
12046+ archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12047+ cp $export_symbols $output_objdir/$soname.def;
12048+ else
12049+ echo EXPORTS > $output_objdir/$soname.def;
12050+ cat $export_symbols >> $output_objdir/$soname.def;
12051+ fi~
12052+ $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12053+ else
12054+ ld_shlibs_CXX=no
12055+ fi
12056+ ;;
12057+ esac
12058+ ;;
12059 darwin* | rhapsody*)
12060
12061
12062@@ -13178,7 +13911,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12063 ;;
12064 *)
12065 if test "$GXX" = yes; then
12066- archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12067+ archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12068 else
12069 # FIXME: insert proper C++ library support
12070 ld_shlibs_CXX=no
12071@@ -13249,10 +13982,10 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12072 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12073 ;;
12074 ia64*)
12075- archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12076+ archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12077 ;;
12078 *)
12079- archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12080+ archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12081 ;;
12082 esac
12083 fi
12084@@ -13293,9 +14026,9 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12085 *)
12086 if test "$GXX" = yes; then
12087 if test "$with_gnu_ld" = no; then
12088- archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12089+ archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12090 else
12091- archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
12092+ archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
12093 fi
12094 fi
12095 link_all_deplibs_CXX=yes
12096@@ -13573,7 +14306,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12097 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12098 ;;
12099 *)
12100- archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12101+ archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12102 ;;
12103 esac
12104
12105@@ -13619,7 +14352,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12106
12107 solaris*)
12108 case $cc_basename in
12109- CC*)
12110+ CC* | sunCC*)
12111 # Sun C++ 4.2, 5.x and Centerline C++
12112 archive_cmds_need_lc_CXX=yes
12113 no_undefined_flag_CXX=' -zdefs'
12114@@ -13660,9 +14393,9 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12115 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12116 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12117 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12118- archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12119+ archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12120 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12121- $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12122+ $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12123
12124 # Commands to make compiler produce verbose output that lists
12125 # what "hidden" libraries, object files and flags are used when
12126@@ -13798,6 +14531,13 @@ private:
12127 };
12128 _LT_EOF
12129
12130+
12131+_lt_libdeps_save_CFLAGS=$CFLAGS
12132+case "$CC $CFLAGS " in #(
12133+*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
12134+*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
12135+esac
12136+
12137 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12138 (eval $ac_compile) 2>&5
12139 ac_status=$?
12140@@ -13811,7 +14551,7 @@ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12141 pre_test_object_deps_done=no
12142
12143 for p in `eval "$output_verbose_link_cmd"`; do
12144- case $p in
12145+ case ${prev}${p} in
12146
12147 -L* | -R* | -l*)
12148 # Some compilers place space between "-{L,R}" and the path.
12149@@ -13820,13 +14560,22 @@ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12150 test $p = "-R"; then
12151 prev=$p
12152 continue
12153- else
12154- prev=
12155 fi
12156
12157+ # Expand the sysroot to ease extracting the directories later.
12158+ if test -z "$prev"; then
12159+ case $p in
12160+ -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
12161+ -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
12162+ -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
12163+ esac
12164+ fi
12165+ case $p in
12166+ =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
12167+ esac
12168 if test "$pre_test_object_deps_done" = no; then
12169- case $p in
12170- -L* | -R*)
12171+ case ${prev} in
12172+ -L | -R)
12173 # Internal compiler library paths should come after those
12174 # provided the user. The postdeps already come after the
12175 # user supplied libs so there is no need to process them.
12176@@ -13846,8 +14595,10 @@ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12177 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12178 fi
12179 fi
12180+ prev=
12181 ;;
12182
12183+ *.lto.$objext) ;; # Ignore GCC LTO objects
12184 *.$objext)
12185 # This assumes that the test object file only shows up
12186 # once in the compiler output.
12187@@ -13883,6 +14634,7 @@ else
12188 fi
12189
12190 $RM -f confest.$objext
12191+CFLAGS=$_lt_libdeps_save_CFLAGS
12192
12193 # PORTME: override above test on systems where it is broken
12194 case $host_os in
12195@@ -13918,7 +14670,7 @@ linux*)
12196
12197 solaris*)
12198 case $cc_basename in
12199- CC*)
12200+ CC* | sunCC*)
12201 # The more standards-conforming stlport4 library is
12202 # incompatible with the Cstd library. Avoid specifying
12203 # it if it's in CXXFLAGS. Ignore libCrun as
12204@@ -13983,8 +14735,6 @@ fi
12205 lt_prog_compiler_pic_CXX=
12206 lt_prog_compiler_static_CXX=
12207
12208-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12209-$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12210
12211 # C++ specific cases for pic, static, wl, etc.
12212 if test "$GXX" = yes; then
12213@@ -14089,6 +14839,11 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12214 ;;
12215 esac
12216 ;;
12217+ mingw* | cygwin* | os2* | pw32* | cegcc*)
12218+ # This hack is so that the source file can tell whether it is being
12219+ # built for inclusion in a dll (and should export symbols for example).
12220+ lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12221+ ;;
12222 dgux*)
12223 case $cc_basename in
12224 ec++*)
12225@@ -14241,7 +14996,7 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12226 ;;
12227 solaris*)
12228 case $cc_basename in
12229- CC*)
12230+ CC* | sunCC*)
12231 # Sun C++ 4.2, 5.x and Centerline C++
12232 lt_prog_compiler_pic_CXX='-KPIC'
12233 lt_prog_compiler_static_CXX='-Bstatic'
12234@@ -14306,10 +15061,17 @@ case $host_os in
12235 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12236 ;;
12237 esac
12238-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
12239-$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
12240-
12241
12242+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12243+$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12244+if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
12245+ $as_echo_n "(cached) " >&6
12246+else
12247+ lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
12248+fi
12249+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
12250+$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
12251+lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
12252
12253 #
12254 # Check to make sure the PIC flag actually works.
12255@@ -14367,6 +15129,8 @@ fi
12256
12257
12258
12259+
12260+
12261 #
12262 # Check to make sure the static flag actually works.
12263 #
12264@@ -14544,6 +15308,7 @@ fi
12265 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12266
12267 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12268+ exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12269 case $host_os in
12270 aix[4-9]*)
12271 # If we're using GNU nm, then we don't want the "-C" option.
12272@@ -14558,15 +15323,20 @@ $as_echo_n "checking whether the $compiler linker ($LD) supports shared librarie
12273 ;;
12274 pw32*)
12275 export_symbols_cmds_CXX="$ltdll_cmds"
12276- ;;
12277+ ;;
12278 cygwin* | mingw* | cegcc*)
12279- export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
12280- ;;
12281+ case $cc_basename in
12282+ cl*) ;;
12283+ *)
12284+ export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
12285+ exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
12286+ ;;
12287+ esac
12288+ ;;
12289 *)
12290 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12291- ;;
12292+ ;;
12293 esac
12294- exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12295
12296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12297 $as_echo "$ld_shlibs_CXX" >&6; }
12298@@ -14829,8 +15599,9 @@ cygwin* | mingw* | pw32* | cegcc*)
12299 need_version=no
12300 need_lib_prefix=no
12301
12302- case $GCC,$host_os in
12303- yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
12304+ case $GCC,$cc_basename in
12305+ yes,*)
12306+ # gcc
12307 library_names_spec='$libname.dll.a'
12308 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12309 postinstall_cmds='base_file=`basename \${file}`~
12310@@ -14862,13 +15633,71 @@ cygwin* | mingw* | pw32* | cegcc*)
12311 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12312 ;;
12313 esac
12314+ dynamic_linker='Win32 ld.exe'
12315+ ;;
12316+
12317+ *,cl*)
12318+ # Native MSVC
12319+ libname_spec='$name'
12320+ soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12321+ library_names_spec='${libname}.dll.lib'
12322+
12323+ case $build_os in
12324+ mingw*)
12325+ sys_lib_search_path_spec=
12326+ lt_save_ifs=$IFS
12327+ IFS=';'
12328+ for lt_path in $LIB
12329+ do
12330+ IFS=$lt_save_ifs
12331+ # Let DOS variable expansion print the short 8.3 style file name.
12332+ lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12333+ sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12334+ done
12335+ IFS=$lt_save_ifs
12336+ # Convert to MSYS style.
12337+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12338+ ;;
12339+ cygwin*)
12340+ # Convert to unix form, then to dos form, then back to unix form
12341+ # but this time dos style (no spaces!) so that the unix form looks
12342+ # like /cygdrive/c/PROGRA~1:/cygdr...
12343+ sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12344+ sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12345+ sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12346+ ;;
12347+ *)
12348+ sys_lib_search_path_spec="$LIB"
12349+ if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12350+ # It is most probably a Windows format PATH.
12351+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12352+ else
12353+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12354+ fi
12355+ # FIXME: find the short name or the path components, as spaces are
12356+ # common. (e.g. "Program Files" -> "PROGRA~1")
12357+ ;;
12358+ esac
12359+
12360+ # DLL is installed to $(libdir)/../bin by postinstall_cmds
12361+ postinstall_cmds='base_file=`basename \${file}`~
12362+ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12363+ dldir=$destdir/`dirname \$dlpath`~
12364+ test -d \$dldir || mkdir -p \$dldir~
12365+ $install_prog $dir/$dlname \$dldir/$dlname'
12366+ postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12367+ dlpath=$dir/\$dldll~
12368+ $RM \$dlpath'
12369+ shlibpath_overrides_runpath=yes
12370+ dynamic_linker='Win32 link.exe'
12371 ;;
12372
12373 *)
12374+ # Assume MSVC wrapper
12375 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12376+ dynamic_linker='Win32 ld.exe'
12377 ;;
12378 esac
12379- dynamic_linker='Win32 ld.exe'
12380 # FIXME: first we should search . and the directory the executable is in
12381 shlibpath_var=PATH
12382 ;;
12383@@ -15432,6 +16261,7 @@ fi
12384 fi # test -n "$compiler"
12385
12386 CC=$lt_save_CC
12387+ CFLAGS=$lt_save_CFLAGS
12388 LDCXX=$LD
12389 LD=$lt_save_LD
12390 GCC=$lt_save_GCC
12391@@ -16359,13 +17189,20 @@ exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
12392 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
12393 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
12394 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
12395+lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
12396+lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
12397 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
12398 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
12399 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
12400 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
12401 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
12402+file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
12403+want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
12404+DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
12405+sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
12406 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
12407 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
12408+archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
12409 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12410 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12411 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12412@@ -16380,14 +17217,17 @@ lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$de
12413 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
12414 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
12415 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
12416+nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
12417+lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
12418 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
12419 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
12420 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
12421-lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
12422 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
12423+lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
12424 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
12425 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
12426 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
12427+MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
12428 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
12429 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
12430 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
12431@@ -16420,12 +17260,12 @@ hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_q
12432 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
12433 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
12434 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
12435-fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
12436 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
12437 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
12438 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
12439 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
12440 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
12441+postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
12442 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
12443 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
12444 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
12445@@ -16464,8 +17304,8 @@ old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote
12446 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
12447 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
12448 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
12449-lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
12450 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
12451+lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
12452 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
12453 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
12454 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
12455@@ -16492,12 +17332,12 @@ hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_
12456 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
12457 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
12458 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
12459-fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
12460 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
12461 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
12462 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
12463 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
12464 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
12465+postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
12466 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
12467 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
12468 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
12469@@ -16535,8 +17375,13 @@ reload_flag \
12470 OBJDUMP \
12471 deplibs_check_method \
12472 file_magic_cmd \
12473+file_magic_glob \
12474+want_nocaseglob \
12475+DLLTOOL \
12476+sharedlib_from_linklib_cmd \
12477 AR \
12478 AR_FLAGS \
12479+archiver_list_spec \
12480 STRIP \
12481 RANLIB \
12482 CC \
12483@@ -16546,12 +17391,14 @@ lt_cv_sys_global_symbol_pipe \
12484 lt_cv_sys_global_symbol_to_cdecl \
12485 lt_cv_sys_global_symbol_to_c_name_address \
12486 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12487+nm_file_list_spec \
12488 lt_prog_compiler_no_builtin_flag \
12489-lt_prog_compiler_wl \
12490 lt_prog_compiler_pic \
12491+lt_prog_compiler_wl \
12492 lt_prog_compiler_static \
12493 lt_cv_prog_compiler_c_o \
12494 need_locks \
12495+MANIFEST_TOOL \
12496 DSYMUTIL \
12497 NMEDIT \
12498 LIPO \
12499@@ -16567,7 +17414,6 @@ no_undefined_flag \
12500 hardcode_libdir_flag_spec \
12501 hardcode_libdir_flag_spec_ld \
12502 hardcode_libdir_separator \
12503-fix_srcfile_path \
12504 exclude_expsyms \
12505 include_expsyms \
12506 file_list_spec \
12507@@ -16589,8 +17435,8 @@ LD_CXX \
12508 reload_flag_CXX \
12509 compiler_CXX \
12510 lt_prog_compiler_no_builtin_flag_CXX \
12511-lt_prog_compiler_wl_CXX \
12512 lt_prog_compiler_pic_CXX \
12513+lt_prog_compiler_wl_CXX \
12514 lt_prog_compiler_static_CXX \
12515 lt_cv_prog_compiler_c_o_CXX \
12516 export_dynamic_flag_spec_CXX \
12517@@ -16602,7 +17448,6 @@ no_undefined_flag_CXX \
12518 hardcode_libdir_flag_spec_CXX \
12519 hardcode_libdir_flag_spec_ld_CXX \
12520 hardcode_libdir_separator_CXX \
12521-fix_srcfile_path_CXX \
12522 exclude_expsyms_CXX \
12523 include_expsyms_CXX \
12524 file_list_spec_CXX \
12525@@ -16636,6 +17481,7 @@ module_cmds \
12526 module_expsym_cmds \
12527 export_symbols_cmds \
12528 prelink_cmds \
12529+postlink_cmds \
12530 postinstall_cmds \
12531 postuninstall_cmds \
12532 finish_cmds \
12533@@ -16650,7 +17496,8 @@ archive_expsym_cmds_CXX \
12534 module_cmds_CXX \
12535 module_expsym_cmds_CXX \
12536 export_symbols_cmds_CXX \
12537-prelink_cmds_CXX; do
12538+prelink_cmds_CXX \
12539+postlink_cmds_CXX; do
12540 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12541 *[\\\\\\\`\\"\\\$]*)
12542 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12543@@ -17404,7 +18251,8 @@ $as_echo X"$file" |
12544 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
12545 #
12546 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
12547-# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
12548+# 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
12549+# Inc.
12550 # Written by Gordon Matzigkeit, 1996
12551 #
12552 # This file is part of GNU Libtool.
12553@@ -17507,19 +18355,42 @@ SP2NL=$lt_lt_SP2NL
12554 # turn newlines into spaces.
12555 NL2SP=$lt_lt_NL2SP
12556
12557+# convert \$build file names to \$host format.
12558+to_host_file_cmd=$lt_cv_to_host_file_cmd
12559+
12560+# convert \$build files to toolchain format.
12561+to_tool_file_cmd=$lt_cv_to_tool_file_cmd
12562+
12563 # An object symbol dumper.
12564 OBJDUMP=$lt_OBJDUMP
12565
12566 # Method to check whether dependent libraries are shared objects.
12567 deplibs_check_method=$lt_deplibs_check_method
12568
12569-# Command to use when deplibs_check_method == "file_magic".
12570+# Command to use when deplibs_check_method = "file_magic".
12571 file_magic_cmd=$lt_file_magic_cmd
12572
12573+# How to find potential files when deplibs_check_method = "file_magic".
12574+file_magic_glob=$lt_file_magic_glob
12575+
12576+# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
12577+want_nocaseglob=$lt_want_nocaseglob
12578+
12579+# DLL creation program.
12580+DLLTOOL=$lt_DLLTOOL
12581+
12582+# Command to associate shared and link libraries.
12583+sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
12584+
12585 # The archiver.
12586 AR=$lt_AR
12587+
12588+# Flags to create an archive.
12589 AR_FLAGS=$lt_AR_FLAGS
12590
12591+# How to feed a file listing to the archiver.
12592+archiver_list_spec=$lt_archiver_list_spec
12593+
12594 # A symbol stripping program.
12595 STRIP=$lt_STRIP
12596
12597@@ -17549,6 +18420,12 @@ global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12598 # Transform the output of nm in a C name address pair when lib prefix is needed.
12599 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
12600
12601+# Specify filename containing input files for \$NM.
12602+nm_file_list_spec=$lt_nm_file_list_spec
12603+
12604+# The root where to search for dependent libraries,and in which our libraries should be installed.
12605+lt_sysroot=$lt_sysroot
12606+
12607 # The name of the directory that contains temporary libtool files.
12608 objdir=$objdir
12609
12610@@ -17558,6 +18435,9 @@ MAGIC_CMD=$MAGIC_CMD
12611 # Must we lock files when doing compilation?
12612 need_locks=$lt_need_locks
12613
12614+# Manifest tool.
12615+MANIFEST_TOOL=$lt_MANIFEST_TOOL
12616+
12617 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
12618 DSYMUTIL=$lt_DSYMUTIL
12619
12620@@ -17672,12 +18552,12 @@ with_gcc=$GCC
12621 # Compiler flag to turn off builtin functions.
12622 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12623
12624-# How to pass a linker flag through the compiler.
12625-wl=$lt_lt_prog_compiler_wl
12626-
12627 # Additional compiler flags for building library objects.
12628 pic_flag=$lt_lt_prog_compiler_pic
12629
12630+# How to pass a linker flag through the compiler.
12631+wl=$lt_lt_prog_compiler_wl
12632+
12633 # Compiler flag to prevent dynamic linking.
12634 link_static_flag=$lt_lt_prog_compiler_static
12635
12636@@ -17764,9 +18644,6 @@ inherit_rpath=$inherit_rpath
12637 # Whether libtool must link a program against all its dependency libraries.
12638 link_all_deplibs=$link_all_deplibs
12639
12640-# Fix the shell variable \$srcfile for the compiler.
12641-fix_srcfile_path=$lt_fix_srcfile_path
12642-
12643 # Set to "yes" if exported symbols are required.
12644 always_export_symbols=$always_export_symbols
12645
12646@@ -17782,6 +18659,9 @@ include_expsyms=$lt_include_expsyms
12647 # Commands necessary for linking programs (against libraries) with templates.
12648 prelink_cmds=$lt_prelink_cmds
12649
12650+# Commands necessary for finishing linking programs.
12651+postlink_cmds=$lt_postlink_cmds
12652+
12653 # Specify filename containing input files.
12654 file_list_spec=$lt_file_list_spec
12655
12656@@ -17828,210 +18708,169 @@ ltmain="$ac_aux_dir/ltmain.sh"
12657 # if finds mixed CR/LF and LF-only lines. Since sed operates in
12658 # text mode, it properly converts lines to CR/LF. This bash problem
12659 # is reportedly fixed, but why not run on old versions too?
12660- sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
12661- || (rm -f "$cfgfile"; exit 1)
12662-
12663- case $xsi_shell in
12664- yes)
12665- cat << \_LT_EOF >> "$cfgfile"
12666-
12667-# func_dirname file append nondir_replacement
12668-# Compute the dirname of FILE. If nonempty, add APPEND to the result,
12669-# otherwise set result to NONDIR_REPLACEMENT.
12670-func_dirname ()
12671-{
12672- case ${1} in
12673- */*) func_dirname_result="${1%/*}${2}" ;;
12674- * ) func_dirname_result="${3}" ;;
12675- esac
12676-}
12677-
12678-# func_basename file
12679-func_basename ()
12680-{
12681- func_basename_result="${1##*/}"
12682-}
12683-
12684-# func_dirname_and_basename file append nondir_replacement
12685-# perform func_basename and func_dirname in a single function
12686-# call:
12687-# dirname: Compute the dirname of FILE. If nonempty,
12688-# add APPEND to the result, otherwise set result
12689-# to NONDIR_REPLACEMENT.
12690-# value returned in "$func_dirname_result"
12691-# basename: Compute filename of FILE.
12692-# value retuned in "$func_basename_result"
12693-# Implementation must be kept synchronized with func_dirname
12694-# and func_basename. For efficiency, we do not delegate to
12695-# those functions but instead duplicate the functionality here.
12696-func_dirname_and_basename ()
12697-{
12698- case ${1} in
12699- */*) func_dirname_result="${1%/*}${2}" ;;
12700- * ) func_dirname_result="${3}" ;;
12701- esac
12702- func_basename_result="${1##*/}"
12703-}
12704-
12705-# func_stripname prefix suffix name
12706-# strip PREFIX and SUFFIX off of NAME.
12707-# PREFIX and SUFFIX must not contain globbing or regex special
12708-# characters, hashes, percent signs, but SUFFIX may contain a leading
12709-# dot (in which case that matches only a dot).
12710-func_stripname ()
12711-{
12712- # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
12713- # positional parameters, so assign one to ordinary parameter first.
12714- func_stripname_result=${3}
12715- func_stripname_result=${func_stripname_result#"${1}"}
12716- func_stripname_result=${func_stripname_result%"${2}"}
12717-}
12718-
12719-# func_opt_split
12720-func_opt_split ()
12721-{
12722- func_opt_split_opt=${1%%=*}
12723- func_opt_split_arg=${1#*=}
12724-}
12725-
12726-# func_lo2o object
12727-func_lo2o ()
12728-{
12729- case ${1} in
12730- *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
12731- *) func_lo2o_result=${1} ;;
12732- esac
12733-}
12734-
12735-# func_xform libobj-or-source
12736-func_xform ()
12737-{
12738- func_xform_result=${1%.*}.lo
12739-}
12740-
12741-# func_arith arithmetic-term...
12742-func_arith ()
12743-{
12744- func_arith_result=$(( $* ))
12745-}
12746-
12747-# func_len string
12748-# STRING may not start with a hyphen.
12749-func_len ()
12750-{
12751- func_len_result=${#1}
12752-}
12753-
12754-_LT_EOF
12755- ;;
12756- *) # Bourne compatible functions.
12757- cat << \_LT_EOF >> "$cfgfile"
12758-
12759-# func_dirname file append nondir_replacement
12760-# Compute the dirname of FILE. If nonempty, add APPEND to the result,
12761-# otherwise set result to NONDIR_REPLACEMENT.
12762-func_dirname ()
12763-{
12764- # Extract subdirectory from the argument.
12765- func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
12766- if test "X$func_dirname_result" = "X${1}"; then
12767- func_dirname_result="${3}"
12768- else
12769- func_dirname_result="$func_dirname_result${2}"
12770- fi
12771-}
12772-
12773-# func_basename file
12774-func_basename ()
12775-{
12776- func_basename_result=`$ECHO "${1}" | $SED "$basename"`
12777-}
12778-
12779-
12780-# func_stripname prefix suffix name
12781-# strip PREFIX and SUFFIX off of NAME.
12782-# PREFIX and SUFFIX must not contain globbing or regex special
12783-# characters, hashes, percent signs, but SUFFIX may contain a leading
12784-# dot (in which case that matches only a dot).
12785-# func_strip_suffix prefix name
12786-func_stripname ()
12787-{
12788- case ${2} in
12789- .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
12790- *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
12791- esac
12792-}
12793-
12794-# sed scripts:
12795-my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
12796-my_sed_long_arg='1s/^-[^=]*=//'
12797-
12798-# func_opt_split
12799-func_opt_split ()
12800-{
12801- func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
12802- func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
12803-}
12804-
12805-# func_lo2o object
12806-func_lo2o ()
12807-{
12808- func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
12809-}
12810-
12811-# func_xform libobj-or-source
12812-func_xform ()
12813-{
12814- func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
12815-}
12816-
12817-# func_arith arithmetic-term...
12818-func_arith ()
12819-{
12820- func_arith_result=`expr "$@"`
12821-}
12822-
12823-# func_len string
12824-# STRING may not start with a hyphen.
12825-func_len ()
12826-{
12827- func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
12828-}
12829-
12830-_LT_EOF
12831-esac
12832-
12833-case $lt_shell_append in
12834- yes)
12835- cat << \_LT_EOF >> "$cfgfile"
12836-
12837-# func_append var value
12838-# Append VALUE to the end of shell variable VAR.
12839-func_append ()
12840-{
12841- eval "$1+=\$2"
12842-}
12843-_LT_EOF
12844- ;;
12845- *)
12846- cat << \_LT_EOF >> "$cfgfile"
12847-
12848-# func_append var value
12849-# Append VALUE to the end of shell variable VAR.
12850-func_append ()
12851-{
12852- eval "$1=\$$1\$2"
12853-}
12854-
12855-_LT_EOF
12856- ;;
12857- esac
12858-
12859-
12860- sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
12861- || (rm -f "$cfgfile"; exit 1)
12862-
12863- mv -f "$cfgfile" "$ofile" ||
12864+ sed '$q' "$ltmain" >> "$cfgfile" \
12865+ || (rm -f "$cfgfile"; exit 1)
12866+
12867+ if test x"$xsi_shell" = xyes; then
12868+ sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
12869+func_dirname ()\
12870+{\
12871+\ case ${1} in\
12872+\ */*) func_dirname_result="${1%/*}${2}" ;;\
12873+\ * ) func_dirname_result="${3}" ;;\
12874+\ esac\
12875+} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
12876+ && mv -f "$cfgfile.tmp" "$cfgfile" \
12877+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
12878+test 0 -eq $? || _lt_function_replace_fail=:
12879+
12880+
12881+ sed -e '/^func_basename ()$/,/^} # func_basename /c\
12882+func_basename ()\
12883+{\
12884+\ func_basename_result="${1##*/}"\
12885+} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
12886+ && mv -f "$cfgfile.tmp" "$cfgfile" \
12887+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
12888+test 0 -eq $? || _lt_function_replace_fail=:
12889+
12890+
12891+ sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
12892+func_dirname_and_basename ()\
12893+{\
12894+\ case ${1} in\
12895+\ */*) func_dirname_result="${1%/*}${2}" ;;\
12896+\ * ) func_dirname_result="${3}" ;;\
12897+\ esac\
12898+\ func_basename_result="${1##*/}"\
12899+} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
12900+ && mv -f "$cfgfile.tmp" "$cfgfile" \
12901+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
12902+test 0 -eq $? || _lt_function_replace_fail=:
12903+
12904+
12905+ sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
12906+func_stripname ()\
12907+{\
12908+\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
12909+\ # positional parameters, so assign one to ordinary parameter first.\
12910+\ func_stripname_result=${3}\
12911+\ func_stripname_result=${func_stripname_result#"${1}"}\
12912+\ func_stripname_result=${func_stripname_result%"${2}"}\
12913+} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
12914+ && mv -f "$cfgfile.tmp" "$cfgfile" \
12915+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
12916+test 0 -eq $? || _lt_function_replace_fail=:
12917+
12918+
12919+ sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
12920+func_split_long_opt ()\
12921+{\
12922+\ func_split_long_opt_name=${1%%=*}\
12923+\ func_split_long_opt_arg=${1#*=}\
12924+} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
12925+ && mv -f "$cfgfile.tmp" "$cfgfile" \
12926+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
12927+test 0 -eq $? || _lt_function_replace_fail=:
12928+
12929+
12930+ sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
12931+func_split_short_opt ()\
12932+{\
12933+\ func_split_short_opt_arg=${1#??}\
12934+\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
12935+} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
12936+ && mv -f "$cfgfile.tmp" "$cfgfile" \
12937+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
12938+test 0 -eq $? || _lt_function_replace_fail=:
12939+
12940+
12941+ sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
12942+func_lo2o ()\
12943+{\
12944+\ case ${1} in\
12945+\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
12946+\ *) func_lo2o_result=${1} ;;\
12947+\ esac\
12948+} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
12949+ && mv -f "$cfgfile.tmp" "$cfgfile" \
12950+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
12951+test 0 -eq $? || _lt_function_replace_fail=:
12952+
12953+
12954+ sed -e '/^func_xform ()$/,/^} # func_xform /c\
12955+func_xform ()\
12956+{\
12957+ func_xform_result=${1%.*}.lo\
12958+} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
12959+ && mv -f "$cfgfile.tmp" "$cfgfile" \
12960+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
12961+test 0 -eq $? || _lt_function_replace_fail=:
12962+
12963+
12964+ sed -e '/^func_arith ()$/,/^} # func_arith /c\
12965+func_arith ()\
12966+{\
12967+ func_arith_result=$(( $* ))\
12968+} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
12969+ && mv -f "$cfgfile.tmp" "$cfgfile" \
12970+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
12971+test 0 -eq $? || _lt_function_replace_fail=:
12972+
12973+
12974+ sed -e '/^func_len ()$/,/^} # func_len /c\
12975+func_len ()\
12976+{\
12977+ func_len_result=${#1}\
12978+} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
12979+ && mv -f "$cfgfile.tmp" "$cfgfile" \
12980+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
12981+test 0 -eq $? || _lt_function_replace_fail=:
12982+
12983+fi
12984+
12985+if test x"$lt_shell_append" = xyes; then
12986+ sed -e '/^func_append ()$/,/^} # func_append /c\
12987+func_append ()\
12988+{\
12989+ eval "${1}+=\\${2}"\
12990+} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
12991+ && mv -f "$cfgfile.tmp" "$cfgfile" \
12992+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
12993+test 0 -eq $? || _lt_function_replace_fail=:
12994+
12995+
12996+ sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
12997+func_append_quoted ()\
12998+{\
12999+\ func_quote_for_eval "${2}"\
13000+\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
13001+} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
13002+ && mv -f "$cfgfile.tmp" "$cfgfile" \
13003+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13004+test 0 -eq $? || _lt_function_replace_fail=:
13005+
13006+
13007+ # Save a `func_append' function call where possible by direct use of '+='
13008+ sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
13009+ && mv -f "$cfgfile.tmp" "$cfgfile" \
13010+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13011+ test 0 -eq $? || _lt_function_replace_fail=:
13012+else
13013+ # Save a `func_append' function call even when '+=' is not available
13014+ sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
13015+ && mv -f "$cfgfile.tmp" "$cfgfile" \
13016+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13017+ test 0 -eq $? || _lt_function_replace_fail=:
13018+fi
13019+
13020+if test x"$_lt_function_replace_fail" = x":"; then
13021+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
13022+$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
13023+fi
13024+
13025+
13026+ mv -f "$cfgfile" "$ofile" ||
13027 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13028 chmod +x "$ofile"
13029
13030@@ -18059,12 +18898,12 @@ with_gcc=$GCC_CXX
13031 # Compiler flag to turn off builtin functions.
13032 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13033
13034-# How to pass a linker flag through the compiler.
13035-wl=$lt_lt_prog_compiler_wl_CXX
13036-
13037 # Additional compiler flags for building library objects.
13038 pic_flag=$lt_lt_prog_compiler_pic_CXX
13039
13040+# How to pass a linker flag through the compiler.
13041+wl=$lt_lt_prog_compiler_wl_CXX
13042+
13043 # Compiler flag to prevent dynamic linking.
13044 link_static_flag=$lt_lt_prog_compiler_static_CXX
13045
13046@@ -18151,9 +18990,6 @@ inherit_rpath=$inherit_rpath_CXX
13047 # Whether libtool must link a program against all its dependency libraries.
13048 link_all_deplibs=$link_all_deplibs_CXX
13049
13050-# Fix the shell variable \$srcfile for the compiler.
13051-fix_srcfile_path=$lt_fix_srcfile_path_CXX
13052-
13053 # Set to "yes" if exported symbols are required.
13054 always_export_symbols=$always_export_symbols_CXX
13055
13056@@ -18169,6 +19005,9 @@ include_expsyms=$lt_include_expsyms_CXX
13057 # Commands necessary for linking programs (against libraries) with templates.
13058 prelink_cmds=$lt_prelink_cmds_CXX
13059
13060+# Commands necessary for finishing linking programs.
13061+postlink_cmds=$lt_postlink_cmds_CXX
13062+
13063 # Specify filename containing input files.
13064 file_list_spec=$lt_file_list_spec_CXX
13065
13066diff --git a/gprofng/src/Makefile.in b/gprofng/src/Makefile.in
13067index db763ef71b2..726dc69bf85 100644
13068--- a/gprofng/src/Makefile.in
13069+++ b/gprofng/src/Makefile.in
13070@@ -321,6 +321,7 @@ CXXFLAGS = @CXXFLAGS@
13071 CYGPATH_W = @CYGPATH_W@
13072 DEFS = @DEFS@
13073 DEPDIR = @DEPDIR@
13074+DLLTOOL = @DLLTOOL@
13075 DSYMUTIL = @DSYMUTIL@
13076 DUMPBIN = @DUMPBIN@
13077 ECHO_C = @ECHO_C@
13078@@ -355,6 +356,7 @@ LN_S = @LN_S@
13079 LTLIBOBJS = @LTLIBOBJS@
13080 MAINT = @MAINT@
13081 MAKEINFO = @MAKEINFO@
13082+MANIFEST_TOOL = @MANIFEST_TOOL@
13083 MKDIR_P = @MKDIR_P@
13084 NM = @NM@
13085 NMEDIT = @NMEDIT@
13086diff --git a/ld/Makefile.in b/ld/Makefile.in
13087index 15311048855..71b39ee9311 100644
13088--- a/ld/Makefile.in
13089+++ b/ld/Makefile.in
13090@@ -390,6 +390,7 @@ CYGPATH_W = @CYGPATH_W@
13091 DATADIRNAME = @DATADIRNAME@
13092 DEFS = @DEFS@
13093 DEPDIR = @DEPDIR@
13094+DLLTOOL = @DLLTOOL@
13095 DSYMUTIL = @DSYMUTIL@
13096 DUMPBIN = @DUMPBIN@
13097 ECHO_C = @ECHO_C@
13098@@ -445,6 +446,7 @@ LTLIBINTL = @LTLIBINTL@
13099 LTLIBOBJS = @LTLIBOBJS@
13100 MAINT = @MAINT@
13101 MAKEINFO = @MAKEINFO@
13102+MANIFEST_TOOL = @MANIFEST_TOOL@
13103 MKDIR_P = @MKDIR_P@
13104 MKINSTALLDIRS = @MKINSTALLDIRS@
13105 MSGFMT = @MSGFMT@
13106@@ -495,6 +497,7 @@ abs_builddir = @abs_builddir@
13107 abs_srcdir = @abs_srcdir@
13108 abs_top_builddir = @abs_top_builddir@
13109 abs_top_srcdir = @abs_top_srcdir@
13110+ac_ct_AR = @ac_ct_AR@
13111 ac_ct_CC = @ac_ct_CC@
13112 ac_ct_CXX = @ac_ct_CXX@
13113 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
13114diff --git a/ld/configure b/ld/configure
13115index 98a76d6da7f..a4266996c44 100755
13116--- a/ld/configure
13117+++ b/ld/configure
13118@@ -705,8 +705,11 @@ OTOOL
13119 LIPO
13120 NMEDIT
13121 DSYMUTIL
13122+MANIFEST_TOOL
13123 RANLIB
13124+ac_ct_AR
13125 AR
13126+DLLTOOL
13127 OBJDUMP
13128 LN_S
13129 NM
13130@@ -836,6 +839,7 @@ enable_static
13131 with_pic
13132 enable_fast_install
13133 with_gnu_ld
13134+with_libtool_sysroot
13135 enable_libtool_lock
13136 enable_plugins
13137 enable_largefile
13138@@ -1581,6 +1585,8 @@ Optional Packages:
13139 --with-pic try to use only PIC/non-PIC objects [default=use
13140 both]
13141 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
13142+ --with-libtool-sysroot=DIR Search for dependent libraries within DIR
13143+ (or the compiler's sysroot if not specified).
13144 --with-lib-path=dir1:dir2... set default LIB_PATH
13145 --with-sysroot=DIR Search for usr/lib et al within DIR.
13146 --with-gnu-ld assume the C compiler uses GNU ld default=no
13147@@ -5560,8 +5566,8 @@ esac
13148
13149
13150
13151-macro_version='2.2.7a'
13152-macro_revision='1.3134'
13153+macro_version='2.4'
13154+macro_revision='1.3293'
13155
13156
13157
13158@@ -5601,7 +5607,7 @@ ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
13159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
13160 $as_echo_n "checking how to print strings... " >&6; }
13161 # Test print first, because it will be a builtin if present.
13162-if test "X`print -r -- -n 2>/dev/null`" = X-n && \
13163+if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
13164 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
13165 ECHO='print -r --'
13166 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
13167@@ -6294,8 +6300,8 @@ $as_echo_n "checking whether the shell understands some XSI constructs... " >&6;
13168 # Try some XSI features
13169 xsi_shell=no
13170 ( _lt_dummy="a/b/c"
13171- test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
13172- = c,a/b,, \
13173+ test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
13174+ = c,a/b,b/c, \
13175 && eval 'test $(( 1 + 1 )) -eq 2 \
13176 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
13177 && xsi_shell=yes
13178@@ -6344,6 +6350,80 @@ esac
13179
13180
13181
13182+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
13183+$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
13184+if ${lt_cv_to_host_file_cmd+:} false; then :
13185+ $as_echo_n "(cached) " >&6
13186+else
13187+ case $host in
13188+ *-*-mingw* )
13189+ case $build in
13190+ *-*-mingw* ) # actually msys
13191+ lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
13192+ ;;
13193+ *-*-cygwin* )
13194+ lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
13195+ ;;
13196+ * ) # otherwise, assume *nix
13197+ lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
13198+ ;;
13199+ esac
13200+ ;;
13201+ *-*-cygwin* )
13202+ case $build in
13203+ *-*-mingw* ) # actually msys
13204+ lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
13205+ ;;
13206+ *-*-cygwin* )
13207+ lt_cv_to_host_file_cmd=func_convert_file_noop
13208+ ;;
13209+ * ) # otherwise, assume *nix
13210+ lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
13211+ ;;
13212+ esac
13213+ ;;
13214+ * ) # unhandled hosts (and "normal" native builds)
13215+ lt_cv_to_host_file_cmd=func_convert_file_noop
13216+ ;;
13217+esac
13218+
13219+fi
13220+
13221+to_host_file_cmd=$lt_cv_to_host_file_cmd
13222+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
13223+$as_echo "$lt_cv_to_host_file_cmd" >&6; }
13224+
13225+
13226+
13227+
13228+
13229+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
13230+$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
13231+if ${lt_cv_to_tool_file_cmd+:} false; then :
13232+ $as_echo_n "(cached) " >&6
13233+else
13234+ #assume ordinary cross tools, or native build.
13235+lt_cv_to_tool_file_cmd=func_convert_file_noop
13236+case $host in
13237+ *-*-mingw* )
13238+ case $build in
13239+ *-*-mingw* ) # actually msys
13240+ lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
13241+ ;;
13242+ esac
13243+ ;;
13244+esac
13245+
13246+fi
13247+
13248+to_tool_file_cmd=$lt_cv_to_tool_file_cmd
13249+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
13250+$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
13251+
13252+
13253+
13254+
13255+
13256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
13257 $as_echo_n "checking for $LD option to reload object files... " >&6; }
13258 if ${lt_cv_ld_reload_flag+:} false; then :
13259@@ -6360,6 +6440,11 @@ case $reload_flag in
13260 esac
13261 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13262 case $host_os in
13263+ cygwin* | mingw* | pw32* | cegcc*)
13264+ if test "$GCC" != yes; then
13265+ reload_cmds=false
13266+ fi
13267+ ;;
13268 darwin*)
13269 if test "$GCC" = yes; then
13270 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
13271@@ -6528,7 +6613,8 @@ mingw* | pw32*)
13272 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13273 lt_cv_file_magic_cmd='func_win32_libid'
13274 else
13275- lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13276+ # Keep this pattern in sync with the one in func_win32_libid.
13277+ lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
13278 lt_cv_file_magic_cmd='$OBJDUMP -f'
13279 fi
13280 ;;
13281@@ -6687,6 +6773,21 @@ esac
13282 fi
13283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
13284 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13285+
13286+file_magic_glob=
13287+want_nocaseglob=no
13288+if test "$build" = "$host"; then
13289+ case $host_os in
13290+ mingw* | pw32*)
13291+ if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
13292+ want_nocaseglob=yes
13293+ else
13294+ file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
13295+ fi
13296+ ;;
13297+ esac
13298+fi
13299+
13300 file_magic_cmd=$lt_cv_file_magic_cmd
13301 deplibs_check_method=$lt_cv_deplibs_check_method
13302 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13303@@ -6702,6 +6803,157 @@ test -z "$deplibs_check_method" && deplibs_check_method=unknown
13304
13305
13306
13307+
13308+
13309+
13310+
13311+
13312+
13313+
13314+
13315+
13316+
13317+if test -n "$ac_tool_prefix"; then
13318+ # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
13319+set dummy ${ac_tool_prefix}dlltool; ac_word=$2
13320+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13321+$as_echo_n "checking for $ac_word... " >&6; }
13322+if ${ac_cv_prog_DLLTOOL+:} false; then :
13323+ $as_echo_n "(cached) " >&6
13324+else
13325+ if test -n "$DLLTOOL"; then
13326+ ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13327+else
13328+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13329+for as_dir in $PATH
13330+do
13331+ IFS=$as_save_IFS
13332+ test -z "$as_dir" && as_dir=.
13333+ for ac_exec_ext in '' $ac_executable_extensions; do
13334+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13335+ ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
13336+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13337+ break 2
13338+ fi
13339+done
13340+ done
13341+IFS=$as_save_IFS
13342+
13343+fi
13344+fi
13345+DLLTOOL=$ac_cv_prog_DLLTOOL
13346+if test -n "$DLLTOOL"; then
13347+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
13348+$as_echo "$DLLTOOL" >&6; }
13349+else
13350+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13351+$as_echo "no" >&6; }
13352+fi
13353+
13354+
13355+fi
13356+if test -z "$ac_cv_prog_DLLTOOL"; then
13357+ ac_ct_DLLTOOL=$DLLTOOL
13358+ # Extract the first word of "dlltool", so it can be a program name with args.
13359+set dummy dlltool; ac_word=$2
13360+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13361+$as_echo_n "checking for $ac_word... " >&6; }
13362+if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
13363+ $as_echo_n "(cached) " >&6
13364+else
13365+ if test -n "$ac_ct_DLLTOOL"; then
13366+ ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
13367+else
13368+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13369+for as_dir in $PATH
13370+do
13371+ IFS=$as_save_IFS
13372+ test -z "$as_dir" && as_dir=.
13373+ for ac_exec_ext in '' $ac_executable_extensions; do
13374+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13375+ ac_cv_prog_ac_ct_DLLTOOL="dlltool"
13376+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13377+ break 2
13378+ fi
13379+done
13380+ done
13381+IFS=$as_save_IFS
13382+
13383+fi
13384+fi
13385+ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
13386+if test -n "$ac_ct_DLLTOOL"; then
13387+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
13388+$as_echo "$ac_ct_DLLTOOL" >&6; }
13389+else
13390+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13391+$as_echo "no" >&6; }
13392+fi
13393+
13394+ if test "x$ac_ct_DLLTOOL" = x; then
13395+ DLLTOOL="false"
13396+ else
13397+ case $cross_compiling:$ac_tool_warned in
13398+yes:)
13399+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13400+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13401+ac_tool_warned=yes ;;
13402+esac
13403+ DLLTOOL=$ac_ct_DLLTOOL
13404+ fi
13405+else
13406+ DLLTOOL="$ac_cv_prog_DLLTOOL"
13407+fi
13408+
13409+test -z "$DLLTOOL" && DLLTOOL=dlltool
13410+
13411+
13412+
13413+
13414+
13415+
13416+
13417+
13418+
13419+
13420+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
13421+$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
13422+if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
13423+ $as_echo_n "(cached) " >&6
13424+else
13425+ lt_cv_sharedlib_from_linklib_cmd='unknown'
13426+
13427+case $host_os in
13428+cygwin* | mingw* | pw32* | cegcc*)
13429+ # two different shell functions defined in ltmain.sh
13430+ # decide which to use based on capabilities of $DLLTOOL
13431+ case `$DLLTOOL --help 2>&1` in
13432+ *--identify-strict*)
13433+ lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
13434+ ;;
13435+ *)
13436+ lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
13437+ ;;
13438+ esac
13439+ ;;
13440+*)
13441+ # fallback: assume linklib IS sharedlib
13442+ lt_cv_sharedlib_from_linklib_cmd="$ECHO"
13443+ ;;
13444+esac
13445+
13446+fi
13447+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
13448+$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
13449+sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
13450+test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
13451+
13452+
13453+
13454+
13455+
13456+
13457+
13458 plugin_option=
13459 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
13460 for plugin in $plugin_names; do
13461@@ -6716,8 +6968,10 @@ for plugin in $plugin_names; do
13462 done
13463
13464 if test -n "$ac_tool_prefix"; then
13465- # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13466-set dummy ${ac_tool_prefix}ar; ac_word=$2
13467+ for ac_prog in ar
13468+ do
13469+ # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13470+set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13472 $as_echo_n "checking for $ac_word... " >&6; }
13473 if ${ac_cv_prog_AR+:} false; then :
13474@@ -6733,7 +6987,7 @@ do
13475 test -z "$as_dir" && as_dir=.
13476 for ac_exec_ext in '' $ac_executable_extensions; do
13477 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13478- ac_cv_prog_AR="${ac_tool_prefix}ar"
13479+ ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
13480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13481 break 2
13482 fi
13483@@ -6753,11 +7007,15 @@ $as_echo "no" >&6; }
13484 fi
13485
13486
13487+ test -n "$AR" && break
13488+ done
13489 fi
13490-if test -z "$ac_cv_prog_AR"; then
13491+if test -z "$AR"; then
13492 ac_ct_AR=$AR
13493- # Extract the first word of "ar", so it can be a program name with args.
13494-set dummy ar; ac_word=$2
13495+ for ac_prog in ar
13496+do
13497+ # Extract the first word of "$ac_prog", so it can be a program name with args.
13498+set dummy $ac_prog; ac_word=$2
13499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13500 $as_echo_n "checking for $ac_word... " >&6; }
13501 if ${ac_cv_prog_ac_ct_AR+:} false; then :
13502@@ -6773,7 +7031,7 @@ do
13503 test -z "$as_dir" && as_dir=.
13504 for ac_exec_ext in '' $ac_executable_extensions; do
13505 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13506- ac_cv_prog_ac_ct_AR="ar"
13507+ ac_cv_prog_ac_ct_AR="$ac_prog"
13508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13509 break 2
13510 fi
13511@@ -6792,6 +7050,10 @@ else
13512 $as_echo "no" >&6; }
13513 fi
13514
13515+
13516+ test -n "$ac_ct_AR" && break
13517+done
13518+
13519 if test "x$ac_ct_AR" = x; then
13520 AR="false"
13521 else
13522@@ -6803,29 +7065,81 @@ ac_tool_warned=yes ;;
13523 esac
13524 AR=$ac_ct_AR
13525 fi
13526-else
13527- AR="$ac_cv_prog_AR"
13528 fi
13529
13530-test -z "$AR" && AR=ar
13531-if test -n "$plugin_option"; then
13532- if $AR --help 2>&1 | grep -q "\--plugin"; then
13533- touch conftest.c
13534- $AR $plugin_option rc conftest.a conftest.c
13535- if test "$?" != 0; then
13536- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
13537+ touch conftest.c
13538+ $AR $plugin_option rc conftest.a conftest.c
13539+ if test "$?" != 0; then
13540+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
13541 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
13542- else
13543- AR="$AR $plugin_option"
13544- fi
13545- rm -f conftest.*
13546+ else
13547+ AR="$AR $plugin_option"
13548 fi
13549-fi
13550-test -z "$AR_FLAGS" && AR_FLAGS=cru
13551+ rm -f conftest.*
13552+: ${AR=ar}
13553+: ${AR_FLAGS=cru}
13554+
13555+
13556+
13557+
13558+
13559+
13560+
13561+
13562+
13563+
13564
13565+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
13566+$as_echo_n "checking for archiver @FILE support... " >&6; }
13567+if ${lt_cv_ar_at_file+:} false; then :
13568+ $as_echo_n "(cached) " >&6
13569+else
13570+ lt_cv_ar_at_file=no
13571+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13572+/* end confdefs.h. */
13573+
13574+int
13575+main ()
13576+{
13577
13578+ ;
13579+ return 0;
13580+}
13581+_ACEOF
13582+if ac_fn_c_try_compile "$LINENO"; then :
13583+ echo conftest.$ac_objext > conftest.lst
13584+ lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
13585+ { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
13586+ (eval $lt_ar_try) 2>&5
13587+ ac_status=$?
13588+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13589+ test $ac_status = 0; }
13590+ if test "$ac_status" -eq 0; then
13591+ # Ensure the archiver fails upon bogus file names.
13592+ rm -f conftest.$ac_objext libconftest.a
13593+ { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
13594+ (eval $lt_ar_try) 2>&5
13595+ ac_status=$?
13596+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13597+ test $ac_status = 0; }
13598+ if test "$ac_status" -ne 0; then
13599+ lt_cv_ar_at_file=@
13600+ fi
13601+ fi
13602+ rm -f conftest.* libconftest.a
13603+
13604+fi
13605+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13606
13607+fi
13608+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
13609+$as_echo "$lt_cv_ar_at_file" >&6; }
13610
13611+if test "x$lt_cv_ar_at_file" = xno; then
13612+ archiver_list_spec=
13613+else
13614+ archiver_list_spec=$lt_cv_ar_at_file
13615+fi
13616
13617
13618
13619@@ -7172,8 +7486,8 @@ esac
13620 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13621
13622 # Transform an extracted symbol line into symbol name and symbol address
13623-lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13624-lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
13625+lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13626+lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
13627
13628 # Handle CRLF in mingw tool chain
13629 opt_cr=
13630@@ -7209,6 +7523,7 @@ for ac_symprfx in "" "_"; do
13631 else
13632 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13633 fi
13634+ lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
13635
13636 # Check to see that the pipe works correctly.
13637 pipe_works=no
13638@@ -7250,6 +7565,18 @@ _LT_EOF
13639 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13640 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13641 cat <<_LT_EOF > conftest.$ac_ext
13642+/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
13643+#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
13644+/* DATA imports from DLLs on WIN32 con't be const, because runtime
13645+ relocations are performed -- see ld's documentation on pseudo-relocs. */
13646+# define LT_DLSYM_CONST
13647+#elif defined(__osf__)
13648+/* This system does not cope well with relocations in const data. */
13649+# define LT_DLSYM_CONST
13650+#else
13651+# define LT_DLSYM_CONST const
13652+#endif
13653+
13654 #ifdef __cplusplus
13655 extern "C" {
13656 #endif
13657@@ -7261,7 +7588,7 @@ _LT_EOF
13658 cat <<_LT_EOF >> conftest.$ac_ext
13659
13660 /* The mapping between symbol names and symbols. */
13661-const struct {
13662+LT_DLSYM_CONST struct {
13663 const char *name;
13664 void *address;
13665 }
13666@@ -7287,8 +7614,8 @@ static const void *lt_preloaded_setup() {
13667 _LT_EOF
13668 # Now try linking the two files.
13669 mv conftest.$ac_objext conftstm.$ac_objext
13670- lt_save_LIBS="$LIBS"
13671- lt_save_CFLAGS="$CFLAGS"
13672+ lt_globsym_save_LIBS=$LIBS
13673+ lt_globsym_save_CFLAGS=$CFLAGS
13674 LIBS="conftstm.$ac_objext"
13675 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13676 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13677@@ -7298,8 +7625,8 @@ _LT_EOF
13678 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13679 pipe_works=yes
13680 fi
13681- LIBS="$lt_save_LIBS"
13682- CFLAGS="$lt_save_CFLAGS"
13683+ LIBS=$lt_globsym_save_LIBS
13684+ CFLAGS=$lt_globsym_save_CFLAGS
13685 else
13686 echo "cannot find nm_test_func in $nlist" >&5
13687 fi
13688@@ -7336,6 +7663,27 @@ else
13689 $as_echo "ok" >&6; }
13690 fi
13691
13692+# Response file support.
13693+if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13694+ nm_file_list_spec='@'
13695+elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
13696+ nm_file_list_spec='@'
13697+fi
13698+
13699+
13700+
13701+
13702+
13703+
13704+
13705+
13706+
13707+
13708+
13709+
13710+
13711+
13712+
13713
13714
13715
13716@@ -7348,10 +7696,38 @@ fi
13717
13718
13719
13720+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
13721+$as_echo_n "checking for sysroot... " >&6; }
13722
13723+# Check whether --with-libtool-sysroot was given.
13724+if test "${with_libtool_sysroot+set}" = set; then :
13725+ withval=$with_libtool_sysroot;
13726+else
13727+ with_libtool_sysroot=no
13728+fi
13729
13730
13731+lt_sysroot=
13732+case ${with_libtool_sysroot} in #(
13733+ yes)
13734+ if test "$GCC" = yes; then
13735+ lt_sysroot=`$CC --print-sysroot 2>/dev/null`
13736+ fi
13737+ ;; #(
13738+ /*)
13739+ lt_sysroot=`echo "$with_libtool_sysroot" | sed -e "$sed_quote_subst"`
13740+ ;; #(
13741+ no|'')
13742+ ;; #(
13743+ *)
13744+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_libtool_sysroot}" >&5
13745+$as_echo "${with_libtool_sysroot}" >&6; }
13746+ as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
13747+ ;;
13748+esac
13749
13750+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
13751+$as_echo "${lt_sysroot:-no}" >&6; }
13752
13753
13754
13755@@ -7563,6 +7939,123 @@ esac
13756
13757 need_locks="$enable_libtool_lock"
13758
13759+if test -n "$ac_tool_prefix"; then
13760+ # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
13761+set dummy ${ac_tool_prefix}mt; ac_word=$2
13762+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13763+$as_echo_n "checking for $ac_word... " >&6; }
13764+if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
13765+ $as_echo_n "(cached) " >&6
13766+else
13767+ if test -n "$MANIFEST_TOOL"; then
13768+ ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
13769+else
13770+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13771+for as_dir in $PATH
13772+do
13773+ IFS=$as_save_IFS
13774+ test -z "$as_dir" && as_dir=.
13775+ for ac_exec_ext in '' $ac_executable_extensions; do
13776+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13777+ ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
13778+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13779+ break 2
13780+ fi
13781+done
13782+ done
13783+IFS=$as_save_IFS
13784+
13785+fi
13786+fi
13787+MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
13788+if test -n "$MANIFEST_TOOL"; then
13789+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
13790+$as_echo "$MANIFEST_TOOL" >&6; }
13791+else
13792+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13793+$as_echo "no" >&6; }
13794+fi
13795+
13796+
13797+fi
13798+if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
13799+ ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
13800+ # Extract the first word of "mt", so it can be a program name with args.
13801+set dummy mt; ac_word=$2
13802+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13803+$as_echo_n "checking for $ac_word... " >&6; }
13804+if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
13805+ $as_echo_n "(cached) " >&6
13806+else
13807+ if test -n "$ac_ct_MANIFEST_TOOL"; then
13808+ ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
13809+else
13810+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13811+for as_dir in $PATH
13812+do
13813+ IFS=$as_save_IFS
13814+ test -z "$as_dir" && as_dir=.
13815+ for ac_exec_ext in '' $ac_executable_extensions; do
13816+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13817+ ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
13818+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13819+ break 2
13820+ fi
13821+done
13822+ done
13823+IFS=$as_save_IFS
13824+
13825+fi
13826+fi
13827+ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
13828+if test -n "$ac_ct_MANIFEST_TOOL"; then
13829+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
13830+$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
13831+else
13832+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13833+$as_echo "no" >&6; }
13834+fi
13835+
13836+ if test "x$ac_ct_MANIFEST_TOOL" = x; then
13837+ MANIFEST_TOOL=":"
13838+ else
13839+ case $cross_compiling:$ac_tool_warned in
13840+yes:)
13841+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13842+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13843+ac_tool_warned=yes ;;
13844+esac
13845+ MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
13846+ fi
13847+else
13848+ MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
13849+fi
13850+
13851+test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
13852+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
13853+$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
13854+if ${lt_cv_path_mainfest_tool+:} false; then :
13855+ $as_echo_n "(cached) " >&6
13856+else
13857+ lt_cv_path_mainfest_tool=no
13858+ echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
13859+ $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
13860+ cat conftest.err >&5
13861+ if $GREP 'Manifest Tool' conftest.out > /dev/null; then
13862+ lt_cv_path_mainfest_tool=yes
13863+ fi
13864+ rm -f conftest*
13865+fi
13866+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
13867+$as_echo "$lt_cv_path_mainfest_tool" >&6; }
13868+if test "x$lt_cv_path_mainfest_tool" != xyes; then
13869+ MANIFEST_TOOL=:
13870+fi
13871+
13872+
13873+
13874+
13875+
13876
13877 case $host_os in
13878 rhapsody* | darwin*)
13879@@ -8126,6 +8619,8 @@ _LT_EOF
13880 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13881 echo "$AR cru libconftest.a conftest.o" >&5
13882 $AR cru libconftest.a conftest.o 2>&5
13883+ echo "$RANLIB libconftest.a" >&5
13884+ $RANLIB libconftest.a 2>&5
13885 cat > conftest.c << _LT_EOF
13886 int main() { return 0;}
13887 _LT_EOF
13888@@ -8196,6 +8691,16 @@ done
13889
13890
13891
13892+func_stripname_cnf ()
13893+{
13894+ case ${2} in
13895+ .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13896+ *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13897+ esac
13898+} # func_stripname_cnf
13899+
13900+
13901+
13902
13903
13904 # Set options
13905@@ -8711,8 +9216,6 @@ fi
13906 lt_prog_compiler_pic=
13907 lt_prog_compiler_static=
13908
13909-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13910-$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13911
13912 if test "$GCC" = yes; then
13913 lt_prog_compiler_wl='-Wl,'
13914@@ -8878,6 +9381,12 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13915 lt_prog_compiler_pic='--shared'
13916 lt_prog_compiler_static='--static'
13917 ;;
13918+ nagfor*)
13919+ # NAG Fortran compiler
13920+ lt_prog_compiler_wl='-Wl,-Wl,,'
13921+ lt_prog_compiler_pic='-PIC'
13922+ lt_prog_compiler_static='-Bstatic'
13923+ ;;
13924 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
13925 # Portland Group compilers (*not* the Pentium gcc compiler,
13926 # which looks to be a dead project)
13927@@ -8940,7 +9449,7 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13928 lt_prog_compiler_pic='-KPIC'
13929 lt_prog_compiler_static='-Bstatic'
13930 case $cc_basename in
13931- f77* | f90* | f95*)
13932+ f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
13933 lt_prog_compiler_wl='-Qoption ld ';;
13934 *)
13935 lt_prog_compiler_wl='-Wl,';;
13936@@ -8997,13 +9506,17 @@ case $host_os in
13937 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13938 ;;
13939 esac
13940-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
13941-$as_echo "$lt_prog_compiler_pic" >&6; }
13942-
13943-
13944-
13945-
13946
13947+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13948+$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13949+if ${lt_cv_prog_compiler_pic+:} false; then :
13950+ $as_echo_n "(cached) " >&6
13951+else
13952+ lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
13953+fi
13954+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
13955+$as_echo "$lt_cv_prog_compiler_pic" >&6; }
13956+lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
13957
13958 #
13959 # Check to make sure the PIC flag actually works.
13960@@ -9064,6 +9577,11 @@ fi
13961
13962
13963
13964+
13965+
13966+
13967+
13968+
13969 #
13970 # Check to make sure the static flag actually works.
13971 #
13972@@ -9414,7 +9932,8 @@ _LT_EOF
13973 allow_undefined_flag=unsupported
13974 always_export_symbols=no
13975 enable_shared_with_static_runtimes=yes
13976- export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13977+ export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
13978+ exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
13979
13980 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13981 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13982@@ -9513,12 +10032,12 @@ _LT_EOF
13983 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
13984 hardcode_libdir_flag_spec=
13985 hardcode_libdir_flag_spec_ld='-rpath $libdir'
13986- archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
13987+ archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
13988 if test "x$supports_anon_versioning" = xyes; then
13989 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13990 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13991 echo "local: *; };" >> $output_objdir/$libname.ver~
13992- $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13993+ $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13994 fi
13995 ;;
13996 esac
13997@@ -9532,8 +10051,8 @@ _LT_EOF
13998 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13999 wlarc=
14000 else
14001- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14002- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14003+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14004+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14005 fi
14006 ;;
14007
14008@@ -9551,8 +10070,8 @@ _LT_EOF
14009
14010 _LT_EOF
14011 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14012- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14013- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14014+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14015+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14016 else
14017 ld_shlibs=no
14018 fi
14019@@ -9598,8 +10117,8 @@ _LT_EOF
14020
14021 *)
14022 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14023- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14024- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14025+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14026+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14027 else
14028 ld_shlibs=no
14029 fi
14030@@ -9729,7 +10248,13 @@ _LT_EOF
14031 allow_undefined_flag='-berok'
14032 # Determine the default libpath from the value encoded in an
14033 # empty executable.
14034- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14035+ if test "${lt_cv_aix_libpath+set}" = set; then
14036+ aix_libpath=$lt_cv_aix_libpath
14037+else
14038+ if ${lt_cv_aix_libpath_+:} false; then :
14039+ $as_echo_n "(cached) " >&6
14040+else
14041+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14042 /* end confdefs.h. */
14043
14044 int
14045@@ -9742,22 +10267,29 @@ main ()
14046 _ACEOF
14047 if ac_fn_c_try_link "$LINENO"; then :
14048
14049-lt_aix_libpath_sed='
14050- /Import File Strings/,/^$/ {
14051- /^0/ {
14052- s/^0 *\(.*\)$/\1/
14053- p
14054- }
14055- }'
14056-aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14057-# Check for a 64-bit object if we didn't find anything.
14058-if test -z "$aix_libpath"; then
14059- aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14060-fi
14061+ lt_aix_libpath_sed='
14062+ /Import File Strings/,/^$/ {
14063+ /^0/ {
14064+ s/^0 *\([^ ]*\) *$/\1/
14065+ p
14066+ }
14067+ }'
14068+ lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14069+ # Check for a 64-bit object if we didn't find anything.
14070+ if test -z "$lt_cv_aix_libpath_"; then
14071+ lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14072+ fi
14073 fi
14074 rm -f core conftest.err conftest.$ac_objext \
14075 conftest$ac_exeext conftest.$ac_ext
14076-if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14077+ if test -z "$lt_cv_aix_libpath_"; then
14078+ lt_cv_aix_libpath_="/usr/lib:/lib"
14079+ fi
14080+
14081+fi
14082+
14083+ aix_libpath=$lt_cv_aix_libpath_
14084+fi
14085
14086 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14087 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14088@@ -9769,7 +10301,13 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14089 else
14090 # Determine the default libpath from the value encoded in an
14091 # empty executable.
14092- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14093+ if test "${lt_cv_aix_libpath+set}" = set; then
14094+ aix_libpath=$lt_cv_aix_libpath
14095+else
14096+ if ${lt_cv_aix_libpath_+:} false; then :
14097+ $as_echo_n "(cached) " >&6
14098+else
14099+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14100 /* end confdefs.h. */
14101
14102 int
14103@@ -9782,22 +10320,29 @@ main ()
14104 _ACEOF
14105 if ac_fn_c_try_link "$LINENO"; then :
14106
14107-lt_aix_libpath_sed='
14108- /Import File Strings/,/^$/ {
14109- /^0/ {
14110- s/^0 *\(.*\)$/\1/
14111- p
14112- }
14113- }'
14114-aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14115-# Check for a 64-bit object if we didn't find anything.
14116-if test -z "$aix_libpath"; then
14117- aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14118-fi
14119+ lt_aix_libpath_sed='
14120+ /Import File Strings/,/^$/ {
14121+ /^0/ {
14122+ s/^0 *\([^ ]*\) *$/\1/
14123+ p
14124+ }
14125+ }'
14126+ lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14127+ # Check for a 64-bit object if we didn't find anything.
14128+ if test -z "$lt_cv_aix_libpath_"; then
14129+ lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14130+ fi
14131 fi
14132 rm -f core conftest.err conftest.$ac_objext \
14133 conftest$ac_exeext conftest.$ac_ext
14134-if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14135+ if test -z "$lt_cv_aix_libpath_"; then
14136+ lt_cv_aix_libpath_="/usr/lib:/lib"
14137+ fi
14138+
14139+fi
14140+
14141+ aix_libpath=$lt_cv_aix_libpath_
14142+fi
14143
14144 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14145 # Warning - without using the other run time loading flags,
14146@@ -9842,20 +10387,63 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14147 # Microsoft Visual C++.
14148 # hardcode_libdir_flag_spec is actually meaningless, as there is
14149 # no search path for DLLs.
14150- hardcode_libdir_flag_spec=' '
14151- allow_undefined_flag=unsupported
14152- # Tell ltmain to make .lib files, not .a files.
14153- libext=lib
14154- # Tell ltmain to make .dll files, not .so files.
14155- shrext_cmds=".dll"
14156- # FIXME: Setting linknames here is a bad hack.
14157- archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
14158- # The linker will automatically build a .lib file if we build a DLL.
14159- old_archive_from_new_cmds='true'
14160- # FIXME: Should let the user specify the lib program.
14161- old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
14162- fix_srcfile_path='`cygpath -w "$srcfile"`'
14163- enable_shared_with_static_runtimes=yes
14164+ case $cc_basename in
14165+ cl*)
14166+ # Native MSVC
14167+ hardcode_libdir_flag_spec=' '
14168+ allow_undefined_flag=unsupported
14169+ always_export_symbols=yes
14170+ file_list_spec='@'
14171+ # Tell ltmain to make .lib files, not .a files.
14172+ libext=lib
14173+ # Tell ltmain to make .dll files, not .so files.
14174+ shrext_cmds=".dll"
14175+ # FIXME: Setting linknames here is a bad hack.
14176+ archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
14177+ archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14178+ sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
14179+ else
14180+ sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
14181+ fi~
14182+ $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14183+ linknames='
14184+ # The linker will not automatically build a static lib if we build a DLL.
14185+ # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
14186+ enable_shared_with_static_runtimes=yes
14187+ export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14188+ # Don't use ranlib
14189+ old_postinstall_cmds='chmod 644 $oldlib'
14190+ postlink_cmds='lt_outputfile="@OUTPUT@"~
14191+ lt_tool_outputfile="@TOOL_OUTPUT@"~
14192+ case $lt_outputfile in
14193+ *.exe|*.EXE) ;;
14194+ *)
14195+ lt_outputfile="$lt_outputfile.exe"
14196+ lt_tool_outputfile="$lt_tool_outputfile.exe"
14197+ ;;
14198+ esac~
14199+ if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
14200+ $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14201+ $RM "$lt_outputfile.manifest";
14202+ fi'
14203+ ;;
14204+ *)
14205+ # Assume MSVC wrapper
14206+ hardcode_libdir_flag_spec=' '
14207+ allow_undefined_flag=unsupported
14208+ # Tell ltmain to make .lib files, not .a files.
14209+ libext=lib
14210+ # Tell ltmain to make .dll files, not .so files.
14211+ shrext_cmds=".dll"
14212+ # FIXME: Setting linknames here is a bad hack.
14213+ archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
14214+ # The linker will automatically build a .lib file if we build a DLL.
14215+ old_archive_from_new_cmds='true'
14216+ # FIXME: Should let the user specify the lib program.
14217+ old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
14218+ enable_shared_with_static_runtimes=yes
14219+ ;;
14220+ esac
14221 ;;
14222
14223 darwin* | rhapsody*)
14224@@ -9916,7 +10504,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14225
14226 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14227 freebsd* | dragonfly*)
14228- archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14229+ archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14230 hardcode_libdir_flag_spec='-R$libdir'
14231 hardcode_direct=yes
14232 hardcode_shlibpath_var=no
14233@@ -9924,7 +10512,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14234
14235 hpux9*)
14236 if test "$GCC" = yes; then
14237- archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14238+ archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14239 else
14240 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14241 fi
14242@@ -9940,7 +10528,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14243
14244 hpux10*)
14245 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
14246- archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14247+ archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14248 else
14249 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14250 fi
14251@@ -9964,10 +10552,10 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14252 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14253 ;;
14254 ia64*)
14255- archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14256+ archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14257 ;;
14258 *)
14259- archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14260+ archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14261 ;;
14262 esac
14263 else
14264@@ -10046,23 +10634,36 @@ fi
14265
14266 irix5* | irix6* | nonstopux*)
14267 if test "$GCC" = yes; then
14268- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14269+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14270 # Try to use the -exported_symbol ld option, if it does not
14271 # work, assume that -exports_file does not work either and
14272 # implicitly export all symbols.
14273- save_LDFLAGS="$LDFLAGS"
14274- LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
14275- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14276+ # This should be the same for all languages, so no per-tag cache variable.
14277+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
14278+$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
14279+if ${lt_cv_irix_exported_symbol+:} false; then :
14280+ $as_echo_n "(cached) " >&6
14281+else
14282+ save_LDFLAGS="$LDFLAGS"
14283+ LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
14284+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14285 /* end confdefs.h. */
14286-int foo(void) {}
14287+int foo (void) { return 0; }
14288 _ACEOF
14289 if ac_fn_c_try_link "$LINENO"; then :
14290- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
14291-
14292+ lt_cv_irix_exported_symbol=yes
14293+else
14294+ lt_cv_irix_exported_symbol=no
14295 fi
14296 rm -f core conftest.err conftest.$ac_objext \
14297 conftest$ac_exeext conftest.$ac_ext
14298- LDFLAGS="$save_LDFLAGS"
14299+ LDFLAGS="$save_LDFLAGS"
14300+fi
14301+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
14302+$as_echo "$lt_cv_irix_exported_symbol" >&6; }
14303+ if test "$lt_cv_irix_exported_symbol" = yes; then
14304+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
14305+ fi
14306 else
14307 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14308 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
14309@@ -10147,7 +10748,7 @@ rm -f core conftest.err conftest.$ac_objext \
14310 osf4* | osf5*) # as osf3* with the addition of -msym flag
14311 if test "$GCC" = yes; then
14312 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
14313- archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14314+ archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14315 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14316 else
14317 allow_undefined_flag=' -expect_unresolved \*'
14318@@ -10166,9 +10767,9 @@ rm -f core conftest.err conftest.$ac_objext \
14319 no_undefined_flag=' -z defs'
14320 if test "$GCC" = yes; then
14321 wlarc='${wl}'
14322- archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14323+ archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14324 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14325- $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14326+ $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14327 else
14328 case `$CC -V 2>&1` in
14329 *"Compilers 5.0"*)
14330@@ -10744,8 +11345,9 @@ cygwin* | mingw* | pw32* | cegcc*)
14331 need_version=no
14332 need_lib_prefix=no
14333
14334- case $GCC,$host_os in
14335- yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14336+ case $GCC,$cc_basename in
14337+ yes,*)
14338+ # gcc
14339 library_names_spec='$libname.dll.a'
14340 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14341 postinstall_cmds='base_file=`basename \${file}`~
14342@@ -10778,13 +11380,71 @@ cygwin* | mingw* | pw32* | cegcc*)
14343 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14344 ;;
14345 esac
14346+ dynamic_linker='Win32 ld.exe'
14347+ ;;
14348+
14349+ *,cl*)
14350+ # Native MSVC
14351+ libname_spec='$name'
14352+ soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14353+ library_names_spec='${libname}.dll.lib'
14354+
14355+ case $build_os in
14356+ mingw*)
14357+ sys_lib_search_path_spec=
14358+ lt_save_ifs=$IFS
14359+ IFS=';'
14360+ for lt_path in $LIB
14361+ do
14362+ IFS=$lt_save_ifs
14363+ # Let DOS variable expansion print the short 8.3 style file name.
14364+ lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14365+ sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14366+ done
14367+ IFS=$lt_save_ifs
14368+ # Convert to MSYS style.
14369+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14370+ ;;
14371+ cygwin*)
14372+ # Convert to unix form, then to dos form, then back to unix form
14373+ # but this time dos style (no spaces!) so that the unix form looks
14374+ # like /cygdrive/c/PROGRA~1:/cygdr...
14375+ sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14376+ sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14377+ sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14378+ ;;
14379+ *)
14380+ sys_lib_search_path_spec="$LIB"
14381+ if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14382+ # It is most probably a Windows format PATH.
14383+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14384+ else
14385+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14386+ fi
14387+ # FIXME: find the short name or the path components, as spaces are
14388+ # common. (e.g. "Program Files" -> "PROGRA~1")
14389+ ;;
14390+ esac
14391+
14392+ # DLL is installed to $(libdir)/../bin by postinstall_cmds
14393+ postinstall_cmds='base_file=`basename \${file}`~
14394+ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14395+ dldir=$destdir/`dirname \$dlpath`~
14396+ test -d \$dldir || mkdir -p \$dldir~
14397+ $install_prog $dir/$dlname \$dldir/$dlname'
14398+ postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14399+ dlpath=$dir/\$dldll~
14400+ $RM \$dlpath'
14401+ shlibpath_overrides_runpath=yes
14402+ dynamic_linker='Win32 link.exe'
14403 ;;
14404
14405 *)
14406+ # Assume MSVC wrapper
14407 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14408+ dynamic_linker='Win32 ld.exe'
14409 ;;
14410 esac
14411- dynamic_linker='Win32 ld.exe'
14412 # FIXME: first we should search . and the directory the executable is in
14413 shlibpath_var=PATH
14414 ;;
14415@@ -11686,7 +12346,7 @@ else
14416 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14417 lt_status=$lt_dlunknown
14418 cat > conftest.$ac_ext <<_LT_EOF
14419-#line 11686 "configure"
14420+#line $LINENO "configure"
14421 #include "confdefs.h"
14422
14423 #if HAVE_DLFCN_H
14424@@ -11730,10 +12390,10 @@ else
14425 /* When -fvisbility=hidden is used, assume the code has been annotated
14426 correspondingly for the symbols needed. */
14427 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14428-void fnord () __attribute__((visibility("default")));
14429+int fnord () __attribute__((visibility("default")));
14430 #endif
14431
14432-void fnord () { int i=42; }
14433+int fnord () { return 42; }
14434 int main ()
14435 {
14436 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14437@@ -11792,7 +12452,7 @@ else
14438 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14439 lt_status=$lt_dlunknown
14440 cat > conftest.$ac_ext <<_LT_EOF
14441-#line 11792 "configure"
14442+#line $LINENO "configure"
14443 #include "confdefs.h"
14444
14445 #if HAVE_DLFCN_H
14446@@ -11836,10 +12496,10 @@ else
14447 /* When -fvisbility=hidden is used, assume the code has been annotated
14448 correspondingly for the symbols needed. */
14449 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14450-void fnord () __attribute__((visibility("default")));
14451+int fnord () __attribute__((visibility("default")));
14452 #endif
14453
14454-void fnord () { int i=42; }
14455+int fnord () { return 42; }
14456 int main ()
14457 {
14458 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14459@@ -12231,6 +12891,7 @@ $RM -r conftest*
14460
14461 # Allow CC to be a program name with arguments.
14462 lt_save_CC=$CC
14463+ lt_save_CFLAGS=$CFLAGS
14464 lt_save_LD=$LD
14465 lt_save_GCC=$GCC
14466 GCC=$GXX
14467@@ -12248,6 +12909,7 @@ $RM -r conftest*
14468 fi
14469 test -z "${LDCXX+set}" || LD=$LDCXX
14470 CC=${CXX-"c++"}
14471+ CFLAGS=$CXXFLAGS
14472 compiler=$CC
14473 compiler_CXX=$CC
14474 for cc_temp in $compiler""; do
14475@@ -12530,7 +13192,13 @@ $as_echo_n "checking whether the $compiler linker ($LD) supports shared librarie
14476 allow_undefined_flag_CXX='-berok'
14477 # Determine the default libpath from the value encoded in an empty
14478 # executable.
14479- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14480+ if test "${lt_cv_aix_libpath+set}" = set; then
14481+ aix_libpath=$lt_cv_aix_libpath
14482+else
14483+ if ${lt_cv_aix_libpath__CXX+:} false; then :
14484+ $as_echo_n "(cached) " >&6
14485+else
14486+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14487 /* end confdefs.h. */
14488
14489 int
14490@@ -12543,22 +13211,29 @@ main ()
14491 _ACEOF
14492 if ac_fn_cxx_try_link "$LINENO"; then :
14493
14494-lt_aix_libpath_sed='
14495- /Import File Strings/,/^$/ {
14496- /^0/ {
14497- s/^0 *\(.*\)$/\1/
14498- p
14499- }
14500- }'
14501-aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14502-# Check for a 64-bit object if we didn't find anything.
14503-if test -z "$aix_libpath"; then
14504- aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14505-fi
14506+ lt_aix_libpath_sed='
14507+ /Import File Strings/,/^$/ {
14508+ /^0/ {
14509+ s/^0 *\([^ ]*\) *$/\1/
14510+ p
14511+ }
14512+ }'
14513+ lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14514+ # Check for a 64-bit object if we didn't find anything.
14515+ if test -z "$lt_cv_aix_libpath__CXX"; then
14516+ lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14517+ fi
14518 fi
14519 rm -f core conftest.err conftest.$ac_objext \
14520 conftest$ac_exeext conftest.$ac_ext
14521-if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14522+ if test -z "$lt_cv_aix_libpath__CXX"; then
14523+ lt_cv_aix_libpath__CXX="/usr/lib:/lib"
14524+ fi
14525+
14526+fi
14527+
14528+ aix_libpath=$lt_cv_aix_libpath__CXX
14529+fi
14530
14531 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14532
14533@@ -12571,7 +13246,13 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14534 else
14535 # Determine the default libpath from the value encoded in an
14536 # empty executable.
14537- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14538+ if test "${lt_cv_aix_libpath+set}" = set; then
14539+ aix_libpath=$lt_cv_aix_libpath
14540+else
14541+ if ${lt_cv_aix_libpath__CXX+:} false; then :
14542+ $as_echo_n "(cached) " >&6
14543+else
14544+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14545 /* end confdefs.h. */
14546
14547 int
14548@@ -12584,22 +13265,29 @@ main ()
14549 _ACEOF
14550 if ac_fn_cxx_try_link "$LINENO"; then :
14551
14552-lt_aix_libpath_sed='
14553- /Import File Strings/,/^$/ {
14554- /^0/ {
14555- s/^0 *\(.*\)$/\1/
14556- p
14557- }
14558- }'
14559-aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14560-# Check for a 64-bit object if we didn't find anything.
14561-if test -z "$aix_libpath"; then
14562- aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14563-fi
14564+ lt_aix_libpath_sed='
14565+ /Import File Strings/,/^$/ {
14566+ /^0/ {
14567+ s/^0 *\([^ ]*\) *$/\1/
14568+ p
14569+ }
14570+ }'
14571+ lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14572+ # Check for a 64-bit object if we didn't find anything.
14573+ if test -z "$lt_cv_aix_libpath__CXX"; then
14574+ lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14575+ fi
14576 fi
14577 rm -f core conftest.err conftest.$ac_objext \
14578 conftest$ac_exeext conftest.$ac_ext
14579-if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14580+ if test -z "$lt_cv_aix_libpath__CXX"; then
14581+ lt_cv_aix_libpath__CXX="/usr/lib:/lib"
14582+ fi
14583+
14584+fi
14585+
14586+ aix_libpath=$lt_cv_aix_libpath__CXX
14587+fi
14588
14589 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14590 # Warning - without using the other run time loading flags,
14591@@ -12642,29 +13330,75 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14592 ;;
14593
14594 cygwin* | mingw* | pw32* | cegcc*)
14595- # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14596- # as there is no search path for DLLs.
14597- hardcode_libdir_flag_spec_CXX='-L$libdir'
14598- export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
14599- allow_undefined_flag_CXX=unsupported
14600- always_export_symbols_CXX=no
14601- enable_shared_with_static_runtimes_CXX=yes
14602-
14603- if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14604- archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14605- # If the export-symbols file already is a .def file (1st line
14606- # is EXPORTS), use it as is; otherwise, prepend...
14607- archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14608- cp $export_symbols $output_objdir/$soname.def;
14609- else
14610- echo EXPORTS > $output_objdir/$soname.def;
14611- cat $export_symbols >> $output_objdir/$soname.def;
14612- fi~
14613- $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14614- else
14615- ld_shlibs_CXX=no
14616- fi
14617- ;;
14618+ case $GXX,$cc_basename in
14619+ ,cl* | no,cl*)
14620+ # Native MSVC
14621+ # hardcode_libdir_flag_spec is actually meaningless, as there is
14622+ # no search path for DLLs.
14623+ hardcode_libdir_flag_spec_CXX=' '
14624+ allow_undefined_flag_CXX=unsupported
14625+ always_export_symbols_CXX=yes
14626+ file_list_spec_CXX='@'
14627+ # Tell ltmain to make .lib files, not .a files.
14628+ libext=lib
14629+ # Tell ltmain to make .dll files, not .so files.
14630+ shrext_cmds=".dll"
14631+ # FIXME: Setting linknames here is a bad hack.
14632+ archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
14633+ archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14634+ $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
14635+ else
14636+ $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
14637+ fi~
14638+ $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14639+ linknames='
14640+ # The linker will not automatically build a static lib if we build a DLL.
14641+ # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
14642+ enable_shared_with_static_runtimes_CXX=yes
14643+ # Don't use ranlib
14644+ old_postinstall_cmds_CXX='chmod 644 $oldlib'
14645+ postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
14646+ lt_tool_outputfile="@TOOL_OUTPUT@"~
14647+ case $lt_outputfile in
14648+ *.exe|*.EXE) ;;
14649+ *)
14650+ lt_outputfile="$lt_outputfile.exe"
14651+ lt_tool_outputfile="$lt_tool_outputfile.exe"
14652+ ;;
14653+ esac~
14654+ func_to_tool_file "$lt_outputfile"~
14655+ if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
14656+ $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14657+ $RM "$lt_outputfile.manifest";
14658+ fi'
14659+ ;;
14660+ *)
14661+ # g++
14662+ # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14663+ # as there is no search path for DLLs.
14664+ hardcode_libdir_flag_spec_CXX='-L$libdir'
14665+ export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
14666+ allow_undefined_flag_CXX=unsupported
14667+ always_export_symbols_CXX=no
14668+ enable_shared_with_static_runtimes_CXX=yes
14669+
14670+ if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14671+ archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14672+ # If the export-symbols file already is a .def file (1st line
14673+ # is EXPORTS), use it as is; otherwise, prepend...
14674+ archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14675+ cp $export_symbols $output_objdir/$soname.def;
14676+ else
14677+ echo EXPORTS > $output_objdir/$soname.def;
14678+ cat $export_symbols >> $output_objdir/$soname.def;
14679+ fi~
14680+ $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14681+ else
14682+ ld_shlibs_CXX=no
14683+ fi
14684+ ;;
14685+ esac
14686+ ;;
14687 darwin* | rhapsody*)
14688
14689
14690@@ -12770,7 +13504,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14691 ;;
14692 *)
14693 if test "$GXX" = yes; then
14694- archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14695+ archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14696 else
14697 # FIXME: insert proper C++ library support
14698 ld_shlibs_CXX=no
14699@@ -12841,10 +13575,10 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14700 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14701 ;;
14702 ia64*)
14703- archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14704+ archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14705 ;;
14706 *)
14707- archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14708+ archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14709 ;;
14710 esac
14711 fi
14712@@ -12885,9 +13619,9 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14713 *)
14714 if test "$GXX" = yes; then
14715 if test "$with_gnu_ld" = no; then
14716- archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14717+ archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14718 else
14719- archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
14720+ archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
14721 fi
14722 fi
14723 link_all_deplibs_CXX=yes
14724@@ -13165,7 +13899,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14725 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14726 ;;
14727 *)
14728- archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14729+ archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14730 ;;
14731 esac
14732
14733@@ -13211,7 +13945,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14734
14735 solaris*)
14736 case $cc_basename in
14737- CC*)
14738+ CC* | sunCC*)
14739 # Sun C++ 4.2, 5.x and Centerline C++
14740 archive_cmds_need_lc_CXX=yes
14741 no_undefined_flag_CXX=' -zdefs'
14742@@ -13252,9 +13986,9 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14743 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14744 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14745 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14746- archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14747+ archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14748 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14749- $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14750+ $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14751
14752 # Commands to make compiler produce verbose output that lists
14753 # what "hidden" libraries, object files and flags are used when
14754@@ -13390,6 +14124,13 @@ private:
14755 };
14756 _LT_EOF
14757
14758+
14759+_lt_libdeps_save_CFLAGS=$CFLAGS
14760+case "$CC $CFLAGS " in #(
14761+*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14762+*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14763+esac
14764+
14765 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14766 (eval $ac_compile) 2>&5
14767 ac_status=$?
14768@@ -13403,7 +14144,7 @@ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14769 pre_test_object_deps_done=no
14770
14771 for p in `eval "$output_verbose_link_cmd"`; do
14772- case $p in
14773+ case ${prev}${p} in
14774
14775 -L* | -R* | -l*)
14776 # Some compilers place space between "-{L,R}" and the path.
14777@@ -13412,13 +14153,22 @@ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14778 test $p = "-R"; then
14779 prev=$p
14780 continue
14781- else
14782- prev=
14783 fi
14784
14785+ # Expand the sysroot to ease extracting the directories later.
14786+ if test -z "$prev"; then
14787+ case $p in
14788+ -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14789+ -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14790+ -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14791+ esac
14792+ fi
14793+ case $p in
14794+ =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14795+ esac
14796 if test "$pre_test_object_deps_done" = no; then
14797- case $p in
14798- -L* | -R*)
14799+ case ${prev} in
14800+ -L | -R)
14801 # Internal compiler library paths should come after those
14802 # provided the user. The postdeps already come after the
14803 # user supplied libs so there is no need to process them.
14804@@ -13438,8 +14188,10 @@ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14805 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14806 fi
14807 fi
14808+ prev=
14809 ;;
14810
14811+ *.lto.$objext) ;; # Ignore GCC LTO objects
14812 *.$objext)
14813 # This assumes that the test object file only shows up
14814 # once in the compiler output.
14815@@ -13475,6 +14227,7 @@ else
14816 fi
14817
14818 $RM -f confest.$objext
14819+CFLAGS=$_lt_libdeps_save_CFLAGS
14820
14821 # PORTME: override above test on systems where it is broken
14822 case $host_os in
14823@@ -13510,7 +14263,7 @@ linux*)
14824
14825 solaris*)
14826 case $cc_basename in
14827- CC*)
14828+ CC* | sunCC*)
14829 # The more standards-conforming stlport4 library is
14830 # incompatible with the Cstd library. Avoid specifying
14831 # it if it's in CXXFLAGS. Ignore libCrun as
14832@@ -13575,8 +14328,6 @@ fi
14833 lt_prog_compiler_pic_CXX=
14834 lt_prog_compiler_static_CXX=
14835
14836-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14837-$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14838
14839 # C++ specific cases for pic, static, wl, etc.
14840 if test "$GXX" = yes; then
14841@@ -13681,6 +14432,11 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14842 ;;
14843 esac
14844 ;;
14845+ mingw* | cygwin* | os2* | pw32* | cegcc*)
14846+ # This hack is so that the source file can tell whether it is being
14847+ # built for inclusion in a dll (and should export symbols for example).
14848+ lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14849+ ;;
14850 dgux*)
14851 case $cc_basename in
14852 ec++*)
14853@@ -13833,7 +14589,7 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14854 ;;
14855 solaris*)
14856 case $cc_basename in
14857- CC*)
14858+ CC* | sunCC*)
14859 # Sun C++ 4.2, 5.x and Centerline C++
14860 lt_prog_compiler_pic_CXX='-KPIC'
14861 lt_prog_compiler_static_CXX='-Bstatic'
14862@@ -13898,10 +14654,17 @@ case $host_os in
14863 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14864 ;;
14865 esac
14866-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14867-$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14868-
14869
14870+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14871+$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14872+if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14873+ $as_echo_n "(cached) " >&6
14874+else
14875+ lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14876+fi
14877+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14878+$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14879+lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14880
14881 #
14882 # Check to make sure the PIC flag actually works.
14883@@ -13959,6 +14722,8 @@ fi
14884
14885
14886
14887+
14888+
14889 #
14890 # Check to make sure the static flag actually works.
14891 #
14892@@ -14136,6 +14901,7 @@ fi
14893 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14894
14895 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14896+ exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14897 case $host_os in
14898 aix[4-9]*)
14899 # If we're using GNU nm, then we don't want the "-C" option.
14900@@ -14150,15 +14916,20 @@ $as_echo_n "checking whether the $compiler linker ($LD) supports shared librarie
14901 ;;
14902 pw32*)
14903 export_symbols_cmds_CXX="$ltdll_cmds"
14904- ;;
14905+ ;;
14906 cygwin* | mingw* | cegcc*)
14907- export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14908- ;;
14909+ case $cc_basename in
14910+ cl*) ;;
14911+ *)
14912+ export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14913+ exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14914+ ;;
14915+ esac
14916+ ;;
14917 *)
14918 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14919- ;;
14920+ ;;
14921 esac
14922- exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14923
14924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14925 $as_echo "$ld_shlibs_CXX" >&6; }
14926@@ -14421,8 +15192,9 @@ cygwin* | mingw* | pw32* | cegcc*)
14927 need_version=no
14928 need_lib_prefix=no
14929
14930- case $GCC,$host_os in
14931- yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14932+ case $GCC,$cc_basename in
14933+ yes,*)
14934+ # gcc
14935 library_names_spec='$libname.dll.a'
14936 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14937 postinstall_cmds='base_file=`basename \${file}`~
14938@@ -14454,13 +15226,71 @@ cygwin* | mingw* | pw32* | cegcc*)
14939 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14940 ;;
14941 esac
14942+ dynamic_linker='Win32 ld.exe'
14943+ ;;
14944+
14945+ *,cl*)
14946+ # Native MSVC
14947+ libname_spec='$name'
14948+ soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14949+ library_names_spec='${libname}.dll.lib'
14950+
14951+ case $build_os in
14952+ mingw*)
14953+ sys_lib_search_path_spec=
14954+ lt_save_ifs=$IFS
14955+ IFS=';'
14956+ for lt_path in $LIB
14957+ do
14958+ IFS=$lt_save_ifs
14959+ # Let DOS variable expansion print the short 8.3 style file name.
14960+ lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14961+ sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14962+ done
14963+ IFS=$lt_save_ifs
14964+ # Convert to MSYS style.
14965+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14966+ ;;
14967+ cygwin*)
14968+ # Convert to unix form, then to dos form, then back to unix form
14969+ # but this time dos style (no spaces!) so that the unix form looks
14970+ # like /cygdrive/c/PROGRA~1:/cygdr...
14971+ sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14972+ sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14973+ sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14974+ ;;
14975+ *)
14976+ sys_lib_search_path_spec="$LIB"
14977+ if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14978+ # It is most probably a Windows format PATH.
14979+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14980+ else
14981+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14982+ fi
14983+ # FIXME: find the short name or the path components, as spaces are
14984+ # common. (e.g. "Program Files" -> "PROGRA~1")
14985+ ;;
14986+ esac
14987+
14988+ # DLL is installed to $(libdir)/../bin by postinstall_cmds
14989+ postinstall_cmds='base_file=`basename \${file}`~
14990+ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14991+ dldir=$destdir/`dirname \$dlpath`~
14992+ test -d \$dldir || mkdir -p \$dldir~
14993+ $install_prog $dir/$dlname \$dldir/$dlname'
14994+ postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14995+ dlpath=$dir/\$dldll~
14996+ $RM \$dlpath'
14997+ shlibpath_overrides_runpath=yes
14998+ dynamic_linker='Win32 link.exe'
14999 ;;
15000
15001 *)
15002+ # Assume MSVC wrapper
15003 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15004+ dynamic_linker='Win32 ld.exe'
15005 ;;
15006 esac
15007- dynamic_linker='Win32 ld.exe'
15008 # FIXME: first we should search . and the directory the executable is in
15009 shlibpath_var=PATH
15010 ;;
15011@@ -15024,6 +15854,7 @@ fi
15012 fi # test -n "$compiler"
15013
15014 CC=$lt_save_CC
15015+ CFLAGS=$lt_save_CFLAGS
15016 LDCXX=$LD
15017 LD=$lt_save_LD
15018 GCC=$lt_save_GCC
15019@@ -20310,13 +21141,20 @@ exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15020 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15021 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15022 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15023+lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15024+lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15025 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15026 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15027 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15028 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15029 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15030+file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15031+want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15032+DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15033+sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15034 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15035 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15036+archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15037 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15038 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15039 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15040@@ -20331,14 +21169,17 @@ lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$de
15041 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15042 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15043 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
15044+nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15045+lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15046 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15047 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15048 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15049-lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15050 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15051+lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15052 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15053 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15054 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15055+MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15056 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15057 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15058 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15059@@ -20371,12 +21212,12 @@ hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_q
15060 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15061 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15062 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15063-fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15064 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15065 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15066 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15067 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15068 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15069+postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15070 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15071 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15072 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15073@@ -20415,8 +21256,8 @@ old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote
15074 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
15075 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
15076 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
15077-lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
15078 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
15079+lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
15080 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
15081 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
15082 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
15083@@ -20443,12 +21284,12 @@ hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_
15084 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
15085 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
15086 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
15087-fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
15088 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
15089 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15090 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
15091 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
15092 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15093+postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15094 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
15095 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
15096 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
15097@@ -20486,8 +21327,13 @@ reload_flag \
15098 OBJDUMP \
15099 deplibs_check_method \
15100 file_magic_cmd \
15101+file_magic_glob \
15102+want_nocaseglob \
15103+DLLTOOL \
15104+sharedlib_from_linklib_cmd \
15105 AR \
15106 AR_FLAGS \
15107+archiver_list_spec \
15108 STRIP \
15109 RANLIB \
15110 CC \
15111@@ -20497,12 +21343,14 @@ lt_cv_sys_global_symbol_pipe \
15112 lt_cv_sys_global_symbol_to_cdecl \
15113 lt_cv_sys_global_symbol_to_c_name_address \
15114 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15115+nm_file_list_spec \
15116 lt_prog_compiler_no_builtin_flag \
15117-lt_prog_compiler_wl \
15118 lt_prog_compiler_pic \
15119+lt_prog_compiler_wl \
15120 lt_prog_compiler_static \
15121 lt_cv_prog_compiler_c_o \
15122 need_locks \
15123+MANIFEST_TOOL \
15124 DSYMUTIL \
15125 NMEDIT \
15126 LIPO \
15127@@ -20518,7 +21366,6 @@ no_undefined_flag \
15128 hardcode_libdir_flag_spec \
15129 hardcode_libdir_flag_spec_ld \
15130 hardcode_libdir_separator \
15131-fix_srcfile_path \
15132 exclude_expsyms \
15133 include_expsyms \
15134 file_list_spec \
15135@@ -20540,8 +21387,8 @@ LD_CXX \
15136 reload_flag_CXX \
15137 compiler_CXX \
15138 lt_prog_compiler_no_builtin_flag_CXX \
15139-lt_prog_compiler_wl_CXX \
15140 lt_prog_compiler_pic_CXX \
15141+lt_prog_compiler_wl_CXX \
15142 lt_prog_compiler_static_CXX \
15143 lt_cv_prog_compiler_c_o_CXX \
15144 export_dynamic_flag_spec_CXX \
15145@@ -20553,7 +21400,6 @@ no_undefined_flag_CXX \
15146 hardcode_libdir_flag_spec_CXX \
15147 hardcode_libdir_flag_spec_ld_CXX \
15148 hardcode_libdir_separator_CXX \
15149-fix_srcfile_path_CXX \
15150 exclude_expsyms_CXX \
15151 include_expsyms_CXX \
15152 file_list_spec_CXX \
15153@@ -20587,6 +21433,7 @@ module_cmds \
15154 module_expsym_cmds \
15155 export_symbols_cmds \
15156 prelink_cmds \
15157+postlink_cmds \
15158 postinstall_cmds \
15159 postuninstall_cmds \
15160 finish_cmds \
15161@@ -20601,7 +21448,8 @@ archive_expsym_cmds_CXX \
15162 module_cmds_CXX \
15163 module_expsym_cmds_CXX \
15164 export_symbols_cmds_CXX \
15165-prelink_cmds_CXX; do
15166+prelink_cmds_CXX \
15167+postlink_cmds_CXX; do
15168 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15169 *[\\\\\\\`\\"\\\$]*)
15170 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15171@@ -21374,7 +22222,8 @@ $as_echo X"$file" |
15172 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15173 #
15174 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15175-# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
15176+# 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
15177+# Inc.
15178 # Written by Gordon Matzigkeit, 1996
15179 #
15180 # This file is part of GNU Libtool.
15181@@ -21477,19 +22326,42 @@ SP2NL=$lt_lt_SP2NL
15182 # turn newlines into spaces.
15183 NL2SP=$lt_lt_NL2SP
15184
15185+# convert \$build file names to \$host format.
15186+to_host_file_cmd=$lt_cv_to_host_file_cmd
15187+
15188+# convert \$build files to toolchain format.
15189+to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15190+
15191 # An object symbol dumper.
15192 OBJDUMP=$lt_OBJDUMP
15193
15194 # Method to check whether dependent libraries are shared objects.
15195 deplibs_check_method=$lt_deplibs_check_method
15196
15197-# Command to use when deplibs_check_method == "file_magic".
15198+# Command to use when deplibs_check_method = "file_magic".
15199 file_magic_cmd=$lt_file_magic_cmd
15200
15201+# How to find potential files when deplibs_check_method = "file_magic".
15202+file_magic_glob=$lt_file_magic_glob
15203+
15204+# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15205+want_nocaseglob=$lt_want_nocaseglob
15206+
15207+# DLL creation program.
15208+DLLTOOL=$lt_DLLTOOL
15209+
15210+# Command to associate shared and link libraries.
15211+sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15212+
15213 # The archiver.
15214 AR=$lt_AR
15215+
15216+# Flags to create an archive.
15217 AR_FLAGS=$lt_AR_FLAGS
15218
15219+# How to feed a file listing to the archiver.
15220+archiver_list_spec=$lt_archiver_list_spec
15221+
15222 # A symbol stripping program.
15223 STRIP=$lt_STRIP
15224
15225@@ -21519,6 +22391,12 @@ global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15226 # Transform the output of nm in a C name address pair when lib prefix is needed.
15227 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15228
15229+# Specify filename containing input files for \$NM.
15230+nm_file_list_spec=$lt_nm_file_list_spec
15231+
15232+# The root where to search for dependent libraries,and in which our libraries should be installed.
15233+lt_sysroot=$lt_sysroot
15234+
15235 # The name of the directory that contains temporary libtool files.
15236 objdir=$objdir
15237
15238@@ -21528,6 +22406,9 @@ MAGIC_CMD=$MAGIC_CMD
15239 # Must we lock files when doing compilation?
15240 need_locks=$lt_need_locks
15241
15242+# Manifest tool.
15243+MANIFEST_TOOL=$lt_MANIFEST_TOOL
15244+
15245 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15246 DSYMUTIL=$lt_DSYMUTIL
15247
15248@@ -21642,12 +22523,12 @@ with_gcc=$GCC
15249 # Compiler flag to turn off builtin functions.
15250 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15251
15252-# How to pass a linker flag through the compiler.
15253-wl=$lt_lt_prog_compiler_wl
15254-
15255 # Additional compiler flags for building library objects.
15256 pic_flag=$lt_lt_prog_compiler_pic
15257
15258+# How to pass a linker flag through the compiler.
15259+wl=$lt_lt_prog_compiler_wl
15260+
15261 # Compiler flag to prevent dynamic linking.
15262 link_static_flag=$lt_lt_prog_compiler_static
15263
15264@@ -21734,9 +22615,6 @@ inherit_rpath=$inherit_rpath
15265 # Whether libtool must link a program against all its dependency libraries.
15266 link_all_deplibs=$link_all_deplibs
15267
15268-# Fix the shell variable \$srcfile for the compiler.
15269-fix_srcfile_path=$lt_fix_srcfile_path
15270-
15271 # Set to "yes" if exported symbols are required.
15272 always_export_symbols=$always_export_symbols
15273
15274@@ -21752,6 +22630,9 @@ include_expsyms=$lt_include_expsyms
15275 # Commands necessary for linking programs (against libraries) with templates.
15276 prelink_cmds=$lt_prelink_cmds
15277
15278+# Commands necessary for finishing linking programs.
15279+postlink_cmds=$lt_postlink_cmds
15280+
15281 # Specify filename containing input files.
15282 file_list_spec=$lt_file_list_spec
15283
15284@@ -21798,210 +22679,169 @@ ltmain="$ac_aux_dir/ltmain.sh"
15285 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15286 # text mode, it properly converts lines to CR/LF. This bash problem
15287 # is reportedly fixed, but why not run on old versions too?
15288- sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15289- || (rm -f "$cfgfile"; exit 1)
15290-
15291- case $xsi_shell in
15292- yes)
15293- cat << \_LT_EOF >> "$cfgfile"
15294-
15295-# func_dirname file append nondir_replacement
15296-# Compute the dirname of FILE. If nonempty, add APPEND to the result,
15297-# otherwise set result to NONDIR_REPLACEMENT.
15298-func_dirname ()
15299-{
15300- case ${1} in
15301- */*) func_dirname_result="${1%/*}${2}" ;;
15302- * ) func_dirname_result="${3}" ;;
15303- esac
15304-}
15305-
15306-# func_basename file
15307-func_basename ()
15308-{
15309- func_basename_result="${1##*/}"
15310-}
15311-
15312-# func_dirname_and_basename file append nondir_replacement
15313-# perform func_basename and func_dirname in a single function
15314-# call:
15315-# dirname: Compute the dirname of FILE. If nonempty,
15316-# add APPEND to the result, otherwise set result
15317-# to NONDIR_REPLACEMENT.
15318-# value returned in "$func_dirname_result"
15319-# basename: Compute filename of FILE.
15320-# value retuned in "$func_basename_result"
15321-# Implementation must be kept synchronized with func_dirname
15322-# and func_basename. For efficiency, we do not delegate to
15323-# those functions but instead duplicate the functionality here.
15324-func_dirname_and_basename ()
15325-{
15326- case ${1} in
15327- */*) func_dirname_result="${1%/*}${2}" ;;
15328- * ) func_dirname_result="${3}" ;;
15329- esac
15330- func_basename_result="${1##*/}"
15331-}
15332-
15333-# func_stripname prefix suffix name
15334-# strip PREFIX and SUFFIX off of NAME.
15335-# PREFIX and SUFFIX must not contain globbing or regex special
15336-# characters, hashes, percent signs, but SUFFIX may contain a leading
15337-# dot (in which case that matches only a dot).
15338-func_stripname ()
15339-{
15340- # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15341- # positional parameters, so assign one to ordinary parameter first.
15342- func_stripname_result=${3}
15343- func_stripname_result=${func_stripname_result#"${1}"}
15344- func_stripname_result=${func_stripname_result%"${2}"}
15345-}
15346-
15347-# func_opt_split
15348-func_opt_split ()
15349-{
15350- func_opt_split_opt=${1%%=*}
15351- func_opt_split_arg=${1#*=}
15352-}
15353-
15354-# func_lo2o object
15355-func_lo2o ()
15356-{
15357- case ${1} in
15358- *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15359- *) func_lo2o_result=${1} ;;
15360- esac
15361-}
15362-
15363-# func_xform libobj-or-source
15364-func_xform ()
15365-{
15366- func_xform_result=${1%.*}.lo
15367-}
15368-
15369-# func_arith arithmetic-term...
15370-func_arith ()
15371-{
15372- func_arith_result=$(( $* ))
15373-}
15374-
15375-# func_len string
15376-# STRING may not start with a hyphen.
15377-func_len ()
15378-{
15379- func_len_result=${#1}
15380-}
15381-
15382-_LT_EOF
15383- ;;
15384- *) # Bourne compatible functions.
15385- cat << \_LT_EOF >> "$cfgfile"
15386-
15387-# func_dirname file append nondir_replacement
15388-# Compute the dirname of FILE. If nonempty, add APPEND to the result,
15389-# otherwise set result to NONDIR_REPLACEMENT.
15390-func_dirname ()
15391-{
15392- # Extract subdirectory from the argument.
15393- func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
15394- if test "X$func_dirname_result" = "X${1}"; then
15395- func_dirname_result="${3}"
15396- else
15397- func_dirname_result="$func_dirname_result${2}"
15398- fi
15399-}
15400-
15401-# func_basename file
15402-func_basename ()
15403-{
15404- func_basename_result=`$ECHO "${1}" | $SED "$basename"`
15405-}
15406-
15407-
15408-# func_stripname prefix suffix name
15409-# strip PREFIX and SUFFIX off of NAME.
15410-# PREFIX and SUFFIX must not contain globbing or regex special
15411-# characters, hashes, percent signs, but SUFFIX may contain a leading
15412-# dot (in which case that matches only a dot).
15413-# func_strip_suffix prefix name
15414-func_stripname ()
15415-{
15416- case ${2} in
15417- .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
15418- *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
15419- esac
15420-}
15421-
15422-# sed scripts:
15423-my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15424-my_sed_long_arg='1s/^-[^=]*=//'
15425-
15426-# func_opt_split
15427-func_opt_split ()
15428-{
15429- func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
15430- func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
15431-}
15432-
15433-# func_lo2o object
15434-func_lo2o ()
15435-{
15436- func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
15437-}
15438-
15439-# func_xform libobj-or-source
15440-func_xform ()
15441-{
15442- func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
15443-}
15444-
15445-# func_arith arithmetic-term...
15446-func_arith ()
15447-{
15448- func_arith_result=`expr "$@"`
15449-}
15450-
15451-# func_len string
15452-# STRING may not start with a hyphen.
15453-func_len ()
15454-{
15455- func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15456-}
15457-
15458-_LT_EOF
15459-esac
15460-
15461-case $lt_shell_append in
15462- yes)
15463- cat << \_LT_EOF >> "$cfgfile"
15464-
15465-# func_append var value
15466-# Append VALUE to the end of shell variable VAR.
15467-func_append ()
15468-{
15469- eval "$1+=\$2"
15470-}
15471-_LT_EOF
15472- ;;
15473- *)
15474- cat << \_LT_EOF >> "$cfgfile"
15475-
15476-# func_append var value
15477-# Append VALUE to the end of shell variable VAR.
15478-func_append ()
15479-{
15480- eval "$1=\$$1\$2"
15481-}
15482-
15483-_LT_EOF
15484- ;;
15485- esac
15486-
15487-
15488- sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15489- || (rm -f "$cfgfile"; exit 1)
15490-
15491- mv -f "$cfgfile" "$ofile" ||
15492+ sed '$q' "$ltmain" >> "$cfgfile" \
15493+ || (rm -f "$cfgfile"; exit 1)
15494+
15495+ if test x"$xsi_shell" = xyes; then
15496+ sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
15497+func_dirname ()\
15498+{\
15499+\ case ${1} in\
15500+\ */*) func_dirname_result="${1%/*}${2}" ;;\
15501+\ * ) func_dirname_result="${3}" ;;\
15502+\ esac\
15503+} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
15504+ && mv -f "$cfgfile.tmp" "$cfgfile" \
15505+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15506+test 0 -eq $? || _lt_function_replace_fail=:
15507+
15508+
15509+ sed -e '/^func_basename ()$/,/^} # func_basename /c\
15510+func_basename ()\
15511+{\
15512+\ func_basename_result="${1##*/}"\
15513+} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
15514+ && mv -f "$cfgfile.tmp" "$cfgfile" \
15515+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15516+test 0 -eq $? || _lt_function_replace_fail=:
15517+
15518+
15519+ sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
15520+func_dirname_and_basename ()\
15521+{\
15522+\ case ${1} in\
15523+\ */*) func_dirname_result="${1%/*}${2}" ;;\
15524+\ * ) func_dirname_result="${3}" ;;\
15525+\ esac\
15526+\ func_basename_result="${1##*/}"\
15527+} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
15528+ && mv -f "$cfgfile.tmp" "$cfgfile" \
15529+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15530+test 0 -eq $? || _lt_function_replace_fail=:
15531+
15532+
15533+ sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
15534+func_stripname ()\
15535+{\
15536+\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
15537+\ # positional parameters, so assign one to ordinary parameter first.\
15538+\ func_stripname_result=${3}\
15539+\ func_stripname_result=${func_stripname_result#"${1}"}\
15540+\ func_stripname_result=${func_stripname_result%"${2}"}\
15541+} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
15542+ && mv -f "$cfgfile.tmp" "$cfgfile" \
15543+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15544+test 0 -eq $? || _lt_function_replace_fail=:
15545+
15546+
15547+ sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
15548+func_split_long_opt ()\
15549+{\
15550+\ func_split_long_opt_name=${1%%=*}\
15551+\ func_split_long_opt_arg=${1#*=}\
15552+} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
15553+ && mv -f "$cfgfile.tmp" "$cfgfile" \
15554+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15555+test 0 -eq $? || _lt_function_replace_fail=:
15556+
15557+
15558+ sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
15559+func_split_short_opt ()\
15560+{\
15561+\ func_split_short_opt_arg=${1#??}\
15562+\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
15563+} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
15564+ && mv -f "$cfgfile.tmp" "$cfgfile" \
15565+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15566+test 0 -eq $? || _lt_function_replace_fail=:
15567+
15568+
15569+ sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
15570+func_lo2o ()\
15571+{\
15572+\ case ${1} in\
15573+\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
15574+\ *) func_lo2o_result=${1} ;;\
15575+\ esac\
15576+} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
15577+ && mv -f "$cfgfile.tmp" "$cfgfile" \
15578+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15579+test 0 -eq $? || _lt_function_replace_fail=:
15580+
15581+
15582+ sed -e '/^func_xform ()$/,/^} # func_xform /c\
15583+func_xform ()\
15584+{\
15585+ func_xform_result=${1%.*}.lo\
15586+} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
15587+ && mv -f "$cfgfile.tmp" "$cfgfile" \
15588+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15589+test 0 -eq $? || _lt_function_replace_fail=:
15590+
15591+
15592+ sed -e '/^func_arith ()$/,/^} # func_arith /c\
15593+func_arith ()\
15594+{\
15595+ func_arith_result=$(( $* ))\
15596+} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
15597+ && mv -f "$cfgfile.tmp" "$cfgfile" \
15598+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15599+test 0 -eq $? || _lt_function_replace_fail=:
15600+
15601+
15602+ sed -e '/^func_len ()$/,/^} # func_len /c\
15603+func_len ()\
15604+{\
15605+ func_len_result=${#1}\
15606+} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
15607+ && mv -f "$cfgfile.tmp" "$cfgfile" \
15608+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15609+test 0 -eq $? || _lt_function_replace_fail=:
15610+
15611+fi
15612+
15613+if test x"$lt_shell_append" = xyes; then
15614+ sed -e '/^func_append ()$/,/^} # func_append /c\
15615+func_append ()\
15616+{\
15617+ eval "${1}+=\\${2}"\
15618+} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
15619+ && mv -f "$cfgfile.tmp" "$cfgfile" \
15620+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15621+test 0 -eq $? || _lt_function_replace_fail=:
15622+
15623+
15624+ sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
15625+func_append_quoted ()\
15626+{\
15627+\ func_quote_for_eval "${2}"\
15628+\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
15629+} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
15630+ && mv -f "$cfgfile.tmp" "$cfgfile" \
15631+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15632+test 0 -eq $? || _lt_function_replace_fail=:
15633+
15634+
15635+ # Save a `func_append' function call where possible by direct use of '+='
15636+ sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
15637+ && mv -f "$cfgfile.tmp" "$cfgfile" \
15638+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15639+ test 0 -eq $? || _lt_function_replace_fail=:
15640+else
15641+ # Save a `func_append' function call even when '+=' is not available
15642+ sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
15643+ && mv -f "$cfgfile.tmp" "$cfgfile" \
15644+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15645+ test 0 -eq $? || _lt_function_replace_fail=:
15646+fi
15647+
15648+if test x"$_lt_function_replace_fail" = x":"; then
15649+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
15650+$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
15651+fi
15652+
15653+
15654+ mv -f "$cfgfile" "$ofile" ||
15655 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15656 chmod +x "$ofile"
15657
15658@@ -22029,12 +22869,12 @@ with_gcc=$GCC_CXX
15659 # Compiler flag to turn off builtin functions.
15660 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
15661
15662-# How to pass a linker flag through the compiler.
15663-wl=$lt_lt_prog_compiler_wl_CXX
15664-
15665 # Additional compiler flags for building library objects.
15666 pic_flag=$lt_lt_prog_compiler_pic_CXX
15667
15668+# How to pass a linker flag through the compiler.
15669+wl=$lt_lt_prog_compiler_wl_CXX
15670+
15671 # Compiler flag to prevent dynamic linking.
15672 link_static_flag=$lt_lt_prog_compiler_static_CXX
15673
15674@@ -22121,9 +22961,6 @@ inherit_rpath=$inherit_rpath_CXX
15675 # Whether libtool must link a program against all its dependency libraries.
15676 link_all_deplibs=$link_all_deplibs_CXX
15677
15678-# Fix the shell variable \$srcfile for the compiler.
15679-fix_srcfile_path=$lt_fix_srcfile_path_CXX
15680-
15681 # Set to "yes" if exported symbols are required.
15682 always_export_symbols=$always_export_symbols_CXX
15683
15684@@ -22139,6 +22976,9 @@ include_expsyms=$lt_include_expsyms_CXX
15685 # Commands necessary for linking programs (against libraries) with templates.
15686 prelink_cmds=$lt_prelink_cmds_CXX
15687
15688+# Commands necessary for finishing linking programs.
15689+postlink_cmds=$lt_postlink_cmds_CXX
15690+
15691 # Specify filename containing input files.
15692 file_list_spec=$lt_file_list_spec_CXX
15693
15694diff --git a/libbacktrace/Makefile.in b/libbacktrace/Makefile.in
15695index 0a61880ba67..500756cd023 100644
15696--- a/libbacktrace/Makefile.in
15697+++ b/libbacktrace/Makefile.in
15698@@ -1,7 +1,7 @@
15699-# Makefile.in generated by automake 1.15.1 from Makefile.am.
15700+# Makefile.in generated by automake 1.16.5 from Makefile.am.
15701 # @configure_input@
15702
15703-# Copyright (C) 1994-2017 Free Software Foundation, Inc.
15704+# Copyright (C) 1994-2021 Free Software Foundation, Inc.
15705
15706 # This Makefile.in is free software; the Free Software Foundation
15707 # gives unlimited permission to copy and/or distribute it,
15708@@ -189,6 +189,35 @@ CONFIG_HEADER = config.h
15709 CONFIG_CLEAN_FILES = backtrace-supported.h \
15710 install-debuginfo-for-buildid.sh
15711 CONFIG_CLEAN_VPATH_FILES =
15712+@NATIVE_TRUE@am__EXEEXT_1 = allocfail$(EXEEXT)
15713+@HAVE_ELF_TRUE@@HAVE_OBJCOPY_DEBUGLINK_TRUE@@NATIVE_TRUE@am__EXEEXT_2 = b2test$(EXEEXT)
15714+@HAVE_DWZ_TRUE@@HAVE_ELF_TRUE@@HAVE_OBJCOPY_DEBUGLINK_TRUE@@NATIVE_TRUE@am__EXEEXT_3 = b3test$(EXEEXT)
15715+@NATIVE_TRUE@am__EXEEXT_4 = test_elf_32$(EXEEXT) test_elf_64$(EXEEXT) \
15716+@NATIVE_TRUE@ test_macho$(EXEEXT) test_xcoff_32$(EXEEXT) \
15717+@NATIVE_TRUE@ test_xcoff_64$(EXEEXT) test_pecoff$(EXEEXT) \
15718+@NATIVE_TRUE@ test_unknown$(EXEEXT) unittest$(EXEEXT) \
15719+@NATIVE_TRUE@ unittest_alloc$(EXEEXT) btest$(EXEEXT)
15720+@HAVE_ELF_TRUE@@NATIVE_TRUE@am__EXEEXT_5 = btest_lto$(EXEEXT)
15721+@NATIVE_TRUE@am__EXEEXT_6 = btest_alloc$(EXEEXT) stest$(EXEEXT) \
15722+@NATIVE_TRUE@ stest_alloc$(EXEEXT)
15723+@HAVE_ELF_TRUE@@NATIVE_TRUE@am__EXEEXT_7 = ztest$(EXEEXT) \
15724+@HAVE_ELF_TRUE@@NATIVE_TRUE@ ztest_alloc$(EXEEXT)
15725+@NATIVE_TRUE@am__EXEEXT_8 = edtest$(EXEEXT) edtest_alloc$(EXEEXT)
15726+@HAVE_PTHREAD_TRUE@@NATIVE_TRUE@am__EXEEXT_9 = ttest$(EXEEXT) \
15727+@HAVE_PTHREAD_TRUE@@NATIVE_TRUE@ ttest_alloc$(EXEEXT)
15728+@HAVE_COMPRESSED_DEBUG_TRUE@@NATIVE_TRUE@am__EXEEXT_10 = \
15729+@HAVE_COMPRESSED_DEBUG_TRUE@@NATIVE_TRUE@ ctestg$(EXEEXT) \
15730+@HAVE_COMPRESSED_DEBUG_TRUE@@NATIVE_TRUE@ ctesta$(EXEEXT) \
15731+@HAVE_COMPRESSED_DEBUG_TRUE@@NATIVE_TRUE@ ctestg_alloc$(EXEEXT) \
15732+@HAVE_COMPRESSED_DEBUG_TRUE@@NATIVE_TRUE@ ctesta_alloc$(EXEEXT)
15733+@HAVE_DWARF5_TRUE@@NATIVE_TRUE@am__EXEEXT_11 = dwarf5$(EXEEXT) \
15734+@HAVE_DWARF5_TRUE@@NATIVE_TRUE@ dwarf5_alloc$(EXEEXT)
15735+@NATIVE_TRUE@am__EXEEXT_12 = mtest$(EXEEXT)
15736+@HAVE_ELF_TRUE@am__EXEEXT_13 = xztest$(EXEEXT) xztest_alloc$(EXEEXT)
15737+am__EXEEXT_14 = $(am__EXEEXT_4) $(am__EXEEXT_5) $(am__EXEEXT_6) \
15738+ $(am__EXEEXT_7) $(am__EXEEXT_8) $(am__EXEEXT_9) \
15739+ $(am__EXEEXT_10) $(am__EXEEXT_11) $(am__EXEEXT_12) \
15740+ $(am__EXEEXT_13)
15741 LTLIBRARIES = $(noinst_LTLIBRARIES)
15742 am__DEPENDENCIES_1 =
15743 am_libbacktrace_la_OBJECTS = atomic.lo dwarf.lo fileline.lo posix.lo \
15744@@ -220,35 +249,6 @@ libbacktrace_instrumented_alloc_la_OBJECTS = \
15745 libbacktrace_noformat_la_OBJECTS = \
15746 $(am_libbacktrace_noformat_la_OBJECTS)
15747 @NATIVE_TRUE@am_libbacktrace_noformat_la_rpath =
15748-@NATIVE_TRUE@am__EXEEXT_1 = allocfail$(EXEEXT)
15749-@HAVE_ELF_TRUE@@HAVE_OBJCOPY_DEBUGLINK_TRUE@@NATIVE_TRUE@am__EXEEXT_2 = b2test$(EXEEXT)
15750-@HAVE_DWZ_TRUE@@HAVE_ELF_TRUE@@HAVE_OBJCOPY_DEBUGLINK_TRUE@@NATIVE_TRUE@am__EXEEXT_3 = b3test$(EXEEXT)
15751-@NATIVE_TRUE@am__EXEEXT_4 = test_elf_32$(EXEEXT) test_elf_64$(EXEEXT) \
15752-@NATIVE_TRUE@ test_macho$(EXEEXT) test_xcoff_32$(EXEEXT) \
15753-@NATIVE_TRUE@ test_xcoff_64$(EXEEXT) test_pecoff$(EXEEXT) \
15754-@NATIVE_TRUE@ test_unknown$(EXEEXT) unittest$(EXEEXT) \
15755-@NATIVE_TRUE@ unittest_alloc$(EXEEXT) btest$(EXEEXT)
15756-@HAVE_ELF_TRUE@@NATIVE_TRUE@am__EXEEXT_5 = btest_lto$(EXEEXT)
15757-@NATIVE_TRUE@am__EXEEXT_6 = btest_alloc$(EXEEXT) stest$(EXEEXT) \
15758-@NATIVE_TRUE@ stest_alloc$(EXEEXT)
15759-@HAVE_ELF_TRUE@@NATIVE_TRUE@am__EXEEXT_7 = ztest$(EXEEXT) \
15760-@HAVE_ELF_TRUE@@NATIVE_TRUE@ ztest_alloc$(EXEEXT)
15761-@NATIVE_TRUE@am__EXEEXT_8 = edtest$(EXEEXT) edtest_alloc$(EXEEXT)
15762-@HAVE_PTHREAD_TRUE@@NATIVE_TRUE@am__EXEEXT_9 = ttest$(EXEEXT) \
15763-@HAVE_PTHREAD_TRUE@@NATIVE_TRUE@ ttest_alloc$(EXEEXT)
15764-@HAVE_COMPRESSED_DEBUG_TRUE@@NATIVE_TRUE@am__EXEEXT_10 = \
15765-@HAVE_COMPRESSED_DEBUG_TRUE@@NATIVE_TRUE@ ctestg$(EXEEXT) \
15766-@HAVE_COMPRESSED_DEBUG_TRUE@@NATIVE_TRUE@ ctesta$(EXEEXT) \
15767-@HAVE_COMPRESSED_DEBUG_TRUE@@NATIVE_TRUE@ ctestg_alloc$(EXEEXT) \
15768-@HAVE_COMPRESSED_DEBUG_TRUE@@NATIVE_TRUE@ ctesta_alloc$(EXEEXT)
15769-@HAVE_DWARF5_TRUE@@NATIVE_TRUE@am__EXEEXT_11 = dwarf5$(EXEEXT) \
15770-@HAVE_DWARF5_TRUE@@NATIVE_TRUE@ dwarf5_alloc$(EXEEXT)
15771-@NATIVE_TRUE@am__EXEEXT_12 = mtest$(EXEEXT)
15772-@HAVE_ELF_TRUE@am__EXEEXT_13 = xztest$(EXEEXT) xztest_alloc$(EXEEXT)
15773-am__EXEEXT_14 = $(am__EXEEXT_4) $(am__EXEEXT_5) $(am__EXEEXT_6) \
15774- $(am__EXEEXT_7) $(am__EXEEXT_8) $(am__EXEEXT_9) \
15775- $(am__EXEEXT_10) $(am__EXEEXT_11) $(am__EXEEXT_12) \
15776- $(am__EXEEXT_13)
15777 @NATIVE_TRUE@am_allocfail_OBJECTS = allocfail-allocfail.$(OBJEXT) \
15778 @NATIVE_TRUE@ allocfail-testlib.$(OBJEXT)
15779 allocfail_OBJECTS = $(am_allocfail_OBJECTS)
15780@@ -536,7 +536,7 @@ am__v_at_0 = @
15781 am__v_at_1 =
15782 DEFAULT_INCLUDES = -I.@am__isrc@
15783 depcomp =
15784-am__depfiles_maybe =
15785+am__maybe_remake_depfiles =
15786 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
15787 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
15788 LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
15789@@ -579,8 +579,8 @@ am__can_run_installinfo = \
15790 n|no|NO) false;; \
15791 *) (install-info --version) >/dev/null 2>&1;; \
15792 esac
15793-am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) \
15794- $(LISP)config.h.in
15795+am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) \
15796+ config.h.in
15797 # Read a list of newline-separated strings from the standard input,
15798 # and print each of them once, without duplicates. Input order is
15799 # *not* preserved.
15800@@ -597,9 +597,6 @@ am__define_uniq_tagged_files = \
15801 unique=`for i in $$list; do \
15802 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
15803 done | $(am__uniquify_input)`
15804-ETAGS = etags
15805-CTAGS = ctags
15806-CSCOPE = cscope
15807 AM_RECURSIVE_TARGETS = cscope check recheck
15808 am__tty_colors_dummy = \
15809 mgn= red= grn= lgn= blu= brg= std=; \
15810@@ -783,6 +780,7 @@ am__set_TESTS_bases = \
15811 bases='$(TEST_LOGS)'; \
15812 bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \
15813 bases=`echo $$bases`
15814+AM_TESTSUITE_SUMMARY_HEADER = ' for $(PACKAGE_STRING)'
15815 RECHECK_LOGS = $(TEST_LOGS)
15816 TEST_SUITE_LOG = test-suite.log
15817 TEST_EXTENSIONS = @EXEEXT@ .test
15818@@ -825,8 +823,11 @@ CLOCK_GETTIME_LINK = @CLOCK_GETTIME_LINK@
15819 COMM = @COMM@
15820 CPP = @CPP@
15821 CPPFLAGS = @CPPFLAGS@
15822+CSCOPE = @CSCOPE@
15823+CTAGS = @CTAGS@
15824 CYGPATH_W = @CYGPATH_W@
15825 DEFS = @DEFS@
15826+DLLTOOL = @DLLTOOL@
15827 DSYMUTIL = @DSYMUTIL@
15828 DUMPBIN = @DUMPBIN@
15829 DWZ = @DWZ@
15830@@ -834,6 +835,7 @@ ECHO_C = @ECHO_C@
15831 ECHO_N = @ECHO_N@
15832 ECHO_T = @ECHO_T@
15833 EGREP = @EGREP@
15834+ETAGS = @ETAGS@
15835 EXEEXT = @EXEEXT@
15836 EXTRA_FLAGS = @EXTRA_FLAGS@
15837 FGREP = @FGREP@
15838@@ -854,6 +856,7 @@ LN_S = @LN_S@
15839 LTLIBOBJS = @LTLIBOBJS@
15840 MAINT = @MAINT@
15841 MAKEINFO = @MAKEINFO@
15842+MANIFEST_TOOL = @MANIFEST_TOOL@
15843 MKDIR_P = @MKDIR_P@
15844 NM = @NM@
15845 NMEDIT = @NMEDIT@
15846@@ -886,6 +889,7 @@ abs_builddir = @abs_builddir@
15847 abs_srcdir = @abs_srcdir@
15848 abs_top_builddir = @abs_top_builddir@
15849 abs_top_srcdir = @abs_top_srcdir@
15850+ac_ct_AR = @ac_ct_AR@
15851 ac_ct_CC = @ac_ct_CC@
15852 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
15853 am__leading_dot = @am__leading_dot@
15854@@ -1178,8 +1182,8 @@ Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
15855 echo ' $(SHELL) ./config.status'; \
15856 $(SHELL) ./config.status;; \
15857 *) \
15858- echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
15859- cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
15860+ echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__maybe_remake_depfiles)'; \
15861+ cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__maybe_remake_depfiles);; \
15862 esac;
15863 $(top_srcdir)/../multilib.am $(am__empty):
15864
15865@@ -1211,6 +1215,15 @@ backtrace-supported.h: $(top_builddir)/config.status $(srcdir)/backtrace-support
15866 install-debuginfo-for-buildid.sh: $(top_builddir)/config.status $(srcdir)/install-debuginfo-for-buildid.sh.in
15867 cd $(top_builddir) && $(SHELL) ./config.status $@
15868
15869+clean-checkPROGRAMS:
15870+ @list='$(check_PROGRAMS)'; test -n "$$list" || exit 0; \
15871+ echo " rm -f" $$list; \
15872+ rm -f $$list || exit $$?; \
15873+ test -n "$(EXEEXT)" || exit 0; \
15874+ list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
15875+ echo " rm -f" $$list; \
15876+ rm -f $$list
15877+
15878 clean-checkLTLIBRARIES:
15879 -test -z "$(check_LTLIBRARIES)" || rm -f $(check_LTLIBRARIES)
15880 @list='$(check_LTLIBRARIES)'; \
15881@@ -1248,15 +1261,6 @@ libbacktrace_instrumented_alloc.la: $(libbacktrace_instrumented_alloc_la_OBJECTS
15882 libbacktrace_noformat.la: $(libbacktrace_noformat_la_OBJECTS) $(libbacktrace_noformat_la_DEPENDENCIES) $(EXTRA_libbacktrace_noformat_la_DEPENDENCIES)
15883 $(AM_V_CCLD)$(LINK) $(am_libbacktrace_noformat_la_rpath) $(libbacktrace_noformat_la_OBJECTS) $(libbacktrace_noformat_la_LIBADD) $(LIBS)
15884
15885-clean-checkPROGRAMS:
15886- @list='$(check_PROGRAMS)'; test -n "$$list" || exit 0; \
15887- echo " rm -f" $$list; \
15888- rm -f $$list || exit $$?; \
15889- test -n "$(EXEEXT)" || exit 0; \
15890- list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
15891- echo " rm -f" $$list; \
15892- rm -f $$list
15893-
15894 allocfail$(EXEEXT): $(allocfail_OBJECTS) $(allocfail_DEPENDENCIES) $(EXTRA_allocfail_DEPENDENCIES)
15895 @rm -f allocfail$(EXEEXT)
15896 $(AM_V_CCLD)$(allocfail_LINK) $(allocfail_OBJECTS) $(allocfail_LDADD) $(LIBS)
15897@@ -1959,7 +1963,7 @@ $(TEST_SUITE_LOG): $(TEST_LOGS)
15898 test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \
15899 fi; \
15900 echo "$${col}$$br$${std}"; \
15901- echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \
15902+ echo "$${col}Testsuite summary"$(AM_TESTSUITE_SUMMARY_HEADER)"$${std}"; \
15903 echo "$${col}$$br$${std}"; \
15904 create_testsuite_report --maybe-color; \
15905 echo "$$col$$br$$std"; \
15906@@ -1972,7 +1976,7 @@ $(TEST_SUITE_LOG): $(TEST_LOGS)
15907 fi; \
15908 $$success || exit 1
15909
15910-check-TESTS:
15911+check-TESTS: $(check_PROGRAMS) $(check_LTLIBRARIES) $(check_DATA)
15912 @list='$(RECHECK_LOGS)'; test -z "$$list" || rm -f $$list
15913 @list='$(RECHECK_LOGS:.log=.trs)'; test -z "$$list" || rm -f $$list
15914 @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
15915@@ -1982,7 +1986,7 @@ check-TESTS:
15916 log_list=`echo $$log_list`; trs_list=`echo $$trs_list`; \
15917 $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) TEST_LOGS="$$log_list"; \
15918 exit $$?;
15919-recheck: all $(check_LTLIBRARIES) $(check_PROGRAMS) $(check_DATA)
15920+recheck: all $(check_PROGRAMS) $(check_LTLIBRARIES) $(check_DATA)
15921 @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
15922 @set +e; $(am__set_TESTS_bases); \
15923 bases=`for i in $$bases; do echo $$i; done \
15924@@ -2260,7 +2264,7 @@ xztest_alloc.log: xztest_alloc$(EXEEXT)
15925 @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
15926 @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT)
15927 check-am: all-am
15928- $(MAKE) $(AM_MAKEFLAGS) $(check_LTLIBRARIES) $(check_PROGRAMS) \
15929+ $(MAKE) $(AM_MAKEFLAGS) $(check_PROGRAMS) $(check_LTLIBRARIES) \
15930 $(check_DATA)
15931 $(MAKE) $(AM_MAKEFLAGS) check-TESTS
15932 check: check-am
15933diff --git a/libbacktrace/aclocal.m4 b/libbacktrace/aclocal.m4
15934index 528e6173930..d88a5ec84f2 100644
15935--- a/libbacktrace/aclocal.m4
15936+++ b/libbacktrace/aclocal.m4
15937@@ -1,6 +1,6 @@
15938-# generated automatically by aclocal 1.15.1 -*- Autoconf -*-
15939+# generated automatically by aclocal 1.16.5 -*- Autoconf -*-
15940
15941-# Copyright (C) 1996-2017 Free Software Foundation, Inc.
15942+# Copyright (C) 1996-2021 Free Software Foundation, Inc.
15943
15944 # This file is free software; the Free Software Foundation
15945 # gives unlimited permission to copy and/or distribute it,
15946@@ -20,7 +20,7 @@ You have another version of autoconf. It may work, but is not guaranteed to.
15947 If you have problems, you may need to regenerate the build system entirely.
15948 To do so, use the procedure documented by the package, typically 'autoreconf'.])])
15949
15950-# Copyright (C) 2002-2017 Free Software Foundation, Inc.
15951+# Copyright (C) 2002-2021 Free Software Foundation, Inc.
15952 #
15953 # This file is free software; the Free Software Foundation
15954 # gives unlimited permission to copy and/or distribute it,
15955@@ -32,10 +32,10 @@ To do so, use the procedure documented by the package, typically 'autoreconf'.])
15956 # generated from the m4 files accompanying Automake X.Y.
15957 # (This private macro should not be called outside this file.)
15958 AC_DEFUN([AM_AUTOMAKE_VERSION],
15959-[am__api_version='1.15'
15960+[am__api_version='1.16'
15961 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
15962 dnl require some minimum version. Point them to the right macro.
15963-m4_if([$1], [1.15.1], [],
15964+m4_if([$1], [1.16.5], [],
15965 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
15966 ])
15967
15968@@ -51,14 +51,14 @@ m4_define([_AM_AUTOCONF_VERSION], [])
15969 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
15970 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
15971 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
15972-[AM_AUTOMAKE_VERSION([1.15.1])dnl
15973+[AM_AUTOMAKE_VERSION([1.16.5])dnl
15974 m4_ifndef([AC_AUTOCONF_VERSION],
15975 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
15976 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
15977
15978 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
15979
15980-# Copyright (C) 2001-2017 Free Software Foundation, Inc.
15981+# Copyright (C) 2001-2021 Free Software Foundation, Inc.
15982 #
15983 # This file is free software; the Free Software Foundation
15984 # gives unlimited permission to copy and/or distribute it,
15985@@ -110,7 +110,7 @@ am_aux_dir=`cd "$ac_aux_dir" && pwd`
15986
15987 # AM_CONDITIONAL -*- Autoconf -*-
15988
15989-# Copyright (C) 1997-2017 Free Software Foundation, Inc.
15990+# Copyright (C) 1997-2021 Free Software Foundation, Inc.
15991 #
15992 # This file is free software; the Free Software Foundation
15993 # gives unlimited permission to copy and/or distribute it,
15994@@ -143,7 +143,7 @@ fi])])
15995
15996 # Do all the work for Automake. -*- Autoconf -*-
15997
15998-# Copyright (C) 1996-2017 Free Software Foundation, Inc.
15999+# Copyright (C) 1996-2021 Free Software Foundation, Inc.
16000 #
16001 # This file is free software; the Free Software Foundation
16002 # gives unlimited permission to copy and/or distribute it,
16003@@ -171,6 +171,10 @@ m4_defn([AC_PROG_CC])
16004 # release and drop the old call support.
16005 AC_DEFUN([AM_INIT_AUTOMAKE],
16006 [AC_PREREQ([2.65])dnl
16007+m4_ifdef([_$0_ALREADY_INIT],
16008+ [m4_fatal([$0 expanded multiple times
16009+]m4_defn([_$0_ALREADY_INIT]))],
16010+ [m4_define([_$0_ALREADY_INIT], m4_expansion_stack)])dnl
16011 dnl Autoconf wants to disallow AM_ names. We explicitly allow
16012 dnl the ones we care about.
16013 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
16014@@ -207,7 +211,7 @@ m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
16015 [_AM_SET_OPTIONS([$1])dnl
16016 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
16017 m4_if(
16018- m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
16019+ m4_ifset([AC_PACKAGE_NAME], [ok]):m4_ifset([AC_PACKAGE_VERSION], [ok]),
16020 [ok:ok],,
16021 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
16022 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
16023@@ -230,8 +234,8 @@ AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
16024 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
16025 # For better backward compatibility. To be removed once Automake 1.9.x
16026 # dies out for good. For more background, see:
16027-# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
16028-# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
16029+# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
16030+# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
16031 AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
16032 # We need awk for the "check" target (and possibly the TAP driver). The
16033 # system "awk" is bad on some platforms.
16034@@ -259,6 +263,20 @@ AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
16035 [m4_define([AC_PROG_OBJCXX],
16036 m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
16037 ])
16038+# Variables for tags utilities; see am/tags.am
16039+if test -z "$CTAGS"; then
16040+ CTAGS=ctags
16041+fi
16042+AC_SUBST([CTAGS])
16043+if test -z "$ETAGS"; then
16044+ ETAGS=etags
16045+fi
16046+AC_SUBST([ETAGS])
16047+if test -z "$CSCOPE"; then
16048+ CSCOPE=cscope
16049+fi
16050+AC_SUBST([CSCOPE])
16051+
16052 AC_REQUIRE([AM_SILENT_RULES])dnl
16053 dnl The testsuite driver may need to know about EXEEXT, so add the
16054 dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This
16055@@ -298,7 +316,7 @@ END
16056 Aborting the configuration process, to ensure you take notice of the issue.
16057
16058 You can download and install GNU coreutils to get an 'rm' implementation
16059-that behaves properly: <http://www.gnu.org/software/coreutils/>.
16060+that behaves properly: <https://www.gnu.org/software/coreutils/>.
16061
16062 If you want to complete the configuration process using your problematic
16063 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
16064@@ -340,7 +358,7 @@ for _am_header in $config_headers :; do
16065 done
16066 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
16067
16068-# Copyright (C) 2001-2017 Free Software Foundation, Inc.
16069+# Copyright (C) 2001-2021 Free Software Foundation, Inc.
16070 #
16071 # This file is free software; the Free Software Foundation
16072 # gives unlimited permission to copy and/or distribute it,
16073@@ -364,7 +382,7 @@ AC_SUBST([install_sh])])
16074 # Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
16075 # From Jim Meyering
16076
16077-# Copyright (C) 1996-2017 Free Software Foundation, Inc.
16078+# Copyright (C) 1996-2021 Free Software Foundation, Inc.
16079 #
16080 # This file is free software; the Free Software Foundation
16081 # gives unlimited permission to copy and/or distribute it,
16082@@ -399,7 +417,7 @@ AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
16083
16084 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
16085
16086-# Copyright (C) 1997-2017 Free Software Foundation, Inc.
16087+# Copyright (C) 1997-2021 Free Software Foundation, Inc.
16088 #
16089 # This file is free software; the Free Software Foundation
16090 # gives unlimited permission to copy and/or distribute it,
16091@@ -420,12 +438,7 @@ AC_DEFUN([AM_MISSING_HAS_RUN],
16092 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
16093 AC_REQUIRE_AUX_FILE([missing])dnl
16094 if test x"${MISSING+set}" != xset; then
16095- case $am_aux_dir in
16096- *\ * | *\ *)
16097- MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
16098- *)
16099- MISSING="\${SHELL} $am_aux_dir/missing" ;;
16100- esac
16101+ MISSING="\${SHELL} '$am_aux_dir/missing'"
16102 fi
16103 # Use eval to expand $SHELL
16104 if eval "$MISSING --is-lightweight"; then
16105@@ -438,7 +451,7 @@ fi
16106
16107 # Helper functions for option handling. -*- Autoconf -*-
16108
16109-# Copyright (C) 2001-2017 Free Software Foundation, Inc.
16110+# Copyright (C) 2001-2021 Free Software Foundation, Inc.
16111 #
16112 # This file is free software; the Free Software Foundation
16113 # gives unlimited permission to copy and/or distribute it,
16114@@ -467,7 +480,7 @@ AC_DEFUN([_AM_SET_OPTIONS],
16115 AC_DEFUN([_AM_IF_OPTION],
16116 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
16117
16118-# Copyright (C) 1999-2017 Free Software Foundation, Inc.
16119+# Copyright (C) 1999-2021 Free Software Foundation, Inc.
16120 #
16121 # This file is free software; the Free Software Foundation
16122 # gives unlimited permission to copy and/or distribute it,
16123@@ -514,7 +527,7 @@ AC_LANG_POP([C])])
16124 # For backward compatibility.
16125 AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
16126
16127-# Copyright (C) 2001-2017 Free Software Foundation, Inc.
16128+# Copyright (C) 2001-2021 Free Software Foundation, Inc.
16129 #
16130 # This file is free software; the Free Software Foundation
16131 # gives unlimited permission to copy and/or distribute it,
16132@@ -533,7 +546,7 @@ AC_DEFUN([AM_RUN_LOG],
16133
16134 # Check to make sure that the build environment is sane. -*- Autoconf -*-
16135
16136-# Copyright (C) 1996-2017 Free Software Foundation, Inc.
16137+# Copyright (C) 1996-2021 Free Software Foundation, Inc.
16138 #
16139 # This file is free software; the Free Software Foundation
16140 # gives unlimited permission to copy and/or distribute it,
16141@@ -614,7 +627,7 @@ AC_CONFIG_COMMANDS_PRE(
16142 rm -f conftest.file
16143 ])
16144
16145-# Copyright (C) 2009-2017 Free Software Foundation, Inc.
16146+# Copyright (C) 2009-2021 Free Software Foundation, Inc.
16147 #
16148 # This file is free software; the Free Software Foundation
16149 # gives unlimited permission to copy and/or distribute it,
16150@@ -674,7 +687,7 @@ AC_SUBST([AM_BACKSLASH])dnl
16151 _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
16152 ])
16153
16154-# Copyright (C) 2001-2017 Free Software Foundation, Inc.
16155+# Copyright (C) 2001-2021 Free Software Foundation, Inc.
16156 #
16157 # This file is free software; the Free Software Foundation
16158 # gives unlimited permission to copy and/or distribute it,
16159@@ -702,7 +715,7 @@ fi
16160 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
16161 AC_SUBST([INSTALL_STRIP_PROGRAM])])
16162
16163-# Copyright (C) 2006-2017 Free Software Foundation, Inc.
16164+# Copyright (C) 2006-2021 Free Software Foundation, Inc.
16165 #
16166 # This file is free software; the Free Software Foundation
16167 # gives unlimited permission to copy and/or distribute it,
16168@@ -721,7 +734,7 @@ AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
16169
16170 # Check how to create a tarball. -*- Autoconf -*-
16171
16172-# Copyright (C) 2004-2017 Free Software Foundation, Inc.
16173+# Copyright (C) 2004-2021 Free Software Foundation, Inc.
16174 #
16175 # This file is free software; the Free Software Foundation
16176 # gives unlimited permission to copy and/or distribute it,
16177diff --git a/libbacktrace/configure b/libbacktrace/configure
16178index e5ca8ad9379..b7c4c4be78d 100755
16179--- a/libbacktrace/configure
16180+++ b/libbacktrace/configure
16181@@ -680,7 +680,10 @@ OTOOL
16182 LIPO
16183 NMEDIT
16184 DSYMUTIL
16185+MANIFEST_TOOL
16186+ac_ct_AR
16187 AR
16188+DLLTOOL
16189 OBJDUMP
16190 LN_S
16191 NM
16192@@ -701,6 +704,9 @@ AM_BACKSLASH
16193 AM_DEFAULT_VERBOSITY
16194 AM_DEFAULT_V
16195 AM_V
16196+CSCOPE
16197+ETAGS
16198+CTAGS
16199 am__untar
16200 am__tar
16201 AMTAR
16202@@ -798,6 +804,7 @@ enable_static
16203 with_pic
16204 enable_fast_install
16205 with_gnu_ld
16206+with_libtool_sysroot
16207 enable_libtool_lock
16208 enable_largefile
16209 enable_cet
16210@@ -1458,6 +1465,8 @@ Optional Packages:
16211 --with-pic try to use only PIC/non-PIC objects [default=use
16212 both]
16213 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
16214+ --with-libtool-sysroot=DIR Search for dependent libraries within DIR
16215+ (or the compiler's sysroot if not specified).
16216 --with-system-libunwind use installed libunwind
16217
16218 Some influential environment variables:
16219@@ -4047,7 +4056,7 @@ libtool_VERSION=1:0:0
16220 # -Wall: Issue all automake warnings.
16221 # -Wno-portability: Don't warn about constructs supported by GNU make.
16222 # (because GCC requires GNU make anyhow).
16223-am__api_version='1.15'
16224+am__api_version='1.16'
16225
16226 # Find a good install program. We prefer a C program (faster),
16227 # so one script is as good as another. But avoid the broken or
16228@@ -4220,12 +4229,7 @@ ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
16229 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
16230
16231 if test x"${MISSING+set}" != xset; then
16232- case $am_aux_dir in
16233- *\ * | *\ *)
16234- MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
16235- *)
16236- MISSING="\${SHELL} $am_aux_dir/missing" ;;
16237- esac
16238+ MISSING="\${SHELL} '$am_aux_dir/missing'"
16239 fi
16240 # Use eval to expand $SHELL
16241 if eval "$MISSING --is-lightweight"; then
16242@@ -4551,8 +4555,8 @@ MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
16243
16244 # For better backward compatibility. To be removed once Automake 1.9.x
16245 # dies out for good. For more background, see:
16246-# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
16247-# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
16248+# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
16249+# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
16250 mkdir_p='$(MKDIR_P)'
16251
16252 # We need awk for the "check" target (and possibly the TAP driver). The
16253@@ -4571,6 +4575,20 @@ am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
16254
16255
16256
16257+# Variables for tags utilities; see am/tags.am
16258+if test -z "$CTAGS"; then
16259+ CTAGS=ctags
16260+fi
16261+
16262+if test -z "$ETAGS"; then
16263+ ETAGS=etags
16264+fi
16265+
16266+if test -z "$CSCOPE"; then
16267+ CSCOPE=cscope
16268+fi
16269+
16270+
16271
16272 # POSIX will say in a future version that running "rm -f" with no argument
16273 # is OK; and we want to be able to make that assumption in our Makefile
16274@@ -4603,7 +4621,7 @@ END
16275 Aborting the configuration process, to ensure you take notice of the issue.
16276
16277 You can download and install GNU coreutils to get an 'rm' implementation
16278-that behaves properly: <http://www.gnu.org/software/coreutils/>.
16279+that behaves properly: <https://www.gnu.org/software/coreutils/>.
16280
16281 If you want to complete the configuration process using your problematic
16282 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
16283@@ -5446,8 +5464,8 @@ esac
16284
16285
16286
16287-macro_version='2.2.7a'
16288-macro_revision='1.3134'
16289+macro_version='2.4'
16290+macro_revision='1.3293'
16291
16292
16293
16294@@ -5487,7 +5505,7 @@ ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
16295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
16296 $as_echo_n "checking how to print strings... " >&6; }
16297 # Test print first, because it will be a builtin if present.
16298-if test "X`print -r -- -n 2>/dev/null`" = X-n && \
16299+if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
16300 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
16301 ECHO='print -r --'
16302 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
16303@@ -6180,8 +6198,8 @@ $as_echo_n "checking whether the shell understands some XSI constructs... " >&6;
16304 # Try some XSI features
16305 xsi_shell=no
16306 ( _lt_dummy="a/b/c"
16307- test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
16308- = c,a/b,, \
16309+ test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
16310+ = c,a/b,b/c, \
16311 && eval 'test $(( 1 + 1 )) -eq 2 \
16312 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
16313 && xsi_shell=yes
16314@@ -6230,6 +6248,80 @@ esac
16315
16316
16317
16318+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
16319+$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
16320+if ${lt_cv_to_host_file_cmd+:} false; then :
16321+ $as_echo_n "(cached) " >&6
16322+else
16323+ case $host in
16324+ *-*-mingw* )
16325+ case $build in
16326+ *-*-mingw* ) # actually msys
16327+ lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
16328+ ;;
16329+ *-*-cygwin* )
16330+ lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
16331+ ;;
16332+ * ) # otherwise, assume *nix
16333+ lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
16334+ ;;
16335+ esac
16336+ ;;
16337+ *-*-cygwin* )
16338+ case $build in
16339+ *-*-mingw* ) # actually msys
16340+ lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
16341+ ;;
16342+ *-*-cygwin* )
16343+ lt_cv_to_host_file_cmd=func_convert_file_noop
16344+ ;;
16345+ * ) # otherwise, assume *nix
16346+ lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
16347+ ;;
16348+ esac
16349+ ;;
16350+ * ) # unhandled hosts (and "normal" native builds)
16351+ lt_cv_to_host_file_cmd=func_convert_file_noop
16352+ ;;
16353+esac
16354+
16355+fi
16356+
16357+to_host_file_cmd=$lt_cv_to_host_file_cmd
16358+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
16359+$as_echo "$lt_cv_to_host_file_cmd" >&6; }
16360+
16361+
16362+
16363+
16364+
16365+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
16366+$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
16367+if ${lt_cv_to_tool_file_cmd+:} false; then :
16368+ $as_echo_n "(cached) " >&6
16369+else
16370+ #assume ordinary cross tools, or native build.
16371+lt_cv_to_tool_file_cmd=func_convert_file_noop
16372+case $host in
16373+ *-*-mingw* )
16374+ case $build in
16375+ *-*-mingw* ) # actually msys
16376+ lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
16377+ ;;
16378+ esac
16379+ ;;
16380+esac
16381+
16382+fi
16383+
16384+to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16385+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
16386+$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
16387+
16388+
16389+
16390+
16391+
16392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
16393 $as_echo_n "checking for $LD option to reload object files... " >&6; }
16394 if ${lt_cv_ld_reload_flag+:} false; then :
16395@@ -6246,6 +6338,11 @@ case $reload_flag in
16396 esac
16397 reload_cmds='$LD$reload_flag -o $output$reload_objs'
16398 case $host_os in
16399+ cygwin* | mingw* | pw32* | cegcc*)
16400+ if test "$GCC" != yes; then
16401+ reload_cmds=false
16402+ fi
16403+ ;;
16404 darwin*)
16405 if test "$GCC" = yes; then
16406 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
16407@@ -6414,7 +6511,8 @@ mingw* | pw32*)
16408 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
16409 lt_cv_file_magic_cmd='func_win32_libid'
16410 else
16411- lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
16412+ # Keep this pattern in sync with the one in func_win32_libid.
16413+ lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
16414 lt_cv_file_magic_cmd='$OBJDUMP -f'
16415 fi
16416 ;;
16417@@ -6573,6 +6671,21 @@ esac
16418 fi
16419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
16420 $as_echo "$lt_cv_deplibs_check_method" >&6; }
16421+
16422+file_magic_glob=
16423+want_nocaseglob=no
16424+if test "$build" = "$host"; then
16425+ case $host_os in
16426+ mingw* | pw32*)
16427+ if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
16428+ want_nocaseglob=yes
16429+ else
16430+ file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
16431+ fi
16432+ ;;
16433+ esac
16434+fi
16435+
16436 file_magic_cmd=$lt_cv_file_magic_cmd
16437 deplibs_check_method=$lt_cv_deplibs_check_method
16438 test -z "$deplibs_check_method" && deplibs_check_method=unknown
16439@@ -6588,6 +6701,157 @@ test -z "$deplibs_check_method" && deplibs_check_method=unknown
16440
16441
16442
16443+
16444+
16445+
16446+
16447+
16448+
16449+
16450+
16451+
16452+
16453+if test -n "$ac_tool_prefix"; then
16454+ # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
16455+set dummy ${ac_tool_prefix}dlltool; ac_word=$2
16456+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16457+$as_echo_n "checking for $ac_word... " >&6; }
16458+if ${ac_cv_prog_DLLTOOL+:} false; then :
16459+ $as_echo_n "(cached) " >&6
16460+else
16461+ if test -n "$DLLTOOL"; then
16462+ ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
16463+else
16464+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16465+for as_dir in $PATH
16466+do
16467+ IFS=$as_save_IFS
16468+ test -z "$as_dir" && as_dir=.
16469+ for ac_exec_ext in '' $ac_executable_extensions; do
16470+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16471+ ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
16472+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16473+ break 2
16474+ fi
16475+done
16476+ done
16477+IFS=$as_save_IFS
16478+
16479+fi
16480+fi
16481+DLLTOOL=$ac_cv_prog_DLLTOOL
16482+if test -n "$DLLTOOL"; then
16483+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
16484+$as_echo "$DLLTOOL" >&6; }
16485+else
16486+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16487+$as_echo "no" >&6; }
16488+fi
16489+
16490+
16491+fi
16492+if test -z "$ac_cv_prog_DLLTOOL"; then
16493+ ac_ct_DLLTOOL=$DLLTOOL
16494+ # Extract the first word of "dlltool", so it can be a program name with args.
16495+set dummy dlltool; ac_word=$2
16496+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16497+$as_echo_n "checking for $ac_word... " >&6; }
16498+if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
16499+ $as_echo_n "(cached) " >&6
16500+else
16501+ if test -n "$ac_ct_DLLTOOL"; then
16502+ ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
16503+else
16504+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16505+for as_dir in $PATH
16506+do
16507+ IFS=$as_save_IFS
16508+ test -z "$as_dir" && as_dir=.
16509+ for ac_exec_ext in '' $ac_executable_extensions; do
16510+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16511+ ac_cv_prog_ac_ct_DLLTOOL="dlltool"
16512+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16513+ break 2
16514+ fi
16515+done
16516+ done
16517+IFS=$as_save_IFS
16518+
16519+fi
16520+fi
16521+ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
16522+if test -n "$ac_ct_DLLTOOL"; then
16523+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
16524+$as_echo "$ac_ct_DLLTOOL" >&6; }
16525+else
16526+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16527+$as_echo "no" >&6; }
16528+fi
16529+
16530+ if test "x$ac_ct_DLLTOOL" = x; then
16531+ DLLTOOL="false"
16532+ else
16533+ case $cross_compiling:$ac_tool_warned in
16534+yes:)
16535+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16536+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16537+ac_tool_warned=yes ;;
16538+esac
16539+ DLLTOOL=$ac_ct_DLLTOOL
16540+ fi
16541+else
16542+ DLLTOOL="$ac_cv_prog_DLLTOOL"
16543+fi
16544+
16545+test -z "$DLLTOOL" && DLLTOOL=dlltool
16546+
16547+
16548+
16549+
16550+
16551+
16552+
16553+
16554+
16555+
16556+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
16557+$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
16558+if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
16559+ $as_echo_n "(cached) " >&6
16560+else
16561+ lt_cv_sharedlib_from_linklib_cmd='unknown'
16562+
16563+case $host_os in
16564+cygwin* | mingw* | pw32* | cegcc*)
16565+ # two different shell functions defined in ltmain.sh
16566+ # decide which to use based on capabilities of $DLLTOOL
16567+ case `$DLLTOOL --help 2>&1` in
16568+ *--identify-strict*)
16569+ lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
16570+ ;;
16571+ *)
16572+ lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
16573+ ;;
16574+ esac
16575+ ;;
16576+*)
16577+ # fallback: assume linklib IS sharedlib
16578+ lt_cv_sharedlib_from_linklib_cmd="$ECHO"
16579+ ;;
16580+esac
16581+
16582+fi
16583+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
16584+$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
16585+sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
16586+test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
16587+
16588+
16589+
16590+
16591+
16592+
16593+
16594 plugin_option=
16595 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
16596 for plugin in $plugin_names; do
16597@@ -6602,8 +6866,10 @@ for plugin in $plugin_names; do
16598 done
16599
16600 if test -n "$ac_tool_prefix"; then
16601- # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
16602-set dummy ${ac_tool_prefix}ar; ac_word=$2
16603+ for ac_prog in ar
16604+ do
16605+ # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16606+set dummy $ac_tool_prefix$ac_prog; ac_word=$2
16607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16608 $as_echo_n "checking for $ac_word... " >&6; }
16609 if ${ac_cv_prog_AR+:} false; then :
16610@@ -6619,7 +6885,7 @@ do
16611 test -z "$as_dir" && as_dir=.
16612 for ac_exec_ext in '' $ac_executable_extensions; do
16613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16614- ac_cv_prog_AR="${ac_tool_prefix}ar"
16615+ ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
16616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16617 break 2
16618 fi
16619@@ -6639,11 +6905,15 @@ $as_echo "no" >&6; }
16620 fi
16621
16622
16623+ test -n "$AR" && break
16624+ done
16625 fi
16626-if test -z "$ac_cv_prog_AR"; then
16627+if test -z "$AR"; then
16628 ac_ct_AR=$AR
16629- # Extract the first word of "ar", so it can be a program name with args.
16630-set dummy ar; ac_word=$2
16631+ for ac_prog in ar
16632+do
16633+ # Extract the first word of "$ac_prog", so it can be a program name with args.
16634+set dummy $ac_prog; ac_word=$2
16635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16636 $as_echo_n "checking for $ac_word... " >&6; }
16637 if ${ac_cv_prog_ac_ct_AR+:} false; then :
16638@@ -6659,7 +6929,7 @@ do
16639 test -z "$as_dir" && as_dir=.
16640 for ac_exec_ext in '' $ac_executable_extensions; do
16641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16642- ac_cv_prog_ac_ct_AR="ar"
16643+ ac_cv_prog_ac_ct_AR="$ac_prog"
16644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16645 break 2
16646 fi
16647@@ -6678,6 +6948,10 @@ else
16648 $as_echo "no" >&6; }
16649 fi
16650
16651+
16652+ test -n "$ac_ct_AR" && break
16653+done
16654+
16655 if test "x$ac_ct_AR" = x; then
16656 AR="false"
16657 else
16658@@ -6689,31 +6963,83 @@ ac_tool_warned=yes ;;
16659 esac
16660 AR=$ac_ct_AR
16661 fi
16662-else
16663- AR="$ac_cv_prog_AR"
16664 fi
16665
16666-test -z "$AR" && AR=ar
16667-if test -n "$plugin_option"; then
16668- if $AR --help 2>&1 | grep -q "\--plugin"; then
16669- touch conftest.c
16670- $AR $plugin_option rc conftest.a conftest.c
16671- if test "$?" != 0; then
16672- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
16673+ touch conftest.c
16674+ $AR $plugin_option rc conftest.a conftest.c
16675+ if test "$?" != 0; then
16676+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
16677 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
16678- else
16679- AR="$AR $plugin_option"
16680- fi
16681- rm -f conftest.*
16682+ else
16683+ AR="$AR $plugin_option"
16684 fi
16685-fi
16686-test -z "$AR_FLAGS" && AR_FLAGS=cru
16687+ rm -f conftest.*
16688+: ${AR=ar}
16689+: ${AR_FLAGS=cru}
16690+
16691+
16692+
16693+
16694+
16695
16696
16697
16698
16699
16700
16701+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
16702+$as_echo_n "checking for archiver @FILE support... " >&6; }
16703+if ${lt_cv_ar_at_file+:} false; then :
16704+ $as_echo_n "(cached) " >&6
16705+else
16706+ lt_cv_ar_at_file=no
16707+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16708+/* end confdefs.h. */
16709+
16710+int
16711+main ()
16712+{
16713+
16714+ ;
16715+ return 0;
16716+}
16717+_ACEOF
16718+if ac_fn_c_try_compile "$LINENO"; then :
16719+ echo conftest.$ac_objext > conftest.lst
16720+ lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
16721+ { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
16722+ (eval $lt_ar_try) 2>&5
16723+ ac_status=$?
16724+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16725+ test $ac_status = 0; }
16726+ if test "$ac_status" -eq 0; then
16727+ # Ensure the archiver fails upon bogus file names.
16728+ rm -f conftest.$ac_objext libconftest.a
16729+ { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
16730+ (eval $lt_ar_try) 2>&5
16731+ ac_status=$?
16732+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16733+ test $ac_status = 0; }
16734+ if test "$ac_status" -ne 0; then
16735+ lt_cv_ar_at_file=@
16736+ fi
16737+ fi
16738+ rm -f conftest.* libconftest.a
16739+
16740+fi
16741+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16742+
16743+fi
16744+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
16745+$as_echo "$lt_cv_ar_at_file" >&6; }
16746+
16747+if test "x$lt_cv_ar_at_file" = xno; then
16748+ archiver_list_spec=
16749+else
16750+ archiver_list_spec=$lt_cv_ar_at_file
16751+fi
16752+
16753+
16754
16755
16756
16757@@ -7058,8 +7384,8 @@ esac
16758 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
16759
16760 # Transform an extracted symbol line into symbol name and symbol address
16761-lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
16762-lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
16763+lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
16764+lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
16765
16766 # Handle CRLF in mingw tool chain
16767 opt_cr=
16768@@ -7095,6 +7421,7 @@ for ac_symprfx in "" "_"; do
16769 else
16770 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
16771 fi
16772+ lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
16773
16774 # Check to see that the pipe works correctly.
16775 pipe_works=no
16776@@ -7136,6 +7463,18 @@ _LT_EOF
16777 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
16778 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
16779 cat <<_LT_EOF > conftest.$ac_ext
16780+/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
16781+#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
16782+/* DATA imports from DLLs on WIN32 con't be const, because runtime
16783+ relocations are performed -- see ld's documentation on pseudo-relocs. */
16784+# define LT_DLSYM_CONST
16785+#elif defined(__osf__)
16786+/* This system does not cope well with relocations in const data. */
16787+# define LT_DLSYM_CONST
16788+#else
16789+# define LT_DLSYM_CONST const
16790+#endif
16791+
16792 #ifdef __cplusplus
16793 extern "C" {
16794 #endif
16795@@ -7147,7 +7486,7 @@ _LT_EOF
16796 cat <<_LT_EOF >> conftest.$ac_ext
16797
16798 /* The mapping between symbol names and symbols. */
16799-const struct {
16800+LT_DLSYM_CONST struct {
16801 const char *name;
16802 void *address;
16803 }
16804@@ -7173,8 +7512,8 @@ static const void *lt_preloaded_setup() {
16805 _LT_EOF
16806 # Now try linking the two files.
16807 mv conftest.$ac_objext conftstm.$ac_objext
16808- lt_save_LIBS="$LIBS"
16809- lt_save_CFLAGS="$CFLAGS"
16810+ lt_globsym_save_LIBS=$LIBS
16811+ lt_globsym_save_CFLAGS=$CFLAGS
16812 LIBS="conftstm.$ac_objext"
16813 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
16814 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16815@@ -7184,8 +7523,8 @@ _LT_EOF
16816 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
16817 pipe_works=yes
16818 fi
16819- LIBS="$lt_save_LIBS"
16820- CFLAGS="$lt_save_CFLAGS"
16821+ LIBS=$lt_globsym_save_LIBS
16822+ CFLAGS=$lt_globsym_save_CFLAGS
16823 else
16824 echo "cannot find nm_test_func in $nlist" >&5
16825 fi
16826@@ -7222,6 +7561,18 @@ else
16827 $as_echo "ok" >&6; }
16828 fi
16829
16830+# Response file support.
16831+if test "$lt_cv_nm_interface" = "MS dumpbin"; then
16832+ nm_file_list_spec='@'
16833+elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
16834+ nm_file_list_spec='@'
16835+fi
16836+
16837+
16838+
16839+
16840+
16841+
16842
16843
16844
16845@@ -7238,6 +7589,43 @@ fi
16846
16847
16848
16849+
16850+
16851+
16852+
16853+
16854+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
16855+$as_echo_n "checking for sysroot... " >&6; }
16856+
16857+# Check whether --with-libtool-sysroot was given.
16858+if test "${with_libtool_sysroot+set}" = set; then :
16859+ withval=$with_libtool_sysroot;
16860+else
16861+ with_libtool_sysroot=no
16862+fi
16863+
16864+
16865+lt_sysroot=
16866+case ${with_libtool_sysroot} in #(
16867+ yes)
16868+ if test "$GCC" = yes; then
16869+ lt_sysroot=`$CC --print-sysroot 2>/dev/null`
16870+ fi
16871+ ;; #(
16872+ /*)
16873+ lt_sysroot=`echo "$with_libtool_sysroot" | sed -e "$sed_quote_subst"`
16874+ ;; #(
16875+ no|'')
16876+ ;; #(
16877+ *)
16878+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_libtool_sysroot}" >&5
16879+$as_echo "${with_libtool_sysroot}" >&6; }
16880+ as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
16881+ ;;
16882+esac
16883+
16884+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
16885+$as_echo "${lt_sysroot:-no}" >&6; }
16886
16887
16888
16889@@ -7404,50 +7792,167 @@ _ACEOF
16890 if ac_fn_c_try_link "$LINENO"; then :
16891 lt_cv_cc_needs_belf=yes
16892 else
16893- lt_cv_cc_needs_belf=no
16894+ lt_cv_cc_needs_belf=no
16895+fi
16896+rm -f core conftest.err conftest.$ac_objext \
16897+ conftest$ac_exeext conftest.$ac_ext
16898+ ac_ext=c
16899+ac_cpp='$CPP $CPPFLAGS'
16900+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16901+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16902+ac_compiler_gnu=$ac_cv_c_compiler_gnu
16903+
16904+fi
16905+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
16906+$as_echo "$lt_cv_cc_needs_belf" >&6; }
16907+ if test x"$lt_cv_cc_needs_belf" != x"yes"; then
16908+ # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
16909+ CFLAGS="$SAVE_CFLAGS"
16910+ fi
16911+ ;;
16912+sparc*-*solaris*)
16913+ # Find out which ABI we are using.
16914+ echo 'int i;' > conftest.$ac_ext
16915+ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16916+ (eval $ac_compile) 2>&5
16917+ ac_status=$?
16918+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16919+ test $ac_status = 0; }; then
16920+ case `/usr/bin/file conftest.o` in
16921+ *64-bit*)
16922+ case $lt_cv_prog_gnu_ld in
16923+ yes*) LD="${LD-ld} -m elf64_sparc" ;;
16924+ *)
16925+ if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
16926+ LD="${LD-ld} -64"
16927+ fi
16928+ ;;
16929+ esac
16930+ ;;
16931+ esac
16932+ fi
16933+ rm -rf conftest*
16934+ ;;
16935+esac
16936+
16937+need_locks="$enable_libtool_lock"
16938+
16939+if test -n "$ac_tool_prefix"; then
16940+ # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
16941+set dummy ${ac_tool_prefix}mt; ac_word=$2
16942+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16943+$as_echo_n "checking for $ac_word... " >&6; }
16944+if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
16945+ $as_echo_n "(cached) " >&6
16946+else
16947+ if test -n "$MANIFEST_TOOL"; then
16948+ ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
16949+else
16950+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16951+for as_dir in $PATH
16952+do
16953+ IFS=$as_save_IFS
16954+ test -z "$as_dir" && as_dir=.
16955+ for ac_exec_ext in '' $ac_executable_extensions; do
16956+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16957+ ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
16958+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16959+ break 2
16960+ fi
16961+done
16962+ done
16963+IFS=$as_save_IFS
16964+
16965+fi
16966+fi
16967+MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
16968+if test -n "$MANIFEST_TOOL"; then
16969+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
16970+$as_echo "$MANIFEST_TOOL" >&6; }
16971+else
16972+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16973+$as_echo "no" >&6; }
16974+fi
16975+
16976+
16977+fi
16978+if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
16979+ ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
16980+ # Extract the first word of "mt", so it can be a program name with args.
16981+set dummy mt; ac_word=$2
16982+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16983+$as_echo_n "checking for $ac_word... " >&6; }
16984+if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
16985+ $as_echo_n "(cached) " >&6
16986+else
16987+ if test -n "$ac_ct_MANIFEST_TOOL"; then
16988+ ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
16989+else
16990+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16991+for as_dir in $PATH
16992+do
16993+ IFS=$as_save_IFS
16994+ test -z "$as_dir" && as_dir=.
16995+ for ac_exec_ext in '' $ac_executable_extensions; do
16996+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16997+ ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
16998+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16999+ break 2
17000+ fi
17001+done
17002+ done
17003+IFS=$as_save_IFS
17004+
17005+fi
17006+fi
17007+ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
17008+if test -n "$ac_ct_MANIFEST_TOOL"; then
17009+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
17010+$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
17011+else
17012+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17013+$as_echo "no" >&6; }
17014 fi
17015-rm -f core conftest.err conftest.$ac_objext \
17016- conftest$ac_exeext conftest.$ac_ext
17017- ac_ext=c
17018-ac_cpp='$CPP $CPPFLAGS'
17019-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17020-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17021-ac_compiler_gnu=$ac_cv_c_compiler_gnu
17022
17023-fi
17024-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
17025-$as_echo "$lt_cv_cc_needs_belf" >&6; }
17026- if test x"$lt_cv_cc_needs_belf" != x"yes"; then
17027- # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
17028- CFLAGS="$SAVE_CFLAGS"
17029+ if test "x$ac_ct_MANIFEST_TOOL" = x; then
17030+ MANIFEST_TOOL=":"
17031+ else
17032+ case $cross_compiling:$ac_tool_warned in
17033+yes:)
17034+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17035+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17036+ac_tool_warned=yes ;;
17037+esac
17038+ MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
17039 fi
17040- ;;
17041-sparc*-*solaris*)
17042- # Find out which ABI we are using.
17043- echo 'int i;' > conftest.$ac_ext
17044- if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17045- (eval $ac_compile) 2>&5
17046- ac_status=$?
17047- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17048- test $ac_status = 0; }; then
17049- case `/usr/bin/file conftest.o` in
17050- *64-bit*)
17051- case $lt_cv_prog_gnu_ld in
17052- yes*) LD="${LD-ld} -m elf64_sparc" ;;
17053- *)
17054- if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
17055- LD="${LD-ld} -64"
17056- fi
17057- ;;
17058- esac
17059- ;;
17060- esac
17061+else
17062+ MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
17063+fi
17064+
17065+test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
17066+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
17067+$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
17068+if ${lt_cv_path_mainfest_tool+:} false; then :
17069+ $as_echo_n "(cached) " >&6
17070+else
17071+ lt_cv_path_mainfest_tool=no
17072+ echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
17073+ $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
17074+ cat conftest.err >&5
17075+ if $GREP 'Manifest Tool' conftest.out > /dev/null; then
17076+ lt_cv_path_mainfest_tool=yes
17077 fi
17078- rm -rf conftest*
17079- ;;
17080-esac
17081+ rm -f conftest*
17082+fi
17083+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
17084+$as_echo "$lt_cv_path_mainfest_tool" >&6; }
17085+if test "x$lt_cv_path_mainfest_tool" != xyes; then
17086+ MANIFEST_TOOL=:
17087+fi
17088+
17089+
17090+
17091
17092-need_locks="$enable_libtool_lock"
17093
17094
17095 case $host_os in
17096@@ -8012,6 +8517,8 @@ _LT_EOF
17097 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
17098 echo "$AR cru libconftest.a conftest.o" >&5
17099 $AR cru libconftest.a conftest.o 2>&5
17100+ echo "$RANLIB libconftest.a" >&5
17101+ $RANLIB libconftest.a 2>&5
17102 cat > conftest.c << _LT_EOF
17103 int main() { return 0;}
17104 _LT_EOF
17105@@ -8596,8 +9103,6 @@ fi
17106 lt_prog_compiler_pic=
17107 lt_prog_compiler_static=
17108
17109-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
17110-$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17111
17112 if test "$GCC" = yes; then
17113 lt_prog_compiler_wl='-Wl,'
17114@@ -8763,6 +9268,12 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17115 lt_prog_compiler_pic='--shared'
17116 lt_prog_compiler_static='--static'
17117 ;;
17118+ nagfor*)
17119+ # NAG Fortran compiler
17120+ lt_prog_compiler_wl='-Wl,-Wl,,'
17121+ lt_prog_compiler_pic='-PIC'
17122+ lt_prog_compiler_static='-Bstatic'
17123+ ;;
17124 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
17125 # Portland Group compilers (*not* the Pentium gcc compiler,
17126 # which looks to be a dead project)
17127@@ -8825,7 +9336,7 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17128 lt_prog_compiler_pic='-KPIC'
17129 lt_prog_compiler_static='-Bstatic'
17130 case $cc_basename in
17131- f77* | f90* | f95*)
17132+ f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
17133 lt_prog_compiler_wl='-Qoption ld ';;
17134 *)
17135 lt_prog_compiler_wl='-Wl,';;
17136@@ -8882,13 +9393,17 @@ case $host_os in
17137 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
17138 ;;
17139 esac
17140-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
17141-$as_echo "$lt_prog_compiler_pic" >&6; }
17142-
17143-
17144-
17145-
17146
17147+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
17148+$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17149+if ${lt_cv_prog_compiler_pic+:} false; then :
17150+ $as_echo_n "(cached) " >&6
17151+else
17152+ lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
17153+fi
17154+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
17155+$as_echo "$lt_cv_prog_compiler_pic" >&6; }
17156+lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
17157
17158 #
17159 # Check to make sure the PIC flag actually works.
17160@@ -8949,6 +9464,11 @@ fi
17161
17162
17163
17164+
17165+
17166+
17167+
17168+
17169 #
17170 # Check to make sure the static flag actually works.
17171 #
17172@@ -9299,7 +9819,8 @@ _LT_EOF
17173 allow_undefined_flag=unsupported
17174 always_export_symbols=no
17175 enable_shared_with_static_runtimes=yes
17176- export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17177+ export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
17178+ exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
17179
17180 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17181 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17182@@ -9398,12 +9919,12 @@ _LT_EOF
17183 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
17184 hardcode_libdir_flag_spec=
17185 hardcode_libdir_flag_spec_ld='-rpath $libdir'
17186- archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
17187+ archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
17188 if test "x$supports_anon_versioning" = xyes; then
17189 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
17190 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17191 echo "local: *; };" >> $output_objdir/$libname.ver~
17192- $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
17193+ $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
17194 fi
17195 ;;
17196 esac
17197@@ -9417,8 +9938,8 @@ _LT_EOF
17198 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17199 wlarc=
17200 else
17201- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17202- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17203+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17204+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17205 fi
17206 ;;
17207
17208@@ -9436,8 +9957,8 @@ _LT_EOF
17209
17210 _LT_EOF
17211 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17212- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17213- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17214+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17215+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17216 else
17217 ld_shlibs=no
17218 fi
17219@@ -9483,8 +10004,8 @@ _LT_EOF
17220
17221 *)
17222 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17223- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17224- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17225+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17226+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17227 else
17228 ld_shlibs=no
17229 fi
17230@@ -9614,7 +10135,13 @@ _LT_EOF
17231 allow_undefined_flag='-berok'
17232 # Determine the default libpath from the value encoded in an
17233 # empty executable.
17234- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17235+ if test "${lt_cv_aix_libpath+set}" = set; then
17236+ aix_libpath=$lt_cv_aix_libpath
17237+else
17238+ if ${lt_cv_aix_libpath_+:} false; then :
17239+ $as_echo_n "(cached) " >&6
17240+else
17241+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17242 /* end confdefs.h. */
17243
17244 int
17245@@ -9627,22 +10154,29 @@ main ()
17246 _ACEOF
17247 if ac_fn_c_try_link "$LINENO"; then :
17248
17249-lt_aix_libpath_sed='
17250- /Import File Strings/,/^$/ {
17251- /^0/ {
17252- s/^0 *\(.*\)$/\1/
17253- p
17254- }
17255- }'
17256-aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17257-# Check for a 64-bit object if we didn't find anything.
17258-if test -z "$aix_libpath"; then
17259- aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17260-fi
17261+ lt_aix_libpath_sed='
17262+ /Import File Strings/,/^$/ {
17263+ /^0/ {
17264+ s/^0 *\([^ ]*\) *$/\1/
17265+ p
17266+ }
17267+ }'
17268+ lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17269+ # Check for a 64-bit object if we didn't find anything.
17270+ if test -z "$lt_cv_aix_libpath_"; then
17271+ lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17272+ fi
17273 fi
17274 rm -f core conftest.err conftest.$ac_objext \
17275 conftest$ac_exeext conftest.$ac_ext
17276-if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17277+ if test -z "$lt_cv_aix_libpath_"; then
17278+ lt_cv_aix_libpath_="/usr/lib:/lib"
17279+ fi
17280+
17281+fi
17282+
17283+ aix_libpath=$lt_cv_aix_libpath_
17284+fi
17285
17286 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
17287 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17288@@ -9654,7 +10188,13 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17289 else
17290 # Determine the default libpath from the value encoded in an
17291 # empty executable.
17292- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17293+ if test "${lt_cv_aix_libpath+set}" = set; then
17294+ aix_libpath=$lt_cv_aix_libpath
17295+else
17296+ if ${lt_cv_aix_libpath_+:} false; then :
17297+ $as_echo_n "(cached) " >&6
17298+else
17299+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17300 /* end confdefs.h. */
17301
17302 int
17303@@ -9667,22 +10207,29 @@ main ()
17304 _ACEOF
17305 if ac_fn_c_try_link "$LINENO"; then :
17306
17307-lt_aix_libpath_sed='
17308- /Import File Strings/,/^$/ {
17309- /^0/ {
17310- s/^0 *\(.*\)$/\1/
17311- p
17312- }
17313- }'
17314-aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17315-# Check for a 64-bit object if we didn't find anything.
17316-if test -z "$aix_libpath"; then
17317- aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17318-fi
17319+ lt_aix_libpath_sed='
17320+ /Import File Strings/,/^$/ {
17321+ /^0/ {
17322+ s/^0 *\([^ ]*\) *$/\1/
17323+ p
17324+ }
17325+ }'
17326+ lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17327+ # Check for a 64-bit object if we didn't find anything.
17328+ if test -z "$lt_cv_aix_libpath_"; then
17329+ lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17330+ fi
17331 fi
17332 rm -f core conftest.err conftest.$ac_objext \
17333 conftest$ac_exeext conftest.$ac_ext
17334-if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17335+ if test -z "$lt_cv_aix_libpath_"; then
17336+ lt_cv_aix_libpath_="/usr/lib:/lib"
17337+ fi
17338+
17339+fi
17340+
17341+ aix_libpath=$lt_cv_aix_libpath_
17342+fi
17343
17344 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
17345 # Warning - without using the other run time loading flags,
17346@@ -9727,20 +10274,63 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17347 # Microsoft Visual C++.
17348 # hardcode_libdir_flag_spec is actually meaningless, as there is
17349 # no search path for DLLs.
17350- hardcode_libdir_flag_spec=' '
17351- allow_undefined_flag=unsupported
17352- # Tell ltmain to make .lib files, not .a files.
17353- libext=lib
17354- # Tell ltmain to make .dll files, not .so files.
17355- shrext_cmds=".dll"
17356- # FIXME: Setting linknames here is a bad hack.
17357- archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
17358- # The linker will automatically build a .lib file if we build a DLL.
17359- old_archive_from_new_cmds='true'
17360- # FIXME: Should let the user specify the lib program.
17361- old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
17362- fix_srcfile_path='`cygpath -w "$srcfile"`'
17363- enable_shared_with_static_runtimes=yes
17364+ case $cc_basename in
17365+ cl*)
17366+ # Native MSVC
17367+ hardcode_libdir_flag_spec=' '
17368+ allow_undefined_flag=unsupported
17369+ always_export_symbols=yes
17370+ file_list_spec='@'
17371+ # Tell ltmain to make .lib files, not .a files.
17372+ libext=lib
17373+ # Tell ltmain to make .dll files, not .so files.
17374+ shrext_cmds=".dll"
17375+ # FIXME: Setting linknames here is a bad hack.
17376+ archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
17377+ archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17378+ sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
17379+ else
17380+ sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
17381+ fi~
17382+ $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
17383+ linknames='
17384+ # The linker will not automatically build a static lib if we build a DLL.
17385+ # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
17386+ enable_shared_with_static_runtimes=yes
17387+ export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17388+ # Don't use ranlib
17389+ old_postinstall_cmds='chmod 644 $oldlib'
17390+ postlink_cmds='lt_outputfile="@OUTPUT@"~
17391+ lt_tool_outputfile="@TOOL_OUTPUT@"~
17392+ case $lt_outputfile in
17393+ *.exe|*.EXE) ;;
17394+ *)
17395+ lt_outputfile="$lt_outputfile.exe"
17396+ lt_tool_outputfile="$lt_tool_outputfile.exe"
17397+ ;;
17398+ esac~
17399+ if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
17400+ $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
17401+ $RM "$lt_outputfile.manifest";
17402+ fi'
17403+ ;;
17404+ *)
17405+ # Assume MSVC wrapper
17406+ hardcode_libdir_flag_spec=' '
17407+ allow_undefined_flag=unsupported
17408+ # Tell ltmain to make .lib files, not .a files.
17409+ libext=lib
17410+ # Tell ltmain to make .dll files, not .so files.
17411+ shrext_cmds=".dll"
17412+ # FIXME: Setting linknames here is a bad hack.
17413+ archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
17414+ # The linker will automatically build a .lib file if we build a DLL.
17415+ old_archive_from_new_cmds='true'
17416+ # FIXME: Should let the user specify the lib program.
17417+ old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
17418+ enable_shared_with_static_runtimes=yes
17419+ ;;
17420+ esac
17421 ;;
17422
17423 darwin* | rhapsody*)
17424@@ -9801,7 +10391,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17425
17426 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17427 freebsd* | dragonfly*)
17428- archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17429+ archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17430 hardcode_libdir_flag_spec='-R$libdir'
17431 hardcode_direct=yes
17432 hardcode_shlibpath_var=no
17433@@ -9809,7 +10399,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17434
17435 hpux9*)
17436 if test "$GCC" = yes; then
17437- archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17438+ archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17439 else
17440 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17441 fi
17442@@ -9825,7 +10415,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17443
17444 hpux10*)
17445 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
17446- archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17447+ archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17448 else
17449 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17450 fi
17451@@ -9849,10 +10439,10 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17452 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17453 ;;
17454 ia64*)
17455- archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17456+ archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17457 ;;
17458 *)
17459- archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17460+ archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17461 ;;
17462 esac
17463 else
17464@@ -9931,23 +10521,36 @@ fi
17465
17466 irix5* | irix6* | nonstopux*)
17467 if test "$GCC" = yes; then
17468- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17469+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17470 # Try to use the -exported_symbol ld option, if it does not
17471 # work, assume that -exports_file does not work either and
17472 # implicitly export all symbols.
17473- save_LDFLAGS="$LDFLAGS"
17474- LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
17475- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17476+ # This should be the same for all languages, so no per-tag cache variable.
17477+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
17478+$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
17479+if ${lt_cv_irix_exported_symbol+:} false; then :
17480+ $as_echo_n "(cached) " >&6
17481+else
17482+ save_LDFLAGS="$LDFLAGS"
17483+ LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
17484+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17485 /* end confdefs.h. */
17486-int foo(void) {}
17487+int foo (void) { return 0; }
17488 _ACEOF
17489 if ac_fn_c_try_link "$LINENO"; then :
17490- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
17491-
17492+ lt_cv_irix_exported_symbol=yes
17493+else
17494+ lt_cv_irix_exported_symbol=no
17495 fi
17496 rm -f core conftest.err conftest.$ac_objext \
17497 conftest$ac_exeext conftest.$ac_ext
17498- LDFLAGS="$save_LDFLAGS"
17499+ LDFLAGS="$save_LDFLAGS"
17500+fi
17501+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
17502+$as_echo "$lt_cv_irix_exported_symbol" >&6; }
17503+ if test "$lt_cv_irix_exported_symbol" = yes; then
17504+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
17505+ fi
17506 else
17507 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
17508 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
17509@@ -10032,7 +10635,7 @@ rm -f core conftest.err conftest.$ac_objext \
17510 osf4* | osf5*) # as osf3* with the addition of -msym flag
17511 if test "$GCC" = yes; then
17512 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
17513- archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17514+ archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17515 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17516 else
17517 allow_undefined_flag=' -expect_unresolved \*'
17518@@ -10051,9 +10654,9 @@ rm -f core conftest.err conftest.$ac_objext \
17519 no_undefined_flag=' -z defs'
17520 if test "$GCC" = yes; then
17521 wlarc='${wl}'
17522- archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17523+ archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17524 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17525- $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17526+ $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17527 else
17528 case `$CC -V 2>&1` in
17529 *"Compilers 5.0"*)
17530@@ -10629,8 +11232,9 @@ cygwin* | mingw* | pw32* | cegcc*)
17531 need_version=no
17532 need_lib_prefix=no
17533
17534- case $GCC,$host_os in
17535- yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17536+ case $GCC,$cc_basename in
17537+ yes,*)
17538+ # gcc
17539 library_names_spec='$libname.dll.a'
17540 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17541 postinstall_cmds='base_file=`basename \${file}`~
17542@@ -10663,13 +11267,71 @@ cygwin* | mingw* | pw32* | cegcc*)
17543 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17544 ;;
17545 esac
17546+ dynamic_linker='Win32 ld.exe'
17547+ ;;
17548+
17549+ *,cl*)
17550+ # Native MSVC
17551+ libname_spec='$name'
17552+ soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17553+ library_names_spec='${libname}.dll.lib'
17554+
17555+ case $build_os in
17556+ mingw*)
17557+ sys_lib_search_path_spec=
17558+ lt_save_ifs=$IFS
17559+ IFS=';'
17560+ for lt_path in $LIB
17561+ do
17562+ IFS=$lt_save_ifs
17563+ # Let DOS variable expansion print the short 8.3 style file name.
17564+ lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17565+ sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17566+ done
17567+ IFS=$lt_save_ifs
17568+ # Convert to MSYS style.
17569+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17570+ ;;
17571+ cygwin*)
17572+ # Convert to unix form, then to dos form, then back to unix form
17573+ # but this time dos style (no spaces!) so that the unix form looks
17574+ # like /cygdrive/c/PROGRA~1:/cygdr...
17575+ sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17576+ sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17577+ sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17578+ ;;
17579+ *)
17580+ sys_lib_search_path_spec="$LIB"
17581+ if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17582+ # It is most probably a Windows format PATH.
17583+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17584+ else
17585+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17586+ fi
17587+ # FIXME: find the short name or the path components, as spaces are
17588+ # common. (e.g. "Program Files" -> "PROGRA~1")
17589+ ;;
17590+ esac
17591+
17592+ # DLL is installed to $(libdir)/../bin by postinstall_cmds
17593+ postinstall_cmds='base_file=`basename \${file}`~
17594+ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17595+ dldir=$destdir/`dirname \$dlpath`~
17596+ test -d \$dldir || mkdir -p \$dldir~
17597+ $install_prog $dir/$dlname \$dldir/$dlname'
17598+ postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17599+ dlpath=$dir/\$dldll~
17600+ $RM \$dlpath'
17601+ shlibpath_overrides_runpath=yes
17602+ dynamic_linker='Win32 link.exe'
17603 ;;
17604
17605 *)
17606+ # Assume MSVC wrapper
17607 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17608+ dynamic_linker='Win32 ld.exe'
17609 ;;
17610 esac
17611- dynamic_linker='Win32 ld.exe'
17612 # FIXME: first we should search . and the directory the executable is in
17613 shlibpath_var=PATH
17614 ;;
17615@@ -11571,7 +12233,7 @@ else
17616 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17617 lt_status=$lt_dlunknown
17618 cat > conftest.$ac_ext <<_LT_EOF
17619-#line 11574 "configure"
17620+#line $LINENO "configure"
17621 #include "confdefs.h"
17622
17623 #if HAVE_DLFCN_H
17624@@ -11615,10 +12277,10 @@ else
17625 /* When -fvisbility=hidden is used, assume the code has been annotated
17626 correspondingly for the symbols needed. */
17627 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17628-void fnord () __attribute__((visibility("default")));
17629+int fnord () __attribute__((visibility("default")));
17630 #endif
17631
17632-void fnord () { int i=42; }
17633+int fnord () { return 42; }
17634 int main ()
17635 {
17636 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17637@@ -11677,7 +12339,7 @@ else
17638 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17639 lt_status=$lt_dlunknown
17640 cat > conftest.$ac_ext <<_LT_EOF
17641-#line 11680 "configure"
17642+#line $LINENO "configure"
17643 #include "confdefs.h"
17644
17645 #if HAVE_DLFCN_H
17646@@ -11721,10 +12383,10 @@ else
17647 /* When -fvisbility=hidden is used, assume the code has been annotated
17648 correspondingly for the symbols needed. */
17649 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17650-void fnord () __attribute__((visibility("default")));
17651+int fnord () __attribute__((visibility("default")));
17652 #endif
17653
17654-void fnord () { int i=42; }
17655+int fnord () { return 42; }
17656 int main ()
17657 {
17658 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17659@@ -15010,13 +15672,20 @@ exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17660 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17661 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17662 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17663+lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17664+lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17665 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17666 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17667 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17668 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17669 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17670+file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17671+want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17672+DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17673+sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17674 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17675 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17676+archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17677 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17678 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17679 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17680@@ -15031,14 +15700,17 @@ lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$de
17681 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17682 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17683 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
17684+nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17685+lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17686 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17687 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17688 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17689-lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17690 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17691+lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17692 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17693 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17694 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17695+MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17696 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17697 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17698 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17699@@ -15071,12 +15743,12 @@ hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_q
17700 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17701 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17702 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17703-fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17704 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17705 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17706 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17707 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17708 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17709+postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17710 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17711 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17712 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17713@@ -15131,8 +15803,13 @@ reload_flag \
17714 OBJDUMP \
17715 deplibs_check_method \
17716 file_magic_cmd \
17717+file_magic_glob \
17718+want_nocaseglob \
17719+DLLTOOL \
17720+sharedlib_from_linklib_cmd \
17721 AR \
17722 AR_FLAGS \
17723+archiver_list_spec \
17724 STRIP \
17725 RANLIB \
17726 CC \
17727@@ -15142,12 +15819,14 @@ lt_cv_sys_global_symbol_pipe \
17728 lt_cv_sys_global_symbol_to_cdecl \
17729 lt_cv_sys_global_symbol_to_c_name_address \
17730 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17731+nm_file_list_spec \
17732 lt_prog_compiler_no_builtin_flag \
17733-lt_prog_compiler_wl \
17734 lt_prog_compiler_pic \
17735+lt_prog_compiler_wl \
17736 lt_prog_compiler_static \
17737 lt_cv_prog_compiler_c_o \
17738 need_locks \
17739+MANIFEST_TOOL \
17740 DSYMUTIL \
17741 NMEDIT \
17742 LIPO \
17743@@ -15163,7 +15842,6 @@ no_undefined_flag \
17744 hardcode_libdir_flag_spec \
17745 hardcode_libdir_flag_spec_ld \
17746 hardcode_libdir_separator \
17747-fix_srcfile_path \
17748 exclude_expsyms \
17749 include_expsyms \
17750 file_list_spec \
17751@@ -15199,6 +15877,7 @@ module_cmds \
17752 module_expsym_cmds \
17753 export_symbols_cmds \
17754 prelink_cmds \
17755+postlink_cmds \
17756 postinstall_cmds \
17757 postuninstall_cmds \
17758 finish_cmds \
17759@@ -15897,7 +16576,8 @@ esac ;;
17760 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17761 #
17762 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17763-# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
17764+# 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
17765+# Inc.
17766 # Written by Gordon Matzigkeit, 1996
17767 #
17768 # This file is part of GNU Libtool.
17769@@ -16000,19 +16680,42 @@ SP2NL=$lt_lt_SP2NL
17770 # turn newlines into spaces.
17771 NL2SP=$lt_lt_NL2SP
17772
17773+# convert \$build file names to \$host format.
17774+to_host_file_cmd=$lt_cv_to_host_file_cmd
17775+
17776+# convert \$build files to toolchain format.
17777+to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17778+
17779 # An object symbol dumper.
17780 OBJDUMP=$lt_OBJDUMP
17781
17782 # Method to check whether dependent libraries are shared objects.
17783 deplibs_check_method=$lt_deplibs_check_method
17784
17785-# Command to use when deplibs_check_method == "file_magic".
17786+# Command to use when deplibs_check_method = "file_magic".
17787 file_magic_cmd=$lt_file_magic_cmd
17788
17789+# How to find potential files when deplibs_check_method = "file_magic".
17790+file_magic_glob=$lt_file_magic_glob
17791+
17792+# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17793+want_nocaseglob=$lt_want_nocaseglob
17794+
17795+# DLL creation program.
17796+DLLTOOL=$lt_DLLTOOL
17797+
17798+# Command to associate shared and link libraries.
17799+sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17800+
17801 # The archiver.
17802 AR=$lt_AR
17803+
17804+# Flags to create an archive.
17805 AR_FLAGS=$lt_AR_FLAGS
17806
17807+# How to feed a file listing to the archiver.
17808+archiver_list_spec=$lt_archiver_list_spec
17809+
17810 # A symbol stripping program.
17811 STRIP=$lt_STRIP
17812
17813@@ -16042,6 +16745,12 @@ global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17814 # Transform the output of nm in a C name address pair when lib prefix is needed.
17815 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17816
17817+# Specify filename containing input files for \$NM.
17818+nm_file_list_spec=$lt_nm_file_list_spec
17819+
17820+# The root where to search for dependent libraries,and in which our libraries should be installed.
17821+lt_sysroot=$lt_sysroot
17822+
17823 # The name of the directory that contains temporary libtool files.
17824 objdir=$objdir
17825
17826@@ -16051,6 +16760,9 @@ MAGIC_CMD=$MAGIC_CMD
17827 # Must we lock files when doing compilation?
17828 need_locks=$lt_need_locks
17829
17830+# Manifest tool.
17831+MANIFEST_TOOL=$lt_MANIFEST_TOOL
17832+
17833 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17834 DSYMUTIL=$lt_DSYMUTIL
17835
17836@@ -16165,12 +16877,12 @@ with_gcc=$GCC
17837 # Compiler flag to turn off builtin functions.
17838 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17839
17840-# How to pass a linker flag through the compiler.
17841-wl=$lt_lt_prog_compiler_wl
17842-
17843 # Additional compiler flags for building library objects.
17844 pic_flag=$lt_lt_prog_compiler_pic
17845
17846+# How to pass a linker flag through the compiler.
17847+wl=$lt_lt_prog_compiler_wl
17848+
17849 # Compiler flag to prevent dynamic linking.
17850 link_static_flag=$lt_lt_prog_compiler_static
17851
17852@@ -16257,9 +16969,6 @@ inherit_rpath=$inherit_rpath
17853 # Whether libtool must link a program against all its dependency libraries.
17854 link_all_deplibs=$link_all_deplibs
17855
17856-# Fix the shell variable \$srcfile for the compiler.
17857-fix_srcfile_path=$lt_fix_srcfile_path
17858-
17859 # Set to "yes" if exported symbols are required.
17860 always_export_symbols=$always_export_symbols
17861
17862@@ -16275,6 +16984,9 @@ include_expsyms=$lt_include_expsyms
17863 # Commands necessary for linking programs (against libraries) with templates.
17864 prelink_cmds=$lt_prelink_cmds
17865
17866+# Commands necessary for finishing linking programs.
17867+postlink_cmds=$lt_postlink_cmds
17868+
17869 # Specify filename containing input files.
17870 file_list_spec=$lt_file_list_spec
17871
17872@@ -16307,210 +17019,169 @@ ltmain="$ac_aux_dir/ltmain.sh"
17873 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17874 # text mode, it properly converts lines to CR/LF. This bash problem
17875 # is reportedly fixed, but why not run on old versions too?
17876- sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17877- || (rm -f "$cfgfile"; exit 1)
17878-
17879- case $xsi_shell in
17880- yes)
17881- cat << \_LT_EOF >> "$cfgfile"
17882-
17883-# func_dirname file append nondir_replacement
17884-# Compute the dirname of FILE. If nonempty, add APPEND to the result,
17885-# otherwise set result to NONDIR_REPLACEMENT.
17886-func_dirname ()
17887-{
17888- case ${1} in
17889- */*) func_dirname_result="${1%/*}${2}" ;;
17890- * ) func_dirname_result="${3}" ;;
17891- esac
17892-}
17893-
17894-# func_basename file
17895-func_basename ()
17896-{
17897- func_basename_result="${1##*/}"
17898-}
17899-
17900-# func_dirname_and_basename file append nondir_replacement
17901-# perform func_basename and func_dirname in a single function
17902-# call:
17903-# dirname: Compute the dirname of FILE. If nonempty,
17904-# add APPEND to the result, otherwise set result
17905-# to NONDIR_REPLACEMENT.
17906-# value returned in "$func_dirname_result"
17907-# basename: Compute filename of FILE.
17908-# value retuned in "$func_basename_result"
17909-# Implementation must be kept synchronized with func_dirname
17910-# and func_basename. For efficiency, we do not delegate to
17911-# those functions but instead duplicate the functionality here.
17912-func_dirname_and_basename ()
17913-{
17914- case ${1} in
17915- */*) func_dirname_result="${1%/*}${2}" ;;
17916- * ) func_dirname_result="${3}" ;;
17917- esac
17918- func_basename_result="${1##*/}"
17919-}
17920-
17921-# func_stripname prefix suffix name
17922-# strip PREFIX and SUFFIX off of NAME.
17923-# PREFIX and SUFFIX must not contain globbing or regex special
17924-# characters, hashes, percent signs, but SUFFIX may contain a leading
17925-# dot (in which case that matches only a dot).
17926-func_stripname ()
17927-{
17928- # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17929- # positional parameters, so assign one to ordinary parameter first.
17930- func_stripname_result=${3}
17931- func_stripname_result=${func_stripname_result#"${1}"}
17932- func_stripname_result=${func_stripname_result%"${2}"}
17933-}
17934-
17935-# func_opt_split
17936-func_opt_split ()
17937-{
17938- func_opt_split_opt=${1%%=*}
17939- func_opt_split_arg=${1#*=}
17940-}
17941-
17942-# func_lo2o object
17943-func_lo2o ()
17944-{
17945- case ${1} in
17946- *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17947- *) func_lo2o_result=${1} ;;
17948- esac
17949-}
17950-
17951-# func_xform libobj-or-source
17952-func_xform ()
17953-{
17954- func_xform_result=${1%.*}.lo
17955-}
17956-
17957-# func_arith arithmetic-term...
17958-func_arith ()
17959-{
17960- func_arith_result=$(( $* ))
17961-}
17962-
17963-# func_len string
17964-# STRING may not start with a hyphen.
17965-func_len ()
17966-{
17967- func_len_result=${#1}
17968-}
17969-
17970-_LT_EOF
17971- ;;
17972- *) # Bourne compatible functions.
17973- cat << \_LT_EOF >> "$cfgfile"
17974-
17975-# func_dirname file append nondir_replacement
17976-# Compute the dirname of FILE. If nonempty, add APPEND to the result,
17977-# otherwise set result to NONDIR_REPLACEMENT.
17978-func_dirname ()
17979-{
17980- # Extract subdirectory from the argument.
17981- func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17982- if test "X$func_dirname_result" = "X${1}"; then
17983- func_dirname_result="${3}"
17984- else
17985- func_dirname_result="$func_dirname_result${2}"
17986- fi
17987-}
17988-
17989-# func_basename file
17990-func_basename ()
17991-{
17992- func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17993-}
17994-
17995-
17996-# func_stripname prefix suffix name
17997-# strip PREFIX and SUFFIX off of NAME.
17998-# PREFIX and SUFFIX must not contain globbing or regex special
17999-# characters, hashes, percent signs, but SUFFIX may contain a leading
18000-# dot (in which case that matches only a dot).
18001-# func_strip_suffix prefix name
18002-func_stripname ()
18003-{
18004- case ${2} in
18005- .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
18006- *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
18007- esac
18008-}
18009-
18010-# sed scripts:
18011-my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18012-my_sed_long_arg='1s/^-[^=]*=//'
18013-
18014-# func_opt_split
18015-func_opt_split ()
18016-{
18017- func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
18018- func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
18019-}
18020-
18021-# func_lo2o object
18022-func_lo2o ()
18023-{
18024- func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
18025-}
18026-
18027-# func_xform libobj-or-source
18028-func_xform ()
18029-{
18030- func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
18031-}
18032-
18033-# func_arith arithmetic-term...
18034-func_arith ()
18035-{
18036- func_arith_result=`expr "$@"`
18037-}
18038-
18039-# func_len string
18040-# STRING may not start with a hyphen.
18041-func_len ()
18042-{
18043- func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18044-}
18045-
18046-_LT_EOF
18047-esac
18048-
18049-case $lt_shell_append in
18050- yes)
18051- cat << \_LT_EOF >> "$cfgfile"
18052-
18053-# func_append var value
18054-# Append VALUE to the end of shell variable VAR.
18055-func_append ()
18056-{
18057- eval "$1+=\$2"
18058-}
18059-_LT_EOF
18060- ;;
18061- *)
18062- cat << \_LT_EOF >> "$cfgfile"
18063-
18064-# func_append var value
18065-# Append VALUE to the end of shell variable VAR.
18066-func_append ()
18067-{
18068- eval "$1=\$$1\$2"
18069-}
18070-
18071-_LT_EOF
18072- ;;
18073- esac
18074-
18075-
18076- sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18077- || (rm -f "$cfgfile"; exit 1)
18078-
18079- mv -f "$cfgfile" "$ofile" ||
18080+ sed '$q' "$ltmain" >> "$cfgfile" \
18081+ || (rm -f "$cfgfile"; exit 1)
18082+
18083+ if test x"$xsi_shell" = xyes; then
18084+ sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
18085+func_dirname ()\
18086+{\
18087+\ case ${1} in\
18088+\ */*) func_dirname_result="${1%/*}${2}" ;;\
18089+\ * ) func_dirname_result="${3}" ;;\
18090+\ esac\
18091+} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
18092+ && mv -f "$cfgfile.tmp" "$cfgfile" \
18093+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18094+test 0 -eq $? || _lt_function_replace_fail=:
18095+
18096+
18097+ sed -e '/^func_basename ()$/,/^} # func_basename /c\
18098+func_basename ()\
18099+{\
18100+\ func_basename_result="${1##*/}"\
18101+} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
18102+ && mv -f "$cfgfile.tmp" "$cfgfile" \
18103+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18104+test 0 -eq $? || _lt_function_replace_fail=:
18105+
18106+
18107+ sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
18108+func_dirname_and_basename ()\
18109+{\
18110+\ case ${1} in\
18111+\ */*) func_dirname_result="${1%/*}${2}" ;;\
18112+\ * ) func_dirname_result="${3}" ;;\
18113+\ esac\
18114+\ func_basename_result="${1##*/}"\
18115+} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
18116+ && mv -f "$cfgfile.tmp" "$cfgfile" \
18117+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18118+test 0 -eq $? || _lt_function_replace_fail=:
18119+
18120+
18121+ sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
18122+func_stripname ()\
18123+{\
18124+\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
18125+\ # positional parameters, so assign one to ordinary parameter first.\
18126+\ func_stripname_result=${3}\
18127+\ func_stripname_result=${func_stripname_result#"${1}"}\
18128+\ func_stripname_result=${func_stripname_result%"${2}"}\
18129+} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
18130+ && mv -f "$cfgfile.tmp" "$cfgfile" \
18131+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18132+test 0 -eq $? || _lt_function_replace_fail=:
18133+
18134+
18135+ sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
18136+func_split_long_opt ()\
18137+{\
18138+\ func_split_long_opt_name=${1%%=*}\
18139+\ func_split_long_opt_arg=${1#*=}\
18140+} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
18141+ && mv -f "$cfgfile.tmp" "$cfgfile" \
18142+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18143+test 0 -eq $? || _lt_function_replace_fail=:
18144+
18145+
18146+ sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
18147+func_split_short_opt ()\
18148+{\
18149+\ func_split_short_opt_arg=${1#??}\
18150+\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
18151+} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
18152+ && mv -f "$cfgfile.tmp" "$cfgfile" \
18153+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18154+test 0 -eq $? || _lt_function_replace_fail=:
18155+
18156+
18157+ sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
18158+func_lo2o ()\
18159+{\
18160+\ case ${1} in\
18161+\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
18162+\ *) func_lo2o_result=${1} ;;\
18163+\ esac\
18164+} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
18165+ && mv -f "$cfgfile.tmp" "$cfgfile" \
18166+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18167+test 0 -eq $? || _lt_function_replace_fail=:
18168+
18169+
18170+ sed -e '/^func_xform ()$/,/^} # func_xform /c\
18171+func_xform ()\
18172+{\
18173+ func_xform_result=${1%.*}.lo\
18174+} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
18175+ && mv -f "$cfgfile.tmp" "$cfgfile" \
18176+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18177+test 0 -eq $? || _lt_function_replace_fail=:
18178+
18179+
18180+ sed -e '/^func_arith ()$/,/^} # func_arith /c\
18181+func_arith ()\
18182+{\
18183+ func_arith_result=$(( $* ))\
18184+} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
18185+ && mv -f "$cfgfile.tmp" "$cfgfile" \
18186+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18187+test 0 -eq $? || _lt_function_replace_fail=:
18188+
18189+
18190+ sed -e '/^func_len ()$/,/^} # func_len /c\
18191+func_len ()\
18192+{\
18193+ func_len_result=${#1}\
18194+} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
18195+ && mv -f "$cfgfile.tmp" "$cfgfile" \
18196+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18197+test 0 -eq $? || _lt_function_replace_fail=:
18198+
18199+fi
18200+
18201+if test x"$lt_shell_append" = xyes; then
18202+ sed -e '/^func_append ()$/,/^} # func_append /c\
18203+func_append ()\
18204+{\
18205+ eval "${1}+=\\${2}"\
18206+} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
18207+ && mv -f "$cfgfile.tmp" "$cfgfile" \
18208+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18209+test 0 -eq $? || _lt_function_replace_fail=:
18210+
18211+
18212+ sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
18213+func_append_quoted ()\
18214+{\
18215+\ func_quote_for_eval "${2}"\
18216+\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
18217+} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
18218+ && mv -f "$cfgfile.tmp" "$cfgfile" \
18219+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18220+test 0 -eq $? || _lt_function_replace_fail=:
18221+
18222+
18223+ # Save a `func_append' function call where possible by direct use of '+='
18224+ sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
18225+ && mv -f "$cfgfile.tmp" "$cfgfile" \
18226+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18227+ test 0 -eq $? || _lt_function_replace_fail=:
18228+else
18229+ # Save a `func_append' function call even when '+=' is not available
18230+ sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
18231+ && mv -f "$cfgfile.tmp" "$cfgfile" \
18232+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18233+ test 0 -eq $? || _lt_function_replace_fail=:
18234+fi
18235+
18236+if test x"$_lt_function_replace_fail" = x":"; then
18237+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
18238+$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
18239+fi
18240+
18241+
18242+ mv -f "$cfgfile" "$ofile" ||
18243 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18244 chmod +x "$ofile"
18245
18246diff --git a/libctf/Makefile.in b/libctf/Makefile.in
18247index 1cdf105a323..b69d6472e86 100644
18248--- a/libctf/Makefile.in
18249+++ b/libctf/Makefile.in
18250@@ -442,6 +442,7 @@ CYGPATH_W = @CYGPATH_W@
18251 DATADIRNAME = @DATADIRNAME@
18252 DEFS = @DEFS@
18253 DEPDIR = @DEPDIR@
18254+DLLTOOL = @DLLTOOL@
18255 DSYMUTIL = @DSYMUTIL@
18256 DUMPBIN = @DUMPBIN@
18257 ECHO_C = @ECHO_C@
18258@@ -481,6 +482,7 @@ LTLIBINTL = @LTLIBINTL@
18259 LTLIBOBJS = @LTLIBOBJS@
18260 MAINT = @MAINT@
18261 MAKEINFO = @MAKEINFO@
18262+MANIFEST_TOOL = @MANIFEST_TOOL@
18263 MKDIR_P = @MKDIR_P@
18264 MKINSTALLDIRS = @MKINSTALLDIRS@
18265 MSGFMT = @MSGFMT@
18266diff --git a/libctf/configure b/libctf/configure
18267index 3701bd8e796..9e36ae7c51c 100755
18268--- a/libctf/configure
18269+++ b/libctf/configure
18270@@ -669,6 +669,8 @@ OTOOL
18271 LIPO
18272 NMEDIT
18273 DSYMUTIL
18274+MANIFEST_TOOL
18275+DLLTOOL
18276 OBJDUMP
18277 LN_S
18278 NM
18279@@ -814,6 +816,7 @@ enable_shared
18280 enable_static
18281 with_pic
18282 enable_fast_install
18283+with_libtool_sysroot
18284 enable_libtool_lock
18285 enable_largefile
18286 enable_werror_always
18287@@ -1486,6 +1489,8 @@ Optional Packages:
18288 --with-pic try to use only PIC/non-PIC objects [default=use
18289 both]
18290 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
18291+ --with-libtool-sysroot=DIR Search for dependent libraries within DIR
18292+ (or the compiler's sysroot if not specified).
18293 --with-system-zlib use installed libz
18294
18295 Some influential environment variables:
18296@@ -7501,8 +7506,8 @@ esac
18297
18298
18299
18300-macro_version='2.2.7a'
18301-macro_revision='1.3134'
18302+macro_version='2.4'
18303+macro_revision='1.3293'
18304
18305
18306
18307@@ -7542,7 +7547,7 @@ ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
18308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
18309 $as_echo_n "checking how to print strings... " >&6; }
18310 # Test print first, because it will be a builtin if present.
18311-if test "X`print -r -- -n 2>/dev/null`" = X-n && \
18312+if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
18313 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
18314 ECHO='print -r --'
18315 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
18316@@ -8235,8 +8240,8 @@ $as_echo_n "checking whether the shell understands some XSI constructs... " >&6;
18317 # Try some XSI features
18318 xsi_shell=no
18319 ( _lt_dummy="a/b/c"
18320- test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
18321- = c,a/b,, \
18322+ test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
18323+ = c,a/b,b/c, \
18324 && eval 'test $(( 1 + 1 )) -eq 2 \
18325 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
18326 && xsi_shell=yes
18327@@ -8285,6 +8290,80 @@ esac
18328
18329
18330
18331+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
18332+$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
18333+if ${lt_cv_to_host_file_cmd+:} false; then :
18334+ $as_echo_n "(cached) " >&6
18335+else
18336+ case $host in
18337+ *-*-mingw* )
18338+ case $build in
18339+ *-*-mingw* ) # actually msys
18340+ lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
18341+ ;;
18342+ *-*-cygwin* )
18343+ lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
18344+ ;;
18345+ * ) # otherwise, assume *nix
18346+ lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
18347+ ;;
18348+ esac
18349+ ;;
18350+ *-*-cygwin* )
18351+ case $build in
18352+ *-*-mingw* ) # actually msys
18353+ lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
18354+ ;;
18355+ *-*-cygwin* )
18356+ lt_cv_to_host_file_cmd=func_convert_file_noop
18357+ ;;
18358+ * ) # otherwise, assume *nix
18359+ lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
18360+ ;;
18361+ esac
18362+ ;;
18363+ * ) # unhandled hosts (and "normal" native builds)
18364+ lt_cv_to_host_file_cmd=func_convert_file_noop
18365+ ;;
18366+esac
18367+
18368+fi
18369+
18370+to_host_file_cmd=$lt_cv_to_host_file_cmd
18371+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
18372+$as_echo "$lt_cv_to_host_file_cmd" >&6; }
18373+
18374+
18375+
18376+
18377+
18378+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
18379+$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
18380+if ${lt_cv_to_tool_file_cmd+:} false; then :
18381+ $as_echo_n "(cached) " >&6
18382+else
18383+ #assume ordinary cross tools, or native build.
18384+lt_cv_to_tool_file_cmd=func_convert_file_noop
18385+case $host in
18386+ *-*-mingw* )
18387+ case $build in
18388+ *-*-mingw* ) # actually msys
18389+ lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
18390+ ;;
18391+ esac
18392+ ;;
18393+esac
18394+
18395+fi
18396+
18397+to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18398+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
18399+$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
18400+
18401+
18402+
18403+
18404+
18405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
18406 $as_echo_n "checking for $LD option to reload object files... " >&6; }
18407 if ${lt_cv_ld_reload_flag+:} false; then :
18408@@ -8301,6 +8380,11 @@ case $reload_flag in
18409 esac
18410 reload_cmds='$LD$reload_flag -o $output$reload_objs'
18411 case $host_os in
18412+ cygwin* | mingw* | pw32* | cegcc*)
18413+ if test "$GCC" != yes; then
18414+ reload_cmds=false
18415+ fi
18416+ ;;
18417 darwin*)
18418 if test "$GCC" = yes; then
18419 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
18420@@ -8469,7 +8553,8 @@ mingw* | pw32*)
18421 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
18422 lt_cv_file_magic_cmd='func_win32_libid'
18423 else
18424- lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
18425+ # Keep this pattern in sync with the one in func_win32_libid.
18426+ lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
18427 lt_cv_file_magic_cmd='$OBJDUMP -f'
18428 fi
18429 ;;
18430@@ -8628,6 +8713,21 @@ esac
18431 fi
18432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
18433 $as_echo "$lt_cv_deplibs_check_method" >&6; }
18434+
18435+file_magic_glob=
18436+want_nocaseglob=no
18437+if test "$build" = "$host"; then
18438+ case $host_os in
18439+ mingw* | pw32*)
18440+ if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
18441+ want_nocaseglob=yes
18442+ else
18443+ file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
18444+ fi
18445+ ;;
18446+ esac
18447+fi
18448+
18449 file_magic_cmd=$lt_cv_file_magic_cmd
18450 deplibs_check_method=$lt_cv_deplibs_check_method
18451 test -z "$deplibs_check_method" && deplibs_check_method=unknown
18452@@ -8643,6 +8743,157 @@ test -z "$deplibs_check_method" && deplibs_check_method=unknown
18453
18454
18455
18456+
18457+
18458+
18459+
18460+
18461+
18462+
18463+
18464+
18465+
18466+if test -n "$ac_tool_prefix"; then
18467+ # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
18468+set dummy ${ac_tool_prefix}dlltool; ac_word=$2
18469+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18470+$as_echo_n "checking for $ac_word... " >&6; }
18471+if ${ac_cv_prog_DLLTOOL+:} false; then :
18472+ $as_echo_n "(cached) " >&6
18473+else
18474+ if test -n "$DLLTOOL"; then
18475+ ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
18476+else
18477+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18478+for as_dir in $PATH
18479+do
18480+ IFS=$as_save_IFS
18481+ test -z "$as_dir" && as_dir=.
18482+ for ac_exec_ext in '' $ac_executable_extensions; do
18483+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18484+ ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
18485+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18486+ break 2
18487+ fi
18488+done
18489+ done
18490+IFS=$as_save_IFS
18491+
18492+fi
18493+fi
18494+DLLTOOL=$ac_cv_prog_DLLTOOL
18495+if test -n "$DLLTOOL"; then
18496+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
18497+$as_echo "$DLLTOOL" >&6; }
18498+else
18499+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18500+$as_echo "no" >&6; }
18501+fi
18502+
18503+
18504+fi
18505+if test -z "$ac_cv_prog_DLLTOOL"; then
18506+ ac_ct_DLLTOOL=$DLLTOOL
18507+ # Extract the first word of "dlltool", so it can be a program name with args.
18508+set dummy dlltool; ac_word=$2
18509+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18510+$as_echo_n "checking for $ac_word... " >&6; }
18511+if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
18512+ $as_echo_n "(cached) " >&6
18513+else
18514+ if test -n "$ac_ct_DLLTOOL"; then
18515+ ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
18516+else
18517+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18518+for as_dir in $PATH
18519+do
18520+ IFS=$as_save_IFS
18521+ test -z "$as_dir" && as_dir=.
18522+ for ac_exec_ext in '' $ac_executable_extensions; do
18523+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18524+ ac_cv_prog_ac_ct_DLLTOOL="dlltool"
18525+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18526+ break 2
18527+ fi
18528+done
18529+ done
18530+IFS=$as_save_IFS
18531+
18532+fi
18533+fi
18534+ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
18535+if test -n "$ac_ct_DLLTOOL"; then
18536+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
18537+$as_echo "$ac_ct_DLLTOOL" >&6; }
18538+else
18539+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18540+$as_echo "no" >&6; }
18541+fi
18542+
18543+ if test "x$ac_ct_DLLTOOL" = x; then
18544+ DLLTOOL="false"
18545+ else
18546+ case $cross_compiling:$ac_tool_warned in
18547+yes:)
18548+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18549+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18550+ac_tool_warned=yes ;;
18551+esac
18552+ DLLTOOL=$ac_ct_DLLTOOL
18553+ fi
18554+else
18555+ DLLTOOL="$ac_cv_prog_DLLTOOL"
18556+fi
18557+
18558+test -z "$DLLTOOL" && DLLTOOL=dlltool
18559+
18560+
18561+
18562+
18563+
18564+
18565+
18566+
18567+
18568+
18569+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
18570+$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
18571+if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
18572+ $as_echo_n "(cached) " >&6
18573+else
18574+ lt_cv_sharedlib_from_linklib_cmd='unknown'
18575+
18576+case $host_os in
18577+cygwin* | mingw* | pw32* | cegcc*)
18578+ # two different shell functions defined in ltmain.sh
18579+ # decide which to use based on capabilities of $DLLTOOL
18580+ case `$DLLTOOL --help 2>&1` in
18581+ *--identify-strict*)
18582+ lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
18583+ ;;
18584+ *)
18585+ lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
18586+ ;;
18587+ esac
18588+ ;;
18589+*)
18590+ # fallback: assume linklib IS sharedlib
18591+ lt_cv_sharedlib_from_linklib_cmd="$ECHO"
18592+ ;;
18593+esac
18594+
18595+fi
18596+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
18597+$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
18598+sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
18599+test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
18600+
18601+
18602+
18603+
18604+
18605+
18606+
18607 plugin_option=
18608 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
18609 for plugin in $plugin_names; do
18610@@ -8657,8 +8908,10 @@ for plugin in $plugin_names; do
18611 done
18612
18613 if test -n "$ac_tool_prefix"; then
18614- # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
18615-set dummy ${ac_tool_prefix}ar; ac_word=$2
18616+ for ac_prog in ar
18617+ do
18618+ # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
18619+set dummy $ac_tool_prefix$ac_prog; ac_word=$2
18620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18621 $as_echo_n "checking for $ac_word... " >&6; }
18622 if ${ac_cv_prog_AR+:} false; then :
18623@@ -8674,7 +8927,7 @@ do
18624 test -z "$as_dir" && as_dir=.
18625 for ac_exec_ext in '' $ac_executable_extensions; do
18626 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18627- ac_cv_prog_AR="${ac_tool_prefix}ar"
18628+ ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
18629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18630 break 2
18631 fi
18632@@ -8694,11 +8947,15 @@ $as_echo "no" >&6; }
18633 fi
18634
18635
18636+ test -n "$AR" && break
18637+ done
18638 fi
18639-if test -z "$ac_cv_prog_AR"; then
18640+if test -z "$AR"; then
18641 ac_ct_AR=$AR
18642- # Extract the first word of "ar", so it can be a program name with args.
18643-set dummy ar; ac_word=$2
18644+ for ac_prog in ar
18645+do
18646+ # Extract the first word of "$ac_prog", so it can be a program name with args.
18647+set dummy $ac_prog; ac_word=$2
18648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18649 $as_echo_n "checking for $ac_word... " >&6; }
18650 if ${ac_cv_prog_ac_ct_AR+:} false; then :
18651@@ -8714,7 +8971,7 @@ do
18652 test -z "$as_dir" && as_dir=.
18653 for ac_exec_ext in '' $ac_executable_extensions; do
18654 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18655- ac_cv_prog_ac_ct_AR="ar"
18656+ ac_cv_prog_ac_ct_AR="$ac_prog"
18657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18658 break 2
18659 fi
18660@@ -8733,6 +8990,10 @@ else
18661 $as_echo "no" >&6; }
18662 fi
18663
18664+
18665+ test -n "$ac_ct_AR" && break
18666+done
18667+
18668 if test "x$ac_ct_AR" = x; then
18669 AR="false"
18670 else
18671@@ -8744,25 +9005,19 @@ ac_tool_warned=yes ;;
18672 esac
18673 AR=$ac_ct_AR
18674 fi
18675-else
18676- AR="$ac_cv_prog_AR"
18677 fi
18678
18679-test -z "$AR" && AR=ar
18680-if test -n "$plugin_option"; then
18681- if $AR --help 2>&1 | grep -q "\--plugin"; then
18682- touch conftest.c
18683- $AR $plugin_option rc conftest.a conftest.c
18684- if test "$?" != 0; then
18685- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
18686+ touch conftest.c
18687+ $AR $plugin_option rc conftest.a conftest.c
18688+ if test "$?" != 0; then
18689+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
18690 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
18691- else
18692- AR="$AR $plugin_option"
18693- fi
18694- rm -f conftest.*
18695+ else
18696+ AR="$AR $plugin_option"
18697 fi
18698-fi
18699-test -z "$AR_FLAGS" && AR_FLAGS=cru
18700+ rm -f conftest.*
18701+: ${AR=ar}
18702+: ${AR_FLAGS=cru}
18703
18704
18705
18706@@ -8774,6 +9029,64 @@ test -z "$AR_FLAGS" && AR_FLAGS=cru
18707
18708
18709
18710+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
18711+$as_echo_n "checking for archiver @FILE support... " >&6; }
18712+if ${lt_cv_ar_at_file+:} false; then :
18713+ $as_echo_n "(cached) " >&6
18714+else
18715+ lt_cv_ar_at_file=no
18716+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18717+/* end confdefs.h. */
18718+
18719+int
18720+main ()
18721+{
18722+
18723+ ;
18724+ return 0;
18725+}
18726+_ACEOF
18727+if ac_fn_c_try_compile "$LINENO"; then :
18728+ echo conftest.$ac_objext > conftest.lst
18729+ lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
18730+ { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
18731+ (eval $lt_ar_try) 2>&5
18732+ ac_status=$?
18733+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18734+ test $ac_status = 0; }
18735+ if test "$ac_status" -eq 0; then
18736+ # Ensure the archiver fails upon bogus file names.
18737+ rm -f conftest.$ac_objext libconftest.a
18738+ { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
18739+ (eval $lt_ar_try) 2>&5
18740+ ac_status=$?
18741+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18742+ test $ac_status = 0; }
18743+ if test "$ac_status" -ne 0; then
18744+ lt_cv_ar_at_file=@
18745+ fi
18746+ fi
18747+ rm -f conftest.* libconftest.a
18748+
18749+fi
18750+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18751+
18752+fi
18753+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
18754+$as_echo "$lt_cv_ar_at_file" >&6; }
18755+
18756+if test "x$lt_cv_ar_at_file" = xno; then
18757+ archiver_list_spec=
18758+else
18759+ archiver_list_spec=$lt_cv_ar_at_file
18760+fi
18761+
18762+
18763+
18764+
18765+
18766+
18767+
18768 if test -n "$ac_tool_prefix"; then
18769 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
18770 set dummy ${ac_tool_prefix}strip; ac_word=$2
18771@@ -9113,8 +9426,8 @@ esac
18772 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
18773
18774 # Transform an extracted symbol line into symbol name and symbol address
18775-lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
18776-lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
18777+lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
18778+lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
18779
18780 # Handle CRLF in mingw tool chain
18781 opt_cr=
18782@@ -9150,6 +9463,7 @@ for ac_symprfx in "" "_"; do
18783 else
18784 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
18785 fi
18786+ lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
18787
18788 # Check to see that the pipe works correctly.
18789 pipe_works=no
18790@@ -9191,6 +9505,18 @@ _LT_EOF
18791 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
18792 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
18793 cat <<_LT_EOF > conftest.$ac_ext
18794+/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
18795+#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
18796+/* DATA imports from DLLs on WIN32 con't be const, because runtime
18797+ relocations are performed -- see ld's documentation on pseudo-relocs. */
18798+# define LT_DLSYM_CONST
18799+#elif defined(__osf__)
18800+/* This system does not cope well with relocations in const data. */
18801+# define LT_DLSYM_CONST
18802+#else
18803+# define LT_DLSYM_CONST const
18804+#endif
18805+
18806 #ifdef __cplusplus
18807 extern "C" {
18808 #endif
18809@@ -9202,7 +9528,7 @@ _LT_EOF
18810 cat <<_LT_EOF >> conftest.$ac_ext
18811
18812 /* The mapping between symbol names and symbols. */
18813-const struct {
18814+LT_DLSYM_CONST struct {
18815 const char *name;
18816 void *address;
18817 }
18818@@ -9228,8 +9554,8 @@ static const void *lt_preloaded_setup() {
18819 _LT_EOF
18820 # Now try linking the two files.
18821 mv conftest.$ac_objext conftstm.$ac_objext
18822- lt_save_LIBS="$LIBS"
18823- lt_save_CFLAGS="$CFLAGS"
18824+ lt_globsym_save_LIBS=$LIBS
18825+ lt_globsym_save_CFLAGS=$CFLAGS
18826 LIBS="conftstm.$ac_objext"
18827 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
18828 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18829@@ -9239,8 +9565,8 @@ _LT_EOF
18830 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
18831 pipe_works=yes
18832 fi
18833- LIBS="$lt_save_LIBS"
18834- CFLAGS="$lt_save_CFLAGS"
18835+ LIBS=$lt_globsym_save_LIBS
18836+ CFLAGS=$lt_globsym_save_CFLAGS
18837 else
18838 echo "cannot find nm_test_func in $nlist" >&5
18839 fi
18840@@ -9277,6 +9603,17 @@ else
18841 $as_echo "ok" >&6; }
18842 fi
18843
18844+# Response file support.
18845+if test "$lt_cv_nm_interface" = "MS dumpbin"; then
18846+ nm_file_list_spec='@'
18847+elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
18848+ nm_file_list_spec='@'
18849+fi
18850+
18851+
18852+
18853+
18854+
18855
18856
18857
18858@@ -9293,6 +9630,44 @@ fi
18859
18860
18861
18862+
18863+
18864+
18865+
18866+
18867+
18868+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
18869+$as_echo_n "checking for sysroot... " >&6; }
18870+
18871+# Check whether --with-libtool-sysroot was given.
18872+if test "${with_libtool_sysroot+set}" = set; then :
18873+ withval=$with_libtool_sysroot;
18874+else
18875+ with_libtool_sysroot=no
18876+fi
18877+
18878+
18879+lt_sysroot=
18880+case ${with_libtool_sysroot} in #(
18881+ yes)
18882+ if test "$GCC" = yes; then
18883+ lt_sysroot=`$CC --print-sysroot 2>/dev/null`
18884+ fi
18885+ ;; #(
18886+ /*)
18887+ lt_sysroot=`echo "$with_libtool_sysroot" | sed -e "$sed_quote_subst"`
18888+ ;; #(
18889+ no|'')
18890+ ;; #(
18891+ *)
18892+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_libtool_sysroot}" >&5
18893+$as_echo "${with_libtool_sysroot}" >&6; }
18894+ as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
18895+ ;;
18896+esac
18897+
18898+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
18899+$as_echo "${lt_sysroot:-no}" >&6; }
18900
18901
18902
18903@@ -9504,6 +9879,123 @@ esac
18904
18905 need_locks="$enable_libtool_lock"
18906
18907+if test -n "$ac_tool_prefix"; then
18908+ # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
18909+set dummy ${ac_tool_prefix}mt; ac_word=$2
18910+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18911+$as_echo_n "checking for $ac_word... " >&6; }
18912+if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
18913+ $as_echo_n "(cached) " >&6
18914+else
18915+ if test -n "$MANIFEST_TOOL"; then
18916+ ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
18917+else
18918+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18919+for as_dir in $PATH
18920+do
18921+ IFS=$as_save_IFS
18922+ test -z "$as_dir" && as_dir=.
18923+ for ac_exec_ext in '' $ac_executable_extensions; do
18924+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18925+ ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
18926+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18927+ break 2
18928+ fi
18929+done
18930+ done
18931+IFS=$as_save_IFS
18932+
18933+fi
18934+fi
18935+MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
18936+if test -n "$MANIFEST_TOOL"; then
18937+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
18938+$as_echo "$MANIFEST_TOOL" >&6; }
18939+else
18940+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18941+$as_echo "no" >&6; }
18942+fi
18943+
18944+
18945+fi
18946+if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
18947+ ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
18948+ # Extract the first word of "mt", so it can be a program name with args.
18949+set dummy mt; ac_word=$2
18950+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18951+$as_echo_n "checking for $ac_word... " >&6; }
18952+if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
18953+ $as_echo_n "(cached) " >&6
18954+else
18955+ if test -n "$ac_ct_MANIFEST_TOOL"; then
18956+ ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
18957+else
18958+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18959+for as_dir in $PATH
18960+do
18961+ IFS=$as_save_IFS
18962+ test -z "$as_dir" && as_dir=.
18963+ for ac_exec_ext in '' $ac_executable_extensions; do
18964+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18965+ ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
18966+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18967+ break 2
18968+ fi
18969+done
18970+ done
18971+IFS=$as_save_IFS
18972+
18973+fi
18974+fi
18975+ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
18976+if test -n "$ac_ct_MANIFEST_TOOL"; then
18977+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
18978+$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
18979+else
18980+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18981+$as_echo "no" >&6; }
18982+fi
18983+
18984+ if test "x$ac_ct_MANIFEST_TOOL" = x; then
18985+ MANIFEST_TOOL=":"
18986+ else
18987+ case $cross_compiling:$ac_tool_warned in
18988+yes:)
18989+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18990+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18991+ac_tool_warned=yes ;;
18992+esac
18993+ MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
18994+ fi
18995+else
18996+ MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
18997+fi
18998+
18999+test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
19000+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
19001+$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
19002+if ${lt_cv_path_mainfest_tool+:} false; then :
19003+ $as_echo_n "(cached) " >&6
19004+else
19005+ lt_cv_path_mainfest_tool=no
19006+ echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
19007+ $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
19008+ cat conftest.err >&5
19009+ if $GREP 'Manifest Tool' conftest.out > /dev/null; then
19010+ lt_cv_path_mainfest_tool=yes
19011+ fi
19012+ rm -f conftest*
19013+fi
19014+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
19015+$as_echo "$lt_cv_path_mainfest_tool" >&6; }
19016+if test "x$lt_cv_path_mainfest_tool" != xyes; then
19017+ MANIFEST_TOOL=:
19018+fi
19019+
19020+
19021+
19022+
19023+
19024
19025 case $host_os in
19026 rhapsody* | darwin*)
19027@@ -10067,6 +10559,8 @@ _LT_EOF
19028 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
19029 echo "$AR cru libconftest.a conftest.o" >&5
19030 $AR cru libconftest.a conftest.o 2>&5
19031+ echo "$RANLIB libconftest.a" >&5
19032+ $RANLIB libconftest.a 2>&5
19033 cat > conftest.c << _LT_EOF
19034 int main() { return 0;}
19035 _LT_EOF
19036@@ -10621,8 +11115,6 @@ fi
19037 lt_prog_compiler_pic=
19038 lt_prog_compiler_static=
19039
19040-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19041-$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19042
19043 if test "$GCC" = yes; then
19044 lt_prog_compiler_wl='-Wl,'
19045@@ -10788,6 +11280,12 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19046 lt_prog_compiler_pic='--shared'
19047 lt_prog_compiler_static='--static'
19048 ;;
19049+ nagfor*)
19050+ # NAG Fortran compiler
19051+ lt_prog_compiler_wl='-Wl,-Wl,,'
19052+ lt_prog_compiler_pic='-PIC'
19053+ lt_prog_compiler_static='-Bstatic'
19054+ ;;
19055 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
19056 # Portland Group compilers (*not* the Pentium gcc compiler,
19057 # which looks to be a dead project)
19058@@ -10850,7 +11348,7 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19059 lt_prog_compiler_pic='-KPIC'
19060 lt_prog_compiler_static='-Bstatic'
19061 case $cc_basename in
19062- f77* | f90* | f95*)
19063+ f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
19064 lt_prog_compiler_wl='-Qoption ld ';;
19065 *)
19066 lt_prog_compiler_wl='-Wl,';;
19067@@ -10907,13 +11405,17 @@ case $host_os in
19068 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
19069 ;;
19070 esac
19071-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
19072-$as_echo "$lt_prog_compiler_pic" >&6; }
19073-
19074-
19075-
19076-
19077
19078+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19079+$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19080+if ${lt_cv_prog_compiler_pic+:} false; then :
19081+ $as_echo_n "(cached) " >&6
19082+else
19083+ lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
19084+fi
19085+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
19086+$as_echo "$lt_cv_prog_compiler_pic" >&6; }
19087+lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
19088
19089 #
19090 # Check to make sure the PIC flag actually works.
19091@@ -10974,6 +11476,11 @@ fi
19092
19093
19094
19095+
19096+
19097+
19098+
19099+
19100 #
19101 # Check to make sure the static flag actually works.
19102 #
19103@@ -11324,7 +11831,8 @@ _LT_EOF
19104 allow_undefined_flag=unsupported
19105 always_export_symbols=no
19106 enable_shared_with_static_runtimes=yes
19107- export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
19108+ export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
19109+ exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
19110
19111 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19112 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19113@@ -11423,12 +11931,12 @@ _LT_EOF
19114 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
19115 hardcode_libdir_flag_spec=
19116 hardcode_libdir_flag_spec_ld='-rpath $libdir'
19117- archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
19118+ archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
19119 if test "x$supports_anon_versioning" = xyes; then
19120 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
19121 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19122 echo "local: *; };" >> $output_objdir/$libname.ver~
19123- $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
19124+ $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
19125 fi
19126 ;;
19127 esac
19128@@ -11442,8 +11950,8 @@ _LT_EOF
19129 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19130 wlarc=
19131 else
19132- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19133- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19134+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19135+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19136 fi
19137 ;;
19138
19139@@ -11461,8 +11969,8 @@ _LT_EOF
19140
19141 _LT_EOF
19142 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19143- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19144- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19145+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19146+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19147 else
19148 ld_shlibs=no
19149 fi
19150@@ -11508,8 +12016,8 @@ _LT_EOF
19151
19152 *)
19153 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19154- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19155- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19156+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19157+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19158 else
19159 ld_shlibs=no
19160 fi
19161@@ -11639,7 +12147,13 @@ _LT_EOF
19162 allow_undefined_flag='-berok'
19163 # Determine the default libpath from the value encoded in an
19164 # empty executable.
19165- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19166+ if test "${lt_cv_aix_libpath+set}" = set; then
19167+ aix_libpath=$lt_cv_aix_libpath
19168+else
19169+ if ${lt_cv_aix_libpath_+:} false; then :
19170+ $as_echo_n "(cached) " >&6
19171+else
19172+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19173 /* end confdefs.h. */
19174
19175 int
19176@@ -11652,22 +12166,29 @@ main ()
19177 _ACEOF
19178 if ac_fn_c_try_link "$LINENO"; then :
19179
19180-lt_aix_libpath_sed='
19181- /Import File Strings/,/^$/ {
19182- /^0/ {
19183- s/^0 *\(.*\)$/\1/
19184- p
19185- }
19186- }'
19187-aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19188-# Check for a 64-bit object if we didn't find anything.
19189-if test -z "$aix_libpath"; then
19190- aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19191-fi
19192+ lt_aix_libpath_sed='
19193+ /Import File Strings/,/^$/ {
19194+ /^0/ {
19195+ s/^0 *\([^ ]*\) *$/\1/
19196+ p
19197+ }
19198+ }'
19199+ lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19200+ # Check for a 64-bit object if we didn't find anything.
19201+ if test -z "$lt_cv_aix_libpath_"; then
19202+ lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19203+ fi
19204 fi
19205 rm -f core conftest.err conftest.$ac_objext \
19206 conftest$ac_exeext conftest.$ac_ext
19207-if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19208+ if test -z "$lt_cv_aix_libpath_"; then
19209+ lt_cv_aix_libpath_="/usr/lib:/lib"
19210+ fi
19211+
19212+fi
19213+
19214+ aix_libpath=$lt_cv_aix_libpath_
19215+fi
19216
19217 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
19218 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
19219@@ -11679,7 +12200,13 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19220 else
19221 # Determine the default libpath from the value encoded in an
19222 # empty executable.
19223- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19224+ if test "${lt_cv_aix_libpath+set}" = set; then
19225+ aix_libpath=$lt_cv_aix_libpath
19226+else
19227+ if ${lt_cv_aix_libpath_+:} false; then :
19228+ $as_echo_n "(cached) " >&6
19229+else
19230+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19231 /* end confdefs.h. */
19232
19233 int
19234@@ -11692,22 +12219,29 @@ main ()
19235 _ACEOF
19236 if ac_fn_c_try_link "$LINENO"; then :
19237
19238-lt_aix_libpath_sed='
19239- /Import File Strings/,/^$/ {
19240- /^0/ {
19241- s/^0 *\(.*\)$/\1/
19242- p
19243- }
19244- }'
19245-aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19246-# Check for a 64-bit object if we didn't find anything.
19247-if test -z "$aix_libpath"; then
19248- aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19249-fi
19250+ lt_aix_libpath_sed='
19251+ /Import File Strings/,/^$/ {
19252+ /^0/ {
19253+ s/^0 *\([^ ]*\) *$/\1/
19254+ p
19255+ }
19256+ }'
19257+ lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19258+ # Check for a 64-bit object if we didn't find anything.
19259+ if test -z "$lt_cv_aix_libpath_"; then
19260+ lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19261+ fi
19262 fi
19263 rm -f core conftest.err conftest.$ac_objext \
19264 conftest$ac_exeext conftest.$ac_ext
19265-if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19266+ if test -z "$lt_cv_aix_libpath_"; then
19267+ lt_cv_aix_libpath_="/usr/lib:/lib"
19268+ fi
19269+
19270+fi
19271+
19272+ aix_libpath=$lt_cv_aix_libpath_
19273+fi
19274
19275 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
19276 # Warning - without using the other run time loading flags,
19277@@ -11752,20 +12286,63 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19278 # Microsoft Visual C++.
19279 # hardcode_libdir_flag_spec is actually meaningless, as there is
19280 # no search path for DLLs.
19281- hardcode_libdir_flag_spec=' '
19282- allow_undefined_flag=unsupported
19283- # Tell ltmain to make .lib files, not .a files.
19284- libext=lib
19285- # Tell ltmain to make .dll files, not .so files.
19286- shrext_cmds=".dll"
19287- # FIXME: Setting linknames here is a bad hack.
19288- archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
19289- # The linker will automatically build a .lib file if we build a DLL.
19290- old_archive_from_new_cmds='true'
19291- # FIXME: Should let the user specify the lib program.
19292- old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
19293- fix_srcfile_path='`cygpath -w "$srcfile"`'
19294- enable_shared_with_static_runtimes=yes
19295+ case $cc_basename in
19296+ cl*)
19297+ # Native MSVC
19298+ hardcode_libdir_flag_spec=' '
19299+ allow_undefined_flag=unsupported
19300+ always_export_symbols=yes
19301+ file_list_spec='@'
19302+ # Tell ltmain to make .lib files, not .a files.
19303+ libext=lib
19304+ # Tell ltmain to make .dll files, not .so files.
19305+ shrext_cmds=".dll"
19306+ # FIXME: Setting linknames here is a bad hack.
19307+ archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
19308+ archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19309+ sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
19310+ else
19311+ sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
19312+ fi~
19313+ $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
19314+ linknames='
19315+ # The linker will not automatically build a static lib if we build a DLL.
19316+ # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
19317+ enable_shared_with_static_runtimes=yes
19318+ export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
19319+ # Don't use ranlib
19320+ old_postinstall_cmds='chmod 644 $oldlib'
19321+ postlink_cmds='lt_outputfile="@OUTPUT@"~
19322+ lt_tool_outputfile="@TOOL_OUTPUT@"~
19323+ case $lt_outputfile in
19324+ *.exe|*.EXE) ;;
19325+ *)
19326+ lt_outputfile="$lt_outputfile.exe"
19327+ lt_tool_outputfile="$lt_tool_outputfile.exe"
19328+ ;;
19329+ esac~
19330+ if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
19331+ $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
19332+ $RM "$lt_outputfile.manifest";
19333+ fi'
19334+ ;;
19335+ *)
19336+ # Assume MSVC wrapper
19337+ hardcode_libdir_flag_spec=' '
19338+ allow_undefined_flag=unsupported
19339+ # Tell ltmain to make .lib files, not .a files.
19340+ libext=lib
19341+ # Tell ltmain to make .dll files, not .so files.
19342+ shrext_cmds=".dll"
19343+ # FIXME: Setting linknames here is a bad hack.
19344+ archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
19345+ # The linker will automatically build a .lib file if we build a DLL.
19346+ old_archive_from_new_cmds='true'
19347+ # FIXME: Should let the user specify the lib program.
19348+ old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
19349+ enable_shared_with_static_runtimes=yes
19350+ ;;
19351+ esac
19352 ;;
19353
19354 darwin* | rhapsody*)
19355@@ -11826,7 +12403,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19356
19357 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19358 freebsd* | dragonfly*)
19359- archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19360+ archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19361 hardcode_libdir_flag_spec='-R$libdir'
19362 hardcode_direct=yes
19363 hardcode_shlibpath_var=no
19364@@ -11834,7 +12411,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19365
19366 hpux9*)
19367 if test "$GCC" = yes; then
19368- archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
19369+ archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
19370 else
19371 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
19372 fi
19373@@ -11850,7 +12427,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19374
19375 hpux10*)
19376 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
19377- archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19378+ archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19379 else
19380 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19381 fi
19382@@ -11874,10 +12451,10 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19383 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19384 ;;
19385 ia64*)
19386- archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19387+ archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19388 ;;
19389 *)
19390- archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19391+ archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19392 ;;
19393 esac
19394 else
19395@@ -11956,23 +12533,36 @@ fi
19396
19397 irix5* | irix6* | nonstopux*)
19398 if test "$GCC" = yes; then
19399- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19400+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19401 # Try to use the -exported_symbol ld option, if it does not
19402 # work, assume that -exports_file does not work either and
19403 # implicitly export all symbols.
19404- save_LDFLAGS="$LDFLAGS"
19405- LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
19406- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19407+ # This should be the same for all languages, so no per-tag cache variable.
19408+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
19409+$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
19410+if ${lt_cv_irix_exported_symbol+:} false; then :
19411+ $as_echo_n "(cached) " >&6
19412+else
19413+ save_LDFLAGS="$LDFLAGS"
19414+ LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
19415+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19416 /* end confdefs.h. */
19417-int foo(void) {}
19418+int foo (void) { return 0; }
19419 _ACEOF
19420 if ac_fn_c_try_link "$LINENO"; then :
19421- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
19422-
19423+ lt_cv_irix_exported_symbol=yes
19424+else
19425+ lt_cv_irix_exported_symbol=no
19426 fi
19427 rm -f core conftest.err conftest.$ac_objext \
19428 conftest$ac_exeext conftest.$ac_ext
19429- LDFLAGS="$save_LDFLAGS"
19430+ LDFLAGS="$save_LDFLAGS"
19431+fi
19432+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
19433+$as_echo "$lt_cv_irix_exported_symbol" >&6; }
19434+ if test "$lt_cv_irix_exported_symbol" = yes; then
19435+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
19436+ fi
19437 else
19438 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
19439 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
19440@@ -12057,7 +12647,7 @@ rm -f core conftest.err conftest.$ac_objext \
19441 osf4* | osf5*) # as osf3* with the addition of -msym flag
19442 if test "$GCC" = yes; then
19443 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
19444- archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19445+ archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19446 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
19447 else
19448 allow_undefined_flag=' -expect_unresolved \*'
19449@@ -12076,9 +12666,9 @@ rm -f core conftest.err conftest.$ac_objext \
19450 no_undefined_flag=' -z defs'
19451 if test "$GCC" = yes; then
19452 wlarc='${wl}'
19453- archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19454+ archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19455 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19456- $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
19457+ $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
19458 else
19459 case `$CC -V 2>&1` in
19460 *"Compilers 5.0"*)
19461@@ -12654,8 +13244,9 @@ cygwin* | mingw* | pw32* | cegcc*)
19462 need_version=no
19463 need_lib_prefix=no
19464
19465- case $GCC,$host_os in
19466- yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
19467+ case $GCC,$cc_basename in
19468+ yes,*)
19469+ # gcc
19470 library_names_spec='$libname.dll.a'
19471 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19472 postinstall_cmds='base_file=`basename \${file}`~
19473@@ -12688,13 +13279,71 @@ cygwin* | mingw* | pw32* | cegcc*)
19474 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19475 ;;
19476 esac
19477+ dynamic_linker='Win32 ld.exe'
19478+ ;;
19479+
19480+ *,cl*)
19481+ # Native MSVC
19482+ libname_spec='$name'
19483+ soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19484+ library_names_spec='${libname}.dll.lib'
19485+
19486+ case $build_os in
19487+ mingw*)
19488+ sys_lib_search_path_spec=
19489+ lt_save_ifs=$IFS
19490+ IFS=';'
19491+ for lt_path in $LIB
19492+ do
19493+ IFS=$lt_save_ifs
19494+ # Let DOS variable expansion print the short 8.3 style file name.
19495+ lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
19496+ sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
19497+ done
19498+ IFS=$lt_save_ifs
19499+ # Convert to MSYS style.
19500+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
19501+ ;;
19502+ cygwin*)
19503+ # Convert to unix form, then to dos form, then back to unix form
19504+ # but this time dos style (no spaces!) so that the unix form looks
19505+ # like /cygdrive/c/PROGRA~1:/cygdr...
19506+ sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
19507+ sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
19508+ sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19509+ ;;
19510+ *)
19511+ sys_lib_search_path_spec="$LIB"
19512+ if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
19513+ # It is most probably a Windows format PATH.
19514+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19515+ else
19516+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19517+ fi
19518+ # FIXME: find the short name or the path components, as spaces are
19519+ # common. (e.g. "Program Files" -> "PROGRA~1")
19520+ ;;
19521+ esac
19522+
19523+ # DLL is installed to $(libdir)/../bin by postinstall_cmds
19524+ postinstall_cmds='base_file=`basename \${file}`~
19525+ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19526+ dldir=$destdir/`dirname \$dlpath`~
19527+ test -d \$dldir || mkdir -p \$dldir~
19528+ $install_prog $dir/$dlname \$dldir/$dlname'
19529+ postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19530+ dlpath=$dir/\$dldll~
19531+ $RM \$dlpath'
19532+ shlibpath_overrides_runpath=yes
19533+ dynamic_linker='Win32 link.exe'
19534 ;;
19535
19536 *)
19537+ # Assume MSVC wrapper
19538 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19539+ dynamic_linker='Win32 ld.exe'
19540 ;;
19541 esac
19542- dynamic_linker='Win32 ld.exe'
19543 # FIXME: first we should search . and the directory the executable is in
19544 shlibpath_var=PATH
19545 ;;
19546@@ -13596,7 +14245,11 @@ else
19547 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19548 lt_status=$lt_dlunknown
19549 cat > conftest.$ac_ext <<_LT_EOF
19550+<<<<<<< HEAD
19551 #line 13599 "configure"
19552+=======
19553+#line $LINENO "configure"
19554+>>>>>>> b932158cf4c (Use libtool 2.4)
19555 #include "confdefs.h"
19556
19557 #if HAVE_DLFCN_H
19558@@ -13640,10 +14293,10 @@ else
19559 /* When -fvisbility=hidden is used, assume the code has been annotated
19560 correspondingly for the symbols needed. */
19561 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19562-void fnord () __attribute__((visibility("default")));
19563+int fnord () __attribute__((visibility("default")));
19564 #endif
19565
19566-void fnord () { int i=42; }
19567+int fnord () { return 42; }
19568 int main ()
19569 {
19570 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19571@@ -13702,7 +14355,11 @@ else
19572 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19573 lt_status=$lt_dlunknown
19574 cat > conftest.$ac_ext <<_LT_EOF
19575+<<<<<<< HEAD
19576 #line 13705 "configure"
19577+=======
19578+#line $LINENO "configure"
19579+>>>>>>> b932158cf4c (Use libtool 2.4)
19580 #include "confdefs.h"
19581
19582 #if HAVE_DLFCN_H
19583@@ -13746,10 +14403,10 @@ else
19584 /* When -fvisbility=hidden is used, assume the code has been annotated
19585 correspondingly for the symbols needed. */
19586 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19587-void fnord () __attribute__((visibility("default")));
19588+int fnord () __attribute__((visibility("default")));
19589 #endif
19590
19591-void fnord () { int i=42; }
19592+int fnord () { return 42; }
19593 int main ()
19594 {
19595 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19596@@ -17797,13 +18454,20 @@ exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19597 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19598 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19599 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19600+lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19601+lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19602 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19603 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19604 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19605 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19606 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19607+file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19608+want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19609+DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19610+sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19611 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19612 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19613+archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19614 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19615 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19616 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19617@@ -17818,14 +18482,17 @@ lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$de
19618 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19619 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19620 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
19621+nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19622+lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19623 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19624 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19625 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19626-lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19627 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19628+lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19629 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19630 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19631 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19632+MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19633 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19634 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19635 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19636@@ -17858,12 +18525,12 @@ hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_q
19637 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19638 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19639 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19640-fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
19641 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19642 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19643 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19644 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19645 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19646+postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19647 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19648 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19649 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19650@@ -17918,8 +18585,13 @@ reload_flag \
19651 OBJDUMP \
19652 deplibs_check_method \
19653 file_magic_cmd \
19654+file_magic_glob \
19655+want_nocaseglob \
19656+DLLTOOL \
19657+sharedlib_from_linklib_cmd \
19658 AR \
19659 AR_FLAGS \
19660+archiver_list_spec \
19661 STRIP \
19662 RANLIB \
19663 CC \
19664@@ -17929,12 +18601,14 @@ lt_cv_sys_global_symbol_pipe \
19665 lt_cv_sys_global_symbol_to_cdecl \
19666 lt_cv_sys_global_symbol_to_c_name_address \
19667 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19668+nm_file_list_spec \
19669 lt_prog_compiler_no_builtin_flag \
19670-lt_prog_compiler_wl \
19671 lt_prog_compiler_pic \
19672+lt_prog_compiler_wl \
19673 lt_prog_compiler_static \
19674 lt_cv_prog_compiler_c_o \
19675 need_locks \
19676+MANIFEST_TOOL \
19677 DSYMUTIL \
19678 NMEDIT \
19679 LIPO \
19680@@ -17950,7 +18624,6 @@ no_undefined_flag \
19681 hardcode_libdir_flag_spec \
19682 hardcode_libdir_flag_spec_ld \
19683 hardcode_libdir_separator \
19684-fix_srcfile_path \
19685 exclude_expsyms \
19686 include_expsyms \
19687 file_list_spec \
19688@@ -17986,6 +18659,7 @@ module_cmds \
19689 module_expsym_cmds \
19690 export_symbols_cmds \
19691 prelink_cmds \
19692+postlink_cmds \
19693 postinstall_cmds \
19694 postuninstall_cmds \
19695 finish_cmds \
19696@@ -18845,7 +19519,8 @@ $as_echo X"$file" |
19697 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19698 #
19699 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19700-# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
19701+# 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
19702+# Inc.
19703 # Written by Gordon Matzigkeit, 1996
19704 #
19705 # This file is part of GNU Libtool.
19706@@ -18948,19 +19623,42 @@ SP2NL=$lt_lt_SP2NL
19707 # turn newlines into spaces.
19708 NL2SP=$lt_lt_NL2SP
19709
19710+# convert \$build file names to \$host format.
19711+to_host_file_cmd=$lt_cv_to_host_file_cmd
19712+
19713+# convert \$build files to toolchain format.
19714+to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19715+
19716 # An object symbol dumper.
19717 OBJDUMP=$lt_OBJDUMP
19718
19719 # Method to check whether dependent libraries are shared objects.
19720 deplibs_check_method=$lt_deplibs_check_method
19721
19722-# Command to use when deplibs_check_method == "file_magic".
19723+# Command to use when deplibs_check_method = "file_magic".
19724 file_magic_cmd=$lt_file_magic_cmd
19725
19726+# How to find potential files when deplibs_check_method = "file_magic".
19727+file_magic_glob=$lt_file_magic_glob
19728+
19729+# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19730+want_nocaseglob=$lt_want_nocaseglob
19731+
19732+# DLL creation program.
19733+DLLTOOL=$lt_DLLTOOL
19734+
19735+# Command to associate shared and link libraries.
19736+sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19737+
19738 # The archiver.
19739 AR=$lt_AR
19740+
19741+# Flags to create an archive.
19742 AR_FLAGS=$lt_AR_FLAGS
19743
19744+# How to feed a file listing to the archiver.
19745+archiver_list_spec=$lt_archiver_list_spec
19746+
19747 # A symbol stripping program.
19748 STRIP=$lt_STRIP
19749
19750@@ -18990,6 +19688,12 @@ global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19751 # Transform the output of nm in a C name address pair when lib prefix is needed.
19752 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19753
19754+# Specify filename containing input files for \$NM.
19755+nm_file_list_spec=$lt_nm_file_list_spec
19756+
19757+# The root where to search for dependent libraries,and in which our libraries should be installed.
19758+lt_sysroot=$lt_sysroot
19759+
19760 # The name of the directory that contains temporary libtool files.
19761 objdir=$objdir
19762
19763@@ -18999,6 +19703,9 @@ MAGIC_CMD=$MAGIC_CMD
19764 # Must we lock files when doing compilation?
19765 need_locks=$lt_need_locks
19766
19767+# Manifest tool.
19768+MANIFEST_TOOL=$lt_MANIFEST_TOOL
19769+
19770 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19771 DSYMUTIL=$lt_DSYMUTIL
19772
19773@@ -19113,12 +19820,12 @@ with_gcc=$GCC
19774 # Compiler flag to turn off builtin functions.
19775 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19776
19777-# How to pass a linker flag through the compiler.
19778-wl=$lt_lt_prog_compiler_wl
19779-
19780 # Additional compiler flags for building library objects.
19781 pic_flag=$lt_lt_prog_compiler_pic
19782
19783+# How to pass a linker flag through the compiler.
19784+wl=$lt_lt_prog_compiler_wl
19785+
19786 # Compiler flag to prevent dynamic linking.
19787 link_static_flag=$lt_lt_prog_compiler_static
19788
19789@@ -19205,9 +19912,6 @@ inherit_rpath=$inherit_rpath
19790 # Whether libtool must link a program against all its dependency libraries.
19791 link_all_deplibs=$link_all_deplibs
19792
19793-# Fix the shell variable \$srcfile for the compiler.
19794-fix_srcfile_path=$lt_fix_srcfile_path
19795-
19796 # Set to "yes" if exported symbols are required.
19797 always_export_symbols=$always_export_symbols
19798
19799@@ -19223,6 +19927,9 @@ include_expsyms=$lt_include_expsyms
19800 # Commands necessary for linking programs (against libraries) with templates.
19801 prelink_cmds=$lt_prelink_cmds
19802
19803+# Commands necessary for finishing linking programs.
19804+postlink_cmds=$lt_postlink_cmds
19805+
19806 # Specify filename containing input files.
19807 file_list_spec=$lt_file_list_spec
19808
19809@@ -19255,210 +19962,169 @@ ltmain="$ac_aux_dir/ltmain.sh"
19810 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19811 # text mode, it properly converts lines to CR/LF. This bash problem
19812 # is reportedly fixed, but why not run on old versions too?
19813- sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19814- || (rm -f "$cfgfile"; exit 1)
19815-
19816- case $xsi_shell in
19817- yes)
19818- cat << \_LT_EOF >> "$cfgfile"
19819-
19820-# func_dirname file append nondir_replacement
19821-# Compute the dirname of FILE. If nonempty, add APPEND to the result,
19822-# otherwise set result to NONDIR_REPLACEMENT.
19823-func_dirname ()
19824-{
19825- case ${1} in
19826- */*) func_dirname_result="${1%/*}${2}" ;;
19827- * ) func_dirname_result="${3}" ;;
19828- esac
19829-}
19830-
19831-# func_basename file
19832-func_basename ()
19833-{
19834- func_basename_result="${1##*/}"
19835-}
19836-
19837-# func_dirname_and_basename file append nondir_replacement
19838-# perform func_basename and func_dirname in a single function
19839-# call:
19840-# dirname: Compute the dirname of FILE. If nonempty,
19841-# add APPEND to the result, otherwise set result
19842-# to NONDIR_REPLACEMENT.
19843-# value returned in "$func_dirname_result"
19844-# basename: Compute filename of FILE.
19845-# value retuned in "$func_basename_result"
19846-# Implementation must be kept synchronized with func_dirname
19847-# and func_basename. For efficiency, we do not delegate to
19848-# those functions but instead duplicate the functionality here.
19849-func_dirname_and_basename ()
19850-{
19851- case ${1} in
19852- */*) func_dirname_result="${1%/*}${2}" ;;
19853- * ) func_dirname_result="${3}" ;;
19854- esac
19855- func_basename_result="${1##*/}"
19856-}
19857-
19858-# func_stripname prefix suffix name
19859-# strip PREFIX and SUFFIX off of NAME.
19860-# PREFIX and SUFFIX must not contain globbing or regex special
19861-# characters, hashes, percent signs, but SUFFIX may contain a leading
19862-# dot (in which case that matches only a dot).
19863-func_stripname ()
19864-{
19865- # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19866- # positional parameters, so assign one to ordinary parameter first.
19867- func_stripname_result=${3}
19868- func_stripname_result=${func_stripname_result#"${1}"}
19869- func_stripname_result=${func_stripname_result%"${2}"}
19870-}
19871-
19872-# func_opt_split
19873-func_opt_split ()
19874-{
19875- func_opt_split_opt=${1%%=*}
19876- func_opt_split_arg=${1#*=}
19877-}
19878-
19879-# func_lo2o object
19880-func_lo2o ()
19881-{
19882- case ${1} in
19883- *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19884- *) func_lo2o_result=${1} ;;
19885- esac
19886-}
19887-
19888-# func_xform libobj-or-source
19889-func_xform ()
19890-{
19891- func_xform_result=${1%.*}.lo
19892-}
19893-
19894-# func_arith arithmetic-term...
19895-func_arith ()
19896-{
19897- func_arith_result=$(( $* ))
19898-}
19899-
19900-# func_len string
19901-# STRING may not start with a hyphen.
19902-func_len ()
19903-{
19904- func_len_result=${#1}
19905-}
19906-
19907-_LT_EOF
19908- ;;
19909- *) # Bourne compatible functions.
19910- cat << \_LT_EOF >> "$cfgfile"
19911-
19912-# func_dirname file append nondir_replacement
19913-# Compute the dirname of FILE. If nonempty, add APPEND to the result,
19914-# otherwise set result to NONDIR_REPLACEMENT.
19915-func_dirname ()
19916-{
19917- # Extract subdirectory from the argument.
19918- func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
19919- if test "X$func_dirname_result" = "X${1}"; then
19920- func_dirname_result="${3}"
19921- else
19922- func_dirname_result="$func_dirname_result${2}"
19923- fi
19924-}
19925-
19926-# func_basename file
19927-func_basename ()
19928-{
19929- func_basename_result=`$ECHO "${1}" | $SED "$basename"`
19930-}
19931-
19932-
19933-# func_stripname prefix suffix name
19934-# strip PREFIX and SUFFIX off of NAME.
19935-# PREFIX and SUFFIX must not contain globbing or regex special
19936-# characters, hashes, percent signs, but SUFFIX may contain a leading
19937-# dot (in which case that matches only a dot).
19938-# func_strip_suffix prefix name
19939-func_stripname ()
19940-{
19941- case ${2} in
19942- .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
19943- *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
19944- esac
19945-}
19946-
19947-# sed scripts:
19948-my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19949-my_sed_long_arg='1s/^-[^=]*=//'
19950-
19951-# func_opt_split
19952-func_opt_split ()
19953-{
19954- func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
19955- func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
19956-}
19957-
19958-# func_lo2o object
19959-func_lo2o ()
19960-{
19961- func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
19962-}
19963-
19964-# func_xform libobj-or-source
19965-func_xform ()
19966-{
19967- func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
19968-}
19969-
19970-# func_arith arithmetic-term...
19971-func_arith ()
19972-{
19973- func_arith_result=`expr "$@"`
19974-}
19975-
19976-# func_len string
19977-# STRING may not start with a hyphen.
19978-func_len ()
19979-{
19980- func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19981-}
19982-
19983-_LT_EOF
19984-esac
19985-
19986-case $lt_shell_append in
19987- yes)
19988- cat << \_LT_EOF >> "$cfgfile"
19989-
19990-# func_append var value
19991-# Append VALUE to the end of shell variable VAR.
19992-func_append ()
19993-{
19994- eval "$1+=\$2"
19995-}
19996-_LT_EOF
19997- ;;
19998- *)
19999- cat << \_LT_EOF >> "$cfgfile"
20000-
20001-# func_append var value
20002-# Append VALUE to the end of shell variable VAR.
20003-func_append ()
20004-{
20005- eval "$1=\$$1\$2"
20006-}
20007-
20008-_LT_EOF
20009- ;;
20010- esac
20011-
20012-
20013- sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
20014- || (rm -f "$cfgfile"; exit 1)
20015-
20016- mv -f "$cfgfile" "$ofile" ||
20017+ sed '$q' "$ltmain" >> "$cfgfile" \
20018+ || (rm -f "$cfgfile"; exit 1)
20019+
20020+ if test x"$xsi_shell" = xyes; then
20021+ sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20022+func_dirname ()\
20023+{\
20024+\ case ${1} in\
20025+\ */*) func_dirname_result="${1%/*}${2}" ;;\
20026+\ * ) func_dirname_result="${3}" ;;\
20027+\ esac\
20028+} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20029+ && mv -f "$cfgfile.tmp" "$cfgfile" \
20030+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20031+test 0 -eq $? || _lt_function_replace_fail=:
20032+
20033+
20034+ sed -e '/^func_basename ()$/,/^} # func_basename /c\
20035+func_basename ()\
20036+{\
20037+\ func_basename_result="${1##*/}"\
20038+} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20039+ && mv -f "$cfgfile.tmp" "$cfgfile" \
20040+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20041+test 0 -eq $? || _lt_function_replace_fail=:
20042+
20043+
20044+ sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20045+func_dirname_and_basename ()\
20046+{\
20047+\ case ${1} in\
20048+\ */*) func_dirname_result="${1%/*}${2}" ;;\
20049+\ * ) func_dirname_result="${3}" ;;\
20050+\ esac\
20051+\ func_basename_result="${1##*/}"\
20052+} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20053+ && mv -f "$cfgfile.tmp" "$cfgfile" \
20054+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20055+test 0 -eq $? || _lt_function_replace_fail=:
20056+
20057+
20058+ sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20059+func_stripname ()\
20060+{\
20061+\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20062+\ # positional parameters, so assign one to ordinary parameter first.\
20063+\ func_stripname_result=${3}\
20064+\ func_stripname_result=${func_stripname_result#"${1}"}\
20065+\ func_stripname_result=${func_stripname_result%"${2}"}\
20066+} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20067+ && mv -f "$cfgfile.tmp" "$cfgfile" \
20068+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20069+test 0 -eq $? || _lt_function_replace_fail=:
20070+
20071+
20072+ sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20073+func_split_long_opt ()\
20074+{\
20075+\ func_split_long_opt_name=${1%%=*}\
20076+\ func_split_long_opt_arg=${1#*=}\
20077+} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20078+ && mv -f "$cfgfile.tmp" "$cfgfile" \
20079+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20080+test 0 -eq $? || _lt_function_replace_fail=:
20081+
20082+
20083+ sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20084+func_split_short_opt ()\
20085+{\
20086+\ func_split_short_opt_arg=${1#??}\
20087+\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20088+} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20089+ && mv -f "$cfgfile.tmp" "$cfgfile" \
20090+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20091+test 0 -eq $? || _lt_function_replace_fail=:
20092+
20093+
20094+ sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20095+func_lo2o ()\
20096+{\
20097+\ case ${1} in\
20098+\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20099+\ *) func_lo2o_result=${1} ;;\
20100+\ esac\
20101+} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20102+ && mv -f "$cfgfile.tmp" "$cfgfile" \
20103+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20104+test 0 -eq $? || _lt_function_replace_fail=:
20105+
20106+
20107+ sed -e '/^func_xform ()$/,/^} # func_xform /c\
20108+func_xform ()\
20109+{\
20110+ func_xform_result=${1%.*}.lo\
20111+} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20112+ && mv -f "$cfgfile.tmp" "$cfgfile" \
20113+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20114+test 0 -eq $? || _lt_function_replace_fail=:
20115+
20116+
20117+ sed -e '/^func_arith ()$/,/^} # func_arith /c\
20118+func_arith ()\
20119+{\
20120+ func_arith_result=$(( $* ))\
20121+} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20122+ && mv -f "$cfgfile.tmp" "$cfgfile" \
20123+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20124+test 0 -eq $? || _lt_function_replace_fail=:
20125+
20126+
20127+ sed -e '/^func_len ()$/,/^} # func_len /c\
20128+func_len ()\
20129+{\
20130+ func_len_result=${#1}\
20131+} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20132+ && mv -f "$cfgfile.tmp" "$cfgfile" \
20133+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20134+test 0 -eq $? || _lt_function_replace_fail=:
20135+
20136+fi
20137+
20138+if test x"$lt_shell_append" = xyes; then
20139+ sed -e '/^func_append ()$/,/^} # func_append /c\
20140+func_append ()\
20141+{\
20142+ eval "${1}+=\\${2}"\
20143+} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20144+ && mv -f "$cfgfile.tmp" "$cfgfile" \
20145+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20146+test 0 -eq $? || _lt_function_replace_fail=:
20147+
20148+
20149+ sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20150+func_append_quoted ()\
20151+{\
20152+\ func_quote_for_eval "${2}"\
20153+\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20154+} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20155+ && mv -f "$cfgfile.tmp" "$cfgfile" \
20156+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20157+test 0 -eq $? || _lt_function_replace_fail=:
20158+
20159+
20160+ # Save a `func_append' function call where possible by direct use of '+='
20161+ sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20162+ && mv -f "$cfgfile.tmp" "$cfgfile" \
20163+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20164+ test 0 -eq $? || _lt_function_replace_fail=:
20165+else
20166+ # Save a `func_append' function call even when '+=' is not available
20167+ sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20168+ && mv -f "$cfgfile.tmp" "$cfgfile" \
20169+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20170+ test 0 -eq $? || _lt_function_replace_fail=:
20171+fi
20172+
20173+if test x"$_lt_function_replace_fail" = x":"; then
20174+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20175+$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20176+fi
20177+
20178+
20179+ mv -f "$cfgfile" "$ofile" ||
20180 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20181 chmod +x "$ofile"
20182
20183diff --git a/libsframe/Makefile.in b/libsframe/Makefile.in
20184index 9e3d268902b..c22ed33460a 100644
20185--- a/libsframe/Makefile.in
20186+++ b/libsframe/Makefile.in
20187@@ -1,7 +1,7 @@
20188-# Makefile.in generated by automake 1.15.1 from Makefile.am.
20189+# Makefile.in generated by automake 1.16.5 from Makefile.am.
20190 # @configure_input@
20191
20192-# Copyright (C) 1994-2017 Free Software Foundation, Inc.
20193+# Copyright (C) 1994-2021 Free Software Foundation, Inc.
20194
20195 # This Makefile.in is free software; the Free Software Foundation
20196 # gives unlimited permission to copy and/or distribute it,
20197@@ -142,6 +142,13 @@ mkinstalldirs = $(SHELL) $(top_srcdir)/../mkinstalldirs
20198 CONFIG_HEADER = config.h
20199 CONFIG_CLEAN_FILES =
20200 CONFIG_CLEAN_VPATH_FILES =
20201+@HAVE_COMPAT_DEJAGNU_TRUE@am__EXEEXT_1 = testsuite/libsframe.decode/be-flipping$(EXEEXT) \
20202+@HAVE_COMPAT_DEJAGNU_TRUE@ testsuite/libsframe.decode/frecnt-1$(EXEEXT) \
20203+@HAVE_COMPAT_DEJAGNU_TRUE@ testsuite/libsframe.decode/frecnt-2$(EXEEXT) \
20204+@HAVE_COMPAT_DEJAGNU_TRUE@ testsuite/libsframe.encode/encode-1$(EXEEXT) \
20205+@HAVE_COMPAT_DEJAGNU_TRUE@ testsuite/libsframe.find/findfre-1$(EXEEXT) \
20206+@HAVE_COMPAT_DEJAGNU_TRUE@ testsuite/libsframe.find/findfunc-1$(EXEEXT) \
20207+@HAVE_COMPAT_DEJAGNU_TRUE@ testsuite/libsframe.find/plt-findfre-1$(EXEEXT)
20208 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
20209 am__vpath_adj = case $$p in \
20210 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
20211@@ -185,45 +192,44 @@ libsframe_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
20212 $(libsframe_la_LDFLAGS) $(LDFLAGS) -o $@
20213 @INSTALL_LIBBFD_FALSE@am_libsframe_la_rpath =
20214 @INSTALL_LIBBFD_TRUE@am_libsframe_la_rpath = -rpath $(libdir)
20215-@HAVE_COMPAT_DEJAGNU_TRUE@am__EXEEXT_1 = testsuite/libsframe.decode/be-flipping$(EXEEXT) \
20216-@HAVE_COMPAT_DEJAGNU_TRUE@ testsuite/libsframe.decode/frecnt-1$(EXEEXT) \
20217-@HAVE_COMPAT_DEJAGNU_TRUE@ testsuite/libsframe.decode/frecnt-2$(EXEEXT) \
20218-@HAVE_COMPAT_DEJAGNU_TRUE@ testsuite/libsframe.encode/encode-1$(EXEEXT) \
20219-@HAVE_COMPAT_DEJAGNU_TRUE@ testsuite/libsframe.find/findfre-1$(EXEEXT) \
20220-@HAVE_COMPAT_DEJAGNU_TRUE@ testsuite/libsframe.find/findfunc-1$(EXEEXT) \
20221-@HAVE_COMPAT_DEJAGNU_TRUE@ testsuite/libsframe.find/plt-findfre-1$(EXEEXT)
20222 am__dirstamp = $(am__leading_dot)dirstamp
20223-am_testsuite_libsframe_decode_be_flipping_OBJECTS = testsuite/libsframe.decode/testsuite_libsframe_decode_be_flipping-be-flipping.$(OBJEXT)
20224+am_testsuite_libsframe_decode_be_flipping_OBJECTS = \
20225+ testsuite/libsframe.decode/be_flipping-be-flipping.$(OBJEXT)
20226 testsuite_libsframe_decode_be_flipping_OBJECTS = \
20227 $(am_testsuite_libsframe_decode_be_flipping_OBJECTS)
20228 testsuite_libsframe_decode_be_flipping_DEPENDENCIES = \
20229 ${top_builddir}/libsframe.la
20230-am_testsuite_libsframe_decode_frecnt_1_OBJECTS = testsuite/libsframe.decode/testsuite_libsframe_decode_frecnt_1-frecnt-1.$(OBJEXT)
20231+am_testsuite_libsframe_decode_frecnt_1_OBJECTS = \
20232+ testsuite/libsframe.decode/frecnt_1-frecnt-1.$(OBJEXT)
20233 testsuite_libsframe_decode_frecnt_1_OBJECTS = \
20234 $(am_testsuite_libsframe_decode_frecnt_1_OBJECTS)
20235 testsuite_libsframe_decode_frecnt_1_DEPENDENCIES = \
20236 ${top_builddir}/libsframe.la
20237-am_testsuite_libsframe_decode_frecnt_2_OBJECTS = testsuite/libsframe.decode/testsuite_libsframe_decode_frecnt_2-frecnt-2.$(OBJEXT)
20238+am_testsuite_libsframe_decode_frecnt_2_OBJECTS = \
20239+ testsuite/libsframe.decode/frecnt_2-frecnt-2.$(OBJEXT)
20240 testsuite_libsframe_decode_frecnt_2_OBJECTS = \
20241 $(am_testsuite_libsframe_decode_frecnt_2_OBJECTS)
20242 testsuite_libsframe_decode_frecnt_2_DEPENDENCIES = \
20243 ${top_builddir}/libsframe.la
20244-am_testsuite_libsframe_encode_encode_1_OBJECTS = testsuite/libsframe.encode/testsuite_libsframe_encode_encode_1-encode-1.$(OBJEXT)
20245+am_testsuite_libsframe_encode_encode_1_OBJECTS = \
20246+ testsuite/libsframe.encode/encode_1-encode-1.$(OBJEXT)
20247 testsuite_libsframe_encode_encode_1_OBJECTS = \
20248 $(am_testsuite_libsframe_encode_encode_1_OBJECTS)
20249 testsuite_libsframe_encode_encode_1_DEPENDENCIES = \
20250 ${top_builddir}/libsframe.la
20251-am_testsuite_libsframe_find_findfre_1_OBJECTS = testsuite/libsframe.find/testsuite_libsframe_find_findfre_1-findfre-1.$(OBJEXT)
20252+am_testsuite_libsframe_find_findfre_1_OBJECTS = \
20253+ testsuite/libsframe.find/findfre_1-findfre-1.$(OBJEXT)
20254 testsuite_libsframe_find_findfre_1_OBJECTS = \
20255 $(am_testsuite_libsframe_find_findfre_1_OBJECTS)
20256 testsuite_libsframe_find_findfre_1_DEPENDENCIES = \
20257 ${top_builddir}/libsframe.la
20258-am_testsuite_libsframe_find_findfunc_1_OBJECTS = testsuite/libsframe.find/testsuite_libsframe_find_findfunc_1-findfunc-1.$(OBJEXT)
20259+am_testsuite_libsframe_find_findfunc_1_OBJECTS = \
20260+ testsuite/libsframe.find/findfunc_1-findfunc-1.$(OBJEXT)
20261 testsuite_libsframe_find_findfunc_1_OBJECTS = \
20262 $(am_testsuite_libsframe_find_findfunc_1_OBJECTS)
20263 testsuite_libsframe_find_findfunc_1_DEPENDENCIES = \
20264 ${top_builddir}/libsframe.la
20265-am_testsuite_libsframe_find_plt_findfre_1_OBJECTS = testsuite/libsframe.find/testsuite_libsframe_find_plt_findfre_1-plt-findfre-1.$(OBJEXT)
20266+am_testsuite_libsframe_find_plt_findfre_1_OBJECTS = testsuite/libsframe.find/plt_findfre_1-plt-findfre-1.$(OBJEXT)
20267 testsuite_libsframe_find_plt_findfre_1_OBJECTS = \
20268 $(am_testsuite_libsframe_find_plt_findfre_1_OBJECTS)
20269 testsuite_libsframe_find_plt_findfre_1_DEPENDENCIES = \
20270@@ -242,7 +248,17 @@ am__v_at_0 = @
20271 am__v_at_1 =
20272 DEFAULT_INCLUDES = -I.@am__isrc@
20273 depcomp = $(SHELL) $(top_srcdir)/../depcomp
20274-am__depfiles_maybe = depfiles
20275+am__maybe_remake_depfiles = depfiles
20276+am__depfiles_remade = ./$(DEPDIR)/libsframe_la-sframe-dump.Plo \
20277+ ./$(DEPDIR)/libsframe_la-sframe-error.Plo \
20278+ ./$(DEPDIR)/libsframe_la-sframe.Plo \
20279+ testsuite/libsframe.decode/$(DEPDIR)/be_flipping-be-flipping.Po \
20280+ testsuite/libsframe.decode/$(DEPDIR)/frecnt_1-frecnt-1.Po \
20281+ testsuite/libsframe.decode/$(DEPDIR)/frecnt_2-frecnt-2.Po \
20282+ testsuite/libsframe.encode/$(DEPDIR)/encode_1-encode-1.Po \
20283+ testsuite/libsframe.find/$(DEPDIR)/findfre_1-findfre-1.Po \
20284+ testsuite/libsframe.find/$(DEPDIR)/findfunc_1-findfunc-1.Po \
20285+ testsuite/libsframe.find/$(DEPDIR)/plt_findfre_1-plt-findfre-1.Po
20286 am__mv = mv -f
20287 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
20288 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
20289@@ -325,8 +341,8 @@ am__can_run_installinfo = \
20290 esac
20291 am__include_HEADERS_DIST = $(INCDIR)/sframe.h $(INCDIR)/sframe-api.h
20292 HEADERS = $(include_HEADERS)
20293-am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) \
20294- $(LISP)config.h.in
20295+am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) \
20296+ config.h.in
20297 # Read a list of newline-separated strings from the standard input,
20298 # and print each of them once, without duplicates. Input order is
20299 # *not* preserved.
20300@@ -343,9 +359,6 @@ am__define_uniq_tagged_files = \
20301 unique=`for i in $$list; do \
20302 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
20303 done | $(am__uniquify_input)`
20304-ETAGS = etags
20305-CTAGS = ctags
20306-CSCOPE = cscope
20307 AM_RECURSIVE_TARGETS = cscope
20308 DEJATOOL = $(PACKAGE)
20309 RUNTESTDEFAULTFLAGS = --tool $$tool --srcdir $$srcdir
20310@@ -372,6 +385,8 @@ am__post_remove_distdir = $(am__remove_distdir)
20311 DIST_ARCHIVES = $(distdir).tar.gz
20312 GZIP_ENV = --best
20313 DIST_TARGETS = dist-gzip
20314+# Exists only to be overridden by the user if desired.
20315+AM_DISTCHECK_DVI_TARGET = dvi
20316 distuninstallcheck_listfiles = find . -type f -print
20317 am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \
20318 | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$'
20319@@ -390,15 +405,19 @@ CFLAGS = @CFLAGS@
20320 COMPAT_DEJAGNU = @COMPAT_DEJAGNU@
20321 CPP = @CPP@
20322 CPPFLAGS = @CPPFLAGS@
20323+CSCOPE = @CSCOPE@
20324+CTAGS = @CTAGS@
20325 CYGPATH_W = @CYGPATH_W@
20326 DEFS = @DEFS@
20327 DEPDIR = @DEPDIR@
20328+DLLTOOL = @DLLTOOL@
20329 DSYMUTIL = @DSYMUTIL@
20330 DUMPBIN = @DUMPBIN@
20331 ECHO_C = @ECHO_C@
20332 ECHO_N = @ECHO_N@
20333 ECHO_T = @ECHO_T@
20334 EGREP = @EGREP@
20335+ETAGS = @ETAGS@
20336 EXEEXT = @EXEEXT@
20337 FGREP = @FGREP@
20338 GREP = @GREP@
20339@@ -417,6 +436,7 @@ LN_S = @LN_S@
20340 LTLIBOBJS = @LTLIBOBJS@
20341 MAINT = @MAINT@
20342 MAKEINFO = @MAKEINFO@
20343+MANIFEST_TOOL = @MANIFEST_TOOL@
20344 MKDIR_P = @MKDIR_P@
20345 NM = @NM@
20346 NMEDIT = @NMEDIT@
20347@@ -589,8 +609,8 @@ Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
20348 echo ' $(SHELL) ./config.status'; \
20349 $(SHELL) ./config.status;; \
20350 *) \
20351- echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
20352- cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
20353+ echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__maybe_remake_depfiles)'; \
20354+ cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__maybe_remake_depfiles);; \
20355 esac;
20356 $(srcdir)/doc/local.mk $(srcdir)/testsuite/local.mk $(srcdir)/testsuite/libsframe.decode/local.mk $(srcdir)/testsuite/libsframe.encode/local.mk $(srcdir)/testsuite/libsframe.find/local.mk $(am__empty):
20357
20358@@ -618,6 +638,15 @@ $(srcdir)/config.h.in: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
20359 distclean-hdr:
20360 -rm -f config.h stamp-h1
20361
20362+clean-checkPROGRAMS:
20363+ @list='$(check_PROGRAMS)'; test -n "$$list" || exit 0; \
20364+ echo " rm -f" $$list; \
20365+ rm -f $$list || exit $$?; \
20366+ test -n "$(EXEEXT)" || exit 0; \
20367+ list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
20368+ echo " rm -f" $$list; \
20369+ rm -f $$list
20370+
20371 install-libLTLIBRARIES: $(lib_LTLIBRARIES)
20372 @$(NORMAL_INSTALL)
20373 @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
20374@@ -666,36 +695,27 @@ clean-noinstLTLIBRARIES:
20375
20376 libsframe.la: $(libsframe_la_OBJECTS) $(libsframe_la_DEPENDENCIES) $(EXTRA_libsframe_la_DEPENDENCIES)
20377 $(AM_V_CCLD)$(libsframe_la_LINK) $(am_libsframe_la_rpath) $(libsframe_la_OBJECTS) $(libsframe_la_LIBADD) $(LIBS)
20378-
20379-clean-checkPROGRAMS:
20380- @list='$(check_PROGRAMS)'; test -n "$$list" || exit 0; \
20381- echo " rm -f" $$list; \
20382- rm -f $$list || exit $$?; \
20383- test -n "$(EXEEXT)" || exit 0; \
20384- list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
20385- echo " rm -f" $$list; \
20386- rm -f $$list
20387 testsuite/libsframe.decode/$(am__dirstamp):
20388 @$(MKDIR_P) testsuite/libsframe.decode
20389 @: > testsuite/libsframe.decode/$(am__dirstamp)
20390 testsuite/libsframe.decode/$(DEPDIR)/$(am__dirstamp):
20391 @$(MKDIR_P) testsuite/libsframe.decode/$(DEPDIR)
20392 @: > testsuite/libsframe.decode/$(DEPDIR)/$(am__dirstamp)
20393-testsuite/libsframe.decode/testsuite_libsframe_decode_be_flipping-be-flipping.$(OBJEXT): \
20394+testsuite/libsframe.decode/be_flipping-be-flipping.$(OBJEXT): \
20395 testsuite/libsframe.decode/$(am__dirstamp) \
20396 testsuite/libsframe.decode/$(DEPDIR)/$(am__dirstamp)
20397
20398 testsuite/libsframe.decode/be-flipping$(EXEEXT): $(testsuite_libsframe_decode_be_flipping_OBJECTS) $(testsuite_libsframe_decode_be_flipping_DEPENDENCIES) $(EXTRA_testsuite_libsframe_decode_be_flipping_DEPENDENCIES) testsuite/libsframe.decode/$(am__dirstamp)
20399 @rm -f testsuite/libsframe.decode/be-flipping$(EXEEXT)
20400 $(AM_V_CCLD)$(LINK) $(testsuite_libsframe_decode_be_flipping_OBJECTS) $(testsuite_libsframe_decode_be_flipping_LDADD) $(LIBS)
20401-testsuite/libsframe.decode/testsuite_libsframe_decode_frecnt_1-frecnt-1.$(OBJEXT): \
20402+testsuite/libsframe.decode/frecnt_1-frecnt-1.$(OBJEXT): \
20403 testsuite/libsframe.decode/$(am__dirstamp) \
20404 testsuite/libsframe.decode/$(DEPDIR)/$(am__dirstamp)
20405
20406 testsuite/libsframe.decode/frecnt-1$(EXEEXT): $(testsuite_libsframe_decode_frecnt_1_OBJECTS) $(testsuite_libsframe_decode_frecnt_1_DEPENDENCIES) $(EXTRA_testsuite_libsframe_decode_frecnt_1_DEPENDENCIES) testsuite/libsframe.decode/$(am__dirstamp)
20407 @rm -f testsuite/libsframe.decode/frecnt-1$(EXEEXT)
20408 $(AM_V_CCLD)$(LINK) $(testsuite_libsframe_decode_frecnt_1_OBJECTS) $(testsuite_libsframe_decode_frecnt_1_LDADD) $(LIBS)
20409-testsuite/libsframe.decode/testsuite_libsframe_decode_frecnt_2-frecnt-2.$(OBJEXT): \
20410+testsuite/libsframe.decode/frecnt_2-frecnt-2.$(OBJEXT): \
20411 testsuite/libsframe.decode/$(am__dirstamp) \
20412 testsuite/libsframe.decode/$(DEPDIR)/$(am__dirstamp)
20413
20414@@ -708,7 +728,7 @@ testsuite/libsframe.encode/$(am__dirstamp):
20415 testsuite/libsframe.encode/$(DEPDIR)/$(am__dirstamp):
20416 @$(MKDIR_P) testsuite/libsframe.encode/$(DEPDIR)
20417 @: > testsuite/libsframe.encode/$(DEPDIR)/$(am__dirstamp)
20418-testsuite/libsframe.encode/testsuite_libsframe_encode_encode_1-encode-1.$(OBJEXT): \
20419+testsuite/libsframe.encode/encode_1-encode-1.$(OBJEXT): \
20420 testsuite/libsframe.encode/$(am__dirstamp) \
20421 testsuite/libsframe.encode/$(DEPDIR)/$(am__dirstamp)
20422
20423@@ -721,21 +741,21 @@ testsuite/libsframe.find/$(am__dirstamp):
20424 testsuite/libsframe.find/$(DEPDIR)/$(am__dirstamp):
20425 @$(MKDIR_P) testsuite/libsframe.find/$(DEPDIR)
20426 @: > testsuite/libsframe.find/$(DEPDIR)/$(am__dirstamp)
20427-testsuite/libsframe.find/testsuite_libsframe_find_findfre_1-findfre-1.$(OBJEXT): \
20428+testsuite/libsframe.find/findfre_1-findfre-1.$(OBJEXT): \
20429 testsuite/libsframe.find/$(am__dirstamp) \
20430 testsuite/libsframe.find/$(DEPDIR)/$(am__dirstamp)
20431
20432 testsuite/libsframe.find/findfre-1$(EXEEXT): $(testsuite_libsframe_find_findfre_1_OBJECTS) $(testsuite_libsframe_find_findfre_1_DEPENDENCIES) $(EXTRA_testsuite_libsframe_find_findfre_1_DEPENDENCIES) testsuite/libsframe.find/$(am__dirstamp)
20433 @rm -f testsuite/libsframe.find/findfre-1$(EXEEXT)
20434 $(AM_V_CCLD)$(LINK) $(testsuite_libsframe_find_findfre_1_OBJECTS) $(testsuite_libsframe_find_findfre_1_LDADD) $(LIBS)
20435-testsuite/libsframe.find/testsuite_libsframe_find_findfunc_1-findfunc-1.$(OBJEXT): \
20436+testsuite/libsframe.find/findfunc_1-findfunc-1.$(OBJEXT): \
20437 testsuite/libsframe.find/$(am__dirstamp) \
20438 testsuite/libsframe.find/$(DEPDIR)/$(am__dirstamp)
20439
20440 testsuite/libsframe.find/findfunc-1$(EXEEXT): $(testsuite_libsframe_find_findfunc_1_OBJECTS) $(testsuite_libsframe_find_findfunc_1_DEPENDENCIES) $(EXTRA_testsuite_libsframe_find_findfunc_1_DEPENDENCIES) testsuite/libsframe.find/$(am__dirstamp)
20441 @rm -f testsuite/libsframe.find/findfunc-1$(EXEEXT)
20442 $(AM_V_CCLD)$(LINK) $(testsuite_libsframe_find_findfunc_1_OBJECTS) $(testsuite_libsframe_find_findfunc_1_LDADD) $(LIBS)
20443-testsuite/libsframe.find/testsuite_libsframe_find_plt_findfre_1-plt-findfre-1.$(OBJEXT): \
20444+testsuite/libsframe.find/plt_findfre_1-plt-findfre-1.$(OBJEXT): \
20445 testsuite/libsframe.find/$(am__dirstamp) \
20446 testsuite/libsframe.find/$(DEPDIR)/$(am__dirstamp)
20447
20448@@ -752,16 +772,22 @@ mostlyclean-compile:
20449 distclean-compile:
20450 -rm -f *.tab.c
20451
20452-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libsframe_la-sframe-dump.Plo@am__quote@
20453-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libsframe_la-sframe-error.Plo@am__quote@
20454-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libsframe_la-sframe.Plo@am__quote@
20455-@AMDEP_TRUE@@am__include@ @am__quote@testsuite/libsframe.decode/$(DEPDIR)/testsuite_libsframe_decode_be_flipping-be-flipping.Po@am__quote@
20456-@AMDEP_TRUE@@am__include@ @am__quote@testsuite/libsframe.decode/$(DEPDIR)/testsuite_libsframe_decode_frecnt_1-frecnt-1.Po@am__quote@
20457-@AMDEP_TRUE@@am__include@ @am__quote@testsuite/libsframe.decode/$(DEPDIR)/testsuite_libsframe_decode_frecnt_2-frecnt-2.Po@am__quote@
20458-@AMDEP_TRUE@@am__include@ @am__quote@testsuite/libsframe.encode/$(DEPDIR)/testsuite_libsframe_encode_encode_1-encode-1.Po@am__quote@
20459-@AMDEP_TRUE@@am__include@ @am__quote@testsuite/libsframe.find/$(DEPDIR)/testsuite_libsframe_find_findfre_1-findfre-1.Po@am__quote@
20460-@AMDEP_TRUE@@am__include@ @am__quote@testsuite/libsframe.find/$(DEPDIR)/testsuite_libsframe_find_findfunc_1-findfunc-1.Po@am__quote@
20461-@AMDEP_TRUE@@am__include@ @am__quote@testsuite/libsframe.find/$(DEPDIR)/testsuite_libsframe_find_plt_findfre_1-plt-findfre-1.Po@am__quote@
20462+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libsframe_la-sframe-dump.Plo@am__quote@ # am--include-marker
20463+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libsframe_la-sframe-error.Plo@am__quote@ # am--include-marker
20464+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libsframe_la-sframe.Plo@am__quote@ # am--include-marker
20465+@AMDEP_TRUE@@am__include@ @am__quote@testsuite/libsframe.decode/$(DEPDIR)/be_flipping-be-flipping.Po@am__quote@ # am--include-marker
20466+@AMDEP_TRUE@@am__include@ @am__quote@testsuite/libsframe.decode/$(DEPDIR)/frecnt_1-frecnt-1.Po@am__quote@ # am--include-marker
20467+@AMDEP_TRUE@@am__include@ @am__quote@testsuite/libsframe.decode/$(DEPDIR)/frecnt_2-frecnt-2.Po@am__quote@ # am--include-marker
20468+@AMDEP_TRUE@@am__include@ @am__quote@testsuite/libsframe.encode/$(DEPDIR)/encode_1-encode-1.Po@am__quote@ # am--include-marker
20469+@AMDEP_TRUE@@am__include@ @am__quote@testsuite/libsframe.find/$(DEPDIR)/findfre_1-findfre-1.Po@am__quote@ # am--include-marker
20470+@AMDEP_TRUE@@am__include@ @am__quote@testsuite/libsframe.find/$(DEPDIR)/findfunc_1-findfunc-1.Po@am__quote@ # am--include-marker
20471+@AMDEP_TRUE@@am__include@ @am__quote@testsuite/libsframe.find/$(DEPDIR)/plt_findfre_1-plt-findfre-1.Po@am__quote@ # am--include-marker
20472+
20473+$(am__depfiles_remade):
20474+ @$(MKDIR_P) $(@D)
20475+ @echo '# dummy' >$@-t && $(am__mv) $@-t $@
20476+
20477+am--depfiles: $(am__depfiles_remade)
20478
20479 .c.o:
20480 @am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\
20481@@ -808,103 +834,103 @@ libsframe_la-sframe-error.lo: sframe-error.c
20482 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
20483 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libsframe_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libsframe_la-sframe-error.lo `test -f 'sframe-error.c' || echo '$(srcdir)/'`sframe-error.c
20484
20485-testsuite/libsframe.decode/testsuite_libsframe_decode_be_flipping-be-flipping.o: testsuite/libsframe.decode/be-flipping.c
20486-@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(testsuite_libsframe_decode_be_flipping_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT testsuite/libsframe.decode/testsuite_libsframe_decode_be_flipping-be-flipping.o -MD -MP -MF testsuite/libsframe.decode/$(DEPDIR)/testsuite_libsframe_decode_be_flipping-be-flipping.Tpo -c -o testsuite/libsframe.decode/testsuite_libsframe_decode_be_flipping-be-flipping.o `test -f 'testsuite/libsframe.decode/be-flipping.c' || echo '$(srcdir)/'`testsuite/libsframe.decode/be-flipping.c
20487-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) testsuite/libsframe.decode/$(DEPDIR)/testsuite_libsframe_decode_be_flipping-be-flipping.Tpo testsuite/libsframe.decode/$(DEPDIR)/testsuite_libsframe_decode_be_flipping-be-flipping.Po
20488-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='testsuite/libsframe.decode/be-flipping.c' object='testsuite/libsframe.decode/testsuite_libsframe_decode_be_flipping-be-flipping.o' libtool=no @AMDEPBACKSLASH@
20489+testsuite/libsframe.decode/be_flipping-be-flipping.o: testsuite/libsframe.decode/be-flipping.c
20490+@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(testsuite_libsframe_decode_be_flipping_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT testsuite/libsframe.decode/be_flipping-be-flipping.o -MD -MP -MF testsuite/libsframe.decode/$(DEPDIR)/be_flipping-be-flipping.Tpo -c -o testsuite/libsframe.decode/be_flipping-be-flipping.o `test -f 'testsuite/libsframe.decode/be-flipping.c' || echo '$(srcdir)/'`testsuite/libsframe.decode/be-flipping.c
20491+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) testsuite/libsframe.decode/$(DEPDIR)/be_flipping-be-flipping.Tpo testsuite/libsframe.decode/$(DEPDIR)/be_flipping-be-flipping.Po
20492+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='testsuite/libsframe.decode/be-flipping.c' object='testsuite/libsframe.decode/be_flipping-be-flipping.o' libtool=no @AMDEPBACKSLASH@
20493 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
20494-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(testsuite_libsframe_decode_be_flipping_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o testsuite/libsframe.decode/testsuite_libsframe_decode_be_flipping-be-flipping.o `test -f 'testsuite/libsframe.decode/be-flipping.c' || echo '$(srcdir)/'`testsuite/libsframe.decode/be-flipping.c
20495+@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(testsuite_libsframe_decode_be_flipping_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o testsuite/libsframe.decode/be_flipping-be-flipping.o `test -f 'testsuite/libsframe.decode/be-flipping.c' || echo '$(srcdir)/'`testsuite/libsframe.decode/be-flipping.c
20496
20497-testsuite/libsframe.decode/testsuite_libsframe_decode_be_flipping-be-flipping.obj: testsuite/libsframe.decode/be-flipping.c
20498-@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(testsuite_libsframe_decode_be_flipping_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT testsuite/libsframe.decode/testsuite_libsframe_decode_be_flipping-be-flipping.obj -MD -MP -MF testsuite/libsframe.decode/$(DEPDIR)/testsuite_libsframe_decode_be_flipping-be-flipping.Tpo -c -o testsuite/libsframe.decode/testsuite_libsframe_decode_be_flipping-be-flipping.obj `if test -f 'testsuite/libsframe.decode/be-flipping.c'; then $(CYGPATH_W) 'testsuite/libsframe.decode/be-flipping.c'; else $(CYGPATH_W) '$(srcdir)/testsuite/libsframe.decode/be-flipping.c'; fi`
20499-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) testsuite/libsframe.decode/$(DEPDIR)/testsuite_libsframe_decode_be_flipping-be-flipping.Tpo testsuite/libsframe.decode/$(DEPDIR)/testsuite_libsframe_decode_be_flipping-be-flipping.Po
20500-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='testsuite/libsframe.decode/be-flipping.c' object='testsuite/libsframe.decode/testsuite_libsframe_decode_be_flipping-be-flipping.obj' libtool=no @AMDEPBACKSLASH@
20501+testsuite/libsframe.decode/be_flipping-be-flipping.obj: testsuite/libsframe.decode/be-flipping.c
20502+@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(testsuite_libsframe_decode_be_flipping_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT testsuite/libsframe.decode/be_flipping-be-flipping.obj -MD -MP -MF testsuite/libsframe.decode/$(DEPDIR)/be_flipping-be-flipping.Tpo -c -o testsuite/libsframe.decode/be_flipping-be-flipping.obj `if test -f 'testsuite/libsframe.decode/be-flipping.c'; then $(CYGPATH_W) 'testsuite/libsframe.decode/be-flipping.c'; else $(CYGPATH_W) '$(srcdir)/testsuite/libsframe.decode/be-flipping.c'; fi`
20503+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) testsuite/libsframe.decode/$(DEPDIR)/be_flipping-be-flipping.Tpo testsuite/libsframe.decode/$(DEPDIR)/be_flipping-be-flipping.Po
20504+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='testsuite/libsframe.decode/be-flipping.c' object='testsuite/libsframe.decode/be_flipping-be-flipping.obj' libtool=no @AMDEPBACKSLASH@
20505 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
20506-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(testsuite_libsframe_decode_be_flipping_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o testsuite/libsframe.decode/testsuite_libsframe_decode_be_flipping-be-flipping.obj `if test -f 'testsuite/libsframe.decode/be-flipping.c'; then $(CYGPATH_W) 'testsuite/libsframe.decode/be-flipping.c'; else $(CYGPATH_W) '$(srcdir)/testsuite/libsframe.decode/be-flipping.c'; fi`
20507+@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(testsuite_libsframe_decode_be_flipping_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o testsuite/libsframe.decode/be_flipping-be-flipping.obj `if test -f 'testsuite/libsframe.decode/be-flipping.c'; then $(CYGPATH_W) 'testsuite/libsframe.decode/be-flipping.c'; else $(CYGPATH_W) '$(srcdir)/testsuite/libsframe.decode/be-flipping.c'; fi`
20508
20509-testsuite/libsframe.decode/testsuite_libsframe_decode_frecnt_1-frecnt-1.o: testsuite/libsframe.decode/frecnt-1.c
20510-@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(testsuite_libsframe_decode_frecnt_1_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT testsuite/libsframe.decode/testsuite_libsframe_decode_frecnt_1-frecnt-1.o -MD -MP -MF testsuite/libsframe.decode/$(DEPDIR)/testsuite_libsframe_decode_frecnt_1-frecnt-1.Tpo -c -o testsuite/libsframe.decode/testsuite_libsframe_decode_frecnt_1-frecnt-1.o `test -f 'testsuite/libsframe.decode/frecnt-1.c' || echo '$(srcdir)/'`testsuite/libsframe.decode/frecnt-1.c
20511-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) testsuite/libsframe.decode/$(DEPDIR)/testsuite_libsframe_decode_frecnt_1-frecnt-1.Tpo testsuite/libsframe.decode/$(DEPDIR)/testsuite_libsframe_decode_frecnt_1-frecnt-1.Po
20512-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='testsuite/libsframe.decode/frecnt-1.c' object='testsuite/libsframe.decode/testsuite_libsframe_decode_frecnt_1-frecnt-1.o' libtool=no @AMDEPBACKSLASH@
20513+testsuite/libsframe.decode/frecnt_1-frecnt-1.o: testsuite/libsframe.decode/frecnt-1.c
20514+@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(testsuite_libsframe_decode_frecnt_1_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT testsuite/libsframe.decode/frecnt_1-frecnt-1.o -MD -MP -MF testsuite/libsframe.decode/$(DEPDIR)/frecnt_1-frecnt-1.Tpo -c -o testsuite/libsframe.decode/frecnt_1-frecnt-1.o `test -f 'testsuite/libsframe.decode/frecnt-1.c' || echo '$(srcdir)/'`testsuite/libsframe.decode/frecnt-1.c
20515+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) testsuite/libsframe.decode/$(DEPDIR)/frecnt_1-frecnt-1.Tpo testsuite/libsframe.decode/$(DEPDIR)/frecnt_1-frecnt-1.Po
20516+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='testsuite/libsframe.decode/frecnt-1.c' object='testsuite/libsframe.decode/frecnt_1-frecnt-1.o' libtool=no @AMDEPBACKSLASH@
20517 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
20518-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(testsuite_libsframe_decode_frecnt_1_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o testsuite/libsframe.decode/testsuite_libsframe_decode_frecnt_1-frecnt-1.o `test -f 'testsuite/libsframe.decode/frecnt-1.c' || echo '$(srcdir)/'`testsuite/libsframe.decode/frecnt-1.c
20519+@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(testsuite_libsframe_decode_frecnt_1_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o testsuite/libsframe.decode/frecnt_1-frecnt-1.o `test -f 'testsuite/libsframe.decode/frecnt-1.c' || echo '$(srcdir)/'`testsuite/libsframe.decode/frecnt-1.c
20520
20521-testsuite/libsframe.decode/testsuite_libsframe_decode_frecnt_1-frecnt-1.obj: testsuite/libsframe.decode/frecnt-1.c
20522-@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(testsuite_libsframe_decode_frecnt_1_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT testsuite/libsframe.decode/testsuite_libsframe_decode_frecnt_1-frecnt-1.obj -MD -MP -MF testsuite/libsframe.decode/$(DEPDIR)/testsuite_libsframe_decode_frecnt_1-frecnt-1.Tpo -c -o testsuite/libsframe.decode/testsuite_libsframe_decode_frecnt_1-frecnt-1.obj `if test -f 'testsuite/libsframe.decode/frecnt-1.c'; then $(CYGPATH_W) 'testsuite/libsframe.decode/frecnt-1.c'; else $(CYGPATH_W) '$(srcdir)/testsuite/libsframe.decode/frecnt-1.c'; fi`
20523-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) testsuite/libsframe.decode/$(DEPDIR)/testsuite_libsframe_decode_frecnt_1-frecnt-1.Tpo testsuite/libsframe.decode/$(DEPDIR)/testsuite_libsframe_decode_frecnt_1-frecnt-1.Po
20524-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='testsuite/libsframe.decode/frecnt-1.c' object='testsuite/libsframe.decode/testsuite_libsframe_decode_frecnt_1-frecnt-1.obj' libtool=no @AMDEPBACKSLASH@
20525+testsuite/libsframe.decode/frecnt_1-frecnt-1.obj: testsuite/libsframe.decode/frecnt-1.c
20526+@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(testsuite_libsframe_decode_frecnt_1_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT testsuite/libsframe.decode/frecnt_1-frecnt-1.obj -MD -MP -MF testsuite/libsframe.decode/$(DEPDIR)/frecnt_1-frecnt-1.Tpo -c -o testsuite/libsframe.decode/frecnt_1-frecnt-1.obj `if test -f 'testsuite/libsframe.decode/frecnt-1.c'; then $(CYGPATH_W) 'testsuite/libsframe.decode/frecnt-1.c'; else $(CYGPATH_W) '$(srcdir)/testsuite/libsframe.decode/frecnt-1.c'; fi`
20527+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) testsuite/libsframe.decode/$(DEPDIR)/frecnt_1-frecnt-1.Tpo testsuite/libsframe.decode/$(DEPDIR)/frecnt_1-frecnt-1.Po
20528+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='testsuite/libsframe.decode/frecnt-1.c' object='testsuite/libsframe.decode/frecnt_1-frecnt-1.obj' libtool=no @AMDEPBACKSLASH@
20529 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
20530-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(testsuite_libsframe_decode_frecnt_1_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o testsuite/libsframe.decode/testsuite_libsframe_decode_frecnt_1-frecnt-1.obj `if test -f 'testsuite/libsframe.decode/frecnt-1.c'; then $(CYGPATH_W) 'testsuite/libsframe.decode/frecnt-1.c'; else $(CYGPATH_W) '$(srcdir)/testsuite/libsframe.decode/frecnt-1.c'; fi`
20531+@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(testsuite_libsframe_decode_frecnt_1_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o testsuite/libsframe.decode/frecnt_1-frecnt-1.obj `if test -f 'testsuite/libsframe.decode/frecnt-1.c'; then $(CYGPATH_W) 'testsuite/libsframe.decode/frecnt-1.c'; else $(CYGPATH_W) '$(srcdir)/testsuite/libsframe.decode/frecnt-1.c'; fi`
20532
20533-testsuite/libsframe.decode/testsuite_libsframe_decode_frecnt_2-frecnt-2.o: testsuite/libsframe.decode/frecnt-2.c
20534-@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(testsuite_libsframe_decode_frecnt_2_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT testsuite/libsframe.decode/testsuite_libsframe_decode_frecnt_2-frecnt-2.o -MD -MP -MF testsuite/libsframe.decode/$(DEPDIR)/testsuite_libsframe_decode_frecnt_2-frecnt-2.Tpo -c -o testsuite/libsframe.decode/testsuite_libsframe_decode_frecnt_2-frecnt-2.o `test -f 'testsuite/libsframe.decode/frecnt-2.c' || echo '$(srcdir)/'`testsuite/libsframe.decode/frecnt-2.c
20535-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) testsuite/libsframe.decode/$(DEPDIR)/testsuite_libsframe_decode_frecnt_2-frecnt-2.Tpo testsuite/libsframe.decode/$(DEPDIR)/testsuite_libsframe_decode_frecnt_2-frecnt-2.Po
20536-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='testsuite/libsframe.decode/frecnt-2.c' object='testsuite/libsframe.decode/testsuite_libsframe_decode_frecnt_2-frecnt-2.o' libtool=no @AMDEPBACKSLASH@
20537+testsuite/libsframe.decode/frecnt_2-frecnt-2.o: testsuite/libsframe.decode/frecnt-2.c
20538+@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(testsuite_libsframe_decode_frecnt_2_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT testsuite/libsframe.decode/frecnt_2-frecnt-2.o -MD -MP -MF testsuite/libsframe.decode/$(DEPDIR)/frecnt_2-frecnt-2.Tpo -c -o testsuite/libsframe.decode/frecnt_2-frecnt-2.o `test -f 'testsuite/libsframe.decode/frecnt-2.c' || echo '$(srcdir)/'`testsuite/libsframe.decode/frecnt-2.c
20539+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) testsuite/libsframe.decode/$(DEPDIR)/frecnt_2-frecnt-2.Tpo testsuite/libsframe.decode/$(DEPDIR)/frecnt_2-frecnt-2.Po
20540+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='testsuite/libsframe.decode/frecnt-2.c' object='testsuite/libsframe.decode/frecnt_2-frecnt-2.o' libtool=no @AMDEPBACKSLASH@
20541 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
20542-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(testsuite_libsframe_decode_frecnt_2_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o testsuite/libsframe.decode/testsuite_libsframe_decode_frecnt_2-frecnt-2.o `test -f 'testsuite/libsframe.decode/frecnt-2.c' || echo '$(srcdir)/'`testsuite/libsframe.decode/frecnt-2.c
20543+@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(testsuite_libsframe_decode_frecnt_2_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o testsuite/libsframe.decode/frecnt_2-frecnt-2.o `test -f 'testsuite/libsframe.decode/frecnt-2.c' || echo '$(srcdir)/'`testsuite/libsframe.decode/frecnt-2.c
20544
20545-testsuite/libsframe.decode/testsuite_libsframe_decode_frecnt_2-frecnt-2.obj: testsuite/libsframe.decode/frecnt-2.c
20546-@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(testsuite_libsframe_decode_frecnt_2_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT testsuite/libsframe.decode/testsuite_libsframe_decode_frecnt_2-frecnt-2.obj -MD -MP -MF testsuite/libsframe.decode/$(DEPDIR)/testsuite_libsframe_decode_frecnt_2-frecnt-2.Tpo -c -o testsuite/libsframe.decode/testsuite_libsframe_decode_frecnt_2-frecnt-2.obj `if test -f 'testsuite/libsframe.decode/frecnt-2.c'; then $(CYGPATH_W) 'testsuite/libsframe.decode/frecnt-2.c'; else $(CYGPATH_W) '$(srcdir)/testsuite/libsframe.decode/frecnt-2.c'; fi`
20547-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) testsuite/libsframe.decode/$(DEPDIR)/testsuite_libsframe_decode_frecnt_2-frecnt-2.Tpo testsuite/libsframe.decode/$(DEPDIR)/testsuite_libsframe_decode_frecnt_2-frecnt-2.Po
20548-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='testsuite/libsframe.decode/frecnt-2.c' object='testsuite/libsframe.decode/testsuite_libsframe_decode_frecnt_2-frecnt-2.obj' libtool=no @AMDEPBACKSLASH@
20549+testsuite/libsframe.decode/frecnt_2-frecnt-2.obj: testsuite/libsframe.decode/frecnt-2.c
20550+@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(testsuite_libsframe_decode_frecnt_2_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT testsuite/libsframe.decode/frecnt_2-frecnt-2.obj -MD -MP -MF testsuite/libsframe.decode/$(DEPDIR)/frecnt_2-frecnt-2.Tpo -c -o testsuite/libsframe.decode/frecnt_2-frecnt-2.obj `if test -f 'testsuite/libsframe.decode/frecnt-2.c'; then $(CYGPATH_W) 'testsuite/libsframe.decode/frecnt-2.c'; else $(CYGPATH_W) '$(srcdir)/testsuite/libsframe.decode/frecnt-2.c'; fi`
20551+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) testsuite/libsframe.decode/$(DEPDIR)/frecnt_2-frecnt-2.Tpo testsuite/libsframe.decode/$(DEPDIR)/frecnt_2-frecnt-2.Po
20552+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='testsuite/libsframe.decode/frecnt-2.c' object='testsuite/libsframe.decode/frecnt_2-frecnt-2.obj' libtool=no @AMDEPBACKSLASH@
20553 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
20554-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(testsuite_libsframe_decode_frecnt_2_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o testsuite/libsframe.decode/testsuite_libsframe_decode_frecnt_2-frecnt-2.obj `if test -f 'testsuite/libsframe.decode/frecnt-2.c'; then $(CYGPATH_W) 'testsuite/libsframe.decode/frecnt-2.c'; else $(CYGPATH_W) '$(srcdir)/testsuite/libsframe.decode/frecnt-2.c'; fi`
20555+@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(testsuite_libsframe_decode_frecnt_2_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o testsuite/libsframe.decode/frecnt_2-frecnt-2.obj `if test -f 'testsuite/libsframe.decode/frecnt-2.c'; then $(CYGPATH_W) 'testsuite/libsframe.decode/frecnt-2.c'; else $(CYGPATH_W) '$(srcdir)/testsuite/libsframe.decode/frecnt-2.c'; fi`
20556
20557-testsuite/libsframe.encode/testsuite_libsframe_encode_encode_1-encode-1.o: testsuite/libsframe.encode/encode-1.c
20558-@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(testsuite_libsframe_encode_encode_1_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT testsuite/libsframe.encode/testsuite_libsframe_encode_encode_1-encode-1.o -MD -MP -MF testsuite/libsframe.encode/$(DEPDIR)/testsuite_libsframe_encode_encode_1-encode-1.Tpo -c -o testsuite/libsframe.encode/testsuite_libsframe_encode_encode_1-encode-1.o `test -f 'testsuite/libsframe.encode/encode-1.c' || echo '$(srcdir)/'`testsuite/libsframe.encode/encode-1.c
20559-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) testsuite/libsframe.encode/$(DEPDIR)/testsuite_libsframe_encode_encode_1-encode-1.Tpo testsuite/libsframe.encode/$(DEPDIR)/testsuite_libsframe_encode_encode_1-encode-1.Po
20560-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='testsuite/libsframe.encode/encode-1.c' object='testsuite/libsframe.encode/testsuite_libsframe_encode_encode_1-encode-1.o' libtool=no @AMDEPBACKSLASH@
20561+testsuite/libsframe.encode/encode_1-encode-1.o: testsuite/libsframe.encode/encode-1.c
20562+@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(testsuite_libsframe_encode_encode_1_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT testsuite/libsframe.encode/encode_1-encode-1.o -MD -MP -MF testsuite/libsframe.encode/$(DEPDIR)/encode_1-encode-1.Tpo -c -o testsuite/libsframe.encode/encode_1-encode-1.o `test -f 'testsuite/libsframe.encode/encode-1.c' || echo '$(srcdir)/'`testsuite/libsframe.encode/encode-1.c
20563+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) testsuite/libsframe.encode/$(DEPDIR)/encode_1-encode-1.Tpo testsuite/libsframe.encode/$(DEPDIR)/encode_1-encode-1.Po
20564+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='testsuite/libsframe.encode/encode-1.c' object='testsuite/libsframe.encode/encode_1-encode-1.o' libtool=no @AMDEPBACKSLASH@
20565 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
20566-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(testsuite_libsframe_encode_encode_1_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o testsuite/libsframe.encode/testsuite_libsframe_encode_encode_1-encode-1.o `test -f 'testsuite/libsframe.encode/encode-1.c' || echo '$(srcdir)/'`testsuite/libsframe.encode/encode-1.c
20567+@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(testsuite_libsframe_encode_encode_1_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o testsuite/libsframe.encode/encode_1-encode-1.o `test -f 'testsuite/libsframe.encode/encode-1.c' || echo '$(srcdir)/'`testsuite/libsframe.encode/encode-1.c
20568
20569-testsuite/libsframe.encode/testsuite_libsframe_encode_encode_1-encode-1.obj: testsuite/libsframe.encode/encode-1.c
20570-@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(testsuite_libsframe_encode_encode_1_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT testsuite/libsframe.encode/testsuite_libsframe_encode_encode_1-encode-1.obj -MD -MP -MF testsuite/libsframe.encode/$(DEPDIR)/testsuite_libsframe_encode_encode_1-encode-1.Tpo -c -o testsuite/libsframe.encode/testsuite_libsframe_encode_encode_1-encode-1.obj `if test -f 'testsuite/libsframe.encode/encode-1.c'; then $(CYGPATH_W) 'testsuite/libsframe.encode/encode-1.c'; else $(CYGPATH_W) '$(srcdir)/testsuite/libsframe.encode/encode-1.c'; fi`
20571-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) testsuite/libsframe.encode/$(DEPDIR)/testsuite_libsframe_encode_encode_1-encode-1.Tpo testsuite/libsframe.encode/$(DEPDIR)/testsuite_libsframe_encode_encode_1-encode-1.Po
20572-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='testsuite/libsframe.encode/encode-1.c' object='testsuite/libsframe.encode/testsuite_libsframe_encode_encode_1-encode-1.obj' libtool=no @AMDEPBACKSLASH@
20573+testsuite/libsframe.encode/encode_1-encode-1.obj: testsuite/libsframe.encode/encode-1.c
20574+@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(testsuite_libsframe_encode_encode_1_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT testsuite/libsframe.encode/encode_1-encode-1.obj -MD -MP -MF testsuite/libsframe.encode/$(DEPDIR)/encode_1-encode-1.Tpo -c -o testsuite/libsframe.encode/encode_1-encode-1.obj `if test -f 'testsuite/libsframe.encode/encode-1.c'; then $(CYGPATH_W) 'testsuite/libsframe.encode/encode-1.c'; else $(CYGPATH_W) '$(srcdir)/testsuite/libsframe.encode/encode-1.c'; fi`
20575+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) testsuite/libsframe.encode/$(DEPDIR)/encode_1-encode-1.Tpo testsuite/libsframe.encode/$(DEPDIR)/encode_1-encode-1.Po
20576+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='testsuite/libsframe.encode/encode-1.c' object='testsuite/libsframe.encode/encode_1-encode-1.obj' libtool=no @AMDEPBACKSLASH@
20577 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
20578-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(testsuite_libsframe_encode_encode_1_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o testsuite/libsframe.encode/testsuite_libsframe_encode_encode_1-encode-1.obj `if test -f 'testsuite/libsframe.encode/encode-1.c'; then $(CYGPATH_W) 'testsuite/libsframe.encode/encode-1.c'; else $(CYGPATH_W) '$(srcdir)/testsuite/libsframe.encode/encode-1.c'; fi`
20579+@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(testsuite_libsframe_encode_encode_1_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o testsuite/libsframe.encode/encode_1-encode-1.obj `if test -f 'testsuite/libsframe.encode/encode-1.c'; then $(CYGPATH_W) 'testsuite/libsframe.encode/encode-1.c'; else $(CYGPATH_W) '$(srcdir)/testsuite/libsframe.encode/encode-1.c'; fi`
20580
20581-testsuite/libsframe.find/testsuite_libsframe_find_findfre_1-findfre-1.o: testsuite/libsframe.find/findfre-1.c
20582-@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(testsuite_libsframe_find_findfre_1_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT testsuite/libsframe.find/testsuite_libsframe_find_findfre_1-findfre-1.o -MD -MP -MF testsuite/libsframe.find/$(DEPDIR)/testsuite_libsframe_find_findfre_1-findfre-1.Tpo -c -o testsuite/libsframe.find/testsuite_libsframe_find_findfre_1-findfre-1.o `test -f 'testsuite/libsframe.find/findfre-1.c' || echo '$(srcdir)/'`testsuite/libsframe.find/findfre-1.c
20583-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) testsuite/libsframe.find/$(DEPDIR)/testsuite_libsframe_find_findfre_1-findfre-1.Tpo testsuite/libsframe.find/$(DEPDIR)/testsuite_libsframe_find_findfre_1-findfre-1.Po
20584-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='testsuite/libsframe.find/findfre-1.c' object='testsuite/libsframe.find/testsuite_libsframe_find_findfre_1-findfre-1.o' libtool=no @AMDEPBACKSLASH@
20585+testsuite/libsframe.find/findfre_1-findfre-1.o: testsuite/libsframe.find/findfre-1.c
20586+@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(testsuite_libsframe_find_findfre_1_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT testsuite/libsframe.find/findfre_1-findfre-1.o -MD -MP -MF testsuite/libsframe.find/$(DEPDIR)/findfre_1-findfre-1.Tpo -c -o testsuite/libsframe.find/findfre_1-findfre-1.o `test -f 'testsuite/libsframe.find/findfre-1.c' || echo '$(srcdir)/'`testsuite/libsframe.find/findfre-1.c
20587+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) testsuite/libsframe.find/$(DEPDIR)/findfre_1-findfre-1.Tpo testsuite/libsframe.find/$(DEPDIR)/findfre_1-findfre-1.Po
20588+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='testsuite/libsframe.find/findfre-1.c' object='testsuite/libsframe.find/findfre_1-findfre-1.o' libtool=no @AMDEPBACKSLASH@
20589 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
20590-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(testsuite_libsframe_find_findfre_1_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o testsuite/libsframe.find/testsuite_libsframe_find_findfre_1-findfre-1.o `test -f 'testsuite/libsframe.find/findfre-1.c' || echo '$(srcdir)/'`testsuite/libsframe.find/findfre-1.c
20591+@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(testsuite_libsframe_find_findfre_1_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o testsuite/libsframe.find/findfre_1-findfre-1.o `test -f 'testsuite/libsframe.find/findfre-1.c' || echo '$(srcdir)/'`testsuite/libsframe.find/findfre-1.c
20592
20593-testsuite/libsframe.find/testsuite_libsframe_find_findfre_1-findfre-1.obj: testsuite/libsframe.find/findfre-1.c
20594-@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(testsuite_libsframe_find_findfre_1_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT testsuite/libsframe.find/testsuite_libsframe_find_findfre_1-findfre-1.obj -MD -MP -MF testsuite/libsframe.find/$(DEPDIR)/testsuite_libsframe_find_findfre_1-findfre-1.Tpo -c -o testsuite/libsframe.find/testsuite_libsframe_find_findfre_1-findfre-1.obj `if test -f 'testsuite/libsframe.find/findfre-1.c'; then $(CYGPATH_W) 'testsuite/libsframe.find/findfre-1.c'; else $(CYGPATH_W) '$(srcdir)/testsuite/libsframe.find/findfre-1.c'; fi`
20595-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) testsuite/libsframe.find/$(DEPDIR)/testsuite_libsframe_find_findfre_1-findfre-1.Tpo testsuite/libsframe.find/$(DEPDIR)/testsuite_libsframe_find_findfre_1-findfre-1.Po
20596-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='testsuite/libsframe.find/findfre-1.c' object='testsuite/libsframe.find/testsuite_libsframe_find_findfre_1-findfre-1.obj' libtool=no @AMDEPBACKSLASH@
20597+testsuite/libsframe.find/findfre_1-findfre-1.obj: testsuite/libsframe.find/findfre-1.c
20598+@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(testsuite_libsframe_find_findfre_1_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT testsuite/libsframe.find/findfre_1-findfre-1.obj -MD -MP -MF testsuite/libsframe.find/$(DEPDIR)/findfre_1-findfre-1.Tpo -c -o testsuite/libsframe.find/findfre_1-findfre-1.obj `if test -f 'testsuite/libsframe.find/findfre-1.c'; then $(CYGPATH_W) 'testsuite/libsframe.find/findfre-1.c'; else $(CYGPATH_W) '$(srcdir)/testsuite/libsframe.find/findfre-1.c'; fi`
20599+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) testsuite/libsframe.find/$(DEPDIR)/findfre_1-findfre-1.Tpo testsuite/libsframe.find/$(DEPDIR)/findfre_1-findfre-1.Po
20600+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='testsuite/libsframe.find/findfre-1.c' object='testsuite/libsframe.find/findfre_1-findfre-1.obj' libtool=no @AMDEPBACKSLASH@
20601 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
20602-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(testsuite_libsframe_find_findfre_1_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o testsuite/libsframe.find/testsuite_libsframe_find_findfre_1-findfre-1.obj `if test -f 'testsuite/libsframe.find/findfre-1.c'; then $(CYGPATH_W) 'testsuite/libsframe.find/findfre-1.c'; else $(CYGPATH_W) '$(srcdir)/testsuite/libsframe.find/findfre-1.c'; fi`
20603+@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(testsuite_libsframe_find_findfre_1_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o testsuite/libsframe.find/findfre_1-findfre-1.obj `if test -f 'testsuite/libsframe.find/findfre-1.c'; then $(CYGPATH_W) 'testsuite/libsframe.find/findfre-1.c'; else $(CYGPATH_W) '$(srcdir)/testsuite/libsframe.find/findfre-1.c'; fi`
20604
20605-testsuite/libsframe.find/testsuite_libsframe_find_findfunc_1-findfunc-1.o: testsuite/libsframe.find/findfunc-1.c
20606-@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(testsuite_libsframe_find_findfunc_1_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT testsuite/libsframe.find/testsuite_libsframe_find_findfunc_1-findfunc-1.o -MD -MP -MF testsuite/libsframe.find/$(DEPDIR)/testsuite_libsframe_find_findfunc_1-findfunc-1.Tpo -c -o testsuite/libsframe.find/testsuite_libsframe_find_findfunc_1-findfunc-1.o `test -f 'testsuite/libsframe.find/findfunc-1.c' || echo '$(srcdir)/'`testsuite/libsframe.find/findfunc-1.c
20607-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) testsuite/libsframe.find/$(DEPDIR)/testsuite_libsframe_find_findfunc_1-findfunc-1.Tpo testsuite/libsframe.find/$(DEPDIR)/testsuite_libsframe_find_findfunc_1-findfunc-1.Po
20608-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='testsuite/libsframe.find/findfunc-1.c' object='testsuite/libsframe.find/testsuite_libsframe_find_findfunc_1-findfunc-1.o' libtool=no @AMDEPBACKSLASH@
20609+testsuite/libsframe.find/findfunc_1-findfunc-1.o: testsuite/libsframe.find/findfunc-1.c
20610+@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(testsuite_libsframe_find_findfunc_1_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT testsuite/libsframe.find/findfunc_1-findfunc-1.o -MD -MP -MF testsuite/libsframe.find/$(DEPDIR)/findfunc_1-findfunc-1.Tpo -c -o testsuite/libsframe.find/findfunc_1-findfunc-1.o `test -f 'testsuite/libsframe.find/findfunc-1.c' || echo '$(srcdir)/'`testsuite/libsframe.find/findfunc-1.c
20611+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) testsuite/libsframe.find/$(DEPDIR)/findfunc_1-findfunc-1.Tpo testsuite/libsframe.find/$(DEPDIR)/findfunc_1-findfunc-1.Po
20612+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='testsuite/libsframe.find/findfunc-1.c' object='testsuite/libsframe.find/findfunc_1-findfunc-1.o' libtool=no @AMDEPBACKSLASH@
20613 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
20614-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(testsuite_libsframe_find_findfunc_1_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o testsuite/libsframe.find/testsuite_libsframe_find_findfunc_1-findfunc-1.o `test -f 'testsuite/libsframe.find/findfunc-1.c' || echo '$(srcdir)/'`testsuite/libsframe.find/findfunc-1.c
20615+@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(testsuite_libsframe_find_findfunc_1_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o testsuite/libsframe.find/findfunc_1-findfunc-1.o `test -f 'testsuite/libsframe.find/findfunc-1.c' || echo '$(srcdir)/'`testsuite/libsframe.find/findfunc-1.c
20616
20617-testsuite/libsframe.find/testsuite_libsframe_find_findfunc_1-findfunc-1.obj: testsuite/libsframe.find/findfunc-1.c
20618-@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(testsuite_libsframe_find_findfunc_1_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT testsuite/libsframe.find/testsuite_libsframe_find_findfunc_1-findfunc-1.obj -MD -MP -MF testsuite/libsframe.find/$(DEPDIR)/testsuite_libsframe_find_findfunc_1-findfunc-1.Tpo -c -o testsuite/libsframe.find/testsuite_libsframe_find_findfunc_1-findfunc-1.obj `if test -f 'testsuite/libsframe.find/findfunc-1.c'; then $(CYGPATH_W) 'testsuite/libsframe.find/findfunc-1.c'; else $(CYGPATH_W) '$(srcdir)/testsuite/libsframe.find/findfunc-1.c'; fi`
20619-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) testsuite/libsframe.find/$(DEPDIR)/testsuite_libsframe_find_findfunc_1-findfunc-1.Tpo testsuite/libsframe.find/$(DEPDIR)/testsuite_libsframe_find_findfunc_1-findfunc-1.Po
20620-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='testsuite/libsframe.find/findfunc-1.c' object='testsuite/libsframe.find/testsuite_libsframe_find_findfunc_1-findfunc-1.obj' libtool=no @AMDEPBACKSLASH@
20621+testsuite/libsframe.find/findfunc_1-findfunc-1.obj: testsuite/libsframe.find/findfunc-1.c
20622+@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(testsuite_libsframe_find_findfunc_1_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT testsuite/libsframe.find/findfunc_1-findfunc-1.obj -MD -MP -MF testsuite/libsframe.find/$(DEPDIR)/findfunc_1-findfunc-1.Tpo -c -o testsuite/libsframe.find/findfunc_1-findfunc-1.obj `if test -f 'testsuite/libsframe.find/findfunc-1.c'; then $(CYGPATH_W) 'testsuite/libsframe.find/findfunc-1.c'; else $(CYGPATH_W) '$(srcdir)/testsuite/libsframe.find/findfunc-1.c'; fi`
20623+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) testsuite/libsframe.find/$(DEPDIR)/findfunc_1-findfunc-1.Tpo testsuite/libsframe.find/$(DEPDIR)/findfunc_1-findfunc-1.Po
20624+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='testsuite/libsframe.find/findfunc-1.c' object='testsuite/libsframe.find/findfunc_1-findfunc-1.obj' libtool=no @AMDEPBACKSLASH@
20625 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
20626-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(testsuite_libsframe_find_findfunc_1_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o testsuite/libsframe.find/testsuite_libsframe_find_findfunc_1-findfunc-1.obj `if test -f 'testsuite/libsframe.find/findfunc-1.c'; then $(CYGPATH_W) 'testsuite/libsframe.find/findfunc-1.c'; else $(CYGPATH_W) '$(srcdir)/testsuite/libsframe.find/findfunc-1.c'; fi`
20627+@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(testsuite_libsframe_find_findfunc_1_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o testsuite/libsframe.find/findfunc_1-findfunc-1.obj `if test -f 'testsuite/libsframe.find/findfunc-1.c'; then $(CYGPATH_W) 'testsuite/libsframe.find/findfunc-1.c'; else $(CYGPATH_W) '$(srcdir)/testsuite/libsframe.find/findfunc-1.c'; fi`
20628
20629-testsuite/libsframe.find/testsuite_libsframe_find_plt_findfre_1-plt-findfre-1.o: testsuite/libsframe.find/plt-findfre-1.c
20630-@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(testsuite_libsframe_find_plt_findfre_1_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT testsuite/libsframe.find/testsuite_libsframe_find_plt_findfre_1-plt-findfre-1.o -MD -MP -MF testsuite/libsframe.find/$(DEPDIR)/testsuite_libsframe_find_plt_findfre_1-plt-findfre-1.Tpo -c -o testsuite/libsframe.find/testsuite_libsframe_find_plt_findfre_1-plt-findfre-1.o `test -f 'testsuite/libsframe.find/plt-findfre-1.c' || echo '$(srcdir)/'`testsuite/libsframe.find/plt-findfre-1.c
20631-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) testsuite/libsframe.find/$(DEPDIR)/testsuite_libsframe_find_plt_findfre_1-plt-findfre-1.Tpo testsuite/libsframe.find/$(DEPDIR)/testsuite_libsframe_find_plt_findfre_1-plt-findfre-1.Po
20632-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='testsuite/libsframe.find/plt-findfre-1.c' object='testsuite/libsframe.find/testsuite_libsframe_find_plt_findfre_1-plt-findfre-1.o' libtool=no @AMDEPBACKSLASH@
20633+testsuite/libsframe.find/plt_findfre_1-plt-findfre-1.o: testsuite/libsframe.find/plt-findfre-1.c
20634+@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(testsuite_libsframe_find_plt_findfre_1_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT testsuite/libsframe.find/plt_findfre_1-plt-findfre-1.o -MD -MP -MF testsuite/libsframe.find/$(DEPDIR)/plt_findfre_1-plt-findfre-1.Tpo -c -o testsuite/libsframe.find/plt_findfre_1-plt-findfre-1.o `test -f 'testsuite/libsframe.find/plt-findfre-1.c' || echo '$(srcdir)/'`testsuite/libsframe.find/plt-findfre-1.c
20635+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) testsuite/libsframe.find/$(DEPDIR)/plt_findfre_1-plt-findfre-1.Tpo testsuite/libsframe.find/$(DEPDIR)/plt_findfre_1-plt-findfre-1.Po
20636+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='testsuite/libsframe.find/plt-findfre-1.c' object='testsuite/libsframe.find/plt_findfre_1-plt-findfre-1.o' libtool=no @AMDEPBACKSLASH@
20637 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
20638-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(testsuite_libsframe_find_plt_findfre_1_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o testsuite/libsframe.find/testsuite_libsframe_find_plt_findfre_1-plt-findfre-1.o `test -f 'testsuite/libsframe.find/plt-findfre-1.c' || echo '$(srcdir)/'`testsuite/libsframe.find/plt-findfre-1.c
20639+@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(testsuite_libsframe_find_plt_findfre_1_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o testsuite/libsframe.find/plt_findfre_1-plt-findfre-1.o `test -f 'testsuite/libsframe.find/plt-findfre-1.c' || echo '$(srcdir)/'`testsuite/libsframe.find/plt-findfre-1.c
20640
20641-testsuite/libsframe.find/testsuite_libsframe_find_plt_findfre_1-plt-findfre-1.obj: testsuite/libsframe.find/plt-findfre-1.c
20642-@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(testsuite_libsframe_find_plt_findfre_1_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT testsuite/libsframe.find/testsuite_libsframe_find_plt_findfre_1-plt-findfre-1.obj -MD -MP -MF testsuite/libsframe.find/$(DEPDIR)/testsuite_libsframe_find_plt_findfre_1-plt-findfre-1.Tpo -c -o testsuite/libsframe.find/testsuite_libsframe_find_plt_findfre_1-plt-findfre-1.obj `if test -f 'testsuite/libsframe.find/plt-findfre-1.c'; then $(CYGPATH_W) 'testsuite/libsframe.find/plt-findfre-1.c'; else $(CYGPATH_W) '$(srcdir)/testsuite/libsframe.find/plt-findfre-1.c'; fi`
20643-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) testsuite/libsframe.find/$(DEPDIR)/testsuite_libsframe_find_plt_findfre_1-plt-findfre-1.Tpo testsuite/libsframe.find/$(DEPDIR)/testsuite_libsframe_find_plt_findfre_1-plt-findfre-1.Po
20644-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='testsuite/libsframe.find/plt-findfre-1.c' object='testsuite/libsframe.find/testsuite_libsframe_find_plt_findfre_1-plt-findfre-1.obj' libtool=no @AMDEPBACKSLASH@
20645+testsuite/libsframe.find/plt_findfre_1-plt-findfre-1.obj: testsuite/libsframe.find/plt-findfre-1.c
20646+@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(testsuite_libsframe_find_plt_findfre_1_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT testsuite/libsframe.find/plt_findfre_1-plt-findfre-1.obj -MD -MP -MF testsuite/libsframe.find/$(DEPDIR)/plt_findfre_1-plt-findfre-1.Tpo -c -o testsuite/libsframe.find/plt_findfre_1-plt-findfre-1.obj `if test -f 'testsuite/libsframe.find/plt-findfre-1.c'; then $(CYGPATH_W) 'testsuite/libsframe.find/plt-findfre-1.c'; else $(CYGPATH_W) '$(srcdir)/testsuite/libsframe.find/plt-findfre-1.c'; fi`
20647+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) testsuite/libsframe.find/$(DEPDIR)/plt_findfre_1-plt-findfre-1.Tpo testsuite/libsframe.find/$(DEPDIR)/plt_findfre_1-plt-findfre-1.Po
20648+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='testsuite/libsframe.find/plt-findfre-1.c' object='testsuite/libsframe.find/plt_findfre_1-plt-findfre-1.obj' libtool=no @AMDEPBACKSLASH@
20649 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
20650-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(testsuite_libsframe_find_plt_findfre_1_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o testsuite/libsframe.find/testsuite_libsframe_find_plt_findfre_1-plt-findfre-1.obj `if test -f 'testsuite/libsframe.find/plt-findfre-1.c'; then $(CYGPATH_W) 'testsuite/libsframe.find/plt-findfre-1.c'; else $(CYGPATH_W) '$(srcdir)/testsuite/libsframe.find/plt-findfre-1.c'; fi`
20651+@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(testsuite_libsframe_find_plt_findfre_1_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o testsuite/libsframe.find/plt_findfre_1-plt-findfre-1.obj `if test -f 'testsuite/libsframe.find/plt-findfre-1.c'; then $(CYGPATH_W) 'testsuite/libsframe.find/plt-findfre-1.c'; else $(CYGPATH_W) '$(srcdir)/testsuite/libsframe.find/plt-findfre-1.c'; fi`
20652
20653 mostlyclean-libtool:
20654 -rm -f *.lo
20655@@ -1142,7 +1168,7 @@ site.exp: Makefile $(EXTRA_DEJAGNU_SITE_CONFIG)
20656 @echo '# Do not edit here. If you wish to override these values' >>site.tmp
20657 @echo '# edit the last section' >>site.tmp
20658 @echo 'set srcdir "$(srcdir)"' >>site.tmp
20659- @echo "set objdir `pwd`" >>site.tmp
20660+ @echo "set objdir \"`pwd`\"" >>site.tmp
20661 @echo 'set build_alias "$(build_alias)"' >>site.tmp
20662 @echo 'set build_triplet $(build_triplet)' >>site.tmp
20663 @echo 'set host_alias "$(host_alias)"' >>site.tmp
20664@@ -1166,8 +1192,10 @@ distclean-DEJAGNU:
20665 -l='$(DEJATOOL)'; for tool in $$l; do \
20666 rm -f $$tool.sum $$tool.log; \
20667 done
20668+distdir: $(BUILT_SOURCES)
20669+ $(MAKE) $(AM_MAKEFLAGS) distdir-am
20670
20671-distdir: $(DISTFILES)
20672+distdir-am: $(DISTFILES)
20673 $(am__remove_distdir)
20674 test -d "$(distdir)" || mkdir "$(distdir)"
20675 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
20676@@ -1225,6 +1253,10 @@ dist-xz: distdir
20677 tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz
20678 $(am__post_remove_distdir)
20679
20680+dist-zstd: distdir
20681+ tardir=$(distdir) && $(am__tar) | zstd -c $${ZSTD_CLEVEL-$${ZSTD_OPT--19}} >$(distdir).tar.zst
20682+ $(am__post_remove_distdir)
20683+
20684 dist-tarZ: distdir
20685 @echo WARNING: "Support for distribution archives compressed with" \
20686 "legacy program 'compress' is deprecated." >&2
20687@@ -1267,6 +1299,8 @@ distcheck: dist
20688 eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).shar.gz | unshar ;;\
20689 *.zip*) \
20690 unzip $(distdir).zip ;;\
20691+ *.tar.zst*) \
20692+ zstd -dc $(distdir).tar.zst | $(am__untar) ;;\
20693 esac
20694 chmod -R a-w $(distdir)
20695 chmod u+w $(distdir)
20696@@ -1282,7 +1316,7 @@ distcheck: dist
20697 $(DISTCHECK_CONFIGURE_FLAGS) \
20698 --srcdir=../.. --prefix="$$dc_install_base" \
20699 && $(MAKE) $(AM_MAKEFLAGS) \
20700- && $(MAKE) $(AM_MAKEFLAGS) dvi \
20701+ && $(MAKE) $(AM_MAKEFLAGS) $(AM_DISTCHECK_DVI_TARGET) \
20702 && $(MAKE) $(AM_MAKEFLAGS) check \
20703 && $(MAKE) $(AM_MAKEFLAGS) install \
20704 && $(MAKE) $(AM_MAKEFLAGS) installcheck \
20705@@ -1338,6 +1372,8 @@ check-am: all-am
20706 $(MAKE) $(AM_MAKEFLAGS) check-DEJAGNU
20707 check: check-am
20708 all-am: Makefile $(INFO_DEPS) $(LTLIBRARIES) $(HEADERS) config.h
20709+install-checkPROGRAMS: install-libLTLIBRARIES
20710+
20711 installdirs:
20712 for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(infodir)" "$(DESTDIR)$(includedir)"; do \
20713 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
20714@@ -1390,7 +1426,16 @@ clean-am: clean-aminfo clean-checkPROGRAMS clean-generic \
20715
20716 distclean: distclean-am
20717 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
20718- -rm -rf ./$(DEPDIR) testsuite/libsframe.decode/$(DEPDIR) testsuite/libsframe.encode/$(DEPDIR) testsuite/libsframe.find/$(DEPDIR)
20719+ -rm -f ./$(DEPDIR)/libsframe_la-sframe-dump.Plo
20720+ -rm -f ./$(DEPDIR)/libsframe_la-sframe-error.Plo
20721+ -rm -f ./$(DEPDIR)/libsframe_la-sframe.Plo
20722+ -rm -f testsuite/libsframe.decode/$(DEPDIR)/be_flipping-be-flipping.Po
20723+ -rm -f testsuite/libsframe.decode/$(DEPDIR)/frecnt_1-frecnt-1.Po
20724+ -rm -f testsuite/libsframe.decode/$(DEPDIR)/frecnt_2-frecnt-2.Po
20725+ -rm -f testsuite/libsframe.encode/$(DEPDIR)/encode_1-encode-1.Po
20726+ -rm -f testsuite/libsframe.find/$(DEPDIR)/findfre_1-findfre-1.Po
20727+ -rm -f testsuite/libsframe.find/$(DEPDIR)/findfunc_1-findfunc-1.Po
20728+ -rm -f testsuite/libsframe.find/$(DEPDIR)/plt_findfre_1-plt-findfre-1.Po
20729 -rm -f Makefile
20730 distclean-am: clean-am distclean-DEJAGNU distclean-compile \
20731 distclean-generic distclean-hdr distclean-libtool \
20732@@ -1530,7 +1575,16 @@ installcheck-am:
20733 maintainer-clean: maintainer-clean-am
20734 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
20735 -rm -rf $(top_srcdir)/autom4te.cache
20736- -rm -rf ./$(DEPDIR) testsuite/libsframe.decode/$(DEPDIR) testsuite/libsframe.encode/$(DEPDIR) testsuite/libsframe.find/$(DEPDIR)
20737+ -rm -f ./$(DEPDIR)/libsframe_la-sframe-dump.Plo
20738+ -rm -f ./$(DEPDIR)/libsframe_la-sframe-error.Plo
20739+ -rm -f ./$(DEPDIR)/libsframe_la-sframe.Plo
20740+ -rm -f testsuite/libsframe.decode/$(DEPDIR)/be_flipping-be-flipping.Po
20741+ -rm -f testsuite/libsframe.decode/$(DEPDIR)/frecnt_1-frecnt-1.Po
20742+ -rm -f testsuite/libsframe.decode/$(DEPDIR)/frecnt_2-frecnt-2.Po
20743+ -rm -f testsuite/libsframe.encode/$(DEPDIR)/encode_1-encode-1.Po
20744+ -rm -f testsuite/libsframe.find/$(DEPDIR)/findfre_1-findfre-1.Po
20745+ -rm -f testsuite/libsframe.find/$(DEPDIR)/findfunc_1-findfunc-1.Po
20746+ -rm -f testsuite/libsframe.find/$(DEPDIR)/plt_findfre_1-plt-findfre-1.Po
20747 -rm -f Makefile
20748 maintainer-clean-am: distclean-am maintainer-clean-aminfo \
20749 maintainer-clean-generic
20750@@ -1554,28 +1608,28 @@ uninstall-am: uninstall-dvi-am uninstall-html-am \
20751
20752 .MAKE: all check-am install-am install-strip
20753
20754-.PHONY: CTAGS GTAGS TAGS all all-am am--refresh check check-DEJAGNU \
20755- check-am clean clean-aminfo clean-checkPROGRAMS clean-cscope \
20756- clean-generic clean-libLTLIBRARIES clean-libtool \
20757+.PHONY: CTAGS GTAGS TAGS all all-am am--depfiles am--refresh check \
20758+ check-DEJAGNU check-am clean clean-aminfo clean-checkPROGRAMS \
20759+ clean-cscope clean-generic clean-libLTLIBRARIES clean-libtool \
20760 clean-noinstLTLIBRARIES cscope cscopelist-am ctags ctags-am \
20761 dist dist-all dist-bzip2 dist-gzip dist-info dist-lzip \
20762- dist-shar dist-tarZ dist-xz dist-zip distcheck distclean \
20763- distclean-DEJAGNU distclean-compile distclean-generic \
20764- distclean-hdr distclean-libtool distclean-tags distcleancheck \
20765- distdir distuninstallcheck dvi dvi-am html html-am html-local \
20766- info info-am install install-am install-data install-data-am \
20767- install-dvi install-dvi-am install-exec install-exec-am \
20768- install-html install-html-am install-includeHEADERS \
20769- install-info install-info-am install-libLTLIBRARIES \
20770- install-man install-pdf install-pdf-am install-ps \
20771- install-ps-am install-strip installcheck installcheck-am \
20772- installdirs maintainer-clean maintainer-clean-aminfo \
20773- maintainer-clean-generic mostlyclean mostlyclean-aminfo \
20774- mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
20775- pdf pdf-am ps ps-am tags tags-am uninstall uninstall-am \
20776- uninstall-dvi-am uninstall-html-am uninstall-includeHEADERS \
20777- uninstall-info-am uninstall-libLTLIBRARIES uninstall-pdf-am \
20778- uninstall-ps-am
20779+ dist-shar dist-tarZ dist-xz dist-zip dist-zstd distcheck \
20780+ distclean distclean-DEJAGNU distclean-compile \
20781+ distclean-generic distclean-hdr distclean-libtool \
20782+ distclean-tags distcleancheck distdir distuninstallcheck dvi \
20783+ dvi-am html html-am html-local info info-am install install-am \
20784+ install-data install-data-am install-dvi install-dvi-am \
20785+ install-exec install-exec-am install-html install-html-am \
20786+ install-includeHEADERS install-info install-info-am \
20787+ install-libLTLIBRARIES install-man install-pdf install-pdf-am \
20788+ install-ps install-ps-am install-strip installcheck \
20789+ installcheck-am installdirs maintainer-clean \
20790+ maintainer-clean-aminfo maintainer-clean-generic mostlyclean \
20791+ mostlyclean-aminfo mostlyclean-compile mostlyclean-generic \
20792+ mostlyclean-libtool pdf pdf-am ps ps-am tags tags-am uninstall \
20793+ uninstall-am uninstall-dvi-am uninstall-html-am \
20794+ uninstall-includeHEADERS uninstall-info-am \
20795+ uninstall-libLTLIBRARIES uninstall-pdf-am uninstall-ps-am
20796
20797 .PRECIOUS: Makefile
20798
20799diff --git a/libsframe/aclocal.m4 b/libsframe/aclocal.m4
20800index b0cdd6b184d..c83d4f62ece 100644
20801--- a/libsframe/aclocal.m4
20802+++ b/libsframe/aclocal.m4
20803@@ -1,6 +1,6 @@
20804-# generated automatically by aclocal 1.15.1 -*- Autoconf -*-
20805+# generated automatically by aclocal 1.16.5 -*- Autoconf -*-
20806
20807-# Copyright (C) 1996-2017 Free Software Foundation, Inc.
20808+# Copyright (C) 1996-2021 Free Software Foundation, Inc.
20809
20810 # This file is free software; the Free Software Foundation
20811 # gives unlimited permission to copy and/or distribute it,
20812@@ -20,7 +20,7 @@ You have another version of autoconf. It may work, but is not guaranteed to.
20813 If you have problems, you may need to regenerate the build system entirely.
20814 To do so, use the procedure documented by the package, typically 'autoreconf'.])])
20815
20816-# Copyright (C) 2002-2017 Free Software Foundation, Inc.
20817+# Copyright (C) 2002-2021 Free Software Foundation, Inc.
20818 #
20819 # This file is free software; the Free Software Foundation
20820 # gives unlimited permission to copy and/or distribute it,
20821@@ -32,10 +32,10 @@ To do so, use the procedure documented by the package, typically 'autoreconf'.])
20822 # generated from the m4 files accompanying Automake X.Y.
20823 # (This private macro should not be called outside this file.)
20824 AC_DEFUN([AM_AUTOMAKE_VERSION],
20825-[am__api_version='1.15'
20826+[am__api_version='1.16'
20827 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
20828 dnl require some minimum version. Point them to the right macro.
20829-m4_if([$1], [1.15.1], [],
20830+m4_if([$1], [1.16.5], [],
20831 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
20832 ])
20833
20834@@ -51,12 +51,12 @@ m4_define([_AM_AUTOCONF_VERSION], [])
20835 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
20836 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
20837 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
20838-[AM_AUTOMAKE_VERSION([1.15.1])dnl
20839+[AM_AUTOMAKE_VERSION([1.16.5])dnl
20840 m4_ifndef([AC_AUTOCONF_VERSION],
20841 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
20842 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
20843
20844-# Copyright (C) 2011-2017 Free Software Foundation, Inc.
20845+# Copyright (C) 2011-2021 Free Software Foundation, Inc.
20846 #
20847 # This file is free software; the Free Software Foundation
20848 # gives unlimited permission to copy and/or distribute it,
20849@@ -118,7 +118,7 @@ AC_SUBST([AR])dnl
20850
20851 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
20852
20853-# Copyright (C) 2001-2017 Free Software Foundation, Inc.
20854+# Copyright (C) 2001-2021 Free Software Foundation, Inc.
20855 #
20856 # This file is free software; the Free Software Foundation
20857 # gives unlimited permission to copy and/or distribute it,
20858@@ -170,7 +170,7 @@ am_aux_dir=`cd "$ac_aux_dir" && pwd`
20859
20860 # AM_CONDITIONAL -*- Autoconf -*-
20861
20862-# Copyright (C) 1997-2017 Free Software Foundation, Inc.
20863+# Copyright (C) 1997-2021 Free Software Foundation, Inc.
20864 #
20865 # This file is free software; the Free Software Foundation
20866 # gives unlimited permission to copy and/or distribute it,
20867@@ -201,7 +201,7 @@ AC_CONFIG_COMMANDS_PRE(
20868 Usually this means the macro was only invoked conditionally.]])
20869 fi])])
20870
20871-# Copyright (C) 1999-2017 Free Software Foundation, Inc.
20872+# Copyright (C) 1999-2021 Free Software Foundation, Inc.
20873 #
20874 # This file is free software; the Free Software Foundation
20875 # gives unlimited permission to copy and/or distribute it,
20876@@ -392,13 +392,12 @@ _AM_SUBST_NOTMAKE([am__nodep])dnl
20877
20878 # Generate code to set up dependency tracking. -*- Autoconf -*-
20879
20880-# Copyright (C) 1999-2017 Free Software Foundation, Inc.
20881+# Copyright (C) 1999-2021 Free Software Foundation, Inc.
20882 #
20883 # This file is free software; the Free Software Foundation
20884 # gives unlimited permission to copy and/or distribute it,
20885 # with or without modifications, as long as this notice is preserved.
20886
20887-
20888 # _AM_OUTPUT_DEPENDENCY_COMMANDS
20889 # ------------------------------
20890 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
20891@@ -406,49 +405,43 @@ AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
20892 # Older Autoconf quotes --file arguments for eval, but not when files
20893 # are listed without --file. Let's play safe and only enable the eval
20894 # if we detect the quoting.
20895- case $CONFIG_FILES in
20896- *\'*) eval set x "$CONFIG_FILES" ;;
20897- *) set x $CONFIG_FILES ;;
20898- esac
20899+ # TODO: see whether this extra hack can be removed once we start
20900+ # requiring Autoconf 2.70 or later.
20901+ AS_CASE([$CONFIG_FILES],
20902+ [*\'*], [eval set x "$CONFIG_FILES"],
20903+ [*], [set x $CONFIG_FILES])
20904 shift
20905- for mf
20906+ # Used to flag and report bootstrapping failures.
20907+ am_rc=0
20908+ for am_mf
20909 do
20910 # Strip MF so we end up with the name of the file.
20911- mf=`echo "$mf" | sed -e 's/:.*$//'`
20912- # Check whether this is an Automake generated Makefile or not.
20913- # We used to match only the files named 'Makefile.in', but
20914- # some people rename them; so instead we look at the file content.
20915- # Grep'ing the first line is not enough: some people post-process
20916- # each Makefile.in and add a new line on top of each file to say so.
20917- # Grep'ing the whole file is not good either: AIX grep has a line
20918+ am_mf=`AS_ECHO(["$am_mf"]) | sed -e 's/:.*$//'`
20919+ # Check whether this is an Automake generated Makefile which includes
20920+ # dependency-tracking related rules and includes.
20921+ # Grep'ing the whole file directly is not great: AIX grep has a line
20922 # limit of 2048, but all sed's we know have understand at least 4000.
20923- if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20924- dirpart=`AS_DIRNAME("$mf")`
20925- else
20926- continue
20927- fi
20928- # Extract the definition of DEPDIR, am__include, and am__quote
20929- # from the Makefile without running 'make'.
20930- DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20931- test -z "$DEPDIR" && continue
20932- am__include=`sed -n 's/^am__include = //p' < "$mf"`
20933- test -z "$am__include" && continue
20934- am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20935- # Find all dependency output files, they are included files with
20936- # $(DEPDIR) in their names. We invoke sed twice because it is the
20937- # simplest approach to changing $(DEPDIR) to its actual value in the
20938- # expansion.
20939- for file in `sed -n "
20940- s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20941- sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
20942- # Make sure the directory exists.
20943- test -f "$dirpart/$file" && continue
20944- fdir=`AS_DIRNAME(["$file"])`
20945- AS_MKDIR_P([$dirpart/$fdir])
20946- # echo "creating $dirpart/$file"
20947- echo '# dummy' > "$dirpart/$file"
20948- done
20949+ sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
20950+ || continue
20951+ am_dirpart=`AS_DIRNAME(["$am_mf"])`
20952+ am_filepart=`AS_BASENAME(["$am_mf"])`
20953+ AM_RUN_LOG([cd "$am_dirpart" \
20954+ && sed -e '/# am--include-marker/d' "$am_filepart" \
20955+ | $MAKE -f - am--depfiles]) || am_rc=$?
20956 done
20957+ if test $am_rc -ne 0; then
20958+ AC_MSG_FAILURE([Something went wrong bootstrapping makefile fragments
20959+ for automatic dependency tracking. If GNU make was not used, consider
20960+ re-running the configure script with MAKE="gmake" (or whatever is
20961+ necessary). You can also try re-running configure with the
20962+ '--disable-dependency-tracking' option to at least be able to build
20963+ the package (albeit without support for automatic dependency tracking).])
20964+ fi
20965+ AS_UNSET([am_dirpart])
20966+ AS_UNSET([am_filepart])
20967+ AS_UNSET([am_mf])
20968+ AS_UNSET([am_rc])
20969+ rm -f conftest-deps.mk
20970 }
20971 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
20972
20973@@ -457,18 +450,17 @@ AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
20974 # -----------------------------
20975 # This macro should only be invoked once -- use via AC_REQUIRE.
20976 #
20977-# This code is only required when automatic dependency tracking
20978-# is enabled. FIXME. This creates each '.P' file that we will
20979-# need in order to bootstrap the dependency handling code.
20980+# This code is only required when automatic dependency tracking is enabled.
20981+# This creates each '.Po' and '.Plo' makefile fragment that we'll need in
20982+# order to bootstrap the dependency handling code.
20983 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
20984 [AC_CONFIG_COMMANDS([depfiles],
20985 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
20986- [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
20987-])
20988+ [AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"])])
20989
20990 # Do all the work for Automake. -*- Autoconf -*-
20991
20992-# Copyright (C) 1996-2017 Free Software Foundation, Inc.
20993+# Copyright (C) 1996-2021 Free Software Foundation, Inc.
20994 #
20995 # This file is free software; the Free Software Foundation
20996 # gives unlimited permission to copy and/or distribute it,
20997@@ -496,6 +488,10 @@ m4_defn([AC_PROG_CC])
20998 # release and drop the old call support.
20999 AC_DEFUN([AM_INIT_AUTOMAKE],
21000 [AC_PREREQ([2.65])dnl
21001+m4_ifdef([_$0_ALREADY_INIT],
21002+ [m4_fatal([$0 expanded multiple times
21003+]m4_defn([_$0_ALREADY_INIT]))],
21004+ [m4_define([_$0_ALREADY_INIT], m4_expansion_stack)])dnl
21005 dnl Autoconf wants to disallow AM_ names. We explicitly allow
21006 dnl the ones we care about.
21007 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
21008@@ -532,7 +528,7 @@ m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
21009 [_AM_SET_OPTIONS([$1])dnl
21010 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
21011 m4_if(
21012- m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
21013+ m4_ifset([AC_PACKAGE_NAME], [ok]):m4_ifset([AC_PACKAGE_VERSION], [ok]),
21014 [ok:ok],,
21015 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
21016 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
21017@@ -555,8 +551,8 @@ AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
21018 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
21019 # For better backward compatibility. To be removed once Automake 1.9.x
21020 # dies out for good. For more background, see:
21021-# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
21022-# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
21023+# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
21024+# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
21025 AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
21026 # We need awk for the "check" target (and possibly the TAP driver). The
21027 # system "awk" is bad on some platforms.
21028@@ -584,6 +580,20 @@ AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
21029 [m4_define([AC_PROG_OBJCXX],
21030 m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
21031 ])
21032+# Variables for tags utilities; see am/tags.am
21033+if test -z "$CTAGS"; then
21034+ CTAGS=ctags
21035+fi
21036+AC_SUBST([CTAGS])
21037+if test -z "$ETAGS"; then
21038+ ETAGS=etags
21039+fi
21040+AC_SUBST([ETAGS])
21041+if test -z "$CSCOPE"; then
21042+ CSCOPE=cscope
21043+fi
21044+AC_SUBST([CSCOPE])
21045+
21046 AC_REQUIRE([AM_SILENT_RULES])dnl
21047 dnl The testsuite driver may need to know about EXEEXT, so add the
21048 dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This
21049@@ -623,7 +633,7 @@ END
21050 Aborting the configuration process, to ensure you take notice of the issue.
21051
21052 You can download and install GNU coreutils to get an 'rm' implementation
21053-that behaves properly: <http://www.gnu.org/software/coreutils/>.
21054+that behaves properly: <https://www.gnu.org/software/coreutils/>.
21055
21056 If you want to complete the configuration process using your problematic
21057 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
21058@@ -665,7 +675,7 @@ for _am_header in $config_headers :; do
21059 done
21060 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
21061
21062-# Copyright (C) 2001-2017 Free Software Foundation, Inc.
21063+# Copyright (C) 2001-2021 Free Software Foundation, Inc.
21064 #
21065 # This file is free software; the Free Software Foundation
21066 # gives unlimited permission to copy and/or distribute it,
21067@@ -689,7 +699,7 @@ AC_SUBST([install_sh])])
21068 # Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
21069 # From Jim Meyering
21070
21071-# Copyright (C) 1996-2017 Free Software Foundation, Inc.
21072+# Copyright (C) 1996-2021 Free Software Foundation, Inc.
21073 #
21074 # This file is free software; the Free Software Foundation
21075 # gives unlimited permission to copy and/or distribute it,
21076@@ -724,7 +734,7 @@ AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
21077
21078 # Check to see how 'make' treats includes. -*- Autoconf -*-
21079
21080-# Copyright (C) 2001-2017 Free Software Foundation, Inc.
21081+# Copyright (C) 2001-2021 Free Software Foundation, Inc.
21082 #
21083 # This file is free software; the Free Software Foundation
21084 # gives unlimited permission to copy and/or distribute it,
21085@@ -732,49 +742,42 @@ AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
21086
21087 # AM_MAKE_INCLUDE()
21088 # -----------------
21089-# Check to see how make treats includes.
21090+# Check whether make has an 'include' directive that can support all
21091+# the idioms we need for our automatic dependency tracking code.
21092 AC_DEFUN([AM_MAKE_INCLUDE],
21093-[am_make=${MAKE-make}
21094-cat > confinc << 'END'
21095+[AC_MSG_CHECKING([whether ${MAKE-make} supports the include directive])
21096+cat > confinc.mk << 'END'
21097 am__doit:
21098- @echo this is the am__doit target
21099+ @echo this is the am__doit target >confinc.out
21100 .PHONY: am__doit
21101 END
21102-# If we don't find an include directive, just comment out the code.
21103-AC_MSG_CHECKING([for style of include used by $am_make])
21104 am__include="#"
21105 am__quote=
21106-_am_result=none
21107-# First try GNU make style include.
21108-echo "include confinc" > confmf
21109-# Ignore all kinds of additional output from 'make'.
21110-case `$am_make -s -f confmf 2> /dev/null` in #(
21111-*the\ am__doit\ target*)
21112- am__include=include
21113- am__quote=
21114- _am_result=GNU
21115- ;;
21116-esac
21117-# Now try BSD make style include.
21118-if test "$am__include" = "#"; then
21119- echo '.include "confinc"' > confmf
21120- case `$am_make -s -f confmf 2> /dev/null` in #(
21121- *the\ am__doit\ target*)
21122- am__include=.include
21123- am__quote="\""
21124- _am_result=BSD
21125- ;;
21126- esac
21127-fi
21128-AC_SUBST([am__include])
21129-AC_SUBST([am__quote])
21130-AC_MSG_RESULT([$_am_result])
21131-rm -f confinc confmf
21132-])
21133+# BSD make does it like this.
21134+echo '.include "confinc.mk" # ignored' > confmf.BSD
21135+# Other make implementations (GNU, Solaris 10, AIX) do it like this.
21136+echo 'include confinc.mk # ignored' > confmf.GNU
21137+_am_result=no
21138+for s in GNU BSD; do
21139+ AM_RUN_LOG([${MAKE-make} -f confmf.$s && cat confinc.out])
21140+ AS_CASE([$?:`cat confinc.out 2>/dev/null`],
21141+ ['0:this is the am__doit target'],
21142+ [AS_CASE([$s],
21143+ [BSD], [am__include='.include' am__quote='"'],
21144+ [am__include='include' am__quote=''])])
21145+ if test "$am__include" != "#"; then
21146+ _am_result="yes ($s style)"
21147+ break
21148+ fi
21149+done
21150+rm -f confinc.* confmf.*
21151+AC_MSG_RESULT([${_am_result}])
21152+AC_SUBST([am__include])])
21153+AC_SUBST([am__quote])])
21154
21155 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
21156
21157-# Copyright (C) 1997-2017 Free Software Foundation, Inc.
21158+# Copyright (C) 1997-2021 Free Software Foundation, Inc.
21159 #
21160 # This file is free software; the Free Software Foundation
21161 # gives unlimited permission to copy and/or distribute it,
21162@@ -795,12 +798,7 @@ AC_DEFUN([AM_MISSING_HAS_RUN],
21163 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
21164 AC_REQUIRE_AUX_FILE([missing])dnl
21165 if test x"${MISSING+set}" != xset; then
21166- case $am_aux_dir in
21167- *\ * | *\ *)
21168- MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
21169- *)
21170- MISSING="\${SHELL} $am_aux_dir/missing" ;;
21171- esac
21172+ MISSING="\${SHELL} '$am_aux_dir/missing'"
21173 fi
21174 # Use eval to expand $SHELL
21175 if eval "$MISSING --is-lightweight"; then
21176@@ -813,7 +811,7 @@ fi
21177
21178 # Helper functions for option handling. -*- Autoconf -*-
21179
21180-# Copyright (C) 2001-2017 Free Software Foundation, Inc.
21181+# Copyright (C) 2001-2021 Free Software Foundation, Inc.
21182 #
21183 # This file is free software; the Free Software Foundation
21184 # gives unlimited permission to copy and/or distribute it,
21185@@ -842,7 +840,7 @@ AC_DEFUN([_AM_SET_OPTIONS],
21186 AC_DEFUN([_AM_IF_OPTION],
21187 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
21188
21189-# Copyright (C) 1999-2017 Free Software Foundation, Inc.
21190+# Copyright (C) 1999-2021 Free Software Foundation, Inc.
21191 #
21192 # This file is free software; the Free Software Foundation
21193 # gives unlimited permission to copy and/or distribute it,
21194@@ -889,7 +887,7 @@ AC_LANG_POP([C])])
21195 # For backward compatibility.
21196 AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
21197
21198-# Copyright (C) 2001-2017 Free Software Foundation, Inc.
21199+# Copyright (C) 2001-2021 Free Software Foundation, Inc.
21200 #
21201 # This file is free software; the Free Software Foundation
21202 # gives unlimited permission to copy and/or distribute it,
21203@@ -908,7 +906,7 @@ AC_DEFUN([AM_RUN_LOG],
21204
21205 # Check to make sure that the build environment is sane. -*- Autoconf -*-
21206
21207-# Copyright (C) 1996-2017 Free Software Foundation, Inc.
21208+# Copyright (C) 1996-2021 Free Software Foundation, Inc.
21209 #
21210 # This file is free software; the Free Software Foundation
21211 # gives unlimited permission to copy and/or distribute it,
21212@@ -989,7 +987,7 @@ AC_CONFIG_COMMANDS_PRE(
21213 rm -f conftest.file
21214 ])
21215
21216-# Copyright (C) 2009-2017 Free Software Foundation, Inc.
21217+# Copyright (C) 2009-2021 Free Software Foundation, Inc.
21218 #
21219 # This file is free software; the Free Software Foundation
21220 # gives unlimited permission to copy and/or distribute it,
21221@@ -1049,7 +1047,7 @@ AC_SUBST([AM_BACKSLASH])dnl
21222 _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
21223 ])
21224
21225-# Copyright (C) 2001-2017 Free Software Foundation, Inc.
21226+# Copyright (C) 2001-2021 Free Software Foundation, Inc.
21227 #
21228 # This file is free software; the Free Software Foundation
21229 # gives unlimited permission to copy and/or distribute it,
21230@@ -1077,7 +1075,7 @@ fi
21231 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
21232 AC_SUBST([INSTALL_STRIP_PROGRAM])])
21233
21234-# Copyright (C) 2006-2017 Free Software Foundation, Inc.
21235+# Copyright (C) 2006-2021 Free Software Foundation, Inc.
21236 #
21237 # This file is free software; the Free Software Foundation
21238 # gives unlimited permission to copy and/or distribute it,
21239@@ -1096,7 +1094,7 @@ AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
21240
21241 # Check how to create a tarball. -*- Autoconf -*-
21242
21243-# Copyright (C) 2004-2017 Free Software Foundation, Inc.
21244+# Copyright (C) 2004-2021 Free Software Foundation, Inc.
21245 #
21246 # This file is free software; the Free Software Foundation
21247 # gives unlimited permission to copy and/or distribute it,
21248diff --git a/libsframe/configure b/libsframe/configure
21249index 1d9e5e10695..a234c4815b1 100755
21250--- a/libsframe/configure
21251+++ b/libsframe/configure
21252@@ -658,6 +658,8 @@ OTOOL
21253 LIPO
21254 NMEDIT
21255 DSYMUTIL
21256+MANIFEST_TOOL
21257+DLLTOOL
21258 OBJDUMP
21259 LN_S
21260 NM
21261@@ -682,6 +684,9 @@ AM_BACKSLASH
21262 AM_DEFAULT_VERBOSITY
21263 AM_DEFAULT_V
21264 AM_V
21265+CSCOPE
21266+ETAGS
21267+CTAGS
21268 am__fastdepCC_FALSE
21269 am__fastdepCC_TRUE
21270 CCDEPMODE
21271@@ -689,7 +694,6 @@ am__nodep
21272 AMDEPBACKSLASH
21273 AMDEP_FALSE
21274 AMDEP_TRUE
21275-am__quote
21276 am__include
21277 DEPDIR
21278 am__untar
21279@@ -762,7 +766,8 @@ PACKAGE_VERSION
21280 PACKAGE_TARNAME
21281 PACKAGE_NAME
21282 PATH_SEPARATOR
21283-SHELL'
21284+SHELL
21285+am__quote'
21286 ac_subst_files=''
21287 ac_user_opts='
21288 enable_option_checking
21289@@ -773,6 +778,7 @@ enable_static
21290 with_pic
21291 enable_fast_install
21292 with_gnu_ld
21293+with_libtool_sysroot
21294 enable_libtool_lock
21295 enable_largefile
21296 enable_maintainer_mode
21297@@ -1428,6 +1434,8 @@ Optional Packages:
21298 --with-pic try to use only PIC/non-PIC objects [default=use
21299 both]
21300 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
21301+ --with-libtool-sysroot=DIR Search for dependent libraries within DIR
21302+ (or the compiler's sysroot if not specified).
21303
21304 Some influential environment variables:
21305 CC C compiler command
21306@@ -3610,7 +3618,7 @@ $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
21307 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
21308
21309
21310-am__api_version='1.15'
21311+am__api_version='1.16'
21312
21313 # Find a good install program. We prefer a C program (faster),
21314 # so one script is as good as another. But avoid the broken or
21315@@ -3783,12 +3791,7 @@ ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
21316 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
21317
21318 if test x"${MISSING+set}" != xset; then
21319- case $am_aux_dir in
21320- *\ * | *\ *)
21321- MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
21322- *)
21323- MISSING="\${SHELL} $am_aux_dir/missing" ;;
21324- esac
21325+ MISSING="\${SHELL} '$am_aux_dir/missing'"
21326 fi
21327 # Use eval to expand $SHELL
21328 if eval "$MISSING --is-lightweight"; then
21329@@ -4036,45 +4039,45 @@ DEPDIR="${am__leading_dot}deps"
21330
21331 ac_config_commands="$ac_config_commands depfiles"
21332
21333-
21334-am_make=${MAKE-make}
21335-cat > confinc << 'END'
21336+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
21337+$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
21338+cat > confinc.mk << 'END'
21339 am__doit:
21340- @echo this is the am__doit target
21341+ @echo this is the am__doit target >confinc.out
21342 .PHONY: am__doit
21343 END
21344-# If we don't find an include directive, just comment out the code.
21345-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
21346-$as_echo_n "checking for style of include used by $am_make... " >&6; }
21347 am__include="#"
21348 am__quote=
21349-_am_result=none
21350-# First try GNU make style include.
21351-echo "include confinc" > confmf
21352-# Ignore all kinds of additional output from 'make'.
21353-case `$am_make -s -f confmf 2> /dev/null` in #(
21354-*the\ am__doit\ target*)
21355- am__include=include
21356- am__quote=
21357- _am_result=GNU
21358- ;;
21359-esac
21360-# Now try BSD make style include.
21361-if test "$am__include" = "#"; then
21362- echo '.include "confinc"' > confmf
21363- case `$am_make -s -f confmf 2> /dev/null` in #(
21364- *the\ am__doit\ target*)
21365- am__include=.include
21366- am__quote="\""
21367- _am_result=BSD
21368+# BSD make does it like this.
21369+echo '.include "confinc.mk" # ignored' > confmf.BSD
21370+# Other make implementations (GNU, Solaris 10, AIX) do it like this.
21371+echo 'include confinc.mk # ignored' > confmf.GNU
21372+_am_result=no
21373+for s in GNU BSD; do
21374+ { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
21375+ (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
21376+ ac_status=$?
21377+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
21378+ (exit $ac_status); }
21379+ case $?:`cat confinc.out 2>/dev/null` in #(
21380+ '0:this is the am__doit target') :
21381+ case $s in #(
21382+ BSD) :
21383+ am__include='.include' am__quote='"' ;; #(
21384+ *) :
21385+ am__include='include' am__quote='' ;;
21386+esac ;; #(
21387+ *) :
21388 ;;
21389- esac
21390-fi
21391-
21392-
21393-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
21394-$as_echo "$_am_result" >&6; }
21395-rm -f confinc confmf
21396+esac
21397+ if test "$am__include" != "#"; then
21398+ _am_result="yes ($s style)"
21399+ break
21400+ fi
21401+done
21402+rm -f confinc.* confmf.*
21403+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
21404+$as_echo "${_am_result}" >&6; }
21405
21406 # Check whether --enable-dependency-tracking was given.
21407 if test "${enable_dependency_tracking+set}" = set; then :
21408@@ -4186,8 +4189,8 @@ MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
21409
21410 # For better backward compatibility. To be removed once Automake 1.9.x
21411 # dies out for good. For more background, see:
21412-# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
21413-# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
21414+# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
21415+# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
21416 mkdir_p='$(MKDIR_P)'
21417
21418 # We need awk for the "check" target (and possibly the TAP driver). The
21419@@ -4334,6 +4337,20 @@ else
21420 fi
21421
21422
21423+# Variables for tags utilities; see am/tags.am
21424+if test -z "$CTAGS"; then
21425+ CTAGS=ctags
21426+fi
21427+
21428+if test -z "$ETAGS"; then
21429+ ETAGS=etags
21430+fi
21431+
21432+if test -z "$CSCOPE"; then
21433+ CSCOPE=cscope
21434+fi
21435+
21436+
21437
21438 # POSIX will say in a future version that running "rm -f" with no argument
21439 # is OK; and we want to be able to make that assumption in our Makefile
21440@@ -4366,7 +4383,7 @@ END
21441 Aborting the configuration process, to ensure you take notice of the issue.
21442
21443 You can download and install GNU coreutils to get an 'rm' implementation
21444-that behaves properly: <http://www.gnu.org/software/coreutils/>.
21445+that behaves properly: <https://www.gnu.org/software/coreutils/>.
21446
21447 If you want to complete the configuration process using your problematic
21448 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
21449@@ -5351,8 +5368,8 @@ esac
21450
21451
21452
21453-macro_version='2.2.7a'
21454-macro_revision='1.3134'
21455+macro_version='2.4'
21456+macro_revision='1.3293'
21457
21458
21459
21460@@ -5463,7 +5480,7 @@ ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
21461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
21462 $as_echo_n "checking how to print strings... " >&6; }
21463 # Test print first, because it will be a builtin if present.
21464-if test "X`print -r -- -n 2>/dev/null`" = X-n && \
21465+if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
21466 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
21467 ECHO='print -r --'
21468 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
21469@@ -6156,8 +6173,8 @@ $as_echo_n "checking whether the shell understands some XSI constructs... " >&6;
21470 # Try some XSI features
21471 xsi_shell=no
21472 ( _lt_dummy="a/b/c"
21473- test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
21474- = c,a/b,, \
21475+ test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
21476+ = c,a/b,b/c, \
21477 && eval 'test $(( 1 + 1 )) -eq 2 \
21478 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
21479 && xsi_shell=yes
21480@@ -6206,6 +6223,80 @@ esac
21481
21482
21483
21484+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
21485+$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
21486+if ${lt_cv_to_host_file_cmd+:} false; then :
21487+ $as_echo_n "(cached) " >&6
21488+else
21489+ case $host in
21490+ *-*-mingw* )
21491+ case $build in
21492+ *-*-mingw* ) # actually msys
21493+ lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
21494+ ;;
21495+ *-*-cygwin* )
21496+ lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
21497+ ;;
21498+ * ) # otherwise, assume *nix
21499+ lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
21500+ ;;
21501+ esac
21502+ ;;
21503+ *-*-cygwin* )
21504+ case $build in
21505+ *-*-mingw* ) # actually msys
21506+ lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
21507+ ;;
21508+ *-*-cygwin* )
21509+ lt_cv_to_host_file_cmd=func_convert_file_noop
21510+ ;;
21511+ * ) # otherwise, assume *nix
21512+ lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
21513+ ;;
21514+ esac
21515+ ;;
21516+ * ) # unhandled hosts (and "normal" native builds)
21517+ lt_cv_to_host_file_cmd=func_convert_file_noop
21518+ ;;
21519+esac
21520+
21521+fi
21522+
21523+to_host_file_cmd=$lt_cv_to_host_file_cmd
21524+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
21525+$as_echo "$lt_cv_to_host_file_cmd" >&6; }
21526+
21527+
21528+
21529+
21530+
21531+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
21532+$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
21533+if ${lt_cv_to_tool_file_cmd+:} false; then :
21534+ $as_echo_n "(cached) " >&6
21535+else
21536+ #assume ordinary cross tools, or native build.
21537+lt_cv_to_tool_file_cmd=func_convert_file_noop
21538+case $host in
21539+ *-*-mingw* )
21540+ case $build in
21541+ *-*-mingw* ) # actually msys
21542+ lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
21543+ ;;
21544+ esac
21545+ ;;
21546+esac
21547+
21548+fi
21549+
21550+to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21551+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
21552+$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
21553+
21554+
21555+
21556+
21557+
21558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
21559 $as_echo_n "checking for $LD option to reload object files... " >&6; }
21560 if ${lt_cv_ld_reload_flag+:} false; then :
21561@@ -6222,6 +6313,11 @@ case $reload_flag in
21562 esac
21563 reload_cmds='$LD$reload_flag -o $output$reload_objs'
21564 case $host_os in
21565+ cygwin* | mingw* | pw32* | cegcc*)
21566+ if test "$GCC" != yes; then
21567+ reload_cmds=false
21568+ fi
21569+ ;;
21570 darwin*)
21571 if test "$GCC" = yes; then
21572 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
21573@@ -6390,7 +6486,8 @@ mingw* | pw32*)
21574 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
21575 lt_cv_file_magic_cmd='func_win32_libid'
21576 else
21577- lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
21578+ # Keep this pattern in sync with the one in func_win32_libid.
21579+ lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
21580 lt_cv_file_magic_cmd='$OBJDUMP -f'
21581 fi
21582 ;;
21583@@ -6549,6 +6646,21 @@ esac
21584 fi
21585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
21586 $as_echo "$lt_cv_deplibs_check_method" >&6; }
21587+
21588+file_magic_glob=
21589+want_nocaseglob=no
21590+if test "$build" = "$host"; then
21591+ case $host_os in
21592+ mingw* | pw32*)
21593+ if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
21594+ want_nocaseglob=yes
21595+ else
21596+ file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
21597+ fi
21598+ ;;
21599+ esac
21600+fi
21601+
21602 file_magic_cmd=$lt_cv_file_magic_cmd
21603 deplibs_check_method=$lt_cv_deplibs_check_method
21604 test -z "$deplibs_check_method" && deplibs_check_method=unknown
21605@@ -6564,6 +6676,157 @@ test -z "$deplibs_check_method" && deplibs_check_method=unknown
21606
21607
21608
21609+
21610+
21611+
21612+
21613+
21614+
21615+
21616+
21617+
21618+
21619+if test -n "$ac_tool_prefix"; then
21620+ # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
21621+set dummy ${ac_tool_prefix}dlltool; ac_word=$2
21622+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21623+$as_echo_n "checking for $ac_word... " >&6; }
21624+if ${ac_cv_prog_DLLTOOL+:} false; then :
21625+ $as_echo_n "(cached) " >&6
21626+else
21627+ if test -n "$DLLTOOL"; then
21628+ ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
21629+else
21630+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21631+for as_dir in $PATH
21632+do
21633+ IFS=$as_save_IFS
21634+ test -z "$as_dir" && as_dir=.
21635+ for ac_exec_ext in '' $ac_executable_extensions; do
21636+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21637+ ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
21638+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21639+ break 2
21640+ fi
21641+done
21642+ done
21643+IFS=$as_save_IFS
21644+
21645+fi
21646+fi
21647+DLLTOOL=$ac_cv_prog_DLLTOOL
21648+if test -n "$DLLTOOL"; then
21649+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
21650+$as_echo "$DLLTOOL" >&6; }
21651+else
21652+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21653+$as_echo "no" >&6; }
21654+fi
21655+
21656+
21657+fi
21658+if test -z "$ac_cv_prog_DLLTOOL"; then
21659+ ac_ct_DLLTOOL=$DLLTOOL
21660+ # Extract the first word of "dlltool", so it can be a program name with args.
21661+set dummy dlltool; ac_word=$2
21662+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21663+$as_echo_n "checking for $ac_word... " >&6; }
21664+if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
21665+ $as_echo_n "(cached) " >&6
21666+else
21667+ if test -n "$ac_ct_DLLTOOL"; then
21668+ ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
21669+else
21670+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21671+for as_dir in $PATH
21672+do
21673+ IFS=$as_save_IFS
21674+ test -z "$as_dir" && as_dir=.
21675+ for ac_exec_ext in '' $ac_executable_extensions; do
21676+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21677+ ac_cv_prog_ac_ct_DLLTOOL="dlltool"
21678+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21679+ break 2
21680+ fi
21681+done
21682+ done
21683+IFS=$as_save_IFS
21684+
21685+fi
21686+fi
21687+ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
21688+if test -n "$ac_ct_DLLTOOL"; then
21689+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
21690+$as_echo "$ac_ct_DLLTOOL" >&6; }
21691+else
21692+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21693+$as_echo "no" >&6; }
21694+fi
21695+
21696+ if test "x$ac_ct_DLLTOOL" = x; then
21697+ DLLTOOL="false"
21698+ else
21699+ case $cross_compiling:$ac_tool_warned in
21700+yes:)
21701+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21702+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21703+ac_tool_warned=yes ;;
21704+esac
21705+ DLLTOOL=$ac_ct_DLLTOOL
21706+ fi
21707+else
21708+ DLLTOOL="$ac_cv_prog_DLLTOOL"
21709+fi
21710+
21711+test -z "$DLLTOOL" && DLLTOOL=dlltool
21712+
21713+
21714+
21715+
21716+
21717+
21718+
21719+
21720+
21721+
21722+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
21723+$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
21724+if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
21725+ $as_echo_n "(cached) " >&6
21726+else
21727+ lt_cv_sharedlib_from_linklib_cmd='unknown'
21728+
21729+case $host_os in
21730+cygwin* | mingw* | pw32* | cegcc*)
21731+ # two different shell functions defined in ltmain.sh
21732+ # decide which to use based on capabilities of $DLLTOOL
21733+ case `$DLLTOOL --help 2>&1` in
21734+ *--identify-strict*)
21735+ lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
21736+ ;;
21737+ *)
21738+ lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
21739+ ;;
21740+ esac
21741+ ;;
21742+*)
21743+ # fallback: assume linklib IS sharedlib
21744+ lt_cv_sharedlib_from_linklib_cmd="$ECHO"
21745+ ;;
21746+esac
21747+
21748+fi
21749+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
21750+$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
21751+sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
21752+test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
21753+
21754+
21755+
21756+
21757+
21758+
21759+
21760 plugin_option=
21761 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
21762 for plugin in $plugin_names; do
21763@@ -6578,8 +6841,10 @@ for plugin in $plugin_names; do
21764 done
21765
21766 if test -n "$ac_tool_prefix"; then
21767- # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
21768-set dummy ${ac_tool_prefix}ar; ac_word=$2
21769+ for ac_prog in ar
21770+ do
21771+ # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
21772+set dummy $ac_tool_prefix$ac_prog; ac_word=$2
21773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21774 $as_echo_n "checking for $ac_word... " >&6; }
21775 if ${ac_cv_prog_AR+:} false; then :
21776@@ -6595,7 +6860,7 @@ do
21777 test -z "$as_dir" && as_dir=.
21778 for ac_exec_ext in '' $ac_executable_extensions; do
21779 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21780- ac_cv_prog_AR="${ac_tool_prefix}ar"
21781+ ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
21782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21783 break 2
21784 fi
21785@@ -6615,11 +6880,15 @@ $as_echo "no" >&6; }
21786 fi
21787
21788
21789+ test -n "$AR" && break
21790+ done
21791 fi
21792-if test -z "$ac_cv_prog_AR"; then
21793+if test -z "$AR"; then
21794 ac_ct_AR=$AR
21795- # Extract the first word of "ar", so it can be a program name with args.
21796-set dummy ar; ac_word=$2
21797+ for ac_prog in ar
21798+do
21799+ # Extract the first word of "$ac_prog", so it can be a program name with args.
21800+set dummy $ac_prog; ac_word=$2
21801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21802 $as_echo_n "checking for $ac_word... " >&6; }
21803 if ${ac_cv_prog_ac_ct_AR+:} false; then :
21804@@ -6635,7 +6904,7 @@ do
21805 test -z "$as_dir" && as_dir=.
21806 for ac_exec_ext in '' $ac_executable_extensions; do
21807 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21808- ac_cv_prog_ac_ct_AR="ar"
21809+ ac_cv_prog_ac_ct_AR="$ac_prog"
21810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21811 break 2
21812 fi
21813@@ -6654,6 +6923,10 @@ else
21814 $as_echo "no" >&6; }
21815 fi
21816
21817+
21818+ test -n "$ac_ct_AR" && break
21819+done
21820+
21821 if test "x$ac_ct_AR" = x; then
21822 AR="false"
21823 else
21824@@ -6665,29 +6938,81 @@ ac_tool_warned=yes ;;
21825 esac
21826 AR=$ac_ct_AR
21827 fi
21828-else
21829- AR="$ac_cv_prog_AR"
21830 fi
21831
21832-test -z "$AR" && AR=ar
21833-if test -n "$plugin_option"; then
21834- if $AR --help 2>&1 | grep -q "\--plugin"; then
21835- touch conftest.c
21836- $AR $plugin_option rc conftest.a conftest.c
21837- if test "$?" != 0; then
21838- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
21839+ touch conftest.c
21840+ $AR $plugin_option rc conftest.a conftest.c
21841+ if test "$?" != 0; then
21842+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
21843 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
21844- else
21845- AR="$AR $plugin_option"
21846- fi
21847- rm -f conftest.*
21848+ else
21849+ AR="$AR $plugin_option"
21850 fi
21851-fi
21852-test -z "$AR_FLAGS" && AR_FLAGS=cru
21853+ rm -f conftest.*
21854+: ${AR=ar}
21855+: ${AR_FLAGS=cru}
21856+
21857+
21858+
21859+
21860+
21861+
21862+
21863
21864
21865
21866
21867+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
21868+$as_echo_n "checking for archiver @FILE support... " >&6; }
21869+if ${lt_cv_ar_at_file+:} false; then :
21870+ $as_echo_n "(cached) " >&6
21871+else
21872+ lt_cv_ar_at_file=no
21873+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21874+/* end confdefs.h. */
21875+
21876+int
21877+main ()
21878+{
21879+
21880+ ;
21881+ return 0;
21882+}
21883+_ACEOF
21884+if ac_fn_c_try_compile "$LINENO"; then :
21885+ echo conftest.$ac_objext > conftest.lst
21886+ lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
21887+ { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
21888+ (eval $lt_ar_try) 2>&5
21889+ ac_status=$?
21890+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21891+ test $ac_status = 0; }
21892+ if test "$ac_status" -eq 0; then
21893+ # Ensure the archiver fails upon bogus file names.
21894+ rm -f conftest.$ac_objext libconftest.a
21895+ { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
21896+ (eval $lt_ar_try) 2>&5
21897+ ac_status=$?
21898+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21899+ test $ac_status = 0; }
21900+ if test "$ac_status" -ne 0; then
21901+ lt_cv_ar_at_file=@
21902+ fi
21903+ fi
21904+ rm -f conftest.* libconftest.a
21905+
21906+fi
21907+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21908+
21909+fi
21910+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
21911+$as_echo "$lt_cv_ar_at_file" >&6; }
21912+
21913+if test "x$lt_cv_ar_at_file" = xno; then
21914+ archiver_list_spec=
21915+else
21916+ archiver_list_spec=$lt_cv_ar_at_file
21917+fi
21918
21919
21920
21921@@ -7034,8 +7359,8 @@ esac
21922 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
21923
21924 # Transform an extracted symbol line into symbol name and symbol address
21925-lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
21926-lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
21927+lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
21928+lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
21929
21930 # Handle CRLF in mingw tool chain
21931 opt_cr=
21932@@ -7071,6 +7396,7 @@ for ac_symprfx in "" "_"; do
21933 else
21934 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
21935 fi
21936+ lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
21937
21938 # Check to see that the pipe works correctly.
21939 pipe_works=no
21940@@ -7112,6 +7438,18 @@ _LT_EOF
21941 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
21942 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
21943 cat <<_LT_EOF > conftest.$ac_ext
21944+/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
21945+#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
21946+/* DATA imports from DLLs on WIN32 con't be const, because runtime
21947+ relocations are performed -- see ld's documentation on pseudo-relocs. */
21948+# define LT_DLSYM_CONST
21949+#elif defined(__osf__)
21950+/* This system does not cope well with relocations in const data. */
21951+# define LT_DLSYM_CONST
21952+#else
21953+# define LT_DLSYM_CONST const
21954+#endif
21955+
21956 #ifdef __cplusplus
21957 extern "C" {
21958 #endif
21959@@ -7123,7 +7461,7 @@ _LT_EOF
21960 cat <<_LT_EOF >> conftest.$ac_ext
21961
21962 /* The mapping between symbol names and symbols. */
21963-const struct {
21964+LT_DLSYM_CONST struct {
21965 const char *name;
21966 void *address;
21967 }
21968@@ -7149,8 +7487,8 @@ static const void *lt_preloaded_setup() {
21969 _LT_EOF
21970 # Now try linking the two files.
21971 mv conftest.$ac_objext conftstm.$ac_objext
21972- lt_save_LIBS="$LIBS"
21973- lt_save_CFLAGS="$CFLAGS"
21974+ lt_globsym_save_LIBS=$LIBS
21975+ lt_globsym_save_CFLAGS=$CFLAGS
21976 LIBS="conftstm.$ac_objext"
21977 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
21978 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
21979@@ -7160,8 +7498,8 @@ _LT_EOF
21980 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
21981 pipe_works=yes
21982 fi
21983- LIBS="$lt_save_LIBS"
21984- CFLAGS="$lt_save_CFLAGS"
21985+ LIBS=$lt_globsym_save_LIBS
21986+ CFLAGS=$lt_globsym_save_CFLAGS
21987 else
21988 echo "cannot find nm_test_func in $nlist" >&5
21989 fi
21990@@ -7198,6 +7536,16 @@ else
21991 $as_echo "ok" >&6; }
21992 fi
21993
21994+# Response file support.
21995+if test "$lt_cv_nm_interface" = "MS dumpbin"; then
21996+ nm_file_list_spec='@'
21997+elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
21998+ nm_file_list_spec='@'
21999+fi
22000+
22001+
22002+
22003+
22004
22005
22006
22007@@ -7214,6 +7562,45 @@ fi
22008
22009
22010
22011+
22012+
22013+
22014+
22015+
22016+
22017+
22018+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
22019+$as_echo_n "checking for sysroot... " >&6; }
22020+
22021+# Check whether --with-libtool-sysroot was given.
22022+if test "${with_libtool_sysroot+set}" = set; then :
22023+ withval=$with_libtool_sysroot;
22024+else
22025+ with_libtool_sysroot=no
22026+fi
22027+
22028+
22029+lt_sysroot=
22030+case ${with_libtool_sysroot} in #(
22031+ yes)
22032+ if test "$GCC" = yes; then
22033+ lt_sysroot=`$CC --print-sysroot 2>/dev/null`
22034+ fi
22035+ ;; #(
22036+ /*)
22037+ lt_sysroot=`echo "$with_libtool_sysroot" | sed -e "$sed_quote_subst"`
22038+ ;; #(
22039+ no|'')
22040+ ;; #(
22041+ *)
22042+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_libtool_sysroot}" >&5
22043+$as_echo "${with_libtool_sysroot}" >&6; }
22044+ as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
22045+ ;;
22046+esac
22047+
22048+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
22049+$as_echo "${lt_sysroot:-no}" >&6; }
22050
22051
22052
22053@@ -7419,11 +7806,128 @@ sparc*-*solaris*)
22054 ;;
22055 esac
22056 fi
22057- rm -rf conftest*
22058- ;;
22059+ rm -rf conftest*
22060+ ;;
22061+esac
22062+
22063+need_locks="$enable_libtool_lock"
22064+
22065+if test -n "$ac_tool_prefix"; then
22066+ # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
22067+set dummy ${ac_tool_prefix}mt; ac_word=$2
22068+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22069+$as_echo_n "checking for $ac_word... " >&6; }
22070+if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
22071+ $as_echo_n "(cached) " >&6
22072+else
22073+ if test -n "$MANIFEST_TOOL"; then
22074+ ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
22075+else
22076+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22077+for as_dir in $PATH
22078+do
22079+ IFS=$as_save_IFS
22080+ test -z "$as_dir" && as_dir=.
22081+ for ac_exec_ext in '' $ac_executable_extensions; do
22082+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22083+ ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
22084+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22085+ break 2
22086+ fi
22087+done
22088+ done
22089+IFS=$as_save_IFS
22090+
22091+fi
22092+fi
22093+MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
22094+if test -n "$MANIFEST_TOOL"; then
22095+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
22096+$as_echo "$MANIFEST_TOOL" >&6; }
22097+else
22098+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22099+$as_echo "no" >&6; }
22100+fi
22101+
22102+
22103+fi
22104+if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
22105+ ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
22106+ # Extract the first word of "mt", so it can be a program name with args.
22107+set dummy mt; ac_word=$2
22108+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22109+$as_echo_n "checking for $ac_word... " >&6; }
22110+if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
22111+ $as_echo_n "(cached) " >&6
22112+else
22113+ if test -n "$ac_ct_MANIFEST_TOOL"; then
22114+ ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
22115+else
22116+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22117+for as_dir in $PATH
22118+do
22119+ IFS=$as_save_IFS
22120+ test -z "$as_dir" && as_dir=.
22121+ for ac_exec_ext in '' $ac_executable_extensions; do
22122+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22123+ ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
22124+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22125+ break 2
22126+ fi
22127+done
22128+ done
22129+IFS=$as_save_IFS
22130+
22131+fi
22132+fi
22133+ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
22134+if test -n "$ac_ct_MANIFEST_TOOL"; then
22135+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
22136+$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
22137+else
22138+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22139+$as_echo "no" >&6; }
22140+fi
22141+
22142+ if test "x$ac_ct_MANIFEST_TOOL" = x; then
22143+ MANIFEST_TOOL=":"
22144+ else
22145+ case $cross_compiling:$ac_tool_warned in
22146+yes:)
22147+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
22148+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22149+ac_tool_warned=yes ;;
22150 esac
22151+ MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
22152+ fi
22153+else
22154+ MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
22155+fi
22156+
22157+test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
22158+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
22159+$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
22160+if ${lt_cv_path_mainfest_tool+:} false; then :
22161+ $as_echo_n "(cached) " >&6
22162+else
22163+ lt_cv_path_mainfest_tool=no
22164+ echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
22165+ $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
22166+ cat conftest.err >&5
22167+ if $GREP 'Manifest Tool' conftest.out > /dev/null; then
22168+ lt_cv_path_mainfest_tool=yes
22169+ fi
22170+ rm -f conftest*
22171+fi
22172+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
22173+$as_echo "$lt_cv_path_mainfest_tool" >&6; }
22174+if test "x$lt_cv_path_mainfest_tool" != xyes; then
22175+ MANIFEST_TOOL=:
22176+fi
22177+
22178+
22179+
22180
22181-need_locks="$enable_libtool_lock"
22182
22183
22184 case $host_os in
22185@@ -7988,6 +8492,8 @@ _LT_EOF
22186 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
22187 echo "$AR cru libconftest.a conftest.o" >&5
22188 $AR cru libconftest.a conftest.o 2>&5
22189+ echo "$RANLIB libconftest.a" >&5
22190+ $RANLIB libconftest.a 2>&5
22191 cat > conftest.c << _LT_EOF
22192 int main() { return 0;}
22193 _LT_EOF
22194@@ -8542,8 +9048,6 @@ fi
22195 lt_prog_compiler_pic=
22196 lt_prog_compiler_static=
22197
22198-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
22199-$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
22200
22201 if test "$GCC" = yes; then
22202 lt_prog_compiler_wl='-Wl,'
22203@@ -8709,6 +9213,12 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
22204 lt_prog_compiler_pic='--shared'
22205 lt_prog_compiler_static='--static'
22206 ;;
22207+ nagfor*)
22208+ # NAG Fortran compiler
22209+ lt_prog_compiler_wl='-Wl,-Wl,,'
22210+ lt_prog_compiler_pic='-PIC'
22211+ lt_prog_compiler_static='-Bstatic'
22212+ ;;
22213 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
22214 # Portland Group compilers (*not* the Pentium gcc compiler,
22215 # which looks to be a dead project)
22216@@ -8771,7 +9281,7 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
22217 lt_prog_compiler_pic='-KPIC'
22218 lt_prog_compiler_static='-Bstatic'
22219 case $cc_basename in
22220- f77* | f90* | f95*)
22221+ f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
22222 lt_prog_compiler_wl='-Qoption ld ';;
22223 *)
22224 lt_prog_compiler_wl='-Wl,';;
22225@@ -8828,13 +9338,17 @@ case $host_os in
22226 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
22227 ;;
22228 esac
22229-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
22230-$as_echo "$lt_prog_compiler_pic" >&6; }
22231-
22232-
22233-
22234-
22235
22236+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
22237+$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
22238+if ${lt_cv_prog_compiler_pic+:} false; then :
22239+ $as_echo_n "(cached) " >&6
22240+else
22241+ lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
22242+fi
22243+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
22244+$as_echo "$lt_cv_prog_compiler_pic" >&6; }
22245+lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
22246
22247 #
22248 # Check to make sure the PIC flag actually works.
22249@@ -8895,6 +9409,11 @@ fi
22250
22251
22252
22253+
22254+
22255+
22256+
22257+
22258 #
22259 # Check to make sure the static flag actually works.
22260 #
22261@@ -9245,7 +9764,8 @@ _LT_EOF
22262 allow_undefined_flag=unsupported
22263 always_export_symbols=no
22264 enable_shared_with_static_runtimes=yes
22265- export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
22266+ export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
22267+ exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
22268
22269 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
22270 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22271@@ -9344,12 +9864,12 @@ _LT_EOF
22272 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
22273 hardcode_libdir_flag_spec=
22274 hardcode_libdir_flag_spec_ld='-rpath $libdir'
22275- archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
22276+ archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
22277 if test "x$supports_anon_versioning" = xyes; then
22278 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
22279 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22280 echo "local: *; };" >> $output_objdir/$libname.ver~
22281- $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
22282+ $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
22283 fi
22284 ;;
22285 esac
22286@@ -9363,8 +9883,8 @@ _LT_EOF
22287 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
22288 wlarc=
22289 else
22290- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22291- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22292+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22293+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22294 fi
22295 ;;
22296
22297@@ -9382,8 +9902,8 @@ _LT_EOF
22298
22299 _LT_EOF
22300 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
22301- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22302- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22303+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22304+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22305 else
22306 ld_shlibs=no
22307 fi
22308@@ -9429,8 +9949,8 @@ _LT_EOF
22309
22310 *)
22311 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
22312- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22313- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22314+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22315+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22316 else
22317 ld_shlibs=no
22318 fi
22319@@ -9560,7 +10080,13 @@ _LT_EOF
22320 allow_undefined_flag='-berok'
22321 # Determine the default libpath from the value encoded in an
22322 # empty executable.
22323- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22324+ if test "${lt_cv_aix_libpath+set}" = set; then
22325+ aix_libpath=$lt_cv_aix_libpath
22326+else
22327+ if ${lt_cv_aix_libpath_+:} false; then :
22328+ $as_echo_n "(cached) " >&6
22329+else
22330+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22331 /* end confdefs.h. */
22332
22333 int
22334@@ -9573,22 +10099,29 @@ main ()
22335 _ACEOF
22336 if ac_fn_c_try_link "$LINENO"; then :
22337
22338-lt_aix_libpath_sed='
22339- /Import File Strings/,/^$/ {
22340- /^0/ {
22341- s/^0 *\(.*\)$/\1/
22342- p
22343- }
22344- }'
22345-aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22346-# Check for a 64-bit object if we didn't find anything.
22347-if test -z "$aix_libpath"; then
22348- aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22349-fi
22350+ lt_aix_libpath_sed='
22351+ /Import File Strings/,/^$/ {
22352+ /^0/ {
22353+ s/^0 *\([^ ]*\) *$/\1/
22354+ p
22355+ }
22356+ }'
22357+ lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22358+ # Check for a 64-bit object if we didn't find anything.
22359+ if test -z "$lt_cv_aix_libpath_"; then
22360+ lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22361+ fi
22362 fi
22363 rm -f core conftest.err conftest.$ac_objext \
22364 conftest$ac_exeext conftest.$ac_ext
22365-if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22366+ if test -z "$lt_cv_aix_libpath_"; then
22367+ lt_cv_aix_libpath_="/usr/lib:/lib"
22368+ fi
22369+
22370+fi
22371+
22372+ aix_libpath=$lt_cv_aix_libpath_
22373+fi
22374
22375 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
22376 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
22377@@ -9600,7 +10133,13 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22378 else
22379 # Determine the default libpath from the value encoded in an
22380 # empty executable.
22381- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22382+ if test "${lt_cv_aix_libpath+set}" = set; then
22383+ aix_libpath=$lt_cv_aix_libpath
22384+else
22385+ if ${lt_cv_aix_libpath_+:} false; then :
22386+ $as_echo_n "(cached) " >&6
22387+else
22388+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22389 /* end confdefs.h. */
22390
22391 int
22392@@ -9613,22 +10152,29 @@ main ()
22393 _ACEOF
22394 if ac_fn_c_try_link "$LINENO"; then :
22395
22396-lt_aix_libpath_sed='
22397- /Import File Strings/,/^$/ {
22398- /^0/ {
22399- s/^0 *\(.*\)$/\1/
22400- p
22401- }
22402- }'
22403-aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22404-# Check for a 64-bit object if we didn't find anything.
22405-if test -z "$aix_libpath"; then
22406- aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22407-fi
22408+ lt_aix_libpath_sed='
22409+ /Import File Strings/,/^$/ {
22410+ /^0/ {
22411+ s/^0 *\([^ ]*\) *$/\1/
22412+ p
22413+ }
22414+ }'
22415+ lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22416+ # Check for a 64-bit object if we didn't find anything.
22417+ if test -z "$lt_cv_aix_libpath_"; then
22418+ lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22419+ fi
22420 fi
22421 rm -f core conftest.err conftest.$ac_objext \
22422 conftest$ac_exeext conftest.$ac_ext
22423-if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22424+ if test -z "$lt_cv_aix_libpath_"; then
22425+ lt_cv_aix_libpath_="/usr/lib:/lib"
22426+ fi
22427+
22428+fi
22429+
22430+ aix_libpath=$lt_cv_aix_libpath_
22431+fi
22432
22433 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
22434 # Warning - without using the other run time loading flags,
22435@@ -9673,20 +10219,63 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22436 # Microsoft Visual C++.
22437 # hardcode_libdir_flag_spec is actually meaningless, as there is
22438 # no search path for DLLs.
22439- hardcode_libdir_flag_spec=' '
22440- allow_undefined_flag=unsupported
22441- # Tell ltmain to make .lib files, not .a files.
22442- libext=lib
22443- # Tell ltmain to make .dll files, not .so files.
22444- shrext_cmds=".dll"
22445- # FIXME: Setting linknames here is a bad hack.
22446- archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
22447- # The linker will automatically build a .lib file if we build a DLL.
22448- old_archive_from_new_cmds='true'
22449- # FIXME: Should let the user specify the lib program.
22450- old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
22451- fix_srcfile_path='`cygpath -w "$srcfile"`'
22452- enable_shared_with_static_runtimes=yes
22453+ case $cc_basename in
22454+ cl*)
22455+ # Native MSVC
22456+ hardcode_libdir_flag_spec=' '
22457+ allow_undefined_flag=unsupported
22458+ always_export_symbols=yes
22459+ file_list_spec='@'
22460+ # Tell ltmain to make .lib files, not .a files.
22461+ libext=lib
22462+ # Tell ltmain to make .dll files, not .so files.
22463+ shrext_cmds=".dll"
22464+ # FIXME: Setting linknames here is a bad hack.
22465+ archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
22466+ archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
22467+ sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
22468+ else
22469+ sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
22470+ fi~
22471+ $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
22472+ linknames='
22473+ # The linker will not automatically build a static lib if we build a DLL.
22474+ # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
22475+ enable_shared_with_static_runtimes=yes
22476+ export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
22477+ # Don't use ranlib
22478+ old_postinstall_cmds='chmod 644 $oldlib'
22479+ postlink_cmds='lt_outputfile="@OUTPUT@"~
22480+ lt_tool_outputfile="@TOOL_OUTPUT@"~
22481+ case $lt_outputfile in
22482+ *.exe|*.EXE) ;;
22483+ *)
22484+ lt_outputfile="$lt_outputfile.exe"
22485+ lt_tool_outputfile="$lt_tool_outputfile.exe"
22486+ ;;
22487+ esac~
22488+ if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
22489+ $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
22490+ $RM "$lt_outputfile.manifest";
22491+ fi'
22492+ ;;
22493+ *)
22494+ # Assume MSVC wrapper
22495+ hardcode_libdir_flag_spec=' '
22496+ allow_undefined_flag=unsupported
22497+ # Tell ltmain to make .lib files, not .a files.
22498+ libext=lib
22499+ # Tell ltmain to make .dll files, not .so files.
22500+ shrext_cmds=".dll"
22501+ # FIXME: Setting linknames here is a bad hack.
22502+ archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
22503+ # The linker will automatically build a .lib file if we build a DLL.
22504+ old_archive_from_new_cmds='true'
22505+ # FIXME: Should let the user specify the lib program.
22506+ old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
22507+ enable_shared_with_static_runtimes=yes
22508+ ;;
22509+ esac
22510 ;;
22511
22512 darwin* | rhapsody*)
22513@@ -9747,7 +10336,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22514
22515 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22516 freebsd* | dragonfly*)
22517- archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22518+ archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22519 hardcode_libdir_flag_spec='-R$libdir'
22520 hardcode_direct=yes
22521 hardcode_shlibpath_var=no
22522@@ -9755,7 +10344,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22523
22524 hpux9*)
22525 if test "$GCC" = yes; then
22526- archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
22527+ archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
22528 else
22529 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
22530 fi
22531@@ -9771,7 +10360,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22532
22533 hpux10*)
22534 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
22535- archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22536+ archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22537 else
22538 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22539 fi
22540@@ -9795,10 +10384,10 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22541 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22542 ;;
22543 ia64*)
22544- archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22545+ archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22546 ;;
22547 *)
22548- archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22549+ archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22550 ;;
22551 esac
22552 else
22553@@ -9877,23 +10466,36 @@ fi
22554
22555 irix5* | irix6* | nonstopux*)
22556 if test "$GCC" = yes; then
22557- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
22558+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
22559 # Try to use the -exported_symbol ld option, if it does not
22560 # work, assume that -exports_file does not work either and
22561 # implicitly export all symbols.
22562- save_LDFLAGS="$LDFLAGS"
22563- LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
22564- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22565+ # This should be the same for all languages, so no per-tag cache variable.
22566+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
22567+$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
22568+if ${lt_cv_irix_exported_symbol+:} false; then :
22569+ $as_echo_n "(cached) " >&6
22570+else
22571+ save_LDFLAGS="$LDFLAGS"
22572+ LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
22573+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22574 /* end confdefs.h. */
22575-int foo(void) {}
22576+int foo (void) { return 0; }
22577 _ACEOF
22578 if ac_fn_c_try_link "$LINENO"; then :
22579- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
22580-
22581+ lt_cv_irix_exported_symbol=yes
22582+else
22583+ lt_cv_irix_exported_symbol=no
22584 fi
22585 rm -f core conftest.err conftest.$ac_objext \
22586 conftest$ac_exeext conftest.$ac_ext
22587- LDFLAGS="$save_LDFLAGS"
22588+ LDFLAGS="$save_LDFLAGS"
22589+fi
22590+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
22591+$as_echo "$lt_cv_irix_exported_symbol" >&6; }
22592+ if test "$lt_cv_irix_exported_symbol" = yes; then
22593+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
22594+ fi
22595 else
22596 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
22597 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
22598@@ -9978,7 +10580,7 @@ rm -f core conftest.err conftest.$ac_objext \
22599 osf4* | osf5*) # as osf3* with the addition of -msym flag
22600 if test "$GCC" = yes; then
22601 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
22602- archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
22603+ archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
22604 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
22605 else
22606 allow_undefined_flag=' -expect_unresolved \*'
22607@@ -9997,9 +10599,9 @@ rm -f core conftest.err conftest.$ac_objext \
22608 no_undefined_flag=' -z defs'
22609 if test "$GCC" = yes; then
22610 wlarc='${wl}'
22611- archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22612+ archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22613 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
22614- $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
22615+ $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
22616 else
22617 case `$CC -V 2>&1` in
22618 *"Compilers 5.0"*)
22619@@ -10575,8 +11177,9 @@ cygwin* | mingw* | pw32* | cegcc*)
22620 need_version=no
22621 need_lib_prefix=no
22622
22623- case $GCC,$host_os in
22624- yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
22625+ case $GCC,$cc_basename in
22626+ yes,*)
22627+ # gcc
22628 library_names_spec='$libname.dll.a'
22629 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22630 postinstall_cmds='base_file=`basename \${file}`~
22631@@ -10609,13 +11212,71 @@ cygwin* | mingw* | pw32* | cegcc*)
22632 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22633 ;;
22634 esac
22635+ dynamic_linker='Win32 ld.exe'
22636+ ;;
22637+
22638+ *,cl*)
22639+ # Native MSVC
22640+ libname_spec='$name'
22641+ soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22642+ library_names_spec='${libname}.dll.lib'
22643+
22644+ case $build_os in
22645+ mingw*)
22646+ sys_lib_search_path_spec=
22647+ lt_save_ifs=$IFS
22648+ IFS=';'
22649+ for lt_path in $LIB
22650+ do
22651+ IFS=$lt_save_ifs
22652+ # Let DOS variable expansion print the short 8.3 style file name.
22653+ lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
22654+ sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
22655+ done
22656+ IFS=$lt_save_ifs
22657+ # Convert to MSYS style.
22658+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
22659+ ;;
22660+ cygwin*)
22661+ # Convert to unix form, then to dos form, then back to unix form
22662+ # but this time dos style (no spaces!) so that the unix form looks
22663+ # like /cygdrive/c/PROGRA~1:/cygdr...
22664+ sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
22665+ sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
22666+ sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22667+ ;;
22668+ *)
22669+ sys_lib_search_path_spec="$LIB"
22670+ if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
22671+ # It is most probably a Windows format PATH.
22672+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22673+ else
22674+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22675+ fi
22676+ # FIXME: find the short name or the path components, as spaces are
22677+ # common. (e.g. "Program Files" -> "PROGRA~1")
22678+ ;;
22679+ esac
22680+
22681+ # DLL is installed to $(libdir)/../bin by postinstall_cmds
22682+ postinstall_cmds='base_file=`basename \${file}`~
22683+ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
22684+ dldir=$destdir/`dirname \$dlpath`~
22685+ test -d \$dldir || mkdir -p \$dldir~
22686+ $install_prog $dir/$dlname \$dldir/$dlname'
22687+ postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22688+ dlpath=$dir/\$dldll~
22689+ $RM \$dlpath'
22690+ shlibpath_overrides_runpath=yes
22691+ dynamic_linker='Win32 link.exe'
22692 ;;
22693
22694 *)
22695+ # Assume MSVC wrapper
22696 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22697+ dynamic_linker='Win32 ld.exe'
22698 ;;
22699 esac
22700- dynamic_linker='Win32 ld.exe'
22701 # FIXME: first we should search . and the directory the executable is in
22702 shlibpath_var=PATH
22703 ;;
22704@@ -11517,7 +12178,7 @@ else
22705 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
22706 lt_status=$lt_dlunknown
22707 cat > conftest.$ac_ext <<_LT_EOF
22708-#line 11520 "configure"
22709+#line $LINENO "configure"
22710 #include "confdefs.h"
22711
22712 #if HAVE_DLFCN_H
22713@@ -11561,10 +12222,10 @@ else
22714 /* When -fvisbility=hidden is used, assume the code has been annotated
22715 correspondingly for the symbols needed. */
22716 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
22717-void fnord () __attribute__((visibility("default")));
22718+int fnord () __attribute__((visibility("default")));
22719 #endif
22720
22721-void fnord () { int i=42; }
22722+int fnord () { return 42; }
22723 int main ()
22724 {
22725 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
22726@@ -11623,7 +12284,7 @@ else
22727 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
22728 lt_status=$lt_dlunknown
22729 cat > conftest.$ac_ext <<_LT_EOF
22730-#line 11626 "configure"
22731+#line $LINENO "configure"
22732 #include "confdefs.h"
22733
22734 #if HAVE_DLFCN_H
22735@@ -11667,10 +12328,10 @@ else
22736 /* When -fvisbility=hidden is used, assume the code has been annotated
22737 correspondingly for the symbols needed. */
22738 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
22739-void fnord () __attribute__((visibility("default")));
22740+int fnord () __attribute__((visibility("default")));
22741 #endif
22742
22743-void fnord () { int i=42; }
22744+int fnord () { return 42; }
22745 int main ()
22746 {
22747 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
22748@@ -13490,7 +14151,7 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22749 #
22750 # INIT-COMMANDS
22751 #
22752-AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22753+AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
22754
22755
22756 # The HP-UX ksh and POSIX shell print the target directory to stdout
22757@@ -13528,13 +14189,20 @@ exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
22758 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
22759 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
22760 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
22761+lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
22762+lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
22763 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
22764 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
22765 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
22766 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
22767 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
22768+file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
22769+want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
22770+DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
22771+sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
22772 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
22773 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
22774+archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
22775 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
22776 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
22777 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22778@@ -13549,14 +14217,17 @@ lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$de
22779 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
22780 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
22781 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
22782+nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
22783+lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
22784 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
22785 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
22786 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
22787-lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
22788 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
22789+lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
22790 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
22791 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
22792 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
22793+MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
22794 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
22795 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
22796 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
22797@@ -13589,12 +14260,12 @@ hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_q
22798 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
22799 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
22800 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
22801-fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
22802 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
22803 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
22804 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
22805 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
22806 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
22807+postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
22808 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
22809 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
22810 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
22811@@ -13649,8 +14320,13 @@ reload_flag \
22812 OBJDUMP \
22813 deplibs_check_method \
22814 file_magic_cmd \
22815+file_magic_glob \
22816+want_nocaseglob \
22817+DLLTOOL \
22818+sharedlib_from_linklib_cmd \
22819 AR \
22820 AR_FLAGS \
22821+archiver_list_spec \
22822 STRIP \
22823 RANLIB \
22824 CC \
22825@@ -13660,12 +14336,14 @@ lt_cv_sys_global_symbol_pipe \
22826 lt_cv_sys_global_symbol_to_cdecl \
22827 lt_cv_sys_global_symbol_to_c_name_address \
22828 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
22829+nm_file_list_spec \
22830 lt_prog_compiler_no_builtin_flag \
22831-lt_prog_compiler_wl \
22832 lt_prog_compiler_pic \
22833+lt_prog_compiler_wl \
22834 lt_prog_compiler_static \
22835 lt_cv_prog_compiler_c_o \
22836 need_locks \
22837+MANIFEST_TOOL \
22838 DSYMUTIL \
22839 NMEDIT \
22840 LIPO \
22841@@ -13681,7 +14359,6 @@ no_undefined_flag \
22842 hardcode_libdir_flag_spec \
22843 hardcode_libdir_flag_spec_ld \
22844 hardcode_libdir_separator \
22845-fix_srcfile_path \
22846 exclude_expsyms \
22847 include_expsyms \
22848 file_list_spec \
22849@@ -13717,6 +14394,7 @@ module_cmds \
22850 module_expsym_cmds \
22851 export_symbols_cmds \
22852 prelink_cmds \
22853+postlink_cmds \
22854 postinstall_cmds \
22855 postuninstall_cmds \
22856 finish_cmds \
22857@@ -14363,29 +15041,35 @@ $as_echo "$as_me: executing $ac_file commands" >&6;}
22858 # Older Autoconf quotes --file arguments for eval, but not when files
22859 # are listed without --file. Let's play safe and only enable the eval
22860 # if we detect the quoting.
22861- case $CONFIG_FILES in
22862- *\'*) eval set x "$CONFIG_FILES" ;;
22863- *) set x $CONFIG_FILES ;;
22864- esac
22865+ # TODO: see whether this extra hack can be removed once we start
22866+ # requiring Autoconf 2.70 or later.
22867+ case $CONFIG_FILES in #(
22868+ *\'*) :
22869+ eval set x "$CONFIG_FILES" ;; #(
22870+ *) :
22871+ set x $CONFIG_FILES ;; #(
22872+ *) :
22873+ ;;
22874+esac
22875 shift
22876- for mf
22877+ # Used to flag and report bootstrapping failures.
22878+ am_rc=0
22879+ for am_mf
22880 do
22881 # Strip MF so we end up with the name of the file.
22882- mf=`echo "$mf" | sed -e 's/:.*$//'`
22883- # Check whether this is an Automake generated Makefile or not.
22884- # We used to match only the files named 'Makefile.in', but
22885- # some people rename them; so instead we look at the file content.
22886- # Grep'ing the first line is not enough: some people post-process
22887- # each Makefile.in and add a new line on top of each file to say so.
22888- # Grep'ing the whole file is not good either: AIX grep has a line
22889+ am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
22890+ # Check whether this is an Automake generated Makefile which includes
22891+ # dependency-tracking related rules and includes.
22892+ # Grep'ing the whole file directly is not great: AIX grep has a line
22893 # limit of 2048, but all sed's we know have understand at least 4000.
22894- if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
22895- dirpart=`$as_dirname -- "$mf" ||
22896-$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22897- X"$mf" : 'X\(//\)[^/]' \| \
22898- X"$mf" : 'X\(//\)$' \| \
22899- X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22900-$as_echo X"$mf" |
22901+ sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
22902+ || continue
22903+ am_dirpart=`$as_dirname -- "$am_mf" ||
22904+$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22905+ X"$am_mf" : 'X\(//\)[^/]' \| \
22906+ X"$am_mf" : 'X\(//\)$' \| \
22907+ X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22908+$as_echo X"$am_mf" |
22909 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22910 s//\1/
22911 q
22912@@ -14403,53 +15087,50 @@ $as_echo X"$mf" |
22913 q
22914 }
22915 s/.*/./; q'`
22916- else
22917- continue
22918- fi
22919- # Extract the definition of DEPDIR, am__include, and am__quote
22920- # from the Makefile without running 'make'.
22921- DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22922- test -z "$DEPDIR" && continue
22923- am__include=`sed -n 's/^am__include = //p' < "$mf"`
22924- test -z "$am__include" && continue
22925- am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22926- # Find all dependency output files, they are included files with
22927- # $(DEPDIR) in their names. We invoke sed twice because it is the
22928- # simplest approach to changing $(DEPDIR) to its actual value in the
22929- # expansion.
22930- for file in `sed -n "
22931- s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22932- sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
22933- # Make sure the directory exists.
22934- test -f "$dirpart/$file" && continue
22935- fdir=`$as_dirname -- "$file" ||
22936-$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22937- X"$file" : 'X\(//\)[^/]' \| \
22938- X"$file" : 'X\(//\)$' \| \
22939- X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22940-$as_echo X"$file" |
22941- sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22942- s//\1/
22943- q
22944- }
22945- /^X\(\/\/\)[^/].*/{
22946+ am_filepart=`$as_basename -- "$am_mf" ||
22947+$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
22948+ X"$am_mf" : 'X\(//\)$' \| \
22949+ X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22950+$as_echo X/"$am_mf" |
22951+ sed '/^.*\/\([^/][^/]*\)\/*$/{
22952 s//\1/
22953 q
22954 }
22955- /^X\(\/\/\)$/{
22956+ /^X\/\(\/\/\)$/{
22957 s//\1/
22958 q
22959 }
22960- /^X\(\/\).*/{
22961+ /^X\/\(\/\).*/{
22962 s//\1/
22963 q
22964 }
22965 s/.*/./; q'`
22966- as_dir=$dirpart/$fdir; as_fn_mkdir_p
22967- # echo "creating $dirpart/$file"
22968- echo '# dummy' > "$dirpart/$file"
22969- done
22970+ { echo "$as_me:$LINENO: cd "$am_dirpart" \
22971+ && sed -e '/# am--include-marker/d' "$am_filepart" \
22972+ | $MAKE -f - am--depfiles" >&5
22973+ (cd "$am_dirpart" \
22974+ && sed -e '/# am--include-marker/d' "$am_filepart" \
22975+ | $MAKE -f - am--depfiles) >&5 2>&5
22976+ ac_status=$?
22977+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
22978+ (exit $ac_status); } || am_rc=$?
22979 done
22980+ if test $am_rc -ne 0; then
22981+ { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22982+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22983+as_fn_error $? "Something went wrong bootstrapping makefile fragments
22984+ for automatic dependency tracking. If GNU make was not used, consider
22985+ re-running the configure script with MAKE=\"gmake\" (or whatever is
22986+ necessary). You can also try re-running configure with the
22987+ '--disable-dependency-tracking' option to at least be able to build
22988+ the package (albeit without support for automatic dependency tracking).
22989+See \`config.log' for more details" "$LINENO" 5; }
22990+ fi
22991+ { am_dirpart=; unset am_dirpart;}
22992+ { am_filepart=; unset am_filepart;}
22993+ { am_mf=; unset am_mf;}
22994+ { am_rc=; unset am_rc;}
22995+ rm -f conftest-deps.mk
22996 }
22997 ;;
22998 "libtool":C)
22999@@ -14473,7 +15154,8 @@ $as_echo X"$file" |
23000 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
23001 #
23002 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
23003-# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
23004+# 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
23005+# Inc.
23006 # Written by Gordon Matzigkeit, 1996
23007 #
23008 # This file is part of GNU Libtool.
23009@@ -14576,19 +15258,42 @@ SP2NL=$lt_lt_SP2NL
23010 # turn newlines into spaces.
23011 NL2SP=$lt_lt_NL2SP
23012
23013+# convert \$build file names to \$host format.
23014+to_host_file_cmd=$lt_cv_to_host_file_cmd
23015+
23016+# convert \$build files to toolchain format.
23017+to_tool_file_cmd=$lt_cv_to_tool_file_cmd
23018+
23019 # An object symbol dumper.
23020 OBJDUMP=$lt_OBJDUMP
23021
23022 # Method to check whether dependent libraries are shared objects.
23023 deplibs_check_method=$lt_deplibs_check_method
23024
23025-# Command to use when deplibs_check_method == "file_magic".
23026+# Command to use when deplibs_check_method = "file_magic".
23027 file_magic_cmd=$lt_file_magic_cmd
23028
23029+# How to find potential files when deplibs_check_method = "file_magic".
23030+file_magic_glob=$lt_file_magic_glob
23031+
23032+# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
23033+want_nocaseglob=$lt_want_nocaseglob
23034+
23035+# DLL creation program.
23036+DLLTOOL=$lt_DLLTOOL
23037+
23038+# Command to associate shared and link libraries.
23039+sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
23040+
23041 # The archiver.
23042 AR=$lt_AR
23043+
23044+# Flags to create an archive.
23045 AR_FLAGS=$lt_AR_FLAGS
23046
23047+# How to feed a file listing to the archiver.
23048+archiver_list_spec=$lt_archiver_list_spec
23049+
23050 # A symbol stripping program.
23051 STRIP=$lt_STRIP
23052
23053@@ -14618,6 +15323,12 @@ global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23054 # Transform the output of nm in a C name address pair when lib prefix is needed.
23055 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
23056
23057+# Specify filename containing input files for \$NM.
23058+nm_file_list_spec=$lt_nm_file_list_spec
23059+
23060+# The root where to search for dependent libraries,and in which our libraries should be installed.
23061+lt_sysroot=$lt_sysroot
23062+
23063 # The name of the directory that contains temporary libtool files.
23064 objdir=$objdir
23065
23066@@ -14627,6 +15338,9 @@ MAGIC_CMD=$MAGIC_CMD
23067 # Must we lock files when doing compilation?
23068 need_locks=$lt_need_locks
23069
23070+# Manifest tool.
23071+MANIFEST_TOOL=$lt_MANIFEST_TOOL
23072+
23073 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
23074 DSYMUTIL=$lt_DSYMUTIL
23075
23076@@ -14741,12 +15455,12 @@ with_gcc=$GCC
23077 # Compiler flag to turn off builtin functions.
23078 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
23079
23080-# How to pass a linker flag through the compiler.
23081-wl=$lt_lt_prog_compiler_wl
23082-
23083 # Additional compiler flags for building library objects.
23084 pic_flag=$lt_lt_prog_compiler_pic
23085
23086+# How to pass a linker flag through the compiler.
23087+wl=$lt_lt_prog_compiler_wl
23088+
23089 # Compiler flag to prevent dynamic linking.
23090 link_static_flag=$lt_lt_prog_compiler_static
23091
23092@@ -14833,9 +15547,6 @@ inherit_rpath=$inherit_rpath
23093 # Whether libtool must link a program against all its dependency libraries.
23094 link_all_deplibs=$link_all_deplibs
23095
23096-# Fix the shell variable \$srcfile for the compiler.
23097-fix_srcfile_path=$lt_fix_srcfile_path
23098-
23099 # Set to "yes" if exported symbols are required.
23100 always_export_symbols=$always_export_symbols
23101
23102@@ -14851,6 +15562,9 @@ include_expsyms=$lt_include_expsyms
23103 # Commands necessary for linking programs (against libraries) with templates.
23104 prelink_cmds=$lt_prelink_cmds
23105
23106+# Commands necessary for finishing linking programs.
23107+postlink_cmds=$lt_postlink_cmds
23108+
23109 # Specify filename containing input files.
23110 file_list_spec=$lt_file_list_spec
23111
23112@@ -14883,210 +15597,169 @@ ltmain="$ac_aux_dir/ltmain.sh"
23113 # if finds mixed CR/LF and LF-only lines. Since sed operates in
23114 # text mode, it properly converts lines to CR/LF. This bash problem
23115 # is reportedly fixed, but why not run on old versions too?
23116- sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
23117- || (rm -f "$cfgfile"; exit 1)
23118-
23119- case $xsi_shell in
23120- yes)
23121- cat << \_LT_EOF >> "$cfgfile"
23122-
23123-# func_dirname file append nondir_replacement
23124-# Compute the dirname of FILE. If nonempty, add APPEND to the result,
23125-# otherwise set result to NONDIR_REPLACEMENT.
23126-func_dirname ()
23127-{
23128- case ${1} in
23129- */*) func_dirname_result="${1%/*}${2}" ;;
23130- * ) func_dirname_result="${3}" ;;
23131- esac
23132-}
23133-
23134-# func_basename file
23135-func_basename ()
23136-{
23137- func_basename_result="${1##*/}"
23138-}
23139-
23140-# func_dirname_and_basename file append nondir_replacement
23141-# perform func_basename and func_dirname in a single function
23142-# call:
23143-# dirname: Compute the dirname of FILE. If nonempty,
23144-# add APPEND to the result, otherwise set result
23145-# to NONDIR_REPLACEMENT.
23146-# value returned in "$func_dirname_result"
23147-# basename: Compute filename of FILE.
23148-# value retuned in "$func_basename_result"
23149-# Implementation must be kept synchronized with func_dirname
23150-# and func_basename. For efficiency, we do not delegate to
23151-# those functions but instead duplicate the functionality here.
23152-func_dirname_and_basename ()
23153-{
23154- case ${1} in
23155- */*) func_dirname_result="${1%/*}${2}" ;;
23156- * ) func_dirname_result="${3}" ;;
23157- esac
23158- func_basename_result="${1##*/}"
23159-}
23160-
23161-# func_stripname prefix suffix name
23162-# strip PREFIX and SUFFIX off of NAME.
23163-# PREFIX and SUFFIX must not contain globbing or regex special
23164-# characters, hashes, percent signs, but SUFFIX may contain a leading
23165-# dot (in which case that matches only a dot).
23166-func_stripname ()
23167-{
23168- # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
23169- # positional parameters, so assign one to ordinary parameter first.
23170- func_stripname_result=${3}
23171- func_stripname_result=${func_stripname_result#"${1}"}
23172- func_stripname_result=${func_stripname_result%"${2}"}
23173-}
23174-
23175-# func_opt_split
23176-func_opt_split ()
23177-{
23178- func_opt_split_opt=${1%%=*}
23179- func_opt_split_arg=${1#*=}
23180-}
23181-
23182-# func_lo2o object
23183-func_lo2o ()
23184-{
23185- case ${1} in
23186- *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
23187- *) func_lo2o_result=${1} ;;
23188- esac
23189-}
23190-
23191-# func_xform libobj-or-source
23192-func_xform ()
23193-{
23194- func_xform_result=${1%.*}.lo
23195-}
23196-
23197-# func_arith arithmetic-term...
23198-func_arith ()
23199-{
23200- func_arith_result=$(( $* ))
23201-}
23202-
23203-# func_len string
23204-# STRING may not start with a hyphen.
23205-func_len ()
23206-{
23207- func_len_result=${#1}
23208-}
23209-
23210-_LT_EOF
23211- ;;
23212- *) # Bourne compatible functions.
23213- cat << \_LT_EOF >> "$cfgfile"
23214-
23215-# func_dirname file append nondir_replacement
23216-# Compute the dirname of FILE. If nonempty, add APPEND to the result,
23217-# otherwise set result to NONDIR_REPLACEMENT.
23218-func_dirname ()
23219-{
23220- # Extract subdirectory from the argument.
23221- func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
23222- if test "X$func_dirname_result" = "X${1}"; then
23223- func_dirname_result="${3}"
23224- else
23225- func_dirname_result="$func_dirname_result${2}"
23226- fi
23227-}
23228-
23229-# func_basename file
23230-func_basename ()
23231-{
23232- func_basename_result=`$ECHO "${1}" | $SED "$basename"`
23233-}
23234-
23235-
23236-# func_stripname prefix suffix name
23237-# strip PREFIX and SUFFIX off of NAME.
23238-# PREFIX and SUFFIX must not contain globbing or regex special
23239-# characters, hashes, percent signs, but SUFFIX may contain a leading
23240-# dot (in which case that matches only a dot).
23241-# func_strip_suffix prefix name
23242-func_stripname ()
23243-{
23244- case ${2} in
23245- .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
23246- *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
23247- esac
23248-}
23249-
23250-# sed scripts:
23251-my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
23252-my_sed_long_arg='1s/^-[^=]*=//'
23253-
23254-# func_opt_split
23255-func_opt_split ()
23256-{
23257- func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
23258- func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
23259-}
23260-
23261-# func_lo2o object
23262-func_lo2o ()
23263-{
23264- func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
23265-}
23266-
23267-# func_xform libobj-or-source
23268-func_xform ()
23269-{
23270- func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
23271-}
23272-
23273-# func_arith arithmetic-term...
23274-func_arith ()
23275-{
23276- func_arith_result=`expr "$@"`
23277-}
23278-
23279-# func_len string
23280-# STRING may not start with a hyphen.
23281-func_len ()
23282-{
23283- func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
23284-}
23285-
23286-_LT_EOF
23287-esac
23288-
23289-case $lt_shell_append in
23290- yes)
23291- cat << \_LT_EOF >> "$cfgfile"
23292-
23293-# func_append var value
23294-# Append VALUE to the end of shell variable VAR.
23295-func_append ()
23296-{
23297- eval "$1+=\$2"
23298-}
23299-_LT_EOF
23300- ;;
23301- *)
23302- cat << \_LT_EOF >> "$cfgfile"
23303-
23304-# func_append var value
23305-# Append VALUE to the end of shell variable VAR.
23306-func_append ()
23307-{
23308- eval "$1=\$$1\$2"
23309-}
23310-
23311-_LT_EOF
23312- ;;
23313- esac
23314-
23315-
23316- sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
23317- || (rm -f "$cfgfile"; exit 1)
23318-
23319- mv -f "$cfgfile" "$ofile" ||
23320+ sed '$q' "$ltmain" >> "$cfgfile" \
23321+ || (rm -f "$cfgfile"; exit 1)
23322+
23323+ if test x"$xsi_shell" = xyes; then
23324+ sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
23325+func_dirname ()\
23326+{\
23327+\ case ${1} in\
23328+\ */*) func_dirname_result="${1%/*}${2}" ;;\
23329+\ * ) func_dirname_result="${3}" ;;\
23330+\ esac\
23331+} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
23332+ && mv -f "$cfgfile.tmp" "$cfgfile" \
23333+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23334+test 0 -eq $? || _lt_function_replace_fail=:
23335+
23336+
23337+ sed -e '/^func_basename ()$/,/^} # func_basename /c\
23338+func_basename ()\
23339+{\
23340+\ func_basename_result="${1##*/}"\
23341+} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
23342+ && mv -f "$cfgfile.tmp" "$cfgfile" \
23343+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23344+test 0 -eq $? || _lt_function_replace_fail=:
23345+
23346+
23347+ sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
23348+func_dirname_and_basename ()\
23349+{\
23350+\ case ${1} in\
23351+\ */*) func_dirname_result="${1%/*}${2}" ;;\
23352+\ * ) func_dirname_result="${3}" ;;\
23353+\ esac\
23354+\ func_basename_result="${1##*/}"\
23355+} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
23356+ && mv -f "$cfgfile.tmp" "$cfgfile" \
23357+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23358+test 0 -eq $? || _lt_function_replace_fail=:
23359+
23360+
23361+ sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
23362+func_stripname ()\
23363+{\
23364+\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
23365+\ # positional parameters, so assign one to ordinary parameter first.\
23366+\ func_stripname_result=${3}\
23367+\ func_stripname_result=${func_stripname_result#"${1}"}\
23368+\ func_stripname_result=${func_stripname_result%"${2}"}\
23369+} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
23370+ && mv -f "$cfgfile.tmp" "$cfgfile" \
23371+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23372+test 0 -eq $? || _lt_function_replace_fail=:
23373+
23374+
23375+ sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
23376+func_split_long_opt ()\
23377+{\
23378+\ func_split_long_opt_name=${1%%=*}\
23379+\ func_split_long_opt_arg=${1#*=}\
23380+} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
23381+ && mv -f "$cfgfile.tmp" "$cfgfile" \
23382+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23383+test 0 -eq $? || _lt_function_replace_fail=:
23384+
23385+
23386+ sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
23387+func_split_short_opt ()\
23388+{\
23389+\ func_split_short_opt_arg=${1#??}\
23390+\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
23391+} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
23392+ && mv -f "$cfgfile.tmp" "$cfgfile" \
23393+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23394+test 0 -eq $? || _lt_function_replace_fail=:
23395+
23396+
23397+ sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
23398+func_lo2o ()\
23399+{\
23400+\ case ${1} in\
23401+\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
23402+\ *) func_lo2o_result=${1} ;;\
23403+\ esac\
23404+} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
23405+ && mv -f "$cfgfile.tmp" "$cfgfile" \
23406+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23407+test 0 -eq $? || _lt_function_replace_fail=:
23408+
23409+
23410+ sed -e '/^func_xform ()$/,/^} # func_xform /c\
23411+func_xform ()\
23412+{\
23413+ func_xform_result=${1%.*}.lo\
23414+} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
23415+ && mv -f "$cfgfile.tmp" "$cfgfile" \
23416+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23417+test 0 -eq $? || _lt_function_replace_fail=:
23418+
23419+
23420+ sed -e '/^func_arith ()$/,/^} # func_arith /c\
23421+func_arith ()\
23422+{\
23423+ func_arith_result=$(( $* ))\
23424+} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
23425+ && mv -f "$cfgfile.tmp" "$cfgfile" \
23426+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23427+test 0 -eq $? || _lt_function_replace_fail=:
23428+
23429+
23430+ sed -e '/^func_len ()$/,/^} # func_len /c\
23431+func_len ()\
23432+{\
23433+ func_len_result=${#1}\
23434+} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
23435+ && mv -f "$cfgfile.tmp" "$cfgfile" \
23436+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23437+test 0 -eq $? || _lt_function_replace_fail=:
23438+
23439+fi
23440+
23441+if test x"$lt_shell_append" = xyes; then
23442+ sed -e '/^func_append ()$/,/^} # func_append /c\
23443+func_append ()\
23444+{\
23445+ eval "${1}+=\\${2}"\
23446+} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
23447+ && mv -f "$cfgfile.tmp" "$cfgfile" \
23448+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23449+test 0 -eq $? || _lt_function_replace_fail=:
23450+
23451+
23452+ sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
23453+func_append_quoted ()\
23454+{\
23455+\ func_quote_for_eval "${2}"\
23456+\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
23457+} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
23458+ && mv -f "$cfgfile.tmp" "$cfgfile" \
23459+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23460+test 0 -eq $? || _lt_function_replace_fail=:
23461+
23462+
23463+ # Save a `func_append' function call where possible by direct use of '+='
23464+ sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
23465+ && mv -f "$cfgfile.tmp" "$cfgfile" \
23466+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23467+ test 0 -eq $? || _lt_function_replace_fail=:
23468+else
23469+ # Save a `func_append' function call even when '+=' is not available
23470+ sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
23471+ && mv -f "$cfgfile.tmp" "$cfgfile" \
23472+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23473+ test 0 -eq $? || _lt_function_replace_fail=:
23474+fi
23475+
23476+if test x"$_lt_function_replace_fail" = x":"; then
23477+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
23478+$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
23479+fi
23480+
23481+
23482+ mv -f "$cfgfile" "$ofile" ||
23483 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23484 chmod +x "$ofile"
23485
23486diff --git a/libtool.m4 b/libtool.m4
23487index e36fdd3c0e2..4acf9d67956 100644
23488--- a/libtool.m4
23489+++ b/libtool.m4
23490@@ -1,7 +1,8 @@
23491 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
23492 #
23493 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
23494-# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
23495+# 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
23496+# Inc.
23497 # Written by Gordon Matzigkeit, 1996
23498 #
23499 # This file is free software; the Free Software Foundation gives
23500@@ -10,7 +11,8 @@
23501
23502 m4_define([_LT_COPYING], [dnl
23503 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
23504-# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
23505+# 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
23506+# Inc.
23507 # Written by Gordon Matzigkeit, 1996
23508 #
23509 # This file is part of GNU Libtool.
23510@@ -37,7 +39,7 @@ m4_define([_LT_COPYING], [dnl
23511 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
23512 ])
23513
23514-# serial 56 LT_INIT
23515+# serial 57 LT_INIT
23516
23517
23518 # LT_PREREQ(VERSION)
23519@@ -166,10 +168,13 @@ _LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
23520 dnl
23521 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
23522 m4_require([_LT_CHECK_SHELL_FEATURES])dnl
23523+m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl
23524 m4_require([_LT_CMD_RELOAD])dnl
23525 m4_require([_LT_CHECK_MAGIC_METHOD])dnl
23526+m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl
23527 m4_require([_LT_CMD_OLD_ARCHIVE])dnl
23528 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
23529+m4_require([_LT_WITH_SYSROOT])dnl
23530
23531 _LT_CONFIG_LIBTOOL_INIT([
23532 # See if we are running on zsh, and set the options which allow our
23533@@ -632,7 +637,7 @@ m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
23534 m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
23535 configured by $[0], generated by m4_PACKAGE_STRING.
23536
23537-Copyright (C) 2009 Free Software Foundation, Inc.
23538+Copyright (C) 2010 Free Software Foundation, Inc.
23539 This config.lt script is free software; the Free Software Foundation
23540 gives unlimited permision to copy, distribute and modify it."
23541
23542@@ -746,15 +751,12 @@ _LT_EOF
23543 # if finds mixed CR/LF and LF-only lines. Since sed operates in
23544 # text mode, it properly converts lines to CR/LF. This bash problem
23545 # is reportedly fixed, but why not run on old versions too?
23546- sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
23547- || (rm -f "$cfgfile"; exit 1)
23548+ sed '$q' "$ltmain" >> "$cfgfile" \
23549+ || (rm -f "$cfgfile"; exit 1)
23550
23551- _LT_PROG_XSI_SHELLFNS
23552+ _LT_PROG_REPLACE_SHELLFNS
23553
23554- sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
23555- || (rm -f "$cfgfile"; exit 1)
23556-
23557- mv -f "$cfgfile" "$ofile" ||
23558+ mv -f "$cfgfile" "$ofile" ||
23559 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23560 chmod +x "$ofile"
23561 ],
23562@@ -980,6 +982,8 @@ _LT_EOF
23563 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
23564 echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
23565 $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
23566+ echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
23567+ $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
23568 cat > conftest.c << _LT_EOF
23569 int main() { return 0;}
23570 _LT_EOF
23571@@ -1071,30 +1075,41 @@ m4_defun([_LT_DARWIN_LINKER_FEATURES],
23572 fi
23573 ])
23574
23575-# _LT_SYS_MODULE_PATH_AIX
23576-# -----------------------
23577+# _LT_SYS_MODULE_PATH_AIX([TAGNAME])
23578+# ----------------------------------
23579 # Links a minimal program and checks the executable
23580 # for the system default hardcoded library path. In most cases,
23581 # this is /usr/lib:/lib, but when the MPI compilers are used
23582 # the location of the communication and MPI libs are included too.
23583 # If we don't find anything, use the default library path according
23584 # to the aix ld manual.
23585+# Store the results from the different compilers for each TAGNAME.
23586+# Allow to override them for all tags through lt_cv_aix_libpath.
23587 m4_defun([_LT_SYS_MODULE_PATH_AIX],
23588 [m4_require([_LT_DECL_SED])dnl
23589-AC_LINK_IFELSE([AC_LANG_SOURCE([AC_LANG_PROGRAM])],[
23590-lt_aix_libpath_sed='
23591- /Import File Strings/,/^$/ {
23592- /^0/ {
23593- s/^0 *\(.*\)$/\1/
23594- p
23595- }
23596- }'
23597-aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
23598-# Check for a 64-bit object if we didn't find anything.
23599-if test -z "$aix_libpath"; then
23600- aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
23601-fi],[])
23602-if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
23603+if test "${lt_cv_aix_libpath+set}" = set; then
23604+ aix_libpath=$lt_cv_aix_libpath
23605+else
23606+ AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
23607+ [AC_LINK_IFELSE([AC_LANG_PROGRAM],[
23608+ lt_aix_libpath_sed='[
23609+ /Import File Strings/,/^$/ {
23610+ /^0/ {
23611+ s/^0 *\([^ ]*\) *$/\1/
23612+ p
23613+ }
23614+ }]'
23615+ _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
23616+ # Check for a 64-bit object if we didn't find anything.
23617+ if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
23618+ _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
23619+ fi],[])
23620+ if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
23621+ _LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib"
23622+ fi
23623+ ])
23624+ aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
23625+fi
23626 ])# _LT_SYS_MODULE_PATH_AIX
23627
23628
23629@@ -1119,7 +1134,7 @@ ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
23630
23631 AC_MSG_CHECKING([how to print strings])
23632 # Test print first, because it will be a builtin if present.
23633-if test "X`print -r -- -n 2>/dev/null`" = X-n && \
23634+if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
23635 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
23636 ECHO='print -r --'
23637 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
23638@@ -1163,6 +1178,39 @@ _LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
23639 ])# _LT_PROG_ECHO_BACKSLASH
23640
23641
23642+# _LT_WITH_SYSROOT
23643+# ----------------
23644+AC_DEFUN([_LT_WITH_SYSROOT],
23645+[AC_MSG_CHECKING([for sysroot])
23646+AC_ARG_WITH([libtool-sysroot],
23647+[ --with-libtool-sysroot[=DIR] Search for dependent libraries within DIR
23648+ (or the compiler's sysroot if not specified).],
23649+[], [with_libtool_sysroot=no])
23650+
23651+dnl lt_sysroot will always be passed unquoted. We quote it here
23652+dnl in case the user passed a directory name.
23653+lt_sysroot=
23654+case ${with_libtool_sysroot} in #(
23655+ yes)
23656+ if test "$GCC" = yes; then
23657+ lt_sysroot=`$CC --print-sysroot 2>/dev/null`
23658+ fi
23659+ ;; #(
23660+ /*)
23661+ lt_sysroot=`echo "$with_libtool_sysroot" | sed -e "$sed_quote_subst"`
23662+ ;; #(
23663+ no|'')
23664+ ;; #(
23665+ *)
23666+ AC_MSG_RESULT([${with_libtool_sysroot}])
23667+ AC_MSG_ERROR([The sysroot must be an absolute path.])
23668+ ;;
23669+esac
23670+
23671+ AC_MSG_RESULT([${lt_sysroot:-no}])
23672+_LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
23673+[dependent libraries, and in which our libraries should be installed.])])
23674+
23675 # _LT_ENABLE_LOCK
23676 # ---------------
23677 m4_defun([_LT_ENABLE_LOCK],
23678@@ -1322,6 +1370,51 @@ need_locks="$enable_libtool_lock"
23679 ])# _LT_ENABLE_LOCK
23680
23681
23682+# _LT_PROG_AR
23683+# -----------
23684+m4_defun([_LT_PROG_AR],
23685+[AC_CHECK_TOOLS(AR, [ar], false)
23686+ touch conftest.c
23687+ $AR $plugin_option rc conftest.a conftest.c
23688+ if test "$?" != 0; then
23689+ AC_MSG_WARN([Failed: $AR $plugin_option rc])
23690+ else
23691+ AR="$AR $plugin_option"
23692+ fi
23693+ rm -f conftest.*
23694+: ${AR=ar}
23695+: ${AR_FLAGS=cru}
23696+_LT_DECL([], [AR], [1], [The archiver])
23697+_LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive])
23698+
23699+AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file],
23700+ [lt_cv_ar_at_file=no
23701+ AC_COMPILE_IFELSE([AC_LANG_PROGRAM],
23702+ [echo conftest.$ac_objext > conftest.lst
23703+ lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD'
23704+ AC_TRY_EVAL([lt_ar_try])
23705+ if test "$ac_status" -eq 0; then
23706+ # Ensure the archiver fails upon bogus file names.
23707+ rm -f conftest.$ac_objext libconftest.a
23708+ AC_TRY_EVAL([lt_ar_try])
23709+ if test "$ac_status" -ne 0; then
23710+ lt_cv_ar_at_file=@
23711+ fi
23712+ fi
23713+ rm -f conftest.* libconftest.a
23714+ ])
23715+ ])
23716+
23717+if test "x$lt_cv_ar_at_file" = xno; then
23718+ archiver_list_spec=
23719+else
23720+ archiver_list_spec=$lt_cv_ar_at_file
23721+fi
23722+_LT_DECL([], [archiver_list_spec], [1],
23723+ [How to feed a file listing to the archiver])
23724+])# _LT_PROG_AR
23725+
23726+
23727 # _LT_CMD_OLD_ARCHIVE
23728 # -------------------
23729 m4_defun([_LT_CMD_OLD_ARCHIVE],
23730@@ -1338,23 +1431,7 @@ for plugin in $plugin_names; do
23731 fi
23732 done
23733
23734-AC_CHECK_TOOL(AR, ar, false)
23735-test -z "$AR" && AR=ar
23736-if test -n "$plugin_option"; then
23737- if $AR --help 2>&1 | grep -q "\--plugin"; then
23738- touch conftest.c
23739- $AR $plugin_option rc conftest.a conftest.c
23740- if test "$?" != 0; then
23741- AC_MSG_WARN([Failed: $AR $plugin_option rc])
23742- else
23743- AR="$AR $plugin_option"
23744- fi
23745- rm -f conftest.*
23746- fi
23747-fi
23748-test -z "$AR_FLAGS" && AR_FLAGS=cru
23749-_LT_DECL([], [AR], [1], [The archiver])
23750-_LT_DECL([], [AR_FLAGS], [1])
23751+_LT_PROG_AR
23752
23753 AC_CHECK_TOOL(STRIP, strip, :)
23754 test -z "$STRIP" && STRIP=:
23755@@ -1655,7 +1732,7 @@ else
23756 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23757 lt_status=$lt_dlunknown
23758 cat > conftest.$ac_ext <<_LT_EOF
23759-[#line __oline__ "configure"
23760+[#line $LINENO "configure"
23761 #include "confdefs.h"
23762
23763 #if HAVE_DLFCN_H
23764@@ -1699,10 +1776,10 @@ else
23765 /* When -fvisbility=hidden is used, assume the code has been annotated
23766 correspondingly for the symbols needed. */
23767 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
23768-void fnord () __attribute__((visibility("default")));
23769+int fnord () __attribute__((visibility("default")));
23770 #endif
23771
23772-void fnord () { int i=42; }
23773+int fnord () { return 42; }
23774 int main ()
23775 {
23776 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23777@@ -2242,8 +2319,9 @@ cygwin* | mingw* | pw32* | cegcc*)
23778 need_version=no
23779 need_lib_prefix=no
23780
23781- case $GCC,$host_os in
23782- yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
23783+ case $GCC,$cc_basename in
23784+ yes,*)
23785+ # gcc
23786 library_names_spec='$libname.dll.a'
23787 # DLL is installed to $(libdir)/../bin by postinstall_cmds
23788 postinstall_cmds='base_file=`basename \${file}`~
23789@@ -2276,13 +2354,71 @@ m4_if([$1], [],[
23790 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
23791 ;;
23792 esac
23793+ dynamic_linker='Win32 ld.exe'
23794+ ;;
23795+
23796+ *,cl*)
23797+ # Native MSVC
23798+ libname_spec='$name'
23799+ soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
23800+ library_names_spec='${libname}.dll.lib'
23801+
23802+ case $build_os in
23803+ mingw*)
23804+ sys_lib_search_path_spec=
23805+ lt_save_ifs=$IFS
23806+ IFS=';'
23807+ for lt_path in $LIB
23808+ do
23809+ IFS=$lt_save_ifs
23810+ # Let DOS variable expansion print the short 8.3 style file name.
23811+ lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
23812+ sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
23813+ done
23814+ IFS=$lt_save_ifs
23815+ # Convert to MSYS style.
23816+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
23817+ ;;
23818+ cygwin*)
23819+ # Convert to unix form, then to dos form, then back to unix form
23820+ # but this time dos style (no spaces!) so that the unix form looks
23821+ # like /cygdrive/c/PROGRA~1:/cygdr...
23822+ sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
23823+ sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
23824+ sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
23825+ ;;
23826+ *)
23827+ sys_lib_search_path_spec="$LIB"
23828+ if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
23829+ # It is most probably a Windows format PATH.
23830+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23831+ else
23832+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
23833+ fi
23834+ # FIXME: find the short name or the path components, as spaces are
23835+ # common. (e.g. "Program Files" -> "PROGRA~1")
23836+ ;;
23837+ esac
23838+
23839+ # DLL is installed to $(libdir)/../bin by postinstall_cmds
23840+ postinstall_cmds='base_file=`basename \${file}`~
23841+ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
23842+ dldir=$destdir/`dirname \$dlpath`~
23843+ test -d \$dldir || mkdir -p \$dldir~
23844+ $install_prog $dir/$dlname \$dldir/$dlname'
23845+ postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
23846+ dlpath=$dir/\$dldll~
23847+ $RM \$dlpath'
23848+ shlibpath_overrides_runpath=yes
23849+ dynamic_linker='Win32 link.exe'
23850 ;;
23851
23852 *)
23853+ # Assume MSVC wrapper
23854 library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
23855+ dynamic_linker='Win32 ld.exe'
23856 ;;
23857 esac
23858- dynamic_linker='Win32 ld.exe'
23859 # FIXME: first we should search . and the directory the executable is in
23860 shlibpath_var=PATH
23861 ;;
23862@@ -2996,6 +3132,11 @@ case $reload_flag in
23863 esac
23864 reload_cmds='$LD$reload_flag -o $output$reload_objs'
23865 case $host_os in
23866+ cygwin* | mingw* | pw32* | cegcc*)
23867+ if test "$GCC" != yes; then
23868+ reload_cmds=false
23869+ fi
23870+ ;;
23871 darwin*)
23872 if test "$GCC" = yes; then
23873 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
23874@@ -3062,7 +3203,8 @@ mingw* | pw32*)
23875 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
23876 lt_cv_file_magic_cmd='func_win32_libid'
23877 else
23878- lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
23879+ # Keep this pattern in sync with the one in func_win32_libid.
23880+ lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
23881 lt_cv_file_magic_cmd='$OBJDUMP -f'
23882 fi
23883 ;;
23884@@ -3218,6 +3360,21 @@ vxworks*)
23885 ;;
23886 esac
23887 ])
23888+
23889+file_magic_glob=
23890+want_nocaseglob=no
23891+if test "$build" = "$host"; then
23892+ case $host_os in
23893+ mingw* | pw32*)
23894+ if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
23895+ want_nocaseglob=yes
23896+ else
23897+ file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"`
23898+ fi
23899+ ;;
23900+ esac
23901+fi
23902+
23903 file_magic_cmd=$lt_cv_file_magic_cmd
23904 deplibs_check_method=$lt_cv_deplibs_check_method
23905 test -z "$deplibs_check_method" && deplibs_check_method=unknown
23906@@ -3225,7 +3382,11 @@ test -z "$deplibs_check_method" && deplibs_check_method=unknown
23907 _LT_DECL([], [deplibs_check_method], [1],
23908 [Method to check whether dependent libraries are shared objects])
23909 _LT_DECL([], [file_magic_cmd], [1],
23910- [Command to use when deplibs_check_method == "file_magic"])
23911+ [Command to use when deplibs_check_method = "file_magic"])
23912+_LT_DECL([], [file_magic_glob], [1],
23913+ [How to find potential files when deplibs_check_method = "file_magic"])
23914+_LT_DECL([], [want_nocaseglob], [1],
23915+ [Find potential files using nocaseglob when deplibs_check_method = "file_magic"])
23916 ])# _LT_CHECK_MAGIC_METHOD
23917
23918
23919@@ -3336,6 +3497,67 @@ dnl aclocal-1.4 backwards compatibility:
23920 dnl AC_DEFUN([AM_PROG_NM], [])
23921 dnl AC_DEFUN([AC_PROG_NM], [])
23922
23923+# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
23924+# --------------------------------
23925+# how to determine the name of the shared library
23926+# associated with a specific link library.
23927+# -- PORTME fill in with the dynamic library characteristics
23928+m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB],
23929+[m4_require([_LT_DECL_EGREP])
23930+m4_require([_LT_DECL_OBJDUMP])
23931+m4_require([_LT_DECL_DLLTOOL])
23932+AC_CACHE_CHECK([how to associate runtime and link libraries],
23933+lt_cv_sharedlib_from_linklib_cmd,
23934+[lt_cv_sharedlib_from_linklib_cmd='unknown'
23935+
23936+case $host_os in
23937+cygwin* | mingw* | pw32* | cegcc*)
23938+ # two different shell functions defined in ltmain.sh
23939+ # decide which to use based on capabilities of $DLLTOOL
23940+ case `$DLLTOOL --help 2>&1` in
23941+ *--identify-strict*)
23942+ lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
23943+ ;;
23944+ *)
23945+ lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
23946+ ;;
23947+ esac
23948+ ;;
23949+*)
23950+ # fallback: assume linklib IS sharedlib
23951+ lt_cv_sharedlib_from_linklib_cmd="$ECHO"
23952+ ;;
23953+esac
23954+])
23955+sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
23956+test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
23957+
23958+_LT_DECL([], [sharedlib_from_linklib_cmd], [1],
23959+ [Command to associate shared and link libraries])
23960+])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
23961+
23962+
23963+# _LT_PATH_MANIFEST_TOOL
23964+# ----------------------
23965+# locate the manifest tool
23966+m4_defun([_LT_PATH_MANIFEST_TOOL],
23967+[AC_CHECK_TOOL(MANIFEST_TOOL, mt, :)
23968+test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
23969+AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool],
23970+ [lt_cv_path_mainfest_tool=no
23971+ echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
23972+ $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
23973+ cat conftest.err >&AS_MESSAGE_LOG_FD
23974+ if $GREP 'Manifest Tool' conftest.out > /dev/null; then
23975+ lt_cv_path_mainfest_tool=yes
23976+ fi
23977+ rm -f conftest*])
23978+if test "x$lt_cv_path_mainfest_tool" != xyes; then
23979+ MANIFEST_TOOL=:
23980+fi
23981+_LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
23982+])# _LT_PATH_MANIFEST_TOOL
23983+
23984
23985 # LT_LIB_M
23986 # --------
23987@@ -3462,8 +3684,8 @@ esac
23988 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
23989
23990 # Transform an extracted symbol line into symbol name and symbol address
23991-lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
23992-lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
23993+lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
23994+lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
23995
23996 # Handle CRLF in mingw tool chain
23997 opt_cr=
23998@@ -3499,6 +3721,7 @@ for ac_symprfx in "" "_"; do
23999 else
24000 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
24001 fi
24002+ lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
24003
24004 # Check to see that the pipe works correctly.
24005 pipe_works=no
24006@@ -3532,6 +3755,18 @@ _LT_EOF
24007 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
24008 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
24009 cat <<_LT_EOF > conftest.$ac_ext
24010+/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
24011+#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
24012+/* DATA imports from DLLs on WIN32 con't be const, because runtime
24013+ relocations are performed -- see ld's documentation on pseudo-relocs. */
24014+# define LT@&t@_DLSYM_CONST
24015+#elif defined(__osf__)
24016+/* This system does not cope well with relocations in const data. */
24017+# define LT@&t@_DLSYM_CONST
24018+#else
24019+# define LT@&t@_DLSYM_CONST const
24020+#endif
24021+
24022 #ifdef __cplusplus
24023 extern "C" {
24024 #endif
24025@@ -3543,7 +3778,7 @@ _LT_EOF
24026 cat <<_LT_EOF >> conftest.$ac_ext
24027
24028 /* The mapping between symbol names and symbols. */
24029-const struct {
24030+LT@&t@_DLSYM_CONST struct {
24031 const char *name;
24032 void *address;
24033 }
24034@@ -3569,15 +3804,15 @@ static const void *lt_preloaded_setup() {
24035 _LT_EOF
24036 # Now try linking the two files.
24037 mv conftest.$ac_objext conftstm.$ac_objext
24038- lt_save_LIBS="$LIBS"
24039- lt_save_CFLAGS="$CFLAGS"
24040+ lt_globsym_save_LIBS=$LIBS
24041+ lt_globsym_save_CFLAGS=$CFLAGS
24042 LIBS="conftstm.$ac_objext"
24043 CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
24044 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
24045 pipe_works=yes
24046 fi
24047- LIBS="$lt_save_LIBS"
24048- CFLAGS="$lt_save_CFLAGS"
24049+ LIBS=$lt_globsym_save_LIBS
24050+ CFLAGS=$lt_globsym_save_CFLAGS
24051 else
24052 echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
24053 fi
24054@@ -3610,6 +3845,13 @@ else
24055 AC_MSG_RESULT(ok)
24056 fi
24057
24058+# Response file support.
24059+if test "$lt_cv_nm_interface" = "MS dumpbin"; then
24060+ nm_file_list_spec='@'
24061+elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then
24062+ nm_file_list_spec='@'
24063+fi
24064+
24065 _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
24066 [Take the output of nm and produce a listing of raw symbols and C names])
24067 _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
24068@@ -3620,6 +3862,8 @@ _LT_DECL([global_symbol_to_c_name_address],
24069 _LT_DECL([global_symbol_to_c_name_address_lib_prefix],
24070 [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
24071 [Transform the output of nm in a C name address pair when lib prefix is needed])
24072+_LT_DECL([], [nm_file_list_spec], [1],
24073+ [Specify filename containing input files for $NM])
24074 ]) # _LT_CMD_GLOBAL_SYMBOLS
24075
24076
24077@@ -3631,7 +3875,6 @@ _LT_TAGVAR(lt_prog_compiler_wl, $1)=
24078 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
24079 _LT_TAGVAR(lt_prog_compiler_static, $1)=
24080
24081-AC_MSG_CHECKING([for $compiler option to produce PIC])
24082 m4_if([$1], [CXX], [
24083 # C++ specific cases for pic, static, wl, etc.
24084 if test "$GXX" = yes; then
24085@@ -3737,6 +3980,12 @@ m4_if([$1], [CXX], [
24086 ;;
24087 esac
24088 ;;
24089+ mingw* | cygwin* | os2* | pw32* | cegcc*)
24090+ # This hack is so that the source file can tell whether it is being
24091+ # built for inclusion in a dll (and should export symbols for example).
24092+ m4_if([$1], [GCJ], [],
24093+ [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
24094+ ;;
24095 dgux*)
24096 case $cc_basename in
24097 ec++*)
24098@@ -3889,7 +4138,7 @@ m4_if([$1], [CXX], [
24099 ;;
24100 solaris*)
24101 case $cc_basename in
24102- CC*)
24103+ CC* | sunCC*)
24104 # Sun C++ 4.2, 5.x and Centerline C++
24105 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
24106 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
24107@@ -4112,6 +4361,12 @@ m4_if([$1], [CXX], [
24108 _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
24109 _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
24110 ;;
24111+ nagfor*)
24112+ # NAG Fortran compiler
24113+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
24114+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
24115+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
24116+ ;;
24117 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
24118 # Portland Group compilers (*not* the Pentium gcc compiler,
24119 # which looks to be a dead project)
24120@@ -4174,7 +4429,7 @@ m4_if([$1], [CXX], [
24121 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
24122 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
24123 case $cc_basename in
24124- f77* | f90* | f95*)
24125+ f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
24126 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
24127 *)
24128 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
24129@@ -4231,9 +4486,11 @@ case $host_os in
24130 _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
24131 ;;
24132 esac
24133-AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
24134-_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
24135- [How to pass a linker flag through the compiler])
24136+
24137+AC_CACHE_CHECK([for $compiler option to produce PIC],
24138+ [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)],
24139+ [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
24140+_LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)
24141
24142 #
24143 # Check to make sure the PIC flag actually works.
24144@@ -4252,6 +4509,8 @@ fi
24145 _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
24146 [Additional compiler flags for building library objects])
24147
24148+_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
24149+ [How to pass a linker flag through the compiler])
24150 #
24151 # Check to make sure the static flag actually works.
24152 #
24153@@ -4272,6 +4531,7 @@ _LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
24154 m4_defun([_LT_LINKER_SHLIBS],
24155 [AC_REQUIRE([LT_PATH_LD])dnl
24156 AC_REQUIRE([LT_PATH_NM])dnl
24157+m4_require([_LT_PATH_MANIFEST_TOOL])dnl
24158 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
24159 m4_require([_LT_DECL_EGREP])dnl
24160 m4_require([_LT_DECL_SED])dnl
24161@@ -4280,6 +4540,7 @@ m4_require([_LT_TAG_COMPILER])dnl
24162 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
24163 m4_if([$1], [CXX], [
24164 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24165+ _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
24166 case $host_os in
24167 aix[[4-9]]*)
24168 # If we're using GNU nm, then we don't want the "-C" option.
24169@@ -4294,15 +4555,20 @@ m4_if([$1], [CXX], [
24170 ;;
24171 pw32*)
24172 _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
24173- ;;
24174+ ;;
24175 cygwin* | mingw* | cegcc*)
24176- _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
24177- ;;
24178+ case $cc_basename in
24179+ cl*) ;;
24180+ *)
24181+ _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
24182+ _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
24183+ ;;
24184+ esac
24185+ ;;
24186 *)
24187 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24188- ;;
24189+ ;;
24190 esac
24191- _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
24192 ], [
24193 runpath_var=
24194 _LT_TAGVAR(allow_undefined_flag, $1)=
24195@@ -4470,7 +4736,8 @@ _LT_EOF
24196 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
24197 _LT_TAGVAR(always_export_symbols, $1)=no
24198 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
24199- _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
24200+ _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
24201+ _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
24202
24203 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
24204 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24205@@ -4569,12 +4836,12 @@ _LT_EOF
24206 _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
24207 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
24208 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
24209- _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
24210+ _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
24211 if test "x$supports_anon_versioning" = xyes; then
24212 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
24213 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24214 echo "local: *; };" >> $output_objdir/$libname.ver~
24215- $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
24216+ $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
24217 fi
24218 ;;
24219 esac
24220@@ -4588,8 +4855,8 @@ _LT_EOF
24221 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24222 wlarc=
24223 else
24224- _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24225- _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24226+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24227+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24228 fi
24229 ;;
24230
24231@@ -4607,8 +4874,8 @@ _LT_EOF
24232
24233 _LT_EOF
24234 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
24235- _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24236- _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24237+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24238+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24239 else
24240 _LT_TAGVAR(ld_shlibs, $1)=no
24241 fi
24242@@ -4654,8 +4921,8 @@ _LT_EOF
24243
24244 *)
24245 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
24246- _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24247- _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24248+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24249+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24250 else
24251 _LT_TAGVAR(ld_shlibs, $1)=no
24252 fi
24253@@ -4785,7 +5052,7 @@ _LT_EOF
24254 _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
24255 # Determine the default libpath from the value encoded in an
24256 # empty executable.
24257- _LT_SYS_MODULE_PATH_AIX
24258+ _LT_SYS_MODULE_PATH_AIX([$1])
24259 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
24260 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
24261 else
24262@@ -4796,7 +5063,7 @@ _LT_EOF
24263 else
24264 # Determine the default libpath from the value encoded in an
24265 # empty executable.
24266- _LT_SYS_MODULE_PATH_AIX
24267+ _LT_SYS_MODULE_PATH_AIX([$1])
24268 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
24269 # Warning - without using the other run time loading flags,
24270 # -berok will link without error, but may produce a broken library.
24271@@ -4840,20 +5107,63 @@ _LT_EOF
24272 # Microsoft Visual C++.
24273 # hardcode_libdir_flag_spec is actually meaningless, as there is
24274 # no search path for DLLs.
24275- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
24276- _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
24277- # Tell ltmain to make .lib files, not .a files.
24278- libext=lib
24279- # Tell ltmain to make .dll files, not .so files.
24280- shrext_cmds=".dll"
24281- # FIXME: Setting linknames here is a bad hack.
24282- _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
24283- # The linker will automatically build a .lib file if we build a DLL.
24284- _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
24285- # FIXME: Should let the user specify the lib program.
24286- _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
24287- _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
24288- _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
24289+ case $cc_basename in
24290+ cl*)
24291+ # Native MSVC
24292+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
24293+ _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
24294+ _LT_TAGVAR(always_export_symbols, $1)=yes
24295+ _LT_TAGVAR(file_list_spec, $1)='@'
24296+ # Tell ltmain to make .lib files, not .a files.
24297+ libext=lib
24298+ # Tell ltmain to make .dll files, not .so files.
24299+ shrext_cmds=".dll"
24300+ # FIXME: Setting linknames here is a bad hack.
24301+ _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
24302+ _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24303+ sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
24304+ else
24305+ sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
24306+ fi~
24307+ $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
24308+ linknames='
24309+ # The linker will not automatically build a static lib if we build a DLL.
24310+ # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
24311+ _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
24312+ _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1,DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
24313+ # Don't use ranlib
24314+ _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
24315+ _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
24316+ lt_tool_outputfile="@TOOL_OUTPUT@"~
24317+ case $lt_outputfile in
24318+ *.exe|*.EXE) ;;
24319+ *)
24320+ lt_outputfile="$lt_outputfile.exe"
24321+ lt_tool_outputfile="$lt_tool_outputfile.exe"
24322+ ;;
24323+ esac~
24324+ if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
24325+ $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
24326+ $RM "$lt_outputfile.manifest";
24327+ fi'
24328+ ;;
24329+ *)
24330+ # Assume MSVC wrapper
24331+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
24332+ _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
24333+ # Tell ltmain to make .lib files, not .a files.
24334+ libext=lib
24335+ # Tell ltmain to make .dll files, not .so files.
24336+ shrext_cmds=".dll"
24337+ # FIXME: Setting linknames here is a bad hack.
24338+ _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
24339+ # The linker will automatically build a .lib file if we build a DLL.
24340+ _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
24341+ # FIXME: Should let the user specify the lib program.
24342+ _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
24343+ _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
24344+ ;;
24345+ esac
24346 ;;
24347
24348 darwin* | rhapsody*)
24349@@ -4887,7 +5197,7 @@ _LT_EOF
24350
24351 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
24352 freebsd* | dragonfly*)
24353- _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24354+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24355 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
24356 _LT_TAGVAR(hardcode_direct, $1)=yes
24357 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
24358@@ -4895,7 +5205,7 @@ _LT_EOF
24359
24360 hpux9*)
24361 if test "$GCC" = yes; then
24362- _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
24363+ _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
24364 else
24365 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
24366 fi
24367@@ -4911,7 +5221,7 @@ _LT_EOF
24368
24369 hpux10*)
24370 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
24371- _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24372+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24373 else
24374 _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24375 fi
24376@@ -4935,10 +5245,10 @@ _LT_EOF
24377 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24378 ;;
24379 ia64*)
24380- _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24381+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24382 ;;
24383 *)
24384- _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24385+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24386 ;;
24387 esac
24388 else
24389@@ -4985,16 +5295,31 @@ _LT_EOF
24390
24391 irix5* | irix6* | nonstopux*)
24392 if test "$GCC" = yes; then
24393- _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
24394+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
24395 # Try to use the -exported_symbol ld option, if it does not
24396 # work, assume that -exports_file does not work either and
24397 # implicitly export all symbols.
24398- save_LDFLAGS="$LDFLAGS"
24399- LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
24400- AC_LINK_IFELSE([AC_LANG_SOURCE([int foo(void) {}])],
24401- _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
24402- )
24403- LDFLAGS="$save_LDFLAGS"
24404+ # This should be the same for all languages, so no per-tag cache variable.
24405+ AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
24406+ [lt_cv_irix_exported_symbol],
24407+ [save_LDFLAGS="$LDFLAGS"
24408+ LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
24409+ AC_LINK_IFELSE(
24410+ [AC_LANG_SOURCE(
24411+ [AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
24412+ [C++], [[int foo (void) { return 0; }]],
24413+ [Fortran 77], [[
24414+ subroutine foo
24415+ end]],
24416+ [Fortran], [[
24417+ subroutine foo
24418+ end]])])],
24419+ [lt_cv_irix_exported_symbol=yes],
24420+ [lt_cv_irix_exported_symbol=no])
24421+ LDFLAGS="$save_LDFLAGS"])
24422+ if test "$lt_cv_irix_exported_symbol" = yes; then
24423+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
24424+ fi
24425 else
24426 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
24427 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
24428@@ -5079,7 +5404,7 @@ _LT_EOF
24429 osf4* | osf5*) # as osf3* with the addition of -msym flag
24430 if test "$GCC" = yes; then
24431 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
24432- _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
24433+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
24434 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
24435 else
24436 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
24437@@ -5098,9 +5423,9 @@ _LT_EOF
24438 _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
24439 if test "$GCC" = yes; then
24440 wlarc='${wl}'
24441- _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24442+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24443 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
24444- $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
24445+ $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
24446 else
24447 case `$CC -V 2>&1` in
24448 *"Compilers 5.0"*)
24449@@ -5372,8 +5697,6 @@ _LT_TAGDECL([], [inherit_rpath], [0],
24450 to runtime path list])
24451 _LT_TAGDECL([], [link_all_deplibs], [0],
24452 [Whether libtool must link a program against all its dependency libraries])
24453-_LT_TAGDECL([], [fix_srcfile_path], [1],
24454- [Fix the shell variable $srcfile for the compiler])
24455 _LT_TAGDECL([], [always_export_symbols], [0],
24456 [Set to "yes" if exported symbols are required])
24457 _LT_TAGDECL([], [export_symbols_cmds], [2],
24458@@ -5384,6 +5707,8 @@ _LT_TAGDECL([], [include_expsyms], [1],
24459 [Symbols that must always be exported])
24460 _LT_TAGDECL([], [prelink_cmds], [2],
24461 [Commands necessary for linking programs (against libraries) with templates])
24462+_LT_TAGDECL([], [postlink_cmds], [2],
24463+ [Commands necessary for finishing linking programs])
24464 _LT_TAGDECL([], [file_list_spec], [1],
24465 [Specify filename containing input files])
24466 dnl FIXME: Not yet implemented
24467@@ -5485,6 +5810,7 @@ CC="$lt_save_CC"
24468 m4_defun([_LT_LANG_CXX_CONFIG],
24469 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
24470 m4_require([_LT_DECL_EGREP])dnl
24471+m4_require([_LT_PATH_MANIFEST_TOOL])dnl
24472 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
24473 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
24474 (test "X$CXX" != "Xg++"))) ; then
24475@@ -5546,6 +5872,7 @@ if test "$_lt_caught_CXX_error" != yes; then
24476
24477 # Allow CC to be a program name with arguments.
24478 lt_save_CC=$CC
24479+ lt_save_CFLAGS=$CFLAGS
24480 lt_save_LD=$LD
24481 lt_save_GCC=$GCC
24482 GCC=$GXX
24483@@ -5563,6 +5890,7 @@ if test "$_lt_caught_CXX_error" != yes; then
24484 fi
24485 test -z "${LDCXX+set}" || LD=$LDCXX
24486 CC=${CXX-"c++"}
24487+ CFLAGS=$CXXFLAGS
24488 compiler=$CC
24489 _LT_TAGVAR(compiler, $1)=$CC
24490 _LT_CC_BASENAME([$compiler])
24491@@ -5726,7 +6054,7 @@ if test "$_lt_caught_CXX_error" != yes; then
24492 _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
24493 # Determine the default libpath from the value encoded in an empty
24494 # executable.
24495- _LT_SYS_MODULE_PATH_AIX
24496+ _LT_SYS_MODULE_PATH_AIX([$1])
24497 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
24498
24499 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
24500@@ -5738,7 +6066,7 @@ if test "$_lt_caught_CXX_error" != yes; then
24501 else
24502 # Determine the default libpath from the value encoded in an
24503 # empty executable.
24504- _LT_SYS_MODULE_PATH_AIX
24505+ _LT_SYS_MODULE_PATH_AIX([$1])
24506 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
24507 # Warning - without using the other run time loading flags,
24508 # -berok will link without error, but may produce a broken library.
24509@@ -5780,29 +6108,75 @@ if test "$_lt_caught_CXX_error" != yes; then
24510 ;;
24511
24512 cygwin* | mingw* | pw32* | cegcc*)
24513- # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
24514- # as there is no search path for DLLs.
24515- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
24516- _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
24517- _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
24518- _LT_TAGVAR(always_export_symbols, $1)=no
24519- _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
24520-
24521- if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
24522- _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24523- # If the export-symbols file already is a .def file (1st line
24524- # is EXPORTS), use it as is; otherwise, prepend...
24525- _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24526- cp $export_symbols $output_objdir/$soname.def;
24527- else
24528- echo EXPORTS > $output_objdir/$soname.def;
24529- cat $export_symbols >> $output_objdir/$soname.def;
24530- fi~
24531- $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24532- else
24533- _LT_TAGVAR(ld_shlibs, $1)=no
24534- fi
24535- ;;
24536+ case $GXX,$cc_basename in
24537+ ,cl* | no,cl*)
24538+ # Native MSVC
24539+ # hardcode_libdir_flag_spec is actually meaningless, as there is
24540+ # no search path for DLLs.
24541+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
24542+ _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
24543+ _LT_TAGVAR(always_export_symbols, $1)=yes
24544+ _LT_TAGVAR(file_list_spec, $1)='@'
24545+ # Tell ltmain to make .lib files, not .a files.
24546+ libext=lib
24547+ # Tell ltmain to make .dll files, not .so files.
24548+ shrext_cmds=".dll"
24549+ # FIXME: Setting linknames here is a bad hack.
24550+ _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
24551+ _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24552+ $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
24553+ else
24554+ $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
24555+ fi~
24556+ $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
24557+ linknames='
24558+ # The linker will not automatically build a static lib if we build a DLL.
24559+ # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
24560+ _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
24561+ # Don't use ranlib
24562+ _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
24563+ _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
24564+ lt_tool_outputfile="@TOOL_OUTPUT@"~
24565+ case $lt_outputfile in
24566+ *.exe|*.EXE) ;;
24567+ *)
24568+ lt_outputfile="$lt_outputfile.exe"
24569+ lt_tool_outputfile="$lt_tool_outputfile.exe"
24570+ ;;
24571+ esac~
24572+ func_to_tool_file "$lt_outputfile"~
24573+ if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
24574+ $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
24575+ $RM "$lt_outputfile.manifest";
24576+ fi'
24577+ ;;
24578+ *)
24579+ # g++
24580+ # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
24581+ # as there is no search path for DLLs.
24582+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
24583+ _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
24584+ _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
24585+ _LT_TAGVAR(always_export_symbols, $1)=no
24586+ _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
24587+
24588+ if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
24589+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24590+ # If the export-symbols file already is a .def file (1st line
24591+ # is EXPORTS), use it as is; otherwise, prepend...
24592+ _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24593+ cp $export_symbols $output_objdir/$soname.def;
24594+ else
24595+ echo EXPORTS > $output_objdir/$soname.def;
24596+ cat $export_symbols >> $output_objdir/$soname.def;
24597+ fi~
24598+ $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24599+ else
24600+ _LT_TAGVAR(ld_shlibs, $1)=no
24601+ fi
24602+ ;;
24603+ esac
24604+ ;;
24605 darwin* | rhapsody*)
24606 _LT_DARWIN_LINKER_FEATURES($1)
24607 ;;
24608@@ -5877,7 +6251,7 @@ if test "$_lt_caught_CXX_error" != yes; then
24609 ;;
24610 *)
24611 if test "$GXX" = yes; then
24612- _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
24613+ _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
24614 else
24615 # FIXME: insert proper C++ library support
24616 _LT_TAGVAR(ld_shlibs, $1)=no
24617@@ -5948,10 +6322,10 @@ if test "$_lt_caught_CXX_error" != yes; then
24618 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
24619 ;;
24620 ia64*)
24621- _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
24622+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
24623 ;;
24624 *)
24625- _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
24626+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
24627 ;;
24628 esac
24629 fi
24630@@ -5992,9 +6366,9 @@ if test "$_lt_caught_CXX_error" != yes; then
24631 *)
24632 if test "$GXX" = yes; then
24633 if test "$with_gnu_ld" = no; then
24634- _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
24635+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
24636 else
24637- _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
24638+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
24639 fi
24640 fi
24641 _LT_TAGVAR(link_all_deplibs, $1)=yes
24642@@ -6272,7 +6646,7 @@ if test "$_lt_caught_CXX_error" != yes; then
24643 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
24644 ;;
24645 *)
24646- _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
24647+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
24648 ;;
24649 esac
24650
24651@@ -6318,7 +6692,7 @@ if test "$_lt_caught_CXX_error" != yes; then
24652
24653 solaris*)
24654 case $cc_basename in
24655- CC*)
24656+ CC* | sunCC*)
24657 # Sun C++ 4.2, 5.x and Centerline C++
24658 _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
24659 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
24660@@ -6359,9 +6733,9 @@ if test "$_lt_caught_CXX_error" != yes; then
24661 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
24662 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
24663 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
24664- _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
24665+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
24666 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
24667- $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
24668+ $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
24669
24670 # Commands to make compiler produce verbose output that lists
24671 # what "hidden" libraries, object files and flags are used when
24672@@ -6491,6 +6865,7 @@ if test "$_lt_caught_CXX_error" != yes; then
24673 fi # test -n "$compiler"
24674
24675 CC=$lt_save_CC
24676+ CFLAGS=$lt_save_CFLAGS
24677 LDCXX=$LD
24678 LD=$lt_save_LD
24679 GCC=$lt_save_GCC
24680@@ -6505,6 +6880,29 @@ AC_LANG_POP
24681 ])# _LT_LANG_CXX_CONFIG
24682
24683
24684+# _LT_FUNC_STRIPNAME_CNF
24685+# ----------------------
24686+# func_stripname_cnf prefix suffix name
24687+# strip PREFIX and SUFFIX off of NAME.
24688+# PREFIX and SUFFIX must not contain globbing or regex special
24689+# characters, hashes, percent signs, but SUFFIX may contain a leading
24690+# dot (in which case that matches only a dot).
24691+#
24692+# This function is identical to the (non-XSI) version of func_stripname,
24693+# except this one can be used by m4 code that may be executed by configure,
24694+# rather than the libtool script.
24695+m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl
24696+AC_REQUIRE([_LT_DECL_SED])
24697+AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])
24698+func_stripname_cnf ()
24699+{
24700+ case ${2} in
24701+ .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
24702+ *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
24703+ esac
24704+} # func_stripname_cnf
24705+])# _LT_FUNC_STRIPNAME_CNF
24706+
24707 # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
24708 # ---------------------------------
24709 # Figure out "hidden" library dependencies from verbose
24710@@ -6513,6 +6911,7 @@ AC_LANG_POP
24711 # objects, libraries and library flags.
24712 m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
24713 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
24714+AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl
24715 # Dependencies to place before and after the object being linked:
24716 _LT_TAGVAR(predep_objects, $1)=
24717 _LT_TAGVAR(postdep_objects, $1)=
24718@@ -6563,6 +6962,13 @@ public class foo {
24719 };
24720 _LT_EOF
24721 ])
24722+
24723+_lt_libdeps_save_CFLAGS=$CFLAGS
24724+case "$CC $CFLAGS " in #(
24725+*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
24726+*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
24727+esac
24728+
24729 dnl Parse the compiler output and extract the necessary
24730 dnl objects, libraries and library flags.
24731 if AC_TRY_EVAL(ac_compile); then
24732@@ -6574,7 +6980,7 @@ if AC_TRY_EVAL(ac_compile); then
24733 pre_test_object_deps_done=no
24734
24735 for p in `eval "$output_verbose_link_cmd"`; do
24736- case $p in
24737+ case ${prev}${p} in
24738
24739 -L* | -R* | -l*)
24740 # Some compilers place space between "-{L,R}" and the path.
24741@@ -6583,13 +6989,22 @@ if AC_TRY_EVAL(ac_compile); then
24742 test $p = "-R"; then
24743 prev=$p
24744 continue
24745- else
24746- prev=
24747 fi
24748
24749+ # Expand the sysroot to ease extracting the directories later.
24750+ if test -z "$prev"; then
24751+ case $p in
24752+ -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
24753+ -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
24754+ -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
24755+ esac
24756+ fi
24757+ case $p in
24758+ =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
24759+ esac
24760 if test "$pre_test_object_deps_done" = no; then
24761- case $p in
24762- -L* | -R*)
24763+ case ${prev} in
24764+ -L | -R)
24765 # Internal compiler library paths should come after those
24766 # provided the user. The postdeps already come after the
24767 # user supplied libs so there is no need to process them.
24768@@ -6609,8 +7024,10 @@ if AC_TRY_EVAL(ac_compile); then
24769 _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
24770 fi
24771 fi
24772+ prev=
24773 ;;
24774
24775+ *.lto.$objext) ;; # Ignore GCC LTO objects
24776 *.$objext)
24777 # This assumes that the test object file only shows up
24778 # once in the compiler output.
24779@@ -6646,6 +7063,7 @@ else
24780 fi
24781
24782 $RM -f confest.$objext
24783+CFLAGS=$_lt_libdeps_save_CFLAGS
24784
24785 # PORTME: override above test on systems where it is broken
24786 m4_if([$1], [CXX],
24787@@ -6682,7 +7100,7 @@ linux*)
24788
24789 solaris*)
24790 case $cc_basename in
24791- CC*)
24792+ CC* | sunCC*)
24793 # The more standards-conforming stlport4 library is
24794 # incompatible with the Cstd library. Avoid specifying
24795 # it if it's in CXXFLAGS. Ignore libCrun as
24796@@ -6795,7 +7213,9 @@ if test "$_lt_disable_F77" != yes; then
24797 # Allow CC to be a program name with arguments.
24798 lt_save_CC="$CC"
24799 lt_save_GCC=$GCC
24800+ lt_save_CFLAGS=$CFLAGS
24801 CC=${F77-"f77"}
24802+ CFLAGS=$FFLAGS
24803 compiler=$CC
24804 _LT_TAGVAR(compiler, $1)=$CC
24805 _LT_CC_BASENAME([$compiler])
24806@@ -6849,6 +7269,7 @@ if test "$_lt_disable_F77" != yes; then
24807
24808 GCC=$lt_save_GCC
24809 CC="$lt_save_CC"
24810+ CFLAGS="$lt_save_CFLAGS"
24811 fi # test "$_lt_disable_F77" != yes
24812
24813 AC_LANG_POP
24814@@ -6925,7 +7346,9 @@ if test "$_lt_disable_FC" != yes; then
24815 # Allow CC to be a program name with arguments.
24816 lt_save_CC="$CC"
24817 lt_save_GCC=$GCC
24818+ lt_save_CFLAGS=$CFLAGS
24819 CC=${FC-"f95"}
24820+ CFLAGS=$FCFLAGS
24821 compiler=$CC
24822 GCC=$ac_cv_fc_compiler_gnu
24823
24824@@ -6981,7 +7404,8 @@ if test "$_lt_disable_FC" != yes; then
24825 fi # test -n "$compiler"
24826
24827 GCC=$lt_save_GCC
24828- CC="$lt_save_CC"
24829+ CC=$lt_save_CC
24830+ CFLAGS=$lt_save_CFLAGS
24831 fi # test "$_lt_disable_FC" != yes
24832
24833 AC_LANG_POP
24834@@ -7018,10 +7442,12 @@ _LT_COMPILER_BOILERPLATE
24835 _LT_LINKER_BOILERPLATE
24836
24837 # Allow CC to be a program name with arguments.
24838-lt_save_CC="$CC"
24839+lt_save_CC=$CC
24840+lt_save_CFLAGS=$CFLAGS
24841 lt_save_GCC=$GCC
24842 GCC=yes
24843 CC=${GCJ-"gcj"}
24844+CFLAGS=$GCJFLAGS
24845 compiler=$CC
24846 _LT_TAGVAR(compiler, $1)=$CC
24847 _LT_TAGVAR(LD, $1)="$LD"
24848@@ -7052,7 +7478,8 @@ fi
24849 AC_LANG_RESTORE
24850
24851 GCC=$lt_save_GCC
24852-CC="$lt_save_CC"
24853+CC=$lt_save_CC
24854+CFLAGS=$lt_save_CFLAGS
24855 ])# _LT_LANG_GCJ_CONFIG
24856
24857
24858@@ -7087,9 +7514,11 @@ _LT_LINKER_BOILERPLATE
24859
24860 # Allow CC to be a program name with arguments.
24861 lt_save_CC="$CC"
24862+lt_save_CFLAGS=$CFLAGS
24863 lt_save_GCC=$GCC
24864 GCC=
24865 CC=${RC-"windres"}
24866+CFLAGS=
24867 compiler=$CC
24868 _LT_TAGVAR(compiler, $1)=$CC
24869 _LT_CC_BASENAME([$compiler])
24870@@ -7102,7 +7531,8 @@ fi
24871
24872 GCC=$lt_save_GCC
24873 AC_LANG_RESTORE
24874-CC="$lt_save_CC"
24875+CC=$lt_save_CC
24876+CFLAGS=$lt_save_CFLAGS
24877 ])# _LT_LANG_RC_CONFIG
24878
24879
24880@@ -7161,6 +7591,15 @@ _LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
24881 AC_SUBST([OBJDUMP])
24882 ])
24883
24884+# _LT_DECL_DLLTOOL
24885+# ----------------
24886+# Ensure DLLTOOL variable is set.
24887+m4_defun([_LT_DECL_DLLTOOL],
24888+[AC_CHECK_TOOL(DLLTOOL, dlltool, false)
24889+test -z "$DLLTOOL" && DLLTOOL=dlltool
24890+_LT_DECL([], [DLLTOOL], [1], [DLL creation program])
24891+AC_SUBST([DLLTOOL])
24892+])
24893
24894 # _LT_DECL_SED
24895 # ------------
24896@@ -7254,8 +7693,8 @@ m4_defun([_LT_CHECK_SHELL_FEATURES],
24897 # Try some XSI features
24898 xsi_shell=no
24899 ( _lt_dummy="a/b/c"
24900- test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
24901- = c,a/b,, \
24902+ test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
24903+ = c,a/b,b/c, \
24904 && eval 'test $(( 1 + 1 )) -eq 2 \
24905 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
24906 && xsi_shell=yes
24907@@ -7294,206 +7733,162 @@ _LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
24908 ])# _LT_CHECK_SHELL_FEATURES
24909
24910
24911-# _LT_PROG_XSI_SHELLFNS
24912-# ---------------------
24913-# Bourne and XSI compatible variants of some useful shell functions.
24914-m4_defun([_LT_PROG_XSI_SHELLFNS],
24915-[case $xsi_shell in
24916- yes)
24917- cat << \_LT_EOF >> "$cfgfile"
24918-
24919-# func_dirname file append nondir_replacement
24920-# Compute the dirname of FILE. If nonempty, add APPEND to the result,
24921-# otherwise set result to NONDIR_REPLACEMENT.
24922-func_dirname ()
24923-{
24924- case ${1} in
24925- */*) func_dirname_result="${1%/*}${2}" ;;
24926- * ) func_dirname_result="${3}" ;;
24927- esac
24928-}
24929-
24930-# func_basename file
24931-func_basename ()
24932-{
24933- func_basename_result="${1##*/}"
24934-}
24935-
24936-# func_dirname_and_basename file append nondir_replacement
24937-# perform func_basename and func_dirname in a single function
24938-# call:
24939-# dirname: Compute the dirname of FILE. If nonempty,
24940-# add APPEND to the result, otherwise set result
24941-# to NONDIR_REPLACEMENT.
24942-# value returned in "$func_dirname_result"
24943-# basename: Compute filename of FILE.
24944-# value retuned in "$func_basename_result"
24945-# Implementation must be kept synchronized with func_dirname
24946-# and func_basename. For efficiency, we do not delegate to
24947-# those functions but instead duplicate the functionality here.
24948-func_dirname_and_basename ()
24949-{
24950- case ${1} in
24951- */*) func_dirname_result="${1%/*}${2}" ;;
24952- * ) func_dirname_result="${3}" ;;
24953- esac
24954- func_basename_result="${1##*/}"
24955-}
24956-
24957-# func_stripname prefix suffix name
24958-# strip PREFIX and SUFFIX off of NAME.
24959-# PREFIX and SUFFIX must not contain globbing or regex special
24960-# characters, hashes, percent signs, but SUFFIX may contain a leading
24961-# dot (in which case that matches only a dot).
24962-func_stripname ()
24963-{
24964- # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
24965- # positional parameters, so assign one to ordinary parameter first.
24966- func_stripname_result=${3}
24967- func_stripname_result=${func_stripname_result#"${1}"}
24968- func_stripname_result=${func_stripname_result%"${2}"}
24969-}
24970-
24971-# func_opt_split
24972-func_opt_split ()
24973-{
24974- func_opt_split_opt=${1%%=*}
24975- func_opt_split_arg=${1#*=}
24976-}
24977-
24978-# func_lo2o object
24979-func_lo2o ()
24980-{
24981- case ${1} in
24982- *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
24983- *) func_lo2o_result=${1} ;;
24984- esac
24985-}
24986-
24987-# func_xform libobj-or-source
24988-func_xform ()
24989-{
24990- func_xform_result=${1%.*}.lo
24991-}
24992-
24993-# func_arith arithmetic-term...
24994-func_arith ()
24995-{
24996- func_arith_result=$(( $[*] ))
24997-}
24998-
24999-# func_len string
25000-# STRING may not start with a hyphen.
25001-func_len ()
25002-{
25003- func_len_result=${#1}
25004-}
25005+# _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY)
25006+# ------------------------------------------------------
25007+# In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and
25008+# '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY.
25009+m4_defun([_LT_PROG_FUNCTION_REPLACE],
25010+[dnl {
25011+sed -e '/^$1 ()$/,/^} # $1 /c\
25012+$1 ()\
25013+{\
25014+m4_bpatsubsts([$2], [$], [\\], [^\([ ]\)], [\\\1])
25015+} # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \
25016+ && mv -f "$cfgfile.tmp" "$cfgfile" \
25017+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
25018+test 0 -eq $? || _lt_function_replace_fail=:
25019+])
25020
25021-_LT_EOF
25022- ;;
25023- *) # Bourne compatible functions.
25024- cat << \_LT_EOF >> "$cfgfile"
25025
25026-# func_dirname file append nondir_replacement
25027-# Compute the dirname of FILE. If nonempty, add APPEND to the result,
25028-# otherwise set result to NONDIR_REPLACEMENT.
25029-func_dirname ()
25030-{
25031- # Extract subdirectory from the argument.
25032- func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
25033- if test "X$func_dirname_result" = "X${1}"; then
25034- func_dirname_result="${3}"
25035- else
25036- func_dirname_result="$func_dirname_result${2}"
25037- fi
25038-}
25039+# _LT_PROG_REPLACE_SHELLFNS
25040+# -------------------------
25041+# Replace existing portable implementations of several shell functions with
25042+# equivalent extended shell implementations where those features are available..
25043+m4_defun([_LT_PROG_REPLACE_SHELLFNS],
25044+[if test x"$xsi_shell" = xyes; then
25045+ _LT_PROG_FUNCTION_REPLACE([func_dirname], [dnl
25046+ case ${1} in
25047+ */*) func_dirname_result="${1%/*}${2}" ;;
25048+ * ) func_dirname_result="${3}" ;;
25049+ esac])
25050+
25051+ _LT_PROG_FUNCTION_REPLACE([func_basename], [dnl
25052+ func_basename_result="${1##*/}"])
25053+
25054+ _LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl
25055+ case ${1} in
25056+ */*) func_dirname_result="${1%/*}${2}" ;;
25057+ * ) func_dirname_result="${3}" ;;
25058+ esac
25059+ func_basename_result="${1##*/}"])
25060
25061-# func_basename file
25062-func_basename ()
25063-{
25064- func_basename_result=`$ECHO "${1}" | $SED "$basename"`
25065-}
25066+ _LT_PROG_FUNCTION_REPLACE([func_stripname], [dnl
25067+ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
25068+ # positional parameters, so assign one to ordinary parameter first.
25069+ func_stripname_result=${3}
25070+ func_stripname_result=${func_stripname_result#"${1}"}
25071+ func_stripname_result=${func_stripname_result%"${2}"}])
25072
25073-dnl func_dirname_and_basename
25074-dnl A portable version of this function is already defined in general.m4sh
25075-dnl so there is no need for it here.
25076+ _LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl
25077+ func_split_long_opt_name=${1%%=*}
25078+ func_split_long_opt_arg=${1#*=}])
25079
25080-# func_stripname prefix suffix name
25081-# strip PREFIX and SUFFIX off of NAME.
25082-# PREFIX and SUFFIX must not contain globbing or regex special
25083-# characters, hashes, percent signs, but SUFFIX may contain a leading
25084-# dot (in which case that matches only a dot).
25085-# func_strip_suffix prefix name
25086-func_stripname ()
25087-{
25088- case ${2} in
25089- .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
25090- *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
25091- esac
25092-}
25093+ _LT_PROG_FUNCTION_REPLACE([func_split_short_opt], [dnl
25094+ func_split_short_opt_arg=${1#??}
25095+ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}])
25096
25097-# sed scripts:
25098-my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
25099-my_sed_long_arg='1s/^-[[^=]]*=//'
25100+ _LT_PROG_FUNCTION_REPLACE([func_lo2o], [dnl
25101+ case ${1} in
25102+ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
25103+ *) func_lo2o_result=${1} ;;
25104+ esac])
25105
25106-# func_opt_split
25107-func_opt_split ()
25108-{
25109- func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
25110- func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
25111-}
25112+ _LT_PROG_FUNCTION_REPLACE([func_xform], [ func_xform_result=${1%.*}.lo])
25113
25114-# func_lo2o object
25115-func_lo2o ()
25116-{
25117- func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
25118-}
25119+ _LT_PROG_FUNCTION_REPLACE([func_arith], [ func_arith_result=$(( $[*] ))])
25120
25121-# func_xform libobj-or-source
25122-func_xform ()
25123-{
25124- func_xform_result=`$ECHO "${1}" | $SED 's/\.[[^.]]*$/.lo/'`
25125-}
25126+ _LT_PROG_FUNCTION_REPLACE([func_len], [ func_len_result=${#1}])
25127+fi
25128
25129-# func_arith arithmetic-term...
25130-func_arith ()
25131-{
25132- func_arith_result=`expr "$[@]"`
25133-}
25134+if test x"$lt_shell_append" = xyes; then
25135+ _LT_PROG_FUNCTION_REPLACE([func_append], [ eval "${1}+=\\${2}"])
25136
25137-# func_len string
25138-# STRING may not start with a hyphen.
25139-func_len ()
25140-{
25141- func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
25142-}
25143+ _LT_PROG_FUNCTION_REPLACE([func_append_quoted], [dnl
25144+ func_quote_for_eval "${2}"
25145+dnl m4 expansion turns \\\\ into \\, and then the shell eval turns that into \
25146+ eval "${1}+=\\\\ \\$func_quote_for_eval_result"])
25147
25148-_LT_EOF
25149-esac
25150+ # Save a `func_append' function call where possible by direct use of '+='
25151+ sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
25152+ && mv -f "$cfgfile.tmp" "$cfgfile" \
25153+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
25154+ test 0 -eq $? || _lt_function_replace_fail=:
25155+else
25156+ # Save a `func_append' function call even when '+=' is not available
25157+ sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
25158+ && mv -f "$cfgfile.tmp" "$cfgfile" \
25159+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
25160+ test 0 -eq $? || _lt_function_replace_fail=:
25161+fi
25162
25163-case $lt_shell_append in
25164- yes)
25165- cat << \_LT_EOF >> "$cfgfile"
25166+if test x"$_lt_function_replace_fail" = x":"; then
25167+ AC_MSG_WARN([Unable to substitute extended shell functions in $ofile])
25168+fi
25169+])
25170
25171-# func_append var value
25172-# Append VALUE to the end of shell variable VAR.
25173-func_append ()
25174-{
25175- eval "$[1]+=\$[2]"
25176-}
25177-_LT_EOF
25178+# _LT_PATH_CONVERSION_FUNCTIONS
25179+# -----------------------------
25180+# Determine which file name conversion functions should be used by
25181+# func_to_host_file (and, implicitly, by func_to_host_path). These are needed
25182+# for certain cross-compile configurations and native mingw.
25183+m4_defun([_LT_PATH_CONVERSION_FUNCTIONS],
25184+[AC_REQUIRE([AC_CANONICAL_HOST])dnl
25185+AC_REQUIRE([AC_CANONICAL_BUILD])dnl
25186+AC_MSG_CHECKING([how to convert $build file names to $host format])
25187+AC_CACHE_VAL(lt_cv_to_host_file_cmd,
25188+[case $host in
25189+ *-*-mingw* )
25190+ case $build in
25191+ *-*-mingw* ) # actually msys
25192+ lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
25193+ ;;
25194+ *-*-cygwin* )
25195+ lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
25196+ ;;
25197+ * ) # otherwise, assume *nix
25198+ lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
25199+ ;;
25200+ esac
25201 ;;
25202- *)
25203- cat << \_LT_EOF >> "$cfgfile"
25204-
25205-# func_append var value
25206-# Append VALUE to the end of shell variable VAR.
25207-func_append ()
25208-{
25209- eval "$[1]=\$$[1]\$[2]"
25210-}
25211-
25212-_LT_EOF
25213+ *-*-cygwin* )
25214+ case $build in
25215+ *-*-mingw* ) # actually msys
25216+ lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
25217+ ;;
25218+ *-*-cygwin* )
25219+ lt_cv_to_host_file_cmd=func_convert_file_noop
25220+ ;;
25221+ * ) # otherwise, assume *nix
25222+ lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
25223+ ;;
25224+ esac
25225 ;;
25226- esac
25227+ * ) # unhandled hosts (and "normal" native builds)
25228+ lt_cv_to_host_file_cmd=func_convert_file_noop
25229+ ;;
25230+esac
25231+])
25232+to_host_file_cmd=$lt_cv_to_host_file_cmd
25233+AC_MSG_RESULT([$lt_cv_to_host_file_cmd])
25234+_LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd],
25235+ [0], [convert $build file names to $host format])dnl
25236+
25237+AC_MSG_CHECKING([how to convert $build file names to toolchain format])
25238+AC_CACHE_VAL(lt_cv_to_tool_file_cmd,
25239+[#assume ordinary cross tools, or native build.
25240+lt_cv_to_tool_file_cmd=func_convert_file_noop
25241+case $host in
25242+ *-*-mingw* )
25243+ case $build in
25244+ *-*-mingw* ) # actually msys
25245+ lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
25246+ ;;
25247+ esac
25248+ ;;
25249+esac
25250 ])
25251+to_tool_file_cmd=$lt_cv_to_tool_file_cmd
25252+AC_MSG_RESULT([$lt_cv_to_tool_file_cmd])
25253+_LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd],
25254+ [0], [convert $build files to toolchain format])dnl
25255+])# _LT_PATH_CONVERSION_FUNCTIONS
25256diff --git a/ltmain.sh b/ltmain.sh
25257index 70990740b6c..7f7104ffc82 100644
25258--- a/ltmain.sh
25259+++ b/ltmain.sh
25260@@ -1,10 +1,9 @@
25261-# Generated from ltmain.m4sh.
25262
25263-# libtool (GNU libtool 1.3134 2009-11-29) 2.2.7a
25264+# libtool (GNU libtool) 2.4
25265 # Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
25266
25267 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006,
25268-# 2007, 2008, 2009 Free Software Foundation, Inc.
25269+# 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
25270 # This is free software; see the source for copying conditions. There is NO
25271 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
25272
25273@@ -38,7 +37,6 @@
25274 # -n, --dry-run display commands without modifying any files
25275 # --features display basic configuration information and exit
25276 # --mode=MODE use operation mode MODE
25277-# --no-finish let install mode avoid finish commands
25278 # --preserve-dup-deps don't remove duplicate dependency libraries
25279 # --quiet, --silent don't print informational messages
25280 # --no-quiet, --no-silent
25281@@ -71,17 +69,19 @@
25282 # compiler: $LTCC
25283 # compiler flags: $LTCFLAGS
25284 # linker: $LD (gnu? $with_gnu_ld)
25285-# $progname: (GNU libtool 1.3134 2009-11-29) 2.2.7a
25286+# $progname: (GNU libtool) 2.4
25287 # automake: $automake_version
25288 # autoconf: $autoconf_version
25289 #
25290 # Report bugs to <bug-libtool@gnu.org>.
25291+# GNU libtool home page: <http://www.gnu.org/software/libtool/>.
25292+# General help using GNU software: <http://www.gnu.org/gethelp/>.
25293
25294 PROGRAM=libtool
25295 PACKAGE=libtool
25296-VERSION=2.2.7a
25297-TIMESTAMP=" 1.3134 2009-11-29"
25298-package_revision=1.3134
25299+VERSION=2.4
25300+TIMESTAMP=""
25301+package_revision=1.3293
25302
25303 # Be Bourne compatible
25304 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25305@@ -106,9 +106,6 @@ _LTECHO_EOF'
25306 }
25307
25308 # NLS nuisances: We save the old values to restore during execute mode.
25309-# Only set LANG and LC_ALL to C if already set.
25310-# These must not be set unconditionally because not all systems understand
25311-# e.g. LANG=C (notably SCO).
25312 lt_user_locale=
25313 lt_safe_locale=
25314 for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
25315@@ -121,15 +118,13 @@ do
25316 lt_safe_locale=\"$lt_var=C; \$lt_safe_locale\"
25317 fi"
25318 done
25319+LC_ALL=C
25320+LANGUAGE=C
25321+export LANGUAGE LC_ALL
25322
25323 $lt_unset CDPATH
25324
25325
25326-
25327-
25328-
25329-
25330-
25331 # Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
25332 # is ksh but when the shell is invoked as "sh" and the current value of
25333 # the _XPG environment variable is not equal to 1 (one), the special
25334@@ -140,7 +135,7 @@ progpath="$0"
25335
25336
25337 : ${CP="cp -f"}
25338-: ${ECHO=$as_echo}
25339+test "${ECHO+set}" = set || ECHO=${as_echo-'printf %s\n'}
25340 : ${EGREP="/bin/grep -E"}
25341 : ${FGREP="/bin/grep -F"}
25342 : ${GREP="/bin/grep"}
25343@@ -149,7 +144,7 @@ progpath="$0"
25344 : ${MKDIR="mkdir"}
25345 : ${MV="mv -f"}
25346 : ${RM="rm -f"}
25347-: ${SED="/mount/endor/wildenhu/local-x86_64/bin/sed"}
25348+: ${SED="/bin/sed"}
25349 : ${SHELL="${CONFIG_SHELL-/bin/sh}"}
25350 : ${Xsed="$SED -e 1s/^X//"}
25351
25352@@ -169,6 +164,27 @@ IFS=" $lt_nl"
25353 dirname="s,/[^/]*$,,"
25354 basename="s,^.*/,,"
25355
25356+# func_dirname file append nondir_replacement
25357+# Compute the dirname of FILE. If nonempty, add APPEND to the result,
25358+# otherwise set result to NONDIR_REPLACEMENT.
25359+func_dirname ()
25360+{
25361+ func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
25362+ if test "X$func_dirname_result" = "X${1}"; then
25363+ func_dirname_result="${3}"
25364+ else
25365+ func_dirname_result="$func_dirname_result${2}"
25366+ fi
25367+} # func_dirname may be replaced by extended shell implementation
25368+
25369+
25370+# func_basename file
25371+func_basename ()
25372+{
25373+ func_basename_result=`$ECHO "${1}" | $SED "$basename"`
25374+} # func_basename may be replaced by extended shell implementation
25375+
25376+
25377 # func_dirname_and_basename file append nondir_replacement
25378 # perform func_basename and func_dirname in a single function
25379 # call:
25380@@ -183,17 +199,31 @@ basename="s,^.*/,,"
25381 # those functions but instead duplicate the functionality here.
25382 func_dirname_and_basename ()
25383 {
25384- # Extract subdirectory from the argument.
25385- func_dirname_result=`$ECHO "${1}" | $SED -e "$dirname"`
25386- if test "X$func_dirname_result" = "X${1}"; then
25387- func_dirname_result="${3}"
25388- else
25389- func_dirname_result="$func_dirname_result${2}"
25390- fi
25391- func_basename_result=`$ECHO "${1}" | $SED -e "$basename"`
25392-}
25393+ # Extract subdirectory from the argument.
25394+ func_dirname_result=`$ECHO "${1}" | $SED -e "$dirname"`
25395+ if test "X$func_dirname_result" = "X${1}"; then
25396+ func_dirname_result="${3}"
25397+ else
25398+ func_dirname_result="$func_dirname_result${2}"
25399+ fi
25400+ func_basename_result=`$ECHO "${1}" | $SED -e "$basename"`
25401+} # func_dirname_and_basename may be replaced by extended shell implementation
25402+
25403+
25404+# func_stripname prefix suffix name
25405+# strip PREFIX and SUFFIX off of NAME.
25406+# PREFIX and SUFFIX must not contain globbing or regex special
25407+# characters, hashes, percent signs, but SUFFIX may contain a leading
25408+# dot (in which case that matches only a dot).
25409+# func_strip_suffix prefix name
25410+func_stripname ()
25411+{
25412+ case ${2} in
25413+ .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
25414+ *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
25415+ esac
25416+} # func_stripname may be replaced by extended shell implementation
25417
25418-# Generated shell functions inserted here.
25419
25420 # These SED scripts presuppose an absolute path with a trailing slash.
25421 pathcar='s,^/\([^/]*\).*$,\1,'
25422@@ -376,6 +406,15 @@ sed_quote_subst='s/\([`"$\\]\)/\\\1/g'
25423 # Same as above, but do not quote variable references.
25424 double_quote_subst='s/\(["`\\]\)/\\\1/g'
25425
25426+# Sed substitution that turns a string into a regex matching for the
25427+# string literally.
25428+sed_make_literal_regex='s,[].[^$\\*\/],\\&,g'
25429+
25430+# Sed substitution that converts a w32 file name or path
25431+# which contains forward slashes, into one that contains
25432+# (escaped) backslashes. A very naive implementation.
25433+lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
25434+
25435 # Re-`\' parameter expansions in output of double_quote_subst that were
25436 # `\'-ed in input to the same. If an odd number of `\' preceded a '$'
25437 # in input to double_quote_subst, that '$' was protected from expansion.
25438@@ -404,7 +443,7 @@ opt_warning=:
25439 # name if it has been set yet.
25440 func_echo ()
25441 {
25442- $ECHO "$progname${mode+: }$mode: $*"
25443+ $ECHO "$progname: ${opt_mode+$opt_mode: }$*"
25444 }
25445
25446 # func_verbose arg...
25447@@ -430,14 +469,14 @@ func_echo_all ()
25448 # Echo program name prefixed message to standard error.
25449 func_error ()
25450 {
25451- $ECHO "$progname${mode+: }$mode: "${1+"$@"} 1>&2
25452+ $ECHO "$progname: ${opt_mode+$opt_mode: }"${1+"$@"} 1>&2
25453 }
25454
25455 # func_warning arg...
25456 # Echo program name prefixed warning message to standard error.
25457 func_warning ()
25458 {
25459- $opt_warning && $ECHO "$progname${mode+: }$mode: warning: "${1+"$@"} 1>&2
25460+ $opt_warning && $ECHO "$progname: ${opt_mode+$opt_mode: }warning: "${1+"$@"} 1>&2
25461
25462 # bash bug again:
25463 :
25464@@ -656,19 +695,35 @@ func_show_eval_locale ()
25465 fi
25466 }
25467
25468-
25469-
25470+# func_tr_sh
25471+# Turn $1 into a string suitable for a shell variable name.
25472+# Result is stored in $func_tr_sh_result. All characters
25473+# not in the set a-zA-Z0-9_ are replaced with '_'. Further,
25474+# if $1 begins with a digit, a '_' is prepended as well.
25475+func_tr_sh ()
25476+{
25477+ case $1 in
25478+ [0-9]* | *[!a-zA-Z0-9_]*)
25479+ func_tr_sh_result=`$ECHO "$1" | $SED 's/^\([0-9]\)/_\1/; s/[^a-zA-Z0-9_]/_/g'`
25480+ ;;
25481+ * )
25482+ func_tr_sh_result=$1
25483+ ;;
25484+ esac
25485+}
25486
25487
25488 # func_version
25489 # Echo version message to standard output and exit.
25490 func_version ()
25491 {
25492+ $opt_debug
25493+
25494 $SED -n '/(C)/!b go
25495 :more
25496 /\./!{
25497 N
25498- s/\n# //
25499+ s/\n# / /
25500 b more
25501 }
25502 :go
25503@@ -685,7 +740,9 @@ func_version ()
25504 # Echo short help message to standard output and exit.
25505 func_usage ()
25506 {
25507- $SED -n '/^# Usage:/,/^# *-h/ {
25508+ $opt_debug
25509+
25510+ $SED -n '/^# Usage:/,/^# *.*--help/ {
25511 s/^# //
25512 s/^# *$//
25513 s/\$progname/'$progname'/
25514@@ -701,7 +758,10 @@ func_usage ()
25515 # unless 'noexit' is passed as argument.
25516 func_help ()
25517 {
25518+ $opt_debug
25519+
25520 $SED -n '/^# Usage:/,/# Report bugs to/ {
25521+ :print
25522 s/^# //
25523 s/^# *$//
25524 s*\$progname*'$progname'*
25525@@ -714,7 +774,11 @@ func_help ()
25526 s/\$automake_version/'"`(automake --version) 2>/dev/null |$SED 1q`"'/
25527 s/\$autoconf_version/'"`(autoconf --version) 2>/dev/null |$SED 1q`"'/
25528 p
25529- }' < "$progpath"
25530+ d
25531+ }
25532+ /^# .* home page:/b print
25533+ /^# General help using/b print
25534+ ' < "$progpath"
25535 ret=$?
25536 if test -z "$1"; then
25537 exit $ret
25538@@ -726,12 +790,39 @@ func_help ()
25539 # exit_cmd.
25540 func_missing_arg ()
25541 {
25542- func_error "missing argument for $1"
25543+ $opt_debug
25544+
25545+ func_error "missing argument for $1."
25546 exit_cmd=exit
25547 }
25548
25549-exit_cmd=:
25550
25551+# func_split_short_opt shortopt
25552+# Set func_split_short_opt_name and func_split_short_opt_arg shell
25553+# variables after splitting SHORTOPT after the 2nd character.
25554+func_split_short_opt ()
25555+{
25556+ my_sed_short_opt='1s/^\(..\).*$/\1/;q'
25557+ my_sed_short_rest='1s/^..\(.*\)$/\1/;q'
25558+
25559+ func_split_short_opt_name=`$ECHO "$1" | $SED "$my_sed_short_opt"`
25560+ func_split_short_opt_arg=`$ECHO "$1" | $SED "$my_sed_short_rest"`
25561+} # func_split_short_opt may be replaced by extended shell implementation
25562+
25563+
25564+# func_split_long_opt longopt
25565+# Set func_split_long_opt_name and func_split_long_opt_arg shell
25566+# variables after splitting LONGOPT at the `=' sign.
25567+func_split_long_opt ()
25568+{
25569+ my_sed_long_opt='1s/^\(--[^=]*\)=.*/\1/;q'
25570+ my_sed_long_arg='1s/^--[^=]*=//'
25571+
25572+ func_split_long_opt_name=`$ECHO "$1" | $SED "$my_sed_long_opt"`
25573+ func_split_long_opt_arg=`$ECHO "$1" | $SED "$my_sed_long_arg"`
25574+} # func_split_long_opt may be replaced by extended shell implementation
25575+
25576+exit_cmd=:
25577
25578
25579
25580@@ -741,26 +832,64 @@ magic="%%%MAGIC variable%%%"
25581 magic_exe="%%%MAGIC EXE variable%%%"
25582
25583 # Global variables.
25584-# $mode is unset
25585 nonopt=
25586-execute_dlfiles=
25587 preserve_args=
25588 lo2o="s/\\.lo\$/.${objext}/"
25589 o2lo="s/\\.${objext}\$/.lo/"
25590 extracted_archives=
25591 extracted_serial=0
25592
25593-opt_dry_run=false
25594-opt_finish=:
25595-opt_duplicate_deps=false
25596-opt_silent=false
25597-opt_debug=:
25598-
25599 # If this variable is set in any of the actions, the command in it
25600 # will be execed at the end. This prevents here-documents from being
25601 # left over by shells.
25602 exec_cmd=
25603
25604+# func_append var value
25605+# Append VALUE to the end of shell variable VAR.
25606+func_append ()
25607+{
25608+ eval "${1}=\$${1}\${2}"
25609+} # func_append may be replaced by extended shell implementation
25610+
25611+# func_append_quoted var value
25612+# Quote VALUE and append to the end of shell variable VAR, separated
25613+# by a space.
25614+func_append_quoted ()
25615+{
25616+ func_quote_for_eval "${2}"
25617+ eval "${1}=\$${1}\\ \$func_quote_for_eval_result"
25618+} # func_append_quoted may be replaced by extended shell implementation
25619+
25620+
25621+# func_arith arithmetic-term...
25622+func_arith ()
25623+{
25624+ func_arith_result=`expr "${@}"`
25625+} # func_arith may be replaced by extended shell implementation
25626+
25627+
25628+# func_len string
25629+# STRING may not start with a hyphen.
25630+func_len ()
25631+{
25632+ func_len_result=`expr "${1}" : ".*" 2>/dev/null || echo $max_cmd_len`
25633+} # func_len may be replaced by extended shell implementation
25634+
25635+
25636+# func_lo2o object
25637+func_lo2o ()
25638+{
25639+ func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
25640+} # func_lo2o may be replaced by extended shell implementation
25641+
25642+
25643+# func_xform libobj-or-source
25644+func_xform ()
25645+{
25646+ func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
25647+} # func_xform may be replaced by extended shell implementation
25648+
25649+
25650 # func_fatal_configuration arg...
25651 # Echo program name prefixed message to standard error, followed by
25652 # a configuration failure hint, and exit.
25653@@ -850,130 +979,204 @@ func_enable_tag ()
25654 esac
25655 }
25656
25657-# Parse options once, thoroughly. This comes as soon as possible in
25658-# the script to make things like `libtool --version' happen quickly.
25659+# func_check_version_match
25660+# Ensure that we are using m4 macros, and libtool script from the same
25661+# release of libtool.
25662+func_check_version_match ()
25663 {
25664+ if test "$package_revision" != "$macro_revision"; then
25665+ if test "$VERSION" != "$macro_version"; then
25666+ if test -z "$macro_version"; then
25667+ cat >&2 <<_LT_EOF
25668+$progname: Version mismatch error. This is $PACKAGE $VERSION, but the
25669+$progname: definition of this LT_INIT comes from an older release.
25670+$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
25671+$progname: and run autoconf again.
25672+_LT_EOF
25673+ else
25674+ cat >&2 <<_LT_EOF
25675+$progname: Version mismatch error. This is $PACKAGE $VERSION, but the
25676+$progname: definition of this LT_INIT comes from $PACKAGE $macro_version.
25677+$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
25678+$progname: and run autoconf again.
25679+_LT_EOF
25680+ fi
25681+ else
25682+ cat >&2 <<_LT_EOF
25683+$progname: Version mismatch error. This is $PACKAGE $VERSION, revision $package_revision,
25684+$progname: but the definition of this LT_INIT comes from revision $macro_revision.
25685+$progname: You should recreate aclocal.m4 with macros from revision $package_revision
25686+$progname: of $PACKAGE $VERSION and run autoconf again.
25687+_LT_EOF
25688+ fi
25689
25690- # Shorthand for --mode=foo, only valid as the first argument
25691- case $1 in
25692- clean|clea|cle|cl)
25693- shift; set dummy --mode clean ${1+"$@"}; shift
25694- ;;
25695- compile|compil|compi|comp|com|co|c)
25696- shift; set dummy --mode compile ${1+"$@"}; shift
25697- ;;
25698- execute|execut|execu|exec|exe|ex|e)
25699- shift; set dummy --mode execute ${1+"$@"}; shift
25700- ;;
25701- finish|finis|fini|fin|fi|f)
25702- shift; set dummy --mode finish ${1+"$@"}; shift
25703- ;;
25704- install|instal|insta|inst|ins|in|i)
25705- shift; set dummy --mode install ${1+"$@"}; shift
25706- ;;
25707- link|lin|li|l)
25708- shift; set dummy --mode link ${1+"$@"}; shift
25709- ;;
25710- uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u)
25711- shift; set dummy --mode uninstall ${1+"$@"}; shift
25712- ;;
25713- esac
25714+ exit $EXIT_MISMATCH
25715+ fi
25716+}
25717+
25718+
25719+# Shorthand for --mode=foo, only valid as the first argument
25720+case $1 in
25721+clean|clea|cle|cl)
25722+ shift; set dummy --mode clean ${1+"$@"}; shift
25723+ ;;
25724+compile|compil|compi|comp|com|co|c)
25725+ shift; set dummy --mode compile ${1+"$@"}; shift
25726+ ;;
25727+execute|execut|execu|exec|exe|ex|e)
25728+ shift; set dummy --mode execute ${1+"$@"}; shift
25729+ ;;
25730+finish|finis|fini|fin|fi|f)
25731+ shift; set dummy --mode finish ${1+"$@"}; shift
25732+ ;;
25733+install|instal|insta|inst|ins|in|i)
25734+ shift; set dummy --mode install ${1+"$@"}; shift
25735+ ;;
25736+link|lin|li|l)
25737+ shift; set dummy --mode link ${1+"$@"}; shift
25738+ ;;
25739+uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u)
25740+ shift; set dummy --mode uninstall ${1+"$@"}; shift
25741+ ;;
25742+esac
25743
25744- # Parse non-mode specific arguments:
25745- while test "$#" -gt 0; do
25746+
25747+
25748+# Option defaults:
25749+opt_debug=:
25750+opt_dry_run=false
25751+opt_config=false
25752+opt_preserve_dup_deps=false
25753+opt_features=false
25754+opt_finish=false
25755+opt_help=false
25756+opt_help_all=false
25757+opt_silent=:
25758+opt_verbose=:
25759+opt_silent=false
25760+opt_verbose=false
25761+
25762+
25763+# Parse options once, thoroughly. This comes as soon as possible in the
25764+# script to make things like `--version' happen as quickly as we can.
25765+{
25766+ # this just eases exit handling
25767+ while test $# -gt 0; do
25768 opt="$1"
25769 shift
25770-
25771 case $opt in
25772- --config) func_config ;;
25773-
25774- --debug) preserve_args="$preserve_args $opt"
25775+ --debug|-x) opt_debug='set -x'
25776 func_echo "enabling shell trace mode"
25777- opt_debug='set -x'
25778 $opt_debug
25779 ;;
25780-
25781- -dlopen) test "$#" -eq 0 && func_missing_arg "$opt" && break
25782- execute_dlfiles="$execute_dlfiles $1"
25783- shift
25784+ --dry-run|--dryrun|-n)
25785+ opt_dry_run=:
25786 ;;
25787-
25788- --dry-run | -n) opt_dry_run=: ;;
25789- --features) func_features ;;
25790- --finish) mode="finish" ;;
25791- --no-finish) opt_finish=false ;;
25792-
25793- --mode) test "$#" -eq 0 && func_missing_arg "$opt" && break
25794- case $1 in
25795- # Valid mode arguments:
25796- clean) ;;
25797- compile) ;;
25798- execute) ;;
25799- finish) ;;
25800- install) ;;
25801- link) ;;
25802- relink) ;;
25803- uninstall) ;;
25804-
25805- # Catch anything else as an error
25806- *) func_error "invalid argument for $opt"
25807- exit_cmd=exit
25808- break
25809- ;;
25810- esac
25811-
25812- mode="$1"
25813+ --config)
25814+ opt_config=:
25815+func_config
25816+ ;;
25817+ --dlopen|-dlopen)
25818+ optarg="$1"
25819+ opt_dlopen="${opt_dlopen+$opt_dlopen
25820+}$optarg"
25821 shift
25822 ;;
25823-
25824 --preserve-dup-deps)
25825- opt_duplicate_deps=: ;;
25826-
25827- --quiet|--silent) preserve_args="$preserve_args $opt"
25828- opt_silent=:
25829- opt_verbose=false
25830+ opt_preserve_dup_deps=:
25831 ;;
25832-
25833- --no-quiet|--no-silent)
25834- preserve_args="$preserve_args $opt"
25835- opt_silent=false
25836+ --features)
25837+ opt_features=:
25838+func_features
25839 ;;
25840-
25841- --verbose| -v) preserve_args="$preserve_args $opt"
25842+ --finish)
25843+ opt_finish=:
25844+set dummy --mode finish ${1+"$@"}; shift
25845+ ;;
25846+ --help)
25847+ opt_help=:
25848+ ;;
25849+ --help-all)
25850+ opt_help_all=:
25851+opt_help=': help-all'
25852+ ;;
25853+ --mode)
25854+ test $# = 0 && func_missing_arg $opt && break
25855+ optarg="$1"
25856+ opt_mode="$optarg"
25857+case $optarg in
25858+ # Valid mode arguments:
25859+ clean|compile|execute|finish|install|link|relink|uninstall) ;;
25860+
25861+ # Catch anything else as an error
25862+ *) func_error "invalid argument for $opt"
25863+ exit_cmd=exit
25864+ break
25865+ ;;
25866+esac
25867+ shift
25868+ ;;
25869+ --no-silent|--no-quiet)
25870 opt_silent=false
25871- opt_verbose=:
25872+func_append preserve_args " $opt"
25873 ;;
25874-
25875- --no-verbose) preserve_args="$preserve_args $opt"
25876+ --no-verbose)
25877 opt_verbose=false
25878+func_append preserve_args " $opt"
25879 ;;
25880-
25881- --tag) test "$#" -eq 0 && func_missing_arg "$opt" && break
25882- preserve_args="$preserve_args $opt $1"
25883- func_enable_tag "$1" # tagname is set here
25884+ --silent|--quiet)
25885+ opt_silent=:
25886+func_append preserve_args " $opt"
25887+ opt_verbose=false
25888+ ;;
25889+ --verbose|-v)
25890+ opt_verbose=:
25891+func_append preserve_args " $opt"
25892+opt_silent=false
25893+ ;;
25894+ --tag)
25895+ test $# = 0 && func_missing_arg $opt && break
25896+ optarg="$1"
25897+ opt_tag="$optarg"
25898+func_append preserve_args " $opt $optarg"
25899+func_enable_tag "$optarg"
25900 shift
25901 ;;
25902
25903+ -\?|-h) func_usage ;;
25904+ --help) func_help ;;
25905+ --version) func_version ;;
25906+
25907 # Separate optargs to long options:
25908- -dlopen=*|--mode=*|--tag=*)
25909- func_opt_split "$opt"
25910- set dummy "$func_opt_split_opt" "$func_opt_split_arg" ${1+"$@"}
25911+ --*=*)
25912+ func_split_long_opt "$opt"
25913+ set dummy "$func_split_long_opt_name" "$func_split_long_opt_arg" ${1+"$@"}
25914 shift
25915 ;;
25916
25917- -\?|-h) func_usage ;;
25918- --help) opt_help=: ;;
25919- --help-all) opt_help=': help-all' ;;
25920- --version) func_version ;;
25921-
25922- -*) func_fatal_help "unrecognized option \`$opt'" ;;
25923-
25924- *) nonopt="$opt"
25925- break
25926+ # Separate non-argument short options:
25927+ -\?*|-h*|-n*|-v*)
25928+ func_split_short_opt "$opt"
25929+ set dummy "$func_split_short_opt_name" "-$func_split_short_opt_arg" ${1+"$@"}
25930+ shift
25931 ;;
25932+
25933+ --) break ;;
25934+ -*) func_fatal_help "unrecognized option \`$opt'" ;;
25935+ *) set dummy "$opt" ${1+"$@"}; shift; break ;;
25936 esac
25937 done
25938
25939+ # Validate options:
25940+
25941+ # save first non-option argument
25942+ if test "$#" -gt 0; then
25943+ nonopt="$opt"
25944+ shift
25945+ fi
25946+
25947+ # preserve --debug
25948+ test "$opt_debug" = : || func_append preserve_args " --debug"
25949
25950 case $host in
25951 *cygwin* | *mingw* | *pw32* | *cegcc* | *solaris2* )
25952@@ -981,82 +1184,44 @@ func_enable_tag ()
25953 opt_duplicate_compiler_generated_deps=:
25954 ;;
25955 *)
25956- opt_duplicate_compiler_generated_deps=$opt_duplicate_deps
25957+ opt_duplicate_compiler_generated_deps=$opt_preserve_dup_deps
25958 ;;
25959 esac
25960
25961- # Having warned about all mis-specified options, bail out if
25962- # anything was wrong.
25963- $exit_cmd $EXIT_FAILURE
25964-}
25965+ $opt_help || {
25966+ # Sanity checks first:
25967+ func_check_version_match
25968
25969-# func_check_version_match
25970-# Ensure that we are using m4 macros, and libtool script from the same
25971-# release of libtool.
25972-func_check_version_match ()
25973-{
25974- if test "$package_revision" != "$macro_revision"; then
25975- if test "$VERSION" != "$macro_version"; then
25976- if test -z "$macro_version"; then
25977- cat >&2 <<_LT_EOF
25978-$progname: Version mismatch error. This is $PACKAGE $VERSION, but the
25979-$progname: definition of this LT_INIT comes from an older release.
25980-$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
25981-$progname: and run autoconf again.
25982-_LT_EOF
25983- else
25984- cat >&2 <<_LT_EOF
25985-$progname: Version mismatch error. This is $PACKAGE $VERSION, but the
25986-$progname: definition of this LT_INIT comes from $PACKAGE $macro_version.
25987-$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
25988-$progname: and run autoconf again.
25989-_LT_EOF
25990- fi
25991- else
25992- cat >&2 <<_LT_EOF
25993-$progname: Version mismatch error. This is $PACKAGE $VERSION, revision $package_revision,
25994-$progname: but the definition of this LT_INIT comes from revision $macro_revision.
25995-$progname: You should recreate aclocal.m4 with macros from revision $package_revision
25996-$progname: of $PACKAGE $VERSION and run autoconf again.
25997-_LT_EOF
25998+ if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
25999+ func_fatal_configuration "not configured to build any kind of library"
26000 fi
26001
26002- exit $EXIT_MISMATCH
26003- fi
26004-}
26005-
26006+ # Darwin sucks
26007+ eval std_shrext=\"$shrext_cmds\"
26008
26009-## ----------- ##
26010-## Main. ##
26011-## ----------- ##
26012-
26013-$opt_help || {
26014- # Sanity checks first:
26015- func_check_version_match
26016-
26017- if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
26018- func_fatal_configuration "not configured to build any kind of library"
26019- fi
26020+ # Only execute mode is allowed to have -dlopen flags.
26021+ if test -n "$opt_dlopen" && test "$opt_mode" != execute; then
26022+ func_error "unrecognized option \`-dlopen'"
26023+ $ECHO "$help" 1>&2
26024+ exit $EXIT_FAILURE
26025+ fi
26026
26027- test -z "$mode" && func_fatal_error "error: you must specify a MODE."
26028+ # Change the help message to a mode-specific one.
26029+ generic_help="$help"
26030+ help="Try \`$progname --help --mode=$opt_mode' for more information."
26031+ }
26032
26033
26034- # Darwin sucks
26035- eval "std_shrext=\"$shrext_cmds\""
26036+ # Bail if the options were screwed
26037+ $exit_cmd $EXIT_FAILURE
26038+}
26039
26040
26041- # Only execute mode is allowed to have -dlopen flags.
26042- if test -n "$execute_dlfiles" && test "$mode" != execute; then
26043- func_error "unrecognized option \`-dlopen'"
26044- $ECHO "$help" 1>&2
26045- exit $EXIT_FAILURE
26046- fi
26047
26048- # Change the help message to a mode-specific one.
26049- generic_help="$help"
26050- help="Try \`$progname --help --mode=$mode' for more information."
26051-}
26052
26053+## ----------- ##
26054+## Main. ##
26055+## ----------- ##
26056
26057 # func_lalib_p file
26058 # True iff FILE is a libtool `.la' library or `.lo' object file.
26059@@ -1121,12 +1286,9 @@ func_ltwrapper_executable_p ()
26060 # temporary ltwrapper_script.
26061 func_ltwrapper_scriptname ()
26062 {
26063- func_ltwrapper_scriptname_result=""
26064- if func_ltwrapper_executable_p "$1"; then
26065- func_dirname_and_basename "$1" "" "."
26066- func_stripname '' '.exe' "$func_basename_result"
26067- func_ltwrapper_scriptname_result="$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper"
26068- fi
26069+ func_dirname_and_basename "$1" "" "."
26070+ func_stripname '' '.exe' "$func_basename_result"
26071+ func_ltwrapper_scriptname_result="$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper"
26072 }
26073
26074 # func_ltwrapper_p file
26075@@ -1149,7 +1311,7 @@ func_execute_cmds ()
26076 save_ifs=$IFS; IFS='~'
26077 for cmd in $1; do
26078 IFS=$save_ifs
26079- eval "cmd=\"$cmd\""
26080+ eval cmd=\"$cmd\"
26081 func_show_eval "$cmd" "${2-:}"
26082 done
26083 IFS=$save_ifs
26084@@ -1172,6 +1334,37 @@ func_source ()
26085 }
26086
26087
26088+# func_resolve_sysroot PATH
26089+# Replace a leading = in PATH with a sysroot. Store the result into
26090+# func_resolve_sysroot_result
26091+func_resolve_sysroot ()
26092+{
26093+ func_resolve_sysroot_result=$1
26094+ case $func_resolve_sysroot_result in
26095+ =*)
26096+ func_stripname '=' '' "$func_resolve_sysroot_result"
26097+ func_resolve_sysroot_result=$lt_sysroot$func_stripname_result
26098+ ;;
26099+ esac
26100+}
26101+
26102+# func_replace_sysroot PATH
26103+# If PATH begins with the sysroot, replace it with = and
26104+# store the result into func_replace_sysroot_result.
26105+func_replace_sysroot ()
26106+{
26107+ case "$lt_sysroot:$1" in
26108+ ?*:"$lt_sysroot"*)
26109+ func_stripname "$lt_sysroot" '' "$1"
26110+ func_replace_sysroot_result="=$func_stripname_result"
26111+ ;;
26112+ *)
26113+ # Including no sysroot.
26114+ func_replace_sysroot_result=$1
26115+ ;;
26116+ esac
26117+}
26118+
26119 # func_infer_tag arg
26120 # Infer tagged configuration to use if any are available and
26121 # if one wasn't chosen via the "--tag" command line option.
26122@@ -1184,8 +1377,7 @@ func_infer_tag ()
26123 if test -n "$available_tags" && test -z "$tagname"; then
26124 CC_quoted=
26125 for arg in $CC; do
26126- func_quote_for_eval "$arg"
26127- CC_quoted="$CC_quoted $func_quote_for_eval_result"
26128+ func_append_quoted CC_quoted "$arg"
26129 done
26130 CC_expanded=`func_echo_all $CC`
26131 CC_quoted_expanded=`func_echo_all $CC_quoted`
26132@@ -1204,8 +1396,7 @@ func_infer_tag ()
26133 CC_quoted=
26134 for arg in $CC; do
26135 # Double-quote args containing other shell metacharacters.
26136- func_quote_for_eval "$arg"
26137- CC_quoted="$CC_quoted $func_quote_for_eval_result"
26138+ func_append_quoted CC_quoted "$arg"
26139 done
26140 CC_expanded=`func_echo_all $CC`
26141 CC_quoted_expanded=`func_echo_all $CC_quoted`
26142@@ -1274,6 +1465,486 @@ EOF
26143 }
26144 }
26145
26146+
26147+##################################################
26148+# FILE NAME AND PATH CONVERSION HELPER FUNCTIONS #
26149+##################################################
26150+
26151+# func_convert_core_file_wine_to_w32 ARG
26152+# Helper function used by file name conversion functions when $build is *nix,
26153+# and $host is mingw, cygwin, or some other w32 environment. Relies on a
26154+# correctly configured wine environment available, with the winepath program
26155+# in $build's $PATH.
26156+#
26157+# ARG is the $build file name to be converted to w32 format.
26158+# Result is available in $func_convert_core_file_wine_to_w32_result, and will
26159+# be empty on error (or when ARG is empty)
26160+func_convert_core_file_wine_to_w32 ()
26161+{
26162+ $opt_debug
26163+ func_convert_core_file_wine_to_w32_result="$1"
26164+ if test -n "$1"; then
26165+ # Unfortunately, winepath does not exit with a non-zero error code, so we
26166+ # are forced to check the contents of stdout. On the other hand, if the
26167+ # command is not found, the shell will set an exit code of 127 and print
26168+ # *an error message* to stdout. So we must check for both error code of
26169+ # zero AND non-empty stdout, which explains the odd construction:
26170+ func_convert_core_file_wine_to_w32_tmp=`winepath -w "$1" 2>/dev/null`
26171+ if test "$?" -eq 0 && test -n "${func_convert_core_file_wine_to_w32_tmp}"; then
26172+ func_convert_core_file_wine_to_w32_result=`$ECHO "$func_convert_core_file_wine_to_w32_tmp" |
26173+ $SED -e "$lt_sed_naive_backslashify"`
26174+ else
26175+ func_convert_core_file_wine_to_w32_result=
26176+ fi
26177+ fi
26178+}
26179+# end: func_convert_core_file_wine_to_w32
26180+
26181+
26182+# func_convert_core_path_wine_to_w32 ARG
26183+# Helper function used by path conversion functions when $build is *nix, and
26184+# $host is mingw, cygwin, or some other w32 environment. Relies on a correctly
26185+# configured wine environment available, with the winepath program in $build's
26186+# $PATH. Assumes ARG has no leading or trailing path separator characters.
26187+#
26188+# ARG is path to be converted from $build format to win32.
26189+# Result is available in $func_convert_core_path_wine_to_w32_result.
26190+# Unconvertible file (directory) names in ARG are skipped; if no directory names
26191+# are convertible, then the result may be empty.
26192+func_convert_core_path_wine_to_w32 ()
26193+{
26194+ $opt_debug
26195+ # unfortunately, winepath doesn't convert paths, only file names
26196+ func_convert_core_path_wine_to_w32_result=""
26197+ if test -n "$1"; then
26198+ oldIFS=$IFS
26199+ IFS=:
26200+ for func_convert_core_path_wine_to_w32_f in $1; do
26201+ IFS=$oldIFS
26202+ func_convert_core_file_wine_to_w32 "$func_convert_core_path_wine_to_w32_f"
26203+ if test -n "$func_convert_core_file_wine_to_w32_result" ; then
26204+ if test -z "$func_convert_core_path_wine_to_w32_result"; then
26205+ func_convert_core_path_wine_to_w32_result="$func_convert_core_file_wine_to_w32_result"
26206+ else
26207+ func_append func_convert_core_path_wine_to_w32_result ";$func_convert_core_file_wine_to_w32_result"
26208+ fi
26209+ fi
26210+ done
26211+ IFS=$oldIFS
26212+ fi
26213+}
26214+# end: func_convert_core_path_wine_to_w32
26215+
26216+
26217+# func_cygpath ARGS...
26218+# Wrapper around calling the cygpath program via LT_CYGPATH. This is used when
26219+# when (1) $build is *nix and Cygwin is hosted via a wine environment; or (2)
26220+# $build is MSYS and $host is Cygwin, or (3) $build is Cygwin. In case (1) or
26221+# (2), returns the Cygwin file name or path in func_cygpath_result (input
26222+# file name or path is assumed to be in w32 format, as previously converted
26223+# from $build's *nix or MSYS format). In case (3), returns the w32 file name
26224+# or path in func_cygpath_result (input file name or path is assumed to be in
26225+# Cygwin format). Returns an empty string on error.
26226+#
26227+# ARGS are passed to cygpath, with the last one being the file name or path to
26228+# be converted.
26229+#
26230+# Specify the absolute *nix (or w32) name to cygpath in the LT_CYGPATH
26231+# environment variable; do not put it in $PATH.
26232+func_cygpath ()
26233+{
26234+ $opt_debug
26235+ if test -n "$LT_CYGPATH" && test -f "$LT_CYGPATH"; then
26236+ func_cygpath_result=`$LT_CYGPATH "$@" 2>/dev/null`
26237+ if test "$?" -ne 0; then
26238+ # on failure, ensure result is empty
26239+ func_cygpath_result=
26240+ fi
26241+ else
26242+ func_cygpath_result=
26243+ func_error "LT_CYGPATH is empty or specifies non-existent file: \`$LT_CYGPATH'"
26244+ fi
26245+}
26246+#end: func_cygpath
26247+
26248+
26249+# func_convert_core_msys_to_w32 ARG
26250+# Convert file name or path ARG from MSYS format to w32 format. Return
26251+# result in func_convert_core_msys_to_w32_result.
26252+func_convert_core_msys_to_w32 ()
26253+{
26254+ $opt_debug
26255+ # awkward: cmd appends spaces to result
26256+ func_convert_core_msys_to_w32_result=`( cmd //c echo "$1" ) 2>/dev/null |
26257+ $SED -e 's/[ ]*$//' -e "$lt_sed_naive_backslashify"`
26258+}
26259+#end: func_convert_core_msys_to_w32
26260+
26261+
26262+# func_convert_file_check ARG1 ARG2
26263+# Verify that ARG1 (a file name in $build format) was converted to $host
26264+# format in ARG2. Otherwise, emit an error message, but continue (resetting
26265+# func_to_host_file_result to ARG1).
26266+func_convert_file_check ()
26267+{
26268+ $opt_debug
26269+ if test -z "$2" && test -n "$1" ; then
26270+ func_error "Could not determine host file name corresponding to"
26271+ func_error " \`$1'"
26272+ func_error "Continuing, but uninstalled executables may not work."
26273+ # Fallback:
26274+ func_to_host_file_result="$1"
26275+ fi
26276+}
26277+# end func_convert_file_check
26278+
26279+
26280+# func_convert_path_check FROM_PATHSEP TO_PATHSEP FROM_PATH TO_PATH
26281+# Verify that FROM_PATH (a path in $build format) was converted to $host
26282+# format in TO_PATH. Otherwise, emit an error message, but continue, resetting
26283+# func_to_host_file_result to a simplistic fallback value (see below).
26284+func_convert_path_check ()
26285+{
26286+ $opt_debug
26287+ if test -z "$4" && test -n "$3"; then
26288+ func_error "Could not determine the host path corresponding to"
26289+ func_error " \`$3'"
26290+ func_error "Continuing, but uninstalled executables may not work."
26291+ # Fallback. This is a deliberately simplistic "conversion" and
26292+ # should not be "improved". See libtool.info.
26293+ if test "x$1" != "x$2"; then
26294+ lt_replace_pathsep_chars="s|$1|$2|g"
26295+ func_to_host_path_result=`echo "$3" |
26296+ $SED -e "$lt_replace_pathsep_chars"`
26297+ else
26298+ func_to_host_path_result="$3"
26299+ fi
26300+ fi
26301+}
26302+# end func_convert_path_check
26303+
26304+
26305+# func_convert_path_front_back_pathsep FRONTPAT BACKPAT REPL ORIG
26306+# Modifies func_to_host_path_result by prepending REPL if ORIG matches FRONTPAT
26307+# and appending REPL if ORIG matches BACKPAT.
26308+func_convert_path_front_back_pathsep ()
26309+{
26310+ $opt_debug
26311+ case $4 in
26312+ $1 ) func_to_host_path_result="$3$func_to_host_path_result"
26313+ ;;
26314+ esac
26315+ case $4 in
26316+ $2 ) func_append func_to_host_path_result "$3"
26317+ ;;
26318+ esac
26319+}
26320+# end func_convert_path_front_back_pathsep
26321+
26322+
26323+##################################################
26324+# $build to $host FILE NAME CONVERSION FUNCTIONS #
26325+##################################################
26326+# invoked via `$to_host_file_cmd ARG'
26327+#
26328+# In each case, ARG is the path to be converted from $build to $host format.
26329+# Result will be available in $func_to_host_file_result.
26330+
26331+
26332+# func_to_host_file ARG
26333+# Converts the file name ARG from $build format to $host format. Return result
26334+# in func_to_host_file_result.
26335+func_to_host_file ()
26336+{
26337+ $opt_debug
26338+ $to_host_file_cmd "$1"
26339+}
26340+# end func_to_host_file
26341+
26342+
26343+# func_to_tool_file ARG LAZY
26344+# converts the file name ARG from $build format to toolchain format. Return
26345+# result in func_to_tool_file_result. If the conversion in use is listed
26346+# in (the comma separated) LAZY, no conversion takes place.
26347+func_to_tool_file ()
26348+{
26349+ $opt_debug
26350+ case ,$2, in
26351+ *,"$to_tool_file_cmd",*)
26352+ func_to_tool_file_result=$1
26353+ ;;
26354+ *)
26355+ $to_tool_file_cmd "$1"
26356+ func_to_tool_file_result=$func_to_host_file_result
26357+ ;;
26358+ esac
26359+}
26360+# end func_to_tool_file
26361+
26362+
26363+# func_convert_file_noop ARG
26364+# Copy ARG to func_to_host_file_result.
26365+func_convert_file_noop ()
26366+{
26367+ func_to_host_file_result="$1"
26368+}
26369+# end func_convert_file_noop
26370+
26371+
26372+# func_convert_file_msys_to_w32 ARG
26373+# Convert file name ARG from (mingw) MSYS to (mingw) w32 format; automatic
26374+# conversion to w32 is not available inside the cwrapper. Returns result in
26375+# func_to_host_file_result.
26376+func_convert_file_msys_to_w32 ()
26377+{
26378+ $opt_debug
26379+ func_to_host_file_result="$1"
26380+ if test -n "$1"; then
26381+ func_convert_core_msys_to_w32 "$1"
26382+ func_to_host_file_result="$func_convert_core_msys_to_w32_result"
26383+ fi
26384+ func_convert_file_check "$1" "$func_to_host_file_result"
26385+}
26386+# end func_convert_file_msys_to_w32
26387+
26388+
26389+# func_convert_file_cygwin_to_w32 ARG
26390+# Convert file name ARG from Cygwin to w32 format. Returns result in
26391+# func_to_host_file_result.
26392+func_convert_file_cygwin_to_w32 ()
26393+{
26394+ $opt_debug
26395+ func_to_host_file_result="$1"
26396+ if test -n "$1"; then
26397+ # because $build is cygwin, we call "the" cygpath in $PATH; no need to use
26398+ # LT_CYGPATH in this case.
26399+ func_to_host_file_result=`cygpath -m "$1"`
26400+ fi
26401+ func_convert_file_check "$1" "$func_to_host_file_result"
26402+}
26403+# end func_convert_file_cygwin_to_w32
26404+
26405+
26406+# func_convert_file_nix_to_w32 ARG
26407+# Convert file name ARG from *nix to w32 format. Requires a wine environment
26408+# and a working winepath. Returns result in func_to_host_file_result.
26409+func_convert_file_nix_to_w32 ()
26410+{
26411+ $opt_debug
26412+ func_to_host_file_result="$1"
26413+ if test -n "$1"; then
26414+ func_convert_core_file_wine_to_w32 "$1"
26415+ func_to_host_file_result="$func_convert_core_file_wine_to_w32_result"
26416+ fi
26417+ func_convert_file_check "$1" "$func_to_host_file_result"
26418+}
26419+# end func_convert_file_nix_to_w32
26420+
26421+
26422+# func_convert_file_msys_to_cygwin ARG
26423+# Convert file name ARG from MSYS to Cygwin format. Requires LT_CYGPATH set.
26424+# Returns result in func_to_host_file_result.
26425+func_convert_file_msys_to_cygwin ()
26426+{
26427+ $opt_debug
26428+ func_to_host_file_result="$1"
26429+ if test -n "$1"; then
26430+ func_convert_core_msys_to_w32 "$1"
26431+ func_cygpath -u "$func_convert_core_msys_to_w32_result"
26432+ func_to_host_file_result="$func_cygpath_result"
26433+ fi
26434+ func_convert_file_check "$1" "$func_to_host_file_result"
26435+}
26436+# end func_convert_file_msys_to_cygwin
26437+
26438+
26439+# func_convert_file_nix_to_cygwin ARG
26440+# Convert file name ARG from *nix to Cygwin format. Requires Cygwin installed
26441+# in a wine environment, working winepath, and LT_CYGPATH set. Returns result
26442+# in func_to_host_file_result.
26443+func_convert_file_nix_to_cygwin ()
26444+{
26445+ $opt_debug
26446+ func_to_host_file_result="$1"
26447+ if test -n "$1"; then
26448+ # convert from *nix to w32, then use cygpath to convert from w32 to cygwin.
26449+ func_convert_core_file_wine_to_w32 "$1"
26450+ func_cygpath -u "$func_convert_core_file_wine_to_w32_result"
26451+ func_to_host_file_result="$func_cygpath_result"
26452+ fi
26453+ func_convert_file_check "$1" "$func_to_host_file_result"
26454+}
26455+# end func_convert_file_nix_to_cygwin
26456+
26457+
26458+#############################################
26459+# $build to $host PATH CONVERSION FUNCTIONS #
26460+#############################################
26461+# invoked via `$to_host_path_cmd ARG'
26462+#
26463+# In each case, ARG is the path to be converted from $build to $host format.
26464+# The result will be available in $func_to_host_path_result.
26465+#
26466+# Path separators are also converted from $build format to $host format. If
26467+# ARG begins or ends with a path separator character, it is preserved (but
26468+# converted to $host format) on output.
26469+#
26470+# All path conversion functions are named using the following convention:
26471+# file name conversion function : func_convert_file_X_to_Y ()
26472+# path conversion function : func_convert_path_X_to_Y ()
26473+# where, for any given $build/$host combination the 'X_to_Y' value is the
26474+# same. If conversion functions are added for new $build/$host combinations,
26475+# the two new functions must follow this pattern, or func_init_to_host_path_cmd
26476+# will break.
26477+
26478+
26479+# func_init_to_host_path_cmd
26480+# Ensures that function "pointer" variable $to_host_path_cmd is set to the
26481+# appropriate value, based on the value of $to_host_file_cmd.
26482+to_host_path_cmd=
26483+func_init_to_host_path_cmd ()
26484+{
26485+ $opt_debug
26486+ if test -z "$to_host_path_cmd"; then
26487+ func_stripname 'func_convert_file_' '' "$to_host_file_cmd"
26488+ to_host_path_cmd="func_convert_path_${func_stripname_result}"
26489+ fi
26490+}
26491+
26492+
26493+# func_to_host_path ARG
26494+# Converts the path ARG from $build format to $host format. Return result
26495+# in func_to_host_path_result.
26496+func_to_host_path ()
26497+{
26498+ $opt_debug
26499+ func_init_to_host_path_cmd
26500+ $to_host_path_cmd "$1"
26501+}
26502+# end func_to_host_path
26503+
26504+
26505+# func_convert_path_noop ARG
26506+# Copy ARG to func_to_host_path_result.
26507+func_convert_path_noop ()
26508+{
26509+ func_to_host_path_result="$1"
26510+}
26511+# end func_convert_path_noop
26512+
26513+
26514+# func_convert_path_msys_to_w32 ARG
26515+# Convert path ARG from (mingw) MSYS to (mingw) w32 format; automatic
26516+# conversion to w32 is not available inside the cwrapper. Returns result in
26517+# func_to_host_path_result.
26518+func_convert_path_msys_to_w32 ()
26519+{
26520+ $opt_debug
26521+ func_to_host_path_result="$1"
26522+ if test -n "$1"; then
26523+ # Remove leading and trailing path separator characters from ARG. MSYS
26524+ # behavior is inconsistent here; cygpath turns them into '.;' and ';.';
26525+ # and winepath ignores them completely.
26526+ func_stripname : : "$1"
26527+ func_to_host_path_tmp1=$func_stripname_result
26528+ func_convert_core_msys_to_w32 "$func_to_host_path_tmp1"
26529+ func_to_host_path_result="$func_convert_core_msys_to_w32_result"
26530+ func_convert_path_check : ";" \
26531+ "$func_to_host_path_tmp1" "$func_to_host_path_result"
26532+ func_convert_path_front_back_pathsep ":*" "*:" ";" "$1"
26533+ fi
26534+}
26535+# end func_convert_path_msys_to_w32
26536+
26537+
26538+# func_convert_path_cygwin_to_w32 ARG
26539+# Convert path ARG from Cygwin to w32 format. Returns result in
26540+# func_to_host_file_result.
26541+func_convert_path_cygwin_to_w32 ()
26542+{
26543+ $opt_debug
26544+ func_to_host_path_result="$1"
26545+ if test -n "$1"; then
26546+ # See func_convert_path_msys_to_w32:
26547+ func_stripname : : "$1"
26548+ func_to_host_path_tmp1=$func_stripname_result
26549+ func_to_host_path_result=`cygpath -m -p "$func_to_host_path_tmp1"`
26550+ func_convert_path_check : ";" \
26551+ "$func_to_host_path_tmp1" "$func_to_host_path_result"
26552+ func_convert_path_front_back_pathsep ":*" "*:" ";" "$1"
26553+ fi
26554+}
26555+# end func_convert_path_cygwin_to_w32
26556+
26557+
26558+# func_convert_path_nix_to_w32 ARG
26559+# Convert path ARG from *nix to w32 format. Requires a wine environment and
26560+# a working winepath. Returns result in func_to_host_file_result.
26561+func_convert_path_nix_to_w32 ()
26562+{
26563+ $opt_debug
26564+ func_to_host_path_result="$1"
26565+ if test -n "$1"; then
26566+ # See func_convert_path_msys_to_w32:
26567+ func_stripname : : "$1"
26568+ func_to_host_path_tmp1=$func_stripname_result
26569+ func_convert_core_path_wine_to_w32 "$func_to_host_path_tmp1"
26570+ func_to_host_path_result="$func_convert_core_path_wine_to_w32_result"
26571+ func_convert_path_check : ";" \
26572+ "$func_to_host_path_tmp1" "$func_to_host_path_result"
26573+ func_convert_path_front_back_pathsep ":*" "*:" ";" "$1"
26574+ fi
26575+}
26576+# end func_convert_path_nix_to_w32
26577+
26578+
26579+# func_convert_path_msys_to_cygwin ARG
26580+# Convert path ARG from MSYS to Cygwin format. Requires LT_CYGPATH set.
26581+# Returns result in func_to_host_file_result.
26582+func_convert_path_msys_to_cygwin ()
26583+{
26584+ $opt_debug
26585+ func_to_host_path_result="$1"
26586+ if test -n "$1"; then
26587+ # See func_convert_path_msys_to_w32:
26588+ func_stripname : : "$1"
26589+ func_to_host_path_tmp1=$func_stripname_result
26590+ func_convert_core_msys_to_w32 "$func_to_host_path_tmp1"
26591+ func_cygpath -u -p "$func_convert_core_msys_to_w32_result"
26592+ func_to_host_path_result="$func_cygpath_result"
26593+ func_convert_path_check : : \
26594+ "$func_to_host_path_tmp1" "$func_to_host_path_result"
26595+ func_convert_path_front_back_pathsep ":*" "*:" : "$1"
26596+ fi
26597+}
26598+# end func_convert_path_msys_to_cygwin
26599+
26600+
26601+# func_convert_path_nix_to_cygwin ARG
26602+# Convert path ARG from *nix to Cygwin format. Requires Cygwin installed in a
26603+# a wine environment, working winepath, and LT_CYGPATH set. Returns result in
26604+# func_to_host_file_result.
26605+func_convert_path_nix_to_cygwin ()
26606+{
26607+ $opt_debug
26608+ func_to_host_path_result="$1"
26609+ if test -n "$1"; then
26610+ # Remove leading and trailing path separator characters from
26611+ # ARG. msys behavior is inconsistent here, cygpath turns them
26612+ # into '.;' and ';.', and winepath ignores them completely.
26613+ func_stripname : : "$1"
26614+ func_to_host_path_tmp1=$func_stripname_result
26615+ func_convert_core_path_wine_to_w32 "$func_to_host_path_tmp1"
26616+ func_cygpath -u -p "$func_convert_core_path_wine_to_w32_result"
26617+ func_to_host_path_result="$func_cygpath_result"
26618+ func_convert_path_check : : \
26619+ "$func_to_host_path_tmp1" "$func_to_host_path_result"
26620+ func_convert_path_front_back_pathsep ":*" "*:" : "$1"
26621+ fi
26622+}
26623+# end func_convert_path_nix_to_cygwin
26624+
26625+
26626 # func_mode_compile arg...
26627 func_mode_compile ()
26628 {
26629@@ -1314,12 +1985,12 @@ func_mode_compile ()
26630 ;;
26631
26632 -pie | -fpie | -fPIE)
26633- pie_flag="$pie_flag $arg"
26634+ func_append pie_flag " $arg"
26635 continue
26636 ;;
26637
26638 -shared | -static | -prefer-pic | -prefer-non-pic)
26639- later="$later $arg"
26640+ func_append later " $arg"
26641 continue
26642 ;;
26643
26644@@ -1340,15 +2011,14 @@ func_mode_compile ()
26645 save_ifs="$IFS"; IFS=','
26646 for arg in $args; do
26647 IFS="$save_ifs"
26648- func_quote_for_eval "$arg"
26649- lastarg="$lastarg $func_quote_for_eval_result"
26650+ func_append_quoted lastarg "$arg"
26651 done
26652 IFS="$save_ifs"
26653 func_stripname ' ' '' "$lastarg"
26654 lastarg=$func_stripname_result
26655
26656 # Add the arguments to base_compile.
26657- base_compile="$base_compile $lastarg"
26658+ func_append base_compile " $lastarg"
26659 continue
26660 ;;
26661
26662@@ -1364,8 +2034,7 @@ func_mode_compile ()
26663 esac # case $arg_mode
26664
26665 # Aesthetically quote the previous argument.
26666- func_quote_for_eval "$lastarg"
26667- base_compile="$base_compile $func_quote_for_eval_result"
26668+ func_append_quoted base_compile "$lastarg"
26669 done # for arg
26670
26671 case $arg_mode in
26672@@ -1496,17 +2165,16 @@ compiler."
26673 $opt_dry_run || $RM $removelist
26674 exit $EXIT_FAILURE
26675 fi
26676- removelist="$removelist $output_obj"
26677+ func_append removelist " $output_obj"
26678 $ECHO "$srcfile" > "$lockfile"
26679 fi
26680
26681 $opt_dry_run || $RM $removelist
26682- removelist="$removelist $lockfile"
26683+ func_append removelist " $lockfile"
26684 trap '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' 1 2 15
26685
26686- if test -n "$fix_srcfile_path"; then
26687- eval "srcfile=\"$fix_srcfile_path\""
26688- fi
26689+ func_to_tool_file "$srcfile" func_convert_file_msys_to_w32
26690+ srcfile=$func_to_tool_file_result
26691 func_quote_for_eval "$srcfile"
26692 qsrcfile=$func_quote_for_eval_result
26693
26694@@ -1526,7 +2194,7 @@ compiler."
26695
26696 if test -z "$output_obj"; then
26697 # Place PIC objects in $objdir
26698- command="$command -o $lobj"
26699+ func_append command " -o $lobj"
26700 fi
26701
26702 func_show_eval_locale "$command" \
26703@@ -1573,11 +2241,11 @@ compiler."
26704 command="$base_compile $qsrcfile $pic_flag"
26705 fi
26706 if test "$compiler_c_o" = yes; then
26707- command="$command -o $obj"
26708+ func_append command " -o $obj"
26709 fi
26710
26711 # Suppress compiler output if we already did a PIC compilation.
26712- command="$command$suppress_output"
26713+ func_append command "$suppress_output"
26714 func_show_eval_locale "$command" \
26715 '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE'
26716
26717@@ -1622,13 +2290,13 @@ compiler."
26718 }
26719
26720 $opt_help || {
26721- test "$mode" = compile && func_mode_compile ${1+"$@"}
26722+ test "$opt_mode" = compile && func_mode_compile ${1+"$@"}
26723 }
26724
26725 func_mode_help ()
26726 {
26727 # We need to display help for each of the modes.
26728- case $mode in
26729+ case $opt_mode in
26730 "")
26731 # Generic help is extracted from the usage comments
26732 # at the start of this file.
26733@@ -1659,8 +2327,8 @@ This mode accepts the following additional options:
26734
26735 -o OUTPUT-FILE set the output file name to OUTPUT-FILE
26736 -no-suppress do not suppress compiler output for multiple passes
26737- -prefer-pic try to building PIC objects only
26738- -prefer-non-pic try to building non-PIC objects only
26739+ -prefer-pic try to build PIC objects only
26740+ -prefer-non-pic try to build non-PIC objects only
26741 -shared do not build a \`.o' file suitable for static linking
26742 -static only build a \`.o' file suitable for static linking
26743 -Wc,FLAG pass FLAG directly to the compiler
26744@@ -1804,7 +2472,7 @@ Otherwise, only FILE itself is deleted using RM."
26745 ;;
26746
26747 *)
26748- func_fatal_help "invalid operation mode \`$mode'"
26749+ func_fatal_help "invalid operation mode \`$opt_mode'"
26750 ;;
26751 esac
26752
26753@@ -1819,13 +2487,13 @@ if $opt_help; then
26754 else
26755 {
26756 func_help noexit
26757- for mode in compile link execute install finish uninstall clean; do
26758+ for opt_mode in compile link execute install finish uninstall clean; do
26759 func_mode_help
26760 done
26761 } | sed -n '1p; 2,$s/^Usage:/ or: /p'
26762 {
26763 func_help noexit
26764- for mode in compile link execute install finish uninstall clean; do
26765+ for opt_mode in compile link execute install finish uninstall clean; do
26766 echo
26767 func_mode_help
26768 done
26769@@ -1854,13 +2522,16 @@ func_mode_execute ()
26770 func_fatal_help "you must specify a COMMAND"
26771
26772 # Handle -dlopen flags immediately.
26773- for file in $execute_dlfiles; do
26774+ for file in $opt_dlopen; do
26775 test -f "$file" \
26776 || func_fatal_help "\`$file' is not a file"
26777
26778 dir=
26779 case $file in
26780 *.la)
26781+ func_resolve_sysroot "$file"
26782+ file=$func_resolve_sysroot_result
26783+
26784 # Check to see that this really is a libtool archive.
26785 func_lalib_unsafe_p "$file" \
26786 || func_fatal_help "\`$lib' is not a valid libtool archive"
26787@@ -1882,7 +2553,7 @@ func_mode_execute ()
26788 dir="$func_dirname_result"
26789
26790 if test -f "$dir/$objdir/$dlname"; then
26791- dir="$dir/$objdir"
26792+ func_append dir "/$objdir"
26793 else
26794 if test ! -f "$dir/$dlname"; then
26795 func_fatal_error "cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'"
26796@@ -1907,10 +2578,10 @@ func_mode_execute ()
26797 test -n "$absdir" && dir="$absdir"
26798
26799 # Now add the directory to shlibpath_var.
26800- if eval test -z \"\$$shlibpath_var\"; then
26801- eval $shlibpath_var=\$dir
26802+ if eval "test -z \"\$$shlibpath_var\""; then
26803+ eval "$shlibpath_var=\"\$dir\""
26804 else
26805- eval $shlibpath_var=\$dir:\$$shlibpath_var
26806+ eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\""
26807 fi
26808 done
26809
26810@@ -1939,8 +2610,7 @@ func_mode_execute ()
26811 ;;
26812 esac
26813 # Quote arguments (to preserve shell metacharacters).
26814- func_quote_for_eval "$file"
26815- args="$args $func_quote_for_eval_result"
26816+ func_append_quoted args "$file"
26817 done
26818
26819 if test "X$opt_dry_run" = Xfalse; then
26820@@ -1972,22 +2642,59 @@ func_mode_execute ()
26821 fi
26822 }
26823
26824-test "$mode" = execute && func_mode_execute ${1+"$@"}
26825+test "$opt_mode" = execute && func_mode_execute ${1+"$@"}
26826
26827
26828 # func_mode_finish arg...
26829 func_mode_finish ()
26830 {
26831 $opt_debug
26832- libdirs="$nonopt"
26833+ libs=
26834+ libdirs=
26835 admincmds=
26836
26837- if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
26838- for dir
26839- do
26840- libdirs="$libdirs $dir"
26841- done
26842+ for opt in "$nonopt" ${1+"$@"}
26843+ do
26844+ if test -d "$opt"; then
26845+ func_append libdirs " $opt"
26846
26847+ elif test -f "$opt"; then
26848+ if func_lalib_unsafe_p "$opt"; then
26849+ func_append libs " $opt"
26850+ else
26851+ func_warning "\`$opt' is not a valid libtool archive"
26852+ fi
26853+
26854+ else
26855+ func_fatal_error "invalid argument \`$opt'"
26856+ fi
26857+ done
26858+
26859+ if test -n "$libs"; then
26860+ if test -n "$lt_sysroot"; then
26861+ sysroot_regex=`$ECHO "$lt_sysroot" | $SED "$sed_make_literal_regex"`
26862+ sysroot_cmd="s/\([ ']\)$sysroot_regex/\1/g;"
26863+ else
26864+ sysroot_cmd=
26865+ fi
26866+
26867+ # Remove sysroot references
26868+ if $opt_dry_run; then
26869+ for lib in $libs; do
26870+ echo "removing references to $lt_sysroot and \`=' prefixes from $lib"
26871+ done
26872+ else
26873+ tmpdir=`func_mktempdir`
26874+ for lib in $libs; do
26875+ sed -e "${sysroot_cmd} s/\([ ']-[LR]\)=/\1/g; s/\([ ']\)=/\1/g" $lib \
26876+ > $tmpdir/tmp-la
26877+ mv -f $tmpdir/tmp-la $lib
26878+ done
26879+ ${RM}r "$tmpdir"
26880+ fi
26881+ fi
26882+
26883+ if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
26884 for libdir in $libdirs; do
26885 if test -n "$finish_cmds"; then
26886 # Do each command in the finish commands.
26887@@ -1997,7 +2704,7 @@ func_mode_finish ()
26888 if test -n "$finish_eval"; then
26889 # Do the single finish_eval.
26890 eval cmds=\"$finish_eval\"
26891- $opt_dry_run || eval "$cmds" || admincmds="$admincmds
26892+ $opt_dry_run || eval "$cmds" || func_append admincmds "
26893 $cmds"
26894 fi
26895 done
26896@@ -2006,53 +2713,55 @@ func_mode_finish ()
26897 # Exit here if they wanted silent mode.
26898 $opt_silent && exit $EXIT_SUCCESS
26899
26900- echo "----------------------------------------------------------------------"
26901- echo "Libraries have been installed in:"
26902- for libdir in $libdirs; do
26903- $ECHO " $libdir"
26904- done
26905- echo
26906- echo "If you ever happen to want to link against installed libraries"
26907- echo "in a given directory, LIBDIR, you must either use libtool, and"
26908- echo "specify the full pathname of the library, or use the \`-LLIBDIR'"
26909- echo "flag during linking and do at least one of the following:"
26910- if test -n "$shlibpath_var"; then
26911- echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
26912- echo " during execution"
26913- fi
26914- if test -n "$runpath_var"; then
26915- echo " - add LIBDIR to the \`$runpath_var' environment variable"
26916- echo " during linking"
26917- fi
26918- if test -n "$hardcode_libdir_flag_spec"; then
26919- libdir=LIBDIR
26920- eval "flag=\"$hardcode_libdir_flag_spec\""
26921+ if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
26922+ echo "----------------------------------------------------------------------"
26923+ echo "Libraries have been installed in:"
26924+ for libdir in $libdirs; do
26925+ $ECHO " $libdir"
26926+ done
26927+ echo
26928+ echo "If you ever happen to want to link against installed libraries"
26929+ echo "in a given directory, LIBDIR, you must either use libtool, and"
26930+ echo "specify the full pathname of the library, or use the \`-LLIBDIR'"
26931+ echo "flag during linking and do at least one of the following:"
26932+ if test -n "$shlibpath_var"; then
26933+ echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
26934+ echo " during execution"
26935+ fi
26936+ if test -n "$runpath_var"; then
26937+ echo " - add LIBDIR to the \`$runpath_var' environment variable"
26938+ echo " during linking"
26939+ fi
26940+ if test -n "$hardcode_libdir_flag_spec"; then
26941+ libdir=LIBDIR
26942+ eval flag=\"$hardcode_libdir_flag_spec\"
26943
26944- $ECHO " - use the \`$flag' linker flag"
26945- fi
26946- if test -n "$admincmds"; then
26947- $ECHO " - have your system administrator run these commands:$admincmds"
26948- fi
26949- if test -f /etc/ld.so.conf; then
26950- echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
26951- fi
26952- echo
26953+ $ECHO " - use the \`$flag' linker flag"
26954+ fi
26955+ if test -n "$admincmds"; then
26956+ $ECHO " - have your system administrator run these commands:$admincmds"
26957+ fi
26958+ if test -f /etc/ld.so.conf; then
26959+ echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
26960+ fi
26961+ echo
26962
26963- echo "See any operating system documentation about shared libraries for"
26964- case $host in
26965- solaris2.[6789]|solaris2.1[0-9])
26966- echo "more information, such as the ld(1), crle(1) and ld.so(8) manual"
26967- echo "pages."
26968- ;;
26969- *)
26970- echo "more information, such as the ld(1) and ld.so(8) manual pages."
26971- ;;
26972- esac
26973- echo "----------------------------------------------------------------------"
26974+ echo "See any operating system documentation about shared libraries for"
26975+ case $host in
26976+ solaris2.[6789]|solaris2.1[0-9])
26977+ echo "more information, such as the ld(1), crle(1) and ld.so(8) manual"
26978+ echo "pages."
26979+ ;;
26980+ *)
26981+ echo "more information, such as the ld(1) and ld.so(8) manual pages."
26982+ ;;
26983+ esac
26984+ echo "----------------------------------------------------------------------"
26985+ fi
26986 exit $EXIT_SUCCESS
26987 }
26988
26989-test "$mode" = finish && func_mode_finish ${1+"$@"}
26990+test "$opt_mode" = finish && func_mode_finish ${1+"$@"}
26991
26992
26993 # func_mode_install arg...
26994@@ -2077,7 +2786,7 @@ func_mode_install ()
26995 # The real first argument should be the name of the installation program.
26996 # Aesthetically quote it.
26997 func_quote_for_eval "$arg"
26998- install_prog="$install_prog$func_quote_for_eval_result"
26999+ func_append install_prog "$func_quote_for_eval_result"
27000 install_shared_prog=$install_prog
27001 case " $install_prog " in
27002 *[\\\ /]cp\ *) install_cp=: ;;
27003@@ -2097,7 +2806,7 @@ func_mode_install ()
27004 do
27005 arg2=
27006 if test -n "$dest"; then
27007- files="$files $dest"
27008+ func_append files " $dest"
27009 dest=$arg
27010 continue
27011 fi
27012@@ -2135,11 +2844,11 @@ func_mode_install ()
27013
27014 # Aesthetically quote the argument.
27015 func_quote_for_eval "$arg"
27016- install_prog="$install_prog $func_quote_for_eval_result"
27017+ func_append install_prog " $func_quote_for_eval_result"
27018 if test -n "$arg2"; then
27019 func_quote_for_eval "$arg2"
27020 fi
27021- install_shared_prog="$install_shared_prog $func_quote_for_eval_result"
27022+ func_append install_shared_prog " $func_quote_for_eval_result"
27023 done
27024
27025 test -z "$install_prog" && \
27026@@ -2151,7 +2860,7 @@ func_mode_install ()
27027 if test -n "$install_override_mode" && $no_mode; then
27028 if $install_cp; then :; else
27029 func_quote_for_eval "$install_override_mode"
27030- install_shared_prog="$install_shared_prog -m $func_quote_for_eval_result"
27031+ func_append install_shared_prog " -m $func_quote_for_eval_result"
27032 fi
27033 fi
27034
27035@@ -2209,10 +2918,13 @@ func_mode_install ()
27036 case $file in
27037 *.$libext)
27038 # Do the static libraries later.
27039- staticlibs="$staticlibs $file"
27040+ func_append staticlibs " $file"
27041 ;;
27042
27043 *.la)
27044+ func_resolve_sysroot "$file"
27045+ file=$func_resolve_sysroot_result
27046+
27047 # Check to see that this really is a libtool archive.
27048 func_lalib_unsafe_p "$file" \
27049 || func_fatal_help "\`$file' is not a valid libtool archive"
27050@@ -2226,23 +2938,30 @@ func_mode_install ()
27051 if test "X$destdir" = "X$libdir"; then
27052 case "$current_libdirs " in
27053 *" $libdir "*) ;;
27054- *) current_libdirs="$current_libdirs $libdir" ;;
27055+ *) func_append current_libdirs " $libdir" ;;
27056 esac
27057 else
27058 # Note the libdir as a future libdir.
27059 case "$future_libdirs " in
27060 *" $libdir "*) ;;
27061- *) future_libdirs="$future_libdirs $libdir" ;;
27062+ *) func_append future_libdirs " $libdir" ;;
27063 esac
27064 fi
27065
27066 func_dirname "$file" "/" ""
27067 dir="$func_dirname_result"
27068- dir="$dir$objdir"
27069+ func_append dir "$objdir"
27070
27071 if test -n "$relink_command"; then
27072+ # Strip any trailing slash from the destination.
27073+ func_stripname '' '/' "$libdir"
27074+ destlibdir=$func_stripname_result
27075+
27076+ func_stripname '' '/' "$destdir"
27077+ s_destdir=$func_stripname_result
27078+
27079 # Determine the prefix the user has applied to our future dir.
27080- inst_prefix_dir=`$ECHO "$destdir" | $SED -e "s%$libdir\$%%"`
27081+ inst_prefix_dir=`$ECHO "X$s_destdir" | $Xsed -e "s%$destlibdir\$%%"`
27082
27083 # Don't allow the user to place us outside of our expected
27084 # location b/c this prevents finding dependent libraries that
27085@@ -2315,7 +3034,7 @@ func_mode_install ()
27086 func_show_eval "$install_prog $instname $destdir/$name" 'exit $?'
27087
27088 # Maybe install the static library, too.
27089- test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
27090+ test -n "$old_library" && func_append staticlibs " $dir/$old_library"
27091 ;;
27092
27093 *.lo)
27094@@ -2503,7 +3222,7 @@ func_mode_install ()
27095 test -n "$future_libdirs" && \
27096 func_warning "remember to run \`$progname --finish$future_libdirs'"
27097
27098- if test -n "$current_libdirs" && $opt_finish; then
27099+ if test -n "$current_libdirs"; then
27100 # Maybe just do a dry run.
27101 $opt_dry_run && current_libdirs=" -n$current_libdirs"
27102 exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs'
27103@@ -2512,7 +3231,7 @@ func_mode_install ()
27104 fi
27105 }
27106
27107-test "$mode" = install && func_mode_install ${1+"$@"}
27108+test "$opt_mode" = install && func_mode_install ${1+"$@"}
27109
27110
27111 # func_generate_dlsyms outputname originator pic_p
27112@@ -2559,6 +3278,18 @@ extern \"C\" {
27113 #pragma GCC diagnostic ignored \"-Wstrict-prototypes\"
27114 #endif
27115
27116+/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
27117+#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
27118+/* DATA imports from DLLs on WIN32 con't be const, because runtime
27119+ relocations are performed -- see ld's documentation on pseudo-relocs. */
27120+# define LT_DLSYM_CONST
27121+#elif defined(__osf__)
27122+/* This system does not cope well with relocations in const data. */
27123+# define LT_DLSYM_CONST
27124+#else
27125+# define LT_DLSYM_CONST const
27126+#endif
27127+
27128 /* External symbol declarations for the compiler. */\
27129 "
27130
27131@@ -2570,21 +3301,22 @@ extern \"C\" {
27132 # Add our own program objects to the symbol list.
27133 progfiles=`$ECHO "$objs$old_deplibs" | $SP2NL | $SED "$lo2o" | $NL2SP`
27134 for progfile in $progfiles; do
27135- func_verbose "extracting global C symbols from \`$progfile'"
27136- $opt_dry_run || eval "$NM $progfile | $global_symbol_pipe >> '$nlist'"
27137+ func_to_tool_file "$progfile" func_convert_file_msys_to_w32
27138+ func_verbose "extracting global C symbols from \`$func_to_tool_file_result'"
27139+ $opt_dry_run || eval "$NM $func_to_tool_file_result | $global_symbol_pipe >> '$nlist'"
27140 done
27141
27142 if test -n "$exclude_expsyms"; then
27143 $opt_dry_run || {
27144- $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
27145- $MV "$nlist"T "$nlist"
27146+ eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
27147+ eval '$MV "$nlist"T "$nlist"'
27148 }
27149 fi
27150
27151 if test -n "$export_symbols_regex"; then
27152 $opt_dry_run || {
27153- $EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T
27154- $MV "$nlist"T "$nlist"
27155+ eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T'
27156+ eval '$MV "$nlist"T "$nlist"'
27157 }
27158 fi
27159
27160@@ -2593,23 +3325,23 @@ extern \"C\" {
27161 export_symbols="$output_objdir/$outputname.exp"
27162 $opt_dry_run || {
27163 $RM $export_symbols
27164- ${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' < "$nlist" > "$export_symbols"
27165+ eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
27166 case $host in
27167 *cygwin* | *mingw* | *cegcc* )
27168- echo EXPORTS > "$output_objdir/$outputname.def"
27169- cat "$export_symbols" >> "$output_objdir/$outputname.def"
27170+ eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
27171+ eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"'
27172 ;;
27173 esac
27174 }
27175 else
27176 $opt_dry_run || {
27177- ${SED} -e 's/\([].[*^$]\)/\\\1/g' -e 's/^/ /' -e 's/$/$/' < "$export_symbols" > "$output_objdir/$outputname.exp"
27178- $GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T
27179- $MV "$nlist"T "$nlist"
27180+ eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
27181+ eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
27182+ eval '$MV "$nlist"T "$nlist"'
27183 case $host in
27184 *cygwin* | *mingw* | *cegcc* )
27185- echo EXPORTS > "$output_objdir/$outputname.def"
27186- cat "$nlist" >> "$output_objdir/$outputname.def"
27187+ eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
27188+ eval 'cat "$nlist" >> "$output_objdir/$outputname.def"'
27189 ;;
27190 esac
27191 }
27192@@ -2620,10 +3352,52 @@ extern \"C\" {
27193 func_verbose "extracting global C symbols from \`$dlprefile'"
27194 func_basename "$dlprefile"
27195 name="$func_basename_result"
27196- $opt_dry_run || {
27197- $ECHO ": $name " >> "$nlist"
27198- eval "$NM $dlprefile 2>/dev/null | $global_symbol_pipe >> '$nlist'"
27199- }
27200+ case $host in
27201+ *cygwin* | *mingw* | *cegcc* )
27202+ # if an import library, we need to obtain dlname
27203+ if func_win32_import_lib_p "$dlprefile"; then
27204+ func_tr_sh "$dlprefile"
27205+ eval "curr_lafile=\$libfile_$func_tr_sh_result"
27206+ dlprefile_dlbasename=""
27207+ if test -n "$curr_lafile" && func_lalib_p "$curr_lafile"; then
27208+ # Use subshell, to avoid clobbering current variable values
27209+ dlprefile_dlname=`source "$curr_lafile" && echo "$dlname"`
27210+ if test -n "$dlprefile_dlname" ; then
27211+ func_basename "$dlprefile_dlname"
27212+ dlprefile_dlbasename="$func_basename_result"
27213+ else
27214+ # no lafile. user explicitly requested -dlpreopen <import library>.
27215+ $sharedlib_from_linklib_cmd "$dlprefile"
27216+ dlprefile_dlbasename=$sharedlib_from_linklib_result
27217+ fi
27218+ fi
27219+ $opt_dry_run || {
27220+ if test -n "$dlprefile_dlbasename" ; then
27221+ eval '$ECHO ": $dlprefile_dlbasename" >> "$nlist"'
27222+ else
27223+ func_warning "Could not compute DLL name from $name"
27224+ eval '$ECHO ": $name " >> "$nlist"'
27225+ fi
27226+ func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32
27227+ eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe |
27228+ $SED -e '/I __imp/d' -e 's/I __nm_/D /;s/_nm__//' >> '$nlist'"
27229+ }
27230+ else # not an import lib
27231+ $opt_dry_run || {
27232+ eval '$ECHO ": $name " >> "$nlist"'
27233+ func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32
27234+ eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe >> '$nlist'"
27235+ }
27236+ fi
27237+ ;;
27238+ *)
27239+ $opt_dry_run || {
27240+ eval '$ECHO ": $name " >> "$nlist"'
27241+ func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32
27242+ eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe >> '$nlist'"
27243+ }
27244+ ;;
27245+ esac
27246 done
27247
27248 $opt_dry_run || {
27249@@ -2661,26 +3435,9 @@ typedef struct {
27250 const char *name;
27251 void *address;
27252 } lt_dlsymlist;
27253-"
27254- case $host in
27255- *cygwin* | *mingw* | *cegcc* )
27256- echo >> "$output_objdir/$my_dlsyms" "\
27257-/* DATA imports from DLLs on WIN32 con't be const, because
27258- runtime relocations are performed -- see ld's documentation
27259- on pseudo-relocs. */"
27260- lt_dlsym_const= ;;
27261- *osf5*)
27262- echo >> "$output_objdir/$my_dlsyms" "\
27263-/* This system does not cope well with relocations in const data */"
27264- lt_dlsym_const= ;;
27265- *)
27266- lt_dlsym_const=const ;;
27267- esac
27268-
27269- echo >> "$output_objdir/$my_dlsyms" "\
27270-extern $lt_dlsym_const lt_dlsymlist
27271+extern LT_DLSYM_CONST lt_dlsymlist
27272 lt_${my_prefix}_LTX_preloaded_symbols[];
27273-$lt_dlsym_const lt_dlsymlist
27274+LT_DLSYM_CONST lt_dlsymlist
27275 lt_${my_prefix}_LTX_preloaded_symbols[] =
27276 {\
27277 { \"$my_originator\", (void *) 0 },"
27278@@ -2736,7 +3493,7 @@ static const void *lt_preloaded_setup() {
27279 for arg in $LTCFLAGS; do
27280 case $arg in
27281 -pie | -fpie | -fPIE) ;;
27282- *) symtab_cflags="$symtab_cflags $arg" ;;
27283+ *) func_append symtab_cflags " $arg" ;;
27284 esac
27285 done
27286
27287@@ -2796,9 +3553,11 @@ func_win32_libid ()
27288 win32_libid_type="x86 archive import"
27289 ;;
27290 *ar\ archive*) # could be an import, or static
27291- if $OBJDUMP -f "$1" | $SED -e '10q' 2>/dev/null |
27292- $EGREP 'file format (pe-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' >/dev/null; then
27293- win32_nmres=`$NM -f posix -A "$1" |
27294+ # Keep the egrep pattern in sync with the one in _LT_CHECK_MAGIC_METHOD.
27295+ if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null |
27296+ $EGREP 'file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' >/dev/null; then
27297+ func_to_tool_file "$1" func_convert_file_msys_to_w32
27298+ win32_nmres=`eval $NM -f posix -A \"$func_to_tool_file_result\" |
27299 $SED -n -e '
27300 1,100{
27301 / I /{
27302@@ -2827,6 +3586,131 @@ func_win32_libid ()
27303 $ECHO "$win32_libid_type"
27304 }
27305
27306+# func_cygming_dll_for_implib ARG
27307+#
27308+# Platform-specific function to extract the
27309+# name of the DLL associated with the specified
27310+# import library ARG.
27311+# Invoked by eval'ing the libtool variable
27312+# $sharedlib_from_linklib_cmd
27313+# Result is available in the variable
27314+# $sharedlib_from_linklib_result
27315+func_cygming_dll_for_implib ()
27316+{
27317+ $opt_debug
27318+ sharedlib_from_linklib_result=`$DLLTOOL --identify-strict --identify "$1"`
27319+}
27320+
27321+# func_cygming_dll_for_implib_fallback_core SECTION_NAME LIBNAMEs
27322+#
27323+# The is the core of a fallback implementation of a
27324+# platform-specific function to extract the name of the
27325+# DLL associated with the specified import library LIBNAME.
27326+#
27327+# SECTION_NAME is either .idata$6 or .idata$7, depending
27328+# on the platform and compiler that created the implib.
27329+#
27330+# Echos the name of the DLL associated with the
27331+# specified import library.
27332+func_cygming_dll_for_implib_fallback_core ()
27333+{
27334+ $opt_debug
27335+ match_literal=`$ECHO "$1" | $SED "$sed_make_literal_regex"`
27336+ $OBJDUMP -s --section "$1" "$2" 2>/dev/null |
27337+ $SED '/^Contents of section '"$match_literal"':/{
27338+ # Place marker at beginning of archive member dllname section
27339+ s/.*/====MARK====/
27340+ p
27341+ d
27342+ }
27343+ # These lines can sometimes be longer than 43 characters, but
27344+ # are always uninteresting
27345+ /:[ ]*file format pe[i]\{,1\}-/d
27346+ /^In archive [^:]*:/d
27347+ # Ensure marker is printed
27348+ /^====MARK====/p
27349+ # Remove all lines with less than 43 characters
27350+ /^.\{43\}/!d
27351+ # From remaining lines, remove first 43 characters
27352+ s/^.\{43\}//' |
27353+ $SED -n '
27354+ # Join marker and all lines until next marker into a single line
27355+ /^====MARK====/ b para
27356+ H
27357+ $ b para
27358+ b
27359+ :para
27360+ x
27361+ s/\n//g
27362+ # Remove the marker
27363+ s/^====MARK====//
27364+ # Remove trailing dots and whitespace
27365+ s/[\. \t]*$//
27366+ # Print
27367+ /./p' |
27368+ # we now have a list, one entry per line, of the stringified
27369+ # contents of the appropriate section of all members of the
27370+ # archive which possess that section. Heuristic: eliminate
27371+ # all those which have a first or second character that is
27372+ # a '.' (that is, objdump's representation of an unprintable
27373+ # character.) This should work for all archives with less than
27374+ # 0x302f exports -- but will fail for DLLs whose name actually
27375+ # begins with a literal '.' or a single character followed by
27376+ # a '.'.
27377+ #
27378+ # Of those that remain, print the first one.
27379+ $SED -e '/^\./d;/^.\./d;q'
27380+}
27381+
27382+# func_cygming_gnu_implib_p ARG
27383+# This predicate returns with zero status (TRUE) if
27384+# ARG is a GNU/binutils-style import library. Returns
27385+# with nonzero status (FALSE) otherwise.
27386+func_cygming_gnu_implib_p ()
27387+{
27388+ $opt_debug
27389+ func_to_tool_file "$1" func_convert_file_msys_to_w32
27390+ func_cygming_gnu_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $EGREP ' (_head_[A-Za-z0-9_]+_[ad]l*|[A-Za-z0-9_]+_[ad]l*_iname)$'`
27391+ test -n "$func_cygming_gnu_implib_tmp"
27392+}
27393+
27394+# func_cygming_ms_implib_p ARG
27395+# This predicate returns with zero status (TRUE) if
27396+# ARG is an MS-style import library. Returns
27397+# with nonzero status (FALSE) otherwise.
27398+func_cygming_ms_implib_p ()
27399+{
27400+ $opt_debug
27401+ func_to_tool_file "$1" func_convert_file_msys_to_w32
27402+ func_cygming_ms_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $GREP '_NULL_IMPORT_DESCRIPTOR'`
27403+ test -n "$func_cygming_ms_implib_tmp"
27404+}
27405+
27406+# func_cygming_dll_for_implib_fallback ARG
27407+# Platform-specific function to extract the
27408+# name of the DLL associated with the specified
27409+# import library ARG.
27410+#
27411+# This fallback implementation is for use when $DLLTOOL
27412+# does not support the --identify-strict option.
27413+# Invoked by eval'ing the libtool variable
27414+# $sharedlib_from_linklib_cmd
27415+# Result is available in the variable
27416+# $sharedlib_from_linklib_result
27417+func_cygming_dll_for_implib_fallback ()
27418+{
27419+ $opt_debug
27420+ if func_cygming_gnu_implib_p "$1" ; then
27421+ # binutils import library
27422+ sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$7' "$1"`
27423+ elif func_cygming_ms_implib_p "$1" ; then
27424+ # ms-generated import library
27425+ sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$6' "$1"`
27426+ else
27427+ # unknown
27428+ sharedlib_from_linklib_result=""
27429+ fi
27430+}
27431
27432
27433 # func_extract_an_archive dir oldlib
27434@@ -3014,7 +3898,110 @@ func_fallback_echo ()
27435 _LTECHO_EOF'
27436 }
27437 ECHO=\"$qECHO\"
27438- fi\
27439+ fi
27440+
27441+# Very basic option parsing. These options are (a) specific to
27442+# the libtool wrapper, (b) are identical between the wrapper
27443+# /script/ and the wrapper /executable/ which is used only on
27444+# windows platforms, and (c) all begin with the string "--lt-"
27445+# (application programs are unlikely to have options which match
27446+# this pattern).
27447+#
27448+# There are only two supported options: --lt-debug and
27449+# --lt-dump-script. There is, deliberately, no --lt-help.
27450+#
27451+# The first argument to this parsing function should be the
27452+# script's $0 value, followed by "$@".
27453+lt_option_debug=
27454+func_parse_lt_options ()
27455+{
27456+ lt_script_arg0=\$0
27457+ shift
27458+ for lt_opt
27459+ do
27460+ case \"\$lt_opt\" in
27461+ --lt-debug) lt_option_debug=1 ;;
27462+ --lt-dump-script)
27463+ lt_dump_D=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%/[^/]*$%%'\`
27464+ test \"X\$lt_dump_D\" = \"X\$lt_script_arg0\" && lt_dump_D=.
27465+ lt_dump_F=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%^.*/%%'\`
27466+ cat \"\$lt_dump_D/\$lt_dump_F\"
27467+ exit 0
27468+ ;;
27469+ --lt-*)
27470+ \$ECHO \"Unrecognized --lt- option: '\$lt_opt'\" 1>&2
27471+ exit 1
27472+ ;;
27473+ esac
27474+ done
27475+
27476+ # Print the debug banner immediately:
27477+ if test -n \"\$lt_option_debug\"; then
27478+ echo \"${outputname}:${output}:\${LINENO}: libtool wrapper (GNU $PACKAGE$TIMESTAMP) $VERSION\" 1>&2
27479+ fi
27480+}
27481+
27482+# Used when --lt-debug. Prints its arguments to stdout
27483+# (redirection is the responsibility of the caller)
27484+func_lt_dump_args ()
27485+{
27486+ lt_dump_args_N=1;
27487+ for lt_arg
27488+ do
27489+ \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[\$lt_dump_args_N]: \$lt_arg\"
27490+ lt_dump_args_N=\`expr \$lt_dump_args_N + 1\`
27491+ done
27492+}
27493+
27494+# Core function for launching the target application
27495+func_exec_program_core ()
27496+{
27497+"
27498+ case $host in
27499+ # Backslashes separate directories on plain windows
27500+ *-*-mingw | *-*-os2* | *-cegcc*)
27501+ $ECHO "\
27502+ if test -n \"\$lt_option_debug\"; then
27503+ \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[0]: \$progdir\\\\\$program\" 1>&2
27504+ func_lt_dump_args \${1+\"\$@\"} 1>&2
27505+ fi
27506+ exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
27507+"
27508+ ;;
27509+
27510+ *)
27511+ $ECHO "\
27512+ if test -n \"\$lt_option_debug\"; then
27513+ \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[0]: \$progdir/\$program\" 1>&2
27514+ func_lt_dump_args \${1+\"\$@\"} 1>&2
27515+ fi
27516+ exec \"\$progdir/\$program\" \${1+\"\$@\"}
27517+"
27518+ ;;
27519+ esac
27520+ $ECHO "\
27521+ \$ECHO \"\$0: cannot exec \$program \$*\" 1>&2
27522+ exit 1
27523+}
27524+
27525+# A function to encapsulate launching the target application
27526+# Strips options in the --lt-* namespace from \$@ and
27527+# launches target application with the remaining arguments.
27528+func_exec_program ()
27529+{
27530+ for lt_wr_arg
27531+ do
27532+ case \$lt_wr_arg in
27533+ --lt-*) ;;
27534+ *) set x \"\$@\" \"\$lt_wr_arg\"; shift;;
27535+ esac
27536+ shift
27537+ done
27538+ func_exec_program_core \${1+\"\$@\"}
27539+}
27540+
27541+ # Parse options
27542+ func_parse_lt_options \"\$0\" \${1+\"\$@\"}
27543
27544 # Find the directory that this script lives in.
27545 thisdir=\`\$ECHO \"\$file\" | $SED 's%/[^/]*$%%'\`
27546@@ -3078,7 +4065,7 @@ _LTECHO_EOF'
27547
27548 # relink executable if necessary
27549 if test -n \"\$relink_command\"; then
27550- if relink_command_output=\`eval \"\$relink_command\" 2>&1\`; then :
27551+ if relink_command_output=\`eval \$relink_command 2>&1\`; then :
27552 else
27553 $ECHO \"\$relink_command_output\" >&2
27554 $RM \"\$progdir/\$file\"
27555@@ -3102,6 +4089,18 @@ _LTECHO_EOF'
27556
27557 if test -f \"\$progdir/\$program\"; then"
27558
27559+ # fixup the dll searchpath if we need to.
27560+ #
27561+ # Fix the DLL searchpath if we need to. Do this before prepending
27562+ # to shlibpath, because on Windows, both are PATH and uninstalled
27563+ # libraries must come first.
27564+ if test -n "$dllsearchpath"; then
27565+ $ECHO "\
27566+ # Add the dll search path components to the executable PATH
27567+ PATH=$dllsearchpath:\$PATH
27568+"
27569+ fi
27570+
27571 # Export our shlibpath_var if we have one.
27572 if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
27573 $ECHO "\
27574@@ -3116,35 +4115,10 @@ _LTECHO_EOF'
27575 "
27576 fi
27577
27578- # fixup the dll searchpath if we need to.
27579- if test -n "$dllsearchpath"; then
27580- $ECHO "\
27581- # Add the dll search path components to the executable PATH
27582- PATH=$dllsearchpath:\$PATH
27583-"
27584- fi
27585-
27586 $ECHO "\
27587 if test \"\$libtool_execute_magic\" != \"$magic\"; then
27588 # Run the actual program with our arguments.
27589-"
27590- case $host in
27591- # Backslashes separate directories on plain windows
27592- *-*-mingw | *-*-os2* | *-cegcc*)
27593- $ECHO "\
27594- exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
27595-"
27596- ;;
27597-
27598- *)
27599- $ECHO "\
27600- exec \"\$progdir/\$program\" \${1+\"\$@\"}
27601-"
27602- ;;
27603- esac
27604- $ECHO "\
27605- \$ECHO \"\$0: cannot exec \$program \$*\" 1>&2
27606- exit 1
27607+ func_exec_program \${1+\"\$@\"}
27608 fi
27609 else
27610 # The program doesn't exist.
27611@@ -3158,166 +4132,6 @@ fi\
27612 }
27613
27614
27615-# func_to_host_path arg
27616-#
27617-# Convert paths to host format when used with build tools.
27618-# Intended for use with "native" mingw (where libtool itself
27619-# is running under the msys shell), or in the following cross-
27620-# build environments:
27621-# $build $host
27622-# mingw (msys) mingw [e.g. native]
27623-# cygwin mingw
27624-# *nix + wine mingw
27625-# where wine is equipped with the `winepath' executable.
27626-# In the native mingw case, the (msys) shell automatically
27627-# converts paths for any non-msys applications it launches,
27628-# but that facility isn't available from inside the cwrapper.
27629-# Similar accommodations are necessary for $host mingw and
27630-# $build cygwin. Calling this function does no harm for other
27631-# $host/$build combinations not listed above.
27632-#
27633-# ARG is the path (on $build) that should be converted to
27634-# the proper representation for $host. The result is stored
27635-# in $func_to_host_path_result.
27636-func_to_host_path ()
27637-{
27638- func_to_host_path_result="$1"
27639- if test -n "$1"; then
27640- case $host in
27641- *mingw* )
27642- lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
27643- case $build in
27644- *mingw* ) # actually, msys
27645- # awkward: cmd appends spaces to result
27646- func_to_host_path_result=`( cmd //c echo "$1" ) 2>/dev/null |
27647- $SED -e 's/[ ]*$//' -e "$lt_sed_naive_backslashify"`
27648- ;;
27649- *cygwin* )
27650- func_to_host_path_result=`cygpath -w "$1" |
27651- $SED -e "$lt_sed_naive_backslashify"`
27652- ;;
27653- * )
27654- # Unfortunately, winepath does not exit with a non-zero
27655- # error code, so we are forced to check the contents of
27656- # stdout. On the other hand, if the command is not
27657- # found, the shell will set an exit code of 127 and print
27658- # *an error message* to stdout. So we must check for both
27659- # error code of zero AND non-empty stdout, which explains
27660- # the odd construction:
27661- func_to_host_path_tmp1=`winepath -w "$1" 2>/dev/null`
27662- if test "$?" -eq 0 && test -n "${func_to_host_path_tmp1}"; then
27663- func_to_host_path_result=`$ECHO "$func_to_host_path_tmp1" |
27664- $SED -e "$lt_sed_naive_backslashify"`
27665- else
27666- # Allow warning below.
27667- func_to_host_path_result=
27668- fi
27669- ;;
27670- esac
27671- if test -z "$func_to_host_path_result" ; then
27672- func_error "Could not determine host path corresponding to"
27673- func_error " \`$1'"
27674- func_error "Continuing, but uninstalled executables may not work."
27675- # Fallback:
27676- func_to_host_path_result="$1"
27677- fi
27678- ;;
27679- esac
27680- fi
27681-}
27682-# end: func_to_host_path
27683-
27684-# func_to_host_pathlist arg
27685-#
27686-# Convert pathlists to host format when used with build tools.
27687-# See func_to_host_path(), above. This function supports the
27688-# following $build/$host combinations (but does no harm for
27689-# combinations not listed here):
27690-# $build $host
27691-# mingw (msys) mingw [e.g. native]
27692-# cygwin mingw
27693-# *nix + wine mingw
27694-#
27695-# Path separators are also converted from $build format to
27696-# $host format. If ARG begins or ends with a path separator
27697-# character, it is preserved (but converted to $host format)
27698-# on output.
27699-#
27700-# ARG is a pathlist (on $build) that should be converted to
27701-# the proper representation on $host. The result is stored
27702-# in $func_to_host_pathlist_result.
27703-func_to_host_pathlist ()
27704-{
27705- func_to_host_pathlist_result="$1"
27706- if test -n "$1"; then
27707- case $host in
27708- *mingw* )
27709- lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
27710- # Remove leading and trailing path separator characters from
27711- # ARG. msys behavior is inconsistent here, cygpath turns them
27712- # into '.;' and ';.', and winepath ignores them completely.
27713- func_stripname : : "$1"
27714- func_to_host_pathlist_tmp1=$func_stripname_result
27715- case $build in
27716- *mingw* ) # Actually, msys.
27717- # Awkward: cmd appends spaces to result.
27718- func_to_host_pathlist_result=`
27719- ( cmd //c echo "$func_to_host_pathlist_tmp1" ) 2>/dev/null |
27720- $SED -e 's/[ ]*$//' -e "$lt_sed_naive_backslashify"`
27721- ;;
27722- *cygwin* )
27723- func_to_host_pathlist_result=`cygpath -w -p "$func_to_host_pathlist_tmp1" |
27724- $SED -e "$lt_sed_naive_backslashify"`
27725- ;;
27726- * )
27727- # unfortunately, winepath doesn't convert pathlists
27728- func_to_host_pathlist_result=""
27729- func_to_host_pathlist_oldIFS=$IFS
27730- IFS=:
27731- for func_to_host_pathlist_f in $func_to_host_pathlist_tmp1 ; do
27732- IFS=$func_to_host_pathlist_oldIFS
27733- if test -n "$func_to_host_pathlist_f" ; then
27734- func_to_host_path "$func_to_host_pathlist_f"
27735- if test -n "$func_to_host_path_result" ; then
27736- if test -z "$func_to_host_pathlist_result" ; then
27737- func_to_host_pathlist_result="$func_to_host_path_result"
27738- else
27739- func_append func_to_host_pathlist_result ";$func_to_host_path_result"
27740- fi
27741- fi
27742- fi
27743- done
27744- IFS=$func_to_host_pathlist_oldIFS
27745- ;;
27746- esac
27747- if test -z "$func_to_host_pathlist_result"; then
27748- func_error "Could not determine the host path(s) corresponding to"
27749- func_error " \`$1'"
27750- func_error "Continuing, but uninstalled executables may not work."
27751- # Fallback. This may break if $1 contains DOS-style drive
27752- # specifications. The fix is not to complicate the expression
27753- # below, but for the user to provide a working wine installation
27754- # with winepath so that path translation in the cross-to-mingw
27755- # case works properly.
27756- lt_replace_pathsep_nix_to_dos="s|:|;|g"
27757- func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp1" |\
27758- $SED -e "$lt_replace_pathsep_nix_to_dos"`
27759- fi
27760- # Now, add the leading and trailing path separators back
27761- case "$1" in
27762- :* ) func_to_host_pathlist_result=";$func_to_host_pathlist_result"
27763- ;;
27764- esac
27765- case "$1" in
27766- *: ) func_append func_to_host_pathlist_result ";"
27767- ;;
27768- esac
27769- ;;
27770- esac
27771- fi
27772-}
27773-# end: func_to_host_pathlist
27774-
27775 # func_emit_cwrapperexe_src
27776 # emit the source code for a wrapper executable on stdout
27777 # Must ONLY be called from within func_mode_link because
27778@@ -3334,10 +4148,6 @@ func_emit_cwrapperexe_src ()
27779
27780 This wrapper executable should never be moved out of the build directory.
27781 If it is, it will not operate correctly.
27782-
27783- Currently, it simply execs the wrapper *script* "$SHELL $output",
27784- but could eventually absorb all of the scripts functionality and
27785- exec $objdir/$outputname directly.
27786 */
27787 EOF
27788 cat <<"EOF"
27789@@ -3462,22 +4272,13 @@ int setenv (const char *, const char *, int);
27790 if (stale) { free ((void *) stale); stale = 0; } \
27791 } while (0)
27792
27793-#undef LTWRAPPER_DEBUGPRINTF
27794-#if defined LT_DEBUGWRAPPER
27795-# define LTWRAPPER_DEBUGPRINTF(args) ltwrapper_debugprintf args
27796-static void
27797-ltwrapper_debugprintf (const char *fmt, ...)
27798-{
27799- va_list args;
27800- va_start (args, fmt);
27801- (void) vfprintf (stderr, fmt, args);
27802- va_end (args);
27803-}
27804+#if defined(LT_DEBUGWRAPPER)
27805+static int lt_debug = 1;
27806 #else
27807-# define LTWRAPPER_DEBUGPRINTF(args)
27808+static int lt_debug = 0;
27809 #endif
27810
27811-const char *program_name = NULL;
27812+const char *program_name = "libtool-wrapper"; /* in case xstrdup fails */
27813
27814 void *xmalloc (size_t num);
27815 char *xstrdup (const char *string);
27816@@ -3487,7 +4288,10 @@ char *chase_symlinks (const char *pathspec);
27817 int make_executable (const char *path);
27818 int check_executable (const char *path);
27819 char *strendzap (char *str, const char *pat);
27820-void lt_fatal (const char *message, ...);
27821+void lt_debugprintf (const char *file, int line, const char *fmt, ...);
27822+void lt_fatal (const char *file, int line, const char *message, ...);
27823+static const char *nonnull (const char *s);
27824+static const char *nonempty (const char *s);
27825 void lt_setenv (const char *name, const char *value);
27826 char *lt_extend_str (const char *orig_value, const char *add, int to_end);
27827 void lt_update_exe_path (const char *name, const char *value);
27828@@ -3497,14 +4301,14 @@ void lt_dump_script (FILE *f);
27829 EOF
27830
27831 cat <<EOF
27832-const char * MAGIC_EXE = "$magic_exe";
27833+volatile const char * MAGIC_EXE = "$magic_exe";
27834 const char * LIB_PATH_VARNAME = "$shlibpath_var";
27835 EOF
27836
27837 if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
27838- func_to_host_pathlist "$temp_rpath"
27839+ func_to_host_path "$temp_rpath"
27840 cat <<EOF
27841-const char * LIB_PATH_VALUE = "$func_to_host_pathlist_result";
27842+const char * LIB_PATH_VALUE = "$func_to_host_path_result";
27843 EOF
27844 else
27845 cat <<"EOF"
27846@@ -3513,10 +4317,10 @@ EOF
27847 fi
27848
27849 if test -n "$dllsearchpath"; then
27850- func_to_host_pathlist "$dllsearchpath:"
27851+ func_to_host_path "$dllsearchpath:"
27852 cat <<EOF
27853 const char * EXE_PATH_VARNAME = "PATH";
27854-const char * EXE_PATH_VALUE = "$func_to_host_pathlist_result";
27855+const char * EXE_PATH_VALUE = "$func_to_host_path_result";
27856 EOF
27857 else
27858 cat <<"EOF"
27859@@ -3539,12 +4343,10 @@ EOF
27860 cat <<"EOF"
27861
27862 #define LTWRAPPER_OPTION_PREFIX "--lt-"
27863-#define LTWRAPPER_OPTION_PREFIX_LENGTH 5
27864
27865-static const size_t opt_prefix_len = LTWRAPPER_OPTION_PREFIX_LENGTH;
27866 static const char *ltwrapper_option_prefix = LTWRAPPER_OPTION_PREFIX;
27867-
27868 static const char *dumpscript_opt = LTWRAPPER_OPTION_PREFIX "dump-script";
27869+static const char *debug_opt = LTWRAPPER_OPTION_PREFIX "debug";
27870
27871 int
27872 main (int argc, char *argv[])
27873@@ -3561,10 +4363,13 @@ main (int argc, char *argv[])
27874 int i;
27875
27876 program_name = (char *) xstrdup (base_name (argv[0]));
27877- LTWRAPPER_DEBUGPRINTF (("(main) argv[0] : %s\n", argv[0]));
27878- LTWRAPPER_DEBUGPRINTF (("(main) program_name : %s\n", program_name));
27879+ newargz = XMALLOC (char *, argc + 1);
27880
27881- /* very simple arg parsing; don't want to rely on getopt */
27882+ /* very simple arg parsing; don't want to rely on getopt
27883+ * also, copy all non cwrapper options to newargz, except
27884+ * argz[0], which is handled differently
27885+ */
27886+ newargc=0;
27887 for (i = 1; i < argc; i++)
27888 {
27889 if (strcmp (argv[i], dumpscript_opt) == 0)
27890@@ -3581,21 +4386,54 @@ EOF
27891 lt_dump_script (stdout);
27892 return 0;
27893 }
27894+ if (strcmp (argv[i], debug_opt) == 0)
27895+ {
27896+ lt_debug = 1;
27897+ continue;
27898+ }
27899+ if (strcmp (argv[i], ltwrapper_option_prefix) == 0)
27900+ {
27901+ /* however, if there is an option in the LTWRAPPER_OPTION_PREFIX
27902+ namespace, but it is not one of the ones we know about and
27903+ have already dealt with, above (inluding dump-script), then
27904+ report an error. Otherwise, targets might begin to believe
27905+ they are allowed to use options in the LTWRAPPER_OPTION_PREFIX
27906+ namespace. The first time any user complains about this, we'll
27907+ need to make LTWRAPPER_OPTION_PREFIX a configure-time option
27908+ or a configure.ac-settable value.
27909+ */
27910+ lt_fatal (__FILE__, __LINE__,
27911+ "unrecognized %s option: '%s'",
27912+ ltwrapper_option_prefix, argv[i]);
27913+ }
27914+ /* otherwise ... */
27915+ newargz[++newargc] = xstrdup (argv[i]);
27916 }
27917+ newargz[++newargc] = NULL;
27918+
27919+EOF
27920+ cat <<EOF
27921+ /* The GNU banner must be the first non-error debug message */
27922+ lt_debugprintf (__FILE__, __LINE__, "libtool wrapper (GNU $PACKAGE$TIMESTAMP) $VERSION\n");
27923+EOF
27924+ cat <<"EOF"
27925+ lt_debugprintf (__FILE__, __LINE__, "(main) argv[0]: %s\n", argv[0]);
27926+ lt_debugprintf (__FILE__, __LINE__, "(main) program_name: %s\n", program_name);
27927
27928- newargz = XMALLOC (char *, argc + 1);
27929 tmp_pathspec = find_executable (argv[0]);
27930 if (tmp_pathspec == NULL)
27931- lt_fatal ("Couldn't find %s", argv[0]);
27932- LTWRAPPER_DEBUGPRINTF (("(main) found exe (before symlink chase) at : %s\n",
27933- tmp_pathspec));
27934+ lt_fatal (__FILE__, __LINE__, "couldn't find %s", argv[0]);
27935+ lt_debugprintf (__FILE__, __LINE__,
27936+ "(main) found exe (before symlink chase) at: %s\n",
27937+ tmp_pathspec);
27938
27939 actual_cwrapper_path = chase_symlinks (tmp_pathspec);
27940- LTWRAPPER_DEBUGPRINTF (("(main) found exe (after symlink chase) at : %s\n",
27941- actual_cwrapper_path));
27942+ lt_debugprintf (__FILE__, __LINE__,
27943+ "(main) found exe (after symlink chase) at: %s\n",
27944+ actual_cwrapper_path);
27945 XFREE (tmp_pathspec);
27946
27947- actual_cwrapper_name = xstrdup( base_name (actual_cwrapper_path));
27948+ actual_cwrapper_name = xstrdup (base_name (actual_cwrapper_path));
27949 strendzap (actual_cwrapper_path, actual_cwrapper_name);
27950
27951 /* wrapper name transforms */
27952@@ -3613,8 +4451,9 @@ EOF
27953 target_name = tmp_pathspec;
27954 tmp_pathspec = 0;
27955
27956- LTWRAPPER_DEBUGPRINTF (("(main) libtool target name: %s\n",
27957- target_name));
27958+ lt_debugprintf (__FILE__, __LINE__,
27959+ "(main) libtool target name: %s\n",
27960+ target_name);
27961 EOF
27962
27963 cat <<EOF
27964@@ -3664,35 +4503,19 @@ EOF
27965
27966 lt_setenv ("BIN_SH", "xpg4"); /* for Tru64 */
27967 lt_setenv ("DUALCASE", "1"); /* for MSK sh */
27968- lt_update_lib_path (LIB_PATH_VARNAME, LIB_PATH_VALUE);
27969+ /* Update the DLL searchpath. EXE_PATH_VALUE ($dllsearchpath) must
27970+ be prepended before (that is, appear after) LIB_PATH_VALUE ($temp_rpath)
27971+ because on Windows, both *_VARNAMEs are PATH but uninstalled
27972+ libraries must come first. */
27973 lt_update_exe_path (EXE_PATH_VARNAME, EXE_PATH_VALUE);
27974+ lt_update_lib_path (LIB_PATH_VARNAME, LIB_PATH_VALUE);
27975
27976- newargc=0;
27977- for (i = 1; i < argc; i++)
27978- {
27979- if (strncmp (argv[i], ltwrapper_option_prefix, opt_prefix_len) == 0)
27980- {
27981- /* however, if there is an option in the LTWRAPPER_OPTION_PREFIX
27982- namespace, but it is not one of the ones we know about and
27983- have already dealt with, above (inluding dump-script), then
27984- report an error. Otherwise, targets might begin to believe
27985- they are allowed to use options in the LTWRAPPER_OPTION_PREFIX
27986- namespace. The first time any user complains about this, we'll
27987- need to make LTWRAPPER_OPTION_PREFIX a configure-time option
27988- or a configure.ac-settable value.
27989- */
27990- lt_fatal ("Unrecognized option in %s namespace: '%s'",
27991- ltwrapper_option_prefix, argv[i]);
27992- }
27993- /* otherwise ... */
27994- newargz[++newargc] = xstrdup (argv[i]);
27995- }
27996- newargz[++newargc] = NULL;
27997-
27998- LTWRAPPER_DEBUGPRINTF (("(main) lt_argv_zero : %s\n", (lt_argv_zero ? lt_argv_zero : "<NULL>")));
27999+ lt_debugprintf (__FILE__, __LINE__, "(main) lt_argv_zero: %s\n",
28000+ nonnull (lt_argv_zero));
28001 for (i = 0; i < newargc; i++)
28002 {
28003- LTWRAPPER_DEBUGPRINTF (("(main) newargz[%d] : %s\n", i, (newargz[i] ? newargz[i] : "<NULL>")));
28004+ lt_debugprintf (__FILE__, __LINE__, "(main) newargz[%d]: %s\n",
28005+ i, nonnull (newargz[i]));
28006 }
28007
28008 EOF
28009@@ -3706,7 +4529,9 @@ EOF
28010 if (rval == -1)
28011 {
28012 /* failed to start process */
28013- LTWRAPPER_DEBUGPRINTF (("(main) failed to launch target \"%s\": errno = %d\n", lt_argv_zero, errno));
28014+ lt_debugprintf (__FILE__, __LINE__,
28015+ "(main) failed to launch target \"%s\": %s\n",
28016+ lt_argv_zero, nonnull (strerror (errno)));
28017 return 127;
28018 }
28019 return rval;
28020@@ -3728,7 +4553,7 @@ xmalloc (size_t num)
28021 {
28022 void *p = (void *) malloc (num);
28023 if (!p)
28024- lt_fatal ("Memory exhausted");
28025+ lt_fatal (__FILE__, __LINE__, "memory exhausted");
28026
28027 return p;
28028 }
28029@@ -3762,8 +4587,8 @@ check_executable (const char *path)
28030 {
28031 struct stat st;
28032
28033- LTWRAPPER_DEBUGPRINTF (("(check_executable) : %s\n",
28034- path ? (*path ? path : "EMPTY!") : "NULL!"));
28035+ lt_debugprintf (__FILE__, __LINE__, "(check_executable): %s\n",
28036+ nonempty (path));
28037 if ((!path) || (!*path))
28038 return 0;
28039
28040@@ -3780,8 +4605,8 @@ make_executable (const char *path)
28041 int rval = 0;
28042 struct stat st;
28043
28044- LTWRAPPER_DEBUGPRINTF (("(make_executable) : %s\n",
28045- path ? (*path ? path : "EMPTY!") : "NULL!"));
28046+ lt_debugprintf (__FILE__, __LINE__, "(make_executable): %s\n",
28047+ nonempty (path));
28048 if ((!path) || (!*path))
28049 return 0;
28050
28051@@ -3807,8 +4632,8 @@ find_executable (const char *wrapper)
28052 int tmp_len;
28053 char *concat_name;
28054
28055- LTWRAPPER_DEBUGPRINTF (("(find_executable) : %s\n",
28056- wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!"));
28057+ lt_debugprintf (__FILE__, __LINE__, "(find_executable): %s\n",
28058+ nonempty (wrapper));
28059
28060 if ((wrapper == NULL) || (*wrapper == '\0'))
28061 return NULL;
28062@@ -3861,7 +4686,8 @@ find_executable (const char *wrapper)
28063 {
28064 /* empty path: current directory */
28065 if (getcwd (tmp, LT_PATHMAX) == NULL)
28066- lt_fatal ("getcwd failed");
28067+ lt_fatal (__FILE__, __LINE__, "getcwd failed: %s",
28068+ nonnull (strerror (errno)));
28069 tmp_len = strlen (tmp);
28070 concat_name =
28071 XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
28072@@ -3886,7 +4712,8 @@ find_executable (const char *wrapper)
28073 }
28074 /* Relative path | not found in path: prepend cwd */
28075 if (getcwd (tmp, LT_PATHMAX) == NULL)
28076- lt_fatal ("getcwd failed");
28077+ lt_fatal (__FILE__, __LINE__, "getcwd failed: %s",
28078+ nonnull (strerror (errno)));
28079 tmp_len = strlen (tmp);
28080 concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
28081 memcpy (concat_name, tmp, tmp_len);
28082@@ -3912,8 +4739,9 @@ chase_symlinks (const char *pathspec)
28083 int has_symlinks = 0;
28084 while (strlen (tmp_pathspec) && !has_symlinks)
28085 {
28086- LTWRAPPER_DEBUGPRINTF (("checking path component for symlinks: %s\n",
28087- tmp_pathspec));
28088+ lt_debugprintf (__FILE__, __LINE__,
28089+ "checking path component for symlinks: %s\n",
28090+ tmp_pathspec);
28091 if (lstat (tmp_pathspec, &s) == 0)
28092 {
28093 if (S_ISLNK (s.st_mode) != 0)
28094@@ -3935,8 +4763,9 @@ chase_symlinks (const char *pathspec)
28095 }
28096 else
28097 {
28098- char *errstr = strerror (errno);
28099- lt_fatal ("Error accessing file %s (%s)", tmp_pathspec, errstr);
28100+ lt_fatal (__FILE__, __LINE__,
28101+ "error accessing file \"%s\": %s",
28102+ tmp_pathspec, nonnull (strerror (errno)));
28103 }
28104 }
28105 XFREE (tmp_pathspec);
28106@@ -3949,7 +4778,8 @@ chase_symlinks (const char *pathspec)
28107 tmp_pathspec = realpath (pathspec, buf);
28108 if (tmp_pathspec == 0)
28109 {
28110- lt_fatal ("Could not follow symlinks for %s", pathspec);
28111+ lt_fatal (__FILE__, __LINE__,
28112+ "could not follow symlinks for %s", pathspec);
28113 }
28114 return xstrdup (tmp_pathspec);
28115 #endif
28116@@ -3975,11 +4805,25 @@ strendzap (char *str, const char *pat)
28117 return str;
28118 }
28119
28120+void
28121+lt_debugprintf (const char *file, int line, const char *fmt, ...)
28122+{
28123+ va_list args;
28124+ if (lt_debug)
28125+ {
28126+ (void) fprintf (stderr, "%s:%s:%d: ", program_name, file, line);
28127+ va_start (args, fmt);
28128+ (void) vfprintf (stderr, fmt, args);
28129+ va_end (args);
28130+ }
28131+}
28132+
28133 static void
28134-lt_error_core (int exit_status, const char *mode,
28135+lt_error_core (int exit_status, const char *file,
28136+ int line, const char *mode,
28137 const char *message, va_list ap)
28138 {
28139- fprintf (stderr, "%s: %s: ", program_name, mode);
28140+ fprintf (stderr, "%s:%s:%d: %s: ", program_name, file, line, mode);
28141 vfprintf (stderr, message, ap);
28142 fprintf (stderr, ".\n");
28143
28144@@ -3988,20 +4832,32 @@ lt_error_core (int exit_status, const char *mode,
28145 }
28146
28147 void
28148-lt_fatal (const char *message, ...)
28149+lt_fatal (const char *file, int line, const char *message, ...)
28150 {
28151 va_list ap;
28152 va_start (ap, message);
28153- lt_error_core (EXIT_FAILURE, "FATAL", message, ap);
28154+ lt_error_core (EXIT_FAILURE, file, line, "FATAL", message, ap);
28155 va_end (ap);
28156 }
28157
28158+static const char *
28159+nonnull (const char *s)
28160+{
28161+ return s ? s : "(null)";
28162+}
28163+
28164+static const char *
28165+nonempty (const char *s)
28166+{
28167+ return (s && !*s) ? "(empty)" : nonnull (s);
28168+}
28169+
28170 void
28171 lt_setenv (const char *name, const char *value)
28172 {
28173- LTWRAPPER_DEBUGPRINTF (("(lt_setenv) setting '%s' to '%s'\n",
28174- (name ? name : "<NULL>"),
28175- (value ? value : "<NULL>")));
28176+ lt_debugprintf (__FILE__, __LINE__,
28177+ "(lt_setenv) setting '%s' to '%s'\n",
28178+ nonnull (name), nonnull (value));
28179 {
28180 #ifdef HAVE_SETENV
28181 /* always make a copy, for consistency with !HAVE_SETENV */
28182@@ -4049,9 +4905,9 @@ lt_extend_str (const char *orig_value, const char *add, int to_end)
28183 void
28184 lt_update_exe_path (const char *name, const char *value)
28185 {
28186- LTWRAPPER_DEBUGPRINTF (("(lt_update_exe_path) modifying '%s' by prepending '%s'\n",
28187- (name ? name : "<NULL>"),
28188- (value ? value : "<NULL>")));
28189+ lt_debugprintf (__FILE__, __LINE__,
28190+ "(lt_update_exe_path) modifying '%s' by prepending '%s'\n",
28191+ nonnull (name), nonnull (value));
28192
28193 if (name && *name && value && *value)
28194 {
28195@@ -4070,9 +4926,9 @@ lt_update_exe_path (const char *name, const char *value)
28196 void
28197 lt_update_lib_path (const char *name, const char *value)
28198 {
28199- LTWRAPPER_DEBUGPRINTF (("(lt_update_lib_path) modifying '%s' by prepending '%s'\n",
28200- (name ? name : "<NULL>"),
28201- (value ? value : "<NULL>")));
28202+ lt_debugprintf (__FILE__, __LINE__,
28203+ "(lt_update_lib_path) modifying '%s' by prepending '%s'\n",
28204+ nonnull (name), nonnull (value));
28205
28206 if (name && *name && value && *value)
28207 {
28208@@ -4222,7 +5078,7 @@ EOF
28209 func_win32_import_lib_p ()
28210 {
28211 $opt_debug
28212- case `eval "$file_magic_cmd \"\$1\" 2>/dev/null" | $SED -e 10q` in
28213+ case `eval $file_magic_cmd \"\$1\" 2>/dev/null | $SED -e 10q` in
28214 *import*) : ;;
28215 *) false ;;
28216 esac
28217@@ -4401,9 +5257,9 @@ func_mode_link ()
28218 ;;
28219 *)
28220 if test "$prev" = dlfiles; then
28221- dlfiles="$dlfiles $arg"
28222+ func_append dlfiles " $arg"
28223 else
28224- dlprefiles="$dlprefiles $arg"
28225+ func_append dlprefiles " $arg"
28226 fi
28227 prev=
28228 continue
28229@@ -4427,7 +5283,7 @@ func_mode_link ()
28230 *-*-darwin*)
28231 case "$deplibs " in
28232 *" $qarg.ltframework "*) ;;
28233- *) deplibs="$deplibs $qarg.ltframework" # this is fixed later
28234+ *) func_append deplibs " $qarg.ltframework" # this is fixed later
28235 ;;
28236 esac
28237 ;;
28238@@ -4446,7 +5302,7 @@ func_mode_link ()
28239 moreargs=
28240 for fil in `cat "$save_arg"`
28241 do
28242-# moreargs="$moreargs $fil"
28243+# func_append moreargs " $fil"
28244 arg=$fil
28245 # A libtool-controlled object.
28246
28247@@ -4475,7 +5331,7 @@ func_mode_link ()
28248
28249 if test "$prev" = dlfiles; then
28250 if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
28251- dlfiles="$dlfiles $pic_object"
28252+ func_append dlfiles " $pic_object"
28253 prev=
28254 continue
28255 else
28256@@ -4487,7 +5343,7 @@ func_mode_link ()
28257 # CHECK ME: I think I busted this. -Ossama
28258 if test "$prev" = dlprefiles; then
28259 # Preload the old-style object.
28260- dlprefiles="$dlprefiles $pic_object"
28261+ func_append dlprefiles " $pic_object"
28262 prev=
28263 fi
28264
28265@@ -4557,12 +5413,12 @@ func_mode_link ()
28266 if test "$prev" = rpath; then
28267 case "$rpath " in
28268 *" $arg "*) ;;
28269- *) rpath="$rpath $arg" ;;
28270+ *) func_append rpath " $arg" ;;
28271 esac
28272 else
28273 case "$xrpath " in
28274 *" $arg "*) ;;
28275- *) xrpath="$xrpath $arg" ;;
28276+ *) func_append xrpath " $arg" ;;
28277 esac
28278 fi
28279 prev=
28280@@ -4574,28 +5430,28 @@ func_mode_link ()
28281 continue
28282 ;;
28283 weak)
28284- weak_libs="$weak_libs $arg"
28285+ func_append weak_libs " $arg"
28286 prev=
28287 continue
28288 ;;
28289 xcclinker)
28290- linker_flags="$linker_flags $qarg"
28291- compiler_flags="$compiler_flags $qarg"
28292+ func_append linker_flags " $qarg"
28293+ func_append compiler_flags " $qarg"
28294 prev=
28295 func_append compile_command " $qarg"
28296 func_append finalize_command " $qarg"
28297 continue
28298 ;;
28299 xcompiler)
28300- compiler_flags="$compiler_flags $qarg"
28301+ func_append compiler_flags " $qarg"
28302 prev=
28303 func_append compile_command " $qarg"
28304 func_append finalize_command " $qarg"
28305 continue
28306 ;;
28307 xlinker)
28308- linker_flags="$linker_flags $qarg"
28309- compiler_flags="$compiler_flags $wl$qarg"
28310+ func_append linker_flags " $qarg"
28311+ func_append compiler_flags " $wl$qarg"
28312 prev=
28313 func_append compile_command " $wl$qarg"
28314 func_append finalize_command " $wl$qarg"
28315@@ -4686,15 +5542,16 @@ func_mode_link ()
28316 ;;
28317
28318 -L*)
28319- func_stripname '-L' '' "$arg"
28320- dir=$func_stripname_result
28321- if test -z "$dir"; then
28322+ func_stripname "-L" '' "$arg"
28323+ if test -z "$func_stripname_result"; then
28324 if test "$#" -gt 0; then
28325 func_fatal_error "require no space between \`-L' and \`$1'"
28326 else
28327 func_fatal_error "need path for \`-L' option"
28328 fi
28329 fi
28330+ func_resolve_sysroot "$func_stripname_result"
28331+ dir=$func_resolve_sysroot_result
28332 # We need an absolute path.
28333 case $dir in
28334 [\\/]* | [A-Za-z]:[\\/]*) ;;
28335@@ -4706,10 +5563,16 @@ func_mode_link ()
28336 ;;
28337 esac
28338 case "$deplibs " in
28339- *" -L$dir "*) ;;
28340+ *" -L$dir "* | *" $arg "*)
28341+ # Will only happen for absolute or sysroot arguments
28342+ ;;
28343 *)
28344- deplibs="$deplibs -L$dir"
28345- lib_search_path="$lib_search_path $dir"
28346+ # Preserve sysroot, but never include relative directories
28347+ case $dir in
28348+ [\\/]* | [A-Za-z]:[\\/]* | =*) func_append deplibs " $arg" ;;
28349+ *) func_append deplibs " -L$dir" ;;
28350+ esac
28351+ func_append lib_search_path " $dir"
28352 ;;
28353 esac
28354 case $host in
28355@@ -4718,12 +5581,12 @@ func_mode_link ()
28356 case :$dllsearchpath: in
28357 *":$dir:"*) ;;
28358 ::) dllsearchpath=$dir;;
28359- *) dllsearchpath="$dllsearchpath:$dir";;
28360+ *) func_append dllsearchpath ":$dir";;
28361 esac
28362 case :$dllsearchpath: in
28363 *":$testbindir:"*) ;;
28364 ::) dllsearchpath=$testbindir;;
28365- *) dllsearchpath="$dllsearchpath:$testbindir";;
28366+ *) func_append dllsearchpath ":$testbindir";;
28367 esac
28368 ;;
28369 esac
28370@@ -4747,7 +5610,7 @@ func_mode_link ()
28371 ;;
28372 *-*-rhapsody* | *-*-darwin1.[012])
28373 # Rhapsody C and math libraries are in the System framework
28374- deplibs="$deplibs System.ltframework"
28375+ func_append deplibs " System.ltframework"
28376 continue
28377 ;;
28378 *-*-sco3.2v5* | *-*-sco5v6*)
28379@@ -4758,9 +5621,6 @@ func_mode_link ()
28380 # Compiler inserts libc in the correct place for threads to work
28381 test "X$arg" = "X-lc" && continue
28382 ;;
28383- *-*-linux*)
28384- test "X$arg" = "X-lc" && continue
28385- ;;
28386 esac
28387 elif test "X$arg" = "X-lc_r"; then
28388 case $host in
28389@@ -4770,7 +5630,7 @@ func_mode_link ()
28390 ;;
28391 esac
28392 fi
28393- deplibs="$deplibs $arg"
28394+ func_append deplibs " $arg"
28395 continue
28396 ;;
28397
28398@@ -4782,8 +5642,8 @@ func_mode_link ()
28399 # Tru64 UNIX uses -model [arg] to determine the layout of C++
28400 # classes, name mangling, and exception handling.
28401 # Darwin uses the -arch flag to determine output architecture.
28402- -model|-arch|-isysroot)
28403- compiler_flags="$compiler_flags $arg"
28404+ -model|-arch|-isysroot|--sysroot)
28405+ func_append compiler_flags " $arg"
28406 func_append compile_command " $arg"
28407 func_append finalize_command " $arg"
28408 prev=xcompiler
28409@@ -4791,12 +5651,12 @@ func_mode_link ()
28410 ;;
28411
28412 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
28413- compiler_flags="$compiler_flags $arg"
28414+ func_append compiler_flags " $arg"
28415 func_append compile_command " $arg"
28416 func_append finalize_command " $arg"
28417 case "$new_inherited_linker_flags " in
28418 *" $arg "*) ;;
28419- * ) new_inherited_linker_flags="$new_inherited_linker_flags $arg" ;;
28420+ * ) func_append new_inherited_linker_flags " $arg" ;;
28421 esac
28422 continue
28423 ;;
28424@@ -4863,13 +5723,17 @@ func_mode_link ()
28425 # We need an absolute path.
28426 case $dir in
28427 [\\/]* | [A-Za-z]:[\\/]*) ;;
28428+ =*)
28429+ func_stripname '=' '' "$dir"
28430+ dir=$lt_sysroot$func_stripname_result
28431+ ;;
28432 *)
28433 func_fatal_error "only absolute run-paths are allowed"
28434 ;;
28435 esac
28436 case "$xrpath " in
28437 *" $dir "*) ;;
28438- *) xrpath="$xrpath $dir" ;;
28439+ *) func_append xrpath " $dir" ;;
28440 esac
28441 continue
28442 ;;
28443@@ -4922,8 +5786,8 @@ func_mode_link ()
28444 for flag in $args; do
28445 IFS="$save_ifs"
28446 func_quote_for_eval "$flag"
28447- arg="$arg $func_quote_for_eval_result"
28448- compiler_flags="$compiler_flags $func_quote_for_eval_result"
28449+ func_append arg " $func_quote_for_eval_result"
28450+ func_append compiler_flags " $func_quote_for_eval_result"
28451 done
28452 IFS="$save_ifs"
28453 func_stripname ' ' '' "$arg"
28454@@ -4938,9 +5802,9 @@ func_mode_link ()
28455 for flag in $args; do
28456 IFS="$save_ifs"
28457 func_quote_for_eval "$flag"
28458- arg="$arg $wl$func_quote_for_eval_result"
28459- compiler_flags="$compiler_flags $wl$func_quote_for_eval_result"
28460- linker_flags="$linker_flags $func_quote_for_eval_result"
28461+ func_append arg " $wl$func_quote_for_eval_result"
28462+ func_append compiler_flags " $wl$func_quote_for_eval_result"
28463+ func_append linker_flags " $func_quote_for_eval_result"
28464 done
28465 IFS="$save_ifs"
28466 func_stripname ' ' '' "$arg"
28467@@ -4968,24 +5832,27 @@ func_mode_link ()
28468 arg="$func_quote_for_eval_result"
28469 ;;
28470
28471- # -64, -mips[0-9] enable 64-bit mode on the SGI compiler
28472- # -r[0-9][0-9]* specifies the processor on the SGI compiler
28473- # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler
28474- # +DA*, +DD* enable 64-bit mode on the HP compiler
28475- # -q* pass through compiler args for the IBM compiler
28476- # -m*, -t[45]*, -txscale* pass through architecture-specific
28477- # compiler args for GCC
28478- # -F/path gives path to uninstalled frameworks, gcc on darwin
28479- # -p, -pg, --coverage, -fprofile-* pass through profiling flag for GCC
28480- # @file GCC response files
28481- # -tp=* Portland pgcc target processor selection
28482+ # Flags to be passed through unchanged, with rationale:
28483+ # -64, -mips[0-9] enable 64-bit mode for the SGI compiler
28484+ # -r[0-9][0-9]* specify processor for the SGI compiler
28485+ # -xarch=*, -xtarget=* enable 64-bit mode for the Sun compiler
28486+ # +DA*, +DD* enable 64-bit mode for the HP compiler
28487+ # -q* compiler args for the IBM compiler
28488+ # -m*, -t[45]*, -txscale* architecture-specific flags for GCC
28489+ # -F/path path to uninstalled frameworks, gcc on darwin
28490+ # -p, -pg, --coverage, -fprofile-* profiling flags for GCC
28491+ # @file GCC response files
28492+ # -tp=* Portland pgcc target processor selection
28493+ # --sysroot=* for sysroot support
28494+ # -O*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization
28495 -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
28496- -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*)
28497+ -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \
28498+ -O*|-flto*|-fwhopr*|-fuse-linker-plugin)
28499 func_quote_for_eval "$arg"
28500 arg="$func_quote_for_eval_result"
28501 func_append compile_command " $arg"
28502 func_append finalize_command " $arg"
28503- compiler_flags="$compiler_flags $arg"
28504+ func_append compiler_flags " $arg"
28505 continue
28506 ;;
28507
28508@@ -4997,7 +5864,7 @@ func_mode_link ()
28509
28510 *.$objext)
28511 # A standard object.
28512- objs="$objs $arg"
28513+ func_append objs " $arg"
28514 ;;
28515
28516 *.lo)
28517@@ -5028,7 +5895,7 @@ func_mode_link ()
28518
28519 if test "$prev" = dlfiles; then
28520 if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
28521- dlfiles="$dlfiles $pic_object"
28522+ func_append dlfiles " $pic_object"
28523 prev=
28524 continue
28525 else
28526@@ -5040,7 +5907,7 @@ func_mode_link ()
28527 # CHECK ME: I think I busted this. -Ossama
28528 if test "$prev" = dlprefiles; then
28529 # Preload the old-style object.
28530- dlprefiles="$dlprefiles $pic_object"
28531+ func_append dlprefiles " $pic_object"
28532 prev=
28533 fi
28534
28535@@ -5085,24 +5952,25 @@ func_mode_link ()
28536
28537 *.$libext)
28538 # An archive.
28539- deplibs="$deplibs $arg"
28540- old_deplibs="$old_deplibs $arg"
28541+ func_append deplibs " $arg"
28542+ func_append old_deplibs " $arg"
28543 continue
28544 ;;
28545
28546 *.la)
28547 # A libtool-controlled library.
28548
28549+ func_resolve_sysroot "$arg"
28550 if test "$prev" = dlfiles; then
28551 # This library was specified with -dlopen.
28552- dlfiles="$dlfiles $arg"
28553+ func_append dlfiles " $func_resolve_sysroot_result"
28554 prev=
28555 elif test "$prev" = dlprefiles; then
28556 # The library was specified with -dlpreopen.
28557- dlprefiles="$dlprefiles $arg"
28558+ func_append dlprefiles " $func_resolve_sysroot_result"
28559 prev=
28560 else
28561- deplibs="$deplibs $arg"
28562+ func_append deplibs " $func_resolve_sysroot_result"
28563 fi
28564 continue
28565 ;;
28566@@ -5127,7 +5995,7 @@ func_mode_link ()
28567 func_fatal_help "the \`$prevarg' option requires an argument"
28568
28569 if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
28570- eval "arg=\"$export_dynamic_flag_spec\""
28571+ eval arg=\"$export_dynamic_flag_spec\"
28572 func_append compile_command " $arg"
28573 func_append finalize_command " $arg"
28574 fi
28575@@ -5144,11 +6012,13 @@ func_mode_link ()
28576 else
28577 shlib_search_path=
28578 fi
28579- eval "sys_lib_search_path=\"$sys_lib_search_path_spec\""
28580- eval "sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\""
28581+ eval sys_lib_search_path=\"$sys_lib_search_path_spec\"
28582+ eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
28583
28584 func_dirname "$output" "/" ""
28585 output_objdir="$func_dirname_result$objdir"
28586+ func_to_tool_file "$output_objdir/"
28587+ tool_output_objdir=$func_to_tool_file_result
28588 # Create the object directory.
28589 func_mkdir_p "$output_objdir"
28590
28591@@ -5169,12 +6039,12 @@ func_mode_link ()
28592 # Find all interdependent deplibs by searching for libraries
28593 # that are linked more than once (e.g. -la -lb -la)
28594 for deplib in $deplibs; do
28595- if $opt_duplicate_deps ; then
28596+ if $opt_preserve_dup_deps ; then
28597 case "$libs " in
28598- *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
28599+ *" $deplib "*) func_append specialdeplibs " $deplib" ;;
28600 esac
28601 fi
28602- libs="$libs $deplib"
28603+ func_append libs " $deplib"
28604 done
28605
28606 if test "$linkmode" = lib; then
28607@@ -5187,9 +6057,9 @@ func_mode_link ()
28608 if $opt_duplicate_compiler_generated_deps; then
28609 for pre_post_dep in $predeps $postdeps; do
28610 case "$pre_post_deps " in
28611- *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;;
28612+ *" $pre_post_dep "*) func_append specialdeplibs " $pre_post_deps" ;;
28613 esac
28614- pre_post_deps="$pre_post_deps $pre_post_dep"
28615+ func_append pre_post_deps " $pre_post_dep"
28616 done
28617 fi
28618 pre_post_deps=
28619@@ -5256,8 +6126,9 @@ func_mode_link ()
28620 for lib in $dlprefiles; do
28621 # Ignore non-libtool-libs
28622 dependency_libs=
28623+ func_resolve_sysroot "$lib"
28624 case $lib in
28625- *.la) func_source "$lib" ;;
28626+ *.la) func_source "$func_resolve_sysroot_result" ;;
28627 esac
28628
28629 # Collect preopened libtool deplibs, except any this library
28630@@ -5267,7 +6138,7 @@ func_mode_link ()
28631 deplib_base=$func_basename_result
28632 case " $weak_libs " in
28633 *" $deplib_base "*) ;;
28634- *) deplibs="$deplibs $deplib" ;;
28635+ *) func_append deplibs " $deplib" ;;
28636 esac
28637 done
28638 done
28639@@ -5288,11 +6159,11 @@ func_mode_link ()
28640 compile_deplibs="$deplib $compile_deplibs"
28641 finalize_deplibs="$deplib $finalize_deplibs"
28642 else
28643- compiler_flags="$compiler_flags $deplib"
28644+ func_append compiler_flags " $deplib"
28645 if test "$linkmode" = lib ; then
28646 case "$new_inherited_linker_flags " in
28647 *" $deplib "*) ;;
28648- * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;;
28649+ * ) func_append new_inherited_linker_flags " $deplib" ;;
28650 esac
28651 fi
28652 fi
28653@@ -5377,7 +6248,7 @@ func_mode_link ()
28654 if test "$linkmode" = lib ; then
28655 case "$new_inherited_linker_flags " in
28656 *" $deplib "*) ;;
28657- * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;;
28658+ * ) func_append new_inherited_linker_flags " $deplib" ;;
28659 esac
28660 fi
28661 fi
28662@@ -5390,7 +6261,8 @@ func_mode_link ()
28663 test "$pass" = conv && continue
28664 newdependency_libs="$deplib $newdependency_libs"
28665 func_stripname '-L' '' "$deplib"
28666- newlib_search_path="$newlib_search_path $func_stripname_result"
28667+ func_resolve_sysroot "$func_stripname_result"
28668+ func_append newlib_search_path " $func_resolve_sysroot_result"
28669 ;;
28670 prog)
28671 if test "$pass" = conv; then
28672@@ -5404,7 +6276,8 @@ func_mode_link ()
28673 finalize_deplibs="$deplib $finalize_deplibs"
28674 fi
28675 func_stripname '-L' '' "$deplib"
28676- newlib_search_path="$newlib_search_path $func_stripname_result"
28677+ func_resolve_sysroot "$func_stripname_result"
28678+ func_append newlib_search_path " $func_resolve_sysroot_result"
28679 ;;
28680 *)
28681 func_warning "\`-L' is ignored for archives/objects"
28682@@ -5415,17 +6288,21 @@ func_mode_link ()
28683 -R*)
28684 if test "$pass" = link; then
28685 func_stripname '-R' '' "$deplib"
28686- dir=$func_stripname_result
28687+ func_resolve_sysroot "$func_stripname_result"
28688+ dir=$func_resolve_sysroot_result
28689 # Make sure the xrpath contains only unique directories.
28690 case "$xrpath " in
28691 *" $dir "*) ;;
28692- *) xrpath="$xrpath $dir" ;;
28693+ *) func_append xrpath " $dir" ;;
28694 esac
28695 fi
28696 deplibs="$deplib $deplibs"
28697 continue
28698 ;;
28699- *.la) lib="$deplib" ;;
28700+ *.la)
28701+ func_resolve_sysroot "$deplib"
28702+ lib=$func_resolve_sysroot_result
28703+ ;;
28704 *.$libext)
28705 if test "$pass" = conv; then
28706 deplibs="$deplib $deplibs"
28707@@ -5488,11 +6365,11 @@ func_mode_link ()
28708 if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
28709 # If there is no dlopen support or we're linking statically,
28710 # we need to preload.
28711- newdlprefiles="$newdlprefiles $deplib"
28712+ func_append newdlprefiles " $deplib"
28713 compile_deplibs="$deplib $compile_deplibs"
28714 finalize_deplibs="$deplib $finalize_deplibs"
28715 else
28716- newdlfiles="$newdlfiles $deplib"
28717+ func_append newdlfiles " $deplib"
28718 fi
28719 fi
28720 continue
28721@@ -5538,7 +6415,7 @@ func_mode_link ()
28722 for tmp_inherited_linker_flag in $tmp_inherited_linker_flags; do
28723 case " $new_inherited_linker_flags " in
28724 *" $tmp_inherited_linker_flag "*) ;;
28725- *) new_inherited_linker_flags="$new_inherited_linker_flags $tmp_inherited_linker_flag";;
28726+ *) func_append new_inherited_linker_flags " $tmp_inherited_linker_flag";;
28727 esac
28728 done
28729 fi
28730@@ -5546,8 +6423,8 @@ func_mode_link ()
28731 if test "$linkmode,$pass" = "lib,link" ||
28732 test "$linkmode,$pass" = "prog,scan" ||
28733 { test "$linkmode" != prog && test "$linkmode" != lib; }; then
28734- test -n "$dlopen" && dlfiles="$dlfiles $dlopen"
28735- test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen"
28736+ test -n "$dlopen" && func_append dlfiles " $dlopen"
28737+ test -n "$dlpreopen" && func_append dlprefiles " $dlpreopen"
28738 fi
28739
28740 if test "$pass" = conv; then
28741@@ -5558,20 +6435,20 @@ func_mode_link ()
28742 func_fatal_error "cannot find name of link library for \`$lib'"
28743 fi
28744 # It is a libtool convenience library, so add in its objects.
28745- convenience="$convenience $ladir/$objdir/$old_library"
28746- old_convenience="$old_convenience $ladir/$objdir/$old_library"
28747+ func_append convenience " $ladir/$objdir/$old_library"
28748+ func_append old_convenience " $ladir/$objdir/$old_library"
28749 elif test "$linkmode" != prog && test "$linkmode" != lib; then
28750 func_fatal_error "\`$lib' is not a convenience library"
28751 fi
28752 tmp_libs=
28753 for deplib in $dependency_libs; do
28754 deplibs="$deplib $deplibs"
28755- if $opt_duplicate_deps ; then
28756+ if $opt_preserve_dup_deps ; then
28757 case "$tmp_libs " in
28758- *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
28759+ *" $deplib "*) func_append specialdeplibs " $deplib" ;;
28760 esac
28761 fi
28762- tmp_libs="$tmp_libs $deplib"
28763+ func_append tmp_libs " $deplib"
28764 done
28765 continue
28766 fi # $pass = conv
28767@@ -5579,9 +6456,15 @@ func_mode_link ()
28768
28769 # Get the name of the library we link against.
28770 linklib=
28771- for l in $old_library $library_names; do
28772- linklib="$l"
28773- done
28774+ if test -n "$old_library" &&
28775+ { test "$prefer_static_libs" = yes ||
28776+ test "$prefer_static_libs,$installed" = "built,no"; }; then
28777+ linklib=$old_library
28778+ else
28779+ for l in $old_library $library_names; do
28780+ linklib="$l"
28781+ done
28782+ fi
28783 if test -z "$linklib"; then
28784 func_fatal_error "cannot find name of link library for \`$lib'"
28785 fi
28786@@ -5598,9 +6481,9 @@ func_mode_link ()
28787 # statically, we need to preload. We also need to preload any
28788 # dependent libraries so libltdl's deplib preloader doesn't
28789 # bomb out in the load deplibs phase.
28790- dlprefiles="$dlprefiles $lib $dependency_libs"
28791+ func_append dlprefiles " $lib $dependency_libs"
28792 else
28793- newdlfiles="$newdlfiles $lib"
28794+ func_append newdlfiles " $lib"
28795 fi
28796 continue
28797 fi # $pass = dlopen
28798@@ -5622,14 +6505,14 @@ func_mode_link ()
28799
28800 # Find the relevant object directory and library name.
28801 if test "X$installed" = Xyes; then
28802- if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
28803+ if test ! -f "$lt_sysroot$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
28804 func_warning "library \`$lib' was moved."
28805 dir="$ladir"
28806 absdir="$abs_ladir"
28807 libdir="$abs_ladir"
28808 else
28809- dir="$libdir"
28810- absdir="$libdir"
28811+ dir="$lt_sysroot$libdir"
28812+ absdir="$lt_sysroot$libdir"
28813 fi
28814 test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
28815 else
28816@@ -5637,12 +6520,12 @@ func_mode_link ()
28817 dir="$ladir"
28818 absdir="$abs_ladir"
28819 # Remove this search path later
28820- notinst_path="$notinst_path $abs_ladir"
28821+ func_append notinst_path " $abs_ladir"
28822 else
28823 dir="$ladir/$objdir"
28824 absdir="$abs_ladir/$objdir"
28825 # Remove this search path later
28826- notinst_path="$notinst_path $abs_ladir"
28827+ func_append notinst_path " $abs_ladir"
28828 fi
28829 fi # $installed = yes
28830 func_stripname 'lib' '.la' "$laname"
28831@@ -5653,20 +6536,46 @@ func_mode_link ()
28832 if test -z "$libdir" && test "$linkmode" = prog; then
28833 func_fatal_error "only libraries may -dlpreopen a convenience library: \`$lib'"
28834 fi
28835- # Prefer using a static library (so that no silly _DYNAMIC symbols
28836- # are required to link).
28837- if test -n "$old_library"; then
28838- newdlprefiles="$newdlprefiles $dir/$old_library"
28839- # Keep a list of preopened convenience libraries to check
28840- # that they are being used correctly in the link pass.
28841- test -z "$libdir" && \
28842- dlpreconveniencelibs="$dlpreconveniencelibs $dir/$old_library"
28843- # Otherwise, use the dlname, so that lt_dlopen finds it.
28844- elif test -n "$dlname"; then
28845- newdlprefiles="$newdlprefiles $dir/$dlname"
28846- else
28847- newdlprefiles="$newdlprefiles $dir/$linklib"
28848- fi
28849+ case "$host" in
28850+ # special handling for platforms with PE-DLLs.
28851+ *cygwin* | *mingw* | *cegcc* )
28852+ # Linker will automatically link against shared library if both
28853+ # static and shared are present. Therefore, ensure we extract
28854+ # symbols from the import library if a shared library is present
28855+ # (otherwise, the dlopen module name will be incorrect). We do
28856+ # this by putting the import library name into $newdlprefiles.
28857+ # We recover the dlopen module name by 'saving' the la file
28858+ # name in a special purpose variable, and (later) extracting the
28859+ # dlname from the la file.
28860+ if test -n "$dlname"; then
28861+ func_tr_sh "$dir/$linklib"
28862+ eval "libfile_$func_tr_sh_result=\$abs_ladir/\$laname"
28863+ func_append newdlprefiles " $dir/$linklib"
28864+ else
28865+ func_append newdlprefiles " $dir/$old_library"
28866+ # Keep a list of preopened convenience libraries to check
28867+ # that they are being used correctly in the link pass.
28868+ test -z "$libdir" && \
28869+ func_append dlpreconveniencelibs " $dir/$old_library"
28870+ fi
28871+ ;;
28872+ * )
28873+ # Prefer using a static library (so that no silly _DYNAMIC symbols
28874+ # are required to link).
28875+ if test -n "$old_library"; then
28876+ func_append newdlprefiles " $dir/$old_library"
28877+ # Keep a list of preopened convenience libraries to check
28878+ # that they are being used correctly in the link pass.
28879+ test -z "$libdir" && \
28880+ func_append dlpreconveniencelibs " $dir/$old_library"
28881+ # Otherwise, use the dlname, so that lt_dlopen finds it.
28882+ elif test -n "$dlname"; then
28883+ func_append newdlprefiles " $dir/$dlname"
28884+ else
28885+ func_append newdlprefiles " $dir/$linklib"
28886+ fi
28887+ ;;
28888+ esac
28889 fi # $pass = dlpreopen
28890
28891 if test -z "$libdir"; then
28892@@ -5684,7 +6593,7 @@ func_mode_link ()
28893
28894
28895 if test "$linkmode" = prog && test "$pass" != link; then
28896- newlib_search_path="$newlib_search_path $ladir"
28897+ func_append newlib_search_path " $ladir"
28898 deplibs="$lib $deplibs"
28899
28900 linkalldeplibs=no
28901@@ -5697,7 +6606,8 @@ func_mode_link ()
28902 for deplib in $dependency_libs; do
28903 case $deplib in
28904 -L*) func_stripname '-L' '' "$deplib"
28905- newlib_search_path="$newlib_search_path $func_stripname_result"
28906+ func_resolve_sysroot "$func_stripname_result"
28907+ func_append newlib_search_path " $func_resolve_sysroot_result"
28908 ;;
28909 esac
28910 # Need to link against all dependency_libs?
28911@@ -5708,12 +6618,12 @@ func_mode_link ()
28912 # or/and link against static libraries
28913 newdependency_libs="$deplib $newdependency_libs"
28914 fi
28915- if $opt_duplicate_deps ; then
28916+ if $opt_preserve_dup_deps ; then
28917 case "$tmp_libs " in
28918- *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
28919+ *" $deplib "*) func_append specialdeplibs " $deplib" ;;
28920 esac
28921 fi
28922- tmp_libs="$tmp_libs $deplib"
28923+ func_append tmp_libs " $deplib"
28924 done # for deplib
28925 continue
28926 fi # $linkmode = prog...
28927@@ -5728,7 +6638,7 @@ func_mode_link ()
28928 # Make sure the rpath contains only unique directories.
28929 case "$temp_rpath:" in
28930 *"$absdir:"*) ;;
28931- *) temp_rpath="$temp_rpath$absdir:" ;;
28932+ *) func_append temp_rpath "$absdir:" ;;
28933 esac
28934 fi
28935
28936@@ -5740,7 +6650,7 @@ func_mode_link ()
28937 *)
28938 case "$compile_rpath " in
28939 *" $absdir "*) ;;
28940- *) compile_rpath="$compile_rpath $absdir"
28941+ *) func_append compile_rpath " $absdir" ;;
28942 esac
28943 ;;
28944 esac
28945@@ -5749,7 +6659,7 @@ func_mode_link ()
28946 *)
28947 case "$finalize_rpath " in
28948 *" $libdir "*) ;;
28949- *) finalize_rpath="$finalize_rpath $libdir"
28950+ *) func_append finalize_rpath " $libdir" ;;
28951 esac
28952 ;;
28953 esac
28954@@ -5774,12 +6684,12 @@ func_mode_link ()
28955 case $host in
28956 *cygwin* | *mingw* | *cegcc*)
28957 # No point in relinking DLLs because paths are not encoded
28958- notinst_deplibs="$notinst_deplibs $lib"
28959+ func_append notinst_deplibs " $lib"
28960 need_relink=no
28961 ;;
28962 *)
28963 if test "$installed" = no; then
28964- notinst_deplibs="$notinst_deplibs $lib"
28965+ func_append notinst_deplibs " $lib"
28966 need_relink=yes
28967 fi
28968 ;;
28969@@ -5814,7 +6724,7 @@ func_mode_link ()
28970 *)
28971 case "$compile_rpath " in
28972 *" $absdir "*) ;;
28973- *) compile_rpath="$compile_rpath $absdir"
28974+ *) func_append compile_rpath " $absdir" ;;
28975 esac
28976 ;;
28977 esac
28978@@ -5823,7 +6733,7 @@ func_mode_link ()
28979 *)
28980 case "$finalize_rpath " in
28981 *" $libdir "*) ;;
28982- *) finalize_rpath="$finalize_rpath $libdir"
28983+ *) func_append finalize_rpath " $libdir" ;;
28984 esac
28985 ;;
28986 esac
28987@@ -5835,7 +6745,7 @@ func_mode_link ()
28988 shift
28989 realname="$1"
28990 shift
28991- eval "libname=\"$libname_spec\""
28992+ libname=`eval "\\$ECHO \"$libname_spec\""`
28993 # use dlname if we got it. it's perfectly good, no?
28994 if test -n "$dlname"; then
28995 soname="$dlname"
28996@@ -5848,7 +6758,7 @@ func_mode_link ()
28997 versuffix="-$major"
28998 ;;
28999 esac
29000- eval "soname=\"$soname_spec\""
29001+ eval soname=\"$soname_spec\"
29002 else
29003 soname="$realname"
29004 fi
29005@@ -5877,7 +6787,7 @@ func_mode_link ()
29006 linklib=$newlib
29007 fi # test -n "$old_archive_from_expsyms_cmds"
29008
29009- if test "$linkmode" = prog || test "$mode" != relink; then
29010+ if test "$linkmode" = prog || test "$opt_mode" != relink; then
29011 add_shlibpath=
29012 add_dir=
29013 add=
29014@@ -5933,7 +6843,7 @@ func_mode_link ()
29015 if test -n "$inst_prefix_dir"; then
29016 case $libdir in
29017 [\\/]*)
29018- add_dir="$add_dir -L$inst_prefix_dir$libdir"
29019+ func_append add_dir " -L$inst_prefix_dir$libdir"
29020 ;;
29021 esac
29022 fi
29023@@ -5955,7 +6865,7 @@ func_mode_link ()
29024 if test -n "$add_shlibpath"; then
29025 case :$compile_shlibpath: in
29026 *":$add_shlibpath:"*) ;;
29027- *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;;
29028+ *) func_append compile_shlibpath "$add_shlibpath:" ;;
29029 esac
29030 fi
29031 if test "$linkmode" = prog; then
29032@@ -5969,13 +6879,13 @@ func_mode_link ()
29033 test "$hardcode_shlibpath_var" = yes; then
29034 case :$finalize_shlibpath: in
29035 *":$libdir:"*) ;;
29036- *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
29037+ *) func_append finalize_shlibpath "$libdir:" ;;
29038 esac
29039 fi
29040 fi
29041 fi
29042
29043- if test "$linkmode" = prog || test "$mode" = relink; then
29044+ if test "$linkmode" = prog || test "$opt_mode" = relink; then
29045 add_shlibpath=
29046 add_dir=
29047 add=
29048@@ -5989,7 +6899,7 @@ func_mode_link ()
29049 elif test "$hardcode_shlibpath_var" = yes; then
29050 case :$finalize_shlibpath: in
29051 *":$libdir:"*) ;;
29052- *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
29053+ *) func_append finalize_shlibpath "$libdir:" ;;
29054 esac
29055 add="-l$name"
29056 elif test "$hardcode_automatic" = yes; then
29057@@ -6001,12 +6911,12 @@ func_mode_link ()
29058 fi
29059 else
29060 # We cannot seem to hardcode it, guess we'll fake it.
29061- add_dir="-L$libdir"
29062+ add_dir="-L$lt_sysroot$libdir"
29063 # Try looking first in the location we're being installed to.
29064 if test -n "$inst_prefix_dir"; then
29065 case $libdir in
29066 [\\/]*)
29067- add_dir="$add_dir -L$inst_prefix_dir$libdir"
29068+ func_append add_dir " -L$inst_prefix_dir$libdir"
29069 ;;
29070 esac
29071 fi
29072@@ -6083,27 +6993,33 @@ func_mode_link ()
29073 temp_xrpath=$func_stripname_result
29074 case " $xrpath " in
29075 *" $temp_xrpath "*) ;;
29076- *) xrpath="$xrpath $temp_xrpath";;
29077+ *) func_append xrpath " $temp_xrpath";;
29078 esac;;
29079- *) temp_deplibs="$temp_deplibs $libdir";;
29080+ *) func_append temp_deplibs " $libdir";;
29081 esac
29082 done
29083 dependency_libs="$temp_deplibs"
29084 fi
29085
29086- newlib_search_path="$newlib_search_path $absdir"
29087+ func_append newlib_search_path " $absdir"
29088 # Link against this library
29089 test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
29090 # ... and its dependency_libs
29091 tmp_libs=
29092 for deplib in $dependency_libs; do
29093 newdependency_libs="$deplib $newdependency_libs"
29094- if $opt_duplicate_deps ; then
29095+ case $deplib in
29096+ -L*) func_stripname '-L' '' "$deplib"
29097+ func_resolve_sysroot "$func_stripname_result";;
29098+ *) func_resolve_sysroot "$deplib" ;;
29099+ esac
29100+ if $opt_preserve_dup_deps ; then
29101 case "$tmp_libs " in
29102- *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
29103+ *" $func_resolve_sysroot_result "*)
29104+ func_append specialdeplibs " $func_resolve_sysroot_result" ;;
29105 esac
29106 fi
29107- tmp_libs="$tmp_libs $deplib"
29108+ func_append tmp_libs " $func_resolve_sysroot_result"
29109 done
29110
29111 if test "$link_all_deplibs" != no; then
29112@@ -6113,8 +7029,10 @@ func_mode_link ()
29113 case $deplib in
29114 -L*) path="$deplib" ;;
29115 *.la)
29116+ func_resolve_sysroot "$deplib"
29117+ deplib=$func_resolve_sysroot_result
29118 func_dirname "$deplib" "" "."
29119- dir="$func_dirname_result"
29120+ dir=$func_dirname_result
29121 # We need an absolute path.
29122 case $dir in
29123 [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;
29124@@ -6130,7 +7048,7 @@ func_mode_link ()
29125 case $host in
29126 *-*-darwin*)
29127 depdepl=
29128- deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
29129+ eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
29130 if test -n "$deplibrary_names" ; then
29131 for tmp in $deplibrary_names ; do
29132 depdepl=$tmp
29133@@ -6141,8 +7059,8 @@ func_mode_link ()
29134 if test -z "$darwin_install_name"; then
29135 darwin_install_name=`${OTOOL64} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
29136 fi
29137- compiler_flags="$compiler_flags ${wl}-dylib_file ${wl}${darwin_install_name}:${depdepl}"
29138- linker_flags="$linker_flags -dylib_file ${darwin_install_name}:${depdepl}"
29139+ func_append compiler_flags " ${wl}-dylib_file ${wl}${darwin_install_name}:${depdepl}"
29140+ func_append linker_flags " -dylib_file ${darwin_install_name}:${depdepl}"
29141 path=
29142 fi
29143 fi
29144@@ -6152,7 +7070,7 @@ func_mode_link ()
29145 ;;
29146 esac
29147 else
29148- libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
29149+ eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
29150 test -z "$libdir" && \
29151 func_fatal_error "\`$deplib' is not a valid libtool archive"
29152 test "$absdir" != "$libdir" && \
29153@@ -6192,7 +7110,7 @@ func_mode_link ()
29154 for dir in $newlib_search_path; do
29155 case "$lib_search_path " in
29156 *" $dir "*) ;;
29157- *) lib_search_path="$lib_search_path $dir" ;;
29158+ *) func_append lib_search_path " $dir" ;;
29159 esac
29160 done
29161 newlib_search_path=
29162@@ -6205,7 +7123,7 @@ func_mode_link ()
29163 fi
29164 for var in $vars dependency_libs; do
29165 # Add libraries to $var in reverse order
29166- eval tmp_libs=\$$var
29167+ eval tmp_libs=\"\$$var\"
29168 new_libs=
29169 for deplib in $tmp_libs; do
29170 # FIXME: Pedantically, this is the right thing to do, so
29171@@ -6250,13 +7168,13 @@ func_mode_link ()
29172 -L*)
29173 case " $tmp_libs " in
29174 *" $deplib "*) ;;
29175- *) tmp_libs="$tmp_libs $deplib" ;;
29176+ *) func_append tmp_libs " $deplib" ;;
29177 esac
29178 ;;
29179- *) tmp_libs="$tmp_libs $deplib" ;;
29180+ *) func_append tmp_libs " $deplib" ;;
29181 esac
29182 done
29183- eval $var=\$tmp_libs
29184+ eval $var=\"$tmp_libs\"
29185 done # for var
29186 fi
29187 # Last step: remove runtime libs from dependency_libs
29188@@ -6269,7 +7187,7 @@ func_mode_link ()
29189 ;;
29190 esac
29191 if test -n "$i" ; then
29192- tmp_libs="$tmp_libs $i"
29193+ func_append tmp_libs " $i"
29194 fi
29195 done
29196 dependency_libs=$tmp_libs
29197@@ -6310,7 +7228,7 @@ func_mode_link ()
29198 # Now set the variables for building old libraries.
29199 build_libtool_libs=no
29200 oldlibs="$output"
29201- objs="$objs$old_deplibs"
29202+ func_append objs "$old_deplibs"
29203 ;;
29204
29205 lib)
29206@@ -6319,8 +7237,8 @@ func_mode_link ()
29207 lib*)
29208 func_stripname 'lib' '.la' "$outputname"
29209 name=$func_stripname_result
29210- eval "shared_ext=\"$shrext_cmds\""
29211- eval "libname=\"$libname_spec\""
29212+ eval shared_ext=\"$shrext_cmds\"
29213+ eval libname=\"$libname_spec\"
29214 ;;
29215 *)
29216 test "$module" = no && \
29217@@ -6330,8 +7248,8 @@ func_mode_link ()
29218 # Add the "lib" prefix for modules if required
29219 func_stripname '' '.la' "$outputname"
29220 name=$func_stripname_result
29221- eval "shared_ext=\"$shrext_cmds\""
29222- eval "libname=\"$libname_spec\""
29223+ eval shared_ext=\"$shrext_cmds\"
29224+ eval libname=\"$libname_spec\"
29225 else
29226 func_stripname '' '.la' "$outputname"
29227 libname=$func_stripname_result
29228@@ -6346,7 +7264,7 @@ func_mode_link ()
29229 echo
29230 $ECHO "*** Warning: Linking the shared library $output against the non-libtool"
29231 $ECHO "*** objects $objs is not portable!"
29232- libobjs="$libobjs $objs"
29233+ func_append libobjs " $objs"
29234 fi
29235 fi
29236
29237@@ -6544,7 +7462,7 @@ func_mode_link ()
29238 done
29239
29240 # Make executables depend on our current version.
29241- verstring="$verstring:${current}.0"
29242+ func_append verstring ":${current}.0"
29243 ;;
29244
29245 qnx)
29246@@ -6612,10 +7530,10 @@ func_mode_link ()
29247 fi
29248
29249 func_generate_dlsyms "$libname" "$libname" "yes"
29250- libobjs="$libobjs $symfileobj"
29251+ func_append libobjs " $symfileobj"
29252 test "X$libobjs" = "X " && libobjs=
29253
29254- if test "$mode" != relink; then
29255+ if test "$opt_mode" != relink; then
29256 # Remove our outputs, but don't remove object files since they
29257 # may have been created when compiling PIC objects.
29258 removelist=
29259@@ -6631,7 +7549,7 @@ func_mode_link ()
29260 continue
29261 fi
29262 fi
29263- removelist="$removelist $p"
29264+ func_append removelist " $p"
29265 ;;
29266 *) ;;
29267 esac
29268@@ -6642,7 +7560,7 @@ func_mode_link ()
29269
29270 # Now set the variables for building old libraries.
29271 if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then
29272- oldlibs="$oldlibs $output_objdir/$libname.$libext"
29273+ func_append oldlibs " $output_objdir/$libname.$libext"
29274
29275 # Transform .lo files to .o files.
29276 oldobjs="$objs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.${libext}$/d; $lo2o" | $NL2SP`
29277@@ -6659,10 +7577,11 @@ func_mode_link ()
29278 # If the user specified any rpath flags, then add them.
29279 temp_xrpath=
29280 for libdir in $xrpath; do
29281- temp_xrpath="$temp_xrpath -R$libdir"
29282+ func_replace_sysroot "$libdir"
29283+ func_append temp_xrpath " -R$func_replace_sysroot_result"
29284 case "$finalize_rpath " in
29285 *" $libdir "*) ;;
29286- *) finalize_rpath="$finalize_rpath $libdir" ;;
29287+ *) func_append finalize_rpath " $libdir" ;;
29288 esac
29289 done
29290 if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then
29291@@ -6676,7 +7595,7 @@ func_mode_link ()
29292 for lib in $old_dlfiles; do
29293 case " $dlprefiles $dlfiles " in
29294 *" $lib "*) ;;
29295- *) dlfiles="$dlfiles $lib" ;;
29296+ *) func_append dlfiles " $lib" ;;
29297 esac
29298 done
29299
29300@@ -6686,7 +7605,7 @@ func_mode_link ()
29301 for lib in $old_dlprefiles; do
29302 case "$dlprefiles " in
29303 *" $lib "*) ;;
29304- *) dlprefiles="$dlprefiles $lib" ;;
29305+ *) func_append dlprefiles " $lib" ;;
29306 esac
29307 done
29308
29309@@ -6698,7 +7617,7 @@ func_mode_link ()
29310 ;;
29311 *-*-rhapsody* | *-*-darwin1.[012])
29312 # Rhapsody C library is in the System framework
29313- deplibs="$deplibs System.ltframework"
29314+ func_append deplibs " System.ltframework"
29315 ;;
29316 *-*-netbsd*)
29317 # Don't link with libc until the a.out ld.so is fixed.
29318@@ -6715,7 +7634,7 @@ func_mode_link ()
29319 *)
29320 # Add libc to deplibs on all other systems if necessary.
29321 if test "$build_libtool_need_lc" = "yes"; then
29322- deplibs="$deplibs -lc"
29323+ func_append deplibs " -lc"
29324 fi
29325 ;;
29326 esac
29327@@ -6764,18 +7683,18 @@ EOF
29328 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
29329 case " $predeps $postdeps " in
29330 *" $i "*)
29331- newdeplibs="$newdeplibs $i"
29332+ func_append newdeplibs " $i"
29333 i=""
29334 ;;
29335 esac
29336 fi
29337 if test -n "$i" ; then
29338- eval "libname=\"$libname_spec\""
29339- eval "deplib_matches=\"$library_names_spec\""
29340+ libname=`eval "\\$ECHO \"$libname_spec\""`
29341+ deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
29342 set dummy $deplib_matches; shift
29343 deplib_match=$1
29344 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
29345- newdeplibs="$newdeplibs $i"
29346+ func_append newdeplibs " $i"
29347 else
29348 droppeddeps=yes
29349 echo
29350@@ -6789,7 +7708,7 @@ EOF
29351 fi
29352 ;;
29353 *)
29354- newdeplibs="$newdeplibs $i"
29355+ func_append newdeplibs " $i"
29356 ;;
29357 esac
29358 done
29359@@ -6807,18 +7726,18 @@ EOF
29360 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
29361 case " $predeps $postdeps " in
29362 *" $i "*)
29363- newdeplibs="$newdeplibs $i"
29364+ func_append newdeplibs " $i"
29365 i=""
29366 ;;
29367 esac
29368 fi
29369 if test -n "$i" ; then
29370- eval "libname=\"$libname_spec\""
29371- eval "deplib_matches=\"$library_names_spec\""
29372+ libname=`eval "\\$ECHO \"$libname_spec\""`
29373+ deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
29374 set dummy $deplib_matches; shift
29375 deplib_match=$1
29376 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
29377- newdeplibs="$newdeplibs $i"
29378+ func_append newdeplibs " $i"
29379 else
29380 droppeddeps=yes
29381 echo
29382@@ -6840,7 +7759,7 @@ EOF
29383 fi
29384 ;;
29385 *)
29386- newdeplibs="$newdeplibs $i"
29387+ func_append newdeplibs " $i"
29388 ;;
29389 esac
29390 done
29391@@ -6857,15 +7776,27 @@ EOF
29392 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
29393 case " $predeps $postdeps " in
29394 *" $a_deplib "*)
29395- newdeplibs="$newdeplibs $a_deplib"
29396+ func_append newdeplibs " $a_deplib"
29397 a_deplib=""
29398 ;;
29399 esac
29400 fi
29401 if test -n "$a_deplib" ; then
29402- eval "libname=\"$libname_spec\""
29403+ libname=`eval "\\$ECHO \"$libname_spec\""`
29404+ if test -n "$file_magic_glob"; then
29405+ libnameglob=`func_echo_all "$libname" | $SED -e $file_magic_glob`
29406+ else
29407+ libnameglob=$libname
29408+ fi
29409+ test "$want_nocaseglob" = yes && nocaseglob=`shopt -p nocaseglob`
29410 for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
29411- potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
29412+ if test "$want_nocaseglob" = yes; then
29413+ shopt -s nocaseglob
29414+ potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null`
29415+ $nocaseglob
29416+ else
29417+ potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null`
29418+ fi
29419 for potent_lib in $potential_libs; do
29420 # Follow soft links.
29421 if ls -lLd "$potent_lib" 2>/dev/null |
29422@@ -6885,10 +7816,10 @@ EOF
29423 *) potlib=`$ECHO "$potlib" | $SED 's,[^/]*$,,'`"$potliblink";;
29424 esac
29425 done
29426- if eval "$file_magic_cmd \"\$potlib\"" 2>/dev/null |
29427+ if eval $file_magic_cmd \"\$potlib\" 2>/dev/null |
29428 $SED -e 10q |
29429 $EGREP "$file_magic_regex" > /dev/null; then
29430- newdeplibs="$newdeplibs $a_deplib"
29431+ func_append newdeplibs " $a_deplib"
29432 a_deplib=""
29433 break 2
29434 fi
29435@@ -6913,7 +7844,7 @@ EOF
29436 ;;
29437 *)
29438 # Add a -L argument.
29439- newdeplibs="$newdeplibs $a_deplib"
29440+ func_append newdeplibs " $a_deplib"
29441 ;;
29442 esac
29443 done # Gone through all deplibs.
29444@@ -6929,20 +7860,20 @@ EOF
29445 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
29446 case " $predeps $postdeps " in
29447 *" $a_deplib "*)
29448- newdeplibs="$newdeplibs $a_deplib"
29449+ func_append newdeplibs " $a_deplib"
29450 a_deplib=""
29451 ;;
29452 esac
29453 fi
29454 if test -n "$a_deplib" ; then
29455- eval "libname=\"$libname_spec\""
29456+ libname=`eval "\\$ECHO \"$libname_spec\""`
29457 for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
29458 potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
29459 for potent_lib in $potential_libs; do
29460 potlib="$potent_lib" # see symlink-check above in file_magic test
29461 if eval "\$ECHO \"$potent_lib\"" 2>/dev/null | $SED 10q | \
29462 $EGREP "$match_pattern_regex" > /dev/null; then
29463- newdeplibs="$newdeplibs $a_deplib"
29464+ func_append newdeplibs " $a_deplib"
29465 a_deplib=""
29466 break 2
29467 fi
29468@@ -6967,7 +7898,7 @@ EOF
29469 ;;
29470 *)
29471 # Add a -L argument.
29472- newdeplibs="$newdeplibs $a_deplib"
29473+ func_append newdeplibs " $a_deplib"
29474 ;;
29475 esac
29476 done # Gone through all deplibs.
29477@@ -7071,7 +8002,7 @@ EOF
29478 *)
29479 case " $deplibs " in
29480 *" -L$path/$objdir "*)
29481- new_libs="$new_libs -L$path/$objdir" ;;
29482+ func_append new_libs " -L$path/$objdir" ;;
29483 esac
29484 ;;
29485 esac
29486@@ -7081,10 +8012,10 @@ EOF
29487 -L*)
29488 case " $new_libs " in
29489 *" $deplib "*) ;;
29490- *) new_libs="$new_libs $deplib" ;;
29491+ *) func_append new_libs " $deplib" ;;
29492 esac
29493 ;;
29494- *) new_libs="$new_libs $deplib" ;;
29495+ *) func_append new_libs " $deplib" ;;
29496 esac
29497 done
29498 deplibs="$new_libs"
29499@@ -7101,10 +8032,12 @@ EOF
29500 hardcode_libdirs=
29501 dep_rpath=
29502 rpath="$finalize_rpath"
29503- test "$mode" != relink && rpath="$compile_rpath$rpath"
29504+ test "$opt_mode" != relink && rpath="$compile_rpath$rpath"
29505 for libdir in $rpath; do
29506 if test -n "$hardcode_libdir_flag_spec"; then
29507 if test -n "$hardcode_libdir_separator"; then
29508+ func_replace_sysroot "$libdir"
29509+ libdir=$func_replace_sysroot_result
29510 if test -z "$hardcode_libdirs"; then
29511 hardcode_libdirs="$libdir"
29512 else
29513@@ -7113,18 +8046,18 @@ EOF
29514 *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
29515 ;;
29516 *)
29517- hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
29518+ func_append hardcode_libdirs "$hardcode_libdir_separator$libdir"
29519 ;;
29520 esac
29521 fi
29522 else
29523- eval "flag=\"$hardcode_libdir_flag_spec\""
29524- dep_rpath="$dep_rpath $flag"
29525+ eval flag=\"$hardcode_libdir_flag_spec\"
29526+ func_append dep_rpath " $flag"
29527 fi
29528 elif test -n "$runpath_var"; then
29529 case "$perm_rpath " in
29530 *" $libdir "*) ;;
29531- *) perm_rpath="$perm_rpath $libdir" ;;
29532+ *) func_apped perm_rpath " $libdir" ;;
29533 esac
29534 fi
29535 done
29536@@ -7133,40 +8066,38 @@ EOF
29537 test -n "$hardcode_libdirs"; then
29538 libdir="$hardcode_libdirs"
29539 if test -n "$hardcode_libdir_flag_spec_ld"; then
29540- eval "dep_rpath=\"$hardcode_libdir_flag_spec_ld\""
29541+ eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\"
29542 else
29543- eval "dep_rpath=\"$hardcode_libdir_flag_spec\""
29544+ eval dep_rpath=\"$hardcode_libdir_flag_spec\"
29545 fi
29546 fi
29547 if test -n "$runpath_var" && test -n "$perm_rpath"; then
29548 # We should set the runpath_var.
29549 rpath=
29550 for dir in $perm_rpath; do
29551- rpath="$rpath$dir:"
29552+ func_append rpath "$dir:"
29553 done
29554- eval $runpath_var=\$rpath\$$runpath_var
29555- export $runpath_var
29556+ eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var"
29557 fi
29558 test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs"
29559 fi
29560
29561 shlibpath="$finalize_shlibpath"
29562- test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
29563+ test "$opt_mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
29564 if test -n "$shlibpath"; then
29565- eval $shlibpath_var=\$shlibpath\$$shlibpath_var
29566- export $shlibpath_var
29567+ eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var"
29568 fi
29569
29570 # Get the real and link names of the library.
29571- eval "shared_ext=\"$shrext_cmds\""
29572- eval "library_names=\"$library_names_spec\""
29573+ eval shared_ext=\"$shrext_cmds\"
29574+ eval library_names=\"$library_names_spec\"
29575 set dummy $library_names
29576 shift
29577 realname="$1"
29578 shift
29579
29580 if test -n "$soname_spec"; then
29581- eval "soname=\"$soname_spec\""
29582+ eval soname=\"$soname_spec\"
29583 else
29584 soname="$realname"
29585 fi
29586@@ -7178,7 +8109,7 @@ EOF
29587 linknames=
29588 for link
29589 do
29590- linknames="$linknames $link"
29591+ func_append linknames " $link"
29592 done
29593
29594 # Use standard objects if they are pic
29595@@ -7189,7 +8120,7 @@ EOF
29596 if test -n "$export_symbols" && test -n "$include_expsyms"; then
29597 $opt_dry_run || cp "$export_symbols" "$output_objdir/$libname.uexp"
29598 export_symbols="$output_objdir/$libname.uexp"
29599- delfiles="$delfiles $export_symbols"
29600+ func_append delfiles " $export_symbols"
29601 fi
29602
29603 orig_export_symbols=
29604@@ -7220,13 +8151,45 @@ EOF
29605 $opt_dry_run || $RM $export_symbols
29606 cmds=$export_symbols_cmds
29607 save_ifs="$IFS"; IFS='~'
29608- for cmd in $cmds; do
29609+ for cmd1 in $cmds; do
29610 IFS="$save_ifs"
29611- eval "cmd=\"$cmd\""
29612- func_len " $cmd"
29613- len=$func_len_result
29614- if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
29615+ # Take the normal branch if the nm_file_list_spec branch
29616+ # doesn't work or if tool conversion is not needed.
29617+ case $nm_file_list_spec~$to_tool_file_cmd in
29618+ *~func_convert_file_noop | *~func_convert_file_msys_to_w32 | ~*)
29619+ try_normal_branch=yes
29620+ eval cmd=\"$cmd1\"
29621+ func_len " $cmd"
29622+ len=$func_len_result
29623+ ;;
29624+ *)
29625+ try_normal_branch=no
29626+ ;;
29627+ esac
29628+ if test "$try_normal_branch" = yes \
29629+ && { test "$len" -lt "$max_cmd_len" \
29630+ || test "$max_cmd_len" -le -1; }
29631+ then
29632+ func_show_eval "$cmd" 'exit $?'
29633+ skipped_export=false
29634+ elif test -n "$nm_file_list_spec"; then
29635+ func_basename "$output"
29636+ output_la=$func_basename_result
29637+ save_libobjs=$libobjs
29638+ save_output=$output
29639+ output=${output_objdir}/${output_la}.nm
29640+ func_to_tool_file "$output"
29641+ libobjs=$nm_file_list_spec$func_to_tool_file_result
29642+ func_append delfiles " $output"
29643+ func_verbose "creating $NM input file list: $output"
29644+ for obj in $save_libobjs; do
29645+ func_to_tool_file "$obj"
29646+ $ECHO "$func_to_tool_file_result"
29647+ done > "$output"
29648+ eval cmd=\"$cmd1\"
29649 func_show_eval "$cmd" 'exit $?'
29650+ output=$save_output
29651+ libobjs=$save_libobjs
29652 skipped_export=false
29653 else
29654 # The command line is too long to execute in one step.
29655@@ -7248,7 +8211,7 @@ EOF
29656 if test -n "$export_symbols" && test -n "$include_expsyms"; then
29657 tmp_export_symbols="$export_symbols"
29658 test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
29659- $opt_dry_run || $ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"
29660+ $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"'
29661 fi
29662
29663 if test "X$skipped_export" != "X:" && test -n "$orig_export_symbols"; then
29664@@ -7260,7 +8223,7 @@ EOF
29665 # global variables. join(1) would be nice here, but unfortunately
29666 # isn't a blessed tool.
29667 $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
29668- delfiles="$delfiles $export_symbols $output_objdir/$libname.filter"
29669+ func_append delfiles " $export_symbols $output_objdir/$libname.filter"
29670 export_symbols=$output_objdir/$libname.def
29671 $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
29672 fi
29673@@ -7270,7 +8233,7 @@ EOF
29674 case " $convenience " in
29675 *" $test_deplib "*) ;;
29676 *)
29677- tmp_deplibs="$tmp_deplibs $test_deplib"
29678+ func_append tmp_deplibs " $test_deplib"
29679 ;;
29680 esac
29681 done
29682@@ -7286,43 +8249,43 @@ EOF
29683 fi
29684 if test -n "$whole_archive_flag_spec"; then
29685 save_libobjs=$libobjs
29686- eval "libobjs=\"\$libobjs $whole_archive_flag_spec\""
29687+ eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
29688 test "X$libobjs" = "X " && libobjs=
29689 else
29690 gentop="$output_objdir/${outputname}x"
29691- generated="$generated $gentop"
29692+ func_append generated " $gentop"
29693
29694 func_extract_archives $gentop $convenience
29695- libobjs="$libobjs $func_extract_archives_result"
29696+ func_append libobjs " $func_extract_archives_result"
29697 test "X$libobjs" = "X " && libobjs=
29698 fi
29699 fi
29700
29701 if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
29702- eval "flag=\"$thread_safe_flag_spec\""
29703- linker_flags="$linker_flags $flag"
29704+ eval flag=\"$thread_safe_flag_spec\"
29705+ func_append linker_flags " $flag"
29706 fi
29707
29708 # Make a backup of the uninstalled library when relinking
29709- if test "$mode" = relink; then
29710- $opt_dry_run || (cd $output_objdir && $RM ${realname}U && $MV $realname ${realname}U) || exit $?
29711+ if test "$opt_mode" = relink; then
29712+ $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}U && $MV $realname ${realname}U)' || exit $?
29713 fi
29714
29715 # Do each of the archive commands.
29716 if test "$module" = yes && test -n "$module_cmds" ; then
29717 if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
29718- eval "test_cmds=\"$module_expsym_cmds\""
29719+ eval test_cmds=\"$module_expsym_cmds\"
29720 cmds=$module_expsym_cmds
29721 else
29722- eval "test_cmds=\"$module_cmds\""
29723+ eval test_cmds=\"$module_cmds\"
29724 cmds=$module_cmds
29725 fi
29726 else
29727 if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
29728- eval "test_cmds=\"$archive_expsym_cmds\""
29729+ eval test_cmds=\"$archive_expsym_cmds\"
29730 cmds=$archive_expsym_cmds
29731 else
29732- eval "test_cmds=\"$archive_cmds\""
29733+ eval test_cmds=\"$archive_cmds\"
29734 cmds=$archive_cmds
29735 fi
29736 fi
29737@@ -7366,10 +8329,13 @@ EOF
29738 echo 'INPUT (' > $output
29739 for obj in $save_libobjs
29740 do
29741- $ECHO "$obj" >> $output
29742+ func_to_tool_file "$obj"
29743+ $ECHO "$func_to_tool_file_result" >> $output
29744 done
29745 echo ')' >> $output
29746- delfiles="$delfiles $output"
29747+ func_append delfiles " $output"
29748+ func_to_tool_file "$output"
29749+ output=$func_to_tool_file_result
29750 elif test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "X$file_list_spec" != X; then
29751 output=${output_objdir}/${output_la}.lnk
29752 func_verbose "creating linker input file list: $output"
29753@@ -7383,15 +8349,17 @@ EOF
29754 fi
29755 for obj
29756 do
29757- $ECHO "$obj" >> $output
29758+ func_to_tool_file "$obj"
29759+ $ECHO "$func_to_tool_file_result" >> $output
29760 done
29761- delfiles="$delfiles $output"
29762- output=$firstobj\"$file_list_spec$output\"
29763+ func_append delfiles " $output"
29764+ func_to_tool_file "$output"
29765+ output=$firstobj\"$file_list_spec$func_to_tool_file_result\"
29766 else
29767 if test -n "$save_libobjs"; then
29768 func_verbose "creating reloadable object files..."
29769 output=$output_objdir/$output_la-${k}.$objext
29770- eval "test_cmds=\"$reload_cmds\""
29771+ eval test_cmds=\"$reload_cmds\"
29772 func_len " $test_cmds"
29773 len0=$func_len_result
29774 len=$len0
29775@@ -7411,12 +8379,12 @@ EOF
29776 if test "$k" -eq 1 ; then
29777 # The first file doesn't have a previous command to add.
29778 reload_objs=$objlist
29779- eval "concat_cmds=\"$reload_cmds\""
29780+ eval concat_cmds=\"$reload_cmds\"
29781 else
29782 # All subsequent reloadable object files will link in
29783 # the last one created.
29784 reload_objs="$objlist $last_robj"
29785- eval "concat_cmds=\"\$concat_cmds~$reload_cmds~\$RM $last_robj\""
29786+ eval concat_cmds=\"\$concat_cmds~$reload_cmds~\$RM $last_robj\"
29787 fi
29788 last_robj=$output_objdir/$output_la-${k}.$objext
29789 func_arith $k + 1
29790@@ -7433,11 +8401,11 @@ EOF
29791 # files will link in the last one created.
29792 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
29793 reload_objs="$objlist $last_robj"
29794- eval "concat_cmds=\"\${concat_cmds}$reload_cmds\""
29795+ eval concat_cmds=\"\${concat_cmds}$reload_cmds\"
29796 if test -n "$last_robj"; then
29797- eval "concat_cmds=\"\${concat_cmds}~\$RM $last_robj\""
29798+ eval concat_cmds=\"\${concat_cmds}~\$RM $last_robj\"
29799 fi
29800- delfiles="$delfiles $output"
29801+ func_append delfiles " $output"
29802
29803 else
29804 output=
29805@@ -7450,9 +8418,9 @@ EOF
29806 libobjs=$output
29807 # Append the command to create the export file.
29808 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
29809- eval "concat_cmds=\"\$concat_cmds$export_symbols_cmds\""
29810+ eval concat_cmds=\"\$concat_cmds$export_symbols_cmds\"
29811 if test -n "$last_robj"; then
29812- eval "concat_cmds=\"\$concat_cmds~\$RM $last_robj\""
29813+ eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\"
29814 fi
29815 fi
29816
29817@@ -7471,7 +8439,7 @@ EOF
29818 lt_exit=$?
29819
29820 # Restore the uninstalled library and exit
29821- if test "$mode" = relink; then
29822+ if test "$opt_mode" = relink; then
29823 ( cd "$output_objdir" && \
29824 $RM "${realname}T" && \
29825 $MV "${realname}U" "$realname" )
29826@@ -7492,7 +8460,7 @@ EOF
29827 if test -n "$export_symbols" && test -n "$include_expsyms"; then
29828 tmp_export_symbols="$export_symbols"
29829 test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
29830- $opt_dry_run || $ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"
29831+ $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"'
29832 fi
29833
29834 if test -n "$orig_export_symbols"; then
29835@@ -7504,7 +8472,7 @@ EOF
29836 # global variables. join(1) would be nice here, but unfortunately
29837 # isn't a blessed tool.
29838 $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
29839- delfiles="$delfiles $export_symbols $output_objdir/$libname.filter"
29840+ func_append delfiles " $export_symbols $output_objdir/$libname.filter"
29841 export_symbols=$output_objdir/$libname.def
29842 $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
29843 fi
29844@@ -7515,7 +8483,7 @@ EOF
29845 output=$save_output
29846
29847 if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then
29848- eval "libobjs=\"\$libobjs $whole_archive_flag_spec\""
29849+ eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
29850 test "X$libobjs" = "X " && libobjs=
29851 fi
29852 # Expand the library linking commands again to reset the
29853@@ -7539,23 +8507,23 @@ EOF
29854
29855 if test -n "$delfiles"; then
29856 # Append the command to remove temporary files to $cmds.
29857- eval "cmds=\"\$cmds~\$RM $delfiles\""
29858+ eval cmds=\"\$cmds~\$RM $delfiles\"
29859 fi
29860
29861 # Add any objects from preloaded convenience libraries
29862 if test -n "$dlprefiles"; then
29863 gentop="$output_objdir/${outputname}x"
29864- generated="$generated $gentop"
29865+ func_append generated " $gentop"
29866
29867 func_extract_archives $gentop $dlprefiles
29868- libobjs="$libobjs $func_extract_archives_result"
29869+ func_append libobjs " $func_extract_archives_result"
29870 test "X$libobjs" = "X " && libobjs=
29871 fi
29872
29873 save_ifs="$IFS"; IFS='~'
29874 for cmd in $cmds; do
29875 IFS="$save_ifs"
29876- eval "cmd=\"$cmd\""
29877+ eval cmd=\"$cmd\"
29878 $opt_silent || {
29879 func_quote_for_expand "$cmd"
29880 eval "func_echo $func_quote_for_expand_result"
29881@@ -7564,7 +8532,7 @@ EOF
29882 lt_exit=$?
29883
29884 # Restore the uninstalled library and exit
29885- if test "$mode" = relink; then
29886+ if test "$opt_mode" = relink; then
29887 ( cd "$output_objdir" && \
29888 $RM "${realname}T" && \
29889 $MV "${realname}U" "$realname" )
29890@@ -7576,8 +8544,8 @@ EOF
29891 IFS="$save_ifs"
29892
29893 # Restore the uninstalled library and exit
29894- if test "$mode" = relink; then
29895- $opt_dry_run || (cd $output_objdir && $RM ${realname}T && $MV $realname ${realname}T && $MV ${realname}U $realname) || exit $?
29896+ if test "$opt_mode" = relink; then
29897+ $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}T && $MV $realname ${realname}T && $MV ${realname}U $realname)' || exit $?
29898
29899 if test -n "$convenience"; then
29900 if test -z "$whole_archive_flag_spec"; then
29901@@ -7656,17 +8624,20 @@ EOF
29902
29903 if test -n "$convenience"; then
29904 if test -n "$whole_archive_flag_spec"; then
29905- eval "tmp_whole_archive_flags=\"$whole_archive_flag_spec\""
29906+ eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\"
29907 reload_conv_objs=$reload_objs\ `$ECHO "$tmp_whole_archive_flags" | $SED 's|,| |g'`
29908 else
29909 gentop="$output_objdir/${obj}x"
29910- generated="$generated $gentop"
29911+ func_append generated " $gentop"
29912
29913 func_extract_archives $gentop $convenience
29914 reload_conv_objs="$reload_objs $func_extract_archives_result"
29915 fi
29916 fi
29917
29918+ # If we're not building shared, we need to use non_pic_objs
29919+ test "$build_libtool_libs" != yes && libobjs="$non_pic_objects"
29920+
29921 # Create the old-style object.
29922 reload_objs="$objs$old_deplibs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.${libext}$/d; /\.lib$/d; $lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test
29923
29924@@ -7690,7 +8661,7 @@ EOF
29925 # Create an invalid libtool object if no PIC, so that we don't
29926 # accidentally link it into a program.
29927 # $show "echo timestamp > $libobj"
29928- # $opt_dry_run || echo timestamp > $libobj || exit $?
29929+ # $opt_dry_run || eval "echo timestamp > $libobj" || exit $?
29930 exit $EXIT_SUCCESS
29931 fi
29932
29933@@ -7740,8 +8711,8 @@ EOF
29934 if test "$tagname" = CXX ; then
29935 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
29936 10.[0123])
29937- compile_command="$compile_command ${wl}-bind_at_load"
29938- finalize_command="$finalize_command ${wl}-bind_at_load"
29939+ func_append compile_command " ${wl}-bind_at_load"
29940+ func_append finalize_command " ${wl}-bind_at_load"
29941 ;;
29942 esac
29943 fi
29944@@ -7761,7 +8732,7 @@ EOF
29945 *)
29946 case " $compile_deplibs " in
29947 *" -L$path/$objdir "*)
29948- new_libs="$new_libs -L$path/$objdir" ;;
29949+ func_append new_libs " -L$path/$objdir" ;;
29950 esac
29951 ;;
29952 esac
29953@@ -7771,17 +8742,17 @@ EOF
29954 -L*)
29955 case " $new_libs " in
29956 *" $deplib "*) ;;
29957- *) new_libs="$new_libs $deplib" ;;
29958+ *) func_append new_libs " $deplib" ;;
29959 esac
29960 ;;
29961- *) new_libs="$new_libs $deplib" ;;
29962+ *) func_append new_libs " $deplib" ;;
29963 esac
29964 done
29965 compile_deplibs="$new_libs"
29966
29967
29968- compile_command="$compile_command $compile_deplibs"
29969- finalize_command="$finalize_command $finalize_deplibs"
29970+ func_append compile_command " $compile_deplibs"
29971+ func_append finalize_command " $finalize_deplibs"
29972
29973 if test -n "$rpath$xrpath"; then
29974 # If the user specified any rpath flags, then add them.
29975@@ -7789,7 +8760,7 @@ EOF
29976 # This is the magic to use -rpath.
29977 case "$finalize_rpath " in
29978 *" $libdir "*) ;;
29979- *) finalize_rpath="$finalize_rpath $libdir" ;;
29980+ *) func_append finalize_rpath " $libdir" ;;
29981 esac
29982 done
29983 fi
29984@@ -7808,18 +8779,18 @@ EOF
29985 *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
29986 ;;
29987 *)
29988- hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
29989+ func_append hardcode_libdirs "$hardcode_libdir_separator$libdir"
29990 ;;
29991 esac
29992 fi
29993 else
29994- eval "flag=\"$hardcode_libdir_flag_spec\""
29995- rpath="$rpath $flag"
29996+ eval flag=\"$hardcode_libdir_flag_spec\"
29997+ func_append rpath " $flag"
29998 fi
29999 elif test -n "$runpath_var"; then
30000 case "$perm_rpath " in
30001 *" $libdir "*) ;;
30002- *) perm_rpath="$perm_rpath $libdir" ;;
30003+ *) func_append perm_rpath " $libdir" ;;
30004 esac
30005 fi
30006 case $host in
30007@@ -7828,12 +8799,12 @@ EOF
30008 case :$dllsearchpath: in
30009 *":$libdir:"*) ;;
30010 ::) dllsearchpath=$libdir;;
30011- *) dllsearchpath="$dllsearchpath:$libdir";;
30012+ *) func_append dllsearchpath ":$libdir";;
30013 esac
30014 case :$dllsearchpath: in
30015 *":$testbindir:"*) ;;
30016 ::) dllsearchpath=$testbindir;;
30017- *) dllsearchpath="$dllsearchpath:$testbindir";;
30018+ *) func_append dllsearchpath ":$testbindir";;
30019 esac
30020 ;;
30021 esac
30022@@ -7842,7 +8813,7 @@ EOF
30023 if test -n "$hardcode_libdir_separator" &&
30024 test -n "$hardcode_libdirs"; then
30025 libdir="$hardcode_libdirs"
30026- eval "rpath=\" $hardcode_libdir_flag_spec\""
30027+ eval rpath=\" $hardcode_libdir_flag_spec\"
30028 fi
30029 compile_rpath="$rpath"
30030
30031@@ -7859,18 +8830,18 @@ EOF
30032 *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
30033 ;;
30034 *)
30035- hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
30036+ func_append hardcode_libdirs "$hardcode_libdir_separator$libdir"
30037 ;;
30038 esac
30039 fi
30040 else
30041- eval "flag=\"$hardcode_libdir_flag_spec\""
30042- rpath="$rpath $flag"
30043+ eval flag=\"$hardcode_libdir_flag_spec\"
30044+ func_append rpath " $flag"
30045 fi
30046 elif test -n "$runpath_var"; then
30047 case "$finalize_perm_rpath " in
30048 *" $libdir "*) ;;
30049- *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;;
30050+ *) func_append finalize_perm_rpath " $libdir" ;;
30051 esac
30052 fi
30053 done
30054@@ -7878,7 +8849,7 @@ EOF
30055 if test -n "$hardcode_libdir_separator" &&
30056 test -n "$hardcode_libdirs"; then
30057 libdir="$hardcode_libdirs"
30058- eval "rpath=\" $hardcode_libdir_flag_spec\""
30059+ eval rpath=\" $hardcode_libdir_flag_spec\"
30060 fi
30061 finalize_rpath="$rpath"
30062
30063@@ -7921,6 +8892,12 @@ EOF
30064 exit_status=0
30065 func_show_eval "$link_command" 'exit_status=$?'
30066
30067+ if test -n "$postlink_cmds"; then
30068+ func_to_tool_file "$output"
30069+ postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'`
30070+ func_execute_cmds "$postlink_cmds" 'exit $?'
30071+ fi
30072+
30073 # Delete the generated files.
30074 if test -f "$output_objdir/${outputname}S.${objext}"; then
30075 func_show_eval '$RM "$output_objdir/${outputname}S.${objext}"'
30076@@ -7943,7 +8920,7 @@ EOF
30077 # We should set the runpath_var.
30078 rpath=
30079 for dir in $perm_rpath; do
30080- rpath="$rpath$dir:"
30081+ func_append rpath "$dir:"
30082 done
30083 compile_var="$runpath_var=\"$rpath\$$runpath_var\" "
30084 fi
30085@@ -7951,7 +8928,7 @@ EOF
30086 # We should set the runpath_var.
30087 rpath=
30088 for dir in $finalize_perm_rpath; do
30089- rpath="$rpath$dir:"
30090+ func_append rpath "$dir:"
30091 done
30092 finalize_var="$runpath_var=\"$rpath\$$runpath_var\" "
30093 fi
30094@@ -7966,6 +8943,13 @@ EOF
30095 $opt_dry_run || $RM $output
30096 # Link the executable and exit
30097 func_show_eval "$link_command" 'exit $?'
30098+
30099+ if test -n "$postlink_cmds"; then
30100+ func_to_tool_file "$output"
30101+ postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'`
30102+ func_execute_cmds "$postlink_cmds" 'exit $?'
30103+ fi
30104+
30105 exit $EXIT_SUCCESS
30106 fi
30107
30108@@ -7999,6 +8983,12 @@ EOF
30109
30110 func_show_eval "$link_command" 'exit $?'
30111
30112+ if test -n "$postlink_cmds"; then
30113+ func_to_tool_file "$output_objdir/$outputname"
30114+ postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'`
30115+ func_execute_cmds "$postlink_cmds" 'exit $?'
30116+ fi
30117+
30118 # Now create the wrapper script.
30119 func_verbose "creating $output"
30120
30121@@ -8096,7 +9086,7 @@ EOF
30122 else
30123 oldobjs="$old_deplibs $non_pic_objects"
30124 if test "$preload" = yes && test -f "$symfileobj"; then
30125- oldobjs="$oldobjs $symfileobj"
30126+ func_append oldobjs " $symfileobj"
30127 fi
30128 fi
30129 addlibs="$old_convenience"
30130@@ -8104,10 +9094,10 @@ EOF
30131
30132 if test -n "$addlibs"; then
30133 gentop="$output_objdir/${outputname}x"
30134- generated="$generated $gentop"
30135+ func_append generated " $gentop"
30136
30137 func_extract_archives $gentop $addlibs
30138- oldobjs="$oldobjs $func_extract_archives_result"
30139+ func_append oldobjs " $func_extract_archives_result"
30140 fi
30141
30142 # Do each command in the archive commands.
30143@@ -8118,10 +9108,10 @@ EOF
30144 # Add any objects from preloaded convenience libraries
30145 if test -n "$dlprefiles"; then
30146 gentop="$output_objdir/${outputname}x"
30147- generated="$generated $gentop"
30148+ func_append generated " $gentop"
30149
30150 func_extract_archives $gentop $dlprefiles
30151- oldobjs="$oldobjs $func_extract_archives_result"
30152+ func_append oldobjs " $func_extract_archives_result"
30153 fi
30154
30155 # POSIX demands no paths to be encoded in archives. We have
30156@@ -8139,7 +9129,7 @@ EOF
30157 else
30158 echo "copying selected object files to avoid basename conflicts..."
30159 gentop="$output_objdir/${outputname}x"
30160- generated="$generated $gentop"
30161+ func_append generated " $gentop"
30162 func_mkdir_p "$gentop"
30163 save_oldobjs=$oldobjs
30164 oldobjs=
30165@@ -8163,18 +9153,28 @@ EOF
30166 esac
30167 done
30168 func_show_eval "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj"
30169- oldobjs="$oldobjs $gentop/$newobj"
30170+ func_append oldobjs " $gentop/$newobj"
30171 ;;
30172- *) oldobjs="$oldobjs $obj" ;;
30173+ *) func_append oldobjs " $obj" ;;
30174 esac
30175 done
30176 fi
30177- eval "cmds=\"$old_archive_cmds\""
30178+ eval cmds=\"$old_archive_cmds\"
30179
30180 func_len " $cmds"
30181 len=$func_len_result
30182 if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
30183 cmds=$old_archive_cmds
30184+ elif test -n "$archiver_list_spec"; then
30185+ func_verbose "using command file archive linking..."
30186+ for obj in $oldobjs
30187+ do
30188+ func_to_tool_file "$obj"
30189+ $ECHO "$func_to_tool_file_result"
30190+ done > $output_objdir/$libname.libcmd
30191+ func_to_tool_file "$output_objdir/$libname.libcmd"
30192+ oldobjs=" $archiver_list_spec$func_to_tool_file_result"
30193+ cmds=$old_archive_cmds
30194 else
30195 # the command line is too long to link in one step, link in parts
30196 func_verbose "using piecewise archive linking..."
30197@@ -8189,7 +9189,7 @@ EOF
30198 do
30199 last_oldobj=$obj
30200 done
30201- eval "test_cmds=\"$old_archive_cmds\""
30202+ eval test_cmds=\"$old_archive_cmds\"
30203 func_len " $test_cmds"
30204 len0=$func_len_result
30205 len=$len0
30206@@ -8208,7 +9208,7 @@ EOF
30207 RANLIB=$save_RANLIB
30208 fi
30209 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
30210- eval "concat_cmds=\"\${concat_cmds}$old_archive_cmds\""
30211+ eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\"
30212 objlist=
30213 len=$len0
30214 fi
30215@@ -8216,9 +9216,9 @@ EOF
30216 RANLIB=$save_RANLIB
30217 oldobjs=$objlist
30218 if test "X$oldobjs" = "X" ; then
30219- eval "cmds=\"\$concat_cmds\""
30220+ eval cmds=\"\$concat_cmds\"
30221 else
30222- eval "cmds=\"\$concat_cmds~\$old_archive_cmds\""
30223+ eval cmds=\"\$concat_cmds~\$old_archive_cmds\"
30224 fi
30225 fi
30226 fi
30227@@ -8268,12 +9268,23 @@ EOF
30228 *.la)
30229 func_basename "$deplib"
30230 name="$func_basename_result"
30231- libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
30232+ func_resolve_sysroot "$deplib"
30233+ eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $func_resolve_sysroot_result`
30234 test -z "$libdir" && \
30235 func_fatal_error "\`$deplib' is not a valid libtool archive"
30236- newdependency_libs="$newdependency_libs $libdir/$name"
30237+ func_append newdependency_libs " ${lt_sysroot:+=}$libdir/$name"
30238+ ;;
30239+ -L*)
30240+ func_stripname -L '' "$deplib"
30241+ func_replace_sysroot "$func_stripname_result"
30242+ func_append newdependency_libs " -L$func_replace_sysroot_result"
30243 ;;
30244- *) newdependency_libs="$newdependency_libs $deplib" ;;
30245+ -R*)
30246+ func_stripname -R '' "$deplib"
30247+ func_replace_sysroot "$func_stripname_result"
30248+ func_append newdependency_libs " -R$func_replace_sysroot_result"
30249+ ;;
30250+ *) func_append newdependency_libs " $deplib" ;;
30251 esac
30252 done
30253 dependency_libs="$newdependency_libs"
30254@@ -8284,12 +9295,14 @@ EOF
30255 *.la)
30256 func_basename "$lib"
30257 name="$func_basename_result"
30258- libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
30259+ func_resolve_sysroot "$lib"
30260+ eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $func_resolve_sysroot_result`
30261+
30262 test -z "$libdir" && \
30263 func_fatal_error "\`$lib' is not a valid libtool archive"
30264- newdlfiles="$newdlfiles $libdir/$name"
30265+ func_append newdlfiles " ${lt_sysroot:+=}$libdir/$name"
30266 ;;
30267- *) newdlfiles="$newdlfiles $lib" ;;
30268+ *) func_append newdlfiles " $lib" ;;
30269 esac
30270 done
30271 dlfiles="$newdlfiles"
30272@@ -8303,10 +9316,11 @@ EOF
30273 # the library:
30274 func_basename "$lib"
30275 name="$func_basename_result"
30276- libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
30277+ func_resolve_sysroot "$lib"
30278+ eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $func_resolve_sysroot_result`
30279 test -z "$libdir" && \
30280 func_fatal_error "\`$lib' is not a valid libtool archive"
30281- newdlprefiles="$newdlprefiles $libdir/$name"
30282+ func_append newdlprefiles " ${lt_sysroot:+=}$libdir/$name"
30283 ;;
30284 esac
30285 done
30286@@ -8318,7 +9332,7 @@ EOF
30287 [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
30288 *) abs=`pwd`"/$lib" ;;
30289 esac
30290- newdlfiles="$newdlfiles $abs"
30291+ func_append newdlfiles " $abs"
30292 done
30293 dlfiles="$newdlfiles"
30294 newdlprefiles=
30295@@ -8327,7 +9341,7 @@ EOF
30296 [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
30297 *) abs=`pwd`"/$lib" ;;
30298 esac
30299- newdlprefiles="$newdlprefiles $abs"
30300+ func_append newdlprefiles " $abs"
30301 done
30302 dlprefiles="$newdlprefiles"
30303 fi
30304@@ -8412,7 +9426,7 @@ relink_command=\"$relink_command\""
30305 exit $EXIT_SUCCESS
30306 }
30307
30308-{ test "$mode" = link || test "$mode" = relink; } &&
30309+{ test "$opt_mode" = link || test "$opt_mode" = relink; } &&
30310 func_mode_link ${1+"$@"}
30311
30312
30313@@ -8432,9 +9446,9 @@ func_mode_uninstall ()
30314 for arg
30315 do
30316 case $arg in
30317- -f) RM="$RM $arg"; rmforce=yes ;;
30318- -*) RM="$RM $arg" ;;
30319- *) files="$files $arg" ;;
30320+ -f) func_append RM " $arg"; rmforce=yes ;;
30321+ -*) func_append RM " $arg" ;;
30322+ *) func_append files " $arg" ;;
30323 esac
30324 done
30325
30326@@ -8443,24 +9457,23 @@ func_mode_uninstall ()
30327
30328 rmdirs=
30329
30330- origobjdir="$objdir"
30331 for file in $files; do
30332 func_dirname "$file" "" "."
30333 dir="$func_dirname_result"
30334 if test "X$dir" = X.; then
30335- objdir="$origobjdir"
30336+ odir="$objdir"
30337 else
30338- objdir="$dir/$origobjdir"
30339+ odir="$dir/$objdir"
30340 fi
30341 func_basename "$file"
30342 name="$func_basename_result"
30343- test "$mode" = uninstall && objdir="$dir"
30344+ test "$opt_mode" = uninstall && odir="$dir"
30345
30346- # Remember objdir for removal later, being careful to avoid duplicates
30347- if test "$mode" = clean; then
30348+ # Remember odir for removal later, being careful to avoid duplicates
30349+ if test "$opt_mode" = clean; then
30350 case " $rmdirs " in
30351- *" $objdir "*) ;;
30352- *) rmdirs="$rmdirs $objdir" ;;
30353+ *" $odir "*) ;;
30354+ *) func_append rmdirs " $odir" ;;
30355 esac
30356 fi
30357
30358@@ -8486,18 +9499,17 @@ func_mode_uninstall ()
30359
30360 # Delete the libtool libraries and symlinks.
30361 for n in $library_names; do
30362- rmfiles="$rmfiles $objdir/$n"
30363+ func_append rmfiles " $odir/$n"
30364 done
30365- test -n "$old_library" && rmfiles="$rmfiles $objdir/$old_library"
30366+ test -n "$old_library" && func_append rmfiles " $odir/$old_library"
30367
30368- case "$mode" in
30369+ case "$opt_mode" in
30370 clean)
30371- case " $library_names " in
30372- # " " in the beginning catches empty $dlname
30373+ case " $library_names " in
30374 *" $dlname "*) ;;
30375- *) rmfiles="$rmfiles $objdir/$dlname" ;;
30376+ *) test -n "$dlname" && func_append rmfiles " $odir/$dlname" ;;
30377 esac
30378- test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
30379+ test -n "$libdir" && func_append rmfiles " $odir/$name $odir/${name}i"
30380 ;;
30381 uninstall)
30382 if test -n "$library_names"; then
30383@@ -8525,19 +9537,19 @@ func_mode_uninstall ()
30384 # Add PIC object to the list of files to remove.
30385 if test -n "$pic_object" &&
30386 test "$pic_object" != none; then
30387- rmfiles="$rmfiles $dir/$pic_object"
30388+ func_append rmfiles " $dir/$pic_object"
30389 fi
30390
30391 # Add non-PIC object to the list of files to remove.
30392 if test -n "$non_pic_object" &&
30393 test "$non_pic_object" != none; then
30394- rmfiles="$rmfiles $dir/$non_pic_object"
30395+ func_append rmfiles " $dir/$non_pic_object"
30396 fi
30397 fi
30398 ;;
30399
30400 *)
30401- if test "$mode" = clean ; then
30402+ if test "$opt_mode" = clean ; then
30403 noexename=$name
30404 case $file in
30405 *.exe)
30406@@ -8547,7 +9559,7 @@ func_mode_uninstall ()
30407 noexename=$func_stripname_result
30408 # $file with .exe has already been added to rmfiles,
30409 # add $file without .exe
30410- rmfiles="$rmfiles $file"
30411+ func_append rmfiles " $file"
30412 ;;
30413 esac
30414 # Do a test to see if this is a libtool program.
30415@@ -8556,7 +9568,7 @@ func_mode_uninstall ()
30416 func_ltwrapper_scriptname "$file"
30417 relink_command=
30418 func_source $func_ltwrapper_scriptname_result
30419- rmfiles="$rmfiles $func_ltwrapper_scriptname_result"
30420+ func_append rmfiles " $func_ltwrapper_scriptname_result"
30421 else
30422 relink_command=
30423 func_source $dir/$noexename
30424@@ -8564,12 +9576,12 @@ func_mode_uninstall ()
30425
30426 # note $name still contains .exe if it was in $file originally
30427 # as does the version of $file that was added into $rmfiles
30428- rmfiles="$rmfiles $objdir/$name $objdir/${name}S.${objext}"
30429+ func_append rmfiles " $odir/$name $odir/${name}S.${objext}"
30430 if test "$fast_install" = yes && test -n "$relink_command"; then
30431- rmfiles="$rmfiles $objdir/lt-$name"
30432+ func_append rmfiles " $odir/lt-$name"
30433 fi
30434 if test "X$noexename" != "X$name" ; then
30435- rmfiles="$rmfiles $objdir/lt-${noexename}.c"
30436+ func_append rmfiles " $odir/lt-${noexename}.c"
30437 fi
30438 fi
30439 fi
30440@@ -8577,7 +9589,6 @@ func_mode_uninstall ()
30441 esac
30442 func_show_eval "$RM $rmfiles" 'exit_status=1'
30443 done
30444- objdir="$origobjdir"
30445
30446 # Try to remove the ${objdir}s in the directories where we deleted files
30447 for dir in $rmdirs; do
30448@@ -8589,16 +9600,16 @@ func_mode_uninstall ()
30449 exit $exit_status
30450 }
30451
30452-{ test "$mode" = uninstall || test "$mode" = clean; } &&
30453+{ test "$opt_mode" = uninstall || test "$opt_mode" = clean; } &&
30454 func_mode_uninstall ${1+"$@"}
30455
30456-test -z "$mode" && {
30457+test -z "$opt_mode" && {
30458 help="$generic_help"
30459 func_fatal_help "you must specify a MODE"
30460 }
30461
30462 test -z "$exec_cmd" && \
30463- func_fatal_help "invalid operation mode \`$mode'"
30464+ func_fatal_help "invalid operation mode \`$opt_mode'"
30465
30466 if test -n "$exec_cmd"; then
30467 eval exec "$exec_cmd"
30468diff --git a/ltoptions.m4 b/ltoptions.m4
30469index 5ef12ced2a8..17cfd51c0b3 100644
30470--- a/ltoptions.m4
30471+++ b/ltoptions.m4
30472@@ -8,7 +8,7 @@
30473 # unlimited permission to copy and/or distribute it, with or without
30474 # modifications, as long as this notice is preserved.
30475
30476-# serial 6 ltoptions.m4
30477+# serial 7 ltoptions.m4
30478
30479 # This is to help aclocal find these macros, as it can't see m4_define.
30480 AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
30481diff --git a/ltversion.m4 b/ltversion.m4
30482index bf87f77132d..9c7b5d41185 100644
30483--- a/ltversion.m4
30484+++ b/ltversion.m4
30485@@ -7,17 +7,17 @@
30486 # unlimited permission to copy and/or distribute it, with or without
30487 # modifications, as long as this notice is preserved.
30488
30489-# Generated from ltversion.in.
30490+# @configure_input@
30491
30492-# serial 3134 ltversion.m4
30493+# serial 3293 ltversion.m4
30494 # This file is part of GNU Libtool
30495
30496-m4_define([LT_PACKAGE_VERSION], [2.2.7a])
30497-m4_define([LT_PACKAGE_REVISION], [1.3134])
30498+m4_define([LT_PACKAGE_VERSION], [2.4])
30499+m4_define([LT_PACKAGE_REVISION], [1.3293])
30500
30501 AC_DEFUN([LTVERSION_VERSION],
30502-[macro_version='2.2.7a'
30503-macro_revision='1.3134'
30504+[macro_version='2.4'
30505+macro_revision='1.3293'
30506 _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
30507 _LT_DECL(, macro_revision, 0)
30508 ])
30509diff --git a/lt~obsolete.m4 b/lt~obsolete.m4
30510index bf92b5e0790..c573da90c5c 100644
30511--- a/lt~obsolete.m4
30512+++ b/lt~obsolete.m4
30513@@ -7,7 +7,7 @@
30514 # unlimited permission to copy and/or distribute it, with or without
30515 # modifications, as long as this notice is preserved.
30516
30517-# serial 4 lt~obsolete.m4
30518+# serial 5 lt~obsolete.m4
30519
30520 # These exist entirely to fool aclocal when bootstrapping libtool.
30521 #
30522diff --git a/opcodes/Makefile.in b/opcodes/Makefile.in
30523index 245479140c9..bfed90449bf 100644
30524--- a/opcodes/Makefile.in
30525+++ b/opcodes/Makefile.in
30526@@ -298,6 +298,7 @@ CYGPATH_W = @CYGPATH_W@
30527 DATADIRNAME = @DATADIRNAME@
30528 DEFS = @DEFS@
30529 DEPDIR = @DEPDIR@
30530+DLLTOOL = @DLLTOOL@
30531 DSYMUTIL = @DSYMUTIL@
30532 DUMPBIN = @DUMPBIN@
30533 ECHO_C = @ECHO_C@
30534@@ -336,6 +337,7 @@ LTLIBINTL = @LTLIBINTL@
30535 LTLIBOBJS = @LTLIBOBJS@
30536 MAINT = @MAINT@
30537 MAKEINFO = @MAKEINFO@
30538+MANIFEST_TOOL = @MANIFEST_TOOL@
30539 MKDIR_P = @MKDIR_P@
30540 MKINSTALLDIRS = @MKINSTALLDIRS@
30541 MSGFMT = @MSGFMT@
30542@@ -374,6 +376,7 @@ abs_builddir = @abs_builddir@
30543 abs_srcdir = @abs_srcdir@
30544 abs_top_builddir = @abs_top_builddir@
30545 abs_top_srcdir = @abs_top_srcdir@
30546+ac_ct_AR = @ac_ct_AR@
30547 ac_ct_CC = @ac_ct_CC@
30548 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
30549 am__include = @am__include@
30550diff --git a/opcodes/configure b/opcodes/configure
30551index 1660c3266a3..a1b84ed81f9 100755
30552--- a/opcodes/configure
30553+++ b/opcodes/configure
30554@@ -688,6 +688,9 @@ OTOOL
30555 LIPO
30556 NMEDIT
30557 DSYMUTIL
30558+MANIFEST_TOOL
30559+ac_ct_AR
30560+DLLTOOL
30561 OBJDUMP
30562 LN_S
30563 NM
30564@@ -806,6 +809,7 @@ enable_static
30565 with_pic
30566 enable_fast_install
30567 with_gnu_ld
30568+with_libtool_sysroot
30569 enable_libtool_lock
30570 enable_checking
30571 enable_targets
30572@@ -1487,6 +1491,8 @@ Optional Packages:
30573 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
30574 --without-libintl-prefix don't search for libintl in includedir and libdir
30575 --with-libintl-type=TYPE type of library to search for (auto/static/shared)
30576+ --with-libtool-sysroot=DIR Search for dependent libraries within DIR
30577+ (or the compiler's sysroot if not specified).
30578
30579 Some influential environment variables:
30580 CC C compiler command
30581@@ -4997,8 +5003,8 @@ esac
30582
30583
30584
30585-macro_version='2.2.7a'
30586-macro_revision='1.3134'
30587+macro_version='2.4'
30588+macro_revision='1.3293'
30589
30590
30591
30592@@ -5038,7 +5044,7 @@ ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
30593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
30594 $as_echo_n "checking how to print strings... " >&6; }
30595 # Test print first, because it will be a builtin if present.
30596-if test "X`print -r -- -n 2>/dev/null`" = X-n && \
30597+if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
30598 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
30599 ECHO='print -r --'
30600 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
30601@@ -5731,8 +5737,8 @@ $as_echo_n "checking whether the shell understands some XSI constructs... " >&6;
30602 # Try some XSI features
30603 xsi_shell=no
30604 ( _lt_dummy="a/b/c"
30605- test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
30606- = c,a/b,, \
30607+ test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
30608+ = c,a/b,b/c, \
30609 && eval 'test $(( 1 + 1 )) -eq 2 \
30610 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
30611 && xsi_shell=yes
30612@@ -5781,6 +5787,80 @@ esac
30613
30614
30615
30616+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
30617+$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
30618+if ${lt_cv_to_host_file_cmd+:} false; then :
30619+ $as_echo_n "(cached) " >&6
30620+else
30621+ case $host in
30622+ *-*-mingw* )
30623+ case $build in
30624+ *-*-mingw* ) # actually msys
30625+ lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
30626+ ;;
30627+ *-*-cygwin* )
30628+ lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
30629+ ;;
30630+ * ) # otherwise, assume *nix
30631+ lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
30632+ ;;
30633+ esac
30634+ ;;
30635+ *-*-cygwin* )
30636+ case $build in
30637+ *-*-mingw* ) # actually msys
30638+ lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
30639+ ;;
30640+ *-*-cygwin* )
30641+ lt_cv_to_host_file_cmd=func_convert_file_noop
30642+ ;;
30643+ * ) # otherwise, assume *nix
30644+ lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
30645+ ;;
30646+ esac
30647+ ;;
30648+ * ) # unhandled hosts (and "normal" native builds)
30649+ lt_cv_to_host_file_cmd=func_convert_file_noop
30650+ ;;
30651+esac
30652+
30653+fi
30654+
30655+to_host_file_cmd=$lt_cv_to_host_file_cmd
30656+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
30657+$as_echo "$lt_cv_to_host_file_cmd" >&6; }
30658+
30659+
30660+
30661+
30662+
30663+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
30664+$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
30665+if ${lt_cv_to_tool_file_cmd+:} false; then :
30666+ $as_echo_n "(cached) " >&6
30667+else
30668+ #assume ordinary cross tools, or native build.
30669+lt_cv_to_tool_file_cmd=func_convert_file_noop
30670+case $host in
30671+ *-*-mingw* )
30672+ case $build in
30673+ *-*-mingw* ) # actually msys
30674+ lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
30675+ ;;
30676+ esac
30677+ ;;
30678+esac
30679+
30680+fi
30681+
30682+to_tool_file_cmd=$lt_cv_to_tool_file_cmd
30683+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
30684+$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
30685+
30686+
30687+
30688+
30689+
30690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
30691 $as_echo_n "checking for $LD option to reload object files... " >&6; }
30692 if ${lt_cv_ld_reload_flag+:} false; then :
30693@@ -5797,6 +5877,11 @@ case $reload_flag in
30694 esac
30695 reload_cmds='$LD$reload_flag -o $output$reload_objs'
30696 case $host_os in
30697+ cygwin* | mingw* | pw32* | cegcc*)
30698+ if test "$GCC" != yes; then
30699+ reload_cmds=false
30700+ fi
30701+ ;;
30702 darwin*)
30703 if test "$GCC" = yes; then
30704 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
30705@@ -5965,7 +6050,8 @@ mingw* | pw32*)
30706 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
30707 lt_cv_file_magic_cmd='func_win32_libid'
30708 else
30709- lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
30710+ # Keep this pattern in sync with the one in func_win32_libid.
30711+ lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
30712 lt_cv_file_magic_cmd='$OBJDUMP -f'
30713 fi
30714 ;;
30715@@ -6124,6 +6210,21 @@ esac
30716 fi
30717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
30718 $as_echo "$lt_cv_deplibs_check_method" >&6; }
30719+
30720+file_magic_glob=
30721+want_nocaseglob=no
30722+if test "$build" = "$host"; then
30723+ case $host_os in
30724+ mingw* | pw32*)
30725+ if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
30726+ want_nocaseglob=yes
30727+ else
30728+ file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
30729+ fi
30730+ ;;
30731+ esac
30732+fi
30733+
30734 file_magic_cmd=$lt_cv_file_magic_cmd
30735 deplibs_check_method=$lt_cv_deplibs_check_method
30736 test -z "$deplibs_check_method" && deplibs_check_method=unknown
30737@@ -6139,6 +6240,157 @@ test -z "$deplibs_check_method" && deplibs_check_method=unknown
30738
30739
30740
30741+
30742+
30743+
30744+
30745+
30746+
30747+
30748+
30749+
30750+
30751+if test -n "$ac_tool_prefix"; then
30752+ # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
30753+set dummy ${ac_tool_prefix}dlltool; ac_word=$2
30754+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30755+$as_echo_n "checking for $ac_word... " >&6; }
30756+if ${ac_cv_prog_DLLTOOL+:} false; then :
30757+ $as_echo_n "(cached) " >&6
30758+else
30759+ if test -n "$DLLTOOL"; then
30760+ ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
30761+else
30762+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30763+for as_dir in $PATH
30764+do
30765+ IFS=$as_save_IFS
30766+ test -z "$as_dir" && as_dir=.
30767+ for ac_exec_ext in '' $ac_executable_extensions; do
30768+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30769+ ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
30770+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30771+ break 2
30772+ fi
30773+done
30774+ done
30775+IFS=$as_save_IFS
30776+
30777+fi
30778+fi
30779+DLLTOOL=$ac_cv_prog_DLLTOOL
30780+if test -n "$DLLTOOL"; then
30781+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
30782+$as_echo "$DLLTOOL" >&6; }
30783+else
30784+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30785+$as_echo "no" >&6; }
30786+fi
30787+
30788+
30789+fi
30790+if test -z "$ac_cv_prog_DLLTOOL"; then
30791+ ac_ct_DLLTOOL=$DLLTOOL
30792+ # Extract the first word of "dlltool", so it can be a program name with args.
30793+set dummy dlltool; ac_word=$2
30794+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30795+$as_echo_n "checking for $ac_word... " >&6; }
30796+if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
30797+ $as_echo_n "(cached) " >&6
30798+else
30799+ if test -n "$ac_ct_DLLTOOL"; then
30800+ ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
30801+else
30802+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30803+for as_dir in $PATH
30804+do
30805+ IFS=$as_save_IFS
30806+ test -z "$as_dir" && as_dir=.
30807+ for ac_exec_ext in '' $ac_executable_extensions; do
30808+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30809+ ac_cv_prog_ac_ct_DLLTOOL="dlltool"
30810+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30811+ break 2
30812+ fi
30813+done
30814+ done
30815+IFS=$as_save_IFS
30816+
30817+fi
30818+fi
30819+ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
30820+if test -n "$ac_ct_DLLTOOL"; then
30821+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
30822+$as_echo "$ac_ct_DLLTOOL" >&6; }
30823+else
30824+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30825+$as_echo "no" >&6; }
30826+fi
30827+
30828+ if test "x$ac_ct_DLLTOOL" = x; then
30829+ DLLTOOL="false"
30830+ else
30831+ case $cross_compiling:$ac_tool_warned in
30832+yes:)
30833+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
30834+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
30835+ac_tool_warned=yes ;;
30836+esac
30837+ DLLTOOL=$ac_ct_DLLTOOL
30838+ fi
30839+else
30840+ DLLTOOL="$ac_cv_prog_DLLTOOL"
30841+fi
30842+
30843+test -z "$DLLTOOL" && DLLTOOL=dlltool
30844+
30845+
30846+
30847+
30848+
30849+
30850+
30851+
30852+
30853+
30854+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
30855+$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
30856+if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
30857+ $as_echo_n "(cached) " >&6
30858+else
30859+ lt_cv_sharedlib_from_linklib_cmd='unknown'
30860+
30861+case $host_os in
30862+cygwin* | mingw* | pw32* | cegcc*)
30863+ # two different shell functions defined in ltmain.sh
30864+ # decide which to use based on capabilities of $DLLTOOL
30865+ case `$DLLTOOL --help 2>&1` in
30866+ *--identify-strict*)
30867+ lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
30868+ ;;
30869+ *)
30870+ lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
30871+ ;;
30872+ esac
30873+ ;;
30874+*)
30875+ # fallback: assume linklib IS sharedlib
30876+ lt_cv_sharedlib_from_linklib_cmd="$ECHO"
30877+ ;;
30878+esac
30879+
30880+fi
30881+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
30882+$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
30883+sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
30884+test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
30885+
30886+
30887+
30888+
30889+
30890+
30891+
30892 plugin_option=
30893 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
30894 for plugin in $plugin_names; do
30895@@ -6153,8 +6405,10 @@ for plugin in $plugin_names; do
30896 done
30897
30898 if test -n "$ac_tool_prefix"; then
30899- # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
30900-set dummy ${ac_tool_prefix}ar; ac_word=$2
30901+ for ac_prog in ar
30902+ do
30903+ # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
30904+set dummy $ac_tool_prefix$ac_prog; ac_word=$2
30905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30906 $as_echo_n "checking for $ac_word... " >&6; }
30907 if ${ac_cv_prog_AR+:} false; then :
30908@@ -6170,7 +6424,7 @@ do
30909 test -z "$as_dir" && as_dir=.
30910 for ac_exec_ext in '' $ac_executable_extensions; do
30911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30912- ac_cv_prog_AR="${ac_tool_prefix}ar"
30913+ ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
30914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30915 break 2
30916 fi
30917@@ -6190,11 +6444,15 @@ $as_echo "no" >&6; }
30918 fi
30919
30920
30921+ test -n "$AR" && break
30922+ done
30923 fi
30924-if test -z "$ac_cv_prog_AR"; then
30925+if test -z "$AR"; then
30926 ac_ct_AR=$AR
30927- # Extract the first word of "ar", so it can be a program name with args.
30928-set dummy ar; ac_word=$2
30929+ for ac_prog in ar
30930+do
30931+ # Extract the first word of "$ac_prog", so it can be a program name with args.
30932+set dummy $ac_prog; ac_word=$2
30933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30934 $as_echo_n "checking for $ac_word... " >&6; }
30935 if ${ac_cv_prog_ac_ct_AR+:} false; then :
30936@@ -6210,7 +6468,7 @@ do
30937 test -z "$as_dir" && as_dir=.
30938 for ac_exec_ext in '' $ac_executable_extensions; do
30939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30940- ac_cv_prog_ac_ct_AR="ar"
30941+ ac_cv_prog_ac_ct_AR="$ac_prog"
30942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30943 break 2
30944 fi
30945@@ -6229,6 +6487,10 @@ else
30946 $as_echo "no" >&6; }
30947 fi
30948
30949+
30950+ test -n "$ac_ct_AR" && break
30951+done
30952+
30953 if test "x$ac_ct_AR" = x; then
30954 AR="false"
30955 else
30956@@ -6240,25 +6502,20 @@ ac_tool_warned=yes ;;
30957 esac
30958 AR=$ac_ct_AR
30959 fi
30960-else
30961- AR="$ac_cv_prog_AR"
30962 fi
30963
30964-test -z "$AR" && AR=ar
30965-if test -n "$plugin_option"; then
30966- if $AR --help 2>&1 | grep -q "\--plugin"; then
30967- touch conftest.c
30968- $AR $plugin_option rc conftest.a conftest.c
30969- if test "$?" != 0; then
30970- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
30971+ touch conftest.c
30972+ $AR $plugin_option rc conftest.a conftest.c
30973+ if test "$?" != 0; then
30974+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
30975 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
30976- else
30977- AR="$AR $plugin_option"
30978- fi
30979- rm -f conftest.*
30980+ else
30981+ AR="$AR $plugin_option"
30982 fi
30983-fi
30984-test -z "$AR_FLAGS" && AR_FLAGS=cru
30985+ rm -f conftest.*
30986+: ${AR=ar}
30987+: ${AR_FLAGS=cru}
30988+
30989
30990
30991
30992@@ -6269,6 +6526,63 @@ test -z "$AR_FLAGS" && AR_FLAGS=cru
30993
30994
30995
30996+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
30997+$as_echo_n "checking for archiver @FILE support... " >&6; }
30998+if ${lt_cv_ar_at_file+:} false; then :
30999+ $as_echo_n "(cached) " >&6
31000+else
31001+ lt_cv_ar_at_file=no
31002+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31003+/* end confdefs.h. */
31004+
31005+int
31006+main ()
31007+{
31008+
31009+ ;
31010+ return 0;
31011+}
31012+_ACEOF
31013+if ac_fn_c_try_compile "$LINENO"; then :
31014+ echo conftest.$ac_objext > conftest.lst
31015+ lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
31016+ { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
31017+ (eval $lt_ar_try) 2>&5
31018+ ac_status=$?
31019+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31020+ test $ac_status = 0; }
31021+ if test "$ac_status" -eq 0; then
31022+ # Ensure the archiver fails upon bogus file names.
31023+ rm -f conftest.$ac_objext libconftest.a
31024+ { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
31025+ (eval $lt_ar_try) 2>&5
31026+ ac_status=$?
31027+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31028+ test $ac_status = 0; }
31029+ if test "$ac_status" -ne 0; then
31030+ lt_cv_ar_at_file=@
31031+ fi
31032+ fi
31033+ rm -f conftest.* libconftest.a
31034+
31035+fi
31036+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31037+
31038+fi
31039+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
31040+$as_echo "$lt_cv_ar_at_file" >&6; }
31041+
31042+if test "x$lt_cv_ar_at_file" = xno; then
31043+ archiver_list_spec=
31044+else
31045+ archiver_list_spec=$lt_cv_ar_at_file
31046+fi
31047+
31048+
31049+
31050+
31051+
31052+
31053
31054 if test -n "$ac_tool_prefix"; then
31055 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
31056@@ -6609,8 +6923,8 @@ esac
31057 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
31058
31059 # Transform an extracted symbol line into symbol name and symbol address
31060-lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
31061-lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
31062+lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
31063+lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
31064
31065 # Handle CRLF in mingw tool chain
31066 opt_cr=
31067@@ -6646,6 +6960,7 @@ for ac_symprfx in "" "_"; do
31068 else
31069 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
31070 fi
31071+ lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
31072
31073 # Check to see that the pipe works correctly.
31074 pipe_works=no
31075@@ -6687,6 +7002,18 @@ _LT_EOF
31076 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
31077 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
31078 cat <<_LT_EOF > conftest.$ac_ext
31079+/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
31080+#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
31081+/* DATA imports from DLLs on WIN32 con't be const, because runtime
31082+ relocations are performed -- see ld's documentation on pseudo-relocs. */
31083+# define LT_DLSYM_CONST
31084+#elif defined(__osf__)
31085+/* This system does not cope well with relocations in const data. */
31086+# define LT_DLSYM_CONST
31087+#else
31088+# define LT_DLSYM_CONST const
31089+#endif
31090+
31091 #ifdef __cplusplus
31092 extern "C" {
31093 #endif
31094@@ -6698,7 +7025,7 @@ _LT_EOF
31095 cat <<_LT_EOF >> conftest.$ac_ext
31096
31097 /* The mapping between symbol names and symbols. */
31098-const struct {
31099+LT_DLSYM_CONST struct {
31100 const char *name;
31101 void *address;
31102 }
31103@@ -6724,8 +7051,8 @@ static const void *lt_preloaded_setup() {
31104 _LT_EOF
31105 # Now try linking the two files.
31106 mv conftest.$ac_objext conftstm.$ac_objext
31107- lt_save_LIBS="$LIBS"
31108- lt_save_CFLAGS="$CFLAGS"
31109+ lt_globsym_save_LIBS=$LIBS
31110+ lt_globsym_save_CFLAGS=$CFLAGS
31111 LIBS="conftstm.$ac_objext"
31112 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
31113 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
31114@@ -6735,8 +7062,8 @@ _LT_EOF
31115 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
31116 pipe_works=yes
31117 fi
31118- LIBS="$lt_save_LIBS"
31119- CFLAGS="$lt_save_CFLAGS"
31120+ LIBS=$lt_globsym_save_LIBS
31121+ CFLAGS=$lt_globsym_save_CFLAGS
31122 else
31123 echo "cannot find nm_test_func in $nlist" >&5
31124 fi
31125@@ -6773,6 +7100,14 @@ else
31126 $as_echo "ok" >&6; }
31127 fi
31128
31129+# Response file support.
31130+if test "$lt_cv_nm_interface" = "MS dumpbin"; then
31131+ nm_file_list_spec='@'
31132+elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
31133+ nm_file_list_spec='@'
31134+fi
31135+
31136+
31137
31138
31139
31140@@ -6791,6 +7126,47 @@ fi
31141
31142
31143
31144+
31145+
31146+
31147+
31148+
31149+
31150+
31151+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
31152+$as_echo_n "checking for sysroot... " >&6; }
31153+
31154+# Check whether --with-libtool-sysroot was given.
31155+if test "${with_libtool_sysroot+set}" = set; then :
31156+ withval=$with_libtool_sysroot;
31157+else
31158+ with_libtool_sysroot=no
31159+fi
31160+
31161+
31162+lt_sysroot=
31163+case ${with_libtool_sysroot} in #(
31164+ yes)
31165+ if test "$GCC" = yes; then
31166+ lt_sysroot=`$CC --print-sysroot 2>/dev/null`
31167+ fi
31168+ ;; #(
31169+ /*)
31170+ lt_sysroot=`echo "$with_libtool_sysroot" | sed -e "$sed_quote_subst"`
31171+ ;; #(
31172+ no|'')
31173+ ;; #(
31174+ *)
31175+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_libtool_sysroot}" >&5
31176+$as_echo "${with_libtool_sysroot}" >&6; }
31177+ as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
31178+ ;;
31179+esac
31180+
31181+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
31182+$as_echo "${lt_sysroot:-no}" >&6; }
31183+
31184+
31185
31186
31187
31188@@ -7000,6 +7376,123 @@ esac
31189
31190 need_locks="$enable_libtool_lock"
31191
31192+if test -n "$ac_tool_prefix"; then
31193+ # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
31194+set dummy ${ac_tool_prefix}mt; ac_word=$2
31195+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31196+$as_echo_n "checking for $ac_word... " >&6; }
31197+if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
31198+ $as_echo_n "(cached) " >&6
31199+else
31200+ if test -n "$MANIFEST_TOOL"; then
31201+ ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
31202+else
31203+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31204+for as_dir in $PATH
31205+do
31206+ IFS=$as_save_IFS
31207+ test -z "$as_dir" && as_dir=.
31208+ for ac_exec_ext in '' $ac_executable_extensions; do
31209+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31210+ ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
31211+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31212+ break 2
31213+ fi
31214+done
31215+ done
31216+IFS=$as_save_IFS
31217+
31218+fi
31219+fi
31220+MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
31221+if test -n "$MANIFEST_TOOL"; then
31222+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
31223+$as_echo "$MANIFEST_TOOL" >&6; }
31224+else
31225+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31226+$as_echo "no" >&6; }
31227+fi
31228+
31229+
31230+fi
31231+if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
31232+ ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
31233+ # Extract the first word of "mt", so it can be a program name with args.
31234+set dummy mt; ac_word=$2
31235+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31236+$as_echo_n "checking for $ac_word... " >&6; }
31237+if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
31238+ $as_echo_n "(cached) " >&6
31239+else
31240+ if test -n "$ac_ct_MANIFEST_TOOL"; then
31241+ ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
31242+else
31243+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31244+for as_dir in $PATH
31245+do
31246+ IFS=$as_save_IFS
31247+ test -z "$as_dir" && as_dir=.
31248+ for ac_exec_ext in '' $ac_executable_extensions; do
31249+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31250+ ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
31251+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31252+ break 2
31253+ fi
31254+done
31255+ done
31256+IFS=$as_save_IFS
31257+
31258+fi
31259+fi
31260+ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
31261+if test -n "$ac_ct_MANIFEST_TOOL"; then
31262+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
31263+$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
31264+else
31265+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31266+$as_echo "no" >&6; }
31267+fi
31268+
31269+ if test "x$ac_ct_MANIFEST_TOOL" = x; then
31270+ MANIFEST_TOOL=":"
31271+ else
31272+ case $cross_compiling:$ac_tool_warned in
31273+yes:)
31274+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
31275+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
31276+ac_tool_warned=yes ;;
31277+esac
31278+ MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
31279+ fi
31280+else
31281+ MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
31282+fi
31283+
31284+test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
31285+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
31286+$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
31287+if ${lt_cv_path_mainfest_tool+:} false; then :
31288+ $as_echo_n "(cached) " >&6
31289+else
31290+ lt_cv_path_mainfest_tool=no
31291+ echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
31292+ $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
31293+ cat conftest.err >&5
31294+ if $GREP 'Manifest Tool' conftest.out > /dev/null; then
31295+ lt_cv_path_mainfest_tool=yes
31296+ fi
31297+ rm -f conftest*
31298+fi
31299+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
31300+$as_echo "$lt_cv_path_mainfest_tool" >&6; }
31301+if test "x$lt_cv_path_mainfest_tool" != xyes; then
31302+ MANIFEST_TOOL=:
31303+fi
31304+
31305+
31306+
31307+
31308+
31309
31310 case $host_os in
31311 rhapsody* | darwin*)
31312@@ -7563,6 +8056,8 @@ _LT_EOF
31313 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
31314 echo "$AR cru libconftest.a conftest.o" >&5
31315 $AR cru libconftest.a conftest.o 2>&5
31316+ echo "$RANLIB libconftest.a" >&5
31317+ $RANLIB libconftest.a 2>&5
31318 cat > conftest.c << _LT_EOF
31319 int main() { return 0;}
31320 _LT_EOF
31321@@ -8117,8 +8612,6 @@ fi
31322 lt_prog_compiler_pic=
31323 lt_prog_compiler_static=
31324
31325-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
31326-$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
31327
31328 if test "$GCC" = yes; then
31329 lt_prog_compiler_wl='-Wl,'
31330@@ -8284,6 +8777,12 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
31331 lt_prog_compiler_pic='--shared'
31332 lt_prog_compiler_static='--static'
31333 ;;
31334+ nagfor*)
31335+ # NAG Fortran compiler
31336+ lt_prog_compiler_wl='-Wl,-Wl,,'
31337+ lt_prog_compiler_pic='-PIC'
31338+ lt_prog_compiler_static='-Bstatic'
31339+ ;;
31340 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
31341 # Portland Group compilers (*not* the Pentium gcc compiler,
31342 # which looks to be a dead project)
31343@@ -8346,7 +8845,7 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
31344 lt_prog_compiler_pic='-KPIC'
31345 lt_prog_compiler_static='-Bstatic'
31346 case $cc_basename in
31347- f77* | f90* | f95*)
31348+ f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
31349 lt_prog_compiler_wl='-Qoption ld ';;
31350 *)
31351 lt_prog_compiler_wl='-Wl,';;
31352@@ -8403,13 +8902,17 @@ case $host_os in
31353 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
31354 ;;
31355 esac
31356-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
31357-$as_echo "$lt_prog_compiler_pic" >&6; }
31358-
31359-
31360-
31361-
31362
31363+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
31364+$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
31365+if ${lt_cv_prog_compiler_pic+:} false; then :
31366+ $as_echo_n "(cached) " >&6
31367+else
31368+ lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
31369+fi
31370+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
31371+$as_echo "$lt_cv_prog_compiler_pic" >&6; }
31372+lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
31373
31374 #
31375 # Check to make sure the PIC flag actually works.
31376@@ -8470,6 +8973,11 @@ fi
31377
31378
31379
31380+
31381+
31382+
31383+
31384+
31385 #
31386 # Check to make sure the static flag actually works.
31387 #
31388@@ -8820,7 +9328,8 @@ _LT_EOF
31389 allow_undefined_flag=unsupported
31390 always_export_symbols=no
31391 enable_shared_with_static_runtimes=yes
31392- export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
31393+ export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
31394+ exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
31395
31396 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
31397 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
31398@@ -8919,12 +9428,12 @@ _LT_EOF
31399 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
31400 hardcode_libdir_flag_spec=
31401 hardcode_libdir_flag_spec_ld='-rpath $libdir'
31402- archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
31403+ archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
31404 if test "x$supports_anon_versioning" = xyes; then
31405 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
31406 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
31407 echo "local: *; };" >> $output_objdir/$libname.ver~
31408- $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
31409+ $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
31410 fi
31411 ;;
31412 esac
31413@@ -8938,8 +9447,8 @@ _LT_EOF
31414 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
31415 wlarc=
31416 else
31417- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
31418- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
31419+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
31420+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
31421 fi
31422 ;;
31423
31424@@ -8957,8 +9466,8 @@ _LT_EOF
31425
31426 _LT_EOF
31427 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
31428- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
31429- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
31430+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
31431+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
31432 else
31433 ld_shlibs=no
31434 fi
31435@@ -9004,8 +9513,8 @@ _LT_EOF
31436
31437 *)
31438 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
31439- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
31440- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
31441+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
31442+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
31443 else
31444 ld_shlibs=no
31445 fi
31446@@ -9135,7 +9644,13 @@ _LT_EOF
31447 allow_undefined_flag='-berok'
31448 # Determine the default libpath from the value encoded in an
31449 # empty executable.
31450- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31451+ if test "${lt_cv_aix_libpath+set}" = set; then
31452+ aix_libpath=$lt_cv_aix_libpath
31453+else
31454+ if ${lt_cv_aix_libpath_+:} false; then :
31455+ $as_echo_n "(cached) " >&6
31456+else
31457+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31458 /* end confdefs.h. */
31459
31460 int
31461@@ -9148,22 +9663,29 @@ main ()
31462 _ACEOF
31463 if ac_fn_c_try_link "$LINENO"; then :
31464
31465-lt_aix_libpath_sed='
31466- /Import File Strings/,/^$/ {
31467- /^0/ {
31468- s/^0 *\(.*\)$/\1/
31469- p
31470- }
31471- }'
31472-aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
31473-# Check for a 64-bit object if we didn't find anything.
31474-if test -z "$aix_libpath"; then
31475- aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
31476-fi
31477+ lt_aix_libpath_sed='
31478+ /Import File Strings/,/^$/ {
31479+ /^0/ {
31480+ s/^0 *\([^ ]*\) *$/\1/
31481+ p
31482+ }
31483+ }'
31484+ lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
31485+ # Check for a 64-bit object if we didn't find anything.
31486+ if test -z "$lt_cv_aix_libpath_"; then
31487+ lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
31488+ fi
31489 fi
31490 rm -f core conftest.err conftest.$ac_objext \
31491 conftest$ac_exeext conftest.$ac_ext
31492-if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
31493+ if test -z "$lt_cv_aix_libpath_"; then
31494+ lt_cv_aix_libpath_="/usr/lib:/lib"
31495+ fi
31496+
31497+fi
31498+
31499+ aix_libpath=$lt_cv_aix_libpath_
31500+fi
31501
31502 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
31503 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
31504@@ -9175,7 +9697,13 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
31505 else
31506 # Determine the default libpath from the value encoded in an
31507 # empty executable.
31508- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31509+ if test "${lt_cv_aix_libpath+set}" = set; then
31510+ aix_libpath=$lt_cv_aix_libpath
31511+else
31512+ if ${lt_cv_aix_libpath_+:} false; then :
31513+ $as_echo_n "(cached) " >&6
31514+else
31515+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31516 /* end confdefs.h. */
31517
31518 int
31519@@ -9188,22 +9716,29 @@ main ()
31520 _ACEOF
31521 if ac_fn_c_try_link "$LINENO"; then :
31522
31523-lt_aix_libpath_sed='
31524- /Import File Strings/,/^$/ {
31525- /^0/ {
31526- s/^0 *\(.*\)$/\1/
31527- p
31528- }
31529- }'
31530-aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
31531-# Check for a 64-bit object if we didn't find anything.
31532-if test -z "$aix_libpath"; then
31533- aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
31534-fi
31535+ lt_aix_libpath_sed='
31536+ /Import File Strings/,/^$/ {
31537+ /^0/ {
31538+ s/^0 *\([^ ]*\) *$/\1/
31539+ p
31540+ }
31541+ }'
31542+ lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
31543+ # Check for a 64-bit object if we didn't find anything.
31544+ if test -z "$lt_cv_aix_libpath_"; then
31545+ lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
31546+ fi
31547 fi
31548 rm -f core conftest.err conftest.$ac_objext \
31549 conftest$ac_exeext conftest.$ac_ext
31550-if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
31551+ if test -z "$lt_cv_aix_libpath_"; then
31552+ lt_cv_aix_libpath_="/usr/lib:/lib"
31553+ fi
31554+
31555+fi
31556+
31557+ aix_libpath=$lt_cv_aix_libpath_
31558+fi
31559
31560 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
31561 # Warning - without using the other run time loading flags,
31562@@ -9248,20 +9783,63 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
31563 # Microsoft Visual C++.
31564 # hardcode_libdir_flag_spec is actually meaningless, as there is
31565 # no search path for DLLs.
31566- hardcode_libdir_flag_spec=' '
31567- allow_undefined_flag=unsupported
31568- # Tell ltmain to make .lib files, not .a files.
31569- libext=lib
31570- # Tell ltmain to make .dll files, not .so files.
31571- shrext_cmds=".dll"
31572- # FIXME: Setting linknames here is a bad hack.
31573- archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
31574- # The linker will automatically build a .lib file if we build a DLL.
31575- old_archive_from_new_cmds='true'
31576- # FIXME: Should let the user specify the lib program.
31577- old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
31578- fix_srcfile_path='`cygpath -w "$srcfile"`'
31579- enable_shared_with_static_runtimes=yes
31580+ case $cc_basename in
31581+ cl*)
31582+ # Native MSVC
31583+ hardcode_libdir_flag_spec=' '
31584+ allow_undefined_flag=unsupported
31585+ always_export_symbols=yes
31586+ file_list_spec='@'
31587+ # Tell ltmain to make .lib files, not .a files.
31588+ libext=lib
31589+ # Tell ltmain to make .dll files, not .so files.
31590+ shrext_cmds=".dll"
31591+ # FIXME: Setting linknames here is a bad hack.
31592+ archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
31593+ archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
31594+ sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
31595+ else
31596+ sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
31597+ fi~
31598+ $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
31599+ linknames='
31600+ # The linker will not automatically build a static lib if we build a DLL.
31601+ # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
31602+ enable_shared_with_static_runtimes=yes
31603+ export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
31604+ # Don't use ranlib
31605+ old_postinstall_cmds='chmod 644 $oldlib'
31606+ postlink_cmds='lt_outputfile="@OUTPUT@"~
31607+ lt_tool_outputfile="@TOOL_OUTPUT@"~
31608+ case $lt_outputfile in
31609+ *.exe|*.EXE) ;;
31610+ *)
31611+ lt_outputfile="$lt_outputfile.exe"
31612+ lt_tool_outputfile="$lt_tool_outputfile.exe"
31613+ ;;
31614+ esac~
31615+ if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
31616+ $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
31617+ $RM "$lt_outputfile.manifest";
31618+ fi'
31619+ ;;
31620+ *)
31621+ # Assume MSVC wrapper
31622+ hardcode_libdir_flag_spec=' '
31623+ allow_undefined_flag=unsupported
31624+ # Tell ltmain to make .lib files, not .a files.
31625+ libext=lib
31626+ # Tell ltmain to make .dll files, not .so files.
31627+ shrext_cmds=".dll"
31628+ # FIXME: Setting linknames here is a bad hack.
31629+ archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
31630+ # The linker will automatically build a .lib file if we build a DLL.
31631+ old_archive_from_new_cmds='true'
31632+ # FIXME: Should let the user specify the lib program.
31633+ old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
31634+ enable_shared_with_static_runtimes=yes
31635+ ;;
31636+ esac
31637 ;;
31638
31639 darwin* | rhapsody*)
31640@@ -9322,7 +9900,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
31641
31642 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
31643 freebsd* | dragonfly*)
31644- archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
31645+ archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
31646 hardcode_libdir_flag_spec='-R$libdir'
31647 hardcode_direct=yes
31648 hardcode_shlibpath_var=no
31649@@ -9330,7 +9908,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
31650
31651 hpux9*)
31652 if test "$GCC" = yes; then
31653- archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
31654+ archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
31655 else
31656 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
31657 fi
31658@@ -9346,7 +9924,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
31659
31660 hpux10*)
31661 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
31662- archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
31663+ archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
31664 else
31665 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
31666 fi
31667@@ -9370,10 +9948,10 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
31668 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
31669 ;;
31670 ia64*)
31671- archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
31672+ archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
31673 ;;
31674 *)
31675- archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
31676+ archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
31677 ;;
31678 esac
31679 else
31680@@ -9452,23 +10030,36 @@ fi
31681
31682 irix5* | irix6* | nonstopux*)
31683 if test "$GCC" = yes; then
31684- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
31685+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
31686 # Try to use the -exported_symbol ld option, if it does not
31687 # work, assume that -exports_file does not work either and
31688 # implicitly export all symbols.
31689- save_LDFLAGS="$LDFLAGS"
31690- LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
31691- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31692+ # This should be the same for all languages, so no per-tag cache variable.
31693+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
31694+$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
31695+if ${lt_cv_irix_exported_symbol+:} false; then :
31696+ $as_echo_n "(cached) " >&6
31697+else
31698+ save_LDFLAGS="$LDFLAGS"
31699+ LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
31700+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31701 /* end confdefs.h. */
31702-int foo(void) {}
31703+int foo (void) { return 0; }
31704 _ACEOF
31705 if ac_fn_c_try_link "$LINENO"; then :
31706- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
31707-
31708+ lt_cv_irix_exported_symbol=yes
31709+else
31710+ lt_cv_irix_exported_symbol=no
31711 fi
31712 rm -f core conftest.err conftest.$ac_objext \
31713 conftest$ac_exeext conftest.$ac_ext
31714- LDFLAGS="$save_LDFLAGS"
31715+ LDFLAGS="$save_LDFLAGS"
31716+fi
31717+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
31718+$as_echo "$lt_cv_irix_exported_symbol" >&6; }
31719+ if test "$lt_cv_irix_exported_symbol" = yes; then
31720+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
31721+ fi
31722 else
31723 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
31724 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
31725@@ -9553,7 +10144,7 @@ rm -f core conftest.err conftest.$ac_objext \
31726 osf4* | osf5*) # as osf3* with the addition of -msym flag
31727 if test "$GCC" = yes; then
31728 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
31729- archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
31730+ archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
31731 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
31732 else
31733 allow_undefined_flag=' -expect_unresolved \*'
31734@@ -9572,9 +10163,9 @@ rm -f core conftest.err conftest.$ac_objext \
31735 no_undefined_flag=' -z defs'
31736 if test "$GCC" = yes; then
31737 wlarc='${wl}'
31738- archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
31739+ archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
31740 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
31741- $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
31742+ $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
31743 else
31744 case `$CC -V 2>&1` in
31745 *"Compilers 5.0"*)
31746@@ -10150,8 +10741,9 @@ cygwin* | mingw* | pw32* | cegcc*)
31747 need_version=no
31748 need_lib_prefix=no
31749
31750- case $GCC,$host_os in
31751- yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
31752+ case $GCC,$cc_basename in
31753+ yes,*)
31754+ # gcc
31755 library_names_spec='$libname.dll.a'
31756 # DLL is installed to $(libdir)/../bin by postinstall_cmds
31757 postinstall_cmds='base_file=`basename \${file}`~
31758@@ -10184,13 +10776,71 @@ cygwin* | mingw* | pw32* | cegcc*)
31759 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
31760 ;;
31761 esac
31762+ dynamic_linker='Win32 ld.exe'
31763+ ;;
31764+
31765+ *,cl*)
31766+ # Native MSVC
31767+ libname_spec='$name'
31768+ soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
31769+ library_names_spec='${libname}.dll.lib'
31770+
31771+ case $build_os in
31772+ mingw*)
31773+ sys_lib_search_path_spec=
31774+ lt_save_ifs=$IFS
31775+ IFS=';'
31776+ for lt_path in $LIB
31777+ do
31778+ IFS=$lt_save_ifs
31779+ # Let DOS variable expansion print the short 8.3 style file name.
31780+ lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
31781+ sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
31782+ done
31783+ IFS=$lt_save_ifs
31784+ # Convert to MSYS style.
31785+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
31786+ ;;
31787+ cygwin*)
31788+ # Convert to unix form, then to dos form, then back to unix form
31789+ # but this time dos style (no spaces!) so that the unix form looks
31790+ # like /cygdrive/c/PROGRA~1:/cygdr...
31791+ sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
31792+ sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
31793+ sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
31794+ ;;
31795+ *)
31796+ sys_lib_search_path_spec="$LIB"
31797+ if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
31798+ # It is most probably a Windows format PATH.
31799+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
31800+ else
31801+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
31802+ fi
31803+ # FIXME: find the short name or the path components, as spaces are
31804+ # common. (e.g. "Program Files" -> "PROGRA~1")
31805+ ;;
31806+ esac
31807+
31808+ # DLL is installed to $(libdir)/../bin by postinstall_cmds
31809+ postinstall_cmds='base_file=`basename \${file}`~
31810+ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
31811+ dldir=$destdir/`dirname \$dlpath`~
31812+ test -d \$dldir || mkdir -p \$dldir~
31813+ $install_prog $dir/$dlname \$dldir/$dlname'
31814+ postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
31815+ dlpath=$dir/\$dldll~
31816+ $RM \$dlpath'
31817+ shlibpath_overrides_runpath=yes
31818+ dynamic_linker='Win32 link.exe'
31819 ;;
31820
31821 *)
31822+ # Assume MSVC wrapper
31823 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
31824+ dynamic_linker='Win32 ld.exe'
31825 ;;
31826 esac
31827- dynamic_linker='Win32 ld.exe'
31828 # FIXME: first we should search . and the directory the executable is in
31829 shlibpath_var=PATH
31830 ;;
31831@@ -11092,7 +11742,7 @@ else
31832 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
31833 lt_status=$lt_dlunknown
31834 cat > conftest.$ac_ext <<_LT_EOF
31835-#line 11095 "configure"
31836+#line $LINENO "configure"
31837 #include "confdefs.h"
31838
31839 #if HAVE_DLFCN_H
31840@@ -11136,10 +11786,10 @@ else
31841 /* When -fvisbility=hidden is used, assume the code has been annotated
31842 correspondingly for the symbols needed. */
31843 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
31844-void fnord () __attribute__((visibility("default")));
31845+int fnord () __attribute__((visibility("default")));
31846 #endif
31847
31848-void fnord () { int i=42; }
31849+int fnord () { return 42; }
31850 int main ()
31851 {
31852 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
31853@@ -11198,7 +11848,7 @@ else
31854 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
31855 lt_status=$lt_dlunknown
31856 cat > conftest.$ac_ext <<_LT_EOF
31857-#line 11201 "configure"
31858+#line $LINENO "configure"
31859 #include "confdefs.h"
31860
31861 #if HAVE_DLFCN_H
31862@@ -11242,10 +11892,10 @@ else
31863 /* When -fvisbility=hidden is used, assume the code has been annotated
31864 correspondingly for the symbols needed. */
31865 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
31866-void fnord () __attribute__((visibility("default")));
31867+int fnord () __attribute__((visibility("default")));
31868 #endif
31869
31870-void fnord () { int i=42; }
31871+int fnord () { return 42; }
31872 int main ()
31873 {
31874 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
31875@@ -15351,13 +16001,20 @@ exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
31876 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
31877 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
31878 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
31879+lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
31880+lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
31881 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
31882 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
31883 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
31884 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
31885 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
31886+file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
31887+want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
31888+DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
31889+sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
31890 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
31891 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
31892+archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
31893 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
31894 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
31895 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
31896@@ -15372,14 +16029,17 @@ lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$de
31897 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
31898 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
31899 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
31900+nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
31901+lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
31902 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
31903 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
31904 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
31905-lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
31906 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
31907+lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
31908 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
31909 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
31910 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
31911+MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
31912 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
31913 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
31914 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
31915@@ -15412,12 +16072,12 @@ hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_q
31916 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
31917 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
31918 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
31919-fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
31920 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
31921 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
31922 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
31923 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
31924 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
31925+postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
31926 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
31927 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
31928 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
31929@@ -15472,8 +16132,13 @@ reload_flag \
31930 OBJDUMP \
31931 deplibs_check_method \
31932 file_magic_cmd \
31933+file_magic_glob \
31934+want_nocaseglob \
31935+DLLTOOL \
31936+sharedlib_from_linklib_cmd \
31937 AR \
31938 AR_FLAGS \
31939+archiver_list_spec \
31940 STRIP \
31941 RANLIB \
31942 CC \
31943@@ -15483,12 +16148,14 @@ lt_cv_sys_global_symbol_pipe \
31944 lt_cv_sys_global_symbol_to_cdecl \
31945 lt_cv_sys_global_symbol_to_c_name_address \
31946 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
31947+nm_file_list_spec \
31948 lt_prog_compiler_no_builtin_flag \
31949-lt_prog_compiler_wl \
31950 lt_prog_compiler_pic \
31951+lt_prog_compiler_wl \
31952 lt_prog_compiler_static \
31953 lt_cv_prog_compiler_c_o \
31954 need_locks \
31955+MANIFEST_TOOL \
31956 DSYMUTIL \
31957 NMEDIT \
31958 LIPO \
31959@@ -15504,7 +16171,6 @@ no_undefined_flag \
31960 hardcode_libdir_flag_spec \
31961 hardcode_libdir_flag_spec_ld \
31962 hardcode_libdir_separator \
31963-fix_srcfile_path \
31964 exclude_expsyms \
31965 include_expsyms \
31966 file_list_spec \
31967@@ -15540,6 +16206,7 @@ module_cmds \
31968 module_expsym_cmds \
31969 export_symbols_cmds \
31970 prelink_cmds \
31971+postlink_cmds \
31972 postinstall_cmds \
31973 postuninstall_cmds \
31974 finish_cmds \
31975@@ -16313,7 +16980,8 @@ $as_echo X"$file" |
31976 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
31977 #
31978 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
31979-# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
31980+# 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
31981+# Inc.
31982 # Written by Gordon Matzigkeit, 1996
31983 #
31984 # This file is part of GNU Libtool.
31985@@ -16416,19 +17084,42 @@ SP2NL=$lt_lt_SP2NL
31986 # turn newlines into spaces.
31987 NL2SP=$lt_lt_NL2SP
31988
31989+# convert \$build file names to \$host format.
31990+to_host_file_cmd=$lt_cv_to_host_file_cmd
31991+
31992+# convert \$build files to toolchain format.
31993+to_tool_file_cmd=$lt_cv_to_tool_file_cmd
31994+
31995 # An object symbol dumper.
31996 OBJDUMP=$lt_OBJDUMP
31997
31998 # Method to check whether dependent libraries are shared objects.
31999 deplibs_check_method=$lt_deplibs_check_method
32000
32001-# Command to use when deplibs_check_method == "file_magic".
32002+# Command to use when deplibs_check_method = "file_magic".
32003 file_magic_cmd=$lt_file_magic_cmd
32004
32005+# How to find potential files when deplibs_check_method = "file_magic".
32006+file_magic_glob=$lt_file_magic_glob
32007+
32008+# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
32009+want_nocaseglob=$lt_want_nocaseglob
32010+
32011+# DLL creation program.
32012+DLLTOOL=$lt_DLLTOOL
32013+
32014+# Command to associate shared and link libraries.
32015+sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
32016+
32017 # The archiver.
32018 AR=$lt_AR
32019+
32020+# Flags to create an archive.
32021 AR_FLAGS=$lt_AR_FLAGS
32022
32023+# How to feed a file listing to the archiver.
32024+archiver_list_spec=$lt_archiver_list_spec
32025+
32026 # A symbol stripping program.
32027 STRIP=$lt_STRIP
32028
32029@@ -16458,6 +17149,12 @@ global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
32030 # Transform the output of nm in a C name address pair when lib prefix is needed.
32031 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
32032
32033+# Specify filename containing input files for \$NM.
32034+nm_file_list_spec=$lt_nm_file_list_spec
32035+
32036+# The root where to search for dependent libraries,and in which our libraries should be installed.
32037+lt_sysroot=$lt_sysroot
32038+
32039 # The name of the directory that contains temporary libtool files.
32040 objdir=$objdir
32041
32042@@ -16467,6 +17164,9 @@ MAGIC_CMD=$MAGIC_CMD
32043 # Must we lock files when doing compilation?
32044 need_locks=$lt_need_locks
32045
32046+# Manifest tool.
32047+MANIFEST_TOOL=$lt_MANIFEST_TOOL
32048+
32049 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
32050 DSYMUTIL=$lt_DSYMUTIL
32051
32052@@ -16581,12 +17281,12 @@ with_gcc=$GCC
32053 # Compiler flag to turn off builtin functions.
32054 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
32055
32056-# How to pass a linker flag through the compiler.
32057-wl=$lt_lt_prog_compiler_wl
32058-
32059 # Additional compiler flags for building library objects.
32060 pic_flag=$lt_lt_prog_compiler_pic
32061
32062+# How to pass a linker flag through the compiler.
32063+wl=$lt_lt_prog_compiler_wl
32064+
32065 # Compiler flag to prevent dynamic linking.
32066 link_static_flag=$lt_lt_prog_compiler_static
32067
32068@@ -16673,9 +17373,6 @@ inherit_rpath=$inherit_rpath
32069 # Whether libtool must link a program against all its dependency libraries.
32070 link_all_deplibs=$link_all_deplibs
32071
32072-# Fix the shell variable \$srcfile for the compiler.
32073-fix_srcfile_path=$lt_fix_srcfile_path
32074-
32075 # Set to "yes" if exported symbols are required.
32076 always_export_symbols=$always_export_symbols
32077
32078@@ -16691,6 +17388,9 @@ include_expsyms=$lt_include_expsyms
32079 # Commands necessary for linking programs (against libraries) with templates.
32080 prelink_cmds=$lt_prelink_cmds
32081
32082+# Commands necessary for finishing linking programs.
32083+postlink_cmds=$lt_postlink_cmds
32084+
32085 # Specify filename containing input files.
32086 file_list_spec=$lt_file_list_spec
32087
32088@@ -16723,210 +17423,169 @@ ltmain="$ac_aux_dir/ltmain.sh"
32089 # if finds mixed CR/LF and LF-only lines. Since sed operates in
32090 # text mode, it properly converts lines to CR/LF. This bash problem
32091 # is reportedly fixed, but why not run on old versions too?
32092- sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
32093- || (rm -f "$cfgfile"; exit 1)
32094-
32095- case $xsi_shell in
32096- yes)
32097- cat << \_LT_EOF >> "$cfgfile"
32098-
32099-# func_dirname file append nondir_replacement
32100-# Compute the dirname of FILE. If nonempty, add APPEND to the result,
32101-# otherwise set result to NONDIR_REPLACEMENT.
32102-func_dirname ()
32103-{
32104- case ${1} in
32105- */*) func_dirname_result="${1%/*}${2}" ;;
32106- * ) func_dirname_result="${3}" ;;
32107- esac
32108-}
32109-
32110-# func_basename file
32111-func_basename ()
32112-{
32113- func_basename_result="${1##*/}"
32114-}
32115-
32116-# func_dirname_and_basename file append nondir_replacement
32117-# perform func_basename and func_dirname in a single function
32118-# call:
32119-# dirname: Compute the dirname of FILE. If nonempty,
32120-# add APPEND to the result, otherwise set result
32121-# to NONDIR_REPLACEMENT.
32122-# value returned in "$func_dirname_result"
32123-# basename: Compute filename of FILE.
32124-# value retuned in "$func_basename_result"
32125-# Implementation must be kept synchronized with func_dirname
32126-# and func_basename. For efficiency, we do not delegate to
32127-# those functions but instead duplicate the functionality here.
32128-func_dirname_and_basename ()
32129-{
32130- case ${1} in
32131- */*) func_dirname_result="${1%/*}${2}" ;;
32132- * ) func_dirname_result="${3}" ;;
32133- esac
32134- func_basename_result="${1##*/}"
32135-}
32136-
32137-# func_stripname prefix suffix name
32138-# strip PREFIX and SUFFIX off of NAME.
32139-# PREFIX and SUFFIX must not contain globbing or regex special
32140-# characters, hashes, percent signs, but SUFFIX may contain a leading
32141-# dot (in which case that matches only a dot).
32142-func_stripname ()
32143-{
32144- # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
32145- # positional parameters, so assign one to ordinary parameter first.
32146- func_stripname_result=${3}
32147- func_stripname_result=${func_stripname_result#"${1}"}
32148- func_stripname_result=${func_stripname_result%"${2}"}
32149-}
32150-
32151-# func_opt_split
32152-func_opt_split ()
32153-{
32154- func_opt_split_opt=${1%%=*}
32155- func_opt_split_arg=${1#*=}
32156-}
32157-
32158-# func_lo2o object
32159-func_lo2o ()
32160-{
32161- case ${1} in
32162- *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
32163- *) func_lo2o_result=${1} ;;
32164- esac
32165-}
32166-
32167-# func_xform libobj-or-source
32168-func_xform ()
32169-{
32170- func_xform_result=${1%.*}.lo
32171-}
32172-
32173-# func_arith arithmetic-term...
32174-func_arith ()
32175-{
32176- func_arith_result=$(( $* ))
32177-}
32178-
32179-# func_len string
32180-# STRING may not start with a hyphen.
32181-func_len ()
32182-{
32183- func_len_result=${#1}
32184-}
32185-
32186-_LT_EOF
32187- ;;
32188- *) # Bourne compatible functions.
32189- cat << \_LT_EOF >> "$cfgfile"
32190-
32191-# func_dirname file append nondir_replacement
32192-# Compute the dirname of FILE. If nonempty, add APPEND to the result,
32193-# otherwise set result to NONDIR_REPLACEMENT.
32194-func_dirname ()
32195-{
32196- # Extract subdirectory from the argument.
32197- func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
32198- if test "X$func_dirname_result" = "X${1}"; then
32199- func_dirname_result="${3}"
32200- else
32201- func_dirname_result="$func_dirname_result${2}"
32202- fi
32203-}
32204-
32205-# func_basename file
32206-func_basename ()
32207-{
32208- func_basename_result=`$ECHO "${1}" | $SED "$basename"`
32209-}
32210-
32211-
32212-# func_stripname prefix suffix name
32213-# strip PREFIX and SUFFIX off of NAME.
32214-# PREFIX and SUFFIX must not contain globbing or regex special
32215-# characters, hashes, percent signs, but SUFFIX may contain a leading
32216-# dot (in which case that matches only a dot).
32217-# func_strip_suffix prefix name
32218-func_stripname ()
32219-{
32220- case ${2} in
32221- .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
32222- *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
32223- esac
32224-}
32225-
32226-# sed scripts:
32227-my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
32228-my_sed_long_arg='1s/^-[^=]*=//'
32229-
32230-# func_opt_split
32231-func_opt_split ()
32232-{
32233- func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
32234- func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
32235-}
32236-
32237-# func_lo2o object
32238-func_lo2o ()
32239-{
32240- func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
32241-}
32242-
32243-# func_xform libobj-or-source
32244-func_xform ()
32245-{
32246- func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
32247-}
32248-
32249-# func_arith arithmetic-term...
32250-func_arith ()
32251-{
32252- func_arith_result=`expr "$@"`
32253-}
32254-
32255-# func_len string
32256-# STRING may not start with a hyphen.
32257-func_len ()
32258-{
32259- func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
32260-}
32261-
32262-_LT_EOF
32263-esac
32264-
32265-case $lt_shell_append in
32266- yes)
32267- cat << \_LT_EOF >> "$cfgfile"
32268-
32269-# func_append var value
32270-# Append VALUE to the end of shell variable VAR.
32271-func_append ()
32272-{
32273- eval "$1+=\$2"
32274-}
32275-_LT_EOF
32276- ;;
32277- *)
32278- cat << \_LT_EOF >> "$cfgfile"
32279-
32280-# func_append var value
32281-# Append VALUE to the end of shell variable VAR.
32282-func_append ()
32283-{
32284- eval "$1=\$$1\$2"
32285-}
32286-
32287-_LT_EOF
32288- ;;
32289- esac
32290-
32291-
32292- sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
32293- || (rm -f "$cfgfile"; exit 1)
32294-
32295- mv -f "$cfgfile" "$ofile" ||
32296+ sed '$q' "$ltmain" >> "$cfgfile" \
32297+ || (rm -f "$cfgfile"; exit 1)
32298+
32299+ if test x"$xsi_shell" = xyes; then
32300+ sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
32301+func_dirname ()\
32302+{\
32303+\ case ${1} in\
32304+\ */*) func_dirname_result="${1%/*}${2}" ;;\
32305+\ * ) func_dirname_result="${3}" ;;\
32306+\ esac\
32307+} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
32308+ && mv -f "$cfgfile.tmp" "$cfgfile" \
32309+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32310+test 0 -eq $? || _lt_function_replace_fail=:
32311+
32312+
32313+ sed -e '/^func_basename ()$/,/^} # func_basename /c\
32314+func_basename ()\
32315+{\
32316+\ func_basename_result="${1##*/}"\
32317+} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
32318+ && mv -f "$cfgfile.tmp" "$cfgfile" \
32319+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32320+test 0 -eq $? || _lt_function_replace_fail=:
32321+
32322+
32323+ sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
32324+func_dirname_and_basename ()\
32325+{\
32326+\ case ${1} in\
32327+\ */*) func_dirname_result="${1%/*}${2}" ;;\
32328+\ * ) func_dirname_result="${3}" ;;\
32329+\ esac\
32330+\ func_basename_result="${1##*/}"\
32331+} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
32332+ && mv -f "$cfgfile.tmp" "$cfgfile" \
32333+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32334+test 0 -eq $? || _lt_function_replace_fail=:
32335+
32336+
32337+ sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
32338+func_stripname ()\
32339+{\
32340+\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
32341+\ # positional parameters, so assign one to ordinary parameter first.\
32342+\ func_stripname_result=${3}\
32343+\ func_stripname_result=${func_stripname_result#"${1}"}\
32344+\ func_stripname_result=${func_stripname_result%"${2}"}\
32345+} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
32346+ && mv -f "$cfgfile.tmp" "$cfgfile" \
32347+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32348+test 0 -eq $? || _lt_function_replace_fail=:
32349+
32350+
32351+ sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
32352+func_split_long_opt ()\
32353+{\
32354+\ func_split_long_opt_name=${1%%=*}\
32355+\ func_split_long_opt_arg=${1#*=}\
32356+} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
32357+ && mv -f "$cfgfile.tmp" "$cfgfile" \
32358+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32359+test 0 -eq $? || _lt_function_replace_fail=:
32360+
32361+
32362+ sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
32363+func_split_short_opt ()\
32364+{\
32365+\ func_split_short_opt_arg=${1#??}\
32366+\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
32367+} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
32368+ && mv -f "$cfgfile.tmp" "$cfgfile" \
32369+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32370+test 0 -eq $? || _lt_function_replace_fail=:
32371+
32372+
32373+ sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
32374+func_lo2o ()\
32375+{\
32376+\ case ${1} in\
32377+\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
32378+\ *) func_lo2o_result=${1} ;;\
32379+\ esac\
32380+} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
32381+ && mv -f "$cfgfile.tmp" "$cfgfile" \
32382+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32383+test 0 -eq $? || _lt_function_replace_fail=:
32384+
32385+
32386+ sed -e '/^func_xform ()$/,/^} # func_xform /c\
32387+func_xform ()\
32388+{\
32389+ func_xform_result=${1%.*}.lo\
32390+} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
32391+ && mv -f "$cfgfile.tmp" "$cfgfile" \
32392+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32393+test 0 -eq $? || _lt_function_replace_fail=:
32394+
32395+
32396+ sed -e '/^func_arith ()$/,/^} # func_arith /c\
32397+func_arith ()\
32398+{\
32399+ func_arith_result=$(( $* ))\
32400+} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
32401+ && mv -f "$cfgfile.tmp" "$cfgfile" \
32402+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32403+test 0 -eq $? || _lt_function_replace_fail=:
32404+
32405+
32406+ sed -e '/^func_len ()$/,/^} # func_len /c\
32407+func_len ()\
32408+{\
32409+ func_len_result=${#1}\
32410+} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
32411+ && mv -f "$cfgfile.tmp" "$cfgfile" \
32412+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32413+test 0 -eq $? || _lt_function_replace_fail=:
32414+
32415+fi
32416+
32417+if test x"$lt_shell_append" = xyes; then
32418+ sed -e '/^func_append ()$/,/^} # func_append /c\
32419+func_append ()\
32420+{\
32421+ eval "${1}+=\\${2}"\
32422+} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
32423+ && mv -f "$cfgfile.tmp" "$cfgfile" \
32424+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32425+test 0 -eq $? || _lt_function_replace_fail=:
32426+
32427+
32428+ sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
32429+func_append_quoted ()\
32430+{\
32431+\ func_quote_for_eval "${2}"\
32432+\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
32433+} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
32434+ && mv -f "$cfgfile.tmp" "$cfgfile" \
32435+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32436+test 0 -eq $? || _lt_function_replace_fail=:
32437+
32438+
32439+ # Save a `func_append' function call where possible by direct use of '+='
32440+ sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
32441+ && mv -f "$cfgfile.tmp" "$cfgfile" \
32442+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32443+ test 0 -eq $? || _lt_function_replace_fail=:
32444+else
32445+ # Save a `func_append' function call even when '+=' is not available
32446+ sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
32447+ && mv -f "$cfgfile.tmp" "$cfgfile" \
32448+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32449+ test 0 -eq $? || _lt_function_replace_fail=:
32450+fi
32451+
32452+if test x"$_lt_function_replace_fail" = x":"; then
32453+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
32454+$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
32455+fi
32456+
32457+
32458+ mv -f "$cfgfile" "$ofile" ||
32459 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
32460 chmod +x "$ofile"
32461
32462diff --git a/zlib/Makefile.in b/zlib/Makefile.in
32463index dd8a21deba1..28628282c56 100644
32464--- a/zlib/Makefile.in
32465+++ b/zlib/Makefile.in
32466@@ -281,6 +281,7 @@ CPPFLAGS = @CPPFLAGS@
32467 CYGPATH_W = @CYGPATH_W@
32468 DEFS = @DEFS@
32469 DEPDIR = @DEPDIR@
32470+DLLTOOL = @DLLTOOL@
32471 DSYMUTIL = @DSYMUTIL@
32472 DUMPBIN = @DUMPBIN@
32473 ECHO_C = @ECHO_C@
32474@@ -305,6 +306,7 @@ LN_S = @LN_S@
32475 LTLIBOBJS = @LTLIBOBJS@
32476 MAINT = @MAINT@
32477 MAKEINFO = @MAKEINFO@
32478+MANIFEST_TOOL = @MANIFEST_TOOL@
32479 MKDIR_P = @MKDIR_P@
32480 NM = @NM@
32481 NMEDIT = @NMEDIT@
32482@@ -331,6 +333,7 @@ abs_builddir = @abs_builddir@
32483 abs_srcdir = @abs_srcdir@
32484 abs_top_builddir = @abs_top_builddir@
32485 abs_top_srcdir = @abs_top_srcdir@
32486+ac_ct_AR = @ac_ct_AR@
32487 ac_ct_CC = @ac_ct_CC@
32488 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
32489 am__include = @am__include@
32490diff --git a/zlib/configure b/zlib/configure
32491index 2d551360683..e01d0a70438 100755
32492--- a/zlib/configure
32493+++ b/zlib/configure
32494@@ -648,8 +648,11 @@ OTOOL
32495 LIPO
32496 NMEDIT
32497 DSYMUTIL
32498+MANIFEST_TOOL
32499 RANLIB
32500+ac_ct_AR
32501 AR
32502+DLLTOOL
32503 OBJDUMP
32504 LN_S
32505 NM
32506@@ -776,6 +779,7 @@ enable_static
32507 with_pic
32508 enable_fast_install
32509 with_gnu_ld
32510+with_libtool_sysroot
32511 enable_libtool_lock
32512 enable_host_shared
32513 enable_host_pie
32514@@ -1432,6 +1436,8 @@ Optional Packages:
32515 --with-pic try to use only PIC/non-PIC objects [default=use
32516 both]
32517 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
32518+ --with-libtool-sysroot=DIR Search for dependent libraries within DIR
32519+ (or the compiler's sysroot if not specified).
32520
32521 Some influential environment variables:
32522 CC C compiler command
32523@@ -4190,8 +4196,8 @@ esac
32524
32525
32526
32527-macro_version='2.2.7a'
32528-macro_revision='1.3134'
32529+macro_version='2.4'
32530+macro_revision='1.3293'
32531
32532
32533
32534@@ -4231,7 +4237,7 @@ ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
32535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
32536 $as_echo_n "checking how to print strings... " >&6; }
32537 # Test print first, because it will be a builtin if present.
32538-if test "X`print -r -- -n 2>/dev/null`" = X-n && \
32539+if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
32540 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
32541 ECHO='print -r --'
32542 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
32543@@ -5054,8 +5060,8 @@ $as_echo_n "checking whether the shell understands some XSI constructs... " >&6;
32544 # Try some XSI features
32545 xsi_shell=no
32546 ( _lt_dummy="a/b/c"
32547- test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
32548- = c,a/b,, \
32549+ test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
32550+ = c,a/b,b/c, \
32551 && eval 'test $(( 1 + 1 )) -eq 2 \
32552 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
32553 && xsi_shell=yes
32554@@ -5104,6 +5110,80 @@ esac
32555
32556
32557
32558+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
32559+$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
32560+if ${lt_cv_to_host_file_cmd+:} false; then :
32561+ $as_echo_n "(cached) " >&6
32562+else
32563+ case $host in
32564+ *-*-mingw* )
32565+ case $build in
32566+ *-*-mingw* ) # actually msys
32567+ lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
32568+ ;;
32569+ *-*-cygwin* )
32570+ lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
32571+ ;;
32572+ * ) # otherwise, assume *nix
32573+ lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
32574+ ;;
32575+ esac
32576+ ;;
32577+ *-*-cygwin* )
32578+ case $build in
32579+ *-*-mingw* ) # actually msys
32580+ lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
32581+ ;;
32582+ *-*-cygwin* )
32583+ lt_cv_to_host_file_cmd=func_convert_file_noop
32584+ ;;
32585+ * ) # otherwise, assume *nix
32586+ lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
32587+ ;;
32588+ esac
32589+ ;;
32590+ * ) # unhandled hosts (and "normal" native builds)
32591+ lt_cv_to_host_file_cmd=func_convert_file_noop
32592+ ;;
32593+esac
32594+
32595+fi
32596+
32597+to_host_file_cmd=$lt_cv_to_host_file_cmd
32598+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
32599+$as_echo "$lt_cv_to_host_file_cmd" >&6; }
32600+
32601+
32602+
32603+
32604+
32605+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
32606+$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
32607+if ${lt_cv_to_tool_file_cmd+:} false; then :
32608+ $as_echo_n "(cached) " >&6
32609+else
32610+ #assume ordinary cross tools, or native build.
32611+lt_cv_to_tool_file_cmd=func_convert_file_noop
32612+case $host in
32613+ *-*-mingw* )
32614+ case $build in
32615+ *-*-mingw* ) # actually msys
32616+ lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
32617+ ;;
32618+ esac
32619+ ;;
32620+esac
32621+
32622+fi
32623+
32624+to_tool_file_cmd=$lt_cv_to_tool_file_cmd
32625+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
32626+$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
32627+
32628+
32629+
32630+
32631+
32632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
32633 $as_echo_n "checking for $LD option to reload object files... " >&6; }
32634 if ${lt_cv_ld_reload_flag+:} false; then :
32635@@ -5120,6 +5200,11 @@ case $reload_flag in
32636 esac
32637 reload_cmds='$LD$reload_flag -o $output$reload_objs'
32638 case $host_os in
32639+ cygwin* | mingw* | pw32* | cegcc*)
32640+ if test "$GCC" != yes; then
32641+ reload_cmds=false
32642+ fi
32643+ ;;
32644 darwin*)
32645 if test "$GCC" = yes; then
32646 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
32647@@ -5288,7 +5373,8 @@ mingw* | pw32*)
32648 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
32649 lt_cv_file_magic_cmd='func_win32_libid'
32650 else
32651- lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
32652+ # Keep this pattern in sync with the one in func_win32_libid.
32653+ lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
32654 lt_cv_file_magic_cmd='$OBJDUMP -f'
32655 fi
32656 ;;
32657@@ -5447,6 +5533,21 @@ esac
32658 fi
32659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
32660 $as_echo "$lt_cv_deplibs_check_method" >&6; }
32661+
32662+file_magic_glob=
32663+want_nocaseglob=no
32664+if test "$build" = "$host"; then
32665+ case $host_os in
32666+ mingw* | pw32*)
32667+ if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
32668+ want_nocaseglob=yes
32669+ else
32670+ file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
32671+ fi
32672+ ;;
32673+ esac
32674+fi
32675+
32676 file_magic_cmd=$lt_cv_file_magic_cmd
32677 deplibs_check_method=$lt_cv_deplibs_check_method
32678 test -z "$deplibs_check_method" && deplibs_check_method=unknown
32679@@ -5462,6 +5563,158 @@ test -z "$deplibs_check_method" && deplibs_check_method=unknown
32680
32681
32682
32683+
32684+
32685+
32686+
32687+
32688+
32689+
32690+
32691+
32692+
32693+if test -n "$ac_tool_prefix"; then
32694+ # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
32695+set dummy ${ac_tool_prefix}dlltool; ac_word=$2
32696+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32697+$as_echo_n "checking for $ac_word... " >&6; }
32698+if ${ac_cv_prog_DLLTOOL+:} false; then :
32699+ $as_echo_n "(cached) " >&6
32700+else
32701+ if test -n "$DLLTOOL"; then
32702+ ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
32703+else
32704+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32705+for as_dir in $PATH
32706+do
32707+ IFS=$as_save_IFS
32708+ test -z "$as_dir" && as_dir=.
32709+ for ac_exec_ext in '' $ac_executable_extensions; do
32710+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32711+ ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
32712+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32713+ break 2
32714+ fi
32715+done
32716+ done
32717+IFS=$as_save_IFS
32718+
32719+fi
32720+fi
32721+DLLTOOL=$ac_cv_prog_DLLTOOL
32722+if test -n "$DLLTOOL"; then
32723+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
32724+$as_echo "$DLLTOOL" >&6; }
32725+else
32726+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32727+$as_echo "no" >&6; }
32728+fi
32729+
32730+
32731+fi
32732+if test -z "$ac_cv_prog_DLLTOOL"; then
32733+ ac_ct_DLLTOOL=$DLLTOOL
32734+ # Extract the first word of "dlltool", so it can be a program name with args.
32735+set dummy dlltool; ac_word=$2
32736+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32737+$as_echo_n "checking for $ac_word... " >&6; }
32738+if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
32739+ $as_echo_n "(cached) " >&6
32740+else
32741+ if test -n "$ac_ct_DLLTOOL"; then
32742+ ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
32743+else
32744+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32745+for as_dir in $PATH
32746+do
32747+ IFS=$as_save_IFS
32748+ test -z "$as_dir" && as_dir=.
32749+ for ac_exec_ext in '' $ac_executable_extensions; do
32750+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32751+ ac_cv_prog_ac_ct_DLLTOOL="dlltool"
32752+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32753+ break 2
32754+ fi
32755+done
32756+ done
32757+IFS=$as_save_IFS
32758+
32759+fi
32760+fi
32761+ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
32762+if test -n "$ac_ct_DLLTOOL"; then
32763+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
32764+$as_echo "$ac_ct_DLLTOOL" >&6; }
32765+else
32766+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32767+$as_echo "no" >&6; }
32768+fi
32769+
32770+ if test "x$ac_ct_DLLTOOL" = x; then
32771+ DLLTOOL="false"
32772+ else
32773+ case $cross_compiling:$ac_tool_warned in
32774+yes:)
32775+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
32776+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
32777+ac_tool_warned=yes ;;
32778+esac
32779+ DLLTOOL=$ac_ct_DLLTOOL
32780+ fi
32781+else
32782+ DLLTOOL="$ac_cv_prog_DLLTOOL"
32783+fi
32784+
32785+test -z "$DLLTOOL" && DLLTOOL=dlltool
32786+
32787+
32788+
32789+
32790+
32791+
32792+
32793+
32794+
32795+
32796+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
32797+$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
32798+if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
32799+ $as_echo_n "(cached) " >&6
32800+else
32801+ lt_cv_sharedlib_from_linklib_cmd='unknown'
32802+
32803+case $host_os in
32804+cygwin* | mingw* | pw32* | cegcc*)
32805+ # two different shell functions defined in ltmain.sh
32806+ # decide which to use based on capabilities of $DLLTOOL
32807+ case `$DLLTOOL --help 2>&1` in
32808+ *--identify-strict*)
32809+ lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
32810+ ;;
32811+ *)
32812+ lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
32813+ ;;
32814+ esac
32815+ ;;
32816+*)
32817+ # fallback: assume linklib IS sharedlib
32818+ lt_cv_sharedlib_from_linklib_cmd="$ECHO"
32819+ ;;
32820+esac
32821+
32822+fi
32823+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
32824+$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
32825+sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
32826+test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
32827+
32828+
32829+
32830+
32831+
32832+
32833+
32834+
32835 plugin_option=
32836 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
32837 for plugin in $plugin_names; do
32838@@ -5476,8 +5729,10 @@ for plugin in $plugin_names; do
32839 done
32840
32841 if test -n "$ac_tool_prefix"; then
32842- # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
32843-set dummy ${ac_tool_prefix}ar; ac_word=$2
32844+ for ac_prog in ar
32845+ do
32846+ # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
32847+set dummy $ac_tool_prefix$ac_prog; ac_word=$2
32848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32849 $as_echo_n "checking for $ac_word... " >&6; }
32850 if ${ac_cv_prog_AR+:} false; then :
32851@@ -5493,7 +5748,7 @@ do
32852 test -z "$as_dir" && as_dir=.
32853 for ac_exec_ext in '' $ac_executable_extensions; do
32854 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32855- ac_cv_prog_AR="${ac_tool_prefix}ar"
32856+ ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
32857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32858 break 2
32859 fi
32860@@ -5513,11 +5768,15 @@ $as_echo "no" >&6; }
32861 fi
32862
32863
32864+ test -n "$AR" && break
32865+ done
32866 fi
32867-if test -z "$ac_cv_prog_AR"; then
32868+if test -z "$AR"; then
32869 ac_ct_AR=$AR
32870- # Extract the first word of "ar", so it can be a program name with args.
32871-set dummy ar; ac_word=$2
32872+ for ac_prog in ar
32873+do
32874+ # Extract the first word of "$ac_prog", so it can be a program name with args.
32875+set dummy $ac_prog; ac_word=$2
32876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32877 $as_echo_n "checking for $ac_word... " >&6; }
32878 if ${ac_cv_prog_ac_ct_AR+:} false; then :
32879@@ -5533,7 +5792,7 @@ do
32880 test -z "$as_dir" && as_dir=.
32881 for ac_exec_ext in '' $ac_executable_extensions; do
32882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32883- ac_cv_prog_ac_ct_AR="ar"
32884+ ac_cv_prog_ac_ct_AR="$ac_prog"
32885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32886 break 2
32887 fi
32888@@ -5552,6 +5811,10 @@ else
32889 $as_echo "no" >&6; }
32890 fi
32891
32892+
32893+ test -n "$ac_ct_AR" && break
32894+done
32895+
32896 if test "x$ac_ct_AR" = x; then
32897 AR="false"
32898 else
32899@@ -5563,25 +5826,19 @@ ac_tool_warned=yes ;;
32900 esac
32901 AR=$ac_ct_AR
32902 fi
32903-else
32904- AR="$ac_cv_prog_AR"
32905 fi
32906
32907-test -z "$AR" && AR=ar
32908-if test -n "$plugin_option"; then
32909- if $AR --help 2>&1 | grep -q "\--plugin"; then
32910- touch conftest.c
32911- $AR $plugin_option rc conftest.a conftest.c
32912- if test "$?" != 0; then
32913- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
32914+ touch conftest.c
32915+ $AR $plugin_option rc conftest.a conftest.c
32916+ if test "$?" != 0; then
32917+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
32918 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
32919- else
32920- AR="$AR $plugin_option"
32921- fi
32922- rm -f conftest.*
32923+ else
32924+ AR="$AR $plugin_option"
32925 fi
32926-fi
32927-test -z "$AR_FLAGS" && AR_FLAGS=cru
32928+ rm -f conftest.*
32929+: ${AR=ar}
32930+: ${AR_FLAGS=cru}
32931
32932
32933
32934@@ -5593,6 +5850,64 @@ test -z "$AR_FLAGS" && AR_FLAGS=cru
32935
32936
32937
32938+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
32939+$as_echo_n "checking for archiver @FILE support... " >&6; }
32940+if ${lt_cv_ar_at_file+:} false; then :
32941+ $as_echo_n "(cached) " >&6
32942+else
32943+ lt_cv_ar_at_file=no
32944+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32945+/* end confdefs.h. */
32946+
32947+int
32948+main ()
32949+{
32950+
32951+ ;
32952+ return 0;
32953+}
32954+_ACEOF
32955+if ac_fn_c_try_compile "$LINENO"; then :
32956+ echo conftest.$ac_objext > conftest.lst
32957+ lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
32958+ { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
32959+ (eval $lt_ar_try) 2>&5
32960+ ac_status=$?
32961+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32962+ test $ac_status = 0; }
32963+ if test "$ac_status" -eq 0; then
32964+ # Ensure the archiver fails upon bogus file names.
32965+ rm -f conftest.$ac_objext libconftest.a
32966+ { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
32967+ (eval $lt_ar_try) 2>&5
32968+ ac_status=$?
32969+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32970+ test $ac_status = 0; }
32971+ if test "$ac_status" -ne 0; then
32972+ lt_cv_ar_at_file=@
32973+ fi
32974+ fi
32975+ rm -f conftest.* libconftest.a
32976+
32977+fi
32978+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32979+
32980+fi
32981+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
32982+$as_echo "$lt_cv_ar_at_file" >&6; }
32983+
32984+if test "x$lt_cv_ar_at_file" = xno; then
32985+ archiver_list_spec=
32986+else
32987+ archiver_list_spec=$lt_cv_ar_at_file
32988+fi
32989+
32990+
32991+
32992+
32993+
32994+
32995+
32996 if test -n "$ac_tool_prefix"; then
32997 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
32998 set dummy ${ac_tool_prefix}strip; ac_word=$2
32999@@ -5932,8 +6247,8 @@ esac
33000 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
33001
33002 # Transform an extracted symbol line into symbol name and symbol address
33003-lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
33004-lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
33005+lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
33006+lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
33007
33008 # Handle CRLF in mingw tool chain
33009 opt_cr=
33010@@ -5969,6 +6284,7 @@ for ac_symprfx in "" "_"; do
33011 else
33012 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
33013 fi
33014+ lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
33015
33016 # Check to see that the pipe works correctly.
33017 pipe_works=no
33018@@ -6010,6 +6326,18 @@ _LT_EOF
33019 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
33020 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
33021 cat <<_LT_EOF > conftest.$ac_ext
33022+/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
33023+#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
33024+/* DATA imports from DLLs on WIN32 con't be const, because runtime
33025+ relocations are performed -- see ld's documentation on pseudo-relocs. */
33026+# define LT_DLSYM_CONST
33027+#elif defined(__osf__)
33028+/* This system does not cope well with relocations in const data. */
33029+# define LT_DLSYM_CONST
33030+#else
33031+# define LT_DLSYM_CONST const
33032+#endif
33033+
33034 #ifdef __cplusplus
33035 extern "C" {
33036 #endif
33037@@ -6021,7 +6349,7 @@ _LT_EOF
33038 cat <<_LT_EOF >> conftest.$ac_ext
33039
33040 /* The mapping between symbol names and symbols. */
33041-const struct {
33042+LT_DLSYM_CONST struct {
33043 const char *name;
33044 void *address;
33045 }
33046@@ -6047,8 +6375,8 @@ static const void *lt_preloaded_setup() {
33047 _LT_EOF
33048 # Now try linking the two files.
33049 mv conftest.$ac_objext conftstm.$ac_objext
33050- lt_save_LIBS="$LIBS"
33051- lt_save_CFLAGS="$CFLAGS"
33052+ lt_globsym_save_LIBS=$LIBS
33053+ lt_globsym_save_CFLAGS=$CFLAGS
33054 LIBS="conftstm.$ac_objext"
33055 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
33056 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
33057@@ -6058,8 +6386,8 @@ _LT_EOF
33058 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
33059 pipe_works=yes
33060 fi
33061- LIBS="$lt_save_LIBS"
33062- CFLAGS="$lt_save_CFLAGS"
33063+ LIBS=$lt_globsym_save_LIBS
33064+ CFLAGS=$lt_globsym_save_CFLAGS
33065 else
33066 echo "cannot find nm_test_func in $nlist" >&5
33067 fi
33068@@ -6096,6 +6424,17 @@ else
33069 $as_echo "ok" >&6; }
33070 fi
33071
33072+# Response file support.
33073+if test "$lt_cv_nm_interface" = "MS dumpbin"; then
33074+ nm_file_list_spec='@'
33075+elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
33076+ nm_file_list_spec='@'
33077+fi
33078+
33079+
33080+
33081+
33082+
33083
33084
33085
33086@@ -6113,6 +6452,43 @@ fi
33087
33088
33089
33090+
33091+
33092+
33093+
33094+
33095+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
33096+$as_echo_n "checking for sysroot... " >&6; }
33097+
33098+# Check whether --with-libtool-sysroot was given.
33099+if test "${with_libtool_sysroot+set}" = set; then :
33100+ withval=$with_libtool_sysroot;
33101+else
33102+ with_libtool_sysroot=no
33103+fi
33104+
33105+
33106+lt_sysroot=
33107+case ${with_libtool_sysroot} in #(
33108+ yes)
33109+ if test "$GCC" = yes; then
33110+ lt_sysroot=`$CC --print-sysroot 2>/dev/null`
33111+ fi
33112+ ;; #(
33113+ /*)
33114+ lt_sysroot=`echo "$with_libtool_sysroot" | sed -e "$sed_quote_subst"`
33115+ ;; #(
33116+ no|'')
33117+ ;; #(
33118+ *)
33119+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_libtool_sysroot}" >&5
33120+$as_echo "${with_libtool_sysroot}" >&6; }
33121+ as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
33122+ ;;
33123+esac
33124+
33125+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
33126+$as_echo "${lt_sysroot:-no}" >&6; }
33127
33128
33129
33130@@ -6327,6 +6703,123 @@ esac
33131
33132 need_locks="$enable_libtool_lock"
33133
33134+if test -n "$ac_tool_prefix"; then
33135+ # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
33136+set dummy ${ac_tool_prefix}mt; ac_word=$2
33137+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33138+$as_echo_n "checking for $ac_word... " >&6; }
33139+if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
33140+ $as_echo_n "(cached) " >&6
33141+else
33142+ if test -n "$MANIFEST_TOOL"; then
33143+ ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
33144+else
33145+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33146+for as_dir in $PATH
33147+do
33148+ IFS=$as_save_IFS
33149+ test -z "$as_dir" && as_dir=.
33150+ for ac_exec_ext in '' $ac_executable_extensions; do
33151+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33152+ ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
33153+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33154+ break 2
33155+ fi
33156+done
33157+ done
33158+IFS=$as_save_IFS
33159+
33160+fi
33161+fi
33162+MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
33163+if test -n "$MANIFEST_TOOL"; then
33164+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
33165+$as_echo "$MANIFEST_TOOL" >&6; }
33166+else
33167+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33168+$as_echo "no" >&6; }
33169+fi
33170+
33171+
33172+fi
33173+if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
33174+ ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
33175+ # Extract the first word of "mt", so it can be a program name with args.
33176+set dummy mt; ac_word=$2
33177+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33178+$as_echo_n "checking for $ac_word... " >&6; }
33179+if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
33180+ $as_echo_n "(cached) " >&6
33181+else
33182+ if test -n "$ac_ct_MANIFEST_TOOL"; then
33183+ ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
33184+else
33185+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33186+for as_dir in $PATH
33187+do
33188+ IFS=$as_save_IFS
33189+ test -z "$as_dir" && as_dir=.
33190+ for ac_exec_ext in '' $ac_executable_extensions; do
33191+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33192+ ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
33193+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33194+ break 2
33195+ fi
33196+done
33197+ done
33198+IFS=$as_save_IFS
33199+
33200+fi
33201+fi
33202+ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
33203+if test -n "$ac_ct_MANIFEST_TOOL"; then
33204+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
33205+$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
33206+else
33207+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33208+$as_echo "no" >&6; }
33209+fi
33210+
33211+ if test "x$ac_ct_MANIFEST_TOOL" = x; then
33212+ MANIFEST_TOOL=":"
33213+ else
33214+ case $cross_compiling:$ac_tool_warned in
33215+yes:)
33216+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
33217+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
33218+ac_tool_warned=yes ;;
33219+esac
33220+ MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
33221+ fi
33222+else
33223+ MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
33224+fi
33225+
33226+test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
33227+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
33228+$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
33229+if ${lt_cv_path_mainfest_tool+:} false; then :
33230+ $as_echo_n "(cached) " >&6
33231+else
33232+ lt_cv_path_mainfest_tool=no
33233+ echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
33234+ $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
33235+ cat conftest.err >&5
33236+ if $GREP 'Manifest Tool' conftest.out > /dev/null; then
33237+ lt_cv_path_mainfest_tool=yes
33238+ fi
33239+ rm -f conftest*
33240+fi
33241+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
33242+$as_echo "$lt_cv_path_mainfest_tool" >&6; }
33243+if test "x$lt_cv_path_mainfest_tool" != xyes; then
33244+ MANIFEST_TOOL=:
33245+fi
33246+
33247+
33248+
33249+
33250+
33251
33252 case $host_os in
33253 rhapsody* | darwin*)
33254@@ -6893,6 +7386,8 @@ _LT_EOF
33255 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
33256 echo "$AR cru libconftest.a conftest.o" >&5
33257 $AR cru libconftest.a conftest.o 2>&5
33258+ echo "$RANLIB libconftest.a" >&5
33259+ $RANLIB libconftest.a 2>&5
33260 cat > conftest.c << _LT_EOF
33261 int main() { return 0;}
33262 _LT_EOF
33263@@ -7744,8 +8239,6 @@ fi
33264 lt_prog_compiler_pic=
33265 lt_prog_compiler_static=
33266
33267-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
33268-$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
33269
33270 if test "$GCC" = yes; then
33271 lt_prog_compiler_wl='-Wl,'
33272@@ -7911,6 +8404,12 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
33273 lt_prog_compiler_pic='--shared'
33274 lt_prog_compiler_static='--static'
33275 ;;
33276+ nagfor*)
33277+ # NAG Fortran compiler
33278+ lt_prog_compiler_wl='-Wl,-Wl,,'
33279+ lt_prog_compiler_pic='-PIC'
33280+ lt_prog_compiler_static='-Bstatic'
33281+ ;;
33282 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
33283 # Portland Group compilers (*not* the Pentium gcc compiler,
33284 # which looks to be a dead project)
33285@@ -7973,7 +8472,7 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
33286 lt_prog_compiler_pic='-KPIC'
33287 lt_prog_compiler_static='-Bstatic'
33288 case $cc_basename in
33289- f77* | f90* | f95*)
33290+ f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
33291 lt_prog_compiler_wl='-Qoption ld ';;
33292 *)
33293 lt_prog_compiler_wl='-Wl,';;
33294@@ -8030,13 +8529,17 @@ case $host_os in
33295 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
33296 ;;
33297 esac
33298-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
33299-$as_echo "$lt_prog_compiler_pic" >&6; }
33300-
33301-
33302-
33303-
33304
33305+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
33306+$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
33307+if ${lt_cv_prog_compiler_pic+:} false; then :
33308+ $as_echo_n "(cached) " >&6
33309+else
33310+ lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
33311+fi
33312+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
33313+$as_echo "$lt_cv_prog_compiler_pic" >&6; }
33314+lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
33315
33316 #
33317 # Check to make sure the PIC flag actually works.
33318@@ -8097,6 +8600,11 @@ fi
33319
33320
33321
33322+
33323+
33324+
33325+
33326+
33327 #
33328 # Check to make sure the static flag actually works.
33329 #
33330@@ -8447,7 +8955,8 @@ _LT_EOF
33331 allow_undefined_flag=unsupported
33332 always_export_symbols=no
33333 enable_shared_with_static_runtimes=yes
33334- export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
33335+ export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
33336+ exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
33337
33338 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
33339 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
33340@@ -8546,12 +9055,12 @@ _LT_EOF
33341 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
33342 hardcode_libdir_flag_spec=
33343 hardcode_libdir_flag_spec_ld='-rpath $libdir'
33344- archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
33345+ archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
33346 if test "x$supports_anon_versioning" = xyes; then
33347 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
33348 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
33349 echo "local: *; };" >> $output_objdir/$libname.ver~
33350- $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
33351+ $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
33352 fi
33353 ;;
33354 esac
33355@@ -8565,8 +9074,8 @@ _LT_EOF
33356 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
33357 wlarc=
33358 else
33359- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
33360- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
33361+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
33362+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
33363 fi
33364 ;;
33365
33366@@ -8584,8 +9093,8 @@ _LT_EOF
33367
33368 _LT_EOF
33369 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
33370- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
33371- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
33372+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
33373+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
33374 else
33375 ld_shlibs=no
33376 fi
33377@@ -8631,8 +9140,8 @@ _LT_EOF
33378
33379 *)
33380 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
33381- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
33382- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
33383+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
33384+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
33385 else
33386 ld_shlibs=no
33387 fi
33388@@ -8762,7 +9271,13 @@ _LT_EOF
33389 allow_undefined_flag='-berok'
33390 # Determine the default libpath from the value encoded in an
33391 # empty executable.
33392- if test x$gcc_no_link = xyes; then
33393+ if test "${lt_cv_aix_libpath+set}" = set; then
33394+ aix_libpath=$lt_cv_aix_libpath
33395+else
33396+ if ${lt_cv_aix_libpath_+:} false; then :
33397+ $as_echo_n "(cached) " >&6
33398+else
33399+ if test x$gcc_no_link = xyes; then
33400 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
33401 fi
33402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33403@@ -8778,22 +9293,29 @@ main ()
33404 _ACEOF
33405 if ac_fn_c_try_link "$LINENO"; then :
33406
33407-lt_aix_libpath_sed='
33408- /Import File Strings/,/^$/ {
33409- /^0/ {
33410- s/^0 *\(.*\)$/\1/
33411- p
33412- }
33413- }'
33414-aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
33415-# Check for a 64-bit object if we didn't find anything.
33416-if test -z "$aix_libpath"; then
33417- aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
33418-fi
33419+ lt_aix_libpath_sed='
33420+ /Import File Strings/,/^$/ {
33421+ /^0/ {
33422+ s/^0 *\([^ ]*\) *$/\1/
33423+ p
33424+ }
33425+ }'
33426+ lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
33427+ # Check for a 64-bit object if we didn't find anything.
33428+ if test -z "$lt_cv_aix_libpath_"; then
33429+ lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
33430+ fi
33431 fi
33432 rm -f core conftest.err conftest.$ac_objext \
33433 conftest$ac_exeext conftest.$ac_ext
33434-if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
33435+ if test -z "$lt_cv_aix_libpath_"; then
33436+ lt_cv_aix_libpath_="/usr/lib:/lib"
33437+ fi
33438+
33439+fi
33440+
33441+ aix_libpath=$lt_cv_aix_libpath_
33442+fi
33443
33444 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
33445 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
33446@@ -8805,7 +9327,13 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
33447 else
33448 # Determine the default libpath from the value encoded in an
33449 # empty executable.
33450- if test x$gcc_no_link = xyes; then
33451+ if test "${lt_cv_aix_libpath+set}" = set; then
33452+ aix_libpath=$lt_cv_aix_libpath
33453+else
33454+ if ${lt_cv_aix_libpath_+:} false; then :
33455+ $as_echo_n "(cached) " >&6
33456+else
33457+ if test x$gcc_no_link = xyes; then
33458 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
33459 fi
33460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33461@@ -8821,22 +9349,29 @@ main ()
33462 _ACEOF
33463 if ac_fn_c_try_link "$LINENO"; then :
33464
33465-lt_aix_libpath_sed='
33466- /Import File Strings/,/^$/ {
33467- /^0/ {
33468- s/^0 *\(.*\)$/\1/
33469- p
33470- }
33471- }'
33472-aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
33473-# Check for a 64-bit object if we didn't find anything.
33474-if test -z "$aix_libpath"; then
33475- aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
33476-fi
33477+ lt_aix_libpath_sed='
33478+ /Import File Strings/,/^$/ {
33479+ /^0/ {
33480+ s/^0 *\([^ ]*\) *$/\1/
33481+ p
33482+ }
33483+ }'
33484+ lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
33485+ # Check for a 64-bit object if we didn't find anything.
33486+ if test -z "$lt_cv_aix_libpath_"; then
33487+ lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
33488+ fi
33489 fi
33490 rm -f core conftest.err conftest.$ac_objext \
33491 conftest$ac_exeext conftest.$ac_ext
33492-if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
33493+ if test -z "$lt_cv_aix_libpath_"; then
33494+ lt_cv_aix_libpath_="/usr/lib:/lib"
33495+ fi
33496+
33497+fi
33498+
33499+ aix_libpath=$lt_cv_aix_libpath_
33500+fi
33501
33502 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
33503 # Warning - without using the other run time loading flags,
33504@@ -8881,20 +9416,63 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
33505 # Microsoft Visual C++.
33506 # hardcode_libdir_flag_spec is actually meaningless, as there is
33507 # no search path for DLLs.
33508- hardcode_libdir_flag_spec=' '
33509- allow_undefined_flag=unsupported
33510- # Tell ltmain to make .lib files, not .a files.
33511- libext=lib
33512- # Tell ltmain to make .dll files, not .so files.
33513- shrext_cmds=".dll"
33514- # FIXME: Setting linknames here is a bad hack.
33515- archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
33516- # The linker will automatically build a .lib file if we build a DLL.
33517- old_archive_from_new_cmds='true'
33518- # FIXME: Should let the user specify the lib program.
33519- old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
33520- fix_srcfile_path='`cygpath -w "$srcfile"`'
33521- enable_shared_with_static_runtimes=yes
33522+ case $cc_basename in
33523+ cl*)
33524+ # Native MSVC
33525+ hardcode_libdir_flag_spec=' '
33526+ allow_undefined_flag=unsupported
33527+ always_export_symbols=yes
33528+ file_list_spec='@'
33529+ # Tell ltmain to make .lib files, not .a files.
33530+ libext=lib
33531+ # Tell ltmain to make .dll files, not .so files.
33532+ shrext_cmds=".dll"
33533+ # FIXME: Setting linknames here is a bad hack.
33534+ archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
33535+ archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
33536+ sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
33537+ else
33538+ sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
33539+ fi~
33540+ $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
33541+ linknames='
33542+ # The linker will not automatically build a static lib if we build a DLL.
33543+ # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
33544+ enable_shared_with_static_runtimes=yes
33545+ export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
33546+ # Don't use ranlib
33547+ old_postinstall_cmds='chmod 644 $oldlib'
33548+ postlink_cmds='lt_outputfile="@OUTPUT@"~
33549+ lt_tool_outputfile="@TOOL_OUTPUT@"~
33550+ case $lt_outputfile in
33551+ *.exe|*.EXE) ;;
33552+ *)
33553+ lt_outputfile="$lt_outputfile.exe"
33554+ lt_tool_outputfile="$lt_tool_outputfile.exe"
33555+ ;;
33556+ esac~
33557+ if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
33558+ $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
33559+ $RM "$lt_outputfile.manifest";
33560+ fi'
33561+ ;;
33562+ *)
33563+ # Assume MSVC wrapper
33564+ hardcode_libdir_flag_spec=' '
33565+ allow_undefined_flag=unsupported
33566+ # Tell ltmain to make .lib files, not .a files.
33567+ libext=lib
33568+ # Tell ltmain to make .dll files, not .so files.
33569+ shrext_cmds=".dll"
33570+ # FIXME: Setting linknames here is a bad hack.
33571+ archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
33572+ # The linker will automatically build a .lib file if we build a DLL.
33573+ old_archive_from_new_cmds='true'
33574+ # FIXME: Should let the user specify the lib program.
33575+ old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
33576+ enable_shared_with_static_runtimes=yes
33577+ ;;
33578+ esac
33579 ;;
33580
33581 darwin* | rhapsody*)
33582@@ -8955,7 +9533,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
33583
33584 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
33585 freebsd* | dragonfly*)
33586- archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
33587+ archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
33588 hardcode_libdir_flag_spec='-R$libdir'
33589 hardcode_direct=yes
33590 hardcode_shlibpath_var=no
33591@@ -8963,7 +9541,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
33592
33593 hpux9*)
33594 if test "$GCC" = yes; then
33595- archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
33596+ archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
33597 else
33598 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
33599 fi
33600@@ -8979,7 +9557,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
33601
33602 hpux10*)
33603 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
33604- archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
33605+ archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
33606 else
33607 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
33608 fi
33609@@ -9003,10 +9581,10 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
33610 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
33611 ;;
33612 ia64*)
33613- archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
33614+ archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
33615 ;;
33616 *)
33617- archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
33618+ archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
33619 ;;
33620 esac
33621 else
33622@@ -9085,26 +9663,39 @@ fi
33623
33624 irix5* | irix6* | nonstopux*)
33625 if test "$GCC" = yes; then
33626- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
33627+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
33628 # Try to use the -exported_symbol ld option, if it does not
33629 # work, assume that -exports_file does not work either and
33630 # implicitly export all symbols.
33631- save_LDFLAGS="$LDFLAGS"
33632- LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
33633- if test x$gcc_no_link = xyes; then
33634+ # This should be the same for all languages, so no per-tag cache variable.
33635+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
33636+$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
33637+if ${lt_cv_irix_exported_symbol+:} false; then :
33638+ $as_echo_n "(cached) " >&6
33639+else
33640+ save_LDFLAGS="$LDFLAGS"
33641+ LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
33642+ if test x$gcc_no_link = xyes; then
33643 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
33644 fi
33645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33646 /* end confdefs.h. */
33647-int foo(void) {}
33648+int foo (void) { return 0; }
33649 _ACEOF
33650 if ac_fn_c_try_link "$LINENO"; then :
33651- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
33652-
33653+ lt_cv_irix_exported_symbol=yes
33654+else
33655+ lt_cv_irix_exported_symbol=no
33656 fi
33657 rm -f core conftest.err conftest.$ac_objext \
33658 conftest$ac_exeext conftest.$ac_ext
33659- LDFLAGS="$save_LDFLAGS"
33660+ LDFLAGS="$save_LDFLAGS"
33661+fi
33662+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
33663+$as_echo "$lt_cv_irix_exported_symbol" >&6; }
33664+ if test "$lt_cv_irix_exported_symbol" = yes; then
33665+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
33666+ fi
33667 else
33668 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
33669 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
33670@@ -9189,7 +9780,7 @@ rm -f core conftest.err conftest.$ac_objext \
33671 osf4* | osf5*) # as osf3* with the addition of -msym flag
33672 if test "$GCC" = yes; then
33673 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
33674- archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
33675+ archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
33676 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
33677 else
33678 allow_undefined_flag=' -expect_unresolved \*'
33679@@ -9208,9 +9799,9 @@ rm -f core conftest.err conftest.$ac_objext \
33680 no_undefined_flag=' -z defs'
33681 if test "$GCC" = yes; then
33682 wlarc='${wl}'
33683- archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
33684+ archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
33685 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
33686- $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
33687+ $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
33688 else
33689 case `$CC -V 2>&1` in
33690 *"Compilers 5.0"*)
33691@@ -9786,8 +10377,9 @@ cygwin* | mingw* | pw32* | cegcc*)
33692 need_version=no
33693 need_lib_prefix=no
33694
33695- case $GCC,$host_os in
33696- yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
33697+ case $GCC,$cc_basename in
33698+ yes,*)
33699+ # gcc
33700 library_names_spec='$libname.dll.a'
33701 # DLL is installed to $(libdir)/../bin by postinstall_cmds
33702 postinstall_cmds='base_file=`basename \${file}`~
33703@@ -9820,13 +10412,71 @@ cygwin* | mingw* | pw32* | cegcc*)
33704 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
33705 ;;
33706 esac
33707+ dynamic_linker='Win32 ld.exe'
33708+ ;;
33709+
33710+ *,cl*)
33711+ # Native MSVC
33712+ libname_spec='$name'
33713+ soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
33714+ library_names_spec='${libname}.dll.lib'
33715+
33716+ case $build_os in
33717+ mingw*)
33718+ sys_lib_search_path_spec=
33719+ lt_save_ifs=$IFS
33720+ IFS=';'
33721+ for lt_path in $LIB
33722+ do
33723+ IFS=$lt_save_ifs
33724+ # Let DOS variable expansion print the short 8.3 style file name.
33725+ lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
33726+ sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
33727+ done
33728+ IFS=$lt_save_ifs
33729+ # Convert to MSYS style.
33730+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
33731+ ;;
33732+ cygwin*)
33733+ # Convert to unix form, then to dos form, then back to unix form
33734+ # but this time dos style (no spaces!) so that the unix form looks
33735+ # like /cygdrive/c/PROGRA~1:/cygdr...
33736+ sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
33737+ sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
33738+ sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
33739+ ;;
33740+ *)
33741+ sys_lib_search_path_spec="$LIB"
33742+ if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
33743+ # It is most probably a Windows format PATH.
33744+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
33745+ else
33746+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
33747+ fi
33748+ # FIXME: find the short name or the path components, as spaces are
33749+ # common. (e.g. "Program Files" -> "PROGRA~1")
33750+ ;;
33751+ esac
33752+
33753+ # DLL is installed to $(libdir)/../bin by postinstall_cmds
33754+ postinstall_cmds='base_file=`basename \${file}`~
33755+ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
33756+ dldir=$destdir/`dirname \$dlpath`~
33757+ test -d \$dldir || mkdir -p \$dldir~
33758+ $install_prog $dir/$dlname \$dldir/$dlname'
33759+ postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
33760+ dlpath=$dir/\$dldll~
33761+ $RM \$dlpath'
33762+ shlibpath_overrides_runpath=yes
33763+ dynamic_linker='Win32 link.exe'
33764 ;;
33765
33766 *)
33767+ # Assume MSVC wrapper
33768 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
33769+ dynamic_linker='Win32 ld.exe'
33770 ;;
33771 esac
33772- dynamic_linker='Win32 ld.exe'
33773 # FIXME: first we should search . and the directory the executable is in
33774 shlibpath_var=PATH
33775 ;;
33776@@ -10746,7 +11396,7 @@ else
33777 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
33778 lt_status=$lt_dlunknown
33779 cat > conftest.$ac_ext <<_LT_EOF
33780-#line 10749 "configure"
33781+#line $LINENO "configure"
33782 #include "confdefs.h"
33783
33784 #if HAVE_DLFCN_H
33785@@ -10790,10 +11440,10 @@ else
33786 /* When -fvisbility=hidden is used, assume the code has been annotated
33787 correspondingly for the symbols needed. */
33788 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
33789-void fnord () __attribute__((visibility("default")));
33790+int fnord () __attribute__((visibility("default")));
33791 #endif
33792
33793-void fnord () { int i=42; }
33794+int fnord () { return 42; }
33795 int main ()
33796 {
33797 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
33798@@ -10852,7 +11502,7 @@ else
33799 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
33800 lt_status=$lt_dlunknown
33801 cat > conftest.$ac_ext <<_LT_EOF
33802-#line 10855 "configure"
33803+#line $LINENO "configure"
33804 #include "confdefs.h"
33805
33806 #if HAVE_DLFCN_H
33807@@ -10896,10 +11546,10 @@ else
33808 /* When -fvisbility=hidden is used, assume the code has been annotated
33809 correspondingly for the symbols needed. */
33810 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
33811-void fnord () __attribute__((visibility("default")));
33812+int fnord () __attribute__((visibility("default")));
33813 #endif
33814
33815-void fnord () { int i=42; }
33816+int fnord () { return 42; }
33817 int main ()
33818 {
33819 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
33820@@ -12385,13 +13035,20 @@ exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
33821 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
33822 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
33823 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
33824+lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
33825+lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
33826 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
33827 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
33828 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
33829 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
33830 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
33831+file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
33832+want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
33833+DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
33834+sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
33835 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
33836 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
33837+archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
33838 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
33839 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
33840 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
33841@@ -12406,14 +13063,17 @@ lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$de
33842 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
33843 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
33844 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
33845+nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
33846+lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
33847 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
33848 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
33849 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
33850-lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
33851 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
33852+lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
33853 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
33854 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
33855 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
33856+MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
33857 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
33858 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
33859 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
33860@@ -12446,12 +13106,12 @@ hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_q
33861 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
33862 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
33863 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
33864-fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
33865 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
33866 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
33867 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
33868 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
33869 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
33870+postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
33871 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
33872 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
33873 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
33874@@ -12506,8 +13166,13 @@ reload_flag \
33875 OBJDUMP \
33876 deplibs_check_method \
33877 file_magic_cmd \
33878+file_magic_glob \
33879+want_nocaseglob \
33880+DLLTOOL \
33881+sharedlib_from_linklib_cmd \
33882 AR \
33883 AR_FLAGS \
33884+archiver_list_spec \
33885 STRIP \
33886 RANLIB \
33887 CC \
33888@@ -12517,12 +13182,14 @@ lt_cv_sys_global_symbol_pipe \
33889 lt_cv_sys_global_symbol_to_cdecl \
33890 lt_cv_sys_global_symbol_to_c_name_address \
33891 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
33892+nm_file_list_spec \
33893 lt_prog_compiler_no_builtin_flag \
33894-lt_prog_compiler_wl \
33895 lt_prog_compiler_pic \
33896+lt_prog_compiler_wl \
33897 lt_prog_compiler_static \
33898 lt_cv_prog_compiler_c_o \
33899 need_locks \
33900+MANIFEST_TOOL \
33901 DSYMUTIL \
33902 NMEDIT \
33903 LIPO \
33904@@ -12538,7 +13205,6 @@ no_undefined_flag \
33905 hardcode_libdir_flag_spec \
33906 hardcode_libdir_flag_spec_ld \
33907 hardcode_libdir_separator \
33908-fix_srcfile_path \
33909 exclude_expsyms \
33910 include_expsyms \
33911 file_list_spec \
33912@@ -12574,6 +13240,7 @@ module_cmds \
33913 module_expsym_cmds \
33914 export_symbols_cmds \
33915 prelink_cmds \
33916+postlink_cmds \
33917 postinstall_cmds \
33918 postuninstall_cmds \
33919 finish_cmds \
33920@@ -13172,7 +13839,8 @@ $as_echo X"$file" |
33921 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
33922 #
33923 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
33924-# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
33925+# 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
33926+# Inc.
33927 # Written by Gordon Matzigkeit, 1996
33928 #
33929 # This file is part of GNU Libtool.
33930@@ -13275,19 +13943,42 @@ SP2NL=$lt_lt_SP2NL
33931 # turn newlines into spaces.
33932 NL2SP=$lt_lt_NL2SP
33933
33934+# convert \$build file names to \$host format.
33935+to_host_file_cmd=$lt_cv_to_host_file_cmd
33936+
33937+# convert \$build files to toolchain format.
33938+to_tool_file_cmd=$lt_cv_to_tool_file_cmd
33939+
33940 # An object symbol dumper.
33941 OBJDUMP=$lt_OBJDUMP
33942
33943 # Method to check whether dependent libraries are shared objects.
33944 deplibs_check_method=$lt_deplibs_check_method
33945
33946-# Command to use when deplibs_check_method == "file_magic".
33947+# Command to use when deplibs_check_method = "file_magic".
33948 file_magic_cmd=$lt_file_magic_cmd
33949
33950+# How to find potential files when deplibs_check_method = "file_magic".
33951+file_magic_glob=$lt_file_magic_glob
33952+
33953+# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
33954+want_nocaseglob=$lt_want_nocaseglob
33955+
33956+# DLL creation program.
33957+DLLTOOL=$lt_DLLTOOL
33958+
33959+# Command to associate shared and link libraries.
33960+sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
33961+
33962 # The archiver.
33963 AR=$lt_AR
33964+
33965+# Flags to create an archive.
33966 AR_FLAGS=$lt_AR_FLAGS
33967
33968+# How to feed a file listing to the archiver.
33969+archiver_list_spec=$lt_archiver_list_spec
33970+
33971 # A symbol stripping program.
33972 STRIP=$lt_STRIP
33973
33974@@ -13317,6 +14008,12 @@ global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
33975 # Transform the output of nm in a C name address pair when lib prefix is needed.
33976 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
33977
33978+# Specify filename containing input files for \$NM.
33979+nm_file_list_spec=$lt_nm_file_list_spec
33980+
33981+# The root where to search for dependent libraries,and in which our libraries should be installed.
33982+lt_sysroot=$lt_sysroot
33983+
33984 # The name of the directory that contains temporary libtool files.
33985 objdir=$objdir
33986
33987@@ -13326,6 +14023,9 @@ MAGIC_CMD=$MAGIC_CMD
33988 # Must we lock files when doing compilation?
33989 need_locks=$lt_need_locks
33990
33991+# Manifest tool.
33992+MANIFEST_TOOL=$lt_MANIFEST_TOOL
33993+
33994 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
33995 DSYMUTIL=$lt_DSYMUTIL
33996
33997@@ -13440,12 +14140,12 @@ with_gcc=$GCC
33998 # Compiler flag to turn off builtin functions.
33999 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
34000
34001-# How to pass a linker flag through the compiler.
34002-wl=$lt_lt_prog_compiler_wl
34003-
34004 # Additional compiler flags for building library objects.
34005 pic_flag=$lt_lt_prog_compiler_pic
34006
34007+# How to pass a linker flag through the compiler.
34008+wl=$lt_lt_prog_compiler_wl
34009+
34010 # Compiler flag to prevent dynamic linking.
34011 link_static_flag=$lt_lt_prog_compiler_static
34012
34013@@ -13532,9 +14232,6 @@ inherit_rpath=$inherit_rpath
34014 # Whether libtool must link a program against all its dependency libraries.
34015 link_all_deplibs=$link_all_deplibs
34016
34017-# Fix the shell variable \$srcfile for the compiler.
34018-fix_srcfile_path=$lt_fix_srcfile_path
34019-
34020 # Set to "yes" if exported symbols are required.
34021 always_export_symbols=$always_export_symbols
34022
34023@@ -13550,6 +14247,9 @@ include_expsyms=$lt_include_expsyms
34024 # Commands necessary for linking programs (against libraries) with templates.
34025 prelink_cmds=$lt_prelink_cmds
34026
34027+# Commands necessary for finishing linking programs.
34028+postlink_cmds=$lt_postlink_cmds
34029+
34030 # Specify filename containing input files.
34031 file_list_spec=$lt_file_list_spec
34032
34033@@ -13582,210 +14282,169 @@ ltmain="$ac_aux_dir/ltmain.sh"
34034 # if finds mixed CR/LF and LF-only lines. Since sed operates in
34035 # text mode, it properly converts lines to CR/LF. This bash problem
34036 # is reportedly fixed, but why not run on old versions too?
34037- sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
34038- || (rm -f "$cfgfile"; exit 1)
34039-
34040- case $xsi_shell in
34041- yes)
34042- cat << \_LT_EOF >> "$cfgfile"
34043-
34044-# func_dirname file append nondir_replacement
34045-# Compute the dirname of FILE. If nonempty, add APPEND to the result,
34046-# otherwise set result to NONDIR_REPLACEMENT.
34047-func_dirname ()
34048-{
34049- case ${1} in
34050- */*) func_dirname_result="${1%/*}${2}" ;;
34051- * ) func_dirname_result="${3}" ;;
34052- esac
34053-}
34054-
34055-# func_basename file
34056-func_basename ()
34057-{
34058- func_basename_result="${1##*/}"
34059-}
34060-
34061-# func_dirname_and_basename file append nondir_replacement
34062-# perform func_basename and func_dirname in a single function
34063-# call:
34064-# dirname: Compute the dirname of FILE. If nonempty,
34065-# add APPEND to the result, otherwise set result
34066-# to NONDIR_REPLACEMENT.
34067-# value returned in "$func_dirname_result"
34068-# basename: Compute filename of FILE.
34069-# value retuned in "$func_basename_result"
34070-# Implementation must be kept synchronized with func_dirname
34071-# and func_basename. For efficiency, we do not delegate to
34072-# those functions but instead duplicate the functionality here.
34073-func_dirname_and_basename ()
34074-{
34075- case ${1} in
34076- */*) func_dirname_result="${1%/*}${2}" ;;
34077- * ) func_dirname_result="${3}" ;;
34078- esac
34079- func_basename_result="${1##*/}"
34080-}
34081-
34082-# func_stripname prefix suffix name
34083-# strip PREFIX and SUFFIX off of NAME.
34084-# PREFIX and SUFFIX must not contain globbing or regex special
34085-# characters, hashes, percent signs, but SUFFIX may contain a leading
34086-# dot (in which case that matches only a dot).
34087-func_stripname ()
34088-{
34089- # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
34090- # positional parameters, so assign one to ordinary parameter first.
34091- func_stripname_result=${3}
34092- func_stripname_result=${func_stripname_result#"${1}"}
34093- func_stripname_result=${func_stripname_result%"${2}"}
34094-}
34095-
34096-# func_opt_split
34097-func_opt_split ()
34098-{
34099- func_opt_split_opt=${1%%=*}
34100- func_opt_split_arg=${1#*=}
34101-}
34102-
34103-# func_lo2o object
34104-func_lo2o ()
34105-{
34106- case ${1} in
34107- *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
34108- *) func_lo2o_result=${1} ;;
34109- esac
34110-}
34111-
34112-# func_xform libobj-or-source
34113-func_xform ()
34114-{
34115- func_xform_result=${1%.*}.lo
34116-}
34117-
34118-# func_arith arithmetic-term...
34119-func_arith ()
34120-{
34121- func_arith_result=$(( $* ))
34122-}
34123-
34124-# func_len string
34125-# STRING may not start with a hyphen.
34126-func_len ()
34127-{
34128- func_len_result=${#1}
34129-}
34130-
34131-_LT_EOF
34132- ;;
34133- *) # Bourne compatible functions.
34134- cat << \_LT_EOF >> "$cfgfile"
34135-
34136-# func_dirname file append nondir_replacement
34137-# Compute the dirname of FILE. If nonempty, add APPEND to the result,
34138-# otherwise set result to NONDIR_REPLACEMENT.
34139-func_dirname ()
34140-{
34141- # Extract subdirectory from the argument.
34142- func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
34143- if test "X$func_dirname_result" = "X${1}"; then
34144- func_dirname_result="${3}"
34145- else
34146- func_dirname_result="$func_dirname_result${2}"
34147- fi
34148-}
34149-
34150-# func_basename file
34151-func_basename ()
34152-{
34153- func_basename_result=`$ECHO "${1}" | $SED "$basename"`
34154-}
34155-
34156-
34157-# func_stripname prefix suffix name
34158-# strip PREFIX and SUFFIX off of NAME.
34159-# PREFIX and SUFFIX must not contain globbing or regex special
34160-# characters, hashes, percent signs, but SUFFIX may contain a leading
34161-# dot (in which case that matches only a dot).
34162-# func_strip_suffix prefix name
34163-func_stripname ()
34164-{
34165- case ${2} in
34166- .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
34167- *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
34168- esac
34169-}
34170-
34171-# sed scripts:
34172-my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
34173-my_sed_long_arg='1s/^-[^=]*=//'
34174-
34175-# func_opt_split
34176-func_opt_split ()
34177-{
34178- func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
34179- func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
34180-}
34181-
34182-# func_lo2o object
34183-func_lo2o ()
34184-{
34185- func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
34186-}
34187-
34188-# func_xform libobj-or-source
34189-func_xform ()
34190-{
34191- func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
34192-}
34193-
34194-# func_arith arithmetic-term...
34195-func_arith ()
34196-{
34197- func_arith_result=`expr "$@"`
34198-}
34199-
34200-# func_len string
34201-# STRING may not start with a hyphen.
34202-func_len ()
34203-{
34204- func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
34205-}
34206-
34207-_LT_EOF
34208-esac
34209-
34210-case $lt_shell_append in
34211- yes)
34212- cat << \_LT_EOF >> "$cfgfile"
34213-
34214-# func_append var value
34215-# Append VALUE to the end of shell variable VAR.
34216-func_append ()
34217-{
34218- eval "$1+=\$2"
34219-}
34220-_LT_EOF
34221- ;;
34222- *)
34223- cat << \_LT_EOF >> "$cfgfile"
34224-
34225-# func_append var value
34226-# Append VALUE to the end of shell variable VAR.
34227-func_append ()
34228-{
34229- eval "$1=\$$1\$2"
34230-}
34231-
34232-_LT_EOF
34233- ;;
34234- esac
34235-
34236-
34237- sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
34238- || (rm -f "$cfgfile"; exit 1)
34239-
34240- mv -f "$cfgfile" "$ofile" ||
34241+ sed '$q' "$ltmain" >> "$cfgfile" \
34242+ || (rm -f "$cfgfile"; exit 1)
34243+
34244+ if test x"$xsi_shell" = xyes; then
34245+ sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
34246+func_dirname ()\
34247+{\
34248+\ case ${1} in\
34249+\ */*) func_dirname_result="${1%/*}${2}" ;;\
34250+\ * ) func_dirname_result="${3}" ;;\
34251+\ esac\
34252+} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
34253+ && mv -f "$cfgfile.tmp" "$cfgfile" \
34254+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
34255+test 0 -eq $? || _lt_function_replace_fail=:
34256+
34257+
34258+ sed -e '/^func_basename ()$/,/^} # func_basename /c\
34259+func_basename ()\
34260+{\
34261+\ func_basename_result="${1##*/}"\
34262+} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
34263+ && mv -f "$cfgfile.tmp" "$cfgfile" \
34264+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
34265+test 0 -eq $? || _lt_function_replace_fail=:
34266+
34267+
34268+ sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
34269+func_dirname_and_basename ()\
34270+{\
34271+\ case ${1} in\
34272+\ */*) func_dirname_result="${1%/*}${2}" ;;\
34273+\ * ) func_dirname_result="${3}" ;;\
34274+\ esac\
34275+\ func_basename_result="${1##*/}"\
34276+} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
34277+ && mv -f "$cfgfile.tmp" "$cfgfile" \
34278+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
34279+test 0 -eq $? || _lt_function_replace_fail=:
34280+
34281+
34282+ sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
34283+func_stripname ()\
34284+{\
34285+\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
34286+\ # positional parameters, so assign one to ordinary parameter first.\
34287+\ func_stripname_result=${3}\
34288+\ func_stripname_result=${func_stripname_result#"${1}"}\
34289+\ func_stripname_result=${func_stripname_result%"${2}"}\
34290+} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
34291+ && mv -f "$cfgfile.tmp" "$cfgfile" \
34292+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
34293+test 0 -eq $? || _lt_function_replace_fail=:
34294+
34295+
34296+ sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
34297+func_split_long_opt ()\
34298+{\
34299+\ func_split_long_opt_name=${1%%=*}\
34300+\ func_split_long_opt_arg=${1#*=}\
34301+} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
34302+ && mv -f "$cfgfile.tmp" "$cfgfile" \
34303+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
34304+test 0 -eq $? || _lt_function_replace_fail=:
34305+
34306+
34307+ sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
34308+func_split_short_opt ()\
34309+{\
34310+\ func_split_short_opt_arg=${1#??}\
34311+\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
34312+} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
34313+ && mv -f "$cfgfile.tmp" "$cfgfile" \
34314+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
34315+test 0 -eq $? || _lt_function_replace_fail=:
34316+
34317+
34318+ sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
34319+func_lo2o ()\
34320+{\
34321+\ case ${1} in\
34322+\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
34323+\ *) func_lo2o_result=${1} ;;\
34324+\ esac\
34325+} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
34326+ && mv -f "$cfgfile.tmp" "$cfgfile" \
34327+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
34328+test 0 -eq $? || _lt_function_replace_fail=:
34329+
34330+
34331+ sed -e '/^func_xform ()$/,/^} # func_xform /c\
34332+func_xform ()\
34333+{\
34334+ func_xform_result=${1%.*}.lo\
34335+} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
34336+ && mv -f "$cfgfile.tmp" "$cfgfile" \
34337+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
34338+test 0 -eq $? || _lt_function_replace_fail=:
34339+
34340+
34341+ sed -e '/^func_arith ()$/,/^} # func_arith /c\
34342+func_arith ()\
34343+{\
34344+ func_arith_result=$(( $* ))\
34345+} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
34346+ && mv -f "$cfgfile.tmp" "$cfgfile" \
34347+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
34348+test 0 -eq $? || _lt_function_replace_fail=:
34349+
34350+
34351+ sed -e '/^func_len ()$/,/^} # func_len /c\
34352+func_len ()\
34353+{\
34354+ func_len_result=${#1}\
34355+} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
34356+ && mv -f "$cfgfile.tmp" "$cfgfile" \
34357+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
34358+test 0 -eq $? || _lt_function_replace_fail=:
34359+
34360+fi
34361+
34362+if test x"$lt_shell_append" = xyes; then
34363+ sed -e '/^func_append ()$/,/^} # func_append /c\
34364+func_append ()\
34365+{\
34366+ eval "${1}+=\\${2}"\
34367+} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
34368+ && mv -f "$cfgfile.tmp" "$cfgfile" \
34369+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
34370+test 0 -eq $? || _lt_function_replace_fail=:
34371+
34372+
34373+ sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
34374+func_append_quoted ()\
34375+{\
34376+\ func_quote_for_eval "${2}"\
34377+\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
34378+} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
34379+ && mv -f "$cfgfile.tmp" "$cfgfile" \
34380+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
34381+test 0 -eq $? || _lt_function_replace_fail=:
34382+
34383+
34384+ # Save a `func_append' function call where possible by direct use of '+='
34385+ sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
34386+ && mv -f "$cfgfile.tmp" "$cfgfile" \
34387+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
34388+ test 0 -eq $? || _lt_function_replace_fail=:
34389+else
34390+ # Save a `func_append' function call even when '+=' is not available
34391+ sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
34392+ && mv -f "$cfgfile.tmp" "$cfgfile" \
34393+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
34394+ test 0 -eq $? || _lt_function_replace_fail=:
34395+fi
34396+
34397+if test x"$_lt_function_replace_fail" = x":"; then
34398+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
34399+$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
34400+fi
34401+
34402+
34403+ mv -f "$cfgfile" "$ofile" ||
34404 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
34405 chmod +x "$ofile"
34406
diff --git a/meta-microblaze/recipes-devtools/binutils/binutils/0009-Fix-rpath-in-libtool-when-sysroot-is-enabled.patch b/meta-microblaze/recipes-devtools/binutils/binutils/0009-Fix-rpath-in-libtool-when-sysroot-is-enabled.patch
new file mode 100644
index 00000000..50201fb6
--- /dev/null
+++ b/meta-microblaze/recipes-devtools/binutils/binutils/0009-Fix-rpath-in-libtool-when-sysroot-is-enabled.patch
@@ -0,0 +1,49 @@
1From c9e810840d95554046b7132e3e2c98bf99cb2d89 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Mon, 2 Mar 2015 01:42:38 +0000
4Subject: [PATCH] Fix rpath in libtool when sysroot is enabled
5
6Enabling sysroot support in libtool exposed a bug where the final
7library had an RPATH encoded into it which still pointed to the
8sysroot. This works around the issue until it gets sorted out
9upstream.
10
11Fix suggested by Richard Purdie <richard.purdie@linuxfoundation.org>
12
13Upstream-Status: Inappropriate [embedded specific]
14
15Signed-off-by: Scott Garman <scott.a.garman@intel.com>
16Signed-off-by: Khem Raj <raj.khem@gmail.com>
17---
18 ltmain.sh | 10 ++++++++--
19 1 file changed, 8 insertions(+), 2 deletions(-)
20
21diff --git a/ltmain.sh b/ltmain.sh
22index 7f7104ffc82..f59eb4aa631 100644
23--- a/ltmain.sh
24+++ b/ltmain.sh
25@@ -8035,9 +8035,11 @@ EOF
26 test "$opt_mode" != relink && rpath="$compile_rpath$rpath"
27 for libdir in $rpath; do
28 if test -n "$hardcode_libdir_flag_spec"; then
29+ func_replace_sysroot "$libdir"
30+ libdir=$func_replace_sysroot_result
31+ func_stripname '=' '' "$libdir"
32+ libdir=$func_stripname_result
33 if test -n "$hardcode_libdir_separator"; then
34- func_replace_sysroot "$libdir"
35- libdir=$func_replace_sysroot_result
36 if test -z "$hardcode_libdirs"; then
37 hardcode_libdirs="$libdir"
38 else
39@@ -8770,6 +8772,10 @@ EOF
40 hardcode_libdirs=
41 for libdir in $compile_rpath $finalize_rpath; do
42 if test -n "$hardcode_libdir_flag_spec"; then
43+ func_replace_sysroot "$libdir"
44+ libdir=$func_replace_sysroot_result
45+ func_stripname '=' '' "$libdir"
46+ libdir=$func_stripname_result
47 if test -n "$hardcode_libdir_separator"; then
48 if test -z "$hardcode_libdirs"; then
49 hardcode_libdirs="$libdir"
diff --git a/meta-microblaze/recipes-devtools/binutils/binutils/0010-sync-with-OE-libtool-changes.patch b/meta-microblaze/recipes-devtools/binutils/binutils/0010-sync-with-OE-libtool-changes.patch
new file mode 100644
index 00000000..57d9ac5f
--- /dev/null
+++ b/meta-microblaze/recipes-devtools/binutils/binutils/0010-sync-with-OE-libtool-changes.patch
@@ -0,0 +1,86 @@
1From befc176c209bbb4c32b57c2068e813c88b1ab6b1 Mon Sep 17 00:00:00 2001
2From: Ross Burton <ross.burton@intel.com>
3Date: Mon, 6 Mar 2017 23:33:27 -0800
4Subject: [PATCH] sync with OE libtool changes
5
6Apply these patches from our libtool patches as not only are redundant RPATHs a
7waste of space but they can cause incorrect linking when native packages are
8restored from sstate.
9
10fix-rpath.patch:
11We don't want to add RPATHS which match default linker
12search paths, they're a waste of space. This patch
13filters libtools list and removes the ones we don't need.
14
15norm-rpath.patch:
16Libtool may be passed link paths of the form "/usr/lib/../lib", which
17fool its detection code into thinking it should be included as an
18RPATH in the generated binary. Normalize before comparision.
19
20Upstream-Status: Inappropriate
21
22Signed-off-by: Ross Burton <ross.burton@intel.com>
23Signed-off-by: Khem Raj <raj.khem@gmail.com>
24---
25 ltmain.sh | 34 ++++++++++++++++++++++++++++------
26 1 file changed, 28 insertions(+), 6 deletions(-)
27
28diff --git a/ltmain.sh b/ltmain.sh
29index f59eb4aa631..ce97db42ce7 100644
30--- a/ltmain.sh
31+++ b/ltmain.sh
32@@ -8053,8 +8053,16 @@ EOF
33 esac
34 fi
35 else
36- eval flag=\"$hardcode_libdir_flag_spec\"
37- func_append dep_rpath " $flag"
38+ # We only want to hardcode in an rpath if it isn't in the
39+ # default dlsearch path.
40+ func_normal_abspath "$libdir"
41+ libdir_norm=$func_normal_abspath_result
42+ case " $sys_lib_dlsearch_path " in
43+ *" $libdir_norm "*) ;;
44+ *) eval flag=\"$hardcode_libdir_flag_spec\"
45+ func_append dep_rpath " $flag"
46+ ;;
47+ esac
48 fi
49 elif test -n "$runpath_var"; then
50 case "$perm_rpath " in
51@@ -8790,8 +8798,16 @@ EOF
52 esac
53 fi
54 else
55- eval flag=\"$hardcode_libdir_flag_spec\"
56- func_append rpath " $flag"
57+ # We only want to hardcode in an rpath if it isn't in the
58+ # default dlsearch path.
59+ func_normal_abspath "$libdir"
60+ libdir_norm=$func_normal_abspath_result
61+ case " $sys_lib_dlsearch_path " in
62+ *" $libdir_norm "*) ;;
63+ *) eval flag=\"$hardcode_libdir_flag_spec\"
64+ rpath+=" $flag"
65+ ;;
66+ esac
67 fi
68 elif test -n "$runpath_var"; then
69 case "$perm_rpath " in
70@@ -8841,8 +8857,14 @@ EOF
71 esac
72 fi
73 else
74- eval flag=\"$hardcode_libdir_flag_spec\"
75- func_append rpath " $flag"
76+ # We only want to hardcode in an rpath if it isn't in the
77+ # default dlsearch path.
78+ case " $sys_lib_dlsearch_path " in
79+ *" $libdir "*) ;;
80+ *) eval flag=\"$hardcode_libdir_flag_spec\"
81+ func_append rpath " $flag"
82+ ;;
83+ esac
84 fi
85 elif test -n "$runpath_var"; then
86 case "$finalize_perm_rpath " in
diff --git a/meta-microblaze/recipes-devtools/binutils/binutils/0011-Check-for-clang-before-checking-gcc-version.patch b/meta-microblaze/recipes-devtools/binutils/binutils/0011-Check-for-clang-before-checking-gcc-version.patch
new file mode 100644
index 00000000..c47f41f5
--- /dev/null
+++ b/meta-microblaze/recipes-devtools/binutils/binutils/0011-Check-for-clang-before-checking-gcc-version.patch
@@ -0,0 +1,45 @@
1From cad852e0ed46a1c26607f9e7d17cc5974b05e38a Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Wed, 15 Apr 2020 14:17:20 -0700
4Subject: [PATCH] Check for clang before checking gcc version
5
6Clang advertises itself to be gcc 4.2.1, so when compiling this test
7here fails since gcc < 4.4.5 did not support -static-libstdc++ but thats
8not true for clang, so its better to make an additional check for clang
9before resorting to gcc version check. This should let clang enable
10static libstdc++ linking
11
12Upstream-Status: Pending
13
14Signed-off-by: Khem Raj <raj.khem@gmail.com>
15---
16 configure | 2 +-
17 configure.ac | 2 +-
18 2 files changed, 2 insertions(+), 2 deletions(-)
19
20diff --git a/configure b/configure
21index 670684d83d1..f9ba1c0a4f7 100755
22--- a/configure
23+++ b/configure
24@@ -5432,7 +5432,7 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26 /* end confdefs.h. */
27
28-#if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
29+#if !defined(__clang__) && ((__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5))
30 #error -static-libstdc++ not implemented
31 #endif
32 int main() {}
33diff --git a/configure.ac b/configure.ac
34index 88b4800e298..6cd4530db56 100644
35--- a/configure.ac
36+++ b/configure.ac
37@@ -1410,7 +1410,7 @@ if test "$GCC" = yes; then
38 AC_MSG_CHECKING([whether g++ accepts -static-libstdc++ -static-libgcc])
39 AC_LANG_PUSH(C++)
40 AC_LINK_IFELSE([AC_LANG_SOURCE([
41-#if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
42+#if !defined(__clang__) && ((__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5))
43 #error -static-libstdc++ not implemented
44 #endif
45 int main() {}])],
diff --git a/meta-microblaze/recipes-devtools/binutils/binutils/0012-Only-generate-an-RPATH-entry-if-LD_RUN_PATH-is-not-e.patch b/meta-microblaze/recipes-devtools/binutils/binutils/0012-Only-generate-an-RPATH-entry-if-LD_RUN_PATH-is-not-e.patch
new file mode 100644
index 00000000..985911aa
--- /dev/null
+++ b/meta-microblaze/recipes-devtools/binutils/binutils/0012-Only-generate-an-RPATH-entry-if-LD_RUN_PATH-is-not-e.patch
@@ -0,0 +1,38 @@
1From 47e53916e3112391d8bff2b2257dcec0a2426d66 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Thu, 10 Mar 2022 21:21:33 -0800
4Subject: [PATCH] Only generate an RPATH entry if LD_RUN_PATH is not empty
5
6for cases where -rpath isn't specified. debian (#151024)
7
8Upstream-Status: Pending
9
10Signed-off-by: Chris Chimelis <chris@debian.org>
11Signed-off-by: Khem Raj <raj.khem@gmail.com>
12---
13 ld/ldelf.c | 5 +++++
14 1 file changed, 5 insertions(+)
15
16diff --git a/ld/ldelf.c b/ld/ldelf.c
17index 187b359af86..ad792f02d63 100644
18--- a/ld/ldelf.c
19+++ b/ld/ldelf.c
20@@ -1130,6 +1130,9 @@ ldelf_handle_dt_needed (struct elf_link_hash_table *htab,
21 && command_line.rpath == NULL)
22 {
23 path = (const char *) getenv ("LD_RUN_PATH");
24+ if ((path) && (strlen (path) == 0))
25+ path = NULL;
26+
27 if (path
28 && ldelf_search_needed (path, &n, force,
29 is_linux, elfsize))
30@@ -1805,6 +1808,8 @@ ldelf_before_allocation (char *audit, char *depaudit,
31 rpath = command_line.rpath;
32 if (rpath == NULL)
33 rpath = (const char *) getenv ("LD_RUN_PATH");
34+ if ((rpath) && (strlen (rpath) == 0))
35+ rpath = NULL;
36
37 for (abfd = link_info.input_bfds; abfd; abfd = abfd->link.next)
38 if (bfd_get_flavour (abfd) == bfd_target_elf_flavour)
diff --git a/meta-microblaze/recipes-devtools/binutils/binutils/0013-Define-alignof-using-_Alignof-when-using-C11-or-newe.patch b/meta-microblaze/recipes-devtools/binutils/binutils/0013-Define-alignof-using-_Alignof-when-using-C11-or-newe.patch
new file mode 100644
index 00000000..0cb2f46a
--- /dev/null
+++ b/meta-microblaze/recipes-devtools/binutils/binutils/0013-Define-alignof-using-_Alignof-when-using-C11-or-newe.patch
@@ -0,0 +1,48 @@
1From d479020609329cdc7fa3675bc3daf072401fefae Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Sun, 15 Jan 2023 00:16:25 -0800
4Subject: [PATCH] Define alignof using _Alignof when using C11 or newer
5
6WG14 N2350 made very clear that it is an UB having type definitions
7within "offsetof" [1]. This patch enhances the implementation of macro
8alignof to use builtin "_Alignof" to avoid undefined behavior on
9when using std=c11 or newer
10
11clang 16+ has started to flag this [2]
12
13Fixes build when using -std >= gnu11 and using clang16+
14
15Older compilers gcc < 4.9 or clang < 8 has buggy _Alignof even though it
16may support C11, exclude those compilers too
17
18[1] https://www.open-std.org/jtc1/sc22/wg14/www/docs/n2350.htm
19[2] https://reviews.llvm.org/D133574
20
21Upstream-Status: Pending
22Signed-off-by: Khem Raj <raj.khem@gmail.com>
23---
24 libiberty/sha1.c | 10 ++++++++++
25 1 file changed, 10 insertions(+)
26
27diff --git a/libiberty/sha1.c b/libiberty/sha1.c
28index 49e8e0b6c2b..72de5cc8ad6 100644
29--- a/libiberty/sha1.c
30+++ b/libiberty/sha1.c
31@@ -234,7 +234,17 @@ sha1_process_bytes (const void *buffer, size_t len, struct sha1_ctx *ctx)
32 if (len >= 64)
33 {
34 #if !_STRING_ARCH_unaligned
35+/* GCC releases before GCC 4.9 had a bug in _Alignof. See GCC bug 52023
36+ <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>.
37+ clang versions < 8.0.0 have the same bug. */
38+#if (!defined __STDC_VERSION__ || __STDC_VERSION__ < 201112 \
39+ || (defined __GNUC__ && __GNUC__ < 4 + (__GNUC_MINOR__ < 9) \
40+ && !defined __clang__) \
41+ || (defined __clang__ && __clang_major__ < 8))
42 # define alignof(type) offsetof (struct { char c; type x; }, x)
43+#else
44+# define alignof(type) _Alignof(type)
45+#endif
46 # define UNALIGNED_P(p) (((size_t) p) % alignof (sha1_uint32) != 0)
47 if (UNALIGNED_P (buffer))
48 while (len > 64)
diff --git a/meta-microblaze/recipes-devtools/binutils/binutils/0014-Remove-duplicate-pe-dll.o-entry-deom-targ_extra_ofil.patch b/meta-microblaze/recipes-devtools/binutils/binutils/0014-Remove-duplicate-pe-dll.o-entry-deom-targ_extra_ofil.patch
new file mode 100644
index 00000000..8aef2cc7
--- /dev/null
+++ b/meta-microblaze/recipes-devtools/binutils/binutils/0014-Remove-duplicate-pe-dll.o-entry-deom-targ_extra_ofil.patch
@@ -0,0 +1,32 @@
1From ddd941856582a82171626cbe609325b11e223704 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Wed, 18 Jan 2023 19:35:07 -0800
4Subject: [PATCH] Remove duplicate pe-dll.o entry deom targ_extra_ofiles
5
6Commit c60b3806799abf1d7f6cf5108a1b0e733a950b13 added support for
7aarch64-pe which introduced wrapper over pep-dll.c for x86_64 as well as
8aarch64, on x86_64 it was added but the old object pe-dll.o needs to be
9removed too, otherwise build fails with duplicate symbols from pe-dll.o
10and pep-dll-x86_64.o
11
12Upstream-Status: Submitted [https://sourceware.org/pipermail/binutils/2023-January/125739.html]
13Signed-off-by: Khem Raj <raj.khem@gmail.com>
14Cc: Jedidiah Thompson <wej22007@outlook.com>
15Cc: Zac Walker <zac.walker@linaro.org>
16---
17 ld/configure.tgt | 2 +-
18 1 file changed, 1 insertion(+), 1 deletion(-)
19
20diff --git a/ld/configure.tgt b/ld/configure.tgt
21index f937f78b876..830613744c2 100644
22--- a/ld/configure.tgt
23+++ b/ld/configure.tgt
24@@ -1067,7 +1067,7 @@ x86_64-*-cygwin) targ_emul=i386pep ;
25 ;;
26 x86_64-*-mingw*) targ_emul=i386pep ;
27 targ_extra_emuls=i386pe
28- targ_extra_ofiles="deffilep.o pdb.o pep-dll.o pe-dll.o"
29+ targ_extra_ofiles="deffilep.o pdb.o pe-dll.o"
30 ;;
31 x86_64-*-gnu*) targ_emul=elf_x86_64
32 targ_extra_emuls="elf32_x86_64 elf_iamcu elf_i386"
diff --git a/meta-microblaze/recipes-devtools/binutils/binutils/0015-gprofng-change-use-of-bignum-to-bigint.patch b/meta-microblaze/recipes-devtools/binutils/binutils/0015-gprofng-change-use-of-bignum-to-bigint.patch
new file mode 100644
index 00000000..0d3d289e
--- /dev/null
+++ b/meta-microblaze/recipes-devtools/binutils/binutils/0015-gprofng-change-use-of-bignum-to-bigint.patch
@@ -0,0 +1,17 @@
1Upstream-Status: Backport [https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=3243d790ee32aa8eda69226d81b1e79dbd1dcd87]
2
3Signed-off-by: Harish Sadineni <Harish.Sadineni@windriver.com>
4
5diff --git a/gprofng/gp-display-html/gp-display-html.in b/gprofng/gp-display-html/gp-display-html.in
6index 6f37ca282e7..306c99a0ec3 100644
7--- a/gprofng/gp-display-html/gp-display-html.in
8+++ b/gprofng/gp-display-html/gp-display-html.in
9@@ -25,7 +25,7 @@ use warnings;
10 # Disable before release
11 # use Perl::Critic;
12
13-use bignum;
14+use bigint;
15 use List::Util qw (max);
16 use Cwd qw (abs_path cwd);
17 use File::Basename;
diff --git a/meta-microblaze/recipes-devtools/binutils/binutils_2.42.bb b/meta-microblaze/recipes-devtools/binutils/binutils_2.42.bb
new file mode 100644
index 00000000..2cce40f1
--- /dev/null
+++ b/meta-microblaze/recipes-devtools/binutils/binutils_2.42.bb
@@ -0,0 +1,76 @@
1require binutils.inc
2require binutils-${PV}.inc
3
4# perl-native for pod2man for man page generation
5DEPENDS += "zlib perl-native"
6
7EXTRA_OECONF += "--with-sysroot=/ \
8 --enable-install-libbfd \
9 --enable-install-libiberty \
10 --enable-shared \
11 --with-system-zlib \
12 "
13
14EXTRA_OEMAKE:append:libc-musl = "\
15 gt_cv_func_gnugettext1_libc=yes \
16 gt_cv_func_gnugettext2_libc=yes \
17 "
18# libcollector/collector.c:547:15: error: no member named '__fprintf_chk' in 'struct CollectorUtilFuncs'
19EXTRA_OECONF:append:toolchain-clang = " --disable-gprofng"
20# | ../../../gprofng/libcollector/../src/collector_module.h:78:13: error: duplicate member 'pwrite'
21# | ../../../gprofng/libcollector/dispatcher.c:578:8: error: 'struct sigevent' has no member named '_sigev_un'
22EXTRA_OECONF:append:libc-musl = " --disable-gprofng"
23
24EXTRA_OECONF:class-native = "--enable-targets=all \
25 --enable-64-bit-bfd \
26 --enable-install-libiberty \
27 --enable-install-libbfd \
28 --disable-gdb \
29 --disable-gdbserver \
30 --disable-libdecnumber \
31 --disable-readline \
32 --disable-sim \
33 --disable-werror"
34
35PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'debuginfod', d)}"
36PACKAGECONFIG[debuginfod] = "--with-debuginfod, --without-debuginfod, elfutils"
37
38do_install:class-native () {
39 autotools_do_install
40
41 # Install the libiberty header
42 install -d ${D}${includedir}
43 install -m 644 ${S}/include/ansidecl.h ${D}${includedir}
44 install -m 644 ${S}/include/libiberty.h ${D}${includedir}
45
46 # We only want libiberty, libbfd and libopcodes
47 rm -rf ${D}${bindir}
48 rm -rf ${D}${prefix}/${TARGET_SYS}
49 rm -rf ${D}${prefix}/lib/ldscripts
50 rm -rf ${D}${prefix}/share/info
51 rm -rf ${D}${prefix}/share/locale
52 rm -rf ${D}${prefix}/share/man
53 rmdir ${D}${prefix}/share || :
54 rmdir ${D}/${libdir}/gcc-lib || :
55 rmdir ${D}/${libdir}64/gcc-lib || :
56 rmdir ${D}/${libdir} || :
57 rmdir ${D}/${libdir}64 || :
58}
59
60# libctf races with libbfd
61PARALLEL_MAKEINST:class-target = ""
62PARALLEL_MAKEINST:class-nativesdk = ""
63
64# Split out libbfd-*.so and libopcodes-*.so so including perf doesn't include
65# extra stuff
66PACKAGE_BEFORE_PN += "libbfd libopcodes gprofng"
67FILES:libbfd = "${libdir}/libbfd-*.so.* ${libdir}/libbfd-*.so"
68FILES:libopcodes = "${libdir}/libopcodes-*.so.* ${libdir}/libopcodes-*.so"
69FILES:gprofng = "${sysconfdir}/gprofng.rc ${libdir}/gprofng/libgp-*.so ${libdir}/gprofng/libgprofng.so.* ${bindir}/gp-* ${bindir}/gprofng"
70FILES:${PN}-dev += "${libdir}/libgprofng.so ${libdir}/libsframe.so"
71SRC_URI:append:class-nativesdk = " file://0003-binutils-nativesdk-Search-for-alternative-ld.so.conf.patch "
72
73USE_ALTERNATIVES_FOR:class-nativesdk = ""
74FILES:${PN}:append:class-nativesdk = " ${bindir}"
75
76BBCLASSEXTEND = "native nativesdk"
diff --git a/meta-microblaze/recipes-devtools/gcc/microblaze-block.inc b/meta-microblaze/recipes-devtools/gcc/microblaze-block.inc
new file mode 100644
index 00000000..67c40845
--- /dev/null
+++ b/meta-microblaze/recipes-devtools/gcc/microblaze-block.inc
@@ -0,0 +1 @@
COMPATIBLE_HOST:microblaze = "^$"
diff --git a/meta-microblaze/recipes-support/attr/attr/microblaze-symver.patch b/meta-microblaze/recipes-support/attr/attr/microblaze-symver.patch
new file mode 100644
index 00000000..0db401d0
--- /dev/null
+++ b/meta-microblaze/recipes-support/attr/attr/microblaze-symver.patch
@@ -0,0 +1,32 @@
1Fix build failure
2
3On microblaze, we get a failure due to:
4
5 ../attr-2.5.2/libattr/syscalls.c:133:10: error: symver is only supported on ELF platforms
6
7Upstream-Status: Pending
8
9Signed-off-by: Mark Hatle <mark.hatle@amd.com>
10
11Index: attr-2.5.2/libattr/syscalls.c
12===================================================================
13--- attr-2.5.2.orig/libattr/syscalls.c
14+++ attr-2.5.2/libattr/syscalls.c
15@@ -31,6 +31,7 @@
16 * prefer symver attribute if available (since gcc 10),
17 * fall back to traditional .symver asm directive otherwise.
18 */
19+#ifndef __microblaze__
20 #ifdef __has_attribute
21 # if __has_attribute(__symver__)
22 # define SYMVER(cn, vn) __typeof(cn) cn __attribute__((__symver__(vn)))
23@@ -43,6 +44,9 @@
24 __asm__(".symver " #cn "," vn)
25 # endif
26 #endif
27+#else
28+# define SYMVER(cn, vn)
29+#endif
30 #ifndef SYMVER
31 # define SYMVER(cn, vn) __asm__(".symver " #cn "," vn)
32 #endif
diff --git a/meta-microblaze/recipes-support/attr/attr_%.bbappend b/meta-microblaze/recipes-support/attr/attr_%.bbappend
new file mode 100644
index 00000000..75c3696e
--- /dev/null
+++ b/meta-microblaze/recipes-support/attr/attr_%.bbappend
@@ -0,0 +1,2 @@
1FILESEXTRAPATHS:append:microblaze := ":${THISDIR}/attr"
2SRC_URI:append:microblaze = " file://microblaze-symver.patch"
diff --git a/meta-vitis-tc/conf/layer.conf b/meta-vitis-tc/conf/layer.conf
index 34913777..6c571e6a 100644
--- a/meta-vitis-tc/conf/layer.conf
+++ b/meta-vitis-tc/conf/layer.conf
@@ -20,4 +20,4 @@ LAYERDEPENDS_vitis-tc = "\
20 xilinx-standalone \ 20 xilinx-standalone \
21 " 21 "
22 22
23LAYERSERIES_COMPAT_vitis-tc = "scarthgap" 23LAYERSERIES_COMPAT_vitis-tc = "styhead walnascar"
diff --git a/meta-xilinx-bsp/conf/layer.conf b/meta-xilinx-bsp/conf/layer.conf
index 42990b73..dd7cf6e2 100644
--- a/meta-xilinx-bsp/conf/layer.conf
+++ b/meta-xilinx-bsp/conf/layer.conf
@@ -16,4 +16,4 @@ BBFILE_PRIORITY_xilinx-bsp = "5"
16 16
17LAYERDEPENDS_xilinx-bsp = "xilinx" 17LAYERDEPENDS_xilinx-bsp = "xilinx"
18 18
19LAYERSERIES_COMPAT_xilinx-bsp = "scarthgap" 19LAYERSERIES_COMPAT_xilinx-bsp = "styhead walnascar"
diff --git a/meta-xilinx-contrib/conf/layer.conf b/meta-xilinx-contrib/conf/layer.conf
index b065a344..3893707b 100644
--- a/meta-xilinx-contrib/conf/layer.conf
+++ b/meta-xilinx-contrib/conf/layer.conf
@@ -21,4 +21,4 @@ LAYERDEPENDS_xilinx-contrib = " \
21 xilinx \ 21 xilinx \
22 " 22 "
23 23
24LAYERSERIES_COMPAT_xilinx-contrib = "scarthgap" 24LAYERSERIES_COMPAT_xilinx-contrib = "styhead walnascar"
diff --git a/meta-xilinx-core/conf/layer.conf b/meta-xilinx-core/conf/layer.conf
index 399011a7..a32a354a 100644
--- a/meta-xilinx-core/conf/layer.conf
+++ b/meta-xilinx-core/conf/layer.conf
@@ -25,7 +25,7 @@ xilinx-tools:${LAYERDIR}/dynamic-layers/meta-xilinx-tools/recipes-*/*/*.bbappend
25LAYERDEPENDS_xilinx = "core meta-arm" 25LAYERDEPENDS_xilinx = "core meta-arm"
26LAYERRECOMMENDS_xilinx = "openembedded-layer" 26LAYERRECOMMENDS_xilinx = "openembedded-layer"
27 27
28LAYERSERIES_COMPAT_xilinx = "scarthgap" 28LAYERSERIES_COMPAT_xilinx = "styhead walnascar"
29 29
30SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS += " \ 30SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS += " \
31 *->xrt \ 31 *->xrt \
diff --git a/meta-xilinx-demos/conf/layer.conf b/meta-xilinx-demos/conf/layer.conf
index 1f4b6b64..79f62165 100644
--- a/meta-xilinx-demos/conf/layer.conf
+++ b/meta-xilinx-demos/conf/layer.conf
@@ -12,7 +12,7 @@ BBFILE_PRIORITY_xilinx-demos = "5"
12LAYERDEPENDS_xilinx-demos = "core" 12LAYERDEPENDS_xilinx-demos = "core"
13LAYERRECOMMENDS_xilinx-demos = "openembedded-layer" 13LAYERRECOMMENDS_xilinx-demos = "openembedded-layer"
14 14
15LAYERSERIES_COMPAT_xilinx-demos = "scarthgap" 15LAYERSERIES_COMPAT_xilinx-demos = "styhead walnascar"
16 16
17# Define dynamic layers 17# Define dynamic layers
18BBFILES_DYNAMIC += " \ 18BBFILES_DYNAMIC += " \
diff --git a/meta-xilinx-mali400/conf/layer.conf b/meta-xilinx-mali400/conf/layer.conf
index 7bc75aa8..dffa9a2f 100644
--- a/meta-xilinx-mali400/conf/layer.conf
+++ b/meta-xilinx-mali400/conf/layer.conf
@@ -25,7 +25,7 @@ LAYERDEPENDS_xilinx-mali400 = " \
25 xilinx \ 25 xilinx \
26 " 26 "
27 27
28LAYERSERIES_COMPAT_xilinx-mali400 = "scarthgap" 28LAYERSERIES_COMPAT_xilinx-mali400 = "styhead walnascar"
29 29
30INHERIT += "sanity-meta-xilinx-mali400" 30INHERIT += "sanity-meta-xilinx-mali400"
31 31
diff --git a/meta-xilinx-multimedia/conf/layer.conf b/meta-xilinx-multimedia/conf/layer.conf
index ccc5800e..733facd2 100644
--- a/meta-xilinx-multimedia/conf/layer.conf
+++ b/meta-xilinx-multimedia/conf/layer.conf
@@ -12,7 +12,19 @@ BBFILE_PRIORITY_xilinx-multimedia = "5"
12LAYERDEPENDS_xilinx-multimedia = "core" 12LAYERDEPENDS_xilinx-multimedia = "core"
13LAYERRECOMMENDS_xilinx-multimedia = "openembedded-layer" 13LAYERRECOMMENDS_xilinx-multimedia = "openembedded-layer"
14 14
15LAYERSERIES_COMPAT_xilinx-multimedia = "scarthgap" 15LAYERSERIES_COMPAT_xilinx-multimedia = "styhead walnascar"
16
17PREFERRED_VERSION_gst-devtools = "1.22.12"
18PREFERRED_VERSION_gstreamer1.0 = "1.22.12"
19PREFERRED_VERSION_gstreamer1.0-libav = "1.22.12"
20PREFERRED_VERSION_gstreamer1.0-omx = "1.22.12"
21PREFERRED_VERSION_gstreamer1.0-plugins-bad = "1.22.12"
22PREFERRED_VERSION_gstreamer1.0-plugins-base = "1.22.12"
23PREFERRED_VERSION_gstreamer1.0-plugins-good = "1.22.12"
24PREFERRED_VERSION_gstreamer1.0-plugins-ugly = "1.22.12"
25PREFERRED_VERSION_gstreamer1.0-python = "1.22.12"
26PREFERRED_VERSION_gstreamer1.0-rtsp-server = "1.22.12"
27PREFERRED_VERSION_gstreamer1.0-vaapi = "1.22.12"
16 28
17# Define dynamic layers 29# Define dynamic layers
18BBFILES_DYNAMIC += " \ 30BBFILES_DYNAMIC += " \
diff --git a/meta-xilinx-multimedia/recipes-multimedia/gstreamer/gst-devtools/0001-connect-has-a-different-signature-on-musl.patch b/meta-xilinx-multimedia/recipes-multimedia/gstreamer/gst-devtools/0001-connect-has-a-different-signature-on-musl.patch
new file mode 100644
index 00000000..21e30d6d
--- /dev/null
+++ b/meta-xilinx-multimedia/recipes-multimedia/gstreamer/gst-devtools/0001-connect-has-a-different-signature-on-musl.patch
@@ -0,0 +1,39 @@
1From 0c73b8131efba63c5cd37ea8c7551434c3b57304 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Sun, 9 Sep 2018 17:38:10 -0700
4Subject: [PATCH] connect has a different signature on musl
5
6On linux when not using glibc and using musl for C library, connect
7API has a different signature, this patch fixes this so it can compile
8on musl, the functionality should remain same as it is immediately
9typcasted to struct sockaddr_in* type inside the function before use
10
11Upstream-Status: Pending
12
13Signed-off-by: Khem Raj <raj.khem@gmail.com>
14
15---
16 validate/plugins/fault_injection/socket_interposer.c | 7 ++++++-
17 1 file changed, 6 insertions(+), 1 deletion(-)
18
19diff --git a/validate/plugins/fault_injection/socket_interposer.c b/validate/plugins/fault_injection/socket_interposer.c
20index 53c1ebb..ad7adf8 100644
21--- a/validate/plugins/fault_injection/socket_interposer.c
22+++ b/validate/plugins/fault_injection/socket_interposer.c
23@@ -100,10 +100,15 @@ socket_interposer_set_callback (struct sockaddr_in *addrin,
24 }
25
26 int
27-connect (int socket, const struct sockaddr_in *addrin, socklen_t address_len)
28+#if defined(__linux__) && !defined(__GLIBC__)
29+connect (int socket, const struct sockaddr *addr, socklen_t address_len)
30+#else
31+connect (int socket, const struct sockaddr_in *addr, socklen_t address_len)
32+#endif
33 {
34 size_t i;
35 int override_errno = 0;
36+ struct sockaddr_in* addrin = (struct sockaddr_in*)addr;
37 typedef ssize_t (*real_connect_fn) (int, const struct sockaddr_in *,
38 socklen_t);
39 static real_connect_fn real_connect = 0;
diff --git a/meta-xilinx-multimedia/recipes-multimedia/gstreamer/gst-devtools_1.22.12.bb b/meta-xilinx-multimedia/recipes-multimedia/gstreamer/gst-devtools_1.22.12.bb
new file mode 100644
index 00000000..c30341d1
--- /dev/null
+++ b/meta-xilinx-multimedia/recipes-multimedia/gstreamer/gst-devtools_1.22.12.bb
@@ -0,0 +1,52 @@
1SUMMARY = "Gstreamer validation tool"
2DESCRIPTION = "A Tool to test GStreamer components"
3HOMEPAGE = "https://gstreamer.freedesktop.org/documentation/gst-devtools/index.html"
4SECTION = "multimedia"
5
6LICENSE = "LGPL-2.1-or-later"
7LIC_FILES_CHKSUM = "file://validate/COPYING;md5=a6f89e2100d9b6cdffcea4f398e37343"
8
9#S = "${WORKDIR}/gst-devtools-${PV}"
10
11SRC_URI = "https://gstreamer.freedesktop.org/src/gst-devtools/gst-devtools-${PV}.tar.xz \
12 file://0001-connect-has-a-different-signature-on-musl.patch \
13 "
14
15SRC_URI[sha256sum] = "015ff62789dab423edafe979b019c7de4c849a2b7e74912b20b74a70e5b68f72"
16
17DEPENDS = "json-glib glib-2.0 glib-2.0-native gstreamer1.0 gstreamer1.0-plugins-base"
18RRECOMMENDS:${PN} = "git"
19
20FILES:${PN} += "${datadir}/gstreamer-1.0/* ${libdir}/gst-validate-launcher/* ${libdir}/gstreamer-1.0/*"
21
22inherit meson pkgconfig gettext upstream-version-is-even gobject-introspection
23
24# TODO: put this in a gettext.bbclass patch
25def gettext_oemeson(d):
26 if d.getVar('USE_NLS') == 'no':
27 return '-Dnls=disabled'
28 # Remove the NLS bits if USE_NLS is no or INHIBIT_DEFAULT_DEPS is set
29 if d.getVar('INHIBIT_DEFAULT_DEPS') and not oe.utils.inherits(d, 'cross-canadian'):
30 return '-Dnls=disabled'
31 return '-Dnls=enabled'
32
33# Build GstValidateVideo
34PACKAGECONFIG[cairo] = "-Dcairo=enabled,-Dcairo=disabled,cairo"
35
36EXTRA_OEMESON += " \
37 -Ddoc=disabled \
38 -Ddebug_viewer=disabled \
39 -Dtests=disabled \
40 -Dvalidate=enabled \
41 ${@gettext_oemeson(d)} \
42"
43
44do_install:append () {
45 for fn in ${bindir}/gst-validate-launcher \
46 ${libdir}/gst-validate-launcher/python/launcher/config.py; do
47 sed -i -e 's,${B},/usr/src/debug/${PN},g' -e 's,${S},/usr/src/debug/${PN},g' ${D}$fn
48 done
49}
50
51GIR_MESON_ENABLE_FLAG = "enabled"
52GIR_MESON_DISABLE_FLAG = "disabled"
diff --git a/meta-xilinx-multimedia/recipes-multimedia/gstreamer/gstreamer1.0-libav_1.22.12.bb b/meta-xilinx-multimedia/recipes-multimedia/gstreamer/gstreamer1.0-libav_1.22.12.bb
new file mode 100644
index 00000000..bd9ae246
--- /dev/null
+++ b/meta-xilinx-multimedia/recipes-multimedia/gstreamer/gstreamer1.0-libav_1.22.12.bb
@@ -0,0 +1,28 @@
1SUMMARY = "Libav-based GStreamer 1.x plugin"
2DESCRIPTION = "Contains a GStreamer plugin for using the encoders, decoders, \
3muxers, and demuxers provided by FFmpeg."
4HOMEPAGE = "http://gstreamer.freedesktop.org/"
5SECTION = "multimedia"
6
7# ffmpeg has comercial license flags so add it as we need ffmpeg as a dependency
8LICENSE_FLAGS = "commercial"
9LICENSE = "LGPL-2.1-or-later"
10LIC_FILES_CHKSUM = "file://COPYING;md5=69333daa044cb77e486cc36129f7a770 \
11 file://ext/libav/gstav.h;beginline=1;endline=18;md5=a752c35267d8276fd9ca3db6994fca9c \
12 "
13
14SRC_URI = "https://gstreamer.freedesktop.org/src/gst-libav/gst-libav-${PV}.tar.xz"
15SRC_URI[sha256sum] = "3b60d4cac2fbcd085a93e9389ca23e0443bee1ca75574d31d4f12bb1bbecab48"
16
17S = "${WORKDIR}/gst-libav-${PV}"
18
19DEPENDS = "gstreamer1.0 gstreamer1.0-plugins-base ffmpeg"
20
21inherit meson pkgconfig upstream-version-is-even
22
23EXTRA_OEMESON += " \
24 -Dtests=disabled \
25"
26
27FILES:${PN} += "${libdir}/gstreamer-1.0/*.so"
28FILES:${PN}-staticdev += "${libdir}/gstreamer-1.0/*.a"
diff --git a/meta-xilinx-multimedia/recipes-multimedia/gstreamer/gstreamer1.0-omx_1.22.12.bb b/meta-xilinx-multimedia/recipes-multimedia/gstreamer/gstreamer1.0-omx_1.22.12.bb
new file mode 100644
index 00000000..4db16ed1
--- /dev/null
+++ b/meta-xilinx-multimedia/recipes-multimedia/gstreamer/gstreamer1.0-omx_1.22.12.bb
@@ -0,0 +1,47 @@
1SUMMARY = "OpenMAX IL plugins for GStreamer"
2DESCRIPTION = "Wraps available OpenMAX IL components and makes them available as standard GStreamer elements."
3HOMEPAGE = "http://gstreamer.freedesktop.org/"
4SECTION = "multimedia"
5
6LICENSE = "LGPL-2.1-or-later"
7LICENSE_FLAGS = "commercial"
8LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c \
9 file://omx/gstomx.h;beginline=1;endline=21;md5=5c8e1fca32704488e76d2ba9ddfa935f"
10
11SRC_URI = "https://gstreamer.freedesktop.org/src/gst-omx/gst-omx-${PV}.tar.xz"
12
13SRC_URI[sha256sum] = "6b0685b92ac735032d7987d1028afaeab0a98ab726e0c51e5b9bfc8f2da7c8b1"
14
15S = "${WORKDIR}/gst-omx-${PV}"
16
17DEPENDS = "gstreamer1.0 gstreamer1.0-plugins-base gstreamer1.0-plugins-bad virtual/libomxil"
18
19inherit meson pkgconfig upstream-version-is-even
20
21GSTREAMER_1_0_OMX_TARGET ?= "bellagio"
22GSTREAMER_1_0_OMX_CORE_NAME ?= "${libdir}/libomxil-bellagio.so.0"
23
24EXTRA_OEMESON += "-Dtarget=${GSTREAMER_1_0_OMX_TARGET}"
25
26python __anonymous () {
27 omx_target = d.getVar("GSTREAMER_1_0_OMX_TARGET")
28 if omx_target in ['generic', 'bellagio']:
29 # Bellagio headers are incomplete (they are missing the OMX_VERSION_MAJOR,#
30 # OMX_VERSION_MINOR, OMX_VERSION_REVISION, and OMX_VERSION_STEP macros);
31 # appending a directory path to gst-omx' internal OpenMAX IL headers fixes this
32 d.appendVar("CFLAGS", " -I${S}/omx/openmax")
33 elif omx_target == "rpi":
34 # Dedicated Raspberry Pi OpenMAX IL support makes this package machine specific
35 d.setVar("PACKAGE_ARCH", d.getVar("MACHINE_ARCH"))
36}
37
38set_omx_core_name() {
39 sed -i -e "s;^core-name=.*;core-name=${GSTREAMER_1_0_OMX_CORE_NAME};" "${D}${sysconfdir}/xdg/gstomx.conf"
40}
41do_install[postfuncs] += " set_omx_core_name "
42
43FILES:${PN} += "${libdir}/gstreamer-1.0/*.so"
44FILES:${PN}-staticdev += "${libdir}/gstreamer-1.0/*.a"
45
46VIRTUAL-RUNTIME_libomxil ?= "libomxil"
47RDEPENDS:${PN} = "${VIRTUAL-RUNTIME_libomxil}"
diff --git a/meta-xilinx-multimedia/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0001-fix-maybe-uninitialized-warnings-when-compiling-with.patch b/meta-xilinx-multimedia/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0001-fix-maybe-uninitialized-warnings-when-compiling-with.patch
new file mode 100644
index 00000000..a57fcd7d
--- /dev/null
+++ b/meta-xilinx-multimedia/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0001-fix-maybe-uninitialized-warnings-when-compiling-with.patch
@@ -0,0 +1,26 @@
1From 8be0c6ac60c96e87d8aa443be9c431844dc3d92a Mon Sep 17 00:00:00 2001
2From: Andre McCurdy <armccurdy@gmail.com>
3Date: Tue, 26 Jan 2016 15:16:01 -0800
4Subject: [PATCH] fix maybe-uninitialized warnings when compiling with -Os
5
6Upstream-Status: Pending
7
8Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
9
10---
11 gst-libs/gst/codecparsers/gstvc1parser.c | 2 +-
12 1 file changed, 1 insertion(+), 1 deletion(-)
13
14diff --git a/gst-libs/gst/codecparsers/gstvc1parser.c b/gst-libs/gst/codecparsers/gstvc1parser.c
15index 2c60ced..e8226d8 100644
16--- a/gst-libs/gst/codecparsers/gstvc1parser.c
17+++ b/gst-libs/gst/codecparsers/gstvc1parser.c
18@@ -1730,7 +1730,7 @@ gst_vc1_parse_sequence_layer (const guint8 * data, gsize size,
19 GstVC1SeqLayer * seqlayer)
20 {
21 guint32 tmp;
22- guint8 tmp8;
23+ guint8 tmp8 = 0;
24 guint8 structA[8] = { 0, };
25 guint8 structB[12] = { 0, };
26 GstBitReader br;
diff --git a/meta-xilinx-multimedia/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0002-avoid-including-sys-poll.h-directly.patch b/meta-xilinx-multimedia/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0002-avoid-including-sys-poll.h-directly.patch
new file mode 100644
index 00000000..6509a293
--- /dev/null
+++ b/meta-xilinx-multimedia/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0002-avoid-including-sys-poll.h-directly.patch
@@ -0,0 +1,28 @@
1From 426ee79adeecc24605426030a486d7c5a755048c Mon Sep 17 00:00:00 2001
2From: Andre McCurdy <armccurdy@gmail.com>
3Date: Wed, 3 Feb 2016 18:05:41 -0800
4Subject: [PATCH] avoid including <sys/poll.h> directly
5
6musl libc generates warnings if <sys/poll.h> is included directly.
7
8Upstream-Status: Pending
9
10Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
11
12---
13 sys/dvb/gstdvbsrc.c | 2 +-
14 1 file changed, 1 insertion(+), 1 deletion(-)
15
16diff --git a/sys/dvb/gstdvbsrc.c b/sys/dvb/gstdvbsrc.c
17index b8e5b1a..5bca6e5 100644
18--- a/sys/dvb/gstdvbsrc.c
19+++ b/sys/dvb/gstdvbsrc.c
20@@ -98,7 +98,7 @@
21 #include <gst/gst.h>
22 #include <gst/glib-compat-private.h>
23 #include <sys/ioctl.h>
24-#include <sys/poll.h>
25+#include <poll.h>
26 #include <fcntl.h>
27 #include <errno.h>
28 #include <stdio.h>
diff --git a/meta-xilinx-multimedia/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0004-opencv-resolve-missing-opencv-data-dir-in-yocto-buil.patch b/meta-xilinx-multimedia/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0004-opencv-resolve-missing-opencv-data-dir-in-yocto-buil.patch
new file mode 100644
index 00000000..50a3143e
--- /dev/null
+++ b/meta-xilinx-multimedia/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0004-opencv-resolve-missing-opencv-data-dir-in-yocto-buil.patch
@@ -0,0 +1,33 @@
1From e6eb7536fcfc2c75f7831f67b1f16f3f36ef2545 Mon Sep 17 00:00:00 2001
2From: Andrey Zhizhikin <andrey.z@gmail.com>
3Date: Mon, 27 Jan 2020 10:22:35 +0000
4Subject: [PATCH] opencv: resolve missing opencv data dir in yocto build
5
6When Yocto build is performed, opencv searches for data dir using simple
7'test' command, this fails because pkg-config provides an absolute
8path on the target which needs to be prepended by PKG_CONFIG_SYSROOT_DIR
9in order for the 'test' utility to pick up the absolute path.
10
11Upstream-Status: Inappropriate [OE-specific]
12
13Signed-off-by: Andrey Zhizhikin <andrey.z@gmail.com>
14Signed-off-by: Jose Quaresma <quaresma.jose@gmail.com>
15
16---
17 ext/opencv/meson.build | 3 +++
18 1 file changed, 3 insertions(+)
19
20diff --git a/ext/opencv/meson.build b/ext/opencv/meson.build
21index 37e2015..326f737 100644
22--- a/ext/opencv/meson.build
23+++ b/ext/opencv/meson.build
24@@ -87,6 +87,9 @@ if opencv_found
25 opencv_prefix = opencv_dep.get_variable('prefix')
26 gstopencv_cargs += ['-DOPENCV_PREFIX="' + opencv_prefix + '"']
27
28+ pkgconf_sysroot = run_command(python3, '-c', 'import os; print(os.environ.get("PKG_CONFIG_SYSROOT_DIR"))').stdout().strip()
29+ opencv_prefix = pkgconf_sysroot + opencv_prefix
30+
31 # Check the data dir used by opencv for its xml data files
32 # Use prefix from pkg-config to be compatible with cross-compilation
33 r = run_command('test', '-d', opencv_prefix + '/share/opencv', check: false)
diff --git a/meta-xilinx-multimedia/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.22.12.bb b/meta-xilinx-multimedia/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.22.12.bb
new file mode 100644
index 00000000..01c95ac8
--- /dev/null
+++ b/meta-xilinx-multimedia/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.22.12.bb
@@ -0,0 +1,165 @@
1require gstreamer1.0-plugins-common.inc
2require gstreamer1.0-plugins-license.inc
3
4SUMMARY = "'Bad' GStreamer plugins and helper libraries "
5HOMEPAGE = "https://gstreamer.freedesktop.org/"
6BUGTRACKER = "https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/issues"
7
8SRC_URI = "https://gstreamer.freedesktop.org/src/gst-plugins-bad/gst-plugins-bad-${PV}.tar.xz \
9 file://0001-fix-maybe-uninitialized-warnings-when-compiling-with.patch \
10 file://0002-avoid-including-sys-poll.h-directly.patch \
11 file://0004-opencv-resolve-missing-opencv-data-dir-in-yocto-buil.patch \
12 "
13SRC_URI[sha256sum] = "388b4c4412f42e36a38b17cc34119bc11879bd4d9fbd4ff6d03b2c7fc6b4d494"
14
15S = "${WORKDIR}/gst-plugins-bad-${PV}"
16
17LICENSE = "LGPL-2.1-or-later & GPL-2.0-or-later"
18LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c"
19
20DEPENDS += "gstreamer1.0-plugins-base"
21
22inherit gobject-introspection
23
24PACKAGECONFIG ??= " \
25 ${GSTREAMER_ORC} \
26 ${@bb.utils.contains('DISTRO_FEATURES', 'bluetooth', 'bluez', '', d)} \
27 ${@bb.utils.filter('DISTRO_FEATURES', 'directfb vulkan x11', d)} \
28 ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland', '', d)} \
29 ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'gl', '', d)} \
30 bz2 closedcaption curl dash dtls hls openssl sbc smoothstreaming \
31 sndfile ttml uvch264 webp \
32 ${@bb.utils.contains('TUNE_FEATURES', 'mx32', '', 'rsvg', d)} \
33"
34
35PACKAGECONFIG[aom] = "-Daom=enabled,-Daom=disabled,aom"
36PACKAGECONFIG[assrender] = "-Dassrender=enabled,-Dassrender=disabled,libass"
37PACKAGECONFIG[avtp] = "-Davtp=enabled,-Davtp=disabled,libavtp"
38PACKAGECONFIG[bluez] = "-Dbluez=enabled,-Dbluez=disabled,bluez5"
39PACKAGECONFIG[bz2] = "-Dbz2=enabled,-Dbz2=disabled,bzip2"
40PACKAGECONFIG[closedcaption] = "-Dclosedcaption=enabled,-Dclosedcaption=disabled,pango cairo"
41PACKAGECONFIG[curl] = "-Dcurl=enabled,-Dcurl=disabled,curl"
42PACKAGECONFIG[dash] = "-Ddash=enabled,-Ddash=disabled,libxml2"
43PACKAGECONFIG[dc1394] = "-Ddc1394=enabled,-Ddc1394=disabled,libdc1394"
44PACKAGECONFIG[directfb] = "-Ddirectfb=enabled,-Ddirectfb=disabled,directfb"
45PACKAGECONFIG[dtls] = "-Ddtls=enabled,-Ddtls=disabled,openssl"
46PACKAGECONFIG[faac] = "-Dfaac=enabled,-Dfaac=disabled,faac"
47PACKAGECONFIG[faad] = "-Dfaad=enabled,-Dfaad=disabled,faad2"
48PACKAGECONFIG[fluidsynth] = "-Dfluidsynth=enabled,-Dfluidsynth=disabled,fluidsynth"
49PACKAGECONFIG[hls] = "-Dhls=enabled,-Dhls=disabled,"
50# Pick atleast one crypto backend below when enabling hls
51PACKAGECONFIG[nettle] = "-Dhls-crypto=nettle,,nettle"
52PACKAGECONFIG[openssl] = "-Dhls-crypto=openssl,,openssl"
53PACKAGECONFIG[gcrypt] = "-Dhls-crypto=libgcrypt,,libgcrypt"
54# the gl packageconfig enables OpenGL elements that haven't been ported
55# to -base yet. They depend on the gstgl library in -base, so we do
56# not add GL dependencies here, since these are taken care of in -base.
57PACKAGECONFIG[gl] = "-Dgl=enabled,-Dgl=disabled,"
58PACKAGECONFIG[kms] = "-Dkms=enabled,-Dkms=disabled,libdrm"
59PACKAGECONFIG[libde265] = "-Dlibde265=enabled,-Dlibde265=disabled,libde265"
60PACKAGECONFIG[libssh2] = "-Dcurl-ssh2=enabled,-Dcurl-ssh2=disabled,libssh2"
61PACKAGECONFIG[lcms2] = "-Dcolormanagement=enabled,-Dcolormanagement=disabled,lcms"
62PACKAGECONFIG[modplug] = "-Dmodplug=enabled,-Dmodplug=disabled,libmodplug"
63PACKAGECONFIG[msdk] = "-Dmsdk=enabled -Dmfx_api=oneVPL,-Dmsdk=disabled,onevpl-intel-gpu"
64PACKAGECONFIG[neon] = "-Dneon=enabled,-Dneon=disabled,neon"
65PACKAGECONFIG[openal] = "-Dopenal=enabled,-Dopenal=disabled,openal-soft"
66PACKAGECONFIG[opencv] = "-Dopencv=enabled,-Dopencv=disabled,opencv"
67PACKAGECONFIG[openh264] = "-Dopenh264=enabled,-Dopenh264=disabled,openh264"
68PACKAGECONFIG[openjpeg] = "-Dopenjpeg=enabled,-Dopenjpeg=disabled,openjpeg"
69PACKAGECONFIG[openmpt] = "-Dopenmpt=enabled,-Dopenmpt=disabled,libopenmpt"
70# the opus encoder/decoder elements are now in the -base package,
71# but the opus parser remains in -bad
72PACKAGECONFIG[opusparse] = "-Dopus=enabled,-Dopus=disabled,libopus"
73PACKAGECONFIG[resindvd] = "-Dresindvd=enabled,-Dresindvd=disabled,libdvdread libdvdnav"
74PACKAGECONFIG[rsvg] = "-Drsvg=enabled,-Drsvg=disabled,librsvg"
75PACKAGECONFIG[rtmp] = "-Drtmp=enabled,-Drtmp=disabled,rtmpdump"
76PACKAGECONFIG[sbc] = "-Dsbc=enabled,-Dsbc=disabled,sbc"
77PACKAGECONFIG[sctp] = "-Dsctp=enabled,-Dsctp=disabled"
78PACKAGECONFIG[smoothstreaming] = "-Dsmoothstreaming=enabled,-Dsmoothstreaming=disabled,libxml2"
79PACKAGECONFIG[sndfile] = "-Dsndfile=enabled,-Dsndfile=disabled,libsndfile1"
80PACKAGECONFIG[srt] = "-Dsrt=enabled,-Dsrt=disabled,srt"
81PACKAGECONFIG[srtp] = "-Dsrtp=enabled,-Dsrtp=disabled,libsrtp"
82PACKAGECONFIG[tinyalsa] = "-Dtinyalsa=enabled,-Dtinyalsa=disabled,tinyalsa"
83PACKAGECONFIG[ttml] = "-Dttml=enabled,-Dttml=disabled,libxml2 pango cairo"
84PACKAGECONFIG[uvch264] = "-Duvch264=enabled,-Duvch264=disabled,libusb1 libgudev"
85# this enables support for stateless V4L2 mem2mem codecs, which is a newer form of
86# V4L2 codec; the V4L2 code in -base supports the older stateful V4L2 mem2mem codecs
87PACKAGECONFIG[v4l2codecs] = "-Dv4l2codecs=enabled,-Dv4l2codecs=disabled,libgudev"
88PACKAGECONFIG[va] = "-Dva=enabled,-Dva=disabled,libva"
89PACKAGECONFIG[voaacenc] = "-Dvoaacenc=enabled,-Dvoaacenc=disabled,vo-aacenc"
90PACKAGECONFIG[voamrwbenc] = "-Dvoamrwbenc=enabled,-Dvoamrwbenc=disabled,vo-amrwbenc"
91PACKAGECONFIG[vulkan] = "-Dvulkan=enabled,-Dvulkan=disabled,vulkan-loader shaderc-native"
92PACKAGECONFIG[wayland] = "-Dwayland=enabled,-Dwayland=disabled,wayland-native wayland wayland-protocols libdrm"
93PACKAGECONFIG[webp] = "-Dwebp=enabled,-Dwebp=disabled,libwebp"
94PACKAGECONFIG[webrtc] = "-Dwebrtc=enabled,-Dwebrtc=disabled,libnice"
95PACKAGECONFIG[webrtcdsp] = "-Dwebrtcdsp=enabled,-Dwebrtcdsp=disabled,webrtc-audio-processing"
96PACKAGECONFIG[zbar] = "-Dzbar=enabled,-Dzbar=disabled,zbar"
97PACKAGECONFIG[x11] = "-Dx11=enabled,-Dx11=disabled,libxcb libxkbcommon"
98PACKAGECONFIG[x265] = "-Dx265=enabled,-Dx265=disabled,x265"
99
100GSTREAMER_GPL = "${@bb.utils.filter('PACKAGECONFIG', 'faad resindvd x265', d)}"
101
102EXTRA_OEMESON += " \
103 -Ddoc=disabled \
104 -Daes=enabled \
105 -Dcodecalpha=enabled \
106 -Ddecklink=enabled \
107 -Ddvb=enabled \
108 -Dfbdev=enabled \
109 -Dipcpipeline=enabled \
110 -Dshm=enabled \
111 -Dtranscode=enabled \
112 -Dandroidmedia=disabled \
113 -Dapplemedia=disabled \
114 -Dasio=disabled \
115 -Dbs2b=disabled \
116 -Dchromaprint=disabled \
117 -Dd3dvideosink=disabled \
118 -Dd3d11=disabled \
119 -Ddirectsound=disabled \
120 -Ddts=disabled \
121 -Dfdkaac=disabled \
122 -Dflite=disabled \
123 -Dgme=disabled \
124 -Dgs=disabled \
125 -Dgsm=disabled \
126 -Diqa=disabled \
127 -Dkate=disabled \
128 -Dladspa=disabled \
129 -Dldac=disabled \
130 -Dlv2=disabled \
131 -Dmagicleap=disabled \
132 -Dmediafoundation=disabled \
133 -Dmicrodns=disabled \
134 -Dmpeg2enc=disabled \
135 -Dmplex=disabled \
136 -Dmusepack=disabled \
137 -Dnvcodec=disabled \
138 -Dopenexr=disabled \
139 -Dopenni2=disabled \
140 -Dopenaptx=disabled \
141 -Dopensles=disabled \
142 -Donnx=disabled \
143 -Dqroverlay=disabled \
144 -Dsoundtouch=disabled \
145 -Dspandsp=disabled \
146 -Dsvthevcenc=disabled \
147 -Dteletext=disabled \
148 -Dwasapi=disabled \
149 -Dwasapi2=disabled \
150 -Dwildmidi=disabled \
151 -Dwinks=disabled \
152 -Dwinscreencap=disabled \
153 -Dwpe=disabled \
154 -Dzxing=disabled \
155"
156
157export OPENCV_PREFIX = "${STAGING_DIR_TARGET}${prefix}"
158
159ARM_INSTRUCTION_SET:armv4 = "arm"
160ARM_INSTRUCTION_SET:armv5 = "arm"
161
162FILES:${PN}-freeverb += "${datadir}/gstreamer-1.0/presets/GstFreeverb.prs"
163FILES:${PN}-opencv += "${datadir}/gst-plugins-bad/1.0/opencv*"
164FILES:${PN}-transcode += "${datadir}/gstreamer-1.0/encoding-profiles"
165FILES:${PN}-voamrwbenc += "${datadir}/gstreamer-1.0/presets/GstVoAmrwbEnc.prs"
diff --git a/meta-xilinx-multimedia/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0001-ENGR00312515-get-caps-from-src-pad-when-query-caps.patch b/meta-xilinx-multimedia/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0001-ENGR00312515-get-caps-from-src-pad-when-query-caps.patch
new file mode 100644
index 00000000..34c99ded
--- /dev/null
+++ b/meta-xilinx-multimedia/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0001-ENGR00312515-get-caps-from-src-pad-when-query-caps.patch
@@ -0,0 +1,42 @@
1From 63fe5a7b4ef70e2c490bad3b0838329935a8d77c Mon Sep 17 00:00:00 2001
2From: zhouming <b42586@freescale.com>
3Date: Wed, 14 May 2014 10:16:20 +0800
4Subject: [PATCH] ENGR00312515: get caps from src pad when query caps
5
6https://bugzilla.gnome.org/show_bug.cgi?id=728312
7
8Upstream-Status: Pending
9
10Signed-off-by: zhouming <b42586@freescale.com>
11
12---
13 gst-libs/gst/tag/gsttagdemux.c | 13 +++++++++++++
14 1 file changed, 13 insertions(+)
15 mode change 100644 => 100755 gst-libs/gst/tag/gsttagdemux.c
16
17diff --git a/gst-libs/gst/tag/gsttagdemux.c b/gst-libs/gst/tag/gsttagdemux.c
18old mode 100644
19new mode 100755
20index 173da37..2b7f34c
21--- a/gst-libs/gst/tag/gsttagdemux.c
22+++ b/gst-libs/gst/tag/gsttagdemux.c
23@@ -1796,6 +1796,19 @@ gst_tag_demux_pad_query (GstPad * pad, GstObject * parent, GstQuery * query)
24 }
25 break;
26 }
27+ case GST_QUERY_CAPS:
28+ {
29+
30+ /* We can hijack caps query if we typefind already */
31+ if (demux->priv->src_caps) {
32+ gst_query_set_caps_result (query, demux->priv->src_caps);
33+ res = TRUE;
34+ } else {
35+ res = gst_pad_query_default (pad, parent, query);
36+ }
37+ break;
38+ }
39+
40 default:
41 res = gst_pad_query_default (pad, parent, query);
42 break;
diff --git a/meta-xilinx-multimedia/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0002-ssaparse-enhance-SSA-text-lines-parsing.patch b/meta-xilinx-multimedia/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0002-ssaparse-enhance-SSA-text-lines-parsing.patch
new file mode 100644
index 00000000..2adeae93
--- /dev/null
+++ b/meta-xilinx-multimedia/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0002-ssaparse-enhance-SSA-text-lines-parsing.patch
@@ -0,0 +1,227 @@
1From 7bf9525528c8f4a47413d7f82214d76f95f0c5f6 Mon Sep 17 00:00:00 2001
2From: Mingke Wang <mingke.wang@freescale.com>
3Date: Thu, 19 Mar 2015 14:17:10 +0800
4Subject: [PATCH] ssaparse: enhance SSA text lines parsing.
5
6some parser will pass in the original ssa text line which starts with "Dialog:"
7and there's are maybe multiple Dialog lines in one input buffer.
8
9Upstream-Status: Submitted [https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/issues/178]
10
11Signed-off-by: Mingke Wang <mingke.wang@freescale.com>
12
13---
14 gst/subparse/gstssaparse.c | 150 +++++++++++++++++++++++++++++++++----
15 1 file changed, 134 insertions(+), 16 deletions(-)
16 mode change 100644 => 100755 gst/subparse/gstssaparse.c
17
18diff --git a/gst/subparse/gstssaparse.c b/gst/subparse/gstssaparse.c
19old mode 100644
20new mode 100755
21index d6fdb9c..5ebe678
22--- a/gst/subparse/gstssaparse.c
23+++ b/gst/subparse/gstssaparse.c
24@@ -270,6 +270,7 @@ gst_ssa_parse_remove_override_codes (GstSsaParse * parse, gchar * txt)
25 * gst_ssa_parse_push_line:
26 * @parse: caller element
27 * @txt: text to push
28+ * @size: text size need to be parse
29 * @start: timestamp for the buffer
30 * @duration: duration for the buffer
31 *
32@@ -279,27 +280,133 @@ gst_ssa_parse_remove_override_codes (GstSsaParse * parse, gchar * txt)
33 * Returns: result of the push of the created buffer
34 */
35 static GstFlowReturn
36-gst_ssa_parse_push_line (GstSsaParse * parse, gchar * txt,
37+gst_ssa_parse_push_line (GstSsaParse * parse, gchar * txt, gint size,
38 GstClockTime start, GstClockTime duration)
39 {
40 GstFlowReturn ret;
41 GstBuffer *buf;
42- gchar *t, *escaped;
43+ gchar *t, *text, *p, *escaped, *p_start, *p_end;
44 gint num, i, len;
45+ GstClockTime start_time = G_MAXUINT64, end_time = 0;
46
47- num = atoi (txt);
48- GST_LOG_OBJECT (parse, "Parsing line #%d at %" GST_TIME_FORMAT,
49- num, GST_TIME_ARGS (start));
50-
51- /* skip all non-text fields before the actual text */
52+ p = text = g_malloc(size + 1);
53+ *p = '\0';
54 t = txt;
55- for (i = 0; i < 8; ++i) {
56- t = strchr (t, ',');
57+
58+ /* there are may have multiple dialogue lines at a time */
59+ while (*t) {
60+ /* ignore leading white space characters */
61+ while (isspace(*t))
62+ t++;
63+
64+ /* ignore Format: and Style: lines */
65+ if (strncmp(t, "Format:", 7) == 0 || strncmp(t, "Style:", 6) == 0) {
66+ while (*t != '\0' && *t != '\n') {
67+ t++;
68+ }
69+ }
70+
71+ if (*t == '\0')
72+ break;
73+
74+ /* continue with next line */
75+ if (*t == '\n') {
76+ t++;
77+ continue;
78+ }
79+
80+ if(strncmp(t, "Dialogue:", 9) != 0) {
81+ /* not started with "Dialogue:", it must be a line trimmed by demuxer */
82+ num = atoi (t);
83+ GST_LOG_OBJECT (parse, "Parsing line #%d at %" GST_TIME_FORMAT,
84+ num, GST_TIME_ARGS (start));
85+
86+ /* skip all non-text fields before the actual text */
87+ for (i = 0; i < 8; ++i) {
88+ t = strchr (t, ',');
89+ if (t == NULL)
90+ break;
91+ ++t;
92+ }
93+ } else {
94+ /* started with "Dialogue:", update timestamp and duration */
95+ /* time format are like Dialog:Mark,0:00:01.02,0:00:03.04,xx,xxx,... */
96+ guint hour, min, sec, msec, len;
97+ GstClockTime tmp;
98+ gchar t_str[12] = {0};
99+
100+ /* find the first ',' */
101+ p_start = strchr (t, ',');
102+ if (p_start)
103+ p_end = strchr (++p_start, ',');
104+
105+ if (p_start && p_end) {
106+ /* copy text between first ',' and second ',' */
107+ strncpy(t_str, p_start, p_end - p_start);
108+ if (sscanf (t_str, "%u:%u:%u.%u", &hour, &min, &sec, &msec) == 4) {
109+ tmp = ((hour*3600) + (min*60) + sec) * GST_SECOND + msec*GST_MSECOND;
110+ GST_DEBUG_OBJECT (parse, "Get start time:%02d:%02d:%02d:%03d\n",
111+ hour, min, sec, msec);
112+ if (start_time > tmp)
113+ start_time = tmp;
114+ } else {
115+ GST_WARNING_OBJECT (parse,
116+ "failed to parse ssa start timestamp string :%s", t_str);
117+ }
118+
119+ p_start = p_end;
120+ p_end = strchr (++p_start, ',');
121+ if (p_end) {
122+ /* copy text between second ',' and third ',' */
123+ strncpy(t_str, p_start, p_end - p_start);
124+ if (sscanf (t_str, "%u:%u:%u.%u", &hour, &min, &sec, &msec) == 4) {
125+ tmp = ((hour*3600) + (min*60) + sec)*GST_SECOND + msec*GST_MSECOND;
126+ GST_DEBUG_OBJECT(parse, "Get end time:%02d:%02d:%02d:%03d\n",
127+ hour, min, sec, msec);
128+ if (end_time < tmp)
129+ end_time = tmp;
130+ } else {
131+ GST_WARNING_OBJECT (parse,
132+ "failed to parse ssa end timestamp string :%s", t_str);
133+ }
134+ }
135+ }
136+
137+ /* now skip all non-text fields before the actual text */
138+ for (i = 0; i <= 8; ++i) {
139+ t = strchr (t, ',');
140+ if (t == NULL)
141+ break;
142+ ++t;
143+ }
144+ }
145+
146+ /* line end before expected number of ',', not a Dialogue line */
147 if (t == NULL)
148- return GST_FLOW_ERROR;
149- ++t;
150+ break;
151+
152+ /* if not the first line, and the last character of previous line is '\0',
153+ * then replace it with '\N' */
154+ if (p != text && *p == '\0') {
155+ *p++ = '\\';
156+ *p++ = 'N';
157+ }
158+
159+ /* copy all actual text of this line */
160+ while ((*t != '\0') && (*t != '\n'))
161+ *p++ = *t++;
162+
163+ /* add a terminator at the end */
164+ *p = '\0';
165+ }
166+
167+ /* not valid text found in this buffer return OK to let caller unref buffer */
168+ if (strlen(text) <= 0) {
169+ GST_WARNING_OBJECT (parse, "Not valid text found in this buffer\n");
170+ return GST_FLOW_ERROR;
171 }
172
173+ t = text;
174 GST_LOG_OBJECT (parse, "Text : %s", t);
175
176 if (gst_ssa_parse_remove_override_codes (parse, t)) {
177@@ -317,13 +424,22 @@ gst_ssa_parse_push_line (GstSsaParse * parse, gchar * txt,
178 gst_buffer_fill (buf, 0, escaped, len + 1);
179 gst_buffer_set_size (buf, len);
180 g_free (escaped);
181+ g_free(t);
182+
183+ if (start_time != G_MAXUINT64)
184+ GST_BUFFER_TIMESTAMP (buf) = start_time;
185+ else
186+ GST_BUFFER_TIMESTAMP (buf) = start;
187
188- GST_BUFFER_TIMESTAMP (buf) = start;
189- GST_BUFFER_DURATION (buf) = duration;
190+ if (end_time > start_time)
191+ GST_BUFFER_DURATION (buf) = end_time - start_time;
192+ else
193+ GST_BUFFER_DURATION (buf) = duration;
194
195 GST_LOG_OBJECT (parse, "Pushing buffer with timestamp %" GST_TIME_FORMAT
196- " and duration %" GST_TIME_FORMAT, GST_TIME_ARGS (start),
197- GST_TIME_ARGS (duration));
198+ " and duration %" GST_TIME_FORMAT,
199+ GST_TIME_ARGS (GST_BUFFER_TIMESTAMP (buf)),
200+ GST_TIME_ARGS (GST_BUFFER_DURATION (buf)));
201
202 ret = gst_pad_push (parse->srcpad, buf);
203
204@@ -343,6 +459,7 @@ gst_ssa_parse_chain (GstPad * sinkpad, GstObject * parent, GstBuffer * buf)
205 GstClockTime ts;
206 gchar *txt;
207 GstMapInfo map;
208+ gint size;
209
210 if (G_UNLIKELY (!parse->framed))
211 goto not_framed;
212@@ -360,13 +477,14 @@ gst_ssa_parse_chain (GstPad * sinkpad, GstObject * parent, GstBuffer * buf)
213 /* make double-sure it's 0-terminated and all */
214 gst_buffer_map (buf, &map, GST_MAP_READ);
215 txt = g_strndup ((gchar *) map.data, map.size);
216+ size = map.size;
217 gst_buffer_unmap (buf, &map);
218
219 if (txt == NULL)
220 goto empty_text;
221
222 ts = GST_BUFFER_TIMESTAMP (buf);
223- ret = gst_ssa_parse_push_line (parse, txt, ts, GST_BUFFER_DURATION (buf));
224+ ret = gst_ssa_parse_push_line (parse, txt, size, ts, GST_BUFFER_DURATION (buf));
225
226 if (ret != GST_FLOW_OK && GST_CLOCK_TIME_IS_VALID (ts)) {
227 GstSegment segment;
diff --git a/meta-xilinx-multimedia/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0003-viv-fb-Make-sure-config.h-is-included.patch b/meta-xilinx-multimedia/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0003-viv-fb-Make-sure-config.h-is-included.patch
new file mode 100644
index 00000000..a605533b
--- /dev/null
+++ b/meta-xilinx-multimedia/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0003-viv-fb-Make-sure-config.h-is-included.patch
@@ -0,0 +1,30 @@
1From 2b07840122bc2e83bd23dad59aa80d9479f2e1e4 Mon Sep 17 00:00:00 2001
2From: Carlos Rafael Giani <crg7475@mailbox.org>
3Date: Tue, 21 May 2019 14:01:11 +0200
4Subject: [PATCH] viv-fb: Make sure config.h is included
5
6This prevents build errors due to missing GST_API_* symbols
7
8Upstream-Status: Pending
9
10Signed-off-by: Carlos Rafael Giani <crg7475@mailbox.org>
11
12---
13 gst-libs/gst/gl/gl-prelude.h | 4 ++++
14 1 file changed, 4 insertions(+)
15
16diff --git a/gst-libs/gst/gl/gl-prelude.h b/gst-libs/gst/gl/gl-prelude.h
17index 85fca5a..946c729 100644
18--- a/gst-libs/gst/gl/gl-prelude.h
19+++ b/gst-libs/gst/gl/gl-prelude.h
20@@ -22,6 +22,10 @@
21 #ifndef __GST_GL_PRELUDE_H__
22 #define __GST_GL_PRELUDE_H__
23
24+#ifdef HAVE_CONFIG_H
25+#include "config.h"
26+#endif
27+
28 #include <gst/gst.h>
29
30 #ifdef BUILDING_GST_GL
diff --git a/meta-xilinx-multimedia/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.22.12.bb b/meta-xilinx-multimedia/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.22.12.bb
new file mode 100644
index 00000000..5905c2d5
--- /dev/null
+++ b/meta-xilinx-multimedia/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.22.12.bb
@@ -0,0 +1,96 @@
1require gstreamer1.0-plugins-common.inc
2
3SUMMARY = "'Base' GStreamer plugins and helper libraries"
4HOMEPAGE = "https://gstreamer.freedesktop.org/"
5BUGTRACKER = "https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/issues"
6LICENSE = "LGPL-2.1-or-later"
7LIC_FILES_CHKSUM = "file://COPYING;md5=69333daa044cb77e486cc36129f7a770"
8
9SRC_URI = "https://gstreamer.freedesktop.org/src/gst-plugins-base/gst-plugins-base-${PV}.tar.xz \
10 file://0001-ENGR00312515-get-caps-from-src-pad-when-query-caps.patch \
11 file://0003-viv-fb-Make-sure-config.h-is-included.patch \
12 file://0002-ssaparse-enhance-SSA-text-lines-parsing.patch \
13 "
14SRC_URI[sha256sum] = "73cfadc3a6ffe77ed974cfd6fb391c605e4531f48db21dd6b9f42b8cb69bd8c1"
15
16S = "${WORKDIR}/gst-plugins-base-${PV}"
17
18DEPENDS += "iso-codes util-linux zlib"
19
20inherit gobject-introspection
21
22# opengl packageconfig factored out to make it easy for distros
23# and BSP layers to choose OpenGL APIs/platforms/window systems
24PACKAGECONFIG_X11 = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'opengl glx', '', d)}"
25PACKAGECONFIG_GL ?= "${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'gles2 egl ${PACKAGECONFIG_X11}', '', d)}"
26
27PACKAGECONFIG ??= " \
28 ${GSTREAMER_ORC} \
29 ${PACKAGECONFIG_GL} \
30 ${@bb.utils.filter('DISTRO_FEATURES', 'alsa x11', d)} \
31 jpeg ogg pango png theora vorbis \
32 ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland egl', '', d)} \
33"
34
35OPENGL_APIS = 'opengl gles2'
36OPENGL_PLATFORMS = 'egl glx'
37
38X11DEPENDS = "virtual/libx11 libsm libxrender libxv"
39X11ENABLEOPTS = "-Dx11=enabled -Dxvideo=enabled -Dxshm=enabled"
40X11DISABLEOPTS = "-Dx11=disabled -Dxvideo=disabled -Dxshm=disabled"
41
42PACKAGECONFIG[alsa] = "-Dalsa=enabled,-Dalsa=disabled,alsa-lib"
43PACKAGECONFIG[cdparanoia] = "-Dcdparanoia=enabled,-Dcdparanoia=disabled,cdparanoia"
44PACKAGECONFIG[graphene] = "-Dgl-graphene=enabled,-Dgl-graphene=disabled,graphene"
45PACKAGECONFIG[jpeg] = "-Dgl-jpeg=enabled,-Dgl-jpeg=disabled,jpeg"
46PACKAGECONFIG[ogg] = "-Dogg=enabled,-Dogg=disabled,libogg"
47PACKAGECONFIG[opus] = "-Dopus=enabled,-Dopus=disabled,libopus"
48PACKAGECONFIG[pango] = "-Dpango=enabled,-Dpango=disabled,pango"
49PACKAGECONFIG[png] = "-Dgl-png=enabled,-Dgl-png=disabled,libpng"
50# This enables Qt5 QML examples in -base. The Qt5 GStreamer
51# qmlglsink and qmlglsrc plugins still exist in -good.
52PACKAGECONFIG[qt5] = "-Dqt5=enabled,-Dqt5=disabled,qtbase qtdeclarative qtbase-native"
53PACKAGECONFIG[theora] = "-Dtheora=enabled,-Dtheora=disabled,libtheora"
54PACKAGECONFIG[tremor] = "-Dtremor=enabled,-Dtremor=disabled,tremor"
55PACKAGECONFIG[visual] = "-Dlibvisual=enabled,-Dlibvisual=disabled,libvisual"
56PACKAGECONFIG[vorbis] = "-Dvorbis=enabled,-Dvorbis=disabled,libvorbis"
57PACKAGECONFIG[x11] = "${X11ENABLEOPTS},${X11DISABLEOPTS},${X11DEPENDS}"
58
59# OpenGL API packageconfigs
60PACKAGECONFIG[opengl] = ",,virtual/libgl libglu"
61PACKAGECONFIG[gles2] = ",,virtual/libgles2"
62
63# OpenGL platform packageconfigs
64PACKAGECONFIG[egl] = ",,virtual/egl"
65PACKAGECONFIG[glx] = ",,virtual/libgl"
66
67# OpenGL window systems (except for X11)
68PACKAGECONFIG[gbm] = ",,virtual/libgbm libgudev libdrm"
69PACKAGECONFIG[wayland] = ",,wayland-native wayland wayland-protocols libdrm"
70PACKAGECONFIG[dispmanx] = ",,virtual/libomxil"
71PACKAGECONFIG[viv-fb] = ",,virtual/libgles2 virtual/libg2d"
72
73OPENGL_WINSYS = "${@bb.utils.filter('PACKAGECONFIG', 'x11 gbm wayland dispmanx egl viv-fb', d)}"
74
75EXTRA_OEMESON += " \
76 -Ddoc=disabled \
77 ${@get_opengl_cmdline_list('gl_api', d.getVar('OPENGL_APIS'), d)} \
78 ${@get_opengl_cmdline_list('gl_platform', d.getVar('OPENGL_PLATFORMS'), d)} \
79 ${@get_opengl_cmdline_list('gl_winsys', d.getVar('OPENGL_WINSYS'), d)} \
80"
81
82FILES:${PN}-dev += "${libdir}/gstreamer-1.0/include/gst/gl/gstglconfig.h"
83FILES:${MLPREFIX}libgsttag-1.0 += "${datadir}/gst-plugins-base/1.0/license-translations.dict"
84
85def get_opengl_cmdline_list(switch_name, options, d):
86 selected_options = []
87 if bb.utils.contains('DISTRO_FEATURES', 'opengl', True, False, d):
88 for option in options.split():
89 if bb.utils.contains('PACKAGECONFIG', option, True, False, d):
90 selected_options += [option]
91 if selected_options:
92 return '-D' + switch_name + '=' + ','.join(selected_options)
93 else:
94 return ''
95
96CVE_PRODUCT += "gst-plugins-base"
diff --git a/meta-xilinx-multimedia/recipes-multimedia/gstreamer/gstreamer1.0-plugins-common.inc b/meta-xilinx-multimedia/recipes-multimedia/gstreamer/gstreamer1.0-plugins-common.inc
new file mode 100644
index 00000000..54dd9287
--- /dev/null
+++ b/meta-xilinx-multimedia/recipes-multimedia/gstreamer/gstreamer1.0-plugins-common.inc
@@ -0,0 +1,47 @@
1# This .inc file contains the common setup for the gstreamer1.0-plugins-*
2# plugin set recipes.
3
4# SUMMARY is set in the actual .bb recipes
5HOMEPAGE = "https://gstreamer.freedesktop.org/"
6BUGTRACKER = "https://bugzilla.gnome.org/enter_bug.cgi?product=Gstreamer"
7SECTION = "multimedia"
8
9DEPENDS = "gstreamer1.0 glib-2.0-native"
10
11inherit gettext meson pkgconfig upstream-version-is-even
12
13require gstreamer1.0-plugins-packaging.inc
14
15# Orc enables runtime JIT compilation of data processing routines from Orc
16# bytecode to SIMD instructions for various architectures (currently SSE, MMX,
17# MIPS, Altivec and NEON are supported).
18# This value is used in the PACKAGECONFIG values for each plugin set recipe.
19# By modifying it, Orc can be enabled/disabled in all of these recipes at once.
20GSTREAMER_ORC ?= "orc"
21# workaround to disable orc on mips to fix the build failure
22# {standard input}: Assembler messages:
23# {standard input}:46587: Error: branch out of range
24GSTREAMER_ORC:mips = ""
25PACKAGECONFIG[orc] = "-Dorc=enabled,-Dorc=disabled,orc orc-native"
26
27# TODO: put this in a gettext.bbclass patch (with variables to allow for
28# configuring the option name and the enabled/disabled values).
29def gettext_oemeson(d):
30 if d.getVar('USE_NLS') == 'no':
31 return '-Dnls=disabled'
32 # Remove the NLS bits if USE_NLS is no or INHIBIT_DEFAULT_DEPS is set
33 if d.getVar('INHIBIT_DEFAULT_DEPS') and not oe.utils.inherits(d, 'cross-canadian'):
34 return '-Dnls=disabled'
35 return '-Dnls=enabled'
36
37# Not all plugin sets contain examples, so the -Dexamples
38# option needs to be added conditionally.
39GST_PLUGIN_SET_HAS_EXAMPLES ?= "1"
40
41EXTRA_OEMESON += " \
42 ${@bb.utils.contains('GST_PLUGIN_SET_HAS_EXAMPLES', '1', '-Dexamples=disabled', '', d)} \
43 ${@gettext_oemeson(d)} \
44"
45
46GIR_MESON_ENABLE_FLAG = "enabled"
47GIR_MESON_DISABLE_FLAG = "disabled"
diff --git a/meta-xilinx-multimedia/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good/0001-qt-include-ext-qt-gstqtgl.h-instead-of-gst-gl-gstglf.patch b/meta-xilinx-multimedia/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good/0001-qt-include-ext-qt-gstqtgl.h-instead-of-gst-gl-gstglf.patch
new file mode 100644
index 00000000..9703a3a8
--- /dev/null
+++ b/meta-xilinx-multimedia/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good/0001-qt-include-ext-qt-gstqtgl.h-instead-of-gst-gl-gstglf.patch
@@ -0,0 +1,54 @@
1From 99f48716051ce5ddb8c1b77292213af1e462549e Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Tue, 31 Mar 2020 21:23:28 -0700
4Subject: [PATCH] qt: include ext/qt/gstqtgl.h instead of gst/gl/gstglfuncs.h
5
6gst/gl/gstglfuncs.h is included via ext/qt/gstqtgl.h which has logic to
7prefer qt headers definitions for GLsync
8
9This helps in fixing build errors like below
10
11/mnt/b/yoe/build/tmp/work/cortexa7t2hf-neon-vfpv4-yoe-linux-gnueabi/gstreamer1.0-plugins-good/1.16.2-r0/recipe-sysroot/usr/include/QtGui/qopengles2ext.h:24:26: error: conflicting declaration 'typedef struct __GLsync* GLsync'
12 24 | typedef struct __GLsync *GLsync;
13 | ^~~~~~
14In file included from /mnt/b/yoe/build/tmp/work/cortexa7t2hf-neon-vfpv4-yoe-linux-gnueabi/gstreamer1.0-plugins-good/1.16.2-r0/recipe-sysroot/usr/include/gstreamer-1.0/gst/gl/gstglfuncs.h:84,
15 from ../gst-plugins-good-1.16.2/ext/qt/gstqsgtexture.cc:30:
16/mnt/b/yoe/build/tmp/work/cortexa7t2hf-neon-vfpv4-yoe-linux-gnueabi/gstreamer1.0-plugins-good/1.16.2-r0/recipe-sysroot/usr/include/gstreamer-1.0/gst/gl/glprototypes/gstgl_compat.h:40:18: note: previous declaration as 'typedef void* GLsync
17'
18 40 | typedef gpointer GLsync;
19 | ^~~~~~
20
21Upstream-Status: Pending
22Signed-off-by: Khem Raj <raj.khem@gmail.com>
23
24---
25 ext/qt/gstqsgtexture.cc | 2 +-
26 ext/qt/qtwindow.cc | 2 +-
27 2 files changed, 2 insertions(+), 2 deletions(-)
28
29diff --git a/ext/qt/gstqsgtexture.cc b/ext/qt/gstqsgtexture.cc
30index 663696b..36b17d4 100644
31--- a/ext/qt/gstqsgtexture.cc
32+++ b/ext/qt/gstqsgtexture.cc
33@@ -27,7 +27,7 @@
34
35 #include <gst/video/video.h>
36 #include <gst/gl/gl.h>
37-#include <gst/gl/gstglfuncs.h>
38+#include <ext/qt/gstqtgl.h>
39 #include "gstqsgtexture.h"
40
41 #define GST_CAT_DEFAULT gst_qsg_texture_debug
42diff --git a/ext/qt/qtwindow.cc b/ext/qt/qtwindow.cc
43index 2872cb5..5a36be9 100644
44--- a/ext/qt/qtwindow.cc
45+++ b/ext/qt/qtwindow.cc
46@@ -25,7 +25,7 @@
47 #include <stdio.h>
48
49 #include <gst/video/video.h>
50-#include <gst/gl/gstglfuncs.h>
51+#include <ext/qt/gstqtgl.h>
52 #include "qtwindow.h"
53 #include "gstqsgtexture.h"
54 #include "gstqtglutility.h"
diff --git a/meta-xilinx-multimedia/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good/0001-v4l2-Define-ioctl_req_t-for-posix-linux-case.patch b/meta-xilinx-multimedia/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good/0001-v4l2-Define-ioctl_req_t-for-posix-linux-case.patch
new file mode 100644
index 00000000..33bd4200
--- /dev/null
+++ b/meta-xilinx-multimedia/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good/0001-v4l2-Define-ioctl_req_t-for-posix-linux-case.patch
@@ -0,0 +1,38 @@
1From b77d4806fd5de50d0b017a3e6a19c5bfdef7b3e4 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Mon, 13 Feb 2023 12:47:31 -0800
4Subject: [PATCH] v4l2: Define ioctl_req_t for posix/linux case
5
6this is an issue seen with musl based linux distros e.g. alpine [1]
7musl is not going to change this since it breaks ABI/API interfaces
8Newer compilers are stringent ( e.g. clang16 ) which can now detect
9signature mismatches in function pointers too, existing code warned but
10did not error with older clang
11
12Fixes
13gstv4l2object.c:544:23: error: incompatible function pointer types assigning to 'gint (*)(gint, ioctl_req_t, ...)' (aka 'int (*)(int, unsigned long, ...)') from 'int (int, int, ...)' [-Wincompatible-function-pointer-types]
14 v4l2object->ioctl = ioctl;
15 ^ ~~~~~
16
17[1] https://gitlab.alpinelinux.org/alpine/aports/-/issues/7580
18
19Upstream-Status: Submitted [https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3950]
20Signed-off-by: Khem Raj <raj.khem@gmail.com>
21
22---
23 sys/v4l2/gstv4l2object.h | 2 ++
24 1 file changed, 2 insertions(+)
25
26diff --git a/sys/v4l2/gstv4l2object.h b/sys/v4l2/gstv4l2object.h
27index d95b375..5223cbb 100644
28--- a/sys/v4l2/gstv4l2object.h
29+++ b/sys/v4l2/gstv4l2object.h
30@@ -76,6 +76,8 @@ typedef gboolean (*GstV4l2UpdateFpsFunction) (GstV4l2Object * v4l2object);
31 * 'unsigned long' for the 2nd parameter */
32 #ifdef __ANDROID__
33 typedef unsigned ioctl_req_t;
34+#elif defined(__linux__) && !defined(__GLIBC__) /* musl/linux */
35+typedef int ioctl_req_t;
36 #else
37 typedef gulong ioctl_req_t;
38 #endif
diff --git a/meta-xilinx-multimedia/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good_1.22.12.bb b/meta-xilinx-multimedia/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good_1.22.12.bb
new file mode 100644
index 00000000..8099d707
--- /dev/null
+++ b/meta-xilinx-multimedia/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good_1.22.12.bb
@@ -0,0 +1,81 @@
1require gstreamer1.0-plugins-common.inc
2
3SUMMARY = "'Good' GStreamer plugins"
4HOMEPAGE = "https://gstreamer.freedesktop.org/"
5BUGTRACKER = "https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/issues"
6
7SRC_URI = "https://gstreamer.freedesktop.org/src/gst-plugins-good/gst-plugins-good-${PV}.tar.xz \
8 file://0001-qt-include-ext-qt-gstqtgl.h-instead-of-gst-gl-gstglf.patch \
9 file://0001-v4l2-Define-ioctl_req_t-for-posix-linux-case.patch"
10
11SRC_URI[sha256sum] = "9c1913f981900bd8867182639b20907b28ed78ef7a222cfbf2d8ba9dab992fa7"
12
13S = "${WORKDIR}/gst-plugins-good-${PV}"
14
15LICENSE = "LGPL-2.1-or-later"
16LIC_FILES_CHKSUM = "file://COPYING;md5=a6f89e2100d9b6cdffcea4f398e37343 \
17 file://gst/replaygain/rganalysis.c;beginline=1;endline=23;md5=b60ebefd5b2f5a8e0cab6bfee391a5fe"
18
19DEPENDS += "gstreamer1.0-plugins-base libcap zlib"
20RPROVIDES:${PN}-pulseaudio += "${PN}-pulse"
21RPROVIDES:${PN}-soup += "${PN}-souphttpsrc"
22RDEPENDS:${PN}-soup += "${MLPREFIX}${@bb.utils.contains('PACKAGECONFIG', 'soup2', 'libsoup-2.4', 'libsoup', d)}"
23
24PACKAGECONFIG_SOUP ?= "soup3"
25
26PACKAGECONFIG ??= " \
27 ${GSTREAMER_ORC} \
28 ${PACKAGECONFIG_SOUP} \
29 ${@bb.utils.filter('DISTRO_FEATURES', 'pulseaudio x11', d)} \
30 ${@bb.utils.contains('TUNE_FEATURES', 'm64', 'asm', '', d)} \
31 bz2 cairo flac gdk-pixbuf gudev jpeg lame libpng mpg123 speex taglib v4l2 \
32"
33
34X11DEPENDS = "virtual/libx11 libsm libxrender libxfixes libxdamage"
35X11ENABLEOPTS = "-Dximagesrc=enabled -Dximagesrc-xshm=enabled -Dximagesrc-xfixes=enabled -Dximagesrc-xdamage=enabled"
36X11DISABLEOPTS = "-Dximagesrc=disabled -Dximagesrc-xshm=disabled -Dximagesrc-xfixes=disabled -Dximagesrc-xdamage=disabled"
37
38QT5WAYLANDDEPENDS = "${@bb.utils.contains("DISTRO_FEATURES", "wayland", "qtwayland", "", d)}"
39
40PACKAGECONFIG[asm] = "-Dasm=enabled,-Dasm=disabled,nasm-native"
41PACKAGECONFIG[bz2] = "-Dbz2=enabled,-Dbz2=disabled,bzip2"
42PACKAGECONFIG[cairo] = "-Dcairo=enabled,-Dcairo=disabled,cairo"
43PACKAGECONFIG[dv1394] = "-Ddv1394=enabled,-Ddv1394=disabled,libiec61883 libavc1394 libraw1394"
44PACKAGECONFIG[flac] = "-Dflac=enabled,-Dflac=disabled,flac"
45PACKAGECONFIG[gdk-pixbuf] = "-Dgdk-pixbuf=enabled,-Dgdk-pixbuf=disabled,gdk-pixbuf"
46PACKAGECONFIG[gtk] = "-Dgtk3=enabled,-Dgtk3=disabled,gtk+3"
47PACKAGECONFIG[gudev] = "-Dv4l2-gudev=enabled,-Dv4l2-gudev=disabled,libgudev"
48PACKAGECONFIG[jack] = "-Djack=enabled,-Djack=disabled,jack"
49PACKAGECONFIG[jpeg] = "-Djpeg=enabled,-Djpeg=disabled,jpeg"
50PACKAGECONFIG[lame] = "-Dlame=enabled,-Dlame=disabled,lame"
51PACKAGECONFIG[libpng] = "-Dpng=enabled,-Dpng=disabled,libpng"
52PACKAGECONFIG[libv4l2] = "-Dv4l2-libv4l2=enabled,-Dv4l2-libv4l2=disabled,v4l-utils"
53PACKAGECONFIG[mpg123] = "-Dmpg123=enabled,-Dmpg123=disabled,mpg123"
54PACKAGECONFIG[pulseaudio] = "-Dpulse=enabled,-Dpulse=disabled,pulseaudio"
55PACKAGECONFIG[qt5] = "-Dqt5=enabled,-Dqt5=disabled,qtbase qtdeclarative qtbase-native qttools-native ${QT5WAYLANDDEPENDS}"
56PACKAGECONFIG[soup2] = "-Dsoup=enabled,,libsoup-2.4,,,soup3"
57PACKAGECONFIG[soup3] = "-Dsoup=enabled,,libsoup,,,soup2"
58PACKAGECONFIG[speex] = "-Dspeex=enabled,-Dspeex=disabled,speex"
59PACKAGECONFIG[rpi] = "-Drpicamsrc=enabled,-Drpicamsrc=disabled,userland"
60PACKAGECONFIG[taglib] = "-Dtaglib=enabled,-Dtaglib=disabled,taglib"
61PACKAGECONFIG[v4l2] = "-Dv4l2=enabled -Dv4l2-probe=true,-Dv4l2=disabled -Dv4l2-probe=false"
62PACKAGECONFIG[vpx] = "-Dvpx=enabled,-Dvpx=disabled,libvpx"
63PACKAGECONFIG[wavpack] = "-Dwavpack=enabled,-Dwavpack=disabled,wavpack"
64PACKAGECONFIG[x11] = "${X11ENABLEOPTS},${X11DISABLEOPTS},${X11DEPENDS}"
65
66EXTRA_OEMESON += " \
67 -Ddoc=disabled \
68 -Daalib=disabled \
69 -Ddirectsound=disabled \
70 -Ddv=disabled \
71 -Dlibcaca=disabled \
72 -Doss=enabled \
73 -Doss4=disabled \
74 -Dosxaudio=disabled \
75 -Dosxvideo=disabled \
76 -Dshout2=disabled \
77 -Dtwolame=disabled \
78 -Dwaveform=disabled \
79"
80
81FILES:${PN}-equalizer += "${datadir}/gstreamer-1.0/presets/*.prs"
diff --git a/meta-xilinx-multimedia/recipes-multimedia/gstreamer/gstreamer1.0-plugins-license.inc b/meta-xilinx-multimedia/recipes-multimedia/gstreamer/gstreamer1.0-plugins-license.inc
new file mode 100644
index 00000000..8b1c0011
--- /dev/null
+++ b/meta-xilinx-multimedia/recipes-multimedia/gstreamer/gstreamer1.0-plugins-license.inc
@@ -0,0 +1,19 @@
1# This .inc file contains functionality for automatically setting
2# the the license of all plugins according to the GSTREAMER_GPL.
3
4PACKAGESPLITFUNCS += "set_gstreamer_license"
5
6python set_gstreamer_license () {
7 import oe.utils
8 pn = d.getVar('PN') + '-'
9 gpl_plugins_names = [pn+plugin for plugin in d.getVar('GSTREAMER_GPL').split()]
10 for pkg in oe.utils.packages_filter_out_system(d):
11 if pkg in gpl_plugins_names:
12 d.setVar('LICENSE:' + pkg, 'GPL-2.0-or-later')
13 else:
14 d.setVar('LICENSE:' + pkg, 'LGPL-2.1-or-later')
15}
16
17EXTRA_OEMESON += " \
18 ${@bb.utils.contains_any('PACKAGECONFIG', "${GSTREAMER_GPL}", '-Dgpl=enabled', '-Dgpl=disabled', d)} \
19 "
diff --git a/meta-xilinx-multimedia/recipes-multimedia/gstreamer/gstreamer1.0-plugins-packaging.inc b/meta-xilinx-multimedia/recipes-multimedia/gstreamer/gstreamer1.0-plugins-packaging.inc
new file mode 100644
index 00000000..d77aeed8
--- /dev/null
+++ b/meta-xilinx-multimedia/recipes-multimedia/gstreamer/gstreamer1.0-plugins-packaging.inc
@@ -0,0 +1,73 @@
1# This .inc file contains functionality for automatically splitting
2# built plugins into individual packages for each plugin. A -meta
3# package is also set up that has no files of its own, but contains
4# the names of all plugin packages in its RDEPENDS list.
5#
6# This is mainly used by the gstreamer1.0-plugins-* plugin set recipes,
7# but can be used in any recipe that produces GStreamer plugins.
8
9# Dynamically generate packages for all enabled plugins
10PACKAGES_DYNAMIC = "^${PN}-.* ^libgst.*"
11
12PACKAGESPLITFUNCS =+ "split_gstreamer10_packages"
13PACKAGESPLITFUNCS += "set_gstreamer10_metapkg_rdepends"
14
15python split_gstreamer10_packages () {
16 gst_libdir = d.expand('${libdir}/gstreamer-1.0')
17 postinst = d.getVar('plugin_postinst')
18 glibdir = d.getVar('libdir')
19
20 # GStreamer libraries
21 do_split_packages(d, glibdir, r'^lib(.*)\.so\.*', 'lib%s', 'GStreamer 1.0 %s library', extra_depends='', allow_links=True)
22 # GStreamer plugin shared objects
23 do_split_packages(d, gst_libdir, r'libgst(.*)\.so$', d.expand('${PN}-%s'), 'GStreamer 1.0 plugin for %s', postinst=postinst, extra_depends='')
24 # GObject introspection files for GStreamer plugins
25 do_split_packages(d, glibdir+'/girepository-1.0', r'Gst(.*)-1.0\.typelib$', d.expand('${PN}-%s-typelib'), 'GStreamer 1.0 typelib file for %s', postinst=postinst, extra_depends='')
26 # Static GStreamer libraries for development
27 do_split_packages(d, gst_libdir, r'libgst(.*)\.a$', d.expand('${PN}-%s-staticdev'), 'GStreamer 1.0 plugin for %s (static development files)', extra_depends='${PN}-staticdev')
28}
29
30python set_gstreamer10_metapkg_rdepends () {
31 import os
32 import oe.utils
33
34 # Go through all generated packages (excluding the main package and
35 # the -meta package itself) and add them to the -meta package as RDEPENDS.
36
37 pn = d.getVar('PN')
38 metapkg = pn + '-meta'
39 d.setVar('ALLOW_EMPTY:' + metapkg, "1")
40 d.setVar('FILES:' + metapkg, "")
41 exclude = [ pn, pn + '-meta' ]
42 metapkg_rdepends = []
43 pkgdest = d.getVar('PKGDEST')
44 for pkg in oe.utils.packages_filter_out_system(d):
45 if pkg not in exclude and pkg not in metapkg_rdepends:
46 # See if the package is empty by looking at the contents of its PKGDEST subdirectory.
47 # If this subdirectory is empty, then the package is.
48 # Empty packages do not get added to the meta package's RDEPENDS
49 pkgdir = os.path.join(pkgdest, pkg)
50 if os.path.exists(pkgdir):
51 dir_contents = os.listdir(pkgdir) or []
52 else:
53 dir_contents = []
54 is_empty = len(dir_contents) == 0
55 if not is_empty:
56 metapkg_rdepends.append(pkg)
57 d.setVar('RDEPENDS:' + metapkg, ' '.join(metapkg_rdepends))
58 d.setVar('DESCRIPTION:' + metapkg, pn + ' meta package')
59}
60
61# each plugin-dev depends on PN-dev, plugin-staticdev on PN-staticdev
62# so we need them even when empty (like in gst-plugins-good case)
63ALLOW_EMPTY:${PN} = "1"
64ALLOW_EMPTY:${PN}-dev = "1"
65ALLOW_EMPTY:${PN}-staticdev = "1"
66
67PACKAGES += "${PN}-apps ${PN}-meta ${PN}-glib"
68
69FILES:${PN} = ""
70FILES:${PN}-apps = "${bindir}"
71FILES:${PN}-glib = "${datadir}/glib-2.0"
72
73RRECOMMENDS:${PN} += "${PN}-meta"
diff --git a/meta-xilinx-multimedia/recipes-multimedia/gstreamer/gstreamer1.0-plugins-ugly_1.22.12.bb b/meta-xilinx-multimedia/recipes-multimedia/gstreamer/gstreamer1.0-plugins-ugly_1.22.12.bb
new file mode 100644
index 00000000..714ee178
--- /dev/null
+++ b/meta-xilinx-multimedia/recipes-multimedia/gstreamer/gstreamer1.0-plugins-ugly_1.22.12.bb
@@ -0,0 +1,47 @@
1require gstreamer1.0-plugins-common.inc
2require gstreamer1.0-plugins-license.inc
3
4SUMMARY = "'Ugly GStreamer plugins"
5HOMEPAGE = "https://gstreamer.freedesktop.org/"
6BUGTRACKER = "https://gitlab.freedesktop.org/gstreamer/gst-plugins-ugly/-/issues"
7
8LIC_FILES_CHKSUM = "file://COPYING;md5=a6f89e2100d9b6cdffcea4f398e37343 \
9 "
10
11LICENSE = "LGPL-2.1-or-later & GPL-2.0-or-later"
12LICENSE_FLAGS = "commercial"
13
14SRC_URI = " \
15 https://gstreamer.freedesktop.org/src/gst-plugins-ugly/gst-plugins-ugly-${PV}.tar.xz \
16 "
17
18SRC_URI[sha256sum] = "d59a1aaf8dd2cc416dc5b5c0b7aecd02b1811bf1229aa724e6c2a503d3799083"
19
20S = "${WORKDIR}/gst-plugins-ugly-${PV}"
21
22DEPENDS += "gstreamer1.0-plugins-base"
23
24GST_PLUGIN_SET_HAS_EXAMPLES = "0"
25
26PACKAGECONFIG ??= " \
27 ${GSTREAMER_ORC} \
28 a52dec mpeg2dec \
29"
30
31PACKAGECONFIG[amrnb] = "-Damrnb=enabled,-Damrnb=disabled,opencore-amr"
32PACKAGECONFIG[amrwb] = "-Damrwbdec=enabled,-Damrwbdec=disabled,opencore-amr"
33PACKAGECONFIG[a52dec] = "-Da52dec=enabled,-Da52dec=disabled,liba52"
34PACKAGECONFIG[cdio] = "-Dcdio=enabled,-Dcdio=disabled,libcdio"
35PACKAGECONFIG[dvdread] = "-Ddvdread=enabled,-Ddvdread=disabled,libdvdread"
36PACKAGECONFIG[mpeg2dec] = "-Dmpeg2dec=enabled,-Dmpeg2dec=disabled,mpeg2dec"
37PACKAGECONFIG[x264] = "-Dx264=enabled,-Dx264=disabled,x264"
38
39GSTREAMER_GPL = "${@bb.utils.filter('PACKAGECONFIG', 'a52dec cdio dvdread mpeg2dec x264', d)}"
40
41EXTRA_OEMESON += " \
42 -Ddoc=disabled \
43 -Dsidplay=disabled \
44"
45
46FILES:${PN}-amrnb += "${datadir}/gstreamer-1.0/presets/GstAmrnbEnc.prs"
47FILES:${PN}-x264 += "${datadir}/gstreamer-1.0/presets/GstX264Enc.prs"
diff --git a/meta-xilinx-multimedia/recipes-multimedia/gstreamer/gstreamer1.0-python_1.22.12.bb b/meta-xilinx-multimedia/recipes-multimedia/gstreamer/gstreamer1.0-python_1.22.12.bb
new file mode 100644
index 00000000..2eee5aee
--- /dev/null
+++ b/meta-xilinx-multimedia/recipes-multimedia/gstreamer/gstreamer1.0-python_1.22.12.bb
@@ -0,0 +1,30 @@
1SUMMARY = "Python bindings for GStreamer 1.0"
2DESCRIPTION = "GStreamer Python binding overrides (complementing the bindings \
3provided by python-gi) "
4HOMEPAGE = "http://cgit.freedesktop.org/gstreamer/gst-python/"
5SECTION = "multimedia"
6
7LICENSE = "LGPL-2.1-or-later"
8LIC_FILES_CHKSUM = "file://COPYING;md5=c34deae4e395ca07e725ab0076a5f740"
9
10SRC_URI = "https://gstreamer.freedesktop.org/src/${PNREAL}/${PNREAL}-${PV}.tar.xz"
11SRC_URI[sha256sum] = "d98d3226efea20d5c440a28988a20319a953f7c594895df2bba4538633108e9f"
12
13DEPENDS = "gstreamer1.0 gstreamer1.0-plugins-base python3-pygobject"
14RDEPENDS:${PN} += "gstreamer1.0 gstreamer1.0-plugins-base python3-pygobject"
15
16PNREAL = "gst-python"
17
18S = "${WORKDIR}/${PNREAL}-${PV}"
19
20EXTRA_OEMESON += "\
21 -Dtests=disabled \
22 -Dplugin=enabled \
23 -Dlibpython-dir=${libdir} \
24"
25
26inherit meson pkgconfig setuptools3-base upstream-version-is-even features_check
27
28FILES:${PN} += "${libdir}/gstreamer-1.0"
29
30REQUIRED_DISTRO_FEATURES = "gobject-introspection-data"
diff --git a/meta-xilinx-multimedia/recipes-multimedia/gstreamer/gstreamer1.0-rtsp-server_1.22.12.bb b/meta-xilinx-multimedia/recipes-multimedia/gstreamer/gstreamer1.0-rtsp-server_1.22.12.bb
new file mode 100644
index 00000000..c89c22f3
--- /dev/null
+++ b/meta-xilinx-multimedia/recipes-multimedia/gstreamer/gstreamer1.0-rtsp-server_1.22.12.bb
@@ -0,0 +1,31 @@
1SUMMARY = "A library on top of GStreamer for building an RTSP server"
2HOMEPAGE = "http://cgit.freedesktop.org/gstreamer/gst-rtsp-server/"
3SECTION = "multimedia"
4LICENSE = "LGPL-2.1-or-later"
5LIC_FILES_CHKSUM = "file://COPYING;md5=69333daa044cb77e486cc36129f7a770"
6
7DEPENDS = "gstreamer1.0 gstreamer1.0-plugins-base"
8
9PNREAL = "gst-rtsp-server"
10
11SRC_URI = "https://gstreamer.freedesktop.org/src/${PNREAL}/${PNREAL}-${PV}.tar.xz"
12
13SRC_URI[sha256sum] = "bf6c7871e7cf3528e4ec87ddc2f2949691cd269f98e536482ae744c1405cf451"
14
15S = "${WORKDIR}/${PNREAL}-${PV}"
16
17inherit meson pkgconfig upstream-version-is-even gobject-introspection
18
19EXTRA_OEMESON += " \
20 -Ddoc=disabled \
21 -Dexamples=disabled \
22 -Dtests=disabled \
23"
24
25GIR_MESON_ENABLE_FLAG = "enabled"
26GIR_MESON_DISABLE_FLAG = "disabled"
27
28# Starting with 1.8.0 gst-rtsp-server includes dependency-less plugins as well
29require gstreamer1.0-plugins-packaging.inc
30
31CVE_PRODUCT += "gst-rtsp-server"
diff --git a/meta-xilinx-multimedia/recipes-multimedia/gstreamer/gstreamer1.0-vaapi_1.22.12.bb b/meta-xilinx-multimedia/recipes-multimedia/gstreamer/gstreamer1.0-vaapi_1.22.12.bb
new file mode 100644
index 00000000..ef75ed64
--- /dev/null
+++ b/meta-xilinx-multimedia/recipes-multimedia/gstreamer/gstreamer1.0-vaapi_1.22.12.bb
@@ -0,0 +1,53 @@
1SUMMARY = "VA-API support to GStreamer"
2HOMEPAGE = "https://gstreamer.freedesktop.org/"
3DESCRIPTION = "gstreamer-vaapi consists of a collection of VA-API \
4based plugins for GStreamer and helper libraries: `vaapidecode', \
5`vaapiconvert', and `vaapisink'."
6
7REALPN = "gstreamer-vaapi"
8
9LICENSE = "LGPL-2.1-or-later"
10LIC_FILES_CHKSUM = "file://COPYING.LIB;md5=4fbd65380cdd255951079008b364516c"
11
12SRC_URI = "https://gstreamer.freedesktop.org/src/${REALPN}/${REALPN}-${PV}.tar.xz"
13
14SRC_URI[sha256sum] = "013ad729b2fe4fccda559bddc626bcb14230cfb90a2271049f8466bfec5d80df"
15
16S = "${WORKDIR}/${REALPN}-${PV}"
17DEPENDS = "libva gstreamer1.0 gstreamer1.0-plugins-base gstreamer1.0-plugins-bad"
18
19inherit meson pkgconfig features_check upstream-version-is-even
20
21REQUIRED_DISTRO_FEATURES ?= "opengl"
22
23EXTRA_OEMESON += " \
24 -Ddoc=disabled \
25 -Dexamples=disabled \
26 -Dtests=enabled \
27"
28
29PACKAGES =+ "${PN}-tests"
30
31# OpenGL packageconfig factored out to make it easy for distros
32# and BSP layers to pick either glx, egl, or no GL. By default,
33# try detecting X11 first, and if found (with OpenGL), use GLX,
34# otherwise try to check if EGL can be used.
35PACKAGECONFIG_GL ?= "${@bb.utils.contains('DISTRO_FEATURES', 'x11 opengl', 'glx', \
36 bb.utils.contains('DISTRO_FEATURES', 'opengl', 'egl', \
37 '', d), d)}"
38
39PACKAGECONFIG ??= "drm encoders \
40 ${PACKAGECONFIG_GL} \
41 ${@bb.utils.filter('DISTRO_FEATURES', 'wayland x11', d)}"
42
43PACKAGECONFIG[drm] = "-Ddrm=enabled,-Ddrm=disabled,udev libdrm"
44PACKAGECONFIG[egl] = "-Degl=enabled,-Degl=disabled,virtual/egl"
45PACKAGECONFIG[encoders] = "-Dencoders=enabled,-Dencoders=disabled"
46PACKAGECONFIG[glx] = "-Dglx=enabled,-Dglx=disabled,virtual/libgl"
47PACKAGECONFIG[wayland] = "-Dwayland=enabled,-Dwayland=disabled,wayland-native wayland wayland-protocols"
48PACKAGECONFIG[x11] = "-Dx11=enabled,-Dx11=disabled,virtual/libx11 libxrandr libxrender"
49
50FILES:${PN} += "${libdir}/gstreamer-*/*.so"
51FILES:${PN}-dbg += "${libdir}/gstreamer-*/.debug"
52FILES:${PN}-dev += "${libdir}/gstreamer-*/*.a"
53FILES:${PN}-tests = "${bindir}/*"
diff --git a/meta-xilinx-multimedia/recipes-multimedia/gstreamer/gstreamer1.0/0001-tests-respect-the-idententaion-used-in-meson.patch b/meta-xilinx-multimedia/recipes-multimedia/gstreamer/gstreamer1.0/0001-tests-respect-the-idententaion-used-in-meson.patch
new file mode 100644
index 00000000..0d839bd6
--- /dev/null
+++ b/meta-xilinx-multimedia/recipes-multimedia/gstreamer/gstreamer1.0/0001-tests-respect-the-idententaion-used-in-meson.patch
@@ -0,0 +1,34 @@
1From 5372cd5bf2a9dd247b9c5fc6e4fe248046dbb085 Mon Sep 17 00:00:00 2001
2From: Jose Quaresma <quaresma.jose@gmail.com>
3Date: Sun, 11 Apr 2021 19:48:13 +0100
4Subject: [PATCH] tests: respect the idententaion used in meson
5
6Upstream-Status: Submitted [https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/789]
7
8Signed-off-by: Jose Quaresma <quaresma.jose@gmail.com>
9
10---
11 tests/check/meson.build | 10 +++++-----
12 1 file changed, 5 insertions(+), 5 deletions(-)
13
14diff --git a/tests/check/meson.build b/tests/check/meson.build
15index 9787b0a..16caac7 100644
16--- a/tests/check/meson.build
17+++ b/tests/check/meson.build
18@@ -145,11 +145,11 @@ foreach t : core_tests
19
20 if not skip_test
21 exe = executable(test_name, fname,
22- c_args : gst_c_args + test_defines,
23- cpp_args : gst_c_args + test_defines,
24- include_directories : [configinc],
25- link_with : link_with_libs,
26- dependencies : gst_deps + test_deps,
27+ c_args : gst_c_args + test_defines,
28+ cpp_args : gst_c_args + test_defines,
29+ include_directories : [configinc],
30+ link_with : link_with_libs,
31+ dependencies : gst_deps + test_deps,
32 )
33
34 env = environment()
diff --git a/meta-xilinx-multimedia/recipes-multimedia/gstreamer/gstreamer1.0/0002-tests-add-support-for-install-the-tests.patch b/meta-xilinx-multimedia/recipes-multimedia/gstreamer/gstreamer1.0/0002-tests-add-support-for-install-the-tests.patch
new file mode 100644
index 00000000..64717e66
--- /dev/null
+++ b/meta-xilinx-multimedia/recipes-multimedia/gstreamer/gstreamer1.0/0002-tests-add-support-for-install-the-tests.patch
@@ -0,0 +1,107 @@
1From 27e977d03b0f7c1d0bf19621ef0cec0585410e7b Mon Sep 17 00:00:00 2001
2From: Jose Quaresma <quaresma.jose@gmail.com>
3Date: Sun, 11 Apr 2021 19:48:13 +0100
4Subject: [PATCH] tests: add support for install the tests
5
6This will provide to run the tests using the gnome-desktop-testing [1]
7
8[1] https://wiki.gnome.org/Initiatives/GnomeGoals/InstalledTests
9
10Upstream-Status: Submitted [https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/789]
11
12Signed-off-by: Jose Quaresma <quaresma.jose@gmail.com>
13
14---
15 meson.build | 4 ++++
16 meson_options.txt | 1 +
17 tests/check/meson.build | 22 +++++++++++++++++++++-
18 tests/check/template.test.in | 3 +++
19 4 files changed, 29 insertions(+), 1 deletion(-)
20 create mode 100644 tests/check/template.test.in
21
22diff --git a/meson.build b/meson.build
23index 60c7bec..f7650b1 100644
24--- a/meson.build
25+++ b/meson.build
26@@ -606,6 +606,10 @@ if bashcomp_dep.found()
27 endif
28 endif
29
30+installed_tests_enabled = get_option('installed_tests')
31+installed_tests_metadir = join_paths(datadir, 'installed-tests', meson.project_name())
32+installed_tests_execdir = join_paths(libexecdir, 'installed-tests', meson.project_name())
33+
34 plugins_install_dir = join_paths(get_option('libdir'), 'gstreamer-1.0')
35
36 pkgconfig = import('pkgconfig')
37diff --git a/meson_options.txt b/meson_options.txt
38index 7363bdb..a34ba37 100644
39--- a/meson_options.txt
40+++ b/meson_options.txt
41@@ -15,6 +15,7 @@ option('poisoning', type : 'boolean', value : false, description : 'Enable poiso
42 option('memory-alignment', type: 'combo',
43 choices : ['1', '2', '4', '8', '16', '32', '64', '128', '256', '512', '1024', '2048', '4096', '8192', 'malloc', 'pagesize'],
44 value: 'malloc')
45+option('installed_tests', type : 'boolean', value : false, description : 'Enable installed tests')
46
47 # Feature options
48 option('check', type : 'feature', value : 'auto', description : 'Build unit test libraries')
49diff --git a/tests/check/meson.build b/tests/check/meson.build
50index 16caac7..f2d400f 100644
51--- a/tests/check/meson.build
52+++ b/tests/check/meson.build
53@@ -124,10 +124,16 @@ test_defines = [
54 '-UG_DISABLE_ASSERT',
55 '-UG_DISABLE_CAST_CHECKS',
56 '-DGST_CHECK_TEST_ENVIRONMENT_BEACON="GST_STATE_IGNORE_ELEMENTS"',
57- '-DTESTFILE="' + meson.current_source_dir() + '/meson.build"',
58 '-DGST_DISABLE_DEPRECATED',
59 ]
60
61+testfile = meson.current_source_dir() + '/meson.build'
62+if installed_tests_enabled
63+ install_data(testfile, install_dir : installed_tests_metadir, rename : 'testfile')
64+ testfile = installed_tests_metadir + '/testfile'
65+endif
66+test_defines += '-DTESTFILE="@0@"'.format(testfile)
67+
68 # sanity checking
69 if get_option('check').disabled()
70 if get_option('tests').enabled()
71@@ -150,6 +156,8 @@ foreach t : core_tests
72 include_directories : [configinc],
73 link_with : link_with_libs,
74 dependencies : gst_deps + test_deps,
75+ install_dir: installed_tests_execdir,
76+ install: installed_tests_enabled,
77 )
78
79 env = environment()
80@@ -161,6 +169,18 @@ foreach t : core_tests
81 env.set('GST_PLUGIN_SCANNER_1_0', gst_scanner_dir + '/gst-plugin-scanner')
82 env.set('GST_PLUGIN_LOADING_WHITELIST', 'gstreamer')
83
84+ if installed_tests_enabled
85+ test_conf = configuration_data()
86+ test_conf.set('installed_tests_dir', join_paths(prefix, installed_tests_execdir))
87+ test_conf.set('program', test_name)
88+ configure_file(
89+ input: 'template.test.in',
90+ output: test_name + '.test',
91+ install_dir: installed_tests_metadir,
92+ configuration: test_conf
93+ )
94+ endif
95+
96 test(test_name, exe, env: env, timeout : 3 * 60)
97 endif
98 endforeach
99diff --git a/tests/check/template.test.in b/tests/check/template.test.in
100new file mode 100644
101index 0000000..f701627
102--- /dev/null
103+++ b/tests/check/template.test.in
104@@ -0,0 +1,3 @@
105+[Test]
106+Type=session
107+Exec=@installed_tests_dir@/@program@
diff --git a/meta-xilinx-multimedia/recipes-multimedia/gstreamer/gstreamer1.0/0003-tests-use-a-dictionaries-for-environment.patch b/meta-xilinx-multimedia/recipes-multimedia/gstreamer/gstreamer1.0/0003-tests-use-a-dictionaries-for-environment.patch
new file mode 100644
index 00000000..0fd830f1
--- /dev/null
+++ b/meta-xilinx-multimedia/recipes-multimedia/gstreamer/gstreamer1.0/0003-tests-use-a-dictionaries-for-environment.patch
@@ -0,0 +1,48 @@
1From 7041bc5adf9501beb1428d8bbae6b351a6bf07f9 Mon Sep 17 00:00:00 2001
2From: Jose Quaresma <quaresma.jose@gmail.com>
3Date: Sat, 24 Apr 2021 10:34:47 +0100
4Subject: [PATCH] tests: use a dictionaries for environment
5
6meson environment() can't be passed to configure_file and it is needed for installed_tests,
7use a dictionary as this is simplest solution to install the environment.
8
9Upstream-Status: Submitted [https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/789]
10
11Signed-off-by: Jose Quaresma <quaresma.jose@gmail.com>
12
13---
14 tests/check/meson.build | 21 +++++++++++++--------
15 1 file changed, 13 insertions(+), 8 deletions(-)
16
17diff --git a/tests/check/meson.build b/tests/check/meson.build
18index f2d400f..50dff7f 100644
19--- a/tests/check/meson.build
20+++ b/tests/check/meson.build
21@@ -160,14 +160,19 @@ foreach t : core_tests
22 install: installed_tests_enabled,
23 )
24
25- env = environment()
26- env.set('GST_PLUGIN_PATH_1_0', meson.project_build_root())
27- env.set('GST_PLUGIN_SYSTEM_PATH_1_0', '')
28- env.set('GST_STATE_IGNORE_ELEMENTS', '')
29- env.set('CK_DEFAULT_TIMEOUT', '20')
30- env.set('GST_REGISTRY', '@0@/@1@.registry'.format(meson.current_build_dir(), test_name))
31- env.set('GST_PLUGIN_SCANNER_1_0', gst_scanner_dir + '/gst-plugin-scanner')
32- env.set('GST_PLUGIN_LOADING_WHITELIST', 'gstreamer')
33+ # meson environment object can't be passed to configure_file and
34+ # installed tests uses configure_file to install the environment.
35+ # use a dictionary as this is the simplest solution
36+ # to install the environment.
37+ env = {
38+ 'GST_PLUGIN_PATH_1_0': meson.project_build_root(),
39+ 'GST_PLUGIN_SYSTEM_PATH_1_0': '',
40+ 'GST_STATE_IGNORE_ELEMENTS': '',
41+ 'CK_DEFAULT_TIMEOUT': '20',
42+ 'GST_REGISTRY': '@0@/@1@.registry'.format(meson.current_build_dir(), test_name),
43+ 'GST_PLUGIN_SCANNER_1_0': gst_scanner_dir + '/gst-plugin-scanner',
44+ 'GST_PLUGIN_LOADING_WHITELIST': 'gstreamer',
45+ }
46
47 if installed_tests_enabled
48 test_conf = configuration_data()
diff --git a/meta-xilinx-multimedia/recipes-multimedia/gstreamer/gstreamer1.0/0004-tests-add-helper-script-to-run-the-installed_tests.patch b/meta-xilinx-multimedia/recipes-multimedia/gstreamer/gstreamer1.0/0004-tests-add-helper-script-to-run-the-installed_tests.patch
new file mode 100644
index 00000000..5689dc9f
--- /dev/null
+++ b/meta-xilinx-multimedia/recipes-multimedia/gstreamer/gstreamer1.0/0004-tests-add-helper-script-to-run-the-installed_tests.patch
@@ -0,0 +1,72 @@
1From 1b1d1ce4227b6bea7c7def5dac4a663486e070c2 Mon Sep 17 00:00:00 2001
2From: Jose Quaresma <quaresma.jose@gmail.com>
3Date: Sun, 2 May 2021 01:58:01 +0100
4Subject: [PATCH] tests: add helper script to run the installed_tests
5
6- this is a bash script that will run the installed_tests
7with some of the environment variables used in the meson
8testing framework.
9
10Upstream-Status: Submitted [https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/789]
11
12Signed-off-by: Jose Quaresma <quaresma.jose@gmail.com>
13
14---
15 tests/check/meson.build | 17 +++++++++++++++++
16 tests/check/template.sh.in | 9 +++++++++
17 tests/check/template.test.in | 2 +-
18 3 files changed, 27 insertions(+), 1 deletion(-)
19 create mode 100755 tests/check/template.sh.in
20
21diff --git a/tests/check/meson.build b/tests/check/meson.build
22index 50dff7f..2b9e979 100644
23--- a/tests/check/meson.build
24+++ b/tests/check/meson.build
25@@ -184,6 +184,23 @@ foreach t : core_tests
26 install_dir: installed_tests_metadir,
27 configuration: test_conf
28 )
29+
30+ # All the tests will be deployed on the target machine and
31+ # we use the home folder ~ for the registry which will then expand at runtime.
32+ # Using the /tmp/gstreamer-1.0/@0@.registry can be problematic as it mostly
33+ # is mounted using tmpfs and if the machine crash from some reason we can lost the registry
34+ # that is useful for debug propose of the tests itself.
35+ env += {'GST_REGISTRY': '~/.cache/gstreamer-1.0/@0@.registry'.format(test_name)}
36+
37+ # Set the full path for the test it self.
38+ env += {'TEST': '@0@/@1@'.format(join_paths(prefix, installed_tests_execdir), test_name)}
39+
40+ configure_file(
41+ input : 'template.sh.in',
42+ output: test_name + '.sh',
43+ install_dir: installed_tests_execdir,
44+ configuration : env,
45+ )
46 endif
47
48 test(test_name, exe, env: env, timeout : 3 * 60)
49diff --git a/tests/check/template.sh.in b/tests/check/template.sh.in
50new file mode 100755
51index 0000000..cf7d31b
52--- /dev/null
53+++ b/tests/check/template.sh.in
54@@ -0,0 +1,9 @@
55+#!/bin/sh
56+
57+set -ax
58+
59+CK_DEFAULT_TIMEOUT="@CK_DEFAULT_TIMEOUT@"
60+GST_PLUGIN_LOADING_WHITELIST="@GST_PLUGIN_LOADING_WHITELIST@"
61+GST_REGISTRY=@GST_REGISTRY@
62+GST_STATE_IGNORE_ELEMENTS="@GST_STATE_IGNORE_ELEMENTS@"
63+exec @TEST@
64diff --git a/tests/check/template.test.in b/tests/check/template.test.in
65index f701627..b74ef6a 100644
66--- a/tests/check/template.test.in
67+++ b/tests/check/template.test.in
68@@ -1,3 +1,3 @@
69 [Test]
70 Type=session
71-Exec=@installed_tests_dir@/@program@
72+Exec=@installed_tests_dir@/@program@.sh
diff --git a/meta-xilinx-multimedia/recipes-multimedia/gstreamer/gstreamer1.0/run-ptest b/meta-xilinx-multimedia/recipes-multimedia/gstreamer/gstreamer1.0/run-ptest
new file mode 100755
index 00000000..7fee5a3d
--- /dev/null
+++ b/meta-xilinx-multimedia/recipes-multimedia/gstreamer/gstreamer1.0/run-ptest
@@ -0,0 +1,26 @@
1#! /bin/sh
2
3# Multiply all timeouts by five so they're more likely to work
4# on a loaded system. The default timeout is 20s so this makes it
5# one minute.
6export CK_TIMEOUT_MULTIPLIER=5
7
8# Skip some tests that we know are problematic
9export GST_CHECKS_IGNORE=""
10
11# gstnetclientclock.c:test_functioning is very sensitive to load
12GST_CHECKS_IGNORE="$GST_CHECKS_IGNORE,test_functioning"
13
14# aggregator.c:test_infinite_seek_50_src_live is known to be flaky
15# https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/410
16GST_CHECKS_IGNORE="$GST_CHECKS_IGNORE,test_infinite_seek_50_src_live"
17
18# Known unreliable tests as per subprojects/gst-devtools/validate/launcher/testsuites/check.py:
19GST_CHECKS_IGNORE="$GST_CHECKS_IGNORE,parser_pull_short_read"
20
21# These tests are fragile
22# https://bugzilla.yoctoproject.org/show_bug.cgi?id=14884
23# https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/3524
24GST_CHECKS_IGNORE="$GST_CHECKS_IGNORE,parser_convert_duration,parser_pull_frame_growth,parser_reverse_playback"
25
26gnome-desktop-testing-runner gstreamer
diff --git a/meta-xilinx-multimedia/recipes-multimedia/gstreamer/gstreamer1.0_1.22.12.bb b/meta-xilinx-multimedia/recipes-multimedia/gstreamer/gstreamer1.0_1.22.12.bb
new file mode 100644
index 00000000..f4acb097
--- /dev/null
+++ b/meta-xilinx-multimedia/recipes-multimedia/gstreamer/gstreamer1.0_1.22.12.bb
@@ -0,0 +1,74 @@
1SUMMARY = "GStreamer 1.0 multimedia framework"
2DESCRIPTION = "GStreamer is a multimedia framework for encoding and decoding video and sound. \
3It supports a wide range of formats including mp3, ogg, avi, mpeg and quicktime."
4HOMEPAGE = "http://gstreamer.freedesktop.org/"
5BUGTRACKER = "https://bugzilla.gnome.org/enter_bug.cgi?product=Gstreamer"
6SECTION = "multimedia"
7LICENSE = "LGPL-2.1-or-later"
8
9DEPENDS = "glib-2.0 glib-2.0-native libxml2 bison-native flex-native"
10
11inherit meson pkgconfig gettext upstream-version-is-even gobject-introspection ptest-gnome
12
13LIC_FILES_CHKSUM = "file://COPYING;md5=69333daa044cb77e486cc36129f7a770 \
14 file://gst/gst.h;beginline=1;endline=21;md5=e059138481205ee2c6fc1c079c016d0d"
15
16S = "${WORKDIR}/gstreamer-${PV}"
17
18SRC_URI = "https://gstreamer.freedesktop.org/src/gstreamer/gstreamer-${PV}.tar.xz \
19 file://run-ptest \
20 file://0001-tests-respect-the-idententaion-used-in-meson.patch \
21 file://0002-tests-add-support-for-install-the-tests.patch \
22 file://0003-tests-use-a-dictionaries-for-environment.patch \
23 file://0004-tests-add-helper-script-to-run-the-installed_tests.patch \
24 "
25SRC_URI[sha256sum] = "ac352f3d02caa67f3b169daa9aa78b04dea0fc08a727de73cb28d89bd54c6f61"
26
27PACKAGECONFIG ??= "${@bb.utils.contains('PTEST_ENABLED', '1', 'tests', '', d)} \
28 check \
29 debug \
30 tools"
31
32PACKAGECONFIG[debug] = "-Dgst_debug=true,-Dgst_debug=false"
33PACKAGECONFIG[tracer-hooks] = "-Dtracer_hooks=true,-Dtracer_hooks=false"
34PACKAGECONFIG[coretracers] = "-Dcoretracers=enabled,-Dcoretracers=disabled"
35PACKAGECONFIG[check] = "-Dcheck=enabled,-Dcheck=disabled"
36PACKAGECONFIG[tests] = "-Dtests=enabled -Dinstalled_tests=true,-Dtests=disabled -Dinstalled_tests=false"
37PACKAGECONFIG[unwind] = "-Dlibunwind=enabled,-Dlibunwind=disabled,libunwind"
38PACKAGECONFIG[dw] = "-Dlibdw=enabled,-Dlibdw=disabled,elfutils"
39PACKAGECONFIG[bash-completion] = "-Dbash-completion=enabled,-Dbash-completion=disabled,bash-completion"
40PACKAGECONFIG[tools] = "-Dtools=enabled,-Dtools=disabled"
41PACKAGECONFIG[setcap] = "-Dptp-helper-permissions=capabilities,,libcap libcap-native"
42
43# TODO: put this in a gettext.bbclass patch
44def gettext_oemeson(d):
45 if d.getVar('USE_NLS') == 'no':
46 return '-Dnls=disabled'
47 # Remove the NLS bits if USE_NLS is no or INHIBIT_DEFAULT_DEPS is set
48 if d.getVar('INHIBIT_DEFAULT_DEPS') and not oe.utils.inherits(d, 'cross-canadian'):
49 return '-Dnls=disabled'
50 return '-Dnls=enabled'
51
52EXTRA_OEMESON += " \
53 -Ddoc=disabled \
54 -Dexamples=disabled \
55 -Ddbghelp=disabled \
56 ${@gettext_oemeson(d)} \
57"
58
59GIR_MESON_ENABLE_FLAG = "enabled"
60GIR_MESON_DISABLE_FLAG = "disabled"
61
62PACKAGES += "${PN}-bash-completion"
63
64# Add the core element plugins to the main package
65FILES:${PN} += "${libdir}/gstreamer-1.0/*.so"
66FILES:${PN}-dev += "${libdir}/gstreamer-1.0/*.a ${libdir}/gstreamer-1.0/include"
67FILES:${PN}-bash-completion += "${datadir}/bash-completion/completions/ ${datadir}/bash-completion/helpers/gst*"
68FILES:${PN}-dbg += "${datadir}/gdb ${datadir}/gstreamer-1.0/gdb"
69
70RDEPENDS:${PN}-ptest:append:libc-glibc = " glibc-gconv-iso8859-5"
71
72CVE_PRODUCT = "gstreamer"
73
74PTEST_BUILD_HOST_FILES = ""
diff --git a/meta-xilinx-standalone-sdt/conf/layer.conf b/meta-xilinx-standalone-sdt/conf/layer.conf
index 81e75110..f5b7810e 100644
--- a/meta-xilinx-standalone-sdt/conf/layer.conf
+++ b/meta-xilinx-standalone-sdt/conf/layer.conf
@@ -31,7 +31,7 @@ LAYERRECOMMENDS_xilinx-statalone-sdt = " \
31 openamp-layer \ 31 openamp-layer \
32 " 32 "
33 33
34LAYERSERIES_COMPAT_xilinx-standalone-sdt = "scarthgap" 34LAYERSERIES_COMPAT_xilinx-standalone-sdt = "styhead walnascar"
35 35
36# Sanity check for meta-xilinx-standalone layer. 36# Sanity check for meta-xilinx-standalone layer.
37# Setting SKIP_META_XILINX_STANDALONE_SANITY_CHECK to "1" would skip the bbappend files check. 37# Setting SKIP_META_XILINX_STANDALONE_SANITY_CHECK to "1" would skip the bbappend files check.
diff --git a/meta-xilinx-standalone/conf/layer.conf b/meta-xilinx-standalone/conf/layer.conf
index 17289851..bf91248b 100644
--- a/meta-xilinx-standalone/conf/layer.conf
+++ b/meta-xilinx-standalone/conf/layer.conf
@@ -15,7 +15,7 @@ BBFILE_PRIORITY_xilinx-standalone = "7"
15LAYERDEPENDS_xilinx-standalone = "core xilinx" 15LAYERDEPENDS_xilinx-standalone = "core xilinx"
16LAYERRECOMMENDS_xilinx-standalone = "xilinx-microblaze" 16LAYERRECOMMENDS_xilinx-standalone = "xilinx-microblaze"
17 17
18LAYERSERIES_COMPAT_xilinx-standalone = "scarthgap" 18LAYERSERIES_COMPAT_xilinx-standalone = "styhead walnascar"
19 19
20# Sanity check for meta-xilinx-standalone layer. 20# Sanity check for meta-xilinx-standalone layer.
21# Setting SKIP_META_XILINX_STANDALONE_SANITY_CHECK to "1" would skip the bbappend files check. 21# Setting SKIP_META_XILINX_STANDALONE_SANITY_CHECK to "1" would skip the bbappend files check.
diff --git a/meta-xilinx-vendor/conf/layer.conf b/meta-xilinx-vendor/conf/layer.conf
index d07d7db0..51716db9 100644
--- a/meta-xilinx-vendor/conf/layer.conf
+++ b/meta-xilinx-vendor/conf/layer.conf
@@ -15,4 +15,4 @@ BBFILE_PATTERN_xilinx-vendor = "^${LAYERDIR}/"
15BBFILE_PRIORITY_xilinx-vendor = "5" 15BBFILE_PRIORITY_xilinx-vendor = "5"
16 16
17LAYERDEPENDS_xilinx-vendor = "xilinx" 17LAYERDEPENDS_xilinx-vendor = "xilinx"
18LAYERSERIES_COMPAT_xilinx-vendor = "scarthgap" 18LAYERSERIES_COMPAT_xilinx-vendor = "styhead walnascar"
diff --git a/meta-xilinx-virtualization/conf/layer.conf b/meta-xilinx-virtualization/conf/layer.conf
index 1ce8ccfe..65330ab9 100644
--- a/meta-xilinx-virtualization/conf/layer.conf
+++ b/meta-xilinx-virtualization/conf/layer.conf
@@ -16,7 +16,7 @@ LAYERDEPENDS_xilinx-virtualization = "\
16 tpm-layer \ 16 tpm-layer \
17 " 17 "
18 18
19LAYERSERIES_COMPAT_xilinx-virtualization = "scarthgap" 19LAYERSERIES_COMPAT_xilinx-virtualization = "styhead walnascar"
20 20
21XILINX_XEN_VERSION[v2024.1] = "4.18+stable-xilinx+git%" 21XILINX_XEN_VERSION[v2024.1] = "4.18+stable-xilinx+git%"
22XILINX_XEN_VERSION[v2024.2] = "4.18+stable-xilinx+git%" 22XILINX_XEN_VERSION[v2024.2] = "4.18+stable-xilinx+git%"