summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Hatle <mark.hatle@amd.com>2025-01-13 12:48:53 -0700
committerMark Hatle <mark.hatle@amd.com>2025-03-30 14:16:15 -0600
commit17b80be39ed90b3196d43c53095e24a77e78b5ef (patch)
tree5e78156390b8933a71119641101ad94a70b90da3
parent1e27a13557f68a834b5b06e233427c0aaa9d7d78 (diff)
downloadmeta-xilinx-17b80be39ed90b3196d43c53095e24a77e78b5ef.tar.gz
meta-xilinx-core: Backport 2.43.1 from styhead
In order to support additional risc-v extensions, specifically 'b', binutils 2.43.1 is required. Backport binutils 2.43.1 from styhead as of commit: commit b2cd1dea0459acec76e601987ad4b0661babfcc3 Author: Deepthi Hemraj <Deepthi.Hemraj@windriver.com> Date: Tue Nov 12 04:28:09 2024 -0800 binutils: stable 2.43.1 branch update Set this version as NOT preferred. We do not want to override the regular Scarthgap binutils version unless we explicitly need this version. Signed-off-by: Mark Hatle <mark.hatle@amd.com>
-rw-r--r--meta-xilinx-core/recipes-devtools/binutils/binutils-2.43.1.inc43
-rw-r--r--meta-xilinx-core/recipes-devtools/binutils/binutils-cross-canadian.inc32
-rw-r--r--meta-xilinx-core/recipes-devtools/binutils/binutils-cross-canadian_2.43.1.bb3
-rw-r--r--meta-xilinx-core/recipes-devtools/binutils/binutils-cross-testsuite_2.43.1.bb83
-rw-r--r--meta-xilinx-core/recipes-devtools/binutils/binutils-cross.inc39
-rw-r--r--meta-xilinx-core/recipes-devtools/binutils/binutils-cross_2.43.1.bb3
-rw-r--r--meta-xilinx-core/recipes-devtools/binutils/binutils-crosssdk_2.43.1.bb11
-rw-r--r--meta-xilinx-core/recipes-devtools/binutils/binutils.inc207
-rw-r--r--meta-xilinx-core/recipes-devtools/binutils/binutils/0001-binutils-crosssdk-Generate-relocatable-SDKs.patch75
-rw-r--r--meta-xilinx-core/recipes-devtools/binutils/binutils/0002-binutils-cross-Do-not-generate-linker-script-directo.patch59
-rw-r--r--meta-xilinx-core/recipes-devtools/binutils/binutils/0003-binutils-nativesdk-Search-for-alternative-ld.so.conf.patch95
-rw-r--r--meta-xilinx-core/recipes-devtools/binutils/binutils/0004-Point-scripts-location-to-libdir.patch39
-rw-r--r--meta-xilinx-core/recipes-devtools/binutils/binutils/0005-don-t-let-the-distro-compiler-point-to-the-wrong-ins.patch32
-rw-r--r--meta-xilinx-core/recipes-devtools/binutils/binutils/0006-warn-for-uses-of-system-directories-when-cross-linki.patch286
-rw-r--r--meta-xilinx-core/recipes-devtools/binutils/binutils/0007-fix-the-incorrect-assembling-for-ppc-wait-mnemonic.patch37
-rw-r--r--meta-xilinx-core/recipes-devtools/binutils/binutils/0008-Use-libtool-2.4.patch34404
-rw-r--r--meta-xilinx-core/recipes-devtools/binutils/binutils/0009-Fix-rpath-in-libtool-when-sysroot-is-enabled.patch49
-rw-r--r--meta-xilinx-core/recipes-devtools/binutils/binutils/0010-sync-with-OE-libtool-changes.patch86
-rw-r--r--meta-xilinx-core/recipes-devtools/binutils/binutils/0011-Check-for-clang-before-checking-gcc-version.patch45
-rw-r--r--meta-xilinx-core/recipes-devtools/binutils/binutils/0012-Only-generate-an-RPATH-entry-if-LD_RUN_PATH-is-not-e.patch38
-rw-r--r--meta-xilinx-core/recipes-devtools/binutils/binutils/0013-Define-alignof-using-_Alignof-when-using-C11-or-newe.patch48
-rw-r--r--meta-xilinx-core/recipes-devtools/binutils/binutils/0014-Remove-duplicate-pe-dll.o-entry-deom-targ_extra_ofil.patch32
-rw-r--r--meta-xilinx-core/recipes-devtools/binutils/binutils/0015-CVE-2024-53589.patch92
-rw-r--r--meta-xilinx-core/recipes-devtools/binutils/binutils_2.43.1.bb80
24 files changed, 35918 insertions, 0 deletions
diff --git a/meta-xilinx-core/recipes-devtools/binutils/binutils-2.43.1.inc b/meta-xilinx-core/recipes-devtools/binutils/binutils-2.43.1.inc
new file mode 100644
index 00000000..b5eafee0
--- /dev/null
+++ b/meta-xilinx-core/recipes-devtools/binutils/binutils-2.43.1.inc
@@ -0,0 +1,43 @@
1# This backport version should only be used when explicitly enabled
2DEFAULT_PREFERENCE = "-1"
3
4LIC_FILES_CHKSUM="\
5 file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552\
6 file://COPYING.LIB;md5=9f604d8a4f8e74f4f5140845a21b6674\
7 file://COPYING3;md5=d32239bcb673463ab874e80d47fae504\
8 file://COPYING3.LIB;md5=6a6a8e020838b23406c81b19c1d46df6\
9 file://gas/COPYING;md5=d32239bcb673463ab874e80d47fae504\
10 file://include/COPYING;md5=59530bdf33659b29e73d4adb9f9f6552\
11 file://include/COPYING3;md5=d32239bcb673463ab874e80d47fae504\
12 file://libiberty/COPYING.LIB;md5=a916467b91076e631dd8edb7424769c7\
13 file://bfd/COPYING;md5=d32239bcb673463ab874e80d47fae504\
14 "
15
16# When upgrading to next major release, ensure that there is no trailing .0, so
17# that upstream version check can work correctly.
18PV = "2.43.1"
19CVE_VERSION = "2.43.1"
20SRCBRANCH ?= "binutils-2_43-branch"
21
22UPSTREAM_CHECK_GITTAGREGEX = "binutils-(?P<pver>\d+_(\d_?)*)"
23
24CVE_STATUS[CVE-2023-25584] = "cpe-incorrect: Applies only for version 2.40 and earlier"
25
26SRCREV ?= "b82e2250574ef00faf7fcb1e95e14f22b1fa85af"
27BINUTILS_GIT_URI ?= "git://sourceware.org/git/binutils-gdb.git;branch=${SRCBRANCH};protocol=https"
28SRC_URI = "\
29 ${BINUTILS_GIT_URI} \
30 file://0004-Point-scripts-location-to-libdir.patch \
31 file://0005-don-t-let-the-distro-compiler-point-to-the-wrong-ins.patch \
32 file://0006-warn-for-uses-of-system-directories-when-cross-linki.patch \
33 file://0007-fix-the-incorrect-assembling-for-ppc-wait-mnemonic.patch \
34 file://0008-Use-libtool-2.4.patch \
35 file://0009-Fix-rpath-in-libtool-when-sysroot-is-enabled.patch \
36 file://0010-sync-with-OE-libtool-changes.patch \
37 file://0011-Check-for-clang-before-checking-gcc-version.patch \
38 file://0012-Only-generate-an-RPATH-entry-if-LD_RUN_PATH-is-not-e.patch \
39 file://0013-Define-alignof-using-_Alignof-when-using-C11-or-newe.patch \
40 file://0014-Remove-duplicate-pe-dll.o-entry-deom-targ_extra_ofil.patch \
41 file://0015-CVE-2024-53589.patch \
42"
43S = "${WORKDIR}/git"
diff --git a/meta-xilinx-core/recipes-devtools/binutils/binutils-cross-canadian.inc b/meta-xilinx-core/recipes-devtools/binutils/binutils-cross-canadian.inc
new file mode 100644
index 00000000..62ebb3f5
--- /dev/null
+++ b/meta-xilinx-core/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-xilinx-core/recipes-devtools/binutils/binutils-cross-canadian_2.43.1.bb b/meta-xilinx-core/recipes-devtools/binutils/binutils-cross-canadian_2.43.1.bb
new file mode 100644
index 00000000..5dbaa030
--- /dev/null
+++ b/meta-xilinx-core/recipes-devtools/binutils/binutils-cross-canadian_2.43.1.bb
@@ -0,0 +1,3 @@
1require binutils.inc
2require binutils-${PV}.inc
3require binutils-cross-canadian.inc
diff --git a/meta-xilinx-core/recipes-devtools/binutils/binutils-cross-testsuite_2.43.1.bb b/meta-xilinx-core/recipes-devtools/binutils/binutils-cross-testsuite_2.43.1.bb
new file mode 100644
index 00000000..630815c7
--- /dev/null
+++ b/meta-xilinx-core/recipes-devtools/binutils/binutils-cross-testsuite_2.43.1.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-xilinx-core/recipes-devtools/binutils/binutils-cross.inc b/meta-xilinx-core/recipes-devtools/binutils/binutils-cross.inc
new file mode 100644
index 00000000..835d4fa6
--- /dev/null
+++ b/meta-xilinx-core/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-xilinx-core/recipes-devtools/binutils/binutils-cross_2.43.1.bb b/meta-xilinx-core/recipes-devtools/binutils/binutils-cross_2.43.1.bb
new file mode 100644
index 00000000..fbd1f7d2
--- /dev/null
+++ b/meta-xilinx-core/recipes-devtools/binutils/binutils-cross_2.43.1.bb
@@ -0,0 +1,3 @@
1require binutils.inc
2require binutils-${PV}.inc
3require binutils-cross.inc
diff --git a/meta-xilinx-core/recipes-devtools/binutils/binutils-crosssdk_2.43.1.bb b/meta-xilinx-core/recipes-devtools/binutils/binutils-crosssdk_2.43.1.bb
new file mode 100644
index 00000000..67526593
--- /dev/null
+++ b/meta-xilinx-core/recipes-devtools/binutils/binutils-crosssdk_2.43.1.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-xilinx-core/recipes-devtools/binutils/binutils.inc b/meta-xilinx-core/recipes-devtools/binutils/binutils.inc
new file mode 100644
index 00000000..e1b903f1
--- /dev/null
+++ b/meta-xilinx-core/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*${SOLIBSDEV} \
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-xilinx-core/recipes-devtools/binutils/binutils/0001-binutils-crosssdk-Generate-relocatable-SDKs.patch b/meta-xilinx-core/recipes-devtools/binutils/binutils/0001-binutils-crosssdk-Generate-relocatable-SDKs.patch
new file mode 100644
index 00000000..3dd559e3
--- /dev/null
+++ b/meta-xilinx-core/recipes-devtools/binutils/binutils/0001-binutils-crosssdk-Generate-relocatable-SDKs.patch
@@ -0,0 +1,75 @@
1From 56d41f0cc6a806d2e8d7dcbfb4cca4cd37fba835 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 a726b158161..5d2eb737efc 100755
38--- a/ld/genscripts.sh
39+++ b/ld/genscripts.sh
40@@ -315,6 +315,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@@ -323,10 +324,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 54716110b61..da17fe5cbce 100644
63--- a/ld/scripttempl/elf.sc
64+++ b/ld/scripttempl/elf.sc
65@@ -152,8 +152,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-xilinx-core/recipes-devtools/binutils/binutils/0002-binutils-cross-Do-not-generate-linker-script-directo.patch b/meta-xilinx-core/recipes-devtools/binutils/binutils/0002-binutils-cross-Do-not-generate-linker-script-directo.patch
new file mode 100644
index 00000000..3ad1da38
--- /dev/null
+++ b/meta-xilinx-core/recipes-devtools/binutils/binutils/0002-binutils-cross-Do-not-generate-linker-script-directo.patch
@@ -0,0 +1,59 @@
1From 4f2a54c468c448efdd44813273893ec9c541deaf 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 5d2eb737efc..ad225b0071d 100755
26--- a/ld/genscripts.sh
27+++ b/ld/genscripts.sh
28@@ -244,31 +244,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-xilinx-core/recipes-devtools/binutils/binutils/0003-binutils-nativesdk-Search-for-alternative-ld.so.conf.patch b/meta-xilinx-core/recipes-devtools/binutils/binutils/0003-binutils-nativesdk-Search-for-alternative-ld.so.conf.patch
new file mode 100644
index 00000000..ec8e40c1
--- /dev/null
+++ b/meta-xilinx-core/recipes-devtools/binutils/binutils/0003-binutils-nativesdk-Search-for-alternative-ld.so.conf.patch
@@ -0,0 +1,95 @@
1From bbb86582536ba9e4ab0fb4656d4697542172ab78 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 6a9833e5775..b2776d2a1f3 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 8639e782cdf..19c19088724 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 09691609fc0..e49c0217ae2 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 037099b9d37..2f500d73c58 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-xilinx-core/recipes-devtools/binutils/binutils/0004-Point-scripts-location-to-libdir.patch b/meta-xilinx-core/recipes-devtools/binutils/binutils/0004-Point-scripts-location-to-libdir.patch
new file mode 100644
index 00000000..572c2e84
--- /dev/null
+++ b/meta-xilinx-core/recipes-devtools/binutils/binutils/0004-Point-scripts-location-to-libdir.patch
@@ -0,0 +1,39 @@
1From aa371816a7ad55af4b29ffc32b213a812f4c6216 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 b2776d2a1f3..76ebecb5685 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 19c19088724..4be38a75feb 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-xilinx-core/recipes-devtools/binutils/binutils/0005-don-t-let-the-distro-compiler-point-to-the-wrong-ins.patch b/meta-xilinx-core/recipes-devtools/binutils/binutils/0005-don-t-let-the-distro-compiler-point-to-the-wrong-ins.patch
new file mode 100644
index 00000000..2b1d57a0
--- /dev/null
+++ b/meta-xilinx-core/recipes-devtools/binutils/binutils/0005-don-t-let-the-distro-compiler-point-to-the-wrong-ins.patch
@@ -0,0 +1,32 @@
1From cf20233a1d53effa223a8b72ae9c0652a472a87a 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 b77a41c781c..9fb4d6f09c9 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-xilinx-core/recipes-devtools/binutils/binutils/0006-warn-for-uses-of-system-directories-when-cross-linki.patch b/meta-xilinx-core/recipes-devtools/binutils/binutils/0006-warn-for-uses-of-system-directories-when-cross-linki.patch
new file mode 100644
index 00000000..0c429d7f
--- /dev/null
+++ b/meta-xilinx-core/recipes-devtools/binutils/binutils/0006-warn-for-uses-of-system-directories-when-cross-linki.patch
@@ -0,0 +1,286 @@
1From 26f6a7a397e62b5e974cf88f6d4d8ba9a3d51e3c 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 | 16 ++++++++++++++++
60 ld/ldlex.h | 2 ++
61 ld/ldmain.c | 6 ++++--
62 ld/lexsup.c | 15 +++++++++++++++
63 9 files changed, 86 insertions(+), 2 deletions(-)
64
65diff --git a/ld/config.in b/ld/config.in
66index f7c9da3d02a..e4fdbf6db5b 100644
67--- a/ld/config.in
68+++ b/ld/config.in
69@@ -74,6 +74,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 1d89e3b0677..dd770216b61 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@@ -1535,6 +1536,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 bdf51a062fa..3d370ff92ce 100644
122--- a/ld/configure.ac
123+++ b/ld/configure.ac
124@@ -102,6 +102,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 0dee944cf2a..83bd82d2a2e 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 89e3913317a..178908edf32 100644
162--- a/ld/ld.texi
163+++ b/ld/ld.texi
164@@ -3245,6 +3245,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 87be885d31a..86c8a5b267d 100644
185--- a/ld/ldfile.c
186+++ b/ld/ldfile.c
187@@ -319,6 +319,22 @@
188 *search_tail_ptr = new_dirs;
189 search_tail_ptr = &new_dirs->next;
190
191+ #ifdef ENABLE_POISON_SYSTEM_DIRECTORIES
192+ if (command_line.poison_system_directories
193+ && ((!strncmp (name, "/lib", 4))
194+ || (!strncmp (name, "/usr/lib", 8))
195+ || (!strncmp (name, "/usr/local/lib", 14))
196+ || (!strncmp (name, "/usr/X11R6/lib", 14))))
197+ {
198+ if (command_line.error_poison_system_directories)
199+ einfo (_("%X%P: error: library search path \"%s\" is unsafe for "
200+ "cross-compilation\n"), name);
201+ else
202+ einfo (_("%P: warning: library search path \"%s\" is unsafe for "
203+ "cross-compilation\n"), name);
204+ }
205+#endif
206+
207 /* If a directory is marked as honoring sysroot, prepend the sysroot path
208 now. */
209 if (name[0] == '=')
210diff --git a/ld/ldlex.h b/ld/ldlex.h
211index defe3fcbbb9..aea75a25dc8 100644
212--- a/ld/ldlex.h
213+++ b/ld/ldlex.h
214@@ -149,6 +149,8 @@ enum option_values
215 OPTION_PLUGIN_OPT,
216 OPTION_PLUGIN_SAVE_TEMPS,
217 #endif /* BFD_SUPPORTS_PLUGINS */
218+ OPTION_NO_POISON_SYSTEM_DIRECTORIES,
219+ OPTION_ERROR_POISON_SYSTEM_DIRECTORIES,
220 OPTION_DEFAULT_SCRIPT,
221 OPTION_PRINT_OUTPUT_FORMAT,
222 OPTION_PRINT_SYSROOT,
223diff --git a/ld/ldmain.c b/ld/ldmain.c
224index 2f500d73c58..8b1bf7ad6aa 100644
225--- a/ld/ldmain.c
226+++ b/ld/ldmain.c
227@@ -348,6 +348,8 @@ main (int argc, char **argv)
228 command_line.warn_mismatch = true;
229 command_line.warn_search_mismatch = true;
230 command_line.check_section_addresses = -1;
231+ command_line.poison_system_directories = true;
232+ command_line.error_poison_system_directories = false;
233
234 /* We initialize DEMANGLING based on the environment variable
235 COLLECT_NO_DEMANGLE. The gcc collect2 program will demangle the
236@@ -1489,7 +1491,7 @@ undefined_symbol (struct bfd_link_info *info,
237 argv[1] = "undefined-symbol";
238 argv[2] = (char *) name;
239 argv[3] = NULL;
240-
241+
242 if (verbose)
243 einfo (_("%P: About to run error handling script '%s' with arguments: '%s' '%s'\n"),
244 argv[0], argv[1], argv[2]);
245@@ -1510,7 +1512,7 @@ undefined_symbol (struct bfd_link_info *info,
246 carry on to issue the normal error message. */
247 }
248 #endif /* SUPPORT_ERROR_HANDLING_SCRIPT */
249-
250+
251 if (section != NULL)
252 {
253 if (error_count < MAX_ERRORS_IN_A_ROW)
254diff --git a/ld/lexsup.c b/ld/lexsup.c
255index 4aa0124ce2f..65c90d48332 100644
256--- a/ld/lexsup.c
257+++ b/ld/lexsup.c
258@@ -648,6 +648,14 @@ static const struct ld_option ld_options[] =
259 " <method> is: share-unconflicted (default),\n"
260 " share-duplicated"),
261 TWO_DASHES },
262+ { {"no-poison-system-directories", no_argument, NULL,
263+ OPTION_NO_POISON_SYSTEM_DIRECTORIES},
264+ '\0', NULL, N_("Do not warn for -L options using system directories"),
265+ TWO_DASHES },
266+ { {"error-poison-system-directories", no_argument, NULL,
267+ + OPTION_ERROR_POISON_SYSTEM_DIRECTORIES},
268+ '\0', NULL, N_("Give an error for -L options using system directories"),
269+ TWO_DASHES },
270 };
271
272 #define OPTION_COUNT ARRAY_SIZE (ld_options)
273@@ -1834,6 +1842,13 @@ parse_args (unsigned argc, char **argv)
274
275 case OPTION_PRINT_MAP_LOCALS:
276 config.print_map_locals = true;
277+
278+ case OPTION_NO_POISON_SYSTEM_DIRECTORIES:
279+ command_line.poison_system_directories = false;
280+ break;
281+
282+ case OPTION_ERROR_POISON_SYSTEM_DIRECTORIES:
283+ command_line.error_poison_system_directories = true;
284 break;
285
286 case OPTION_DEPENDENCY_FILE:
diff --git a/meta-xilinx-core/recipes-devtools/binutils/binutils/0007-fix-the-incorrect-assembling-for-ppc-wait-mnemonic.patch b/meta-xilinx-core/recipes-devtools/binutils/binutils/0007-fix-the-incorrect-assembling-for-ppc-wait-mnemonic.patch
new file mode 100644
index 00000000..7144b7d1
--- /dev/null
+++ b/meta-xilinx-core/recipes-devtools/binutils/binutils/0007-fix-the-incorrect-assembling-for-ppc-wait-mnemonic.patch
@@ -0,0 +1,37 @@
1From bfc643d4044dccc917549f2db439cff165512b02 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-xilinx-core/recipes-devtools/binutils/binutils/0008-Use-libtool-2.4.patch b/meta-xilinx-core/recipes-devtools/binutils/binutils/0008-Use-libtool-2.4.patch
new file mode 100644
index 00000000..19dc7ab7
--- /dev/null
+++ b/meta-xilinx-core/recipes-devtools/binutils/binutils/0008-Use-libtool-2.4.patch
@@ -0,0 +1,34404 @@
1From a5272ced746039b50606ebeb311c38adad49a817 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 | 112 +-
31 libbacktrace/aclocal.m4 | 73 +-
32 libbacktrace/configure | 1441 +++++++++----
33 libctf/Makefile.in | 2 +
34 libctf/configure | 1330 +++++++++---
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, 16090 insertions(+), 6108 deletions(-)
48
49diff --git a/bfd/Makefile.in b/bfd/Makefile.in
50index b3d97d478ea..8c19e1766fa 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 9fe9cf6919f..37b2e6c3393 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@@ -5061,8 +5067,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@@ -5102,7 +5108,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@@ -5795,8 +5801,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@@ -5845,6 +5851,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@@ -5861,6 +5941,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@@ -6029,7 +6114,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@@ -6188,6 +6274,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@@ -6203,6 +6304,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@@ -6217,8 +6469,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@@ -6234,7 +6488,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@@ -6254,11 +6508,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@@ -6274,7 +6532,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@@ -6293,6 +6551,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@@ -6304,25 +6566,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@@ -6333,6 +6590,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@@ -6673,8 +6987,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@@ -6710,6 +7024,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@@ -6751,6 +7066,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@@ -6762,7 +7089,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@@ -6788,8 +7115,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@@ -6799,8 +7126,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@@ -6837,6 +7164,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@@ -6855,6 +7190,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@@ -7064,6 +7440,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@@ -7627,6 +8120,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@@ -8180,8 +8675,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@@ -8347,6 +8840,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@@ -8409,7 +8908,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@@ -8466,13 +8965,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@@ -8533,6 +9036,11 @@ fi
904
905
906
907+
908+
909+
910+
911+
912 #
913 # Check to make sure the static flag actually works.
914 #
915@@ -8883,7 +9391,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@@ -8982,12 +9491,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@@ -9001,8 +9510,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@@ -9020,8 +9529,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@@ -9067,8 +9576,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@@ -9198,7 +9707,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@@ -9211,22 +9726,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@@ -9238,7 +9760,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@@ -9251,22 +9779,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@@ -9311,20 +9846,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@@ -9385,7 +9963,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@@ -9393,7 +9971,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@@ -9409,7 +9987,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@@ -9433,10 +10011,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@@ -9515,23 +10093,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@@ -9616,7 +10207,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@@ -9635,9 +10226,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@@ -10213,8 +10804,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@@ -10247,13 +10839,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@@ -11155,7 +11805,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 11158 "configure"
1363+#line $LINENO "configure"
1364 #include "confdefs.h"
1365
1366 #if HAVE_DLFCN_H
1367@@ -11199,10 +11849,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@@ -11261,7 +11911,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 11264 "configure"
1385+#line $LINENO "configure"
1386 #include "confdefs.h"
1387
1388 #if HAVE_DLFCN_H
1389@@ -11305,10 +11955,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@@ -15689,7 +16339,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@@ -18316,13 +18966,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@@ -18337,14 +18994,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@@ -18377,12 +19037,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@@ -18437,8 +19097,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@@ -18448,12 +19113,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@@ -18469,7 +19136,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@@ -18505,6 +19171,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@@ -19281,7 +19948,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@@ -19384,19 +20052,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@@ -19426,6 +20117,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@@ -19435,6 +20132,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@@ -19549,12 +20249,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@@ -19641,9 +20341,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@@ -19659,6 +20356,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@@ -19691,210 +20391,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 6bcfd1b7368..6aedf387cb9 100644
2000--- a/bfd/configure.ac
2001+++ b/bfd/configure.ac
2002@@ -275,7 +275,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 67fa5b3b8d9..3273426119c 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 e97f4cba053..6e6e08b350a 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@@ -4956,8 +4962,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@@ -4997,7 +5003,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@@ -5690,8 +5696,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@@ -5740,6 +5746,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@@ -5756,6 +5836,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@@ -5924,7 +6009,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@@ -6083,6 +6169,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@@ -6098,6 +6199,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@@ -6112,8 +6364,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@@ -6129,7 +6383,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@@ -6149,11 +6403,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@@ -6169,7 +6427,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@@ -6188,6 +6446,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@@ -6199,25 +6461,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@@ -6229,6 +6485,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@@ -6568,8 +6882,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@@ -6605,6 +6919,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@@ -6646,6 +6961,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@@ -6657,7 +6984,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@@ -6683,8 +7010,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@@ -6694,8 +7021,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@@ -6732,6 +7059,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@@ -6748,6 +7087,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@@ -6959,6 +7335,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@@ -7522,6 +8015,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@@ -8106,8 +8601,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@@ -8273,6 +8766,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@@ -8335,7 +8834,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@@ -8392,13 +8891,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@@ -8459,6 +8962,11 @@ fi
2868
2869
2870
2871+
2872+
2873+
2874+
2875+
2876 #
2877 # Check to make sure the static flag actually works.
2878 #
2879@@ -8809,7 +9317,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@@ -8908,12 +9417,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@@ -8927,8 +9436,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@@ -8946,8 +9455,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@@ -8993,8 +9502,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@@ -9124,7 +9633,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@@ -9137,22 +9652,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@@ -9164,7 +9686,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@@ -9177,22 +9705,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@@ -9237,20 +9772,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@@ -9311,7 +9889,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@@ -9319,7 +9897,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@@ -9335,7 +9913,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@@ -9359,10 +9937,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@@ -9441,23 +10019,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@@ -9542,7 +10133,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@@ -9561,9 +10152,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@@ -10139,8 +10730,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@@ -10173,13 +10765,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@@ -11081,7 +11731,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 11084 "configure"
3327+#line $LINENO "configure"
3328 #include "confdefs.h"
3329
3330 #if HAVE_DLFCN_H
3331@@ -11125,10 +11775,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@@ -11187,7 +11837,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 11190 "configure"
3349+#line $LINENO "configure"
3350 #include "confdefs.h"
3351
3352 #if HAVE_DLFCN_H
3353@@ -11231,10 +11881,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@@ -17393,13 +18043,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@@ -17414,14 +18071,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@@ -17454,12 +18114,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@@ -17514,8 +18174,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@@ -17525,12 +18190,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@@ -17546,7 +18213,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@@ -17582,6 +18248,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@@ -18355,7 +19022,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@@ -18458,19 +19126,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@@ -18500,6 +19191,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@@ -18509,6 +19206,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@@ -18623,12 +19323,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@@ -18715,9 +19415,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@@ -18733,6 +19430,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@@ -18765,210 +19465,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 b57516369d7..1d5f5295102 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 a4d64ce5289..01c0c35ecad 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@@ -4650,8 +4656,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@@ -4691,7 +4697,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@@ -5384,8 +5390,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@@ -5434,6 +5440,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@@ -5450,6 +5530,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@@ -5618,7 +5703,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@@ -5777,6 +5863,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@@ -5792,6 +5893,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@@ -5806,8 +6058,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@@ -5823,7 +6077,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@@ -5843,11 +6097,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@@ -5863,7 +6121,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@@ -5882,6 +6140,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@@ -5893,29 +6155,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@@ -6262,8 +6576,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@@ -6299,6 +6613,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@@ -6340,6 +6655,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@@ -6351,7 +6678,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@@ -6377,8 +6704,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@@ -6388,8 +6715,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@@ -6426,6 +6753,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@@ -6442,6 +6782,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@@ -6653,6 +7029,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@@ -7216,6 +7709,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@@ -7800,8 +8295,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@@ -7967,6 +8460,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@@ -8029,7 +8528,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@@ -8086,13 +8585,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@@ -8153,6 +8656,11 @@ fi
4807
4808
4809
4810+
4811+
4812+
4813+
4814+
4815 #
4816 # Check to make sure the static flag actually works.
4817 #
4818@@ -8503,7 +9011,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@@ -8602,12 +9111,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@@ -8621,8 +9130,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@@ -8640,8 +9149,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@@ -8687,8 +9196,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@@ -8818,7 +9327,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@@ -8831,22 +9346,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@@ -8858,7 +9380,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@@ -8871,22 +9399,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@@ -8931,20 +9466,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@@ -9005,7 +9583,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@@ -9013,7 +9591,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@@ -9029,7 +9607,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@@ -9053,10 +9631,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@@ -9135,23 +9713,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@@ -9236,7 +9827,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@@ -9255,9 +9846,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@@ -9833,8 +10424,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@@ -9867,13 +10459,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@@ -10775,7 +11425,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 10778 "configure"
5266+#line $LINENO "configure"
5267 #include "confdefs.h"
5268
5269 #if HAVE_DLFCN_H
5270@@ -10819,10 +11469,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@@ -10881,7 +11531,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 10884 "configure"
5288+#line $LINENO "configure"
5289 #include "confdefs.h"
5290
5291 #if HAVE_DLFCN_H
5292@@ -10925,10 +11575,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@@ -17078,13 +17728,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@@ -17099,14 +17756,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@@ -17139,12 +17799,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@@ -17199,8 +17859,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@@ -17210,12 +17875,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@@ -17231,7 +17898,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@@ -17267,6 +17933,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@@ -18047,7 +18714,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@@ -18150,19 +18818,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@@ -18192,6 +18883,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@@ -18201,6 +18898,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@@ -18315,12 +19015,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@@ -18407,9 +19107,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@@ -18425,6 +19122,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@@ -18457,210 +19157,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 e3c86d3f1ed..e5e6edbe821 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@@ -4528,8 +4534,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@@ -4569,7 +4575,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@@ -5262,8 +5268,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@@ -5312,6 +5318,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@@ -5328,6 +5408,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@@ -5496,7 +5581,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@@ -5655,6 +5741,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@@ -5670,6 +5771,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@@ -5684,8 +5936,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@@ -5701,7 +5955,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@@ -5721,11 +5975,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@@ -5741,7 +5999,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@@ -5760,6 +6018,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@@ -5771,25 +6033,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@@ -5801,6 +6057,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@@ -6140,8 +6454,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@@ -6177,6 +6491,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@@ -6218,6 +6533,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@@ -6229,7 +6556,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@@ -6255,8 +6582,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@@ -6266,8 +6593,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@@ -6304,6 +6631,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@@ -6320,6 +6659,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@@ -6531,6 +6907,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@@ -7094,6 +7587,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@@ -7678,8 +8173,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@@ -7845,6 +8338,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@@ -7907,7 +8406,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@@ -7964,13 +8463,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@@ -8031,6 +8534,11 @@ fi
6749
6750
6751
6752+
6753+
6754+
6755+
6756+
6757 #
6758 # Check to make sure the static flag actually works.
6759 #
6760@@ -8381,7 +8889,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@@ -8480,12 +8989,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@@ -8499,8 +9008,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@@ -8518,8 +9027,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@@ -8565,8 +9074,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@@ -8696,7 +9205,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@@ -8709,22 +9224,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@@ -8736,7 +9258,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@@ -8749,22 +9277,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@@ -8809,20 +9344,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@@ -8883,7 +9461,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@@ -8891,7 +9469,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@@ -8907,7 +9485,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@@ -8931,10 +9509,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@@ -9013,23 +9591,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@@ -9114,7 +9705,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@@ -9133,9 +9724,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@@ -9711,8 +10302,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@@ -9745,13 +10337,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@@ -10653,7 +11303,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 10656 "configure"
7208+#line $LINENO "configure"
7209 #include "confdefs.h"
7210
7211 #if HAVE_DLFCN_H
7212@@ -10697,10 +11347,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@@ -10759,7 +11409,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 10762 "configure"
7230+#line $LINENO "configure"
7231 #include "confdefs.h"
7232
7233 #if HAVE_DLFCN_H
7234@@ -10803,10 +11453,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@@ -14726,13 +15376,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@@ -14747,14 +15404,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@@ -14787,12 +15447,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@@ -14847,8 +15507,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@@ -14858,12 +15523,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@@ -14879,7 +15546,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@@ -14915,6 +15581,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@@ -15688,7 +16355,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@@ -15791,19 +16459,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@@ -15833,6 +16524,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@@ -15842,6 +16539,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@@ -15956,12 +16656,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@@ -16048,9 +16748,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@@ -16066,6 +16763,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@@ -16098,210 +16798,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 5ced0e012eb..e6174273972 100644
7836--- a/gprofng/Makefile.in
7837+++ b/gprofng/Makefile.in
7838@@ -254,6 +254,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@@ -290,6 +291,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 cf3e9c3d0db..56e99cbe272 100755
7856--- a/gprofng/configure
7857+++ b/gprofng/configure
7858@@ -672,6 +672,8 @@ OTOOL
7859 LIPO
7860 NMEDIT
7861 DSYMUTIL
7862+MANIFEST_TOOL
7863+DLLTOOL
7864 OBJDUMP
7865 LN_S
7866 NM
7867@@ -802,6 +804,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@@ -1465,6 +1468,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@@ -6153,8 +6158,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@@ -6194,7 +6199,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@@ -6887,8 +6892,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@@ -6937,6 +6942,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@@ -6953,6 +7032,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@@ -7121,7 +7205,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@@ -7280,6 +7365,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@@ -7295,6 +7395,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@@ -7309,8 +7560,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@@ -7326,7 +7579,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@@ -7346,11 +7599,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@@ -7366,7 +7623,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@@ -7385,6 +7642,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@@ -7396,25 +7657,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@@ -7426,6 +7681,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@@ -7765,8 +8078,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@@ -7802,6 +8115,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@@ -7843,6 +8157,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@@ -7854,7 +8180,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@@ -7880,8 +8206,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@@ -7891,8 +8217,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@@ -7929,6 +8255,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@@ -7947,6 +8281,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@@ -8156,6 +8531,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@@ -8719,6 +9211,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@@ -8789,6 +9283,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@@ -9274,8 +9778,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@@ -9441,6 +9943,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@@ -9503,7 +10011,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@@ -9560,13 +10068,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@@ -9627,6 +10139,11 @@ fi
8697
8698
8699
8700+
8701+
8702+
8703+
8704+
8705 #
8706 # Check to make sure the static flag actually works.
8707 #
8708@@ -9977,7 +10494,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@@ -10076,12 +10594,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@@ -10095,8 +10613,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@@ -10114,8 +10632,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@@ -10161,8 +10679,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@@ -10292,7 +10810,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@@ -10305,22 +10829,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@@ -10332,7 +10863,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@@ -10345,22 +10882,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@@ -10405,20 +10949,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@@ -10479,7 +11066,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@@ -10487,7 +11074,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@@ -10503,7 +11090,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@@ -10527,10 +11114,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@@ -10609,23 +11196,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@@ -10710,7 +11310,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@@ -10729,9 +11329,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@@ -11307,8 +11907,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@@ -11341,13 +11942,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@@ -12249,7 +12908,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 12252 "configure"
9156+#line $LINENO "configure"
9157 #include "confdefs.h"
9158
9159 #if HAVE_DLFCN_H
9160@@ -12293,10 +12952,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@@ -12355,7 +13014,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 12358 "configure"
9178+#line $LINENO "configure"
9179 #include "confdefs.h"
9180
9181 #if HAVE_DLFCN_H
9182@@ -12399,10 +13058,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@@ -12794,6 +13453,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@@ -12811,6 +13471,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@@ -13093,7 +13754,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@@ -13106,22 +13773,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@@ -13134,7 +13808,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@@ -13147,22 +13827,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@@ -13205,29 +13892,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@@ -13333,7 +14066,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@@ -13404,10 +14137,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@@ -13448,9 +14181,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@@ -13728,7 +14461,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@@ -13774,7 +14507,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@@ -13815,9 +14548,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@@ -13953,6 +14686,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@@ -13966,7 +14706,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@@ -13975,13 +14715,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@@ -14001,8 +14750,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@@ -14038,6 +14789,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@@ -14073,7 +14825,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@@ -14138,8 +14890,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@@ -14244,6 +14994,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@@ -14396,7 +15151,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@@ -14461,10 +15216,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@@ -14522,6 +15284,8 @@ fi
9620
9621
9622
9623+
9624+
9625 #
9626 # Check to make sure the static flag actually works.
9627 #
9628@@ -14699,6 +15463,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@@ -14713,15 +15478,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@@ -14984,8 +15754,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@@ -15017,13 +15788,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@@ -15587,6 +16416,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@@ -17785,13 +18615,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@@ -17806,14 +18643,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@@ -17846,12 +18686,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@@ -17890,8 +18730,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@@ -17918,12 +18758,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@@ -17961,8 +18801,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@@ -17972,12 +18817,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@@ -17993,7 +18840,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@@ -18015,8 +18861,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@@ -18028,7 +18874,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@@ -18062,6 +18907,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@@ -18076,7 +18922,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@@ -18833,7 +19680,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@@ -18936,19 +19784,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@@ -18978,6 +19849,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@@ -18987,6 +19864,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@@ -19101,12 +19981,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@@ -19193,9 +20073,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@@ -19211,6 +20088,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@@ -19257,210 +20137,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@@ -19488,12 +20327,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@@ -19580,9 +20419,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@@ -19598,6 +20434,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 5b57544d91a..da05c4cc0f0 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 b667ae91617..1a6dcf47d34 100644
10452--- a/gprofng/gp-display-html/Makefile.in
10453+++ b/gprofng/gp-display-html/Makefile.in
10454@@ -198,6 +198,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@@ -232,6 +233,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 4c55f672332..5c175851e3c 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 cef4b275305..8b769d439fa 100644
13068--- a/gprofng/src/Makefile.in
13069+++ b/gprofng/src/Makefile.in
13070@@ -322,6 +322,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@@ -356,6 +357,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 4be38a75feb..24b219d9df6 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 dd770216b61..e8c5bc61d24 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@@ -1583,6 +1587,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@@ -20335,13 +21166,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@@ -20356,14 +21194,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@@ -20396,12 +21237,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@@ -20440,8 +21281,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@@ -20468,12 +21309,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@@ -20511,8 +21352,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@@ -20522,12 +21368,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@@ -20543,7 +21391,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@@ -20565,8 +21412,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@@ -20578,7 +21425,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@@ -20612,6 +21458,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@@ -20626,7 +21473,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@@ -21399,7 +22247,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@@ -21502,19 +22351,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@@ -21544,6 +22416,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@@ -21553,6 +22431,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@@ -21667,12 +22548,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@@ -21759,9 +22640,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@@ -21777,6 +22655,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@@ -21823,210 +22704,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@@ -22054,12 +22894,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@@ -22146,9 +22986,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@@ -22164,6 +23001,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 49852a21d37..d371dda2d34 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@@ -190,37 +190,6 @@ CONFIG_HEADER = config.h
15709 CONFIG_CLEAN_FILES = backtrace-supported.h \
15710 install-debuginfo-for-buildid.sh
15711 CONFIG_CLEAN_VPATH_FILES =
15712-LTLIBRARIES = $(noinst_LTLIBRARIES)
15713-am__DEPENDENCIES_1 =
15714-am_libbacktrace_la_OBJECTS = atomic.lo dwarf.lo fileline.lo posix.lo \
15715- print.lo sort.lo state.lo
15716-libbacktrace_la_OBJECTS = $(am_libbacktrace_la_OBJECTS)
15717-AM_V_lt = $(am__v_lt_@AM_V@)
15718-am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
15719-am__v_lt_0 = --silent
15720-am__v_lt_1 =
15721-am__objects_1 = atomic.lo dwarf.lo fileline.lo posix.lo print.lo \
15722- sort.lo state.lo
15723-@NATIVE_TRUE@am_libbacktrace_alloc_la_OBJECTS = $(am__objects_1)
15724-libbacktrace_alloc_la_OBJECTS = $(am_libbacktrace_alloc_la_OBJECTS)
15725-@NATIVE_TRUE@am_libbacktrace_alloc_la_rpath =
15726-@HAVE_ELF_TRUE@@HAVE_OBJCOPY_DEBUGLINK_TRUE@@NATIVE_TRUE@libbacktrace_elf_for_test_la_DEPENDENCIES = $(am__DEPENDENCIES_1) \
15727-@HAVE_ELF_TRUE@@HAVE_OBJCOPY_DEBUGLINK_TRUE@@NATIVE_TRUE@ elf_for_test.lo \
15728-@HAVE_ELF_TRUE@@HAVE_OBJCOPY_DEBUGLINK_TRUE@@NATIVE_TRUE@ $(am__DEPENDENCIES_1) \
15729-@HAVE_ELF_TRUE@@HAVE_OBJCOPY_DEBUGLINK_TRUE@@NATIVE_TRUE@ $(am__DEPENDENCIES_1)
15730-@HAVE_ELF_TRUE@@HAVE_OBJCOPY_DEBUGLINK_TRUE@@NATIVE_TRUE@am_libbacktrace_elf_for_test_la_OBJECTS = $(am__objects_1)
15731-libbacktrace_elf_for_test_la_OBJECTS = \
15732- $(am_libbacktrace_elf_for_test_la_OBJECTS)
15733-@HAVE_ELF_TRUE@@HAVE_OBJCOPY_DEBUGLINK_TRUE@@NATIVE_TRUE@am_libbacktrace_elf_for_test_la_rpath =
15734-@NATIVE_TRUE@am_libbacktrace_instrumented_alloc_la_OBJECTS = \
15735-@NATIVE_TRUE@ $(am__objects_1)
15736-libbacktrace_instrumented_alloc_la_OBJECTS = \
15737- $(am_libbacktrace_instrumented_alloc_la_OBJECTS)
15738-@NATIVE_TRUE@am_libbacktrace_instrumented_alloc_la_rpath =
15739-@NATIVE_TRUE@am_libbacktrace_noformat_la_OBJECTS = $(am__objects_1)
15740-libbacktrace_noformat_la_OBJECTS = \
15741- $(am_libbacktrace_noformat_la_OBJECTS)
15742-@NATIVE_TRUE@am_libbacktrace_noformat_la_rpath =
15743 @NATIVE_TRUE@am__EXEEXT_1 = allocfail$(EXEEXT)
15744 @HAVE_BUILDID_TRUE@@HAVE_ELF_TRUE@@HAVE_OBJCOPY_DEBUGLINK_TRUE@@NATIVE_TRUE@am__EXEEXT_2 = b2test$(EXEEXT)
15745 @HAVE_BUILDID_TRUE@@HAVE_DWZ_TRUE@@HAVE_ELF_TRUE@@HAVE_OBJCOPY_DEBUGLINK_TRUE@@NATIVE_TRUE@am__EXEEXT_3 = b3test$(EXEEXT)
15746@@ -253,6 +222,37 @@ am__EXEEXT_16 = $(am__EXEEXT_4) $(am__EXEEXT_5) $(am__EXEEXT_6) \
15747 $(am__EXEEXT_7) $(am__EXEEXT_8) $(am__EXEEXT_9) \
15748 $(am__EXEEXT_10) $(am__EXEEXT_11) $(am__EXEEXT_12) \
15749 $(am__EXEEXT_13) $(am__EXEEXT_14) $(am__EXEEXT_15)
15750+LTLIBRARIES = $(noinst_LTLIBRARIES)
15751+am__DEPENDENCIES_1 =
15752+am_libbacktrace_la_OBJECTS = atomic.lo dwarf.lo fileline.lo posix.lo \
15753+ print.lo sort.lo state.lo
15754+libbacktrace_la_OBJECTS = $(am_libbacktrace_la_OBJECTS)
15755+AM_V_lt = $(am__v_lt_@AM_V@)
15756+am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
15757+am__v_lt_0 = --silent
15758+am__v_lt_1 =
15759+am__objects_1 = atomic.lo dwarf.lo fileline.lo posix.lo print.lo \
15760+ sort.lo state.lo
15761+@NATIVE_TRUE@am_libbacktrace_alloc_la_OBJECTS = $(am__objects_1)
15762+libbacktrace_alloc_la_OBJECTS = $(am_libbacktrace_alloc_la_OBJECTS)
15763+@NATIVE_TRUE@am_libbacktrace_alloc_la_rpath =
15764+@HAVE_ELF_TRUE@@HAVE_OBJCOPY_DEBUGLINK_TRUE@@NATIVE_TRUE@libbacktrace_elf_for_test_la_DEPENDENCIES = $(am__DEPENDENCIES_1) \
15765+@HAVE_ELF_TRUE@@HAVE_OBJCOPY_DEBUGLINK_TRUE@@NATIVE_TRUE@ elf_for_test.lo \
15766+@HAVE_ELF_TRUE@@HAVE_OBJCOPY_DEBUGLINK_TRUE@@NATIVE_TRUE@ $(am__DEPENDENCIES_1) \
15767+@HAVE_ELF_TRUE@@HAVE_OBJCOPY_DEBUGLINK_TRUE@@NATIVE_TRUE@ $(am__DEPENDENCIES_1)
15768+@HAVE_ELF_TRUE@@HAVE_OBJCOPY_DEBUGLINK_TRUE@@NATIVE_TRUE@am_libbacktrace_elf_for_test_la_OBJECTS = $(am__objects_1)
15769+libbacktrace_elf_for_test_la_OBJECTS = \
15770+ $(am_libbacktrace_elf_for_test_la_OBJECTS)
15771+@HAVE_ELF_TRUE@@HAVE_OBJCOPY_DEBUGLINK_TRUE@@NATIVE_TRUE@am_libbacktrace_elf_for_test_la_rpath =
15772+@NATIVE_TRUE@am_libbacktrace_instrumented_alloc_la_OBJECTS = \
15773+@NATIVE_TRUE@ $(am__objects_1)
15774+libbacktrace_instrumented_alloc_la_OBJECTS = \
15775+ $(am_libbacktrace_instrumented_alloc_la_OBJECTS)
15776+@NATIVE_TRUE@am_libbacktrace_instrumented_alloc_la_rpath =
15777+@NATIVE_TRUE@am_libbacktrace_noformat_la_OBJECTS = $(am__objects_1)
15778+libbacktrace_noformat_la_OBJECTS = \
15779+ $(am_libbacktrace_noformat_la_OBJECTS)
15780+@NATIVE_TRUE@am_libbacktrace_noformat_la_rpath =
15781 @NATIVE_TRUE@am_allocfail_OBJECTS = allocfail-allocfail.$(OBJEXT) \
15782 @NATIVE_TRUE@ allocfail-testlib.$(OBJEXT)
15783 allocfail_OBJECTS = $(am_allocfail_OBJECTS)
15784@@ -571,7 +571,7 @@ am__v_at_0 = @
15785 am__v_at_1 =
15786 DEFAULT_INCLUDES = -I.@am__isrc@
15787 depcomp =
15788-am__depfiles_maybe =
15789+am__maybe_remake_depfiles =
15790 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
15791 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
15792 LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
15793@@ -615,8 +615,8 @@ am__can_run_installinfo = \
15794 n|no|NO) false;; \
15795 *) (install-info --version) >/dev/null 2>&1;; \
15796 esac
15797-am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) \
15798- $(LISP)config.h.in
15799+am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) \
15800+ config.h.in
15801 # Read a list of newline-separated strings from the standard input,
15802 # and print each of them once, without duplicates. Input order is
15803 # *not* preserved.
15804@@ -633,9 +633,6 @@ am__define_uniq_tagged_files = \
15805 unique=`for i in $$list; do \
15806 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
15807 done | $(am__uniquify_input)`
15808-ETAGS = etags
15809-CTAGS = ctags
15810-CSCOPE = cscope
15811 AM_RECURSIVE_TARGETS = cscope check recheck
15812 am__tty_colors_dummy = \
15813 mgn= red= grn= lgn= blu= brg= std=; \
15814@@ -819,6 +816,7 @@ am__set_TESTS_bases = \
15815 bases='$(TEST_LOGS)'; \
15816 bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \
15817 bases=`echo $$bases`
15818+AM_TESTSUITE_SUMMARY_HEADER = ' for $(PACKAGE_STRING)'
15819 RECHECK_LOGS = $(TEST_LOGS)
15820 TEST_SUITE_LOG = test-suite.log
15821 TEST_EXTENSIONS = @EXEEXT@ .test
15822@@ -861,8 +859,11 @@ CLOCK_GETTIME_LINK = @CLOCK_GETTIME_LINK@
15823 COMM = @COMM@
15824 CPP = @CPP@
15825 CPPFLAGS = @CPPFLAGS@
15826+CSCOPE = @CSCOPE@
15827+CTAGS = @CTAGS@
15828 CYGPATH_W = @CYGPATH_W@
15829 DEFS = @DEFS@
15830+DLLTOOL = @DLLTOOL@
15831 DSYMUTIL = @DSYMUTIL@
15832 DUMPBIN = @DUMPBIN@
15833 DWZ = @DWZ@
15834@@ -870,6 +871,7 @@ ECHO_C = @ECHO_C@
15835 ECHO_N = @ECHO_N@
15836 ECHO_T = @ECHO_T@
15837 EGREP = @EGREP@
15838+ETAGS = @ETAGS@
15839 EXEEXT = @EXEEXT@
15840 EXTRA_FLAGS = @EXTRA_FLAGS@
15841 FGREP = @FGREP@
15842@@ -890,6 +892,7 @@ LN_S = @LN_S@
15843 LTLIBOBJS = @LTLIBOBJS@
15844 MAINT = @MAINT@
15845 MAKEINFO = @MAKEINFO@
15846+MANIFEST_TOOL = @MANIFEST_TOOL@
15847 MKDIR_P = @MKDIR_P@
15848 NM = @NM@
15849 NMEDIT = @NMEDIT@
15850@@ -922,6 +925,7 @@ abs_builddir = @abs_builddir@
15851 abs_srcdir = @abs_srcdir@
15852 abs_top_builddir = @abs_top_builddir@
15853 abs_top_srcdir = @abs_top_srcdir@
15854+ac_ct_AR = @ac_ct_AR@
15855 ac_ct_CC = @ac_ct_CC@
15856 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
15857 am__leading_dot = @am__leading_dot@
15858@@ -1267,8 +1271,8 @@ Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
15859 echo ' $(SHELL) ./config.status'; \
15860 $(SHELL) ./config.status;; \
15861 *) \
15862- echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
15863- cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
15864+ echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__maybe_remake_depfiles)'; \
15865+ cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__maybe_remake_depfiles);; \
15866 esac;
15867 $(top_srcdir)/../multilib.am $(am__empty):
15868
15869@@ -1300,6 +1304,15 @@ backtrace-supported.h: $(top_builddir)/config.status $(srcdir)/backtrace-support
15870 install-debuginfo-for-buildid.sh: $(top_builddir)/config.status $(srcdir)/install-debuginfo-for-buildid.sh.in
15871 cd $(top_builddir) && $(SHELL) ./config.status $@
15872
15873+clean-checkPROGRAMS:
15874+ @list='$(check_PROGRAMS)'; test -n "$$list" || exit 0; \
15875+ echo " rm -f" $$list; \
15876+ rm -f $$list || exit $$?; \
15877+ test -n "$(EXEEXT)" || exit 0; \
15878+ list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
15879+ echo " rm -f" $$list; \
15880+ rm -f $$list
15881+
15882 clean-checkLTLIBRARIES:
15883 -test -z "$(check_LTLIBRARIES)" || rm -f $(check_LTLIBRARIES)
15884 @list='$(check_LTLIBRARIES)'; \
15885@@ -1337,15 +1350,6 @@ libbacktrace_instrumented_alloc.la: $(libbacktrace_instrumented_alloc_la_OBJECTS
15886 libbacktrace_noformat.la: $(libbacktrace_noformat_la_OBJECTS) $(libbacktrace_noformat_la_DEPENDENCIES) $(EXTRA_libbacktrace_noformat_la_DEPENDENCIES)
15887 $(AM_V_CCLD)$(LINK) $(am_libbacktrace_noformat_la_rpath) $(libbacktrace_noformat_la_OBJECTS) $(libbacktrace_noformat_la_LIBADD) $(LIBS)
15888
15889-clean-checkPROGRAMS:
15890- @list='$(check_PROGRAMS)'; test -n "$$list" || exit 0; \
15891- echo " rm -f" $$list; \
15892- rm -f $$list || exit $$?; \
15893- test -n "$(EXEEXT)" || exit 0; \
15894- list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
15895- echo " rm -f" $$list; \
15896- rm -f $$list
15897-
15898 allocfail$(EXEEXT): $(allocfail_OBJECTS) $(allocfail_DEPENDENCIES) $(EXTRA_allocfail_DEPENDENCIES)
15899 @rm -f allocfail$(EXEEXT)
15900 $(AM_V_CCLD)$(allocfail_LINK) $(allocfail_OBJECTS) $(allocfail_LDADD) $(LIBS)
15901@@ -2096,7 +2100,7 @@ $(TEST_SUITE_LOG): $(TEST_LOGS)
15902 test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \
15903 fi; \
15904 echo "$${col}$$br$${std}"; \
15905- echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \
15906+ echo "$${col}Testsuite summary"$(AM_TESTSUITE_SUMMARY_HEADER)"$${std}"; \
15907 echo "$${col}$$br$${std}"; \
15908 create_testsuite_report --maybe-color; \
15909 echo "$$col$$br$$std"; \
15910@@ -2109,7 +2113,7 @@ $(TEST_SUITE_LOG): $(TEST_LOGS)
15911 fi; \
15912 $$success || exit 1
15913
15914-check-TESTS:
15915+check-TESTS: $(check_PROGRAMS) $(check_LTLIBRARIES) $(check_DATA)
15916 @list='$(RECHECK_LOGS)'; test -z "$$list" || rm -f $$list
15917 @list='$(RECHECK_LOGS:.log=.trs)'; test -z "$$list" || rm -f $$list
15918 @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
15919@@ -2119,7 +2123,7 @@ check-TESTS:
15920 log_list=`echo $$log_list`; trs_list=`echo $$trs_list`; \
15921 $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) TEST_LOGS="$$log_list"; \
15922 exit $$?;
15923-recheck: all $(check_LTLIBRARIES) $(check_PROGRAMS) $(check_DATA)
15924+recheck: all $(check_PROGRAMS) $(check_LTLIBRARIES) $(check_DATA)
15925 @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
15926 @set +e; $(am__set_TESTS_bases); \
15927 bases=`for i in $$bases; do echo $$i; done \
15928@@ -2439,7 +2443,7 @@ xztest_alloc.log: xztest_alloc$(EXEEXT)
15929 @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
15930 @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT)
15931 check-am: all-am
15932- $(MAKE) $(AM_MAKEFLAGS) $(check_LTLIBRARIES) $(check_PROGRAMS) \
15933+ $(MAKE) $(AM_MAKEFLAGS) $(check_PROGRAMS) $(check_LTLIBRARIES) \
15934 $(check_DATA)
15935 $(MAKE) $(AM_MAKEFLAGS) check-TESTS
15936 check: check-am
15937diff --git a/libbacktrace/aclocal.m4 b/libbacktrace/aclocal.m4
15938index 528e6173930..d88a5ec84f2 100644
15939--- a/libbacktrace/aclocal.m4
15940+++ b/libbacktrace/aclocal.m4
15941@@ -1,6 +1,6 @@
15942-# generated automatically by aclocal 1.15.1 -*- Autoconf -*-
15943+# generated automatically by aclocal 1.16.5 -*- Autoconf -*-
15944
15945-# Copyright (C) 1996-2017 Free Software Foundation, Inc.
15946+# Copyright (C) 1996-2021 Free Software Foundation, Inc.
15947
15948 # This file is free software; the Free Software Foundation
15949 # gives unlimited permission to copy and/or distribute it,
15950@@ -20,7 +20,7 @@ You have another version of autoconf. It may work, but is not guaranteed to.
15951 If you have problems, you may need to regenerate the build system entirely.
15952 To do so, use the procedure documented by the package, typically 'autoreconf'.])])
15953
15954-# Copyright (C) 2002-2017 Free Software Foundation, Inc.
15955+# Copyright (C) 2002-2021 Free Software Foundation, Inc.
15956 #
15957 # This file is free software; the Free Software Foundation
15958 # gives unlimited permission to copy and/or distribute it,
15959@@ -32,10 +32,10 @@ To do so, use the procedure documented by the package, typically 'autoreconf'.])
15960 # generated from the m4 files accompanying Automake X.Y.
15961 # (This private macro should not be called outside this file.)
15962 AC_DEFUN([AM_AUTOMAKE_VERSION],
15963-[am__api_version='1.15'
15964+[am__api_version='1.16'
15965 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
15966 dnl require some minimum version. Point them to the right macro.
15967-m4_if([$1], [1.15.1], [],
15968+m4_if([$1], [1.16.5], [],
15969 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
15970 ])
15971
15972@@ -51,14 +51,14 @@ m4_define([_AM_AUTOCONF_VERSION], [])
15973 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
15974 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
15975 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
15976-[AM_AUTOMAKE_VERSION([1.15.1])dnl
15977+[AM_AUTOMAKE_VERSION([1.16.5])dnl
15978 m4_ifndef([AC_AUTOCONF_VERSION],
15979 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
15980 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
15981
15982 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
15983
15984-# Copyright (C) 2001-2017 Free Software Foundation, Inc.
15985+# Copyright (C) 2001-2021 Free Software Foundation, Inc.
15986 #
15987 # This file is free software; the Free Software Foundation
15988 # gives unlimited permission to copy and/or distribute it,
15989@@ -110,7 +110,7 @@ am_aux_dir=`cd "$ac_aux_dir" && pwd`
15990
15991 # AM_CONDITIONAL -*- Autoconf -*-
15992
15993-# Copyright (C) 1997-2017 Free Software Foundation, Inc.
15994+# Copyright (C) 1997-2021 Free Software Foundation, Inc.
15995 #
15996 # This file is free software; the Free Software Foundation
15997 # gives unlimited permission to copy and/or distribute it,
15998@@ -143,7 +143,7 @@ fi])])
15999
16000 # Do all the work for Automake. -*- Autoconf -*-
16001
16002-# Copyright (C) 1996-2017 Free Software Foundation, Inc.
16003+# Copyright (C) 1996-2021 Free Software Foundation, Inc.
16004 #
16005 # This file is free software; the Free Software Foundation
16006 # gives unlimited permission to copy and/or distribute it,
16007@@ -171,6 +171,10 @@ m4_defn([AC_PROG_CC])
16008 # release and drop the old call support.
16009 AC_DEFUN([AM_INIT_AUTOMAKE],
16010 [AC_PREREQ([2.65])dnl
16011+m4_ifdef([_$0_ALREADY_INIT],
16012+ [m4_fatal([$0 expanded multiple times
16013+]m4_defn([_$0_ALREADY_INIT]))],
16014+ [m4_define([_$0_ALREADY_INIT], m4_expansion_stack)])dnl
16015 dnl Autoconf wants to disallow AM_ names. We explicitly allow
16016 dnl the ones we care about.
16017 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
16018@@ -207,7 +211,7 @@ m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
16019 [_AM_SET_OPTIONS([$1])dnl
16020 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
16021 m4_if(
16022- m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
16023+ m4_ifset([AC_PACKAGE_NAME], [ok]):m4_ifset([AC_PACKAGE_VERSION], [ok]),
16024 [ok:ok],,
16025 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
16026 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
16027@@ -230,8 +234,8 @@ AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
16028 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
16029 # For better backward compatibility. To be removed once Automake 1.9.x
16030 # dies out for good. For more background, see:
16031-# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
16032-# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
16033+# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
16034+# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
16035 AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
16036 # We need awk for the "check" target (and possibly the TAP driver). The
16037 # system "awk" is bad on some platforms.
16038@@ -259,6 +263,20 @@ AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
16039 [m4_define([AC_PROG_OBJCXX],
16040 m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
16041 ])
16042+# Variables for tags utilities; see am/tags.am
16043+if test -z "$CTAGS"; then
16044+ CTAGS=ctags
16045+fi
16046+AC_SUBST([CTAGS])
16047+if test -z "$ETAGS"; then
16048+ ETAGS=etags
16049+fi
16050+AC_SUBST([ETAGS])
16051+if test -z "$CSCOPE"; then
16052+ CSCOPE=cscope
16053+fi
16054+AC_SUBST([CSCOPE])
16055+
16056 AC_REQUIRE([AM_SILENT_RULES])dnl
16057 dnl The testsuite driver may need to know about EXEEXT, so add the
16058 dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This
16059@@ -298,7 +316,7 @@ END
16060 Aborting the configuration process, to ensure you take notice of the issue.
16061
16062 You can download and install GNU coreutils to get an 'rm' implementation
16063-that behaves properly: <http://www.gnu.org/software/coreutils/>.
16064+that behaves properly: <https://www.gnu.org/software/coreutils/>.
16065
16066 If you want to complete the configuration process using your problematic
16067 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
16068@@ -340,7 +358,7 @@ for _am_header in $config_headers :; do
16069 done
16070 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
16071
16072-# Copyright (C) 2001-2017 Free Software Foundation, Inc.
16073+# Copyright (C) 2001-2021 Free Software Foundation, Inc.
16074 #
16075 # This file is free software; the Free Software Foundation
16076 # gives unlimited permission to copy and/or distribute it,
16077@@ -364,7 +382,7 @@ AC_SUBST([install_sh])])
16078 # Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
16079 # From Jim Meyering
16080
16081-# Copyright (C) 1996-2017 Free Software Foundation, Inc.
16082+# Copyright (C) 1996-2021 Free Software Foundation, Inc.
16083 #
16084 # This file is free software; the Free Software Foundation
16085 # gives unlimited permission to copy and/or distribute it,
16086@@ -399,7 +417,7 @@ AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
16087
16088 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
16089
16090-# Copyright (C) 1997-2017 Free Software Foundation, Inc.
16091+# Copyright (C) 1997-2021 Free Software Foundation, Inc.
16092 #
16093 # This file is free software; the Free Software Foundation
16094 # gives unlimited permission to copy and/or distribute it,
16095@@ -420,12 +438,7 @@ AC_DEFUN([AM_MISSING_HAS_RUN],
16096 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
16097 AC_REQUIRE_AUX_FILE([missing])dnl
16098 if test x"${MISSING+set}" != xset; then
16099- case $am_aux_dir in
16100- *\ * | *\ *)
16101- MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
16102- *)
16103- MISSING="\${SHELL} $am_aux_dir/missing" ;;
16104- esac
16105+ MISSING="\${SHELL} '$am_aux_dir/missing'"
16106 fi
16107 # Use eval to expand $SHELL
16108 if eval "$MISSING --is-lightweight"; then
16109@@ -438,7 +451,7 @@ fi
16110
16111 # Helper functions for option handling. -*- Autoconf -*-
16112
16113-# Copyright (C) 2001-2017 Free Software Foundation, Inc.
16114+# Copyright (C) 2001-2021 Free Software Foundation, Inc.
16115 #
16116 # This file is free software; the Free Software Foundation
16117 # gives unlimited permission to copy and/or distribute it,
16118@@ -467,7 +480,7 @@ AC_DEFUN([_AM_SET_OPTIONS],
16119 AC_DEFUN([_AM_IF_OPTION],
16120 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
16121
16122-# Copyright (C) 1999-2017 Free Software Foundation, Inc.
16123+# Copyright (C) 1999-2021 Free Software Foundation, Inc.
16124 #
16125 # This file is free software; the Free Software Foundation
16126 # gives unlimited permission to copy and/or distribute it,
16127@@ -514,7 +527,7 @@ AC_LANG_POP([C])])
16128 # For backward compatibility.
16129 AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
16130
16131-# Copyright (C) 2001-2017 Free Software Foundation, Inc.
16132+# Copyright (C) 2001-2021 Free Software Foundation, Inc.
16133 #
16134 # This file is free software; the Free Software Foundation
16135 # gives unlimited permission to copy and/or distribute it,
16136@@ -533,7 +546,7 @@ AC_DEFUN([AM_RUN_LOG],
16137
16138 # Check to make sure that the build environment is sane. -*- Autoconf -*-
16139
16140-# Copyright (C) 1996-2017 Free Software Foundation, Inc.
16141+# Copyright (C) 1996-2021 Free Software Foundation, Inc.
16142 #
16143 # This file is free software; the Free Software Foundation
16144 # gives unlimited permission to copy and/or distribute it,
16145@@ -614,7 +627,7 @@ AC_CONFIG_COMMANDS_PRE(
16146 rm -f conftest.file
16147 ])
16148
16149-# Copyright (C) 2009-2017 Free Software Foundation, Inc.
16150+# Copyright (C) 2009-2021 Free Software Foundation, Inc.
16151 #
16152 # This file is free software; the Free Software Foundation
16153 # gives unlimited permission to copy and/or distribute it,
16154@@ -674,7 +687,7 @@ AC_SUBST([AM_BACKSLASH])dnl
16155 _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
16156 ])
16157
16158-# Copyright (C) 2001-2017 Free Software Foundation, Inc.
16159+# Copyright (C) 2001-2021 Free Software Foundation, Inc.
16160 #
16161 # This file is free software; the Free Software Foundation
16162 # gives unlimited permission to copy and/or distribute it,
16163@@ -702,7 +715,7 @@ fi
16164 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
16165 AC_SUBST([INSTALL_STRIP_PROGRAM])])
16166
16167-# Copyright (C) 2006-2017 Free Software Foundation, Inc.
16168+# Copyright (C) 2006-2021 Free Software Foundation, Inc.
16169 #
16170 # This file is free software; the Free Software Foundation
16171 # gives unlimited permission to copy and/or distribute it,
16172@@ -721,7 +734,7 @@ AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
16173
16174 # Check how to create a tarball. -*- Autoconf -*-
16175
16176-# Copyright (C) 2004-2017 Free Software Foundation, Inc.
16177+# Copyright (C) 2004-2021 Free Software Foundation, Inc.
16178 #
16179 # This file is free software; the Free Software Foundation
16180 # gives unlimited permission to copy and/or distribute it,
16181diff --git a/libbacktrace/configure b/libbacktrace/configure
16182index 4ab612dc780..68f6b8566e9 100755
16183--- a/libbacktrace/configure
16184+++ b/libbacktrace/configure
16185@@ -686,7 +686,10 @@ OTOOL
16186 LIPO
16187 NMEDIT
16188 DSYMUTIL
16189+MANIFEST_TOOL
16190+ac_ct_AR
16191 AR
16192+DLLTOOL
16193 OBJDUMP
16194 LN_S
16195 NM
16196@@ -707,6 +710,9 @@ AM_BACKSLASH
16197 AM_DEFAULT_VERBOSITY
16198 AM_DEFAULT_V
16199 AM_V
16200+CSCOPE
16201+ETAGS
16202+CTAGS
16203 am__untar
16204 am__tar
16205 AMTAR
16206@@ -804,6 +810,7 @@ enable_static
16207 with_pic
16208 enable_fast_install
16209 with_gnu_ld
16210+with_libtool_sysroot
16211 enable_libtool_lock
16212 enable_largefile
16213 enable_cet
16214@@ -1466,6 +1473,8 @@ Optional Packages:
16215 --with-pic try to use only PIC/non-PIC objects [default=use
16216 both]
16217 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
16218+ --with-libtool-sysroot=DIR Search for dependent libraries within DIR
16219+ (or the compiler's sysroot if not specified).
16220 --with-system-libunwind use installed libunwind
16221
16222 Some influential environment variables:
16223@@ -4054,7 +4063,7 @@ libtool_VERSION=1:0:0
16224 # -Wall: Issue all automake warnings.
16225 # -Wno-portability: Don't warn about constructs supported by GNU make.
16226 # (because GCC requires GNU make anyhow).
16227-am__api_version='1.15'
16228+am__api_version='1.16'
16229
16230 # Find a good install program. We prefer a C program (faster),
16231 # so one script is as good as another. But avoid the broken or
16232@@ -4227,12 +4236,7 @@ ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
16233 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
16234
16235 if test x"${MISSING+set}" != xset; then
16236- case $am_aux_dir in
16237- *\ * | *\ *)
16238- MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
16239- *)
16240- MISSING="\${SHELL} $am_aux_dir/missing" ;;
16241- esac
16242+ MISSING="\${SHELL} '$am_aux_dir/missing'"
16243 fi
16244 # Use eval to expand $SHELL
16245 if eval "$MISSING --is-lightweight"; then
16246@@ -4558,8 +4562,8 @@ MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
16247
16248 # For better backward compatibility. To be removed once Automake 1.9.x
16249 # dies out for good. For more background, see:
16250-# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
16251-# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
16252+# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
16253+# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
16254 mkdir_p='$(MKDIR_P)'
16255
16256 # We need awk for the "check" target (and possibly the TAP driver). The
16257@@ -4578,6 +4582,20 @@ am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
16258
16259
16260
16261+# Variables for tags utilities; see am/tags.am
16262+if test -z "$CTAGS"; then
16263+ CTAGS=ctags
16264+fi
16265+
16266+if test -z "$ETAGS"; then
16267+ ETAGS=etags
16268+fi
16269+
16270+if test -z "$CSCOPE"; then
16271+ CSCOPE=cscope
16272+fi
16273+
16274+
16275
16276 # POSIX will say in a future version that running "rm -f" with no argument
16277 # is OK; and we want to be able to make that assumption in our Makefile
16278@@ -4610,7 +4628,7 @@ END
16279 Aborting the configuration process, to ensure you take notice of the issue.
16280
16281 You can download and install GNU coreutils to get an 'rm' implementation
16282-that behaves properly: <http://www.gnu.org/software/coreutils/>.
16283+that behaves properly: <https://www.gnu.org/software/coreutils/>.
16284
16285 If you want to complete the configuration process using your problematic
16286 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
16287@@ -5453,8 +5471,8 @@ esac
16288
16289
16290
16291-macro_version='2.2.7a'
16292-macro_revision='1.3134'
16293+macro_version='2.4'
16294+macro_revision='1.3293'
16295
16296
16297
16298@@ -5494,7 +5512,7 @@ ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
16299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
16300 $as_echo_n "checking how to print strings... " >&6; }
16301 # Test print first, because it will be a builtin if present.
16302-if test "X`print -r -- -n 2>/dev/null`" = X-n && \
16303+if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
16304 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
16305 ECHO='print -r --'
16306 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
16307@@ -6187,8 +6205,8 @@ $as_echo_n "checking whether the shell understands some XSI constructs... " >&6;
16308 # Try some XSI features
16309 xsi_shell=no
16310 ( _lt_dummy="a/b/c"
16311- test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
16312- = c,a/b,, \
16313+ test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
16314+ = c,a/b,b/c, \
16315 && eval 'test $(( 1 + 1 )) -eq 2 \
16316 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
16317 && xsi_shell=yes
16318@@ -6237,6 +6255,80 @@ esac
16319
16320
16321
16322+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
16323+$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
16324+if ${lt_cv_to_host_file_cmd+:} false; then :
16325+ $as_echo_n "(cached) " >&6
16326+else
16327+ case $host in
16328+ *-*-mingw* )
16329+ case $build in
16330+ *-*-mingw* ) # actually msys
16331+ lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
16332+ ;;
16333+ *-*-cygwin* )
16334+ lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
16335+ ;;
16336+ * ) # otherwise, assume *nix
16337+ lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
16338+ ;;
16339+ esac
16340+ ;;
16341+ *-*-cygwin* )
16342+ case $build in
16343+ *-*-mingw* ) # actually msys
16344+ lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
16345+ ;;
16346+ *-*-cygwin* )
16347+ lt_cv_to_host_file_cmd=func_convert_file_noop
16348+ ;;
16349+ * ) # otherwise, assume *nix
16350+ lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
16351+ ;;
16352+ esac
16353+ ;;
16354+ * ) # unhandled hosts (and "normal" native builds)
16355+ lt_cv_to_host_file_cmd=func_convert_file_noop
16356+ ;;
16357+esac
16358+
16359+fi
16360+
16361+to_host_file_cmd=$lt_cv_to_host_file_cmd
16362+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
16363+$as_echo "$lt_cv_to_host_file_cmd" >&6; }
16364+
16365+
16366+
16367+
16368+
16369+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
16370+$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
16371+if ${lt_cv_to_tool_file_cmd+:} false; then :
16372+ $as_echo_n "(cached) " >&6
16373+else
16374+ #assume ordinary cross tools, or native build.
16375+lt_cv_to_tool_file_cmd=func_convert_file_noop
16376+case $host in
16377+ *-*-mingw* )
16378+ case $build in
16379+ *-*-mingw* ) # actually msys
16380+ lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
16381+ ;;
16382+ esac
16383+ ;;
16384+esac
16385+
16386+fi
16387+
16388+to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16389+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
16390+$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
16391+
16392+
16393+
16394+
16395+
16396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
16397 $as_echo_n "checking for $LD option to reload object files... " >&6; }
16398 if ${lt_cv_ld_reload_flag+:} false; then :
16399@@ -6253,6 +6345,11 @@ case $reload_flag in
16400 esac
16401 reload_cmds='$LD$reload_flag -o $output$reload_objs'
16402 case $host_os in
16403+ cygwin* | mingw* | pw32* | cegcc*)
16404+ if test "$GCC" != yes; then
16405+ reload_cmds=false
16406+ fi
16407+ ;;
16408 darwin*)
16409 if test "$GCC" = yes; then
16410 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
16411@@ -6421,7 +6518,8 @@ mingw* | pw32*)
16412 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
16413 lt_cv_file_magic_cmd='func_win32_libid'
16414 else
16415- lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
16416+ # Keep this pattern in sync with the one in func_win32_libid.
16417+ lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
16418 lt_cv_file_magic_cmd='$OBJDUMP -f'
16419 fi
16420 ;;
16421@@ -6580,6 +6678,21 @@ esac
16422 fi
16423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
16424 $as_echo "$lt_cv_deplibs_check_method" >&6; }
16425+
16426+file_magic_glob=
16427+want_nocaseglob=no
16428+if test "$build" = "$host"; then
16429+ case $host_os in
16430+ mingw* | pw32*)
16431+ if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
16432+ want_nocaseglob=yes
16433+ else
16434+ file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
16435+ fi
16436+ ;;
16437+ esac
16438+fi
16439+
16440 file_magic_cmd=$lt_cv_file_magic_cmd
16441 deplibs_check_method=$lt_cv_deplibs_check_method
16442 test -z "$deplibs_check_method" && deplibs_check_method=unknown
16443@@ -6595,6 +6708,157 @@ test -z "$deplibs_check_method" && deplibs_check_method=unknown
16444
16445
16446
16447+
16448+
16449+
16450+
16451+
16452+
16453+
16454+
16455+
16456+
16457+if test -n "$ac_tool_prefix"; then
16458+ # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
16459+set dummy ${ac_tool_prefix}dlltool; ac_word=$2
16460+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16461+$as_echo_n "checking for $ac_word... " >&6; }
16462+if ${ac_cv_prog_DLLTOOL+:} false; then :
16463+ $as_echo_n "(cached) " >&6
16464+else
16465+ if test -n "$DLLTOOL"; then
16466+ ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
16467+else
16468+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16469+for as_dir in $PATH
16470+do
16471+ IFS=$as_save_IFS
16472+ test -z "$as_dir" && as_dir=.
16473+ for ac_exec_ext in '' $ac_executable_extensions; do
16474+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16475+ ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
16476+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16477+ break 2
16478+ fi
16479+done
16480+ done
16481+IFS=$as_save_IFS
16482+
16483+fi
16484+fi
16485+DLLTOOL=$ac_cv_prog_DLLTOOL
16486+if test -n "$DLLTOOL"; then
16487+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
16488+$as_echo "$DLLTOOL" >&6; }
16489+else
16490+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16491+$as_echo "no" >&6; }
16492+fi
16493+
16494+
16495+fi
16496+if test -z "$ac_cv_prog_DLLTOOL"; then
16497+ ac_ct_DLLTOOL=$DLLTOOL
16498+ # Extract the first word of "dlltool", so it can be a program name with args.
16499+set dummy dlltool; ac_word=$2
16500+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16501+$as_echo_n "checking for $ac_word... " >&6; }
16502+if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
16503+ $as_echo_n "(cached) " >&6
16504+else
16505+ if test -n "$ac_ct_DLLTOOL"; then
16506+ ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
16507+else
16508+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16509+for as_dir in $PATH
16510+do
16511+ IFS=$as_save_IFS
16512+ test -z "$as_dir" && as_dir=.
16513+ for ac_exec_ext in '' $ac_executable_extensions; do
16514+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16515+ ac_cv_prog_ac_ct_DLLTOOL="dlltool"
16516+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16517+ break 2
16518+ fi
16519+done
16520+ done
16521+IFS=$as_save_IFS
16522+
16523+fi
16524+fi
16525+ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
16526+if test -n "$ac_ct_DLLTOOL"; then
16527+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
16528+$as_echo "$ac_ct_DLLTOOL" >&6; }
16529+else
16530+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16531+$as_echo "no" >&6; }
16532+fi
16533+
16534+ if test "x$ac_ct_DLLTOOL" = x; then
16535+ DLLTOOL="false"
16536+ else
16537+ case $cross_compiling:$ac_tool_warned in
16538+yes:)
16539+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16540+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16541+ac_tool_warned=yes ;;
16542+esac
16543+ DLLTOOL=$ac_ct_DLLTOOL
16544+ fi
16545+else
16546+ DLLTOOL="$ac_cv_prog_DLLTOOL"
16547+fi
16548+
16549+test -z "$DLLTOOL" && DLLTOOL=dlltool
16550+
16551+
16552+
16553+
16554+
16555+
16556+
16557+
16558+
16559+
16560+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
16561+$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
16562+if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
16563+ $as_echo_n "(cached) " >&6
16564+else
16565+ lt_cv_sharedlib_from_linklib_cmd='unknown'
16566+
16567+case $host_os in
16568+cygwin* | mingw* | pw32* | cegcc*)
16569+ # two different shell functions defined in ltmain.sh
16570+ # decide which to use based on capabilities of $DLLTOOL
16571+ case `$DLLTOOL --help 2>&1` in
16572+ *--identify-strict*)
16573+ lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
16574+ ;;
16575+ *)
16576+ lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
16577+ ;;
16578+ esac
16579+ ;;
16580+*)
16581+ # fallback: assume linklib IS sharedlib
16582+ lt_cv_sharedlib_from_linklib_cmd="$ECHO"
16583+ ;;
16584+esac
16585+
16586+fi
16587+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
16588+$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
16589+sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
16590+test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
16591+
16592+
16593+
16594+
16595+
16596+
16597+
16598 plugin_option=
16599 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
16600 for plugin in $plugin_names; do
16601@@ -6609,8 +6873,10 @@ for plugin in $plugin_names; do
16602 done
16603
16604 if test -n "$ac_tool_prefix"; then
16605- # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
16606-set dummy ${ac_tool_prefix}ar; ac_word=$2
16607+ for ac_prog in ar
16608+ do
16609+ # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16610+set dummy $ac_tool_prefix$ac_prog; ac_word=$2
16611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16612 $as_echo_n "checking for $ac_word... " >&6; }
16613 if ${ac_cv_prog_AR+:} false; then :
16614@@ -6626,7 +6892,7 @@ do
16615 test -z "$as_dir" && as_dir=.
16616 for ac_exec_ext in '' $ac_executable_extensions; do
16617 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16618- ac_cv_prog_AR="${ac_tool_prefix}ar"
16619+ ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
16620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16621 break 2
16622 fi
16623@@ -6646,11 +6912,15 @@ $as_echo "no" >&6; }
16624 fi
16625
16626
16627+ test -n "$AR" && break
16628+ done
16629 fi
16630-if test -z "$ac_cv_prog_AR"; then
16631+if test -z "$AR"; then
16632 ac_ct_AR=$AR
16633- # Extract the first word of "ar", so it can be a program name with args.
16634-set dummy ar; ac_word=$2
16635+ for ac_prog in ar
16636+do
16637+ # Extract the first word of "$ac_prog", so it can be a program name with args.
16638+set dummy $ac_prog; ac_word=$2
16639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16640 $as_echo_n "checking for $ac_word... " >&6; }
16641 if ${ac_cv_prog_ac_ct_AR+:} false; then :
16642@@ -6666,7 +6936,7 @@ do
16643 test -z "$as_dir" && as_dir=.
16644 for ac_exec_ext in '' $ac_executable_extensions; do
16645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16646- ac_cv_prog_ac_ct_AR="ar"
16647+ ac_cv_prog_ac_ct_AR="$ac_prog"
16648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16649 break 2
16650 fi
16651@@ -6685,6 +6955,10 @@ else
16652 $as_echo "no" >&6; }
16653 fi
16654
16655+
16656+ test -n "$ac_ct_AR" && break
16657+done
16658+
16659 if test "x$ac_ct_AR" = x; then
16660 AR="false"
16661 else
16662@@ -6696,31 +6970,83 @@ ac_tool_warned=yes ;;
16663 esac
16664 AR=$ac_ct_AR
16665 fi
16666-else
16667- AR="$ac_cv_prog_AR"
16668 fi
16669
16670-test -z "$AR" && AR=ar
16671-if test -n "$plugin_option"; then
16672- if $AR --help 2>&1 | grep -q "\--plugin"; then
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+ touch conftest.c
16678+ $AR $plugin_option rc conftest.a conftest.c
16679+ if test "$?" != 0; then
16680+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
16681 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
16682- else
16683- AR="$AR $plugin_option"
16684- fi
16685- rm -f conftest.*
16686+ else
16687+ AR="$AR $plugin_option"
16688 fi
16689-fi
16690-test -z "$AR_FLAGS" && AR_FLAGS=cru
16691+ rm -f conftest.*
16692+: ${AR=ar}
16693+: ${AR_FLAGS=cru}
16694+
16695+
16696+
16697+
16698+
16699
16700
16701
16702
16703
16704
16705+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
16706+$as_echo_n "checking for archiver @FILE support... " >&6; }
16707+if ${lt_cv_ar_at_file+:} false; then :
16708+ $as_echo_n "(cached) " >&6
16709+else
16710+ lt_cv_ar_at_file=no
16711+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16712+/* end confdefs.h. */
16713+
16714+int
16715+main ()
16716+{
16717+
16718+ ;
16719+ return 0;
16720+}
16721+_ACEOF
16722+if ac_fn_c_try_compile "$LINENO"; then :
16723+ echo conftest.$ac_objext > conftest.lst
16724+ lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
16725+ { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
16726+ (eval $lt_ar_try) 2>&5
16727+ ac_status=$?
16728+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16729+ test $ac_status = 0; }
16730+ if test "$ac_status" -eq 0; then
16731+ # Ensure the archiver fails upon bogus file names.
16732+ rm -f conftest.$ac_objext libconftest.a
16733+ { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
16734+ (eval $lt_ar_try) 2>&5
16735+ ac_status=$?
16736+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16737+ test $ac_status = 0; }
16738+ if test "$ac_status" -ne 0; then
16739+ lt_cv_ar_at_file=@
16740+ fi
16741+ fi
16742+ rm -f conftest.* libconftest.a
16743+
16744+fi
16745+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16746+
16747+fi
16748+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
16749+$as_echo "$lt_cv_ar_at_file" >&6; }
16750+
16751+if test "x$lt_cv_ar_at_file" = xno; then
16752+ archiver_list_spec=
16753+else
16754+ archiver_list_spec=$lt_cv_ar_at_file
16755+fi
16756+
16757+
16758
16759
16760
16761@@ -7065,8 +7391,8 @@ esac
16762 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
16763
16764 # Transform an extracted symbol line into symbol name and symbol address
16765-lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
16766-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'"
16767+lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
16768+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'"
16769
16770 # Handle CRLF in mingw tool chain
16771 opt_cr=
16772@@ -7102,6 +7428,7 @@ for ac_symprfx in "" "_"; do
16773 else
16774 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
16775 fi
16776+ lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
16777
16778 # Check to see that the pipe works correctly.
16779 pipe_works=no
16780@@ -7143,6 +7470,18 @@ _LT_EOF
16781 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
16782 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
16783 cat <<_LT_EOF > conftest.$ac_ext
16784+/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
16785+#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
16786+/* DATA imports from DLLs on WIN32 con't be const, because runtime
16787+ relocations are performed -- see ld's documentation on pseudo-relocs. */
16788+# define LT_DLSYM_CONST
16789+#elif defined(__osf__)
16790+/* This system does not cope well with relocations in const data. */
16791+# define LT_DLSYM_CONST
16792+#else
16793+# define LT_DLSYM_CONST const
16794+#endif
16795+
16796 #ifdef __cplusplus
16797 extern "C" {
16798 #endif
16799@@ -7154,7 +7493,7 @@ _LT_EOF
16800 cat <<_LT_EOF >> conftest.$ac_ext
16801
16802 /* The mapping between symbol names and symbols. */
16803-const struct {
16804+LT_DLSYM_CONST struct {
16805 const char *name;
16806 void *address;
16807 }
16808@@ -7180,8 +7519,8 @@ static const void *lt_preloaded_setup() {
16809 _LT_EOF
16810 # Now try linking the two files.
16811 mv conftest.$ac_objext conftstm.$ac_objext
16812- lt_save_LIBS="$LIBS"
16813- lt_save_CFLAGS="$CFLAGS"
16814+ lt_globsym_save_LIBS=$LIBS
16815+ lt_globsym_save_CFLAGS=$CFLAGS
16816 LIBS="conftstm.$ac_objext"
16817 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
16818 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16819@@ -7191,8 +7530,8 @@ _LT_EOF
16820 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
16821 pipe_works=yes
16822 fi
16823- LIBS="$lt_save_LIBS"
16824- CFLAGS="$lt_save_CFLAGS"
16825+ LIBS=$lt_globsym_save_LIBS
16826+ CFLAGS=$lt_globsym_save_CFLAGS
16827 else
16828 echo "cannot find nm_test_func in $nlist" >&5
16829 fi
16830@@ -7229,6 +7568,18 @@ else
16831 $as_echo "ok" >&6; }
16832 fi
16833
16834+# Response file support.
16835+if test "$lt_cv_nm_interface" = "MS dumpbin"; then
16836+ nm_file_list_spec='@'
16837+elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
16838+ nm_file_list_spec='@'
16839+fi
16840+
16841+
16842+
16843+
16844+
16845+
16846
16847
16848
16849@@ -7245,6 +7596,43 @@ fi
16850
16851
16852
16853+
16854+
16855+
16856+
16857+
16858+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
16859+$as_echo_n "checking for sysroot... " >&6; }
16860+
16861+# Check whether --with-libtool-sysroot was given.
16862+if test "${with_libtool_sysroot+set}" = set; then :
16863+ withval=$with_libtool_sysroot;
16864+else
16865+ with_libtool_sysroot=no
16866+fi
16867+
16868+
16869+lt_sysroot=
16870+case ${with_libtool_sysroot} in #(
16871+ yes)
16872+ if test "$GCC" = yes; then
16873+ lt_sysroot=`$CC --print-sysroot 2>/dev/null`
16874+ fi
16875+ ;; #(
16876+ /*)
16877+ lt_sysroot=`echo "$with_libtool_sysroot" | sed -e "$sed_quote_subst"`
16878+ ;; #(
16879+ no|'')
16880+ ;; #(
16881+ *)
16882+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_libtool_sysroot}" >&5
16883+$as_echo "${with_libtool_sysroot}" >&6; }
16884+ as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
16885+ ;;
16886+esac
16887+
16888+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
16889+$as_echo "${lt_sysroot:-no}" >&6; }
16890
16891
16892
16893@@ -7411,50 +7799,167 @@ _ACEOF
16894 if ac_fn_c_try_link "$LINENO"; then :
16895 lt_cv_cc_needs_belf=yes
16896 else
16897- lt_cv_cc_needs_belf=no
16898+ lt_cv_cc_needs_belf=no
16899+fi
16900+rm -f core conftest.err conftest.$ac_objext \
16901+ conftest$ac_exeext conftest.$ac_ext
16902+ ac_ext=c
16903+ac_cpp='$CPP $CPPFLAGS'
16904+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16905+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16906+ac_compiler_gnu=$ac_cv_c_compiler_gnu
16907+
16908+fi
16909+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
16910+$as_echo "$lt_cv_cc_needs_belf" >&6; }
16911+ if test x"$lt_cv_cc_needs_belf" != x"yes"; then
16912+ # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
16913+ CFLAGS="$SAVE_CFLAGS"
16914+ fi
16915+ ;;
16916+sparc*-*solaris*)
16917+ # Find out which ABI we are using.
16918+ echo 'int i;' > conftest.$ac_ext
16919+ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16920+ (eval $ac_compile) 2>&5
16921+ ac_status=$?
16922+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16923+ test $ac_status = 0; }; then
16924+ case `/usr/bin/file conftest.o` in
16925+ *64-bit*)
16926+ case $lt_cv_prog_gnu_ld in
16927+ yes*) LD="${LD-ld} -m elf64_sparc" ;;
16928+ *)
16929+ if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
16930+ LD="${LD-ld} -64"
16931+ fi
16932+ ;;
16933+ esac
16934+ ;;
16935+ esac
16936+ fi
16937+ rm -rf conftest*
16938+ ;;
16939+esac
16940+
16941+need_locks="$enable_libtool_lock"
16942+
16943+if test -n "$ac_tool_prefix"; then
16944+ # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
16945+set dummy ${ac_tool_prefix}mt; ac_word=$2
16946+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16947+$as_echo_n "checking for $ac_word... " >&6; }
16948+if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
16949+ $as_echo_n "(cached) " >&6
16950+else
16951+ if test -n "$MANIFEST_TOOL"; then
16952+ ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
16953+else
16954+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16955+for as_dir in $PATH
16956+do
16957+ IFS=$as_save_IFS
16958+ test -z "$as_dir" && as_dir=.
16959+ for ac_exec_ext in '' $ac_executable_extensions; do
16960+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16961+ ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
16962+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16963+ break 2
16964+ fi
16965+done
16966+ done
16967+IFS=$as_save_IFS
16968+
16969+fi
16970+fi
16971+MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
16972+if test -n "$MANIFEST_TOOL"; then
16973+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
16974+$as_echo "$MANIFEST_TOOL" >&6; }
16975+else
16976+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16977+$as_echo "no" >&6; }
16978+fi
16979+
16980+
16981+fi
16982+if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
16983+ ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
16984+ # Extract the first word of "mt", so it can be a program name with args.
16985+set dummy mt; ac_word=$2
16986+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16987+$as_echo_n "checking for $ac_word... " >&6; }
16988+if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
16989+ $as_echo_n "(cached) " >&6
16990+else
16991+ if test -n "$ac_ct_MANIFEST_TOOL"; then
16992+ ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
16993+else
16994+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16995+for as_dir in $PATH
16996+do
16997+ IFS=$as_save_IFS
16998+ test -z "$as_dir" && as_dir=.
16999+ for ac_exec_ext in '' $ac_executable_extensions; do
17000+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17001+ ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
17002+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17003+ break 2
17004+ fi
17005+done
17006+ done
17007+IFS=$as_save_IFS
17008+
17009+fi
17010+fi
17011+ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
17012+if test -n "$ac_ct_MANIFEST_TOOL"; then
17013+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
17014+$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
17015+else
17016+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17017+$as_echo "no" >&6; }
17018 fi
17019-rm -f core conftest.err conftest.$ac_objext \
17020- conftest$ac_exeext conftest.$ac_ext
17021- ac_ext=c
17022-ac_cpp='$CPP $CPPFLAGS'
17023-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17024-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17025-ac_compiler_gnu=$ac_cv_c_compiler_gnu
17026
17027-fi
17028-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
17029-$as_echo "$lt_cv_cc_needs_belf" >&6; }
17030- if test x"$lt_cv_cc_needs_belf" != x"yes"; then
17031- # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
17032- CFLAGS="$SAVE_CFLAGS"
17033+ if test "x$ac_ct_MANIFEST_TOOL" = x; then
17034+ MANIFEST_TOOL=":"
17035+ else
17036+ case $cross_compiling:$ac_tool_warned in
17037+yes:)
17038+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17039+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17040+ac_tool_warned=yes ;;
17041+esac
17042+ MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
17043 fi
17044- ;;
17045-sparc*-*solaris*)
17046- # Find out which ABI we are using.
17047- echo 'int i;' > conftest.$ac_ext
17048- if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17049- (eval $ac_compile) 2>&5
17050- ac_status=$?
17051- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17052- test $ac_status = 0; }; then
17053- case `/usr/bin/file conftest.o` in
17054- *64-bit*)
17055- case $lt_cv_prog_gnu_ld in
17056- yes*) LD="${LD-ld} -m elf64_sparc" ;;
17057- *)
17058- if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
17059- LD="${LD-ld} -64"
17060- fi
17061- ;;
17062- esac
17063- ;;
17064- esac
17065+else
17066+ MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
17067+fi
17068+
17069+test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
17070+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
17071+$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
17072+if ${lt_cv_path_mainfest_tool+:} false; then :
17073+ $as_echo_n "(cached) " >&6
17074+else
17075+ lt_cv_path_mainfest_tool=no
17076+ echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
17077+ $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
17078+ cat conftest.err >&5
17079+ if $GREP 'Manifest Tool' conftest.out > /dev/null; then
17080+ lt_cv_path_mainfest_tool=yes
17081 fi
17082- rm -rf conftest*
17083- ;;
17084-esac
17085+ rm -f conftest*
17086+fi
17087+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
17088+$as_echo "$lt_cv_path_mainfest_tool" >&6; }
17089+if test "x$lt_cv_path_mainfest_tool" != xyes; then
17090+ MANIFEST_TOOL=:
17091+fi
17092+
17093+
17094+
17095
17096-need_locks="$enable_libtool_lock"
17097
17098
17099 case $host_os in
17100@@ -8019,6 +8524,8 @@ _LT_EOF
17101 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
17102 echo "$AR cru libconftest.a conftest.o" >&5
17103 $AR cru libconftest.a conftest.o 2>&5
17104+ echo "$RANLIB libconftest.a" >&5
17105+ $RANLIB libconftest.a 2>&5
17106 cat > conftest.c << _LT_EOF
17107 int main() { return 0;}
17108 _LT_EOF
17109@@ -8603,8 +9110,6 @@ fi
17110 lt_prog_compiler_pic=
17111 lt_prog_compiler_static=
17112
17113-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
17114-$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17115
17116 if test "$GCC" = yes; then
17117 lt_prog_compiler_wl='-Wl,'
17118@@ -8770,6 +9275,12 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17119 lt_prog_compiler_pic='--shared'
17120 lt_prog_compiler_static='--static'
17121 ;;
17122+ nagfor*)
17123+ # NAG Fortran compiler
17124+ lt_prog_compiler_wl='-Wl,-Wl,,'
17125+ lt_prog_compiler_pic='-PIC'
17126+ lt_prog_compiler_static='-Bstatic'
17127+ ;;
17128 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
17129 # Portland Group compilers (*not* the Pentium gcc compiler,
17130 # which looks to be a dead project)
17131@@ -8832,7 +9343,7 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17132 lt_prog_compiler_pic='-KPIC'
17133 lt_prog_compiler_static='-Bstatic'
17134 case $cc_basename in
17135- f77* | f90* | f95*)
17136+ f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
17137 lt_prog_compiler_wl='-Qoption ld ';;
17138 *)
17139 lt_prog_compiler_wl='-Wl,';;
17140@@ -8889,13 +9400,17 @@ case $host_os in
17141 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
17142 ;;
17143 esac
17144-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
17145-$as_echo "$lt_prog_compiler_pic" >&6; }
17146-
17147-
17148-
17149-
17150
17151+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
17152+$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17153+if ${lt_cv_prog_compiler_pic+:} false; then :
17154+ $as_echo_n "(cached) " >&6
17155+else
17156+ lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
17157+fi
17158+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
17159+$as_echo "$lt_cv_prog_compiler_pic" >&6; }
17160+lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
17161
17162 #
17163 # Check to make sure the PIC flag actually works.
17164@@ -8956,6 +9471,11 @@ fi
17165
17166
17167
17168+
17169+
17170+
17171+
17172+
17173 #
17174 # Check to make sure the static flag actually works.
17175 #
17176@@ -9306,7 +9826,8 @@ _LT_EOF
17177 allow_undefined_flag=unsupported
17178 always_export_symbols=no
17179 enable_shared_with_static_runtimes=yes
17180- export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17181+ 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'
17182+ exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
17183
17184 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17185 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17186@@ -9405,12 +9926,12 @@ _LT_EOF
17187 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
17188 hardcode_libdir_flag_spec=
17189 hardcode_libdir_flag_spec_ld='-rpath $libdir'
17190- archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
17191+ archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
17192 if test "x$supports_anon_versioning" = xyes; then
17193 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
17194 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17195 echo "local: *; };" >> $output_objdir/$libname.ver~
17196- $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
17197+ $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
17198 fi
17199 ;;
17200 esac
17201@@ -9424,8 +9945,8 @@ _LT_EOF
17202 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17203 wlarc=
17204 else
17205- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17206- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17207+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17208+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17209 fi
17210 ;;
17211
17212@@ -9443,8 +9964,8 @@ _LT_EOF
17213
17214 _LT_EOF
17215 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17216- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17217- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17218+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17219+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17220 else
17221 ld_shlibs=no
17222 fi
17223@@ -9490,8 +10011,8 @@ _LT_EOF
17224
17225 *)
17226 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17227- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17228- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17229+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17230+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17231 else
17232 ld_shlibs=no
17233 fi
17234@@ -9621,7 +10142,13 @@ _LT_EOF
17235 allow_undefined_flag='-berok'
17236 # Determine the default libpath from the value encoded in an
17237 # empty executable.
17238- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17239+ if test "${lt_cv_aix_libpath+set}" = set; then
17240+ aix_libpath=$lt_cv_aix_libpath
17241+else
17242+ if ${lt_cv_aix_libpath_+:} false; then :
17243+ $as_echo_n "(cached) " >&6
17244+else
17245+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17246 /* end confdefs.h. */
17247
17248 int
17249@@ -9634,22 +10161,29 @@ main ()
17250 _ACEOF
17251 if ac_fn_c_try_link "$LINENO"; then :
17252
17253-lt_aix_libpath_sed='
17254- /Import File Strings/,/^$/ {
17255- /^0/ {
17256- s/^0 *\(.*\)$/\1/
17257- p
17258- }
17259- }'
17260-aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17261-# Check for a 64-bit object if we didn't find anything.
17262-if test -z "$aix_libpath"; then
17263- aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17264-fi
17265+ lt_aix_libpath_sed='
17266+ /Import File Strings/,/^$/ {
17267+ /^0/ {
17268+ s/^0 *\([^ ]*\) *$/\1/
17269+ p
17270+ }
17271+ }'
17272+ lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17273+ # Check for a 64-bit object if we didn't find anything.
17274+ if test -z "$lt_cv_aix_libpath_"; then
17275+ lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17276+ fi
17277 fi
17278 rm -f core conftest.err conftest.$ac_objext \
17279 conftest$ac_exeext conftest.$ac_ext
17280-if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17281+ if test -z "$lt_cv_aix_libpath_"; then
17282+ lt_cv_aix_libpath_="/usr/lib:/lib"
17283+ fi
17284+
17285+fi
17286+
17287+ aix_libpath=$lt_cv_aix_libpath_
17288+fi
17289
17290 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
17291 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"
17292@@ -9661,7 +10195,13 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17293 else
17294 # Determine the default libpath from the value encoded in an
17295 # empty executable.
17296- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17297+ if test "${lt_cv_aix_libpath+set}" = set; then
17298+ aix_libpath=$lt_cv_aix_libpath
17299+else
17300+ if ${lt_cv_aix_libpath_+:} false; then :
17301+ $as_echo_n "(cached) " >&6
17302+else
17303+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17304 /* end confdefs.h. */
17305
17306 int
17307@@ -9674,22 +10214,29 @@ main ()
17308 _ACEOF
17309 if ac_fn_c_try_link "$LINENO"; then :
17310
17311-lt_aix_libpath_sed='
17312- /Import File Strings/,/^$/ {
17313- /^0/ {
17314- s/^0 *\(.*\)$/\1/
17315- p
17316- }
17317- }'
17318-aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17319-# Check for a 64-bit object if we didn't find anything.
17320-if test -z "$aix_libpath"; then
17321- aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17322-fi
17323+ lt_aix_libpath_sed='
17324+ /Import File Strings/,/^$/ {
17325+ /^0/ {
17326+ s/^0 *\([^ ]*\) *$/\1/
17327+ p
17328+ }
17329+ }'
17330+ lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17331+ # Check for a 64-bit object if we didn't find anything.
17332+ if test -z "$lt_cv_aix_libpath_"; then
17333+ lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17334+ fi
17335 fi
17336 rm -f core conftest.err conftest.$ac_objext \
17337 conftest$ac_exeext conftest.$ac_ext
17338-if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17339+ if test -z "$lt_cv_aix_libpath_"; then
17340+ lt_cv_aix_libpath_="/usr/lib:/lib"
17341+ fi
17342+
17343+fi
17344+
17345+ aix_libpath=$lt_cv_aix_libpath_
17346+fi
17347
17348 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
17349 # Warning - without using the other run time loading flags,
17350@@ -9734,20 +10281,63 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17351 # Microsoft Visual C++.
17352 # hardcode_libdir_flag_spec is actually meaningless, as there is
17353 # no search path for DLLs.
17354- hardcode_libdir_flag_spec=' '
17355- allow_undefined_flag=unsupported
17356- # Tell ltmain to make .lib files, not .a files.
17357- libext=lib
17358- # Tell ltmain to make .dll files, not .so files.
17359- shrext_cmds=".dll"
17360- # FIXME: Setting linknames here is a bad hack.
17361- archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
17362- # The linker will automatically build a .lib file if we build a DLL.
17363- old_archive_from_new_cmds='true'
17364- # FIXME: Should let the user specify the lib program.
17365- old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
17366- fix_srcfile_path='`cygpath -w "$srcfile"`'
17367- enable_shared_with_static_runtimes=yes
17368+ case $cc_basename in
17369+ cl*)
17370+ # Native MSVC
17371+ hardcode_libdir_flag_spec=' '
17372+ allow_undefined_flag=unsupported
17373+ always_export_symbols=yes
17374+ file_list_spec='@'
17375+ # Tell ltmain to make .lib files, not .a files.
17376+ libext=lib
17377+ # Tell ltmain to make .dll files, not .so files.
17378+ shrext_cmds=".dll"
17379+ # FIXME: Setting linknames here is a bad hack.
17380+ archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
17381+ archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17382+ sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
17383+ else
17384+ sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
17385+ fi~
17386+ $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
17387+ linknames='
17388+ # The linker will not automatically build a static lib if we build a DLL.
17389+ # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
17390+ enable_shared_with_static_runtimes=yes
17391+ export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17392+ # Don't use ranlib
17393+ old_postinstall_cmds='chmod 644 $oldlib'
17394+ postlink_cmds='lt_outputfile="@OUTPUT@"~
17395+ lt_tool_outputfile="@TOOL_OUTPUT@"~
17396+ case $lt_outputfile in
17397+ *.exe|*.EXE) ;;
17398+ *)
17399+ lt_outputfile="$lt_outputfile.exe"
17400+ lt_tool_outputfile="$lt_tool_outputfile.exe"
17401+ ;;
17402+ esac~
17403+ if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
17404+ $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
17405+ $RM "$lt_outputfile.manifest";
17406+ fi'
17407+ ;;
17408+ *)
17409+ # Assume MSVC wrapper
17410+ hardcode_libdir_flag_spec=' '
17411+ allow_undefined_flag=unsupported
17412+ # Tell ltmain to make .lib files, not .a files.
17413+ libext=lib
17414+ # Tell ltmain to make .dll files, not .so files.
17415+ shrext_cmds=".dll"
17416+ # FIXME: Setting linknames here is a bad hack.
17417+ archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
17418+ # The linker will automatically build a .lib file if we build a DLL.
17419+ old_archive_from_new_cmds='true'
17420+ # FIXME: Should let the user specify the lib program.
17421+ old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
17422+ enable_shared_with_static_runtimes=yes
17423+ ;;
17424+ esac
17425 ;;
17426
17427 darwin* | rhapsody*)
17428@@ -9808,7 +10398,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17429
17430 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17431 freebsd* | dragonfly*)
17432- archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17433+ archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17434 hardcode_libdir_flag_spec='-R$libdir'
17435 hardcode_direct=yes
17436 hardcode_shlibpath_var=no
17437@@ -9816,7 +10406,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17438
17439 hpux9*)
17440 if test "$GCC" = yes; then
17441- 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'
17442+ 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'
17443 else
17444 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'
17445 fi
17446@@ -9832,7 +10422,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17447
17448 hpux10*)
17449 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
17450- archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17451+ archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17452 else
17453 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17454 fi
17455@@ -9856,10 +10446,10 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17456 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17457 ;;
17458 ia64*)
17459- archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17460+ archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17461 ;;
17462 *)
17463- archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17464+ archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17465 ;;
17466 esac
17467 else
17468@@ -9938,23 +10528,36 @@ fi
17469
17470 irix5* | irix6* | nonstopux*)
17471 if test "$GCC" = yes; then
17472- 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'
17473+ 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'
17474 # Try to use the -exported_symbol ld option, if it does not
17475 # work, assume that -exports_file does not work either and
17476 # implicitly export all symbols.
17477- save_LDFLAGS="$LDFLAGS"
17478- LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
17479- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17480+ # This should be the same for all languages, so no per-tag cache variable.
17481+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
17482+$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
17483+if ${lt_cv_irix_exported_symbol+:} false; then :
17484+ $as_echo_n "(cached) " >&6
17485+else
17486+ save_LDFLAGS="$LDFLAGS"
17487+ LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
17488+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17489 /* end confdefs.h. */
17490-int foo(void) {}
17491+int foo (void) { return 0; }
17492 _ACEOF
17493 if ac_fn_c_try_link "$LINENO"; then :
17494- 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'
17495-
17496+ lt_cv_irix_exported_symbol=yes
17497+else
17498+ lt_cv_irix_exported_symbol=no
17499 fi
17500 rm -f core conftest.err conftest.$ac_objext \
17501 conftest$ac_exeext conftest.$ac_ext
17502- LDFLAGS="$save_LDFLAGS"
17503+ LDFLAGS="$save_LDFLAGS"
17504+fi
17505+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
17506+$as_echo "$lt_cv_irix_exported_symbol" >&6; }
17507+ if test "$lt_cv_irix_exported_symbol" = yes; then
17508+ 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'
17509+ fi
17510 else
17511 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'
17512 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'
17513@@ -10039,7 +10642,7 @@ rm -f core conftest.err conftest.$ac_objext \
17514 osf4* | osf5*) # as osf3* with the addition of -msym flag
17515 if test "$GCC" = yes; then
17516 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
17517- 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'
17518+ 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'
17519 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17520 else
17521 allow_undefined_flag=' -expect_unresolved \*'
17522@@ -10058,9 +10661,9 @@ rm -f core conftest.err conftest.$ac_objext \
17523 no_undefined_flag=' -z defs'
17524 if test "$GCC" = yes; then
17525 wlarc='${wl}'
17526- archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17527+ archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17528 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17529- $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17530+ $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'
17531 else
17532 case `$CC -V 2>&1` in
17533 *"Compilers 5.0"*)
17534@@ -10636,8 +11239,9 @@ cygwin* | mingw* | pw32* | cegcc*)
17535 need_version=no
17536 need_lib_prefix=no
17537
17538- case $GCC,$host_os in
17539- yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17540+ case $GCC,$cc_basename in
17541+ yes,*)
17542+ # gcc
17543 library_names_spec='$libname.dll.a'
17544 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17545 postinstall_cmds='base_file=`basename \${file}`~
17546@@ -10670,13 +11274,71 @@ cygwin* | mingw* | pw32* | cegcc*)
17547 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17548 ;;
17549 esac
17550+ dynamic_linker='Win32 ld.exe'
17551+ ;;
17552+
17553+ *,cl*)
17554+ # Native MSVC
17555+ libname_spec='$name'
17556+ soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17557+ library_names_spec='${libname}.dll.lib'
17558+
17559+ case $build_os in
17560+ mingw*)
17561+ sys_lib_search_path_spec=
17562+ lt_save_ifs=$IFS
17563+ IFS=';'
17564+ for lt_path in $LIB
17565+ do
17566+ IFS=$lt_save_ifs
17567+ # Let DOS variable expansion print the short 8.3 style file name.
17568+ lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17569+ sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17570+ done
17571+ IFS=$lt_save_ifs
17572+ # Convert to MSYS style.
17573+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17574+ ;;
17575+ cygwin*)
17576+ # Convert to unix form, then to dos form, then back to unix form
17577+ # but this time dos style (no spaces!) so that the unix form looks
17578+ # like /cygdrive/c/PROGRA~1:/cygdr...
17579+ sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17580+ sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17581+ sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17582+ ;;
17583+ *)
17584+ sys_lib_search_path_spec="$LIB"
17585+ if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17586+ # It is most probably a Windows format PATH.
17587+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17588+ else
17589+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17590+ fi
17591+ # FIXME: find the short name or the path components, as spaces are
17592+ # common. (e.g. "Program Files" -> "PROGRA~1")
17593+ ;;
17594+ esac
17595+
17596+ # DLL is installed to $(libdir)/../bin by postinstall_cmds
17597+ postinstall_cmds='base_file=`basename \${file}`~
17598+ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17599+ dldir=$destdir/`dirname \$dlpath`~
17600+ test -d \$dldir || mkdir -p \$dldir~
17601+ $install_prog $dir/$dlname \$dldir/$dlname'
17602+ postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17603+ dlpath=$dir/\$dldll~
17604+ $RM \$dlpath'
17605+ shlibpath_overrides_runpath=yes
17606+ dynamic_linker='Win32 link.exe'
17607 ;;
17608
17609 *)
17610+ # Assume MSVC wrapper
17611 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17612+ dynamic_linker='Win32 ld.exe'
17613 ;;
17614 esac
17615- dynamic_linker='Win32 ld.exe'
17616 # FIXME: first we should search . and the directory the executable is in
17617 shlibpath_var=PATH
17618 ;;
17619@@ -11578,7 +12240,7 @@ else
17620 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17621 lt_status=$lt_dlunknown
17622 cat > conftest.$ac_ext <<_LT_EOF
17623-#line 11581 "configure"
17624+#line $LINENO "configure"
17625 #include "confdefs.h"
17626
17627 #if HAVE_DLFCN_H
17628@@ -11622,10 +12284,10 @@ else
17629 /* When -fvisbility=hidden is used, assume the code has been annotated
17630 correspondingly for the symbols needed. */
17631 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17632-void fnord () __attribute__((visibility("default")));
17633+int fnord () __attribute__((visibility("default")));
17634 #endif
17635
17636-void fnord () { int i=42; }
17637+int fnord () { return 42; }
17638 int main ()
17639 {
17640 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17641@@ -11684,7 +12346,7 @@ else
17642 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17643 lt_status=$lt_dlunknown
17644 cat > conftest.$ac_ext <<_LT_EOF
17645-#line 11687 "configure"
17646+#line $LINENO "configure"
17647 #include "confdefs.h"
17648
17649 #if HAVE_DLFCN_H
17650@@ -11728,10 +12390,10 @@ else
17651 /* When -fvisbility=hidden is used, assume the code has been annotated
17652 correspondingly for the symbols needed. */
17653 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17654-void fnord () __attribute__((visibility("default")));
17655+int fnord () __attribute__((visibility("default")));
17656 #endif
17657
17658-void fnord () { int i=42; }
17659+int fnord () { return 42; }
17660 int main ()
17661 {
17662 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17663@@ -15191,13 +15853,20 @@ exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17664 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17665 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17666 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17667+lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17668+lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17669 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17670 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17671 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17672 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17673 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17674+file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17675+want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17676+DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17677+sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17678 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17679 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17680+archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17681 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17682 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17683 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17684@@ -15212,14 +15881,17 @@ lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$de
17685 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17686 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17687 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"`'
17688+nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17689+lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17690 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17691 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17692 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17693-lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17694 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17695+lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17696 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17697 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17698 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17699+MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17700 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17701 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17702 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17703@@ -15252,12 +15924,12 @@ hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_q
17704 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17705 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17706 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17707-fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17708 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17709 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17710 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17711 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17712 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17713+postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17714 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17715 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17716 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17717@@ -15312,8 +15984,13 @@ reload_flag \
17718 OBJDUMP \
17719 deplibs_check_method \
17720 file_magic_cmd \
17721+file_magic_glob \
17722+want_nocaseglob \
17723+DLLTOOL \
17724+sharedlib_from_linklib_cmd \
17725 AR \
17726 AR_FLAGS \
17727+archiver_list_spec \
17728 STRIP \
17729 RANLIB \
17730 CC \
17731@@ -15323,12 +16000,14 @@ lt_cv_sys_global_symbol_pipe \
17732 lt_cv_sys_global_symbol_to_cdecl \
17733 lt_cv_sys_global_symbol_to_c_name_address \
17734 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17735+nm_file_list_spec \
17736 lt_prog_compiler_no_builtin_flag \
17737-lt_prog_compiler_wl \
17738 lt_prog_compiler_pic \
17739+lt_prog_compiler_wl \
17740 lt_prog_compiler_static \
17741 lt_cv_prog_compiler_c_o \
17742 need_locks \
17743+MANIFEST_TOOL \
17744 DSYMUTIL \
17745 NMEDIT \
17746 LIPO \
17747@@ -15344,7 +16023,6 @@ no_undefined_flag \
17748 hardcode_libdir_flag_spec \
17749 hardcode_libdir_flag_spec_ld \
17750 hardcode_libdir_separator \
17751-fix_srcfile_path \
17752 exclude_expsyms \
17753 include_expsyms \
17754 file_list_spec \
17755@@ -15380,6 +16058,7 @@ module_cmds \
17756 module_expsym_cmds \
17757 export_symbols_cmds \
17758 prelink_cmds \
17759+postlink_cmds \
17760 postinstall_cmds \
17761 postuninstall_cmds \
17762 finish_cmds \
17763@@ -16078,7 +16757,8 @@ esac ;;
17764 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17765 #
17766 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17767-# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
17768+# 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
17769+# Inc.
17770 # Written by Gordon Matzigkeit, 1996
17771 #
17772 # This file is part of GNU Libtool.
17773@@ -16181,19 +16861,42 @@ SP2NL=$lt_lt_SP2NL
17774 # turn newlines into spaces.
17775 NL2SP=$lt_lt_NL2SP
17776
17777+# convert \$build file names to \$host format.
17778+to_host_file_cmd=$lt_cv_to_host_file_cmd
17779+
17780+# convert \$build files to toolchain format.
17781+to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17782+
17783 # An object symbol dumper.
17784 OBJDUMP=$lt_OBJDUMP
17785
17786 # Method to check whether dependent libraries are shared objects.
17787 deplibs_check_method=$lt_deplibs_check_method
17788
17789-# Command to use when deplibs_check_method == "file_magic".
17790+# Command to use when deplibs_check_method = "file_magic".
17791 file_magic_cmd=$lt_file_magic_cmd
17792
17793+# How to find potential files when deplibs_check_method = "file_magic".
17794+file_magic_glob=$lt_file_magic_glob
17795+
17796+# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17797+want_nocaseglob=$lt_want_nocaseglob
17798+
17799+# DLL creation program.
17800+DLLTOOL=$lt_DLLTOOL
17801+
17802+# Command to associate shared and link libraries.
17803+sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17804+
17805 # The archiver.
17806 AR=$lt_AR
17807+
17808+# Flags to create an archive.
17809 AR_FLAGS=$lt_AR_FLAGS
17810
17811+# How to feed a file listing to the archiver.
17812+archiver_list_spec=$lt_archiver_list_spec
17813+
17814 # A symbol stripping program.
17815 STRIP=$lt_STRIP
17816
17817@@ -16223,6 +16926,12 @@ global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17818 # Transform the output of nm in a C name address pair when lib prefix is needed.
17819 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17820
17821+# Specify filename containing input files for \$NM.
17822+nm_file_list_spec=$lt_nm_file_list_spec
17823+
17824+# The root where to search for dependent libraries,and in which our libraries should be installed.
17825+lt_sysroot=$lt_sysroot
17826+
17827 # The name of the directory that contains temporary libtool files.
17828 objdir=$objdir
17829
17830@@ -16232,6 +16941,9 @@ MAGIC_CMD=$MAGIC_CMD
17831 # Must we lock files when doing compilation?
17832 need_locks=$lt_need_locks
17833
17834+# Manifest tool.
17835+MANIFEST_TOOL=$lt_MANIFEST_TOOL
17836+
17837 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17838 DSYMUTIL=$lt_DSYMUTIL
17839
17840@@ -16346,12 +17058,12 @@ with_gcc=$GCC
17841 # Compiler flag to turn off builtin functions.
17842 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17843
17844-# How to pass a linker flag through the compiler.
17845-wl=$lt_lt_prog_compiler_wl
17846-
17847 # Additional compiler flags for building library objects.
17848 pic_flag=$lt_lt_prog_compiler_pic
17849
17850+# How to pass a linker flag through the compiler.
17851+wl=$lt_lt_prog_compiler_wl
17852+
17853 # Compiler flag to prevent dynamic linking.
17854 link_static_flag=$lt_lt_prog_compiler_static
17855
17856@@ -16438,9 +17150,6 @@ inherit_rpath=$inherit_rpath
17857 # Whether libtool must link a program against all its dependency libraries.
17858 link_all_deplibs=$link_all_deplibs
17859
17860-# Fix the shell variable \$srcfile for the compiler.
17861-fix_srcfile_path=$lt_fix_srcfile_path
17862-
17863 # Set to "yes" if exported symbols are required.
17864 always_export_symbols=$always_export_symbols
17865
17866@@ -16456,6 +17165,9 @@ include_expsyms=$lt_include_expsyms
17867 # Commands necessary for linking programs (against libraries) with templates.
17868 prelink_cmds=$lt_prelink_cmds
17869
17870+# Commands necessary for finishing linking programs.
17871+postlink_cmds=$lt_postlink_cmds
17872+
17873 # Specify filename containing input files.
17874 file_list_spec=$lt_file_list_spec
17875
17876@@ -16488,210 +17200,169 @@ ltmain="$ac_aux_dir/ltmain.sh"
17877 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17878 # text mode, it properly converts lines to CR/LF. This bash problem
17879 # is reportedly fixed, but why not run on old versions too?
17880- sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17881- || (rm -f "$cfgfile"; exit 1)
17882-
17883- case $xsi_shell in
17884- yes)
17885- cat << \_LT_EOF >> "$cfgfile"
17886-
17887-# func_dirname file append nondir_replacement
17888-# Compute the dirname of FILE. If nonempty, add APPEND to the result,
17889-# otherwise set result to NONDIR_REPLACEMENT.
17890-func_dirname ()
17891-{
17892- case ${1} in
17893- */*) func_dirname_result="${1%/*}${2}" ;;
17894- * ) func_dirname_result="${3}" ;;
17895- esac
17896-}
17897-
17898-# func_basename file
17899-func_basename ()
17900-{
17901- func_basename_result="${1##*/}"
17902-}
17903-
17904-# func_dirname_and_basename file append nondir_replacement
17905-# perform func_basename and func_dirname in a single function
17906-# call:
17907-# dirname: Compute the dirname of FILE. If nonempty,
17908-# add APPEND to the result, otherwise set result
17909-# to NONDIR_REPLACEMENT.
17910-# value returned in "$func_dirname_result"
17911-# basename: Compute filename of FILE.
17912-# value retuned in "$func_basename_result"
17913-# Implementation must be kept synchronized with func_dirname
17914-# and func_basename. For efficiency, we do not delegate to
17915-# those functions but instead duplicate the functionality here.
17916-func_dirname_and_basename ()
17917-{
17918- case ${1} in
17919- */*) func_dirname_result="${1%/*}${2}" ;;
17920- * ) func_dirname_result="${3}" ;;
17921- esac
17922- func_basename_result="${1##*/}"
17923-}
17924-
17925-# func_stripname prefix suffix name
17926-# strip PREFIX and SUFFIX off of NAME.
17927-# PREFIX and SUFFIX must not contain globbing or regex special
17928-# characters, hashes, percent signs, but SUFFIX may contain a leading
17929-# dot (in which case that matches only a dot).
17930-func_stripname ()
17931-{
17932- # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17933- # positional parameters, so assign one to ordinary parameter first.
17934- func_stripname_result=${3}
17935- func_stripname_result=${func_stripname_result#"${1}"}
17936- func_stripname_result=${func_stripname_result%"${2}"}
17937-}
17938-
17939-# func_opt_split
17940-func_opt_split ()
17941-{
17942- func_opt_split_opt=${1%%=*}
17943- func_opt_split_arg=${1#*=}
17944-}
17945-
17946-# func_lo2o object
17947-func_lo2o ()
17948-{
17949- case ${1} in
17950- *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17951- *) func_lo2o_result=${1} ;;
17952- esac
17953-}
17954-
17955-# func_xform libobj-or-source
17956-func_xform ()
17957-{
17958- func_xform_result=${1%.*}.lo
17959-}
17960-
17961-# func_arith arithmetic-term...
17962-func_arith ()
17963-{
17964- func_arith_result=$(( $* ))
17965-}
17966-
17967-# func_len string
17968-# STRING may not start with a hyphen.
17969-func_len ()
17970-{
17971- func_len_result=${#1}
17972-}
17973-
17974-_LT_EOF
17975- ;;
17976- *) # Bourne compatible functions.
17977- cat << \_LT_EOF >> "$cfgfile"
17978-
17979-# func_dirname file append nondir_replacement
17980-# Compute the dirname of FILE. If nonempty, add APPEND to the result,
17981-# otherwise set result to NONDIR_REPLACEMENT.
17982-func_dirname ()
17983-{
17984- # Extract subdirectory from the argument.
17985- func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17986- if test "X$func_dirname_result" = "X${1}"; then
17987- func_dirname_result="${3}"
17988- else
17989- func_dirname_result="$func_dirname_result${2}"
17990- fi
17991-}
17992-
17993-# func_basename file
17994-func_basename ()
17995-{
17996- func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17997-}
17998-
17999-
18000-# func_stripname prefix suffix name
18001-# strip PREFIX and SUFFIX off of NAME.
18002-# PREFIX and SUFFIX must not contain globbing or regex special
18003-# characters, hashes, percent signs, but SUFFIX may contain a leading
18004-# dot (in which case that matches only a dot).
18005-# func_strip_suffix prefix name
18006-func_stripname ()
18007-{
18008- case ${2} in
18009- .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
18010- *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
18011- esac
18012-}
18013-
18014-# sed scripts:
18015-my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18016-my_sed_long_arg='1s/^-[^=]*=//'
18017-
18018-# func_opt_split
18019-func_opt_split ()
18020-{
18021- func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
18022- func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
18023-}
18024-
18025-# func_lo2o object
18026-func_lo2o ()
18027-{
18028- func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
18029-}
18030-
18031-# func_xform libobj-or-source
18032-func_xform ()
18033-{
18034- func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
18035-}
18036-
18037-# func_arith arithmetic-term...
18038-func_arith ()
18039-{
18040- func_arith_result=`expr "$@"`
18041-}
18042-
18043-# func_len string
18044-# STRING may not start with a hyphen.
18045-func_len ()
18046-{
18047- func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18048-}
18049-
18050-_LT_EOF
18051-esac
18052-
18053-case $lt_shell_append in
18054- yes)
18055- cat << \_LT_EOF >> "$cfgfile"
18056-
18057-# func_append var value
18058-# Append VALUE to the end of shell variable VAR.
18059-func_append ()
18060-{
18061- eval "$1+=\$2"
18062-}
18063-_LT_EOF
18064- ;;
18065- *)
18066- cat << \_LT_EOF >> "$cfgfile"
18067-
18068-# func_append var value
18069-# Append VALUE to the end of shell variable VAR.
18070-func_append ()
18071-{
18072- eval "$1=\$$1\$2"
18073-}
18074-
18075-_LT_EOF
18076- ;;
18077- esac
18078-
18079-
18080- sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18081- || (rm -f "$cfgfile"; exit 1)
18082-
18083- mv -f "$cfgfile" "$ofile" ||
18084+ sed '$q' "$ltmain" >> "$cfgfile" \
18085+ || (rm -f "$cfgfile"; exit 1)
18086+
18087+ if test x"$xsi_shell" = xyes; then
18088+ sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
18089+func_dirname ()\
18090+{\
18091+\ case ${1} in\
18092+\ */*) func_dirname_result="${1%/*}${2}" ;;\
18093+\ * ) func_dirname_result="${3}" ;;\
18094+\ esac\
18095+} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
18096+ && mv -f "$cfgfile.tmp" "$cfgfile" \
18097+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18098+test 0 -eq $? || _lt_function_replace_fail=:
18099+
18100+
18101+ sed -e '/^func_basename ()$/,/^} # func_basename /c\
18102+func_basename ()\
18103+{\
18104+\ func_basename_result="${1##*/}"\
18105+} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
18106+ && mv -f "$cfgfile.tmp" "$cfgfile" \
18107+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18108+test 0 -eq $? || _lt_function_replace_fail=:
18109+
18110+
18111+ sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
18112+func_dirname_and_basename ()\
18113+{\
18114+\ case ${1} in\
18115+\ */*) func_dirname_result="${1%/*}${2}" ;;\
18116+\ * ) func_dirname_result="${3}" ;;\
18117+\ esac\
18118+\ func_basename_result="${1##*/}"\
18119+} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
18120+ && mv -f "$cfgfile.tmp" "$cfgfile" \
18121+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18122+test 0 -eq $? || _lt_function_replace_fail=:
18123+
18124+
18125+ sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
18126+func_stripname ()\
18127+{\
18128+\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
18129+\ # positional parameters, so assign one to ordinary parameter first.\
18130+\ func_stripname_result=${3}\
18131+\ func_stripname_result=${func_stripname_result#"${1}"}\
18132+\ func_stripname_result=${func_stripname_result%"${2}"}\
18133+} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
18134+ && mv -f "$cfgfile.tmp" "$cfgfile" \
18135+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18136+test 0 -eq $? || _lt_function_replace_fail=:
18137+
18138+
18139+ sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
18140+func_split_long_opt ()\
18141+{\
18142+\ func_split_long_opt_name=${1%%=*}\
18143+\ func_split_long_opt_arg=${1#*=}\
18144+} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
18145+ && mv -f "$cfgfile.tmp" "$cfgfile" \
18146+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18147+test 0 -eq $? || _lt_function_replace_fail=:
18148+
18149+
18150+ sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
18151+func_split_short_opt ()\
18152+{\
18153+\ func_split_short_opt_arg=${1#??}\
18154+\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
18155+} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
18156+ && mv -f "$cfgfile.tmp" "$cfgfile" \
18157+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18158+test 0 -eq $? || _lt_function_replace_fail=:
18159+
18160+
18161+ sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
18162+func_lo2o ()\
18163+{\
18164+\ case ${1} in\
18165+\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
18166+\ *) func_lo2o_result=${1} ;;\
18167+\ esac\
18168+} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
18169+ && mv -f "$cfgfile.tmp" "$cfgfile" \
18170+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18171+test 0 -eq $? || _lt_function_replace_fail=:
18172+
18173+
18174+ sed -e '/^func_xform ()$/,/^} # func_xform /c\
18175+func_xform ()\
18176+{\
18177+ func_xform_result=${1%.*}.lo\
18178+} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
18179+ && mv -f "$cfgfile.tmp" "$cfgfile" \
18180+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18181+test 0 -eq $? || _lt_function_replace_fail=:
18182+
18183+
18184+ sed -e '/^func_arith ()$/,/^} # func_arith /c\
18185+func_arith ()\
18186+{\
18187+ func_arith_result=$(( $* ))\
18188+} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
18189+ && mv -f "$cfgfile.tmp" "$cfgfile" \
18190+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18191+test 0 -eq $? || _lt_function_replace_fail=:
18192+
18193+
18194+ sed -e '/^func_len ()$/,/^} # func_len /c\
18195+func_len ()\
18196+{\
18197+ func_len_result=${#1}\
18198+} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
18199+ && mv -f "$cfgfile.tmp" "$cfgfile" \
18200+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18201+test 0 -eq $? || _lt_function_replace_fail=:
18202+
18203+fi
18204+
18205+if test x"$lt_shell_append" = xyes; then
18206+ sed -e '/^func_append ()$/,/^} # func_append /c\
18207+func_append ()\
18208+{\
18209+ eval "${1}+=\\${2}"\
18210+} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
18211+ && mv -f "$cfgfile.tmp" "$cfgfile" \
18212+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18213+test 0 -eq $? || _lt_function_replace_fail=:
18214+
18215+
18216+ sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
18217+func_append_quoted ()\
18218+{\
18219+\ func_quote_for_eval "${2}"\
18220+\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
18221+} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
18222+ && mv -f "$cfgfile.tmp" "$cfgfile" \
18223+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18224+test 0 -eq $? || _lt_function_replace_fail=:
18225+
18226+
18227+ # Save a `func_append' function call where possible by direct use of '+='
18228+ sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
18229+ && mv -f "$cfgfile.tmp" "$cfgfile" \
18230+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18231+ test 0 -eq $? || _lt_function_replace_fail=:
18232+else
18233+ # Save a `func_append' function call even when '+=' is not available
18234+ sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
18235+ && mv -f "$cfgfile.tmp" "$cfgfile" \
18236+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18237+ test 0 -eq $? || _lt_function_replace_fail=:
18238+fi
18239+
18240+if test x"$_lt_function_replace_fail" = x":"; then
18241+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
18242+$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
18243+fi
18244+
18245+
18246+ mv -f "$cfgfile" "$ofile" ||
18247 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18248 chmod +x "$ofile"
18249
18250diff --git a/libctf/Makefile.in b/libctf/Makefile.in
18251index 54f5daa79ee..ce780a7ccde 100644
18252--- a/libctf/Makefile.in
18253+++ b/libctf/Makefile.in
18254@@ -442,6 +442,7 @@ CYGPATH_W = @CYGPATH_W@
18255 DATADIRNAME = @DATADIRNAME@
18256 DEFS = @DEFS@
18257 DEPDIR = @DEPDIR@
18258+DLLTOOL = @DLLTOOL@
18259 DSYMUTIL = @DSYMUTIL@
18260 DUMPBIN = @DUMPBIN@
18261 ECHO_C = @ECHO_C@
18262@@ -481,6 +482,7 @@ LTLIBINTL = @LTLIBINTL@
18263 LTLIBOBJS = @LTLIBOBJS@
18264 MAINT = @MAINT@
18265 MAKEINFO = @MAKEINFO@
18266+MANIFEST_TOOL = @MANIFEST_TOOL@
18267 MKDIR_P = @MKDIR_P@
18268 MKINSTALLDIRS = @MKINSTALLDIRS@
18269 MSGFMT = @MSGFMT@
18270diff --git a/libctf/configure b/libctf/configure
18271index 7466d56a18b..0325e438a47 100755
18272--- a/libctf/configure
18273+++ b/libctf/configure
18274@@ -669,6 +669,8 @@ OTOOL
18275 LIPO
18276 NMEDIT
18277 DSYMUTIL
18278+MANIFEST_TOOL
18279+DLLTOOL
18280 OBJDUMP
18281 LN_S
18282 NM
18283@@ -814,6 +816,7 @@ enable_shared
18284 enable_static
18285 with_pic
18286 enable_fast_install
18287+with_libtool_sysroot
18288 enable_libtool_lock
18289 enable_largefile
18290 enable_werror_always
18291@@ -1486,6 +1489,8 @@ Optional Packages:
18292 --with-pic try to use only PIC/non-PIC objects [default=use
18293 both]
18294 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
18295+ --with-libtool-sysroot=DIR Search for dependent libraries within DIR
18296+ (or the compiler's sysroot if not specified).
18297 --with-system-zlib use installed libz
18298
18299 Some influential environment variables:
18300@@ -7501,8 +7506,8 @@ esac
18301
18302
18303
18304-macro_version='2.2.7a'
18305-macro_revision='1.3134'
18306+macro_version='2.4'
18307+macro_revision='1.3293'
18308
18309
18310
18311@@ -7542,7 +7547,7 @@ ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
18312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
18313 $as_echo_n "checking how to print strings... " >&6; }
18314 # Test print first, because it will be a builtin if present.
18315-if test "X`print -r -- -n 2>/dev/null`" = X-n && \
18316+if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
18317 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
18318 ECHO='print -r --'
18319 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
18320@@ -8235,8 +8240,8 @@ $as_echo_n "checking whether the shell understands some XSI constructs... " >&6;
18321 # Try some XSI features
18322 xsi_shell=no
18323 ( _lt_dummy="a/b/c"
18324- test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
18325- = c,a/b,, \
18326+ test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
18327+ = c,a/b,b/c, \
18328 && eval 'test $(( 1 + 1 )) -eq 2 \
18329 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
18330 && xsi_shell=yes
18331@@ -8285,6 +8290,80 @@ esac
18332
18333
18334
18335+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
18336+$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
18337+if ${lt_cv_to_host_file_cmd+:} false; then :
18338+ $as_echo_n "(cached) " >&6
18339+else
18340+ case $host in
18341+ *-*-mingw* )
18342+ case $build in
18343+ *-*-mingw* ) # actually msys
18344+ lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
18345+ ;;
18346+ *-*-cygwin* )
18347+ lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
18348+ ;;
18349+ * ) # otherwise, assume *nix
18350+ lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
18351+ ;;
18352+ esac
18353+ ;;
18354+ *-*-cygwin* )
18355+ case $build in
18356+ *-*-mingw* ) # actually msys
18357+ lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
18358+ ;;
18359+ *-*-cygwin* )
18360+ lt_cv_to_host_file_cmd=func_convert_file_noop
18361+ ;;
18362+ * ) # otherwise, assume *nix
18363+ lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
18364+ ;;
18365+ esac
18366+ ;;
18367+ * ) # unhandled hosts (and "normal" native builds)
18368+ lt_cv_to_host_file_cmd=func_convert_file_noop
18369+ ;;
18370+esac
18371+
18372+fi
18373+
18374+to_host_file_cmd=$lt_cv_to_host_file_cmd
18375+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
18376+$as_echo "$lt_cv_to_host_file_cmd" >&6; }
18377+
18378+
18379+
18380+
18381+
18382+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
18383+$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
18384+if ${lt_cv_to_tool_file_cmd+:} false; then :
18385+ $as_echo_n "(cached) " >&6
18386+else
18387+ #assume ordinary cross tools, or native build.
18388+lt_cv_to_tool_file_cmd=func_convert_file_noop
18389+case $host in
18390+ *-*-mingw* )
18391+ case $build in
18392+ *-*-mingw* ) # actually msys
18393+ lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
18394+ ;;
18395+ esac
18396+ ;;
18397+esac
18398+
18399+fi
18400+
18401+to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18402+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
18403+$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
18404+
18405+
18406+
18407+
18408+
18409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
18410 $as_echo_n "checking for $LD option to reload object files... " >&6; }
18411 if ${lt_cv_ld_reload_flag+:} false; then :
18412@@ -8301,6 +8380,11 @@ case $reload_flag in
18413 esac
18414 reload_cmds='$LD$reload_flag -o $output$reload_objs'
18415 case $host_os in
18416+ cygwin* | mingw* | pw32* | cegcc*)
18417+ if test "$GCC" != yes; then
18418+ reload_cmds=false
18419+ fi
18420+ ;;
18421 darwin*)
18422 if test "$GCC" = yes; then
18423 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
18424@@ -8469,7 +8553,8 @@ mingw* | pw32*)
18425 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
18426 lt_cv_file_magic_cmd='func_win32_libid'
18427 else
18428- lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
18429+ # Keep this pattern in sync with the one in func_win32_libid.
18430+ lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
18431 lt_cv_file_magic_cmd='$OBJDUMP -f'
18432 fi
18433 ;;
18434@@ -8628,6 +8713,21 @@ esac
18435 fi
18436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
18437 $as_echo "$lt_cv_deplibs_check_method" >&6; }
18438+
18439+file_magic_glob=
18440+want_nocaseglob=no
18441+if test "$build" = "$host"; then
18442+ case $host_os in
18443+ mingw* | pw32*)
18444+ if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
18445+ want_nocaseglob=yes
18446+ else
18447+ file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
18448+ fi
18449+ ;;
18450+ esac
18451+fi
18452+
18453 file_magic_cmd=$lt_cv_file_magic_cmd
18454 deplibs_check_method=$lt_cv_deplibs_check_method
18455 test -z "$deplibs_check_method" && deplibs_check_method=unknown
18456@@ -8643,6 +8743,157 @@ test -z "$deplibs_check_method" && deplibs_check_method=unknown
18457
18458
18459
18460+
18461+
18462+
18463+
18464+
18465+
18466+
18467+
18468+
18469+
18470+if test -n "$ac_tool_prefix"; then
18471+ # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
18472+set dummy ${ac_tool_prefix}dlltool; ac_word=$2
18473+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18474+$as_echo_n "checking for $ac_word... " >&6; }
18475+if ${ac_cv_prog_DLLTOOL+:} false; then :
18476+ $as_echo_n "(cached) " >&6
18477+else
18478+ if test -n "$DLLTOOL"; then
18479+ ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
18480+else
18481+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18482+for as_dir in $PATH
18483+do
18484+ IFS=$as_save_IFS
18485+ test -z "$as_dir" && as_dir=.
18486+ for ac_exec_ext in '' $ac_executable_extensions; do
18487+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18488+ ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
18489+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18490+ break 2
18491+ fi
18492+done
18493+ done
18494+IFS=$as_save_IFS
18495+
18496+fi
18497+fi
18498+DLLTOOL=$ac_cv_prog_DLLTOOL
18499+if test -n "$DLLTOOL"; then
18500+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
18501+$as_echo "$DLLTOOL" >&6; }
18502+else
18503+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18504+$as_echo "no" >&6; }
18505+fi
18506+
18507+
18508+fi
18509+if test -z "$ac_cv_prog_DLLTOOL"; then
18510+ ac_ct_DLLTOOL=$DLLTOOL
18511+ # Extract the first word of "dlltool", so it can be a program name with args.
18512+set dummy dlltool; ac_word=$2
18513+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18514+$as_echo_n "checking for $ac_word... " >&6; }
18515+if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
18516+ $as_echo_n "(cached) " >&6
18517+else
18518+ if test -n "$ac_ct_DLLTOOL"; then
18519+ ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
18520+else
18521+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18522+for as_dir in $PATH
18523+do
18524+ IFS=$as_save_IFS
18525+ test -z "$as_dir" && as_dir=.
18526+ for ac_exec_ext in '' $ac_executable_extensions; do
18527+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18528+ ac_cv_prog_ac_ct_DLLTOOL="dlltool"
18529+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18530+ break 2
18531+ fi
18532+done
18533+ done
18534+IFS=$as_save_IFS
18535+
18536+fi
18537+fi
18538+ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
18539+if test -n "$ac_ct_DLLTOOL"; then
18540+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
18541+$as_echo "$ac_ct_DLLTOOL" >&6; }
18542+else
18543+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18544+$as_echo "no" >&6; }
18545+fi
18546+
18547+ if test "x$ac_ct_DLLTOOL" = x; then
18548+ DLLTOOL="false"
18549+ else
18550+ case $cross_compiling:$ac_tool_warned in
18551+yes:)
18552+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18553+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18554+ac_tool_warned=yes ;;
18555+esac
18556+ DLLTOOL=$ac_ct_DLLTOOL
18557+ fi
18558+else
18559+ DLLTOOL="$ac_cv_prog_DLLTOOL"
18560+fi
18561+
18562+test -z "$DLLTOOL" && DLLTOOL=dlltool
18563+
18564+
18565+
18566+
18567+
18568+
18569+
18570+
18571+
18572+
18573+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
18574+$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
18575+if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
18576+ $as_echo_n "(cached) " >&6
18577+else
18578+ lt_cv_sharedlib_from_linklib_cmd='unknown'
18579+
18580+case $host_os in
18581+cygwin* | mingw* | pw32* | cegcc*)
18582+ # two different shell functions defined in ltmain.sh
18583+ # decide which to use based on capabilities of $DLLTOOL
18584+ case `$DLLTOOL --help 2>&1` in
18585+ *--identify-strict*)
18586+ lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
18587+ ;;
18588+ *)
18589+ lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
18590+ ;;
18591+ esac
18592+ ;;
18593+*)
18594+ # fallback: assume linklib IS sharedlib
18595+ lt_cv_sharedlib_from_linklib_cmd="$ECHO"
18596+ ;;
18597+esac
18598+
18599+fi
18600+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
18601+$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
18602+sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
18603+test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
18604+
18605+
18606+
18607+
18608+
18609+
18610+
18611 plugin_option=
18612 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
18613 for plugin in $plugin_names; do
18614@@ -8657,8 +8908,10 @@ for plugin in $plugin_names; do
18615 done
18616
18617 if test -n "$ac_tool_prefix"; then
18618- # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
18619-set dummy ${ac_tool_prefix}ar; ac_word=$2
18620+ for ac_prog in ar
18621+ do
18622+ # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
18623+set dummy $ac_tool_prefix$ac_prog; ac_word=$2
18624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18625 $as_echo_n "checking for $ac_word... " >&6; }
18626 if ${ac_cv_prog_AR+:} false; then :
18627@@ -8674,7 +8927,7 @@ do
18628 test -z "$as_dir" && as_dir=.
18629 for ac_exec_ext in '' $ac_executable_extensions; do
18630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18631- ac_cv_prog_AR="${ac_tool_prefix}ar"
18632+ ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
18633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18634 break 2
18635 fi
18636@@ -8694,11 +8947,15 @@ $as_echo "no" >&6; }
18637 fi
18638
18639
18640+ test -n "$AR" && break
18641+ done
18642 fi
18643-if test -z "$ac_cv_prog_AR"; then
18644+if test -z "$AR"; then
18645 ac_ct_AR=$AR
18646- # Extract the first word of "ar", so it can be a program name with args.
18647-set dummy ar; ac_word=$2
18648+ for ac_prog in ar
18649+do
18650+ # Extract the first word of "$ac_prog", so it can be a program name with args.
18651+set dummy $ac_prog; ac_word=$2
18652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18653 $as_echo_n "checking for $ac_word... " >&6; }
18654 if ${ac_cv_prog_ac_ct_AR+:} false; then :
18655@@ -8714,7 +8971,7 @@ do
18656 test -z "$as_dir" && as_dir=.
18657 for ac_exec_ext in '' $ac_executable_extensions; do
18658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18659- ac_cv_prog_ac_ct_AR="ar"
18660+ ac_cv_prog_ac_ct_AR="$ac_prog"
18661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18662 break 2
18663 fi
18664@@ -8733,6 +8990,10 @@ else
18665 $as_echo "no" >&6; }
18666 fi
18667
18668+
18669+ test -n "$ac_ct_AR" && break
18670+done
18671+
18672 if test "x$ac_ct_AR" = x; then
18673 AR="false"
18674 else
18675@@ -8744,25 +9005,19 @@ ac_tool_warned=yes ;;
18676 esac
18677 AR=$ac_ct_AR
18678 fi
18679-else
18680- AR="$ac_cv_prog_AR"
18681 fi
18682
18683-test -z "$AR" && AR=ar
18684-if test -n "$plugin_option"; then
18685- if $AR --help 2>&1 | grep -q "\--plugin"; then
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+ touch conftest.c
18691+ $AR $plugin_option rc conftest.a conftest.c
18692+ if test "$?" != 0; then
18693+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
18694 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
18695- else
18696- AR="$AR $plugin_option"
18697- fi
18698- rm -f conftest.*
18699+ else
18700+ AR="$AR $plugin_option"
18701 fi
18702-fi
18703-test -z "$AR_FLAGS" && AR_FLAGS=cru
18704+ rm -f conftest.*
18705+: ${AR=ar}
18706+: ${AR_FLAGS=cru}
18707
18708
18709
18710@@ -8774,6 +9029,64 @@ test -z "$AR_FLAGS" && AR_FLAGS=cru
18711
18712
18713
18714+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
18715+$as_echo_n "checking for archiver @FILE support... " >&6; }
18716+if ${lt_cv_ar_at_file+:} false; then :
18717+ $as_echo_n "(cached) " >&6
18718+else
18719+ lt_cv_ar_at_file=no
18720+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18721+/* end confdefs.h. */
18722+
18723+int
18724+main ()
18725+{
18726+
18727+ ;
18728+ return 0;
18729+}
18730+_ACEOF
18731+if ac_fn_c_try_compile "$LINENO"; then :
18732+ echo conftest.$ac_objext > conftest.lst
18733+ lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
18734+ { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
18735+ (eval $lt_ar_try) 2>&5
18736+ ac_status=$?
18737+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18738+ test $ac_status = 0; }
18739+ if test "$ac_status" -eq 0; then
18740+ # Ensure the archiver fails upon bogus file names.
18741+ rm -f conftest.$ac_objext libconftest.a
18742+ { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
18743+ (eval $lt_ar_try) 2>&5
18744+ ac_status=$?
18745+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18746+ test $ac_status = 0; }
18747+ if test "$ac_status" -ne 0; then
18748+ lt_cv_ar_at_file=@
18749+ fi
18750+ fi
18751+ rm -f conftest.* libconftest.a
18752+
18753+fi
18754+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18755+
18756+fi
18757+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
18758+$as_echo "$lt_cv_ar_at_file" >&6; }
18759+
18760+if test "x$lt_cv_ar_at_file" = xno; then
18761+ archiver_list_spec=
18762+else
18763+ archiver_list_spec=$lt_cv_ar_at_file
18764+fi
18765+
18766+
18767+
18768+
18769+
18770+
18771+
18772 if test -n "$ac_tool_prefix"; then
18773 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
18774 set dummy ${ac_tool_prefix}strip; ac_word=$2
18775@@ -9113,8 +9426,8 @@ esac
18776 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
18777
18778 # Transform an extracted symbol line into symbol name and symbol address
18779-lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
18780-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'"
18781+lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
18782+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'"
18783
18784 # Handle CRLF in mingw tool chain
18785 opt_cr=
18786@@ -9150,6 +9463,7 @@ for ac_symprfx in "" "_"; do
18787 else
18788 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
18789 fi
18790+ lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
18791
18792 # Check to see that the pipe works correctly.
18793 pipe_works=no
18794@@ -9191,6 +9505,18 @@ _LT_EOF
18795 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
18796 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
18797 cat <<_LT_EOF > conftest.$ac_ext
18798+/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
18799+#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
18800+/* DATA imports from DLLs on WIN32 con't be const, because runtime
18801+ relocations are performed -- see ld's documentation on pseudo-relocs. */
18802+# define LT_DLSYM_CONST
18803+#elif defined(__osf__)
18804+/* This system does not cope well with relocations in const data. */
18805+# define LT_DLSYM_CONST
18806+#else
18807+# define LT_DLSYM_CONST const
18808+#endif
18809+
18810 #ifdef __cplusplus
18811 extern "C" {
18812 #endif
18813@@ -9202,7 +9528,7 @@ _LT_EOF
18814 cat <<_LT_EOF >> conftest.$ac_ext
18815
18816 /* The mapping between symbol names and symbols. */
18817-const struct {
18818+LT_DLSYM_CONST struct {
18819 const char *name;
18820 void *address;
18821 }
18822@@ -9228,8 +9554,8 @@ static const void *lt_preloaded_setup() {
18823 _LT_EOF
18824 # Now try linking the two files.
18825 mv conftest.$ac_objext conftstm.$ac_objext
18826- lt_save_LIBS="$LIBS"
18827- lt_save_CFLAGS="$CFLAGS"
18828+ lt_globsym_save_LIBS=$LIBS
18829+ lt_globsym_save_CFLAGS=$CFLAGS
18830 LIBS="conftstm.$ac_objext"
18831 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
18832 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18833@@ -9239,8 +9565,8 @@ _LT_EOF
18834 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
18835 pipe_works=yes
18836 fi
18837- LIBS="$lt_save_LIBS"
18838- CFLAGS="$lt_save_CFLAGS"
18839+ LIBS=$lt_globsym_save_LIBS
18840+ CFLAGS=$lt_globsym_save_CFLAGS
18841 else
18842 echo "cannot find nm_test_func in $nlist" >&5
18843 fi
18844@@ -9277,6 +9603,17 @@ else
18845 $as_echo "ok" >&6; }
18846 fi
18847
18848+# Response file support.
18849+if test "$lt_cv_nm_interface" = "MS dumpbin"; then
18850+ nm_file_list_spec='@'
18851+elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
18852+ nm_file_list_spec='@'
18853+fi
18854+
18855+
18856+
18857+
18858+
18859
18860
18861
18862@@ -9293,6 +9630,44 @@ fi
18863
18864
18865
18866+
18867+
18868+
18869+
18870+
18871+
18872+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
18873+$as_echo_n "checking for sysroot... " >&6; }
18874+
18875+# Check whether --with-libtool-sysroot was given.
18876+if test "${with_libtool_sysroot+set}" = set; then :
18877+ withval=$with_libtool_sysroot;
18878+else
18879+ with_libtool_sysroot=no
18880+fi
18881+
18882+
18883+lt_sysroot=
18884+case ${with_libtool_sysroot} in #(
18885+ yes)
18886+ if test "$GCC" = yes; then
18887+ lt_sysroot=`$CC --print-sysroot 2>/dev/null`
18888+ fi
18889+ ;; #(
18890+ /*)
18891+ lt_sysroot=`echo "$with_libtool_sysroot" | sed -e "$sed_quote_subst"`
18892+ ;; #(
18893+ no|'')
18894+ ;; #(
18895+ *)
18896+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_libtool_sysroot}" >&5
18897+$as_echo "${with_libtool_sysroot}" >&6; }
18898+ as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
18899+ ;;
18900+esac
18901+
18902+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
18903+$as_echo "${lt_sysroot:-no}" >&6; }
18904
18905
18906
18907@@ -9504,6 +9879,123 @@ esac
18908
18909 need_locks="$enable_libtool_lock"
18910
18911+if test -n "$ac_tool_prefix"; then
18912+ # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
18913+set dummy ${ac_tool_prefix}mt; ac_word=$2
18914+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18915+$as_echo_n "checking for $ac_word... " >&6; }
18916+if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
18917+ $as_echo_n "(cached) " >&6
18918+else
18919+ if test -n "$MANIFEST_TOOL"; then
18920+ ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
18921+else
18922+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18923+for as_dir in $PATH
18924+do
18925+ IFS=$as_save_IFS
18926+ test -z "$as_dir" && as_dir=.
18927+ for ac_exec_ext in '' $ac_executable_extensions; do
18928+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18929+ ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
18930+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18931+ break 2
18932+ fi
18933+done
18934+ done
18935+IFS=$as_save_IFS
18936+
18937+fi
18938+fi
18939+MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
18940+if test -n "$MANIFEST_TOOL"; then
18941+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
18942+$as_echo "$MANIFEST_TOOL" >&6; }
18943+else
18944+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18945+$as_echo "no" >&6; }
18946+fi
18947+
18948+
18949+fi
18950+if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
18951+ ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
18952+ # Extract the first word of "mt", so it can be a program name with args.
18953+set dummy mt; ac_word=$2
18954+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18955+$as_echo_n "checking for $ac_word... " >&6; }
18956+if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
18957+ $as_echo_n "(cached) " >&6
18958+else
18959+ if test -n "$ac_ct_MANIFEST_TOOL"; then
18960+ ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
18961+else
18962+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18963+for as_dir in $PATH
18964+do
18965+ IFS=$as_save_IFS
18966+ test -z "$as_dir" && as_dir=.
18967+ for ac_exec_ext in '' $ac_executable_extensions; do
18968+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18969+ ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
18970+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18971+ break 2
18972+ fi
18973+done
18974+ done
18975+IFS=$as_save_IFS
18976+
18977+fi
18978+fi
18979+ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
18980+if test -n "$ac_ct_MANIFEST_TOOL"; then
18981+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
18982+$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
18983+else
18984+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18985+$as_echo "no" >&6; }
18986+fi
18987+
18988+ if test "x$ac_ct_MANIFEST_TOOL" = x; then
18989+ MANIFEST_TOOL=":"
18990+ else
18991+ case $cross_compiling:$ac_tool_warned in
18992+yes:)
18993+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18994+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18995+ac_tool_warned=yes ;;
18996+esac
18997+ MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
18998+ fi
18999+else
19000+ MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
19001+fi
19002+
19003+test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
19004+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
19005+$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
19006+if ${lt_cv_path_mainfest_tool+:} false; then :
19007+ $as_echo_n "(cached) " >&6
19008+else
19009+ lt_cv_path_mainfest_tool=no
19010+ echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
19011+ $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
19012+ cat conftest.err >&5
19013+ if $GREP 'Manifest Tool' conftest.out > /dev/null; then
19014+ lt_cv_path_mainfest_tool=yes
19015+ fi
19016+ rm -f conftest*
19017+fi
19018+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
19019+$as_echo "$lt_cv_path_mainfest_tool" >&6; }
19020+if test "x$lt_cv_path_mainfest_tool" != xyes; then
19021+ MANIFEST_TOOL=:
19022+fi
19023+
19024+
19025+
19026+
19027+
19028
19029 case $host_os in
19030 rhapsody* | darwin*)
19031@@ -10067,6 +10559,8 @@ _LT_EOF
19032 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
19033 echo "$AR cru libconftest.a conftest.o" >&5
19034 $AR cru libconftest.a conftest.o 2>&5
19035+ echo "$RANLIB libconftest.a" >&5
19036+ $RANLIB libconftest.a 2>&5
19037 cat > conftest.c << _LT_EOF
19038 int main() { return 0;}
19039 _LT_EOF
19040@@ -10621,8 +11115,6 @@ fi
19041 lt_prog_compiler_pic=
19042 lt_prog_compiler_static=
19043
19044-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19045-$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19046
19047 if test "$GCC" = yes; then
19048 lt_prog_compiler_wl='-Wl,'
19049@@ -10788,6 +11280,12 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19050 lt_prog_compiler_pic='--shared'
19051 lt_prog_compiler_static='--static'
19052 ;;
19053+ nagfor*)
19054+ # NAG Fortran compiler
19055+ lt_prog_compiler_wl='-Wl,-Wl,,'
19056+ lt_prog_compiler_pic='-PIC'
19057+ lt_prog_compiler_static='-Bstatic'
19058+ ;;
19059 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
19060 # Portland Group compilers (*not* the Pentium gcc compiler,
19061 # which looks to be a dead project)
19062@@ -10850,7 +11348,7 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19063 lt_prog_compiler_pic='-KPIC'
19064 lt_prog_compiler_static='-Bstatic'
19065 case $cc_basename in
19066- f77* | f90* | f95*)
19067+ f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
19068 lt_prog_compiler_wl='-Qoption ld ';;
19069 *)
19070 lt_prog_compiler_wl='-Wl,';;
19071@@ -10907,13 +11405,17 @@ case $host_os in
19072 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
19073 ;;
19074 esac
19075-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
19076-$as_echo "$lt_prog_compiler_pic" >&6; }
19077-
19078-
19079-
19080-
19081
19082+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19083+$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19084+if ${lt_cv_prog_compiler_pic+:} false; then :
19085+ $as_echo_n "(cached) " >&6
19086+else
19087+ lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
19088+fi
19089+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
19090+$as_echo "$lt_cv_prog_compiler_pic" >&6; }
19091+lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
19092
19093 #
19094 # Check to make sure the PIC flag actually works.
19095@@ -10974,6 +11476,11 @@ fi
19096
19097
19098
19099+
19100+
19101+
19102+
19103+
19104 #
19105 # Check to make sure the static flag actually works.
19106 #
19107@@ -11324,7 +11831,8 @@ _LT_EOF
19108 allow_undefined_flag=unsupported
19109 always_export_symbols=no
19110 enable_shared_with_static_runtimes=yes
19111- export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
19112+ 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'
19113+ exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
19114
19115 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19116 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19117@@ -11423,12 +11931,12 @@ _LT_EOF
19118 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
19119 hardcode_libdir_flag_spec=
19120 hardcode_libdir_flag_spec_ld='-rpath $libdir'
19121- archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
19122+ archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
19123 if test "x$supports_anon_versioning" = xyes; then
19124 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
19125 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19126 echo "local: *; };" >> $output_objdir/$libname.ver~
19127- $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
19128+ $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
19129 fi
19130 ;;
19131 esac
19132@@ -11442,8 +11950,8 @@ _LT_EOF
19133 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19134 wlarc=
19135 else
19136- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19137- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19138+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19139+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19140 fi
19141 ;;
19142
19143@@ -11461,8 +11969,8 @@ _LT_EOF
19144
19145 _LT_EOF
19146 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19147- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19148- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19149+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19150+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19151 else
19152 ld_shlibs=no
19153 fi
19154@@ -11508,8 +12016,8 @@ _LT_EOF
19155
19156 *)
19157 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19158- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19159- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19160+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19161+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19162 else
19163 ld_shlibs=no
19164 fi
19165@@ -11639,7 +12147,13 @@ _LT_EOF
19166 allow_undefined_flag='-berok'
19167 # Determine the default libpath from the value encoded in an
19168 # empty executable.
19169- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19170+ if test "${lt_cv_aix_libpath+set}" = set; then
19171+ aix_libpath=$lt_cv_aix_libpath
19172+else
19173+ if ${lt_cv_aix_libpath_+:} false; then :
19174+ $as_echo_n "(cached) " >&6
19175+else
19176+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19177 /* end confdefs.h. */
19178
19179 int
19180@@ -11652,22 +12166,29 @@ main ()
19181 _ACEOF
19182 if ac_fn_c_try_link "$LINENO"; then :
19183
19184-lt_aix_libpath_sed='
19185- /Import File Strings/,/^$/ {
19186- /^0/ {
19187- s/^0 *\(.*\)$/\1/
19188- p
19189- }
19190- }'
19191-aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19192-# Check for a 64-bit object if we didn't find anything.
19193-if test -z "$aix_libpath"; then
19194- aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19195-fi
19196+ lt_aix_libpath_sed='
19197+ /Import File Strings/,/^$/ {
19198+ /^0/ {
19199+ s/^0 *\([^ ]*\) *$/\1/
19200+ p
19201+ }
19202+ }'
19203+ lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19204+ # Check for a 64-bit object if we didn't find anything.
19205+ if test -z "$lt_cv_aix_libpath_"; then
19206+ lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19207+ fi
19208 fi
19209 rm -f core conftest.err conftest.$ac_objext \
19210 conftest$ac_exeext conftest.$ac_ext
19211-if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19212+ if test -z "$lt_cv_aix_libpath_"; then
19213+ lt_cv_aix_libpath_="/usr/lib:/lib"
19214+ fi
19215+
19216+fi
19217+
19218+ aix_libpath=$lt_cv_aix_libpath_
19219+fi
19220
19221 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
19222 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"
19223@@ -11679,7 +12200,13 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19224 else
19225 # Determine the default libpath from the value encoded in an
19226 # empty executable.
19227- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19228+ if test "${lt_cv_aix_libpath+set}" = set; then
19229+ aix_libpath=$lt_cv_aix_libpath
19230+else
19231+ if ${lt_cv_aix_libpath_+:} false; then :
19232+ $as_echo_n "(cached) " >&6
19233+else
19234+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19235 /* end confdefs.h. */
19236
19237 int
19238@@ -11692,22 +12219,29 @@ main ()
19239 _ACEOF
19240 if ac_fn_c_try_link "$LINENO"; then :
19241
19242-lt_aix_libpath_sed='
19243- /Import File Strings/,/^$/ {
19244- /^0/ {
19245- s/^0 *\(.*\)$/\1/
19246- p
19247- }
19248- }'
19249-aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19250-# Check for a 64-bit object if we didn't find anything.
19251-if test -z "$aix_libpath"; then
19252- aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19253-fi
19254+ lt_aix_libpath_sed='
19255+ /Import File Strings/,/^$/ {
19256+ /^0/ {
19257+ s/^0 *\([^ ]*\) *$/\1/
19258+ p
19259+ }
19260+ }'
19261+ lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19262+ # Check for a 64-bit object if we didn't find anything.
19263+ if test -z "$lt_cv_aix_libpath_"; then
19264+ lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19265+ fi
19266 fi
19267 rm -f core conftest.err conftest.$ac_objext \
19268 conftest$ac_exeext conftest.$ac_ext
19269-if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19270+ if test -z "$lt_cv_aix_libpath_"; then
19271+ lt_cv_aix_libpath_="/usr/lib:/lib"
19272+ fi
19273+
19274+fi
19275+
19276+ aix_libpath=$lt_cv_aix_libpath_
19277+fi
19278
19279 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
19280 # Warning - without using the other run time loading flags,
19281@@ -11752,20 +12286,63 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19282 # Microsoft Visual C++.
19283 # hardcode_libdir_flag_spec is actually meaningless, as there is
19284 # no search path for DLLs.
19285- hardcode_libdir_flag_spec=' '
19286- allow_undefined_flag=unsupported
19287- # Tell ltmain to make .lib files, not .a files.
19288- libext=lib
19289- # Tell ltmain to make .dll files, not .so files.
19290- shrext_cmds=".dll"
19291- # FIXME: Setting linknames here is a bad hack.
19292- archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
19293- # The linker will automatically build a .lib file if we build a DLL.
19294- old_archive_from_new_cmds='true'
19295- # FIXME: Should let the user specify the lib program.
19296- old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
19297- fix_srcfile_path='`cygpath -w "$srcfile"`'
19298- enable_shared_with_static_runtimes=yes
19299+ case $cc_basename in
19300+ cl*)
19301+ # Native MSVC
19302+ hardcode_libdir_flag_spec=' '
19303+ allow_undefined_flag=unsupported
19304+ always_export_symbols=yes
19305+ file_list_spec='@'
19306+ # Tell ltmain to make .lib files, not .a files.
19307+ libext=lib
19308+ # Tell ltmain to make .dll files, not .so files.
19309+ shrext_cmds=".dll"
19310+ # FIXME: Setting linknames here is a bad hack.
19311+ archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
19312+ archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19313+ sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
19314+ else
19315+ sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
19316+ fi~
19317+ $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
19318+ linknames='
19319+ # The linker will not automatically build a static lib if we build a DLL.
19320+ # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
19321+ enable_shared_with_static_runtimes=yes
19322+ export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
19323+ # Don't use ranlib
19324+ old_postinstall_cmds='chmod 644 $oldlib'
19325+ postlink_cmds='lt_outputfile="@OUTPUT@"~
19326+ lt_tool_outputfile="@TOOL_OUTPUT@"~
19327+ case $lt_outputfile in
19328+ *.exe|*.EXE) ;;
19329+ *)
19330+ lt_outputfile="$lt_outputfile.exe"
19331+ lt_tool_outputfile="$lt_tool_outputfile.exe"
19332+ ;;
19333+ esac~
19334+ if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
19335+ $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
19336+ $RM "$lt_outputfile.manifest";
19337+ fi'
19338+ ;;
19339+ *)
19340+ # Assume MSVC wrapper
19341+ hardcode_libdir_flag_spec=' '
19342+ allow_undefined_flag=unsupported
19343+ # Tell ltmain to make .lib files, not .a files.
19344+ libext=lib
19345+ # Tell ltmain to make .dll files, not .so files.
19346+ shrext_cmds=".dll"
19347+ # FIXME: Setting linknames here is a bad hack.
19348+ archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
19349+ # The linker will automatically build a .lib file if we build a DLL.
19350+ old_archive_from_new_cmds='true'
19351+ # FIXME: Should let the user specify the lib program.
19352+ old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
19353+ enable_shared_with_static_runtimes=yes
19354+ ;;
19355+ esac
19356 ;;
19357
19358 darwin* | rhapsody*)
19359@@ -11826,7 +12403,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19360
19361 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19362 freebsd* | dragonfly*)
19363- archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19364+ archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19365 hardcode_libdir_flag_spec='-R$libdir'
19366 hardcode_direct=yes
19367 hardcode_shlibpath_var=no
19368@@ -11834,7 +12411,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19369
19370 hpux9*)
19371 if test "$GCC" = yes; then
19372- 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'
19373+ 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'
19374 else
19375 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'
19376 fi
19377@@ -11850,7 +12427,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19378
19379 hpux10*)
19380 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
19381- archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19382+ archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19383 else
19384 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19385 fi
19386@@ -11874,10 +12451,10 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19387 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19388 ;;
19389 ia64*)
19390- archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19391+ archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19392 ;;
19393 *)
19394- archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19395+ archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19396 ;;
19397 esac
19398 else
19399@@ -11956,23 +12533,36 @@ fi
19400
19401 irix5* | irix6* | nonstopux*)
19402 if test "$GCC" = yes; then
19403- 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'
19404+ 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'
19405 # Try to use the -exported_symbol ld option, if it does not
19406 # work, assume that -exports_file does not work either and
19407 # implicitly export all symbols.
19408- save_LDFLAGS="$LDFLAGS"
19409- LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
19410- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19411+ # This should be the same for all languages, so no per-tag cache variable.
19412+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
19413+$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
19414+if ${lt_cv_irix_exported_symbol+:} false; then :
19415+ $as_echo_n "(cached) " >&6
19416+else
19417+ save_LDFLAGS="$LDFLAGS"
19418+ LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
19419+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19420 /* end confdefs.h. */
19421-int foo(void) {}
19422+int foo (void) { return 0; }
19423 _ACEOF
19424 if ac_fn_c_try_link "$LINENO"; then :
19425- 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'
19426-
19427+ lt_cv_irix_exported_symbol=yes
19428+else
19429+ lt_cv_irix_exported_symbol=no
19430 fi
19431 rm -f core conftest.err conftest.$ac_objext \
19432 conftest$ac_exeext conftest.$ac_ext
19433- LDFLAGS="$save_LDFLAGS"
19434+ LDFLAGS="$save_LDFLAGS"
19435+fi
19436+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
19437+$as_echo "$lt_cv_irix_exported_symbol" >&6; }
19438+ if test "$lt_cv_irix_exported_symbol" = yes; then
19439+ 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'
19440+ fi
19441 else
19442 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'
19443 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'
19444@@ -12057,7 +12647,7 @@ rm -f core conftest.err conftest.$ac_objext \
19445 osf4* | osf5*) # as osf3* with the addition of -msym flag
19446 if test "$GCC" = yes; then
19447 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
19448- 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'
19449+ 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'
19450 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
19451 else
19452 allow_undefined_flag=' -expect_unresolved \*'
19453@@ -12076,9 +12666,9 @@ rm -f core conftest.err conftest.$ac_objext \
19454 no_undefined_flag=' -z defs'
19455 if test "$GCC" = yes; then
19456 wlarc='${wl}'
19457- archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19458+ archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19459 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19460- $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
19461+ $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'
19462 else
19463 case `$CC -V 2>&1` in
19464 *"Compilers 5.0"*)
19465@@ -12654,8 +13244,9 @@ cygwin* | mingw* | pw32* | cegcc*)
19466 need_version=no
19467 need_lib_prefix=no
19468
19469- case $GCC,$host_os in
19470- yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
19471+ case $GCC,$cc_basename in
19472+ yes,*)
19473+ # gcc
19474 library_names_spec='$libname.dll.a'
19475 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19476 postinstall_cmds='base_file=`basename \${file}`~
19477@@ -12688,13 +13279,71 @@ cygwin* | mingw* | pw32* | cegcc*)
19478 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19479 ;;
19480 esac
19481+ dynamic_linker='Win32 ld.exe'
19482+ ;;
19483+
19484+ *,cl*)
19485+ # Native MSVC
19486+ libname_spec='$name'
19487+ soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19488+ library_names_spec='${libname}.dll.lib'
19489+
19490+ case $build_os in
19491+ mingw*)
19492+ sys_lib_search_path_spec=
19493+ lt_save_ifs=$IFS
19494+ IFS=';'
19495+ for lt_path in $LIB
19496+ do
19497+ IFS=$lt_save_ifs
19498+ # Let DOS variable expansion print the short 8.3 style file name.
19499+ lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
19500+ sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
19501+ done
19502+ IFS=$lt_save_ifs
19503+ # Convert to MSYS style.
19504+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
19505+ ;;
19506+ cygwin*)
19507+ # Convert to unix form, then to dos form, then back to unix form
19508+ # but this time dos style (no spaces!) so that the unix form looks
19509+ # like /cygdrive/c/PROGRA~1:/cygdr...
19510+ sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
19511+ sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
19512+ sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19513+ ;;
19514+ *)
19515+ sys_lib_search_path_spec="$LIB"
19516+ if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
19517+ # It is most probably a Windows format PATH.
19518+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19519+ else
19520+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19521+ fi
19522+ # FIXME: find the short name or the path components, as spaces are
19523+ # common. (e.g. "Program Files" -> "PROGRA~1")
19524+ ;;
19525+ esac
19526+
19527+ # DLL is installed to $(libdir)/../bin by postinstall_cmds
19528+ postinstall_cmds='base_file=`basename \${file}`~
19529+ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19530+ dldir=$destdir/`dirname \$dlpath`~
19531+ test -d \$dldir || mkdir -p \$dldir~
19532+ $install_prog $dir/$dlname \$dldir/$dlname'
19533+ postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19534+ dlpath=$dir/\$dldll~
19535+ $RM \$dlpath'
19536+ shlibpath_overrides_runpath=yes
19537+ dynamic_linker='Win32 link.exe'
19538 ;;
19539
19540 *)
19541+ # Assume MSVC wrapper
19542 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19543+ dynamic_linker='Win32 ld.exe'
19544 ;;
19545 esac
19546- dynamic_linker='Win32 ld.exe'
19547 # FIXME: first we should search . and the directory the executable is in
19548 shlibpath_var=PATH
19549 ;;
19550@@ -13596,7 +14245,7 @@ else
19551 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19552 lt_status=$lt_dlunknown
19553 cat > conftest.$ac_ext <<_LT_EOF
19554-#line 13599 "configure"
19555+#line $LINENO "configure"
19556 #include "confdefs.h"
19557
19558 #if HAVE_DLFCN_H
19559@@ -13640,10 +14289,10 @@ else
19560 /* When -fvisbility=hidden is used, assume the code has been annotated
19561 correspondingly for the symbols needed. */
19562 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19563-void fnord () __attribute__((visibility("default")));
19564+int fnord () __attribute__((visibility("default")));
19565 #endif
19566
19567-void fnord () { int i=42; }
19568+int fnord () { return 42; }
19569 int main ()
19570 {
19571 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19572@@ -13702,7 +14351,7 @@ else
19573 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19574 lt_status=$lt_dlunknown
19575 cat > conftest.$ac_ext <<_LT_EOF
19576-#line 13705 "configure"
19577+#line $LINENO "configure"
19578 #include "confdefs.h"
19579
19580 #if HAVE_DLFCN_H
19581@@ -13746,10 +14395,10 @@ else
19582 /* When -fvisbility=hidden is used, assume the code has been annotated
19583 correspondingly for the symbols needed. */
19584 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19585-void fnord () __attribute__((visibility("default")));
19586+int fnord () __attribute__((visibility("default")));
19587 #endif
19588
19589-void fnord () { int i=42; }
19590+int fnord () { return 42; }
19591 int main ()
19592 {
19593 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19594@@ -17813,13 +18462,20 @@ exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19595 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19596 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19597 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19598+lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19599+lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19600 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19601 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19602 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19603 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19604 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19605+file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19606+want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19607+DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19608+sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19609 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19610 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19611+archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19612 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19613 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19614 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19615@@ -17834,14 +18490,17 @@ lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$de
19616 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19617 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19618 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"`'
19619+nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19620+lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19621 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19622 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19623 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19624-lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19625 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19626+lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19627 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19628 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19629 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19630+MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19631 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19632 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19633 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19634@@ -17874,12 +18533,12 @@ hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_q
19635 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19636 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19637 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19638-fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
19639 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19640 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19641 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19642 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19643 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19644+postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19645 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19646 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19647 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19648@@ -17934,8 +18593,13 @@ reload_flag \
19649 OBJDUMP \
19650 deplibs_check_method \
19651 file_magic_cmd \
19652+file_magic_glob \
19653+want_nocaseglob \
19654+DLLTOOL \
19655+sharedlib_from_linklib_cmd \
19656 AR \
19657 AR_FLAGS \
19658+archiver_list_spec \
19659 STRIP \
19660 RANLIB \
19661 CC \
19662@@ -17945,12 +18609,14 @@ lt_cv_sys_global_symbol_pipe \
19663 lt_cv_sys_global_symbol_to_cdecl \
19664 lt_cv_sys_global_symbol_to_c_name_address \
19665 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19666+nm_file_list_spec \
19667 lt_prog_compiler_no_builtin_flag \
19668-lt_prog_compiler_wl \
19669 lt_prog_compiler_pic \
19670+lt_prog_compiler_wl \
19671 lt_prog_compiler_static \
19672 lt_cv_prog_compiler_c_o \
19673 need_locks \
19674+MANIFEST_TOOL \
19675 DSYMUTIL \
19676 NMEDIT \
19677 LIPO \
19678@@ -17966,7 +18632,6 @@ no_undefined_flag \
19679 hardcode_libdir_flag_spec \
19680 hardcode_libdir_flag_spec_ld \
19681 hardcode_libdir_separator \
19682-fix_srcfile_path \
19683 exclude_expsyms \
19684 include_expsyms \
19685 file_list_spec \
19686@@ -18002,6 +18667,7 @@ module_cmds \
19687 module_expsym_cmds \
19688 export_symbols_cmds \
19689 prelink_cmds \
19690+postlink_cmds \
19691 postinstall_cmds \
19692 postuninstall_cmds \
19693 finish_cmds \
19694@@ -18861,7 +19527,8 @@ $as_echo X"$file" |
19695 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19696 #
19697 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19698-# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
19699+# 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
19700+# Inc.
19701 # Written by Gordon Matzigkeit, 1996
19702 #
19703 # This file is part of GNU Libtool.
19704@@ -18964,19 +19631,42 @@ SP2NL=$lt_lt_SP2NL
19705 # turn newlines into spaces.
19706 NL2SP=$lt_lt_NL2SP
19707
19708+# convert \$build file names to \$host format.
19709+to_host_file_cmd=$lt_cv_to_host_file_cmd
19710+
19711+# convert \$build files to toolchain format.
19712+to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19713+
19714 # An object symbol dumper.
19715 OBJDUMP=$lt_OBJDUMP
19716
19717 # Method to check whether dependent libraries are shared objects.
19718 deplibs_check_method=$lt_deplibs_check_method
19719
19720-# Command to use when deplibs_check_method == "file_magic".
19721+# Command to use when deplibs_check_method = "file_magic".
19722 file_magic_cmd=$lt_file_magic_cmd
19723
19724+# How to find potential files when deplibs_check_method = "file_magic".
19725+file_magic_glob=$lt_file_magic_glob
19726+
19727+# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19728+want_nocaseglob=$lt_want_nocaseglob
19729+
19730+# DLL creation program.
19731+DLLTOOL=$lt_DLLTOOL
19732+
19733+# Command to associate shared and link libraries.
19734+sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19735+
19736 # The archiver.
19737 AR=$lt_AR
19738+
19739+# Flags to create an archive.
19740 AR_FLAGS=$lt_AR_FLAGS
19741
19742+# How to feed a file listing to the archiver.
19743+archiver_list_spec=$lt_archiver_list_spec
19744+
19745 # A symbol stripping program.
19746 STRIP=$lt_STRIP
19747
19748@@ -19006,6 +19696,12 @@ global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19749 # Transform the output of nm in a C name address pair when lib prefix is needed.
19750 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19751
19752+# Specify filename containing input files for \$NM.
19753+nm_file_list_spec=$lt_nm_file_list_spec
19754+
19755+# The root where to search for dependent libraries,and in which our libraries should be installed.
19756+lt_sysroot=$lt_sysroot
19757+
19758 # The name of the directory that contains temporary libtool files.
19759 objdir=$objdir
19760
19761@@ -19015,6 +19711,9 @@ MAGIC_CMD=$MAGIC_CMD
19762 # Must we lock files when doing compilation?
19763 need_locks=$lt_need_locks
19764
19765+# Manifest tool.
19766+MANIFEST_TOOL=$lt_MANIFEST_TOOL
19767+
19768 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19769 DSYMUTIL=$lt_DSYMUTIL
19770
19771@@ -19129,12 +19828,12 @@ with_gcc=$GCC
19772 # Compiler flag to turn off builtin functions.
19773 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19774
19775-# How to pass a linker flag through the compiler.
19776-wl=$lt_lt_prog_compiler_wl
19777-
19778 # Additional compiler flags for building library objects.
19779 pic_flag=$lt_lt_prog_compiler_pic
19780
19781+# How to pass a linker flag through the compiler.
19782+wl=$lt_lt_prog_compiler_wl
19783+
19784 # Compiler flag to prevent dynamic linking.
19785 link_static_flag=$lt_lt_prog_compiler_static
19786
19787@@ -19221,9 +19920,6 @@ inherit_rpath=$inherit_rpath
19788 # Whether libtool must link a program against all its dependency libraries.
19789 link_all_deplibs=$link_all_deplibs
19790
19791-# Fix the shell variable \$srcfile for the compiler.
19792-fix_srcfile_path=$lt_fix_srcfile_path
19793-
19794 # Set to "yes" if exported symbols are required.
19795 always_export_symbols=$always_export_symbols
19796
19797@@ -19239,6 +19935,9 @@ include_expsyms=$lt_include_expsyms
19798 # Commands necessary for linking programs (against libraries) with templates.
19799 prelink_cmds=$lt_prelink_cmds
19800
19801+# Commands necessary for finishing linking programs.
19802+postlink_cmds=$lt_postlink_cmds
19803+
19804 # Specify filename containing input files.
19805 file_list_spec=$lt_file_list_spec
19806
19807@@ -19271,210 +19970,169 @@ ltmain="$ac_aux_dir/ltmain.sh"
19808 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19809 # text mode, it properly converts lines to CR/LF. This bash problem
19810 # is reportedly fixed, but why not run on old versions too?
19811- sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19812- || (rm -f "$cfgfile"; exit 1)
19813-
19814- case $xsi_shell in
19815- yes)
19816- cat << \_LT_EOF >> "$cfgfile"
19817-
19818-# func_dirname file append nondir_replacement
19819-# Compute the dirname of FILE. If nonempty, add APPEND to the result,
19820-# otherwise set result to NONDIR_REPLACEMENT.
19821-func_dirname ()
19822-{
19823- case ${1} in
19824- */*) func_dirname_result="${1%/*}${2}" ;;
19825- * ) func_dirname_result="${3}" ;;
19826- esac
19827-}
19828-
19829-# func_basename file
19830-func_basename ()
19831-{
19832- func_basename_result="${1##*/}"
19833-}
19834-
19835-# func_dirname_and_basename file append nondir_replacement
19836-# perform func_basename and func_dirname in a single function
19837-# call:
19838-# dirname: Compute the dirname of FILE. If nonempty,
19839-# add APPEND to the result, otherwise set result
19840-# to NONDIR_REPLACEMENT.
19841-# value returned in "$func_dirname_result"
19842-# basename: Compute filename of FILE.
19843-# value retuned in "$func_basename_result"
19844-# Implementation must be kept synchronized with func_dirname
19845-# and func_basename. For efficiency, we do not delegate to
19846-# those functions but instead duplicate the functionality here.
19847-func_dirname_and_basename ()
19848-{
19849- case ${1} in
19850- */*) func_dirname_result="${1%/*}${2}" ;;
19851- * ) func_dirname_result="${3}" ;;
19852- esac
19853- func_basename_result="${1##*/}"
19854-}
19855-
19856-# func_stripname prefix suffix name
19857-# strip PREFIX and SUFFIX off of NAME.
19858-# PREFIX and SUFFIX must not contain globbing or regex special
19859-# characters, hashes, percent signs, but SUFFIX may contain a leading
19860-# dot (in which case that matches only a dot).
19861-func_stripname ()
19862-{
19863- # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19864- # positional parameters, so assign one to ordinary parameter first.
19865- func_stripname_result=${3}
19866- func_stripname_result=${func_stripname_result#"${1}"}
19867- func_stripname_result=${func_stripname_result%"${2}"}
19868-}
19869-
19870-# func_opt_split
19871-func_opt_split ()
19872-{
19873- func_opt_split_opt=${1%%=*}
19874- func_opt_split_arg=${1#*=}
19875-}
19876-
19877-# func_lo2o object
19878-func_lo2o ()
19879-{
19880- case ${1} in
19881- *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19882- *) func_lo2o_result=${1} ;;
19883- esac
19884-}
19885-
19886-# func_xform libobj-or-source
19887-func_xform ()
19888-{
19889- func_xform_result=${1%.*}.lo
19890-}
19891-
19892-# func_arith arithmetic-term...
19893-func_arith ()
19894-{
19895- func_arith_result=$(( $* ))
19896-}
19897-
19898-# func_len string
19899-# STRING may not start with a hyphen.
19900-func_len ()
19901-{
19902- func_len_result=${#1}
19903-}
19904-
19905-_LT_EOF
19906- ;;
19907- *) # Bourne compatible functions.
19908- cat << \_LT_EOF >> "$cfgfile"
19909-
19910-# func_dirname file append nondir_replacement
19911-# Compute the dirname of FILE. If nonempty, add APPEND to the result,
19912-# otherwise set result to NONDIR_REPLACEMENT.
19913-func_dirname ()
19914-{
19915- # Extract subdirectory from the argument.
19916- func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
19917- if test "X$func_dirname_result" = "X${1}"; then
19918- func_dirname_result="${3}"
19919- else
19920- func_dirname_result="$func_dirname_result${2}"
19921- fi
19922-}
19923-
19924-# func_basename file
19925-func_basename ()
19926-{
19927- func_basename_result=`$ECHO "${1}" | $SED "$basename"`
19928-}
19929-
19930-
19931-# func_stripname prefix suffix name
19932-# strip PREFIX and SUFFIX off of NAME.
19933-# PREFIX and SUFFIX must not contain globbing or regex special
19934-# characters, hashes, percent signs, but SUFFIX may contain a leading
19935-# dot (in which case that matches only a dot).
19936-# func_strip_suffix prefix name
19937-func_stripname ()
19938-{
19939- case ${2} in
19940- .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
19941- *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
19942- esac
19943-}
19944-
19945-# sed scripts:
19946-my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19947-my_sed_long_arg='1s/^-[^=]*=//'
19948-
19949-# func_opt_split
19950-func_opt_split ()
19951-{
19952- func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
19953- func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
19954-}
19955-
19956-# func_lo2o object
19957-func_lo2o ()
19958-{
19959- func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
19960-}
19961-
19962-# func_xform libobj-or-source
19963-func_xform ()
19964-{
19965- func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
19966-}
19967-
19968-# func_arith arithmetic-term...
19969-func_arith ()
19970-{
19971- func_arith_result=`expr "$@"`
19972-}
19973-
19974-# func_len string
19975-# STRING may not start with a hyphen.
19976-func_len ()
19977-{
19978- func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19979-}
19980-
19981-_LT_EOF
19982-esac
19983-
19984-case $lt_shell_append in
19985- yes)
19986- cat << \_LT_EOF >> "$cfgfile"
19987-
19988-# func_append var value
19989-# Append VALUE to the end of shell variable VAR.
19990-func_append ()
19991-{
19992- eval "$1+=\$2"
19993-}
19994-_LT_EOF
19995- ;;
19996- *)
19997- cat << \_LT_EOF >> "$cfgfile"
19998-
19999-# func_append var value
20000-# Append VALUE to the end of shell variable VAR.
20001-func_append ()
20002-{
20003- eval "$1=\$$1\$2"
20004-}
20005-
20006-_LT_EOF
20007- ;;
20008- esac
20009-
20010-
20011- sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
20012- || (rm -f "$cfgfile"; exit 1)
20013-
20014- mv -f "$cfgfile" "$ofile" ||
20015+ sed '$q' "$ltmain" >> "$cfgfile" \
20016+ || (rm -f "$cfgfile"; exit 1)
20017+
20018+ if test x"$xsi_shell" = xyes; then
20019+ sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20020+func_dirname ()\
20021+{\
20022+\ case ${1} in\
20023+\ */*) func_dirname_result="${1%/*}${2}" ;;\
20024+\ * ) func_dirname_result="${3}" ;;\
20025+\ esac\
20026+} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20027+ && mv -f "$cfgfile.tmp" "$cfgfile" \
20028+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20029+test 0 -eq $? || _lt_function_replace_fail=:
20030+
20031+
20032+ sed -e '/^func_basename ()$/,/^} # func_basename /c\
20033+func_basename ()\
20034+{\
20035+\ func_basename_result="${1##*/}"\
20036+} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20037+ && mv -f "$cfgfile.tmp" "$cfgfile" \
20038+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20039+test 0 -eq $? || _lt_function_replace_fail=:
20040+
20041+
20042+ sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20043+func_dirname_and_basename ()\
20044+{\
20045+\ case ${1} in\
20046+\ */*) func_dirname_result="${1%/*}${2}" ;;\
20047+\ * ) func_dirname_result="${3}" ;;\
20048+\ esac\
20049+\ func_basename_result="${1##*/}"\
20050+} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20051+ && mv -f "$cfgfile.tmp" "$cfgfile" \
20052+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20053+test 0 -eq $? || _lt_function_replace_fail=:
20054+
20055+
20056+ sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20057+func_stripname ()\
20058+{\
20059+\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20060+\ # positional parameters, so assign one to ordinary parameter first.\
20061+\ func_stripname_result=${3}\
20062+\ func_stripname_result=${func_stripname_result#"${1}"}\
20063+\ func_stripname_result=${func_stripname_result%"${2}"}\
20064+} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20065+ && mv -f "$cfgfile.tmp" "$cfgfile" \
20066+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20067+test 0 -eq $? || _lt_function_replace_fail=:
20068+
20069+
20070+ sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20071+func_split_long_opt ()\
20072+{\
20073+\ func_split_long_opt_name=${1%%=*}\
20074+\ func_split_long_opt_arg=${1#*=}\
20075+} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20076+ && mv -f "$cfgfile.tmp" "$cfgfile" \
20077+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20078+test 0 -eq $? || _lt_function_replace_fail=:
20079+
20080+
20081+ sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20082+func_split_short_opt ()\
20083+{\
20084+\ func_split_short_opt_arg=${1#??}\
20085+\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20086+} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20087+ && mv -f "$cfgfile.tmp" "$cfgfile" \
20088+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20089+test 0 -eq $? || _lt_function_replace_fail=:
20090+
20091+
20092+ sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20093+func_lo2o ()\
20094+{\
20095+\ case ${1} in\
20096+\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20097+\ *) func_lo2o_result=${1} ;;\
20098+\ esac\
20099+} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20100+ && mv -f "$cfgfile.tmp" "$cfgfile" \
20101+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20102+test 0 -eq $? || _lt_function_replace_fail=:
20103+
20104+
20105+ sed -e '/^func_xform ()$/,/^} # func_xform /c\
20106+func_xform ()\
20107+{\
20108+ func_xform_result=${1%.*}.lo\
20109+} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20110+ && mv -f "$cfgfile.tmp" "$cfgfile" \
20111+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20112+test 0 -eq $? || _lt_function_replace_fail=:
20113+
20114+
20115+ sed -e '/^func_arith ()$/,/^} # func_arith /c\
20116+func_arith ()\
20117+{\
20118+ func_arith_result=$(( $* ))\
20119+} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20120+ && mv -f "$cfgfile.tmp" "$cfgfile" \
20121+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20122+test 0 -eq $? || _lt_function_replace_fail=:
20123+
20124+
20125+ sed -e '/^func_len ()$/,/^} # func_len /c\
20126+func_len ()\
20127+{\
20128+ func_len_result=${#1}\
20129+} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20130+ && mv -f "$cfgfile.tmp" "$cfgfile" \
20131+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20132+test 0 -eq $? || _lt_function_replace_fail=:
20133+
20134+fi
20135+
20136+if test x"$lt_shell_append" = xyes; then
20137+ sed -e '/^func_append ()$/,/^} # func_append /c\
20138+func_append ()\
20139+{\
20140+ eval "${1}+=\\${2}"\
20141+} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20142+ && mv -f "$cfgfile.tmp" "$cfgfile" \
20143+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20144+test 0 -eq $? || _lt_function_replace_fail=:
20145+
20146+
20147+ sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20148+func_append_quoted ()\
20149+{\
20150+\ func_quote_for_eval "${2}"\
20151+\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20152+} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20153+ && mv -f "$cfgfile.tmp" "$cfgfile" \
20154+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20155+test 0 -eq $? || _lt_function_replace_fail=:
20156+
20157+
20158+ # Save a `func_append' function call where possible by direct use of '+='
20159+ sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20160+ && mv -f "$cfgfile.tmp" "$cfgfile" \
20161+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20162+ test 0 -eq $? || _lt_function_replace_fail=:
20163+else
20164+ # Save a `func_append' function call even when '+=' is not available
20165+ sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20166+ && mv -f "$cfgfile.tmp" "$cfgfile" \
20167+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20168+ test 0 -eq $? || _lt_function_replace_fail=:
20169+fi
20170+
20171+if test x"$_lt_function_replace_fail" = x":"; then
20172+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20173+$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20174+fi
20175+
20176+
20177+ mv -f "$cfgfile" "$ofile" ||
20178 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20179 chmod +x "$ofile"
20180
20181diff --git a/libsframe/Makefile.in b/libsframe/Makefile.in
20182index 8915321da78..13c725a698d 100644
20183--- a/libsframe/Makefile.in
20184+++ b/libsframe/Makefile.in
20185@@ -1,7 +1,7 @@
20186-# Makefile.in generated by automake 1.15.1 from Makefile.am.
20187+# Makefile.in generated by automake 1.16.5 from Makefile.am.
20188 # @configure_input@
20189
20190-# Copyright (C) 1994-2017 Free Software Foundation, Inc.
20191+# Copyright (C) 1994-2021 Free Software Foundation, Inc.
20192
20193 # This Makefile.in is free software; the Free Software Foundation
20194 # gives unlimited permission to copy and/or distribute it,
20195@@ -144,6 +144,13 @@ mkinstalldirs = $(SHELL) $(top_srcdir)/../mkinstalldirs
20196 CONFIG_HEADER = config.h
20197 CONFIG_CLEAN_FILES =
20198 CONFIG_CLEAN_VPATH_FILES =
20199+@HAVE_COMPAT_DEJAGNU_TRUE@am__EXEEXT_1 = testsuite/libsframe.decode/be-flipping$(EXEEXT) \
20200+@HAVE_COMPAT_DEJAGNU_TRUE@ testsuite/libsframe.decode/frecnt-1$(EXEEXT) \
20201+@HAVE_COMPAT_DEJAGNU_TRUE@ testsuite/libsframe.decode/frecnt-2$(EXEEXT) \
20202+@HAVE_COMPAT_DEJAGNU_TRUE@ testsuite/libsframe.encode/encode-1$(EXEEXT) \
20203+@HAVE_COMPAT_DEJAGNU_TRUE@ testsuite/libsframe.find/findfre-1$(EXEEXT) \
20204+@HAVE_COMPAT_DEJAGNU_TRUE@ testsuite/libsframe.find/findfunc-1$(EXEEXT) \
20205+@HAVE_COMPAT_DEJAGNU_TRUE@ testsuite/libsframe.find/plt-findfre-1$(EXEEXT)
20206 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
20207 am__vpath_adj = case $$p in \
20208 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
20209@@ -187,45 +194,44 @@ libsframe_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
20210 $(libsframe_la_LDFLAGS) $(LDFLAGS) -o $@
20211 @INSTALL_LIBBFD_FALSE@am_libsframe_la_rpath =
20212 @INSTALL_LIBBFD_TRUE@am_libsframe_la_rpath = -rpath $(libdir)
20213-@HAVE_COMPAT_DEJAGNU_TRUE@am__EXEEXT_1 = testsuite/libsframe.decode/be-flipping$(EXEEXT) \
20214-@HAVE_COMPAT_DEJAGNU_TRUE@ testsuite/libsframe.decode/frecnt-1$(EXEEXT) \
20215-@HAVE_COMPAT_DEJAGNU_TRUE@ testsuite/libsframe.decode/frecnt-2$(EXEEXT) \
20216-@HAVE_COMPAT_DEJAGNU_TRUE@ testsuite/libsframe.encode/encode-1$(EXEEXT) \
20217-@HAVE_COMPAT_DEJAGNU_TRUE@ testsuite/libsframe.find/findfre-1$(EXEEXT) \
20218-@HAVE_COMPAT_DEJAGNU_TRUE@ testsuite/libsframe.find/findfunc-1$(EXEEXT) \
20219-@HAVE_COMPAT_DEJAGNU_TRUE@ testsuite/libsframe.find/plt-findfre-1$(EXEEXT)
20220 am__dirstamp = $(am__leading_dot)dirstamp
20221-am_testsuite_libsframe_decode_be_flipping_OBJECTS = testsuite/libsframe.decode/testsuite_libsframe_decode_be_flipping-be-flipping.$(OBJEXT)
20222+am_testsuite_libsframe_decode_be_flipping_OBJECTS = \
20223+ testsuite/libsframe.decode/be_flipping-be-flipping.$(OBJEXT)
20224 testsuite_libsframe_decode_be_flipping_OBJECTS = \
20225 $(am_testsuite_libsframe_decode_be_flipping_OBJECTS)
20226 testsuite_libsframe_decode_be_flipping_DEPENDENCIES = \
20227 ${top_builddir}/libsframe.la
20228-am_testsuite_libsframe_decode_frecnt_1_OBJECTS = testsuite/libsframe.decode/testsuite_libsframe_decode_frecnt_1-frecnt-1.$(OBJEXT)
20229+am_testsuite_libsframe_decode_frecnt_1_OBJECTS = \
20230+ testsuite/libsframe.decode/frecnt_1-frecnt-1.$(OBJEXT)
20231 testsuite_libsframe_decode_frecnt_1_OBJECTS = \
20232 $(am_testsuite_libsframe_decode_frecnt_1_OBJECTS)
20233 testsuite_libsframe_decode_frecnt_1_DEPENDENCIES = \
20234 ${top_builddir}/libsframe.la
20235-am_testsuite_libsframe_decode_frecnt_2_OBJECTS = testsuite/libsframe.decode/testsuite_libsframe_decode_frecnt_2-frecnt-2.$(OBJEXT)
20236+am_testsuite_libsframe_decode_frecnt_2_OBJECTS = \
20237+ testsuite/libsframe.decode/frecnt_2-frecnt-2.$(OBJEXT)
20238 testsuite_libsframe_decode_frecnt_2_OBJECTS = \
20239 $(am_testsuite_libsframe_decode_frecnt_2_OBJECTS)
20240 testsuite_libsframe_decode_frecnt_2_DEPENDENCIES = \
20241 ${top_builddir}/libsframe.la
20242-am_testsuite_libsframe_encode_encode_1_OBJECTS = testsuite/libsframe.encode/testsuite_libsframe_encode_encode_1-encode-1.$(OBJEXT)
20243+am_testsuite_libsframe_encode_encode_1_OBJECTS = \
20244+ testsuite/libsframe.encode/encode_1-encode-1.$(OBJEXT)
20245 testsuite_libsframe_encode_encode_1_OBJECTS = \
20246 $(am_testsuite_libsframe_encode_encode_1_OBJECTS)
20247 testsuite_libsframe_encode_encode_1_DEPENDENCIES = \
20248 ${top_builddir}/libsframe.la
20249-am_testsuite_libsframe_find_findfre_1_OBJECTS = testsuite/libsframe.find/testsuite_libsframe_find_findfre_1-findfre-1.$(OBJEXT)
20250+am_testsuite_libsframe_find_findfre_1_OBJECTS = \
20251+ testsuite/libsframe.find/findfre_1-findfre-1.$(OBJEXT)
20252 testsuite_libsframe_find_findfre_1_OBJECTS = \
20253 $(am_testsuite_libsframe_find_findfre_1_OBJECTS)
20254 testsuite_libsframe_find_findfre_1_DEPENDENCIES = \
20255 ${top_builddir}/libsframe.la
20256-am_testsuite_libsframe_find_findfunc_1_OBJECTS = testsuite/libsframe.find/testsuite_libsframe_find_findfunc_1-findfunc-1.$(OBJEXT)
20257+am_testsuite_libsframe_find_findfunc_1_OBJECTS = \
20258+ testsuite/libsframe.find/findfunc_1-findfunc-1.$(OBJEXT)
20259 testsuite_libsframe_find_findfunc_1_OBJECTS = \
20260 $(am_testsuite_libsframe_find_findfunc_1_OBJECTS)
20261 testsuite_libsframe_find_findfunc_1_DEPENDENCIES = \
20262 ${top_builddir}/libsframe.la
20263-am_testsuite_libsframe_find_plt_findfre_1_OBJECTS = testsuite/libsframe.find/testsuite_libsframe_find_plt_findfre_1-plt-findfre-1.$(OBJEXT)
20264+am_testsuite_libsframe_find_plt_findfre_1_OBJECTS = testsuite/libsframe.find/plt_findfre_1-plt-findfre-1.$(OBJEXT)
20265 testsuite_libsframe_find_plt_findfre_1_OBJECTS = \
20266 $(am_testsuite_libsframe_find_plt_findfre_1_OBJECTS)
20267 testsuite_libsframe_find_plt_findfre_1_DEPENDENCIES = \
20268@@ -244,7 +250,17 @@ am__v_at_0 = @
20269 am__v_at_1 =
20270 DEFAULT_INCLUDES = -I.@am__isrc@
20271 depcomp = $(SHELL) $(top_srcdir)/../depcomp
20272-am__depfiles_maybe = depfiles
20273+am__maybe_remake_depfiles = depfiles
20274+am__depfiles_remade = ./$(DEPDIR)/libsframe_la-sframe-dump.Plo \
20275+ ./$(DEPDIR)/libsframe_la-sframe-error.Plo \
20276+ ./$(DEPDIR)/libsframe_la-sframe.Plo \
20277+ testsuite/libsframe.decode/$(DEPDIR)/be_flipping-be-flipping.Po \
20278+ testsuite/libsframe.decode/$(DEPDIR)/frecnt_1-frecnt-1.Po \
20279+ testsuite/libsframe.decode/$(DEPDIR)/frecnt_2-frecnt-2.Po \
20280+ testsuite/libsframe.encode/$(DEPDIR)/encode_1-encode-1.Po \
20281+ testsuite/libsframe.find/$(DEPDIR)/findfre_1-findfre-1.Po \
20282+ testsuite/libsframe.find/$(DEPDIR)/findfunc_1-findfunc-1.Po \
20283+ testsuite/libsframe.find/$(DEPDIR)/plt_findfre_1-plt-findfre-1.Po
20284 am__mv = mv -f
20285 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
20286 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
20287@@ -327,8 +343,8 @@ am__can_run_installinfo = \
20288 esac
20289 am__include_HEADERS_DIST = $(INCDIR)/sframe.h $(INCDIR)/sframe-api.h
20290 HEADERS = $(include_HEADERS)
20291-am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) \
20292- $(LISP)config.h.in
20293+am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) \
20294+ config.h.in
20295 # Read a list of newline-separated strings from the standard input,
20296 # and print each of them once, without duplicates. Input order is
20297 # *not* preserved.
20298@@ -345,9 +361,6 @@ am__define_uniq_tagged_files = \
20299 unique=`for i in $$list; do \
20300 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
20301 done | $(am__uniquify_input)`
20302-ETAGS = etags
20303-CTAGS = ctags
20304-CSCOPE = cscope
20305 AM_RECURSIVE_TARGETS = cscope
20306 DEJATOOL = $(PACKAGE)
20307 RUNTESTDEFAULTFLAGS = --tool $$tool --srcdir $$srcdir
20308@@ -374,6 +387,8 @@ am__post_remove_distdir = $(am__remove_distdir)
20309 DIST_ARCHIVES = $(distdir).tar.gz
20310 GZIP_ENV = --best
20311 DIST_TARGETS = dist-gzip
20312+# Exists only to be overridden by the user if desired.
20313+AM_DISTCHECK_DVI_TARGET = dvi
20314 distuninstallcheck_listfiles = find . -type f -print
20315 am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \
20316 | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$'
20317@@ -392,15 +407,19 @@ CFLAGS = @CFLAGS@
20318 COMPAT_DEJAGNU = @COMPAT_DEJAGNU@
20319 CPP = @CPP@
20320 CPPFLAGS = @CPPFLAGS@
20321+CSCOPE = @CSCOPE@
20322+CTAGS = @CTAGS@
20323 CYGPATH_W = @CYGPATH_W@
20324 DEFS = @DEFS@
20325 DEPDIR = @DEPDIR@
20326+DLLTOOL = @DLLTOOL@
20327 DSYMUTIL = @DSYMUTIL@
20328 DUMPBIN = @DUMPBIN@
20329 ECHO_C = @ECHO_C@
20330 ECHO_N = @ECHO_N@
20331 ECHO_T = @ECHO_T@
20332 EGREP = @EGREP@
20333+ETAGS = @ETAGS@
20334 EXEEXT = @EXEEXT@
20335 FGREP = @FGREP@
20336 GREP = @GREP@
20337@@ -419,6 +438,7 @@ LN_S = @LN_S@
20338 LTLIBOBJS = @LTLIBOBJS@
20339 MAINT = @MAINT@
20340 MAKEINFO = @MAKEINFO@
20341+MANIFEST_TOOL = @MANIFEST_TOOL@
20342 MKDIR_P = @MKDIR_P@
20343 NM = @NM@
20344 NMEDIT = @NMEDIT@
20345@@ -595,8 +615,8 @@ Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
20346 echo ' $(SHELL) ./config.status'; \
20347 $(SHELL) ./config.status;; \
20348 *) \
20349- echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
20350- cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
20351+ echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__maybe_remake_depfiles)'; \
20352+ cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__maybe_remake_depfiles);; \
20353 esac;
20354 $(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):
20355
20356@@ -624,6 +644,15 @@ $(srcdir)/config.h.in: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
20357 distclean-hdr:
20358 -rm -f config.h stamp-h1
20359
20360+clean-checkPROGRAMS:
20361+ @list='$(check_PROGRAMS)'; test -n "$$list" || exit 0; \
20362+ echo " rm -f" $$list; \
20363+ rm -f $$list || exit $$?; \
20364+ test -n "$(EXEEXT)" || exit 0; \
20365+ list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
20366+ echo " rm -f" $$list; \
20367+ rm -f $$list
20368+
20369 install-libLTLIBRARIES: $(lib_LTLIBRARIES)
20370 @$(NORMAL_INSTALL)
20371 @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
20372@@ -672,36 +701,27 @@ clean-noinstLTLIBRARIES:
20373
20374 libsframe.la: $(libsframe_la_OBJECTS) $(libsframe_la_DEPENDENCIES) $(EXTRA_libsframe_la_DEPENDENCIES)
20375 $(AM_V_CCLD)$(libsframe_la_LINK) $(am_libsframe_la_rpath) $(libsframe_la_OBJECTS) $(libsframe_la_LIBADD) $(LIBS)
20376-
20377-clean-checkPROGRAMS:
20378- @list='$(check_PROGRAMS)'; test -n "$$list" || exit 0; \
20379- echo " rm -f" $$list; \
20380- rm -f $$list || exit $$?; \
20381- test -n "$(EXEEXT)" || exit 0; \
20382- list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
20383- echo " rm -f" $$list; \
20384- rm -f $$list
20385 testsuite/libsframe.decode/$(am__dirstamp):
20386 @$(MKDIR_P) testsuite/libsframe.decode
20387 @: > testsuite/libsframe.decode/$(am__dirstamp)
20388 testsuite/libsframe.decode/$(DEPDIR)/$(am__dirstamp):
20389 @$(MKDIR_P) testsuite/libsframe.decode/$(DEPDIR)
20390 @: > testsuite/libsframe.decode/$(DEPDIR)/$(am__dirstamp)
20391-testsuite/libsframe.decode/testsuite_libsframe_decode_be_flipping-be-flipping.$(OBJEXT): \
20392+testsuite/libsframe.decode/be_flipping-be-flipping.$(OBJEXT): \
20393 testsuite/libsframe.decode/$(am__dirstamp) \
20394 testsuite/libsframe.decode/$(DEPDIR)/$(am__dirstamp)
20395
20396 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)
20397 @rm -f testsuite/libsframe.decode/be-flipping$(EXEEXT)
20398 $(AM_V_CCLD)$(LINK) $(testsuite_libsframe_decode_be_flipping_OBJECTS) $(testsuite_libsframe_decode_be_flipping_LDADD) $(LIBS)
20399-testsuite/libsframe.decode/testsuite_libsframe_decode_frecnt_1-frecnt-1.$(OBJEXT): \
20400+testsuite/libsframe.decode/frecnt_1-frecnt-1.$(OBJEXT): \
20401 testsuite/libsframe.decode/$(am__dirstamp) \
20402 testsuite/libsframe.decode/$(DEPDIR)/$(am__dirstamp)
20403
20404 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)
20405 @rm -f testsuite/libsframe.decode/frecnt-1$(EXEEXT)
20406 $(AM_V_CCLD)$(LINK) $(testsuite_libsframe_decode_frecnt_1_OBJECTS) $(testsuite_libsframe_decode_frecnt_1_LDADD) $(LIBS)
20407-testsuite/libsframe.decode/testsuite_libsframe_decode_frecnt_2-frecnt-2.$(OBJEXT): \
20408+testsuite/libsframe.decode/frecnt_2-frecnt-2.$(OBJEXT): \
20409 testsuite/libsframe.decode/$(am__dirstamp) \
20410 testsuite/libsframe.decode/$(DEPDIR)/$(am__dirstamp)
20411
20412@@ -714,7 +734,7 @@ testsuite/libsframe.encode/$(am__dirstamp):
20413 testsuite/libsframe.encode/$(DEPDIR)/$(am__dirstamp):
20414 @$(MKDIR_P) testsuite/libsframe.encode/$(DEPDIR)
20415 @: > testsuite/libsframe.encode/$(DEPDIR)/$(am__dirstamp)
20416-testsuite/libsframe.encode/testsuite_libsframe_encode_encode_1-encode-1.$(OBJEXT): \
20417+testsuite/libsframe.encode/encode_1-encode-1.$(OBJEXT): \
20418 testsuite/libsframe.encode/$(am__dirstamp) \
20419 testsuite/libsframe.encode/$(DEPDIR)/$(am__dirstamp)
20420
20421@@ -727,21 +747,21 @@ testsuite/libsframe.find/$(am__dirstamp):
20422 testsuite/libsframe.find/$(DEPDIR)/$(am__dirstamp):
20423 @$(MKDIR_P) testsuite/libsframe.find/$(DEPDIR)
20424 @: > testsuite/libsframe.find/$(DEPDIR)/$(am__dirstamp)
20425-testsuite/libsframe.find/testsuite_libsframe_find_findfre_1-findfre-1.$(OBJEXT): \
20426+testsuite/libsframe.find/findfre_1-findfre-1.$(OBJEXT): \
20427 testsuite/libsframe.find/$(am__dirstamp) \
20428 testsuite/libsframe.find/$(DEPDIR)/$(am__dirstamp)
20429
20430 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)
20431 @rm -f testsuite/libsframe.find/findfre-1$(EXEEXT)
20432 $(AM_V_CCLD)$(LINK) $(testsuite_libsframe_find_findfre_1_OBJECTS) $(testsuite_libsframe_find_findfre_1_LDADD) $(LIBS)
20433-testsuite/libsframe.find/testsuite_libsframe_find_findfunc_1-findfunc-1.$(OBJEXT): \
20434+testsuite/libsframe.find/findfunc_1-findfunc-1.$(OBJEXT): \
20435 testsuite/libsframe.find/$(am__dirstamp) \
20436 testsuite/libsframe.find/$(DEPDIR)/$(am__dirstamp)
20437
20438 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)
20439 @rm -f testsuite/libsframe.find/findfunc-1$(EXEEXT)
20440 $(AM_V_CCLD)$(LINK) $(testsuite_libsframe_find_findfunc_1_OBJECTS) $(testsuite_libsframe_find_findfunc_1_LDADD) $(LIBS)
20441-testsuite/libsframe.find/testsuite_libsframe_find_plt_findfre_1-plt-findfre-1.$(OBJEXT): \
20442+testsuite/libsframe.find/plt_findfre_1-plt-findfre-1.$(OBJEXT): \
20443 testsuite/libsframe.find/$(am__dirstamp) \
20444 testsuite/libsframe.find/$(DEPDIR)/$(am__dirstamp)
20445
20446@@ -758,16 +778,22 @@ mostlyclean-compile:
20447 distclean-compile:
20448 -rm -f *.tab.c
20449
20450-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libsframe_la-sframe-dump.Plo@am__quote@
20451-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libsframe_la-sframe-error.Plo@am__quote@
20452-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libsframe_la-sframe.Plo@am__quote@
20453-@AMDEP_TRUE@@am__include@ @am__quote@testsuite/libsframe.decode/$(DEPDIR)/testsuite_libsframe_decode_be_flipping-be-flipping.Po@am__quote@
20454-@AMDEP_TRUE@@am__include@ @am__quote@testsuite/libsframe.decode/$(DEPDIR)/testsuite_libsframe_decode_frecnt_1-frecnt-1.Po@am__quote@
20455-@AMDEP_TRUE@@am__include@ @am__quote@testsuite/libsframe.decode/$(DEPDIR)/testsuite_libsframe_decode_frecnt_2-frecnt-2.Po@am__quote@
20456-@AMDEP_TRUE@@am__include@ @am__quote@testsuite/libsframe.encode/$(DEPDIR)/testsuite_libsframe_encode_encode_1-encode-1.Po@am__quote@
20457-@AMDEP_TRUE@@am__include@ @am__quote@testsuite/libsframe.find/$(DEPDIR)/testsuite_libsframe_find_findfre_1-findfre-1.Po@am__quote@
20458-@AMDEP_TRUE@@am__include@ @am__quote@testsuite/libsframe.find/$(DEPDIR)/testsuite_libsframe_find_findfunc_1-findfunc-1.Po@am__quote@
20459-@AMDEP_TRUE@@am__include@ @am__quote@testsuite/libsframe.find/$(DEPDIR)/testsuite_libsframe_find_plt_findfre_1-plt-findfre-1.Po@am__quote@
20460+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libsframe_la-sframe-dump.Plo@am__quote@ # am--include-marker
20461+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libsframe_la-sframe-error.Plo@am__quote@ # am--include-marker
20462+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libsframe_la-sframe.Plo@am__quote@ # am--include-marker
20463+@AMDEP_TRUE@@am__include@ @am__quote@testsuite/libsframe.decode/$(DEPDIR)/be_flipping-be-flipping.Po@am__quote@ # am--include-marker
20464+@AMDEP_TRUE@@am__include@ @am__quote@testsuite/libsframe.decode/$(DEPDIR)/frecnt_1-frecnt-1.Po@am__quote@ # am--include-marker
20465+@AMDEP_TRUE@@am__include@ @am__quote@testsuite/libsframe.decode/$(DEPDIR)/frecnt_2-frecnt-2.Po@am__quote@ # am--include-marker
20466+@AMDEP_TRUE@@am__include@ @am__quote@testsuite/libsframe.encode/$(DEPDIR)/encode_1-encode-1.Po@am__quote@ # am--include-marker
20467+@AMDEP_TRUE@@am__include@ @am__quote@testsuite/libsframe.find/$(DEPDIR)/findfre_1-findfre-1.Po@am__quote@ # am--include-marker
20468+@AMDEP_TRUE@@am__include@ @am__quote@testsuite/libsframe.find/$(DEPDIR)/findfunc_1-findfunc-1.Po@am__quote@ # am--include-marker
20469+@AMDEP_TRUE@@am__include@ @am__quote@testsuite/libsframe.find/$(DEPDIR)/plt_findfre_1-plt-findfre-1.Po@am__quote@ # am--include-marker
20470+
20471+$(am__depfiles_remade):
20472+ @$(MKDIR_P) $(@D)
20473+ @echo '# dummy' >$@-t && $(am__mv) $@-t $@
20474+
20475+am--depfiles: $(am__depfiles_remade)
20476
20477 .c.o:
20478 @am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\
20479@@ -814,103 +840,103 @@ libsframe_la-sframe-error.lo: sframe-error.c
20480 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
20481 @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
20482
20483-testsuite/libsframe.decode/testsuite_libsframe_decode_be_flipping-be-flipping.o: testsuite/libsframe.decode/be-flipping.c
20484-@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
20485-@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
20486-@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@
20487+testsuite/libsframe.decode/be_flipping-be-flipping.o: testsuite/libsframe.decode/be-flipping.c
20488+@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
20489+@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
20490+@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@
20491 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
20492-@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
20493+@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
20494
20495-testsuite/libsframe.decode/testsuite_libsframe_decode_be_flipping-be-flipping.obj: testsuite/libsframe.decode/be-flipping.c
20496-@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`
20497-@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
20498-@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@
20499+testsuite/libsframe.decode/be_flipping-be-flipping.obj: testsuite/libsframe.decode/be-flipping.c
20500+@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`
20501+@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
20502+@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@
20503 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
20504-@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`
20505+@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`
20506
20507-testsuite/libsframe.decode/testsuite_libsframe_decode_frecnt_1-frecnt-1.o: testsuite/libsframe.decode/frecnt-1.c
20508-@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
20509-@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
20510-@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@
20511+testsuite/libsframe.decode/frecnt_1-frecnt-1.o: testsuite/libsframe.decode/frecnt-1.c
20512+@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
20513+@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
20514+@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@
20515 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
20516-@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
20517+@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
20518
20519-testsuite/libsframe.decode/testsuite_libsframe_decode_frecnt_1-frecnt-1.obj: testsuite/libsframe.decode/frecnt-1.c
20520-@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`
20521-@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
20522-@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@
20523+testsuite/libsframe.decode/frecnt_1-frecnt-1.obj: testsuite/libsframe.decode/frecnt-1.c
20524+@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`
20525+@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
20526+@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@
20527 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
20528-@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`
20529+@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`
20530
20531-testsuite/libsframe.decode/testsuite_libsframe_decode_frecnt_2-frecnt-2.o: testsuite/libsframe.decode/frecnt-2.c
20532-@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
20533-@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
20534-@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@
20535+testsuite/libsframe.decode/frecnt_2-frecnt-2.o: testsuite/libsframe.decode/frecnt-2.c
20536+@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
20537+@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
20538+@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@
20539 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
20540-@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
20541+@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
20542
20543-testsuite/libsframe.decode/testsuite_libsframe_decode_frecnt_2-frecnt-2.obj: testsuite/libsframe.decode/frecnt-2.c
20544-@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`
20545-@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
20546-@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@
20547+testsuite/libsframe.decode/frecnt_2-frecnt-2.obj: testsuite/libsframe.decode/frecnt-2.c
20548+@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`
20549+@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
20550+@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@
20551 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
20552-@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`
20553+@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`
20554
20555-testsuite/libsframe.encode/testsuite_libsframe_encode_encode_1-encode-1.o: testsuite/libsframe.encode/encode-1.c
20556-@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
20557-@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
20558-@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@
20559+testsuite/libsframe.encode/encode_1-encode-1.o: testsuite/libsframe.encode/encode-1.c
20560+@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
20561+@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
20562+@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@
20563 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
20564-@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
20565+@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
20566
20567-testsuite/libsframe.encode/testsuite_libsframe_encode_encode_1-encode-1.obj: testsuite/libsframe.encode/encode-1.c
20568-@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`
20569-@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
20570-@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@
20571+testsuite/libsframe.encode/encode_1-encode-1.obj: testsuite/libsframe.encode/encode-1.c
20572+@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`
20573+@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
20574+@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@
20575 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
20576-@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`
20577+@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`
20578
20579-testsuite/libsframe.find/testsuite_libsframe_find_findfre_1-findfre-1.o: testsuite/libsframe.find/findfre-1.c
20580-@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
20581-@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
20582-@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@
20583+testsuite/libsframe.find/findfre_1-findfre-1.o: testsuite/libsframe.find/findfre-1.c
20584+@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
20585+@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
20586+@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@
20587 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
20588-@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
20589+@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
20590
20591-testsuite/libsframe.find/testsuite_libsframe_find_findfre_1-findfre-1.obj: testsuite/libsframe.find/findfre-1.c
20592-@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`
20593-@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
20594-@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@
20595+testsuite/libsframe.find/findfre_1-findfre-1.obj: testsuite/libsframe.find/findfre-1.c
20596+@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`
20597+@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
20598+@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@
20599 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
20600-@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`
20601+@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`
20602
20603-testsuite/libsframe.find/testsuite_libsframe_find_findfunc_1-findfunc-1.o: testsuite/libsframe.find/findfunc-1.c
20604-@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
20605-@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
20606-@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@
20607+testsuite/libsframe.find/findfunc_1-findfunc-1.o: testsuite/libsframe.find/findfunc-1.c
20608+@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
20609+@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
20610+@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@
20611 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
20612-@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
20613+@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
20614
20615-testsuite/libsframe.find/testsuite_libsframe_find_findfunc_1-findfunc-1.obj: testsuite/libsframe.find/findfunc-1.c
20616-@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`
20617-@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
20618-@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@
20619+testsuite/libsframe.find/findfunc_1-findfunc-1.obj: testsuite/libsframe.find/findfunc-1.c
20620+@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`
20621+@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
20622+@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@
20623 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
20624-@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`
20625+@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`
20626
20627-testsuite/libsframe.find/testsuite_libsframe_find_plt_findfre_1-plt-findfre-1.o: testsuite/libsframe.find/plt-findfre-1.c
20628-@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
20629-@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
20630-@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@
20631+testsuite/libsframe.find/plt_findfre_1-plt-findfre-1.o: testsuite/libsframe.find/plt-findfre-1.c
20632+@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
20633+@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
20634+@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@
20635 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
20636-@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
20637+@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
20638
20639-testsuite/libsframe.find/testsuite_libsframe_find_plt_findfre_1-plt-findfre-1.obj: testsuite/libsframe.find/plt-findfre-1.c
20640-@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`
20641-@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
20642-@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@
20643+testsuite/libsframe.find/plt_findfre_1-plt-findfre-1.obj: testsuite/libsframe.find/plt-findfre-1.c
20644+@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`
20645+@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
20646+@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@
20647 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
20648-@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`
20649+@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`
20650
20651 mostlyclean-libtool:
20652 -rm -f *.lo
20653@@ -1148,7 +1174,7 @@ site.exp: Makefile $(EXTRA_DEJAGNU_SITE_CONFIG)
20654 @echo '# Do not edit here. If you wish to override these values' >>site.tmp
20655 @echo '# edit the last section' >>site.tmp
20656 @echo 'set srcdir "$(srcdir)"' >>site.tmp
20657- @echo "set objdir `pwd`" >>site.tmp
20658+ @echo "set objdir \"`pwd`\"" >>site.tmp
20659 @echo 'set build_alias "$(build_alias)"' >>site.tmp
20660 @echo 'set build_triplet $(build_triplet)' >>site.tmp
20661 @echo 'set host_alias "$(host_alias)"' >>site.tmp
20662@@ -1174,8 +1200,10 @@ distclean-DEJAGNU:
20663 -l='$(DEJATOOL)'; for tool in $$l; do \
20664 rm -f $$tool.sum $$tool.log; \
20665 done
20666+distdir: $(BUILT_SOURCES)
20667+ $(MAKE) $(AM_MAKEFLAGS) distdir-am
20668
20669-distdir: $(DISTFILES)
20670+distdir-am: $(DISTFILES)
20671 $(am__remove_distdir)
20672 test -d "$(distdir)" || mkdir "$(distdir)"
20673 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
20674@@ -1233,6 +1261,10 @@ dist-xz: distdir
20675 tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz
20676 $(am__post_remove_distdir)
20677
20678+dist-zstd: distdir
20679+ tardir=$(distdir) && $(am__tar) | zstd -c $${ZSTD_CLEVEL-$${ZSTD_OPT--19}} >$(distdir).tar.zst
20680+ $(am__post_remove_distdir)
20681+
20682 dist-tarZ: distdir
20683 @echo WARNING: "Support for distribution archives compressed with" \
20684 "legacy program 'compress' is deprecated." >&2
20685@@ -1275,6 +1307,8 @@ distcheck: dist
20686 eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).shar.gz | unshar ;;\
20687 *.zip*) \
20688 unzip $(distdir).zip ;;\
20689+ *.tar.zst*) \
20690+ zstd -dc $(distdir).tar.zst | $(am__untar) ;;\
20691 esac
20692 chmod -R a-w $(distdir)
20693 chmod u+w $(distdir)
20694@@ -1290,7 +1324,7 @@ distcheck: dist
20695 $(DISTCHECK_CONFIGURE_FLAGS) \
20696 --srcdir=../.. --prefix="$$dc_install_base" \
20697 && $(MAKE) $(AM_MAKEFLAGS) \
20698- && $(MAKE) $(AM_MAKEFLAGS) dvi \
20699+ && $(MAKE) $(AM_MAKEFLAGS) $(AM_DISTCHECK_DVI_TARGET) \
20700 && $(MAKE) $(AM_MAKEFLAGS) check \
20701 && $(MAKE) $(AM_MAKEFLAGS) install \
20702 && $(MAKE) $(AM_MAKEFLAGS) installcheck \
20703@@ -1346,6 +1380,8 @@ check-am: all-am
20704 $(MAKE) $(AM_MAKEFLAGS) check-DEJAGNU
20705 check: check-am
20706 all-am: Makefile $(INFO_DEPS) $(LTLIBRARIES) $(HEADERS) config.h
20707+install-checkPROGRAMS: install-libLTLIBRARIES
20708+
20709 installdirs:
20710 for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(infodir)" "$(DESTDIR)$(includedir)"; do \
20711 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
20712@@ -1398,7 +1434,16 @@ clean-am: clean-aminfo clean-checkPROGRAMS clean-generic \
20713
20714 distclean: distclean-am
20715 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
20716- -rm -rf ./$(DEPDIR) testsuite/libsframe.decode/$(DEPDIR) testsuite/libsframe.encode/$(DEPDIR) testsuite/libsframe.find/$(DEPDIR)
20717+ -rm -f ./$(DEPDIR)/libsframe_la-sframe-dump.Plo
20718+ -rm -f ./$(DEPDIR)/libsframe_la-sframe-error.Plo
20719+ -rm -f ./$(DEPDIR)/libsframe_la-sframe.Plo
20720+ -rm -f testsuite/libsframe.decode/$(DEPDIR)/be_flipping-be-flipping.Po
20721+ -rm -f testsuite/libsframe.decode/$(DEPDIR)/frecnt_1-frecnt-1.Po
20722+ -rm -f testsuite/libsframe.decode/$(DEPDIR)/frecnt_2-frecnt-2.Po
20723+ -rm -f testsuite/libsframe.encode/$(DEPDIR)/encode_1-encode-1.Po
20724+ -rm -f testsuite/libsframe.find/$(DEPDIR)/findfre_1-findfre-1.Po
20725+ -rm -f testsuite/libsframe.find/$(DEPDIR)/findfunc_1-findfunc-1.Po
20726+ -rm -f testsuite/libsframe.find/$(DEPDIR)/plt_findfre_1-plt-findfre-1.Po
20727 -rm -f Makefile
20728 distclean-am: clean-am distclean-DEJAGNU distclean-compile \
20729 distclean-generic distclean-hdr distclean-libtool \
20730@@ -1538,7 +1583,16 @@ installcheck-am:
20731 maintainer-clean: maintainer-clean-am
20732 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
20733 -rm -rf $(top_srcdir)/autom4te.cache
20734- -rm -rf ./$(DEPDIR) testsuite/libsframe.decode/$(DEPDIR) testsuite/libsframe.encode/$(DEPDIR) testsuite/libsframe.find/$(DEPDIR)
20735+ -rm -f ./$(DEPDIR)/libsframe_la-sframe-dump.Plo
20736+ -rm -f ./$(DEPDIR)/libsframe_la-sframe-error.Plo
20737+ -rm -f ./$(DEPDIR)/libsframe_la-sframe.Plo
20738+ -rm -f testsuite/libsframe.decode/$(DEPDIR)/be_flipping-be-flipping.Po
20739+ -rm -f testsuite/libsframe.decode/$(DEPDIR)/frecnt_1-frecnt-1.Po
20740+ -rm -f testsuite/libsframe.decode/$(DEPDIR)/frecnt_2-frecnt-2.Po
20741+ -rm -f testsuite/libsframe.encode/$(DEPDIR)/encode_1-encode-1.Po
20742+ -rm -f testsuite/libsframe.find/$(DEPDIR)/findfre_1-findfre-1.Po
20743+ -rm -f testsuite/libsframe.find/$(DEPDIR)/findfunc_1-findfunc-1.Po
20744+ -rm -f testsuite/libsframe.find/$(DEPDIR)/plt_findfre_1-plt-findfre-1.Po
20745 -rm -f Makefile
20746 maintainer-clean-am: distclean-am maintainer-clean-aminfo \
20747 maintainer-clean-generic
20748@@ -1562,28 +1616,28 @@ uninstall-am: uninstall-dvi-am uninstall-html-am \
20749
20750 .MAKE: all check-am install-am install-strip
20751
20752-.PHONY: CTAGS GTAGS TAGS all all-am am--refresh check check-DEJAGNU \
20753- check-am clean clean-aminfo clean-checkPROGRAMS clean-cscope \
20754- clean-generic clean-libLTLIBRARIES clean-libtool \
20755+.PHONY: CTAGS GTAGS TAGS all all-am am--depfiles am--refresh check \
20756+ check-DEJAGNU check-am clean clean-aminfo clean-checkPROGRAMS \
20757+ clean-cscope clean-generic clean-libLTLIBRARIES clean-libtool \
20758 clean-noinstLTLIBRARIES cscope cscopelist-am ctags ctags-am \
20759 dist dist-all dist-bzip2 dist-gzip dist-info dist-lzip \
20760- dist-shar dist-tarZ dist-xz dist-zip distcheck distclean \
20761- distclean-DEJAGNU distclean-compile distclean-generic \
20762- distclean-hdr distclean-libtool distclean-tags distcleancheck \
20763- distdir distuninstallcheck dvi dvi-am html html-am html-local \
20764- info info-am install install-am install-data install-data-am \
20765- install-dvi install-dvi-am install-exec install-exec-am \
20766- install-html install-html-am install-includeHEADERS \
20767- install-info install-info-am install-libLTLIBRARIES \
20768- install-man install-pdf install-pdf-am install-ps \
20769- install-ps-am install-strip installcheck installcheck-am \
20770- installdirs maintainer-clean maintainer-clean-aminfo \
20771- maintainer-clean-generic mostlyclean mostlyclean-aminfo \
20772- mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
20773- pdf pdf-am ps ps-am tags tags-am uninstall uninstall-am \
20774- uninstall-dvi-am uninstall-html-am uninstall-includeHEADERS \
20775- uninstall-info-am uninstall-libLTLIBRARIES uninstall-pdf-am \
20776- uninstall-ps-am
20777+ dist-shar dist-tarZ dist-xz dist-zip dist-zstd distcheck \
20778+ distclean distclean-DEJAGNU distclean-compile \
20779+ distclean-generic distclean-hdr distclean-libtool \
20780+ distclean-tags distcleancheck distdir distuninstallcheck dvi \
20781+ dvi-am html html-am html-local info info-am install install-am \
20782+ install-data install-data-am install-dvi install-dvi-am \
20783+ install-exec install-exec-am install-html install-html-am \
20784+ install-includeHEADERS install-info install-info-am \
20785+ install-libLTLIBRARIES install-man install-pdf install-pdf-am \
20786+ install-ps install-ps-am install-strip installcheck \
20787+ installcheck-am installdirs maintainer-clean \
20788+ maintainer-clean-aminfo maintainer-clean-generic mostlyclean \
20789+ mostlyclean-aminfo mostlyclean-compile mostlyclean-generic \
20790+ mostlyclean-libtool pdf pdf-am ps ps-am tags tags-am uninstall \
20791+ uninstall-am uninstall-dvi-am uninstall-html-am \
20792+ uninstall-includeHEADERS uninstall-info-am \
20793+ uninstall-libLTLIBRARIES uninstall-pdf-am uninstall-ps-am
20794
20795 .PRECIOUS: Makefile
20796
20797diff --git a/libsframe/aclocal.m4 b/libsframe/aclocal.m4
20798index 8804d9fb42b..f4974423bd6 100644
20799--- a/libsframe/aclocal.m4
20800+++ b/libsframe/aclocal.m4
20801@@ -1,6 +1,6 @@
20802-# generated automatically by aclocal 1.15.1 -*- Autoconf -*-
20803+# generated automatically by aclocal 1.16.5 -*- Autoconf -*-
20804
20805-# Copyright (C) 1996-2017 Free Software Foundation, Inc.
20806+# Copyright (C) 1996-2021 Free Software Foundation, Inc.
20807
20808 # This file is free software; the Free Software Foundation
20809 # gives unlimited permission to copy and/or distribute it,
20810@@ -20,7 +20,7 @@ You have another version of autoconf. It may work, but is not guaranteed to.
20811 If you have problems, you may need to regenerate the build system entirely.
20812 To do so, use the procedure documented by the package, typically 'autoreconf'.])])
20813
20814-# Copyright (C) 2002-2017 Free Software Foundation, Inc.
20815+# Copyright (C) 2002-2021 Free Software Foundation, Inc.
20816 #
20817 # This file is free software; the Free Software Foundation
20818 # gives unlimited permission to copy and/or distribute it,
20819@@ -32,10 +32,10 @@ To do so, use the procedure documented by the package, typically 'autoreconf'.])
20820 # generated from the m4 files accompanying Automake X.Y.
20821 # (This private macro should not be called outside this file.)
20822 AC_DEFUN([AM_AUTOMAKE_VERSION],
20823-[am__api_version='1.15'
20824+[am__api_version='1.16'
20825 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
20826 dnl require some minimum version. Point them to the right macro.
20827-m4_if([$1], [1.15.1], [],
20828+m4_if([$1], [1.16.5], [],
20829 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
20830 ])
20831
20832@@ -51,12 +51,12 @@ m4_define([_AM_AUTOCONF_VERSION], [])
20833 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
20834 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
20835 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
20836-[AM_AUTOMAKE_VERSION([1.15.1])dnl
20837+[AM_AUTOMAKE_VERSION([1.16.5])dnl
20838 m4_ifndef([AC_AUTOCONF_VERSION],
20839 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
20840 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
20841
20842-# Copyright (C) 2011-2017 Free Software Foundation, Inc.
20843+# Copyright (C) 2011-2021 Free Software Foundation, Inc.
20844 #
20845 # This file is free software; the Free Software Foundation
20846 # gives unlimited permission to copy and/or distribute it,
20847@@ -118,7 +118,7 @@ AC_SUBST([AR])dnl
20848
20849 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
20850
20851-# Copyright (C) 2001-2017 Free Software Foundation, Inc.
20852+# Copyright (C) 2001-2021 Free Software Foundation, Inc.
20853 #
20854 # This file is free software; the Free Software Foundation
20855 # gives unlimited permission to copy and/or distribute it,
20856@@ -170,7 +170,7 @@ am_aux_dir=`cd "$ac_aux_dir" && pwd`
20857
20858 # AM_CONDITIONAL -*- Autoconf -*-
20859
20860-# Copyright (C) 1997-2017 Free Software Foundation, Inc.
20861+# Copyright (C) 1997-2021 Free Software Foundation, Inc.
20862 #
20863 # This file is free software; the Free Software Foundation
20864 # gives unlimited permission to copy and/or distribute it,
20865@@ -201,7 +201,7 @@ AC_CONFIG_COMMANDS_PRE(
20866 Usually this means the macro was only invoked conditionally.]])
20867 fi])])
20868
20869-# Copyright (C) 1999-2017 Free Software Foundation, Inc.
20870+# Copyright (C) 1999-2021 Free Software Foundation, Inc.
20871 #
20872 # This file is free software; the Free Software Foundation
20873 # gives unlimited permission to copy and/or distribute it,
20874@@ -392,13 +392,12 @@ _AM_SUBST_NOTMAKE([am__nodep])dnl
20875
20876 # Generate code to set up dependency tracking. -*- Autoconf -*-
20877
20878-# Copyright (C) 1999-2017 Free Software Foundation, Inc.
20879+# Copyright (C) 1999-2021 Free Software Foundation, Inc.
20880 #
20881 # This file is free software; the Free Software Foundation
20882 # gives unlimited permission to copy and/or distribute it,
20883 # with or without modifications, as long as this notice is preserved.
20884
20885-
20886 # _AM_OUTPUT_DEPENDENCY_COMMANDS
20887 # ------------------------------
20888 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
20889@@ -406,49 +405,43 @@ AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
20890 # Older Autoconf quotes --file arguments for eval, but not when files
20891 # are listed without --file. Let's play safe and only enable the eval
20892 # if we detect the quoting.
20893- case $CONFIG_FILES in
20894- *\'*) eval set x "$CONFIG_FILES" ;;
20895- *) set x $CONFIG_FILES ;;
20896- esac
20897+ # TODO: see whether this extra hack can be removed once we start
20898+ # requiring Autoconf 2.70 or later.
20899+ AS_CASE([$CONFIG_FILES],
20900+ [*\'*], [eval set x "$CONFIG_FILES"],
20901+ [*], [set x $CONFIG_FILES])
20902 shift
20903- for mf
20904+ # Used to flag and report bootstrapping failures.
20905+ am_rc=0
20906+ for am_mf
20907 do
20908 # Strip MF so we end up with the name of the file.
20909- mf=`echo "$mf" | sed -e 's/:.*$//'`
20910- # Check whether this is an Automake generated Makefile or not.
20911- # We used to match only the files named 'Makefile.in', but
20912- # some people rename them; so instead we look at the file content.
20913- # Grep'ing the first line is not enough: some people post-process
20914- # each Makefile.in and add a new line on top of each file to say so.
20915- # Grep'ing the whole file is not good either: AIX grep has a line
20916+ am_mf=`AS_ECHO(["$am_mf"]) | sed -e 's/:.*$//'`
20917+ # Check whether this is an Automake generated Makefile which includes
20918+ # dependency-tracking related rules and includes.
20919+ # Grep'ing the whole file directly is not great: AIX grep has a line
20920 # limit of 2048, but all sed's we know have understand at least 4000.
20921- if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20922- dirpart=`AS_DIRNAME("$mf")`
20923- else
20924- continue
20925- fi
20926- # Extract the definition of DEPDIR, am__include, and am__quote
20927- # from the Makefile without running 'make'.
20928- DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20929- test -z "$DEPDIR" && continue
20930- am__include=`sed -n 's/^am__include = //p' < "$mf"`
20931- test -z "$am__include" && continue
20932- am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20933- # Find all dependency output files, they are included files with
20934- # $(DEPDIR) in their names. We invoke sed twice because it is the
20935- # simplest approach to changing $(DEPDIR) to its actual value in the
20936- # expansion.
20937- for file in `sed -n "
20938- s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20939- sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
20940- # Make sure the directory exists.
20941- test -f "$dirpart/$file" && continue
20942- fdir=`AS_DIRNAME(["$file"])`
20943- AS_MKDIR_P([$dirpart/$fdir])
20944- # echo "creating $dirpart/$file"
20945- echo '# dummy' > "$dirpart/$file"
20946- done
20947+ sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
20948+ || continue
20949+ am_dirpart=`AS_DIRNAME(["$am_mf"])`
20950+ am_filepart=`AS_BASENAME(["$am_mf"])`
20951+ AM_RUN_LOG([cd "$am_dirpart" \
20952+ && sed -e '/# am--include-marker/d' "$am_filepart" \
20953+ | $MAKE -f - am--depfiles]) || am_rc=$?
20954 done
20955+ if test $am_rc -ne 0; then
20956+ AC_MSG_FAILURE([Something went wrong bootstrapping makefile fragments
20957+ for automatic dependency tracking. If GNU make was not used, consider
20958+ re-running the configure script with MAKE="gmake" (or whatever is
20959+ necessary). You can also try re-running configure with the
20960+ '--disable-dependency-tracking' option to at least be able to build
20961+ the package (albeit without support for automatic dependency tracking).])
20962+ fi
20963+ AS_UNSET([am_dirpart])
20964+ AS_UNSET([am_filepart])
20965+ AS_UNSET([am_mf])
20966+ AS_UNSET([am_rc])
20967+ rm -f conftest-deps.mk
20968 }
20969 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
20970
20971@@ -457,18 +450,17 @@ AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
20972 # -----------------------------
20973 # This macro should only be invoked once -- use via AC_REQUIRE.
20974 #
20975-# This code is only required when automatic dependency tracking
20976-# is enabled. FIXME. This creates each '.P' file that we will
20977-# need in order to bootstrap the dependency handling code.
20978+# This code is only required when automatic dependency tracking is enabled.
20979+# This creates each '.Po' and '.Plo' makefile fragment that we'll need in
20980+# order to bootstrap the dependency handling code.
20981 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
20982 [AC_CONFIG_COMMANDS([depfiles],
20983 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
20984- [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
20985-])
20986+ [AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"])])
20987
20988 # Do all the work for Automake. -*- Autoconf -*-
20989
20990-# Copyright (C) 1996-2017 Free Software Foundation, Inc.
20991+# Copyright (C) 1996-2021 Free Software Foundation, Inc.
20992 #
20993 # This file is free software; the Free Software Foundation
20994 # gives unlimited permission to copy and/or distribute it,
20995@@ -496,6 +488,10 @@ m4_defn([AC_PROG_CC])
20996 # release and drop the old call support.
20997 AC_DEFUN([AM_INIT_AUTOMAKE],
20998 [AC_PREREQ([2.65])dnl
20999+m4_ifdef([_$0_ALREADY_INIT],
21000+ [m4_fatal([$0 expanded multiple times
21001+]m4_defn([_$0_ALREADY_INIT]))],
21002+ [m4_define([_$0_ALREADY_INIT], m4_expansion_stack)])dnl
21003 dnl Autoconf wants to disallow AM_ names. We explicitly allow
21004 dnl the ones we care about.
21005 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
21006@@ -532,7 +528,7 @@ m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
21007 [_AM_SET_OPTIONS([$1])dnl
21008 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
21009 m4_if(
21010- m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
21011+ m4_ifset([AC_PACKAGE_NAME], [ok]):m4_ifset([AC_PACKAGE_VERSION], [ok]),
21012 [ok:ok],,
21013 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
21014 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
21015@@ -555,8 +551,8 @@ AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
21016 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
21017 # For better backward compatibility. To be removed once Automake 1.9.x
21018 # dies out for good. For more background, see:
21019-# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
21020-# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
21021+# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
21022+# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
21023 AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
21024 # We need awk for the "check" target (and possibly the TAP driver). The
21025 # system "awk" is bad on some platforms.
21026@@ -584,6 +580,20 @@ AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
21027 [m4_define([AC_PROG_OBJCXX],
21028 m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
21029 ])
21030+# Variables for tags utilities; see am/tags.am
21031+if test -z "$CTAGS"; then
21032+ CTAGS=ctags
21033+fi
21034+AC_SUBST([CTAGS])
21035+if test -z "$ETAGS"; then
21036+ ETAGS=etags
21037+fi
21038+AC_SUBST([ETAGS])
21039+if test -z "$CSCOPE"; then
21040+ CSCOPE=cscope
21041+fi
21042+AC_SUBST([CSCOPE])
21043+
21044 AC_REQUIRE([AM_SILENT_RULES])dnl
21045 dnl The testsuite driver may need to know about EXEEXT, so add the
21046 dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This
21047@@ -623,7 +633,7 @@ END
21048 Aborting the configuration process, to ensure you take notice of the issue.
21049
21050 You can download and install GNU coreutils to get an 'rm' implementation
21051-that behaves properly: <http://www.gnu.org/software/coreutils/>.
21052+that behaves properly: <https://www.gnu.org/software/coreutils/>.
21053
21054 If you want to complete the configuration process using your problematic
21055 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
21056@@ -665,7 +675,7 @@ for _am_header in $config_headers :; do
21057 done
21058 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
21059
21060-# Copyright (C) 2001-2017 Free Software Foundation, Inc.
21061+# Copyright (C) 2001-2021 Free Software Foundation, Inc.
21062 #
21063 # This file is free software; the Free Software Foundation
21064 # gives unlimited permission to copy and/or distribute it,
21065@@ -689,7 +699,7 @@ AC_SUBST([install_sh])])
21066 # Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
21067 # From Jim Meyering
21068
21069-# Copyright (C) 1996-2017 Free Software Foundation, Inc.
21070+# Copyright (C) 1996-2021 Free Software Foundation, Inc.
21071 #
21072 # This file is free software; the Free Software Foundation
21073 # gives unlimited permission to copy and/or distribute it,
21074@@ -724,7 +734,7 @@ AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
21075
21076 # Check to see how 'make' treats includes. -*- Autoconf -*-
21077
21078-# Copyright (C) 2001-2017 Free Software Foundation, Inc.
21079+# Copyright (C) 2001-2021 Free Software Foundation, Inc.
21080 #
21081 # This file is free software; the Free Software Foundation
21082 # gives unlimited permission to copy and/or distribute it,
21083@@ -732,49 +742,42 @@ AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
21084
21085 # AM_MAKE_INCLUDE()
21086 # -----------------
21087-# Check to see how make treats includes.
21088+# Check whether make has an 'include' directive that can support all
21089+# the idioms we need for our automatic dependency tracking code.
21090 AC_DEFUN([AM_MAKE_INCLUDE],
21091-[am_make=${MAKE-make}
21092-cat > confinc << 'END'
21093+[AC_MSG_CHECKING([whether ${MAKE-make} supports the include directive])
21094+cat > confinc.mk << 'END'
21095 am__doit:
21096- @echo this is the am__doit target
21097+ @echo this is the am__doit target >confinc.out
21098 .PHONY: am__doit
21099 END
21100-# If we don't find an include directive, just comment out the code.
21101-AC_MSG_CHECKING([for style of include used by $am_make])
21102 am__include="#"
21103 am__quote=
21104-_am_result=none
21105-# First try GNU make style include.
21106-echo "include confinc" > confmf
21107-# Ignore all kinds of additional output from 'make'.
21108-case `$am_make -s -f confmf 2> /dev/null` in #(
21109-*the\ am__doit\ target*)
21110- am__include=include
21111- am__quote=
21112- _am_result=GNU
21113- ;;
21114-esac
21115-# Now try BSD make style include.
21116-if test "$am__include" = "#"; then
21117- echo '.include "confinc"' > confmf
21118- case `$am_make -s -f confmf 2> /dev/null` in #(
21119- *the\ am__doit\ target*)
21120- am__include=.include
21121- am__quote="\""
21122- _am_result=BSD
21123- ;;
21124- esac
21125-fi
21126-AC_SUBST([am__include])
21127-AC_SUBST([am__quote])
21128-AC_MSG_RESULT([$_am_result])
21129-rm -f confinc confmf
21130-])
21131+# BSD make does it like this.
21132+echo '.include "confinc.mk" # ignored' > confmf.BSD
21133+# Other make implementations (GNU, Solaris 10, AIX) do it like this.
21134+echo 'include confinc.mk # ignored' > confmf.GNU
21135+_am_result=no
21136+for s in GNU BSD; do
21137+ AM_RUN_LOG([${MAKE-make} -f confmf.$s && cat confinc.out])
21138+ AS_CASE([$?:`cat confinc.out 2>/dev/null`],
21139+ ['0:this is the am__doit target'],
21140+ [AS_CASE([$s],
21141+ [BSD], [am__include='.include' am__quote='"'],
21142+ [am__include='include' am__quote=''])])
21143+ if test "$am__include" != "#"; then
21144+ _am_result="yes ($s style)"
21145+ break
21146+ fi
21147+done
21148+rm -f confinc.* confmf.*
21149+AC_MSG_RESULT([${_am_result}])
21150+AC_SUBST([am__include])])
21151+AC_SUBST([am__quote])])
21152
21153 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
21154
21155-# Copyright (C) 1997-2017 Free Software Foundation, Inc.
21156+# Copyright (C) 1997-2021 Free Software Foundation, Inc.
21157 #
21158 # This file is free software; the Free Software Foundation
21159 # gives unlimited permission to copy and/or distribute it,
21160@@ -795,12 +798,7 @@ AC_DEFUN([AM_MISSING_HAS_RUN],
21161 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
21162 AC_REQUIRE_AUX_FILE([missing])dnl
21163 if test x"${MISSING+set}" != xset; then
21164- case $am_aux_dir in
21165- *\ * | *\ *)
21166- MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
21167- *)
21168- MISSING="\${SHELL} $am_aux_dir/missing" ;;
21169- esac
21170+ MISSING="\${SHELL} '$am_aux_dir/missing'"
21171 fi
21172 # Use eval to expand $SHELL
21173 if eval "$MISSING --is-lightweight"; then
21174@@ -813,7 +811,7 @@ fi
21175
21176 # Helper functions for option handling. -*- Autoconf -*-
21177
21178-# Copyright (C) 2001-2017 Free Software Foundation, Inc.
21179+# Copyright (C) 2001-2021 Free Software Foundation, Inc.
21180 #
21181 # This file is free software; the Free Software Foundation
21182 # gives unlimited permission to copy and/or distribute it,
21183@@ -842,7 +840,7 @@ AC_DEFUN([_AM_SET_OPTIONS],
21184 AC_DEFUN([_AM_IF_OPTION],
21185 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
21186
21187-# Copyright (C) 1999-2017 Free Software Foundation, Inc.
21188+# Copyright (C) 1999-2021 Free Software Foundation, Inc.
21189 #
21190 # This file is free software; the Free Software Foundation
21191 # gives unlimited permission to copy and/or distribute it,
21192@@ -889,7 +887,7 @@ AC_LANG_POP([C])])
21193 # For backward compatibility.
21194 AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
21195
21196-# Copyright (C) 2001-2017 Free Software Foundation, Inc.
21197+# Copyright (C) 2001-2021 Free Software Foundation, Inc.
21198 #
21199 # This file is free software; the Free Software Foundation
21200 # gives unlimited permission to copy and/or distribute it,
21201@@ -908,7 +906,7 @@ AC_DEFUN([AM_RUN_LOG],
21202
21203 # Check to make sure that the build environment is sane. -*- Autoconf -*-
21204
21205-# Copyright (C) 1996-2017 Free Software Foundation, Inc.
21206+# Copyright (C) 1996-2021 Free Software Foundation, Inc.
21207 #
21208 # This file is free software; the Free Software Foundation
21209 # gives unlimited permission to copy and/or distribute it,
21210@@ -989,7 +987,7 @@ AC_CONFIG_COMMANDS_PRE(
21211 rm -f conftest.file
21212 ])
21213
21214-# Copyright (C) 2009-2017 Free Software Foundation, Inc.
21215+# Copyright (C) 2009-2021 Free Software Foundation, Inc.
21216 #
21217 # This file is free software; the Free Software Foundation
21218 # gives unlimited permission to copy and/or distribute it,
21219@@ -1049,7 +1047,7 @@ AC_SUBST([AM_BACKSLASH])dnl
21220 _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
21221 ])
21222
21223-# Copyright (C) 2001-2017 Free Software Foundation, Inc.
21224+# Copyright (C) 2001-2021 Free Software Foundation, Inc.
21225 #
21226 # This file is free software; the Free Software Foundation
21227 # gives unlimited permission to copy and/or distribute it,
21228@@ -1077,7 +1075,7 @@ fi
21229 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
21230 AC_SUBST([INSTALL_STRIP_PROGRAM])])
21231
21232-# Copyright (C) 2006-2017 Free Software Foundation, Inc.
21233+# Copyright (C) 2006-2021 Free Software Foundation, Inc.
21234 #
21235 # This file is free software; the Free Software Foundation
21236 # gives unlimited permission to copy and/or distribute it,
21237@@ -1096,7 +1094,7 @@ AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
21238
21239 # Check how to create a tarball. -*- Autoconf -*-
21240
21241-# Copyright (C) 2004-2017 Free Software Foundation, Inc.
21242+# Copyright (C) 2004-2021 Free Software Foundation, Inc.
21243 #
21244 # This file is free software; the Free Software Foundation
21245 # gives unlimited permission to copy and/or distribute it,
21246diff --git a/libsframe/configure b/libsframe/configure
21247index 4727eff533a..ca3885ad105 100755
21248--- a/libsframe/configure
21249+++ b/libsframe/configure
21250@@ -658,6 +658,8 @@ OTOOL
21251 LIPO
21252 NMEDIT
21253 DSYMUTIL
21254+MANIFEST_TOOL
21255+DLLTOOL
21256 OBJDUMP
21257 LN_S
21258 NM
21259@@ -674,6 +676,9 @@ AM_BACKSLASH
21260 AM_DEFAULT_VERBOSITY
21261 AM_DEFAULT_V
21262 AM_V
21263+CSCOPE
21264+ETAGS
21265+CTAGS
21266 am__fastdepCC_FALSE
21267 am__fastdepCC_TRUE
21268 CCDEPMODE
21269@@ -681,7 +686,6 @@ am__nodep
21270 AMDEPBACKSLASH
21271 AMDEP_FALSE
21272 AMDEP_TRUE
21273-am__quote
21274 am__include
21275 DEPDIR
21276 am__untar
21277@@ -766,7 +770,8 @@ PACKAGE_VERSION
21278 PACKAGE_TARNAME
21279 PACKAGE_NAME
21280 PATH_SEPARATOR
21281-SHELL'
21282+SHELL
21283+am__quote'
21284 ac_subst_files=''
21285 ac_user_opts='
21286 enable_option_checking
21287@@ -777,6 +782,7 @@ enable_static
21288 with_pic
21289 enable_fast_install
21290 with_gnu_ld
21291+with_libtool_sysroot
21292 enable_libtool_lock
21293 enable_largefile
21294 enable_maintainer_mode
21295@@ -1433,6 +1439,8 @@ Optional Packages:
21296 --with-pic try to use only PIC/non-PIC objects [default=use
21297 both]
21298 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
21299+ --with-libtool-sysroot=DIR Search for dependent libraries within DIR
21300+ (or the compiler's sysroot if not specified).
21301
21302 Some influential environment variables:
21303 CC C compiler command
21304@@ -3727,7 +3735,7 @@ $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
21305 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
21306
21307
21308-am__api_version='1.15'
21309+am__api_version='1.16'
21310
21311 # Find a good install program. We prefer a C program (faster),
21312 # so one script is as good as another. But avoid the broken or
21313@@ -3900,12 +3908,7 @@ ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
21314 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
21315
21316 if test x"${MISSING+set}" != xset; then
21317- case $am_aux_dir in
21318- *\ * | *\ *)
21319- MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
21320- *)
21321- MISSING="\${SHELL} $am_aux_dir/missing" ;;
21322- esac
21323+ MISSING="\${SHELL} '$am_aux_dir/missing'"
21324 fi
21325 # Use eval to expand $SHELL
21326 if eval "$MISSING --is-lightweight"; then
21327@@ -4153,45 +4156,45 @@ DEPDIR="${am__leading_dot}deps"
21328
21329 ac_config_commands="$ac_config_commands depfiles"
21330
21331-
21332-am_make=${MAKE-make}
21333-cat > confinc << 'END'
21334+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
21335+$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
21336+cat > confinc.mk << 'END'
21337 am__doit:
21338- @echo this is the am__doit target
21339+ @echo this is the am__doit target >confinc.out
21340 .PHONY: am__doit
21341 END
21342-# If we don't find an include directive, just comment out the code.
21343-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
21344-$as_echo_n "checking for style of include used by $am_make... " >&6; }
21345 am__include="#"
21346 am__quote=
21347-_am_result=none
21348-# First try GNU make style include.
21349-echo "include confinc" > confmf
21350-# Ignore all kinds of additional output from 'make'.
21351-case `$am_make -s -f confmf 2> /dev/null` in #(
21352-*the\ am__doit\ target*)
21353- am__include=include
21354- am__quote=
21355- _am_result=GNU
21356- ;;
21357-esac
21358-# Now try BSD make style include.
21359-if test "$am__include" = "#"; then
21360- echo '.include "confinc"' > confmf
21361- case `$am_make -s -f confmf 2> /dev/null` in #(
21362- *the\ am__doit\ target*)
21363- am__include=.include
21364- am__quote="\""
21365- _am_result=BSD
21366+# BSD make does it like this.
21367+echo '.include "confinc.mk" # ignored' > confmf.BSD
21368+# Other make implementations (GNU, Solaris 10, AIX) do it like this.
21369+echo 'include confinc.mk # ignored' > confmf.GNU
21370+_am_result=no
21371+for s in GNU BSD; do
21372+ { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
21373+ (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
21374+ ac_status=$?
21375+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
21376+ (exit $ac_status); }
21377+ case $?:`cat confinc.out 2>/dev/null` in #(
21378+ '0:this is the am__doit target') :
21379+ case $s in #(
21380+ BSD) :
21381+ am__include='.include' am__quote='"' ;; #(
21382+ *) :
21383+ am__include='include' am__quote='' ;;
21384+esac ;; #(
21385+ *) :
21386 ;;
21387- esac
21388-fi
21389-
21390-
21391-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
21392-$as_echo "$_am_result" >&6; }
21393-rm -f confinc confmf
21394+esac
21395+ if test "$am__include" != "#"; then
21396+ _am_result="yes ($s style)"
21397+ break
21398+ fi
21399+done
21400+rm -f confinc.* confmf.*
21401+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
21402+$as_echo "${_am_result}" >&6; }
21403
21404 # Check whether --enable-dependency-tracking was given.
21405 if test "${enable_dependency_tracking+set}" = set; then :
21406@@ -4303,8 +4306,8 @@ MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
21407
21408 # For better backward compatibility. To be removed once Automake 1.9.x
21409 # dies out for good. For more background, see:
21410-# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
21411-# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
21412+# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
21413+# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
21414 mkdir_p='$(MKDIR_P)'
21415
21416 # We need awk for the "check" target (and possibly the TAP driver). The
21417@@ -4451,6 +4454,20 @@ else
21418 fi
21419
21420
21421+# Variables for tags utilities; see am/tags.am
21422+if test -z "$CTAGS"; then
21423+ CTAGS=ctags
21424+fi
21425+
21426+if test -z "$ETAGS"; then
21427+ ETAGS=etags
21428+fi
21429+
21430+if test -z "$CSCOPE"; then
21431+ CSCOPE=cscope
21432+fi
21433+
21434+
21435
21436 # POSIX will say in a future version that running "rm -f" with no argument
21437 # is OK; and we want to be able to make that assumption in our Makefile
21438@@ -4483,7 +4500,7 @@ END
21439 Aborting the configuration process, to ensure you take notice of the issue.
21440
21441 You can download and install GNU coreutils to get an 'rm' implementation
21442-that behaves properly: <http://www.gnu.org/software/coreutils/>.
21443+that behaves properly: <https://www.gnu.org/software/coreutils/>.
21444
21445 If you want to complete the configuration process using your problematic
21446 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
21447@@ -5468,8 +5485,8 @@ esac
21448
21449
21450
21451-macro_version='2.2.7a'
21452-macro_revision='1.3134'
21453+macro_version='2.4'
21454+macro_revision='1.3293'
21455
21456
21457
21458@@ -5509,7 +5526,7 @@ ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
21459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
21460 $as_echo_n "checking how to print strings... " >&6; }
21461 # Test print first, because it will be a builtin if present.
21462-if test "X`print -r -- -n 2>/dev/null`" = X-n && \
21463+if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
21464 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
21465 ECHO='print -r --'
21466 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
21467@@ -6202,8 +6219,8 @@ $as_echo_n "checking whether the shell understands some XSI constructs... " >&6;
21468 # Try some XSI features
21469 xsi_shell=no
21470 ( _lt_dummy="a/b/c"
21471- test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
21472- = c,a/b,, \
21473+ test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
21474+ = c,a/b,b/c, \
21475 && eval 'test $(( 1 + 1 )) -eq 2 \
21476 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
21477 && xsi_shell=yes
21478@@ -6252,6 +6269,80 @@ esac
21479
21480
21481
21482+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
21483+$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
21484+if ${lt_cv_to_host_file_cmd+:} false; then :
21485+ $as_echo_n "(cached) " >&6
21486+else
21487+ case $host in
21488+ *-*-mingw* )
21489+ case $build in
21490+ *-*-mingw* ) # actually msys
21491+ lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
21492+ ;;
21493+ *-*-cygwin* )
21494+ lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
21495+ ;;
21496+ * ) # otherwise, assume *nix
21497+ lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
21498+ ;;
21499+ esac
21500+ ;;
21501+ *-*-cygwin* )
21502+ case $build in
21503+ *-*-mingw* ) # actually msys
21504+ lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
21505+ ;;
21506+ *-*-cygwin* )
21507+ lt_cv_to_host_file_cmd=func_convert_file_noop
21508+ ;;
21509+ * ) # otherwise, assume *nix
21510+ lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
21511+ ;;
21512+ esac
21513+ ;;
21514+ * ) # unhandled hosts (and "normal" native builds)
21515+ lt_cv_to_host_file_cmd=func_convert_file_noop
21516+ ;;
21517+esac
21518+
21519+fi
21520+
21521+to_host_file_cmd=$lt_cv_to_host_file_cmd
21522+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
21523+$as_echo "$lt_cv_to_host_file_cmd" >&6; }
21524+
21525+
21526+
21527+
21528+
21529+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
21530+$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
21531+if ${lt_cv_to_tool_file_cmd+:} false; then :
21532+ $as_echo_n "(cached) " >&6
21533+else
21534+ #assume ordinary cross tools, or native build.
21535+lt_cv_to_tool_file_cmd=func_convert_file_noop
21536+case $host in
21537+ *-*-mingw* )
21538+ case $build in
21539+ *-*-mingw* ) # actually msys
21540+ lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
21541+ ;;
21542+ esac
21543+ ;;
21544+esac
21545+
21546+fi
21547+
21548+to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21549+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
21550+$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
21551+
21552+
21553+
21554+
21555+
21556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
21557 $as_echo_n "checking for $LD option to reload object files... " >&6; }
21558 if ${lt_cv_ld_reload_flag+:} false; then :
21559@@ -6268,6 +6359,11 @@ case $reload_flag in
21560 esac
21561 reload_cmds='$LD$reload_flag -o $output$reload_objs'
21562 case $host_os in
21563+ cygwin* | mingw* | pw32* | cegcc*)
21564+ if test "$GCC" != yes; then
21565+ reload_cmds=false
21566+ fi
21567+ ;;
21568 darwin*)
21569 if test "$GCC" = yes; then
21570 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
21571@@ -6436,7 +6532,8 @@ mingw* | pw32*)
21572 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
21573 lt_cv_file_magic_cmd='func_win32_libid'
21574 else
21575- lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
21576+ # Keep this pattern in sync with the one in func_win32_libid.
21577+ lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
21578 lt_cv_file_magic_cmd='$OBJDUMP -f'
21579 fi
21580 ;;
21581@@ -6595,6 +6692,21 @@ esac
21582 fi
21583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
21584 $as_echo "$lt_cv_deplibs_check_method" >&6; }
21585+
21586+file_magic_glob=
21587+want_nocaseglob=no
21588+if test "$build" = "$host"; then
21589+ case $host_os in
21590+ mingw* | pw32*)
21591+ if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
21592+ want_nocaseglob=yes
21593+ else
21594+ file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
21595+ fi
21596+ ;;
21597+ esac
21598+fi
21599+
21600 file_magic_cmd=$lt_cv_file_magic_cmd
21601 deplibs_check_method=$lt_cv_deplibs_check_method
21602 test -z "$deplibs_check_method" && deplibs_check_method=unknown
21603@@ -6610,6 +6722,157 @@ test -z "$deplibs_check_method" && deplibs_check_method=unknown
21604
21605
21606
21607+
21608+
21609+
21610+
21611+
21612+
21613+
21614+
21615+
21616+
21617+if test -n "$ac_tool_prefix"; then
21618+ # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
21619+set dummy ${ac_tool_prefix}dlltool; ac_word=$2
21620+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21621+$as_echo_n "checking for $ac_word... " >&6; }
21622+if ${ac_cv_prog_DLLTOOL+:} false; then :
21623+ $as_echo_n "(cached) " >&6
21624+else
21625+ if test -n "$DLLTOOL"; then
21626+ ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
21627+else
21628+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21629+for as_dir in $PATH
21630+do
21631+ IFS=$as_save_IFS
21632+ test -z "$as_dir" && as_dir=.
21633+ for ac_exec_ext in '' $ac_executable_extensions; do
21634+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21635+ ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
21636+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21637+ break 2
21638+ fi
21639+done
21640+ done
21641+IFS=$as_save_IFS
21642+
21643+fi
21644+fi
21645+DLLTOOL=$ac_cv_prog_DLLTOOL
21646+if test -n "$DLLTOOL"; then
21647+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
21648+$as_echo "$DLLTOOL" >&6; }
21649+else
21650+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21651+$as_echo "no" >&6; }
21652+fi
21653+
21654+
21655+fi
21656+if test -z "$ac_cv_prog_DLLTOOL"; then
21657+ ac_ct_DLLTOOL=$DLLTOOL
21658+ # Extract the first word of "dlltool", so it can be a program name with args.
21659+set dummy dlltool; ac_word=$2
21660+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21661+$as_echo_n "checking for $ac_word... " >&6; }
21662+if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
21663+ $as_echo_n "(cached) " >&6
21664+else
21665+ if test -n "$ac_ct_DLLTOOL"; then
21666+ ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
21667+else
21668+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21669+for as_dir in $PATH
21670+do
21671+ IFS=$as_save_IFS
21672+ test -z "$as_dir" && as_dir=.
21673+ for ac_exec_ext in '' $ac_executable_extensions; do
21674+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21675+ ac_cv_prog_ac_ct_DLLTOOL="dlltool"
21676+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21677+ break 2
21678+ fi
21679+done
21680+ done
21681+IFS=$as_save_IFS
21682+
21683+fi
21684+fi
21685+ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
21686+if test -n "$ac_ct_DLLTOOL"; then
21687+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
21688+$as_echo "$ac_ct_DLLTOOL" >&6; }
21689+else
21690+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21691+$as_echo "no" >&6; }
21692+fi
21693+
21694+ if test "x$ac_ct_DLLTOOL" = x; then
21695+ DLLTOOL="false"
21696+ else
21697+ case $cross_compiling:$ac_tool_warned in
21698+yes:)
21699+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21700+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21701+ac_tool_warned=yes ;;
21702+esac
21703+ DLLTOOL=$ac_ct_DLLTOOL
21704+ fi
21705+else
21706+ DLLTOOL="$ac_cv_prog_DLLTOOL"
21707+fi
21708+
21709+test -z "$DLLTOOL" && DLLTOOL=dlltool
21710+
21711+
21712+
21713+
21714+
21715+
21716+
21717+
21718+
21719+
21720+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
21721+$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
21722+if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
21723+ $as_echo_n "(cached) " >&6
21724+else
21725+ lt_cv_sharedlib_from_linklib_cmd='unknown'
21726+
21727+case $host_os in
21728+cygwin* | mingw* | pw32* | cegcc*)
21729+ # two different shell functions defined in ltmain.sh
21730+ # decide which to use based on capabilities of $DLLTOOL
21731+ case `$DLLTOOL --help 2>&1` in
21732+ *--identify-strict*)
21733+ lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
21734+ ;;
21735+ *)
21736+ lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
21737+ ;;
21738+ esac
21739+ ;;
21740+*)
21741+ # fallback: assume linklib IS sharedlib
21742+ lt_cv_sharedlib_from_linklib_cmd="$ECHO"
21743+ ;;
21744+esac
21745+
21746+fi
21747+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
21748+$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
21749+sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
21750+test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
21751+
21752+
21753+
21754+
21755+
21756+
21757+
21758 plugin_option=
21759 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
21760 for plugin in $plugin_names; do
21761@@ -6624,8 +6887,10 @@ for plugin in $plugin_names; do
21762 done
21763
21764 if test -n "$ac_tool_prefix"; then
21765- # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
21766-set dummy ${ac_tool_prefix}ar; ac_word=$2
21767+ for ac_prog in ar
21768+ do
21769+ # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
21770+set dummy $ac_tool_prefix$ac_prog; ac_word=$2
21771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21772 $as_echo_n "checking for $ac_word... " >&6; }
21773 if ${ac_cv_prog_AR+:} false; then :
21774@@ -6641,7 +6906,7 @@ do
21775 test -z "$as_dir" && as_dir=.
21776 for ac_exec_ext in '' $ac_executable_extensions; do
21777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21778- ac_cv_prog_AR="${ac_tool_prefix}ar"
21779+ ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
21780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21781 break 2
21782 fi
21783@@ -6661,11 +6926,15 @@ $as_echo "no" >&6; }
21784 fi
21785
21786
21787+ test -n "$AR" && break
21788+ done
21789 fi
21790-if test -z "$ac_cv_prog_AR"; then
21791+if test -z "$AR"; then
21792 ac_ct_AR=$AR
21793- # Extract the first word of "ar", so it can be a program name with args.
21794-set dummy ar; ac_word=$2
21795+ for ac_prog in ar
21796+do
21797+ # Extract the first word of "$ac_prog", so it can be a program name with args.
21798+set dummy $ac_prog; ac_word=$2
21799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21800 $as_echo_n "checking for $ac_word... " >&6; }
21801 if ${ac_cv_prog_ac_ct_AR+:} false; then :
21802@@ -6681,7 +6950,7 @@ do
21803 test -z "$as_dir" && as_dir=.
21804 for ac_exec_ext in '' $ac_executable_extensions; do
21805 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21806- ac_cv_prog_ac_ct_AR="ar"
21807+ ac_cv_prog_ac_ct_AR="$ac_prog"
21808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21809 break 2
21810 fi
21811@@ -6700,6 +6969,10 @@ else
21812 $as_echo "no" >&6; }
21813 fi
21814
21815+
21816+ test -n "$ac_ct_AR" && break
21817+done
21818+
21819 if test "x$ac_ct_AR" = x; then
21820 AR="false"
21821 else
21822@@ -6711,29 +6984,81 @@ ac_tool_warned=yes ;;
21823 esac
21824 AR=$ac_ct_AR
21825 fi
21826-else
21827- AR="$ac_cv_prog_AR"
21828 fi
21829
21830-test -z "$AR" && AR=ar
21831-if test -n "$plugin_option"; then
21832- if $AR --help 2>&1 | grep -q "\--plugin"; then
21833- touch conftest.c
21834- $AR $plugin_option rc conftest.a conftest.c
21835- if test "$?" != 0; then
21836- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
21837+ touch conftest.c
21838+ $AR $plugin_option rc conftest.a conftest.c
21839+ if test "$?" != 0; then
21840+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
21841 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
21842- else
21843- AR="$AR $plugin_option"
21844- fi
21845- rm -f conftest.*
21846+ else
21847+ AR="$AR $plugin_option"
21848 fi
21849-fi
21850-test -z "$AR_FLAGS" && AR_FLAGS=cru
21851+ rm -f conftest.*
21852+: ${AR=ar}
21853+: ${AR_FLAGS=cru}
21854+
21855+
21856+
21857+
21858+
21859+
21860+
21861
21862
21863
21864
21865+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
21866+$as_echo_n "checking for archiver @FILE support... " >&6; }
21867+if ${lt_cv_ar_at_file+:} false; then :
21868+ $as_echo_n "(cached) " >&6
21869+else
21870+ lt_cv_ar_at_file=no
21871+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21872+/* end confdefs.h. */
21873+
21874+int
21875+main ()
21876+{
21877+
21878+ ;
21879+ return 0;
21880+}
21881+_ACEOF
21882+if ac_fn_c_try_compile "$LINENO"; then :
21883+ echo conftest.$ac_objext > conftest.lst
21884+ lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
21885+ { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
21886+ (eval $lt_ar_try) 2>&5
21887+ ac_status=$?
21888+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21889+ test $ac_status = 0; }
21890+ if test "$ac_status" -eq 0; then
21891+ # Ensure the archiver fails upon bogus file names.
21892+ rm -f conftest.$ac_objext libconftest.a
21893+ { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
21894+ (eval $lt_ar_try) 2>&5
21895+ ac_status=$?
21896+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21897+ test $ac_status = 0; }
21898+ if test "$ac_status" -ne 0; then
21899+ lt_cv_ar_at_file=@
21900+ fi
21901+ fi
21902+ rm -f conftest.* libconftest.a
21903+
21904+fi
21905+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21906+
21907+fi
21908+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
21909+$as_echo "$lt_cv_ar_at_file" >&6; }
21910+
21911+if test "x$lt_cv_ar_at_file" = xno; then
21912+ archiver_list_spec=
21913+else
21914+ archiver_list_spec=$lt_cv_ar_at_file
21915+fi
21916
21917
21918
21919@@ -7080,8 +7405,8 @@ esac
21920 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
21921
21922 # Transform an extracted symbol line into symbol name and symbol address
21923-lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
21924-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'"
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
21928 # Handle CRLF in mingw tool chain
21929 opt_cr=
21930@@ -7117,6 +7442,7 @@ for ac_symprfx in "" "_"; do
21931 else
21932 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
21933 fi
21934+ lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
21935
21936 # Check to see that the pipe works correctly.
21937 pipe_works=no
21938@@ -7158,6 +7484,18 @@ _LT_EOF
21939 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
21940 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
21941 cat <<_LT_EOF > conftest.$ac_ext
21942+/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
21943+#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
21944+/* DATA imports from DLLs on WIN32 con't be const, because runtime
21945+ relocations are performed -- see ld's documentation on pseudo-relocs. */
21946+# define LT_DLSYM_CONST
21947+#elif defined(__osf__)
21948+/* This system does not cope well with relocations in const data. */
21949+# define LT_DLSYM_CONST
21950+#else
21951+# define LT_DLSYM_CONST const
21952+#endif
21953+
21954 #ifdef __cplusplus
21955 extern "C" {
21956 #endif
21957@@ -7169,7 +7507,7 @@ _LT_EOF
21958 cat <<_LT_EOF >> conftest.$ac_ext
21959
21960 /* The mapping between symbol names and symbols. */
21961-const struct {
21962+LT_DLSYM_CONST struct {
21963 const char *name;
21964 void *address;
21965 }
21966@@ -7195,8 +7533,8 @@ static const void *lt_preloaded_setup() {
21967 _LT_EOF
21968 # Now try linking the two files.
21969 mv conftest.$ac_objext conftstm.$ac_objext
21970- lt_save_LIBS="$LIBS"
21971- lt_save_CFLAGS="$CFLAGS"
21972+ lt_globsym_save_LIBS=$LIBS
21973+ lt_globsym_save_CFLAGS=$CFLAGS
21974 LIBS="conftstm.$ac_objext"
21975 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
21976 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
21977@@ -7206,8 +7544,8 @@ _LT_EOF
21978 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
21979 pipe_works=yes
21980 fi
21981- LIBS="$lt_save_LIBS"
21982- CFLAGS="$lt_save_CFLAGS"
21983+ LIBS=$lt_globsym_save_LIBS
21984+ CFLAGS=$lt_globsym_save_CFLAGS
21985 else
21986 echo "cannot find nm_test_func in $nlist" >&5
21987 fi
21988@@ -7244,6 +7582,16 @@ else
21989 $as_echo "ok" >&6; }
21990 fi
21991
21992+# Response file support.
21993+if test "$lt_cv_nm_interface" = "MS dumpbin"; then
21994+ nm_file_list_spec='@'
21995+elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
21996+ nm_file_list_spec='@'
21997+fi
21998+
21999+
22000+
22001+
22002
22003
22004
22005@@ -7260,6 +7608,45 @@ fi
22006
22007
22008
22009+
22010+
22011+
22012+
22013+
22014+
22015+
22016+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
22017+$as_echo_n "checking for sysroot... " >&6; }
22018+
22019+# Check whether --with-libtool-sysroot was given.
22020+if test "${with_libtool_sysroot+set}" = set; then :
22021+ withval=$with_libtool_sysroot;
22022+else
22023+ with_libtool_sysroot=no
22024+fi
22025+
22026+
22027+lt_sysroot=
22028+case ${with_libtool_sysroot} in #(
22029+ yes)
22030+ if test "$GCC" = yes; then
22031+ lt_sysroot=`$CC --print-sysroot 2>/dev/null`
22032+ fi
22033+ ;; #(
22034+ /*)
22035+ lt_sysroot=`echo "$with_libtool_sysroot" | sed -e "$sed_quote_subst"`
22036+ ;; #(
22037+ no|'')
22038+ ;; #(
22039+ *)
22040+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_libtool_sysroot}" >&5
22041+$as_echo "${with_libtool_sysroot}" >&6; }
22042+ as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
22043+ ;;
22044+esac
22045+
22046+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
22047+$as_echo "${lt_sysroot:-no}" >&6; }
22048
22049
22050
22051@@ -7465,11 +7852,128 @@ sparc*-*solaris*)
22052 ;;
22053 esac
22054 fi
22055- rm -rf conftest*
22056- ;;
22057+ rm -rf conftest*
22058+ ;;
22059+esac
22060+
22061+need_locks="$enable_libtool_lock"
22062+
22063+if test -n "$ac_tool_prefix"; then
22064+ # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
22065+set dummy ${ac_tool_prefix}mt; ac_word=$2
22066+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22067+$as_echo_n "checking for $ac_word... " >&6; }
22068+if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
22069+ $as_echo_n "(cached) " >&6
22070+else
22071+ if test -n "$MANIFEST_TOOL"; then
22072+ ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
22073+else
22074+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22075+for as_dir in $PATH
22076+do
22077+ IFS=$as_save_IFS
22078+ test -z "$as_dir" && as_dir=.
22079+ for ac_exec_ext in '' $ac_executable_extensions; do
22080+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22081+ ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
22082+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22083+ break 2
22084+ fi
22085+done
22086+ done
22087+IFS=$as_save_IFS
22088+
22089+fi
22090+fi
22091+MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
22092+if test -n "$MANIFEST_TOOL"; then
22093+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
22094+$as_echo "$MANIFEST_TOOL" >&6; }
22095+else
22096+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22097+$as_echo "no" >&6; }
22098+fi
22099+
22100+
22101+fi
22102+if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
22103+ ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
22104+ # Extract the first word of "mt", so it can be a program name with args.
22105+set dummy mt; ac_word=$2
22106+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22107+$as_echo_n "checking for $ac_word... " >&6; }
22108+if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
22109+ $as_echo_n "(cached) " >&6
22110+else
22111+ if test -n "$ac_ct_MANIFEST_TOOL"; then
22112+ ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
22113+else
22114+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22115+for as_dir in $PATH
22116+do
22117+ IFS=$as_save_IFS
22118+ test -z "$as_dir" && as_dir=.
22119+ for ac_exec_ext in '' $ac_executable_extensions; do
22120+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22121+ ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
22122+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22123+ break 2
22124+ fi
22125+done
22126+ done
22127+IFS=$as_save_IFS
22128+
22129+fi
22130+fi
22131+ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
22132+if test -n "$ac_ct_MANIFEST_TOOL"; then
22133+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
22134+$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
22135+else
22136+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22137+$as_echo "no" >&6; }
22138+fi
22139+
22140+ if test "x$ac_ct_MANIFEST_TOOL" = x; then
22141+ MANIFEST_TOOL=":"
22142+ else
22143+ case $cross_compiling:$ac_tool_warned in
22144+yes:)
22145+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
22146+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22147+ac_tool_warned=yes ;;
22148 esac
22149+ MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
22150+ fi
22151+else
22152+ MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
22153+fi
22154+
22155+test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
22156+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
22157+$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
22158+if ${lt_cv_path_mainfest_tool+:} false; then :
22159+ $as_echo_n "(cached) " >&6
22160+else
22161+ lt_cv_path_mainfest_tool=no
22162+ echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
22163+ $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
22164+ cat conftest.err >&5
22165+ if $GREP 'Manifest Tool' conftest.out > /dev/null; then
22166+ lt_cv_path_mainfest_tool=yes
22167+ fi
22168+ rm -f conftest*
22169+fi
22170+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
22171+$as_echo "$lt_cv_path_mainfest_tool" >&6; }
22172+if test "x$lt_cv_path_mainfest_tool" != xyes; then
22173+ MANIFEST_TOOL=:
22174+fi
22175+
22176+
22177+
22178
22179-need_locks="$enable_libtool_lock"
22180
22181
22182 case $host_os in
22183@@ -8034,6 +8538,8 @@ _LT_EOF
22184 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
22185 echo "$AR cru libconftest.a conftest.o" >&5
22186 $AR cru libconftest.a conftest.o 2>&5
22187+ echo "$RANLIB libconftest.a" >&5
22188+ $RANLIB libconftest.a 2>&5
22189 cat > conftest.c << _LT_EOF
22190 int main() { return 0;}
22191 _LT_EOF
22192@@ -8588,8 +9094,6 @@ fi
22193 lt_prog_compiler_pic=
22194 lt_prog_compiler_static=
22195
22196-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
22197-$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
22198
22199 if test "$GCC" = yes; then
22200 lt_prog_compiler_wl='-Wl,'
22201@@ -8755,6 +9259,12 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
22202 lt_prog_compiler_pic='--shared'
22203 lt_prog_compiler_static='--static'
22204 ;;
22205+ nagfor*)
22206+ # NAG Fortran compiler
22207+ lt_prog_compiler_wl='-Wl,-Wl,,'
22208+ lt_prog_compiler_pic='-PIC'
22209+ lt_prog_compiler_static='-Bstatic'
22210+ ;;
22211 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
22212 # Portland Group compilers (*not* the Pentium gcc compiler,
22213 # which looks to be a dead project)
22214@@ -8817,7 +9327,7 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
22215 lt_prog_compiler_pic='-KPIC'
22216 lt_prog_compiler_static='-Bstatic'
22217 case $cc_basename in
22218- f77* | f90* | f95*)
22219+ f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
22220 lt_prog_compiler_wl='-Qoption ld ';;
22221 *)
22222 lt_prog_compiler_wl='-Wl,';;
22223@@ -8874,13 +9384,17 @@ case $host_os in
22224 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
22225 ;;
22226 esac
22227-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
22228-$as_echo "$lt_prog_compiler_pic" >&6; }
22229-
22230-
22231-
22232-
22233
22234+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
22235+$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
22236+if ${lt_cv_prog_compiler_pic+:} false; then :
22237+ $as_echo_n "(cached) " >&6
22238+else
22239+ lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
22240+fi
22241+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
22242+$as_echo "$lt_cv_prog_compiler_pic" >&6; }
22243+lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
22244
22245 #
22246 # Check to make sure the PIC flag actually works.
22247@@ -8941,6 +9455,11 @@ fi
22248
22249
22250
22251+
22252+
22253+
22254+
22255+
22256 #
22257 # Check to make sure the static flag actually works.
22258 #
22259@@ -9291,7 +9810,8 @@ _LT_EOF
22260 allow_undefined_flag=unsupported
22261 always_export_symbols=no
22262 enable_shared_with_static_runtimes=yes
22263- export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
22264+ 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'
22265+ exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
22266
22267 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
22268 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22269@@ -9390,12 +9910,12 @@ _LT_EOF
22270 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
22271 hardcode_libdir_flag_spec=
22272 hardcode_libdir_flag_spec_ld='-rpath $libdir'
22273- archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
22274+ archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
22275 if test "x$supports_anon_versioning" = xyes; then
22276 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
22277 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22278 echo "local: *; };" >> $output_objdir/$libname.ver~
22279- $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
22280+ $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
22281 fi
22282 ;;
22283 esac
22284@@ -9409,8 +9929,8 @@ _LT_EOF
22285 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
22286 wlarc=
22287 else
22288- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22289- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22290+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22291+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22292 fi
22293 ;;
22294
22295@@ -9428,8 +9948,8 @@ _LT_EOF
22296
22297 _LT_EOF
22298 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
22299- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22300- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22301+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22302+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22303 else
22304 ld_shlibs=no
22305 fi
22306@@ -9475,8 +9995,8 @@ _LT_EOF
22307
22308 *)
22309 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
22310- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22311- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22312+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22313+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22314 else
22315 ld_shlibs=no
22316 fi
22317@@ -9606,7 +10126,13 @@ _LT_EOF
22318 allow_undefined_flag='-berok'
22319 # Determine the default libpath from the value encoded in an
22320 # empty executable.
22321- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22322+ if test "${lt_cv_aix_libpath+set}" = set; then
22323+ aix_libpath=$lt_cv_aix_libpath
22324+else
22325+ if ${lt_cv_aix_libpath_+:} false; then :
22326+ $as_echo_n "(cached) " >&6
22327+else
22328+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22329 /* end confdefs.h. */
22330
22331 int
22332@@ -9619,22 +10145,29 @@ main ()
22333 _ACEOF
22334 if ac_fn_c_try_link "$LINENO"; then :
22335
22336-lt_aix_libpath_sed='
22337- /Import File Strings/,/^$/ {
22338- /^0/ {
22339- s/^0 *\(.*\)$/\1/
22340- p
22341- }
22342- }'
22343-aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22344-# Check for a 64-bit object if we didn't find anything.
22345-if test -z "$aix_libpath"; then
22346- aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22347-fi
22348+ lt_aix_libpath_sed='
22349+ /Import File Strings/,/^$/ {
22350+ /^0/ {
22351+ s/^0 *\([^ ]*\) *$/\1/
22352+ p
22353+ }
22354+ }'
22355+ lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22356+ # Check for a 64-bit object if we didn't find anything.
22357+ if test -z "$lt_cv_aix_libpath_"; then
22358+ lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22359+ fi
22360 fi
22361 rm -f core conftest.err conftest.$ac_objext \
22362 conftest$ac_exeext conftest.$ac_ext
22363-if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22364+ if test -z "$lt_cv_aix_libpath_"; then
22365+ lt_cv_aix_libpath_="/usr/lib:/lib"
22366+ fi
22367+
22368+fi
22369+
22370+ aix_libpath=$lt_cv_aix_libpath_
22371+fi
22372
22373 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
22374 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"
22375@@ -9646,7 +10179,13 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22376 else
22377 # Determine the default libpath from the value encoded in an
22378 # empty executable.
22379- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22380+ if test "${lt_cv_aix_libpath+set}" = set; then
22381+ aix_libpath=$lt_cv_aix_libpath
22382+else
22383+ if ${lt_cv_aix_libpath_+:} false; then :
22384+ $as_echo_n "(cached) " >&6
22385+else
22386+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22387 /* end confdefs.h. */
22388
22389 int
22390@@ -9659,22 +10198,29 @@ main ()
22391 _ACEOF
22392 if ac_fn_c_try_link "$LINENO"; then :
22393
22394-lt_aix_libpath_sed='
22395- /Import File Strings/,/^$/ {
22396- /^0/ {
22397- s/^0 *\(.*\)$/\1/
22398- p
22399- }
22400- }'
22401-aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22402-# Check for a 64-bit object if we didn't find anything.
22403-if test -z "$aix_libpath"; then
22404- aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22405-fi
22406+ lt_aix_libpath_sed='
22407+ /Import File Strings/,/^$/ {
22408+ /^0/ {
22409+ s/^0 *\([^ ]*\) *$/\1/
22410+ p
22411+ }
22412+ }'
22413+ lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22414+ # Check for a 64-bit object if we didn't find anything.
22415+ if test -z "$lt_cv_aix_libpath_"; then
22416+ lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22417+ fi
22418 fi
22419 rm -f core conftest.err conftest.$ac_objext \
22420 conftest$ac_exeext conftest.$ac_ext
22421-if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22422+ if test -z "$lt_cv_aix_libpath_"; then
22423+ lt_cv_aix_libpath_="/usr/lib:/lib"
22424+ fi
22425+
22426+fi
22427+
22428+ aix_libpath=$lt_cv_aix_libpath_
22429+fi
22430
22431 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
22432 # Warning - without using the other run time loading flags,
22433@@ -9719,20 +10265,63 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22434 # Microsoft Visual C++.
22435 # hardcode_libdir_flag_spec is actually meaningless, as there is
22436 # no search path for DLLs.
22437- hardcode_libdir_flag_spec=' '
22438- allow_undefined_flag=unsupported
22439- # Tell ltmain to make .lib files, not .a files.
22440- libext=lib
22441- # Tell ltmain to make .dll files, not .so files.
22442- shrext_cmds=".dll"
22443- # FIXME: Setting linknames here is a bad hack.
22444- archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
22445- # The linker will automatically build a .lib file if we build a DLL.
22446- old_archive_from_new_cmds='true'
22447- # FIXME: Should let the user specify the lib program.
22448- old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
22449- fix_srcfile_path='`cygpath -w "$srcfile"`'
22450- enable_shared_with_static_runtimes=yes
22451+ case $cc_basename in
22452+ cl*)
22453+ # Native MSVC
22454+ hardcode_libdir_flag_spec=' '
22455+ allow_undefined_flag=unsupported
22456+ always_export_symbols=yes
22457+ file_list_spec='@'
22458+ # Tell ltmain to make .lib files, not .a files.
22459+ libext=lib
22460+ # Tell ltmain to make .dll files, not .so files.
22461+ shrext_cmds=".dll"
22462+ # FIXME: Setting linknames here is a bad hack.
22463+ archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
22464+ archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
22465+ sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
22466+ else
22467+ sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
22468+ fi~
22469+ $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
22470+ linknames='
22471+ # The linker will not automatically build a static lib if we build a DLL.
22472+ # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
22473+ enable_shared_with_static_runtimes=yes
22474+ export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
22475+ # Don't use ranlib
22476+ old_postinstall_cmds='chmod 644 $oldlib'
22477+ postlink_cmds='lt_outputfile="@OUTPUT@"~
22478+ lt_tool_outputfile="@TOOL_OUTPUT@"~
22479+ case $lt_outputfile in
22480+ *.exe|*.EXE) ;;
22481+ *)
22482+ lt_outputfile="$lt_outputfile.exe"
22483+ lt_tool_outputfile="$lt_tool_outputfile.exe"
22484+ ;;
22485+ esac~
22486+ if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
22487+ $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
22488+ $RM "$lt_outputfile.manifest";
22489+ fi'
22490+ ;;
22491+ *)
22492+ # Assume MSVC wrapper
22493+ hardcode_libdir_flag_spec=' '
22494+ allow_undefined_flag=unsupported
22495+ # Tell ltmain to make .lib files, not .a files.
22496+ libext=lib
22497+ # Tell ltmain to make .dll files, not .so files.
22498+ shrext_cmds=".dll"
22499+ # FIXME: Setting linknames here is a bad hack.
22500+ archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
22501+ # The linker will automatically build a .lib file if we build a DLL.
22502+ old_archive_from_new_cmds='true'
22503+ # FIXME: Should let the user specify the lib program.
22504+ old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
22505+ enable_shared_with_static_runtimes=yes
22506+ ;;
22507+ esac
22508 ;;
22509
22510 darwin* | rhapsody*)
22511@@ -9793,7 +10382,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22512
22513 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22514 freebsd* | dragonfly*)
22515- archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22516+ archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22517 hardcode_libdir_flag_spec='-R$libdir'
22518 hardcode_direct=yes
22519 hardcode_shlibpath_var=no
22520@@ -9801,7 +10390,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22521
22522 hpux9*)
22523 if test "$GCC" = yes; then
22524- 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'
22525+ 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'
22526 else
22527 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'
22528 fi
22529@@ -9817,7 +10406,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22530
22531 hpux10*)
22532 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
22533- archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22534+ archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22535 else
22536 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22537 fi
22538@@ -9841,10 +10430,10 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22539 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22540 ;;
22541 ia64*)
22542- archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22543+ archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22544 ;;
22545 *)
22546- archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22547+ archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22548 ;;
22549 esac
22550 else
22551@@ -9923,23 +10512,36 @@ fi
22552
22553 irix5* | irix6* | nonstopux*)
22554 if test "$GCC" = yes; then
22555- 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'
22556+ 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'
22557 # Try to use the -exported_symbol ld option, if it does not
22558 # work, assume that -exports_file does not work either and
22559 # implicitly export all symbols.
22560- save_LDFLAGS="$LDFLAGS"
22561- LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
22562- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22563+ # This should be the same for all languages, so no per-tag cache variable.
22564+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
22565+$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
22566+if ${lt_cv_irix_exported_symbol+:} false; then :
22567+ $as_echo_n "(cached) " >&6
22568+else
22569+ save_LDFLAGS="$LDFLAGS"
22570+ LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
22571+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22572 /* end confdefs.h. */
22573-int foo(void) {}
22574+int foo (void) { return 0; }
22575 _ACEOF
22576 if ac_fn_c_try_link "$LINENO"; then :
22577- 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'
22578-
22579+ lt_cv_irix_exported_symbol=yes
22580+else
22581+ lt_cv_irix_exported_symbol=no
22582 fi
22583 rm -f core conftest.err conftest.$ac_objext \
22584 conftest$ac_exeext conftest.$ac_ext
22585- LDFLAGS="$save_LDFLAGS"
22586+ LDFLAGS="$save_LDFLAGS"
22587+fi
22588+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
22589+$as_echo "$lt_cv_irix_exported_symbol" >&6; }
22590+ if test "$lt_cv_irix_exported_symbol" = yes; then
22591+ 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'
22592+ fi
22593 else
22594 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'
22595 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'
22596@@ -10024,7 +10626,7 @@ rm -f core conftest.err conftest.$ac_objext \
22597 osf4* | osf5*) # as osf3* with the addition of -msym flag
22598 if test "$GCC" = yes; then
22599 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
22600- 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'
22601+ 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'
22602 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
22603 else
22604 allow_undefined_flag=' -expect_unresolved \*'
22605@@ -10043,9 +10645,9 @@ rm -f core conftest.err conftest.$ac_objext \
22606 no_undefined_flag=' -z defs'
22607 if test "$GCC" = yes; then
22608 wlarc='${wl}'
22609- archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22610+ archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22611 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
22612- $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
22613+ $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'
22614 else
22615 case `$CC -V 2>&1` in
22616 *"Compilers 5.0"*)
22617@@ -10621,8 +11223,9 @@ cygwin* | mingw* | pw32* | cegcc*)
22618 need_version=no
22619 need_lib_prefix=no
22620
22621- case $GCC,$host_os in
22622- yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
22623+ case $GCC,$cc_basename in
22624+ yes,*)
22625+ # gcc
22626 library_names_spec='$libname.dll.a'
22627 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22628 postinstall_cmds='base_file=`basename \${file}`~
22629@@ -10655,13 +11258,71 @@ cygwin* | mingw* | pw32* | cegcc*)
22630 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22631 ;;
22632 esac
22633+ dynamic_linker='Win32 ld.exe'
22634+ ;;
22635+
22636+ *,cl*)
22637+ # Native MSVC
22638+ libname_spec='$name'
22639+ soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22640+ library_names_spec='${libname}.dll.lib'
22641+
22642+ case $build_os in
22643+ mingw*)
22644+ sys_lib_search_path_spec=
22645+ lt_save_ifs=$IFS
22646+ IFS=';'
22647+ for lt_path in $LIB
22648+ do
22649+ IFS=$lt_save_ifs
22650+ # Let DOS variable expansion print the short 8.3 style file name.
22651+ lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
22652+ sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
22653+ done
22654+ IFS=$lt_save_ifs
22655+ # Convert to MSYS style.
22656+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
22657+ ;;
22658+ cygwin*)
22659+ # Convert to unix form, then to dos form, then back to unix form
22660+ # but this time dos style (no spaces!) so that the unix form looks
22661+ # like /cygdrive/c/PROGRA~1:/cygdr...
22662+ sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
22663+ sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
22664+ sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22665+ ;;
22666+ *)
22667+ sys_lib_search_path_spec="$LIB"
22668+ if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
22669+ # It is most probably a Windows format PATH.
22670+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22671+ else
22672+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22673+ fi
22674+ # FIXME: find the short name or the path components, as spaces are
22675+ # common. (e.g. "Program Files" -> "PROGRA~1")
22676+ ;;
22677+ esac
22678+
22679+ # DLL is installed to $(libdir)/../bin by postinstall_cmds
22680+ postinstall_cmds='base_file=`basename \${file}`~
22681+ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
22682+ dldir=$destdir/`dirname \$dlpath`~
22683+ test -d \$dldir || mkdir -p \$dldir~
22684+ $install_prog $dir/$dlname \$dldir/$dlname'
22685+ postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22686+ dlpath=$dir/\$dldll~
22687+ $RM \$dlpath'
22688+ shlibpath_overrides_runpath=yes
22689+ dynamic_linker='Win32 link.exe'
22690 ;;
22691
22692 *)
22693+ # Assume MSVC wrapper
22694 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22695+ dynamic_linker='Win32 ld.exe'
22696 ;;
22697 esac
22698- dynamic_linker='Win32 ld.exe'
22699 # FIXME: first we should search . and the directory the executable is in
22700 shlibpath_var=PATH
22701 ;;
22702@@ -11563,7 +12224,7 @@ else
22703 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
22704 lt_status=$lt_dlunknown
22705 cat > conftest.$ac_ext <<_LT_EOF
22706-#line 11566 "configure"
22707+#line $LINENO "configure"
22708 #include "confdefs.h"
22709
22710 #if HAVE_DLFCN_H
22711@@ -11607,10 +12268,10 @@ else
22712 /* When -fvisbility=hidden is used, assume the code has been annotated
22713 correspondingly for the symbols needed. */
22714 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
22715-void fnord () __attribute__((visibility("default")));
22716+int fnord () __attribute__((visibility("default")));
22717 #endif
22718
22719-void fnord () { int i=42; }
22720+int fnord () { return 42; }
22721 int main ()
22722 {
22723 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
22724@@ -11669,7 +12330,7 @@ else
22725 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
22726 lt_status=$lt_dlunknown
22727 cat > conftest.$ac_ext <<_LT_EOF
22728-#line 11672 "configure"
22729+#line $LINENO "configure"
22730 #include "confdefs.h"
22731
22732 #if HAVE_DLFCN_H
22733@@ -11713,10 +12374,10 @@ else
22734 /* When -fvisbility=hidden is used, assume the code has been annotated
22735 correspondingly for the symbols needed. */
22736 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
22737-void fnord () __attribute__((visibility("default")));
22738+int fnord () __attribute__((visibility("default")));
22739 #endif
22740
22741-void fnord () { int i=42; }
22742+int fnord () { return 42; }
22743 int main ()
22744 {
22745 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
22746@@ -13541,7 +14202,7 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22747 #
22748 # INIT-COMMANDS
22749 #
22750-AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22751+AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
22752
22753
22754 # The HP-UX ksh and POSIX shell print the target directory to stdout
22755@@ -13579,13 +14240,20 @@ exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
22756 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
22757 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
22758 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
22759+lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
22760+lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
22761 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
22762 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
22763 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
22764 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
22765 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
22766+file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
22767+want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
22768+DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
22769+sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
22770 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
22771 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
22772+archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
22773 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
22774 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
22775 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22776@@ -13600,14 +14268,17 @@ lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$de
22777 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
22778 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
22779 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"`'
22780+nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
22781+lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
22782 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
22783 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
22784 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
22785-lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
22786 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
22787+lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
22788 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
22789 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
22790 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
22791+MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
22792 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
22793 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
22794 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
22795@@ -13640,12 +14311,12 @@ hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_q
22796 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
22797 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
22798 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
22799-fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
22800 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
22801 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
22802 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
22803 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
22804 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
22805+postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
22806 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
22807 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
22808 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
22809@@ -13700,8 +14371,13 @@ reload_flag \
22810 OBJDUMP \
22811 deplibs_check_method \
22812 file_magic_cmd \
22813+file_magic_glob \
22814+want_nocaseglob \
22815+DLLTOOL \
22816+sharedlib_from_linklib_cmd \
22817 AR \
22818 AR_FLAGS \
22819+archiver_list_spec \
22820 STRIP \
22821 RANLIB \
22822 CC \
22823@@ -13711,12 +14387,14 @@ lt_cv_sys_global_symbol_pipe \
22824 lt_cv_sys_global_symbol_to_cdecl \
22825 lt_cv_sys_global_symbol_to_c_name_address \
22826 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
22827+nm_file_list_spec \
22828 lt_prog_compiler_no_builtin_flag \
22829-lt_prog_compiler_wl \
22830 lt_prog_compiler_pic \
22831+lt_prog_compiler_wl \
22832 lt_prog_compiler_static \
22833 lt_cv_prog_compiler_c_o \
22834 need_locks \
22835+MANIFEST_TOOL \
22836 DSYMUTIL \
22837 NMEDIT \
22838 LIPO \
22839@@ -13732,7 +14410,6 @@ no_undefined_flag \
22840 hardcode_libdir_flag_spec \
22841 hardcode_libdir_flag_spec_ld \
22842 hardcode_libdir_separator \
22843-fix_srcfile_path \
22844 exclude_expsyms \
22845 include_expsyms \
22846 file_list_spec \
22847@@ -13768,6 +14445,7 @@ module_cmds \
22848 module_expsym_cmds \
22849 export_symbols_cmds \
22850 prelink_cmds \
22851+postlink_cmds \
22852 postinstall_cmds \
22853 postuninstall_cmds \
22854 finish_cmds \
22855@@ -14414,29 +15092,35 @@ $as_echo "$as_me: executing $ac_file commands" >&6;}
22856 # Older Autoconf quotes --file arguments for eval, but not when files
22857 # are listed without --file. Let's play safe and only enable the eval
22858 # if we detect the quoting.
22859- case $CONFIG_FILES in
22860- *\'*) eval set x "$CONFIG_FILES" ;;
22861- *) set x $CONFIG_FILES ;;
22862- esac
22863+ # TODO: see whether this extra hack can be removed once we start
22864+ # requiring Autoconf 2.70 or later.
22865+ case $CONFIG_FILES in #(
22866+ *\'*) :
22867+ eval set x "$CONFIG_FILES" ;; #(
22868+ *) :
22869+ set x $CONFIG_FILES ;; #(
22870+ *) :
22871+ ;;
22872+esac
22873 shift
22874- for mf
22875+ # Used to flag and report bootstrapping failures.
22876+ am_rc=0
22877+ for am_mf
22878 do
22879 # Strip MF so we end up with the name of the file.
22880- mf=`echo "$mf" | sed -e 's/:.*$//'`
22881- # Check whether this is an Automake generated Makefile or not.
22882- # We used to match only the files named 'Makefile.in', but
22883- # some people rename them; so instead we look at the file content.
22884- # Grep'ing the first line is not enough: some people post-process
22885- # each Makefile.in and add a new line on top of each file to say so.
22886- # Grep'ing the whole file is not good either: AIX grep has a line
22887+ am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
22888+ # Check whether this is an Automake generated Makefile which includes
22889+ # dependency-tracking related rules and includes.
22890+ # Grep'ing the whole file directly is not great: AIX grep has a line
22891 # limit of 2048, but all sed's we know have understand at least 4000.
22892- if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
22893- dirpart=`$as_dirname -- "$mf" ||
22894-$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22895- X"$mf" : 'X\(//\)[^/]' \| \
22896- X"$mf" : 'X\(//\)$' \| \
22897- X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22898-$as_echo X"$mf" |
22899+ sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
22900+ || continue
22901+ am_dirpart=`$as_dirname -- "$am_mf" ||
22902+$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22903+ X"$am_mf" : 'X\(//\)[^/]' \| \
22904+ X"$am_mf" : 'X\(//\)$' \| \
22905+ X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22906+$as_echo X"$am_mf" |
22907 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22908 s//\1/
22909 q
22910@@ -14454,53 +15138,50 @@ $as_echo X"$mf" |
22911 q
22912 }
22913 s/.*/./; q'`
22914- else
22915- continue
22916- fi
22917- # Extract the definition of DEPDIR, am__include, and am__quote
22918- # from the Makefile without running 'make'.
22919- DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22920- test -z "$DEPDIR" && continue
22921- am__include=`sed -n 's/^am__include = //p' < "$mf"`
22922- test -z "$am__include" && continue
22923- am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22924- # Find all dependency output files, they are included files with
22925- # $(DEPDIR) in their names. We invoke sed twice because it is the
22926- # simplest approach to changing $(DEPDIR) to its actual value in the
22927- # expansion.
22928- for file in `sed -n "
22929- s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22930- sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
22931- # Make sure the directory exists.
22932- test -f "$dirpart/$file" && continue
22933- fdir=`$as_dirname -- "$file" ||
22934-$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22935- X"$file" : 'X\(//\)[^/]' \| \
22936- X"$file" : 'X\(//\)$' \| \
22937- X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22938-$as_echo X"$file" |
22939- sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22940- s//\1/
22941- q
22942- }
22943- /^X\(\/\/\)[^/].*/{
22944+ am_filepart=`$as_basename -- "$am_mf" ||
22945+$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
22946+ X"$am_mf" : 'X\(//\)$' \| \
22947+ X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22948+$as_echo X/"$am_mf" |
22949+ sed '/^.*\/\([^/][^/]*\)\/*$/{
22950 s//\1/
22951 q
22952 }
22953- /^X\(\/\/\)$/{
22954+ /^X\/\(\/\/\)$/{
22955 s//\1/
22956 q
22957 }
22958- /^X\(\/\).*/{
22959+ /^X\/\(\/\).*/{
22960 s//\1/
22961 q
22962 }
22963 s/.*/./; q'`
22964- as_dir=$dirpart/$fdir; as_fn_mkdir_p
22965- # echo "creating $dirpart/$file"
22966- echo '# dummy' > "$dirpart/$file"
22967- done
22968+ { echo "$as_me:$LINENO: cd "$am_dirpart" \
22969+ && sed -e '/# am--include-marker/d' "$am_filepart" \
22970+ | $MAKE -f - am--depfiles" >&5
22971+ (cd "$am_dirpart" \
22972+ && sed -e '/# am--include-marker/d' "$am_filepart" \
22973+ | $MAKE -f - am--depfiles) >&5 2>&5
22974+ ac_status=$?
22975+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
22976+ (exit $ac_status); } || am_rc=$?
22977 done
22978+ if test $am_rc -ne 0; then
22979+ { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22980+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22981+as_fn_error $? "Something went wrong bootstrapping makefile fragments
22982+ for automatic dependency tracking. If GNU make was not used, consider
22983+ re-running the configure script with MAKE=\"gmake\" (or whatever is
22984+ necessary). You can also try re-running configure with the
22985+ '--disable-dependency-tracking' option to at least be able to build
22986+ the package (albeit without support for automatic dependency tracking).
22987+See \`config.log' for more details" "$LINENO" 5; }
22988+ fi
22989+ { am_dirpart=; unset am_dirpart;}
22990+ { am_filepart=; unset am_filepart;}
22991+ { am_mf=; unset am_mf;}
22992+ { am_rc=; unset am_rc;}
22993+ rm -f conftest-deps.mk
22994 }
22995 ;;
22996 "libtool":C)
22997@@ -14524,7 +15205,8 @@ $as_echo X"$file" |
22998 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
22999 #
23000 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
23001-# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
23002+# 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
23003+# Inc.
23004 # Written by Gordon Matzigkeit, 1996
23005 #
23006 # This file is part of GNU Libtool.
23007@@ -14627,19 +15309,42 @@ SP2NL=$lt_lt_SP2NL
23008 # turn newlines into spaces.
23009 NL2SP=$lt_lt_NL2SP
23010
23011+# convert \$build file names to \$host format.
23012+to_host_file_cmd=$lt_cv_to_host_file_cmd
23013+
23014+# convert \$build files to toolchain format.
23015+to_tool_file_cmd=$lt_cv_to_tool_file_cmd
23016+
23017 # An object symbol dumper.
23018 OBJDUMP=$lt_OBJDUMP
23019
23020 # Method to check whether dependent libraries are shared objects.
23021 deplibs_check_method=$lt_deplibs_check_method
23022
23023-# Command to use when deplibs_check_method == "file_magic".
23024+# Command to use when deplibs_check_method = "file_magic".
23025 file_magic_cmd=$lt_file_magic_cmd
23026
23027+# How to find potential files when deplibs_check_method = "file_magic".
23028+file_magic_glob=$lt_file_magic_glob
23029+
23030+# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
23031+want_nocaseglob=$lt_want_nocaseglob
23032+
23033+# DLL creation program.
23034+DLLTOOL=$lt_DLLTOOL
23035+
23036+# Command to associate shared and link libraries.
23037+sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
23038+
23039 # The archiver.
23040 AR=$lt_AR
23041+
23042+# Flags to create an archive.
23043 AR_FLAGS=$lt_AR_FLAGS
23044
23045+# How to feed a file listing to the archiver.
23046+archiver_list_spec=$lt_archiver_list_spec
23047+
23048 # A symbol stripping program.
23049 STRIP=$lt_STRIP
23050
23051@@ -14669,6 +15374,12 @@ global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23052 # Transform the output of nm in a C name address pair when lib prefix is needed.
23053 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
23054
23055+# Specify filename containing input files for \$NM.
23056+nm_file_list_spec=$lt_nm_file_list_spec
23057+
23058+# The root where to search for dependent libraries,and in which our libraries should be installed.
23059+lt_sysroot=$lt_sysroot
23060+
23061 # The name of the directory that contains temporary libtool files.
23062 objdir=$objdir
23063
23064@@ -14678,6 +15389,9 @@ MAGIC_CMD=$MAGIC_CMD
23065 # Must we lock files when doing compilation?
23066 need_locks=$lt_need_locks
23067
23068+# Manifest tool.
23069+MANIFEST_TOOL=$lt_MANIFEST_TOOL
23070+
23071 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
23072 DSYMUTIL=$lt_DSYMUTIL
23073
23074@@ -14792,12 +15506,12 @@ with_gcc=$GCC
23075 # Compiler flag to turn off builtin functions.
23076 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
23077
23078-# How to pass a linker flag through the compiler.
23079-wl=$lt_lt_prog_compiler_wl
23080-
23081 # Additional compiler flags for building library objects.
23082 pic_flag=$lt_lt_prog_compiler_pic
23083
23084+# How to pass a linker flag through the compiler.
23085+wl=$lt_lt_prog_compiler_wl
23086+
23087 # Compiler flag to prevent dynamic linking.
23088 link_static_flag=$lt_lt_prog_compiler_static
23089
23090@@ -14884,9 +15598,6 @@ inherit_rpath=$inherit_rpath
23091 # Whether libtool must link a program against all its dependency libraries.
23092 link_all_deplibs=$link_all_deplibs
23093
23094-# Fix the shell variable \$srcfile for the compiler.
23095-fix_srcfile_path=$lt_fix_srcfile_path
23096-
23097 # Set to "yes" if exported symbols are required.
23098 always_export_symbols=$always_export_symbols
23099
23100@@ -14902,6 +15613,9 @@ include_expsyms=$lt_include_expsyms
23101 # Commands necessary for linking programs (against libraries) with templates.
23102 prelink_cmds=$lt_prelink_cmds
23103
23104+# Commands necessary for finishing linking programs.
23105+postlink_cmds=$lt_postlink_cmds
23106+
23107 # Specify filename containing input files.
23108 file_list_spec=$lt_file_list_spec
23109
23110@@ -14934,210 +15648,169 @@ ltmain="$ac_aux_dir/ltmain.sh"
23111 # if finds mixed CR/LF and LF-only lines. Since sed operates in
23112 # text mode, it properly converts lines to CR/LF. This bash problem
23113 # is reportedly fixed, but why not run on old versions too?
23114- sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
23115- || (rm -f "$cfgfile"; exit 1)
23116-
23117- case $xsi_shell in
23118- yes)
23119- cat << \_LT_EOF >> "$cfgfile"
23120-
23121-# func_dirname file append nondir_replacement
23122-# Compute the dirname of FILE. If nonempty, add APPEND to the result,
23123-# otherwise set result to NONDIR_REPLACEMENT.
23124-func_dirname ()
23125-{
23126- case ${1} in
23127- */*) func_dirname_result="${1%/*}${2}" ;;
23128- * ) func_dirname_result="${3}" ;;
23129- esac
23130-}
23131-
23132-# func_basename file
23133-func_basename ()
23134-{
23135- func_basename_result="${1##*/}"
23136-}
23137-
23138-# func_dirname_and_basename file append nondir_replacement
23139-# perform func_basename and func_dirname in a single function
23140-# call:
23141-# dirname: Compute the dirname of FILE. If nonempty,
23142-# add APPEND to the result, otherwise set result
23143-# to NONDIR_REPLACEMENT.
23144-# value returned in "$func_dirname_result"
23145-# basename: Compute filename of FILE.
23146-# value retuned in "$func_basename_result"
23147-# Implementation must be kept synchronized with func_dirname
23148-# and func_basename. For efficiency, we do not delegate to
23149-# those functions but instead duplicate the functionality here.
23150-func_dirname_and_basename ()
23151-{
23152- case ${1} in
23153- */*) func_dirname_result="${1%/*}${2}" ;;
23154- * ) func_dirname_result="${3}" ;;
23155- esac
23156- func_basename_result="${1##*/}"
23157-}
23158-
23159-# func_stripname prefix suffix name
23160-# strip PREFIX and SUFFIX off of NAME.
23161-# PREFIX and SUFFIX must not contain globbing or regex special
23162-# characters, hashes, percent signs, but SUFFIX may contain a leading
23163-# dot (in which case that matches only a dot).
23164-func_stripname ()
23165-{
23166- # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
23167- # positional parameters, so assign one to ordinary parameter first.
23168- func_stripname_result=${3}
23169- func_stripname_result=${func_stripname_result#"${1}"}
23170- func_stripname_result=${func_stripname_result%"${2}"}
23171-}
23172-
23173-# func_opt_split
23174-func_opt_split ()
23175-{
23176- func_opt_split_opt=${1%%=*}
23177- func_opt_split_arg=${1#*=}
23178-}
23179-
23180-# func_lo2o object
23181-func_lo2o ()
23182-{
23183- case ${1} in
23184- *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
23185- *) func_lo2o_result=${1} ;;
23186- esac
23187-}
23188-
23189-# func_xform libobj-or-source
23190-func_xform ()
23191-{
23192- func_xform_result=${1%.*}.lo
23193-}
23194-
23195-# func_arith arithmetic-term...
23196-func_arith ()
23197-{
23198- func_arith_result=$(( $* ))
23199-}
23200-
23201-# func_len string
23202-# STRING may not start with a hyphen.
23203-func_len ()
23204-{
23205- func_len_result=${#1}
23206-}
23207-
23208-_LT_EOF
23209- ;;
23210- *) # Bourne compatible functions.
23211- cat << \_LT_EOF >> "$cfgfile"
23212-
23213-# func_dirname file append nondir_replacement
23214-# Compute the dirname of FILE. If nonempty, add APPEND to the result,
23215-# otherwise set result to NONDIR_REPLACEMENT.
23216-func_dirname ()
23217-{
23218- # Extract subdirectory from the argument.
23219- func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
23220- if test "X$func_dirname_result" = "X${1}"; then
23221- func_dirname_result="${3}"
23222- else
23223- func_dirname_result="$func_dirname_result${2}"
23224- fi
23225-}
23226-
23227-# func_basename file
23228-func_basename ()
23229-{
23230- func_basename_result=`$ECHO "${1}" | $SED "$basename"`
23231-}
23232-
23233-
23234-# func_stripname prefix suffix name
23235-# strip PREFIX and SUFFIX off of NAME.
23236-# PREFIX and SUFFIX must not contain globbing or regex special
23237-# characters, hashes, percent signs, but SUFFIX may contain a leading
23238-# dot (in which case that matches only a dot).
23239-# func_strip_suffix prefix name
23240-func_stripname ()
23241-{
23242- case ${2} in
23243- .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
23244- *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
23245- esac
23246-}
23247-
23248-# sed scripts:
23249-my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
23250-my_sed_long_arg='1s/^-[^=]*=//'
23251-
23252-# func_opt_split
23253-func_opt_split ()
23254-{
23255- func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
23256- func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
23257-}
23258-
23259-# func_lo2o object
23260-func_lo2o ()
23261-{
23262- func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
23263-}
23264-
23265-# func_xform libobj-or-source
23266-func_xform ()
23267-{
23268- func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
23269-}
23270-
23271-# func_arith arithmetic-term...
23272-func_arith ()
23273-{
23274- func_arith_result=`expr "$@"`
23275-}
23276-
23277-# func_len string
23278-# STRING may not start with a hyphen.
23279-func_len ()
23280-{
23281- func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
23282-}
23283-
23284-_LT_EOF
23285-esac
23286-
23287-case $lt_shell_append in
23288- yes)
23289- cat << \_LT_EOF >> "$cfgfile"
23290-
23291-# func_append var value
23292-# Append VALUE to the end of shell variable VAR.
23293-func_append ()
23294-{
23295- eval "$1+=\$2"
23296-}
23297-_LT_EOF
23298- ;;
23299- *)
23300- cat << \_LT_EOF >> "$cfgfile"
23301-
23302-# func_append var value
23303-# Append VALUE to the end of shell variable VAR.
23304-func_append ()
23305-{
23306- eval "$1=\$$1\$2"
23307-}
23308-
23309-_LT_EOF
23310- ;;
23311- esac
23312-
23313-
23314- sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
23315- || (rm -f "$cfgfile"; exit 1)
23316-
23317- mv -f "$cfgfile" "$ofile" ||
23318+ sed '$q' "$ltmain" >> "$cfgfile" \
23319+ || (rm -f "$cfgfile"; exit 1)
23320+
23321+ if test x"$xsi_shell" = xyes; then
23322+ sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
23323+func_dirname ()\
23324+{\
23325+\ case ${1} in\
23326+\ */*) func_dirname_result="${1%/*}${2}" ;;\
23327+\ * ) func_dirname_result="${3}" ;;\
23328+\ esac\
23329+} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
23330+ && mv -f "$cfgfile.tmp" "$cfgfile" \
23331+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23332+test 0 -eq $? || _lt_function_replace_fail=:
23333+
23334+
23335+ sed -e '/^func_basename ()$/,/^} # func_basename /c\
23336+func_basename ()\
23337+{\
23338+\ func_basename_result="${1##*/}"\
23339+} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
23340+ && mv -f "$cfgfile.tmp" "$cfgfile" \
23341+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23342+test 0 -eq $? || _lt_function_replace_fail=:
23343+
23344+
23345+ sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
23346+func_dirname_and_basename ()\
23347+{\
23348+\ case ${1} in\
23349+\ */*) func_dirname_result="${1%/*}${2}" ;;\
23350+\ * ) func_dirname_result="${3}" ;;\
23351+\ esac\
23352+\ func_basename_result="${1##*/}"\
23353+} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
23354+ && mv -f "$cfgfile.tmp" "$cfgfile" \
23355+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23356+test 0 -eq $? || _lt_function_replace_fail=:
23357+
23358+
23359+ sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
23360+func_stripname ()\
23361+{\
23362+\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
23363+\ # positional parameters, so assign one to ordinary parameter first.\
23364+\ func_stripname_result=${3}\
23365+\ func_stripname_result=${func_stripname_result#"${1}"}\
23366+\ func_stripname_result=${func_stripname_result%"${2}"}\
23367+} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
23368+ && mv -f "$cfgfile.tmp" "$cfgfile" \
23369+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23370+test 0 -eq $? || _lt_function_replace_fail=:
23371+
23372+
23373+ sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
23374+func_split_long_opt ()\
23375+{\
23376+\ func_split_long_opt_name=${1%%=*}\
23377+\ func_split_long_opt_arg=${1#*=}\
23378+} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
23379+ && mv -f "$cfgfile.tmp" "$cfgfile" \
23380+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23381+test 0 -eq $? || _lt_function_replace_fail=:
23382+
23383+
23384+ sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
23385+func_split_short_opt ()\
23386+{\
23387+\ func_split_short_opt_arg=${1#??}\
23388+\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
23389+} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
23390+ && mv -f "$cfgfile.tmp" "$cfgfile" \
23391+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23392+test 0 -eq $? || _lt_function_replace_fail=:
23393+
23394+
23395+ sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
23396+func_lo2o ()\
23397+{\
23398+\ case ${1} in\
23399+\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
23400+\ *) func_lo2o_result=${1} ;;\
23401+\ esac\
23402+} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
23403+ && mv -f "$cfgfile.tmp" "$cfgfile" \
23404+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23405+test 0 -eq $? || _lt_function_replace_fail=:
23406+
23407+
23408+ sed -e '/^func_xform ()$/,/^} # func_xform /c\
23409+func_xform ()\
23410+{\
23411+ func_xform_result=${1%.*}.lo\
23412+} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
23413+ && mv -f "$cfgfile.tmp" "$cfgfile" \
23414+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23415+test 0 -eq $? || _lt_function_replace_fail=:
23416+
23417+
23418+ sed -e '/^func_arith ()$/,/^} # func_arith /c\
23419+func_arith ()\
23420+{\
23421+ func_arith_result=$(( $* ))\
23422+} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
23423+ && mv -f "$cfgfile.tmp" "$cfgfile" \
23424+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23425+test 0 -eq $? || _lt_function_replace_fail=:
23426+
23427+
23428+ sed -e '/^func_len ()$/,/^} # func_len /c\
23429+func_len ()\
23430+{\
23431+ func_len_result=${#1}\
23432+} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
23433+ && mv -f "$cfgfile.tmp" "$cfgfile" \
23434+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23435+test 0 -eq $? || _lt_function_replace_fail=:
23436+
23437+fi
23438+
23439+if test x"$lt_shell_append" = xyes; then
23440+ sed -e '/^func_append ()$/,/^} # func_append /c\
23441+func_append ()\
23442+{\
23443+ eval "${1}+=\\${2}"\
23444+} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
23445+ && mv -f "$cfgfile.tmp" "$cfgfile" \
23446+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23447+test 0 -eq $? || _lt_function_replace_fail=:
23448+
23449+
23450+ sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
23451+func_append_quoted ()\
23452+{\
23453+\ func_quote_for_eval "${2}"\
23454+\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
23455+} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
23456+ && mv -f "$cfgfile.tmp" "$cfgfile" \
23457+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23458+test 0 -eq $? || _lt_function_replace_fail=:
23459+
23460+
23461+ # Save a `func_append' function call where possible by direct use of '+='
23462+ sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
23463+ && mv -f "$cfgfile.tmp" "$cfgfile" \
23464+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23465+ test 0 -eq $? || _lt_function_replace_fail=:
23466+else
23467+ # Save a `func_append' function call even when '+=' is not available
23468+ sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
23469+ && mv -f "$cfgfile.tmp" "$cfgfile" \
23470+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23471+ test 0 -eq $? || _lt_function_replace_fail=:
23472+fi
23473+
23474+if test x"$_lt_function_replace_fail" = x":"; then
23475+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
23476+$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
23477+fi
23478+
23479+
23480+ mv -f "$cfgfile" "$ofile" ||
23481 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23482 chmod +x "$ofile"
23483
23484diff --git a/libtool.m4 b/libtool.m4
23485index e36fdd3c0e2..4acf9d67956 100644
23486--- a/libtool.m4
23487+++ b/libtool.m4
23488@@ -1,7 +1,8 @@
23489 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
23490 #
23491 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
23492-# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
23493+# 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
23494+# Inc.
23495 # Written by Gordon Matzigkeit, 1996
23496 #
23497 # This file is free software; the Free Software Foundation gives
23498@@ -10,7 +11,8 @@
23499
23500 m4_define([_LT_COPYING], [dnl
23501 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
23502-# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
23503+# 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
23504+# Inc.
23505 # Written by Gordon Matzigkeit, 1996
23506 #
23507 # This file is part of GNU Libtool.
23508@@ -37,7 +39,7 @@ m4_define([_LT_COPYING], [dnl
23509 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
23510 ])
23511
23512-# serial 56 LT_INIT
23513+# serial 57 LT_INIT
23514
23515
23516 # LT_PREREQ(VERSION)
23517@@ -166,10 +168,13 @@ _LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
23518 dnl
23519 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
23520 m4_require([_LT_CHECK_SHELL_FEATURES])dnl
23521+m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl
23522 m4_require([_LT_CMD_RELOAD])dnl
23523 m4_require([_LT_CHECK_MAGIC_METHOD])dnl
23524+m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl
23525 m4_require([_LT_CMD_OLD_ARCHIVE])dnl
23526 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
23527+m4_require([_LT_WITH_SYSROOT])dnl
23528
23529 _LT_CONFIG_LIBTOOL_INIT([
23530 # See if we are running on zsh, and set the options which allow our
23531@@ -632,7 +637,7 @@ m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
23532 m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
23533 configured by $[0], generated by m4_PACKAGE_STRING.
23534
23535-Copyright (C) 2009 Free Software Foundation, Inc.
23536+Copyright (C) 2010 Free Software Foundation, Inc.
23537 This config.lt script is free software; the Free Software Foundation
23538 gives unlimited permision to copy, distribute and modify it."
23539
23540@@ -746,15 +751,12 @@ _LT_EOF
23541 # if finds mixed CR/LF and LF-only lines. Since sed operates in
23542 # text mode, it properly converts lines to CR/LF. This bash problem
23543 # is reportedly fixed, but why not run on old versions too?
23544- sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
23545- || (rm -f "$cfgfile"; exit 1)
23546+ sed '$q' "$ltmain" >> "$cfgfile" \
23547+ || (rm -f "$cfgfile"; exit 1)
23548
23549- _LT_PROG_XSI_SHELLFNS
23550+ _LT_PROG_REPLACE_SHELLFNS
23551
23552- sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
23553- || (rm -f "$cfgfile"; exit 1)
23554-
23555- mv -f "$cfgfile" "$ofile" ||
23556+ mv -f "$cfgfile" "$ofile" ||
23557 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23558 chmod +x "$ofile"
23559 ],
23560@@ -980,6 +982,8 @@ _LT_EOF
23561 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
23562 echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
23563 $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
23564+ echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
23565+ $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
23566 cat > conftest.c << _LT_EOF
23567 int main() { return 0;}
23568 _LT_EOF
23569@@ -1071,30 +1075,41 @@ m4_defun([_LT_DARWIN_LINKER_FEATURES],
23570 fi
23571 ])
23572
23573-# _LT_SYS_MODULE_PATH_AIX
23574-# -----------------------
23575+# _LT_SYS_MODULE_PATH_AIX([TAGNAME])
23576+# ----------------------------------
23577 # Links a minimal program and checks the executable
23578 # for the system default hardcoded library path. In most cases,
23579 # this is /usr/lib:/lib, but when the MPI compilers are used
23580 # the location of the communication and MPI libs are included too.
23581 # If we don't find anything, use the default library path according
23582 # to the aix ld manual.
23583+# Store the results from the different compilers for each TAGNAME.
23584+# Allow to override them for all tags through lt_cv_aix_libpath.
23585 m4_defun([_LT_SYS_MODULE_PATH_AIX],
23586 [m4_require([_LT_DECL_SED])dnl
23587-AC_LINK_IFELSE([AC_LANG_SOURCE([AC_LANG_PROGRAM])],[
23588-lt_aix_libpath_sed='
23589- /Import File Strings/,/^$/ {
23590- /^0/ {
23591- s/^0 *\(.*\)$/\1/
23592- p
23593- }
23594- }'
23595-aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
23596-# Check for a 64-bit object if we didn't find anything.
23597-if test -z "$aix_libpath"; then
23598- aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
23599-fi],[])
23600-if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
23601+if test "${lt_cv_aix_libpath+set}" = set; then
23602+ aix_libpath=$lt_cv_aix_libpath
23603+else
23604+ AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
23605+ [AC_LINK_IFELSE([AC_LANG_PROGRAM],[
23606+ lt_aix_libpath_sed='[
23607+ /Import File Strings/,/^$/ {
23608+ /^0/ {
23609+ s/^0 *\([^ ]*\) *$/\1/
23610+ p
23611+ }
23612+ }]'
23613+ _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
23614+ # Check for a 64-bit object if we didn't find anything.
23615+ if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
23616+ _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
23617+ fi],[])
23618+ if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
23619+ _LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib"
23620+ fi
23621+ ])
23622+ aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
23623+fi
23624 ])# _LT_SYS_MODULE_PATH_AIX
23625
23626
23627@@ -1119,7 +1134,7 @@ ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
23628
23629 AC_MSG_CHECKING([how to print strings])
23630 # Test print first, because it will be a builtin if present.
23631-if test "X`print -r -- -n 2>/dev/null`" = X-n && \
23632+if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
23633 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
23634 ECHO='print -r --'
23635 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
23636@@ -1163,6 +1178,39 @@ _LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
23637 ])# _LT_PROG_ECHO_BACKSLASH
23638
23639
23640+# _LT_WITH_SYSROOT
23641+# ----------------
23642+AC_DEFUN([_LT_WITH_SYSROOT],
23643+[AC_MSG_CHECKING([for sysroot])
23644+AC_ARG_WITH([libtool-sysroot],
23645+[ --with-libtool-sysroot[=DIR] Search for dependent libraries within DIR
23646+ (or the compiler's sysroot if not specified).],
23647+[], [with_libtool_sysroot=no])
23648+
23649+dnl lt_sysroot will always be passed unquoted. We quote it here
23650+dnl in case the user passed a directory name.
23651+lt_sysroot=
23652+case ${with_libtool_sysroot} in #(
23653+ yes)
23654+ if test "$GCC" = yes; then
23655+ lt_sysroot=`$CC --print-sysroot 2>/dev/null`
23656+ fi
23657+ ;; #(
23658+ /*)
23659+ lt_sysroot=`echo "$with_libtool_sysroot" | sed -e "$sed_quote_subst"`
23660+ ;; #(
23661+ no|'')
23662+ ;; #(
23663+ *)
23664+ AC_MSG_RESULT([${with_libtool_sysroot}])
23665+ AC_MSG_ERROR([The sysroot must be an absolute path.])
23666+ ;;
23667+esac
23668+
23669+ AC_MSG_RESULT([${lt_sysroot:-no}])
23670+_LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
23671+[dependent libraries, and in which our libraries should be installed.])])
23672+
23673 # _LT_ENABLE_LOCK
23674 # ---------------
23675 m4_defun([_LT_ENABLE_LOCK],
23676@@ -1322,6 +1370,51 @@ need_locks="$enable_libtool_lock"
23677 ])# _LT_ENABLE_LOCK
23678
23679
23680+# _LT_PROG_AR
23681+# -----------
23682+m4_defun([_LT_PROG_AR],
23683+[AC_CHECK_TOOLS(AR, [ar], false)
23684+ touch conftest.c
23685+ $AR $plugin_option rc conftest.a conftest.c
23686+ if test "$?" != 0; then
23687+ AC_MSG_WARN([Failed: $AR $plugin_option rc])
23688+ else
23689+ AR="$AR $plugin_option"
23690+ fi
23691+ rm -f conftest.*
23692+: ${AR=ar}
23693+: ${AR_FLAGS=cru}
23694+_LT_DECL([], [AR], [1], [The archiver])
23695+_LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive])
23696+
23697+AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file],
23698+ [lt_cv_ar_at_file=no
23699+ AC_COMPILE_IFELSE([AC_LANG_PROGRAM],
23700+ [echo conftest.$ac_objext > conftest.lst
23701+ lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD'
23702+ AC_TRY_EVAL([lt_ar_try])
23703+ if test "$ac_status" -eq 0; then
23704+ # Ensure the archiver fails upon bogus file names.
23705+ rm -f conftest.$ac_objext libconftest.a
23706+ AC_TRY_EVAL([lt_ar_try])
23707+ if test "$ac_status" -ne 0; then
23708+ lt_cv_ar_at_file=@
23709+ fi
23710+ fi
23711+ rm -f conftest.* libconftest.a
23712+ ])
23713+ ])
23714+
23715+if test "x$lt_cv_ar_at_file" = xno; then
23716+ archiver_list_spec=
23717+else
23718+ archiver_list_spec=$lt_cv_ar_at_file
23719+fi
23720+_LT_DECL([], [archiver_list_spec], [1],
23721+ [How to feed a file listing to the archiver])
23722+])# _LT_PROG_AR
23723+
23724+
23725 # _LT_CMD_OLD_ARCHIVE
23726 # -------------------
23727 m4_defun([_LT_CMD_OLD_ARCHIVE],
23728@@ -1338,23 +1431,7 @@ for plugin in $plugin_names; do
23729 fi
23730 done
23731
23732-AC_CHECK_TOOL(AR, ar, false)
23733-test -z "$AR" && AR=ar
23734-if test -n "$plugin_option"; then
23735- if $AR --help 2>&1 | grep -q "\--plugin"; then
23736- touch conftest.c
23737- $AR $plugin_option rc conftest.a conftest.c
23738- if test "$?" != 0; then
23739- AC_MSG_WARN([Failed: $AR $plugin_option rc])
23740- else
23741- AR="$AR $plugin_option"
23742- fi
23743- rm -f conftest.*
23744- fi
23745-fi
23746-test -z "$AR_FLAGS" && AR_FLAGS=cru
23747-_LT_DECL([], [AR], [1], [The archiver])
23748-_LT_DECL([], [AR_FLAGS], [1])
23749+_LT_PROG_AR
23750
23751 AC_CHECK_TOOL(STRIP, strip, :)
23752 test -z "$STRIP" && STRIP=:
23753@@ -1655,7 +1732,7 @@ else
23754 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23755 lt_status=$lt_dlunknown
23756 cat > conftest.$ac_ext <<_LT_EOF
23757-[#line __oline__ "configure"
23758+[#line $LINENO "configure"
23759 #include "confdefs.h"
23760
23761 #if HAVE_DLFCN_H
23762@@ -1699,10 +1776,10 @@ else
23763 /* When -fvisbility=hidden is used, assume the code has been annotated
23764 correspondingly for the symbols needed. */
23765 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
23766-void fnord () __attribute__((visibility("default")));
23767+int fnord () __attribute__((visibility("default")));
23768 #endif
23769
23770-void fnord () { int i=42; }
23771+int fnord () { return 42; }
23772 int main ()
23773 {
23774 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23775@@ -2242,8 +2319,9 @@ cygwin* | mingw* | pw32* | cegcc*)
23776 need_version=no
23777 need_lib_prefix=no
23778
23779- case $GCC,$host_os in
23780- yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
23781+ case $GCC,$cc_basename in
23782+ yes,*)
23783+ # gcc
23784 library_names_spec='$libname.dll.a'
23785 # DLL is installed to $(libdir)/../bin by postinstall_cmds
23786 postinstall_cmds='base_file=`basename \${file}`~
23787@@ -2276,13 +2354,71 @@ m4_if([$1], [],[
23788 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
23789 ;;
23790 esac
23791+ dynamic_linker='Win32 ld.exe'
23792+ ;;
23793+
23794+ *,cl*)
23795+ # Native MSVC
23796+ libname_spec='$name'
23797+ soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
23798+ library_names_spec='${libname}.dll.lib'
23799+
23800+ case $build_os in
23801+ mingw*)
23802+ sys_lib_search_path_spec=
23803+ lt_save_ifs=$IFS
23804+ IFS=';'
23805+ for lt_path in $LIB
23806+ do
23807+ IFS=$lt_save_ifs
23808+ # Let DOS variable expansion print the short 8.3 style file name.
23809+ lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
23810+ sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
23811+ done
23812+ IFS=$lt_save_ifs
23813+ # Convert to MSYS style.
23814+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
23815+ ;;
23816+ cygwin*)
23817+ # Convert to unix form, then to dos form, then back to unix form
23818+ # but this time dos style (no spaces!) so that the unix form looks
23819+ # like /cygdrive/c/PROGRA~1:/cygdr...
23820+ sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
23821+ sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
23822+ sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
23823+ ;;
23824+ *)
23825+ sys_lib_search_path_spec="$LIB"
23826+ if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
23827+ # It is most probably a Windows format PATH.
23828+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23829+ else
23830+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
23831+ fi
23832+ # FIXME: find the short name or the path components, as spaces are
23833+ # common. (e.g. "Program Files" -> "PROGRA~1")
23834+ ;;
23835+ esac
23836+
23837+ # DLL is installed to $(libdir)/../bin by postinstall_cmds
23838+ postinstall_cmds='base_file=`basename \${file}`~
23839+ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
23840+ dldir=$destdir/`dirname \$dlpath`~
23841+ test -d \$dldir || mkdir -p \$dldir~
23842+ $install_prog $dir/$dlname \$dldir/$dlname'
23843+ postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
23844+ dlpath=$dir/\$dldll~
23845+ $RM \$dlpath'
23846+ shlibpath_overrides_runpath=yes
23847+ dynamic_linker='Win32 link.exe'
23848 ;;
23849
23850 *)
23851+ # Assume MSVC wrapper
23852 library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
23853+ dynamic_linker='Win32 ld.exe'
23854 ;;
23855 esac
23856- dynamic_linker='Win32 ld.exe'
23857 # FIXME: first we should search . and the directory the executable is in
23858 shlibpath_var=PATH
23859 ;;
23860@@ -2996,6 +3132,11 @@ case $reload_flag in
23861 esac
23862 reload_cmds='$LD$reload_flag -o $output$reload_objs'
23863 case $host_os in
23864+ cygwin* | mingw* | pw32* | cegcc*)
23865+ if test "$GCC" != yes; then
23866+ reload_cmds=false
23867+ fi
23868+ ;;
23869 darwin*)
23870 if test "$GCC" = yes; then
23871 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
23872@@ -3062,7 +3203,8 @@ mingw* | pw32*)
23873 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
23874 lt_cv_file_magic_cmd='func_win32_libid'
23875 else
23876- lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
23877+ # Keep this pattern in sync with the one in func_win32_libid.
23878+ lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
23879 lt_cv_file_magic_cmd='$OBJDUMP -f'
23880 fi
23881 ;;
23882@@ -3218,6 +3360,21 @@ vxworks*)
23883 ;;
23884 esac
23885 ])
23886+
23887+file_magic_glob=
23888+want_nocaseglob=no
23889+if test "$build" = "$host"; then
23890+ case $host_os in
23891+ mingw* | pw32*)
23892+ if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
23893+ want_nocaseglob=yes
23894+ else
23895+ file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"`
23896+ fi
23897+ ;;
23898+ esac
23899+fi
23900+
23901 file_magic_cmd=$lt_cv_file_magic_cmd
23902 deplibs_check_method=$lt_cv_deplibs_check_method
23903 test -z "$deplibs_check_method" && deplibs_check_method=unknown
23904@@ -3225,7 +3382,11 @@ test -z "$deplibs_check_method" && deplibs_check_method=unknown
23905 _LT_DECL([], [deplibs_check_method], [1],
23906 [Method to check whether dependent libraries are shared objects])
23907 _LT_DECL([], [file_magic_cmd], [1],
23908- [Command to use when deplibs_check_method == "file_magic"])
23909+ [Command to use when deplibs_check_method = "file_magic"])
23910+_LT_DECL([], [file_magic_glob], [1],
23911+ [How to find potential files when deplibs_check_method = "file_magic"])
23912+_LT_DECL([], [want_nocaseglob], [1],
23913+ [Find potential files using nocaseglob when deplibs_check_method = "file_magic"])
23914 ])# _LT_CHECK_MAGIC_METHOD
23915
23916
23917@@ -3336,6 +3497,67 @@ dnl aclocal-1.4 backwards compatibility:
23918 dnl AC_DEFUN([AM_PROG_NM], [])
23919 dnl AC_DEFUN([AC_PROG_NM], [])
23920
23921+# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
23922+# --------------------------------
23923+# how to determine the name of the shared library
23924+# associated with a specific link library.
23925+# -- PORTME fill in with the dynamic library characteristics
23926+m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB],
23927+[m4_require([_LT_DECL_EGREP])
23928+m4_require([_LT_DECL_OBJDUMP])
23929+m4_require([_LT_DECL_DLLTOOL])
23930+AC_CACHE_CHECK([how to associate runtime and link libraries],
23931+lt_cv_sharedlib_from_linklib_cmd,
23932+[lt_cv_sharedlib_from_linklib_cmd='unknown'
23933+
23934+case $host_os in
23935+cygwin* | mingw* | pw32* | cegcc*)
23936+ # two different shell functions defined in ltmain.sh
23937+ # decide which to use based on capabilities of $DLLTOOL
23938+ case `$DLLTOOL --help 2>&1` in
23939+ *--identify-strict*)
23940+ lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
23941+ ;;
23942+ *)
23943+ lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
23944+ ;;
23945+ esac
23946+ ;;
23947+*)
23948+ # fallback: assume linklib IS sharedlib
23949+ lt_cv_sharedlib_from_linklib_cmd="$ECHO"
23950+ ;;
23951+esac
23952+])
23953+sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
23954+test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
23955+
23956+_LT_DECL([], [sharedlib_from_linklib_cmd], [1],
23957+ [Command to associate shared and link libraries])
23958+])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
23959+
23960+
23961+# _LT_PATH_MANIFEST_TOOL
23962+# ----------------------
23963+# locate the manifest tool
23964+m4_defun([_LT_PATH_MANIFEST_TOOL],
23965+[AC_CHECK_TOOL(MANIFEST_TOOL, mt, :)
23966+test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
23967+AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool],
23968+ [lt_cv_path_mainfest_tool=no
23969+ echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
23970+ $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
23971+ cat conftest.err >&AS_MESSAGE_LOG_FD
23972+ if $GREP 'Manifest Tool' conftest.out > /dev/null; then
23973+ lt_cv_path_mainfest_tool=yes
23974+ fi
23975+ rm -f conftest*])
23976+if test "x$lt_cv_path_mainfest_tool" != xyes; then
23977+ MANIFEST_TOOL=:
23978+fi
23979+_LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
23980+])# _LT_PATH_MANIFEST_TOOL
23981+
23982
23983 # LT_LIB_M
23984 # --------
23985@@ -3462,8 +3684,8 @@ esac
23986 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
23987
23988 # Transform an extracted symbol line into symbol name and symbol address
23989-lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
23990-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'"
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
23994 # Handle CRLF in mingw tool chain
23995 opt_cr=
23996@@ -3499,6 +3721,7 @@ for ac_symprfx in "" "_"; do
23997 else
23998 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
23999 fi
24000+ lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
24001
24002 # Check to see that the pipe works correctly.
24003 pipe_works=no
24004@@ -3532,6 +3755,18 @@ _LT_EOF
24005 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
24006 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
24007 cat <<_LT_EOF > conftest.$ac_ext
24008+/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
24009+#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
24010+/* DATA imports from DLLs on WIN32 con't be const, because runtime
24011+ relocations are performed -- see ld's documentation on pseudo-relocs. */
24012+# define LT@&t@_DLSYM_CONST
24013+#elif defined(__osf__)
24014+/* This system does not cope well with relocations in const data. */
24015+# define LT@&t@_DLSYM_CONST
24016+#else
24017+# define LT@&t@_DLSYM_CONST const
24018+#endif
24019+
24020 #ifdef __cplusplus
24021 extern "C" {
24022 #endif
24023@@ -3543,7 +3778,7 @@ _LT_EOF
24024 cat <<_LT_EOF >> conftest.$ac_ext
24025
24026 /* The mapping between symbol names and symbols. */
24027-const struct {
24028+LT@&t@_DLSYM_CONST struct {
24029 const char *name;
24030 void *address;
24031 }
24032@@ -3569,15 +3804,15 @@ static const void *lt_preloaded_setup() {
24033 _LT_EOF
24034 # Now try linking the two files.
24035 mv conftest.$ac_objext conftstm.$ac_objext
24036- lt_save_LIBS="$LIBS"
24037- lt_save_CFLAGS="$CFLAGS"
24038+ lt_globsym_save_LIBS=$LIBS
24039+ lt_globsym_save_CFLAGS=$CFLAGS
24040 LIBS="conftstm.$ac_objext"
24041 CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
24042 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
24043 pipe_works=yes
24044 fi
24045- LIBS="$lt_save_LIBS"
24046- CFLAGS="$lt_save_CFLAGS"
24047+ LIBS=$lt_globsym_save_LIBS
24048+ CFLAGS=$lt_globsym_save_CFLAGS
24049 else
24050 echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
24051 fi
24052@@ -3610,6 +3845,13 @@ else
24053 AC_MSG_RESULT(ok)
24054 fi
24055
24056+# Response file support.
24057+if test "$lt_cv_nm_interface" = "MS dumpbin"; then
24058+ nm_file_list_spec='@'
24059+elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then
24060+ nm_file_list_spec='@'
24061+fi
24062+
24063 _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
24064 [Take the output of nm and produce a listing of raw symbols and C names])
24065 _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
24066@@ -3620,6 +3862,8 @@ _LT_DECL([global_symbol_to_c_name_address],
24067 _LT_DECL([global_symbol_to_c_name_address_lib_prefix],
24068 [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
24069 [Transform the output of nm in a C name address pair when lib prefix is needed])
24070+_LT_DECL([], [nm_file_list_spec], [1],
24071+ [Specify filename containing input files for $NM])
24072 ]) # _LT_CMD_GLOBAL_SYMBOLS
24073
24074
24075@@ -3631,7 +3875,6 @@ _LT_TAGVAR(lt_prog_compiler_wl, $1)=
24076 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
24077 _LT_TAGVAR(lt_prog_compiler_static, $1)=
24078
24079-AC_MSG_CHECKING([for $compiler option to produce PIC])
24080 m4_if([$1], [CXX], [
24081 # C++ specific cases for pic, static, wl, etc.
24082 if test "$GXX" = yes; then
24083@@ -3737,6 +3980,12 @@ m4_if([$1], [CXX], [
24084 ;;
24085 esac
24086 ;;
24087+ mingw* | cygwin* | os2* | pw32* | cegcc*)
24088+ # This hack is so that the source file can tell whether it is being
24089+ # built for inclusion in a dll (and should export symbols for example).
24090+ m4_if([$1], [GCJ], [],
24091+ [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
24092+ ;;
24093 dgux*)
24094 case $cc_basename in
24095 ec++*)
24096@@ -3889,7 +4138,7 @@ m4_if([$1], [CXX], [
24097 ;;
24098 solaris*)
24099 case $cc_basename in
24100- CC*)
24101+ CC* | sunCC*)
24102 # Sun C++ 4.2, 5.x and Centerline C++
24103 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
24104 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
24105@@ -4112,6 +4361,12 @@ m4_if([$1], [CXX], [
24106 _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
24107 _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
24108 ;;
24109+ nagfor*)
24110+ # NAG Fortran compiler
24111+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
24112+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
24113+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
24114+ ;;
24115 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
24116 # Portland Group compilers (*not* the Pentium gcc compiler,
24117 # which looks to be a dead project)
24118@@ -4174,7 +4429,7 @@ m4_if([$1], [CXX], [
24119 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
24120 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
24121 case $cc_basename in
24122- f77* | f90* | f95*)
24123+ f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
24124 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
24125 *)
24126 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
24127@@ -4231,9 +4486,11 @@ case $host_os in
24128 _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
24129 ;;
24130 esac
24131-AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
24132-_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
24133- [How to pass a linker flag through the compiler])
24134+
24135+AC_CACHE_CHECK([for $compiler option to produce PIC],
24136+ [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)],
24137+ [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
24138+_LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)
24139
24140 #
24141 # Check to make sure the PIC flag actually works.
24142@@ -4252,6 +4509,8 @@ fi
24143 _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
24144 [Additional compiler flags for building library objects])
24145
24146+_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
24147+ [How to pass a linker flag through the compiler])
24148 #
24149 # Check to make sure the static flag actually works.
24150 #
24151@@ -4272,6 +4531,7 @@ _LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
24152 m4_defun([_LT_LINKER_SHLIBS],
24153 [AC_REQUIRE([LT_PATH_LD])dnl
24154 AC_REQUIRE([LT_PATH_NM])dnl
24155+m4_require([_LT_PATH_MANIFEST_TOOL])dnl
24156 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
24157 m4_require([_LT_DECL_EGREP])dnl
24158 m4_require([_LT_DECL_SED])dnl
24159@@ -4280,6 +4540,7 @@ m4_require([_LT_TAG_COMPILER])dnl
24160 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
24161 m4_if([$1], [CXX], [
24162 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24163+ _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
24164 case $host_os in
24165 aix[[4-9]]*)
24166 # If we're using GNU nm, then we don't want the "-C" option.
24167@@ -4294,15 +4555,20 @@ m4_if([$1], [CXX], [
24168 ;;
24169 pw32*)
24170 _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
24171- ;;
24172+ ;;
24173 cygwin* | mingw* | cegcc*)
24174- _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'
24175- ;;
24176+ case $cc_basename in
24177+ cl*) ;;
24178+ *)
24179+ _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'
24180+ _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
24181+ ;;
24182+ esac
24183+ ;;
24184 *)
24185 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24186- ;;
24187+ ;;
24188 esac
24189- _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
24190 ], [
24191 runpath_var=
24192 _LT_TAGVAR(allow_undefined_flag, $1)=
24193@@ -4470,7 +4736,8 @@ _LT_EOF
24194 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
24195 _LT_TAGVAR(always_export_symbols, $1)=no
24196 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
24197- _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'
24198+ _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'
24199+ _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
24200
24201 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
24202 _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'
24203@@ -4569,12 +4836,12 @@ _LT_EOF
24204 _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
24205 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
24206 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
24207- _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
24208+ _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
24209 if test "x$supports_anon_versioning" = xyes; then
24210 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
24211 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24212 echo "local: *; };" >> $output_objdir/$libname.ver~
24213- $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
24214+ $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
24215 fi
24216 ;;
24217 esac
24218@@ -4588,8 +4855,8 @@ _LT_EOF
24219 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24220 wlarc=
24221 else
24222- _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24223- _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'
24224+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24225+ _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'
24226 fi
24227 ;;
24228
24229@@ -4607,8 +4874,8 @@ _LT_EOF
24230
24231 _LT_EOF
24232 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
24233- _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24234- _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'
24235+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24236+ _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'
24237 else
24238 _LT_TAGVAR(ld_shlibs, $1)=no
24239 fi
24240@@ -4654,8 +4921,8 @@ _LT_EOF
24241
24242 *)
24243 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
24244- _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24245- _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'
24246+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24247+ _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'
24248 else
24249 _LT_TAGVAR(ld_shlibs, $1)=no
24250 fi
24251@@ -4785,7 +5052,7 @@ _LT_EOF
24252 _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
24253 # Determine the default libpath from the value encoded in an
24254 # empty executable.
24255- _LT_SYS_MODULE_PATH_AIX
24256+ _LT_SYS_MODULE_PATH_AIX([$1])
24257 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
24258 _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"
24259 else
24260@@ -4796,7 +5063,7 @@ _LT_EOF
24261 else
24262 # Determine the default libpath from the value encoded in an
24263 # empty executable.
24264- _LT_SYS_MODULE_PATH_AIX
24265+ _LT_SYS_MODULE_PATH_AIX([$1])
24266 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
24267 # Warning - without using the other run time loading flags,
24268 # -berok will link without error, but may produce a broken library.
24269@@ -4840,20 +5107,63 @@ _LT_EOF
24270 # Microsoft Visual C++.
24271 # hardcode_libdir_flag_spec is actually meaningless, as there is
24272 # no search path for DLLs.
24273- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
24274- _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
24275- # Tell ltmain to make .lib files, not .a files.
24276- libext=lib
24277- # Tell ltmain to make .dll files, not .so files.
24278- shrext_cmds=".dll"
24279- # FIXME: Setting linknames here is a bad hack.
24280- _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
24281- # The linker will automatically build a .lib file if we build a DLL.
24282- _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
24283- # FIXME: Should let the user specify the lib program.
24284- _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
24285- _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
24286- _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
24287+ case $cc_basename in
24288+ cl*)
24289+ # Native MSVC
24290+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
24291+ _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
24292+ _LT_TAGVAR(always_export_symbols, $1)=yes
24293+ _LT_TAGVAR(file_list_spec, $1)='@'
24294+ # Tell ltmain to make .lib files, not .a files.
24295+ libext=lib
24296+ # Tell ltmain to make .dll files, not .so files.
24297+ shrext_cmds=".dll"
24298+ # FIXME: Setting linknames here is a bad hack.
24299+ _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
24300+ _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24301+ sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
24302+ else
24303+ sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
24304+ fi~
24305+ $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
24306+ linknames='
24307+ # The linker will not automatically build a static lib if we build a DLL.
24308+ # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
24309+ _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
24310+ _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'
24311+ # Don't use ranlib
24312+ _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
24313+ _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
24314+ lt_tool_outputfile="@TOOL_OUTPUT@"~
24315+ case $lt_outputfile in
24316+ *.exe|*.EXE) ;;
24317+ *)
24318+ lt_outputfile="$lt_outputfile.exe"
24319+ lt_tool_outputfile="$lt_tool_outputfile.exe"
24320+ ;;
24321+ esac~
24322+ if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
24323+ $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
24324+ $RM "$lt_outputfile.manifest";
24325+ fi'
24326+ ;;
24327+ *)
24328+ # Assume MSVC wrapper
24329+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
24330+ _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
24331+ # Tell ltmain to make .lib files, not .a files.
24332+ libext=lib
24333+ # Tell ltmain to make .dll files, not .so files.
24334+ shrext_cmds=".dll"
24335+ # FIXME: Setting linknames here is a bad hack.
24336+ _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
24337+ # The linker will automatically build a .lib file if we build a DLL.
24338+ _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
24339+ # FIXME: Should let the user specify the lib program.
24340+ _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
24341+ _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
24342+ ;;
24343+ esac
24344 ;;
24345
24346 darwin* | rhapsody*)
24347@@ -4887,7 +5197,7 @@ _LT_EOF
24348
24349 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
24350 freebsd* | dragonfly*)
24351- _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24352+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24353 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
24354 _LT_TAGVAR(hardcode_direct, $1)=yes
24355 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
24356@@ -4895,7 +5205,7 @@ _LT_EOF
24357
24358 hpux9*)
24359 if test "$GCC" = yes; then
24360- _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'
24361+ _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'
24362 else
24363 _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'
24364 fi
24365@@ -4911,7 +5221,7 @@ _LT_EOF
24366
24367 hpux10*)
24368 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
24369- _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24370+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24371 else
24372 _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24373 fi
24374@@ -4935,10 +5245,10 @@ _LT_EOF
24375 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24376 ;;
24377 ia64*)
24378- _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24379+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24380 ;;
24381 *)
24382- _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24383+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24384 ;;
24385 esac
24386 else
24387@@ -4985,16 +5295,31 @@ _LT_EOF
24388
24389 irix5* | irix6* | nonstopux*)
24390 if test "$GCC" = yes; then
24391- _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'
24392+ _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'
24393 # Try to use the -exported_symbol ld option, if it does not
24394 # work, assume that -exports_file does not work either and
24395 # implicitly export all symbols.
24396- save_LDFLAGS="$LDFLAGS"
24397- LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
24398- AC_LINK_IFELSE([AC_LANG_SOURCE([int foo(void) {}])],
24399- _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'
24400- )
24401- LDFLAGS="$save_LDFLAGS"
24402+ # This should be the same for all languages, so no per-tag cache variable.
24403+ AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
24404+ [lt_cv_irix_exported_symbol],
24405+ [save_LDFLAGS="$LDFLAGS"
24406+ LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
24407+ AC_LINK_IFELSE(
24408+ [AC_LANG_SOURCE(
24409+ [AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
24410+ [C++], [[int foo (void) { return 0; }]],
24411+ [Fortran 77], [[
24412+ subroutine foo
24413+ end]],
24414+ [Fortran], [[
24415+ subroutine foo
24416+ end]])])],
24417+ [lt_cv_irix_exported_symbol=yes],
24418+ [lt_cv_irix_exported_symbol=no])
24419+ LDFLAGS="$save_LDFLAGS"])
24420+ if test "$lt_cv_irix_exported_symbol" = yes; then
24421+ _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'
24422+ fi
24423 else
24424 _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'
24425 _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'
24426@@ -5079,7 +5404,7 @@ _LT_EOF
24427 osf4* | osf5*) # as osf3* with the addition of -msym flag
24428 if test "$GCC" = yes; then
24429 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
24430- _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'
24431+ _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'
24432 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
24433 else
24434 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
24435@@ -5098,9 +5423,9 @@ _LT_EOF
24436 _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
24437 if test "$GCC" = yes; then
24438 wlarc='${wl}'
24439- _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24440+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24441 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
24442- $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
24443+ $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'
24444 else
24445 case `$CC -V 2>&1` in
24446 *"Compilers 5.0"*)
24447@@ -5372,8 +5697,6 @@ _LT_TAGDECL([], [inherit_rpath], [0],
24448 to runtime path list])
24449 _LT_TAGDECL([], [link_all_deplibs], [0],
24450 [Whether libtool must link a program against all its dependency libraries])
24451-_LT_TAGDECL([], [fix_srcfile_path], [1],
24452- [Fix the shell variable $srcfile for the compiler])
24453 _LT_TAGDECL([], [always_export_symbols], [0],
24454 [Set to "yes" if exported symbols are required])
24455 _LT_TAGDECL([], [export_symbols_cmds], [2],
24456@@ -5384,6 +5707,8 @@ _LT_TAGDECL([], [include_expsyms], [1],
24457 [Symbols that must always be exported])
24458 _LT_TAGDECL([], [prelink_cmds], [2],
24459 [Commands necessary for linking programs (against libraries) with templates])
24460+_LT_TAGDECL([], [postlink_cmds], [2],
24461+ [Commands necessary for finishing linking programs])
24462 _LT_TAGDECL([], [file_list_spec], [1],
24463 [Specify filename containing input files])
24464 dnl FIXME: Not yet implemented
24465@@ -5485,6 +5810,7 @@ CC="$lt_save_CC"
24466 m4_defun([_LT_LANG_CXX_CONFIG],
24467 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
24468 m4_require([_LT_DECL_EGREP])dnl
24469+m4_require([_LT_PATH_MANIFEST_TOOL])dnl
24470 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
24471 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
24472 (test "X$CXX" != "Xg++"))) ; then
24473@@ -5546,6 +5872,7 @@ if test "$_lt_caught_CXX_error" != yes; then
24474
24475 # Allow CC to be a program name with arguments.
24476 lt_save_CC=$CC
24477+ lt_save_CFLAGS=$CFLAGS
24478 lt_save_LD=$LD
24479 lt_save_GCC=$GCC
24480 GCC=$GXX
24481@@ -5563,6 +5890,7 @@ if test "$_lt_caught_CXX_error" != yes; then
24482 fi
24483 test -z "${LDCXX+set}" || LD=$LDCXX
24484 CC=${CXX-"c++"}
24485+ CFLAGS=$CXXFLAGS
24486 compiler=$CC
24487 _LT_TAGVAR(compiler, $1)=$CC
24488 _LT_CC_BASENAME([$compiler])
24489@@ -5726,7 +6054,7 @@ if test "$_lt_caught_CXX_error" != yes; then
24490 _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
24491 # Determine the default libpath from the value encoded in an empty
24492 # executable.
24493- _LT_SYS_MODULE_PATH_AIX
24494+ _LT_SYS_MODULE_PATH_AIX([$1])
24495 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
24496
24497 _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"
24498@@ -5738,7 +6066,7 @@ if test "$_lt_caught_CXX_error" != yes; then
24499 else
24500 # Determine the default libpath from the value encoded in an
24501 # empty executable.
24502- _LT_SYS_MODULE_PATH_AIX
24503+ _LT_SYS_MODULE_PATH_AIX([$1])
24504 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
24505 # Warning - without using the other run time loading flags,
24506 # -berok will link without error, but may produce a broken library.
24507@@ -5780,29 +6108,75 @@ if test "$_lt_caught_CXX_error" != yes; then
24508 ;;
24509
24510 cygwin* | mingw* | pw32* | cegcc*)
24511- # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
24512- # as there is no search path for DLLs.
24513- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
24514- _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
24515- _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
24516- _LT_TAGVAR(always_export_symbols, $1)=no
24517- _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
24518-
24519- if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
24520- _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'
24521- # If the export-symbols file already is a .def file (1st line
24522- # is EXPORTS), use it as is; otherwise, prepend...
24523- _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24524- cp $export_symbols $output_objdir/$soname.def;
24525- else
24526- echo EXPORTS > $output_objdir/$soname.def;
24527- cat $export_symbols >> $output_objdir/$soname.def;
24528- fi~
24529- $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'
24530- else
24531- _LT_TAGVAR(ld_shlibs, $1)=no
24532- fi
24533- ;;
24534+ case $GXX,$cc_basename in
24535+ ,cl* | no,cl*)
24536+ # Native MSVC
24537+ # hardcode_libdir_flag_spec is actually meaningless, as there is
24538+ # no search path for DLLs.
24539+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
24540+ _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
24541+ _LT_TAGVAR(always_export_symbols, $1)=yes
24542+ _LT_TAGVAR(file_list_spec, $1)='@'
24543+ # Tell ltmain to make .lib files, not .a files.
24544+ libext=lib
24545+ # Tell ltmain to make .dll files, not .so files.
24546+ shrext_cmds=".dll"
24547+ # FIXME: Setting linknames here is a bad hack.
24548+ _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
24549+ _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24550+ $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
24551+ else
24552+ $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
24553+ fi~
24554+ $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
24555+ linknames='
24556+ # The linker will not automatically build a static lib if we build a DLL.
24557+ # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
24558+ _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
24559+ # Don't use ranlib
24560+ _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
24561+ _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
24562+ lt_tool_outputfile="@TOOL_OUTPUT@"~
24563+ case $lt_outputfile in
24564+ *.exe|*.EXE) ;;
24565+ *)
24566+ lt_outputfile="$lt_outputfile.exe"
24567+ lt_tool_outputfile="$lt_tool_outputfile.exe"
24568+ ;;
24569+ esac~
24570+ func_to_tool_file "$lt_outputfile"~
24571+ if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
24572+ $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
24573+ $RM "$lt_outputfile.manifest";
24574+ fi'
24575+ ;;
24576+ *)
24577+ # g++
24578+ # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
24579+ # as there is no search path for DLLs.
24580+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
24581+ _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
24582+ _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
24583+ _LT_TAGVAR(always_export_symbols, $1)=no
24584+ _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
24585+
24586+ if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
24587+ _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'
24588+ # If the export-symbols file already is a .def file (1st line
24589+ # is EXPORTS), use it as is; otherwise, prepend...
24590+ _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24591+ cp $export_symbols $output_objdir/$soname.def;
24592+ else
24593+ echo EXPORTS > $output_objdir/$soname.def;
24594+ cat $export_symbols >> $output_objdir/$soname.def;
24595+ fi~
24596+ $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'
24597+ else
24598+ _LT_TAGVAR(ld_shlibs, $1)=no
24599+ fi
24600+ ;;
24601+ esac
24602+ ;;
24603 darwin* | rhapsody*)
24604 _LT_DARWIN_LINKER_FEATURES($1)
24605 ;;
24606@@ -5877,7 +6251,7 @@ if test "$_lt_caught_CXX_error" != yes; then
24607 ;;
24608 *)
24609 if test "$GXX" = yes; then
24610- _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'
24611+ _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'
24612 else
24613 # FIXME: insert proper C++ library support
24614 _LT_TAGVAR(ld_shlibs, $1)=no
24615@@ -5948,10 +6322,10 @@ if test "$_lt_caught_CXX_error" != yes; then
24616 _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'
24617 ;;
24618 ia64*)
24619- _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'
24620+ _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'
24621 ;;
24622 *)
24623- _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'
24624+ _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'
24625 ;;
24626 esac
24627 fi
24628@@ -5992,9 +6366,9 @@ if test "$_lt_caught_CXX_error" != yes; then
24629 *)
24630 if test "$GXX" = yes; then
24631 if test "$with_gnu_ld" = no; then
24632- _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'
24633+ _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'
24634 else
24635- _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'
24636+ _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'
24637 fi
24638 fi
24639 _LT_TAGVAR(link_all_deplibs, $1)=yes
24640@@ -6272,7 +6646,7 @@ if test "$_lt_caught_CXX_error" != yes; then
24641 _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'
24642 ;;
24643 *)
24644- _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'
24645+ _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'
24646 ;;
24647 esac
24648
24649@@ -6318,7 +6692,7 @@ if test "$_lt_caught_CXX_error" != yes; then
24650
24651 solaris*)
24652 case $cc_basename in
24653- CC*)
24654+ CC* | sunCC*)
24655 # Sun C++ 4.2, 5.x and Centerline C++
24656 _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
24657 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
24658@@ -6359,9 +6733,9 @@ if test "$_lt_caught_CXX_error" != yes; then
24659 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
24660 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
24661 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
24662- _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
24663+ _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'
24664 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
24665- $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
24666+ $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
24667
24668 # Commands to make compiler produce verbose output that lists
24669 # what "hidden" libraries, object files and flags are used when
24670@@ -6491,6 +6865,7 @@ if test "$_lt_caught_CXX_error" != yes; then
24671 fi # test -n "$compiler"
24672
24673 CC=$lt_save_CC
24674+ CFLAGS=$lt_save_CFLAGS
24675 LDCXX=$LD
24676 LD=$lt_save_LD
24677 GCC=$lt_save_GCC
24678@@ -6505,6 +6880,29 @@ AC_LANG_POP
24679 ])# _LT_LANG_CXX_CONFIG
24680
24681
24682+# _LT_FUNC_STRIPNAME_CNF
24683+# ----------------------
24684+# func_stripname_cnf prefix suffix name
24685+# strip PREFIX and SUFFIX off of NAME.
24686+# PREFIX and SUFFIX must not contain globbing or regex special
24687+# characters, hashes, percent signs, but SUFFIX may contain a leading
24688+# dot (in which case that matches only a dot).
24689+#
24690+# This function is identical to the (non-XSI) version of func_stripname,
24691+# except this one can be used by m4 code that may be executed by configure,
24692+# rather than the libtool script.
24693+m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl
24694+AC_REQUIRE([_LT_DECL_SED])
24695+AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])
24696+func_stripname_cnf ()
24697+{
24698+ case ${2} in
24699+ .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
24700+ *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
24701+ esac
24702+} # func_stripname_cnf
24703+])# _LT_FUNC_STRIPNAME_CNF
24704+
24705 # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
24706 # ---------------------------------
24707 # Figure out "hidden" library dependencies from verbose
24708@@ -6513,6 +6911,7 @@ AC_LANG_POP
24709 # objects, libraries and library flags.
24710 m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
24711 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
24712+AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl
24713 # Dependencies to place before and after the object being linked:
24714 _LT_TAGVAR(predep_objects, $1)=
24715 _LT_TAGVAR(postdep_objects, $1)=
24716@@ -6563,6 +6962,13 @@ public class foo {
24717 };
24718 _LT_EOF
24719 ])
24720+
24721+_lt_libdeps_save_CFLAGS=$CFLAGS
24722+case "$CC $CFLAGS " in #(
24723+*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
24724+*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
24725+esac
24726+
24727 dnl Parse the compiler output and extract the necessary
24728 dnl objects, libraries and library flags.
24729 if AC_TRY_EVAL(ac_compile); then
24730@@ -6574,7 +6980,7 @@ if AC_TRY_EVAL(ac_compile); then
24731 pre_test_object_deps_done=no
24732
24733 for p in `eval "$output_verbose_link_cmd"`; do
24734- case $p in
24735+ case ${prev}${p} in
24736
24737 -L* | -R* | -l*)
24738 # Some compilers place space between "-{L,R}" and the path.
24739@@ -6583,13 +6989,22 @@ if AC_TRY_EVAL(ac_compile); then
24740 test $p = "-R"; then
24741 prev=$p
24742 continue
24743- else
24744- prev=
24745 fi
24746
24747+ # Expand the sysroot to ease extracting the directories later.
24748+ if test -z "$prev"; then
24749+ case $p in
24750+ -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
24751+ -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
24752+ -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
24753+ esac
24754+ fi
24755+ case $p in
24756+ =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
24757+ esac
24758 if test "$pre_test_object_deps_done" = no; then
24759- case $p in
24760- -L* | -R*)
24761+ case ${prev} in
24762+ -L | -R)
24763 # Internal compiler library paths should come after those
24764 # provided the user. The postdeps already come after the
24765 # user supplied libs so there is no need to process them.
24766@@ -6609,8 +7024,10 @@ if AC_TRY_EVAL(ac_compile); then
24767 _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
24768 fi
24769 fi
24770+ prev=
24771 ;;
24772
24773+ *.lto.$objext) ;; # Ignore GCC LTO objects
24774 *.$objext)
24775 # This assumes that the test object file only shows up
24776 # once in the compiler output.
24777@@ -6646,6 +7063,7 @@ else
24778 fi
24779
24780 $RM -f confest.$objext
24781+CFLAGS=$_lt_libdeps_save_CFLAGS
24782
24783 # PORTME: override above test on systems where it is broken
24784 m4_if([$1], [CXX],
24785@@ -6682,7 +7100,7 @@ linux*)
24786
24787 solaris*)
24788 case $cc_basename in
24789- CC*)
24790+ CC* | sunCC*)
24791 # The more standards-conforming stlport4 library is
24792 # incompatible with the Cstd library. Avoid specifying
24793 # it if it's in CXXFLAGS. Ignore libCrun as
24794@@ -6795,7 +7213,9 @@ if test "$_lt_disable_F77" != yes; then
24795 # Allow CC to be a program name with arguments.
24796 lt_save_CC="$CC"
24797 lt_save_GCC=$GCC
24798+ lt_save_CFLAGS=$CFLAGS
24799 CC=${F77-"f77"}
24800+ CFLAGS=$FFLAGS
24801 compiler=$CC
24802 _LT_TAGVAR(compiler, $1)=$CC
24803 _LT_CC_BASENAME([$compiler])
24804@@ -6849,6 +7269,7 @@ if test "$_lt_disable_F77" != yes; then
24805
24806 GCC=$lt_save_GCC
24807 CC="$lt_save_CC"
24808+ CFLAGS="$lt_save_CFLAGS"
24809 fi # test "$_lt_disable_F77" != yes
24810
24811 AC_LANG_POP
24812@@ -6925,7 +7346,9 @@ if test "$_lt_disable_FC" != yes; then
24813 # Allow CC to be a program name with arguments.
24814 lt_save_CC="$CC"
24815 lt_save_GCC=$GCC
24816+ lt_save_CFLAGS=$CFLAGS
24817 CC=${FC-"f95"}
24818+ CFLAGS=$FCFLAGS
24819 compiler=$CC
24820 GCC=$ac_cv_fc_compiler_gnu
24821
24822@@ -6981,7 +7404,8 @@ if test "$_lt_disable_FC" != yes; then
24823 fi # test -n "$compiler"
24824
24825 GCC=$lt_save_GCC
24826- CC="$lt_save_CC"
24827+ CC=$lt_save_CC
24828+ CFLAGS=$lt_save_CFLAGS
24829 fi # test "$_lt_disable_FC" != yes
24830
24831 AC_LANG_POP
24832@@ -7018,10 +7442,12 @@ _LT_COMPILER_BOILERPLATE
24833 _LT_LINKER_BOILERPLATE
24834
24835 # Allow CC to be a program name with arguments.
24836-lt_save_CC="$CC"
24837+lt_save_CC=$CC
24838+lt_save_CFLAGS=$CFLAGS
24839 lt_save_GCC=$GCC
24840 GCC=yes
24841 CC=${GCJ-"gcj"}
24842+CFLAGS=$GCJFLAGS
24843 compiler=$CC
24844 _LT_TAGVAR(compiler, $1)=$CC
24845 _LT_TAGVAR(LD, $1)="$LD"
24846@@ -7052,7 +7478,8 @@ fi
24847 AC_LANG_RESTORE
24848
24849 GCC=$lt_save_GCC
24850-CC="$lt_save_CC"
24851+CC=$lt_save_CC
24852+CFLAGS=$lt_save_CFLAGS
24853 ])# _LT_LANG_GCJ_CONFIG
24854
24855
24856@@ -7087,9 +7514,11 @@ _LT_LINKER_BOILERPLATE
24857
24858 # Allow CC to be a program name with arguments.
24859 lt_save_CC="$CC"
24860+lt_save_CFLAGS=$CFLAGS
24861 lt_save_GCC=$GCC
24862 GCC=
24863 CC=${RC-"windres"}
24864+CFLAGS=
24865 compiler=$CC
24866 _LT_TAGVAR(compiler, $1)=$CC
24867 _LT_CC_BASENAME([$compiler])
24868@@ -7102,7 +7531,8 @@ fi
24869
24870 GCC=$lt_save_GCC
24871 AC_LANG_RESTORE
24872-CC="$lt_save_CC"
24873+CC=$lt_save_CC
24874+CFLAGS=$lt_save_CFLAGS
24875 ])# _LT_LANG_RC_CONFIG
24876
24877
24878@@ -7161,6 +7591,15 @@ _LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
24879 AC_SUBST([OBJDUMP])
24880 ])
24881
24882+# _LT_DECL_DLLTOOL
24883+# ----------------
24884+# Ensure DLLTOOL variable is set.
24885+m4_defun([_LT_DECL_DLLTOOL],
24886+[AC_CHECK_TOOL(DLLTOOL, dlltool, false)
24887+test -z "$DLLTOOL" && DLLTOOL=dlltool
24888+_LT_DECL([], [DLLTOOL], [1], [DLL creation program])
24889+AC_SUBST([DLLTOOL])
24890+])
24891
24892 # _LT_DECL_SED
24893 # ------------
24894@@ -7254,8 +7693,8 @@ m4_defun([_LT_CHECK_SHELL_FEATURES],
24895 # Try some XSI features
24896 xsi_shell=no
24897 ( _lt_dummy="a/b/c"
24898- test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
24899- = c,a/b,, \
24900+ test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
24901+ = c,a/b,b/c, \
24902 && eval 'test $(( 1 + 1 )) -eq 2 \
24903 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
24904 && xsi_shell=yes
24905@@ -7294,206 +7733,162 @@ _LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
24906 ])# _LT_CHECK_SHELL_FEATURES
24907
24908
24909-# _LT_PROG_XSI_SHELLFNS
24910-# ---------------------
24911-# Bourne and XSI compatible variants of some useful shell functions.
24912-m4_defun([_LT_PROG_XSI_SHELLFNS],
24913-[case $xsi_shell in
24914- yes)
24915- cat << \_LT_EOF >> "$cfgfile"
24916-
24917-# func_dirname file append nondir_replacement
24918-# Compute the dirname of FILE. If nonempty, add APPEND to the result,
24919-# otherwise set result to NONDIR_REPLACEMENT.
24920-func_dirname ()
24921-{
24922- case ${1} in
24923- */*) func_dirname_result="${1%/*}${2}" ;;
24924- * ) func_dirname_result="${3}" ;;
24925- esac
24926-}
24927-
24928-# func_basename file
24929-func_basename ()
24930-{
24931- func_basename_result="${1##*/}"
24932-}
24933-
24934-# func_dirname_and_basename file append nondir_replacement
24935-# perform func_basename and func_dirname in a single function
24936-# call:
24937-# dirname: Compute the dirname of FILE. If nonempty,
24938-# add APPEND to the result, otherwise set result
24939-# to NONDIR_REPLACEMENT.
24940-# value returned in "$func_dirname_result"
24941-# basename: Compute filename of FILE.
24942-# value retuned in "$func_basename_result"
24943-# Implementation must be kept synchronized with func_dirname
24944-# and func_basename. For efficiency, we do not delegate to
24945-# those functions but instead duplicate the functionality here.
24946-func_dirname_and_basename ()
24947-{
24948- case ${1} in
24949- */*) func_dirname_result="${1%/*}${2}" ;;
24950- * ) func_dirname_result="${3}" ;;
24951- esac
24952- func_basename_result="${1##*/}"
24953-}
24954-
24955-# func_stripname prefix suffix name
24956-# strip PREFIX and SUFFIX off of NAME.
24957-# PREFIX and SUFFIX must not contain globbing or regex special
24958-# characters, hashes, percent signs, but SUFFIX may contain a leading
24959-# dot (in which case that matches only a dot).
24960-func_stripname ()
24961-{
24962- # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
24963- # positional parameters, so assign one to ordinary parameter first.
24964- func_stripname_result=${3}
24965- func_stripname_result=${func_stripname_result#"${1}"}
24966- func_stripname_result=${func_stripname_result%"${2}"}
24967-}
24968-
24969-# func_opt_split
24970-func_opt_split ()
24971-{
24972- func_opt_split_opt=${1%%=*}
24973- func_opt_split_arg=${1#*=}
24974-}
24975-
24976-# func_lo2o object
24977-func_lo2o ()
24978-{
24979- case ${1} in
24980- *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
24981- *) func_lo2o_result=${1} ;;
24982- esac
24983-}
24984-
24985-# func_xform libobj-or-source
24986-func_xform ()
24987-{
24988- func_xform_result=${1%.*}.lo
24989-}
24990-
24991-# func_arith arithmetic-term...
24992-func_arith ()
24993-{
24994- func_arith_result=$(( $[*] ))
24995-}
24996-
24997-# func_len string
24998-# STRING may not start with a hyphen.
24999-func_len ()
25000-{
25001- func_len_result=${#1}
25002-}
25003+# _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY)
25004+# ------------------------------------------------------
25005+# In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and
25006+# '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY.
25007+m4_defun([_LT_PROG_FUNCTION_REPLACE],
25008+[dnl {
25009+sed -e '/^$1 ()$/,/^} # $1 /c\
25010+$1 ()\
25011+{\
25012+m4_bpatsubsts([$2], [$], [\\], [^\([ ]\)], [\\\1])
25013+} # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \
25014+ && mv -f "$cfgfile.tmp" "$cfgfile" \
25015+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
25016+test 0 -eq $? || _lt_function_replace_fail=:
25017+])
25018
25019-_LT_EOF
25020- ;;
25021- *) # Bourne compatible functions.
25022- cat << \_LT_EOF >> "$cfgfile"
25023
25024-# func_dirname file append nondir_replacement
25025-# Compute the dirname of FILE. If nonempty, add APPEND to the result,
25026-# otherwise set result to NONDIR_REPLACEMENT.
25027-func_dirname ()
25028-{
25029- # Extract subdirectory from the argument.
25030- func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
25031- if test "X$func_dirname_result" = "X${1}"; then
25032- func_dirname_result="${3}"
25033- else
25034- func_dirname_result="$func_dirname_result${2}"
25035- fi
25036-}
25037+# _LT_PROG_REPLACE_SHELLFNS
25038+# -------------------------
25039+# Replace existing portable implementations of several shell functions with
25040+# equivalent extended shell implementations where those features are available..
25041+m4_defun([_LT_PROG_REPLACE_SHELLFNS],
25042+[if test x"$xsi_shell" = xyes; then
25043+ _LT_PROG_FUNCTION_REPLACE([func_dirname], [dnl
25044+ case ${1} in
25045+ */*) func_dirname_result="${1%/*}${2}" ;;
25046+ * ) func_dirname_result="${3}" ;;
25047+ esac])
25048+
25049+ _LT_PROG_FUNCTION_REPLACE([func_basename], [dnl
25050+ func_basename_result="${1##*/}"])
25051+
25052+ _LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl
25053+ case ${1} in
25054+ */*) func_dirname_result="${1%/*}${2}" ;;
25055+ * ) func_dirname_result="${3}" ;;
25056+ esac
25057+ func_basename_result="${1##*/}"])
25058
25059-# func_basename file
25060-func_basename ()
25061-{
25062- func_basename_result=`$ECHO "${1}" | $SED "$basename"`
25063-}
25064+ _LT_PROG_FUNCTION_REPLACE([func_stripname], [dnl
25065+ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
25066+ # positional parameters, so assign one to ordinary parameter first.
25067+ func_stripname_result=${3}
25068+ func_stripname_result=${func_stripname_result#"${1}"}
25069+ func_stripname_result=${func_stripname_result%"${2}"}])
25070
25071-dnl func_dirname_and_basename
25072-dnl A portable version of this function is already defined in general.m4sh
25073-dnl so there is no need for it here.
25074+ _LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl
25075+ func_split_long_opt_name=${1%%=*}
25076+ func_split_long_opt_arg=${1#*=}])
25077
25078-# func_stripname prefix suffix name
25079-# strip PREFIX and SUFFIX off of NAME.
25080-# PREFIX and SUFFIX must not contain globbing or regex special
25081-# characters, hashes, percent signs, but SUFFIX may contain a leading
25082-# dot (in which case that matches only a dot).
25083-# func_strip_suffix prefix name
25084-func_stripname ()
25085-{
25086- case ${2} in
25087- .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
25088- *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
25089- esac
25090-}
25091+ _LT_PROG_FUNCTION_REPLACE([func_split_short_opt], [dnl
25092+ func_split_short_opt_arg=${1#??}
25093+ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}])
25094
25095-# sed scripts:
25096-my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
25097-my_sed_long_arg='1s/^-[[^=]]*=//'
25098+ _LT_PROG_FUNCTION_REPLACE([func_lo2o], [dnl
25099+ case ${1} in
25100+ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
25101+ *) func_lo2o_result=${1} ;;
25102+ esac])
25103
25104-# func_opt_split
25105-func_opt_split ()
25106-{
25107- func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
25108- func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
25109-}
25110+ _LT_PROG_FUNCTION_REPLACE([func_xform], [ func_xform_result=${1%.*}.lo])
25111
25112-# func_lo2o object
25113-func_lo2o ()
25114-{
25115- func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
25116-}
25117+ _LT_PROG_FUNCTION_REPLACE([func_arith], [ func_arith_result=$(( $[*] ))])
25118
25119-# func_xform libobj-or-source
25120-func_xform ()
25121-{
25122- func_xform_result=`$ECHO "${1}" | $SED 's/\.[[^.]]*$/.lo/'`
25123-}
25124+ _LT_PROG_FUNCTION_REPLACE([func_len], [ func_len_result=${#1}])
25125+fi
25126
25127-# func_arith arithmetic-term...
25128-func_arith ()
25129-{
25130- func_arith_result=`expr "$[@]"`
25131-}
25132+if test x"$lt_shell_append" = xyes; then
25133+ _LT_PROG_FUNCTION_REPLACE([func_append], [ eval "${1}+=\\${2}"])
25134
25135-# func_len string
25136-# STRING may not start with a hyphen.
25137-func_len ()
25138-{
25139- func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
25140-}
25141+ _LT_PROG_FUNCTION_REPLACE([func_append_quoted], [dnl
25142+ func_quote_for_eval "${2}"
25143+dnl m4 expansion turns \\\\ into \\, and then the shell eval turns that into \
25144+ eval "${1}+=\\\\ \\$func_quote_for_eval_result"])
25145
25146-_LT_EOF
25147-esac
25148+ # Save a `func_append' function call where possible by direct use of '+='
25149+ sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
25150+ && mv -f "$cfgfile.tmp" "$cfgfile" \
25151+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
25152+ test 0 -eq $? || _lt_function_replace_fail=:
25153+else
25154+ # Save a `func_append' function call even when '+=' is not available
25155+ sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
25156+ && mv -f "$cfgfile.tmp" "$cfgfile" \
25157+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
25158+ test 0 -eq $? || _lt_function_replace_fail=:
25159+fi
25160
25161-case $lt_shell_append in
25162- yes)
25163- cat << \_LT_EOF >> "$cfgfile"
25164+if test x"$_lt_function_replace_fail" = x":"; then
25165+ AC_MSG_WARN([Unable to substitute extended shell functions in $ofile])
25166+fi
25167+])
25168
25169-# func_append var value
25170-# Append VALUE to the end of shell variable VAR.
25171-func_append ()
25172-{
25173- eval "$[1]+=\$[2]"
25174-}
25175-_LT_EOF
25176+# _LT_PATH_CONVERSION_FUNCTIONS
25177+# -----------------------------
25178+# Determine which file name conversion functions should be used by
25179+# func_to_host_file (and, implicitly, by func_to_host_path). These are needed
25180+# for certain cross-compile configurations and native mingw.
25181+m4_defun([_LT_PATH_CONVERSION_FUNCTIONS],
25182+[AC_REQUIRE([AC_CANONICAL_HOST])dnl
25183+AC_REQUIRE([AC_CANONICAL_BUILD])dnl
25184+AC_MSG_CHECKING([how to convert $build file names to $host format])
25185+AC_CACHE_VAL(lt_cv_to_host_file_cmd,
25186+[case $host in
25187+ *-*-mingw* )
25188+ case $build in
25189+ *-*-mingw* ) # actually msys
25190+ lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
25191+ ;;
25192+ *-*-cygwin* )
25193+ lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
25194+ ;;
25195+ * ) # otherwise, assume *nix
25196+ lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
25197+ ;;
25198+ esac
25199 ;;
25200- *)
25201- cat << \_LT_EOF >> "$cfgfile"
25202-
25203-# func_append var value
25204-# Append VALUE to the end of shell variable VAR.
25205-func_append ()
25206-{
25207- eval "$[1]=\$$[1]\$[2]"
25208-}
25209-
25210-_LT_EOF
25211+ *-*-cygwin* )
25212+ case $build in
25213+ *-*-mingw* ) # actually msys
25214+ lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
25215+ ;;
25216+ *-*-cygwin* )
25217+ lt_cv_to_host_file_cmd=func_convert_file_noop
25218+ ;;
25219+ * ) # otherwise, assume *nix
25220+ lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
25221+ ;;
25222+ esac
25223 ;;
25224- esac
25225+ * ) # unhandled hosts (and "normal" native builds)
25226+ lt_cv_to_host_file_cmd=func_convert_file_noop
25227+ ;;
25228+esac
25229+])
25230+to_host_file_cmd=$lt_cv_to_host_file_cmd
25231+AC_MSG_RESULT([$lt_cv_to_host_file_cmd])
25232+_LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd],
25233+ [0], [convert $build file names to $host format])dnl
25234+
25235+AC_MSG_CHECKING([how to convert $build file names to toolchain format])
25236+AC_CACHE_VAL(lt_cv_to_tool_file_cmd,
25237+[#assume ordinary cross tools, or native build.
25238+lt_cv_to_tool_file_cmd=func_convert_file_noop
25239+case $host in
25240+ *-*-mingw* )
25241+ case $build in
25242+ *-*-mingw* ) # actually msys
25243+ lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
25244+ ;;
25245+ esac
25246+ ;;
25247+esac
25248 ])
25249+to_tool_file_cmd=$lt_cv_to_tool_file_cmd
25250+AC_MSG_RESULT([$lt_cv_to_tool_file_cmd])
25251+_LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd],
25252+ [0], [convert $build files to toolchain format])dnl
25253+])# _LT_PATH_CONVERSION_FUNCTIONS
25254diff --git a/ltmain.sh b/ltmain.sh
25255index 70990740b6c..7f7104ffc82 100644
25256--- a/ltmain.sh
25257+++ b/ltmain.sh
25258@@ -1,10 +1,9 @@
25259-# Generated from ltmain.m4sh.
25260
25261-# libtool (GNU libtool 1.3134 2009-11-29) 2.2.7a
25262+# libtool (GNU libtool) 2.4
25263 # Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
25264
25265 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006,
25266-# 2007, 2008, 2009 Free Software Foundation, Inc.
25267+# 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
25268 # This is free software; see the source for copying conditions. There is NO
25269 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
25270
25271@@ -38,7 +37,6 @@
25272 # -n, --dry-run display commands without modifying any files
25273 # --features display basic configuration information and exit
25274 # --mode=MODE use operation mode MODE
25275-# --no-finish let install mode avoid finish commands
25276 # --preserve-dup-deps don't remove duplicate dependency libraries
25277 # --quiet, --silent don't print informational messages
25278 # --no-quiet, --no-silent
25279@@ -71,17 +69,19 @@
25280 # compiler: $LTCC
25281 # compiler flags: $LTCFLAGS
25282 # linker: $LD (gnu? $with_gnu_ld)
25283-# $progname: (GNU libtool 1.3134 2009-11-29) 2.2.7a
25284+# $progname: (GNU libtool) 2.4
25285 # automake: $automake_version
25286 # autoconf: $autoconf_version
25287 #
25288 # Report bugs to <bug-libtool@gnu.org>.
25289+# GNU libtool home page: <http://www.gnu.org/software/libtool/>.
25290+# General help using GNU software: <http://www.gnu.org/gethelp/>.
25291
25292 PROGRAM=libtool
25293 PACKAGE=libtool
25294-VERSION=2.2.7a
25295-TIMESTAMP=" 1.3134 2009-11-29"
25296-package_revision=1.3134
25297+VERSION=2.4
25298+TIMESTAMP=""
25299+package_revision=1.3293
25300
25301 # Be Bourne compatible
25302 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25303@@ -106,9 +106,6 @@ _LTECHO_EOF'
25304 }
25305
25306 # NLS nuisances: We save the old values to restore during execute mode.
25307-# Only set LANG and LC_ALL to C if already set.
25308-# These must not be set unconditionally because not all systems understand
25309-# e.g. LANG=C (notably SCO).
25310 lt_user_locale=
25311 lt_safe_locale=
25312 for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
25313@@ -121,15 +118,13 @@ do
25314 lt_safe_locale=\"$lt_var=C; \$lt_safe_locale\"
25315 fi"
25316 done
25317+LC_ALL=C
25318+LANGUAGE=C
25319+export LANGUAGE LC_ALL
25320
25321 $lt_unset CDPATH
25322
25323
25324-
25325-
25326-
25327-
25328-
25329 # Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
25330 # is ksh but when the shell is invoked as "sh" and the current value of
25331 # the _XPG environment variable is not equal to 1 (one), the special
25332@@ -140,7 +135,7 @@ progpath="$0"
25333
25334
25335 : ${CP="cp -f"}
25336-: ${ECHO=$as_echo}
25337+test "${ECHO+set}" = set || ECHO=${as_echo-'printf %s\n'}
25338 : ${EGREP="/bin/grep -E"}
25339 : ${FGREP="/bin/grep -F"}
25340 : ${GREP="/bin/grep"}
25341@@ -149,7 +144,7 @@ progpath="$0"
25342 : ${MKDIR="mkdir"}
25343 : ${MV="mv -f"}
25344 : ${RM="rm -f"}
25345-: ${SED="/mount/endor/wildenhu/local-x86_64/bin/sed"}
25346+: ${SED="/bin/sed"}
25347 : ${SHELL="${CONFIG_SHELL-/bin/sh}"}
25348 : ${Xsed="$SED -e 1s/^X//"}
25349
25350@@ -169,6 +164,27 @@ IFS=" $lt_nl"
25351 dirname="s,/[^/]*$,,"
25352 basename="s,^.*/,,"
25353
25354+# func_dirname file append nondir_replacement
25355+# Compute the dirname of FILE. If nonempty, add APPEND to the result,
25356+# otherwise set result to NONDIR_REPLACEMENT.
25357+func_dirname ()
25358+{
25359+ func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
25360+ if test "X$func_dirname_result" = "X${1}"; then
25361+ func_dirname_result="${3}"
25362+ else
25363+ func_dirname_result="$func_dirname_result${2}"
25364+ fi
25365+} # func_dirname may be replaced by extended shell implementation
25366+
25367+
25368+# func_basename file
25369+func_basename ()
25370+{
25371+ func_basename_result=`$ECHO "${1}" | $SED "$basename"`
25372+} # func_basename may be replaced by extended shell implementation
25373+
25374+
25375 # func_dirname_and_basename file append nondir_replacement
25376 # perform func_basename and func_dirname in a single function
25377 # call:
25378@@ -183,17 +199,31 @@ basename="s,^.*/,,"
25379 # those functions but instead duplicate the functionality here.
25380 func_dirname_and_basename ()
25381 {
25382- # Extract subdirectory from the argument.
25383- func_dirname_result=`$ECHO "${1}" | $SED -e "$dirname"`
25384- if test "X$func_dirname_result" = "X${1}"; then
25385- func_dirname_result="${3}"
25386- else
25387- func_dirname_result="$func_dirname_result${2}"
25388- fi
25389- func_basename_result=`$ECHO "${1}" | $SED -e "$basename"`
25390-}
25391+ # Extract subdirectory from the argument.
25392+ func_dirname_result=`$ECHO "${1}" | $SED -e "$dirname"`
25393+ if test "X$func_dirname_result" = "X${1}"; then
25394+ func_dirname_result="${3}"
25395+ else
25396+ func_dirname_result="$func_dirname_result${2}"
25397+ fi
25398+ func_basename_result=`$ECHO "${1}" | $SED -e "$basename"`
25399+} # func_dirname_and_basename may be replaced by extended shell implementation
25400+
25401+
25402+# func_stripname prefix suffix name
25403+# strip PREFIX and SUFFIX off of NAME.
25404+# PREFIX and SUFFIX must not contain globbing or regex special
25405+# characters, hashes, percent signs, but SUFFIX may contain a leading
25406+# dot (in which case that matches only a dot).
25407+# func_strip_suffix prefix name
25408+func_stripname ()
25409+{
25410+ case ${2} in
25411+ .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
25412+ *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
25413+ esac
25414+} # func_stripname may be replaced by extended shell implementation
25415
25416-# Generated shell functions inserted here.
25417
25418 # These SED scripts presuppose an absolute path with a trailing slash.
25419 pathcar='s,^/\([^/]*\).*$,\1,'
25420@@ -376,6 +406,15 @@ sed_quote_subst='s/\([`"$\\]\)/\\\1/g'
25421 # Same as above, but do not quote variable references.
25422 double_quote_subst='s/\(["`\\]\)/\\\1/g'
25423
25424+# Sed substitution that turns a string into a regex matching for the
25425+# string literally.
25426+sed_make_literal_regex='s,[].[^$\\*\/],\\&,g'
25427+
25428+# Sed substitution that converts a w32 file name or path
25429+# which contains forward slashes, into one that contains
25430+# (escaped) backslashes. A very naive implementation.
25431+lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
25432+
25433 # Re-`\' parameter expansions in output of double_quote_subst that were
25434 # `\'-ed in input to the same. If an odd number of `\' preceded a '$'
25435 # in input to double_quote_subst, that '$' was protected from expansion.
25436@@ -404,7 +443,7 @@ opt_warning=:
25437 # name if it has been set yet.
25438 func_echo ()
25439 {
25440- $ECHO "$progname${mode+: }$mode: $*"
25441+ $ECHO "$progname: ${opt_mode+$opt_mode: }$*"
25442 }
25443
25444 # func_verbose arg...
25445@@ -430,14 +469,14 @@ func_echo_all ()
25446 # Echo program name prefixed message to standard error.
25447 func_error ()
25448 {
25449- $ECHO "$progname${mode+: }$mode: "${1+"$@"} 1>&2
25450+ $ECHO "$progname: ${opt_mode+$opt_mode: }"${1+"$@"} 1>&2
25451 }
25452
25453 # func_warning arg...
25454 # Echo program name prefixed warning message to standard error.
25455 func_warning ()
25456 {
25457- $opt_warning && $ECHO "$progname${mode+: }$mode: warning: "${1+"$@"} 1>&2
25458+ $opt_warning && $ECHO "$progname: ${opt_mode+$opt_mode: }warning: "${1+"$@"} 1>&2
25459
25460 # bash bug again:
25461 :
25462@@ -656,19 +695,35 @@ func_show_eval_locale ()
25463 fi
25464 }
25465
25466-
25467-
25468+# func_tr_sh
25469+# Turn $1 into a string suitable for a shell variable name.
25470+# Result is stored in $func_tr_sh_result. All characters
25471+# not in the set a-zA-Z0-9_ are replaced with '_'. Further,
25472+# if $1 begins with a digit, a '_' is prepended as well.
25473+func_tr_sh ()
25474+{
25475+ case $1 in
25476+ [0-9]* | *[!a-zA-Z0-9_]*)
25477+ func_tr_sh_result=`$ECHO "$1" | $SED 's/^\([0-9]\)/_\1/; s/[^a-zA-Z0-9_]/_/g'`
25478+ ;;
25479+ * )
25480+ func_tr_sh_result=$1
25481+ ;;
25482+ esac
25483+}
25484
25485
25486 # func_version
25487 # Echo version message to standard output and exit.
25488 func_version ()
25489 {
25490+ $opt_debug
25491+
25492 $SED -n '/(C)/!b go
25493 :more
25494 /\./!{
25495 N
25496- s/\n# //
25497+ s/\n# / /
25498 b more
25499 }
25500 :go
25501@@ -685,7 +740,9 @@ func_version ()
25502 # Echo short help message to standard output and exit.
25503 func_usage ()
25504 {
25505- $SED -n '/^# Usage:/,/^# *-h/ {
25506+ $opt_debug
25507+
25508+ $SED -n '/^# Usage:/,/^# *.*--help/ {
25509 s/^# //
25510 s/^# *$//
25511 s/\$progname/'$progname'/
25512@@ -701,7 +758,10 @@ func_usage ()
25513 # unless 'noexit' is passed as argument.
25514 func_help ()
25515 {
25516+ $opt_debug
25517+
25518 $SED -n '/^# Usage:/,/# Report bugs to/ {
25519+ :print
25520 s/^# //
25521 s/^# *$//
25522 s*\$progname*'$progname'*
25523@@ -714,7 +774,11 @@ func_help ()
25524 s/\$automake_version/'"`(automake --version) 2>/dev/null |$SED 1q`"'/
25525 s/\$autoconf_version/'"`(autoconf --version) 2>/dev/null |$SED 1q`"'/
25526 p
25527- }' < "$progpath"
25528+ d
25529+ }
25530+ /^# .* home page:/b print
25531+ /^# General help using/b print
25532+ ' < "$progpath"
25533 ret=$?
25534 if test -z "$1"; then
25535 exit $ret
25536@@ -726,12 +790,39 @@ func_help ()
25537 # exit_cmd.
25538 func_missing_arg ()
25539 {
25540- func_error "missing argument for $1"
25541+ $opt_debug
25542+
25543+ func_error "missing argument for $1."
25544 exit_cmd=exit
25545 }
25546
25547-exit_cmd=:
25548
25549+# func_split_short_opt shortopt
25550+# Set func_split_short_opt_name and func_split_short_opt_arg shell
25551+# variables after splitting SHORTOPT after the 2nd character.
25552+func_split_short_opt ()
25553+{
25554+ my_sed_short_opt='1s/^\(..\).*$/\1/;q'
25555+ my_sed_short_rest='1s/^..\(.*\)$/\1/;q'
25556+
25557+ func_split_short_opt_name=`$ECHO "$1" | $SED "$my_sed_short_opt"`
25558+ func_split_short_opt_arg=`$ECHO "$1" | $SED "$my_sed_short_rest"`
25559+} # func_split_short_opt may be replaced by extended shell implementation
25560+
25561+
25562+# func_split_long_opt longopt
25563+# Set func_split_long_opt_name and func_split_long_opt_arg shell
25564+# variables after splitting LONGOPT at the `=' sign.
25565+func_split_long_opt ()
25566+{
25567+ my_sed_long_opt='1s/^\(--[^=]*\)=.*/\1/;q'
25568+ my_sed_long_arg='1s/^--[^=]*=//'
25569+
25570+ func_split_long_opt_name=`$ECHO "$1" | $SED "$my_sed_long_opt"`
25571+ func_split_long_opt_arg=`$ECHO "$1" | $SED "$my_sed_long_arg"`
25572+} # func_split_long_opt may be replaced by extended shell implementation
25573+
25574+exit_cmd=:
25575
25576
25577
25578@@ -741,26 +832,64 @@ magic="%%%MAGIC variable%%%"
25579 magic_exe="%%%MAGIC EXE variable%%%"
25580
25581 # Global variables.
25582-# $mode is unset
25583 nonopt=
25584-execute_dlfiles=
25585 preserve_args=
25586 lo2o="s/\\.lo\$/.${objext}/"
25587 o2lo="s/\\.${objext}\$/.lo/"
25588 extracted_archives=
25589 extracted_serial=0
25590
25591-opt_dry_run=false
25592-opt_finish=:
25593-opt_duplicate_deps=false
25594-opt_silent=false
25595-opt_debug=:
25596-
25597 # If this variable is set in any of the actions, the command in it
25598 # will be execed at the end. This prevents here-documents from being
25599 # left over by shells.
25600 exec_cmd=
25601
25602+# func_append var value
25603+# Append VALUE to the end of shell variable VAR.
25604+func_append ()
25605+{
25606+ eval "${1}=\$${1}\${2}"
25607+} # func_append may be replaced by extended shell implementation
25608+
25609+# func_append_quoted var value
25610+# Quote VALUE and append to the end of shell variable VAR, separated
25611+# by a space.
25612+func_append_quoted ()
25613+{
25614+ func_quote_for_eval "${2}"
25615+ eval "${1}=\$${1}\\ \$func_quote_for_eval_result"
25616+} # func_append_quoted may be replaced by extended shell implementation
25617+
25618+
25619+# func_arith arithmetic-term...
25620+func_arith ()
25621+{
25622+ func_arith_result=`expr "${@}"`
25623+} # func_arith may be replaced by extended shell implementation
25624+
25625+
25626+# func_len string
25627+# STRING may not start with a hyphen.
25628+func_len ()
25629+{
25630+ func_len_result=`expr "${1}" : ".*" 2>/dev/null || echo $max_cmd_len`
25631+} # func_len may be replaced by extended shell implementation
25632+
25633+
25634+# func_lo2o object
25635+func_lo2o ()
25636+{
25637+ func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
25638+} # func_lo2o may be replaced by extended shell implementation
25639+
25640+
25641+# func_xform libobj-or-source
25642+func_xform ()
25643+{
25644+ func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
25645+} # func_xform may be replaced by extended shell implementation
25646+
25647+
25648 # func_fatal_configuration arg...
25649 # Echo program name prefixed message to standard error, followed by
25650 # a configuration failure hint, and exit.
25651@@ -850,130 +979,204 @@ func_enable_tag ()
25652 esac
25653 }
25654
25655-# Parse options once, thoroughly. This comes as soon as possible in
25656-# the script to make things like `libtool --version' happen quickly.
25657+# func_check_version_match
25658+# Ensure that we are using m4 macros, and libtool script from the same
25659+# release of libtool.
25660+func_check_version_match ()
25661 {
25662+ if test "$package_revision" != "$macro_revision"; then
25663+ if test "$VERSION" != "$macro_version"; then
25664+ if test -z "$macro_version"; then
25665+ cat >&2 <<_LT_EOF
25666+$progname: Version mismatch error. This is $PACKAGE $VERSION, but the
25667+$progname: definition of this LT_INIT comes from an older release.
25668+$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
25669+$progname: and run autoconf again.
25670+_LT_EOF
25671+ else
25672+ cat >&2 <<_LT_EOF
25673+$progname: Version mismatch error. This is $PACKAGE $VERSION, but the
25674+$progname: definition of this LT_INIT comes from $PACKAGE $macro_version.
25675+$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
25676+$progname: and run autoconf again.
25677+_LT_EOF
25678+ fi
25679+ else
25680+ cat >&2 <<_LT_EOF
25681+$progname: Version mismatch error. This is $PACKAGE $VERSION, revision $package_revision,
25682+$progname: but the definition of this LT_INIT comes from revision $macro_revision.
25683+$progname: You should recreate aclocal.m4 with macros from revision $package_revision
25684+$progname: of $PACKAGE $VERSION and run autoconf again.
25685+_LT_EOF
25686+ fi
25687
25688- # Shorthand for --mode=foo, only valid as the first argument
25689- case $1 in
25690- clean|clea|cle|cl)
25691- shift; set dummy --mode clean ${1+"$@"}; shift
25692- ;;
25693- compile|compil|compi|comp|com|co|c)
25694- shift; set dummy --mode compile ${1+"$@"}; shift
25695- ;;
25696- execute|execut|execu|exec|exe|ex|e)
25697- shift; set dummy --mode execute ${1+"$@"}; shift
25698- ;;
25699- finish|finis|fini|fin|fi|f)
25700- shift; set dummy --mode finish ${1+"$@"}; shift
25701- ;;
25702- install|instal|insta|inst|ins|in|i)
25703- shift; set dummy --mode install ${1+"$@"}; shift
25704- ;;
25705- link|lin|li|l)
25706- shift; set dummy --mode link ${1+"$@"}; shift
25707- ;;
25708- uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u)
25709- shift; set dummy --mode uninstall ${1+"$@"}; shift
25710- ;;
25711- esac
25712+ exit $EXIT_MISMATCH
25713+ fi
25714+}
25715+
25716+
25717+# Shorthand for --mode=foo, only valid as the first argument
25718+case $1 in
25719+clean|clea|cle|cl)
25720+ shift; set dummy --mode clean ${1+"$@"}; shift
25721+ ;;
25722+compile|compil|compi|comp|com|co|c)
25723+ shift; set dummy --mode compile ${1+"$@"}; shift
25724+ ;;
25725+execute|execut|execu|exec|exe|ex|e)
25726+ shift; set dummy --mode execute ${1+"$@"}; shift
25727+ ;;
25728+finish|finis|fini|fin|fi|f)
25729+ shift; set dummy --mode finish ${1+"$@"}; shift
25730+ ;;
25731+install|instal|insta|inst|ins|in|i)
25732+ shift; set dummy --mode install ${1+"$@"}; shift
25733+ ;;
25734+link|lin|li|l)
25735+ shift; set dummy --mode link ${1+"$@"}; shift
25736+ ;;
25737+uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u)
25738+ shift; set dummy --mode uninstall ${1+"$@"}; shift
25739+ ;;
25740+esac
25741
25742- # Parse non-mode specific arguments:
25743- while test "$#" -gt 0; do
25744+
25745+
25746+# Option defaults:
25747+opt_debug=:
25748+opt_dry_run=false
25749+opt_config=false
25750+opt_preserve_dup_deps=false
25751+opt_features=false
25752+opt_finish=false
25753+opt_help=false
25754+opt_help_all=false
25755+opt_silent=:
25756+opt_verbose=:
25757+opt_silent=false
25758+opt_verbose=false
25759+
25760+
25761+# Parse options once, thoroughly. This comes as soon as possible in the
25762+# script to make things like `--version' happen as quickly as we can.
25763+{
25764+ # this just eases exit handling
25765+ while test $# -gt 0; do
25766 opt="$1"
25767 shift
25768-
25769 case $opt in
25770- --config) func_config ;;
25771-
25772- --debug) preserve_args="$preserve_args $opt"
25773+ --debug|-x) opt_debug='set -x'
25774 func_echo "enabling shell trace mode"
25775- opt_debug='set -x'
25776 $opt_debug
25777 ;;
25778-
25779- -dlopen) test "$#" -eq 0 && func_missing_arg "$opt" && break
25780- execute_dlfiles="$execute_dlfiles $1"
25781- shift
25782+ --dry-run|--dryrun|-n)
25783+ opt_dry_run=:
25784 ;;
25785-
25786- --dry-run | -n) opt_dry_run=: ;;
25787- --features) func_features ;;
25788- --finish) mode="finish" ;;
25789- --no-finish) opt_finish=false ;;
25790-
25791- --mode) test "$#" -eq 0 && func_missing_arg "$opt" && break
25792- case $1 in
25793- # Valid mode arguments:
25794- clean) ;;
25795- compile) ;;
25796- execute) ;;
25797- finish) ;;
25798- install) ;;
25799- link) ;;
25800- relink) ;;
25801- uninstall) ;;
25802-
25803- # Catch anything else as an error
25804- *) func_error "invalid argument for $opt"
25805- exit_cmd=exit
25806- break
25807- ;;
25808- esac
25809-
25810- mode="$1"
25811+ --config)
25812+ opt_config=:
25813+func_config
25814+ ;;
25815+ --dlopen|-dlopen)
25816+ optarg="$1"
25817+ opt_dlopen="${opt_dlopen+$opt_dlopen
25818+}$optarg"
25819 shift
25820 ;;
25821-
25822 --preserve-dup-deps)
25823- opt_duplicate_deps=: ;;
25824-
25825- --quiet|--silent) preserve_args="$preserve_args $opt"
25826- opt_silent=:
25827- opt_verbose=false
25828+ opt_preserve_dup_deps=:
25829 ;;
25830-
25831- --no-quiet|--no-silent)
25832- preserve_args="$preserve_args $opt"
25833- opt_silent=false
25834+ --features)
25835+ opt_features=:
25836+func_features
25837 ;;
25838-
25839- --verbose| -v) preserve_args="$preserve_args $opt"
25840+ --finish)
25841+ opt_finish=:
25842+set dummy --mode finish ${1+"$@"}; shift
25843+ ;;
25844+ --help)
25845+ opt_help=:
25846+ ;;
25847+ --help-all)
25848+ opt_help_all=:
25849+opt_help=': help-all'
25850+ ;;
25851+ --mode)
25852+ test $# = 0 && func_missing_arg $opt && break
25853+ optarg="$1"
25854+ opt_mode="$optarg"
25855+case $optarg in
25856+ # Valid mode arguments:
25857+ clean|compile|execute|finish|install|link|relink|uninstall) ;;
25858+
25859+ # Catch anything else as an error
25860+ *) func_error "invalid argument for $opt"
25861+ exit_cmd=exit
25862+ break
25863+ ;;
25864+esac
25865+ shift
25866+ ;;
25867+ --no-silent|--no-quiet)
25868 opt_silent=false
25869- opt_verbose=:
25870+func_append preserve_args " $opt"
25871 ;;
25872-
25873- --no-verbose) preserve_args="$preserve_args $opt"
25874+ --no-verbose)
25875 opt_verbose=false
25876+func_append preserve_args " $opt"
25877 ;;
25878-
25879- --tag) test "$#" -eq 0 && func_missing_arg "$opt" && break
25880- preserve_args="$preserve_args $opt $1"
25881- func_enable_tag "$1" # tagname is set here
25882+ --silent|--quiet)
25883+ opt_silent=:
25884+func_append preserve_args " $opt"
25885+ opt_verbose=false
25886+ ;;
25887+ --verbose|-v)
25888+ opt_verbose=:
25889+func_append preserve_args " $opt"
25890+opt_silent=false
25891+ ;;
25892+ --tag)
25893+ test $# = 0 && func_missing_arg $opt && break
25894+ optarg="$1"
25895+ opt_tag="$optarg"
25896+func_append preserve_args " $opt $optarg"
25897+func_enable_tag "$optarg"
25898 shift
25899 ;;
25900
25901+ -\?|-h) func_usage ;;
25902+ --help) func_help ;;
25903+ --version) func_version ;;
25904+
25905 # Separate optargs to long options:
25906- -dlopen=*|--mode=*|--tag=*)
25907- func_opt_split "$opt"
25908- set dummy "$func_opt_split_opt" "$func_opt_split_arg" ${1+"$@"}
25909+ --*=*)
25910+ func_split_long_opt "$opt"
25911+ set dummy "$func_split_long_opt_name" "$func_split_long_opt_arg" ${1+"$@"}
25912 shift
25913 ;;
25914
25915- -\?|-h) func_usage ;;
25916- --help) opt_help=: ;;
25917- --help-all) opt_help=': help-all' ;;
25918- --version) func_version ;;
25919-
25920- -*) func_fatal_help "unrecognized option \`$opt'" ;;
25921-
25922- *) nonopt="$opt"
25923- break
25924+ # Separate non-argument short options:
25925+ -\?*|-h*|-n*|-v*)
25926+ func_split_short_opt "$opt"
25927+ set dummy "$func_split_short_opt_name" "-$func_split_short_opt_arg" ${1+"$@"}
25928+ shift
25929 ;;
25930+
25931+ --) break ;;
25932+ -*) func_fatal_help "unrecognized option \`$opt'" ;;
25933+ *) set dummy "$opt" ${1+"$@"}; shift; break ;;
25934 esac
25935 done
25936
25937+ # Validate options:
25938+
25939+ # save first non-option argument
25940+ if test "$#" -gt 0; then
25941+ nonopt="$opt"
25942+ shift
25943+ fi
25944+
25945+ # preserve --debug
25946+ test "$opt_debug" = : || func_append preserve_args " --debug"
25947
25948 case $host in
25949 *cygwin* | *mingw* | *pw32* | *cegcc* | *solaris2* )
25950@@ -981,82 +1184,44 @@ func_enable_tag ()
25951 opt_duplicate_compiler_generated_deps=:
25952 ;;
25953 *)
25954- opt_duplicate_compiler_generated_deps=$opt_duplicate_deps
25955+ opt_duplicate_compiler_generated_deps=$opt_preserve_dup_deps
25956 ;;
25957 esac
25958
25959- # Having warned about all mis-specified options, bail out if
25960- # anything was wrong.
25961- $exit_cmd $EXIT_FAILURE
25962-}
25963+ $opt_help || {
25964+ # Sanity checks first:
25965+ func_check_version_match
25966
25967-# func_check_version_match
25968-# Ensure that we are using m4 macros, and libtool script from the same
25969-# release of libtool.
25970-func_check_version_match ()
25971-{
25972- if test "$package_revision" != "$macro_revision"; then
25973- if test "$VERSION" != "$macro_version"; then
25974- if test -z "$macro_version"; then
25975- cat >&2 <<_LT_EOF
25976-$progname: Version mismatch error. This is $PACKAGE $VERSION, but the
25977-$progname: definition of this LT_INIT comes from an older release.
25978-$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
25979-$progname: and run autoconf again.
25980-_LT_EOF
25981- else
25982- cat >&2 <<_LT_EOF
25983-$progname: Version mismatch error. This is $PACKAGE $VERSION, but the
25984-$progname: definition of this LT_INIT comes from $PACKAGE $macro_version.
25985-$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
25986-$progname: and run autoconf again.
25987-_LT_EOF
25988- fi
25989- else
25990- cat >&2 <<_LT_EOF
25991-$progname: Version mismatch error. This is $PACKAGE $VERSION, revision $package_revision,
25992-$progname: but the definition of this LT_INIT comes from revision $macro_revision.
25993-$progname: You should recreate aclocal.m4 with macros from revision $package_revision
25994-$progname: of $PACKAGE $VERSION and run autoconf again.
25995-_LT_EOF
25996+ if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
25997+ func_fatal_configuration "not configured to build any kind of library"
25998 fi
25999
26000- exit $EXIT_MISMATCH
26001- fi
26002-}
26003-
26004+ # Darwin sucks
26005+ eval std_shrext=\"$shrext_cmds\"
26006
26007-## ----------- ##
26008-## Main. ##
26009-## ----------- ##
26010-
26011-$opt_help || {
26012- # Sanity checks first:
26013- func_check_version_match
26014-
26015- if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
26016- func_fatal_configuration "not configured to build any kind of library"
26017- fi
26018+ # Only execute mode is allowed to have -dlopen flags.
26019+ if test -n "$opt_dlopen" && test "$opt_mode" != execute; then
26020+ func_error "unrecognized option \`-dlopen'"
26021+ $ECHO "$help" 1>&2
26022+ exit $EXIT_FAILURE
26023+ fi
26024
26025- test -z "$mode" && func_fatal_error "error: you must specify a MODE."
26026+ # Change the help message to a mode-specific one.
26027+ generic_help="$help"
26028+ help="Try \`$progname --help --mode=$opt_mode' for more information."
26029+ }
26030
26031
26032- # Darwin sucks
26033- eval "std_shrext=\"$shrext_cmds\""
26034+ # Bail if the options were screwed
26035+ $exit_cmd $EXIT_FAILURE
26036+}
26037
26038
26039- # Only execute mode is allowed to have -dlopen flags.
26040- if test -n "$execute_dlfiles" && test "$mode" != execute; then
26041- func_error "unrecognized option \`-dlopen'"
26042- $ECHO "$help" 1>&2
26043- exit $EXIT_FAILURE
26044- fi
26045
26046- # Change the help message to a mode-specific one.
26047- generic_help="$help"
26048- help="Try \`$progname --help --mode=$mode' for more information."
26049-}
26050
26051+## ----------- ##
26052+## Main. ##
26053+## ----------- ##
26054
26055 # func_lalib_p file
26056 # True iff FILE is a libtool `.la' library or `.lo' object file.
26057@@ -1121,12 +1286,9 @@ func_ltwrapper_executable_p ()
26058 # temporary ltwrapper_script.
26059 func_ltwrapper_scriptname ()
26060 {
26061- func_ltwrapper_scriptname_result=""
26062- if func_ltwrapper_executable_p "$1"; then
26063- func_dirname_and_basename "$1" "" "."
26064- func_stripname '' '.exe' "$func_basename_result"
26065- func_ltwrapper_scriptname_result="$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper"
26066- fi
26067+ func_dirname_and_basename "$1" "" "."
26068+ func_stripname '' '.exe' "$func_basename_result"
26069+ func_ltwrapper_scriptname_result="$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper"
26070 }
26071
26072 # func_ltwrapper_p file
26073@@ -1149,7 +1311,7 @@ func_execute_cmds ()
26074 save_ifs=$IFS; IFS='~'
26075 for cmd in $1; do
26076 IFS=$save_ifs
26077- eval "cmd=\"$cmd\""
26078+ eval cmd=\"$cmd\"
26079 func_show_eval "$cmd" "${2-:}"
26080 done
26081 IFS=$save_ifs
26082@@ -1172,6 +1334,37 @@ func_source ()
26083 }
26084
26085
26086+# func_resolve_sysroot PATH
26087+# Replace a leading = in PATH with a sysroot. Store the result into
26088+# func_resolve_sysroot_result
26089+func_resolve_sysroot ()
26090+{
26091+ func_resolve_sysroot_result=$1
26092+ case $func_resolve_sysroot_result in
26093+ =*)
26094+ func_stripname '=' '' "$func_resolve_sysroot_result"
26095+ func_resolve_sysroot_result=$lt_sysroot$func_stripname_result
26096+ ;;
26097+ esac
26098+}
26099+
26100+# func_replace_sysroot PATH
26101+# If PATH begins with the sysroot, replace it with = and
26102+# store the result into func_replace_sysroot_result.
26103+func_replace_sysroot ()
26104+{
26105+ case "$lt_sysroot:$1" in
26106+ ?*:"$lt_sysroot"*)
26107+ func_stripname "$lt_sysroot" '' "$1"
26108+ func_replace_sysroot_result="=$func_stripname_result"
26109+ ;;
26110+ *)
26111+ # Including no sysroot.
26112+ func_replace_sysroot_result=$1
26113+ ;;
26114+ esac
26115+}
26116+
26117 # func_infer_tag arg
26118 # Infer tagged configuration to use if any are available and
26119 # if one wasn't chosen via the "--tag" command line option.
26120@@ -1184,8 +1377,7 @@ func_infer_tag ()
26121 if test -n "$available_tags" && test -z "$tagname"; then
26122 CC_quoted=
26123 for arg in $CC; do
26124- func_quote_for_eval "$arg"
26125- CC_quoted="$CC_quoted $func_quote_for_eval_result"
26126+ func_append_quoted CC_quoted "$arg"
26127 done
26128 CC_expanded=`func_echo_all $CC`
26129 CC_quoted_expanded=`func_echo_all $CC_quoted`
26130@@ -1204,8 +1396,7 @@ func_infer_tag ()
26131 CC_quoted=
26132 for arg in $CC; do
26133 # Double-quote args containing other shell metacharacters.
26134- func_quote_for_eval "$arg"
26135- CC_quoted="$CC_quoted $func_quote_for_eval_result"
26136+ func_append_quoted CC_quoted "$arg"
26137 done
26138 CC_expanded=`func_echo_all $CC`
26139 CC_quoted_expanded=`func_echo_all $CC_quoted`
26140@@ -1274,6 +1465,486 @@ EOF
26141 }
26142 }
26143
26144+
26145+##################################################
26146+# FILE NAME AND PATH CONVERSION HELPER FUNCTIONS #
26147+##################################################
26148+
26149+# func_convert_core_file_wine_to_w32 ARG
26150+# Helper function used by file name conversion functions when $build is *nix,
26151+# and $host is mingw, cygwin, or some other w32 environment. Relies on a
26152+# correctly configured wine environment available, with the winepath program
26153+# in $build's $PATH.
26154+#
26155+# ARG is the $build file name to be converted to w32 format.
26156+# Result is available in $func_convert_core_file_wine_to_w32_result, and will
26157+# be empty on error (or when ARG is empty)
26158+func_convert_core_file_wine_to_w32 ()
26159+{
26160+ $opt_debug
26161+ func_convert_core_file_wine_to_w32_result="$1"
26162+ if test -n "$1"; then
26163+ # Unfortunately, winepath does not exit with a non-zero error code, so we
26164+ # are forced to check the contents of stdout. On the other hand, if the
26165+ # command is not found, the shell will set an exit code of 127 and print
26166+ # *an error message* to stdout. So we must check for both error code of
26167+ # zero AND non-empty stdout, which explains the odd construction:
26168+ func_convert_core_file_wine_to_w32_tmp=`winepath -w "$1" 2>/dev/null`
26169+ if test "$?" -eq 0 && test -n "${func_convert_core_file_wine_to_w32_tmp}"; then
26170+ func_convert_core_file_wine_to_w32_result=`$ECHO "$func_convert_core_file_wine_to_w32_tmp" |
26171+ $SED -e "$lt_sed_naive_backslashify"`
26172+ else
26173+ func_convert_core_file_wine_to_w32_result=
26174+ fi
26175+ fi
26176+}
26177+# end: func_convert_core_file_wine_to_w32
26178+
26179+
26180+# func_convert_core_path_wine_to_w32 ARG
26181+# Helper function used by path conversion functions when $build is *nix, and
26182+# $host is mingw, cygwin, or some other w32 environment. Relies on a correctly
26183+# configured wine environment available, with the winepath program in $build's
26184+# $PATH. Assumes ARG has no leading or trailing path separator characters.
26185+#
26186+# ARG is path to be converted from $build format to win32.
26187+# Result is available in $func_convert_core_path_wine_to_w32_result.
26188+# Unconvertible file (directory) names in ARG are skipped; if no directory names
26189+# are convertible, then the result may be empty.
26190+func_convert_core_path_wine_to_w32 ()
26191+{
26192+ $opt_debug
26193+ # unfortunately, winepath doesn't convert paths, only file names
26194+ func_convert_core_path_wine_to_w32_result=""
26195+ if test -n "$1"; then
26196+ oldIFS=$IFS
26197+ IFS=:
26198+ for func_convert_core_path_wine_to_w32_f in $1; do
26199+ IFS=$oldIFS
26200+ func_convert_core_file_wine_to_w32 "$func_convert_core_path_wine_to_w32_f"
26201+ if test -n "$func_convert_core_file_wine_to_w32_result" ; then
26202+ if test -z "$func_convert_core_path_wine_to_w32_result"; then
26203+ func_convert_core_path_wine_to_w32_result="$func_convert_core_file_wine_to_w32_result"
26204+ else
26205+ func_append func_convert_core_path_wine_to_w32_result ";$func_convert_core_file_wine_to_w32_result"
26206+ fi
26207+ fi
26208+ done
26209+ IFS=$oldIFS
26210+ fi
26211+}
26212+# end: func_convert_core_path_wine_to_w32
26213+
26214+
26215+# func_cygpath ARGS...
26216+# Wrapper around calling the cygpath program via LT_CYGPATH. This is used when
26217+# when (1) $build is *nix and Cygwin is hosted via a wine environment; or (2)
26218+# $build is MSYS and $host is Cygwin, or (3) $build is Cygwin. In case (1) or
26219+# (2), returns the Cygwin file name or path in func_cygpath_result (input
26220+# file name or path is assumed to be in w32 format, as previously converted
26221+# from $build's *nix or MSYS format). In case (3), returns the w32 file name
26222+# or path in func_cygpath_result (input file name or path is assumed to be in
26223+# Cygwin format). Returns an empty string on error.
26224+#
26225+# ARGS are passed to cygpath, with the last one being the file name or path to
26226+# be converted.
26227+#
26228+# Specify the absolute *nix (or w32) name to cygpath in the LT_CYGPATH
26229+# environment variable; do not put it in $PATH.
26230+func_cygpath ()
26231+{
26232+ $opt_debug
26233+ if test -n "$LT_CYGPATH" && test -f "$LT_CYGPATH"; then
26234+ func_cygpath_result=`$LT_CYGPATH "$@" 2>/dev/null`
26235+ if test "$?" -ne 0; then
26236+ # on failure, ensure result is empty
26237+ func_cygpath_result=
26238+ fi
26239+ else
26240+ func_cygpath_result=
26241+ func_error "LT_CYGPATH is empty or specifies non-existent file: \`$LT_CYGPATH'"
26242+ fi
26243+}
26244+#end: func_cygpath
26245+
26246+
26247+# func_convert_core_msys_to_w32 ARG
26248+# Convert file name or path ARG from MSYS format to w32 format. Return
26249+# result in func_convert_core_msys_to_w32_result.
26250+func_convert_core_msys_to_w32 ()
26251+{
26252+ $opt_debug
26253+ # awkward: cmd appends spaces to result
26254+ func_convert_core_msys_to_w32_result=`( cmd //c echo "$1" ) 2>/dev/null |
26255+ $SED -e 's/[ ]*$//' -e "$lt_sed_naive_backslashify"`
26256+}
26257+#end: func_convert_core_msys_to_w32
26258+
26259+
26260+# func_convert_file_check ARG1 ARG2
26261+# Verify that ARG1 (a file name in $build format) was converted to $host
26262+# format in ARG2. Otherwise, emit an error message, but continue (resetting
26263+# func_to_host_file_result to ARG1).
26264+func_convert_file_check ()
26265+{
26266+ $opt_debug
26267+ if test -z "$2" && test -n "$1" ; then
26268+ func_error "Could not determine host file name corresponding to"
26269+ func_error " \`$1'"
26270+ func_error "Continuing, but uninstalled executables may not work."
26271+ # Fallback:
26272+ func_to_host_file_result="$1"
26273+ fi
26274+}
26275+# end func_convert_file_check
26276+
26277+
26278+# func_convert_path_check FROM_PATHSEP TO_PATHSEP FROM_PATH TO_PATH
26279+# Verify that FROM_PATH (a path in $build format) was converted to $host
26280+# format in TO_PATH. Otherwise, emit an error message, but continue, resetting
26281+# func_to_host_file_result to a simplistic fallback value (see below).
26282+func_convert_path_check ()
26283+{
26284+ $opt_debug
26285+ if test -z "$4" && test -n "$3"; then
26286+ func_error "Could not determine the host path corresponding to"
26287+ func_error " \`$3'"
26288+ func_error "Continuing, but uninstalled executables may not work."
26289+ # Fallback. This is a deliberately simplistic "conversion" and
26290+ # should not be "improved". See libtool.info.
26291+ if test "x$1" != "x$2"; then
26292+ lt_replace_pathsep_chars="s|$1|$2|g"
26293+ func_to_host_path_result=`echo "$3" |
26294+ $SED -e "$lt_replace_pathsep_chars"`
26295+ else
26296+ func_to_host_path_result="$3"
26297+ fi
26298+ fi
26299+}
26300+# end func_convert_path_check
26301+
26302+
26303+# func_convert_path_front_back_pathsep FRONTPAT BACKPAT REPL ORIG
26304+# Modifies func_to_host_path_result by prepending REPL if ORIG matches FRONTPAT
26305+# and appending REPL if ORIG matches BACKPAT.
26306+func_convert_path_front_back_pathsep ()
26307+{
26308+ $opt_debug
26309+ case $4 in
26310+ $1 ) func_to_host_path_result="$3$func_to_host_path_result"
26311+ ;;
26312+ esac
26313+ case $4 in
26314+ $2 ) func_append func_to_host_path_result "$3"
26315+ ;;
26316+ esac
26317+}
26318+# end func_convert_path_front_back_pathsep
26319+
26320+
26321+##################################################
26322+# $build to $host FILE NAME CONVERSION FUNCTIONS #
26323+##################################################
26324+# invoked via `$to_host_file_cmd ARG'
26325+#
26326+# In each case, ARG is the path to be converted from $build to $host format.
26327+# Result will be available in $func_to_host_file_result.
26328+
26329+
26330+# func_to_host_file ARG
26331+# Converts the file name ARG from $build format to $host format. Return result
26332+# in func_to_host_file_result.
26333+func_to_host_file ()
26334+{
26335+ $opt_debug
26336+ $to_host_file_cmd "$1"
26337+}
26338+# end func_to_host_file
26339+
26340+
26341+# func_to_tool_file ARG LAZY
26342+# converts the file name ARG from $build format to toolchain format. Return
26343+# result in func_to_tool_file_result. If the conversion in use is listed
26344+# in (the comma separated) LAZY, no conversion takes place.
26345+func_to_tool_file ()
26346+{
26347+ $opt_debug
26348+ case ,$2, in
26349+ *,"$to_tool_file_cmd",*)
26350+ func_to_tool_file_result=$1
26351+ ;;
26352+ *)
26353+ $to_tool_file_cmd "$1"
26354+ func_to_tool_file_result=$func_to_host_file_result
26355+ ;;
26356+ esac
26357+}
26358+# end func_to_tool_file
26359+
26360+
26361+# func_convert_file_noop ARG
26362+# Copy ARG to func_to_host_file_result.
26363+func_convert_file_noop ()
26364+{
26365+ func_to_host_file_result="$1"
26366+}
26367+# end func_convert_file_noop
26368+
26369+
26370+# func_convert_file_msys_to_w32 ARG
26371+# Convert file name ARG from (mingw) MSYS to (mingw) w32 format; automatic
26372+# conversion to w32 is not available inside the cwrapper. Returns result in
26373+# func_to_host_file_result.
26374+func_convert_file_msys_to_w32 ()
26375+{
26376+ $opt_debug
26377+ func_to_host_file_result="$1"
26378+ if test -n "$1"; then
26379+ func_convert_core_msys_to_w32 "$1"
26380+ func_to_host_file_result="$func_convert_core_msys_to_w32_result"
26381+ fi
26382+ func_convert_file_check "$1" "$func_to_host_file_result"
26383+}
26384+# end func_convert_file_msys_to_w32
26385+
26386+
26387+# func_convert_file_cygwin_to_w32 ARG
26388+# Convert file name ARG from Cygwin to w32 format. Returns result in
26389+# func_to_host_file_result.
26390+func_convert_file_cygwin_to_w32 ()
26391+{
26392+ $opt_debug
26393+ func_to_host_file_result="$1"
26394+ if test -n "$1"; then
26395+ # because $build is cygwin, we call "the" cygpath in $PATH; no need to use
26396+ # LT_CYGPATH in this case.
26397+ func_to_host_file_result=`cygpath -m "$1"`
26398+ fi
26399+ func_convert_file_check "$1" "$func_to_host_file_result"
26400+}
26401+# end func_convert_file_cygwin_to_w32
26402+
26403+
26404+# func_convert_file_nix_to_w32 ARG
26405+# Convert file name ARG from *nix to w32 format. Requires a wine environment
26406+# and a working winepath. Returns result in func_to_host_file_result.
26407+func_convert_file_nix_to_w32 ()
26408+{
26409+ $opt_debug
26410+ func_to_host_file_result="$1"
26411+ if test -n "$1"; then
26412+ func_convert_core_file_wine_to_w32 "$1"
26413+ func_to_host_file_result="$func_convert_core_file_wine_to_w32_result"
26414+ fi
26415+ func_convert_file_check "$1" "$func_to_host_file_result"
26416+}
26417+# end func_convert_file_nix_to_w32
26418+
26419+
26420+# func_convert_file_msys_to_cygwin ARG
26421+# Convert file name ARG from MSYS to Cygwin format. Requires LT_CYGPATH set.
26422+# Returns result in func_to_host_file_result.
26423+func_convert_file_msys_to_cygwin ()
26424+{
26425+ $opt_debug
26426+ func_to_host_file_result="$1"
26427+ if test -n "$1"; then
26428+ func_convert_core_msys_to_w32 "$1"
26429+ func_cygpath -u "$func_convert_core_msys_to_w32_result"
26430+ func_to_host_file_result="$func_cygpath_result"
26431+ fi
26432+ func_convert_file_check "$1" "$func_to_host_file_result"
26433+}
26434+# end func_convert_file_msys_to_cygwin
26435+
26436+
26437+# func_convert_file_nix_to_cygwin ARG
26438+# Convert file name ARG from *nix to Cygwin format. Requires Cygwin installed
26439+# in a wine environment, working winepath, and LT_CYGPATH set. Returns result
26440+# in func_to_host_file_result.
26441+func_convert_file_nix_to_cygwin ()
26442+{
26443+ $opt_debug
26444+ func_to_host_file_result="$1"
26445+ if test -n "$1"; then
26446+ # convert from *nix to w32, then use cygpath to convert from w32 to cygwin.
26447+ func_convert_core_file_wine_to_w32 "$1"
26448+ func_cygpath -u "$func_convert_core_file_wine_to_w32_result"
26449+ func_to_host_file_result="$func_cygpath_result"
26450+ fi
26451+ func_convert_file_check "$1" "$func_to_host_file_result"
26452+}
26453+# end func_convert_file_nix_to_cygwin
26454+
26455+
26456+#############################################
26457+# $build to $host PATH CONVERSION FUNCTIONS #
26458+#############################################
26459+# invoked via `$to_host_path_cmd ARG'
26460+#
26461+# In each case, ARG is the path to be converted from $build to $host format.
26462+# The result will be available in $func_to_host_path_result.
26463+#
26464+# Path separators are also converted from $build format to $host format. If
26465+# ARG begins or ends with a path separator character, it is preserved (but
26466+# converted to $host format) on output.
26467+#
26468+# All path conversion functions are named using the following convention:
26469+# file name conversion function : func_convert_file_X_to_Y ()
26470+# path conversion function : func_convert_path_X_to_Y ()
26471+# where, for any given $build/$host combination the 'X_to_Y' value is the
26472+# same. If conversion functions are added for new $build/$host combinations,
26473+# the two new functions must follow this pattern, or func_init_to_host_path_cmd
26474+# will break.
26475+
26476+
26477+# func_init_to_host_path_cmd
26478+# Ensures that function "pointer" variable $to_host_path_cmd is set to the
26479+# appropriate value, based on the value of $to_host_file_cmd.
26480+to_host_path_cmd=
26481+func_init_to_host_path_cmd ()
26482+{
26483+ $opt_debug
26484+ if test -z "$to_host_path_cmd"; then
26485+ func_stripname 'func_convert_file_' '' "$to_host_file_cmd"
26486+ to_host_path_cmd="func_convert_path_${func_stripname_result}"
26487+ fi
26488+}
26489+
26490+
26491+# func_to_host_path ARG
26492+# Converts the path ARG from $build format to $host format. Return result
26493+# in func_to_host_path_result.
26494+func_to_host_path ()
26495+{
26496+ $opt_debug
26497+ func_init_to_host_path_cmd
26498+ $to_host_path_cmd "$1"
26499+}
26500+# end func_to_host_path
26501+
26502+
26503+# func_convert_path_noop ARG
26504+# Copy ARG to func_to_host_path_result.
26505+func_convert_path_noop ()
26506+{
26507+ func_to_host_path_result="$1"
26508+}
26509+# end func_convert_path_noop
26510+
26511+
26512+# func_convert_path_msys_to_w32 ARG
26513+# Convert path ARG from (mingw) MSYS to (mingw) w32 format; automatic
26514+# conversion to w32 is not available inside the cwrapper. Returns result in
26515+# func_to_host_path_result.
26516+func_convert_path_msys_to_w32 ()
26517+{
26518+ $opt_debug
26519+ func_to_host_path_result="$1"
26520+ if test -n "$1"; then
26521+ # Remove leading and trailing path separator characters from ARG. MSYS
26522+ # behavior is inconsistent here; cygpath turns them into '.;' and ';.';
26523+ # and winepath ignores them completely.
26524+ func_stripname : : "$1"
26525+ func_to_host_path_tmp1=$func_stripname_result
26526+ func_convert_core_msys_to_w32 "$func_to_host_path_tmp1"
26527+ func_to_host_path_result="$func_convert_core_msys_to_w32_result"
26528+ func_convert_path_check : ";" \
26529+ "$func_to_host_path_tmp1" "$func_to_host_path_result"
26530+ func_convert_path_front_back_pathsep ":*" "*:" ";" "$1"
26531+ fi
26532+}
26533+# end func_convert_path_msys_to_w32
26534+
26535+
26536+# func_convert_path_cygwin_to_w32 ARG
26537+# Convert path ARG from Cygwin to w32 format. Returns result in
26538+# func_to_host_file_result.
26539+func_convert_path_cygwin_to_w32 ()
26540+{
26541+ $opt_debug
26542+ func_to_host_path_result="$1"
26543+ if test -n "$1"; then
26544+ # See func_convert_path_msys_to_w32:
26545+ func_stripname : : "$1"
26546+ func_to_host_path_tmp1=$func_stripname_result
26547+ func_to_host_path_result=`cygpath -m -p "$func_to_host_path_tmp1"`
26548+ func_convert_path_check : ";" \
26549+ "$func_to_host_path_tmp1" "$func_to_host_path_result"
26550+ func_convert_path_front_back_pathsep ":*" "*:" ";" "$1"
26551+ fi
26552+}
26553+# end func_convert_path_cygwin_to_w32
26554+
26555+
26556+# func_convert_path_nix_to_w32 ARG
26557+# Convert path ARG from *nix to w32 format. Requires a wine environment and
26558+# a working winepath. Returns result in func_to_host_file_result.
26559+func_convert_path_nix_to_w32 ()
26560+{
26561+ $opt_debug
26562+ func_to_host_path_result="$1"
26563+ if test -n "$1"; then
26564+ # See func_convert_path_msys_to_w32:
26565+ func_stripname : : "$1"
26566+ func_to_host_path_tmp1=$func_stripname_result
26567+ func_convert_core_path_wine_to_w32 "$func_to_host_path_tmp1"
26568+ func_to_host_path_result="$func_convert_core_path_wine_to_w32_result"
26569+ func_convert_path_check : ";" \
26570+ "$func_to_host_path_tmp1" "$func_to_host_path_result"
26571+ func_convert_path_front_back_pathsep ":*" "*:" ";" "$1"
26572+ fi
26573+}
26574+# end func_convert_path_nix_to_w32
26575+
26576+
26577+# func_convert_path_msys_to_cygwin ARG
26578+# Convert path ARG from MSYS to Cygwin format. Requires LT_CYGPATH set.
26579+# Returns result in func_to_host_file_result.
26580+func_convert_path_msys_to_cygwin ()
26581+{
26582+ $opt_debug
26583+ func_to_host_path_result="$1"
26584+ if test -n "$1"; then
26585+ # See func_convert_path_msys_to_w32:
26586+ func_stripname : : "$1"
26587+ func_to_host_path_tmp1=$func_stripname_result
26588+ func_convert_core_msys_to_w32 "$func_to_host_path_tmp1"
26589+ func_cygpath -u -p "$func_convert_core_msys_to_w32_result"
26590+ func_to_host_path_result="$func_cygpath_result"
26591+ func_convert_path_check : : \
26592+ "$func_to_host_path_tmp1" "$func_to_host_path_result"
26593+ func_convert_path_front_back_pathsep ":*" "*:" : "$1"
26594+ fi
26595+}
26596+# end func_convert_path_msys_to_cygwin
26597+
26598+
26599+# func_convert_path_nix_to_cygwin ARG
26600+# Convert path ARG from *nix to Cygwin format. Requires Cygwin installed in a
26601+# a wine environment, working winepath, and LT_CYGPATH set. Returns result in
26602+# func_to_host_file_result.
26603+func_convert_path_nix_to_cygwin ()
26604+{
26605+ $opt_debug
26606+ func_to_host_path_result="$1"
26607+ if test -n "$1"; then
26608+ # Remove leading and trailing path separator characters from
26609+ # ARG. msys behavior is inconsistent here, cygpath turns them
26610+ # into '.;' and ';.', and winepath ignores them completely.
26611+ func_stripname : : "$1"
26612+ func_to_host_path_tmp1=$func_stripname_result
26613+ func_convert_core_path_wine_to_w32 "$func_to_host_path_tmp1"
26614+ func_cygpath -u -p "$func_convert_core_path_wine_to_w32_result"
26615+ func_to_host_path_result="$func_cygpath_result"
26616+ func_convert_path_check : : \
26617+ "$func_to_host_path_tmp1" "$func_to_host_path_result"
26618+ func_convert_path_front_back_pathsep ":*" "*:" : "$1"
26619+ fi
26620+}
26621+# end func_convert_path_nix_to_cygwin
26622+
26623+
26624 # func_mode_compile arg...
26625 func_mode_compile ()
26626 {
26627@@ -1314,12 +1985,12 @@ func_mode_compile ()
26628 ;;
26629
26630 -pie | -fpie | -fPIE)
26631- pie_flag="$pie_flag $arg"
26632+ func_append pie_flag " $arg"
26633 continue
26634 ;;
26635
26636 -shared | -static | -prefer-pic | -prefer-non-pic)
26637- later="$later $arg"
26638+ func_append later " $arg"
26639 continue
26640 ;;
26641
26642@@ -1340,15 +2011,14 @@ func_mode_compile ()
26643 save_ifs="$IFS"; IFS=','
26644 for arg in $args; do
26645 IFS="$save_ifs"
26646- func_quote_for_eval "$arg"
26647- lastarg="$lastarg $func_quote_for_eval_result"
26648+ func_append_quoted lastarg "$arg"
26649 done
26650 IFS="$save_ifs"
26651 func_stripname ' ' '' "$lastarg"
26652 lastarg=$func_stripname_result
26653
26654 # Add the arguments to base_compile.
26655- base_compile="$base_compile $lastarg"
26656+ func_append base_compile " $lastarg"
26657 continue
26658 ;;
26659
26660@@ -1364,8 +2034,7 @@ func_mode_compile ()
26661 esac # case $arg_mode
26662
26663 # Aesthetically quote the previous argument.
26664- func_quote_for_eval "$lastarg"
26665- base_compile="$base_compile $func_quote_for_eval_result"
26666+ func_append_quoted base_compile "$lastarg"
26667 done # for arg
26668
26669 case $arg_mode in
26670@@ -1496,17 +2165,16 @@ compiler."
26671 $opt_dry_run || $RM $removelist
26672 exit $EXIT_FAILURE
26673 fi
26674- removelist="$removelist $output_obj"
26675+ func_append removelist " $output_obj"
26676 $ECHO "$srcfile" > "$lockfile"
26677 fi
26678
26679 $opt_dry_run || $RM $removelist
26680- removelist="$removelist $lockfile"
26681+ func_append removelist " $lockfile"
26682 trap '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' 1 2 15
26683
26684- if test -n "$fix_srcfile_path"; then
26685- eval "srcfile=\"$fix_srcfile_path\""
26686- fi
26687+ func_to_tool_file "$srcfile" func_convert_file_msys_to_w32
26688+ srcfile=$func_to_tool_file_result
26689 func_quote_for_eval "$srcfile"
26690 qsrcfile=$func_quote_for_eval_result
26691
26692@@ -1526,7 +2194,7 @@ compiler."
26693
26694 if test -z "$output_obj"; then
26695 # Place PIC objects in $objdir
26696- command="$command -o $lobj"
26697+ func_append command " -o $lobj"
26698 fi
26699
26700 func_show_eval_locale "$command" \
26701@@ -1573,11 +2241,11 @@ compiler."
26702 command="$base_compile $qsrcfile $pic_flag"
26703 fi
26704 if test "$compiler_c_o" = yes; then
26705- command="$command -o $obj"
26706+ func_append command " -o $obj"
26707 fi
26708
26709 # Suppress compiler output if we already did a PIC compilation.
26710- command="$command$suppress_output"
26711+ func_append command "$suppress_output"
26712 func_show_eval_locale "$command" \
26713 '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE'
26714
26715@@ -1622,13 +2290,13 @@ compiler."
26716 }
26717
26718 $opt_help || {
26719- test "$mode" = compile && func_mode_compile ${1+"$@"}
26720+ test "$opt_mode" = compile && func_mode_compile ${1+"$@"}
26721 }
26722
26723 func_mode_help ()
26724 {
26725 # We need to display help for each of the modes.
26726- case $mode in
26727+ case $opt_mode in
26728 "")
26729 # Generic help is extracted from the usage comments
26730 # at the start of this file.
26731@@ -1659,8 +2327,8 @@ This mode accepts the following additional options:
26732
26733 -o OUTPUT-FILE set the output file name to OUTPUT-FILE
26734 -no-suppress do not suppress compiler output for multiple passes
26735- -prefer-pic try to building PIC objects only
26736- -prefer-non-pic try to building non-PIC objects only
26737+ -prefer-pic try to build PIC objects only
26738+ -prefer-non-pic try to build non-PIC objects only
26739 -shared do not build a \`.o' file suitable for static linking
26740 -static only build a \`.o' file suitable for static linking
26741 -Wc,FLAG pass FLAG directly to the compiler
26742@@ -1804,7 +2472,7 @@ Otherwise, only FILE itself is deleted using RM."
26743 ;;
26744
26745 *)
26746- func_fatal_help "invalid operation mode \`$mode'"
26747+ func_fatal_help "invalid operation mode \`$opt_mode'"
26748 ;;
26749 esac
26750
26751@@ -1819,13 +2487,13 @@ if $opt_help; then
26752 else
26753 {
26754 func_help noexit
26755- for mode in compile link execute install finish uninstall clean; do
26756+ for opt_mode in compile link execute install finish uninstall clean; do
26757 func_mode_help
26758 done
26759 } | sed -n '1p; 2,$s/^Usage:/ or: /p'
26760 {
26761 func_help noexit
26762- for mode in compile link execute install finish uninstall clean; do
26763+ for opt_mode in compile link execute install finish uninstall clean; do
26764 echo
26765 func_mode_help
26766 done
26767@@ -1854,13 +2522,16 @@ func_mode_execute ()
26768 func_fatal_help "you must specify a COMMAND"
26769
26770 # Handle -dlopen flags immediately.
26771- for file in $execute_dlfiles; do
26772+ for file in $opt_dlopen; do
26773 test -f "$file" \
26774 || func_fatal_help "\`$file' is not a file"
26775
26776 dir=
26777 case $file in
26778 *.la)
26779+ func_resolve_sysroot "$file"
26780+ file=$func_resolve_sysroot_result
26781+
26782 # Check to see that this really is a libtool archive.
26783 func_lalib_unsafe_p "$file" \
26784 || func_fatal_help "\`$lib' is not a valid libtool archive"
26785@@ -1882,7 +2553,7 @@ func_mode_execute ()
26786 dir="$func_dirname_result"
26787
26788 if test -f "$dir/$objdir/$dlname"; then
26789- dir="$dir/$objdir"
26790+ func_append dir "/$objdir"
26791 else
26792 if test ! -f "$dir/$dlname"; then
26793 func_fatal_error "cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'"
26794@@ -1907,10 +2578,10 @@ func_mode_execute ()
26795 test -n "$absdir" && dir="$absdir"
26796
26797 # Now add the directory to shlibpath_var.
26798- if eval test -z \"\$$shlibpath_var\"; then
26799- eval $shlibpath_var=\$dir
26800+ if eval "test -z \"\$$shlibpath_var\""; then
26801+ eval "$shlibpath_var=\"\$dir\""
26802 else
26803- eval $shlibpath_var=\$dir:\$$shlibpath_var
26804+ eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\""
26805 fi
26806 done
26807
26808@@ -1939,8 +2610,7 @@ func_mode_execute ()
26809 ;;
26810 esac
26811 # Quote arguments (to preserve shell metacharacters).
26812- func_quote_for_eval "$file"
26813- args="$args $func_quote_for_eval_result"
26814+ func_append_quoted args "$file"
26815 done
26816
26817 if test "X$opt_dry_run" = Xfalse; then
26818@@ -1972,22 +2642,59 @@ func_mode_execute ()
26819 fi
26820 }
26821
26822-test "$mode" = execute && func_mode_execute ${1+"$@"}
26823+test "$opt_mode" = execute && func_mode_execute ${1+"$@"}
26824
26825
26826 # func_mode_finish arg...
26827 func_mode_finish ()
26828 {
26829 $opt_debug
26830- libdirs="$nonopt"
26831+ libs=
26832+ libdirs=
26833 admincmds=
26834
26835- if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
26836- for dir
26837- do
26838- libdirs="$libdirs $dir"
26839- done
26840+ for opt in "$nonopt" ${1+"$@"}
26841+ do
26842+ if test -d "$opt"; then
26843+ func_append libdirs " $opt"
26844
26845+ elif test -f "$opt"; then
26846+ if func_lalib_unsafe_p "$opt"; then
26847+ func_append libs " $opt"
26848+ else
26849+ func_warning "\`$opt' is not a valid libtool archive"
26850+ fi
26851+
26852+ else
26853+ func_fatal_error "invalid argument \`$opt'"
26854+ fi
26855+ done
26856+
26857+ if test -n "$libs"; then
26858+ if test -n "$lt_sysroot"; then
26859+ sysroot_regex=`$ECHO "$lt_sysroot" | $SED "$sed_make_literal_regex"`
26860+ sysroot_cmd="s/\([ ']\)$sysroot_regex/\1/g;"
26861+ else
26862+ sysroot_cmd=
26863+ fi
26864+
26865+ # Remove sysroot references
26866+ if $opt_dry_run; then
26867+ for lib in $libs; do
26868+ echo "removing references to $lt_sysroot and \`=' prefixes from $lib"
26869+ done
26870+ else
26871+ tmpdir=`func_mktempdir`
26872+ for lib in $libs; do
26873+ sed -e "${sysroot_cmd} s/\([ ']-[LR]\)=/\1/g; s/\([ ']\)=/\1/g" $lib \
26874+ > $tmpdir/tmp-la
26875+ mv -f $tmpdir/tmp-la $lib
26876+ done
26877+ ${RM}r "$tmpdir"
26878+ fi
26879+ fi
26880+
26881+ if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
26882 for libdir in $libdirs; do
26883 if test -n "$finish_cmds"; then
26884 # Do each command in the finish commands.
26885@@ -1997,7 +2704,7 @@ func_mode_finish ()
26886 if test -n "$finish_eval"; then
26887 # Do the single finish_eval.
26888 eval cmds=\"$finish_eval\"
26889- $opt_dry_run || eval "$cmds" || admincmds="$admincmds
26890+ $opt_dry_run || eval "$cmds" || func_append admincmds "
26891 $cmds"
26892 fi
26893 done
26894@@ -2006,53 +2713,55 @@ func_mode_finish ()
26895 # Exit here if they wanted silent mode.
26896 $opt_silent && exit $EXIT_SUCCESS
26897
26898- echo "----------------------------------------------------------------------"
26899- echo "Libraries have been installed in:"
26900- for libdir in $libdirs; do
26901- $ECHO " $libdir"
26902- done
26903- echo
26904- echo "If you ever happen to want to link against installed libraries"
26905- echo "in a given directory, LIBDIR, you must either use libtool, and"
26906- echo "specify the full pathname of the library, or use the \`-LLIBDIR'"
26907- echo "flag during linking and do at least one of the following:"
26908- if test -n "$shlibpath_var"; then
26909- echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
26910- echo " during execution"
26911- fi
26912- if test -n "$runpath_var"; then
26913- echo " - add LIBDIR to the \`$runpath_var' environment variable"
26914- echo " during linking"
26915- fi
26916- if test -n "$hardcode_libdir_flag_spec"; then
26917- libdir=LIBDIR
26918- eval "flag=\"$hardcode_libdir_flag_spec\""
26919+ if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
26920+ echo "----------------------------------------------------------------------"
26921+ echo "Libraries have been installed in:"
26922+ for libdir in $libdirs; do
26923+ $ECHO " $libdir"
26924+ done
26925+ echo
26926+ echo "If you ever happen to want to link against installed libraries"
26927+ echo "in a given directory, LIBDIR, you must either use libtool, and"
26928+ echo "specify the full pathname of the library, or use the \`-LLIBDIR'"
26929+ echo "flag during linking and do at least one of the following:"
26930+ if test -n "$shlibpath_var"; then
26931+ echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
26932+ echo " during execution"
26933+ fi
26934+ if test -n "$runpath_var"; then
26935+ echo " - add LIBDIR to the \`$runpath_var' environment variable"
26936+ echo " during linking"
26937+ fi
26938+ if test -n "$hardcode_libdir_flag_spec"; then
26939+ libdir=LIBDIR
26940+ eval flag=\"$hardcode_libdir_flag_spec\"
26941
26942- $ECHO " - use the \`$flag' linker flag"
26943- fi
26944- if test -n "$admincmds"; then
26945- $ECHO " - have your system administrator run these commands:$admincmds"
26946- fi
26947- if test -f /etc/ld.so.conf; then
26948- echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
26949- fi
26950- echo
26951+ $ECHO " - use the \`$flag' linker flag"
26952+ fi
26953+ if test -n "$admincmds"; then
26954+ $ECHO " - have your system administrator run these commands:$admincmds"
26955+ fi
26956+ if test -f /etc/ld.so.conf; then
26957+ echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
26958+ fi
26959+ echo
26960
26961- echo "See any operating system documentation about shared libraries for"
26962- case $host in
26963- solaris2.[6789]|solaris2.1[0-9])
26964- echo "more information, such as the ld(1), crle(1) and ld.so(8) manual"
26965- echo "pages."
26966- ;;
26967- *)
26968- echo "more information, such as the ld(1) and ld.so(8) manual pages."
26969- ;;
26970- esac
26971- echo "----------------------------------------------------------------------"
26972+ echo "See any operating system documentation about shared libraries for"
26973+ case $host in
26974+ solaris2.[6789]|solaris2.1[0-9])
26975+ echo "more information, such as the ld(1), crle(1) and ld.so(8) manual"
26976+ echo "pages."
26977+ ;;
26978+ *)
26979+ echo "more information, such as the ld(1) and ld.so(8) manual pages."
26980+ ;;
26981+ esac
26982+ echo "----------------------------------------------------------------------"
26983+ fi
26984 exit $EXIT_SUCCESS
26985 }
26986
26987-test "$mode" = finish && func_mode_finish ${1+"$@"}
26988+test "$opt_mode" = finish && func_mode_finish ${1+"$@"}
26989
26990
26991 # func_mode_install arg...
26992@@ -2077,7 +2786,7 @@ func_mode_install ()
26993 # The real first argument should be the name of the installation program.
26994 # Aesthetically quote it.
26995 func_quote_for_eval "$arg"
26996- install_prog="$install_prog$func_quote_for_eval_result"
26997+ func_append install_prog "$func_quote_for_eval_result"
26998 install_shared_prog=$install_prog
26999 case " $install_prog " in
27000 *[\\\ /]cp\ *) install_cp=: ;;
27001@@ -2097,7 +2806,7 @@ func_mode_install ()
27002 do
27003 arg2=
27004 if test -n "$dest"; then
27005- files="$files $dest"
27006+ func_append files " $dest"
27007 dest=$arg
27008 continue
27009 fi
27010@@ -2135,11 +2844,11 @@ func_mode_install ()
27011
27012 # Aesthetically quote the argument.
27013 func_quote_for_eval "$arg"
27014- install_prog="$install_prog $func_quote_for_eval_result"
27015+ func_append install_prog " $func_quote_for_eval_result"
27016 if test -n "$arg2"; then
27017 func_quote_for_eval "$arg2"
27018 fi
27019- install_shared_prog="$install_shared_prog $func_quote_for_eval_result"
27020+ func_append install_shared_prog " $func_quote_for_eval_result"
27021 done
27022
27023 test -z "$install_prog" && \
27024@@ -2151,7 +2860,7 @@ func_mode_install ()
27025 if test -n "$install_override_mode" && $no_mode; then
27026 if $install_cp; then :; else
27027 func_quote_for_eval "$install_override_mode"
27028- install_shared_prog="$install_shared_prog -m $func_quote_for_eval_result"
27029+ func_append install_shared_prog " -m $func_quote_for_eval_result"
27030 fi
27031 fi
27032
27033@@ -2209,10 +2918,13 @@ func_mode_install ()
27034 case $file in
27035 *.$libext)
27036 # Do the static libraries later.
27037- staticlibs="$staticlibs $file"
27038+ func_append staticlibs " $file"
27039 ;;
27040
27041 *.la)
27042+ func_resolve_sysroot "$file"
27043+ file=$func_resolve_sysroot_result
27044+
27045 # Check to see that this really is a libtool archive.
27046 func_lalib_unsafe_p "$file" \
27047 || func_fatal_help "\`$file' is not a valid libtool archive"
27048@@ -2226,23 +2938,30 @@ func_mode_install ()
27049 if test "X$destdir" = "X$libdir"; then
27050 case "$current_libdirs " in
27051 *" $libdir "*) ;;
27052- *) current_libdirs="$current_libdirs $libdir" ;;
27053+ *) func_append current_libdirs " $libdir" ;;
27054 esac
27055 else
27056 # Note the libdir as a future libdir.
27057 case "$future_libdirs " in
27058 *" $libdir "*) ;;
27059- *) future_libdirs="$future_libdirs $libdir" ;;
27060+ *) func_append future_libdirs " $libdir" ;;
27061 esac
27062 fi
27063
27064 func_dirname "$file" "/" ""
27065 dir="$func_dirname_result"
27066- dir="$dir$objdir"
27067+ func_append dir "$objdir"
27068
27069 if test -n "$relink_command"; then
27070+ # Strip any trailing slash from the destination.
27071+ func_stripname '' '/' "$libdir"
27072+ destlibdir=$func_stripname_result
27073+
27074+ func_stripname '' '/' "$destdir"
27075+ s_destdir=$func_stripname_result
27076+
27077 # Determine the prefix the user has applied to our future dir.
27078- inst_prefix_dir=`$ECHO "$destdir" | $SED -e "s%$libdir\$%%"`
27079+ inst_prefix_dir=`$ECHO "X$s_destdir" | $Xsed -e "s%$destlibdir\$%%"`
27080
27081 # Don't allow the user to place us outside of our expected
27082 # location b/c this prevents finding dependent libraries that
27083@@ -2315,7 +3034,7 @@ func_mode_install ()
27084 func_show_eval "$install_prog $instname $destdir/$name" 'exit $?'
27085
27086 # Maybe install the static library, too.
27087- test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
27088+ test -n "$old_library" && func_append staticlibs " $dir/$old_library"
27089 ;;
27090
27091 *.lo)
27092@@ -2503,7 +3222,7 @@ func_mode_install ()
27093 test -n "$future_libdirs" && \
27094 func_warning "remember to run \`$progname --finish$future_libdirs'"
27095
27096- if test -n "$current_libdirs" && $opt_finish; then
27097+ if test -n "$current_libdirs"; then
27098 # Maybe just do a dry run.
27099 $opt_dry_run && current_libdirs=" -n$current_libdirs"
27100 exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs'
27101@@ -2512,7 +3231,7 @@ func_mode_install ()
27102 fi
27103 }
27104
27105-test "$mode" = install && func_mode_install ${1+"$@"}
27106+test "$opt_mode" = install && func_mode_install ${1+"$@"}
27107
27108
27109 # func_generate_dlsyms outputname originator pic_p
27110@@ -2559,6 +3278,18 @@ extern \"C\" {
27111 #pragma GCC diagnostic ignored \"-Wstrict-prototypes\"
27112 #endif
27113
27114+/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
27115+#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
27116+/* DATA imports from DLLs on WIN32 con't be const, because runtime
27117+ relocations are performed -- see ld's documentation on pseudo-relocs. */
27118+# define LT_DLSYM_CONST
27119+#elif defined(__osf__)
27120+/* This system does not cope well with relocations in const data. */
27121+# define LT_DLSYM_CONST
27122+#else
27123+# define LT_DLSYM_CONST const
27124+#endif
27125+
27126 /* External symbol declarations for the compiler. */\
27127 "
27128
27129@@ -2570,21 +3301,22 @@ extern \"C\" {
27130 # Add our own program objects to the symbol list.
27131 progfiles=`$ECHO "$objs$old_deplibs" | $SP2NL | $SED "$lo2o" | $NL2SP`
27132 for progfile in $progfiles; do
27133- func_verbose "extracting global C symbols from \`$progfile'"
27134- $opt_dry_run || eval "$NM $progfile | $global_symbol_pipe >> '$nlist'"
27135+ func_to_tool_file "$progfile" func_convert_file_msys_to_w32
27136+ func_verbose "extracting global C symbols from \`$func_to_tool_file_result'"
27137+ $opt_dry_run || eval "$NM $func_to_tool_file_result | $global_symbol_pipe >> '$nlist'"
27138 done
27139
27140 if test -n "$exclude_expsyms"; then
27141 $opt_dry_run || {
27142- $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
27143- $MV "$nlist"T "$nlist"
27144+ eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
27145+ eval '$MV "$nlist"T "$nlist"'
27146 }
27147 fi
27148
27149 if test -n "$export_symbols_regex"; then
27150 $opt_dry_run || {
27151- $EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T
27152- $MV "$nlist"T "$nlist"
27153+ eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T'
27154+ eval '$MV "$nlist"T "$nlist"'
27155 }
27156 fi
27157
27158@@ -2593,23 +3325,23 @@ extern \"C\" {
27159 export_symbols="$output_objdir/$outputname.exp"
27160 $opt_dry_run || {
27161 $RM $export_symbols
27162- ${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' < "$nlist" > "$export_symbols"
27163+ eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
27164 case $host in
27165 *cygwin* | *mingw* | *cegcc* )
27166- echo EXPORTS > "$output_objdir/$outputname.def"
27167- cat "$export_symbols" >> "$output_objdir/$outputname.def"
27168+ eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
27169+ eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"'
27170 ;;
27171 esac
27172 }
27173 else
27174 $opt_dry_run || {
27175- ${SED} -e 's/\([].[*^$]\)/\\\1/g' -e 's/^/ /' -e 's/$/$/' < "$export_symbols" > "$output_objdir/$outputname.exp"
27176- $GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T
27177- $MV "$nlist"T "$nlist"
27178+ eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
27179+ eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
27180+ eval '$MV "$nlist"T "$nlist"'
27181 case $host in
27182 *cygwin* | *mingw* | *cegcc* )
27183- echo EXPORTS > "$output_objdir/$outputname.def"
27184- cat "$nlist" >> "$output_objdir/$outputname.def"
27185+ eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
27186+ eval 'cat "$nlist" >> "$output_objdir/$outputname.def"'
27187 ;;
27188 esac
27189 }
27190@@ -2620,10 +3352,52 @@ extern \"C\" {
27191 func_verbose "extracting global C symbols from \`$dlprefile'"
27192 func_basename "$dlprefile"
27193 name="$func_basename_result"
27194- $opt_dry_run || {
27195- $ECHO ": $name " >> "$nlist"
27196- eval "$NM $dlprefile 2>/dev/null | $global_symbol_pipe >> '$nlist'"
27197- }
27198+ case $host in
27199+ *cygwin* | *mingw* | *cegcc* )
27200+ # if an import library, we need to obtain dlname
27201+ if func_win32_import_lib_p "$dlprefile"; then
27202+ func_tr_sh "$dlprefile"
27203+ eval "curr_lafile=\$libfile_$func_tr_sh_result"
27204+ dlprefile_dlbasename=""
27205+ if test -n "$curr_lafile" && func_lalib_p "$curr_lafile"; then
27206+ # Use subshell, to avoid clobbering current variable values
27207+ dlprefile_dlname=`source "$curr_lafile" && echo "$dlname"`
27208+ if test -n "$dlprefile_dlname" ; then
27209+ func_basename "$dlprefile_dlname"
27210+ dlprefile_dlbasename="$func_basename_result"
27211+ else
27212+ # no lafile. user explicitly requested -dlpreopen <import library>.
27213+ $sharedlib_from_linklib_cmd "$dlprefile"
27214+ dlprefile_dlbasename=$sharedlib_from_linklib_result
27215+ fi
27216+ fi
27217+ $opt_dry_run || {
27218+ if test -n "$dlprefile_dlbasename" ; then
27219+ eval '$ECHO ": $dlprefile_dlbasename" >> "$nlist"'
27220+ else
27221+ func_warning "Could not compute DLL name from $name"
27222+ eval '$ECHO ": $name " >> "$nlist"'
27223+ fi
27224+ func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32
27225+ eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe |
27226+ $SED -e '/I __imp/d' -e 's/I __nm_/D /;s/_nm__//' >> '$nlist'"
27227+ }
27228+ else # not an import lib
27229+ $opt_dry_run || {
27230+ eval '$ECHO ": $name " >> "$nlist"'
27231+ func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32
27232+ eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe >> '$nlist'"
27233+ }
27234+ fi
27235+ ;;
27236+ *)
27237+ $opt_dry_run || {
27238+ eval '$ECHO ": $name " >> "$nlist"'
27239+ func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32
27240+ eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe >> '$nlist'"
27241+ }
27242+ ;;
27243+ esac
27244 done
27245
27246 $opt_dry_run || {
27247@@ -2661,26 +3435,9 @@ typedef struct {
27248 const char *name;
27249 void *address;
27250 } lt_dlsymlist;
27251-"
27252- case $host in
27253- *cygwin* | *mingw* | *cegcc* )
27254- echo >> "$output_objdir/$my_dlsyms" "\
27255-/* DATA imports from DLLs on WIN32 con't be const, because
27256- runtime relocations are performed -- see ld's documentation
27257- on pseudo-relocs. */"
27258- lt_dlsym_const= ;;
27259- *osf5*)
27260- echo >> "$output_objdir/$my_dlsyms" "\
27261-/* This system does not cope well with relocations in const data */"
27262- lt_dlsym_const= ;;
27263- *)
27264- lt_dlsym_const=const ;;
27265- esac
27266-
27267- echo >> "$output_objdir/$my_dlsyms" "\
27268-extern $lt_dlsym_const lt_dlsymlist
27269+extern LT_DLSYM_CONST lt_dlsymlist
27270 lt_${my_prefix}_LTX_preloaded_symbols[];
27271-$lt_dlsym_const lt_dlsymlist
27272+LT_DLSYM_CONST lt_dlsymlist
27273 lt_${my_prefix}_LTX_preloaded_symbols[] =
27274 {\
27275 { \"$my_originator\", (void *) 0 },"
27276@@ -2736,7 +3493,7 @@ static const void *lt_preloaded_setup() {
27277 for arg in $LTCFLAGS; do
27278 case $arg in
27279 -pie | -fpie | -fPIE) ;;
27280- *) symtab_cflags="$symtab_cflags $arg" ;;
27281+ *) func_append symtab_cflags " $arg" ;;
27282 esac
27283 done
27284
27285@@ -2796,9 +3553,11 @@ func_win32_libid ()
27286 win32_libid_type="x86 archive import"
27287 ;;
27288 *ar\ archive*) # could be an import, or static
27289- if $OBJDUMP -f "$1" | $SED -e '10q' 2>/dev/null |
27290- $EGREP 'file format (pe-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' >/dev/null; then
27291- win32_nmres=`$NM -f posix -A "$1" |
27292+ # Keep the egrep pattern in sync with the one in _LT_CHECK_MAGIC_METHOD.
27293+ if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null |
27294+ $EGREP 'file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' >/dev/null; then
27295+ func_to_tool_file "$1" func_convert_file_msys_to_w32
27296+ win32_nmres=`eval $NM -f posix -A \"$func_to_tool_file_result\" |
27297 $SED -n -e '
27298 1,100{
27299 / I /{
27300@@ -2827,6 +3586,131 @@ func_win32_libid ()
27301 $ECHO "$win32_libid_type"
27302 }
27303
27304+# func_cygming_dll_for_implib ARG
27305+#
27306+# Platform-specific function to extract the
27307+# name of the DLL associated with the specified
27308+# import library ARG.
27309+# Invoked by eval'ing the libtool variable
27310+# $sharedlib_from_linklib_cmd
27311+# Result is available in the variable
27312+# $sharedlib_from_linklib_result
27313+func_cygming_dll_for_implib ()
27314+{
27315+ $opt_debug
27316+ sharedlib_from_linklib_result=`$DLLTOOL --identify-strict --identify "$1"`
27317+}
27318+
27319+# func_cygming_dll_for_implib_fallback_core SECTION_NAME LIBNAMEs
27320+#
27321+# The is the core of a fallback implementation of a
27322+# platform-specific function to extract the name of the
27323+# DLL associated with the specified import library LIBNAME.
27324+#
27325+# SECTION_NAME is either .idata$6 or .idata$7, depending
27326+# on the platform and compiler that created the implib.
27327+#
27328+# Echos the name of the DLL associated with the
27329+# specified import library.
27330+func_cygming_dll_for_implib_fallback_core ()
27331+{
27332+ $opt_debug
27333+ match_literal=`$ECHO "$1" | $SED "$sed_make_literal_regex"`
27334+ $OBJDUMP -s --section "$1" "$2" 2>/dev/null |
27335+ $SED '/^Contents of section '"$match_literal"':/{
27336+ # Place marker at beginning of archive member dllname section
27337+ s/.*/====MARK====/
27338+ p
27339+ d
27340+ }
27341+ # These lines can sometimes be longer than 43 characters, but
27342+ # are always uninteresting
27343+ /:[ ]*file format pe[i]\{,1\}-/d
27344+ /^In archive [^:]*:/d
27345+ # Ensure marker is printed
27346+ /^====MARK====/p
27347+ # Remove all lines with less than 43 characters
27348+ /^.\{43\}/!d
27349+ # From remaining lines, remove first 43 characters
27350+ s/^.\{43\}//' |
27351+ $SED -n '
27352+ # Join marker and all lines until next marker into a single line
27353+ /^====MARK====/ b para
27354+ H
27355+ $ b para
27356+ b
27357+ :para
27358+ x
27359+ s/\n//g
27360+ # Remove the marker
27361+ s/^====MARK====//
27362+ # Remove trailing dots and whitespace
27363+ s/[\. \t]*$//
27364+ # Print
27365+ /./p' |
27366+ # we now have a list, one entry per line, of the stringified
27367+ # contents of the appropriate section of all members of the
27368+ # archive which possess that section. Heuristic: eliminate
27369+ # all those which have a first or second character that is
27370+ # a '.' (that is, objdump's representation of an unprintable
27371+ # character.) This should work for all archives with less than
27372+ # 0x302f exports -- but will fail for DLLs whose name actually
27373+ # begins with a literal '.' or a single character followed by
27374+ # a '.'.
27375+ #
27376+ # Of those that remain, print the first one.
27377+ $SED -e '/^\./d;/^.\./d;q'
27378+}
27379+
27380+# func_cygming_gnu_implib_p ARG
27381+# This predicate returns with zero status (TRUE) if
27382+# ARG is a GNU/binutils-style import library. Returns
27383+# with nonzero status (FALSE) otherwise.
27384+func_cygming_gnu_implib_p ()
27385+{
27386+ $opt_debug
27387+ func_to_tool_file "$1" func_convert_file_msys_to_w32
27388+ 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)$'`
27389+ test -n "$func_cygming_gnu_implib_tmp"
27390+}
27391+
27392+# func_cygming_ms_implib_p ARG
27393+# This predicate returns with zero status (TRUE) if
27394+# ARG is an MS-style import library. Returns
27395+# with nonzero status (FALSE) otherwise.
27396+func_cygming_ms_implib_p ()
27397+{
27398+ $opt_debug
27399+ func_to_tool_file "$1" func_convert_file_msys_to_w32
27400+ func_cygming_ms_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $GREP '_NULL_IMPORT_DESCRIPTOR'`
27401+ test -n "$func_cygming_ms_implib_tmp"
27402+}
27403+
27404+# func_cygming_dll_for_implib_fallback ARG
27405+# Platform-specific function to extract the
27406+# name of the DLL associated with the specified
27407+# import library ARG.
27408+#
27409+# This fallback implementation is for use when $DLLTOOL
27410+# does not support the --identify-strict option.
27411+# Invoked by eval'ing the libtool variable
27412+# $sharedlib_from_linklib_cmd
27413+# Result is available in the variable
27414+# $sharedlib_from_linklib_result
27415+func_cygming_dll_for_implib_fallback ()
27416+{
27417+ $opt_debug
27418+ if func_cygming_gnu_implib_p "$1" ; then
27419+ # binutils import library
27420+ sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$7' "$1"`
27421+ elif func_cygming_ms_implib_p "$1" ; then
27422+ # ms-generated import library
27423+ sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$6' "$1"`
27424+ else
27425+ # unknown
27426+ sharedlib_from_linklib_result=""
27427+ fi
27428+}
27429
27430
27431 # func_extract_an_archive dir oldlib
27432@@ -3014,7 +3898,110 @@ func_fallback_echo ()
27433 _LTECHO_EOF'
27434 }
27435 ECHO=\"$qECHO\"
27436- fi\
27437+ fi
27438+
27439+# Very basic option parsing. These options are (a) specific to
27440+# the libtool wrapper, (b) are identical between the wrapper
27441+# /script/ and the wrapper /executable/ which is used only on
27442+# windows platforms, and (c) all begin with the string "--lt-"
27443+# (application programs are unlikely to have options which match
27444+# this pattern).
27445+#
27446+# There are only two supported options: --lt-debug and
27447+# --lt-dump-script. There is, deliberately, no --lt-help.
27448+#
27449+# The first argument to this parsing function should be the
27450+# script's $0 value, followed by "$@".
27451+lt_option_debug=
27452+func_parse_lt_options ()
27453+{
27454+ lt_script_arg0=\$0
27455+ shift
27456+ for lt_opt
27457+ do
27458+ case \"\$lt_opt\" in
27459+ --lt-debug) lt_option_debug=1 ;;
27460+ --lt-dump-script)
27461+ lt_dump_D=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%/[^/]*$%%'\`
27462+ test \"X\$lt_dump_D\" = \"X\$lt_script_arg0\" && lt_dump_D=.
27463+ lt_dump_F=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%^.*/%%'\`
27464+ cat \"\$lt_dump_D/\$lt_dump_F\"
27465+ exit 0
27466+ ;;
27467+ --lt-*)
27468+ \$ECHO \"Unrecognized --lt- option: '\$lt_opt'\" 1>&2
27469+ exit 1
27470+ ;;
27471+ esac
27472+ done
27473+
27474+ # Print the debug banner immediately:
27475+ if test -n \"\$lt_option_debug\"; then
27476+ echo \"${outputname}:${output}:\${LINENO}: libtool wrapper (GNU $PACKAGE$TIMESTAMP) $VERSION\" 1>&2
27477+ fi
27478+}
27479+
27480+# Used when --lt-debug. Prints its arguments to stdout
27481+# (redirection is the responsibility of the caller)
27482+func_lt_dump_args ()
27483+{
27484+ lt_dump_args_N=1;
27485+ for lt_arg
27486+ do
27487+ \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[\$lt_dump_args_N]: \$lt_arg\"
27488+ lt_dump_args_N=\`expr \$lt_dump_args_N + 1\`
27489+ done
27490+}
27491+
27492+# Core function for launching the target application
27493+func_exec_program_core ()
27494+{
27495+"
27496+ case $host in
27497+ # Backslashes separate directories on plain windows
27498+ *-*-mingw | *-*-os2* | *-cegcc*)
27499+ $ECHO "\
27500+ if test -n \"\$lt_option_debug\"; then
27501+ \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[0]: \$progdir\\\\\$program\" 1>&2
27502+ func_lt_dump_args \${1+\"\$@\"} 1>&2
27503+ fi
27504+ exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
27505+"
27506+ ;;
27507+
27508+ *)
27509+ $ECHO "\
27510+ if test -n \"\$lt_option_debug\"; then
27511+ \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[0]: \$progdir/\$program\" 1>&2
27512+ func_lt_dump_args \${1+\"\$@\"} 1>&2
27513+ fi
27514+ exec \"\$progdir/\$program\" \${1+\"\$@\"}
27515+"
27516+ ;;
27517+ esac
27518+ $ECHO "\
27519+ \$ECHO \"\$0: cannot exec \$program \$*\" 1>&2
27520+ exit 1
27521+}
27522+
27523+# A function to encapsulate launching the target application
27524+# Strips options in the --lt-* namespace from \$@ and
27525+# launches target application with the remaining arguments.
27526+func_exec_program ()
27527+{
27528+ for lt_wr_arg
27529+ do
27530+ case \$lt_wr_arg in
27531+ --lt-*) ;;
27532+ *) set x \"\$@\" \"\$lt_wr_arg\"; shift;;
27533+ esac
27534+ shift
27535+ done
27536+ func_exec_program_core \${1+\"\$@\"}
27537+}
27538+
27539+ # Parse options
27540+ func_parse_lt_options \"\$0\" \${1+\"\$@\"}
27541
27542 # Find the directory that this script lives in.
27543 thisdir=\`\$ECHO \"\$file\" | $SED 's%/[^/]*$%%'\`
27544@@ -3078,7 +4065,7 @@ _LTECHO_EOF'
27545
27546 # relink executable if necessary
27547 if test -n \"\$relink_command\"; then
27548- if relink_command_output=\`eval \"\$relink_command\" 2>&1\`; then :
27549+ if relink_command_output=\`eval \$relink_command 2>&1\`; then :
27550 else
27551 $ECHO \"\$relink_command_output\" >&2
27552 $RM \"\$progdir/\$file\"
27553@@ -3102,6 +4089,18 @@ _LTECHO_EOF'
27554
27555 if test -f \"\$progdir/\$program\"; then"
27556
27557+ # fixup the dll searchpath if we need to.
27558+ #
27559+ # Fix the DLL searchpath if we need to. Do this before prepending
27560+ # to shlibpath, because on Windows, both are PATH and uninstalled
27561+ # libraries must come first.
27562+ if test -n "$dllsearchpath"; then
27563+ $ECHO "\
27564+ # Add the dll search path components to the executable PATH
27565+ PATH=$dllsearchpath:\$PATH
27566+"
27567+ fi
27568+
27569 # Export our shlibpath_var if we have one.
27570 if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
27571 $ECHO "\
27572@@ -3116,35 +4115,10 @@ _LTECHO_EOF'
27573 "
27574 fi
27575
27576- # fixup the dll searchpath if we need to.
27577- if test -n "$dllsearchpath"; then
27578- $ECHO "\
27579- # Add the dll search path components to the executable PATH
27580- PATH=$dllsearchpath:\$PATH
27581-"
27582- fi
27583-
27584 $ECHO "\
27585 if test \"\$libtool_execute_magic\" != \"$magic\"; then
27586 # Run the actual program with our arguments.
27587-"
27588- case $host in
27589- # Backslashes separate directories on plain windows
27590- *-*-mingw | *-*-os2* | *-cegcc*)
27591- $ECHO "\
27592- exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
27593-"
27594- ;;
27595-
27596- *)
27597- $ECHO "\
27598- exec \"\$progdir/\$program\" \${1+\"\$@\"}
27599-"
27600- ;;
27601- esac
27602- $ECHO "\
27603- \$ECHO \"\$0: cannot exec \$program \$*\" 1>&2
27604- exit 1
27605+ func_exec_program \${1+\"\$@\"}
27606 fi
27607 else
27608 # The program doesn't exist.
27609@@ -3158,166 +4132,6 @@ fi\
27610 }
27611
27612
27613-# func_to_host_path arg
27614-#
27615-# Convert paths to host format when used with build tools.
27616-# Intended for use with "native" mingw (where libtool itself
27617-# is running under the msys shell), or in the following cross-
27618-# build environments:
27619-# $build $host
27620-# mingw (msys) mingw [e.g. native]
27621-# cygwin mingw
27622-# *nix + wine mingw
27623-# where wine is equipped with the `winepath' executable.
27624-# In the native mingw case, the (msys) shell automatically
27625-# converts paths for any non-msys applications it launches,
27626-# but that facility isn't available from inside the cwrapper.
27627-# Similar accommodations are necessary for $host mingw and
27628-# $build cygwin. Calling this function does no harm for other
27629-# $host/$build combinations not listed above.
27630-#
27631-# ARG is the path (on $build) that should be converted to
27632-# the proper representation for $host. The result is stored
27633-# in $func_to_host_path_result.
27634-func_to_host_path ()
27635-{
27636- func_to_host_path_result="$1"
27637- if test -n "$1"; then
27638- case $host in
27639- *mingw* )
27640- lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
27641- case $build in
27642- *mingw* ) # actually, msys
27643- # awkward: cmd appends spaces to result
27644- func_to_host_path_result=`( cmd //c echo "$1" ) 2>/dev/null |
27645- $SED -e 's/[ ]*$//' -e "$lt_sed_naive_backslashify"`
27646- ;;
27647- *cygwin* )
27648- func_to_host_path_result=`cygpath -w "$1" |
27649- $SED -e "$lt_sed_naive_backslashify"`
27650- ;;
27651- * )
27652- # Unfortunately, winepath does not exit with a non-zero
27653- # error code, so we are forced to check the contents of
27654- # stdout. On the other hand, if the command is not
27655- # found, the shell will set an exit code of 127 and print
27656- # *an error message* to stdout. So we must check for both
27657- # error code of zero AND non-empty stdout, which explains
27658- # the odd construction:
27659- func_to_host_path_tmp1=`winepath -w "$1" 2>/dev/null`
27660- if test "$?" -eq 0 && test -n "${func_to_host_path_tmp1}"; then
27661- func_to_host_path_result=`$ECHO "$func_to_host_path_tmp1" |
27662- $SED -e "$lt_sed_naive_backslashify"`
27663- else
27664- # Allow warning below.
27665- func_to_host_path_result=
27666- fi
27667- ;;
27668- esac
27669- if test -z "$func_to_host_path_result" ; then
27670- func_error "Could not determine host path corresponding to"
27671- func_error " \`$1'"
27672- func_error "Continuing, but uninstalled executables may not work."
27673- # Fallback:
27674- func_to_host_path_result="$1"
27675- fi
27676- ;;
27677- esac
27678- fi
27679-}
27680-# end: func_to_host_path
27681-
27682-# func_to_host_pathlist arg
27683-#
27684-# Convert pathlists to host format when used with build tools.
27685-# See func_to_host_path(), above. This function supports the
27686-# following $build/$host combinations (but does no harm for
27687-# combinations not listed here):
27688-# $build $host
27689-# mingw (msys) mingw [e.g. native]
27690-# cygwin mingw
27691-# *nix + wine mingw
27692-#
27693-# Path separators are also converted from $build format to
27694-# $host format. If ARG begins or ends with a path separator
27695-# character, it is preserved (but converted to $host format)
27696-# on output.
27697-#
27698-# ARG is a pathlist (on $build) that should be converted to
27699-# the proper representation on $host. The result is stored
27700-# in $func_to_host_pathlist_result.
27701-func_to_host_pathlist ()
27702-{
27703- func_to_host_pathlist_result="$1"
27704- if test -n "$1"; then
27705- case $host in
27706- *mingw* )
27707- lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
27708- # Remove leading and trailing path separator characters from
27709- # ARG. msys behavior is inconsistent here, cygpath turns them
27710- # into '.;' and ';.', and winepath ignores them completely.
27711- func_stripname : : "$1"
27712- func_to_host_pathlist_tmp1=$func_stripname_result
27713- case $build in
27714- *mingw* ) # Actually, msys.
27715- # Awkward: cmd appends spaces to result.
27716- func_to_host_pathlist_result=`
27717- ( cmd //c echo "$func_to_host_pathlist_tmp1" ) 2>/dev/null |
27718- $SED -e 's/[ ]*$//' -e "$lt_sed_naive_backslashify"`
27719- ;;
27720- *cygwin* )
27721- func_to_host_pathlist_result=`cygpath -w -p "$func_to_host_pathlist_tmp1" |
27722- $SED -e "$lt_sed_naive_backslashify"`
27723- ;;
27724- * )
27725- # unfortunately, winepath doesn't convert pathlists
27726- func_to_host_pathlist_result=""
27727- func_to_host_pathlist_oldIFS=$IFS
27728- IFS=:
27729- for func_to_host_pathlist_f in $func_to_host_pathlist_tmp1 ; do
27730- IFS=$func_to_host_pathlist_oldIFS
27731- if test -n "$func_to_host_pathlist_f" ; then
27732- func_to_host_path "$func_to_host_pathlist_f"
27733- if test -n "$func_to_host_path_result" ; then
27734- if test -z "$func_to_host_pathlist_result" ; then
27735- func_to_host_pathlist_result="$func_to_host_path_result"
27736- else
27737- func_append func_to_host_pathlist_result ";$func_to_host_path_result"
27738- fi
27739- fi
27740- fi
27741- done
27742- IFS=$func_to_host_pathlist_oldIFS
27743- ;;
27744- esac
27745- if test -z "$func_to_host_pathlist_result"; then
27746- func_error "Could not determine the host path(s) corresponding to"
27747- func_error " \`$1'"
27748- func_error "Continuing, but uninstalled executables may not work."
27749- # Fallback. This may break if $1 contains DOS-style drive
27750- # specifications. The fix is not to complicate the expression
27751- # below, but for the user to provide a working wine installation
27752- # with winepath so that path translation in the cross-to-mingw
27753- # case works properly.
27754- lt_replace_pathsep_nix_to_dos="s|:|;|g"
27755- func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp1" |\
27756- $SED -e "$lt_replace_pathsep_nix_to_dos"`
27757- fi
27758- # Now, add the leading and trailing path separators back
27759- case "$1" in
27760- :* ) func_to_host_pathlist_result=";$func_to_host_pathlist_result"
27761- ;;
27762- esac
27763- case "$1" in
27764- *: ) func_append func_to_host_pathlist_result ";"
27765- ;;
27766- esac
27767- ;;
27768- esac
27769- fi
27770-}
27771-# end: func_to_host_pathlist
27772-
27773 # func_emit_cwrapperexe_src
27774 # emit the source code for a wrapper executable on stdout
27775 # Must ONLY be called from within func_mode_link because
27776@@ -3334,10 +4148,6 @@ func_emit_cwrapperexe_src ()
27777
27778 This wrapper executable should never be moved out of the build directory.
27779 If it is, it will not operate correctly.
27780-
27781- Currently, it simply execs the wrapper *script* "$SHELL $output",
27782- but could eventually absorb all of the scripts functionality and
27783- exec $objdir/$outputname directly.
27784 */
27785 EOF
27786 cat <<"EOF"
27787@@ -3462,22 +4272,13 @@ int setenv (const char *, const char *, int);
27788 if (stale) { free ((void *) stale); stale = 0; } \
27789 } while (0)
27790
27791-#undef LTWRAPPER_DEBUGPRINTF
27792-#if defined LT_DEBUGWRAPPER
27793-# define LTWRAPPER_DEBUGPRINTF(args) ltwrapper_debugprintf args
27794-static void
27795-ltwrapper_debugprintf (const char *fmt, ...)
27796-{
27797- va_list args;
27798- va_start (args, fmt);
27799- (void) vfprintf (stderr, fmt, args);
27800- va_end (args);
27801-}
27802+#if defined(LT_DEBUGWRAPPER)
27803+static int lt_debug = 1;
27804 #else
27805-# define LTWRAPPER_DEBUGPRINTF(args)
27806+static int lt_debug = 0;
27807 #endif
27808
27809-const char *program_name = NULL;
27810+const char *program_name = "libtool-wrapper"; /* in case xstrdup fails */
27811
27812 void *xmalloc (size_t num);
27813 char *xstrdup (const char *string);
27814@@ -3487,7 +4288,10 @@ char *chase_symlinks (const char *pathspec);
27815 int make_executable (const char *path);
27816 int check_executable (const char *path);
27817 char *strendzap (char *str, const char *pat);
27818-void lt_fatal (const char *message, ...);
27819+void lt_debugprintf (const char *file, int line, const char *fmt, ...);
27820+void lt_fatal (const char *file, int line, const char *message, ...);
27821+static const char *nonnull (const char *s);
27822+static const char *nonempty (const char *s);
27823 void lt_setenv (const char *name, const char *value);
27824 char *lt_extend_str (const char *orig_value, const char *add, int to_end);
27825 void lt_update_exe_path (const char *name, const char *value);
27826@@ -3497,14 +4301,14 @@ void lt_dump_script (FILE *f);
27827 EOF
27828
27829 cat <<EOF
27830-const char * MAGIC_EXE = "$magic_exe";
27831+volatile const char * MAGIC_EXE = "$magic_exe";
27832 const char * LIB_PATH_VARNAME = "$shlibpath_var";
27833 EOF
27834
27835 if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
27836- func_to_host_pathlist "$temp_rpath"
27837+ func_to_host_path "$temp_rpath"
27838 cat <<EOF
27839-const char * LIB_PATH_VALUE = "$func_to_host_pathlist_result";
27840+const char * LIB_PATH_VALUE = "$func_to_host_path_result";
27841 EOF
27842 else
27843 cat <<"EOF"
27844@@ -3513,10 +4317,10 @@ EOF
27845 fi
27846
27847 if test -n "$dllsearchpath"; then
27848- func_to_host_pathlist "$dllsearchpath:"
27849+ func_to_host_path "$dllsearchpath:"
27850 cat <<EOF
27851 const char * EXE_PATH_VARNAME = "PATH";
27852-const char * EXE_PATH_VALUE = "$func_to_host_pathlist_result";
27853+const char * EXE_PATH_VALUE = "$func_to_host_path_result";
27854 EOF
27855 else
27856 cat <<"EOF"
27857@@ -3539,12 +4343,10 @@ EOF
27858 cat <<"EOF"
27859
27860 #define LTWRAPPER_OPTION_PREFIX "--lt-"
27861-#define LTWRAPPER_OPTION_PREFIX_LENGTH 5
27862
27863-static const size_t opt_prefix_len = LTWRAPPER_OPTION_PREFIX_LENGTH;
27864 static const char *ltwrapper_option_prefix = LTWRAPPER_OPTION_PREFIX;
27865-
27866 static const char *dumpscript_opt = LTWRAPPER_OPTION_PREFIX "dump-script";
27867+static const char *debug_opt = LTWRAPPER_OPTION_PREFIX "debug";
27868
27869 int
27870 main (int argc, char *argv[])
27871@@ -3561,10 +4363,13 @@ main (int argc, char *argv[])
27872 int i;
27873
27874 program_name = (char *) xstrdup (base_name (argv[0]));
27875- LTWRAPPER_DEBUGPRINTF (("(main) argv[0] : %s\n", argv[0]));
27876- LTWRAPPER_DEBUGPRINTF (("(main) program_name : %s\n", program_name));
27877+ newargz = XMALLOC (char *, argc + 1);
27878
27879- /* very simple arg parsing; don't want to rely on getopt */
27880+ /* very simple arg parsing; don't want to rely on getopt
27881+ * also, copy all non cwrapper options to newargz, except
27882+ * argz[0], which is handled differently
27883+ */
27884+ newargc=0;
27885 for (i = 1; i < argc; i++)
27886 {
27887 if (strcmp (argv[i], dumpscript_opt) == 0)
27888@@ -3581,21 +4386,54 @@ EOF
27889 lt_dump_script (stdout);
27890 return 0;
27891 }
27892+ if (strcmp (argv[i], debug_opt) == 0)
27893+ {
27894+ lt_debug = 1;
27895+ continue;
27896+ }
27897+ if (strcmp (argv[i], ltwrapper_option_prefix) == 0)
27898+ {
27899+ /* however, if there is an option in the LTWRAPPER_OPTION_PREFIX
27900+ namespace, but it is not one of the ones we know about and
27901+ have already dealt with, above (inluding dump-script), then
27902+ report an error. Otherwise, targets might begin to believe
27903+ they are allowed to use options in the LTWRAPPER_OPTION_PREFIX
27904+ namespace. The first time any user complains about this, we'll
27905+ need to make LTWRAPPER_OPTION_PREFIX a configure-time option
27906+ or a configure.ac-settable value.
27907+ */
27908+ lt_fatal (__FILE__, __LINE__,
27909+ "unrecognized %s option: '%s'",
27910+ ltwrapper_option_prefix, argv[i]);
27911+ }
27912+ /* otherwise ... */
27913+ newargz[++newargc] = xstrdup (argv[i]);
27914 }
27915+ newargz[++newargc] = NULL;
27916+
27917+EOF
27918+ cat <<EOF
27919+ /* The GNU banner must be the first non-error debug message */
27920+ lt_debugprintf (__FILE__, __LINE__, "libtool wrapper (GNU $PACKAGE$TIMESTAMP) $VERSION\n");
27921+EOF
27922+ cat <<"EOF"
27923+ lt_debugprintf (__FILE__, __LINE__, "(main) argv[0]: %s\n", argv[0]);
27924+ lt_debugprintf (__FILE__, __LINE__, "(main) program_name: %s\n", program_name);
27925
27926- newargz = XMALLOC (char *, argc + 1);
27927 tmp_pathspec = find_executable (argv[0]);
27928 if (tmp_pathspec == NULL)
27929- lt_fatal ("Couldn't find %s", argv[0]);
27930- LTWRAPPER_DEBUGPRINTF (("(main) found exe (before symlink chase) at : %s\n",
27931- tmp_pathspec));
27932+ lt_fatal (__FILE__, __LINE__, "couldn't find %s", argv[0]);
27933+ lt_debugprintf (__FILE__, __LINE__,
27934+ "(main) found exe (before symlink chase) at: %s\n",
27935+ tmp_pathspec);
27936
27937 actual_cwrapper_path = chase_symlinks (tmp_pathspec);
27938- LTWRAPPER_DEBUGPRINTF (("(main) found exe (after symlink chase) at : %s\n",
27939- actual_cwrapper_path));
27940+ lt_debugprintf (__FILE__, __LINE__,
27941+ "(main) found exe (after symlink chase) at: %s\n",
27942+ actual_cwrapper_path);
27943 XFREE (tmp_pathspec);
27944
27945- actual_cwrapper_name = xstrdup( base_name (actual_cwrapper_path));
27946+ actual_cwrapper_name = xstrdup (base_name (actual_cwrapper_path));
27947 strendzap (actual_cwrapper_path, actual_cwrapper_name);
27948
27949 /* wrapper name transforms */
27950@@ -3613,8 +4451,9 @@ EOF
27951 target_name = tmp_pathspec;
27952 tmp_pathspec = 0;
27953
27954- LTWRAPPER_DEBUGPRINTF (("(main) libtool target name: %s\n",
27955- target_name));
27956+ lt_debugprintf (__FILE__, __LINE__,
27957+ "(main) libtool target name: %s\n",
27958+ target_name);
27959 EOF
27960
27961 cat <<EOF
27962@@ -3664,35 +4503,19 @@ EOF
27963
27964 lt_setenv ("BIN_SH", "xpg4"); /* for Tru64 */
27965 lt_setenv ("DUALCASE", "1"); /* for MSK sh */
27966- lt_update_lib_path (LIB_PATH_VARNAME, LIB_PATH_VALUE);
27967+ /* Update the DLL searchpath. EXE_PATH_VALUE ($dllsearchpath) must
27968+ be prepended before (that is, appear after) LIB_PATH_VALUE ($temp_rpath)
27969+ because on Windows, both *_VARNAMEs are PATH but uninstalled
27970+ libraries must come first. */
27971 lt_update_exe_path (EXE_PATH_VARNAME, EXE_PATH_VALUE);
27972+ lt_update_lib_path (LIB_PATH_VARNAME, LIB_PATH_VALUE);
27973
27974- newargc=0;
27975- for (i = 1; i < argc; i++)
27976- {
27977- if (strncmp (argv[i], ltwrapper_option_prefix, opt_prefix_len) == 0)
27978- {
27979- /* however, if there is an option in the LTWRAPPER_OPTION_PREFIX
27980- namespace, but it is not one of the ones we know about and
27981- have already dealt with, above (inluding dump-script), then
27982- report an error. Otherwise, targets might begin to believe
27983- they are allowed to use options in the LTWRAPPER_OPTION_PREFIX
27984- namespace. The first time any user complains about this, we'll
27985- need to make LTWRAPPER_OPTION_PREFIX a configure-time option
27986- or a configure.ac-settable value.
27987- */
27988- lt_fatal ("Unrecognized option in %s namespace: '%s'",
27989- ltwrapper_option_prefix, argv[i]);
27990- }
27991- /* otherwise ... */
27992- newargz[++newargc] = xstrdup (argv[i]);
27993- }
27994- newargz[++newargc] = NULL;
27995-
27996- LTWRAPPER_DEBUGPRINTF (("(main) lt_argv_zero : %s\n", (lt_argv_zero ? lt_argv_zero : "<NULL>")));
27997+ lt_debugprintf (__FILE__, __LINE__, "(main) lt_argv_zero: %s\n",
27998+ nonnull (lt_argv_zero));
27999 for (i = 0; i < newargc; i++)
28000 {
28001- LTWRAPPER_DEBUGPRINTF (("(main) newargz[%d] : %s\n", i, (newargz[i] ? newargz[i] : "<NULL>")));
28002+ lt_debugprintf (__FILE__, __LINE__, "(main) newargz[%d]: %s\n",
28003+ i, nonnull (newargz[i]));
28004 }
28005
28006 EOF
28007@@ -3706,7 +4529,9 @@ EOF
28008 if (rval == -1)
28009 {
28010 /* failed to start process */
28011- LTWRAPPER_DEBUGPRINTF (("(main) failed to launch target \"%s\": errno = %d\n", lt_argv_zero, errno));
28012+ lt_debugprintf (__FILE__, __LINE__,
28013+ "(main) failed to launch target \"%s\": %s\n",
28014+ lt_argv_zero, nonnull (strerror (errno)));
28015 return 127;
28016 }
28017 return rval;
28018@@ -3728,7 +4553,7 @@ xmalloc (size_t num)
28019 {
28020 void *p = (void *) malloc (num);
28021 if (!p)
28022- lt_fatal ("Memory exhausted");
28023+ lt_fatal (__FILE__, __LINE__, "memory exhausted");
28024
28025 return p;
28026 }
28027@@ -3762,8 +4587,8 @@ check_executable (const char *path)
28028 {
28029 struct stat st;
28030
28031- LTWRAPPER_DEBUGPRINTF (("(check_executable) : %s\n",
28032- path ? (*path ? path : "EMPTY!") : "NULL!"));
28033+ lt_debugprintf (__FILE__, __LINE__, "(check_executable): %s\n",
28034+ nonempty (path));
28035 if ((!path) || (!*path))
28036 return 0;
28037
28038@@ -3780,8 +4605,8 @@ make_executable (const char *path)
28039 int rval = 0;
28040 struct stat st;
28041
28042- LTWRAPPER_DEBUGPRINTF (("(make_executable) : %s\n",
28043- path ? (*path ? path : "EMPTY!") : "NULL!"));
28044+ lt_debugprintf (__FILE__, __LINE__, "(make_executable): %s\n",
28045+ nonempty (path));
28046 if ((!path) || (!*path))
28047 return 0;
28048
28049@@ -3807,8 +4632,8 @@ find_executable (const char *wrapper)
28050 int tmp_len;
28051 char *concat_name;
28052
28053- LTWRAPPER_DEBUGPRINTF (("(find_executable) : %s\n",
28054- wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!"));
28055+ lt_debugprintf (__FILE__, __LINE__, "(find_executable): %s\n",
28056+ nonempty (wrapper));
28057
28058 if ((wrapper == NULL) || (*wrapper == '\0'))
28059 return NULL;
28060@@ -3861,7 +4686,8 @@ find_executable (const char *wrapper)
28061 {
28062 /* empty path: current directory */
28063 if (getcwd (tmp, LT_PATHMAX) == NULL)
28064- lt_fatal ("getcwd failed");
28065+ lt_fatal (__FILE__, __LINE__, "getcwd failed: %s",
28066+ nonnull (strerror (errno)));
28067 tmp_len = strlen (tmp);
28068 concat_name =
28069 XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
28070@@ -3886,7 +4712,8 @@ find_executable (const char *wrapper)
28071 }
28072 /* Relative path | not found in path: prepend cwd */
28073 if (getcwd (tmp, LT_PATHMAX) == NULL)
28074- lt_fatal ("getcwd failed");
28075+ lt_fatal (__FILE__, __LINE__, "getcwd failed: %s",
28076+ nonnull (strerror (errno)));
28077 tmp_len = strlen (tmp);
28078 concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
28079 memcpy (concat_name, tmp, tmp_len);
28080@@ -3912,8 +4739,9 @@ chase_symlinks (const char *pathspec)
28081 int has_symlinks = 0;
28082 while (strlen (tmp_pathspec) && !has_symlinks)
28083 {
28084- LTWRAPPER_DEBUGPRINTF (("checking path component for symlinks: %s\n",
28085- tmp_pathspec));
28086+ lt_debugprintf (__FILE__, __LINE__,
28087+ "checking path component for symlinks: %s\n",
28088+ tmp_pathspec);
28089 if (lstat (tmp_pathspec, &s) == 0)
28090 {
28091 if (S_ISLNK (s.st_mode) != 0)
28092@@ -3935,8 +4763,9 @@ chase_symlinks (const char *pathspec)
28093 }
28094 else
28095 {
28096- char *errstr = strerror (errno);
28097- lt_fatal ("Error accessing file %s (%s)", tmp_pathspec, errstr);
28098+ lt_fatal (__FILE__, __LINE__,
28099+ "error accessing file \"%s\": %s",
28100+ tmp_pathspec, nonnull (strerror (errno)));
28101 }
28102 }
28103 XFREE (tmp_pathspec);
28104@@ -3949,7 +4778,8 @@ chase_symlinks (const char *pathspec)
28105 tmp_pathspec = realpath (pathspec, buf);
28106 if (tmp_pathspec == 0)
28107 {
28108- lt_fatal ("Could not follow symlinks for %s", pathspec);
28109+ lt_fatal (__FILE__, __LINE__,
28110+ "could not follow symlinks for %s", pathspec);
28111 }
28112 return xstrdup (tmp_pathspec);
28113 #endif
28114@@ -3975,11 +4805,25 @@ strendzap (char *str, const char *pat)
28115 return str;
28116 }
28117
28118+void
28119+lt_debugprintf (const char *file, int line, const char *fmt, ...)
28120+{
28121+ va_list args;
28122+ if (lt_debug)
28123+ {
28124+ (void) fprintf (stderr, "%s:%s:%d: ", program_name, file, line);
28125+ va_start (args, fmt);
28126+ (void) vfprintf (stderr, fmt, args);
28127+ va_end (args);
28128+ }
28129+}
28130+
28131 static void
28132-lt_error_core (int exit_status, const char *mode,
28133+lt_error_core (int exit_status, const char *file,
28134+ int line, const char *mode,
28135 const char *message, va_list ap)
28136 {
28137- fprintf (stderr, "%s: %s: ", program_name, mode);
28138+ fprintf (stderr, "%s:%s:%d: %s: ", program_name, file, line, mode);
28139 vfprintf (stderr, message, ap);
28140 fprintf (stderr, ".\n");
28141
28142@@ -3988,20 +4832,32 @@ lt_error_core (int exit_status, const char *mode,
28143 }
28144
28145 void
28146-lt_fatal (const char *message, ...)
28147+lt_fatal (const char *file, int line, const char *message, ...)
28148 {
28149 va_list ap;
28150 va_start (ap, message);
28151- lt_error_core (EXIT_FAILURE, "FATAL", message, ap);
28152+ lt_error_core (EXIT_FAILURE, file, line, "FATAL", message, ap);
28153 va_end (ap);
28154 }
28155
28156+static const char *
28157+nonnull (const char *s)
28158+{
28159+ return s ? s : "(null)";
28160+}
28161+
28162+static const char *
28163+nonempty (const char *s)
28164+{
28165+ return (s && !*s) ? "(empty)" : nonnull (s);
28166+}
28167+
28168 void
28169 lt_setenv (const char *name, const char *value)
28170 {
28171- LTWRAPPER_DEBUGPRINTF (("(lt_setenv) setting '%s' to '%s'\n",
28172- (name ? name : "<NULL>"),
28173- (value ? value : "<NULL>")));
28174+ lt_debugprintf (__FILE__, __LINE__,
28175+ "(lt_setenv) setting '%s' to '%s'\n",
28176+ nonnull (name), nonnull (value));
28177 {
28178 #ifdef HAVE_SETENV
28179 /* always make a copy, for consistency with !HAVE_SETENV */
28180@@ -4049,9 +4905,9 @@ lt_extend_str (const char *orig_value, const char *add, int to_end)
28181 void
28182 lt_update_exe_path (const char *name, const char *value)
28183 {
28184- LTWRAPPER_DEBUGPRINTF (("(lt_update_exe_path) modifying '%s' by prepending '%s'\n",
28185- (name ? name : "<NULL>"),
28186- (value ? value : "<NULL>")));
28187+ lt_debugprintf (__FILE__, __LINE__,
28188+ "(lt_update_exe_path) modifying '%s' by prepending '%s'\n",
28189+ nonnull (name), nonnull (value));
28190
28191 if (name && *name && value && *value)
28192 {
28193@@ -4070,9 +4926,9 @@ lt_update_exe_path (const char *name, const char *value)
28194 void
28195 lt_update_lib_path (const char *name, const char *value)
28196 {
28197- LTWRAPPER_DEBUGPRINTF (("(lt_update_lib_path) modifying '%s' by prepending '%s'\n",
28198- (name ? name : "<NULL>"),
28199- (value ? value : "<NULL>")));
28200+ lt_debugprintf (__FILE__, __LINE__,
28201+ "(lt_update_lib_path) modifying '%s' by prepending '%s'\n",
28202+ nonnull (name), nonnull (value));
28203
28204 if (name && *name && value && *value)
28205 {
28206@@ -4222,7 +5078,7 @@ EOF
28207 func_win32_import_lib_p ()
28208 {
28209 $opt_debug
28210- case `eval "$file_magic_cmd \"\$1\" 2>/dev/null" | $SED -e 10q` in
28211+ case `eval $file_magic_cmd \"\$1\" 2>/dev/null | $SED -e 10q` in
28212 *import*) : ;;
28213 *) false ;;
28214 esac
28215@@ -4401,9 +5257,9 @@ func_mode_link ()
28216 ;;
28217 *)
28218 if test "$prev" = dlfiles; then
28219- dlfiles="$dlfiles $arg"
28220+ func_append dlfiles " $arg"
28221 else
28222- dlprefiles="$dlprefiles $arg"
28223+ func_append dlprefiles " $arg"
28224 fi
28225 prev=
28226 continue
28227@@ -4427,7 +5283,7 @@ func_mode_link ()
28228 *-*-darwin*)
28229 case "$deplibs " in
28230 *" $qarg.ltframework "*) ;;
28231- *) deplibs="$deplibs $qarg.ltframework" # this is fixed later
28232+ *) func_append deplibs " $qarg.ltframework" # this is fixed later
28233 ;;
28234 esac
28235 ;;
28236@@ -4446,7 +5302,7 @@ func_mode_link ()
28237 moreargs=
28238 for fil in `cat "$save_arg"`
28239 do
28240-# moreargs="$moreargs $fil"
28241+# func_append moreargs " $fil"
28242 arg=$fil
28243 # A libtool-controlled object.
28244
28245@@ -4475,7 +5331,7 @@ func_mode_link ()
28246
28247 if test "$prev" = dlfiles; then
28248 if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
28249- dlfiles="$dlfiles $pic_object"
28250+ func_append dlfiles " $pic_object"
28251 prev=
28252 continue
28253 else
28254@@ -4487,7 +5343,7 @@ func_mode_link ()
28255 # CHECK ME: I think I busted this. -Ossama
28256 if test "$prev" = dlprefiles; then
28257 # Preload the old-style object.
28258- dlprefiles="$dlprefiles $pic_object"
28259+ func_append dlprefiles " $pic_object"
28260 prev=
28261 fi
28262
28263@@ -4557,12 +5413,12 @@ func_mode_link ()
28264 if test "$prev" = rpath; then
28265 case "$rpath " in
28266 *" $arg "*) ;;
28267- *) rpath="$rpath $arg" ;;
28268+ *) func_append rpath " $arg" ;;
28269 esac
28270 else
28271 case "$xrpath " in
28272 *" $arg "*) ;;
28273- *) xrpath="$xrpath $arg" ;;
28274+ *) func_append xrpath " $arg" ;;
28275 esac
28276 fi
28277 prev=
28278@@ -4574,28 +5430,28 @@ func_mode_link ()
28279 continue
28280 ;;
28281 weak)
28282- weak_libs="$weak_libs $arg"
28283+ func_append weak_libs " $arg"
28284 prev=
28285 continue
28286 ;;
28287 xcclinker)
28288- linker_flags="$linker_flags $qarg"
28289- compiler_flags="$compiler_flags $qarg"
28290+ func_append linker_flags " $qarg"
28291+ func_append compiler_flags " $qarg"
28292 prev=
28293 func_append compile_command " $qarg"
28294 func_append finalize_command " $qarg"
28295 continue
28296 ;;
28297 xcompiler)
28298- compiler_flags="$compiler_flags $qarg"
28299+ func_append compiler_flags " $qarg"
28300 prev=
28301 func_append compile_command " $qarg"
28302 func_append finalize_command " $qarg"
28303 continue
28304 ;;
28305 xlinker)
28306- linker_flags="$linker_flags $qarg"
28307- compiler_flags="$compiler_flags $wl$qarg"
28308+ func_append linker_flags " $qarg"
28309+ func_append compiler_flags " $wl$qarg"
28310 prev=
28311 func_append compile_command " $wl$qarg"
28312 func_append finalize_command " $wl$qarg"
28313@@ -4686,15 +5542,16 @@ func_mode_link ()
28314 ;;
28315
28316 -L*)
28317- func_stripname '-L' '' "$arg"
28318- dir=$func_stripname_result
28319- if test -z "$dir"; then
28320+ func_stripname "-L" '' "$arg"
28321+ if test -z "$func_stripname_result"; then
28322 if test "$#" -gt 0; then
28323 func_fatal_error "require no space between \`-L' and \`$1'"
28324 else
28325 func_fatal_error "need path for \`-L' option"
28326 fi
28327 fi
28328+ func_resolve_sysroot "$func_stripname_result"
28329+ dir=$func_resolve_sysroot_result
28330 # We need an absolute path.
28331 case $dir in
28332 [\\/]* | [A-Za-z]:[\\/]*) ;;
28333@@ -4706,10 +5563,16 @@ func_mode_link ()
28334 ;;
28335 esac
28336 case "$deplibs " in
28337- *" -L$dir "*) ;;
28338+ *" -L$dir "* | *" $arg "*)
28339+ # Will only happen for absolute or sysroot arguments
28340+ ;;
28341 *)
28342- deplibs="$deplibs -L$dir"
28343- lib_search_path="$lib_search_path $dir"
28344+ # Preserve sysroot, but never include relative directories
28345+ case $dir in
28346+ [\\/]* | [A-Za-z]:[\\/]* | =*) func_append deplibs " $arg" ;;
28347+ *) func_append deplibs " -L$dir" ;;
28348+ esac
28349+ func_append lib_search_path " $dir"
28350 ;;
28351 esac
28352 case $host in
28353@@ -4718,12 +5581,12 @@ func_mode_link ()
28354 case :$dllsearchpath: in
28355 *":$dir:"*) ;;
28356 ::) dllsearchpath=$dir;;
28357- *) dllsearchpath="$dllsearchpath:$dir";;
28358+ *) func_append dllsearchpath ":$dir";;
28359 esac
28360 case :$dllsearchpath: in
28361 *":$testbindir:"*) ;;
28362 ::) dllsearchpath=$testbindir;;
28363- *) dllsearchpath="$dllsearchpath:$testbindir";;
28364+ *) func_append dllsearchpath ":$testbindir";;
28365 esac
28366 ;;
28367 esac
28368@@ -4747,7 +5610,7 @@ func_mode_link ()
28369 ;;
28370 *-*-rhapsody* | *-*-darwin1.[012])
28371 # Rhapsody C and math libraries are in the System framework
28372- deplibs="$deplibs System.ltframework"
28373+ func_append deplibs " System.ltframework"
28374 continue
28375 ;;
28376 *-*-sco3.2v5* | *-*-sco5v6*)
28377@@ -4758,9 +5621,6 @@ func_mode_link ()
28378 # Compiler inserts libc in the correct place for threads to work
28379 test "X$arg" = "X-lc" && continue
28380 ;;
28381- *-*-linux*)
28382- test "X$arg" = "X-lc" && continue
28383- ;;
28384 esac
28385 elif test "X$arg" = "X-lc_r"; then
28386 case $host in
28387@@ -4770,7 +5630,7 @@ func_mode_link ()
28388 ;;
28389 esac
28390 fi
28391- deplibs="$deplibs $arg"
28392+ func_append deplibs " $arg"
28393 continue
28394 ;;
28395
28396@@ -4782,8 +5642,8 @@ func_mode_link ()
28397 # Tru64 UNIX uses -model [arg] to determine the layout of C++
28398 # classes, name mangling, and exception handling.
28399 # Darwin uses the -arch flag to determine output architecture.
28400- -model|-arch|-isysroot)
28401- compiler_flags="$compiler_flags $arg"
28402+ -model|-arch|-isysroot|--sysroot)
28403+ func_append compiler_flags " $arg"
28404 func_append compile_command " $arg"
28405 func_append finalize_command " $arg"
28406 prev=xcompiler
28407@@ -4791,12 +5651,12 @@ func_mode_link ()
28408 ;;
28409
28410 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
28411- compiler_flags="$compiler_flags $arg"
28412+ func_append compiler_flags " $arg"
28413 func_append compile_command " $arg"
28414 func_append finalize_command " $arg"
28415 case "$new_inherited_linker_flags " in
28416 *" $arg "*) ;;
28417- * ) new_inherited_linker_flags="$new_inherited_linker_flags $arg" ;;
28418+ * ) func_append new_inherited_linker_flags " $arg" ;;
28419 esac
28420 continue
28421 ;;
28422@@ -4863,13 +5723,17 @@ func_mode_link ()
28423 # We need an absolute path.
28424 case $dir in
28425 [\\/]* | [A-Za-z]:[\\/]*) ;;
28426+ =*)
28427+ func_stripname '=' '' "$dir"
28428+ dir=$lt_sysroot$func_stripname_result
28429+ ;;
28430 *)
28431 func_fatal_error "only absolute run-paths are allowed"
28432 ;;
28433 esac
28434 case "$xrpath " in
28435 *" $dir "*) ;;
28436- *) xrpath="$xrpath $dir" ;;
28437+ *) func_append xrpath " $dir" ;;
28438 esac
28439 continue
28440 ;;
28441@@ -4922,8 +5786,8 @@ func_mode_link ()
28442 for flag in $args; do
28443 IFS="$save_ifs"
28444 func_quote_for_eval "$flag"
28445- arg="$arg $func_quote_for_eval_result"
28446- compiler_flags="$compiler_flags $func_quote_for_eval_result"
28447+ func_append arg " $func_quote_for_eval_result"
28448+ func_append compiler_flags " $func_quote_for_eval_result"
28449 done
28450 IFS="$save_ifs"
28451 func_stripname ' ' '' "$arg"
28452@@ -4938,9 +5802,9 @@ func_mode_link ()
28453 for flag in $args; do
28454 IFS="$save_ifs"
28455 func_quote_for_eval "$flag"
28456- arg="$arg $wl$func_quote_for_eval_result"
28457- compiler_flags="$compiler_flags $wl$func_quote_for_eval_result"
28458- linker_flags="$linker_flags $func_quote_for_eval_result"
28459+ func_append arg " $wl$func_quote_for_eval_result"
28460+ func_append compiler_flags " $wl$func_quote_for_eval_result"
28461+ func_append linker_flags " $func_quote_for_eval_result"
28462 done
28463 IFS="$save_ifs"
28464 func_stripname ' ' '' "$arg"
28465@@ -4968,24 +5832,27 @@ func_mode_link ()
28466 arg="$func_quote_for_eval_result"
28467 ;;
28468
28469- # -64, -mips[0-9] enable 64-bit mode on the SGI compiler
28470- # -r[0-9][0-9]* specifies the processor on the SGI compiler
28471- # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler
28472- # +DA*, +DD* enable 64-bit mode on the HP compiler
28473- # -q* pass through compiler args for the IBM compiler
28474- # -m*, -t[45]*, -txscale* pass through architecture-specific
28475- # compiler args for GCC
28476- # -F/path gives path to uninstalled frameworks, gcc on darwin
28477- # -p, -pg, --coverage, -fprofile-* pass through profiling flag for GCC
28478- # @file GCC response files
28479- # -tp=* Portland pgcc target processor selection
28480+ # Flags to be passed through unchanged, with rationale:
28481+ # -64, -mips[0-9] enable 64-bit mode for the SGI compiler
28482+ # -r[0-9][0-9]* specify processor for the SGI compiler
28483+ # -xarch=*, -xtarget=* enable 64-bit mode for the Sun compiler
28484+ # +DA*, +DD* enable 64-bit mode for the HP compiler
28485+ # -q* compiler args for the IBM compiler
28486+ # -m*, -t[45]*, -txscale* architecture-specific flags for GCC
28487+ # -F/path path to uninstalled frameworks, gcc on darwin
28488+ # -p, -pg, --coverage, -fprofile-* profiling flags for GCC
28489+ # @file GCC response files
28490+ # -tp=* Portland pgcc target processor selection
28491+ # --sysroot=* for sysroot support
28492+ # -O*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization
28493 -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
28494- -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*)
28495+ -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \
28496+ -O*|-flto*|-fwhopr*|-fuse-linker-plugin)
28497 func_quote_for_eval "$arg"
28498 arg="$func_quote_for_eval_result"
28499 func_append compile_command " $arg"
28500 func_append finalize_command " $arg"
28501- compiler_flags="$compiler_flags $arg"
28502+ func_append compiler_flags " $arg"
28503 continue
28504 ;;
28505
28506@@ -4997,7 +5864,7 @@ func_mode_link ()
28507
28508 *.$objext)
28509 # A standard object.
28510- objs="$objs $arg"
28511+ func_append objs " $arg"
28512 ;;
28513
28514 *.lo)
28515@@ -5028,7 +5895,7 @@ func_mode_link ()
28516
28517 if test "$prev" = dlfiles; then
28518 if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
28519- dlfiles="$dlfiles $pic_object"
28520+ func_append dlfiles " $pic_object"
28521 prev=
28522 continue
28523 else
28524@@ -5040,7 +5907,7 @@ func_mode_link ()
28525 # CHECK ME: I think I busted this. -Ossama
28526 if test "$prev" = dlprefiles; then
28527 # Preload the old-style object.
28528- dlprefiles="$dlprefiles $pic_object"
28529+ func_append dlprefiles " $pic_object"
28530 prev=
28531 fi
28532
28533@@ -5085,24 +5952,25 @@ func_mode_link ()
28534
28535 *.$libext)
28536 # An archive.
28537- deplibs="$deplibs $arg"
28538- old_deplibs="$old_deplibs $arg"
28539+ func_append deplibs " $arg"
28540+ func_append old_deplibs " $arg"
28541 continue
28542 ;;
28543
28544 *.la)
28545 # A libtool-controlled library.
28546
28547+ func_resolve_sysroot "$arg"
28548 if test "$prev" = dlfiles; then
28549 # This library was specified with -dlopen.
28550- dlfiles="$dlfiles $arg"
28551+ func_append dlfiles " $func_resolve_sysroot_result"
28552 prev=
28553 elif test "$prev" = dlprefiles; then
28554 # The library was specified with -dlpreopen.
28555- dlprefiles="$dlprefiles $arg"
28556+ func_append dlprefiles " $func_resolve_sysroot_result"
28557 prev=
28558 else
28559- deplibs="$deplibs $arg"
28560+ func_append deplibs " $func_resolve_sysroot_result"
28561 fi
28562 continue
28563 ;;
28564@@ -5127,7 +5995,7 @@ func_mode_link ()
28565 func_fatal_help "the \`$prevarg' option requires an argument"
28566
28567 if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
28568- eval "arg=\"$export_dynamic_flag_spec\""
28569+ eval arg=\"$export_dynamic_flag_spec\"
28570 func_append compile_command " $arg"
28571 func_append finalize_command " $arg"
28572 fi
28573@@ -5144,11 +6012,13 @@ func_mode_link ()
28574 else
28575 shlib_search_path=
28576 fi
28577- eval "sys_lib_search_path=\"$sys_lib_search_path_spec\""
28578- eval "sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\""
28579+ eval sys_lib_search_path=\"$sys_lib_search_path_spec\"
28580+ eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
28581
28582 func_dirname "$output" "/" ""
28583 output_objdir="$func_dirname_result$objdir"
28584+ func_to_tool_file "$output_objdir/"
28585+ tool_output_objdir=$func_to_tool_file_result
28586 # Create the object directory.
28587 func_mkdir_p "$output_objdir"
28588
28589@@ -5169,12 +6039,12 @@ func_mode_link ()
28590 # Find all interdependent deplibs by searching for libraries
28591 # that are linked more than once (e.g. -la -lb -la)
28592 for deplib in $deplibs; do
28593- if $opt_duplicate_deps ; then
28594+ if $opt_preserve_dup_deps ; then
28595 case "$libs " in
28596- *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
28597+ *" $deplib "*) func_append specialdeplibs " $deplib" ;;
28598 esac
28599 fi
28600- libs="$libs $deplib"
28601+ func_append libs " $deplib"
28602 done
28603
28604 if test "$linkmode" = lib; then
28605@@ -5187,9 +6057,9 @@ func_mode_link ()
28606 if $opt_duplicate_compiler_generated_deps; then
28607 for pre_post_dep in $predeps $postdeps; do
28608 case "$pre_post_deps " in
28609- *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;;
28610+ *" $pre_post_dep "*) func_append specialdeplibs " $pre_post_deps" ;;
28611 esac
28612- pre_post_deps="$pre_post_deps $pre_post_dep"
28613+ func_append pre_post_deps " $pre_post_dep"
28614 done
28615 fi
28616 pre_post_deps=
28617@@ -5256,8 +6126,9 @@ func_mode_link ()
28618 for lib in $dlprefiles; do
28619 # Ignore non-libtool-libs
28620 dependency_libs=
28621+ func_resolve_sysroot "$lib"
28622 case $lib in
28623- *.la) func_source "$lib" ;;
28624+ *.la) func_source "$func_resolve_sysroot_result" ;;
28625 esac
28626
28627 # Collect preopened libtool deplibs, except any this library
28628@@ -5267,7 +6138,7 @@ func_mode_link ()
28629 deplib_base=$func_basename_result
28630 case " $weak_libs " in
28631 *" $deplib_base "*) ;;
28632- *) deplibs="$deplibs $deplib" ;;
28633+ *) func_append deplibs " $deplib" ;;
28634 esac
28635 done
28636 done
28637@@ -5288,11 +6159,11 @@ func_mode_link ()
28638 compile_deplibs="$deplib $compile_deplibs"
28639 finalize_deplibs="$deplib $finalize_deplibs"
28640 else
28641- compiler_flags="$compiler_flags $deplib"
28642+ func_append compiler_flags " $deplib"
28643 if test "$linkmode" = lib ; then
28644 case "$new_inherited_linker_flags " in
28645 *" $deplib "*) ;;
28646- * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;;
28647+ * ) func_append new_inherited_linker_flags " $deplib" ;;
28648 esac
28649 fi
28650 fi
28651@@ -5377,7 +6248,7 @@ func_mode_link ()
28652 if test "$linkmode" = lib ; then
28653 case "$new_inherited_linker_flags " in
28654 *" $deplib "*) ;;
28655- * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;;
28656+ * ) func_append new_inherited_linker_flags " $deplib" ;;
28657 esac
28658 fi
28659 fi
28660@@ -5390,7 +6261,8 @@ func_mode_link ()
28661 test "$pass" = conv && continue
28662 newdependency_libs="$deplib $newdependency_libs"
28663 func_stripname '-L' '' "$deplib"
28664- newlib_search_path="$newlib_search_path $func_stripname_result"
28665+ func_resolve_sysroot "$func_stripname_result"
28666+ func_append newlib_search_path " $func_resolve_sysroot_result"
28667 ;;
28668 prog)
28669 if test "$pass" = conv; then
28670@@ -5404,7 +6276,8 @@ func_mode_link ()
28671 finalize_deplibs="$deplib $finalize_deplibs"
28672 fi
28673 func_stripname '-L' '' "$deplib"
28674- newlib_search_path="$newlib_search_path $func_stripname_result"
28675+ func_resolve_sysroot "$func_stripname_result"
28676+ func_append newlib_search_path " $func_resolve_sysroot_result"
28677 ;;
28678 *)
28679 func_warning "\`-L' is ignored for archives/objects"
28680@@ -5415,17 +6288,21 @@ func_mode_link ()
28681 -R*)
28682 if test "$pass" = link; then
28683 func_stripname '-R' '' "$deplib"
28684- dir=$func_stripname_result
28685+ func_resolve_sysroot "$func_stripname_result"
28686+ dir=$func_resolve_sysroot_result
28687 # Make sure the xrpath contains only unique directories.
28688 case "$xrpath " in
28689 *" $dir "*) ;;
28690- *) xrpath="$xrpath $dir" ;;
28691+ *) func_append xrpath " $dir" ;;
28692 esac
28693 fi
28694 deplibs="$deplib $deplibs"
28695 continue
28696 ;;
28697- *.la) lib="$deplib" ;;
28698+ *.la)
28699+ func_resolve_sysroot "$deplib"
28700+ lib=$func_resolve_sysroot_result
28701+ ;;
28702 *.$libext)
28703 if test "$pass" = conv; then
28704 deplibs="$deplib $deplibs"
28705@@ -5488,11 +6365,11 @@ func_mode_link ()
28706 if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
28707 # If there is no dlopen support or we're linking statically,
28708 # we need to preload.
28709- newdlprefiles="$newdlprefiles $deplib"
28710+ func_append newdlprefiles " $deplib"
28711 compile_deplibs="$deplib $compile_deplibs"
28712 finalize_deplibs="$deplib $finalize_deplibs"
28713 else
28714- newdlfiles="$newdlfiles $deplib"
28715+ func_append newdlfiles " $deplib"
28716 fi
28717 fi
28718 continue
28719@@ -5538,7 +6415,7 @@ func_mode_link ()
28720 for tmp_inherited_linker_flag in $tmp_inherited_linker_flags; do
28721 case " $new_inherited_linker_flags " in
28722 *" $tmp_inherited_linker_flag "*) ;;
28723- *) new_inherited_linker_flags="$new_inherited_linker_flags $tmp_inherited_linker_flag";;
28724+ *) func_append new_inherited_linker_flags " $tmp_inherited_linker_flag";;
28725 esac
28726 done
28727 fi
28728@@ -5546,8 +6423,8 @@ func_mode_link ()
28729 if test "$linkmode,$pass" = "lib,link" ||
28730 test "$linkmode,$pass" = "prog,scan" ||
28731 { test "$linkmode" != prog && test "$linkmode" != lib; }; then
28732- test -n "$dlopen" && dlfiles="$dlfiles $dlopen"
28733- test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen"
28734+ test -n "$dlopen" && func_append dlfiles " $dlopen"
28735+ test -n "$dlpreopen" && func_append dlprefiles " $dlpreopen"
28736 fi
28737
28738 if test "$pass" = conv; then
28739@@ -5558,20 +6435,20 @@ func_mode_link ()
28740 func_fatal_error "cannot find name of link library for \`$lib'"
28741 fi
28742 # It is a libtool convenience library, so add in its objects.
28743- convenience="$convenience $ladir/$objdir/$old_library"
28744- old_convenience="$old_convenience $ladir/$objdir/$old_library"
28745+ func_append convenience " $ladir/$objdir/$old_library"
28746+ func_append old_convenience " $ladir/$objdir/$old_library"
28747 elif test "$linkmode" != prog && test "$linkmode" != lib; then
28748 func_fatal_error "\`$lib' is not a convenience library"
28749 fi
28750 tmp_libs=
28751 for deplib in $dependency_libs; do
28752 deplibs="$deplib $deplibs"
28753- if $opt_duplicate_deps ; then
28754+ if $opt_preserve_dup_deps ; then
28755 case "$tmp_libs " in
28756- *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
28757+ *" $deplib "*) func_append specialdeplibs " $deplib" ;;
28758 esac
28759 fi
28760- tmp_libs="$tmp_libs $deplib"
28761+ func_append tmp_libs " $deplib"
28762 done
28763 continue
28764 fi # $pass = conv
28765@@ -5579,9 +6456,15 @@ func_mode_link ()
28766
28767 # Get the name of the library we link against.
28768 linklib=
28769- for l in $old_library $library_names; do
28770- linklib="$l"
28771- done
28772+ if test -n "$old_library" &&
28773+ { test "$prefer_static_libs" = yes ||
28774+ test "$prefer_static_libs,$installed" = "built,no"; }; then
28775+ linklib=$old_library
28776+ else
28777+ for l in $old_library $library_names; do
28778+ linklib="$l"
28779+ done
28780+ fi
28781 if test -z "$linklib"; then
28782 func_fatal_error "cannot find name of link library for \`$lib'"
28783 fi
28784@@ -5598,9 +6481,9 @@ func_mode_link ()
28785 # statically, we need to preload. We also need to preload any
28786 # dependent libraries so libltdl's deplib preloader doesn't
28787 # bomb out in the load deplibs phase.
28788- dlprefiles="$dlprefiles $lib $dependency_libs"
28789+ func_append dlprefiles " $lib $dependency_libs"
28790 else
28791- newdlfiles="$newdlfiles $lib"
28792+ func_append newdlfiles " $lib"
28793 fi
28794 continue
28795 fi # $pass = dlopen
28796@@ -5622,14 +6505,14 @@ func_mode_link ()
28797
28798 # Find the relevant object directory and library name.
28799 if test "X$installed" = Xyes; then
28800- if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
28801+ if test ! -f "$lt_sysroot$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
28802 func_warning "library \`$lib' was moved."
28803 dir="$ladir"
28804 absdir="$abs_ladir"
28805 libdir="$abs_ladir"
28806 else
28807- dir="$libdir"
28808- absdir="$libdir"
28809+ dir="$lt_sysroot$libdir"
28810+ absdir="$lt_sysroot$libdir"
28811 fi
28812 test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
28813 else
28814@@ -5637,12 +6520,12 @@ func_mode_link ()
28815 dir="$ladir"
28816 absdir="$abs_ladir"
28817 # Remove this search path later
28818- notinst_path="$notinst_path $abs_ladir"
28819+ func_append notinst_path " $abs_ladir"
28820 else
28821 dir="$ladir/$objdir"
28822 absdir="$abs_ladir/$objdir"
28823 # Remove this search path later
28824- notinst_path="$notinst_path $abs_ladir"
28825+ func_append notinst_path " $abs_ladir"
28826 fi
28827 fi # $installed = yes
28828 func_stripname 'lib' '.la' "$laname"
28829@@ -5653,20 +6536,46 @@ func_mode_link ()
28830 if test -z "$libdir" && test "$linkmode" = prog; then
28831 func_fatal_error "only libraries may -dlpreopen a convenience library: \`$lib'"
28832 fi
28833- # Prefer using a static library (so that no silly _DYNAMIC symbols
28834- # are required to link).
28835- if test -n "$old_library"; then
28836- newdlprefiles="$newdlprefiles $dir/$old_library"
28837- # Keep a list of preopened convenience libraries to check
28838- # that they are being used correctly in the link pass.
28839- test -z "$libdir" && \
28840- dlpreconveniencelibs="$dlpreconveniencelibs $dir/$old_library"
28841- # Otherwise, use the dlname, so that lt_dlopen finds it.
28842- elif test -n "$dlname"; then
28843- newdlprefiles="$newdlprefiles $dir/$dlname"
28844- else
28845- newdlprefiles="$newdlprefiles $dir/$linklib"
28846- fi
28847+ case "$host" in
28848+ # special handling for platforms with PE-DLLs.
28849+ *cygwin* | *mingw* | *cegcc* )
28850+ # Linker will automatically link against shared library if both
28851+ # static and shared are present. Therefore, ensure we extract
28852+ # symbols from the import library if a shared library is present
28853+ # (otherwise, the dlopen module name will be incorrect). We do
28854+ # this by putting the import library name into $newdlprefiles.
28855+ # We recover the dlopen module name by 'saving' the la file
28856+ # name in a special purpose variable, and (later) extracting the
28857+ # dlname from the la file.
28858+ if test -n "$dlname"; then
28859+ func_tr_sh "$dir/$linklib"
28860+ eval "libfile_$func_tr_sh_result=\$abs_ladir/\$laname"
28861+ func_append newdlprefiles " $dir/$linklib"
28862+ else
28863+ func_append newdlprefiles " $dir/$old_library"
28864+ # Keep a list of preopened convenience libraries to check
28865+ # that they are being used correctly in the link pass.
28866+ test -z "$libdir" && \
28867+ func_append dlpreconveniencelibs " $dir/$old_library"
28868+ fi
28869+ ;;
28870+ * )
28871+ # Prefer using a static library (so that no silly _DYNAMIC symbols
28872+ # are required to link).
28873+ if test -n "$old_library"; then
28874+ func_append newdlprefiles " $dir/$old_library"
28875+ # Keep a list of preopened convenience libraries to check
28876+ # that they are being used correctly in the link pass.
28877+ test -z "$libdir" && \
28878+ func_append dlpreconveniencelibs " $dir/$old_library"
28879+ # Otherwise, use the dlname, so that lt_dlopen finds it.
28880+ elif test -n "$dlname"; then
28881+ func_append newdlprefiles " $dir/$dlname"
28882+ else
28883+ func_append newdlprefiles " $dir/$linklib"
28884+ fi
28885+ ;;
28886+ esac
28887 fi # $pass = dlpreopen
28888
28889 if test -z "$libdir"; then
28890@@ -5684,7 +6593,7 @@ func_mode_link ()
28891
28892
28893 if test "$linkmode" = prog && test "$pass" != link; then
28894- newlib_search_path="$newlib_search_path $ladir"
28895+ func_append newlib_search_path " $ladir"
28896 deplibs="$lib $deplibs"
28897
28898 linkalldeplibs=no
28899@@ -5697,7 +6606,8 @@ func_mode_link ()
28900 for deplib in $dependency_libs; do
28901 case $deplib in
28902 -L*) func_stripname '-L' '' "$deplib"
28903- newlib_search_path="$newlib_search_path $func_stripname_result"
28904+ func_resolve_sysroot "$func_stripname_result"
28905+ func_append newlib_search_path " $func_resolve_sysroot_result"
28906 ;;
28907 esac
28908 # Need to link against all dependency_libs?
28909@@ -5708,12 +6618,12 @@ func_mode_link ()
28910 # or/and link against static libraries
28911 newdependency_libs="$deplib $newdependency_libs"
28912 fi
28913- if $opt_duplicate_deps ; then
28914+ if $opt_preserve_dup_deps ; then
28915 case "$tmp_libs " in
28916- *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
28917+ *" $deplib "*) func_append specialdeplibs " $deplib" ;;
28918 esac
28919 fi
28920- tmp_libs="$tmp_libs $deplib"
28921+ func_append tmp_libs " $deplib"
28922 done # for deplib
28923 continue
28924 fi # $linkmode = prog...
28925@@ -5728,7 +6638,7 @@ func_mode_link ()
28926 # Make sure the rpath contains only unique directories.
28927 case "$temp_rpath:" in
28928 *"$absdir:"*) ;;
28929- *) temp_rpath="$temp_rpath$absdir:" ;;
28930+ *) func_append temp_rpath "$absdir:" ;;
28931 esac
28932 fi
28933
28934@@ -5740,7 +6650,7 @@ func_mode_link ()
28935 *)
28936 case "$compile_rpath " in
28937 *" $absdir "*) ;;
28938- *) compile_rpath="$compile_rpath $absdir"
28939+ *) func_append compile_rpath " $absdir" ;;
28940 esac
28941 ;;
28942 esac
28943@@ -5749,7 +6659,7 @@ func_mode_link ()
28944 *)
28945 case "$finalize_rpath " in
28946 *" $libdir "*) ;;
28947- *) finalize_rpath="$finalize_rpath $libdir"
28948+ *) func_append finalize_rpath " $libdir" ;;
28949 esac
28950 ;;
28951 esac
28952@@ -5774,12 +6684,12 @@ func_mode_link ()
28953 case $host in
28954 *cygwin* | *mingw* | *cegcc*)
28955 # No point in relinking DLLs because paths are not encoded
28956- notinst_deplibs="$notinst_deplibs $lib"
28957+ func_append notinst_deplibs " $lib"
28958 need_relink=no
28959 ;;
28960 *)
28961 if test "$installed" = no; then
28962- notinst_deplibs="$notinst_deplibs $lib"
28963+ func_append notinst_deplibs " $lib"
28964 need_relink=yes
28965 fi
28966 ;;
28967@@ -5814,7 +6724,7 @@ func_mode_link ()
28968 *)
28969 case "$compile_rpath " in
28970 *" $absdir "*) ;;
28971- *) compile_rpath="$compile_rpath $absdir"
28972+ *) func_append compile_rpath " $absdir" ;;
28973 esac
28974 ;;
28975 esac
28976@@ -5823,7 +6733,7 @@ func_mode_link ()
28977 *)
28978 case "$finalize_rpath " in
28979 *" $libdir "*) ;;
28980- *) finalize_rpath="$finalize_rpath $libdir"
28981+ *) func_append finalize_rpath " $libdir" ;;
28982 esac
28983 ;;
28984 esac
28985@@ -5835,7 +6745,7 @@ func_mode_link ()
28986 shift
28987 realname="$1"
28988 shift
28989- eval "libname=\"$libname_spec\""
28990+ libname=`eval "\\$ECHO \"$libname_spec\""`
28991 # use dlname if we got it. it's perfectly good, no?
28992 if test -n "$dlname"; then
28993 soname="$dlname"
28994@@ -5848,7 +6758,7 @@ func_mode_link ()
28995 versuffix="-$major"
28996 ;;
28997 esac
28998- eval "soname=\"$soname_spec\""
28999+ eval soname=\"$soname_spec\"
29000 else
29001 soname="$realname"
29002 fi
29003@@ -5877,7 +6787,7 @@ func_mode_link ()
29004 linklib=$newlib
29005 fi # test -n "$old_archive_from_expsyms_cmds"
29006
29007- if test "$linkmode" = prog || test "$mode" != relink; then
29008+ if test "$linkmode" = prog || test "$opt_mode" != relink; then
29009 add_shlibpath=
29010 add_dir=
29011 add=
29012@@ -5933,7 +6843,7 @@ func_mode_link ()
29013 if test -n "$inst_prefix_dir"; then
29014 case $libdir in
29015 [\\/]*)
29016- add_dir="$add_dir -L$inst_prefix_dir$libdir"
29017+ func_append add_dir " -L$inst_prefix_dir$libdir"
29018 ;;
29019 esac
29020 fi
29021@@ -5955,7 +6865,7 @@ func_mode_link ()
29022 if test -n "$add_shlibpath"; then
29023 case :$compile_shlibpath: in
29024 *":$add_shlibpath:"*) ;;
29025- *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;;
29026+ *) func_append compile_shlibpath "$add_shlibpath:" ;;
29027 esac
29028 fi
29029 if test "$linkmode" = prog; then
29030@@ -5969,13 +6879,13 @@ func_mode_link ()
29031 test "$hardcode_shlibpath_var" = yes; then
29032 case :$finalize_shlibpath: in
29033 *":$libdir:"*) ;;
29034- *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
29035+ *) func_append finalize_shlibpath "$libdir:" ;;
29036 esac
29037 fi
29038 fi
29039 fi
29040
29041- if test "$linkmode" = prog || test "$mode" = relink; then
29042+ if test "$linkmode" = prog || test "$opt_mode" = relink; then
29043 add_shlibpath=
29044 add_dir=
29045 add=
29046@@ -5989,7 +6899,7 @@ func_mode_link ()
29047 elif test "$hardcode_shlibpath_var" = yes; then
29048 case :$finalize_shlibpath: in
29049 *":$libdir:"*) ;;
29050- *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
29051+ *) func_append finalize_shlibpath "$libdir:" ;;
29052 esac
29053 add="-l$name"
29054 elif test "$hardcode_automatic" = yes; then
29055@@ -6001,12 +6911,12 @@ func_mode_link ()
29056 fi
29057 else
29058 # We cannot seem to hardcode it, guess we'll fake it.
29059- add_dir="-L$libdir"
29060+ add_dir="-L$lt_sysroot$libdir"
29061 # Try looking first in the location we're being installed to.
29062 if test -n "$inst_prefix_dir"; then
29063 case $libdir in
29064 [\\/]*)
29065- add_dir="$add_dir -L$inst_prefix_dir$libdir"
29066+ func_append add_dir " -L$inst_prefix_dir$libdir"
29067 ;;
29068 esac
29069 fi
29070@@ -6083,27 +6993,33 @@ func_mode_link ()
29071 temp_xrpath=$func_stripname_result
29072 case " $xrpath " in
29073 *" $temp_xrpath "*) ;;
29074- *) xrpath="$xrpath $temp_xrpath";;
29075+ *) func_append xrpath " $temp_xrpath";;
29076 esac;;
29077- *) temp_deplibs="$temp_deplibs $libdir";;
29078+ *) func_append temp_deplibs " $libdir";;
29079 esac
29080 done
29081 dependency_libs="$temp_deplibs"
29082 fi
29083
29084- newlib_search_path="$newlib_search_path $absdir"
29085+ func_append newlib_search_path " $absdir"
29086 # Link against this library
29087 test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
29088 # ... and its dependency_libs
29089 tmp_libs=
29090 for deplib in $dependency_libs; do
29091 newdependency_libs="$deplib $newdependency_libs"
29092- if $opt_duplicate_deps ; then
29093+ case $deplib in
29094+ -L*) func_stripname '-L' '' "$deplib"
29095+ func_resolve_sysroot "$func_stripname_result";;
29096+ *) func_resolve_sysroot "$deplib" ;;
29097+ esac
29098+ if $opt_preserve_dup_deps ; then
29099 case "$tmp_libs " in
29100- *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
29101+ *" $func_resolve_sysroot_result "*)
29102+ func_append specialdeplibs " $func_resolve_sysroot_result" ;;
29103 esac
29104 fi
29105- tmp_libs="$tmp_libs $deplib"
29106+ func_append tmp_libs " $func_resolve_sysroot_result"
29107 done
29108
29109 if test "$link_all_deplibs" != no; then
29110@@ -6113,8 +7029,10 @@ func_mode_link ()
29111 case $deplib in
29112 -L*) path="$deplib" ;;
29113 *.la)
29114+ func_resolve_sysroot "$deplib"
29115+ deplib=$func_resolve_sysroot_result
29116 func_dirname "$deplib" "" "."
29117- dir="$func_dirname_result"
29118+ dir=$func_dirname_result
29119 # We need an absolute path.
29120 case $dir in
29121 [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;
29122@@ -6130,7 +7048,7 @@ func_mode_link ()
29123 case $host in
29124 *-*-darwin*)
29125 depdepl=
29126- deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
29127+ eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
29128 if test -n "$deplibrary_names" ; then
29129 for tmp in $deplibrary_names ; do
29130 depdepl=$tmp
29131@@ -6141,8 +7059,8 @@ func_mode_link ()
29132 if test -z "$darwin_install_name"; then
29133 darwin_install_name=`${OTOOL64} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
29134 fi
29135- compiler_flags="$compiler_flags ${wl}-dylib_file ${wl}${darwin_install_name}:${depdepl}"
29136- linker_flags="$linker_flags -dylib_file ${darwin_install_name}:${depdepl}"
29137+ func_append compiler_flags " ${wl}-dylib_file ${wl}${darwin_install_name}:${depdepl}"
29138+ func_append linker_flags " -dylib_file ${darwin_install_name}:${depdepl}"
29139 path=
29140 fi
29141 fi
29142@@ -6152,7 +7070,7 @@ func_mode_link ()
29143 ;;
29144 esac
29145 else
29146- libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
29147+ eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
29148 test -z "$libdir" && \
29149 func_fatal_error "\`$deplib' is not a valid libtool archive"
29150 test "$absdir" != "$libdir" && \
29151@@ -6192,7 +7110,7 @@ func_mode_link ()
29152 for dir in $newlib_search_path; do
29153 case "$lib_search_path " in
29154 *" $dir "*) ;;
29155- *) lib_search_path="$lib_search_path $dir" ;;
29156+ *) func_append lib_search_path " $dir" ;;
29157 esac
29158 done
29159 newlib_search_path=
29160@@ -6205,7 +7123,7 @@ func_mode_link ()
29161 fi
29162 for var in $vars dependency_libs; do
29163 # Add libraries to $var in reverse order
29164- eval tmp_libs=\$$var
29165+ eval tmp_libs=\"\$$var\"
29166 new_libs=
29167 for deplib in $tmp_libs; do
29168 # FIXME: Pedantically, this is the right thing to do, so
29169@@ -6250,13 +7168,13 @@ func_mode_link ()
29170 -L*)
29171 case " $tmp_libs " in
29172 *" $deplib "*) ;;
29173- *) tmp_libs="$tmp_libs $deplib" ;;
29174+ *) func_append tmp_libs " $deplib" ;;
29175 esac
29176 ;;
29177- *) tmp_libs="$tmp_libs $deplib" ;;
29178+ *) func_append tmp_libs " $deplib" ;;
29179 esac
29180 done
29181- eval $var=\$tmp_libs
29182+ eval $var=\"$tmp_libs\"
29183 done # for var
29184 fi
29185 # Last step: remove runtime libs from dependency_libs
29186@@ -6269,7 +7187,7 @@ func_mode_link ()
29187 ;;
29188 esac
29189 if test -n "$i" ; then
29190- tmp_libs="$tmp_libs $i"
29191+ func_append tmp_libs " $i"
29192 fi
29193 done
29194 dependency_libs=$tmp_libs
29195@@ -6310,7 +7228,7 @@ func_mode_link ()
29196 # Now set the variables for building old libraries.
29197 build_libtool_libs=no
29198 oldlibs="$output"
29199- objs="$objs$old_deplibs"
29200+ func_append objs "$old_deplibs"
29201 ;;
29202
29203 lib)
29204@@ -6319,8 +7237,8 @@ func_mode_link ()
29205 lib*)
29206 func_stripname 'lib' '.la' "$outputname"
29207 name=$func_stripname_result
29208- eval "shared_ext=\"$shrext_cmds\""
29209- eval "libname=\"$libname_spec\""
29210+ eval shared_ext=\"$shrext_cmds\"
29211+ eval libname=\"$libname_spec\"
29212 ;;
29213 *)
29214 test "$module" = no && \
29215@@ -6330,8 +7248,8 @@ func_mode_link ()
29216 # Add the "lib" prefix for modules if required
29217 func_stripname '' '.la' "$outputname"
29218 name=$func_stripname_result
29219- eval "shared_ext=\"$shrext_cmds\""
29220- eval "libname=\"$libname_spec\""
29221+ eval shared_ext=\"$shrext_cmds\"
29222+ eval libname=\"$libname_spec\"
29223 else
29224 func_stripname '' '.la' "$outputname"
29225 libname=$func_stripname_result
29226@@ -6346,7 +7264,7 @@ func_mode_link ()
29227 echo
29228 $ECHO "*** Warning: Linking the shared library $output against the non-libtool"
29229 $ECHO "*** objects $objs is not portable!"
29230- libobjs="$libobjs $objs"
29231+ func_append libobjs " $objs"
29232 fi
29233 fi
29234
29235@@ -6544,7 +7462,7 @@ func_mode_link ()
29236 done
29237
29238 # Make executables depend on our current version.
29239- verstring="$verstring:${current}.0"
29240+ func_append verstring ":${current}.0"
29241 ;;
29242
29243 qnx)
29244@@ -6612,10 +7530,10 @@ func_mode_link ()
29245 fi
29246
29247 func_generate_dlsyms "$libname" "$libname" "yes"
29248- libobjs="$libobjs $symfileobj"
29249+ func_append libobjs " $symfileobj"
29250 test "X$libobjs" = "X " && libobjs=
29251
29252- if test "$mode" != relink; then
29253+ if test "$opt_mode" != relink; then
29254 # Remove our outputs, but don't remove object files since they
29255 # may have been created when compiling PIC objects.
29256 removelist=
29257@@ -6631,7 +7549,7 @@ func_mode_link ()
29258 continue
29259 fi
29260 fi
29261- removelist="$removelist $p"
29262+ func_append removelist " $p"
29263 ;;
29264 *) ;;
29265 esac
29266@@ -6642,7 +7560,7 @@ func_mode_link ()
29267
29268 # Now set the variables for building old libraries.
29269 if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then
29270- oldlibs="$oldlibs $output_objdir/$libname.$libext"
29271+ func_append oldlibs " $output_objdir/$libname.$libext"
29272
29273 # Transform .lo files to .o files.
29274 oldobjs="$objs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.${libext}$/d; $lo2o" | $NL2SP`
29275@@ -6659,10 +7577,11 @@ func_mode_link ()
29276 # If the user specified any rpath flags, then add them.
29277 temp_xrpath=
29278 for libdir in $xrpath; do
29279- temp_xrpath="$temp_xrpath -R$libdir"
29280+ func_replace_sysroot "$libdir"
29281+ func_append temp_xrpath " -R$func_replace_sysroot_result"
29282 case "$finalize_rpath " in
29283 *" $libdir "*) ;;
29284- *) finalize_rpath="$finalize_rpath $libdir" ;;
29285+ *) func_append finalize_rpath " $libdir" ;;
29286 esac
29287 done
29288 if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then
29289@@ -6676,7 +7595,7 @@ func_mode_link ()
29290 for lib in $old_dlfiles; do
29291 case " $dlprefiles $dlfiles " in
29292 *" $lib "*) ;;
29293- *) dlfiles="$dlfiles $lib" ;;
29294+ *) func_append dlfiles " $lib" ;;
29295 esac
29296 done
29297
29298@@ -6686,7 +7605,7 @@ func_mode_link ()
29299 for lib in $old_dlprefiles; do
29300 case "$dlprefiles " in
29301 *" $lib "*) ;;
29302- *) dlprefiles="$dlprefiles $lib" ;;
29303+ *) func_append dlprefiles " $lib" ;;
29304 esac
29305 done
29306
29307@@ -6698,7 +7617,7 @@ func_mode_link ()
29308 ;;
29309 *-*-rhapsody* | *-*-darwin1.[012])
29310 # Rhapsody C library is in the System framework
29311- deplibs="$deplibs System.ltframework"
29312+ func_append deplibs " System.ltframework"
29313 ;;
29314 *-*-netbsd*)
29315 # Don't link with libc until the a.out ld.so is fixed.
29316@@ -6715,7 +7634,7 @@ func_mode_link ()
29317 *)
29318 # Add libc to deplibs on all other systems if necessary.
29319 if test "$build_libtool_need_lc" = "yes"; then
29320- deplibs="$deplibs -lc"
29321+ func_append deplibs " -lc"
29322 fi
29323 ;;
29324 esac
29325@@ -6764,18 +7683,18 @@ EOF
29326 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
29327 case " $predeps $postdeps " in
29328 *" $i "*)
29329- newdeplibs="$newdeplibs $i"
29330+ func_append newdeplibs " $i"
29331 i=""
29332 ;;
29333 esac
29334 fi
29335 if test -n "$i" ; then
29336- eval "libname=\"$libname_spec\""
29337- eval "deplib_matches=\"$library_names_spec\""
29338+ libname=`eval "\\$ECHO \"$libname_spec\""`
29339+ deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
29340 set dummy $deplib_matches; shift
29341 deplib_match=$1
29342 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
29343- newdeplibs="$newdeplibs $i"
29344+ func_append newdeplibs " $i"
29345 else
29346 droppeddeps=yes
29347 echo
29348@@ -6789,7 +7708,7 @@ EOF
29349 fi
29350 ;;
29351 *)
29352- newdeplibs="$newdeplibs $i"
29353+ func_append newdeplibs " $i"
29354 ;;
29355 esac
29356 done
29357@@ -6807,18 +7726,18 @@ EOF
29358 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
29359 case " $predeps $postdeps " in
29360 *" $i "*)
29361- newdeplibs="$newdeplibs $i"
29362+ func_append newdeplibs " $i"
29363 i=""
29364 ;;
29365 esac
29366 fi
29367 if test -n "$i" ; then
29368- eval "libname=\"$libname_spec\""
29369- eval "deplib_matches=\"$library_names_spec\""
29370+ libname=`eval "\\$ECHO \"$libname_spec\""`
29371+ deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
29372 set dummy $deplib_matches; shift
29373 deplib_match=$1
29374 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
29375- newdeplibs="$newdeplibs $i"
29376+ func_append newdeplibs " $i"
29377 else
29378 droppeddeps=yes
29379 echo
29380@@ -6840,7 +7759,7 @@ EOF
29381 fi
29382 ;;
29383 *)
29384- newdeplibs="$newdeplibs $i"
29385+ func_append newdeplibs " $i"
29386 ;;
29387 esac
29388 done
29389@@ -6857,15 +7776,27 @@ EOF
29390 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
29391 case " $predeps $postdeps " in
29392 *" $a_deplib "*)
29393- newdeplibs="$newdeplibs $a_deplib"
29394+ func_append newdeplibs " $a_deplib"
29395 a_deplib=""
29396 ;;
29397 esac
29398 fi
29399 if test -n "$a_deplib" ; then
29400- eval "libname=\"$libname_spec\""
29401+ libname=`eval "\\$ECHO \"$libname_spec\""`
29402+ if test -n "$file_magic_glob"; then
29403+ libnameglob=`func_echo_all "$libname" | $SED -e $file_magic_glob`
29404+ else
29405+ libnameglob=$libname
29406+ fi
29407+ test "$want_nocaseglob" = yes && nocaseglob=`shopt -p nocaseglob`
29408 for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
29409- potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
29410+ if test "$want_nocaseglob" = yes; then
29411+ shopt -s nocaseglob
29412+ potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null`
29413+ $nocaseglob
29414+ else
29415+ potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null`
29416+ fi
29417 for potent_lib in $potential_libs; do
29418 # Follow soft links.
29419 if ls -lLd "$potent_lib" 2>/dev/null |
29420@@ -6885,10 +7816,10 @@ EOF
29421 *) potlib=`$ECHO "$potlib" | $SED 's,[^/]*$,,'`"$potliblink";;
29422 esac
29423 done
29424- if eval "$file_magic_cmd \"\$potlib\"" 2>/dev/null |
29425+ if eval $file_magic_cmd \"\$potlib\" 2>/dev/null |
29426 $SED -e 10q |
29427 $EGREP "$file_magic_regex" > /dev/null; then
29428- newdeplibs="$newdeplibs $a_deplib"
29429+ func_append newdeplibs " $a_deplib"
29430 a_deplib=""
29431 break 2
29432 fi
29433@@ -6913,7 +7844,7 @@ EOF
29434 ;;
29435 *)
29436 # Add a -L argument.
29437- newdeplibs="$newdeplibs $a_deplib"
29438+ func_append newdeplibs " $a_deplib"
29439 ;;
29440 esac
29441 done # Gone through all deplibs.
29442@@ -6929,20 +7860,20 @@ EOF
29443 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
29444 case " $predeps $postdeps " in
29445 *" $a_deplib "*)
29446- newdeplibs="$newdeplibs $a_deplib"
29447+ func_append newdeplibs " $a_deplib"
29448 a_deplib=""
29449 ;;
29450 esac
29451 fi
29452 if test -n "$a_deplib" ; then
29453- eval "libname=\"$libname_spec\""
29454+ libname=`eval "\\$ECHO \"$libname_spec\""`
29455 for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
29456 potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
29457 for potent_lib in $potential_libs; do
29458 potlib="$potent_lib" # see symlink-check above in file_magic test
29459 if eval "\$ECHO \"$potent_lib\"" 2>/dev/null | $SED 10q | \
29460 $EGREP "$match_pattern_regex" > /dev/null; then
29461- newdeplibs="$newdeplibs $a_deplib"
29462+ func_append newdeplibs " $a_deplib"
29463 a_deplib=""
29464 break 2
29465 fi
29466@@ -6967,7 +7898,7 @@ EOF
29467 ;;
29468 *)
29469 # Add a -L argument.
29470- newdeplibs="$newdeplibs $a_deplib"
29471+ func_append newdeplibs " $a_deplib"
29472 ;;
29473 esac
29474 done # Gone through all deplibs.
29475@@ -7071,7 +8002,7 @@ EOF
29476 *)
29477 case " $deplibs " in
29478 *" -L$path/$objdir "*)
29479- new_libs="$new_libs -L$path/$objdir" ;;
29480+ func_append new_libs " -L$path/$objdir" ;;
29481 esac
29482 ;;
29483 esac
29484@@ -7081,10 +8012,10 @@ EOF
29485 -L*)
29486 case " $new_libs " in
29487 *" $deplib "*) ;;
29488- *) new_libs="$new_libs $deplib" ;;
29489+ *) func_append new_libs " $deplib" ;;
29490 esac
29491 ;;
29492- *) new_libs="$new_libs $deplib" ;;
29493+ *) func_append new_libs " $deplib" ;;
29494 esac
29495 done
29496 deplibs="$new_libs"
29497@@ -7101,10 +8032,12 @@ EOF
29498 hardcode_libdirs=
29499 dep_rpath=
29500 rpath="$finalize_rpath"
29501- test "$mode" != relink && rpath="$compile_rpath$rpath"
29502+ test "$opt_mode" != relink && rpath="$compile_rpath$rpath"
29503 for libdir in $rpath; do
29504 if test -n "$hardcode_libdir_flag_spec"; then
29505 if test -n "$hardcode_libdir_separator"; then
29506+ func_replace_sysroot "$libdir"
29507+ libdir=$func_replace_sysroot_result
29508 if test -z "$hardcode_libdirs"; then
29509 hardcode_libdirs="$libdir"
29510 else
29511@@ -7113,18 +8046,18 @@ EOF
29512 *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
29513 ;;
29514 *)
29515- hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
29516+ func_append hardcode_libdirs "$hardcode_libdir_separator$libdir"
29517 ;;
29518 esac
29519 fi
29520 else
29521- eval "flag=\"$hardcode_libdir_flag_spec\""
29522- dep_rpath="$dep_rpath $flag"
29523+ eval flag=\"$hardcode_libdir_flag_spec\"
29524+ func_append dep_rpath " $flag"
29525 fi
29526 elif test -n "$runpath_var"; then
29527 case "$perm_rpath " in
29528 *" $libdir "*) ;;
29529- *) perm_rpath="$perm_rpath $libdir" ;;
29530+ *) func_apped perm_rpath " $libdir" ;;
29531 esac
29532 fi
29533 done
29534@@ -7133,40 +8066,38 @@ EOF
29535 test -n "$hardcode_libdirs"; then
29536 libdir="$hardcode_libdirs"
29537 if test -n "$hardcode_libdir_flag_spec_ld"; then
29538- eval "dep_rpath=\"$hardcode_libdir_flag_spec_ld\""
29539+ eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\"
29540 else
29541- eval "dep_rpath=\"$hardcode_libdir_flag_spec\""
29542+ eval dep_rpath=\"$hardcode_libdir_flag_spec\"
29543 fi
29544 fi
29545 if test -n "$runpath_var" && test -n "$perm_rpath"; then
29546 # We should set the runpath_var.
29547 rpath=
29548 for dir in $perm_rpath; do
29549- rpath="$rpath$dir:"
29550+ func_append rpath "$dir:"
29551 done
29552- eval $runpath_var=\$rpath\$$runpath_var
29553- export $runpath_var
29554+ eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var"
29555 fi
29556 test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs"
29557 fi
29558
29559 shlibpath="$finalize_shlibpath"
29560- test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
29561+ test "$opt_mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
29562 if test -n "$shlibpath"; then
29563- eval $shlibpath_var=\$shlibpath\$$shlibpath_var
29564- export $shlibpath_var
29565+ eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var"
29566 fi
29567
29568 # Get the real and link names of the library.
29569- eval "shared_ext=\"$shrext_cmds\""
29570- eval "library_names=\"$library_names_spec\""
29571+ eval shared_ext=\"$shrext_cmds\"
29572+ eval library_names=\"$library_names_spec\"
29573 set dummy $library_names
29574 shift
29575 realname="$1"
29576 shift
29577
29578 if test -n "$soname_spec"; then
29579- eval "soname=\"$soname_spec\""
29580+ eval soname=\"$soname_spec\"
29581 else
29582 soname="$realname"
29583 fi
29584@@ -7178,7 +8109,7 @@ EOF
29585 linknames=
29586 for link
29587 do
29588- linknames="$linknames $link"
29589+ func_append linknames " $link"
29590 done
29591
29592 # Use standard objects if they are pic
29593@@ -7189,7 +8120,7 @@ EOF
29594 if test -n "$export_symbols" && test -n "$include_expsyms"; then
29595 $opt_dry_run || cp "$export_symbols" "$output_objdir/$libname.uexp"
29596 export_symbols="$output_objdir/$libname.uexp"
29597- delfiles="$delfiles $export_symbols"
29598+ func_append delfiles " $export_symbols"
29599 fi
29600
29601 orig_export_symbols=
29602@@ -7220,13 +8151,45 @@ EOF
29603 $opt_dry_run || $RM $export_symbols
29604 cmds=$export_symbols_cmds
29605 save_ifs="$IFS"; IFS='~'
29606- for cmd in $cmds; do
29607+ for cmd1 in $cmds; do
29608 IFS="$save_ifs"
29609- eval "cmd=\"$cmd\""
29610- func_len " $cmd"
29611- len=$func_len_result
29612- if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
29613+ # Take the normal branch if the nm_file_list_spec branch
29614+ # doesn't work or if tool conversion is not needed.
29615+ case $nm_file_list_spec~$to_tool_file_cmd in
29616+ *~func_convert_file_noop | *~func_convert_file_msys_to_w32 | ~*)
29617+ try_normal_branch=yes
29618+ eval cmd=\"$cmd1\"
29619+ func_len " $cmd"
29620+ len=$func_len_result
29621+ ;;
29622+ *)
29623+ try_normal_branch=no
29624+ ;;
29625+ esac
29626+ if test "$try_normal_branch" = yes \
29627+ && { test "$len" -lt "$max_cmd_len" \
29628+ || test "$max_cmd_len" -le -1; }
29629+ then
29630+ func_show_eval "$cmd" 'exit $?'
29631+ skipped_export=false
29632+ elif test -n "$nm_file_list_spec"; then
29633+ func_basename "$output"
29634+ output_la=$func_basename_result
29635+ save_libobjs=$libobjs
29636+ save_output=$output
29637+ output=${output_objdir}/${output_la}.nm
29638+ func_to_tool_file "$output"
29639+ libobjs=$nm_file_list_spec$func_to_tool_file_result
29640+ func_append delfiles " $output"
29641+ func_verbose "creating $NM input file list: $output"
29642+ for obj in $save_libobjs; do
29643+ func_to_tool_file "$obj"
29644+ $ECHO "$func_to_tool_file_result"
29645+ done > "$output"
29646+ eval cmd=\"$cmd1\"
29647 func_show_eval "$cmd" 'exit $?'
29648+ output=$save_output
29649+ libobjs=$save_libobjs
29650 skipped_export=false
29651 else
29652 # The command line is too long to execute in one step.
29653@@ -7248,7 +8211,7 @@ EOF
29654 if test -n "$export_symbols" && test -n "$include_expsyms"; then
29655 tmp_export_symbols="$export_symbols"
29656 test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
29657- $opt_dry_run || $ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"
29658+ $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"'
29659 fi
29660
29661 if test "X$skipped_export" != "X:" && test -n "$orig_export_symbols"; then
29662@@ -7260,7 +8223,7 @@ EOF
29663 # global variables. join(1) would be nice here, but unfortunately
29664 # isn't a blessed tool.
29665 $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
29666- delfiles="$delfiles $export_symbols $output_objdir/$libname.filter"
29667+ func_append delfiles " $export_symbols $output_objdir/$libname.filter"
29668 export_symbols=$output_objdir/$libname.def
29669 $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
29670 fi
29671@@ -7270,7 +8233,7 @@ EOF
29672 case " $convenience " in
29673 *" $test_deplib "*) ;;
29674 *)
29675- tmp_deplibs="$tmp_deplibs $test_deplib"
29676+ func_append tmp_deplibs " $test_deplib"
29677 ;;
29678 esac
29679 done
29680@@ -7286,43 +8249,43 @@ EOF
29681 fi
29682 if test -n "$whole_archive_flag_spec"; then
29683 save_libobjs=$libobjs
29684- eval "libobjs=\"\$libobjs $whole_archive_flag_spec\""
29685+ eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
29686 test "X$libobjs" = "X " && libobjs=
29687 else
29688 gentop="$output_objdir/${outputname}x"
29689- generated="$generated $gentop"
29690+ func_append generated " $gentop"
29691
29692 func_extract_archives $gentop $convenience
29693- libobjs="$libobjs $func_extract_archives_result"
29694+ func_append libobjs " $func_extract_archives_result"
29695 test "X$libobjs" = "X " && libobjs=
29696 fi
29697 fi
29698
29699 if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
29700- eval "flag=\"$thread_safe_flag_spec\""
29701- linker_flags="$linker_flags $flag"
29702+ eval flag=\"$thread_safe_flag_spec\"
29703+ func_append linker_flags " $flag"
29704 fi
29705
29706 # Make a backup of the uninstalled library when relinking
29707- if test "$mode" = relink; then
29708- $opt_dry_run || (cd $output_objdir && $RM ${realname}U && $MV $realname ${realname}U) || exit $?
29709+ if test "$opt_mode" = relink; then
29710+ $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}U && $MV $realname ${realname}U)' || exit $?
29711 fi
29712
29713 # Do each of the archive commands.
29714 if test "$module" = yes && test -n "$module_cmds" ; then
29715 if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
29716- eval "test_cmds=\"$module_expsym_cmds\""
29717+ eval test_cmds=\"$module_expsym_cmds\"
29718 cmds=$module_expsym_cmds
29719 else
29720- eval "test_cmds=\"$module_cmds\""
29721+ eval test_cmds=\"$module_cmds\"
29722 cmds=$module_cmds
29723 fi
29724 else
29725 if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
29726- eval "test_cmds=\"$archive_expsym_cmds\""
29727+ eval test_cmds=\"$archive_expsym_cmds\"
29728 cmds=$archive_expsym_cmds
29729 else
29730- eval "test_cmds=\"$archive_cmds\""
29731+ eval test_cmds=\"$archive_cmds\"
29732 cmds=$archive_cmds
29733 fi
29734 fi
29735@@ -7366,10 +8329,13 @@ EOF
29736 echo 'INPUT (' > $output
29737 for obj in $save_libobjs
29738 do
29739- $ECHO "$obj" >> $output
29740+ func_to_tool_file "$obj"
29741+ $ECHO "$func_to_tool_file_result" >> $output
29742 done
29743 echo ')' >> $output
29744- delfiles="$delfiles $output"
29745+ func_append delfiles " $output"
29746+ func_to_tool_file "$output"
29747+ output=$func_to_tool_file_result
29748 elif test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "X$file_list_spec" != X; then
29749 output=${output_objdir}/${output_la}.lnk
29750 func_verbose "creating linker input file list: $output"
29751@@ -7383,15 +8349,17 @@ EOF
29752 fi
29753 for obj
29754 do
29755- $ECHO "$obj" >> $output
29756+ func_to_tool_file "$obj"
29757+ $ECHO "$func_to_tool_file_result" >> $output
29758 done
29759- delfiles="$delfiles $output"
29760- output=$firstobj\"$file_list_spec$output\"
29761+ func_append delfiles " $output"
29762+ func_to_tool_file "$output"
29763+ output=$firstobj\"$file_list_spec$func_to_tool_file_result\"
29764 else
29765 if test -n "$save_libobjs"; then
29766 func_verbose "creating reloadable object files..."
29767 output=$output_objdir/$output_la-${k}.$objext
29768- eval "test_cmds=\"$reload_cmds\""
29769+ eval test_cmds=\"$reload_cmds\"
29770 func_len " $test_cmds"
29771 len0=$func_len_result
29772 len=$len0
29773@@ -7411,12 +8379,12 @@ EOF
29774 if test "$k" -eq 1 ; then
29775 # The first file doesn't have a previous command to add.
29776 reload_objs=$objlist
29777- eval "concat_cmds=\"$reload_cmds\""
29778+ eval concat_cmds=\"$reload_cmds\"
29779 else
29780 # All subsequent reloadable object files will link in
29781 # the last one created.
29782 reload_objs="$objlist $last_robj"
29783- eval "concat_cmds=\"\$concat_cmds~$reload_cmds~\$RM $last_robj\""
29784+ eval concat_cmds=\"\$concat_cmds~$reload_cmds~\$RM $last_robj\"
29785 fi
29786 last_robj=$output_objdir/$output_la-${k}.$objext
29787 func_arith $k + 1
29788@@ -7433,11 +8401,11 @@ EOF
29789 # files will link in the last one created.
29790 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
29791 reload_objs="$objlist $last_robj"
29792- eval "concat_cmds=\"\${concat_cmds}$reload_cmds\""
29793+ eval concat_cmds=\"\${concat_cmds}$reload_cmds\"
29794 if test -n "$last_robj"; then
29795- eval "concat_cmds=\"\${concat_cmds}~\$RM $last_robj\""
29796+ eval concat_cmds=\"\${concat_cmds}~\$RM $last_robj\"
29797 fi
29798- delfiles="$delfiles $output"
29799+ func_append delfiles " $output"
29800
29801 else
29802 output=
29803@@ -7450,9 +8418,9 @@ EOF
29804 libobjs=$output
29805 # Append the command to create the export file.
29806 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
29807- eval "concat_cmds=\"\$concat_cmds$export_symbols_cmds\""
29808+ eval concat_cmds=\"\$concat_cmds$export_symbols_cmds\"
29809 if test -n "$last_robj"; then
29810- eval "concat_cmds=\"\$concat_cmds~\$RM $last_robj\""
29811+ eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\"
29812 fi
29813 fi
29814
29815@@ -7471,7 +8439,7 @@ EOF
29816 lt_exit=$?
29817
29818 # Restore the uninstalled library and exit
29819- if test "$mode" = relink; then
29820+ if test "$opt_mode" = relink; then
29821 ( cd "$output_objdir" && \
29822 $RM "${realname}T" && \
29823 $MV "${realname}U" "$realname" )
29824@@ -7492,7 +8460,7 @@ EOF
29825 if test -n "$export_symbols" && test -n "$include_expsyms"; then
29826 tmp_export_symbols="$export_symbols"
29827 test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
29828- $opt_dry_run || $ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"
29829+ $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"'
29830 fi
29831
29832 if test -n "$orig_export_symbols"; then
29833@@ -7504,7 +8472,7 @@ EOF
29834 # global variables. join(1) would be nice here, but unfortunately
29835 # isn't a blessed tool.
29836 $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
29837- delfiles="$delfiles $export_symbols $output_objdir/$libname.filter"
29838+ func_append delfiles " $export_symbols $output_objdir/$libname.filter"
29839 export_symbols=$output_objdir/$libname.def
29840 $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
29841 fi
29842@@ -7515,7 +8483,7 @@ EOF
29843 output=$save_output
29844
29845 if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then
29846- eval "libobjs=\"\$libobjs $whole_archive_flag_spec\""
29847+ eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
29848 test "X$libobjs" = "X " && libobjs=
29849 fi
29850 # Expand the library linking commands again to reset the
29851@@ -7539,23 +8507,23 @@ EOF
29852
29853 if test -n "$delfiles"; then
29854 # Append the command to remove temporary files to $cmds.
29855- eval "cmds=\"\$cmds~\$RM $delfiles\""
29856+ eval cmds=\"\$cmds~\$RM $delfiles\"
29857 fi
29858
29859 # Add any objects from preloaded convenience libraries
29860 if test -n "$dlprefiles"; then
29861 gentop="$output_objdir/${outputname}x"
29862- generated="$generated $gentop"
29863+ func_append generated " $gentop"
29864
29865 func_extract_archives $gentop $dlprefiles
29866- libobjs="$libobjs $func_extract_archives_result"
29867+ func_append libobjs " $func_extract_archives_result"
29868 test "X$libobjs" = "X " && libobjs=
29869 fi
29870
29871 save_ifs="$IFS"; IFS='~'
29872 for cmd in $cmds; do
29873 IFS="$save_ifs"
29874- eval "cmd=\"$cmd\""
29875+ eval cmd=\"$cmd\"
29876 $opt_silent || {
29877 func_quote_for_expand "$cmd"
29878 eval "func_echo $func_quote_for_expand_result"
29879@@ -7564,7 +8532,7 @@ EOF
29880 lt_exit=$?
29881
29882 # Restore the uninstalled library and exit
29883- if test "$mode" = relink; then
29884+ if test "$opt_mode" = relink; then
29885 ( cd "$output_objdir" && \
29886 $RM "${realname}T" && \
29887 $MV "${realname}U" "$realname" )
29888@@ -7576,8 +8544,8 @@ EOF
29889 IFS="$save_ifs"
29890
29891 # Restore the uninstalled library and exit
29892- if test "$mode" = relink; then
29893- $opt_dry_run || (cd $output_objdir && $RM ${realname}T && $MV $realname ${realname}T && $MV ${realname}U $realname) || exit $?
29894+ if test "$opt_mode" = relink; then
29895+ $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}T && $MV $realname ${realname}T && $MV ${realname}U $realname)' || exit $?
29896
29897 if test -n "$convenience"; then
29898 if test -z "$whole_archive_flag_spec"; then
29899@@ -7656,17 +8624,20 @@ EOF
29900
29901 if test -n "$convenience"; then
29902 if test -n "$whole_archive_flag_spec"; then
29903- eval "tmp_whole_archive_flags=\"$whole_archive_flag_spec\""
29904+ eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\"
29905 reload_conv_objs=$reload_objs\ `$ECHO "$tmp_whole_archive_flags" | $SED 's|,| |g'`
29906 else
29907 gentop="$output_objdir/${obj}x"
29908- generated="$generated $gentop"
29909+ func_append generated " $gentop"
29910
29911 func_extract_archives $gentop $convenience
29912 reload_conv_objs="$reload_objs $func_extract_archives_result"
29913 fi
29914 fi
29915
29916+ # If we're not building shared, we need to use non_pic_objs
29917+ test "$build_libtool_libs" != yes && libobjs="$non_pic_objects"
29918+
29919 # Create the old-style object.
29920 reload_objs="$objs$old_deplibs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.${libext}$/d; /\.lib$/d; $lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test
29921
29922@@ -7690,7 +8661,7 @@ EOF
29923 # Create an invalid libtool object if no PIC, so that we don't
29924 # accidentally link it into a program.
29925 # $show "echo timestamp > $libobj"
29926- # $opt_dry_run || echo timestamp > $libobj || exit $?
29927+ # $opt_dry_run || eval "echo timestamp > $libobj" || exit $?
29928 exit $EXIT_SUCCESS
29929 fi
29930
29931@@ -7740,8 +8711,8 @@ EOF
29932 if test "$tagname" = CXX ; then
29933 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
29934 10.[0123])
29935- compile_command="$compile_command ${wl}-bind_at_load"
29936- finalize_command="$finalize_command ${wl}-bind_at_load"
29937+ func_append compile_command " ${wl}-bind_at_load"
29938+ func_append finalize_command " ${wl}-bind_at_load"
29939 ;;
29940 esac
29941 fi
29942@@ -7761,7 +8732,7 @@ EOF
29943 *)
29944 case " $compile_deplibs " in
29945 *" -L$path/$objdir "*)
29946- new_libs="$new_libs -L$path/$objdir" ;;
29947+ func_append new_libs " -L$path/$objdir" ;;
29948 esac
29949 ;;
29950 esac
29951@@ -7771,17 +8742,17 @@ EOF
29952 -L*)
29953 case " $new_libs " in
29954 *" $deplib "*) ;;
29955- *) new_libs="$new_libs $deplib" ;;
29956+ *) func_append new_libs " $deplib" ;;
29957 esac
29958 ;;
29959- *) new_libs="$new_libs $deplib" ;;
29960+ *) func_append new_libs " $deplib" ;;
29961 esac
29962 done
29963 compile_deplibs="$new_libs"
29964
29965
29966- compile_command="$compile_command $compile_deplibs"
29967- finalize_command="$finalize_command $finalize_deplibs"
29968+ func_append compile_command " $compile_deplibs"
29969+ func_append finalize_command " $finalize_deplibs"
29970
29971 if test -n "$rpath$xrpath"; then
29972 # If the user specified any rpath flags, then add them.
29973@@ -7789,7 +8760,7 @@ EOF
29974 # This is the magic to use -rpath.
29975 case "$finalize_rpath " in
29976 *" $libdir "*) ;;
29977- *) finalize_rpath="$finalize_rpath $libdir" ;;
29978+ *) func_append finalize_rpath " $libdir" ;;
29979 esac
29980 done
29981 fi
29982@@ -7808,18 +8779,18 @@ EOF
29983 *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
29984 ;;
29985 *)
29986- hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
29987+ func_append hardcode_libdirs "$hardcode_libdir_separator$libdir"
29988 ;;
29989 esac
29990 fi
29991 else
29992- eval "flag=\"$hardcode_libdir_flag_spec\""
29993- rpath="$rpath $flag"
29994+ eval flag=\"$hardcode_libdir_flag_spec\"
29995+ func_append rpath " $flag"
29996 fi
29997 elif test -n "$runpath_var"; then
29998 case "$perm_rpath " in
29999 *" $libdir "*) ;;
30000- *) perm_rpath="$perm_rpath $libdir" ;;
30001+ *) func_append perm_rpath " $libdir" ;;
30002 esac
30003 fi
30004 case $host in
30005@@ -7828,12 +8799,12 @@ EOF
30006 case :$dllsearchpath: in
30007 *":$libdir:"*) ;;
30008 ::) dllsearchpath=$libdir;;
30009- *) dllsearchpath="$dllsearchpath:$libdir";;
30010+ *) func_append dllsearchpath ":$libdir";;
30011 esac
30012 case :$dllsearchpath: in
30013 *":$testbindir:"*) ;;
30014 ::) dllsearchpath=$testbindir;;
30015- *) dllsearchpath="$dllsearchpath:$testbindir";;
30016+ *) func_append dllsearchpath ":$testbindir";;
30017 esac
30018 ;;
30019 esac
30020@@ -7842,7 +8813,7 @@ EOF
30021 if test -n "$hardcode_libdir_separator" &&
30022 test -n "$hardcode_libdirs"; then
30023 libdir="$hardcode_libdirs"
30024- eval "rpath=\" $hardcode_libdir_flag_spec\""
30025+ eval rpath=\" $hardcode_libdir_flag_spec\"
30026 fi
30027 compile_rpath="$rpath"
30028
30029@@ -7859,18 +8830,18 @@ EOF
30030 *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
30031 ;;
30032 *)
30033- hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
30034+ func_append hardcode_libdirs "$hardcode_libdir_separator$libdir"
30035 ;;
30036 esac
30037 fi
30038 else
30039- eval "flag=\"$hardcode_libdir_flag_spec\""
30040- rpath="$rpath $flag"
30041+ eval flag=\"$hardcode_libdir_flag_spec\"
30042+ func_append rpath " $flag"
30043 fi
30044 elif test -n "$runpath_var"; then
30045 case "$finalize_perm_rpath " in
30046 *" $libdir "*) ;;
30047- *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;;
30048+ *) func_append finalize_perm_rpath " $libdir" ;;
30049 esac
30050 fi
30051 done
30052@@ -7878,7 +8849,7 @@ EOF
30053 if test -n "$hardcode_libdir_separator" &&
30054 test -n "$hardcode_libdirs"; then
30055 libdir="$hardcode_libdirs"
30056- eval "rpath=\" $hardcode_libdir_flag_spec\""
30057+ eval rpath=\" $hardcode_libdir_flag_spec\"
30058 fi
30059 finalize_rpath="$rpath"
30060
30061@@ -7921,6 +8892,12 @@ EOF
30062 exit_status=0
30063 func_show_eval "$link_command" 'exit_status=$?'
30064
30065+ if test -n "$postlink_cmds"; then
30066+ func_to_tool_file "$output"
30067+ postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'`
30068+ func_execute_cmds "$postlink_cmds" 'exit $?'
30069+ fi
30070+
30071 # Delete the generated files.
30072 if test -f "$output_objdir/${outputname}S.${objext}"; then
30073 func_show_eval '$RM "$output_objdir/${outputname}S.${objext}"'
30074@@ -7943,7 +8920,7 @@ EOF
30075 # We should set the runpath_var.
30076 rpath=
30077 for dir in $perm_rpath; do
30078- rpath="$rpath$dir:"
30079+ func_append rpath "$dir:"
30080 done
30081 compile_var="$runpath_var=\"$rpath\$$runpath_var\" "
30082 fi
30083@@ -7951,7 +8928,7 @@ EOF
30084 # We should set the runpath_var.
30085 rpath=
30086 for dir in $finalize_perm_rpath; do
30087- rpath="$rpath$dir:"
30088+ func_append rpath "$dir:"
30089 done
30090 finalize_var="$runpath_var=\"$rpath\$$runpath_var\" "
30091 fi
30092@@ -7966,6 +8943,13 @@ EOF
30093 $opt_dry_run || $RM $output
30094 # Link the executable and exit
30095 func_show_eval "$link_command" 'exit $?'
30096+
30097+ if test -n "$postlink_cmds"; then
30098+ func_to_tool_file "$output"
30099+ postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'`
30100+ func_execute_cmds "$postlink_cmds" 'exit $?'
30101+ fi
30102+
30103 exit $EXIT_SUCCESS
30104 fi
30105
30106@@ -7999,6 +8983,12 @@ EOF
30107
30108 func_show_eval "$link_command" 'exit $?'
30109
30110+ if test -n "$postlink_cmds"; then
30111+ func_to_tool_file "$output_objdir/$outputname"
30112+ 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'`
30113+ func_execute_cmds "$postlink_cmds" 'exit $?'
30114+ fi
30115+
30116 # Now create the wrapper script.
30117 func_verbose "creating $output"
30118
30119@@ -8096,7 +9086,7 @@ EOF
30120 else
30121 oldobjs="$old_deplibs $non_pic_objects"
30122 if test "$preload" = yes && test -f "$symfileobj"; then
30123- oldobjs="$oldobjs $symfileobj"
30124+ func_append oldobjs " $symfileobj"
30125 fi
30126 fi
30127 addlibs="$old_convenience"
30128@@ -8104,10 +9094,10 @@ EOF
30129
30130 if test -n "$addlibs"; then
30131 gentop="$output_objdir/${outputname}x"
30132- generated="$generated $gentop"
30133+ func_append generated " $gentop"
30134
30135 func_extract_archives $gentop $addlibs
30136- oldobjs="$oldobjs $func_extract_archives_result"
30137+ func_append oldobjs " $func_extract_archives_result"
30138 fi
30139
30140 # Do each command in the archive commands.
30141@@ -8118,10 +9108,10 @@ EOF
30142 # Add any objects from preloaded convenience libraries
30143 if test -n "$dlprefiles"; then
30144 gentop="$output_objdir/${outputname}x"
30145- generated="$generated $gentop"
30146+ func_append generated " $gentop"
30147
30148 func_extract_archives $gentop $dlprefiles
30149- oldobjs="$oldobjs $func_extract_archives_result"
30150+ func_append oldobjs " $func_extract_archives_result"
30151 fi
30152
30153 # POSIX demands no paths to be encoded in archives. We have
30154@@ -8139,7 +9129,7 @@ EOF
30155 else
30156 echo "copying selected object files to avoid basename conflicts..."
30157 gentop="$output_objdir/${outputname}x"
30158- generated="$generated $gentop"
30159+ func_append generated " $gentop"
30160 func_mkdir_p "$gentop"
30161 save_oldobjs=$oldobjs
30162 oldobjs=
30163@@ -8163,18 +9153,28 @@ EOF
30164 esac
30165 done
30166 func_show_eval "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj"
30167- oldobjs="$oldobjs $gentop/$newobj"
30168+ func_append oldobjs " $gentop/$newobj"
30169 ;;
30170- *) oldobjs="$oldobjs $obj" ;;
30171+ *) func_append oldobjs " $obj" ;;
30172 esac
30173 done
30174 fi
30175- eval "cmds=\"$old_archive_cmds\""
30176+ eval cmds=\"$old_archive_cmds\"
30177
30178 func_len " $cmds"
30179 len=$func_len_result
30180 if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
30181 cmds=$old_archive_cmds
30182+ elif test -n "$archiver_list_spec"; then
30183+ func_verbose "using command file archive linking..."
30184+ for obj in $oldobjs
30185+ do
30186+ func_to_tool_file "$obj"
30187+ $ECHO "$func_to_tool_file_result"
30188+ done > $output_objdir/$libname.libcmd
30189+ func_to_tool_file "$output_objdir/$libname.libcmd"
30190+ oldobjs=" $archiver_list_spec$func_to_tool_file_result"
30191+ cmds=$old_archive_cmds
30192 else
30193 # the command line is too long to link in one step, link in parts
30194 func_verbose "using piecewise archive linking..."
30195@@ -8189,7 +9189,7 @@ EOF
30196 do
30197 last_oldobj=$obj
30198 done
30199- eval "test_cmds=\"$old_archive_cmds\""
30200+ eval test_cmds=\"$old_archive_cmds\"
30201 func_len " $test_cmds"
30202 len0=$func_len_result
30203 len=$len0
30204@@ -8208,7 +9208,7 @@ EOF
30205 RANLIB=$save_RANLIB
30206 fi
30207 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
30208- eval "concat_cmds=\"\${concat_cmds}$old_archive_cmds\""
30209+ eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\"
30210 objlist=
30211 len=$len0
30212 fi
30213@@ -8216,9 +9216,9 @@ EOF
30214 RANLIB=$save_RANLIB
30215 oldobjs=$objlist
30216 if test "X$oldobjs" = "X" ; then
30217- eval "cmds=\"\$concat_cmds\""
30218+ eval cmds=\"\$concat_cmds\"
30219 else
30220- eval "cmds=\"\$concat_cmds~\$old_archive_cmds\""
30221+ eval cmds=\"\$concat_cmds~\$old_archive_cmds\"
30222 fi
30223 fi
30224 fi
30225@@ -8268,12 +9268,23 @@ EOF
30226 *.la)
30227 func_basename "$deplib"
30228 name="$func_basename_result"
30229- libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
30230+ func_resolve_sysroot "$deplib"
30231+ eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $func_resolve_sysroot_result`
30232 test -z "$libdir" && \
30233 func_fatal_error "\`$deplib' is not a valid libtool archive"
30234- newdependency_libs="$newdependency_libs $libdir/$name"
30235+ func_append newdependency_libs " ${lt_sysroot:+=}$libdir/$name"
30236+ ;;
30237+ -L*)
30238+ func_stripname -L '' "$deplib"
30239+ func_replace_sysroot "$func_stripname_result"
30240+ func_append newdependency_libs " -L$func_replace_sysroot_result"
30241 ;;
30242- *) newdependency_libs="$newdependency_libs $deplib" ;;
30243+ -R*)
30244+ func_stripname -R '' "$deplib"
30245+ func_replace_sysroot "$func_stripname_result"
30246+ func_append newdependency_libs " -R$func_replace_sysroot_result"
30247+ ;;
30248+ *) func_append newdependency_libs " $deplib" ;;
30249 esac
30250 done
30251 dependency_libs="$newdependency_libs"
30252@@ -8284,12 +9295,14 @@ EOF
30253 *.la)
30254 func_basename "$lib"
30255 name="$func_basename_result"
30256- libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
30257+ func_resolve_sysroot "$lib"
30258+ eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $func_resolve_sysroot_result`
30259+
30260 test -z "$libdir" && \
30261 func_fatal_error "\`$lib' is not a valid libtool archive"
30262- newdlfiles="$newdlfiles $libdir/$name"
30263+ func_append newdlfiles " ${lt_sysroot:+=}$libdir/$name"
30264 ;;
30265- *) newdlfiles="$newdlfiles $lib" ;;
30266+ *) func_append newdlfiles " $lib" ;;
30267 esac
30268 done
30269 dlfiles="$newdlfiles"
30270@@ -8303,10 +9316,11 @@ EOF
30271 # the library:
30272 func_basename "$lib"
30273 name="$func_basename_result"
30274- libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
30275+ func_resolve_sysroot "$lib"
30276+ eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $func_resolve_sysroot_result`
30277 test -z "$libdir" && \
30278 func_fatal_error "\`$lib' is not a valid libtool archive"
30279- newdlprefiles="$newdlprefiles $libdir/$name"
30280+ func_append newdlprefiles " ${lt_sysroot:+=}$libdir/$name"
30281 ;;
30282 esac
30283 done
30284@@ -8318,7 +9332,7 @@ EOF
30285 [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
30286 *) abs=`pwd`"/$lib" ;;
30287 esac
30288- newdlfiles="$newdlfiles $abs"
30289+ func_append newdlfiles " $abs"
30290 done
30291 dlfiles="$newdlfiles"
30292 newdlprefiles=
30293@@ -8327,7 +9341,7 @@ EOF
30294 [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
30295 *) abs=`pwd`"/$lib" ;;
30296 esac
30297- newdlprefiles="$newdlprefiles $abs"
30298+ func_append newdlprefiles " $abs"
30299 done
30300 dlprefiles="$newdlprefiles"
30301 fi
30302@@ -8412,7 +9426,7 @@ relink_command=\"$relink_command\""
30303 exit $EXIT_SUCCESS
30304 }
30305
30306-{ test "$mode" = link || test "$mode" = relink; } &&
30307+{ test "$opt_mode" = link || test "$opt_mode" = relink; } &&
30308 func_mode_link ${1+"$@"}
30309
30310
30311@@ -8432,9 +9446,9 @@ func_mode_uninstall ()
30312 for arg
30313 do
30314 case $arg in
30315- -f) RM="$RM $arg"; rmforce=yes ;;
30316- -*) RM="$RM $arg" ;;
30317- *) files="$files $arg" ;;
30318+ -f) func_append RM " $arg"; rmforce=yes ;;
30319+ -*) func_append RM " $arg" ;;
30320+ *) func_append files " $arg" ;;
30321 esac
30322 done
30323
30324@@ -8443,24 +9457,23 @@ func_mode_uninstall ()
30325
30326 rmdirs=
30327
30328- origobjdir="$objdir"
30329 for file in $files; do
30330 func_dirname "$file" "" "."
30331 dir="$func_dirname_result"
30332 if test "X$dir" = X.; then
30333- objdir="$origobjdir"
30334+ odir="$objdir"
30335 else
30336- objdir="$dir/$origobjdir"
30337+ odir="$dir/$objdir"
30338 fi
30339 func_basename "$file"
30340 name="$func_basename_result"
30341- test "$mode" = uninstall && objdir="$dir"
30342+ test "$opt_mode" = uninstall && odir="$dir"
30343
30344- # Remember objdir for removal later, being careful to avoid duplicates
30345- if test "$mode" = clean; then
30346+ # Remember odir for removal later, being careful to avoid duplicates
30347+ if test "$opt_mode" = clean; then
30348 case " $rmdirs " in
30349- *" $objdir "*) ;;
30350- *) rmdirs="$rmdirs $objdir" ;;
30351+ *" $odir "*) ;;
30352+ *) func_append rmdirs " $odir" ;;
30353 esac
30354 fi
30355
30356@@ -8486,18 +9499,17 @@ func_mode_uninstall ()
30357
30358 # Delete the libtool libraries and symlinks.
30359 for n in $library_names; do
30360- rmfiles="$rmfiles $objdir/$n"
30361+ func_append rmfiles " $odir/$n"
30362 done
30363- test -n "$old_library" && rmfiles="$rmfiles $objdir/$old_library"
30364+ test -n "$old_library" && func_append rmfiles " $odir/$old_library"
30365
30366- case "$mode" in
30367+ case "$opt_mode" in
30368 clean)
30369- case " $library_names " in
30370- # " " in the beginning catches empty $dlname
30371+ case " $library_names " in
30372 *" $dlname "*) ;;
30373- *) rmfiles="$rmfiles $objdir/$dlname" ;;
30374+ *) test -n "$dlname" && func_append rmfiles " $odir/$dlname" ;;
30375 esac
30376- test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
30377+ test -n "$libdir" && func_append rmfiles " $odir/$name $odir/${name}i"
30378 ;;
30379 uninstall)
30380 if test -n "$library_names"; then
30381@@ -8525,19 +9537,19 @@ func_mode_uninstall ()
30382 # Add PIC object to the list of files to remove.
30383 if test -n "$pic_object" &&
30384 test "$pic_object" != none; then
30385- rmfiles="$rmfiles $dir/$pic_object"
30386+ func_append rmfiles " $dir/$pic_object"
30387 fi
30388
30389 # Add non-PIC object to the list of files to remove.
30390 if test -n "$non_pic_object" &&
30391 test "$non_pic_object" != none; then
30392- rmfiles="$rmfiles $dir/$non_pic_object"
30393+ func_append rmfiles " $dir/$non_pic_object"
30394 fi
30395 fi
30396 ;;
30397
30398 *)
30399- if test "$mode" = clean ; then
30400+ if test "$opt_mode" = clean ; then
30401 noexename=$name
30402 case $file in
30403 *.exe)
30404@@ -8547,7 +9559,7 @@ func_mode_uninstall ()
30405 noexename=$func_stripname_result
30406 # $file with .exe has already been added to rmfiles,
30407 # add $file without .exe
30408- rmfiles="$rmfiles $file"
30409+ func_append rmfiles " $file"
30410 ;;
30411 esac
30412 # Do a test to see if this is a libtool program.
30413@@ -8556,7 +9568,7 @@ func_mode_uninstall ()
30414 func_ltwrapper_scriptname "$file"
30415 relink_command=
30416 func_source $func_ltwrapper_scriptname_result
30417- rmfiles="$rmfiles $func_ltwrapper_scriptname_result"
30418+ func_append rmfiles " $func_ltwrapper_scriptname_result"
30419 else
30420 relink_command=
30421 func_source $dir/$noexename
30422@@ -8564,12 +9576,12 @@ func_mode_uninstall ()
30423
30424 # note $name still contains .exe if it was in $file originally
30425 # as does the version of $file that was added into $rmfiles
30426- rmfiles="$rmfiles $objdir/$name $objdir/${name}S.${objext}"
30427+ func_append rmfiles " $odir/$name $odir/${name}S.${objext}"
30428 if test "$fast_install" = yes && test -n "$relink_command"; then
30429- rmfiles="$rmfiles $objdir/lt-$name"
30430+ func_append rmfiles " $odir/lt-$name"
30431 fi
30432 if test "X$noexename" != "X$name" ; then
30433- rmfiles="$rmfiles $objdir/lt-${noexename}.c"
30434+ func_append rmfiles " $odir/lt-${noexename}.c"
30435 fi
30436 fi
30437 fi
30438@@ -8577,7 +9589,6 @@ func_mode_uninstall ()
30439 esac
30440 func_show_eval "$RM $rmfiles" 'exit_status=1'
30441 done
30442- objdir="$origobjdir"
30443
30444 # Try to remove the ${objdir}s in the directories where we deleted files
30445 for dir in $rmdirs; do
30446@@ -8589,16 +9600,16 @@ func_mode_uninstall ()
30447 exit $exit_status
30448 }
30449
30450-{ test "$mode" = uninstall || test "$mode" = clean; } &&
30451+{ test "$opt_mode" = uninstall || test "$opt_mode" = clean; } &&
30452 func_mode_uninstall ${1+"$@"}
30453
30454-test -z "$mode" && {
30455+test -z "$opt_mode" && {
30456 help="$generic_help"
30457 func_fatal_help "you must specify a MODE"
30458 }
30459
30460 test -z "$exec_cmd" && \
30461- func_fatal_help "invalid operation mode \`$mode'"
30462+ func_fatal_help "invalid operation mode \`$opt_mode'"
30463
30464 if test -n "$exec_cmd"; then
30465 eval exec "$exec_cmd"
30466diff --git a/ltoptions.m4 b/ltoptions.m4
30467index 5ef12ced2a8..17cfd51c0b3 100644
30468--- a/ltoptions.m4
30469+++ b/ltoptions.m4
30470@@ -8,7 +8,7 @@
30471 # unlimited permission to copy and/or distribute it, with or without
30472 # modifications, as long as this notice is preserved.
30473
30474-# serial 6 ltoptions.m4
30475+# serial 7 ltoptions.m4
30476
30477 # This is to help aclocal find these macros, as it can't see m4_define.
30478 AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
30479diff --git a/ltversion.m4 b/ltversion.m4
30480index bf87f77132d..9c7b5d41185 100644
30481--- a/ltversion.m4
30482+++ b/ltversion.m4
30483@@ -7,17 +7,17 @@
30484 # unlimited permission to copy and/or distribute it, with or without
30485 # modifications, as long as this notice is preserved.
30486
30487-# Generated from ltversion.in.
30488+# @configure_input@
30489
30490-# serial 3134 ltversion.m4
30491+# serial 3293 ltversion.m4
30492 # This file is part of GNU Libtool
30493
30494-m4_define([LT_PACKAGE_VERSION], [2.2.7a])
30495-m4_define([LT_PACKAGE_REVISION], [1.3134])
30496+m4_define([LT_PACKAGE_VERSION], [2.4])
30497+m4_define([LT_PACKAGE_REVISION], [1.3293])
30498
30499 AC_DEFUN([LTVERSION_VERSION],
30500-[macro_version='2.2.7a'
30501-macro_revision='1.3134'
30502+[macro_version='2.4'
30503+macro_revision='1.3293'
30504 _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
30505 _LT_DECL(, macro_revision, 0)
30506 ])
30507diff --git a/lt~obsolete.m4 b/lt~obsolete.m4
30508index bf92b5e0790..c573da90c5c 100644
30509--- a/lt~obsolete.m4
30510+++ b/lt~obsolete.m4
30511@@ -7,7 +7,7 @@
30512 # unlimited permission to copy and/or distribute it, with or without
30513 # modifications, as long as this notice is preserved.
30514
30515-# serial 4 lt~obsolete.m4
30516+# serial 5 lt~obsolete.m4
30517
30518 # These exist entirely to fool aclocal when bootstrapping libtool.
30519 #
30520diff --git a/opcodes/Makefile.in b/opcodes/Makefile.in
30521index 57aaed26da8..9cca46c7dfd 100644
30522--- a/opcodes/Makefile.in
30523+++ b/opcodes/Makefile.in
30524@@ -298,6 +298,7 @@ CYGPATH_W = @CYGPATH_W@
30525 DATADIRNAME = @DATADIRNAME@
30526 DEFS = @DEFS@
30527 DEPDIR = @DEPDIR@
30528+DLLTOOL = @DLLTOOL@
30529 DSYMUTIL = @DSYMUTIL@
30530 DUMPBIN = @DUMPBIN@
30531 ECHO_C = @ECHO_C@
30532@@ -336,6 +337,7 @@ LTLIBINTL = @LTLIBINTL@
30533 LTLIBOBJS = @LTLIBOBJS@
30534 MAINT = @MAINT@
30535 MAKEINFO = @MAKEINFO@
30536+MANIFEST_TOOL = @MANIFEST_TOOL@
30537 MKDIR_P = @MKDIR_P@
30538 MKINSTALLDIRS = @MKINSTALLDIRS@
30539 MSGFMT = @MSGFMT@
30540@@ -374,6 +376,7 @@ abs_builddir = @abs_builddir@
30541 abs_srcdir = @abs_srcdir@
30542 abs_top_builddir = @abs_top_builddir@
30543 abs_top_srcdir = @abs_top_srcdir@
30544+ac_ct_AR = @ac_ct_AR@
30545 ac_ct_CC = @ac_ct_CC@
30546 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
30547 am__include = @am__include@
30548diff --git a/opcodes/configure b/opcodes/configure
30549index 313cbd436ed..e8ef4ba915b 100755
30550--- a/opcodes/configure
30551+++ b/opcodes/configure
30552@@ -688,6 +688,9 @@ OTOOL
30553 LIPO
30554 NMEDIT
30555 DSYMUTIL
30556+MANIFEST_TOOL
30557+ac_ct_AR
30558+DLLTOOL
30559 OBJDUMP
30560 LN_S
30561 NM
30562@@ -806,6 +809,7 @@ enable_static
30563 with_pic
30564 enable_fast_install
30565 with_gnu_ld
30566+with_libtool_sysroot
30567 enable_libtool_lock
30568 enable_checking
30569 enable_targets
30570@@ -1487,6 +1491,8 @@ Optional Packages:
30571 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
30572 --without-libintl-prefix don't search for libintl in includedir and libdir
30573 --with-libintl-type=TYPE type of library to search for (auto/static/shared)
30574+ --with-libtool-sysroot=DIR Search for dependent libraries within DIR
30575+ (or the compiler's sysroot if not specified).
30576
30577 Some influential environment variables:
30578 CC C compiler command
30579@@ -4995,8 +5001,8 @@ esac
30580
30581
30582
30583-macro_version='2.2.7a'
30584-macro_revision='1.3134'
30585+macro_version='2.4'
30586+macro_revision='1.3293'
30587
30588
30589
30590@@ -5036,7 +5042,7 @@ ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
30591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
30592 $as_echo_n "checking how to print strings... " >&6; }
30593 # Test print first, because it will be a builtin if present.
30594-if test "X`print -r -- -n 2>/dev/null`" = X-n && \
30595+if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
30596 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
30597 ECHO='print -r --'
30598 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
30599@@ -5729,8 +5735,8 @@ $as_echo_n "checking whether the shell understands some XSI constructs... " >&6;
30600 # Try some XSI features
30601 xsi_shell=no
30602 ( _lt_dummy="a/b/c"
30603- test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
30604- = c,a/b,, \
30605+ test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
30606+ = c,a/b,b/c, \
30607 && eval 'test $(( 1 + 1 )) -eq 2 \
30608 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
30609 && xsi_shell=yes
30610@@ -5779,6 +5785,80 @@ esac
30611
30612
30613
30614+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
30615+$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
30616+if ${lt_cv_to_host_file_cmd+:} false; then :
30617+ $as_echo_n "(cached) " >&6
30618+else
30619+ case $host in
30620+ *-*-mingw* )
30621+ case $build in
30622+ *-*-mingw* ) # actually msys
30623+ lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
30624+ ;;
30625+ *-*-cygwin* )
30626+ lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
30627+ ;;
30628+ * ) # otherwise, assume *nix
30629+ lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
30630+ ;;
30631+ esac
30632+ ;;
30633+ *-*-cygwin* )
30634+ case $build in
30635+ *-*-mingw* ) # actually msys
30636+ lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
30637+ ;;
30638+ *-*-cygwin* )
30639+ lt_cv_to_host_file_cmd=func_convert_file_noop
30640+ ;;
30641+ * ) # otherwise, assume *nix
30642+ lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
30643+ ;;
30644+ esac
30645+ ;;
30646+ * ) # unhandled hosts (and "normal" native builds)
30647+ lt_cv_to_host_file_cmd=func_convert_file_noop
30648+ ;;
30649+esac
30650+
30651+fi
30652+
30653+to_host_file_cmd=$lt_cv_to_host_file_cmd
30654+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
30655+$as_echo "$lt_cv_to_host_file_cmd" >&6; }
30656+
30657+
30658+
30659+
30660+
30661+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
30662+$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
30663+if ${lt_cv_to_tool_file_cmd+:} false; then :
30664+ $as_echo_n "(cached) " >&6
30665+else
30666+ #assume ordinary cross tools, or native build.
30667+lt_cv_to_tool_file_cmd=func_convert_file_noop
30668+case $host in
30669+ *-*-mingw* )
30670+ case $build in
30671+ *-*-mingw* ) # actually msys
30672+ lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
30673+ ;;
30674+ esac
30675+ ;;
30676+esac
30677+
30678+fi
30679+
30680+to_tool_file_cmd=$lt_cv_to_tool_file_cmd
30681+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
30682+$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
30683+
30684+
30685+
30686+
30687+
30688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
30689 $as_echo_n "checking for $LD option to reload object files... " >&6; }
30690 if ${lt_cv_ld_reload_flag+:} false; then :
30691@@ -5795,6 +5875,11 @@ case $reload_flag in
30692 esac
30693 reload_cmds='$LD$reload_flag -o $output$reload_objs'
30694 case $host_os in
30695+ cygwin* | mingw* | pw32* | cegcc*)
30696+ if test "$GCC" != yes; then
30697+ reload_cmds=false
30698+ fi
30699+ ;;
30700 darwin*)
30701 if test "$GCC" = yes; then
30702 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
30703@@ -5963,7 +6048,8 @@ mingw* | pw32*)
30704 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
30705 lt_cv_file_magic_cmd='func_win32_libid'
30706 else
30707- lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
30708+ # Keep this pattern in sync with the one in func_win32_libid.
30709+ lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
30710 lt_cv_file_magic_cmd='$OBJDUMP -f'
30711 fi
30712 ;;
30713@@ -6122,6 +6208,21 @@ esac
30714 fi
30715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
30716 $as_echo "$lt_cv_deplibs_check_method" >&6; }
30717+
30718+file_magic_glob=
30719+want_nocaseglob=no
30720+if test "$build" = "$host"; then
30721+ case $host_os in
30722+ mingw* | pw32*)
30723+ if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
30724+ want_nocaseglob=yes
30725+ else
30726+ file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
30727+ fi
30728+ ;;
30729+ esac
30730+fi
30731+
30732 file_magic_cmd=$lt_cv_file_magic_cmd
30733 deplibs_check_method=$lt_cv_deplibs_check_method
30734 test -z "$deplibs_check_method" && deplibs_check_method=unknown
30735@@ -6137,6 +6238,157 @@ test -z "$deplibs_check_method" && deplibs_check_method=unknown
30736
30737
30738
30739+
30740+
30741+
30742+
30743+
30744+
30745+
30746+
30747+
30748+
30749+if test -n "$ac_tool_prefix"; then
30750+ # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
30751+set dummy ${ac_tool_prefix}dlltool; ac_word=$2
30752+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30753+$as_echo_n "checking for $ac_word... " >&6; }
30754+if ${ac_cv_prog_DLLTOOL+:} false; then :
30755+ $as_echo_n "(cached) " >&6
30756+else
30757+ if test -n "$DLLTOOL"; then
30758+ ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
30759+else
30760+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30761+for as_dir in $PATH
30762+do
30763+ IFS=$as_save_IFS
30764+ test -z "$as_dir" && as_dir=.
30765+ for ac_exec_ext in '' $ac_executable_extensions; do
30766+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30767+ ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
30768+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30769+ break 2
30770+ fi
30771+done
30772+ done
30773+IFS=$as_save_IFS
30774+
30775+fi
30776+fi
30777+DLLTOOL=$ac_cv_prog_DLLTOOL
30778+if test -n "$DLLTOOL"; then
30779+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
30780+$as_echo "$DLLTOOL" >&6; }
30781+else
30782+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30783+$as_echo "no" >&6; }
30784+fi
30785+
30786+
30787+fi
30788+if test -z "$ac_cv_prog_DLLTOOL"; then
30789+ ac_ct_DLLTOOL=$DLLTOOL
30790+ # Extract the first word of "dlltool", so it can be a program name with args.
30791+set dummy dlltool; ac_word=$2
30792+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30793+$as_echo_n "checking for $ac_word... " >&6; }
30794+if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
30795+ $as_echo_n "(cached) " >&6
30796+else
30797+ if test -n "$ac_ct_DLLTOOL"; then
30798+ ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
30799+else
30800+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30801+for as_dir in $PATH
30802+do
30803+ IFS=$as_save_IFS
30804+ test -z "$as_dir" && as_dir=.
30805+ for ac_exec_ext in '' $ac_executable_extensions; do
30806+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30807+ ac_cv_prog_ac_ct_DLLTOOL="dlltool"
30808+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30809+ break 2
30810+ fi
30811+done
30812+ done
30813+IFS=$as_save_IFS
30814+
30815+fi
30816+fi
30817+ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
30818+if test -n "$ac_ct_DLLTOOL"; then
30819+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
30820+$as_echo "$ac_ct_DLLTOOL" >&6; }
30821+else
30822+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30823+$as_echo "no" >&6; }
30824+fi
30825+
30826+ if test "x$ac_ct_DLLTOOL" = x; then
30827+ DLLTOOL="false"
30828+ else
30829+ case $cross_compiling:$ac_tool_warned in
30830+yes:)
30831+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
30832+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
30833+ac_tool_warned=yes ;;
30834+esac
30835+ DLLTOOL=$ac_ct_DLLTOOL
30836+ fi
30837+else
30838+ DLLTOOL="$ac_cv_prog_DLLTOOL"
30839+fi
30840+
30841+test -z "$DLLTOOL" && DLLTOOL=dlltool
30842+
30843+
30844+
30845+
30846+
30847+
30848+
30849+
30850+
30851+
30852+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
30853+$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
30854+if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
30855+ $as_echo_n "(cached) " >&6
30856+else
30857+ lt_cv_sharedlib_from_linklib_cmd='unknown'
30858+
30859+case $host_os in
30860+cygwin* | mingw* | pw32* | cegcc*)
30861+ # two different shell functions defined in ltmain.sh
30862+ # decide which to use based on capabilities of $DLLTOOL
30863+ case `$DLLTOOL --help 2>&1` in
30864+ *--identify-strict*)
30865+ lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
30866+ ;;
30867+ *)
30868+ lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
30869+ ;;
30870+ esac
30871+ ;;
30872+*)
30873+ # fallback: assume linklib IS sharedlib
30874+ lt_cv_sharedlib_from_linklib_cmd="$ECHO"
30875+ ;;
30876+esac
30877+
30878+fi
30879+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
30880+$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
30881+sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
30882+test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
30883+
30884+
30885+
30886+
30887+
30888+
30889+
30890 plugin_option=
30891 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
30892 for plugin in $plugin_names; do
30893@@ -6151,8 +6403,10 @@ for plugin in $plugin_names; do
30894 done
30895
30896 if test -n "$ac_tool_prefix"; then
30897- # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
30898-set dummy ${ac_tool_prefix}ar; ac_word=$2
30899+ for ac_prog in ar
30900+ do
30901+ # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
30902+set dummy $ac_tool_prefix$ac_prog; ac_word=$2
30903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30904 $as_echo_n "checking for $ac_word... " >&6; }
30905 if ${ac_cv_prog_AR+:} false; then :
30906@@ -6168,7 +6422,7 @@ do
30907 test -z "$as_dir" && as_dir=.
30908 for ac_exec_ext in '' $ac_executable_extensions; do
30909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30910- ac_cv_prog_AR="${ac_tool_prefix}ar"
30911+ ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
30912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30913 break 2
30914 fi
30915@@ -6188,11 +6442,15 @@ $as_echo "no" >&6; }
30916 fi
30917
30918
30919+ test -n "$AR" && break
30920+ done
30921 fi
30922-if test -z "$ac_cv_prog_AR"; then
30923+if test -z "$AR"; then
30924 ac_ct_AR=$AR
30925- # Extract the first word of "ar", so it can be a program name with args.
30926-set dummy ar; ac_word=$2
30927+ for ac_prog in ar
30928+do
30929+ # Extract the first word of "$ac_prog", so it can be a program name with args.
30930+set dummy $ac_prog; ac_word=$2
30931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30932 $as_echo_n "checking for $ac_word... " >&6; }
30933 if ${ac_cv_prog_ac_ct_AR+:} false; then :
30934@@ -6208,7 +6466,7 @@ do
30935 test -z "$as_dir" && as_dir=.
30936 for ac_exec_ext in '' $ac_executable_extensions; do
30937 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30938- ac_cv_prog_ac_ct_AR="ar"
30939+ ac_cv_prog_ac_ct_AR="$ac_prog"
30940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30941 break 2
30942 fi
30943@@ -6227,6 +6485,10 @@ else
30944 $as_echo "no" >&6; }
30945 fi
30946
30947+
30948+ test -n "$ac_ct_AR" && break
30949+done
30950+
30951 if test "x$ac_ct_AR" = x; then
30952 AR="false"
30953 else
30954@@ -6238,25 +6500,20 @@ ac_tool_warned=yes ;;
30955 esac
30956 AR=$ac_ct_AR
30957 fi
30958-else
30959- AR="$ac_cv_prog_AR"
30960 fi
30961
30962-test -z "$AR" && AR=ar
30963-if test -n "$plugin_option"; then
30964- if $AR --help 2>&1 | grep -q "\--plugin"; then
30965- touch conftest.c
30966- $AR $plugin_option rc conftest.a conftest.c
30967- if test "$?" != 0; then
30968- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
30969+ touch conftest.c
30970+ $AR $plugin_option rc conftest.a conftest.c
30971+ if test "$?" != 0; then
30972+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
30973 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
30974- else
30975- AR="$AR $plugin_option"
30976- fi
30977- rm -f conftest.*
30978+ else
30979+ AR="$AR $plugin_option"
30980 fi
30981-fi
30982-test -z "$AR_FLAGS" && AR_FLAGS=cru
30983+ rm -f conftest.*
30984+: ${AR=ar}
30985+: ${AR_FLAGS=cru}
30986+
30987
30988
30989
30990@@ -6267,6 +6524,63 @@ test -z "$AR_FLAGS" && AR_FLAGS=cru
30991
30992
30993
30994+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
30995+$as_echo_n "checking for archiver @FILE support... " >&6; }
30996+if ${lt_cv_ar_at_file+:} false; then :
30997+ $as_echo_n "(cached) " >&6
30998+else
30999+ lt_cv_ar_at_file=no
31000+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31001+/* end confdefs.h. */
31002+
31003+int
31004+main ()
31005+{
31006+
31007+ ;
31008+ return 0;
31009+}
31010+_ACEOF
31011+if ac_fn_c_try_compile "$LINENO"; then :
31012+ echo conftest.$ac_objext > conftest.lst
31013+ lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
31014+ { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
31015+ (eval $lt_ar_try) 2>&5
31016+ ac_status=$?
31017+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31018+ test $ac_status = 0; }
31019+ if test "$ac_status" -eq 0; then
31020+ # Ensure the archiver fails upon bogus file names.
31021+ rm -f conftest.$ac_objext libconftest.a
31022+ { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
31023+ (eval $lt_ar_try) 2>&5
31024+ ac_status=$?
31025+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31026+ test $ac_status = 0; }
31027+ if test "$ac_status" -ne 0; then
31028+ lt_cv_ar_at_file=@
31029+ fi
31030+ fi
31031+ rm -f conftest.* libconftest.a
31032+
31033+fi
31034+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31035+
31036+fi
31037+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
31038+$as_echo "$lt_cv_ar_at_file" >&6; }
31039+
31040+if test "x$lt_cv_ar_at_file" = xno; then
31041+ archiver_list_spec=
31042+else
31043+ archiver_list_spec=$lt_cv_ar_at_file
31044+fi
31045+
31046+
31047+
31048+
31049+
31050+
31051
31052 if test -n "$ac_tool_prefix"; then
31053 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
31054@@ -6607,8 +6921,8 @@ esac
31055 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
31056
31057 # Transform an extracted symbol line into symbol name and symbol address
31058-lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
31059-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'"
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
31063 # Handle CRLF in mingw tool chain
31064 opt_cr=
31065@@ -6644,6 +6958,7 @@ for ac_symprfx in "" "_"; do
31066 else
31067 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
31068 fi
31069+ lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
31070
31071 # Check to see that the pipe works correctly.
31072 pipe_works=no
31073@@ -6685,6 +7000,18 @@ _LT_EOF
31074 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
31075 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
31076 cat <<_LT_EOF > conftest.$ac_ext
31077+/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
31078+#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
31079+/* DATA imports from DLLs on WIN32 con't be const, because runtime
31080+ relocations are performed -- see ld's documentation on pseudo-relocs. */
31081+# define LT_DLSYM_CONST
31082+#elif defined(__osf__)
31083+/* This system does not cope well with relocations in const data. */
31084+# define LT_DLSYM_CONST
31085+#else
31086+# define LT_DLSYM_CONST const
31087+#endif
31088+
31089 #ifdef __cplusplus
31090 extern "C" {
31091 #endif
31092@@ -6696,7 +7023,7 @@ _LT_EOF
31093 cat <<_LT_EOF >> conftest.$ac_ext
31094
31095 /* The mapping between symbol names and symbols. */
31096-const struct {
31097+LT_DLSYM_CONST struct {
31098 const char *name;
31099 void *address;
31100 }
31101@@ -6722,8 +7049,8 @@ static const void *lt_preloaded_setup() {
31102 _LT_EOF
31103 # Now try linking the two files.
31104 mv conftest.$ac_objext conftstm.$ac_objext
31105- lt_save_LIBS="$LIBS"
31106- lt_save_CFLAGS="$CFLAGS"
31107+ lt_globsym_save_LIBS=$LIBS
31108+ lt_globsym_save_CFLAGS=$CFLAGS
31109 LIBS="conftstm.$ac_objext"
31110 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
31111 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
31112@@ -6733,8 +7060,8 @@ _LT_EOF
31113 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
31114 pipe_works=yes
31115 fi
31116- LIBS="$lt_save_LIBS"
31117- CFLAGS="$lt_save_CFLAGS"
31118+ LIBS=$lt_globsym_save_LIBS
31119+ CFLAGS=$lt_globsym_save_CFLAGS
31120 else
31121 echo "cannot find nm_test_func in $nlist" >&5
31122 fi
31123@@ -6771,6 +7098,14 @@ else
31124 $as_echo "ok" >&6; }
31125 fi
31126
31127+# Response file support.
31128+if test "$lt_cv_nm_interface" = "MS dumpbin"; then
31129+ nm_file_list_spec='@'
31130+elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
31131+ nm_file_list_spec='@'
31132+fi
31133+
31134+
31135
31136
31137
31138@@ -6789,6 +7124,47 @@ fi
31139
31140
31141
31142+
31143+
31144+
31145+
31146+
31147+
31148+
31149+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
31150+$as_echo_n "checking for sysroot... " >&6; }
31151+
31152+# Check whether --with-libtool-sysroot was given.
31153+if test "${with_libtool_sysroot+set}" = set; then :
31154+ withval=$with_libtool_sysroot;
31155+else
31156+ with_libtool_sysroot=no
31157+fi
31158+
31159+
31160+lt_sysroot=
31161+case ${with_libtool_sysroot} in #(
31162+ yes)
31163+ if test "$GCC" = yes; then
31164+ lt_sysroot=`$CC --print-sysroot 2>/dev/null`
31165+ fi
31166+ ;; #(
31167+ /*)
31168+ lt_sysroot=`echo "$with_libtool_sysroot" | sed -e "$sed_quote_subst"`
31169+ ;; #(
31170+ no|'')
31171+ ;; #(
31172+ *)
31173+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_libtool_sysroot}" >&5
31174+$as_echo "${with_libtool_sysroot}" >&6; }
31175+ as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
31176+ ;;
31177+esac
31178+
31179+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
31180+$as_echo "${lt_sysroot:-no}" >&6; }
31181+
31182+
31183
31184
31185
31186@@ -6998,6 +7374,123 @@ esac
31187
31188 need_locks="$enable_libtool_lock"
31189
31190+if test -n "$ac_tool_prefix"; then
31191+ # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
31192+set dummy ${ac_tool_prefix}mt; ac_word=$2
31193+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31194+$as_echo_n "checking for $ac_word... " >&6; }
31195+if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
31196+ $as_echo_n "(cached) " >&6
31197+else
31198+ if test -n "$MANIFEST_TOOL"; then
31199+ ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
31200+else
31201+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31202+for as_dir in $PATH
31203+do
31204+ IFS=$as_save_IFS
31205+ test -z "$as_dir" && as_dir=.
31206+ for ac_exec_ext in '' $ac_executable_extensions; do
31207+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31208+ ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
31209+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31210+ break 2
31211+ fi
31212+done
31213+ done
31214+IFS=$as_save_IFS
31215+
31216+fi
31217+fi
31218+MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
31219+if test -n "$MANIFEST_TOOL"; then
31220+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
31221+$as_echo "$MANIFEST_TOOL" >&6; }
31222+else
31223+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31224+$as_echo "no" >&6; }
31225+fi
31226+
31227+
31228+fi
31229+if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
31230+ ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
31231+ # Extract the first word of "mt", so it can be a program name with args.
31232+set dummy mt; ac_word=$2
31233+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31234+$as_echo_n "checking for $ac_word... " >&6; }
31235+if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
31236+ $as_echo_n "(cached) " >&6
31237+else
31238+ if test -n "$ac_ct_MANIFEST_TOOL"; then
31239+ ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
31240+else
31241+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31242+for as_dir in $PATH
31243+do
31244+ IFS=$as_save_IFS
31245+ test -z "$as_dir" && as_dir=.
31246+ for ac_exec_ext in '' $ac_executable_extensions; do
31247+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31248+ ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
31249+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31250+ break 2
31251+ fi
31252+done
31253+ done
31254+IFS=$as_save_IFS
31255+
31256+fi
31257+fi
31258+ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
31259+if test -n "$ac_ct_MANIFEST_TOOL"; then
31260+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
31261+$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
31262+else
31263+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31264+$as_echo "no" >&6; }
31265+fi
31266+
31267+ if test "x$ac_ct_MANIFEST_TOOL" = x; then
31268+ MANIFEST_TOOL=":"
31269+ else
31270+ case $cross_compiling:$ac_tool_warned in
31271+yes:)
31272+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
31273+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
31274+ac_tool_warned=yes ;;
31275+esac
31276+ MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
31277+ fi
31278+else
31279+ MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
31280+fi
31281+
31282+test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
31283+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
31284+$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
31285+if ${lt_cv_path_mainfest_tool+:} false; then :
31286+ $as_echo_n "(cached) " >&6
31287+else
31288+ lt_cv_path_mainfest_tool=no
31289+ echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
31290+ $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
31291+ cat conftest.err >&5
31292+ if $GREP 'Manifest Tool' conftest.out > /dev/null; then
31293+ lt_cv_path_mainfest_tool=yes
31294+ fi
31295+ rm -f conftest*
31296+fi
31297+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
31298+$as_echo "$lt_cv_path_mainfest_tool" >&6; }
31299+if test "x$lt_cv_path_mainfest_tool" != xyes; then
31300+ MANIFEST_TOOL=:
31301+fi
31302+
31303+
31304+
31305+
31306+
31307
31308 case $host_os in
31309 rhapsody* | darwin*)
31310@@ -7561,6 +8054,8 @@ _LT_EOF
31311 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
31312 echo "$AR cru libconftest.a conftest.o" >&5
31313 $AR cru libconftest.a conftest.o 2>&5
31314+ echo "$RANLIB libconftest.a" >&5
31315+ $RANLIB libconftest.a 2>&5
31316 cat > conftest.c << _LT_EOF
31317 int main() { return 0;}
31318 _LT_EOF
31319@@ -8115,8 +8610,6 @@ fi
31320 lt_prog_compiler_pic=
31321 lt_prog_compiler_static=
31322
31323-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
31324-$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
31325
31326 if test "$GCC" = yes; then
31327 lt_prog_compiler_wl='-Wl,'
31328@@ -8282,6 +8775,12 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
31329 lt_prog_compiler_pic='--shared'
31330 lt_prog_compiler_static='--static'
31331 ;;
31332+ nagfor*)
31333+ # NAG Fortran compiler
31334+ lt_prog_compiler_wl='-Wl,-Wl,,'
31335+ lt_prog_compiler_pic='-PIC'
31336+ lt_prog_compiler_static='-Bstatic'
31337+ ;;
31338 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
31339 # Portland Group compilers (*not* the Pentium gcc compiler,
31340 # which looks to be a dead project)
31341@@ -8344,7 +8843,7 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
31342 lt_prog_compiler_pic='-KPIC'
31343 lt_prog_compiler_static='-Bstatic'
31344 case $cc_basename in
31345- f77* | f90* | f95*)
31346+ f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
31347 lt_prog_compiler_wl='-Qoption ld ';;
31348 *)
31349 lt_prog_compiler_wl='-Wl,';;
31350@@ -8401,13 +8900,17 @@ case $host_os in
31351 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
31352 ;;
31353 esac
31354-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
31355-$as_echo "$lt_prog_compiler_pic" >&6; }
31356-
31357-
31358-
31359-
31360
31361+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
31362+$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
31363+if ${lt_cv_prog_compiler_pic+:} false; then :
31364+ $as_echo_n "(cached) " >&6
31365+else
31366+ lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
31367+fi
31368+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
31369+$as_echo "$lt_cv_prog_compiler_pic" >&6; }
31370+lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
31371
31372 #
31373 # Check to make sure the PIC flag actually works.
31374@@ -8468,6 +8971,11 @@ fi
31375
31376
31377
31378+
31379+
31380+
31381+
31382+
31383 #
31384 # Check to make sure the static flag actually works.
31385 #
31386@@ -8818,7 +9326,8 @@ _LT_EOF
31387 allow_undefined_flag=unsupported
31388 always_export_symbols=no
31389 enable_shared_with_static_runtimes=yes
31390- export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
31391+ 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'
31392+ exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
31393
31394 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
31395 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
31396@@ -8917,12 +9426,12 @@ _LT_EOF
31397 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
31398 hardcode_libdir_flag_spec=
31399 hardcode_libdir_flag_spec_ld='-rpath $libdir'
31400- archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
31401+ archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
31402 if test "x$supports_anon_versioning" = xyes; then
31403 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
31404 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
31405 echo "local: *; };" >> $output_objdir/$libname.ver~
31406- $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
31407+ $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
31408 fi
31409 ;;
31410 esac
31411@@ -8936,8 +9445,8 @@ _LT_EOF
31412 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
31413 wlarc=
31414 else
31415- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
31416- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
31417+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
31418+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
31419 fi
31420 ;;
31421
31422@@ -8955,8 +9464,8 @@ _LT_EOF
31423
31424 _LT_EOF
31425 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
31426- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
31427- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
31428+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
31429+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
31430 else
31431 ld_shlibs=no
31432 fi
31433@@ -9002,8 +9511,8 @@ _LT_EOF
31434
31435 *)
31436 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
31437- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
31438- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
31439+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
31440+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
31441 else
31442 ld_shlibs=no
31443 fi
31444@@ -9133,7 +9642,13 @@ _LT_EOF
31445 allow_undefined_flag='-berok'
31446 # Determine the default libpath from the value encoded in an
31447 # empty executable.
31448- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31449+ if test "${lt_cv_aix_libpath+set}" = set; then
31450+ aix_libpath=$lt_cv_aix_libpath
31451+else
31452+ if ${lt_cv_aix_libpath_+:} false; then :
31453+ $as_echo_n "(cached) " >&6
31454+else
31455+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31456 /* end confdefs.h. */
31457
31458 int
31459@@ -9146,22 +9661,29 @@ main ()
31460 _ACEOF
31461 if ac_fn_c_try_link "$LINENO"; then :
31462
31463-lt_aix_libpath_sed='
31464- /Import File Strings/,/^$/ {
31465- /^0/ {
31466- s/^0 *\(.*\)$/\1/
31467- p
31468- }
31469- }'
31470-aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
31471-# Check for a 64-bit object if we didn't find anything.
31472-if test -z "$aix_libpath"; then
31473- aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
31474-fi
31475+ lt_aix_libpath_sed='
31476+ /Import File Strings/,/^$/ {
31477+ /^0/ {
31478+ s/^0 *\([^ ]*\) *$/\1/
31479+ p
31480+ }
31481+ }'
31482+ lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
31483+ # Check for a 64-bit object if we didn't find anything.
31484+ if test -z "$lt_cv_aix_libpath_"; then
31485+ lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
31486+ fi
31487 fi
31488 rm -f core conftest.err conftest.$ac_objext \
31489 conftest$ac_exeext conftest.$ac_ext
31490-if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
31491+ if test -z "$lt_cv_aix_libpath_"; then
31492+ lt_cv_aix_libpath_="/usr/lib:/lib"
31493+ fi
31494+
31495+fi
31496+
31497+ aix_libpath=$lt_cv_aix_libpath_
31498+fi
31499
31500 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
31501 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"
31502@@ -9173,7 +9695,13 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
31503 else
31504 # Determine the default libpath from the value encoded in an
31505 # empty executable.
31506- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31507+ if test "${lt_cv_aix_libpath+set}" = set; then
31508+ aix_libpath=$lt_cv_aix_libpath
31509+else
31510+ if ${lt_cv_aix_libpath_+:} false; then :
31511+ $as_echo_n "(cached) " >&6
31512+else
31513+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31514 /* end confdefs.h. */
31515
31516 int
31517@@ -9186,22 +9714,29 @@ main ()
31518 _ACEOF
31519 if ac_fn_c_try_link "$LINENO"; then :
31520
31521-lt_aix_libpath_sed='
31522- /Import File Strings/,/^$/ {
31523- /^0/ {
31524- s/^0 *\(.*\)$/\1/
31525- p
31526- }
31527- }'
31528-aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
31529-# Check for a 64-bit object if we didn't find anything.
31530-if test -z "$aix_libpath"; then
31531- aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
31532-fi
31533+ lt_aix_libpath_sed='
31534+ /Import File Strings/,/^$/ {
31535+ /^0/ {
31536+ s/^0 *\([^ ]*\) *$/\1/
31537+ p
31538+ }
31539+ }'
31540+ lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
31541+ # Check for a 64-bit object if we didn't find anything.
31542+ if test -z "$lt_cv_aix_libpath_"; then
31543+ lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
31544+ fi
31545 fi
31546 rm -f core conftest.err conftest.$ac_objext \
31547 conftest$ac_exeext conftest.$ac_ext
31548-if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
31549+ if test -z "$lt_cv_aix_libpath_"; then
31550+ lt_cv_aix_libpath_="/usr/lib:/lib"
31551+ fi
31552+
31553+fi
31554+
31555+ aix_libpath=$lt_cv_aix_libpath_
31556+fi
31557
31558 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
31559 # Warning - without using the other run time loading flags,
31560@@ -9246,20 +9781,63 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
31561 # Microsoft Visual C++.
31562 # hardcode_libdir_flag_spec is actually meaningless, as there is
31563 # no search path for DLLs.
31564- hardcode_libdir_flag_spec=' '
31565- allow_undefined_flag=unsupported
31566- # Tell ltmain to make .lib files, not .a files.
31567- libext=lib
31568- # Tell ltmain to make .dll files, not .so files.
31569- shrext_cmds=".dll"
31570- # FIXME: Setting linknames here is a bad hack.
31571- archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
31572- # The linker will automatically build a .lib file if we build a DLL.
31573- old_archive_from_new_cmds='true'
31574- # FIXME: Should let the user specify the lib program.
31575- old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
31576- fix_srcfile_path='`cygpath -w "$srcfile"`'
31577- enable_shared_with_static_runtimes=yes
31578+ case $cc_basename in
31579+ cl*)
31580+ # Native MSVC
31581+ hardcode_libdir_flag_spec=' '
31582+ allow_undefined_flag=unsupported
31583+ always_export_symbols=yes
31584+ file_list_spec='@'
31585+ # Tell ltmain to make .lib files, not .a files.
31586+ libext=lib
31587+ # Tell ltmain to make .dll files, not .so files.
31588+ shrext_cmds=".dll"
31589+ # FIXME: Setting linknames here is a bad hack.
31590+ archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
31591+ archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
31592+ sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
31593+ else
31594+ sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
31595+ fi~
31596+ $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
31597+ linknames='
31598+ # The linker will not automatically build a static lib if we build a DLL.
31599+ # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
31600+ enable_shared_with_static_runtimes=yes
31601+ export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
31602+ # Don't use ranlib
31603+ old_postinstall_cmds='chmod 644 $oldlib'
31604+ postlink_cmds='lt_outputfile="@OUTPUT@"~
31605+ lt_tool_outputfile="@TOOL_OUTPUT@"~
31606+ case $lt_outputfile in
31607+ *.exe|*.EXE) ;;
31608+ *)
31609+ lt_outputfile="$lt_outputfile.exe"
31610+ lt_tool_outputfile="$lt_tool_outputfile.exe"
31611+ ;;
31612+ esac~
31613+ if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
31614+ $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
31615+ $RM "$lt_outputfile.manifest";
31616+ fi'
31617+ ;;
31618+ *)
31619+ # Assume MSVC wrapper
31620+ hardcode_libdir_flag_spec=' '
31621+ allow_undefined_flag=unsupported
31622+ # Tell ltmain to make .lib files, not .a files.
31623+ libext=lib
31624+ # Tell ltmain to make .dll files, not .so files.
31625+ shrext_cmds=".dll"
31626+ # FIXME: Setting linknames here is a bad hack.
31627+ archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
31628+ # The linker will automatically build a .lib file if we build a DLL.
31629+ old_archive_from_new_cmds='true'
31630+ # FIXME: Should let the user specify the lib program.
31631+ old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
31632+ enable_shared_with_static_runtimes=yes
31633+ ;;
31634+ esac
31635 ;;
31636
31637 darwin* | rhapsody*)
31638@@ -9320,7 +9898,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
31639
31640 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
31641 freebsd* | dragonfly*)
31642- archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
31643+ archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
31644 hardcode_libdir_flag_spec='-R$libdir'
31645 hardcode_direct=yes
31646 hardcode_shlibpath_var=no
31647@@ -9328,7 +9906,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
31648
31649 hpux9*)
31650 if test "$GCC" = yes; then
31651- 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'
31652+ 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'
31653 else
31654 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'
31655 fi
31656@@ -9344,7 +9922,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
31657
31658 hpux10*)
31659 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
31660- archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
31661+ archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
31662 else
31663 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
31664 fi
31665@@ -9368,10 +9946,10 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
31666 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
31667 ;;
31668 ia64*)
31669- archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
31670+ archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
31671 ;;
31672 *)
31673- archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
31674+ archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
31675 ;;
31676 esac
31677 else
31678@@ -9450,23 +10028,36 @@ fi
31679
31680 irix5* | irix6* | nonstopux*)
31681 if test "$GCC" = yes; then
31682- 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'
31683+ 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'
31684 # Try to use the -exported_symbol ld option, if it does not
31685 # work, assume that -exports_file does not work either and
31686 # implicitly export all symbols.
31687- save_LDFLAGS="$LDFLAGS"
31688- LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
31689- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31690+ # This should be the same for all languages, so no per-tag cache variable.
31691+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
31692+$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
31693+if ${lt_cv_irix_exported_symbol+:} false; then :
31694+ $as_echo_n "(cached) " >&6
31695+else
31696+ save_LDFLAGS="$LDFLAGS"
31697+ LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
31698+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31699 /* end confdefs.h. */
31700-int foo(void) {}
31701+int foo (void) { return 0; }
31702 _ACEOF
31703 if ac_fn_c_try_link "$LINENO"; then :
31704- 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'
31705-
31706+ lt_cv_irix_exported_symbol=yes
31707+else
31708+ lt_cv_irix_exported_symbol=no
31709 fi
31710 rm -f core conftest.err conftest.$ac_objext \
31711 conftest$ac_exeext conftest.$ac_ext
31712- LDFLAGS="$save_LDFLAGS"
31713+ LDFLAGS="$save_LDFLAGS"
31714+fi
31715+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
31716+$as_echo "$lt_cv_irix_exported_symbol" >&6; }
31717+ if test "$lt_cv_irix_exported_symbol" = yes; then
31718+ 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'
31719+ fi
31720 else
31721 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'
31722 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'
31723@@ -9551,7 +10142,7 @@ rm -f core conftest.err conftest.$ac_objext \
31724 osf4* | osf5*) # as osf3* with the addition of -msym flag
31725 if test "$GCC" = yes; then
31726 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
31727- 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'
31728+ 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'
31729 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
31730 else
31731 allow_undefined_flag=' -expect_unresolved \*'
31732@@ -9570,9 +10161,9 @@ rm -f core conftest.err conftest.$ac_objext \
31733 no_undefined_flag=' -z defs'
31734 if test "$GCC" = yes; then
31735 wlarc='${wl}'
31736- archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
31737+ archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
31738 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
31739- $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
31740+ $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'
31741 else
31742 case `$CC -V 2>&1` in
31743 *"Compilers 5.0"*)
31744@@ -10148,8 +10739,9 @@ cygwin* | mingw* | pw32* | cegcc*)
31745 need_version=no
31746 need_lib_prefix=no
31747
31748- case $GCC,$host_os in
31749- yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
31750+ case $GCC,$cc_basename in
31751+ yes,*)
31752+ # gcc
31753 library_names_spec='$libname.dll.a'
31754 # DLL is installed to $(libdir)/../bin by postinstall_cmds
31755 postinstall_cmds='base_file=`basename \${file}`~
31756@@ -10182,13 +10774,71 @@ cygwin* | mingw* | pw32* | cegcc*)
31757 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
31758 ;;
31759 esac
31760+ dynamic_linker='Win32 ld.exe'
31761+ ;;
31762+
31763+ *,cl*)
31764+ # Native MSVC
31765+ libname_spec='$name'
31766+ soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
31767+ library_names_spec='${libname}.dll.lib'
31768+
31769+ case $build_os in
31770+ mingw*)
31771+ sys_lib_search_path_spec=
31772+ lt_save_ifs=$IFS
31773+ IFS=';'
31774+ for lt_path in $LIB
31775+ do
31776+ IFS=$lt_save_ifs
31777+ # Let DOS variable expansion print the short 8.3 style file name.
31778+ lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
31779+ sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
31780+ done
31781+ IFS=$lt_save_ifs
31782+ # Convert to MSYS style.
31783+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
31784+ ;;
31785+ cygwin*)
31786+ # Convert to unix form, then to dos form, then back to unix form
31787+ # but this time dos style (no spaces!) so that the unix form looks
31788+ # like /cygdrive/c/PROGRA~1:/cygdr...
31789+ sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
31790+ sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
31791+ sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
31792+ ;;
31793+ *)
31794+ sys_lib_search_path_spec="$LIB"
31795+ if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
31796+ # It is most probably a Windows format PATH.
31797+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
31798+ else
31799+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
31800+ fi
31801+ # FIXME: find the short name or the path components, as spaces are
31802+ # common. (e.g. "Program Files" -> "PROGRA~1")
31803+ ;;
31804+ esac
31805+
31806+ # DLL is installed to $(libdir)/../bin by postinstall_cmds
31807+ postinstall_cmds='base_file=`basename \${file}`~
31808+ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
31809+ dldir=$destdir/`dirname \$dlpath`~
31810+ test -d \$dldir || mkdir -p \$dldir~
31811+ $install_prog $dir/$dlname \$dldir/$dlname'
31812+ postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
31813+ dlpath=$dir/\$dldll~
31814+ $RM \$dlpath'
31815+ shlibpath_overrides_runpath=yes
31816+ dynamic_linker='Win32 link.exe'
31817 ;;
31818
31819 *)
31820+ # Assume MSVC wrapper
31821 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
31822+ dynamic_linker='Win32 ld.exe'
31823 ;;
31824 esac
31825- dynamic_linker='Win32 ld.exe'
31826 # FIXME: first we should search . and the directory the executable is in
31827 shlibpath_var=PATH
31828 ;;
31829@@ -11090,7 +11740,7 @@ else
31830 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
31831 lt_status=$lt_dlunknown
31832 cat > conftest.$ac_ext <<_LT_EOF
31833-#line 11093 "configure"
31834+#line $LINENO "configure"
31835 #include "confdefs.h"
31836
31837 #if HAVE_DLFCN_H
31838@@ -11134,10 +11784,10 @@ else
31839 /* When -fvisbility=hidden is used, assume the code has been annotated
31840 correspondingly for the symbols needed. */
31841 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
31842-void fnord () __attribute__((visibility("default")));
31843+int fnord () __attribute__((visibility("default")));
31844 #endif
31845
31846-void fnord () { int i=42; }
31847+int fnord () { return 42; }
31848 int main ()
31849 {
31850 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
31851@@ -11196,7 +11846,7 @@ else
31852 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
31853 lt_status=$lt_dlunknown
31854 cat > conftest.$ac_ext <<_LT_EOF
31855-#line 11199 "configure"
31856+#line $LINENO "configure"
31857 #include "confdefs.h"
31858
31859 #if HAVE_DLFCN_H
31860@@ -11240,10 +11890,10 @@ else
31861 /* When -fvisbility=hidden is used, assume the code has been annotated
31862 correspondingly for the symbols needed. */
31863 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
31864-void fnord () __attribute__((visibility("default")));
31865+int fnord () __attribute__((visibility("default")));
31866 #endif
31867
31868-void fnord () { int i=42; }
31869+int fnord () { return 42; }
31870 int main ()
31871 {
31872 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
31873@@ -15349,13 +15999,20 @@ exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
31874 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
31875 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
31876 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
31877+lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
31878+lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
31879 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
31880 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
31881 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
31882 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
31883 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
31884+file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
31885+want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
31886+DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
31887+sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
31888 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
31889 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
31890+archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
31891 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
31892 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
31893 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
31894@@ -15370,14 +16027,17 @@ lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$de
31895 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
31896 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
31897 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"`'
31898+nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
31899+lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
31900 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
31901 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
31902 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
31903-lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
31904 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
31905+lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
31906 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
31907 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
31908 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
31909+MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
31910 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
31911 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
31912 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
31913@@ -15410,12 +16070,12 @@ hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_q
31914 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
31915 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
31916 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
31917-fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
31918 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
31919 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
31920 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
31921 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
31922 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
31923+postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
31924 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
31925 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
31926 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
31927@@ -15470,8 +16130,13 @@ reload_flag \
31928 OBJDUMP \
31929 deplibs_check_method \
31930 file_magic_cmd \
31931+file_magic_glob \
31932+want_nocaseglob \
31933+DLLTOOL \
31934+sharedlib_from_linklib_cmd \
31935 AR \
31936 AR_FLAGS \
31937+archiver_list_spec \
31938 STRIP \
31939 RANLIB \
31940 CC \
31941@@ -15481,12 +16146,14 @@ lt_cv_sys_global_symbol_pipe \
31942 lt_cv_sys_global_symbol_to_cdecl \
31943 lt_cv_sys_global_symbol_to_c_name_address \
31944 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
31945+nm_file_list_spec \
31946 lt_prog_compiler_no_builtin_flag \
31947-lt_prog_compiler_wl \
31948 lt_prog_compiler_pic \
31949+lt_prog_compiler_wl \
31950 lt_prog_compiler_static \
31951 lt_cv_prog_compiler_c_o \
31952 need_locks \
31953+MANIFEST_TOOL \
31954 DSYMUTIL \
31955 NMEDIT \
31956 LIPO \
31957@@ -15502,7 +16169,6 @@ no_undefined_flag \
31958 hardcode_libdir_flag_spec \
31959 hardcode_libdir_flag_spec_ld \
31960 hardcode_libdir_separator \
31961-fix_srcfile_path \
31962 exclude_expsyms \
31963 include_expsyms \
31964 file_list_spec \
31965@@ -15538,6 +16204,7 @@ module_cmds \
31966 module_expsym_cmds \
31967 export_symbols_cmds \
31968 prelink_cmds \
31969+postlink_cmds \
31970 postinstall_cmds \
31971 postuninstall_cmds \
31972 finish_cmds \
31973@@ -16311,7 +16978,8 @@ $as_echo X"$file" |
31974 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
31975 #
31976 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
31977-# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
31978+# 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
31979+# Inc.
31980 # Written by Gordon Matzigkeit, 1996
31981 #
31982 # This file is part of GNU Libtool.
31983@@ -16414,19 +17082,42 @@ SP2NL=$lt_lt_SP2NL
31984 # turn newlines into spaces.
31985 NL2SP=$lt_lt_NL2SP
31986
31987+# convert \$build file names to \$host format.
31988+to_host_file_cmd=$lt_cv_to_host_file_cmd
31989+
31990+# convert \$build files to toolchain format.
31991+to_tool_file_cmd=$lt_cv_to_tool_file_cmd
31992+
31993 # An object symbol dumper.
31994 OBJDUMP=$lt_OBJDUMP
31995
31996 # Method to check whether dependent libraries are shared objects.
31997 deplibs_check_method=$lt_deplibs_check_method
31998
31999-# Command to use when deplibs_check_method == "file_magic".
32000+# Command to use when deplibs_check_method = "file_magic".
32001 file_magic_cmd=$lt_file_magic_cmd
32002
32003+# How to find potential files when deplibs_check_method = "file_magic".
32004+file_magic_glob=$lt_file_magic_glob
32005+
32006+# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
32007+want_nocaseglob=$lt_want_nocaseglob
32008+
32009+# DLL creation program.
32010+DLLTOOL=$lt_DLLTOOL
32011+
32012+# Command to associate shared and link libraries.
32013+sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
32014+
32015 # The archiver.
32016 AR=$lt_AR
32017+
32018+# Flags to create an archive.
32019 AR_FLAGS=$lt_AR_FLAGS
32020
32021+# How to feed a file listing to the archiver.
32022+archiver_list_spec=$lt_archiver_list_spec
32023+
32024 # A symbol stripping program.
32025 STRIP=$lt_STRIP
32026
32027@@ -16456,6 +17147,12 @@ global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
32028 # Transform the output of nm in a C name address pair when lib prefix is needed.
32029 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
32030
32031+# Specify filename containing input files for \$NM.
32032+nm_file_list_spec=$lt_nm_file_list_spec
32033+
32034+# The root where to search for dependent libraries,and in which our libraries should be installed.
32035+lt_sysroot=$lt_sysroot
32036+
32037 # The name of the directory that contains temporary libtool files.
32038 objdir=$objdir
32039
32040@@ -16465,6 +17162,9 @@ MAGIC_CMD=$MAGIC_CMD
32041 # Must we lock files when doing compilation?
32042 need_locks=$lt_need_locks
32043
32044+# Manifest tool.
32045+MANIFEST_TOOL=$lt_MANIFEST_TOOL
32046+
32047 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
32048 DSYMUTIL=$lt_DSYMUTIL
32049
32050@@ -16579,12 +17279,12 @@ with_gcc=$GCC
32051 # Compiler flag to turn off builtin functions.
32052 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
32053
32054-# How to pass a linker flag through the compiler.
32055-wl=$lt_lt_prog_compiler_wl
32056-
32057 # Additional compiler flags for building library objects.
32058 pic_flag=$lt_lt_prog_compiler_pic
32059
32060+# How to pass a linker flag through the compiler.
32061+wl=$lt_lt_prog_compiler_wl
32062+
32063 # Compiler flag to prevent dynamic linking.
32064 link_static_flag=$lt_lt_prog_compiler_static
32065
32066@@ -16671,9 +17371,6 @@ inherit_rpath=$inherit_rpath
32067 # Whether libtool must link a program against all its dependency libraries.
32068 link_all_deplibs=$link_all_deplibs
32069
32070-# Fix the shell variable \$srcfile for the compiler.
32071-fix_srcfile_path=$lt_fix_srcfile_path
32072-
32073 # Set to "yes" if exported symbols are required.
32074 always_export_symbols=$always_export_symbols
32075
32076@@ -16689,6 +17386,9 @@ include_expsyms=$lt_include_expsyms
32077 # Commands necessary for linking programs (against libraries) with templates.
32078 prelink_cmds=$lt_prelink_cmds
32079
32080+# Commands necessary for finishing linking programs.
32081+postlink_cmds=$lt_postlink_cmds
32082+
32083 # Specify filename containing input files.
32084 file_list_spec=$lt_file_list_spec
32085
32086@@ -16721,210 +17421,169 @@ ltmain="$ac_aux_dir/ltmain.sh"
32087 # if finds mixed CR/LF and LF-only lines. Since sed operates in
32088 # text mode, it properly converts lines to CR/LF. This bash problem
32089 # is reportedly fixed, but why not run on old versions too?
32090- sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
32091- || (rm -f "$cfgfile"; exit 1)
32092-
32093- case $xsi_shell in
32094- yes)
32095- cat << \_LT_EOF >> "$cfgfile"
32096-
32097-# func_dirname file append nondir_replacement
32098-# Compute the dirname of FILE. If nonempty, add APPEND to the result,
32099-# otherwise set result to NONDIR_REPLACEMENT.
32100-func_dirname ()
32101-{
32102- case ${1} in
32103- */*) func_dirname_result="${1%/*}${2}" ;;
32104- * ) func_dirname_result="${3}" ;;
32105- esac
32106-}
32107-
32108-# func_basename file
32109-func_basename ()
32110-{
32111- func_basename_result="${1##*/}"
32112-}
32113-
32114-# func_dirname_and_basename file append nondir_replacement
32115-# perform func_basename and func_dirname in a single function
32116-# call:
32117-# dirname: Compute the dirname of FILE. If nonempty,
32118-# add APPEND to the result, otherwise set result
32119-# to NONDIR_REPLACEMENT.
32120-# value returned in "$func_dirname_result"
32121-# basename: Compute filename of FILE.
32122-# value retuned in "$func_basename_result"
32123-# Implementation must be kept synchronized with func_dirname
32124-# and func_basename. For efficiency, we do not delegate to
32125-# those functions but instead duplicate the functionality here.
32126-func_dirname_and_basename ()
32127-{
32128- case ${1} in
32129- */*) func_dirname_result="${1%/*}${2}" ;;
32130- * ) func_dirname_result="${3}" ;;
32131- esac
32132- func_basename_result="${1##*/}"
32133-}
32134-
32135-# func_stripname prefix suffix name
32136-# strip PREFIX and SUFFIX off of NAME.
32137-# PREFIX and SUFFIX must not contain globbing or regex special
32138-# characters, hashes, percent signs, but SUFFIX may contain a leading
32139-# dot (in which case that matches only a dot).
32140-func_stripname ()
32141-{
32142- # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
32143- # positional parameters, so assign one to ordinary parameter first.
32144- func_stripname_result=${3}
32145- func_stripname_result=${func_stripname_result#"${1}"}
32146- func_stripname_result=${func_stripname_result%"${2}"}
32147-}
32148-
32149-# func_opt_split
32150-func_opt_split ()
32151-{
32152- func_opt_split_opt=${1%%=*}
32153- func_opt_split_arg=${1#*=}
32154-}
32155-
32156-# func_lo2o object
32157-func_lo2o ()
32158-{
32159- case ${1} in
32160- *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
32161- *) func_lo2o_result=${1} ;;
32162- esac
32163-}
32164-
32165-# func_xform libobj-or-source
32166-func_xform ()
32167-{
32168- func_xform_result=${1%.*}.lo
32169-}
32170-
32171-# func_arith arithmetic-term...
32172-func_arith ()
32173-{
32174- func_arith_result=$(( $* ))
32175-}
32176-
32177-# func_len string
32178-# STRING may not start with a hyphen.
32179-func_len ()
32180-{
32181- func_len_result=${#1}
32182-}
32183-
32184-_LT_EOF
32185- ;;
32186- *) # Bourne compatible functions.
32187- cat << \_LT_EOF >> "$cfgfile"
32188-
32189-# func_dirname file append nondir_replacement
32190-# Compute the dirname of FILE. If nonempty, add APPEND to the result,
32191-# otherwise set result to NONDIR_REPLACEMENT.
32192-func_dirname ()
32193-{
32194- # Extract subdirectory from the argument.
32195- func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
32196- if test "X$func_dirname_result" = "X${1}"; then
32197- func_dirname_result="${3}"
32198- else
32199- func_dirname_result="$func_dirname_result${2}"
32200- fi
32201-}
32202-
32203-# func_basename file
32204-func_basename ()
32205-{
32206- func_basename_result=`$ECHO "${1}" | $SED "$basename"`
32207-}
32208-
32209-
32210-# func_stripname prefix suffix name
32211-# strip PREFIX and SUFFIX off of NAME.
32212-# PREFIX and SUFFIX must not contain globbing or regex special
32213-# characters, hashes, percent signs, but SUFFIX may contain a leading
32214-# dot (in which case that matches only a dot).
32215-# func_strip_suffix prefix name
32216-func_stripname ()
32217-{
32218- case ${2} in
32219- .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
32220- *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
32221- esac
32222-}
32223-
32224-# sed scripts:
32225-my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
32226-my_sed_long_arg='1s/^-[^=]*=//'
32227-
32228-# func_opt_split
32229-func_opt_split ()
32230-{
32231- func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
32232- func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
32233-}
32234-
32235-# func_lo2o object
32236-func_lo2o ()
32237-{
32238- func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
32239-}
32240-
32241-# func_xform libobj-or-source
32242-func_xform ()
32243-{
32244- func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
32245-}
32246-
32247-# func_arith arithmetic-term...
32248-func_arith ()
32249-{
32250- func_arith_result=`expr "$@"`
32251-}
32252-
32253-# func_len string
32254-# STRING may not start with a hyphen.
32255-func_len ()
32256-{
32257- func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
32258-}
32259-
32260-_LT_EOF
32261-esac
32262-
32263-case $lt_shell_append in
32264- yes)
32265- cat << \_LT_EOF >> "$cfgfile"
32266-
32267-# func_append var value
32268-# Append VALUE to the end of shell variable VAR.
32269-func_append ()
32270-{
32271- eval "$1+=\$2"
32272-}
32273-_LT_EOF
32274- ;;
32275- *)
32276- cat << \_LT_EOF >> "$cfgfile"
32277-
32278-# func_append var value
32279-# Append VALUE to the end of shell variable VAR.
32280-func_append ()
32281-{
32282- eval "$1=\$$1\$2"
32283-}
32284-
32285-_LT_EOF
32286- ;;
32287- esac
32288-
32289-
32290- sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
32291- || (rm -f "$cfgfile"; exit 1)
32292-
32293- mv -f "$cfgfile" "$ofile" ||
32294+ sed '$q' "$ltmain" >> "$cfgfile" \
32295+ || (rm -f "$cfgfile"; exit 1)
32296+
32297+ if test x"$xsi_shell" = xyes; then
32298+ sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
32299+func_dirname ()\
32300+{\
32301+\ case ${1} in\
32302+\ */*) func_dirname_result="${1%/*}${2}" ;;\
32303+\ * ) func_dirname_result="${3}" ;;\
32304+\ esac\
32305+} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
32306+ && mv -f "$cfgfile.tmp" "$cfgfile" \
32307+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32308+test 0 -eq $? || _lt_function_replace_fail=:
32309+
32310+
32311+ sed -e '/^func_basename ()$/,/^} # func_basename /c\
32312+func_basename ()\
32313+{\
32314+\ func_basename_result="${1##*/}"\
32315+} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
32316+ && mv -f "$cfgfile.tmp" "$cfgfile" \
32317+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32318+test 0 -eq $? || _lt_function_replace_fail=:
32319+
32320+
32321+ sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
32322+func_dirname_and_basename ()\
32323+{\
32324+\ case ${1} in\
32325+\ */*) func_dirname_result="${1%/*}${2}" ;;\
32326+\ * ) func_dirname_result="${3}" ;;\
32327+\ esac\
32328+\ func_basename_result="${1##*/}"\
32329+} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
32330+ && mv -f "$cfgfile.tmp" "$cfgfile" \
32331+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32332+test 0 -eq $? || _lt_function_replace_fail=:
32333+
32334+
32335+ sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
32336+func_stripname ()\
32337+{\
32338+\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
32339+\ # positional parameters, so assign one to ordinary parameter first.\
32340+\ func_stripname_result=${3}\
32341+\ func_stripname_result=${func_stripname_result#"${1}"}\
32342+\ func_stripname_result=${func_stripname_result%"${2}"}\
32343+} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
32344+ && mv -f "$cfgfile.tmp" "$cfgfile" \
32345+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32346+test 0 -eq $? || _lt_function_replace_fail=:
32347+
32348+
32349+ sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
32350+func_split_long_opt ()\
32351+{\
32352+\ func_split_long_opt_name=${1%%=*}\
32353+\ func_split_long_opt_arg=${1#*=}\
32354+} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
32355+ && mv -f "$cfgfile.tmp" "$cfgfile" \
32356+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32357+test 0 -eq $? || _lt_function_replace_fail=:
32358+
32359+
32360+ sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
32361+func_split_short_opt ()\
32362+{\
32363+\ func_split_short_opt_arg=${1#??}\
32364+\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
32365+} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
32366+ && mv -f "$cfgfile.tmp" "$cfgfile" \
32367+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32368+test 0 -eq $? || _lt_function_replace_fail=:
32369+
32370+
32371+ sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
32372+func_lo2o ()\
32373+{\
32374+\ case ${1} in\
32375+\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
32376+\ *) func_lo2o_result=${1} ;;\
32377+\ esac\
32378+} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
32379+ && mv -f "$cfgfile.tmp" "$cfgfile" \
32380+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32381+test 0 -eq $? || _lt_function_replace_fail=:
32382+
32383+
32384+ sed -e '/^func_xform ()$/,/^} # func_xform /c\
32385+func_xform ()\
32386+{\
32387+ func_xform_result=${1%.*}.lo\
32388+} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
32389+ && mv -f "$cfgfile.tmp" "$cfgfile" \
32390+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32391+test 0 -eq $? || _lt_function_replace_fail=:
32392+
32393+
32394+ sed -e '/^func_arith ()$/,/^} # func_arith /c\
32395+func_arith ()\
32396+{\
32397+ func_arith_result=$(( $* ))\
32398+} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
32399+ && mv -f "$cfgfile.tmp" "$cfgfile" \
32400+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32401+test 0 -eq $? || _lt_function_replace_fail=:
32402+
32403+
32404+ sed -e '/^func_len ()$/,/^} # func_len /c\
32405+func_len ()\
32406+{\
32407+ func_len_result=${#1}\
32408+} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
32409+ && mv -f "$cfgfile.tmp" "$cfgfile" \
32410+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32411+test 0 -eq $? || _lt_function_replace_fail=:
32412+
32413+fi
32414+
32415+if test x"$lt_shell_append" = xyes; then
32416+ sed -e '/^func_append ()$/,/^} # func_append /c\
32417+func_append ()\
32418+{\
32419+ eval "${1}+=\\${2}"\
32420+} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
32421+ && mv -f "$cfgfile.tmp" "$cfgfile" \
32422+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32423+test 0 -eq $? || _lt_function_replace_fail=:
32424+
32425+
32426+ sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
32427+func_append_quoted ()\
32428+{\
32429+\ func_quote_for_eval "${2}"\
32430+\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
32431+} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
32432+ && mv -f "$cfgfile.tmp" "$cfgfile" \
32433+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32434+test 0 -eq $? || _lt_function_replace_fail=:
32435+
32436+
32437+ # Save a `func_append' function call where possible by direct use of '+='
32438+ sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
32439+ && mv -f "$cfgfile.tmp" "$cfgfile" \
32440+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32441+ test 0 -eq $? || _lt_function_replace_fail=:
32442+else
32443+ # Save a `func_append' function call even when '+=' is not available
32444+ sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
32445+ && mv -f "$cfgfile.tmp" "$cfgfile" \
32446+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32447+ test 0 -eq $? || _lt_function_replace_fail=:
32448+fi
32449+
32450+if test x"$_lt_function_replace_fail" = x":"; then
32451+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
32452+$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
32453+fi
32454+
32455+
32456+ mv -f "$cfgfile" "$ofile" ||
32457 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
32458 chmod +x "$ofile"
32459
32460diff --git a/zlib/Makefile.in b/zlib/Makefile.in
32461index 951260ac4c5..9398823cc09 100644
32462--- a/zlib/Makefile.in
32463+++ b/zlib/Makefile.in
32464@@ -281,6 +281,7 @@ CPPFLAGS = @CPPFLAGS@
32465 CYGPATH_W = @CYGPATH_W@
32466 DEFS = @DEFS@
32467 DEPDIR = @DEPDIR@
32468+DLLTOOL = @DLLTOOL@
32469 DSYMUTIL = @DSYMUTIL@
32470 DUMPBIN = @DUMPBIN@
32471 ECHO_C = @ECHO_C@
32472@@ -305,6 +306,7 @@ LN_S = @LN_S@
32473 LTLIBOBJS = @LTLIBOBJS@
32474 MAINT = @MAINT@
32475 MAKEINFO = @MAKEINFO@
32476+MANIFEST_TOOL = @MANIFEST_TOOL@
32477 MKDIR_P = @MKDIR_P@
32478 NM = @NM@
32479 NMEDIT = @NMEDIT@
32480@@ -331,6 +333,7 @@ abs_builddir = @abs_builddir@
32481 abs_srcdir = @abs_srcdir@
32482 abs_top_builddir = @abs_top_builddir@
32483 abs_top_srcdir = @abs_top_srcdir@
32484+ac_ct_AR = @ac_ct_AR@
32485 ac_ct_CC = @ac_ct_CC@
32486 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
32487 am__include = @am__include@
32488diff --git a/zlib/configure b/zlib/configure
32489index cae55c5ca49..24193ee5db7 100755
32490--- a/zlib/configure
32491+++ b/zlib/configure
32492@@ -648,8 +648,11 @@ OTOOL
32493 LIPO
32494 NMEDIT
32495 DSYMUTIL
32496+MANIFEST_TOOL
32497 RANLIB
32498+ac_ct_AR
32499 AR
32500+DLLTOOL
32501 OBJDUMP
32502 LN_S
32503 NM
32504@@ -776,6 +779,7 @@ enable_static
32505 with_pic
32506 enable_fast_install
32507 with_gnu_ld
32508+with_libtool_sysroot
32509 enable_libtool_lock
32510 enable_host_shared
32511 enable_host_pie
32512@@ -1432,6 +1436,8 @@ Optional Packages:
32513 --with-pic try to use only PIC/non-PIC objects [default=use
32514 both]
32515 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
32516+ --with-libtool-sysroot=DIR Search for dependent libraries within DIR
32517+ (or the compiler's sysroot if not specified).
32518
32519 Some influential environment variables:
32520 CC C compiler command
32521@@ -4189,8 +4195,8 @@ esac
32522
32523
32524
32525-macro_version='2.2.7a'
32526-macro_revision='1.3134'
32527+macro_version='2.4'
32528+macro_revision='1.3293'
32529
32530
32531
32532@@ -4230,7 +4236,7 @@ ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
32533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
32534 $as_echo_n "checking how to print strings... " >&6; }
32535 # Test print first, because it will be a builtin if present.
32536-if test "X`print -r -- -n 2>/dev/null`" = X-n && \
32537+if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
32538 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
32539 ECHO='print -r --'
32540 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
32541@@ -5053,8 +5059,8 @@ $as_echo_n "checking whether the shell understands some XSI constructs... " >&6;
32542 # Try some XSI features
32543 xsi_shell=no
32544 ( _lt_dummy="a/b/c"
32545- test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
32546- = c,a/b,, \
32547+ test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
32548+ = c,a/b,b/c, \
32549 && eval 'test $(( 1 + 1 )) -eq 2 \
32550 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
32551 && xsi_shell=yes
32552@@ -5103,6 +5109,80 @@ esac
32553
32554
32555
32556+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
32557+$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
32558+if ${lt_cv_to_host_file_cmd+:} false; then :
32559+ $as_echo_n "(cached) " >&6
32560+else
32561+ case $host in
32562+ *-*-mingw* )
32563+ case $build in
32564+ *-*-mingw* ) # actually msys
32565+ lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
32566+ ;;
32567+ *-*-cygwin* )
32568+ lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
32569+ ;;
32570+ * ) # otherwise, assume *nix
32571+ lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
32572+ ;;
32573+ esac
32574+ ;;
32575+ *-*-cygwin* )
32576+ case $build in
32577+ *-*-mingw* ) # actually msys
32578+ lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
32579+ ;;
32580+ *-*-cygwin* )
32581+ lt_cv_to_host_file_cmd=func_convert_file_noop
32582+ ;;
32583+ * ) # otherwise, assume *nix
32584+ lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
32585+ ;;
32586+ esac
32587+ ;;
32588+ * ) # unhandled hosts (and "normal" native builds)
32589+ lt_cv_to_host_file_cmd=func_convert_file_noop
32590+ ;;
32591+esac
32592+
32593+fi
32594+
32595+to_host_file_cmd=$lt_cv_to_host_file_cmd
32596+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
32597+$as_echo "$lt_cv_to_host_file_cmd" >&6; }
32598+
32599+
32600+
32601+
32602+
32603+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
32604+$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
32605+if ${lt_cv_to_tool_file_cmd+:} false; then :
32606+ $as_echo_n "(cached) " >&6
32607+else
32608+ #assume ordinary cross tools, or native build.
32609+lt_cv_to_tool_file_cmd=func_convert_file_noop
32610+case $host in
32611+ *-*-mingw* )
32612+ case $build in
32613+ *-*-mingw* ) # actually msys
32614+ lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
32615+ ;;
32616+ esac
32617+ ;;
32618+esac
32619+
32620+fi
32621+
32622+to_tool_file_cmd=$lt_cv_to_tool_file_cmd
32623+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
32624+$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
32625+
32626+
32627+
32628+
32629+
32630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
32631 $as_echo_n "checking for $LD option to reload object files... " >&6; }
32632 if ${lt_cv_ld_reload_flag+:} false; then :
32633@@ -5119,6 +5199,11 @@ case $reload_flag in
32634 esac
32635 reload_cmds='$LD$reload_flag -o $output$reload_objs'
32636 case $host_os in
32637+ cygwin* | mingw* | pw32* | cegcc*)
32638+ if test "$GCC" != yes; then
32639+ reload_cmds=false
32640+ fi
32641+ ;;
32642 darwin*)
32643 if test "$GCC" = yes; then
32644 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
32645@@ -5287,7 +5372,8 @@ mingw* | pw32*)
32646 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
32647 lt_cv_file_magic_cmd='func_win32_libid'
32648 else
32649- lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
32650+ # Keep this pattern in sync with the one in func_win32_libid.
32651+ lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
32652 lt_cv_file_magic_cmd='$OBJDUMP -f'
32653 fi
32654 ;;
32655@@ -5446,6 +5532,21 @@ esac
32656 fi
32657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
32658 $as_echo "$lt_cv_deplibs_check_method" >&6; }
32659+
32660+file_magic_glob=
32661+want_nocaseglob=no
32662+if test "$build" = "$host"; then
32663+ case $host_os in
32664+ mingw* | pw32*)
32665+ if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
32666+ want_nocaseglob=yes
32667+ else
32668+ file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
32669+ fi
32670+ ;;
32671+ esac
32672+fi
32673+
32674 file_magic_cmd=$lt_cv_file_magic_cmd
32675 deplibs_check_method=$lt_cv_deplibs_check_method
32676 test -z "$deplibs_check_method" && deplibs_check_method=unknown
32677@@ -5461,6 +5562,158 @@ test -z "$deplibs_check_method" && deplibs_check_method=unknown
32678
32679
32680
32681+
32682+
32683+
32684+
32685+
32686+
32687+
32688+
32689+
32690+
32691+if test -n "$ac_tool_prefix"; then
32692+ # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
32693+set dummy ${ac_tool_prefix}dlltool; ac_word=$2
32694+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32695+$as_echo_n "checking for $ac_word... " >&6; }
32696+if ${ac_cv_prog_DLLTOOL+:} false; then :
32697+ $as_echo_n "(cached) " >&6
32698+else
32699+ if test -n "$DLLTOOL"; then
32700+ ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
32701+else
32702+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32703+for as_dir in $PATH
32704+do
32705+ IFS=$as_save_IFS
32706+ test -z "$as_dir" && as_dir=.
32707+ for ac_exec_ext in '' $ac_executable_extensions; do
32708+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32709+ ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
32710+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32711+ break 2
32712+ fi
32713+done
32714+ done
32715+IFS=$as_save_IFS
32716+
32717+fi
32718+fi
32719+DLLTOOL=$ac_cv_prog_DLLTOOL
32720+if test -n "$DLLTOOL"; then
32721+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
32722+$as_echo "$DLLTOOL" >&6; }
32723+else
32724+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32725+$as_echo "no" >&6; }
32726+fi
32727+
32728+
32729+fi
32730+if test -z "$ac_cv_prog_DLLTOOL"; then
32731+ ac_ct_DLLTOOL=$DLLTOOL
32732+ # Extract the first word of "dlltool", so it can be a program name with args.
32733+set dummy dlltool; ac_word=$2
32734+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32735+$as_echo_n "checking for $ac_word... " >&6; }
32736+if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
32737+ $as_echo_n "(cached) " >&6
32738+else
32739+ if test -n "$ac_ct_DLLTOOL"; then
32740+ ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
32741+else
32742+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32743+for as_dir in $PATH
32744+do
32745+ IFS=$as_save_IFS
32746+ test -z "$as_dir" && as_dir=.
32747+ for ac_exec_ext in '' $ac_executable_extensions; do
32748+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32749+ ac_cv_prog_ac_ct_DLLTOOL="dlltool"
32750+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32751+ break 2
32752+ fi
32753+done
32754+ done
32755+IFS=$as_save_IFS
32756+
32757+fi
32758+fi
32759+ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
32760+if test -n "$ac_ct_DLLTOOL"; then
32761+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
32762+$as_echo "$ac_ct_DLLTOOL" >&6; }
32763+else
32764+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32765+$as_echo "no" >&6; }
32766+fi
32767+
32768+ if test "x$ac_ct_DLLTOOL" = x; then
32769+ DLLTOOL="false"
32770+ else
32771+ case $cross_compiling:$ac_tool_warned in
32772+yes:)
32773+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
32774+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
32775+ac_tool_warned=yes ;;
32776+esac
32777+ DLLTOOL=$ac_ct_DLLTOOL
32778+ fi
32779+else
32780+ DLLTOOL="$ac_cv_prog_DLLTOOL"
32781+fi
32782+
32783+test -z "$DLLTOOL" && DLLTOOL=dlltool
32784+
32785+
32786+
32787+
32788+
32789+
32790+
32791+
32792+
32793+
32794+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
32795+$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
32796+if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
32797+ $as_echo_n "(cached) " >&6
32798+else
32799+ lt_cv_sharedlib_from_linklib_cmd='unknown'
32800+
32801+case $host_os in
32802+cygwin* | mingw* | pw32* | cegcc*)
32803+ # two different shell functions defined in ltmain.sh
32804+ # decide which to use based on capabilities of $DLLTOOL
32805+ case `$DLLTOOL --help 2>&1` in
32806+ *--identify-strict*)
32807+ lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
32808+ ;;
32809+ *)
32810+ lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
32811+ ;;
32812+ esac
32813+ ;;
32814+*)
32815+ # fallback: assume linklib IS sharedlib
32816+ lt_cv_sharedlib_from_linklib_cmd="$ECHO"
32817+ ;;
32818+esac
32819+
32820+fi
32821+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
32822+$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
32823+sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
32824+test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
32825+
32826+
32827+
32828+
32829+
32830+
32831+
32832+
32833 plugin_option=
32834 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
32835 for plugin in $plugin_names; do
32836@@ -5475,8 +5728,10 @@ for plugin in $plugin_names; do
32837 done
32838
32839 if test -n "$ac_tool_prefix"; then
32840- # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
32841-set dummy ${ac_tool_prefix}ar; ac_word=$2
32842+ for ac_prog in ar
32843+ do
32844+ # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
32845+set dummy $ac_tool_prefix$ac_prog; ac_word=$2
32846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32847 $as_echo_n "checking for $ac_word... " >&6; }
32848 if ${ac_cv_prog_AR+:} false; then :
32849@@ -5492,7 +5747,7 @@ do
32850 test -z "$as_dir" && as_dir=.
32851 for ac_exec_ext in '' $ac_executable_extensions; do
32852 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32853- ac_cv_prog_AR="${ac_tool_prefix}ar"
32854+ ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
32855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32856 break 2
32857 fi
32858@@ -5512,11 +5767,15 @@ $as_echo "no" >&6; }
32859 fi
32860
32861
32862+ test -n "$AR" && break
32863+ done
32864 fi
32865-if test -z "$ac_cv_prog_AR"; then
32866+if test -z "$AR"; then
32867 ac_ct_AR=$AR
32868- # Extract the first word of "ar", so it can be a program name with args.
32869-set dummy ar; ac_word=$2
32870+ for ac_prog in ar
32871+do
32872+ # Extract the first word of "$ac_prog", so it can be a program name with args.
32873+set dummy $ac_prog; ac_word=$2
32874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32875 $as_echo_n "checking for $ac_word... " >&6; }
32876 if ${ac_cv_prog_ac_ct_AR+:} false; then :
32877@@ -5532,7 +5791,7 @@ do
32878 test -z "$as_dir" && as_dir=.
32879 for ac_exec_ext in '' $ac_executable_extensions; do
32880 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32881- ac_cv_prog_ac_ct_AR="ar"
32882+ ac_cv_prog_ac_ct_AR="$ac_prog"
32883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32884 break 2
32885 fi
32886@@ -5551,6 +5810,10 @@ else
32887 $as_echo "no" >&6; }
32888 fi
32889
32890+
32891+ test -n "$ac_ct_AR" && break
32892+done
32893+
32894 if test "x$ac_ct_AR" = x; then
32895 AR="false"
32896 else
32897@@ -5562,25 +5825,19 @@ ac_tool_warned=yes ;;
32898 esac
32899 AR=$ac_ct_AR
32900 fi
32901-else
32902- AR="$ac_cv_prog_AR"
32903 fi
32904
32905-test -z "$AR" && AR=ar
32906-if test -n "$plugin_option"; then
32907- if $AR --help 2>&1 | grep -q "\--plugin"; then
32908- touch conftest.c
32909- $AR $plugin_option rc conftest.a conftest.c
32910- if test "$?" != 0; then
32911- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
32912+ touch conftest.c
32913+ $AR $plugin_option rc conftest.a conftest.c
32914+ if test "$?" != 0; then
32915+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
32916 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
32917- else
32918- AR="$AR $plugin_option"
32919- fi
32920- rm -f conftest.*
32921+ else
32922+ AR="$AR $plugin_option"
32923 fi
32924-fi
32925-test -z "$AR_FLAGS" && AR_FLAGS=cru
32926+ rm -f conftest.*
32927+: ${AR=ar}
32928+: ${AR_FLAGS=cru}
32929
32930
32931
32932@@ -5592,6 +5849,64 @@ test -z "$AR_FLAGS" && AR_FLAGS=cru
32933
32934
32935
32936+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
32937+$as_echo_n "checking for archiver @FILE support... " >&6; }
32938+if ${lt_cv_ar_at_file+:} false; then :
32939+ $as_echo_n "(cached) " >&6
32940+else
32941+ lt_cv_ar_at_file=no
32942+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32943+/* end confdefs.h. */
32944+
32945+int
32946+main ()
32947+{
32948+
32949+ ;
32950+ return 0;
32951+}
32952+_ACEOF
32953+if ac_fn_c_try_compile "$LINENO"; then :
32954+ echo conftest.$ac_objext > conftest.lst
32955+ lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
32956+ { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
32957+ (eval $lt_ar_try) 2>&5
32958+ ac_status=$?
32959+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32960+ test $ac_status = 0; }
32961+ if test "$ac_status" -eq 0; then
32962+ # Ensure the archiver fails upon bogus file names.
32963+ rm -f conftest.$ac_objext libconftest.a
32964+ { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
32965+ (eval $lt_ar_try) 2>&5
32966+ ac_status=$?
32967+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32968+ test $ac_status = 0; }
32969+ if test "$ac_status" -ne 0; then
32970+ lt_cv_ar_at_file=@
32971+ fi
32972+ fi
32973+ rm -f conftest.* libconftest.a
32974+
32975+fi
32976+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32977+
32978+fi
32979+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
32980+$as_echo "$lt_cv_ar_at_file" >&6; }
32981+
32982+if test "x$lt_cv_ar_at_file" = xno; then
32983+ archiver_list_spec=
32984+else
32985+ archiver_list_spec=$lt_cv_ar_at_file
32986+fi
32987+
32988+
32989+
32990+
32991+
32992+
32993+
32994 if test -n "$ac_tool_prefix"; then
32995 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
32996 set dummy ${ac_tool_prefix}strip; ac_word=$2
32997@@ -5931,8 +6246,8 @@ esac
32998 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
32999
33000 # Transform an extracted symbol line into symbol name and symbol address
33001-lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
33002-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'"
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
33006 # Handle CRLF in mingw tool chain
33007 opt_cr=
33008@@ -5968,6 +6283,7 @@ for ac_symprfx in "" "_"; do
33009 else
33010 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
33011 fi
33012+ lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
33013
33014 # Check to see that the pipe works correctly.
33015 pipe_works=no
33016@@ -6009,6 +6325,18 @@ _LT_EOF
33017 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
33018 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
33019 cat <<_LT_EOF > conftest.$ac_ext
33020+/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
33021+#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
33022+/* DATA imports from DLLs on WIN32 con't be const, because runtime
33023+ relocations are performed -- see ld's documentation on pseudo-relocs. */
33024+# define LT_DLSYM_CONST
33025+#elif defined(__osf__)
33026+/* This system does not cope well with relocations in const data. */
33027+# define LT_DLSYM_CONST
33028+#else
33029+# define LT_DLSYM_CONST const
33030+#endif
33031+
33032 #ifdef __cplusplus
33033 extern "C" {
33034 #endif
33035@@ -6020,7 +6348,7 @@ _LT_EOF
33036 cat <<_LT_EOF >> conftest.$ac_ext
33037
33038 /* The mapping between symbol names and symbols. */
33039-const struct {
33040+LT_DLSYM_CONST struct {
33041 const char *name;
33042 void *address;
33043 }
33044@@ -6046,8 +6374,8 @@ static const void *lt_preloaded_setup() {
33045 _LT_EOF
33046 # Now try linking the two files.
33047 mv conftest.$ac_objext conftstm.$ac_objext
33048- lt_save_LIBS="$LIBS"
33049- lt_save_CFLAGS="$CFLAGS"
33050+ lt_globsym_save_LIBS=$LIBS
33051+ lt_globsym_save_CFLAGS=$CFLAGS
33052 LIBS="conftstm.$ac_objext"
33053 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
33054 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
33055@@ -6057,8 +6385,8 @@ _LT_EOF
33056 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
33057 pipe_works=yes
33058 fi
33059- LIBS="$lt_save_LIBS"
33060- CFLAGS="$lt_save_CFLAGS"
33061+ LIBS=$lt_globsym_save_LIBS
33062+ CFLAGS=$lt_globsym_save_CFLAGS
33063 else
33064 echo "cannot find nm_test_func in $nlist" >&5
33065 fi
33066@@ -6095,6 +6423,17 @@ else
33067 $as_echo "ok" >&6; }
33068 fi
33069
33070+# Response file support.
33071+if test "$lt_cv_nm_interface" = "MS dumpbin"; then
33072+ nm_file_list_spec='@'
33073+elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
33074+ nm_file_list_spec='@'
33075+fi
33076+
33077+
33078+
33079+
33080+
33081
33082
33083
33084@@ -6112,6 +6451,43 @@ fi
33085
33086
33087
33088+
33089+
33090+
33091+
33092+
33093+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
33094+$as_echo_n "checking for sysroot... " >&6; }
33095+
33096+# Check whether --with-libtool-sysroot was given.
33097+if test "${with_libtool_sysroot+set}" = set; then :
33098+ withval=$with_libtool_sysroot;
33099+else
33100+ with_libtool_sysroot=no
33101+fi
33102+
33103+
33104+lt_sysroot=
33105+case ${with_libtool_sysroot} in #(
33106+ yes)
33107+ if test "$GCC" = yes; then
33108+ lt_sysroot=`$CC --print-sysroot 2>/dev/null`
33109+ fi
33110+ ;; #(
33111+ /*)
33112+ lt_sysroot=`echo "$with_libtool_sysroot" | sed -e "$sed_quote_subst"`
33113+ ;; #(
33114+ no|'')
33115+ ;; #(
33116+ *)
33117+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_libtool_sysroot}" >&5
33118+$as_echo "${with_libtool_sysroot}" >&6; }
33119+ as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
33120+ ;;
33121+esac
33122+
33123+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
33124+$as_echo "${lt_sysroot:-no}" >&6; }
33125
33126
33127
33128@@ -6326,6 +6702,123 @@ esac
33129
33130 need_locks="$enable_libtool_lock"
33131
33132+if test -n "$ac_tool_prefix"; then
33133+ # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
33134+set dummy ${ac_tool_prefix}mt; ac_word=$2
33135+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33136+$as_echo_n "checking for $ac_word... " >&6; }
33137+if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
33138+ $as_echo_n "(cached) " >&6
33139+else
33140+ if test -n "$MANIFEST_TOOL"; then
33141+ ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
33142+else
33143+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33144+for as_dir in $PATH
33145+do
33146+ IFS=$as_save_IFS
33147+ test -z "$as_dir" && as_dir=.
33148+ for ac_exec_ext in '' $ac_executable_extensions; do
33149+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33150+ ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
33151+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33152+ break 2
33153+ fi
33154+done
33155+ done
33156+IFS=$as_save_IFS
33157+
33158+fi
33159+fi
33160+MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
33161+if test -n "$MANIFEST_TOOL"; then
33162+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
33163+$as_echo "$MANIFEST_TOOL" >&6; }
33164+else
33165+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33166+$as_echo "no" >&6; }
33167+fi
33168+
33169+
33170+fi
33171+if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
33172+ ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
33173+ # Extract the first word of "mt", so it can be a program name with args.
33174+set dummy mt; ac_word=$2
33175+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33176+$as_echo_n "checking for $ac_word... " >&6; }
33177+if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
33178+ $as_echo_n "(cached) " >&6
33179+else
33180+ if test -n "$ac_ct_MANIFEST_TOOL"; then
33181+ ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
33182+else
33183+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33184+for as_dir in $PATH
33185+do
33186+ IFS=$as_save_IFS
33187+ test -z "$as_dir" && as_dir=.
33188+ for ac_exec_ext in '' $ac_executable_extensions; do
33189+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33190+ ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
33191+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33192+ break 2
33193+ fi
33194+done
33195+ done
33196+IFS=$as_save_IFS
33197+
33198+fi
33199+fi
33200+ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
33201+if test -n "$ac_ct_MANIFEST_TOOL"; then
33202+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
33203+$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
33204+else
33205+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33206+$as_echo "no" >&6; }
33207+fi
33208+
33209+ if test "x$ac_ct_MANIFEST_TOOL" = x; then
33210+ MANIFEST_TOOL=":"
33211+ else
33212+ case $cross_compiling:$ac_tool_warned in
33213+yes:)
33214+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
33215+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
33216+ac_tool_warned=yes ;;
33217+esac
33218+ MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
33219+ fi
33220+else
33221+ MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
33222+fi
33223+
33224+test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
33225+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
33226+$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
33227+if ${lt_cv_path_mainfest_tool+:} false; then :
33228+ $as_echo_n "(cached) " >&6
33229+else
33230+ lt_cv_path_mainfest_tool=no
33231+ echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
33232+ $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
33233+ cat conftest.err >&5
33234+ if $GREP 'Manifest Tool' conftest.out > /dev/null; then
33235+ lt_cv_path_mainfest_tool=yes
33236+ fi
33237+ rm -f conftest*
33238+fi
33239+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
33240+$as_echo "$lt_cv_path_mainfest_tool" >&6; }
33241+if test "x$lt_cv_path_mainfest_tool" != xyes; then
33242+ MANIFEST_TOOL=:
33243+fi
33244+
33245+
33246+
33247+
33248+
33249
33250 case $host_os in
33251 rhapsody* | darwin*)
33252@@ -6892,6 +7385,8 @@ _LT_EOF
33253 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
33254 echo "$AR cru libconftest.a conftest.o" >&5
33255 $AR cru libconftest.a conftest.o 2>&5
33256+ echo "$RANLIB libconftest.a" >&5
33257+ $RANLIB libconftest.a 2>&5
33258 cat > conftest.c << _LT_EOF
33259 int main() { return 0;}
33260 _LT_EOF
33261@@ -7743,8 +8238,6 @@ fi
33262 lt_prog_compiler_pic=
33263 lt_prog_compiler_static=
33264
33265-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
33266-$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
33267
33268 if test "$GCC" = yes; then
33269 lt_prog_compiler_wl='-Wl,'
33270@@ -7910,6 +8403,12 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
33271 lt_prog_compiler_pic='--shared'
33272 lt_prog_compiler_static='--static'
33273 ;;
33274+ nagfor*)
33275+ # NAG Fortran compiler
33276+ lt_prog_compiler_wl='-Wl,-Wl,,'
33277+ lt_prog_compiler_pic='-PIC'
33278+ lt_prog_compiler_static='-Bstatic'
33279+ ;;
33280 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
33281 # Portland Group compilers (*not* the Pentium gcc compiler,
33282 # which looks to be a dead project)
33283@@ -7972,7 +8471,7 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
33284 lt_prog_compiler_pic='-KPIC'
33285 lt_prog_compiler_static='-Bstatic'
33286 case $cc_basename in
33287- f77* | f90* | f95*)
33288+ f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
33289 lt_prog_compiler_wl='-Qoption ld ';;
33290 *)
33291 lt_prog_compiler_wl='-Wl,';;
33292@@ -8029,13 +8528,17 @@ case $host_os in
33293 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
33294 ;;
33295 esac
33296-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
33297-$as_echo "$lt_prog_compiler_pic" >&6; }
33298-
33299-
33300-
33301-
33302
33303+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
33304+$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
33305+if ${lt_cv_prog_compiler_pic+:} false; then :
33306+ $as_echo_n "(cached) " >&6
33307+else
33308+ lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
33309+fi
33310+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
33311+$as_echo "$lt_cv_prog_compiler_pic" >&6; }
33312+lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
33313
33314 #
33315 # Check to make sure the PIC flag actually works.
33316@@ -8096,6 +8599,11 @@ fi
33317
33318
33319
33320+
33321+
33322+
33323+
33324+
33325 #
33326 # Check to make sure the static flag actually works.
33327 #
33328@@ -8446,7 +8954,8 @@ _LT_EOF
33329 allow_undefined_flag=unsupported
33330 always_export_symbols=no
33331 enable_shared_with_static_runtimes=yes
33332- export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
33333+ 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'
33334+ exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
33335
33336 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
33337 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
33338@@ -8545,12 +9054,12 @@ _LT_EOF
33339 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
33340 hardcode_libdir_flag_spec=
33341 hardcode_libdir_flag_spec_ld='-rpath $libdir'
33342- archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
33343+ archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
33344 if test "x$supports_anon_versioning" = xyes; then
33345 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
33346 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
33347 echo "local: *; };" >> $output_objdir/$libname.ver~
33348- $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
33349+ $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
33350 fi
33351 ;;
33352 esac
33353@@ -8564,8 +9073,8 @@ _LT_EOF
33354 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
33355 wlarc=
33356 else
33357- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
33358- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
33359+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
33360+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
33361 fi
33362 ;;
33363
33364@@ -8583,8 +9092,8 @@ _LT_EOF
33365
33366 _LT_EOF
33367 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
33368- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
33369- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
33370+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
33371+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
33372 else
33373 ld_shlibs=no
33374 fi
33375@@ -8630,8 +9139,8 @@ _LT_EOF
33376
33377 *)
33378 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
33379- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
33380- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
33381+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
33382+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
33383 else
33384 ld_shlibs=no
33385 fi
33386@@ -8761,7 +9270,13 @@ _LT_EOF
33387 allow_undefined_flag='-berok'
33388 # Determine the default libpath from the value encoded in an
33389 # empty executable.
33390- if test x$gcc_no_link = xyes; then
33391+ if test "${lt_cv_aix_libpath+set}" = set; then
33392+ aix_libpath=$lt_cv_aix_libpath
33393+else
33394+ if ${lt_cv_aix_libpath_+:} false; then :
33395+ $as_echo_n "(cached) " >&6
33396+else
33397+ if test x$gcc_no_link = xyes; then
33398 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
33399 fi
33400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33401@@ -8777,22 +9292,29 @@ main ()
33402 _ACEOF
33403 if ac_fn_c_try_link "$LINENO"; then :
33404
33405-lt_aix_libpath_sed='
33406- /Import File Strings/,/^$/ {
33407- /^0/ {
33408- s/^0 *\(.*\)$/\1/
33409- p
33410- }
33411- }'
33412-aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
33413-# Check for a 64-bit object if we didn't find anything.
33414-if test -z "$aix_libpath"; then
33415- aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
33416-fi
33417+ lt_aix_libpath_sed='
33418+ /Import File Strings/,/^$/ {
33419+ /^0/ {
33420+ s/^0 *\([^ ]*\) *$/\1/
33421+ p
33422+ }
33423+ }'
33424+ lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
33425+ # Check for a 64-bit object if we didn't find anything.
33426+ if test -z "$lt_cv_aix_libpath_"; then
33427+ lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
33428+ fi
33429 fi
33430 rm -f core conftest.err conftest.$ac_objext \
33431 conftest$ac_exeext conftest.$ac_ext
33432-if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
33433+ if test -z "$lt_cv_aix_libpath_"; then
33434+ lt_cv_aix_libpath_="/usr/lib:/lib"
33435+ fi
33436+
33437+fi
33438+
33439+ aix_libpath=$lt_cv_aix_libpath_
33440+fi
33441
33442 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
33443 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"
33444@@ -8804,7 +9326,13 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
33445 else
33446 # Determine the default libpath from the value encoded in an
33447 # empty executable.
33448- if test x$gcc_no_link = xyes; then
33449+ if test "${lt_cv_aix_libpath+set}" = set; then
33450+ aix_libpath=$lt_cv_aix_libpath
33451+else
33452+ if ${lt_cv_aix_libpath_+:} false; then :
33453+ $as_echo_n "(cached) " >&6
33454+else
33455+ if test x$gcc_no_link = xyes; then
33456 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
33457 fi
33458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33459@@ -8820,22 +9348,29 @@ main ()
33460 _ACEOF
33461 if ac_fn_c_try_link "$LINENO"; then :
33462
33463-lt_aix_libpath_sed='
33464- /Import File Strings/,/^$/ {
33465- /^0/ {
33466- s/^0 *\(.*\)$/\1/
33467- p
33468- }
33469- }'
33470-aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
33471-# Check for a 64-bit object if we didn't find anything.
33472-if test -z "$aix_libpath"; then
33473- aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
33474-fi
33475+ lt_aix_libpath_sed='
33476+ /Import File Strings/,/^$/ {
33477+ /^0/ {
33478+ s/^0 *\([^ ]*\) *$/\1/
33479+ p
33480+ }
33481+ }'
33482+ lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
33483+ # Check for a 64-bit object if we didn't find anything.
33484+ if test -z "$lt_cv_aix_libpath_"; then
33485+ lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
33486+ fi
33487 fi
33488 rm -f core conftest.err conftest.$ac_objext \
33489 conftest$ac_exeext conftest.$ac_ext
33490-if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
33491+ if test -z "$lt_cv_aix_libpath_"; then
33492+ lt_cv_aix_libpath_="/usr/lib:/lib"
33493+ fi
33494+
33495+fi
33496+
33497+ aix_libpath=$lt_cv_aix_libpath_
33498+fi
33499
33500 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
33501 # Warning - without using the other run time loading flags,
33502@@ -8880,20 +9415,63 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
33503 # Microsoft Visual C++.
33504 # hardcode_libdir_flag_spec is actually meaningless, as there is
33505 # no search path for DLLs.
33506- hardcode_libdir_flag_spec=' '
33507- allow_undefined_flag=unsupported
33508- # Tell ltmain to make .lib files, not .a files.
33509- libext=lib
33510- # Tell ltmain to make .dll files, not .so files.
33511- shrext_cmds=".dll"
33512- # FIXME: Setting linknames here is a bad hack.
33513- archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
33514- # The linker will automatically build a .lib file if we build a DLL.
33515- old_archive_from_new_cmds='true'
33516- # FIXME: Should let the user specify the lib program.
33517- old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
33518- fix_srcfile_path='`cygpath -w "$srcfile"`'
33519- enable_shared_with_static_runtimes=yes
33520+ case $cc_basename in
33521+ cl*)
33522+ # Native MSVC
33523+ hardcode_libdir_flag_spec=' '
33524+ allow_undefined_flag=unsupported
33525+ always_export_symbols=yes
33526+ file_list_spec='@'
33527+ # Tell ltmain to make .lib files, not .a files.
33528+ libext=lib
33529+ # Tell ltmain to make .dll files, not .so files.
33530+ shrext_cmds=".dll"
33531+ # FIXME: Setting linknames here is a bad hack.
33532+ archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
33533+ archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
33534+ sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
33535+ else
33536+ sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
33537+ fi~
33538+ $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
33539+ linknames='
33540+ # The linker will not automatically build a static lib if we build a DLL.
33541+ # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
33542+ enable_shared_with_static_runtimes=yes
33543+ export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
33544+ # Don't use ranlib
33545+ old_postinstall_cmds='chmod 644 $oldlib'
33546+ postlink_cmds='lt_outputfile="@OUTPUT@"~
33547+ lt_tool_outputfile="@TOOL_OUTPUT@"~
33548+ case $lt_outputfile in
33549+ *.exe|*.EXE) ;;
33550+ *)
33551+ lt_outputfile="$lt_outputfile.exe"
33552+ lt_tool_outputfile="$lt_tool_outputfile.exe"
33553+ ;;
33554+ esac~
33555+ if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
33556+ $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
33557+ $RM "$lt_outputfile.manifest";
33558+ fi'
33559+ ;;
33560+ *)
33561+ # Assume MSVC wrapper
33562+ hardcode_libdir_flag_spec=' '
33563+ allow_undefined_flag=unsupported
33564+ # Tell ltmain to make .lib files, not .a files.
33565+ libext=lib
33566+ # Tell ltmain to make .dll files, not .so files.
33567+ shrext_cmds=".dll"
33568+ # FIXME: Setting linknames here is a bad hack.
33569+ archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
33570+ # The linker will automatically build a .lib file if we build a DLL.
33571+ old_archive_from_new_cmds='true'
33572+ # FIXME: Should let the user specify the lib program.
33573+ old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
33574+ enable_shared_with_static_runtimes=yes
33575+ ;;
33576+ esac
33577 ;;
33578
33579 darwin* | rhapsody*)
33580@@ -8954,7 +9532,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
33581
33582 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
33583 freebsd* | dragonfly*)
33584- archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
33585+ archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
33586 hardcode_libdir_flag_spec='-R$libdir'
33587 hardcode_direct=yes
33588 hardcode_shlibpath_var=no
33589@@ -8962,7 +9540,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
33590
33591 hpux9*)
33592 if test "$GCC" = yes; then
33593- 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'
33594+ 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'
33595 else
33596 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'
33597 fi
33598@@ -8978,7 +9556,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
33599
33600 hpux10*)
33601 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
33602- archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
33603+ archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
33604 else
33605 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
33606 fi
33607@@ -9002,10 +9580,10 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
33608 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
33609 ;;
33610 ia64*)
33611- archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
33612+ archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
33613 ;;
33614 *)
33615- archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
33616+ archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
33617 ;;
33618 esac
33619 else
33620@@ -9084,26 +9662,39 @@ fi
33621
33622 irix5* | irix6* | nonstopux*)
33623 if test "$GCC" = yes; then
33624- 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'
33625+ 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'
33626 # Try to use the -exported_symbol ld option, if it does not
33627 # work, assume that -exports_file does not work either and
33628 # implicitly export all symbols.
33629- save_LDFLAGS="$LDFLAGS"
33630- LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
33631- if test x$gcc_no_link = xyes; then
33632+ # This should be the same for all languages, so no per-tag cache variable.
33633+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
33634+$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
33635+if ${lt_cv_irix_exported_symbol+:} false; then :
33636+ $as_echo_n "(cached) " >&6
33637+else
33638+ save_LDFLAGS="$LDFLAGS"
33639+ LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
33640+ if test x$gcc_no_link = xyes; then
33641 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
33642 fi
33643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33644 /* end confdefs.h. */
33645-int foo(void) {}
33646+int foo (void) { return 0; }
33647 _ACEOF
33648 if ac_fn_c_try_link "$LINENO"; then :
33649- 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'
33650-
33651+ lt_cv_irix_exported_symbol=yes
33652+else
33653+ lt_cv_irix_exported_symbol=no
33654 fi
33655 rm -f core conftest.err conftest.$ac_objext \
33656 conftest$ac_exeext conftest.$ac_ext
33657- LDFLAGS="$save_LDFLAGS"
33658+ LDFLAGS="$save_LDFLAGS"
33659+fi
33660+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
33661+$as_echo "$lt_cv_irix_exported_symbol" >&6; }
33662+ if test "$lt_cv_irix_exported_symbol" = yes; then
33663+ 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'
33664+ fi
33665 else
33666 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'
33667 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'
33668@@ -9188,7 +9779,7 @@ rm -f core conftest.err conftest.$ac_objext \
33669 osf4* | osf5*) # as osf3* with the addition of -msym flag
33670 if test "$GCC" = yes; then
33671 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
33672- 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'
33673+ 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'
33674 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
33675 else
33676 allow_undefined_flag=' -expect_unresolved \*'
33677@@ -9207,9 +9798,9 @@ rm -f core conftest.err conftest.$ac_objext \
33678 no_undefined_flag=' -z defs'
33679 if test "$GCC" = yes; then
33680 wlarc='${wl}'
33681- archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
33682+ archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
33683 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
33684- $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
33685+ $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'
33686 else
33687 case `$CC -V 2>&1` in
33688 *"Compilers 5.0"*)
33689@@ -9785,8 +10376,9 @@ cygwin* | mingw* | pw32* | cegcc*)
33690 need_version=no
33691 need_lib_prefix=no
33692
33693- case $GCC,$host_os in
33694- yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
33695+ case $GCC,$cc_basename in
33696+ yes,*)
33697+ # gcc
33698 library_names_spec='$libname.dll.a'
33699 # DLL is installed to $(libdir)/../bin by postinstall_cmds
33700 postinstall_cmds='base_file=`basename \${file}`~
33701@@ -9819,13 +10411,71 @@ cygwin* | mingw* | pw32* | cegcc*)
33702 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
33703 ;;
33704 esac
33705+ dynamic_linker='Win32 ld.exe'
33706+ ;;
33707+
33708+ *,cl*)
33709+ # Native MSVC
33710+ libname_spec='$name'
33711+ soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
33712+ library_names_spec='${libname}.dll.lib'
33713+
33714+ case $build_os in
33715+ mingw*)
33716+ sys_lib_search_path_spec=
33717+ lt_save_ifs=$IFS
33718+ IFS=';'
33719+ for lt_path in $LIB
33720+ do
33721+ IFS=$lt_save_ifs
33722+ # Let DOS variable expansion print the short 8.3 style file name.
33723+ lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
33724+ sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
33725+ done
33726+ IFS=$lt_save_ifs
33727+ # Convert to MSYS style.
33728+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
33729+ ;;
33730+ cygwin*)
33731+ # Convert to unix form, then to dos form, then back to unix form
33732+ # but this time dos style (no spaces!) so that the unix form looks
33733+ # like /cygdrive/c/PROGRA~1:/cygdr...
33734+ sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
33735+ sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
33736+ sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
33737+ ;;
33738+ *)
33739+ sys_lib_search_path_spec="$LIB"
33740+ if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
33741+ # It is most probably a Windows format PATH.
33742+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
33743+ else
33744+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
33745+ fi
33746+ # FIXME: find the short name or the path components, as spaces are
33747+ # common. (e.g. "Program Files" -> "PROGRA~1")
33748+ ;;
33749+ esac
33750+
33751+ # DLL is installed to $(libdir)/../bin by postinstall_cmds
33752+ postinstall_cmds='base_file=`basename \${file}`~
33753+ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
33754+ dldir=$destdir/`dirname \$dlpath`~
33755+ test -d \$dldir || mkdir -p \$dldir~
33756+ $install_prog $dir/$dlname \$dldir/$dlname'
33757+ postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
33758+ dlpath=$dir/\$dldll~
33759+ $RM \$dlpath'
33760+ shlibpath_overrides_runpath=yes
33761+ dynamic_linker='Win32 link.exe'
33762 ;;
33763
33764 *)
33765+ # Assume MSVC wrapper
33766 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
33767+ dynamic_linker='Win32 ld.exe'
33768 ;;
33769 esac
33770- dynamic_linker='Win32 ld.exe'
33771 # FIXME: first we should search . and the directory the executable is in
33772 shlibpath_var=PATH
33773 ;;
33774@@ -10745,7 +11395,7 @@ else
33775 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
33776 lt_status=$lt_dlunknown
33777 cat > conftest.$ac_ext <<_LT_EOF
33778-#line 10748 "configure"
33779+#line $LINENO "configure"
33780 #include "confdefs.h"
33781
33782 #if HAVE_DLFCN_H
33783@@ -10789,10 +11439,10 @@ else
33784 /* When -fvisbility=hidden is used, assume the code has been annotated
33785 correspondingly for the symbols needed. */
33786 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
33787-void fnord () __attribute__((visibility("default")));
33788+int fnord () __attribute__((visibility("default")));
33789 #endif
33790
33791-void fnord () { int i=42; }
33792+int fnord () { return 42; }
33793 int main ()
33794 {
33795 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
33796@@ -10851,7 +11501,7 @@ else
33797 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
33798 lt_status=$lt_dlunknown
33799 cat > conftest.$ac_ext <<_LT_EOF
33800-#line 10854 "configure"
33801+#line $LINENO "configure"
33802 #include "confdefs.h"
33803
33804 #if HAVE_DLFCN_H
33805@@ -10895,10 +11545,10 @@ else
33806 /* When -fvisbility=hidden is used, assume the code has been annotated
33807 correspondingly for the symbols needed. */
33808 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
33809-void fnord () __attribute__((visibility("default")));
33810+int fnord () __attribute__((visibility("default")));
33811 #endif
33812
33813-void fnord () { int i=42; }
33814+int fnord () { return 42; }
33815 int main ()
33816 {
33817 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
33818@@ -12377,13 +13027,20 @@ exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
33819 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
33820 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
33821 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
33822+lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
33823+lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
33824 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
33825 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
33826 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
33827 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
33828 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
33829+file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
33830+want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
33831+DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
33832+sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
33833 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
33834 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
33835+archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
33836 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
33837 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
33838 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
33839@@ -12398,14 +13055,17 @@ lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$de
33840 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
33841 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
33842 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"`'
33843+nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
33844+lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
33845 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
33846 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
33847 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
33848-lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
33849 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
33850+lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
33851 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
33852 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
33853 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
33854+MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
33855 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
33856 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
33857 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
33858@@ -12438,12 +13098,12 @@ hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_q
33859 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
33860 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
33861 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
33862-fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
33863 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
33864 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
33865 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
33866 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
33867 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
33868+postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
33869 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
33870 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
33871 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
33872@@ -12498,8 +13158,13 @@ reload_flag \
33873 OBJDUMP \
33874 deplibs_check_method \
33875 file_magic_cmd \
33876+file_magic_glob \
33877+want_nocaseglob \
33878+DLLTOOL \
33879+sharedlib_from_linklib_cmd \
33880 AR \
33881 AR_FLAGS \
33882+archiver_list_spec \
33883 STRIP \
33884 RANLIB \
33885 CC \
33886@@ -12509,12 +13174,14 @@ lt_cv_sys_global_symbol_pipe \
33887 lt_cv_sys_global_symbol_to_cdecl \
33888 lt_cv_sys_global_symbol_to_c_name_address \
33889 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
33890+nm_file_list_spec \
33891 lt_prog_compiler_no_builtin_flag \
33892-lt_prog_compiler_wl \
33893 lt_prog_compiler_pic \
33894+lt_prog_compiler_wl \
33895 lt_prog_compiler_static \
33896 lt_cv_prog_compiler_c_o \
33897 need_locks \
33898+MANIFEST_TOOL \
33899 DSYMUTIL \
33900 NMEDIT \
33901 LIPO \
33902@@ -12530,7 +13197,6 @@ no_undefined_flag \
33903 hardcode_libdir_flag_spec \
33904 hardcode_libdir_flag_spec_ld \
33905 hardcode_libdir_separator \
33906-fix_srcfile_path \
33907 exclude_expsyms \
33908 include_expsyms \
33909 file_list_spec \
33910@@ -12566,6 +13232,7 @@ module_cmds \
33911 module_expsym_cmds \
33912 export_symbols_cmds \
33913 prelink_cmds \
33914+postlink_cmds \
33915 postinstall_cmds \
33916 postuninstall_cmds \
33917 finish_cmds \
33918@@ -13164,7 +13831,8 @@ $as_echo X"$file" |
33919 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
33920 #
33921 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
33922-# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
33923+# 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
33924+# Inc.
33925 # Written by Gordon Matzigkeit, 1996
33926 #
33927 # This file is part of GNU Libtool.
33928@@ -13267,19 +13935,42 @@ SP2NL=$lt_lt_SP2NL
33929 # turn newlines into spaces.
33930 NL2SP=$lt_lt_NL2SP
33931
33932+# convert \$build file names to \$host format.
33933+to_host_file_cmd=$lt_cv_to_host_file_cmd
33934+
33935+# convert \$build files to toolchain format.
33936+to_tool_file_cmd=$lt_cv_to_tool_file_cmd
33937+
33938 # An object symbol dumper.
33939 OBJDUMP=$lt_OBJDUMP
33940
33941 # Method to check whether dependent libraries are shared objects.
33942 deplibs_check_method=$lt_deplibs_check_method
33943
33944-# Command to use when deplibs_check_method == "file_magic".
33945+# Command to use when deplibs_check_method = "file_magic".
33946 file_magic_cmd=$lt_file_magic_cmd
33947
33948+# How to find potential files when deplibs_check_method = "file_magic".
33949+file_magic_glob=$lt_file_magic_glob
33950+
33951+# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
33952+want_nocaseglob=$lt_want_nocaseglob
33953+
33954+# DLL creation program.
33955+DLLTOOL=$lt_DLLTOOL
33956+
33957+# Command to associate shared and link libraries.
33958+sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
33959+
33960 # The archiver.
33961 AR=$lt_AR
33962+
33963+# Flags to create an archive.
33964 AR_FLAGS=$lt_AR_FLAGS
33965
33966+# How to feed a file listing to the archiver.
33967+archiver_list_spec=$lt_archiver_list_spec
33968+
33969 # A symbol stripping program.
33970 STRIP=$lt_STRIP
33971
33972@@ -13309,6 +14000,12 @@ global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
33973 # Transform the output of nm in a C name address pair when lib prefix is needed.
33974 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
33975
33976+# Specify filename containing input files for \$NM.
33977+nm_file_list_spec=$lt_nm_file_list_spec
33978+
33979+# The root where to search for dependent libraries,and in which our libraries should be installed.
33980+lt_sysroot=$lt_sysroot
33981+
33982 # The name of the directory that contains temporary libtool files.
33983 objdir=$objdir
33984
33985@@ -13318,6 +14015,9 @@ MAGIC_CMD=$MAGIC_CMD
33986 # Must we lock files when doing compilation?
33987 need_locks=$lt_need_locks
33988
33989+# Manifest tool.
33990+MANIFEST_TOOL=$lt_MANIFEST_TOOL
33991+
33992 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
33993 DSYMUTIL=$lt_DSYMUTIL
33994
33995@@ -13432,12 +14132,12 @@ with_gcc=$GCC
33996 # Compiler flag to turn off builtin functions.
33997 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
33998
33999-# How to pass a linker flag through the compiler.
34000-wl=$lt_lt_prog_compiler_wl
34001-
34002 # Additional compiler flags for building library objects.
34003 pic_flag=$lt_lt_prog_compiler_pic
34004
34005+# How to pass a linker flag through the compiler.
34006+wl=$lt_lt_prog_compiler_wl
34007+
34008 # Compiler flag to prevent dynamic linking.
34009 link_static_flag=$lt_lt_prog_compiler_static
34010
34011@@ -13524,9 +14224,6 @@ inherit_rpath=$inherit_rpath
34012 # Whether libtool must link a program against all its dependency libraries.
34013 link_all_deplibs=$link_all_deplibs
34014
34015-# Fix the shell variable \$srcfile for the compiler.
34016-fix_srcfile_path=$lt_fix_srcfile_path
34017-
34018 # Set to "yes" if exported symbols are required.
34019 always_export_symbols=$always_export_symbols
34020
34021@@ -13542,6 +14239,9 @@ include_expsyms=$lt_include_expsyms
34022 # Commands necessary for linking programs (against libraries) with templates.
34023 prelink_cmds=$lt_prelink_cmds
34024
34025+# Commands necessary for finishing linking programs.
34026+postlink_cmds=$lt_postlink_cmds
34027+
34028 # Specify filename containing input files.
34029 file_list_spec=$lt_file_list_spec
34030
34031@@ -13574,210 +14274,169 @@ ltmain="$ac_aux_dir/ltmain.sh"
34032 # if finds mixed CR/LF and LF-only lines. Since sed operates in
34033 # text mode, it properly converts lines to CR/LF. This bash problem
34034 # is reportedly fixed, but why not run on old versions too?
34035- sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
34036- || (rm -f "$cfgfile"; exit 1)
34037-
34038- case $xsi_shell in
34039- yes)
34040- cat << \_LT_EOF >> "$cfgfile"
34041-
34042-# func_dirname file append nondir_replacement
34043-# Compute the dirname of FILE. If nonempty, add APPEND to the result,
34044-# otherwise set result to NONDIR_REPLACEMENT.
34045-func_dirname ()
34046-{
34047- case ${1} in
34048- */*) func_dirname_result="${1%/*}${2}" ;;
34049- * ) func_dirname_result="${3}" ;;
34050- esac
34051-}
34052-
34053-# func_basename file
34054-func_basename ()
34055-{
34056- func_basename_result="${1##*/}"
34057-}
34058-
34059-# func_dirname_and_basename file append nondir_replacement
34060-# perform func_basename and func_dirname in a single function
34061-# call:
34062-# dirname: Compute the dirname of FILE. If nonempty,
34063-# add APPEND to the result, otherwise set result
34064-# to NONDIR_REPLACEMENT.
34065-# value returned in "$func_dirname_result"
34066-# basename: Compute filename of FILE.
34067-# value retuned in "$func_basename_result"
34068-# Implementation must be kept synchronized with func_dirname
34069-# and func_basename. For efficiency, we do not delegate to
34070-# those functions but instead duplicate the functionality here.
34071-func_dirname_and_basename ()
34072-{
34073- case ${1} in
34074- */*) func_dirname_result="${1%/*}${2}" ;;
34075- * ) func_dirname_result="${3}" ;;
34076- esac
34077- func_basename_result="${1##*/}"
34078-}
34079-
34080-# func_stripname prefix suffix name
34081-# strip PREFIX and SUFFIX off of NAME.
34082-# PREFIX and SUFFIX must not contain globbing or regex special
34083-# characters, hashes, percent signs, but SUFFIX may contain a leading
34084-# dot (in which case that matches only a dot).
34085-func_stripname ()
34086-{
34087- # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
34088- # positional parameters, so assign one to ordinary parameter first.
34089- func_stripname_result=${3}
34090- func_stripname_result=${func_stripname_result#"${1}"}
34091- func_stripname_result=${func_stripname_result%"${2}"}
34092-}
34093-
34094-# func_opt_split
34095-func_opt_split ()
34096-{
34097- func_opt_split_opt=${1%%=*}
34098- func_opt_split_arg=${1#*=}
34099-}
34100-
34101-# func_lo2o object
34102-func_lo2o ()
34103-{
34104- case ${1} in
34105- *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
34106- *) func_lo2o_result=${1} ;;
34107- esac
34108-}
34109-
34110-# func_xform libobj-or-source
34111-func_xform ()
34112-{
34113- func_xform_result=${1%.*}.lo
34114-}
34115-
34116-# func_arith arithmetic-term...
34117-func_arith ()
34118-{
34119- func_arith_result=$(( $* ))
34120-}
34121-
34122-# func_len string
34123-# STRING may not start with a hyphen.
34124-func_len ()
34125-{
34126- func_len_result=${#1}
34127-}
34128-
34129-_LT_EOF
34130- ;;
34131- *) # Bourne compatible functions.
34132- cat << \_LT_EOF >> "$cfgfile"
34133-
34134-# func_dirname file append nondir_replacement
34135-# Compute the dirname of FILE. If nonempty, add APPEND to the result,
34136-# otherwise set result to NONDIR_REPLACEMENT.
34137-func_dirname ()
34138-{
34139- # Extract subdirectory from the argument.
34140- func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
34141- if test "X$func_dirname_result" = "X${1}"; then
34142- func_dirname_result="${3}"
34143- else
34144- func_dirname_result="$func_dirname_result${2}"
34145- fi
34146-}
34147-
34148-# func_basename file
34149-func_basename ()
34150-{
34151- func_basename_result=`$ECHO "${1}" | $SED "$basename"`
34152-}
34153-
34154-
34155-# func_stripname prefix suffix name
34156-# strip PREFIX and SUFFIX off of NAME.
34157-# PREFIX and SUFFIX must not contain globbing or regex special
34158-# characters, hashes, percent signs, but SUFFIX may contain a leading
34159-# dot (in which case that matches only a dot).
34160-# func_strip_suffix prefix name
34161-func_stripname ()
34162-{
34163- case ${2} in
34164- .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
34165- *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
34166- esac
34167-}
34168-
34169-# sed scripts:
34170-my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
34171-my_sed_long_arg='1s/^-[^=]*=//'
34172-
34173-# func_opt_split
34174-func_opt_split ()
34175-{
34176- func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
34177- func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
34178-}
34179-
34180-# func_lo2o object
34181-func_lo2o ()
34182-{
34183- func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
34184-}
34185-
34186-# func_xform libobj-or-source
34187-func_xform ()
34188-{
34189- func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
34190-}
34191-
34192-# func_arith arithmetic-term...
34193-func_arith ()
34194-{
34195- func_arith_result=`expr "$@"`
34196-}
34197-
34198-# func_len string
34199-# STRING may not start with a hyphen.
34200-func_len ()
34201-{
34202- func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
34203-}
34204-
34205-_LT_EOF
34206-esac
34207-
34208-case $lt_shell_append in
34209- yes)
34210- cat << \_LT_EOF >> "$cfgfile"
34211-
34212-# func_append var value
34213-# Append VALUE to the end of shell variable VAR.
34214-func_append ()
34215-{
34216- eval "$1+=\$2"
34217-}
34218-_LT_EOF
34219- ;;
34220- *)
34221- cat << \_LT_EOF >> "$cfgfile"
34222-
34223-# func_append var value
34224-# Append VALUE to the end of shell variable VAR.
34225-func_append ()
34226-{
34227- eval "$1=\$$1\$2"
34228-}
34229-
34230-_LT_EOF
34231- ;;
34232- esac
34233-
34234-
34235- sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
34236- || (rm -f "$cfgfile"; exit 1)
34237-
34238- mv -f "$cfgfile" "$ofile" ||
34239+ sed '$q' "$ltmain" >> "$cfgfile" \
34240+ || (rm -f "$cfgfile"; exit 1)
34241+
34242+ if test x"$xsi_shell" = xyes; then
34243+ sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
34244+func_dirname ()\
34245+{\
34246+\ case ${1} in\
34247+\ */*) func_dirname_result="${1%/*}${2}" ;;\
34248+\ * ) func_dirname_result="${3}" ;;\
34249+\ esac\
34250+} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
34251+ && mv -f "$cfgfile.tmp" "$cfgfile" \
34252+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
34253+test 0 -eq $? || _lt_function_replace_fail=:
34254+
34255+
34256+ sed -e '/^func_basename ()$/,/^} # func_basename /c\
34257+func_basename ()\
34258+{\
34259+\ func_basename_result="${1##*/}"\
34260+} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
34261+ && mv -f "$cfgfile.tmp" "$cfgfile" \
34262+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
34263+test 0 -eq $? || _lt_function_replace_fail=:
34264+
34265+
34266+ sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
34267+func_dirname_and_basename ()\
34268+{\
34269+\ case ${1} in\
34270+\ */*) func_dirname_result="${1%/*}${2}" ;;\
34271+\ * ) func_dirname_result="${3}" ;;\
34272+\ esac\
34273+\ func_basename_result="${1##*/}"\
34274+} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
34275+ && mv -f "$cfgfile.tmp" "$cfgfile" \
34276+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
34277+test 0 -eq $? || _lt_function_replace_fail=:
34278+
34279+
34280+ sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
34281+func_stripname ()\
34282+{\
34283+\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
34284+\ # positional parameters, so assign one to ordinary parameter first.\
34285+\ func_stripname_result=${3}\
34286+\ func_stripname_result=${func_stripname_result#"${1}"}\
34287+\ func_stripname_result=${func_stripname_result%"${2}"}\
34288+} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
34289+ && mv -f "$cfgfile.tmp" "$cfgfile" \
34290+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
34291+test 0 -eq $? || _lt_function_replace_fail=:
34292+
34293+
34294+ sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
34295+func_split_long_opt ()\
34296+{\
34297+\ func_split_long_opt_name=${1%%=*}\
34298+\ func_split_long_opt_arg=${1#*=}\
34299+} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
34300+ && mv -f "$cfgfile.tmp" "$cfgfile" \
34301+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
34302+test 0 -eq $? || _lt_function_replace_fail=:
34303+
34304+
34305+ sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
34306+func_split_short_opt ()\
34307+{\
34308+\ func_split_short_opt_arg=${1#??}\
34309+\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
34310+} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
34311+ && mv -f "$cfgfile.tmp" "$cfgfile" \
34312+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
34313+test 0 -eq $? || _lt_function_replace_fail=:
34314+
34315+
34316+ sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
34317+func_lo2o ()\
34318+{\
34319+\ case ${1} in\
34320+\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
34321+\ *) func_lo2o_result=${1} ;;\
34322+\ esac\
34323+} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
34324+ && mv -f "$cfgfile.tmp" "$cfgfile" \
34325+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
34326+test 0 -eq $? || _lt_function_replace_fail=:
34327+
34328+
34329+ sed -e '/^func_xform ()$/,/^} # func_xform /c\
34330+func_xform ()\
34331+{\
34332+ func_xform_result=${1%.*}.lo\
34333+} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
34334+ && mv -f "$cfgfile.tmp" "$cfgfile" \
34335+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
34336+test 0 -eq $? || _lt_function_replace_fail=:
34337+
34338+
34339+ sed -e '/^func_arith ()$/,/^} # func_arith /c\
34340+func_arith ()\
34341+{\
34342+ func_arith_result=$(( $* ))\
34343+} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
34344+ && mv -f "$cfgfile.tmp" "$cfgfile" \
34345+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
34346+test 0 -eq $? || _lt_function_replace_fail=:
34347+
34348+
34349+ sed -e '/^func_len ()$/,/^} # func_len /c\
34350+func_len ()\
34351+{\
34352+ func_len_result=${#1}\
34353+} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
34354+ && mv -f "$cfgfile.tmp" "$cfgfile" \
34355+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
34356+test 0 -eq $? || _lt_function_replace_fail=:
34357+
34358+fi
34359+
34360+if test x"$lt_shell_append" = xyes; then
34361+ sed -e '/^func_append ()$/,/^} # func_append /c\
34362+func_append ()\
34363+{\
34364+ eval "${1}+=\\${2}"\
34365+} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
34366+ && mv -f "$cfgfile.tmp" "$cfgfile" \
34367+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
34368+test 0 -eq $? || _lt_function_replace_fail=:
34369+
34370+
34371+ sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
34372+func_append_quoted ()\
34373+{\
34374+\ func_quote_for_eval "${2}"\
34375+\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
34376+} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
34377+ && mv -f "$cfgfile.tmp" "$cfgfile" \
34378+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
34379+test 0 -eq $? || _lt_function_replace_fail=:
34380+
34381+
34382+ # Save a `func_append' function call where possible by direct use of '+='
34383+ sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
34384+ && mv -f "$cfgfile.tmp" "$cfgfile" \
34385+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
34386+ test 0 -eq $? || _lt_function_replace_fail=:
34387+else
34388+ # Save a `func_append' function call even when '+=' is not available
34389+ sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
34390+ && mv -f "$cfgfile.tmp" "$cfgfile" \
34391+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
34392+ test 0 -eq $? || _lt_function_replace_fail=:
34393+fi
34394+
34395+if test x"$_lt_function_replace_fail" = x":"; then
34396+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
34397+$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
34398+fi
34399+
34400+
34401+ mv -f "$cfgfile" "$ofile" ||
34402 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
34403 chmod +x "$ofile"
34404
diff --git a/meta-xilinx-core/recipes-devtools/binutils/binutils/0009-Fix-rpath-in-libtool-when-sysroot-is-enabled.patch b/meta-xilinx-core/recipes-devtools/binutils/binutils/0009-Fix-rpath-in-libtool-when-sysroot-is-enabled.patch
new file mode 100644
index 00000000..72015134
--- /dev/null
+++ b/meta-xilinx-core/recipes-devtools/binutils/binutils/0009-Fix-rpath-in-libtool-when-sysroot-is-enabled.patch
@@ -0,0 +1,49 @@
1From 7f8a2d32fa0951aa2f921a4401ce1cac664db129 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-xilinx-core/recipes-devtools/binutils/binutils/0010-sync-with-OE-libtool-changes.patch b/meta-xilinx-core/recipes-devtools/binutils/binutils/0010-sync-with-OE-libtool-changes.patch
new file mode 100644
index 00000000..0564980c
--- /dev/null
+++ b/meta-xilinx-core/recipes-devtools/binutils/binutils/0010-sync-with-OE-libtool-changes.patch
@@ -0,0 +1,86 @@
1From 397884efce0bb7c3f1ff5e1da212e874c7eaf14b 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-xilinx-core/recipes-devtools/binutils/binutils/0011-Check-for-clang-before-checking-gcc-version.patch b/meta-xilinx-core/recipes-devtools/binutils/binutils/0011-Check-for-clang-before-checking-gcc-version.patch
new file mode 100644
index 00000000..728dee09
--- /dev/null
+++ b/meta-xilinx-core/recipes-devtools/binutils/binutils/0011-Check-for-clang-before-checking-gcc-version.patch
@@ -0,0 +1,45 @@
1From 75a17814ee39346612a2ff582fe5466201fa56b3 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 7823f2c3784..52b6a1318ae 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 a390639bfa9..66b8de7d4fd 100644
35--- a/configure.ac
36+++ b/configure.ac
37@@ -1411,7 +1411,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-xilinx-core/recipes-devtools/binutils/binutils/0012-Only-generate-an-RPATH-entry-if-LD_RUN_PATH-is-not-e.patch b/meta-xilinx-core/recipes-devtools/binutils/binutils/0012-Only-generate-an-RPATH-entry-if-LD_RUN_PATH-is-not-e.patch
new file mode 100644
index 00000000..aaf90d25
--- /dev/null
+++ b/meta-xilinx-core/recipes-devtools/binutils/binutils/0012-Only-generate-an-RPATH-entry-if-LD_RUN_PATH-is-not-e.patch
@@ -0,0 +1,38 @@
1From 508c79dbef580e52b1c47026dfe2fe5ae7be4d56 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 e49c0217ae2..069f2263c81 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-xilinx-core/recipes-devtools/binutils/binutils/0013-Define-alignof-using-_Alignof-when-using-C11-or-newe.patch b/meta-xilinx-core/recipes-devtools/binutils/binutils/0013-Define-alignof-using-_Alignof-when-using-C11-or-newe.patch
new file mode 100644
index 00000000..5027f0c6
--- /dev/null
+++ b/meta-xilinx-core/recipes-devtools/binutils/binutils/0013-Define-alignof-using-_Alignof-when-using-C11-or-newe.patch
@@ -0,0 +1,48 @@
1From aea8ba15afba280c9bc5ae22828fae4eed09db41 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-xilinx-core/recipes-devtools/binutils/binutils/0014-Remove-duplicate-pe-dll.o-entry-deom-targ_extra_ofil.patch b/meta-xilinx-core/recipes-devtools/binutils/binutils/0014-Remove-duplicate-pe-dll.o-entry-deom-targ_extra_ofil.patch
new file mode 100644
index 00000000..2c38aecc
--- /dev/null
+++ b/meta-xilinx-core/recipes-devtools/binutils/binutils/0014-Remove-duplicate-pe-dll.o-entry-deom-targ_extra_ofil.patch
@@ -0,0 +1,32 @@
1From d9b37b144a952283cefafdf679d06f842cafc955 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-xilinx-core/recipes-devtools/binutils/binutils/0015-CVE-2024-53589.patch b/meta-xilinx-core/recipes-devtools/binutils/binutils/0015-CVE-2024-53589.patch
new file mode 100644
index 00000000..380112a3
--- /dev/null
+++ b/meta-xilinx-core/recipes-devtools/binutils/binutils/0015-CVE-2024-53589.patch
@@ -0,0 +1,92 @@
1Author: Alan Modra <amodra@gmail.com>
2Date: Mon Nov 11 10:24:09 2024 +1030
3
4 Re: tekhex object file output fixes
5
6 Commit 8b5a212495 supported *ABS* symbols by allowing "section" to be
7 bfd_abs_section, but bfd_abs_section needs to be treated specially.
8 In particular, bfd_get_next_section_by_name (.., bfd_abs_section_ptr)
9 is invalid.
10
11 PR 32347
12 * tekhex.c (first_phase): Guard against modification of
13 _bfd_std_section[] entries.
14
15Upstream-Status: Backport [https://sourceware.org/git/?p=binutils-gdb.git;a=commitdiff;h=e0323071916878e0634a6e24d8250e4faff67e88]
16CVE: CVE-2024-53589
17
18Signed-off-by: Yash Shinde <Yash.Shinde@windriver.com>
19
20diff --git a/bfd/tekhex.c b/bfd/tekhex.c
21index aea2ebb23df..b305c1f96f1 100644
22--- a/bfd/tekhex.c
23+++ b/bfd/tekhex.c
24@@ -361,6 +361,7 @@ first_phase (bfd *abfd, int type, char *src, char * src_end)
25 {
26 asection *section, *alt_section;
27 unsigned int len;
28+ bfd_vma addr;
29 bfd_vma val;
30 char sym[17]; /* A symbol can only be 16chars long. */
31
32@@ -368,20 +369,16 @@ first_phase (bfd *abfd, int type, char *src, char * src_end)
33 {
34 case '6':
35 /* Data record - read it and store it. */
36- {
37- bfd_vma addr;
38-
39- if (!getvalue (&src, &addr, src_end))
40- return false;
41-
42- while (*src && src < src_end - 1)
43- {
44- insert_byte (abfd, HEX (src), addr);
45- src += 2;
46- addr++;
47- }
48- return true;
49- }
50+ if (!getvalue (&src, &addr, src_end))
51+ return false;
52+
53+ while (*src && src < src_end - 1)
54+ {
55+ insert_byte (abfd, HEX (src), addr);
56+ src += 2;
57+ addr++;
58+ }
59+ return true;
60
61 case '3':
62 /* Symbol record, read the segment. */
63@@ -406,13 +403,16 @@ first_phase (bfd *abfd, int type, char *src, char * src_end)
64 {
65 case '1': /* Section range. */
66 src++;
67- if (!getvalue (&src, &section->vma, src_end))
68+ if (!getvalue (&src, &addr, src_end))
69 return false;
70 if (!getvalue (&src, &val, src_end))
71 return false;
72- if (val < section->vma)
73- val = section->vma;
74- section->size = val - section->vma;
75+ if (bfd_is_const_section (section))
76+ break;
77+ section->vma = addr;
78+ if (val < addr)
79+ val = addr;
80+ section->size = val - addr;
81 /* PR 17512: file: objdump-s-endless-loop.tekhex.
82 Check for overlarge section sizes. */
83 if (section->size & 0x80000000)
84@@ -455,6 +455,8 @@ first_phase (bfd *abfd, int type, char *src, char * src_end)
85 new_symbol->symbol.flags = BSF_LOCAL;
86 if (stype == '2' || stype == '6')
87 new_symbol->symbol.section = bfd_abs_section_ptr;
88+ else if (bfd_is_const_section (section))
89+ ;
90 else if (stype == '3' || stype == '7')
91 {
92 if ((section->flags & SEC_DATA) == 0)
diff --git a/meta-xilinx-core/recipes-devtools/binutils/binutils_2.43.1.bb b/meta-xilinx-core/recipes-devtools/binutils/binutils_2.43.1.bb
new file mode 100644
index 00000000..8594db9b
--- /dev/null
+++ b/meta-xilinx-core/recipes-devtools/binutils/binutils_2.43.1.bb
@@ -0,0 +1,80 @@
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}"
75RDEPENDS:gprofng:class-nativesdk = " nativesdk-perl-module-bignum \
76 nativesdk-perl-module-bigint \
77 nativesdk-perl-module-math-bigint \
78"
79
80BBCLASSEXTEND = "native nativesdk"