Codebase list gst-python1.0 / 7e90df3
Imported Upstream version 1.7.2 Sebastian Dröge 8 years ago
26 changed file(s) with 6806 addition(s) and 4409 deletion(s). Raw diff Collapse all Expand all
0 === release 1.7.2 ===
1
2 2016-02-19 Sebastian Dröge <slomo@coaxion.net>
3
4 * configure.ac:
5 releasing 1.7.2
6
7 2016-02-15 23:26:06 +0100 Thibault Saunier <tsaunier@gnome.org>
8
9 * gi/overrides/gstmodule.c:
10 * testsuite/common.py:
11 gst: Fix a crash when passing wrong type as __templates__
12
13 2016-02-08 11:30:08 +0100 Thibault Saunier <tsaunier@gnome.org>
14
15 * gi/overrides/GstPbutils.py:
16 * plugin/gstpythonplugin.c:
17 Avoid warning about gi.require_version not being called
18
19 2015-12-24 15:30:00 +0100 Sebastian Dröge <sebastian@centricular.com>
20
21 * configure.ac:
22 Back to development
23
024 === release 1.7.1 ===
125
2 2015-12-24 Sebastian Dröge <slomo@coaxion.net>
3
4 * configure.ac:
5 releasing 1.7.1
26 2015-12-24 15:00:41 +0100 Sebastian Dröge <sebastian@centricular.com>
27
28 * ChangeLog:
29 * NEWS:
30 * RELEASE:
31 * configure.ac:
32 * gst-python.doap:
33 Release 1.7.1
634
735 2015-12-14 13:03:24 +0100 Sebastian Dröge <sebastian@centricular.com>
836
181181 $(top_srcdir)/common/release.mak \
182182 $(top_srcdir)/common/win32.mak AUTHORS COPYING ChangeLog \
183183 INSTALL NEWS README TODO compile config.guess config.sub \
184 depcomp install-sh ltmain.sh missing py-compile
184 install-sh ltmain.sh missing py-compile
185185 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
186186 distdir = $(PACKAGE)-$(VERSION)
187187 top_distdir = $(distdir)
274274 LIPO = @LIPO@
275275 LN_S = @LN_S@
276276 LTLIBOBJS = @LTLIBOBJS@
277 LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@
277278 MAINT = @MAINT@
278279 MAKEINFO = @MAKEINFO@
279280 MANIFEST_TOOL = @MANIFEST_TOOL@
0 This is GStreamer 1.7.1
0 This is GStreamer 1.7.2
232232 LIPO = @LIPO@
233233 LN_S = @LN_S@
234234 LTLIBOBJS = @LTLIBOBJS@
235 LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@
235236 MAINT = @MAINT@
236237 MAKEINFO = @MAKEINFO@
237238 MANIFEST_TOOL = @MANIFEST_TOOL@
172172 LIPO = @LIPO@
173173 LN_S = @LN_S@
174174 LTLIBOBJS = @LTLIBOBJS@
175 LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@
175176 MAINT = @MAINT@
176177 MAKEINFO = @MAKEINFO@
177178 MANIFEST_TOOL = @MANIFEST_TOOL@
00 #! /bin/sh
11 # Attempt to guess a canonical system name.
2 # Copyright 1992-2015 Free Software Foundation, Inc.
3
4 timestamp='2015-08-20'
2 # Copyright 1992-2014 Free Software Foundation, Inc.
3
4 timestamp='2014-03-23'
55
66 # This file is free software; you can redistribute it and/or modify it
77 # under the terms of the GNU General Public License as published by
2323 # program. This Exception is an additional permission under section 7
2424 # of the GNU General Public License, version 3 ("GPLv3").
2525 #
26 # Originally written by Per Bothner; maintained since 2000 by Ben Elliston.
26 # Originally written by Per Bothner.
2727 #
2828 # You can get the latest version of this script from:
2929 # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
3030 #
31 # Please send patches to <config-patches@gnu.org>.
31 # Please send patches with a ChangeLog entry to config-patches@gnu.org.
3232
3333
3434 me=`echo "$0" | sed -e 's,.*/,,'`
4949 GNU config.guess ($timestamp)
5050
5151 Originally written by Per Bothner.
52 Copyright 1992-2015 Free Software Foundation, Inc.
52 Copyright 1992-2014 Free Software Foundation, Inc.
5353
5454 This is free software; see the source for copying conditions. There is NO
5555 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
167167 # Note: NetBSD doesn't particularly care about the vendor
168168 # portion of the name. We always set it to "unknown".
169169 sysctl="sysctl -n hw.machine_arch"
170 UNAME_MACHINE_ARCH=`(uname -p 2>/dev/null || \
171 /sbin/$sysctl 2>/dev/null || \
172 /usr/sbin/$sysctl 2>/dev/null || \
173 echo unknown)`
170 UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
171 /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
174172 case "${UNAME_MACHINE_ARCH}" in
175173 armeb) machine=armeb-unknown ;;
176174 arm*) machine=arm-unknown ;;
177175 sh3el) machine=shl-unknown ;;
178176 sh3eb) machine=sh-unknown ;;
179177 sh5el) machine=sh5le-unknown ;;
180 earmv*)
181 arch=`echo ${UNAME_MACHINE_ARCH} | sed -e 's,^e\(armv[0-9]\).*$,\1,'`
182 endian=`echo ${UNAME_MACHINE_ARCH} | sed -ne 's,^.*\(eb\)$,\1,p'`
183 machine=${arch}${endian}-unknown
184 ;;
185178 *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
186179 esac
187180 # The Operating System including object format, if it has switched
188181 # to ELF recently, or will in the future.
189182 case "${UNAME_MACHINE_ARCH}" in
190 arm*|earm*|i386|m68k|ns32k|sh3*|sparc|vax)
183 arm*|i386|m68k|ns32k|sh3*|sparc|vax)
191184 eval $set_cc_for_build
192185 if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
193186 | grep -q __ELF__
203196 os=netbsd
204197 ;;
205198 esac
206 # Determine ABI tags.
207 case "${UNAME_MACHINE_ARCH}" in
208 earm*)
209 expr='s/^earmv[0-9]/-eabi/;s/eb$//'
210 abi=`echo ${UNAME_MACHINE_ARCH} | sed -e "$expr"`
211 ;;
212 esac
213199 # The OS release
214200 # Debian GNU/NetBSD machines have a different userland, and
215201 # thus, need a distinct triplet. However, they do not need
220206 release='-gnu'
221207 ;;
222208 *)
223 release=`echo ${UNAME_RELEASE} | sed -e 's/[-_].*//' | cut -d. -f1,2`
209 release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
224210 ;;
225211 esac
226212 # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
227213 # contains redundant information, the shorter form:
228214 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
229 echo "${machine}-${os}${release}${abi}"
215 echo "${machine}-${os}${release}"
230216 exit ;;
231217 *:Bitrig:*:*)
232218 UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'`
247233 exit ;;
248234 *:MirBSD:*:*)
249235 echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
250 exit ;;
251 *:Sortix:*:*)
252 echo ${UNAME_MACHINE}-unknown-sortix
253236 exit ;;
254237 alpha:OSF1:*:*)
255238 case $UNAME_RELEASE in
595578 else
596579 IBM_ARCH=powerpc
597580 fi
598 if [ -x /usr/bin/lslpp ] ; then
599 IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc |
600 awk -F: '{ print $3 }' | sed s/[0-9]*$/0/`
581 if [ -x /usr/bin/oslevel ] ; then
582 IBM_REV=`/usr/bin/oslevel`
601583 else
602584 IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
603585 fi
949931 crisv32:Linux:*:*)
950932 echo ${UNAME_MACHINE}-axis-linux-${LIBC}
951933 exit ;;
952 e2k:Linux:*:*)
953 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
954 exit ;;
955934 frv:Linux:*:*)
956935 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
957936 exit ;;
10401019 echo ${UNAME_MACHINE}-dec-linux-${LIBC}
10411020 exit ;;
10421021 x86_64:Linux:*:*)
1043 echo ${UNAME_MACHINE}-pc-linux-${LIBC}
1022 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
10441023 exit ;;
10451024 xtensa*:Linux:*:*)
10461025 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
3535 /* Define if valgrind should be used */
3636 #undef HAVE_VALGRIND
3737
38 /* Define to the sub-directory in which libtool stores uninstalled libraries.
39 */
38 /* Define to the sub-directory where libtool stores uninstalled libraries. */
4039 #undef LT_OBJDIR
4140
4241 /* Name of package */
00 #! /bin/sh
11 # Configuration validation subroutine script.
2 # Copyright 1992-2015 Free Software Foundation, Inc.
3
4 timestamp='2015-08-20'
2 # Copyright 1992-2014 Free Software Foundation, Inc.
3
4 timestamp='2014-09-11'
55
66 # This file is free software; you can redistribute it and/or modify it
77 # under the terms of the GNU General Public License as published by
2424 # of the GNU General Public License, version 3 ("GPLv3").
2525
2626
27 # Please send patches to <config-patches@gnu.org>.
27 # Please send patches with a ChangeLog entry to config-patches@gnu.org.
2828 #
2929 # Configuration subroutine to validate and canonicalize a configuration type.
3030 # Supply the specified configuration type as an argument.
6767 version="\
6868 GNU config.sub ($timestamp)
6969
70 Copyright 1992-2015 Free Software Foundation, Inc.
70 Copyright 1992-2014 Free Software Foundation, Inc.
7171
7272 This is free software; see the source for copying conditions. There is NO
7373 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
116116 case $maybe_os in
117117 nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
118118 linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
119 knetbsd*-gnu* | netbsd*-gnu* | netbsd*-eabi* | \
119 knetbsd*-gnu* | netbsd*-gnu* | \
120120 kopensolaris*-gnu* | \
121121 storm-chaos* | os2-emx* | rtmk-nova*)
122122 os=-$maybe_os
254254 | arc | arceb \
255255 | arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \
256256 | avr | avr32 \
257 | ba \
258257 | be32 | be64 \
259258 | bfin \
260259 | c4x | c8051 | clipper \
261260 | d10v | d30v | dlx | dsp16xx \
262 | e2k | epiphany \
263 | fido | fr30 | frv | ft32 \
261 | epiphany \
262 | fido | fr30 | frv \
264263 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
265264 | hexagon \
266265 | i370 | i860 | i960 | ia64 \
305304 | riscv32 | riscv64 \
306305 | rl78 | rx \
307306 | score \
308 | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[234]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
307 | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
309308 | sh64 | sh64le \
310309 | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
311310 | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
313312 | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
314313 | ubicom32 \
315314 | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
316 | visium \
317315 | we32k \
318316 | x86 | xc16x | xstormy16 | xtensa \
319317 | z8k | z80)
327325 ;;
328326 c6x)
329327 basic_machine=tic6x-unknown
330 ;;
331 leon|leon[3-9])
332 basic_machine=sparc-$basic_machine
333328 ;;
334329 m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | nvptx | picochip)
335330 basic_machine=$basic_machine-unknown
376371 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* | arceb-* \
377372 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
378373 | avr-* | avr32-* \
379 | ba-* \
380374 | be32-* | be64-* \
381375 | bfin-* | bs2000-* \
382376 | c[123]* | c30-* | [cjt]90-* | c4x-* \
383377 | c8051-* | clipper-* | craynv-* | cydra-* \
384378 | d10v-* | d30v-* | dlx-* \
385 | e2k-* | elxsi-* \
379 | elxsi-* \
386380 | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
387381 | h8300-* | h8500-* \
388382 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
429423 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
430424 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
431425 | pyramid-* \
432 | riscv32-* | riscv64-* \
433426 | rl78-* | romp-* | rs6000-* | rx-* \
434427 | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
435428 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
436429 | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
437430 | sparclite-* \
438 | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx*-* \
431 | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \
439432 | tahoe-* \
440433 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
441434 | tile*-* \
443436 | ubicom32-* \
444437 | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
445438 | vax-* \
446 | visium-* \
447439 | we32k-* \
448440 | x86-* | x86_64-* | xc16x-* | xps100-* \
449441 | xstormy16-* | xtensa*-* \
519511 aros)
520512 basic_machine=i386-pc
521513 os=-aros
522 ;;
523 asmjs)
524 basic_machine=asmjs-unknown
525514 ;;
526515 aux)
527516 basic_machine=m68k-apple
783772 isi68 | isi)
784773 basic_machine=m68k-isi
785774 os=-sysv
786 ;;
787 leon-*|leon[3-9]-*)
788 basic_machine=sparc-`echo $basic_machine | sed 's/-.*//'`
789775 ;;
790776 m68knommu)
791777 basic_machine=m68k-unknown
13781364 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
13791365 | -sym* | -kopensolaris* | -plan9* \
13801366 | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
1381 | -aos* | -aros* | -cloudabi* | -sortix* \
1367 | -aos* | -aros* \
13821368 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
13831369 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
13841370 | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
+1279
-864
configure less more
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.69 for GStreamer GObject Introspection overrides for Python 1.7.1.
2 # Generated by GNU Autoconf 2.69 for GStreamer GObject Introspection overrides for Python 1.7.2.
33 #
44 # Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer>.
55 #
590590 # Identity of this package.
591591 PACKAGE_NAME='GStreamer GObject Introspection overrides for Python '
592592 PACKAGE_TARNAME='gst-python'
593 PACKAGE_VERSION='1.7.1'
594 PACKAGE_STRING='GStreamer GObject Introspection overrides for Python 1.7.1'
593 PACKAGE_VERSION='1.7.2'
594 PACKAGE_STRING='GStreamer GObject Introspection overrides for Python 1.7.2'
595595 PACKAGE_BUGREPORT='http://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer'
596596 PACKAGE_URL=''
597597
667667 PYTHON_VERSION
668668 PYTHON
669669 CPP
670 LT_SYS_LIBRARY_PATH
670671 OTOOL64
671672 OTOOL
672673 LIPO
804805 enable_shared
805806 with_pic
806807 enable_fast_install
808 with_aix_soname
807809 enable_dependency_tracking
808810 with_gnu_ld
809811 with_sysroot
820822 LDFLAGS
821823 LIBS
822824 CPPFLAGS
825 LT_SYS_LIBRARY_PATH
823826 CPP
824827 PYTHON
825828 PKG_CONFIG
13791382 # Omit some internal or obsolete options to make the list less imposing.
13801383 # This message is too long to be a string in the A/UX 3.1 sh.
13811384 cat <<_ACEOF
1382 \`configure' configures GStreamer GObject Introspection overrides for Python 1.7.1 to adapt to many kinds of systems.
1385 \`configure' configures GStreamer GObject Introspection overrides for Python 1.7.2 to adapt to many kinds of systems.
13831386
13841387 Usage: $0 [OPTION]... [VAR=VALUE]...
13851388
14511454
14521455 if test -n "$ac_init_help"; then
14531456 case $ac_init_help in
1454 short | recursive ) echo "Configuration of GStreamer GObject Introspection overrides for Python 1.7.1:";;
1457 short | recursive ) echo "Configuration of GStreamer GObject Introspection overrides for Python 1.7.2:";;
14551458 esac
14561459 cat <<\_ACEOF
14571460
14801483 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
14811484 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
14821485 both]
1486 --with-aix-soname=aix|svr4|both
1487 shared library versioning (aka "SONAME") variant to
1488 provide on AIX, [default=aix].
14831489 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1484 --with-sysroot=DIR Search for dependent libraries within DIR
1485 (or the compiler's sysroot if not specified).
1490 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1491 compiler's sysroot if not specified).
14861492 --with-pygi-overrides-dir
14871493 Path to pygobject overrides directory
14881494 --with-libpython-dir the directory containing libpython${PYTHON_VERSION}
14951501 LIBS libraries to pass to the linker, e.g. -l<library>
14961502 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
14971503 you have headers in a nonstandard directory <include dir>
1504 LT_SYS_LIBRARY_PATH
1505 User-defined run-time library search path.
14981506 CPP C preprocessor
14991507 PYTHON the Python interpreter
15001508 PKG_CONFIG path to pkg-config utility
15751583 test -n "$ac_init_help" && exit $ac_status
15761584 if $ac_init_version; then
15771585 cat <<\_ACEOF
1578 GStreamer GObject Introspection overrides for Python configure 1.7.1
1586 GStreamer GObject Introspection overrides for Python configure 1.7.2
15791587 generated by GNU Autoconf 2.69
15801588
15811589 Copyright (C) 2012 Free Software Foundation, Inc.
18531861 This file contains any messages produced by compilers while
18541862 running configure, to aid debugging if configure makes a mistake.
18551863
1856 It was created by GStreamer GObject Introspection overrides for Python $as_me 1.7.1, which was
1864 It was created by GStreamer GObject Introspection overrides for Python $as_me 1.7.2, which was
18571865 generated by GNU Autoconf 2.69. Invocation command line was
18581866
18591867 $ $0 $@
28312839
28322840 # Define the identity of the package.
28332841 PACKAGE='gst-python'
2834 VERSION='1.7.1'
2842 VERSION='1.7.2'
28352843
28362844
28372845 cat >>confdefs.h <<_ACEOF
30423050
30433051
30443052
3045 PACKAGE_VERSION_MAJOR=$(echo 1.7.1 | cut -d'.' -f1)
3046 PACKAGE_VERSION_MINOR=$(echo 1.7.1 | cut -d'.' -f2)
3047 PACKAGE_VERSION_MICRO=$(echo 1.7.1 | cut -d'.' -f3)
3053 PACKAGE_VERSION_MAJOR=$(echo 1.7.2 | cut -d'.' -f1)
3054 PACKAGE_VERSION_MINOR=$(echo 1.7.2 | cut -d'.' -f2)
3055 PACKAGE_VERSION_MICRO=$(echo 1.7.2 | cut -d'.' -f3)
30483056
30493057
30503058
30553063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking nano version" >&5
30563064 $as_echo_n "checking nano version... " >&6; }
30573065
3058 NANO=$(echo 1.7.1 | cut -d'.' -f4)
3066 NANO=$(echo 1.7.2 | cut -d'.' -f4)
30593067
30603068 if test x"$NANO" = x || test "x$NANO" = "x0" ; then
30613069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 0 (release)" >&5
31513159 ACLOCAL_AMFLAGS="-I m4 -I common/m4"
31523160
31533161
3154 GST_REQ=1.7.1
3162 GST_REQ=1.7.2
31553163
31563164 PYGOBJECT_REQ=3.0
31573165
31653173 *)
31663174 enable_static=no
31673175 # Look at the argument we got. We use all the common list separators.
3168 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3176 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
31693177 for pkg in $enableval; do
3170 IFS="$lt_save_ifs"
3178 IFS=$lt_save_ifs
31713179 if test "X$pkg" = "X$p"; then
31723180 enable_static=yes
31733181 fi
31743182 done
3175 IFS="$lt_save_ifs"
3183 IFS=$lt_save_ifs
31763184 ;;
31773185 esac
31783186 else
31973205
31983206
31993207
3200 macro_version='2.4.2'
3201 macro_revision='1.3337'
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215 ltmain="$ac_aux_dir/ltmain.sh"
3208 macro_version='2.4.6'
3209 macro_revision='2.4.6'
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223 ltmain=$ac_aux_dir/ltmain.sh
32163224
32173225 # Backslashify metacharacters that are still active within
32183226 # double-quoted strings.
32613269 $ECHO ""
32623270 }
32633271
3264 case "$ECHO" in
3272 case $ECHO in
32653273 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
32663274 $as_echo "printf" >&6; } ;;
32673275 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
46234631
46244632 # Check whether --with-gnu-ld was given.
46254633 if test "${with_gnu_ld+set}" = set; then :
4626 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4634 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
46274635 else
46284636 with_gnu_ld=no
46294637 fi
46304638
46314639 ac_prog=ld
4632 if test "$GCC" = yes; then
4640 if test yes = "$GCC"; then
46334641 # Check if gcc -print-prog-name=ld gives a path.
46344642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
46354643 $as_echo_n "checking for ld used by $CC... " >&6; }
46364644 case $host in
46374645 *-*-mingw*)
4638 # gcc leaves a trailing carriage return which upsets mingw
4646 # gcc leaves a trailing carriage return, which upsets mingw
46394647 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
46404648 *)
46414649 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
46494657 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
46504658 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
46514659 done
4652 test -z "$LD" && LD="$ac_prog"
4660 test -z "$LD" && LD=$ac_prog
46534661 ;;
46544662 "")
46554663 # If it fails, then pretend we aren't using GCC.
46604668 with_gnu_ld=unknown
46614669 ;;
46624670 esac
4663 elif test "$with_gnu_ld" = yes; then
4671 elif test yes = "$with_gnu_ld"; then
46644672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
46654673 $as_echo_n "checking for GNU ld... " >&6; }
46664674 else
46714679 $as_echo_n "(cached) " >&6
46724680 else
46734681 if test -z "$LD"; then
4674 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4682 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
46754683 for ac_dir in $PATH; do
4676 IFS="$lt_save_ifs"
4684 IFS=$lt_save_ifs
46774685 test -z "$ac_dir" && ac_dir=.
46784686 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4679 lt_cv_path_LD="$ac_dir/$ac_prog"
4687 lt_cv_path_LD=$ac_dir/$ac_prog
46804688 # Check to see if the program is GNU ld. I'd rather use --version,
46814689 # but apparently some variants of GNU ld only accept -v.
46824690 # Break only if it was the GNU/non-GNU ld that we prefer.
46834691 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
46844692 *GNU* | *'with BFD'*)
4685 test "$with_gnu_ld" != no && break
4693 test no != "$with_gnu_ld" && break
46864694 ;;
46874695 *)
4688 test "$with_gnu_ld" != yes && break
4696 test yes != "$with_gnu_ld" && break
46894697 ;;
46904698 esac
46914699 fi
46924700 done
4693 IFS="$lt_save_ifs"
4694 else
4695 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4696 fi
4697 fi
4698
4699 LD="$lt_cv_path_LD"
4701 IFS=$lt_save_ifs
4702 else
4703 lt_cv_path_LD=$LD # Let the user override the test with a path.
4704 fi
4705 fi
4706
4707 LD=$lt_cv_path_LD
47004708 if test -n "$LD"; then
47014709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
47024710 $as_echo "$LD" >&6; }
47394747 else
47404748 if test -n "$NM"; then
47414749 # Let the user override the test.
4742 lt_cv_path_NM="$NM"
4743 else
4744 lt_nm_to_check="${ac_tool_prefix}nm"
4750 lt_cv_path_NM=$NM
4751 else
4752 lt_nm_to_check=${ac_tool_prefix}nm
47454753 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
47464754 lt_nm_to_check="$lt_nm_to_check nm"
47474755 fi
47484756 for lt_tmp_nm in $lt_nm_to_check; do
4749 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4757 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
47504758 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4751 IFS="$lt_save_ifs"
4759 IFS=$lt_save_ifs
47524760 test -z "$ac_dir" && ac_dir=.
4753 tmp_nm="$ac_dir/$lt_tmp_nm"
4754 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4761 tmp_nm=$ac_dir/$lt_tmp_nm
4762 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
47554763 # Check to see if the nm accepts a BSD-compat flag.
4756 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4764 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
47574765 # nm: unknown option "B" ignored
47584766 # Tru64's nm complains that /dev/null is an invalid object file
4759 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4760 */dev/null* | *'Invalid file or object type'*)
4767 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4768 case $build_os in
4769 mingw*) lt_bad_file=conftest.nm/nofile ;;
4770 *) lt_bad_file=/dev/null ;;
4771 esac
4772 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4773 *$lt_bad_file* | *'Invalid file or object type'*)
47614774 lt_cv_path_NM="$tmp_nm -B"
4762 break
4775 break 2
47634776 ;;
47644777 *)
47654778 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
47664779 */dev/null*)
47674780 lt_cv_path_NM="$tmp_nm -p"
4768 break
4781 break 2
47694782 ;;
47704783 *)
47714784 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
47764789 esac
47774790 fi
47784791 done
4779 IFS="$lt_save_ifs"
4792 IFS=$lt_save_ifs
47804793 done
47814794 : ${lt_cv_path_NM=no}
47824795 fi
47834796 fi
47844797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
47854798 $as_echo "$lt_cv_path_NM" >&6; }
4786 if test "$lt_cv_path_NM" != "no"; then
4787 NM="$lt_cv_path_NM"
4799 if test no != "$lt_cv_path_NM"; then
4800 NM=$lt_cv_path_NM
47884801 else
47894802 # Didn't find any BSD compatible name lister, look for dumpbin.
47904803 if test -n "$DUMPBIN"; then :
48904903 fi
48914904 fi
48924905
4893 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4906 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
48944907 *COFF*)
4895 DUMPBIN="$DUMPBIN -symbols"
4908 DUMPBIN="$DUMPBIN -symbols -headers"
48964909 ;;
48974910 *)
48984911 DUMPBIN=:
49004913 esac
49014914 fi
49024915
4903 if test "$DUMPBIN" != ":"; then
4904 NM="$DUMPBIN"
4916 if test : != "$DUMPBIN"; then
4917 NM=$DUMPBIN
49054918 fi
49064919 fi
49074920 test -z "$NM" && NM=nm
49524965 $as_echo_n "(cached) " >&6
49534966 else
49544967 i=0
4955 teststring="ABCD"
4968 teststring=ABCD
49564969
49574970 case $build_os in
49584971 msdosdjgpp*)
49925005 lt_cv_sys_max_cmd_len=8192;
49935006 ;;
49945007
4995 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5008 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
49965009 # This has been around since 386BSD, at least. Likely further.
49975010 if test -x /sbin/sysctl; then
49985011 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
50435056 *)
50445057 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
50455058 if test -n "$lt_cv_sys_max_cmd_len" && \
5046 test undefined != "$lt_cv_sys_max_cmd_len"; then
5059 test undefined != "$lt_cv_sys_max_cmd_len"; then
50475060 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
50485061 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
50495062 else
50505063 # Make teststring a little bigger before we do anything with it.
50515064 # a 1K string should be a reasonable start.
5052 for i in 1 2 3 4 5 6 7 8 ; do
5065 for i in 1 2 3 4 5 6 7 8; do
50535066 teststring=$teststring$teststring
50545067 done
50555068 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
50565069 # If test is not a shell built-in, we'll probably end up computing a
50575070 # maximum length that is only half of the actual maximum length, but
50585071 # we can't tell.
5059 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5072 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
50605073 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5061 test $i != 17 # 1/2 MB should be enough
5074 test 17 != "$i" # 1/2 MB should be enough
50625075 do
50635076 i=`expr $i + 1`
50645077 teststring=$teststring$teststring
50765089
50775090 fi
50785091
5079 if test -n $lt_cv_sys_max_cmd_len ; then
5092 if test -n "$lt_cv_sys_max_cmd_len"; then
50805093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
50815094 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
50825095 else
50935106 : ${CP="cp -f"}
50945107 : ${MV="mv -f"}
50955108 : ${RM="rm -f"}
5096
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5098 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5099 # Try some XSI features
5100 xsi_shell=no
5101 ( _lt_dummy="a/b/c"
5102 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5103 = c,a/b,b/c, \
5104 && eval 'test $(( 1 + 1 )) -eq 2 \
5105 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5106 && xsi_shell=yes
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5108 $as_echo "$xsi_shell" >&6; }
5109
5110
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5112 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5113 lt_shell_append=no
5114 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5115 >/dev/null 2>&1 \
5116 && lt_shell_append=yes
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5118 $as_echo "$lt_shell_append" >&6; }
5119
51205109
51215110 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
51225111 lt_unset=unset
52405229 reload_cmds='$LD$reload_flag -o $output$reload_objs'
52415230 case $host_os in
52425231 cygwin* | mingw* | pw32* | cegcc*)
5243 if test "$GCC" != yes; then
5232 if test yes != "$GCC"; then
52445233 reload_cmds=false
52455234 fi
52465235 ;;
52475236 darwin*)
5248 if test "$GCC" = yes; then
5249 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5237 if test yes = "$GCC"; then
5238 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
52505239 else
52515240 reload_cmds='$LD$reload_flag -o $output$reload_objs'
52525241 fi
53715360 # Need to set the preceding variable on all platforms that support
53725361 # interlibrary dependencies.
53735362 # 'none' -- dependencies not supported.
5374 # `unknown' -- same as none, but documents that we really don't know.
5363 # 'unknown' -- same as none, but documents that we really don't know.
53755364 # 'pass_all' -- all dependencies passed with no checks.
53765365 # 'test_compile' -- check by making test program.
53775366 # 'file_magic [[regex]]' -- check by looking for files in library path
5378 # which responds to the $file_magic_cmd with a given extended regex.
5379 # If you have `file' or equivalent on your system and you're not sure
5380 # whether `pass_all' will *always* work, you probably want this one.
5367 # that responds to the $file_magic_cmd with a given extended regex.
5368 # If you have 'file' or equivalent on your system and you're not sure
5369 # whether 'pass_all' will *always* work, you probably want this one.
53815370
53825371 case $host_os in
53835372 aix[4-9]*)
54045393 # Base MSYS/MinGW do not provide the 'file' command needed by
54055394 # func_win32_libid shell function, so use a weaker test based on 'objdump',
54065395 # unless we find 'file', for example because we are cross-compiling.
5407 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5408 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5396 if ( file / ) >/dev/null 2>&1; then
54095397 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
54105398 lt_cv_file_magic_cmd='func_win32_libid'
54115399 else
55015489 lt_cv_deplibs_check_method=pass_all
55025490 ;;
55035491
5504 openbsd*)
5505 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5492 openbsd* | bitrig*)
5493 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
55065494 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
55075495 else
55085496 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
55555543 tpf*)
55565544 lt_cv_deplibs_check_method=pass_all
55575545 ;;
5546 os2*)
5547 lt_cv_deplibs_check_method=pass_all
5548 ;;
55585549 esac
55595550
55605551 fi
57095700
57105701 case $host_os in
57115702 cygwin* | mingw* | pw32* | cegcc*)
5712 # two different shell functions defined in ltmain.sh
5713 # decide which to use based on capabilities of $DLLTOOL
5703 # two different shell functions defined in ltmain.sh;
5704 # decide which one to use based on capabilities of $DLLTOOL
57145705 case `$DLLTOOL --help 2>&1` in
57155706 *--identify-strict*)
57165707 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
57225713 ;;
57235714 *)
57245715 # fallback: assume linklib IS sharedlib
5725 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5716 lt_cv_sharedlib_from_linklib_cmd=$ECHO
57265717 ;;
57275718 esac
57285719
58775868 ac_status=$?
58785869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
58795870 test $ac_status = 0; }
5880 if test "$ac_status" -eq 0; then
5871 if test 0 -eq "$ac_status"; then
58815872 # Ensure the archiver fails upon bogus file names.
58825873 rm -f conftest.$ac_objext libconftest.a
58835874 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
58855876 ac_status=$?
58865877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
58875878 test $ac_status = 0; }
5888 if test "$ac_status" -ne 0; then
5879 if test 0 -ne "$ac_status"; then
58895880 lt_cv_ar_at_file=@
58905881 fi
58915882 fi
58985889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
58995890 $as_echo "$lt_cv_ar_at_file" >&6; }
59005891
5901 if test "x$lt_cv_ar_at_file" = xno; then
5892 if test no = "$lt_cv_ar_at_file"; then
59025893 archiver_list_spec=
59035894 else
59045895 archiver_list_spec=$lt_cv_ar_at_file
61156106
61166107 if test -n "$RANLIB"; then
61176108 case $host_os in
6118 openbsd*)
6109 bitrig* | openbsd*)
61196110 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
61206111 ;;
61216112 *)
62056196 symcode='[ABCDGISTW]'
62066197 ;;
62076198 hpux*)
6208 if test "$host_cpu" = ia64; then
6199 if test ia64 = "$host_cpu"; then
62096200 symcode='[ABCDEGRST]'
62106201 fi
62116202 ;;
62386229 symcode='[ABCDGIRSTW]' ;;
62396230 esac
62406231
6232 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6233 # Gets list of data symbols to import.
6234 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6235 # Adjust the below global symbol transforms to fixup imported variables.
6236 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6237 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6238 lt_c_name_lib_hook="\
6239 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6240 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6241 else
6242 # Disable hooks by default.
6243 lt_cv_sys_global_symbol_to_import=
6244 lt_cdecl_hook=
6245 lt_c_name_hook=
6246 lt_c_name_lib_hook=
6247 fi
6248
62416249 # Transform an extracted symbol line into a proper C declaration.
62426250 # Some systems (esp. on ia64) link data and code symbols differently,
62436251 # so use this general approach.
6244 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6252 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6253 $lt_cdecl_hook\
6254 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6255 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
62456256
62466257 # Transform an extracted symbol line into symbol name and symbol address
6247 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6248 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'"
6258 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6259 $lt_c_name_hook\
6260 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6261 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6262
6263 # Transform an extracted symbol line into symbol name with lib prefix and
6264 # symbol address.
6265 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6266 $lt_c_name_lib_hook\
6267 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6268 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6269 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
62496270
62506271 # Handle CRLF in mingw tool chain
62516272 opt_cr=
62636284
62646285 # Write the raw and C identifiers.
62656286 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6266 # Fake it for dumpbin and say T for any non-static function
6267 # and D for any global variable.
6287 # Fake it for dumpbin and say T for any non-static function,
6288 # D for any global variable and I for any imported variable.
62686289 # Also find C++ and __fastcall symbols from MSVC++,
62696290 # which start with @ or ?.
62706291 lt_cv_sys_global_symbol_pipe="$AWK '"\
62716292 " {last_section=section; section=\$ 3};"\
62726293 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
62736294 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6295 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6296 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6297 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
62746298 " \$ 0!~/External *\|/{next};"\
62756299 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
62766300 " {if(hide[section]) next};"\
6277 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6278 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6279 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6280 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6301 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6302 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6303 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6304 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
62816305 " ' prfx=^$ac_symprfx"
62826306 else
62836307 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
63256349 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
63266350 cat <<_LT_EOF > conftest.$ac_ext
63276351 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6328 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6329 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6352 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6353 /* DATA imports from DLLs on WIN32 can't be const, because runtime
63306354 relocations are performed -- see ld's documentation on pseudo-relocs. */
63316355 # define LT_DLSYM_CONST
6332 #elif defined(__osf__)
6356 #elif defined __osf__
63336357 /* This system does not cope well with relocations in const data. */
63346358 # define LT_DLSYM_CONST
63356359 #else
63556379 {
63566380 { "@PROGRAM@", (void *) 0 },
63576381 _LT_EOF
6358 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6382 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
63596383 cat <<\_LT_EOF >> conftest.$ac_ext
63606384 {0, (void *) 0}
63616385 };
63756399 mv conftest.$ac_objext conftstm.$ac_objext
63766400 lt_globsym_save_LIBS=$LIBS
63776401 lt_globsym_save_CFLAGS=$CFLAGS
6378 LIBS="conftstm.$ac_objext"
6402 LIBS=conftstm.$ac_objext
63796403 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
63806404 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
63816405 (eval $ac_link) 2>&5
63826406 ac_status=$?
63836407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6384 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6408 test $ac_status = 0; } && test -s conftest$ac_exeext; then
63856409 pipe_works=yes
63866410 fi
63876411 LIBS=$lt_globsym_save_LIBS
64026426 rm -rf conftest* conftst*
64036427
64046428 # Do not use the global_symbol_pipe unless it works.
6405 if test "$pipe_works" = yes; then
6429 if test yes = "$pipe_works"; then
64066430 break
64076431 else
64086432 lt_cv_sys_global_symbol_pipe=
64556479
64566480
64576481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
64586492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
64596493 $as_echo_n "checking for sysroot... " >&6; }
64606494
64676501
64686502
64696503 lt_sysroot=
6470 case ${with_sysroot} in #(
6504 case $with_sysroot in #(
64716505 yes)
6472 if test "$GCC" = yes; then
6506 if test yes = "$GCC"; then
64736507 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
64746508 fi
64756509 ;; #(
64796513 no|'')
64806514 ;; #(
64816515 *)
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6483 $as_echo "${with_sysroot}" >&6; }
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6517 $as_echo "$with_sysroot" >&6; }
64846518 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
64856519 ;;
64866520 esac
64926526
64936527
64946528
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6530 $as_echo_n "checking for a working dd... " >&6; }
6531 if ${ac_cv_path_lt_DD+:} false; then :
6532 $as_echo_n "(cached) " >&6
6533 else
6534 printf 0123456789abcdef0123456789abcdef >conftest.i
6535 cat conftest.i conftest.i >conftest2.i
6536 : ${lt_DD:=$DD}
6537 if test -z "$lt_DD"; then
6538 ac_path_lt_DD_found=false
6539 # Loop through the user's path and test for each of PROGNAME-LIST
6540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6541 for as_dir in $PATH
6542 do
6543 IFS=$as_save_IFS
6544 test -z "$as_dir" && as_dir=.
6545 for ac_prog in dd; do
6546 for ac_exec_ext in '' $ac_executable_extensions; do
6547 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6548 as_fn_executable_p "$ac_path_lt_DD" || continue
6549 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6550 cmp -s conftest.i conftest.out \
6551 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6552 fi
6553 $ac_path_lt_DD_found && break 3
6554 done
6555 done
6556 done
6557 IFS=$as_save_IFS
6558 if test -z "$ac_cv_path_lt_DD"; then
6559 :
6560 fi
6561 else
6562 ac_cv_path_lt_DD=$lt_DD
6563 fi
6564
6565 rm -f conftest.i conftest2.i conftest.out
6566 fi
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6568 $as_echo "$ac_cv_path_lt_DD" >&6; }
6569
6570
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6572 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6573 if ${lt_cv_truncate_bin+:} false; then :
6574 $as_echo_n "(cached) " >&6
6575 else
6576 printf 0123456789abcdef0123456789abcdef >conftest.i
6577 cat conftest.i conftest.i >conftest2.i
6578 lt_cv_truncate_bin=
6579 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6580 cmp -s conftest.i conftest.out \
6581 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6582 fi
6583 rm -f conftest.i conftest2.i conftest.out
6584 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6585 fi
6586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6587 $as_echo "$lt_cv_truncate_bin" >&6; }
6588
6589
6590
6591
6592
6593
6594
6595 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6596 func_cc_basename ()
6597 {
6598 for cc_temp in $*""; do
6599 case $cc_temp in
6600 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6601 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6602 \-*) ;;
6603 *) break;;
6604 esac
6605 done
6606 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6607 }
6608
64956609 # Check whether --enable-libtool-lock was given.
64966610 if test "${enable_libtool_lock+set}" = set; then :
64976611 enableval=$enable_libtool_lock;
64986612 fi
64996613
6500 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6614 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
65016615
65026616 # Some flags need to be propagated to the compiler or linker for good
65036617 # libtool support.
65046618 case $host in
65056619 ia64-*-hpux*)
6506 # Find out which ABI we are using.
6620 # Find out what ABI is being produced by ac_compile, and set mode
6621 # options accordingly.
65076622 echo 'int i;' > conftest.$ac_ext
65086623 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
65096624 (eval $ac_compile) 2>&5
65126627 test $ac_status = 0; }; then
65136628 case `/usr/bin/file conftest.$ac_objext` in
65146629 *ELF-32*)
6515 HPUX_IA64_MODE="32"
6630 HPUX_IA64_MODE=32
65166631 ;;
65176632 *ELF-64*)
6518 HPUX_IA64_MODE="64"
6633 HPUX_IA64_MODE=64
65196634 ;;
65206635 esac
65216636 fi
65226637 rm -rf conftest*
65236638 ;;
65246639 *-*-irix6*)
6525 # Find out which ABI we are using.
6640 # Find out what ABI is being produced by ac_compile, and set linker
6641 # options accordingly.
65266642 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
65276643 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
65286644 (eval $ac_compile) 2>&5
65296645 ac_status=$?
65306646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
65316647 test $ac_status = 0; }; then
6532 if test "$lt_cv_prog_gnu_ld" = yes; then
6648 if test yes = "$lt_cv_prog_gnu_ld"; then
65336649 case `/usr/bin/file conftest.$ac_objext` in
65346650 *32-bit*)
65356651 LD="${LD-ld} -melf32bsmip"
65586674 rm -rf conftest*
65596675 ;;
65606676
6677 mips64*-*linux*)
6678 # Find out what ABI is being produced by ac_compile, and set linker
6679 # options accordingly.
6680 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6681 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6682 (eval $ac_compile) 2>&5
6683 ac_status=$?
6684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6685 test $ac_status = 0; }; then
6686 emul=elf
6687 case `/usr/bin/file conftest.$ac_objext` in
6688 *32-bit*)
6689 emul="${emul}32"
6690 ;;
6691 *64-bit*)
6692 emul="${emul}64"
6693 ;;
6694 esac
6695 case `/usr/bin/file conftest.$ac_objext` in
6696 *MSB*)
6697 emul="${emul}btsmip"
6698 ;;
6699 *LSB*)
6700 emul="${emul}ltsmip"
6701 ;;
6702 esac
6703 case `/usr/bin/file conftest.$ac_objext` in
6704 *N32*)
6705 emul="${emul}n32"
6706 ;;
6707 esac
6708 LD="${LD-ld} -m $emul"
6709 fi
6710 rm -rf conftest*
6711 ;;
6712
65616713 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
65626714 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6563 # Find out which ABI we are using.
6715 # Find out what ABI is being produced by ac_compile, and set linker
6716 # options accordingly. Note that the listed cases only cover the
6717 # situations where additional linker options are needed (such as when
6718 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6719 # vice versa); the common cases where no linker options are needed do
6720 # not appear in the list.
65646721 echo 'int i;' > conftest.$ac_ext
65656722 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
65666723 (eval $ac_compile) 2>&5
65836740 ;;
65846741 esac
65856742 ;;
6586 powerpc64le-*)
6743 powerpc64le-*linux*)
65876744 LD="${LD-ld} -m elf32lppclinux"
65886745 ;;
6589 powerpc64-*)
6746 powerpc64-*linux*)
65906747 LD="${LD-ld} -m elf32ppclinux"
65916748 ;;
65926749 s390x-*linux*)
66056762 x86_64-*linux*)
66066763 LD="${LD-ld} -m elf_x86_64"
66076764 ;;
6608 powerpcle-*)
6765 powerpcle-*linux*)
66096766 LD="${LD-ld} -m elf64lppc"
66106767 ;;
6611 powerpc-*)
6768 powerpc-*linux*)
66126769 LD="${LD-ld} -m elf64ppc"
66136770 ;;
66146771 s390*-*linux*|s390*-*tpf*)
66266783
66276784 *-*-sco3.2v5*)
66286785 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6629 SAVE_CFLAGS="$CFLAGS"
6786 SAVE_CFLAGS=$CFLAGS
66306787 CFLAGS="$CFLAGS -belf"
66316788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
66326789 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
66666823 fi
66676824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
66686825 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6669 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6826 if test yes != "$lt_cv_cc_needs_belf"; then
66706827 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6671 CFLAGS="$SAVE_CFLAGS"
6828 CFLAGS=$SAVE_CFLAGS
66726829 fi
66736830 ;;
66746831 *-*solaris*)
6675 # Find out which ABI we are using.
6832 # Find out what ABI is being produced by ac_compile, and set linker
6833 # options accordingly.
66766834 echo 'int i;' > conftest.$ac_ext
66776835 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
66786836 (eval $ac_compile) 2>&5
66846842 case $lt_cv_prog_gnu_ld in
66856843 yes*)
66866844 case $host in
6687 i?86-*-solaris*)
6845 i?86-*-solaris*|x86_64-*-solaris*)
66886846 LD="${LD-ld} -m elf_x86_64"
66896847 ;;
66906848 sparc*-*-solaris*)
66936851 esac
66946852 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
66956853 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6696 LD="${LD-ld}_sol2"
6854 LD=${LD-ld}_sol2
66976855 fi
66986856 ;;
66996857 *)
67096867 ;;
67106868 esac
67116869
6712 need_locks="$enable_libtool_lock"
6870 need_locks=$enable_libtool_lock
67136871
67146872 if test -n "$ac_tool_prefix"; then
67156873 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
68206978 fi
68216979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
68226980 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6823 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6981 if test yes != "$lt_cv_path_mainfest_tool"; then
68246982 MANIFEST_TOOL=:
68256983 fi
68266984
73237481 $as_echo_n "(cached) " >&6
73247482 else
73257483 lt_cv_apple_cc_single_mod=no
7326 if test -z "${LT_MULTI_MODULE}"; then
7484 if test -z "$LT_MULTI_MODULE"; then
73277485 # By default we will add the -single_module flag. You can override
73287486 # by either setting the environment variable LT_MULTI_MODULE
73297487 # non-empty at configure time, or by adding -multi_module to the
73417499 cat conftest.err >&5
73427500 # Otherwise, if the output was created with a 0 exit code from
73437501 # the compiler, it worked.
7344 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7502 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
73457503 lt_cv_apple_cc_single_mod=yes
73467504 else
73477505 cat conftest.err >&5
73807538 fi
73817539 rm -f core conftest.err conftest.$ac_objext \
73827540 conftest$ac_exeext conftest.$ac_ext
7383 LDFLAGS="$save_LDFLAGS"
7541 LDFLAGS=$save_LDFLAGS
73847542
73857543 fi
73867544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
74097567 _lt_result=$?
74107568 if test -s conftest.err && $GREP force_load conftest.err; then
74117569 cat conftest.err >&5
7412 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7570 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
74137571 lt_cv_ld_force_load=yes
74147572 else
74157573 cat conftest.err >&5
74227580 $as_echo "$lt_cv_ld_force_load" >&6; }
74237581 case $host_os in
74247582 rhapsody* | darwin1.[012])
7425 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7583 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
74267584 darwin1.*)
7427 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7585 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
74287586 darwin*) # darwin 5.x on
74297587 # if running on 10.5 or later, the deployment target defaults
74307588 # to the OS version, if on x86, and 10.4, the deployment
74317589 # target defaults to 10.4. Don't you love it?
74327590 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
74337591 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7434 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7435 10.[012]*)
7436 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7592 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7593 10.[012][,.]*)
7594 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
74377595 10.*)
7438 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7596 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
74397597 esac
74407598 ;;
74417599 esac
7442 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7600 if test yes = "$lt_cv_apple_cc_single_mod"; then
74437601 _lt_dar_single_mod='$single_module'
74447602 fi
7445 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7446 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7603 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7604 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
74477605 else
7448 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7606 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
74497607 fi
7450 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7608 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
74517609 _lt_dsymutil='~$DSYMUTIL $lib || :'
74527610 else
74537611 _lt_dsymutil=
74547612 fi
74557613 ;;
74567614 esac
7615
7616 # func_munge_path_list VARIABLE PATH
7617 # -----------------------------------
7618 # VARIABLE is name of variable containing _space_ separated list of
7619 # directories to be munged by the contents of PATH, which is string
7620 # having a format:
7621 # "DIR[:DIR]:"
7622 # string "DIR[ DIR]" will be prepended to VARIABLE
7623 # ":DIR[:DIR]"
7624 # string "DIR[ DIR]" will be appended to VARIABLE
7625 # "DIRP[:DIRP]::[DIRA:]DIRA"
7626 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7627 # "DIRA[ DIRA]" will be appended to VARIABLE
7628 # "DIR[:DIR]"
7629 # VARIABLE will be replaced by "DIR[ DIR]"
7630 func_munge_path_list ()
7631 {
7632 case x$2 in
7633 x)
7634 ;;
7635 *:)
7636 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7637 ;;
7638 x:*)
7639 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7640 ;;
7641 *::*)
7642 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7643 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7644 ;;
7645 *)
7646 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7647 ;;
7648 esac
7649 }
74577650
74587651 ac_ext=c
74597652 ac_cpp='$CPP $CPPFLAGS'
80508243 *)
80518244 enable_static=no
80528245 # Look at the argument we got. We use all the common list separators.
8053 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8246 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
80548247 for pkg in $enableval; do
8055 IFS="$lt_save_ifs"
8248 IFS=$lt_save_ifs
80568249 if test "X$pkg" = "X$p"; then
80578250 enable_static=yes
80588251 fi
80598252 done
8060 IFS="$lt_save_ifs"
8253 IFS=$lt_save_ifs
80618254 ;;
80628255 esac
80638256 else
80818274 *)
80828275 enable_shared=no
80838276 # Look at the argument we got. We use all the common list separators.
8084 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8277 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
80858278 for pkg in $enableval; do
8086 IFS="$lt_save_ifs"
8279 IFS=$lt_save_ifs
80878280 if test "X$pkg" = "X$p"; then
80888281 enable_shared=yes
80898282 fi
80908283 done
8091 IFS="$lt_save_ifs"
8284 IFS=$lt_save_ifs
80928285 ;;
80938286 esac
80948287 else
81138306 *)
81148307 pic_mode=default
81158308 # Look at the argument we got. We use all the common list separators.
8116 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8309 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
81178310 for lt_pkg in $withval; do
8118 IFS="$lt_save_ifs"
8311 IFS=$lt_save_ifs
81198312 if test "X$lt_pkg" = "X$lt_p"; then
81208313 pic_mode=yes
81218314 fi
81228315 done
8123 IFS="$lt_save_ifs"
8316 IFS=$lt_save_ifs
81248317 ;;
81258318 esac
81268319 else
81278320 pic_mode=default
81288321 fi
81298322
8130
8131 test -z "$pic_mode" && pic_mode=default
81328323
81338324
81348325
81458336 *)
81468337 enable_fast_install=no
81478338 # Look at the argument we got. We use all the common list separators.
8148 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8339 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
81498340 for pkg in $enableval; do
8150 IFS="$lt_save_ifs"
8341 IFS=$lt_save_ifs
81518342 if test "X$pkg" = "X$p"; then
81528343 enable_fast_install=yes
81538344 fi
81548345 done
8155 IFS="$lt_save_ifs"
8346 IFS=$lt_save_ifs
81568347 ;;
81578348 esac
81588349 else
81668357
81678358
81688359
8360 shared_archive_member_spec=
8361 case $host,$enable_shared in
8362 power*-*-aix[5-9]*,yes)
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8364 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8365
8366 # Check whether --with-aix-soname was given.
8367 if test "${with_aix_soname+set}" = set; then :
8368 withval=$with_aix_soname; case $withval in
8369 aix|svr4|both)
8370 ;;
8371 *)
8372 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8373 ;;
8374 esac
8375 lt_cv_with_aix_soname=$with_aix_soname
8376 else
8377 if ${lt_cv_with_aix_soname+:} false; then :
8378 $as_echo_n "(cached) " >&6
8379 else
8380 lt_cv_with_aix_soname=aix
8381 fi
8382
8383 with_aix_soname=$lt_cv_with_aix_soname
8384 fi
8385
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8387 $as_echo "$with_aix_soname" >&6; }
8388 if test aix != "$with_aix_soname"; then
8389 # For the AIX way of multilib, we name the shared archive member
8390 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8391 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8392 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8393 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8394 if test 64 = "${OBJECT_MODE-32}"; then
8395 shared_archive_member_spec=shr_64
8396 else
8397 shared_archive_member_spec=shr
8398 fi
8399 fi
8400 ;;
8401 *)
8402 with_aix_soname=aix
8403 ;;
8404 esac
8405
8406
8407
8408
8409
8410
8411
81698412
81708413
81718414
81728415 # This can be used to rebuild libtool when needed
8173 LIBTOOL_DEPS="$ltmain"
8416 LIBTOOL_DEPS=$ltmain
81748417
81758418 # Always use our own libtool.
81768419 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
82198462
82208463
82218464
8222 if test -n "${ZSH_VERSION+set}" ; then
8465 if test -n "${ZSH_VERSION+set}"; then
82238466 setopt NO_GLOB_SUBST
82248467 fi
82258468
82588501 # AIX sometimes has problems with the GCC collect2 program. For some
82598502 # reason, if we set the COLLECT_NAMES environment variable, the problems
82608503 # vanish in a puff of smoke.
8261 if test "X${COLLECT_NAMES+set}" != Xset; then
8504 if test set != "${COLLECT_NAMES+set}"; then
82628505 COLLECT_NAMES=
82638506 export COLLECT_NAMES
82648507 fi
82698512 ofile=libtool
82708513 can_build_shared=yes
82718514
8272 # All known linkers require a `.a' archive for static linking (except MSVC,
8515 # All known linkers require a '.a' archive for static linking (except MSVC,
82738516 # which needs '.lib').
82748517 libext=a
82758518
8276 with_gnu_ld="$lt_cv_prog_gnu_ld"
8277
8278 old_CC="$CC"
8279 old_CFLAGS="$CFLAGS"
8519 with_gnu_ld=$lt_cv_prog_gnu_ld
8520
8521 old_CC=$CC
8522 old_CFLAGS=$CFLAGS
82808523
82818524 # Set sane defaults for various variables
82828525 test -z "$CC" && CC=cc
82858528 test -z "$LD" && LD=ld
82868529 test -z "$ac_objext" && ac_objext=o
82878530
8288 for cc_temp in $compiler""; do
8289 case $cc_temp in
8290 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8291 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8292 \-*) ;;
8293 *) break;;
8294 esac
8295 done
8296 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8531 func_cc_basename $compiler
8532 cc_basename=$func_cc_basename_result
82978533
82988534
82998535 # Only perform the check for file, if the check method requires it
83088544 else
83098545 case $MAGIC_CMD in
83108546 [\\/*] | ?:[\\/]*)
8311 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8547 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
83128548 ;;
83138549 *)
8314 lt_save_MAGIC_CMD="$MAGIC_CMD"
8315 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8550 lt_save_MAGIC_CMD=$MAGIC_CMD
8551 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
83168552 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
83178553 for ac_dir in $ac_dummy; do
8318 IFS="$lt_save_ifs"
8554 IFS=$lt_save_ifs
83198555 test -z "$ac_dir" && ac_dir=.
8320 if test -f $ac_dir/${ac_tool_prefix}file; then
8321 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8556 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8557 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
83228558 if test -n "$file_magic_test_file"; then
83238559 case $deplibs_check_method in
83248560 "file_magic "*)
83258561 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8326 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8562 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
83278563 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
83288564 $EGREP "$file_magic_regex" > /dev/null; then
83298565 :
83468582 break
83478583 fi
83488584 done
8349 IFS="$lt_save_ifs"
8350 MAGIC_CMD="$lt_save_MAGIC_CMD"
8585 IFS=$lt_save_ifs
8586 MAGIC_CMD=$lt_save_MAGIC_CMD
83518587 ;;
83528588 esac
83538589 fi
83548590
8355 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8591 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
83568592 if test -n "$MAGIC_CMD"; then
83578593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
83588594 $as_echo "$MAGIC_CMD" >&6; }
83748610 else
83758611 case $MAGIC_CMD in
83768612 [\\/*] | ?:[\\/]*)
8377 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8613 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
83788614 ;;
83798615 *)
8380 lt_save_MAGIC_CMD="$MAGIC_CMD"
8381 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8616 lt_save_MAGIC_CMD=$MAGIC_CMD
8617 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
83828618 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
83838619 for ac_dir in $ac_dummy; do
8384 IFS="$lt_save_ifs"
8620 IFS=$lt_save_ifs
83858621 test -z "$ac_dir" && ac_dir=.
8386 if test -f $ac_dir/file; then
8387 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8622 if test -f "$ac_dir/file"; then
8623 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
83888624 if test -n "$file_magic_test_file"; then
83898625 case $deplibs_check_method in
83908626 "file_magic "*)
83918627 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8392 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8628 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
83938629 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
83948630 $EGREP "$file_magic_regex" > /dev/null; then
83958631 :
84128648 break
84138649 fi
84148650 done
8415 IFS="$lt_save_ifs"
8416 MAGIC_CMD="$lt_save_MAGIC_CMD"
8651 IFS=$lt_save_ifs
8652 MAGIC_CMD=$lt_save_MAGIC_CMD
84178653 ;;
84188654 esac
84198655 fi
84208656
8421 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8657 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
84228658 if test -n "$MAGIC_CMD"; then
84238659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
84248660 $as_echo "$MAGIC_CMD" >&6; }
84398675
84408676 # Use C for the default configuration in the libtool script
84418677
8442 lt_save_CC="$CC"
8678 lt_save_CC=$CC
84438679 ac_ext=c
84448680 ac_cpp='$CPP $CPPFLAGS'
84458681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
85018737
85028738 lt_prog_compiler_no_builtin_flag=
85038739
8504 if test "$GCC" = yes; then
8740 if test yes = "$GCC"; then
85058741 case $cc_basename in
85068742 nvcc*)
85078743 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
85178753 lt_cv_prog_compiler_rtti_exceptions=no
85188754 ac_outfile=conftest.$ac_objext
85198755 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8520 lt_compiler_flag="-fno-rtti -fno-exceptions"
8756 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
85218757 # Insert the option either (1) after the last *FLAGS variable, or
85228758 # (2) before a word containing "conftest.", or (3) at the end.
85238759 # Note that $ac_compile itself does not contain backslashes and begins
85478783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
85488784 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
85498785
8550 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8786 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
85518787 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
85528788 else
85538789 :
85658801 lt_prog_compiler_static=
85668802
85678803
8568 if test "$GCC" = yes; then
8804 if test yes = "$GCC"; then
85698805 lt_prog_compiler_wl='-Wl,'
85708806 lt_prog_compiler_static='-static'
85718807
85728808 case $host_os in
85738809 aix*)
85748810 # All AIX code is PIC.
8575 if test "$host_cpu" = ia64; then
8811 if test ia64 = "$host_cpu"; then
85768812 # AIX 5 now supports IA64 processor
85778813 lt_prog_compiler_static='-Bstatic'
85788814 fi
8815 lt_prog_compiler_pic='-fPIC'
85798816 ;;
85808817
85818818 amigaos*)
85868823 ;;
85878824 m68k)
85888825 # FIXME: we need at least 68020 code to build shared libraries, but
8589 # adding the `-m68020' flag to GCC prevents building anything better,
8590 # like `-m68040'.
8826 # adding the '-m68020' flag to GCC prevents building anything better,
8827 # like '-m68040'.
85918828 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
85928829 ;;
85938830 esac
86038840 # Although the cygwin gcc ignores -fPIC, still need this for old-style
86048841 # (--disable-auto-import) libraries
86058842 lt_prog_compiler_pic='-DDLL_EXPORT'
8843 case $host_os in
8844 os2*)
8845 lt_prog_compiler_static='$wl-static'
8846 ;;
8847 esac
86068848 ;;
86078849
86088850 darwin* | rhapsody*)
86738915 case $host_os in
86748916 aix*)
86758917 lt_prog_compiler_wl='-Wl,'
8676 if test "$host_cpu" = ia64; then
8918 if test ia64 = "$host_cpu"; then
86778919 # AIX 5 now supports IA64 processor
86788920 lt_prog_compiler_static='-Bstatic'
86798921 else
86818923 fi
86828924 ;;
86838925
8926 darwin* | rhapsody*)
8927 # PIC is the default on this platform
8928 # Common symbols not allowed in MH_DYLIB files
8929 lt_prog_compiler_pic='-fno-common'
8930 case $cc_basename in
8931 nagfor*)
8932 # NAG Fortran compiler
8933 lt_prog_compiler_wl='-Wl,-Wl,,'
8934 lt_prog_compiler_pic='-PIC'
8935 lt_prog_compiler_static='-Bstatic'
8936 ;;
8937 esac
8938 ;;
8939
86848940 mingw* | cygwin* | pw32* | os2* | cegcc*)
86858941 # This hack is so that the source file can tell whether it is being
86868942 # built for inclusion in a dll (and should export symbols for example).
86878943 lt_prog_compiler_pic='-DDLL_EXPORT'
8944 case $host_os in
8945 os2*)
8946 lt_prog_compiler_static='$wl-static'
8947 ;;
8948 esac
86888949 ;;
86898950
86908951 hpux9* | hpux10* | hpux11*)
87008961 ;;
87018962 esac
87028963 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8703 lt_prog_compiler_static='${wl}-a ${wl}archive'
8964 lt_prog_compiler_static='$wl-a ${wl}archive'
87048965 ;;
87058966
87068967 irix5* | irix6* | nonstopux*)
87118972
87128973 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
87138974 case $cc_basename in
8714 # old Intel for x86_64 which still supported -KPIC.
8975 # old Intel for x86_64, which still supported -KPIC.
87158976 ecc*)
87168977 lt_prog_compiler_wl='-Wl,'
87178978 lt_prog_compiler_pic='-KPIC'
87358996 lt_prog_compiler_wl='-Wl,-Wl,,'
87368997 lt_prog_compiler_pic='-PIC'
87378998 lt_prog_compiler_static='-Bstatic'
8999 ;;
9000 tcc*)
9001 # Fabrice Bellard et al's Tiny C Compiler
9002 lt_prog_compiler_wl='-Wl,'
9003 lt_prog_compiler_pic='-fPIC'
9004 lt_prog_compiler_static='-static'
87389005 ;;
87399006 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
87409007 # Portland Group compilers (*not* the Pentium gcc compiler,
88339100 ;;
88349101
88359102 sysv4*MP*)
8836 if test -d /usr/nec ;then
9103 if test -d /usr/nec; then
88379104 lt_prog_compiler_pic='-Kconform_pic'
88389105 lt_prog_compiler_static='-Bstatic'
88399106 fi
88629129 fi
88639130
88649131 case $host_os in
8865 # For platforms which do not support PIC, -DPIC is meaningless:
9132 # For platforms that do not support PIC, -DPIC is meaningless:
88669133 *djgpp*)
88679134 lt_prog_compiler_pic=
88689135 ;;
88949161 lt_cv_prog_compiler_pic_works=no
88959162 ac_outfile=conftest.$ac_objext
88969163 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8897 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9164 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
88989165 # Insert the option either (1) after the last *FLAGS variable, or
88999166 # (2) before a word containing "conftest.", or (3) at the end.
89009167 # Note that $ac_compile itself does not contain backslashes and begins
89249191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
89259192 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
89269193
8927 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9194 if test yes = "$lt_cv_prog_compiler_pic_works"; then
89289195 case $lt_prog_compiler_pic in
89299196 "" | " "*) ;;
89309197 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
89569223 $as_echo_n "(cached) " >&6
89579224 else
89589225 lt_cv_prog_compiler_static_works=no
8959 save_LDFLAGS="$LDFLAGS"
9226 save_LDFLAGS=$LDFLAGS
89609227 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
89619228 echo "$lt_simple_link_test_code" > conftest.$ac_ext
89629229 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
89759242 fi
89769243 fi
89779244 $RM -r conftest*
8978 LDFLAGS="$save_LDFLAGS"
9245 LDFLAGS=$save_LDFLAGS
89799246
89809247 fi
89819248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
89829249 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
89839250
8984 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9251 if test yes = "$lt_cv_prog_compiler_static_works"; then
89859252 :
89869253 else
89879254 lt_prog_compiler_static=
91019368
91029369
91039370
9104 hard_links="nottested"
9105 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9371 hard_links=nottested
9372 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
91069373 # do not overwrite the value of need_locks provided by the user
91079374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
91089375 $as_echo_n "checking if we can lock with hard links... " >&6; }
91149381 ln conftest.a conftest.b 2>/dev/null && hard_links=no
91159382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
91169383 $as_echo "$hard_links" >&6; }
9117 if test "$hard_links" = no; then
9118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9119 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9384 if test no = "$hard_links"; then
9385 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9386 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
91209387 need_locks=warn
91219388 fi
91229389 else
91599426 # included in the symbol list
91609427 include_expsyms=
91619428 # exclude_expsyms can be an extended regexp of symbols to exclude
9162 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9163 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9164 # as well as any symbol that contains `d'.
9429 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9430 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9431 # as well as any symbol that contains 'd'.
91659432 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
91669433 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
91679434 # platforms (ab)use it in PIC code, but their linkers get confused if
91769443 # FIXME: the MSVC++ port hasn't been tested in a loooong time
91779444 # When not using gcc, we currently assume that we are using
91789445 # Microsoft Visual C++.
9179 if test "$GCC" != yes; then
9446 if test yes != "$GCC"; then
91809447 with_gnu_ld=no
91819448 fi
91829449 ;;
91849451 # we just hope/assume this is gcc and not c89 (= MSVC++)
91859452 with_gnu_ld=yes
91869453 ;;
9187 openbsd*)
9454 openbsd* | bitrig*)
91889455 with_gnu_ld=no
91899456 ;;
91909457 linux* | k*bsd*-gnu | gnu*)
91979464 # On some targets, GNU ld is compatible enough with the native linker
91989465 # that we're better off using the native interface for both.
91999466 lt_use_gnu_ld_interface=no
9200 if test "$with_gnu_ld" = yes; then
9467 if test yes = "$with_gnu_ld"; then
92019468 case $host_os in
92029469 aix*)
92039470 # The AIX port of GNU ld has always aspired to compatibility
92199486 esac
92209487 fi
92219488
9222 if test "$lt_use_gnu_ld_interface" = yes; then
9489 if test yes = "$lt_use_gnu_ld_interface"; then
92239490 # If archive_cmds runs LD, not CC, wlarc should be empty
9224 wlarc='${wl}'
9491 wlarc='$wl'
92259492
92269493 # Set some defaults for GNU ld with shared library support. These
92279494 # are reset later if shared libraries are not supported. Putting them
92289495 # here allows them to be overridden if necessary.
92299496 runpath_var=LD_RUN_PATH
9230 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9231 export_dynamic_flag_spec='${wl}--export-dynamic'
9497 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9498 export_dynamic_flag_spec='$wl--export-dynamic'
92329499 # ancient GNU ld didn't support --whole-archive et. al.
92339500 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9234 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9501 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
92359502 else
92369503 whole_archive_flag_spec=
92379504 fi
92389505 supports_anon_versioning=no
9239 case `$LD -v 2>&1` in
9506 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
92409507 *GNU\ gold*) supports_anon_versioning=yes ;;
92419508 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
92429509 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
92499516 case $host_os in
92509517 aix[3-9]*)
92519518 # On AIX/PPC, the GNU linker is very broken
9252 if test "$host_cpu" != ia64; then
9519 if test ia64 != "$host_cpu"; then
92539520 ld_shlibs=no
92549521 cat <<_LT_EOF 1>&2
92559522
92689535 case $host_cpu in
92699536 powerpc)
92709537 # see comment about AmigaOS4 .so support
9271 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9538 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
92729539 archive_expsym_cmds=''
92739540 ;;
92749541 m68k)
92849551 allow_undefined_flag=unsupported
92859552 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
92869553 # support --undefined. This deserves some investigation. FIXME
9287 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9554 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
92889555 else
92899556 ld_shlibs=no
92909557 fi
92949561 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
92959562 # as there is no search path for DLLs.
92969563 hardcode_libdir_flag_spec='-L$libdir'
9297 export_dynamic_flag_spec='${wl}--export-all-symbols'
9564 export_dynamic_flag_spec='$wl--export-all-symbols'
92989565 allow_undefined_flag=unsupported
92999566 always_export_symbols=no
93009567 enable_shared_with_static_runtimes=yes
93029569 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
93039570
93049571 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9305 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9306 # If the export-symbols file already is a .def file (1st line
9307 # is EXPORTS), use it as is; otherwise, prepend...
9308 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9309 cp $export_symbols $output_objdir/$soname.def;
9310 else
9311 echo EXPORTS > $output_objdir/$soname.def;
9312 cat $export_symbols >> $output_objdir/$soname.def;
9313 fi~
9314 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9572 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9573 # If the export-symbols file already is a .def file, use it as
9574 # is; otherwise, prepend EXPORTS...
9575 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9576 cp $export_symbols $output_objdir/$soname.def;
9577 else
9578 echo EXPORTS > $output_objdir/$soname.def;
9579 cat $export_symbols >> $output_objdir/$soname.def;
9580 fi~
9581 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
93159582 else
93169583 ld_shlibs=no
93179584 fi
93189585 ;;
93199586
93209587 haiku*)
9321 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9588 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
93229589 link_all_deplibs=yes
9590 ;;
9591
9592 os2*)
9593 hardcode_libdir_flag_spec='-L$libdir'
9594 hardcode_minus_L=yes
9595 allow_undefined_flag=unsupported
9596 shrext_cmds=.dll
9597 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9598 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9599 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9600 $ECHO EXPORTS >> $output_objdir/$libname.def~
9601 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9602 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9603 emximp -o $lib $output_objdir/$libname.def'
9604 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9605 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9606 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9607 $ECHO EXPORTS >> $output_objdir/$libname.def~
9608 prefix_cmds="$SED"~
9609 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9610 prefix_cmds="$prefix_cmds -e 1d";
9611 fi~
9612 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9613 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9614 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9615 emximp -o $lib $output_objdir/$libname.def'
9616 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9617 enable_shared_with_static_runtimes=yes
93239618 ;;
93249619
93259620 interix[3-9]*)
93269621 hardcode_direct=no
93279622 hardcode_shlibpath_var=no
9328 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9329 export_dynamic_flag_spec='${wl}-E'
9623 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9624 export_dynamic_flag_spec='$wl-E'
93309625 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
93319626 # Instead, shared libraries are loaded at an image base (0x10000000 by
93329627 # default) and relocated if they conflict, which is a slow very memory
93339628 # consuming and fragmenting process. To avoid this, we pick a random,
93349629 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
93359630 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9336 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9337 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9631 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9632 archive_expsym_cmds='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
93389633 ;;
93399634
93409635 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
93419636 tmp_diet=no
9342 if test "$host_os" = linux-dietlibc; then
9637 if test linux-dietlibc = "$host_os"; then
93439638 case $cc_basename in
93449639 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
93459640 esac
93469641 fi
93479642 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9348 && test "$tmp_diet" = no
9643 && test no = "$tmp_diet"
93499644 then
93509645 tmp_addflag=' $pic_flag'
93519646 tmp_sharedflag='-shared'
93529647 case $cc_basename,$host_cpu in
93539648 pgcc*) # Portland Group C compiler
9354 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9649 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
93559650 tmp_addflag=' $pic_flag'
93569651 ;;
93579652 pgf77* | pgf90* | pgf95* | pgfortran*)
93589653 # Portland Group f77 and f90 compilers
9359 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9654 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
93609655 tmp_addflag=' $pic_flag -Mnomain' ;;
93619656 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
93629657 tmp_addflag=' -i_dynamic' ;;
93679662 lf95*) # Lahey Fortran 8.1
93689663 whole_archive_flag_spec=
93699664 tmp_sharedflag='--shared' ;;
9665 nagfor*) # NAGFOR 5.3
9666 tmp_sharedflag='-Wl,-shared' ;;
93709667 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
93719668 tmp_sharedflag='-qmkshrobj'
93729669 tmp_addflag= ;;
93739670 nvcc*) # Cuda Compiler Driver 2.2
9374 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9671 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
93759672 compiler_needs_object=yes
93769673 ;;
93779674 esac
93789675 case `$CC -V 2>&1 | sed 5q` in
93799676 *Sun\ C*) # Sun C 5.9
9380 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9677 whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
93819678 compiler_needs_object=yes
93829679 tmp_sharedflag='-G' ;;
93839680 *Sun\ F*) # Sun Fortran 8.3
93849681 tmp_sharedflag='-G' ;;
93859682 esac
9386 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9387
9388 if test "x$supports_anon_versioning" = xyes; then
9683 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9684
9685 if test yes = "$supports_anon_versioning"; then
93899686 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9390 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9391 echo "local: *; };" >> $output_objdir/$libname.ver~
9392 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9687 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9688 echo "local: *; };" >> $output_objdir/$libname.ver~
9689 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
93939690 fi
93949691
93959692 case $cc_basename in
9693 tcc*)
9694 export_dynamic_flag_spec='-rdynamic'
9695 ;;
93969696 xlf* | bgf* | bgxlf* | mpixlf*)
93979697 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
93989698 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9399 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9699 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
94009700 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9401 if test "x$supports_anon_versioning" = xyes; then
9701 if test yes = "$supports_anon_versioning"; then
94029702 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9403 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9404 echo "local: *; };" >> $output_objdir/$libname.ver~
9405 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9703 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9704 echo "local: *; };" >> $output_objdir/$libname.ver~
9705 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
94069706 fi
94079707 ;;
94089708 esac
94169716 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
94179717 wlarc=
94189718 else
9419 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9420 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9719 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9720 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
94219721 fi
94229722 ;;
94239723
94359735
94369736 _LT_EOF
94379737 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9438 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9439 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9738 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9739 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
94409740 else
94419741 ld_shlibs=no
94429742 fi
94489748 ld_shlibs=no
94499749 cat <<_LT_EOF 1>&2
94509750
9451 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9751 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
94529752 *** reliably create shared libraries on SCO systems. Therefore, libtool
94539753 *** is disabling shared libraries support. We urge you to upgrade GNU
94549754 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
94639763 # DT_RUNPATH tag from executables and libraries. But doing so
94649764 # requires that you compile everything twice, which is a pain.
94659765 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9466 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9467 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9468 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9766 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9767 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9768 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
94699769 else
94709770 ld_shlibs=no
94719771 fi
94829782
94839783 *)
94849784 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9485 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9486 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9785 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9786 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
94879787 else
94889788 ld_shlibs=no
94899789 fi
94909790 ;;
94919791 esac
94929792
9493 if test "$ld_shlibs" = no; then
9793 if test no = "$ld_shlibs"; then
94949794 runpath_var=
94959795 hardcode_libdir_flag_spec=
94969796 export_dynamic_flag_spec=
95069806 # Note: this linker hardcodes the directories in LIBPATH if there
95079807 # are no directories specified by -L.
95089808 hardcode_minus_L=yes
9509 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9809 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
95109810 # Neither direct hardcoding nor static linking is supported with a
95119811 # broken collect2.
95129812 hardcode_direct=unsupported
95149814 ;;
95159815
95169816 aix[4-9]*)
9517 if test "$host_cpu" = ia64; then
9817 if test ia64 = "$host_cpu"; then
95189818 # On IA64, the linker does run time linking by default, so we don't
95199819 # have to do anything special.
95209820 aix_use_runtimelinking=no
95219821 exp_sym_flag='-Bexport'
9522 no_entry_flag=""
9822 no_entry_flag=
95239823 else
95249824 # If we're using GNU nm, then we don't want the "-C" option.
9525 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9526 # Also, AIX nm treats weak defined symbols like other global
9527 # defined symbols, whereas GNU nm marks them as "W".
9825 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9826 # Without the "-l" option, or with the "-B" option, AIX nm treats
9827 # weak defined symbols like other global defined symbols, whereas
9828 # GNU nm marks them as "W".
9829 # While the 'weak' keyword is ignored in the Export File, we need
9830 # it in the Import File for the 'aix-soname' feature, so we have
9831 # to replace the "-B" option with "-P" for AIX nm.
95289832 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9529 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9833 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
95309834 else
9531 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9835 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
95329836 fi
95339837 aix_use_runtimelinking=no
95349838
95359839 # Test if we are trying to use run time linking or normal
95369840 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9537 # need to do runtime linking.
9841 # have runtime linking enabled, and use it for executables.
9842 # For shared libraries, we enable/disable runtime linking
9843 # depending on the kind of the shared library created -
9844 # when "with_aix_soname,aix_use_runtimelinking" is:
9845 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9846 # "aix,yes" lib.so shared, rtl:yes, for executables
9847 # lib.a static archive
9848 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9849 # lib.a(lib.so.V) shared, rtl:no, for executables
9850 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9851 # lib.a(lib.so.V) shared, rtl:no
9852 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9853 # lib.a static archive
95389854 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
95399855 for ld_flag in $LDFLAGS; do
9540 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9856 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
95419857 aix_use_runtimelinking=yes
95429858 break
95439859 fi
95449860 done
9861 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9862 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9863 # so we don't have lib.a shared libs to link our executables.
9864 # We have to force runtime linking in this case.
9865 aix_use_runtimelinking=yes
9866 LDFLAGS="$LDFLAGS -Wl,-brtl"
9867 fi
95459868 ;;
95469869 esac
95479870
95609883 hardcode_direct_absolute=yes
95619884 hardcode_libdir_separator=':'
95629885 link_all_deplibs=yes
9563 file_list_spec='${wl}-f,'
9564
9565 if test "$GCC" = yes; then
9886 file_list_spec='$wl-f,'
9887 case $with_aix_soname,$aix_use_runtimelinking in
9888 aix,*) ;; # traditional, no import file
9889 svr4,* | *,yes) # use import file
9890 # The Import File defines what to hardcode.
9891 hardcode_direct=no
9892 hardcode_direct_absolute=no
9893 ;;
9894 esac
9895
9896 if test yes = "$GCC"; then
95669897 case $host_os in aix4.[012]|aix4.[012].*)
95679898 # We only want to do this on AIX 4.2 and lower, the check
95689899 # below for broken collect2 doesn't work under 4.3+
9569 collect2name=`${CC} -print-prog-name=collect2`
9900 collect2name=`$CC -print-prog-name=collect2`
95709901 if test -f "$collect2name" &&
95719902 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
95729903 then
95859916 ;;
95869917 esac
95879918 shared_flag='-shared'
9588 if test "$aix_use_runtimelinking" = yes; then
9589 shared_flag="$shared_flag "'${wl}-G'
9919 if test yes = "$aix_use_runtimelinking"; then
9920 shared_flag="$shared_flag "'$wl-G'
95909921 fi
9591 link_all_deplibs=no
9922 # Need to ensure runtime linking is disabled for the traditional
9923 # shared library, or the linker may eventually find shared libraries
9924 # /with/ Import File - we do not want to mix them.
9925 shared_flag_aix='-shared'
9926 shared_flag_svr4='-shared $wl-G'
95929927 else
95939928 # not using gcc
9594 if test "$host_cpu" = ia64; then
9929 if test ia64 = "$host_cpu"; then
95959930 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
95969931 # chokes on -Wl,-G. The following line is correct:
95979932 shared_flag='-G'
95989933 else
9599 if test "$aix_use_runtimelinking" = yes; then
9600 shared_flag='${wl}-G'
9934 if test yes = "$aix_use_runtimelinking"; then
9935 shared_flag='$wl-G'
96019936 else
9602 shared_flag='${wl}-bM:SRE'
9937 shared_flag='$wl-bM:SRE'
96039938 fi
9939 shared_flag_aix='$wl-bM:SRE'
9940 shared_flag_svr4='$wl-G'
96049941 fi
96059942 fi
96069943
9607 export_dynamic_flag_spec='${wl}-bexpall'
9944 export_dynamic_flag_spec='$wl-bexpall'
96089945 # It seems that -bexpall does not export symbols beginning with
96099946 # underscore (_), so it is better to generate a list of symbols to export.
96109947 always_export_symbols=yes
9611 if test "$aix_use_runtimelinking" = yes; then
9948 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
96129949 # Warning - without using the other runtime loading flags (-brtl),
96139950 # -berok will link without error, but may produce a broken library.
96149951 allow_undefined_flag='-berok'
96159952 # Determine the default libpath from the value encoded in an
96169953 # empty executable.
9617 if test "${lt_cv_aix_libpath+set}" = set; then
9954 if test set = "${lt_cv_aix_libpath+set}"; then
96189955 aix_libpath=$lt_cv_aix_libpath
96199956 else
96209957 if ${lt_cv_aix_libpath_+:} false; then :
96499986 rm -f core conftest.err conftest.$ac_objext \
96509987 conftest$ac_exeext conftest.$ac_ext
96519988 if test -z "$lt_cv_aix_libpath_"; then
9652 lt_cv_aix_libpath_="/usr/lib:/lib"
9989 lt_cv_aix_libpath_=/usr/lib:/lib
96539990 fi
96549991
96559992 fi
96579994 aix_libpath=$lt_cv_aix_libpath_
96589995 fi
96599996
9660 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9661 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"
9997 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9998 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
96629999 else
9663 if test "$host_cpu" = ia64; then
9664 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10000 if test ia64 = "$host_cpu"; then
10001 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
966510002 allow_undefined_flag="-z nodefs"
9666 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
10003 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
966710004 else
966810005 # Determine the default libpath from the value encoded in an
966910006 # empty executable.
9670 if test "${lt_cv_aix_libpath+set}" = set; then
10007 if test set = "${lt_cv_aix_libpath+set}"; then
967110008 aix_libpath=$lt_cv_aix_libpath
967210009 else
967310010 if ${lt_cv_aix_libpath_+:} false; then :
970210039 rm -f core conftest.err conftest.$ac_objext \
970310040 conftest$ac_exeext conftest.$ac_ext
970410041 if test -z "$lt_cv_aix_libpath_"; then
9705 lt_cv_aix_libpath_="/usr/lib:/lib"
10042 lt_cv_aix_libpath_=/usr/lib:/lib
970610043 fi
970710044
970810045 fi
971010047 aix_libpath=$lt_cv_aix_libpath_
971110048 fi
971210049
9713 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10050 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
971410051 # Warning - without using the other run time loading flags,
971510052 # -berok will link without error, but may produce a broken library.
9716 no_undefined_flag=' ${wl}-bernotok'
9717 allow_undefined_flag=' ${wl}-berok'
9718 if test "$with_gnu_ld" = yes; then
10053 no_undefined_flag=' $wl-bernotok'
10054 allow_undefined_flag=' $wl-berok'
10055 if test yes = "$with_gnu_ld"; then
971910056 # We only use this code for GNU lds that support --whole-archive.
9720 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10057 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
972110058 else
972210059 # Exported symbols can be pulled into shared objects from archives
972310060 whole_archive_flag_spec='$convenience'
972410061 fi
972510062 archive_cmds_need_lc=yes
9726 # This is similar to how AIX traditionally builds its shared libraries.
9727 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10063 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10064 # -brtl affects multiple linker settings, -berok does not and is overridden later
10065 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10066 if test svr4 != "$with_aix_soname"; then
10067 # This is similar to how AIX traditionally builds its shared libraries.
10068 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
10069 fi
10070 if test aix != "$with_aix_soname"; then
10071 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
10072 else
10073 # used by -dlpreopen to get the symbols
10074 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10075 fi
10076 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
972810077 fi
972910078 fi
973010079 ;;
973310082 case $host_cpu in
973410083 powerpc)
973510084 # see comment about AmigaOS4 .so support
9736 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10085 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
973710086 archive_expsym_cmds=''
973810087 ;;
973910088 m68k)
976310112 # Tell ltmain to make .lib files, not .a files.
976410113 libext=lib
976510114 # Tell ltmain to make .dll files, not .so files.
9766 shrext_cmds=".dll"
10115 shrext_cmds=.dll
976710116 # FIXME: Setting linknames here is a bad hack.
9768 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9769 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9770 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9771 else
9772 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9773 fi~
9774 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9775 linknames='
10117 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10118 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10119 cp "$export_symbols" "$output_objdir/$soname.def";
10120 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10121 else
10122 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10123 fi~
10124 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10125 linknames='
977610126 # The linker will not automatically build a static lib if we build a DLL.
977710127 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
977810128 enable_shared_with_static_runtimes=yes
978110131 # Don't use ranlib
978210132 old_postinstall_cmds='chmod 644 $oldlib'
978310133 postlink_cmds='lt_outputfile="@OUTPUT@"~
9784 lt_tool_outputfile="@TOOL_OUTPUT@"~
9785 case $lt_outputfile in
9786 *.exe|*.EXE) ;;
9787 *)
9788 lt_outputfile="$lt_outputfile.exe"
9789 lt_tool_outputfile="$lt_tool_outputfile.exe"
9790 ;;
9791 esac~
9792 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9793 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9794 $RM "$lt_outputfile.manifest";
9795 fi'
10134 lt_tool_outputfile="@TOOL_OUTPUT@"~
10135 case $lt_outputfile in
10136 *.exe|*.EXE) ;;
10137 *)
10138 lt_outputfile=$lt_outputfile.exe
10139 lt_tool_outputfile=$lt_tool_outputfile.exe
10140 ;;
10141 esac~
10142 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10143 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10144 $RM "$lt_outputfile.manifest";
10145 fi'
979610146 ;;
979710147 *)
979810148 # Assume MSVC wrapper
980110151 # Tell ltmain to make .lib files, not .a files.
980210152 libext=lib
980310153 # Tell ltmain to make .dll files, not .so files.
9804 shrext_cmds=".dll"
10154 shrext_cmds=.dll
980510155 # FIXME: Setting linknames here is a bad hack.
980610156 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
980710157 # The linker will automatically build a .lib file if we build a DLL.
982010170 hardcode_direct=no
982110171 hardcode_automatic=yes
982210172 hardcode_shlibpath_var=unsupported
9823 if test "$lt_cv_ld_force_load" = "yes"; then
9824 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
10173 if test yes = "$lt_cv_ld_force_load"; then
10174 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
982510175
982610176 else
982710177 whole_archive_flag_spec=''
982810178 fi
982910179 link_all_deplibs=yes
9830 allow_undefined_flag="$_lt_dar_allow_undefined"
10180 allow_undefined_flag=$_lt_dar_allow_undefined
983110181 case $cc_basename in
9832 ifort*) _lt_dar_can_shared=yes ;;
10182 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
983310183 *) _lt_dar_can_shared=$GCC ;;
983410184 esac
9835 if test "$_lt_dar_can_shared" = "yes"; then
10185 if test yes = "$_lt_dar_can_shared"; then
983610186 output_verbose_link_cmd=func_echo_all
9837 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9838 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9839 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9840 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
10187 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10188 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10189 archive_expsym_cmds="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
10190 module_expsym_cmds="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
984110191
984210192 else
984310193 ld_shlibs=no
987910229 ;;
988010230
988110231 hpux9*)
9882 if test "$GCC" = yes; then
9883 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'
10232 if test yes = "$GCC"; then
10233 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
988410234 else
9885 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'
10235 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
988610236 fi
9887 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10237 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
988810238 hardcode_libdir_separator=:
988910239 hardcode_direct=yes
989010240
989110241 # hardcode_minus_L: Not really in the search PATH,
989210242 # but as the default location of the library.
989310243 hardcode_minus_L=yes
9894 export_dynamic_flag_spec='${wl}-E'
10244 export_dynamic_flag_spec='$wl-E'
989510245 ;;
989610246
989710247 hpux10*)
9898 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9899 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10248 if test yes,no = "$GCC,$with_gnu_ld"; then
10249 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
990010250 else
990110251 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
990210252 fi
9903 if test "$with_gnu_ld" = no; then
9904 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10253 if test no = "$with_gnu_ld"; then
10254 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
990510255 hardcode_libdir_separator=:
990610256 hardcode_direct=yes
990710257 hardcode_direct_absolute=yes
9908 export_dynamic_flag_spec='${wl}-E'
10258 export_dynamic_flag_spec='$wl-E'
990910259 # hardcode_minus_L: Not really in the search PATH,
991010260 # but as the default location of the library.
991110261 hardcode_minus_L=yes
991310263 ;;
991410264
991510265 hpux11*)
9916 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10266 if test yes,no = "$GCC,$with_gnu_ld"; then
991710267 case $host_cpu in
991810268 hppa*64*)
9919 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10269 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
992010270 ;;
992110271 ia64*)
9922 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10272 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
992310273 ;;
992410274 *)
9925 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10275 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
992610276 ;;
992710277 esac
992810278 else
992910279 case $host_cpu in
993010280 hppa*64*)
9931 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10281 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
993210282 ;;
993310283 ia64*)
9934 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10284 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
993510285 ;;
993610286 *)
993710287
994310293 $as_echo_n "(cached) " >&6
994410294 else
994510295 lt_cv_prog_compiler__b=no
9946 save_LDFLAGS="$LDFLAGS"
10296 save_LDFLAGS=$LDFLAGS
994710297 LDFLAGS="$LDFLAGS -b"
994810298 echo "$lt_simple_link_test_code" > conftest.$ac_ext
994910299 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
996210312 fi
996310313 fi
996410314 $RM -r conftest*
9965 LDFLAGS="$save_LDFLAGS"
10315 LDFLAGS=$save_LDFLAGS
996610316
996710317 fi
996810318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
996910319 $as_echo "$lt_cv_prog_compiler__b" >&6; }
997010320
9971 if test x"$lt_cv_prog_compiler__b" = xyes; then
9972 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10321 if test yes = "$lt_cv_prog_compiler__b"; then
10322 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
997310323 else
997410324 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
997510325 fi
997710327 ;;
997810328 esac
997910329 fi
9980 if test "$with_gnu_ld" = no; then
9981 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10330 if test no = "$with_gnu_ld"; then
10331 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
998210332 hardcode_libdir_separator=:
998310333
998410334 case $host_cpu in
998910339 *)
999010340 hardcode_direct=yes
999110341 hardcode_direct_absolute=yes
9992 export_dynamic_flag_spec='${wl}-E'
10342 export_dynamic_flag_spec='$wl-E'
999310343
999410344 # hardcode_minus_L: Not really in the search PATH,
999510345 # but as the default location of the library.
1000010350 ;;
1000110351
1000210352 irix5* | irix6* | nonstopux*)
10003 if test "$GCC" = yes; then
10004 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'
10353 if test yes = "$GCC"; then
10354 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'
1000510355 # Try to use the -exported_symbol ld option, if it does not
1000610356 # work, assume that -exports_file does not work either and
1000710357 # implicitly export all symbols.
1001110361 if ${lt_cv_irix_exported_symbol+:} false; then :
1001210362 $as_echo_n "(cached) " >&6
1001310363 else
10014 save_LDFLAGS="$LDFLAGS"
10015 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10364 save_LDFLAGS=$LDFLAGS
10365 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
1001610366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1001710367 /* end confdefs.h. */
1001810368 int foo (void) { return 0; }
1002410374 fi
1002510375 rm -f core conftest.err conftest.$ac_objext \
1002610376 conftest$ac_exeext conftest.$ac_ext
10027 LDFLAGS="$save_LDFLAGS"
10377 LDFLAGS=$save_LDFLAGS
1002810378 fi
1002910379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
1003010380 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10031 if test "$lt_cv_irix_exported_symbol" = yes; then
10032 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'
10381 if test yes = "$lt_cv_irix_exported_symbol"; then
10382 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'
1003310383 fi
10384 link_all_deplibs=no
1003410385 else
10035 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'
10036 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'
10386 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'
10387 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'
1003710388 fi
1003810389 archive_cmds_need_lc='no'
10039 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10390 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
1004010391 hardcode_libdir_separator=:
1004110392 inherit_rpath=yes
1004210393 link_all_deplibs=yes
10394 ;;
10395
10396 linux*)
10397 case $cc_basename in
10398 tcc*)
10399 # Fabrice Bellard et al's Tiny C Compiler
10400 ld_shlibs=yes
10401 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10402 ;;
10403 esac
1004310404 ;;
1004410405
1004510406 netbsd* | netbsdelf*-gnu)
1005610417 newsos6)
1005710418 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
1005810419 hardcode_direct=yes
10059 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10420 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
1006010421 hardcode_libdir_separator=:
1006110422 hardcode_shlibpath_var=no
1006210423 ;;
1006410425 *nto* | *qnx*)
1006510426 ;;
1006610427
10067 openbsd*)
10428 openbsd* | bitrig*)
1006810429 if test -f /usr/libexec/ld.so; then
1006910430 hardcode_direct=yes
1007010431 hardcode_shlibpath_var=no
1007110432 hardcode_direct_absolute=yes
10072 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10433 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
1007310434 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10074 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10075 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10076 export_dynamic_flag_spec='${wl}-E'
10435 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10436 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10437 export_dynamic_flag_spec='$wl-E'
1007710438 else
10078 case $host_os in
10079 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10080 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10081 hardcode_libdir_flag_spec='-R$libdir'
10082 ;;
10083 *)
10084 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10085 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10086 ;;
10087 esac
10439 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10440 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
1008810441 fi
1008910442 else
1009010443 ld_shlibs=no
1009510448 hardcode_libdir_flag_spec='-L$libdir'
1009610449 hardcode_minus_L=yes
1009710450 allow_undefined_flag=unsupported
10098 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10099 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10451 shrext_cmds=.dll
10452 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10453 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10454 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10455 $ECHO EXPORTS >> $output_objdir/$libname.def~
10456 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10457 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10458 emximp -o $lib $output_objdir/$libname.def'
10459 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10460 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10461 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10462 $ECHO EXPORTS >> $output_objdir/$libname.def~
10463 prefix_cmds="$SED"~
10464 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10465 prefix_cmds="$prefix_cmds -e 1d";
10466 fi~
10467 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10468 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10469 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10470 emximp -o $lib $output_objdir/$libname.def'
10471 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10472 enable_shared_with_static_runtimes=yes
1010010473 ;;
1010110474
1010210475 osf3*)
10103 if test "$GCC" = yes; then
10104 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10105 archive_cmds='$CC -shared${allow_undefined_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'
10476 if test yes = "$GCC"; then
10477 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10478 archive_cmds='$CC -shared$allow_undefined_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'
1010610479 else
1010710480 allow_undefined_flag=' -expect_unresolved \*'
10108 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10481 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
1010910482 fi
1011010483 archive_cmds_need_lc='no'
10111 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10484 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
1011210485 hardcode_libdir_separator=:
1011310486 ;;
1011410487
1011510488 osf4* | osf5*) # as osf3* with the addition of -msym flag
10116 if test "$GCC" = yes; then
10117 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10118 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'
10119 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10489 if test yes = "$GCC"; then
10490 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10491 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'
10492 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
1012010493 else
1012110494 allow_undefined_flag=' -expect_unresolved \*'
10122 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10495 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
1012310496 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
10124 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10497 $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
1012510498
1012610499 # Both c and cxx compiler support -rpath directly
1012710500 hardcode_libdir_flag_spec='-rpath $libdir'
1013210505
1013310506 solaris*)
1013410507 no_undefined_flag=' -z defs'
10135 if test "$GCC" = yes; then
10136 wlarc='${wl}'
10137 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10508 if test yes = "$GCC"; then
10509 wlarc='$wl'
10510 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
1013810511 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10139 $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'
10512 $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'
1014010513 else
1014110514 case `$CC -V 2>&1` in
1014210515 *"Compilers 5.0"*)
1014310516 wlarc=''
10144 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10517 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
1014510518 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10146 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10519 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
1014710520 ;;
1014810521 *)
10149 wlarc='${wl}'
10150 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10522 wlarc='$wl'
10523 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
1015110524 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10152 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10525 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
1015310526 ;;
1015410527 esac
1015510528 fi
1015910532 solaris2.[0-5] | solaris2.[0-5].*) ;;
1016010533 *)
1016110534 # The compiler driver will combine and reorder linker options,
10162 # but understands `-z linker_flag'. GCC discards it without `$wl',
10535 # but understands '-z linker_flag'. GCC discards it without '$wl',
1016310536 # but is careful enough not to reorder.
1016410537 # Supported since Solaris 2.6 (maybe 2.5.1?)
10165 if test "$GCC" = yes; then
10166 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10538 if test yes = "$GCC"; then
10539 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
1016710540 else
1016810541 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
1016910542 fi
1017310546 ;;
1017410547
1017510548 sunos4*)
10176 if test "x$host_vendor" = xsequent; then
10549 if test sequent = "$host_vendor"; then
1017710550 # Use $CC to link under sequent, because it throws in some extra .o
1017810551 # files that make .init and .fini sections work.
10179 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10552 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
1018010553 else
1018110554 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
1018210555 fi
1022510598 ;;
1022610599
1022710600 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10228 no_undefined_flag='${wl}-z,text'
10601 no_undefined_flag='$wl-z,text'
1022910602 archive_cmds_need_lc=no
1023010603 hardcode_shlibpath_var=no
1023110604 runpath_var='LD_RUN_PATH'
1023210605
10233 if test "$GCC" = yes; then
10234 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10235 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10606 if test yes = "$GCC"; then
10607 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10608 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1023610609 else
10237 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10238 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10610 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10611 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1023910612 fi
1024010613 ;;
1024110614
1024210615 sysv5* | sco3.2v5* | sco5v6*)
10243 # Note: We can NOT use -z defs as we might desire, because we do not
10616 # Note: We CANNOT use -z defs as we might desire, because we do not
1024410617 # link with -lc, and that would cause any symbols used from libc to
1024510618 # always be unresolved, which means just about no library would
1024610619 # ever link correctly. If we're not using GNU ld we use -z text
1024710620 # though, which does catch some bad symbols but isn't as heavy-handed
1024810621 # as -z defs.
10249 no_undefined_flag='${wl}-z,text'
10250 allow_undefined_flag='${wl}-z,nodefs'
10622 no_undefined_flag='$wl-z,text'
10623 allow_undefined_flag='$wl-z,nodefs'
1025110624 archive_cmds_need_lc=no
1025210625 hardcode_shlibpath_var=no
10253 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10626 hardcode_libdir_flag_spec='$wl-R,$libdir'
1025410627 hardcode_libdir_separator=':'
1025510628 link_all_deplibs=yes
10256 export_dynamic_flag_spec='${wl}-Bexport'
10629 export_dynamic_flag_spec='$wl-Bexport'
1025710630 runpath_var='LD_RUN_PATH'
1025810631
10259 if test "$GCC" = yes; then
10260 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10261 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10632 if test yes = "$GCC"; then
10633 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10634 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1026210635 else
10263 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10264 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10636 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10637 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1026510638 fi
1026610639 ;;
1026710640
1027610649 ;;
1027710650 esac
1027810651
10279 if test x$host_vendor = xsni; then
10652 if test sni = "$host_vendor"; then
1028010653 case $host in
1028110654 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10282 export_dynamic_flag_spec='${wl}-Blargedynsym'
10655 export_dynamic_flag_spec='$wl-Blargedynsym'
1028310656 ;;
1028410657 esac
1028510658 fi
1028710660
1028810661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
1028910662 $as_echo "$ld_shlibs" >&6; }
10290 test "$ld_shlibs" = no && can_build_shared=no
10663 test no = "$ld_shlibs" && can_build_shared=no
1029110664
1029210665 with_gnu_ld=$with_gnu_ld
1029310666
1031310686 # Assume -lc should be added
1031410687 archive_cmds_need_lc=yes
1031510688
10316 if test "$enable_shared" = yes && test "$GCC" = yes; then
10689 if test yes,yes = "$GCC,$enable_shared"; then
1031710690 case $archive_cmds in
1031810691 *'~'*)
1031910692 # FIXME: we may have to deal with multi-command sequences.
1052810901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
1052910902 $as_echo_n "checking dynamic linker characteristics... " >&6; }
1053010903
10531 if test "$GCC" = yes; then
10904 if test yes = "$GCC"; then
1053210905 case $host_os in
10533 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10534 *) lt_awk_arg="/^libraries:/" ;;
10906 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10907 *) lt_awk_arg='/^libraries:/' ;;
1053510908 esac
1053610909 case $host_os in
10537 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10538 *) lt_sed_strip_eq="s,=/,/,g" ;;
10910 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10911 *) lt_sed_strip_eq='s|=/|/|g' ;;
1053910912 esac
1054010913 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
1054110914 case $lt_search_path_spec in
1055110924 ;;
1055210925 esac
1055310926 # Ok, now we have the path, separated by spaces, we can step through it
10554 # and add multilib dir if necessary.
10927 # and add multilib dir if necessary...
1055510928 lt_tmp_lt_search_path_spec=
10556 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10929 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10930 # ...but if some path component already ends with the multilib dir we assume
10931 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10932 case "$lt_multi_os_dir; $lt_search_path_spec " in
10933 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10934 lt_multi_os_dir=
10935 ;;
10936 esac
1055710937 for lt_sys_path in $lt_search_path_spec; do
10558 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10559 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10560 else
10938 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10939 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10940 elif test -n "$lt_multi_os_dir"; then
1056110941 test -d "$lt_sys_path" && \
1056210942 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
1056310943 fi
1056410944 done
1056510945 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10566 BEGIN {RS=" "; FS="/|\n";} {
10567 lt_foo="";
10568 lt_count=0;
10946 BEGIN {RS = " "; FS = "/|\n";} {
10947 lt_foo = "";
10948 lt_count = 0;
1056910949 for (lt_i = NF; lt_i > 0; lt_i--) {
1057010950 if ($lt_i != "" && $lt_i != ".") {
1057110951 if ($lt_i == "..") {
1057210952 lt_count++;
1057310953 } else {
1057410954 if (lt_count == 0) {
10575 lt_foo="/" $lt_i lt_foo;
10955 lt_foo = "/" $lt_i lt_foo;
1057610956 } else {
1057710957 lt_count--;
1057810958 }
1058610966 # for these hosts.
1058710967 case $host_os in
1058810968 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10589 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10969 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
1059010970 esac
1059110971 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
1059210972 else
1059510975 library_names_spec=
1059610976 libname_spec='lib$name'
1059710977 soname_spec=
10598 shrext_cmds=".so"
10978 shrext_cmds=.so
1059910979 postinstall_cmds=
1060010980 postuninstall_cmds=
1060110981 finish_cmds=
1061210992 # flags to be left without arguments
1061310993 need_version=unknown
1061410994
10995
10996
1061510997 case $host_os in
1061610998 aix3*)
1061710999 version_type=linux # correct to gnu/linux during the next big refactor
10618 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11000 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
1061911001 shlibpath_var=LIBPATH
1062011002
1062111003 # AIX 3 has no versioning support, so we append a major version to the name.
10622 soname_spec='${libname}${release}${shared_ext}$major'
11004 soname_spec='$libname$release$shared_ext$major'
1062311005 ;;
1062411006
1062511007 aix[4-9]*)
1062711009 need_lib_prefix=no
1062811010 need_version=no
1062911011 hardcode_into_libs=yes
10630 if test "$host_cpu" = ia64; then
11012 if test ia64 = "$host_cpu"; then
1063111013 # AIX 5 supports IA64
10632 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11014 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
1063311015 shlibpath_var=LD_LIBRARY_PATH
1063411016 else
1063511017 # With GCC up to 2.95.x, collect2 would create an import file
1063611018 # for dependence libraries. The import file would start with
10637 # the line `#! .'. This would cause the generated library to
10638 # depend on `.', always an invalid library. This was fixed in
11019 # the line '#! .'. This would cause the generated library to
11020 # depend on '.', always an invalid library. This was fixed in
1063911021 # development snapshots of GCC prior to 3.0.
1064011022 case $host_os in
1064111023 aix4 | aix4.[01] | aix4.[01].*)
1064211024 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
1064311025 echo ' yes '
10644 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11026 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
1064511027 :
1064611028 else
1064711029 can_build_shared=no
1064811030 fi
1064911031 ;;
1065011032 esac
10651 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11033 # Using Import Files as archive members, it is possible to support
11034 # filename-based versioning of shared library archives on AIX. While
11035 # this would work for both with and without runtime linking, it will
11036 # prevent static linking of such archives. So we do filename-based
11037 # shared library versioning with .so extension only, which is used
11038 # when both runtime linking and shared linking is enabled.
11039 # Unfortunately, runtime linking may impact performance, so we do
11040 # not want this to be the default eventually. Also, we use the
11041 # versioned .so libs for executables only if there is the -brtl
11042 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11043 # To allow for filename-based versioning support, we need to create
11044 # libNAME.so.V as an archive file, containing:
11045 # *) an Import File, referring to the versioned filename of the
11046 # archive as well as the shared archive member, telling the
11047 # bitwidth (32 or 64) of that shared object, and providing the
11048 # list of exported symbols of that shared object, eventually
11049 # decorated with the 'weak' keyword
11050 # *) the shared object with the F_LOADONLY flag set, to really avoid
11051 # it being seen by the linker.
11052 # At run time we better use the real file rather than another symlink,
11053 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11054
11055 case $with_aix_soname,$aix_use_runtimelinking in
11056 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
1065211057 # soname into executable. Probably we can add versioning support to
1065311058 # collect2, so additional links can be useful in future.
10654 if test "$aix_use_runtimelinking" = yes; then
11059 aix,yes) # traditional libtool
11060 dynamic_linker='AIX unversionable lib.so'
1065511061 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
1065611062 # instead of lib<name>.a to let people know that these are not
1065711063 # typical AIX shared libraries.
10658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10659 else
11064 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11065 ;;
11066 aix,no) # traditional AIX only
11067 dynamic_linker='AIX lib.a(lib.so.V)'
1066011068 # We preserve .a as extension for shared libraries through AIX4.2
1066111069 # and later when we are not doing run time linking.
10662 library_names_spec='${libname}${release}.a $libname.a'
10663 soname_spec='${libname}${release}${shared_ext}$major'
10664 fi
11070 library_names_spec='$libname$release.a $libname.a'
11071 soname_spec='$libname$release$shared_ext$major'
11072 ;;
11073 svr4,*) # full svr4 only
11074 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11075 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11076 # We do not specify a path in Import Files, so LIBPATH fires.
11077 shlibpath_overrides_runpath=yes
11078 ;;
11079 *,yes) # both, prefer svr4
11080 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11081 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11082 # unpreferred sharedlib libNAME.a needs extra handling
11083 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
11084 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
11085 # We do not specify a path in Import Files, so LIBPATH fires.
11086 shlibpath_overrides_runpath=yes
11087 ;;
11088 *,no) # both, prefer aix
11089 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11090 library_names_spec='$libname$release.a $libname.a'
11091 soname_spec='$libname$release$shared_ext$major'
11092 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11093 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
11094 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
11095 ;;
11096 esac
1066511097 shlibpath_var=LIBPATH
1066611098 fi
1066711099 ;;
1067111103 powerpc)
1067211104 # Since July 2007 AmigaOS4 officially supports .so libraries.
1067311105 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11106 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
1067511107 ;;
1067611108 m68k)
1067711109 library_names_spec='$libname.ixlibrary $libname.a'
1067811110 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10679 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11111 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
1068011112 ;;
1068111113 esac
1068211114 ;;
1068311115
1068411116 beos*)
10685 library_names_spec='${libname}${shared_ext}'
11117 library_names_spec='$libname$shared_ext'
1068611118 dynamic_linker="$host_os ld.so"
1068711119 shlibpath_var=LIBRARY_PATH
1068811120 ;;
1069011122 bsdi[45]*)
1069111123 version_type=linux # correct to gnu/linux during the next big refactor
1069211124 need_version=no
10693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10694 soname_spec='${libname}${release}${shared_ext}$major'
11125 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11126 soname_spec='$libname$release$shared_ext$major'
1069511127 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
1069611128 shlibpath_var=LD_LIBRARY_PATH
1069711129 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
1070311135
1070411136 cygwin* | mingw* | pw32* | cegcc*)
1070511137 version_type=windows
10706 shrext_cmds=".dll"
11138 shrext_cmds=.dll
1070711139 need_version=no
1070811140 need_lib_prefix=no
1070911141
1071211144 # gcc
1071311145 library_names_spec='$libname.dll.a'
1071411146 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10715 postinstall_cmds='base_file=`basename \${file}`~
10716 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11147 postinstall_cmds='base_file=`basename \$file`~
11148 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
1071711149 dldir=$destdir/`dirname \$dlpath`~
1071811150 test -d \$dldir || mkdir -p \$dldir~
1071911151 $install_prog $dir/$dlname \$dldir/$dlname~
1072911161 case $host_os in
1073011162 cygwin*)
1073111163 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10732 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11164 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
1073311165
1073411166 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
1073511167 ;;
1073611168 mingw* | cegcc*)
1073711169 # MinGW DLLs use traditional 'lib' prefix
10738 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11170 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
1073911171 ;;
1074011172 pw32*)
1074111173 # pw32 DLLs use 'pw' prefix rather than 'lib'
10742 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11174 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
1074311175 ;;
1074411176 esac
1074511177 dynamic_linker='Win32 ld.exe'
1074811180 *,cl*)
1074911181 # Native MSVC
1075011182 libname_spec='$name'
10751 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10752 library_names_spec='${libname}.dll.lib'
11183 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11184 library_names_spec='$libname.dll.lib'
1075311185
1075411186 case $build_os in
1075511187 mingw*)
1077611208 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1077711209 ;;
1077811210 *)
10779 sys_lib_search_path_spec="$LIB"
11211 sys_lib_search_path_spec=$LIB
1078011212 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
1078111213 # It is most probably a Windows format PATH.
1078211214 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
1078911221 esac
1079011222
1079111223 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10792 postinstall_cmds='base_file=`basename \${file}`~
10793 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11224 postinstall_cmds='base_file=`basename \$file`~
11225 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
1079411226 dldir=$destdir/`dirname \$dlpath`~
1079511227 test -d \$dldir || mkdir -p \$dldir~
1079611228 $install_prog $dir/$dlname \$dldir/$dlname'
1080311235
1080411236 *)
1080511237 # Assume MSVC wrapper
10806 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11238 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
1080711239 dynamic_linker='Win32 ld.exe'
1080811240 ;;
1080911241 esac
1081611248 version_type=darwin
1081711249 need_lib_prefix=no
1081811250 need_version=no
10819 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10820 soname_spec='${libname}${release}${major}$shared_ext'
11251 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11252 soname_spec='$libname$release$major$shared_ext'
1082111253 shlibpath_overrides_runpath=yes
1082211254 shlibpath_var=DYLD_LIBRARY_PATH
1082311255 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
1083011262 version_type=linux # correct to gnu/linux during the next big refactor
1083111263 need_lib_prefix=no
1083211264 need_version=no
10833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10834 soname_spec='${libname}${release}${shared_ext}$major'
11265 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11266 soname_spec='$libname$release$shared_ext$major'
1083511267 shlibpath_var=LD_LIBRARY_PATH
1083611268 ;;
1083711269
1084911281 version_type=freebsd-$objformat
1085011282 case $version_type in
1085111283 freebsd-elf*)
10852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11284 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11285 soname_spec='$libname$release$shared_ext$major'
1085311286 need_version=no
1085411287 need_lib_prefix=no
1085511288 ;;
1085611289 freebsd-*)
10857 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11290 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
1085811291 need_version=yes
1085911292 ;;
1086011293 esac
1088411317 need_lib_prefix=no
1088511318 need_version=no
1088611319 dynamic_linker="$host_os runtime_loader"
10887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10888 soname_spec='${libname}${release}${shared_ext}$major'
11320 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11321 soname_spec='$libname$release$shared_ext$major'
1088911322 shlibpath_var=LIBRARY_PATH
10890 shlibpath_overrides_runpath=yes
11323 shlibpath_overrides_runpath=no
1089111324 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
1089211325 hardcode_into_libs=yes
1089311326 ;;
1090511338 dynamic_linker="$host_os dld.so"
1090611339 shlibpath_var=LD_LIBRARY_PATH
1090711340 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10909 soname_spec='${libname}${release}${shared_ext}$major'
10910 if test "X$HPUX_IA64_MODE" = X32; then
11341 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11342 soname_spec='$libname$release$shared_ext$major'
11343 if test 32 = "$HPUX_IA64_MODE"; then
1091111344 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11345 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
1091211346 else
1091311347 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11348 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
1091411349 fi
10915 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1091611350 ;;
1091711351 hppa*64*)
1091811352 shrext_cmds='.sl'
1092011354 dynamic_linker="$host_os dld.sl"
1092111355 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
1092211356 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10924 soname_spec='${libname}${release}${shared_ext}$major'
11357 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11358 soname_spec='$libname$release$shared_ext$major'
1092511359 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
1092611360 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1092711361 ;;
1093011364 dynamic_linker="$host_os dld.sl"
1093111365 shlibpath_var=SHLIB_PATH
1093211366 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10934 soname_spec='${libname}${release}${shared_ext}$major'
11367 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11368 soname_spec='$libname$release$shared_ext$major'
1093511369 ;;
1093611370 esac
1093711371 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
1094411378 version_type=linux # correct to gnu/linux during the next big refactor
1094511379 need_lib_prefix=no
1094611380 need_version=no
10947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10948 soname_spec='${libname}${release}${shared_ext}$major'
11381 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11382 soname_spec='$libname$release$shared_ext$major'
1094911383 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
1095011384 shlibpath_var=LD_LIBRARY_PATH
1095111385 shlibpath_overrides_runpath=no
1095611390 case $host_os in
1095711391 nonstopux*) version_type=nonstopux ;;
1095811392 *)
10959 if test "$lt_cv_prog_gnu_ld" = yes; then
11393 if test yes = "$lt_cv_prog_gnu_ld"; then
1096011394 version_type=linux # correct to gnu/linux during the next big refactor
1096111395 else
1096211396 version_type=irix
1096411398 esac
1096511399 need_lib_prefix=no
1096611400 need_version=no
10967 soname_spec='${libname}${release}${shared_ext}$major'
10968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11401 soname_spec='$libname$release$shared_ext$major'
11402 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
1096911403 case $host_os in
1097011404 irix5* | nonstopux*)
1097111405 libsuff= shlibsuff=
1098411418 esac
1098511419 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
1098611420 shlibpath_overrides_runpath=no
10987 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10988 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11421 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11422 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
1098911423 hardcode_into_libs=yes
1099011424 ;;
1099111425
1099211426 # No shared lib support for Linux oldld, aout, or coff.
1099311427 linux*oldld* | linux*aout* | linux*coff*)
1099411428 dynamic_linker=no
11429 ;;
11430
11431 linux*android*)
11432 version_type=none # Android doesn't support versioned libraries.
11433 need_lib_prefix=no
11434 need_version=no
11435 library_names_spec='$libname$release$shared_ext'
11436 soname_spec='$libname$release$shared_ext'
11437 finish_cmds=
11438 shlibpath_var=LD_LIBRARY_PATH
11439 shlibpath_overrides_runpath=yes
11440
11441 # This implies no fast_install, which is unacceptable.
11442 # Some rework will be needed to allow for fast_install
11443 # before this can be enabled.
11444 hardcode_into_libs=yes
11445
11446 dynamic_linker='Android linker'
11447 # Don't embed -rpath directories since the linker doesn't support them.
11448 hardcode_libdir_flag_spec='-L$libdir'
1099511449 ;;
1099611450
1099711451 # This must be glibc/ELF.
1099911453 version_type=linux # correct to gnu/linux during the next big refactor
1100011454 need_lib_prefix=no
1100111455 need_version=no
11002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11003 soname_spec='${libname}${release}${shared_ext}$major'
11456 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11457 soname_spec='$libname$release$shared_ext$major'
1100411458 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
1100511459 shlibpath_var=LD_LIBRARY_PATH
1100611460 shlibpath_overrides_runpath=no
1104411498 # before this can be enabled.
1104511499 hardcode_into_libs=yes
1104611500
11047 # Append ld.so.conf contents to the search path
11501 # Ideally, we could use ldconfig to report *all* directores which are
11502 # searched for libraries, however this is still not possible. Aside from not
11503 # being certain /sbin/ldconfig is available, command
11504 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11505 # even though it is searched at run-time. Try to do the best guess by
11506 # appending ld.so.conf contents (and includes) to the search path.
1104811507 if test -f /etc/ld.so.conf; then
1104911508 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
1105011509 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
1107611535 need_lib_prefix=no
1107711536 need_version=no
1107811537 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11538 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
1108011539 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1108111540 dynamic_linker='NetBSD (a.out) ld.so'
1108211541 else
11083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11084 soname_spec='${libname}${release}${shared_ext}$major'
11542 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11543 soname_spec='$libname$release$shared_ext$major'
1108511544 dynamic_linker='NetBSD ld.elf_so'
1108611545 fi
1108711546 shlibpath_var=LD_LIBRARY_PATH
1109111550
1109211551 newsos6)
1109311552 version_type=linux # correct to gnu/linux during the next big refactor
11094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11553 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
1109511554 shlibpath_var=LD_LIBRARY_PATH
1109611555 shlibpath_overrides_runpath=yes
1109711556 ;;
1110011559 version_type=qnx
1110111560 need_lib_prefix=no
1110211561 need_version=no
11103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11104 soname_spec='${libname}${release}${shared_ext}$major'
11562 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11563 soname_spec='$libname$release$shared_ext$major'
1110511564 shlibpath_var=LD_LIBRARY_PATH
1110611565 shlibpath_overrides_runpath=no
1110711566 hardcode_into_libs=yes
1110811567 dynamic_linker='ldqnx.so'
1110911568 ;;
1111011569
11111 openbsd*)
11570 openbsd* | bitrig*)
1111211571 version_type=sunos
11113 sys_lib_dlsearch_path_spec="/usr/lib"
11572 sys_lib_dlsearch_path_spec=/usr/lib
1111411573 need_lib_prefix=no
11115 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11116 case $host_os in
11117 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11118 *) need_version=no ;;
11119 esac
11120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11574 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11575 need_version=no
11576 else
11577 need_version=yes
11578 fi
11579 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
1112111580 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1112211581 shlibpath_var=LD_LIBRARY_PATH
11123 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11124 case $host_os in
11125 openbsd2.[89] | openbsd2.[89].*)
11126 shlibpath_overrides_runpath=no
11127 ;;
11128 *)
11129 shlibpath_overrides_runpath=yes
11130 ;;
11131 esac
11132 else
11133 shlibpath_overrides_runpath=yes
11134 fi
11582 shlibpath_overrides_runpath=yes
1113511583 ;;
1113611584
1113711585 os2*)
1113811586 libname_spec='$name'
11139 shrext_cmds=".dll"
11587 version_type=windows
11588 shrext_cmds=.dll
11589 need_version=no
1114011590 need_lib_prefix=no
11141 library_names_spec='$libname${shared_ext} $libname.a'
11591 # OS/2 can only load a DLL with a base name of 8 characters or less.
11592 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11593 v=$($ECHO $release$versuffix | tr -d .-);
11594 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11595 $ECHO $n$v`$shared_ext'
11596 library_names_spec='${libname}_dll.$libext'
1114211597 dynamic_linker='OS/2 ld.exe'
11143 shlibpath_var=LIBPATH
11598 shlibpath_var=BEGINLIBPATH
11599 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11600 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11601 postinstall_cmds='base_file=`basename \$file`~
11602 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11603 dldir=$destdir/`dirname \$dlpath`~
11604 test -d \$dldir || mkdir -p \$dldir~
11605 $install_prog $dir/$dlname \$dldir/$dlname~
11606 chmod a+x \$dldir/$dlname~
11607 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11608 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11609 fi'
11610 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11611 dlpath=$dir/\$dldll~
11612 $RM \$dlpath'
1114411613 ;;
1114511614
1114611615 osf3* | osf4* | osf5*)
1114711616 version_type=osf
1114811617 need_lib_prefix=no
1114911618 need_version=no
11150 soname_spec='${libname}${release}${shared_ext}$major'
11151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11619 soname_spec='$libname$release$shared_ext$major'
11620 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
1115211621 shlibpath_var=LD_LIBRARY_PATH
1115311622 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11154 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11623 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1115511624 ;;
1115611625
1115711626 rdos*)
1116211631 version_type=linux # correct to gnu/linux during the next big refactor
1116311632 need_lib_prefix=no
1116411633 need_version=no
11165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11166 soname_spec='${libname}${release}${shared_ext}$major'
11634 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11635 soname_spec='$libname$release$shared_ext$major'
1116711636 shlibpath_var=LD_LIBRARY_PATH
1116811637 shlibpath_overrides_runpath=yes
1116911638 hardcode_into_libs=yes
1117311642
1117411643 sunos4*)
1117511644 version_type=sunos
11176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11645 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
1117711646 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
1117811647 shlibpath_var=LD_LIBRARY_PATH
1117911648 shlibpath_overrides_runpath=yes
11180 if test "$with_gnu_ld" = yes; then
11649 if test yes = "$with_gnu_ld"; then
1118111650 need_lib_prefix=no
1118211651 fi
1118311652 need_version=yes
1118511654
1118611655 sysv4 | sysv4.3*)
1118711656 version_type=linux # correct to gnu/linux during the next big refactor
11188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11189 soname_spec='${libname}${release}${shared_ext}$major'
11657 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11658 soname_spec='$libname$release$shared_ext$major'
1119011659 shlibpath_var=LD_LIBRARY_PATH
1119111660 case $host_vendor in
1119211661 sni)
1120711676 ;;
1120811677
1120911678 sysv4*MP*)
11210 if test -d /usr/nec ;then
11679 if test -d /usr/nec; then
1121111680 version_type=linux # correct to gnu/linux during the next big refactor
11212 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11213 soname_spec='$libname${shared_ext}.$major'
11681 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11682 soname_spec='$libname$shared_ext.$major'
1121411683 shlibpath_var=LD_LIBRARY_PATH
1121511684 fi
1121611685 ;;
1121711686
1121811687 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11219 version_type=freebsd-elf
11688 version_type=sco
1122011689 need_lib_prefix=no
1122111690 need_version=no
11222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11223 soname_spec='${libname}${release}${shared_ext}$major'
11691 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11692 soname_spec='$libname$release$shared_ext$major'
1122411693 shlibpath_var=LD_LIBRARY_PATH
1122511694 shlibpath_overrides_runpath=yes
1122611695 hardcode_into_libs=yes
11227 if test "$with_gnu_ld" = yes; then
11696 if test yes = "$with_gnu_ld"; then
1122811697 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
1122911698 else
1123011699 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
1124211711 version_type=linux # correct to gnu/linux during the next big refactor
1124311712 need_lib_prefix=no
1124411713 need_version=no
11245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11714 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
1124611715 shlibpath_var=LD_LIBRARY_PATH
1124711716 shlibpath_overrides_runpath=no
1124811717 hardcode_into_libs=yes
1125011719
1125111720 uts4*)
1125211721 version_type=linux # correct to gnu/linux during the next big refactor
11253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11254 soname_spec='${libname}${release}${shared_ext}$major'
11722 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11723 soname_spec='$libname$release$shared_ext$major'
1125511724 shlibpath_var=LD_LIBRARY_PATH
1125611725 ;;
1125711726
1126111730 esac
1126211731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
1126311732 $as_echo "$dynamic_linker" >&6; }
11264 test "$dynamic_linker" = no && can_build_shared=no
11733 test no = "$dynamic_linker" && can_build_shared=no
1126511734
1126611735 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11267 if test "$GCC" = yes; then
11736 if test yes = "$GCC"; then
1126811737 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
1126911738 fi
1127011739
11271 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11272 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11273 fi
11274 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11275 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11276 fi
11740 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11741 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11742 fi
11743
11744 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11745 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11746 fi
11747
11748 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11749 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11750
11751 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11752 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11753
11754 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11755 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11756
11757
11758
11759
11760
1127711761
1127811762
1127911763
1137111855 hardcode_action=
1137211856 if test -n "$hardcode_libdir_flag_spec" ||
1137311857 test -n "$runpath_var" ||
11374 test "X$hardcode_automatic" = "Xyes" ; then
11858 test yes = "$hardcode_automatic"; then
1137511859
1137611860 # We can hardcode non-existent directories.
11377 if test "$hardcode_direct" != no &&
11861 if test no != "$hardcode_direct" &&
1137811862 # If the only mechanism to avoid hardcoding is shlibpath_var, we
1137911863 # have to relink, otherwise we might link with an installed library
1138011864 # when we should be linking with a yet-to-be-installed one
11381 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11382 test "$hardcode_minus_L" != no; then
11865 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11866 test no != "$hardcode_minus_L"; then
1138311867 # Linking always hardcodes the temporary library directory.
1138411868 hardcode_action=relink
1138511869 else
1139411878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
1139511879 $as_echo "$hardcode_action" >&6; }
1139611880
11397 if test "$hardcode_action" = relink ||
11398 test "$inherit_rpath" = yes; then
11881 if test relink = "$hardcode_action" ||
11882 test yes = "$inherit_rpath"; then
1139911883 # Fast installation is not supported
1140011884 enable_fast_install=no
11401 elif test "$shlibpath_overrides_runpath" = yes ||
11402 test "$enable_shared" = no; then
11885 elif test yes = "$shlibpath_overrides_runpath" ||
11886 test no = "$enable_shared"; then
1140311887 # Fast installation is not necessary
1140411888 enable_fast_install=needless
1140511889 fi
1140911893
1141011894
1141111895
11412 if test "x$enable_dlopen" != xyes; then
11896 if test yes != "$enable_dlopen"; then
1141311897 enable_dlopen=unknown
1141411898 enable_dlopen_self=unknown
1141511899 enable_dlopen_self_static=unknown
1141911903
1142011904 case $host_os in
1142111905 beos*)
11422 lt_cv_dlopen="load_add_on"
11906 lt_cv_dlopen=load_add_on
1142311907 lt_cv_dlopen_libs=
1142411908 lt_cv_dlopen_self=yes
1142511909 ;;
1142611910
1142711911 mingw* | pw32* | cegcc*)
11428 lt_cv_dlopen="LoadLibrary"
11912 lt_cv_dlopen=LoadLibrary
1142911913 lt_cv_dlopen_libs=
1143011914 ;;
1143111915
1143211916 cygwin*)
11433 lt_cv_dlopen="dlopen"
11917 lt_cv_dlopen=dlopen
1143411918 lt_cv_dlopen_libs=
1143511919 ;;
1143611920
1143711921 darwin*)
11438 # if libdl is installed we need to link against it
11922 # if libdl is installed we need to link against it
1143911923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
1144011924 $as_echo_n "checking for dlopen in -ldl... " >&6; }
1144111925 if ${ac_cv_lib_dl_dlopen+:} false; then :
1147311957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
1147411958 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
1147511959 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11476 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11477 else
11478
11479 lt_cv_dlopen="dyld"
11960 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11961 else
11962
11963 lt_cv_dlopen=dyld
1148011964 lt_cv_dlopen_libs=
1148111965 lt_cv_dlopen_self=yes
1148211966
1148311967 fi
1148411968
11969 ;;
11970
11971 tpf*)
11972 # Don't try to run any link tests for TPF. We know it's impossible
11973 # because TPF is a cross-compiler, and we know how we open DSOs.
11974 lt_cv_dlopen=dlopen
11975 lt_cv_dlopen_libs=
11976 lt_cv_dlopen_self=no
1148511977 ;;
1148611978
1148711979 *)
1148811980 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
1148911981 if test "x$ac_cv_func_shl_load" = xyes; then :
11490 lt_cv_dlopen="shl_load"
11982 lt_cv_dlopen=shl_load
1149111983 else
1149211984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
1149311985 $as_echo_n "checking for shl_load in -ldld... " >&6; }
1152612018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
1152712019 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
1152812020 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11529 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12021 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
1153012022 else
1153112023 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
1153212024 if test "x$ac_cv_func_dlopen" = xyes; then :
11533 lt_cv_dlopen="dlopen"
12025 lt_cv_dlopen=dlopen
1153412026 else
1153512027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
1153612028 $as_echo_n "checking for dlopen in -ldl... " >&6; }
1156912061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
1157012062 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
1157112063 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11572 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12064 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
1157312065 else
1157412066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
1157512067 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
1160812100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
1160912101 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
1161012102 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11611 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12103 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
1161212104 else
1161312105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
1161412106 $as_echo_n "checking for dld_link in -ldld... " >&6; }
1164712139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
1164812140 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
1164912141 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11650 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12142 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
1165112143 fi
1165212144
1165312145
1166812160 ;;
1166912161 esac
1167012162
11671 if test "x$lt_cv_dlopen" != xno; then
12163 if test no = "$lt_cv_dlopen"; then
12164 enable_dlopen=no
12165 else
1167212166 enable_dlopen=yes
11673 else
11674 enable_dlopen=no
1167512167 fi
1167612168
1167712169 case $lt_cv_dlopen in
1167812170 dlopen)
11679 save_CPPFLAGS="$CPPFLAGS"
11680 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11681
11682 save_LDFLAGS="$LDFLAGS"
12171 save_CPPFLAGS=$CPPFLAGS
12172 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12173
12174 save_LDFLAGS=$LDFLAGS
1168312175 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
1168412176
11685 save_LIBS="$LIBS"
12177 save_LIBS=$LIBS
1168612178 LIBS="$lt_cv_dlopen_libs $LIBS"
1168712179
1168812180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
1169012182 if ${lt_cv_dlopen_self+:} false; then :
1169112183 $as_echo_n "(cached) " >&6
1169212184 else
11693 if test "$cross_compiling" = yes; then :
12185 if test yes = "$cross_compiling"; then :
1169412186 lt_cv_dlopen_self=cross
1169512187 else
1169612188 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1173712229 # endif
1173812230 #endif
1173912231
11740 /* When -fvisbility=hidden is used, assume the code has been annotated
12232 /* When -fvisibility=hidden is used, assume the code has been annotated
1174112233 correspondingly for the symbols needed. */
11742 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12234 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
1174312235 int fnord () __attribute__((visibility("default")));
1174412236 #endif
1174512237
1176912261 (eval $ac_link) 2>&5
1177012262 ac_status=$?
1177112263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11772 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12264 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
1177312265 (./conftest; exit; ) >&5 2>/dev/null
1177412266 lt_status=$?
1177512267 case x$lt_status in
1178912281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
1179012282 $as_echo "$lt_cv_dlopen_self" >&6; }
1179112283
11792 if test "x$lt_cv_dlopen_self" = xyes; then
12284 if test yes = "$lt_cv_dlopen_self"; then
1179312285 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
1179412286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
1179512287 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
1179612288 if ${lt_cv_dlopen_self_static+:} false; then :
1179712289 $as_echo_n "(cached) " >&6
1179812290 else
11799 if test "$cross_compiling" = yes; then :
12291 if test yes = "$cross_compiling"; then :
1180012292 lt_cv_dlopen_self_static=cross
1180112293 else
1180212294 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1184312335 # endif
1184412336 #endif
1184512337
11846 /* When -fvisbility=hidden is used, assume the code has been annotated
12338 /* When -fvisibility=hidden is used, assume the code has been annotated
1184712339 correspondingly for the symbols needed. */
11848 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12340 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
1184912341 int fnord () __attribute__((visibility("default")));
1185012342 #endif
1185112343
1187512367 (eval $ac_link) 2>&5
1187612368 ac_status=$?
1187712369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11878 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12370 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
1187912371 (./conftest; exit; ) >&5 2>/dev/null
1188012372 lt_status=$?
1188112373 case x$lt_status in
1189612388 $as_echo "$lt_cv_dlopen_self_static" >&6; }
1189712389 fi
1189812390
11899 CPPFLAGS="$save_CPPFLAGS"
11900 LDFLAGS="$save_LDFLAGS"
11901 LIBS="$save_LIBS"
12391 CPPFLAGS=$save_CPPFLAGS
12392 LDFLAGS=$save_LDFLAGS
12393 LIBS=$save_LIBS
1190212394 ;;
1190312395 esac
1190412396
1194212434 # FIXME - insert some real tests, host_os isn't really good enough
1194312435 case $host_os in
1194412436 darwin*)
11945 if test -n "$STRIP" ; then
12437 if test -n "$STRIP"; then
1194612438 striplib="$STRIP -x"
1194712439 old_striplib="$STRIP -S"
1194812440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1197012462
1197112463
1197212464
11973 # Report which library types will actually be built
12465 # Report what library types will actually be built
1197412466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
1197512467 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
1197612468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
1197812470
1197912471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
1198012472 $as_echo_n "checking whether to build shared libraries... " >&6; }
11981 test "$can_build_shared" = "no" && enable_shared=no
12473 test no = "$can_build_shared" && enable_shared=no
1198212474
1198312475 # On AIX, shared libraries and static libraries use the same namespace, and
1198412476 # are all built from PIC.
1198512477 case $host_os in
1198612478 aix3*)
11987 test "$enable_shared" = yes && enable_static=no
12479 test yes = "$enable_shared" && enable_static=no
1198812480 if test -n "$RANLIB"; then
1198912481 archive_cmds="$archive_cmds~\$RANLIB \$lib"
1199012482 postinstall_cmds='$RANLIB $lib'
1199212484 ;;
1199312485
1199412486 aix[4-9]*)
11995 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11996 test "$enable_shared" = yes && enable_static=no
12487 if test ia64 != "$host_cpu"; then
12488 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12489 yes,aix,yes) ;; # shared object as lib.so file only
12490 yes,svr4,*) ;; # shared object as lib.so archive member only
12491 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12492 esac
1199712493 fi
1199812494 ;;
1199912495 esac
1200312499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
1200412500 $as_echo_n "checking whether to build static libraries... " >&6; }
1200512501 # Make sure either enable_shared or enable_static is yes.
12006 test "$enable_shared" = yes || enable_static=yes
12502 test yes = "$enable_shared" || enable_static=yes
1200712503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
1200812504 $as_echo "$enable_static" >&6; }
1200912505
1201712513 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1201812514 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1201912515
12020 CC="$lt_save_CC"
12516 CC=$lt_save_CC
1202112517
1202212518
1202312519
1475215248 # report actual input values of CONFIG_FILES etc. instead of their
1475315249 # values after options handling.
1475415250 ac_log="
14755 This file was extended by GStreamer GObject Introspection overrides for Python $as_me 1.7.1, which was
15251 This file was extended by GStreamer GObject Introspection overrides for Python $as_me 1.7.2, which was
1475615252 generated by GNU Autoconf 2.69. Invocation command line was
1475715253
1475815254 CONFIG_FILES = $CONFIG_FILES
1481815314 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1481915315 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1482015316 ac_cs_version="\\
14821 GStreamer GObject Introspection overrides for Python config.status 1.7.1
15317 GStreamer GObject Introspection overrides for Python config.status 1.7.2
1482215318 configured by $0, generated by GNU Autoconf 2.69,
1482315319 with options \\"\$ac_cs_config\\"
1482415320
1495615452 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
1495715453 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
1495815454 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15455 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
1495915456 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
1496015457 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
1496115458 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
1500315500 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
1500415501 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
1500515502 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15503 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
1500615504 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
1500715505 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"`'
15506 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
1500815507 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
1500915508 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15509 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
1501015510 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
1501115511 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
1501215512 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
1507115571 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
1507215572 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
1507315573 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15074 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15574 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
15575 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
1507515576 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
1507615577 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
1507715578 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
1512315624 compiler \
1512415625 lt_cv_sys_global_symbol_pipe \
1512515626 lt_cv_sys_global_symbol_to_cdecl \
15627 lt_cv_sys_global_symbol_to_import \
1512615628 lt_cv_sys_global_symbol_to_c_name_address \
1512715629 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15630 lt_cv_nm_interface \
1512815631 nm_file_list_spec \
15632 lt_cv_truncate_bin \
1512915633 lt_prog_compiler_no_builtin_flag \
1513015634 lt_prog_compiler_pic \
1513115635 lt_prog_compiler_wl \
1516015664 striplib; do
1516115665 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
1516215666 *[\\\\\\\`\\"\\\$]*)
15163 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15667 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
1516415668 ;;
1516515669 *)
1516615670 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
1518715691 postuninstall_cmds \
1518815692 finish_cmds \
1518915693 sys_lib_search_path_spec \
15190 sys_lib_dlsearch_path_spec; do
15694 configure_time_dlsearch_path \
15695 configure_time_lt_sys_library_path; do
1519115696 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
1519215697 *[\\\\\\\`\\"\\\$]*)
15193 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15698 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
1519415699 ;;
1519515700 *)
1519615701 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
1519915704 done
1520015705
1520115706 ac_aux_dir='$ac_aux_dir'
15202 xsi_shell='$xsi_shell'
15203 lt_shell_append='$lt_shell_append'
15204
15205 # See if we are running on zsh, and set the options which allow our
15707
15708 # See if we are running on zsh, and set the options that allow our
1520615709 # commands through without removal of \ escapes INIT.
15207 if test -n "\${ZSH_VERSION+set}" ; then
15710 if test -n "\${ZSH_VERSION+set}"; then
1520815711 setopt NO_GLOB_SUBST
1520915712 fi
1521015713
1521115714
1521215715 PACKAGE='$PACKAGE'
1521315716 VERSION='$VERSION'
15214 TIMESTAMP='$TIMESTAMP'
1521515717 RM='$RM'
1521615718 ofile='$ofile'
1521715719
1592616428 ;;
1592716429 "libtool":C)
1592816430
15929 # See if we are running on zsh, and set the options which allow our
16431 # See if we are running on zsh, and set the options that allow our
1593016432 # commands through without removal of \ escapes.
15931 if test -n "${ZSH_VERSION+set}" ; then
16433 if test -n "${ZSH_VERSION+set}"; then
1593216434 setopt NO_GLOB_SUBST
1593316435 fi
1593416436
15935 cfgfile="${ofile}T"
16437 cfgfile=${ofile}T
1593616438 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
1593716439 $RM "$cfgfile"
1593816440
1593916441 cat <<_LT_EOF >> "$cfgfile"
1594016442 #! $SHELL
15941
15942 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15943 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16443 # Generated automatically by $as_me ($PACKAGE) $VERSION
1594416444 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1594516445 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16446
16447 # Provide generalized library-building support services.
16448 # Written by Gordon Matzigkeit, 1996
16449
16450 # Copyright (C) 2014 Free Software Foundation, Inc.
16451 # This is free software; see the source for copying conditions. There is NO
16452 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16453
16454 # GNU Libtool is free software; you can redistribute it and/or modify
16455 # it under the terms of the GNU General Public License as published by
16456 # the Free Software Foundation; either version 2 of of the License, or
16457 # (at your option) any later version.
1594616458 #
15947 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15948 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
15949 # Foundation, Inc.
15950 # Written by Gordon Matzigkeit, 1996
16459 # As a special exception to the GNU General Public License, if you
16460 # distribute this file as part of a program or library that is built
16461 # using GNU Libtool, you may include this file under the same
16462 # distribution terms that you use for the rest of that program.
1595116463 #
15952 # This file is part of GNU Libtool.
15953 #
15954 # GNU Libtool is free software; you can redistribute it and/or
15955 # modify it under the terms of the GNU General Public License as
15956 # published by the Free Software Foundation; either version 2 of
15957 # the License, or (at your option) any later version.
15958 #
15959 # As a special exception to the GNU General Public License,
15960 # if you distribute this file as part of a program or library that
15961 # is built using GNU Libtool, you may include this file under the
15962 # same distribution terms that you use for the rest of that program.
15963 #
15964 # GNU Libtool is distributed in the hope that it will be useful,
15965 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16464 # GNU Libtool is distributed in the hope that it will be useful, but
16465 # WITHOUT ANY WARRANTY; without even the implied warranty of
1596616466 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1596716467 # GNU General Public License for more details.
1596816468 #
1596916469 # You should have received a copy of the GNU General Public License
15970 # along with GNU Libtool; see the file COPYING. If not, a copy
15971 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15972 # obtained by writing to the Free Software Foundation, Inc.,
15973 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16470 # along with this program. If not, see <http://www.gnu.org/licenses/>.
1597416471
1597516472
1597616473 # The names of the tagged configurations supported by this script.
15977 available_tags=""
16474 available_tags=''
16475
16476 # Configured defaults for sys_lib_dlsearch_path munging.
16477 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
1597816478
1597916479 # ### BEGIN LIBTOOL CONFIG
1598016480
1600216502
1600316503 # Whether or not to optimize for fast installation.
1600416504 fast_install=$enable_fast_install
16505
16506 # Shared archive member basename,for filename based shared library versioning on AIX.
16507 shared_archive_member_spec=$shared_archive_member_spec
1600516508
1600616509 # Shell to use when invoking shell scripts.
1600716510 SHELL=$lt_SHELL
1611416617 # Transform the output of nm in a proper C declaration.
1611516618 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
1611616619
16620 # Transform the output of nm into a list of symbols to manually relocate.
16621 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
16622
1611716623 # Transform the output of nm in a C name address pair.
1611816624 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
1611916625
1612016626 # Transform the output of nm in a C name address pair when lib prefix is needed.
1612116627 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
1612216628
16629 # The name lister interface.
16630 nm_interface=$lt_lt_cv_nm_interface
16631
1612316632 # Specify filename containing input files for \$NM.
1612416633 nm_file_list_spec=$lt_nm_file_list_spec
1612516634
16126 # The root where to search for dependent libraries,and in which our libraries should be installed.
16635 # The root where to search for dependent libraries,and where our libraries should be installed.
1612716636 lt_sysroot=$lt_sysroot
16637
16638 # Command to truncate a binary pipe.
16639 lt_truncate_bin=$lt_lt_cv_truncate_bin
1612816640
1612916641 # The name of the directory that contains temporary libtool files.
1613016642 objdir=$objdir
1621616728 # Compile-time system search path for libraries.
1621716729 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
1621816730
16219 # Run-time system search path for libraries.
16220 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16731 # Detected run-time system search path for libraries.
16732 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
16733
16734 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
16735 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
1622116736
1622216737 # Whether dlopen is supported.
1622316738 dlopen_support=$enable_dlopen
1631016825 # Whether we need a single "-rpath" flag with a separated argument.
1631116826 hardcode_libdir_separator=$lt_hardcode_libdir_separator
1631216827
16313 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16828 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
1631416829 # DIR into the resulting binary.
1631516830 hardcode_direct=$hardcode_direct
1631616831
16317 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16832 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
1631816833 # DIR into the resulting binary and the resulting library dependency is
16319 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16834 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
1632016835 # library is relocated.
1632116836 hardcode_direct_absolute=$hardcode_direct_absolute
1632216837
1636516880 hardcode_action=$hardcode_action
1636616881
1636716882 # ### END LIBTOOL CONFIG
16883
16884 _LT_EOF
16885
16886 cat <<'_LT_EOF' >> "$cfgfile"
16887
16888 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
16889
16890 # func_munge_path_list VARIABLE PATH
16891 # -----------------------------------
16892 # VARIABLE is name of variable containing _space_ separated list of
16893 # directories to be munged by the contents of PATH, which is string
16894 # having a format:
16895 # "DIR[:DIR]:"
16896 # string "DIR[ DIR]" will be prepended to VARIABLE
16897 # ":DIR[:DIR]"
16898 # string "DIR[ DIR]" will be appended to VARIABLE
16899 # "DIRP[:DIRP]::[DIRA:]DIRA"
16900 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
16901 # "DIRA[ DIRA]" will be appended to VARIABLE
16902 # "DIR[:DIR]"
16903 # VARIABLE will be replaced by "DIR[ DIR]"
16904 func_munge_path_list ()
16905 {
16906 case x$2 in
16907 x)
16908 ;;
16909 *:)
16910 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
16911 ;;
16912 x:*)
16913 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
16914 ;;
16915 *::*)
16916 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
16917 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
16918 ;;
16919 *)
16920 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
16921 ;;
16922 esac
16923 }
16924
16925
16926 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
16927 func_cc_basename ()
16928 {
16929 for cc_temp in $*""; do
16930 case $cc_temp in
16931 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16932 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16933 \-*) ;;
16934 *) break;;
16935 esac
16936 done
16937 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
16938 }
16939
16940
16941 # ### END FUNCTIONS SHARED WITH CONFIGURE
1636816942
1636916943 _LT_EOF
1637016944
1637416948 # AIX sometimes has problems with the GCC collect2 program. For some
1637516949 # reason, if we set the COLLECT_NAMES environment variable, the problems
1637616950 # vanish in a puff of smoke.
16377 if test "X${COLLECT_NAMES+set}" != Xset; then
16951 if test set != "${COLLECT_NAMES+set}"; then
1637816952 COLLECT_NAMES=
1637916953 export COLLECT_NAMES
1638016954 fi
1638316957 esac
1638416958
1638516959
16386 ltmain="$ac_aux_dir/ltmain.sh"
16960 ltmain=$ac_aux_dir/ltmain.sh
1638716961
1638816962
1638916963 # We use sed instead of cat because bash on DJGPP gets confused if
1639216966 # is reportedly fixed, but why not run on old versions too?
1639316967 sed '$q' "$ltmain" >> "$cfgfile" \
1639416968 || (rm -f "$cfgfile"; exit 1)
16395
16396 if test x"$xsi_shell" = xyes; then
16397 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
16398 func_dirname ()\
16399 {\
16400 \ case ${1} in\
16401 \ */*) func_dirname_result="${1%/*}${2}" ;;\
16402 \ * ) func_dirname_result="${3}" ;;\
16403 \ esac\
16404 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
16405 && mv -f "$cfgfile.tmp" "$cfgfile" \
16406 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16407 test 0 -eq $? || _lt_function_replace_fail=:
16408
16409
16410 sed -e '/^func_basename ()$/,/^} # func_basename /c\
16411 func_basename ()\
16412 {\
16413 \ func_basename_result="${1##*/}"\
16414 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
16415 && mv -f "$cfgfile.tmp" "$cfgfile" \
16416 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16417 test 0 -eq $? || _lt_function_replace_fail=:
16418
16419
16420 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
16421 func_dirname_and_basename ()\
16422 {\
16423 \ case ${1} in\
16424 \ */*) func_dirname_result="${1%/*}${2}" ;;\
16425 \ * ) func_dirname_result="${3}" ;;\
16426 \ esac\
16427 \ func_basename_result="${1##*/}"\
16428 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
16429 && mv -f "$cfgfile.tmp" "$cfgfile" \
16430 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16431 test 0 -eq $? || _lt_function_replace_fail=:
16432
16433
16434 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
16435 func_stripname ()\
16436 {\
16437 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
16438 \ # positional parameters, so assign one to ordinary parameter first.\
16439 \ func_stripname_result=${3}\
16440 \ func_stripname_result=${func_stripname_result#"${1}"}\
16441 \ func_stripname_result=${func_stripname_result%"${2}"}\
16442 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
16443 && mv -f "$cfgfile.tmp" "$cfgfile" \
16444 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16445 test 0 -eq $? || _lt_function_replace_fail=:
16446
16447
16448 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
16449 func_split_long_opt ()\
16450 {\
16451 \ func_split_long_opt_name=${1%%=*}\
16452 \ func_split_long_opt_arg=${1#*=}\
16453 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
16454 && mv -f "$cfgfile.tmp" "$cfgfile" \
16455 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16456 test 0 -eq $? || _lt_function_replace_fail=:
16457
16458
16459 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
16460 func_split_short_opt ()\
16461 {\
16462 \ func_split_short_opt_arg=${1#??}\
16463 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
16464 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
16465 && mv -f "$cfgfile.tmp" "$cfgfile" \
16466 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16467 test 0 -eq $? || _lt_function_replace_fail=:
16468
16469
16470 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
16471 func_lo2o ()\
16472 {\
16473 \ case ${1} in\
16474 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
16475 \ *) func_lo2o_result=${1} ;;\
16476 \ esac\
16477 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
16478 && mv -f "$cfgfile.tmp" "$cfgfile" \
16479 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16480 test 0 -eq $? || _lt_function_replace_fail=:
16481
16482
16483 sed -e '/^func_xform ()$/,/^} # func_xform /c\
16484 func_xform ()\
16485 {\
16486 func_xform_result=${1%.*}.lo\
16487 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
16488 && mv -f "$cfgfile.tmp" "$cfgfile" \
16489 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16490 test 0 -eq $? || _lt_function_replace_fail=:
16491
16492
16493 sed -e '/^func_arith ()$/,/^} # func_arith /c\
16494 func_arith ()\
16495 {\
16496 func_arith_result=$(( $* ))\
16497 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
16498 && mv -f "$cfgfile.tmp" "$cfgfile" \
16499 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16500 test 0 -eq $? || _lt_function_replace_fail=:
16501
16502
16503 sed -e '/^func_len ()$/,/^} # func_len /c\
16504 func_len ()\
16505 {\
16506 func_len_result=${#1}\
16507 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
16508 && mv -f "$cfgfile.tmp" "$cfgfile" \
16509 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16510 test 0 -eq $? || _lt_function_replace_fail=:
16511
16512 fi
16513
16514 if test x"$lt_shell_append" = xyes; then
16515 sed -e '/^func_append ()$/,/^} # func_append /c\
16516 func_append ()\
16517 {\
16518 eval "${1}+=\\${2}"\
16519 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
16520 && mv -f "$cfgfile.tmp" "$cfgfile" \
16521 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16522 test 0 -eq $? || _lt_function_replace_fail=:
16523
16524
16525 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
16526 func_append_quoted ()\
16527 {\
16528 \ func_quote_for_eval "${2}"\
16529 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
16530 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
16531 && mv -f "$cfgfile.tmp" "$cfgfile" \
16532 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16533 test 0 -eq $? || _lt_function_replace_fail=:
16534
16535
16536 # Save a `func_append' function call where possible by direct use of '+='
16537 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
16538 && mv -f "$cfgfile.tmp" "$cfgfile" \
16539 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16540 test 0 -eq $? || _lt_function_replace_fail=:
16541 else
16542 # Save a `func_append' function call even when '+=' is not available
16543 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
16544 && mv -f "$cfgfile.tmp" "$cfgfile" \
16545 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16546 test 0 -eq $? || _lt_function_replace_fail=:
16547 fi
16548
16549 if test x"$_lt_function_replace_fail" = x":"; then
16550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
16551 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
16552 fi
16553
1655416969
1655516970 mv -f "$cfgfile" "$ofile" ||
1655616971 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22 dnl initialize autoconf
33 dnl when going to/from release please set the nano (fourth number) right !
44 dnl releases only do Wall, cvs and prerelease does Werror too
5 AC_INIT(GStreamer GObject Introspection overrides for Python , 1.7.1,
5 AC_INIT(GStreamer GObject Introspection overrides for Python , 1.7.2,
66 http://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer,
77 gst-python)
88
3737
3838 dnl required versions of other packages
3939 dnl Note that they are runtime requirements
40 AC_SUBST(GST_REQ, 1.7.1)
40 AC_SUBST(GST_REQ, 1.7.2)
4141 AC_SUBST(PYGOBJECT_REQ, 3.0)
4242
4343 AC_DISABLE_STATIC
232232 LIPO = @LIPO@
233233 LN_S = @LN_S@
234234 LTLIBOBJS = @LTLIBOBJS@
235 LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@
235236 MAINT = @MAINT@
236237 MAKEINFO = @MAKEINFO@
237238 MANIFEST_TOOL = @MANIFEST_TOOL@
2626 from ..overrides import override as override_
2727 from ..importer import modules
2828
29 from gi.repository import Gst
29 import gi
30 gi.require_version('Gst', '1.0')
31
32 from gi.repository import Gst # noqa
3033
3134 GstPbutils = modules['GstPbutils']._introspection_module
3235 __all__ = []
36
3337
3438 def override(cls):
3539 name = cls.__name__
3741 __all__.append(name)
3842
3943 return cls
44
4045
4146 @override
4247 class EncodingVideoProfile(GstPbutils.EncodingVideoProfile):
5055 self.set_restriction(restriction)
5156 self.set_presence(presence)
5257
58
5359 @override
5460 class EncodingAudioProfile(GstPbutils.EncodingAudioProfile):
5561 def __init__(self, format, preset=None, restriction=None, presence=0):
6268 self.set_restriction(restriction)
6369 self.set_presence(presence)
6470
71
6572 @override
6673 class EncodingContainerProfile(GstPbutils.EncodingContainerProfile):
6774 def __init__(self, name, description, format, preset=None):
261261 LIPO = @LIPO@
262262 LN_S = @LN_S@
263263 LTLIBOBJS = @LTLIBOBJS@
264 LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@
264265 MAINT = @MAINT@
265266 MAKEINFO = @MAKEINFO@
266267 MANIFEST_TOOL = @MANIFEST_TOOL@
146146
147147 for (i = 0; i < len; i++) {
148148 templ = (PyGObject *) PyTuple_GetItem (templates, i);
149 if (GST_IS_PAD_TEMPLATE (pygobject_get (templ)) == FALSE) {
149 if (!pygobject_check (templates, &PyGObject_Type) ||
150 GST_IS_PAD_TEMPLATE (pygobject_get (templates)) == FALSE) {
150151 PyErr_SetString (PyExc_TypeError,
151152 "entries for __gsttemplates__ must be of type GstPadTemplate");
152153 return -1;
160161 }
161162 return 0;
162163
163 }
164
165 if (GST_IS_PAD_TEMPLATE (pygobject_get (templates)) == FALSE) {
164 } else if (!pygobject_check (templates, &PyGObject_Type) ||
165 GST_IS_PAD_TEMPLATE (pygobject_get (templates)) == FALSE) {
166166 PyErr_SetString (PyExc_TypeError,
167167 "entry for __gsttemplates__ must be of type GstPadTemplate");
168
168169 return -1;
169170 }
170171
00 #!/bin/sh
11 # install - install a program, script, or datafile
22
3 scriptversion=2014-09-12.12; # UTC
3 scriptversion=2011-11-20.07; # UTC
44
55 # This originates from X11R5 (mit/util/scripts/install.sh), which was
66 # later released in X11R6 (xc/config/util/install.sh) with the
4040 # This script is compatible with the BSD install script, but was written
4141 # from scratch.
4242
43 tab=' '
4443 nl='
4544 '
46 IFS=" $tab$nl"
47
48 # Set DOITPROG to "echo" to test this script.
49
45 IFS=" "" $nl"
46
47 # set DOITPROG to echo to test this script
48
49 # Don't use :- since 4.3BSD and earlier shells don't like it.
5050 doit=${DOITPROG-}
51 doit_exec=${doit:-exec}
51 if test -z "$doit"; then
52 doit_exec=exec
53 else
54 doit_exec=$doit
55 fi
5256
5357 # Put in absolute file names if you don't have them in your path;
5458 # or use environment vars.
6367 rmprog=${RMPROG-rm}
6468 stripprog=${STRIPPROG-strip}
6569
70 posix_glob='?'
71 initialize_posix_glob='
72 test "$posix_glob" != "?" || {
73 if (set -f) 2>/dev/null; then
74 posix_glob=
75 else
76 posix_glob=:
77 fi
78 }
79 '
80
6681 posix_mkdir=
6782
6883 # Desired mode of installed file.
8196 dst_arg=
8297
8398 copy_on_change=false
84 is_target_a_directory=possibly
99 no_target_directory=
85100
86101 usage="\
87102 Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
121136 -d) dir_arg=true;;
122137
123138 -g) chgrpcmd="$chgrpprog $2"
124 shift;;
139 shift;;
125140
126141 --help) echo "$usage"; exit $?;;
127142
128143 -m) mode=$2
129 case $mode in
130 *' '* | *"$tab"* | *"$nl"* | *'*'* | *'?'* | *'['*)
131 echo "$0: invalid mode: $mode" >&2
132 exit 1;;
133 esac
134 shift;;
144 case $mode in
145 *' '* | *' '* | *'
146 '* | *'*'* | *'?'* | *'['*)
147 echo "$0: invalid mode: $mode" >&2
148 exit 1;;
149 esac
150 shift;;
135151
136152 -o) chowncmd="$chownprog $2"
137 shift;;
153 shift;;
138154
139155 -s) stripcmd=$stripprog;;
140156
141 -t)
142 is_target_a_directory=always
143 dst_arg=$2
144 # Protect names problematic for 'test' and other utilities.
145 case $dst_arg in
146 -* | [=\(\)!]) dst_arg=./$dst_arg;;
147 esac
148 shift;;
149
150 -T) is_target_a_directory=never;;
157 -t) dst_arg=$2
158 # Protect names problematic for 'test' and other utilities.
159 case $dst_arg in
160 -* | [=\(\)!]) dst_arg=./$dst_arg;;
161 esac
162 shift;;
163
164 -T) no_target_directory=true;;
151165
152166 --version) echo "$0 $scriptversion"; exit $?;;
153167
154 --) shift
155 break;;
156
157 -*) echo "$0: invalid option: $1" >&2
158 exit 1;;
168 --) shift
169 break;;
170
171 -*) echo "$0: invalid option: $1" >&2
172 exit 1;;
159173
160174 *) break;;
161175 esac
162176 shift
163177 done
164
165 # We allow the use of options -d and -T together, by making -d
166 # take the precedence; this is for compatibility with GNU install.
167
168 if test -n "$dir_arg"; then
169 if test -n "$dst_arg"; then
170 echo "$0: target directory not allowed when installing a directory." >&2
171 exit 1
172 fi
173 fi
174178
175179 if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then
176180 # When -d is used, all remaining arguments are directories to create.
203207 fi
204208
205209 if test -z "$dir_arg"; then
206 if test $# -gt 1 || test "$is_target_a_directory" = always; then
207 if test ! -d "$dst_arg"; then
208 echo "$0: $dst_arg: Is not a directory." >&2
209 exit 1
210 fi
211 fi
212 fi
213
214 if test -z "$dir_arg"; then
215210 do_exit='(exit $ret); exit $ret'
216211 trap "ret=129; $do_exit" 1
217212 trap "ret=130; $do_exit" 2
227222
228223 *[0-7])
229224 if test -z "$stripcmd"; then
230 u_plus_rw=
225 u_plus_rw=
231226 else
232 u_plus_rw='% 200'
227 u_plus_rw='% 200'
233228 fi
234229 cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;;
235230 *)
236231 if test -z "$stripcmd"; then
237 u_plus_rw=
232 u_plus_rw=
238233 else
239 u_plus_rw=,u+rw
234 u_plus_rw=,u+rw
240235 fi
241236 cp_umask=$mode$u_plus_rw;;
242237 esac
273268 # If destination is a directory, append the input filename; won't work
274269 # if double slashes aren't ignored.
275270 if test -d "$dst"; then
276 if test "$is_target_a_directory" = never; then
277 echo "$0: $dst_arg: Is a directory" >&2
278 exit 1
271 if test -n "$no_target_directory"; then
272 echo "$0: $dst_arg: Is a directory" >&2
273 exit 1
279274 fi
280275 dstdir=$dst
281276 dst=$dstdir/`basename "$src"`
282277 dstdir_status=0
283278 else
284 dstdir=`dirname "$dst"`
279 # Prefer dirname, but fall back on a substitute if dirname fails.
280 dstdir=`
281 (dirname "$dst") 2>/dev/null ||
282 expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
283 X"$dst" : 'X\(//\)[^/]' \| \
284 X"$dst" : 'X\(//\)$' \| \
285 X"$dst" : 'X\(/\)' \| . 2>/dev/null ||
286 echo X"$dst" |
287 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
288 s//\1/
289 q
290 }
291 /^X\(\/\/\)[^/].*/{
292 s//\1/
293 q
294 }
295 /^X\(\/\/\)$/{
296 s//\1/
297 q
298 }
299 /^X\(\/\).*/{
300 s//\1/
301 q
302 }
303 s/.*/./; q'
304 `
305
285306 test -d "$dstdir"
286307 dstdir_status=$?
287308 fi
292313 if test $dstdir_status != 0; then
293314 case $posix_mkdir in
294315 '')
295 # Create intermediate dirs using mode 755 as modified by the umask.
296 # This is like FreeBSD 'install' as of 1997-10-28.
297 umask=`umask`
298 case $stripcmd.$umask in
299 # Optimize common cases.
300 *[2367][2367]) mkdir_umask=$umask;;
301 .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;;
302
303 *[0-7])
304 mkdir_umask=`expr $umask + 22 \
305 - $umask % 100 % 40 + $umask % 20 \
306 - $umask % 10 % 4 + $umask % 2
307 `;;
308 *) mkdir_umask=$umask,go-w;;
309 esac
310
311 # With -d, create the new directory with the user-specified mode.
312 # Otherwise, rely on $mkdir_umask.
313 if test -n "$dir_arg"; then
314 mkdir_mode=-m$mode
315 else
316 mkdir_mode=
317 fi
318
319 posix_mkdir=false
320 case $umask in
321 *[123567][0-7][0-7])
322 # POSIX mkdir -p sets u+wx bits regardless of umask, which
323 # is incompatible with FreeBSD 'install' when (umask & 300) != 0.
324 ;;
325 *)
326 # $RANDOM is not portable (e.g. dash); use it when possible to
327 # lower collision chance
328 tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$
329 trap 'ret=$?; rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir" 2>/dev/null; exit $ret' 0
330
331 # As "mkdir -p" follows symlinks and we work in /tmp possibly; so
332 # create the $tmpdir first (and fail if unsuccessful) to make sure
333 # that nobody tries to guess the $tmpdir name.
334 if (umask $mkdir_umask &&
335 $mkdirprog $mkdir_mode "$tmpdir" &&
336 exec $mkdirprog $mkdir_mode -p -- "$tmpdir/a/b") >/dev/null 2>&1
337 then
338 if test -z "$dir_arg" || {
339 # Check for POSIX incompatibilities with -m.
340 # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
341 # other-writable bit of parent directory when it shouldn't.
342 # FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
343 test_tmpdir="$tmpdir/a"
344 ls_ld_tmpdir=`ls -ld "$test_tmpdir"`
345 case $ls_ld_tmpdir in
346 d????-?r-*) different_mode=700;;
347 d????-?--*) different_mode=755;;
348 *) false;;
349 esac &&
350 $mkdirprog -m$different_mode -p -- "$test_tmpdir" && {
351 ls_ld_tmpdir_1=`ls -ld "$test_tmpdir"`
352 test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1"
353 }
354 }
355 then posix_mkdir=:
356 fi
357 rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir"
358 else
359 # Remove any dirs left behind by ancient mkdir implementations.
360 rmdir ./$mkdir_mode ./-p ./-- "$tmpdir" 2>/dev/null
361 fi
362 trap '' 0;;
363 esac;;
316 # Create intermediate dirs using mode 755 as modified by the umask.
317 # This is like FreeBSD 'install' as of 1997-10-28.
318 umask=`umask`
319 case $stripcmd.$umask in
320 # Optimize common cases.
321 *[2367][2367]) mkdir_umask=$umask;;
322 .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;;
323
324 *[0-7])
325 mkdir_umask=`expr $umask + 22 \
326 - $umask % 100 % 40 + $umask % 20 \
327 - $umask % 10 % 4 + $umask % 2
328 `;;
329 *) mkdir_umask=$umask,go-w;;
330 esac
331
332 # With -d, create the new directory with the user-specified mode.
333 # Otherwise, rely on $mkdir_umask.
334 if test -n "$dir_arg"; then
335 mkdir_mode=-m$mode
336 else
337 mkdir_mode=
338 fi
339
340 posix_mkdir=false
341 case $umask in
342 *[123567][0-7][0-7])
343 # POSIX mkdir -p sets u+wx bits regardless of umask, which
344 # is incompatible with FreeBSD 'install' when (umask & 300) != 0.
345 ;;
346 *)
347 tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$
348 trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0
349
350 if (umask $mkdir_umask &&
351 exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1
352 then
353 if test -z "$dir_arg" || {
354 # Check for POSIX incompatibilities with -m.
355 # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
356 # other-writable bit of parent directory when it shouldn't.
357 # FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
358 ls_ld_tmpdir=`ls -ld "$tmpdir"`
359 case $ls_ld_tmpdir in
360 d????-?r-*) different_mode=700;;
361 d????-?--*) different_mode=755;;
362 *) false;;
363 esac &&
364 $mkdirprog -m$different_mode -p -- "$tmpdir" && {
365 ls_ld_tmpdir_1=`ls -ld "$tmpdir"`
366 test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1"
367 }
368 }
369 then posix_mkdir=:
370 fi
371 rmdir "$tmpdir/d" "$tmpdir"
372 else
373 # Remove any dirs left behind by ancient mkdir implementations.
374 rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null
375 fi
376 trap '' 0;;
377 esac;;
364378 esac
365379
366380 if
367381 $posix_mkdir && (
368 umask $mkdir_umask &&
369 $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir"
382 umask $mkdir_umask &&
383 $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir"
370384 )
371385 then :
372386 else
376390 # directory the slow way, step by step, checking for races as we go.
377391
378392 case $dstdir in
379 /*) prefix='/';;
380 [-=\(\)!]*) prefix='./';;
381 *) prefix='';;
393 /*) prefix='/';;
394 [-=\(\)!]*) prefix='./';;
395 *) prefix='';;
382396 esac
397
398 eval "$initialize_posix_glob"
383399
384400 oIFS=$IFS
385401 IFS=/
386 set -f
402 $posix_glob set -f
387403 set fnord $dstdir
388404 shift
389 set +f
405 $posix_glob set +f
390406 IFS=$oIFS
391407
392408 prefixes=
393409
394410 for d
395411 do
396 test X"$d" = X && continue
397
398 prefix=$prefix$d
399 if test -d "$prefix"; then
400 prefixes=
401 else
402 if $posix_mkdir; then
403 (umask=$mkdir_umask &&
404 $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break
405 # Don't fail if two instances are running concurrently.
406 test -d "$prefix" || exit 1
407 else
408 case $prefix in
409 *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;;
410 *) qprefix=$prefix;;
411 esac
412 prefixes="$prefixes '$qprefix'"
413 fi
414 fi
415 prefix=$prefix/
412 test X"$d" = X && continue
413
414 prefix=$prefix$d
415 if test -d "$prefix"; then
416 prefixes=
417 else
418 if $posix_mkdir; then
419 (umask=$mkdir_umask &&
420 $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break
421 # Don't fail if two instances are running concurrently.
422 test -d "$prefix" || exit 1
423 else
424 case $prefix in
425 *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;;
426 *) qprefix=$prefix;;
427 esac
428 prefixes="$prefixes '$qprefix'"
429 fi
430 fi
431 prefix=$prefix/
416432 done
417433
418434 if test -n "$prefixes"; then
419 # Don't fail if two instances are running concurrently.
420 (umask $mkdir_umask &&
421 eval "\$doit_exec \$mkdirprog $prefixes") ||
422 test -d "$dstdir" || exit 1
423 obsolete_mkdir_used=true
435 # Don't fail if two instances are running concurrently.
436 (umask $mkdir_umask &&
437 eval "\$doit_exec \$mkdirprog $prefixes") ||
438 test -d "$dstdir" || exit 1
439 obsolete_mkdir_used=true
424440 fi
425441 fi
426442 fi
455471
456472 # If -C, don't bother to copy if it wouldn't change the file.
457473 if $copy_on_change &&
458 old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` &&
459 new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` &&
460 set -f &&
474 old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` &&
475 new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` &&
476
477 eval "$initialize_posix_glob" &&
478 $posix_glob set -f &&
461479 set X $old && old=:$2:$4:$5:$6 &&
462480 set X $new && new=:$2:$4:$5:$6 &&
463 set +f &&
481 $posix_glob set +f &&
482
464483 test "$old" = "$new" &&
465484 $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1
466485 then
473492 # to itself, or perhaps because mv is so ancient that it does not
474493 # support -f.
475494 {
476 # Now remove or move aside any old file at destination location.
477 # We try this two ways since rm can't unlink itself on some
478 # systems and the destination file might be busy for other
479 # reasons. In this case, the final cleanup might fail but the new
480 # file should still install successfully.
481 {
482 test ! -f "$dst" ||
483 $doit $rmcmd -f "$dst" 2>/dev/null ||
484 { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null &&
485 { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; }
486 } ||
487 { echo "$0: cannot unlink or rename $dst" >&2
488 (exit 1); exit 1
489 }
490 } &&
491
492 # Now rename the file to the real destination.
493 $doit $mvcmd "$dsttmp" "$dst"
495 # Now remove or move aside any old file at destination location.
496 # We try this two ways since rm can't unlink itself on some
497 # systems and the destination file might be busy for other
498 # reasons. In this case, the final cleanup might fail but the new
499 # file should still install successfully.
500 {
501 test ! -f "$dst" ||
502 $doit $rmcmd -f "$dst" 2>/dev/null ||
503 { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null &&
504 { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; }
505 } ||
506 { echo "$0: cannot unlink or rename $dst" >&2
507 (exit 1); exit 1
508 }
509 } &&
510
511 # Now rename the file to the real destination.
512 $doit $mvcmd "$dsttmp" "$dst"
494513 }
495514 fi || exit 1
496515
+3656
-2161
ltmain.sh less more
0
1 # libtool (GNU libtool) 2.4.2
0 #! /bin/sh
1 ## DO NOT EDIT - This file generated from ./build-aux/ltmain.in
2 ## by inline-source v2014-01-03.01
3
4 # libtool (GNU libtool) 2.4.6
5 # Provide generalized library-building support services.
26 # Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
37
4 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006,
5 # 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
8 # Copyright (C) 1996-2015 Free Software Foundation, Inc.
69 # This is free software; see the source for copying conditions. There is NO
710 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
811
2225 # General Public License for more details.
2326 #
2427 # You should have received a copy of the GNU General Public License
25 # along with GNU Libtool; see the file COPYING. If not, a copy
26 # can be downloaded from http://www.gnu.org/licenses/gpl.html,
27 # or obtained by writing to the Free Software Foundation, Inc.,
28 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
29
30 # Usage: $progname [OPTION]... [MODE-ARG]...
31 #
32 # Provide generalized library-building support services.
33 #
34 # --config show all configuration variables
35 # --debug enable verbose shell tracing
36 # -n, --dry-run display commands without modifying any files
37 # --features display basic configuration information and exit
38 # --mode=MODE use operation mode MODE
39 # --preserve-dup-deps don't remove duplicate dependency libraries
40 # --quiet, --silent don't print informational messages
41 # --no-quiet, --no-silent
42 # print informational messages (default)
43 # --no-warn don't display warning messages
44 # --tag=TAG use configuration variables from tag TAG
45 # -v, --verbose print more informational messages than default
46 # --no-verbose don't print the extra informational messages
47 # --version print version information
48 # -h, --help, --help-all print short, long, or detailed help message
49 #
50 # MODE must be one of the following:
51 #
52 # clean remove files from the build directory
53 # compile compile a source file into a libtool object
54 # execute automatically set library path, then run a program
55 # finish complete the installation of libtool libraries
56 # install install libraries or executables
57 # link create a library or an executable
58 # uninstall remove libraries from an installed directory
59 #
60 # MODE-ARGS vary depending on the MODE. When passed as first option,
61 # `--mode=MODE' may be abbreviated as `MODE' or a unique abbreviation of that.
62 # Try `$progname --help --mode=MODE' for a more detailed description of MODE.
63 #
64 # When reporting a bug, please describe a test case to reproduce it and
65 # include the following information:
66 #
67 # host-triplet: $host
68 # shell: $SHELL
69 # compiler: $LTCC
70 # compiler flags: $LTCFLAGS
71 # linker: $LD (gnu? $with_gnu_ld)
72 # $progname: (GNU libtool) 2.4.2 Debian-2.4.2-1.11
73 # automake: $automake_version
74 # autoconf: $autoconf_version
75 #
76 # Report bugs to <bug-libtool@gnu.org>.
77 # GNU libtool home page: <http://www.gnu.org/software/libtool/>.
78 # General help using GNU software: <http://www.gnu.org/gethelp/>.
28 # along with this program. If not, see <http://www.gnu.org/licenses/>.
29
7930
8031 PROGRAM=libtool
8132 PACKAGE=libtool
82 VERSION="2.4.2 Debian-2.4.2-1.11"
83 TIMESTAMP=""
84 package_revision=1.3337
85
86 # Be Bourne compatible
87 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
33 VERSION="2.4.6 Debian-2.4.6-0.1"
34 package_revision=2.4.6
35
36
37 ## ------ ##
38 ## Usage. ##
39 ## ------ ##
40
41 # Run './libtool --help' for help with using this script from the
42 # command line.
43
44
45 ## ------------------------------- ##
46 ## User overridable command paths. ##
47 ## ------------------------------- ##
48
49 # After configure completes, it has a better idea of some of the
50 # shell tools we need than the defaults used by the functions shared
51 # with bootstrap, so set those here where they can still be over-
52 # ridden by the user, but otherwise take precedence.
53
54 : ${AUTOCONF="autoconf"}
55 : ${AUTOMAKE="automake"}
56
57
58 ## -------------------------- ##
59 ## Source external libraries. ##
60 ## -------------------------- ##
61
62 # Much of our low-level functionality needs to be sourced from external
63 # libraries, which are installed to $pkgauxdir.
64
65 # Set a version string for this script.
66 scriptversion=2015-01-20.17; # UTC
67
68 # General shell script boiler plate, and helper functions.
69 # Written by Gary V. Vaughan, 2004
70
71 # Copyright (C) 2004-2015 Free Software Foundation, Inc.
72 # This is free software; see the source for copying conditions. There is NO
73 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
74
75 # This program is free software; you can redistribute it and/or modify
76 # it under the terms of the GNU General Public License as published by
77 # the Free Software Foundation; either version 3 of the License, or
78 # (at your option) any later version.
79
80 # As a special exception to the GNU General Public License, if you distribute
81 # this file as part of a program or library that is built using GNU Libtool,
82 # you may include this file under the same distribution terms that you use
83 # for the rest of that program.
84
85 # This program is distributed in the hope that it will be useful,
86 # but WITHOUT ANY WARRANTY; without even the implied warranty of
87 # MERCHANTABILITY or FITNES FOR A PARTICULAR PURPOSE. See the GNU
88 # General Public License for more details.
89
90 # You should have received a copy of the GNU General Public License
91 # along with this program. If not, see <http://www.gnu.org/licenses/>.
92
93 # Please report bugs or propose patches to gary@gnu.org.
94
95
96 ## ------ ##
97 ## Usage. ##
98 ## ------ ##
99
100 # Evaluate this file near the top of your script to gain access to
101 # the functions and variables defined here:
102 #
103 # . `echo "$0" | ${SED-sed} 's|[^/]*$||'`/build-aux/funclib.sh
104 #
105 # If you need to override any of the default environment variable
106 # settings, do that before evaluating this file.
107
108
109 ## -------------------- ##
110 ## Shell normalisation. ##
111 ## -------------------- ##
112
113 # Some shells need a little help to be as Bourne compatible as possible.
114 # Before doing anything else, make sure all that help has been provided!
115
116 DUALCASE=1; export DUALCASE # for MKS sh
117 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
88118 emulate sh
89119 NULLCMD=:
90 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
120 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
91121 # is contrary to our usage. Disable this feature.
92122 alias -g '${1+"$@"}'='"$@"'
93123 setopt NO_GLOB_SUBST
94124 else
95 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
125 case `(set -o) 2>/dev/null` in *posix*) set -o posix ;; esac
96126 fi
97 BIN_SH=xpg4; export BIN_SH # for Tru64
98 DUALCASE=1; export DUALCASE # for MKS sh
99
100 # A function that is used when there is no print builtin or printf.
101 func_fallback_echo ()
102 {
103 eval 'cat <<_LTECHO_EOF
104 $1
105 _LTECHO_EOF'
106 }
107
108 # NLS nuisances: We save the old values to restore during execute mode.
109 lt_user_locale=
110 lt_safe_locale=
111 for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
127
128 # NLS nuisances: We save the old values in case they are required later.
129 _G_user_locale=
130 _G_safe_locale=
131 for _G_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
112132 do
113 eval "if test \"\${$lt_var+set}\" = set; then
114 save_$lt_var=\$$lt_var
115 $lt_var=C
116 export $lt_var
117 lt_user_locale=\"$lt_var=\\\$save_\$lt_var; \$lt_user_locale\"
118 lt_safe_locale=\"$lt_var=C; \$lt_safe_locale\"
133 eval "if test set = \"\${$_G_var+set}\"; then
134 save_$_G_var=\$$_G_var
135 $_G_var=C
136 export $_G_var
137 _G_user_locale=\"$_G_var=\\\$save_\$_G_var; \$_G_user_locale\"
138 _G_safe_locale=\"$_G_var=C; \$_G_safe_locale\"
119139 fi"
120140 done
121 LC_ALL=C
122 LANGUAGE=C
123 export LANGUAGE LC_ALL
124
125 $lt_unset CDPATH
126
141
142 # CDPATH.
143 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
144
145 # Make sure IFS has a sensible default
146 sp=' '
147 nl='
148 '
149 IFS="$sp $nl"
150
151 # There are apparently some retarded systems that use ';' as a PATH separator!
152 if test "${PATH_SEPARATOR+set}" != set; then
153 PATH_SEPARATOR=:
154 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
155 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
156 PATH_SEPARATOR=';'
157 }
158 fi
159
160
161
162 ## ------------------------- ##
163 ## Locate command utilities. ##
164 ## ------------------------- ##
165
166
167 # func_executable_p FILE
168 # ----------------------
169 # Check that FILE is an executable regular file.
170 func_executable_p ()
171 {
172 test -f "$1" && test -x "$1"
173 }
174
175
176 # func_path_progs PROGS_LIST CHECK_FUNC [PATH]
177 # --------------------------------------------
178 # Search for either a program that responds to --version with output
179 # containing "GNU", or else returned by CHECK_FUNC otherwise, by
180 # trying all the directories in PATH with each of the elements of
181 # PROGS_LIST.
182 #
183 # CHECK_FUNC should accept the path to a candidate program, and
184 # set $func_check_prog_result if it truncates its output less than
185 # $_G_path_prog_max characters.
186 func_path_progs ()
187 {
188 _G_progs_list=$1
189 _G_check_func=$2
190 _G_PATH=${3-"$PATH"}
191
192 _G_path_prog_max=0
193 _G_path_prog_found=false
194 _G_save_IFS=$IFS; IFS=${PATH_SEPARATOR-:}
195 for _G_dir in $_G_PATH; do
196 IFS=$_G_save_IFS
197 test -z "$_G_dir" && _G_dir=.
198 for _G_prog_name in $_G_progs_list; do
199 for _exeext in '' .EXE; do
200 _G_path_prog=$_G_dir/$_G_prog_name$_exeext
201 func_executable_p "$_G_path_prog" || continue
202 case `"$_G_path_prog" --version 2>&1` in
203 *GNU*) func_path_progs_result=$_G_path_prog _G_path_prog_found=: ;;
204 *) $_G_check_func $_G_path_prog
205 func_path_progs_result=$func_check_prog_result
206 ;;
207 esac
208 $_G_path_prog_found && break 3
209 done
210 done
211 done
212 IFS=$_G_save_IFS
213 test -z "$func_path_progs_result" && {
214 echo "no acceptable sed could be found in \$PATH" >&2
215 exit 1
216 }
217 }
218
219
220 # We want to be able to use the functions in this file before configure
221 # has figured out where the best binaries are kept, which means we have
222 # to search for them ourselves - except when the results are already set
223 # where we skip the searches.
224
225 # Unless the user overrides by setting SED, search the path for either GNU
226 # sed, or the sed that truncates its output the least.
227 test -z "$SED" && {
228 _G_sed_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
229 for _G_i in 1 2 3 4 5 6 7; do
230 _G_sed_script=$_G_sed_script$nl$_G_sed_script
231 done
232 echo "$_G_sed_script" 2>/dev/null | sed 99q >conftest.sed
233 _G_sed_script=
234
235 func_check_prog_sed ()
236 {
237 _G_path_prog=$1
238
239 _G_count=0
240 printf 0123456789 >conftest.in
241 while :
242 do
243 cat conftest.in conftest.in >conftest.tmp
244 mv conftest.tmp conftest.in
245 cp conftest.in conftest.nl
246 echo '' >> conftest.nl
247 "$_G_path_prog" -f conftest.sed <conftest.nl >conftest.out 2>/dev/null || break
248 diff conftest.out conftest.nl >/dev/null 2>&1 || break
249 _G_count=`expr $_G_count + 1`
250 if test "$_G_count" -gt "$_G_path_prog_max"; then
251 # Best one so far, save it but keep looking for a better one
252 func_check_prog_result=$_G_path_prog
253 _G_path_prog_max=$_G_count
254 fi
255 # 10*(2^10) chars as input seems more than enough
256 test 10 -lt "$_G_count" && break
257 done
258 rm -f conftest.in conftest.tmp conftest.nl conftest.out
259 }
260
261 func_path_progs "sed gsed" func_check_prog_sed $PATH:/usr/xpg4/bin
262 rm -f conftest.sed
263 SED=$func_path_progs_result
264 }
265
266
267 # Unless the user overrides by setting GREP, search the path for either GNU
268 # grep, or the grep that truncates its output the least.
269 test -z "$GREP" && {
270 func_check_prog_grep ()
271 {
272 _G_path_prog=$1
273
274 _G_count=0
275 _G_path_prog_max=0
276 printf 0123456789 >conftest.in
277 while :
278 do
279 cat conftest.in conftest.in >conftest.tmp
280 mv conftest.tmp conftest.in
281 cp conftest.in conftest.nl
282 echo 'GREP' >> conftest.nl
283 "$_G_path_prog" -e 'GREP$' -e '-(cannot match)-' <conftest.nl >conftest.out 2>/dev/null || break
284 diff conftest.out conftest.nl >/dev/null 2>&1 || break
285 _G_count=`expr $_G_count + 1`
286 if test "$_G_count" -gt "$_G_path_prog_max"; then
287 # Best one so far, save it but keep looking for a better one
288 func_check_prog_result=$_G_path_prog
289 _G_path_prog_max=$_G_count
290 fi
291 # 10*(2^10) chars as input seems more than enough
292 test 10 -lt "$_G_count" && break
293 done
294 rm -f conftest.in conftest.tmp conftest.nl conftest.out
295 }
296
297 func_path_progs "grep ggrep" func_check_prog_grep $PATH:/usr/xpg4/bin
298 GREP=$func_path_progs_result
299 }
300
301
302 ## ------------------------------- ##
303 ## User overridable command paths. ##
304 ## ------------------------------- ##
305
306 # All uppercase variable names are used for environment variables. These
307 # variables can be overridden by the user before calling a script that
308 # uses them if a suitable command of that name is not already available
309 # in the command search PATH.
310
311 : ${CP="cp -f"}
312 : ${ECHO="printf %s\n"}
313 : ${EGREP="$GREP -E"}
314 : ${FGREP="$GREP -F"}
315 : ${LN_S="ln -s"}
316 : ${MAKE="make"}
317 : ${MKDIR="mkdir"}
318 : ${MV="mv -f"}
319 : ${RM="rm -f"}
320 : ${SHELL="${CONFIG_SHELL-/bin/sh}"}
321
322
323 ## -------------------- ##
324 ## Useful sed snippets. ##
325 ## -------------------- ##
326
327 sed_dirname='s|/[^/]*$||'
328 sed_basename='s|^.*/||'
329
330 # Sed substitution that helps us do robust quoting. It backslashifies
331 # metacharacters that are still active within double-quoted strings.
332 sed_quote_subst='s|\([`"$\\]\)|\\\1|g'
333
334 # Same as above, but do not quote variable references.
335 sed_double_quote_subst='s/\(["`\\]\)/\\\1/g'
336
337 # Sed substitution that turns a string into a regex matching for the
338 # string literally.
339 sed_make_literal_regex='s|[].[^$\\*\/]|\\&|g'
340
341 # Sed substitution that converts a w32 file name or path
342 # that contains forward slashes, into one that contains
343 # (escaped) backslashes. A very naive implementation.
344 sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
345
346 # Re-'\' parameter expansions in output of sed_double_quote_subst that
347 # were '\'-ed in input to the same. If an odd number of '\' preceded a
348 # '$' in input to sed_double_quote_subst, that '$' was protected from
349 # expansion. Since each input '\' is now two '\'s, look for any number
350 # of runs of four '\'s followed by two '\'s and then a '$'. '\' that '$'.
351 _G_bs='\\'
352 _G_bs2='\\\\'
353 _G_bs4='\\\\\\\\'
354 _G_dollar='\$'
355 sed_double_backslash="\
356 s/$_G_bs4/&\\
357 /g
358 s/^$_G_bs2$_G_dollar/$_G_bs&/
359 s/\\([^$_G_bs]\\)$_G_bs2$_G_dollar/\\1$_G_bs2$_G_bs$_G_dollar/g
360 s/\n//g"
361
362
363 ## ----------------- ##
364 ## Global variables. ##
365 ## ----------------- ##
366
367 # Except for the global variables explicitly listed below, the following
368 # functions in the '^func_' namespace, and the '^require_' namespace
369 # variables initialised in the 'Resource management' section, sourcing
370 # this file will not pollute your global namespace with anything
371 # else. There's no portable way to scope variables in Bourne shell
372 # though, so actually running these functions will sometimes place
373 # results into a variable named after the function, and often use
374 # temporary variables in the '^_G_' namespace. If you are careful to
375 # avoid using those namespaces casually in your sourcing script, things
376 # should continue to work as you expect. And, of course, you can freely
377 # overwrite any of the functions or variables defined here before
378 # calling anything to customize them.
379
380 EXIT_SUCCESS=0
381 EXIT_FAILURE=1
382 EXIT_MISMATCH=63 # $? = 63 is used to indicate version mismatch to missing.
383 EXIT_SKIP=77 # $? = 77 is used to indicate a skipped test to automake.
384
385 # Allow overriding, eg assuming that you follow the convention of
386 # putting '$debug_cmd' at the start of all your functions, you can get
387 # bash to show function call trace with:
388 #
389 # debug_cmd='eval echo "${FUNCNAME[0]} $*" >&2' bash your-script-name
390 debug_cmd=${debug_cmd-":"}
391 exit_cmd=:
392
393 # By convention, finish your script with:
394 #
395 # exit $exit_status
396 #
397 # so that you can set exit_status to non-zero if you want to indicate
398 # something went wrong during execution without actually bailing out at
399 # the point of failure.
400 exit_status=$EXIT_SUCCESS
127401
128402 # Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
129403 # is ksh but when the shell is invoked as "sh" and the current value of
130404 # the _XPG environment variable is not equal to 1 (one), the special
131405 # positional parameter $0, within a function call, is the name of the
132406 # function.
133 progpath="$0"
134
135
136
137 : ${CP="cp -f"}
138 test "${ECHO+set}" = set || ECHO=${as_echo-'printf %s\n'}
139 : ${MAKE="make"}
140 : ${MKDIR="mkdir"}
141 : ${MV="mv -f"}
142 : ${RM="rm -f"}
143 : ${SHELL="${CONFIG_SHELL-/bin/sh}"}
144 : ${Xsed="$SED -e 1s/^X//"}
145
146 # Global variables:
147 EXIT_SUCCESS=0
148 EXIT_FAILURE=1
149 EXIT_MISMATCH=63 # $? = 63 is used to indicate version mismatch to missing.
150 EXIT_SKIP=77 # $? = 77 is used to indicate a skipped test to automake.
151
152 exit_status=$EXIT_SUCCESS
153
154 # Make sure IFS has a sensible default
155 lt_nl='
156 '
157 IFS=" $lt_nl"
158
159 dirname="s,/[^/]*$,,"
160 basename="s,^.*/,,"
161
162 # func_dirname file append nondir_replacement
407 progpath=$0
408
409 # The name of this program.
410 progname=`$ECHO "$progpath" |$SED "$sed_basename"`
411
412 # Make sure we have an absolute progpath for reexecution:
413 case $progpath in
414 [\\/]*|[A-Za-z]:\\*) ;;
415 *[\\/]*)
416 progdir=`$ECHO "$progpath" |$SED "$sed_dirname"`
417 progdir=`cd "$progdir" && pwd`
418 progpath=$progdir/$progname
419 ;;
420 *)
421 _G_IFS=$IFS
422 IFS=${PATH_SEPARATOR-:}
423 for progdir in $PATH; do
424 IFS=$_G_IFS
425 test -x "$progdir/$progname" && break
426 done
427 IFS=$_G_IFS
428 test -n "$progdir" || progdir=`pwd`
429 progpath=$progdir/$progname
430 ;;
431 esac
432
433
434 ## ----------------- ##
435 ## Standard options. ##
436 ## ----------------- ##
437
438 # The following options affect the operation of the functions defined
439 # below, and should be set appropriately depending on run-time para-
440 # meters passed on the command line.
441
442 opt_dry_run=false
443 opt_quiet=false
444 opt_verbose=false
445
446 # Categories 'all' and 'none' are always available. Append any others
447 # you will pass as the first argument to func_warning from your own
448 # code.
449 warning_categories=
450
451 # By default, display warnings according to 'opt_warning_types'. Set
452 # 'warning_func' to ':' to elide all warnings, or func_fatal_error to
453 # treat the next displayed warning as a fatal error.
454 warning_func=func_warn_and_continue
455
456 # Set to 'all' to display all warnings, 'none' to suppress all
457 # warnings, or a space delimited list of some subset of
458 # 'warning_categories' to display only the listed warnings.
459 opt_warning_types=all
460
461
462 ## -------------------- ##
463 ## Resource management. ##
464 ## -------------------- ##
465
466 # This section contains definitions for functions that each ensure a
467 # particular resource (a file, or a non-empty configuration variable for
468 # example) is available, and if appropriate to extract default values
469 # from pertinent package files. Call them using their associated
470 # 'require_*' variable to ensure that they are executed, at most, once.
471 #
472 # It's entirely deliberate that calling these functions can set
473 # variables that don't obey the namespace limitations obeyed by the rest
474 # of this file, in order that that they be as useful as possible to
475 # callers.
476
477
478 # require_term_colors
479 # -------------------
480 # Allow display of bold text on terminals that support it.
481 require_term_colors=func_require_term_colors
482 func_require_term_colors ()
483 {
484 $debug_cmd
485
486 test -t 1 && {
487 # COLORTERM and USE_ANSI_COLORS environment variables take
488 # precedence, because most terminfo databases neglect to describe
489 # whether color sequences are supported.
490 test -n "${COLORTERM+set}" && : ${USE_ANSI_COLORS="1"}
491
492 if test 1 = "$USE_ANSI_COLORS"; then
493 # Standard ANSI escape sequences
494 tc_reset=''
495 tc_bold=''; tc_standout=''
496 tc_red=''; tc_green=''
497 tc_blue=''; tc_cyan=''
498 else
499 # Otherwise trust the terminfo database after all.
500 test -n "`tput sgr0 2>/dev/null`" && {
501 tc_reset=`tput sgr0`
502 test -n "`tput bold 2>/dev/null`" && tc_bold=`tput bold`
503 tc_standout=$tc_bold
504 test -n "`tput smso 2>/dev/null`" && tc_standout=`tput smso`
505 test -n "`tput setaf 1 2>/dev/null`" && tc_red=`tput setaf 1`
506 test -n "`tput setaf 2 2>/dev/null`" && tc_green=`tput setaf 2`
507 test -n "`tput setaf 4 2>/dev/null`" && tc_blue=`tput setaf 4`
508 test -n "`tput setaf 5 2>/dev/null`" && tc_cyan=`tput setaf 5`
509 }
510 fi
511 }
512
513 require_term_colors=:
514 }
515
516
517 ## ----------------- ##
518 ## Function library. ##
519 ## ----------------- ##
520
521 # This section contains a variety of useful functions to call in your
522 # scripts. Take note of the portable wrappers for features provided by
523 # some modern shells, which will fall back to slower equivalents on
524 # less featureful shells.
525
526
527 # func_append VAR VALUE
528 # ---------------------
529 # Append VALUE onto the existing contents of VAR.
530
531 # We should try to minimise forks, especially on Windows where they are
532 # unreasonably slow, so skip the feature probes when bash or zsh are
533 # being used:
534 if test set = "${BASH_VERSION+set}${ZSH_VERSION+set}"; then
535 : ${_G_HAVE_ARITH_OP="yes"}
536 : ${_G_HAVE_XSI_OPS="yes"}
537 # The += operator was introduced in bash 3.1
538 case $BASH_VERSION in
539 [12].* | 3.0 | 3.0*) ;;
540 *)
541 : ${_G_HAVE_PLUSEQ_OP="yes"}
542 ;;
543 esac
544 fi
545
546 # _G_HAVE_PLUSEQ_OP
547 # Can be empty, in which case the shell is probed, "yes" if += is
548 # useable or anything else if it does not work.
549 test -z "$_G_HAVE_PLUSEQ_OP" \
550 && (eval 'x=a; x+=" b"; test "a b" = "$x"') 2>/dev/null \
551 && _G_HAVE_PLUSEQ_OP=yes
552
553 if test yes = "$_G_HAVE_PLUSEQ_OP"
554 then
555 # This is an XSI compatible shell, allowing a faster implementation...
556 eval 'func_append ()
557 {
558 $debug_cmd
559
560 eval "$1+=\$2"
561 }'
562 else
563 # ...otherwise fall back to using expr, which is often a shell builtin.
564 func_append ()
565 {
566 $debug_cmd
567
568 eval "$1=\$$1\$2"
569 }
570 fi
571
572
573 # func_append_quoted VAR VALUE
574 # ----------------------------
575 # Quote VALUE and append to the end of shell variable VAR, separated
576 # by a space.
577 if test yes = "$_G_HAVE_PLUSEQ_OP"; then
578 eval 'func_append_quoted ()
579 {
580 $debug_cmd
581
582 func_quote_for_eval "$2"
583 eval "$1+=\\ \$func_quote_for_eval_result"
584 }'
585 else
586 func_append_quoted ()
587 {
588 $debug_cmd
589
590 func_quote_for_eval "$2"
591 eval "$1=\$$1\\ \$func_quote_for_eval_result"
592 }
593 fi
594
595
596 # func_append_uniq VAR VALUE
597 # --------------------------
598 # Append unique VALUE onto the existing contents of VAR, assuming
599 # entries are delimited by the first character of VALUE. For example:
600 #
601 # func_append_uniq options " --another-option option-argument"
602 #
603 # will only append to $options if " --another-option option-argument "
604 # is not already present somewhere in $options already (note spaces at
605 # each end implied by leading space in second argument).
606 func_append_uniq ()
607 {
608 $debug_cmd
609
610 eval _G_current_value='`$ECHO $'$1'`'
611 _G_delim=`expr "$2" : '\(.\)'`
612
613 case $_G_delim$_G_current_value$_G_delim in
614 *"$2$_G_delim"*) ;;
615 *) func_append "$@" ;;
616 esac
617 }
618
619
620 # func_arith TERM...
621 # ------------------
622 # Set func_arith_result to the result of evaluating TERMs.
623 test -z "$_G_HAVE_ARITH_OP" \
624 && (eval 'test 2 = $(( 1 + 1 ))') 2>/dev/null \
625 && _G_HAVE_ARITH_OP=yes
626
627 if test yes = "$_G_HAVE_ARITH_OP"; then
628 eval 'func_arith ()
629 {
630 $debug_cmd
631
632 func_arith_result=$(( $* ))
633 }'
634 else
635 func_arith ()
636 {
637 $debug_cmd
638
639 func_arith_result=`expr "$@"`
640 }
641 fi
642
643
644 # func_basename FILE
645 # ------------------
646 # Set func_basename_result to FILE with everything up to and including
647 # the last / stripped.
648 if test yes = "$_G_HAVE_XSI_OPS"; then
649 # If this shell supports suffix pattern removal, then use it to avoid
650 # forking. Hide the definitions single quotes in case the shell chokes
651 # on unsupported syntax...
652 _b='func_basename_result=${1##*/}'
653 _d='case $1 in
654 */*) func_dirname_result=${1%/*}$2 ;;
655 * ) func_dirname_result=$3 ;;
656 esac'
657
658 else
659 # ...otherwise fall back to using sed.
660 _b='func_basename_result=`$ECHO "$1" |$SED "$sed_basename"`'
661 _d='func_dirname_result=`$ECHO "$1" |$SED "$sed_dirname"`
662 if test "X$func_dirname_result" = "X$1"; then
663 func_dirname_result=$3
664 else
665 func_append func_dirname_result "$2"
666 fi'
667 fi
668
669 eval 'func_basename ()
670 {
671 $debug_cmd
672
673 '"$_b"'
674 }'
675
676
677 # func_dirname FILE APPEND NONDIR_REPLACEMENT
678 # -------------------------------------------
163679 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
164680 # otherwise set result to NONDIR_REPLACEMENT.
165 func_dirname ()
166 {
167 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
168 if test "X$func_dirname_result" = "X${1}"; then
169 func_dirname_result="${3}"
170 else
171 func_dirname_result="$func_dirname_result${2}"
172 fi
173 } # func_dirname may be replaced by extended shell implementation
174
175
176 # func_basename file
177 func_basename ()
178 {
179 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
180 } # func_basename may be replaced by extended shell implementation
181
182
183 # func_dirname_and_basename file append nondir_replacement
184 # perform func_basename and func_dirname in a single function
681 eval 'func_dirname ()
682 {
683 $debug_cmd
684
685 '"$_d"'
686 }'
687
688
689 # func_dirname_and_basename FILE APPEND NONDIR_REPLACEMENT
690 # --------------------------------------------------------
691 # Perform func_basename and func_dirname in a single function
185692 # call:
186693 # dirname: Compute the dirname of FILE. If nonempty,
187694 # add APPEND to the result, otherwise set result
189696 # value returned in "$func_dirname_result"
190697 # basename: Compute filename of FILE.
191698 # value retuned in "$func_basename_result"
192 # Implementation must be kept synchronized with func_dirname
193 # and func_basename. For efficiency, we do not delegate to
194 # those functions but instead duplicate the functionality here.
195 func_dirname_and_basename ()
196 {
197 # Extract subdirectory from the argument.
198 func_dirname_result=`$ECHO "${1}" | $SED -e "$dirname"`
199 if test "X$func_dirname_result" = "X${1}"; then
200 func_dirname_result="${3}"
699 # For efficiency, we do not delegate to the functions above but instead
700 # duplicate the functionality here.
701 eval 'func_dirname_and_basename ()
702 {
703 $debug_cmd
704
705 '"$_b"'
706 '"$_d"'
707 }'
708
709
710 # func_echo ARG...
711 # ----------------
712 # Echo program name prefixed message.
713 func_echo ()
714 {
715 $debug_cmd
716
717 _G_message=$*
718
719 func_echo_IFS=$IFS
720 IFS=$nl
721 for _G_line in $_G_message; do
722 IFS=$func_echo_IFS
723 $ECHO "$progname: $_G_line"
724 done
725 IFS=$func_echo_IFS
726 }
727
728
729 # func_echo_all ARG...
730 # --------------------
731 # Invoke $ECHO with all args, space-separated.
732 func_echo_all ()
733 {
734 $ECHO "$*"
735 }
736
737
738 # func_echo_infix_1 INFIX ARG...
739 # ------------------------------
740 # Echo program name, followed by INFIX on the first line, with any
741 # additional lines not showing INFIX.
742 func_echo_infix_1 ()
743 {
744 $debug_cmd
745
746 $require_term_colors
747
748 _G_infix=$1; shift
749 _G_indent=$_G_infix
750 _G_prefix="$progname: $_G_infix: "
751 _G_message=$*
752
753 # Strip color escape sequences before counting printable length
754 for _G_tc in "$tc_reset" "$tc_bold" "$tc_standout" "$tc_red" "$tc_green" "$tc_blue" "$tc_cyan"
755 do
756 test -n "$_G_tc" && {
757 _G_esc_tc=`$ECHO "$_G_tc" | $SED "$sed_make_literal_regex"`
758 _G_indent=`$ECHO "$_G_indent" | $SED "s|$_G_esc_tc||g"`
759 }
760 done
761 _G_indent="$progname: "`echo "$_G_indent" | $SED 's|.| |g'`" " ## exclude from sc_prohibit_nested_quotes
762
763 func_echo_infix_1_IFS=$IFS
764 IFS=$nl
765 for _G_line in $_G_message; do
766 IFS=$func_echo_infix_1_IFS
767 $ECHO "$_G_prefix$tc_bold$_G_line$tc_reset" >&2
768 _G_prefix=$_G_indent
769 done
770 IFS=$func_echo_infix_1_IFS
771 }
772
773
774 # func_error ARG...
775 # -----------------
776 # Echo program name prefixed message to standard error.
777 func_error ()
778 {
779 $debug_cmd
780
781 $require_term_colors
782
783 func_echo_infix_1 " $tc_standout${tc_red}error$tc_reset" "$*" >&2
784 }
785
786
787 # func_fatal_error ARG...
788 # -----------------------
789 # Echo program name prefixed message to standard error, and exit.
790 func_fatal_error ()
791 {
792 $debug_cmd
793
794 func_error "$*"
795 exit $EXIT_FAILURE
796 }
797
798
799 # func_grep EXPRESSION FILENAME
800 # -----------------------------
801 # Check whether EXPRESSION matches any line of FILENAME, without output.
802 func_grep ()
803 {
804 $debug_cmd
805
806 $GREP "$1" "$2" >/dev/null 2>&1
807 }
808
809
810 # func_len STRING
811 # ---------------
812 # Set func_len_result to the length of STRING. STRING may not
813 # start with a hyphen.
814 test -z "$_G_HAVE_XSI_OPS" \
815 && (eval 'x=a/b/c;
816 test 5aa/bb/cc = "${#x}${x%%/*}${x%/*}${x#*/}${x##*/}"') 2>/dev/null \
817 && _G_HAVE_XSI_OPS=yes
818
819 if test yes = "$_G_HAVE_XSI_OPS"; then
820 eval 'func_len ()
821 {
822 $debug_cmd
823
824 func_len_result=${#1}
825 }'
826 else
827 func_len ()
828 {
829 $debug_cmd
830
831 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
832 }
833 fi
834
835
836 # func_mkdir_p DIRECTORY-PATH
837 # ---------------------------
838 # Make sure the entire path to DIRECTORY-PATH is available.
839 func_mkdir_p ()
840 {
841 $debug_cmd
842
843 _G_directory_path=$1
844 _G_dir_list=
845
846 if test -n "$_G_directory_path" && test : != "$opt_dry_run"; then
847
848 # Protect directory names starting with '-'
849 case $_G_directory_path in
850 -*) _G_directory_path=./$_G_directory_path ;;
851 esac
852
853 # While some portion of DIR does not yet exist...
854 while test ! -d "$_G_directory_path"; do
855 # ...make a list in topmost first order. Use a colon delimited
856 # list incase some portion of path contains whitespace.
857 _G_dir_list=$_G_directory_path:$_G_dir_list
858
859 # If the last portion added has no slash in it, the list is done
860 case $_G_directory_path in */*) ;; *) break ;; esac
861
862 # ...otherwise throw away the child directory and loop
863 _G_directory_path=`$ECHO "$_G_directory_path" | $SED -e "$sed_dirname"`
864 done
865 _G_dir_list=`$ECHO "$_G_dir_list" | $SED 's|:*$||'`
866
867 func_mkdir_p_IFS=$IFS; IFS=:
868 for _G_dir in $_G_dir_list; do
869 IFS=$func_mkdir_p_IFS
870 # mkdir can fail with a 'File exist' error if two processes
871 # try to create one of the directories concurrently. Don't
872 # stop in that case!
873 $MKDIR "$_G_dir" 2>/dev/null || :
874 done
875 IFS=$func_mkdir_p_IFS
876
877 # Bail out if we (or some other process) failed to create a directory.
878 test -d "$_G_directory_path" || \
879 func_fatal_error "Failed to create '$1'"
880 fi
881 }
882
883
884 # func_mktempdir [BASENAME]
885 # -------------------------
886 # Make a temporary directory that won't clash with other running
887 # libtool processes, and avoids race conditions if possible. If
888 # given, BASENAME is the basename for that directory.
889 func_mktempdir ()
890 {
891 $debug_cmd
892
893 _G_template=${TMPDIR-/tmp}/${1-$progname}
894
895 if test : = "$opt_dry_run"; then
896 # Return a directory name, but don't create it in dry-run mode
897 _G_tmpdir=$_G_template-$$
201898 else
202 func_dirname_result="$func_dirname_result${2}"
899
900 # If mktemp works, use that first and foremost
901 _G_tmpdir=`mktemp -d "$_G_template-XXXXXXXX" 2>/dev/null`
902
903 if test ! -d "$_G_tmpdir"; then
904 # Failing that, at least try and use $RANDOM to avoid a race
905 _G_tmpdir=$_G_template-${RANDOM-0}$$
906
907 func_mktempdir_umask=`umask`
908 umask 0077
909 $MKDIR "$_G_tmpdir"
910 umask $func_mktempdir_umask
911 fi
912
913 # If we're not in dry-run mode, bomb out on failure
914 test -d "$_G_tmpdir" || \
915 func_fatal_error "cannot create temporary directory '$_G_tmpdir'"
203916 fi
204 func_basename_result=`$ECHO "${1}" | $SED -e "$basename"`
205 } # func_dirname_and_basename may be replaced by extended shell implementation
206
207
208 # func_stripname prefix suffix name
209 # strip PREFIX and SUFFIX off of NAME.
210 # PREFIX and SUFFIX must not contain globbing or regex special
211 # characters, hashes, percent signs, but SUFFIX may contain a leading
212 # dot (in which case that matches only a dot).
213 # func_strip_suffix prefix name
214 func_stripname ()
215 {
216 case ${2} in
217 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
218 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
219 esac
220 } # func_stripname may be replaced by extended shell implementation
221
222
223 # These SED scripts presuppose an absolute path with a trailing slash.
224 pathcar='s,^/\([^/]*\).*$,\1,'
225 pathcdr='s,^/[^/]*,,'
226 removedotparts=':dotsl
227 s@/\./@/@g
228 t dotsl
229 s,/\.$,/,'
230 collapseslashes='s@/\{1,\}@/@g'
231 finalslash='s,/*$,/,'
917
918 $ECHO "$_G_tmpdir"
919 }
920
232921
233922 # func_normal_abspath PATH
923 # ------------------------
234924 # Remove doubled-up and trailing slashes, "." path components,
235925 # and cancel out any ".." path components in PATH after making
236926 # it an absolute path.
237 # value returned in "$func_normal_abspath_result"
238927 func_normal_abspath ()
239928 {
240 # Start from root dir and reassemble the path.
241 func_normal_abspath_result=
242 func_normal_abspath_tpath=$1
243 func_normal_abspath_altnamespace=
244 case $func_normal_abspath_tpath in
245 "")
246 # Empty path, that just means $cwd.
247 func_stripname '' '/' "`pwd`"
248 func_normal_abspath_result=$func_stripname_result
249 return
250 ;;
251 # The next three entries are used to spot a run of precisely
252 # two leading slashes without using negated character classes;
253 # we take advantage of case's first-match behaviour.
254 ///*)
255 # Unusual form of absolute path, do nothing.
256 ;;
257 //*)
258 # Not necessarily an ordinary path; POSIX reserves leading '//'
259 # and for example Cygwin uses it to access remote file shares
260 # over CIFS/SMB, so we conserve a leading double slash if found.
261 func_normal_abspath_altnamespace=/
262 ;;
263 /*)
264 # Absolute path, do nothing.
265 ;;
266 *)
267 # Relative path, prepend $cwd.
268 func_normal_abspath_tpath=`pwd`/$func_normal_abspath_tpath
269 ;;
270 esac
271 # Cancel out all the simple stuff to save iterations. We also want
272 # the path to end with a slash for ease of parsing, so make sure
273 # there is one (and only one) here.
274 func_normal_abspath_tpath=`$ECHO "$func_normal_abspath_tpath" | $SED \
275 -e "$removedotparts" -e "$collapseslashes" -e "$finalslash"`
276 while :; do
277 # Processed it all yet?
278 if test "$func_normal_abspath_tpath" = / ; then
279 # If we ascended to the root using ".." the result may be empty now.
280 if test -z "$func_normal_abspath_result" ; then
281 func_normal_abspath_result=/
282 fi
283 break
284 fi
285 func_normal_abspath_tcomponent=`$ECHO "$func_normal_abspath_tpath" | $SED \
286 -e "$pathcar"`
929 $debug_cmd
930
931 # These SED scripts presuppose an absolute path with a trailing slash.
932 _G_pathcar='s|^/\([^/]*\).*$|\1|'
933 _G_pathcdr='s|^/[^/]*||'
934 _G_removedotparts=':dotsl
935 s|/\./|/|g
936 t dotsl
937 s|/\.$|/|'
938 _G_collapseslashes='s|/\{1,\}|/|g'
939 _G_finalslash='s|/*$|/|'
940
941 # Start from root dir and reassemble the path.
942 func_normal_abspath_result=
943 func_normal_abspath_tpath=$1
944 func_normal_abspath_altnamespace=
945 case $func_normal_abspath_tpath in
946 "")
947 # Empty path, that just means $cwd.
948 func_stripname '' '/' "`pwd`"
949 func_normal_abspath_result=$func_stripname_result
950 return
951 ;;
952 # The next three entries are used to spot a run of precisely
953 # two leading slashes without using negated character classes;
954 # we take advantage of case's first-match behaviour.
955 ///*)
956 # Unusual form of absolute path, do nothing.
957 ;;
958 //*)
959 # Not necessarily an ordinary path; POSIX reserves leading '//'
960 # and for example Cygwin uses it to access remote file shares
961 # over CIFS/SMB, so we conserve a leading double slash if found.
962 func_normal_abspath_altnamespace=/
963 ;;
964 /*)
965 # Absolute path, do nothing.
966 ;;
967 *)
968 # Relative path, prepend $cwd.
969 func_normal_abspath_tpath=`pwd`/$func_normal_abspath_tpath
970 ;;
971 esac
972
973 # Cancel out all the simple stuff to save iterations. We also want
974 # the path to end with a slash for ease of parsing, so make sure
975 # there is one (and only one) here.
287976 func_normal_abspath_tpath=`$ECHO "$func_normal_abspath_tpath" | $SED \
288 -e "$pathcdr"`
289 # Figure out what to do with it
290 case $func_normal_abspath_tcomponent in
291 "")
292 # Trailing empty path component, ignore it.
293 ;;
294 ..)
295 # Parent dir; strip last assembled component from result.
296 func_dirname "$func_normal_abspath_result"
297 func_normal_abspath_result=$func_dirname_result
298 ;;
299 *)
300 # Actual path component, append it.
301 func_normal_abspath_result=$func_normal_abspath_result/$func_normal_abspath_tcomponent
302 ;;
303 esac
304 done
305 # Restore leading double-slash if one was found on entry.
306 func_normal_abspath_result=$func_normal_abspath_altnamespace$func_normal_abspath_result
307 }
308
309 # func_relative_path SRCDIR DSTDIR
310 # generates a relative path from SRCDIR to DSTDIR, with a trailing
311 # slash if non-empty, suitable for immediately appending a filename
312 # without needing to append a separator.
313 # value returned in "$func_relative_path_result"
314 func_relative_path ()
315 {
316 func_relative_path_result=
317 func_normal_abspath "$1"
318 func_relative_path_tlibdir=$func_normal_abspath_result
319 func_normal_abspath "$2"
320 func_relative_path_tbindir=$func_normal_abspath_result
321
322 # Ascend the tree starting from libdir
323 while :; do
324 # check if we have found a prefix of bindir
325 case $func_relative_path_tbindir in
326 $func_relative_path_tlibdir)
327 # found an exact match
328 func_relative_path_tcancelled=
329 break
330 ;;
331 $func_relative_path_tlibdir*)
332 # found a matching prefix
333 func_stripname "$func_relative_path_tlibdir" '' "$func_relative_path_tbindir"
334 func_relative_path_tcancelled=$func_stripname_result
335 if test -z "$func_relative_path_result"; then
336 func_relative_path_result=.
977 -e "$_G_removedotparts" -e "$_G_collapseslashes" -e "$_G_finalslash"`
978 while :; do
979 # Processed it all yet?
980 if test / = "$func_normal_abspath_tpath"; then
981 # If we ascended to the root using ".." the result may be empty now.
982 if test -z "$func_normal_abspath_result"; then
983 func_normal_abspath_result=/
337984 fi
338985 break
339 ;;
340 *)
341 func_dirname $func_relative_path_tlibdir
342 func_relative_path_tlibdir=${func_dirname_result}
343 if test "x$func_relative_path_tlibdir" = x ; then
344 # Have to descend all the way to the root!
345 func_relative_path_result=../$func_relative_path_result
346 func_relative_path_tcancelled=$func_relative_path_tbindir
347 break
348 fi
349 func_relative_path_result=../$func_relative_path_result
350 ;;
351 esac
352 done
353
354 # Now calculate path; take care to avoid doubling-up slashes.
355 func_stripname '' '/' "$func_relative_path_result"
356 func_relative_path_result=$func_stripname_result
357 func_stripname '/' '/' "$func_relative_path_tcancelled"
358 if test "x$func_stripname_result" != x ; then
359 func_relative_path_result=${func_relative_path_result}/${func_stripname_result}
360 fi
361
362 # Normalisation. If bindir is libdir, return empty string,
363 # else relative path ending with a slash; either way, target
364 # file name can be directly appended.
365 if test ! -z "$func_relative_path_result"; then
366 func_stripname './' '' "$func_relative_path_result/"
367 func_relative_path_result=$func_stripname_result
368 fi
369 }
370
371 # The name of this program:
372 func_dirname_and_basename "$progpath"
373 progname=$func_basename_result
374
375 # Make sure we have an absolute path for reexecution:
376 case $progpath in
377 [\\/]*|[A-Za-z]:\\*) ;;
378 *[\\/]*)
379 progdir=$func_dirname_result
380 progdir=`cd "$progdir" && pwd`
381 progpath="$progdir/$progname"
382 ;;
383 *)
384 save_IFS="$IFS"
385 IFS=${PATH_SEPARATOR-:}
386 for progdir in $PATH; do
387 IFS="$save_IFS"
388 test -x "$progdir/$progname" && break
389 done
390 IFS="$save_IFS"
391 test -n "$progdir" || progdir=`pwd`
392 progpath="$progdir/$progname"
393 ;;
394 esac
395
396 # Sed substitution that helps us do robust quoting. It backslashifies
397 # metacharacters that are still active within double-quoted strings.
398 Xsed="${SED}"' -e 1s/^X//'
399 sed_quote_subst='s/\([`"$\\]\)/\\\1/g'
400
401 # Same as above, but do not quote variable references.
402 double_quote_subst='s/\(["`\\]\)/\\\1/g'
403
404 # Sed substitution that turns a string into a regex matching for the
405 # string literally.
406 sed_make_literal_regex='s,[].[^$\\*\/],\\&,g'
407
408 # Sed substitution that converts a w32 file name or path
409 # which contains forward slashes, into one that contains
410 # (escaped) backslashes. A very naive implementation.
411 lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
412
413 # Re-`\' parameter expansions in output of double_quote_subst that were
414 # `\'-ed in input to the same. If an odd number of `\' preceded a '$'
415 # in input to double_quote_subst, that '$' was protected from expansion.
416 # Since each input `\' is now two `\'s, look for any number of runs of
417 # four `\'s followed by two `\'s and then a '$'. `\' that '$'.
418 bs='\\'
419 bs2='\\\\'
420 bs4='\\\\\\\\'
421 dollar='\$'
422 sed_double_backslash="\
423 s/$bs4/&\\
424 /g
425 s/^$bs2$dollar/$bs&/
426 s/\\([^$bs]\\)$bs2$dollar/\\1$bs2$bs$dollar/g
427 s/\n//g"
428
429 # Standard options:
430 opt_dry_run=false
431 opt_help=false
432 opt_quiet=false
433 opt_verbose=false
434 opt_warning=:
435
436 # func_echo arg...
437 # Echo program name prefixed message, along with the current mode
438 # name if it has been set yet.
439 func_echo ()
440 {
441 $ECHO "$progname: ${opt_mode+$opt_mode: }$*"
442 }
443
444 # func_verbose arg...
445 # Echo program name prefixed message in verbose mode only.
446 func_verbose ()
447 {
448 $opt_verbose && func_echo ${1+"$@"}
986 fi
987 func_normal_abspath_tcomponent=`$ECHO "$func_normal_abspath_tpath" | $SED \
988 -e "$_G_pathcar"`
989 func_normal_abspath_tpath=`$ECHO "$func_normal_abspath_tpath" | $SED \
990 -e "$_G_pathcdr"`
991 # Figure out what to do with it
992 case $func_normal_abspath_tcomponent in
993 "")
994 # Trailing empty path component, ignore it.
995 ;;
996 ..)
997 # Parent dir; strip last assembled component from result.
998 func_dirname "$func_normal_abspath_result"
999 func_normal_abspath_result=$func_dirname_result
1000 ;;
1001 *)
1002 # Actual path component, append it.
1003 func_append func_normal_abspath_result "/$func_normal_abspath_tcomponent"
1004 ;;
1005 esac
1006 done
1007 # Restore leading double-slash if one was found on entry.
1008 func_normal_abspath_result=$func_normal_abspath_altnamespace$func_normal_abspath_result
1009 }
1010
1011
1012 # func_notquiet ARG...
1013 # --------------------
1014 # Echo program name prefixed message only when not in quiet mode.
1015 func_notquiet ()
1016 {
1017 $debug_cmd
1018
1019 $opt_quiet || func_echo ${1+"$@"}
4491020
4501021 # A bug in bash halts the script if the last line of a function
4511022 # fails when set -e is in force, so we need another command to
4531024 :
4541025 }
4551026
456 # func_echo_all arg...
457 # Invoke $ECHO with all args, space-separated.
458 func_echo_all ()
459 {
460 $ECHO "$*"
461 }
462
463 # func_error arg...
464 # Echo program name prefixed message to standard error.
465 func_error ()
466 {
467 $ECHO "$progname: ${opt_mode+$opt_mode: }"${1+"$@"} 1>&2
468 }
469
470 # func_warning arg...
471 # Echo program name prefixed warning message to standard error.
472 func_warning ()
473 {
474 $opt_warning && $ECHO "$progname: ${opt_mode+$opt_mode: }warning: "${1+"$@"} 1>&2
475
476 # bash bug again:
1027
1028 # func_relative_path SRCDIR DSTDIR
1029 # --------------------------------
1030 # Set func_relative_path_result to the relative path from SRCDIR to DSTDIR.
1031 func_relative_path ()
1032 {
1033 $debug_cmd
1034
1035 func_relative_path_result=
1036 func_normal_abspath "$1"
1037 func_relative_path_tlibdir=$func_normal_abspath_result
1038 func_normal_abspath "$2"
1039 func_relative_path_tbindir=$func_normal_abspath_result
1040
1041 # Ascend the tree starting from libdir
1042 while :; do
1043 # check if we have found a prefix of bindir
1044 case $func_relative_path_tbindir in
1045 $func_relative_path_tlibdir)
1046 # found an exact match
1047 func_relative_path_tcancelled=
1048 break
1049 ;;
1050 $func_relative_path_tlibdir*)
1051 # found a matching prefix
1052 func_stripname "$func_relative_path_tlibdir" '' "$func_relative_path_tbindir"
1053 func_relative_path_tcancelled=$func_stripname_result
1054 if test -z "$func_relative_path_result"; then
1055 func_relative_path_result=.
1056 fi
1057 break
1058 ;;
1059 *)
1060 func_dirname $func_relative_path_tlibdir
1061 func_relative_path_tlibdir=$func_dirname_result
1062 if test -z "$func_relative_path_tlibdir"; then
1063 # Have to descend all the way to the root!
1064 func_relative_path_result=../$func_relative_path_result
1065 func_relative_path_tcancelled=$func_relative_path_tbindir
1066 break
1067 fi
1068 func_relative_path_result=../$func_relative_path_result
1069 ;;
1070 esac
1071 done
1072
1073 # Now calculate path; take care to avoid doubling-up slashes.
1074 func_stripname '' '/' "$func_relative_path_result"
1075 func_relative_path_result=$func_stripname_result
1076 func_stripname '/' '/' "$func_relative_path_tcancelled"
1077 if test -n "$func_stripname_result"; then
1078 func_append func_relative_path_result "/$func_stripname_result"
1079 fi
1080
1081 # Normalisation. If bindir is libdir, return '.' else relative path.
1082 if test -n "$func_relative_path_result"; then
1083 func_stripname './' '' "$func_relative_path_result"
1084 func_relative_path_result=$func_stripname_result
1085 fi
1086
1087 test -n "$func_relative_path_result" || func_relative_path_result=.
1088
4771089 :
4781090 }
4791091
480 # func_fatal_error arg...
481 # Echo program name prefixed message to standard error, and exit.
482 func_fatal_error ()
483 {
484 func_error ${1+"$@"}
485 exit $EXIT_FAILURE
486 }
487
488 # func_fatal_help arg...
489 # Echo program name prefixed message to standard error, followed by
490 # a help hint, and exit.
491 func_fatal_help ()
492 {
493 func_error ${1+"$@"}
494 func_fatal_error "$help"
495 }
496 help="Try \`$progname --help' for more information." ## default
497
498
499 # func_grep expression filename
500 # Check whether EXPRESSION matches any line of FILENAME, without output.
501 func_grep ()
502 {
503 $GREP "$1" "$2" >/dev/null 2>&1
504 }
505
506
507 # func_mkdir_p directory-path
508 # Make sure the entire path to DIRECTORY-PATH is available.
509 func_mkdir_p ()
510 {
511 my_directory_path="$1"
512 my_dir_list=
513
514 if test -n "$my_directory_path" && test "$opt_dry_run" != ":"; then
515
516 # Protect directory names starting with `-'
517 case $my_directory_path in
518 -*) my_directory_path="./$my_directory_path" ;;
1092
1093 # func_quote_for_eval ARG...
1094 # --------------------------
1095 # Aesthetically quote ARGs to be evaled later.
1096 # This function returns two values:
1097 # i) func_quote_for_eval_result
1098 # double-quoted, suitable for a subsequent eval
1099 # ii) func_quote_for_eval_unquoted_result
1100 # has all characters that are still active within double
1101 # quotes backslashified.
1102 func_quote_for_eval ()
1103 {
1104 $debug_cmd
1105
1106 func_quote_for_eval_unquoted_result=
1107 func_quote_for_eval_result=
1108 while test 0 -lt $#; do
1109 case $1 in
1110 *[\\\`\"\$]*)
1111 _G_unquoted_arg=`printf '%s\n' "$1" |$SED "$sed_quote_subst"` ;;
1112 *)
1113 _G_unquoted_arg=$1 ;;
5191114 esac
520
521 # While some portion of DIR does not yet exist...
522 while test ! -d "$my_directory_path"; do
523 # ...make a list in topmost first order. Use a colon delimited
524 # list incase some portion of path contains whitespace.
525 my_dir_list="$my_directory_path:$my_dir_list"
526
527 # If the last portion added has no slash in it, the list is done
528 case $my_directory_path in */*) ;; *) break ;; esac
529
530 # ...otherwise throw away the child directory and loop
531 my_directory_path=`$ECHO "$my_directory_path" | $SED -e "$dirname"`
532 done
533 my_dir_list=`$ECHO "$my_dir_list" | $SED 's,:*$,,'`
534
535 save_mkdir_p_IFS="$IFS"; IFS=':'
536 for my_dir in $my_dir_list; do
537 IFS="$save_mkdir_p_IFS"
538 # mkdir can fail with a `File exist' error if two processes
539 # try to create one of the directories concurrently. Don't
540 # stop in that case!
541 $MKDIR "$my_dir" 2>/dev/null || :
542 done
543 IFS="$save_mkdir_p_IFS"
544
545 # Bail out if we (or some other process) failed to create a directory.
546 test -d "$my_directory_path" || \
547 func_fatal_error "Failed to create \`$1'"
548 fi
549 }
550
551
552 # func_mktempdir [string]
553 # Make a temporary directory that won't clash with other running
554 # libtool processes, and avoids race conditions if possible. If
555 # given, STRING is the basename for that directory.
556 func_mktempdir ()
557 {
558 my_template="${TMPDIR-/tmp}/${1-$progname}"
559
560 if test "$opt_dry_run" = ":"; then
561 # Return a directory name, but don't create it in dry-run mode
562 my_tmpdir="${my_template}-$$"
563 else
564
565 # If mktemp works, use that first and foremost
566 my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null`
567
568 if test ! -d "$my_tmpdir"; then
569 # Failing that, at least try and use $RANDOM to avoid a race
570 my_tmpdir="${my_template}-${RANDOM-0}$$"
571
572 save_mktempdir_umask=`umask`
573 umask 0077
574 $MKDIR "$my_tmpdir"
575 umask $save_mktempdir_umask
1115 if test -n "$func_quote_for_eval_unquoted_result"; then
1116 func_append func_quote_for_eval_unquoted_result " $_G_unquoted_arg"
1117 else
1118 func_append func_quote_for_eval_unquoted_result "$_G_unquoted_arg"
5761119 fi
5771120
578 # If we're not in dry-run mode, bomb out on failure
579 test -d "$my_tmpdir" || \
580 func_fatal_error "cannot create temporary directory \`$my_tmpdir'"
581 fi
582
583 $ECHO "$my_tmpdir"
584 }
585
586
587 # func_quote_for_eval arg
588 # Aesthetically quote ARG to be evaled later.
589 # This function returns two values: FUNC_QUOTE_FOR_EVAL_RESULT
590 # is double-quoted, suitable for a subsequent eval, whereas
591 # FUNC_QUOTE_FOR_EVAL_UNQUOTED_RESULT has merely all characters
592 # which are still active within double quotes backslashified.
593 func_quote_for_eval ()
594 {
595 case $1 in
596 *[\\\`\"\$]*)
597 func_quote_for_eval_unquoted_result=`$ECHO "$1" | $SED "$sed_quote_subst"` ;;
598 *)
599 func_quote_for_eval_unquoted_result="$1" ;;
600 esac
601
602 case $func_quote_for_eval_unquoted_result in
603 # Double-quote args containing shell metacharacters to delay
604 # word splitting, command substitution and and variable
605 # expansion for a subsequent eval.
606 # Many Bourne shells cannot handle close brackets correctly
607 # in scan sets, so we specify it separately.
608 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
609 func_quote_for_eval_result="\"$func_quote_for_eval_unquoted_result\""
610 ;;
611 *)
612 func_quote_for_eval_result="$func_quote_for_eval_unquoted_result"
613 esac
614 }
615
616
617 # func_quote_for_expand arg
1121 case $_G_unquoted_arg in
1122 # Double-quote args containing shell metacharacters to delay
1123 # word splitting, command substitution and variable expansion
1124 # for a subsequent eval.
1125 # Many Bourne shells cannot handle close brackets correctly
1126 # in scan sets, so we specify it separately.
1127 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
1128 _G_quoted_arg=\"$_G_unquoted_arg\"
1129 ;;
1130 *)
1131 _G_quoted_arg=$_G_unquoted_arg
1132 ;;
1133 esac
1134
1135 if test -n "$func_quote_for_eval_result"; then
1136 func_append func_quote_for_eval_result " $_G_quoted_arg"
1137 else
1138 func_append func_quote_for_eval_result "$_G_quoted_arg"
1139 fi
1140 shift
1141 done
1142 }
1143
1144
1145 # func_quote_for_expand ARG
1146 # -------------------------
6181147 # Aesthetically quote ARG to be evaled later; same as above,
6191148 # but do not quote variable references.
6201149 func_quote_for_expand ()
6211150 {
1151 $debug_cmd
1152
6221153 case $1 in
6231154 *[\\\`\"]*)
624 my_arg=`$ECHO "$1" | $SED \
625 -e "$double_quote_subst" -e "$sed_double_backslash"` ;;
1155 _G_arg=`$ECHO "$1" | $SED \
1156 -e "$sed_double_quote_subst" -e "$sed_double_backslash"` ;;
6261157 *)
627 my_arg="$1" ;;
1158 _G_arg=$1 ;;
6281159 esac
6291160
630 case $my_arg in
1161 case $_G_arg in
6311162 # Double-quote args containing shell metacharacters to delay
6321163 # word splitting and command substitution for a subsequent eval.
6331164 # Many Bourne shells cannot handle close brackets correctly
6341165 # in scan sets, so we specify it separately.
6351166 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
636 my_arg="\"$my_arg\""
1167 _G_arg=\"$_G_arg\"
6371168 ;;
6381169 esac
6391170
640 func_quote_for_expand_result="$my_arg"
641 }
642
643
644 # func_show_eval cmd [fail_exp]
645 # Unless opt_silent is true, then output CMD. Then, if opt_dryrun is
1171 func_quote_for_expand_result=$_G_arg
1172 }
1173
1174
1175 # func_stripname PREFIX SUFFIX NAME
1176 # ---------------------------------
1177 # strip PREFIX and SUFFIX from NAME, and store in func_stripname_result.
1178 # PREFIX and SUFFIX must not contain globbing or regex special
1179 # characters, hashes, percent signs, but SUFFIX may contain a leading
1180 # dot (in which case that matches only a dot).
1181 if test yes = "$_G_HAVE_XSI_OPS"; then
1182 eval 'func_stripname ()
1183 {
1184 $debug_cmd
1185
1186 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
1187 # positional parameters, so assign one to ordinary variable first.
1188 func_stripname_result=$3
1189 func_stripname_result=${func_stripname_result#"$1"}
1190 func_stripname_result=${func_stripname_result%"$2"}
1191 }'
1192 else
1193 func_stripname ()
1194 {
1195 $debug_cmd
1196
1197 case $2 in
1198 .*) func_stripname_result=`$ECHO "$3" | $SED -e "s%^$1%%" -e "s%\\\\$2\$%%"`;;
1199 *) func_stripname_result=`$ECHO "$3" | $SED -e "s%^$1%%" -e "s%$2\$%%"`;;
1200 esac
1201 }
1202 fi
1203
1204
1205 # func_show_eval CMD [FAIL_EXP]
1206 # -----------------------------
1207 # Unless opt_quiet is true, then output CMD. Then, if opt_dryrun is
6461208 # not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP
6471209 # is given, then evaluate it.
6481210 func_show_eval ()
6491211 {
650 my_cmd="$1"
651 my_fail_exp="${2-:}"
652
653 ${opt_silent-false} || {
654 func_quote_for_expand "$my_cmd"
655 eval "func_echo $func_quote_for_expand_result"
1212 $debug_cmd
1213
1214 _G_cmd=$1
1215 _G_fail_exp=${2-':'}
1216
1217 func_quote_for_expand "$_G_cmd"
1218 eval "func_notquiet $func_quote_for_expand_result"
1219
1220 $opt_dry_run || {
1221 eval "$_G_cmd"
1222 _G_status=$?
1223 if test 0 -ne "$_G_status"; then
1224 eval "(exit $_G_status); $_G_fail_exp"
1225 fi
6561226 }
657
658 if ${opt_dry_run-false}; then :; else
659 eval "$my_cmd"
660 my_status=$?
661 if test "$my_status" -eq 0; then :; else
662 eval "(exit $my_status); $my_fail_exp"
663 fi
664 fi
665 }
666
667
668 # func_show_eval_locale cmd [fail_exp]
669 # Unless opt_silent is true, then output CMD. Then, if opt_dryrun is
1227 }
1228
1229
1230 # func_show_eval_locale CMD [FAIL_EXP]
1231 # ------------------------------------
1232 # Unless opt_quiet is true, then output CMD. Then, if opt_dryrun is
6701233 # not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP
6711234 # is given, then evaluate it. Use the saved locale for evaluation.
6721235 func_show_eval_locale ()
6731236 {
674 my_cmd="$1"
675 my_fail_exp="${2-:}"
676
677 ${opt_silent-false} || {
678 func_quote_for_expand "$my_cmd"
1237 $debug_cmd
1238
1239 _G_cmd=$1
1240 _G_fail_exp=${2-':'}
1241
1242 $opt_quiet || {
1243 func_quote_for_expand "$_G_cmd"
6791244 eval "func_echo $func_quote_for_expand_result"
6801245 }
6811246
682 if ${opt_dry_run-false}; then :; else
683 eval "$lt_user_locale
684 $my_cmd"
685 my_status=$?
686 eval "$lt_safe_locale"
687 if test "$my_status" -eq 0; then :; else
688 eval "(exit $my_status); $my_fail_exp"
1247 $opt_dry_run || {
1248 eval "$_G_user_locale
1249 $_G_cmd"
1250 _G_status=$?
1251 eval "$_G_safe_locale"
1252 if test 0 -ne "$_G_status"; then
1253 eval "(exit $_G_status); $_G_fail_exp"
6891254 fi
690 fi
691 }
1255 }
1256 }
1257
6921258
6931259 # func_tr_sh
1260 # ----------
6941261 # Turn $1 into a string suitable for a shell variable name.
6951262 # Result is stored in $func_tr_sh_result. All characters
6961263 # not in the set a-zA-Z0-9_ are replaced with '_'. Further,
6971264 # if $1 begins with a digit, a '_' is prepended as well.
6981265 func_tr_sh ()
6991266 {
700 case $1 in
701 [0-9]* | *[!a-zA-Z0-9_]*)
702 func_tr_sh_result=`$ECHO "$1" | $SED 's/^\([0-9]\)/_\1/; s/[^a-zA-Z0-9_]/_/g'`
703 ;;
704 * )
705 func_tr_sh_result=$1
706 ;;
707 esac
708 }
709
710
711 # func_version
712 # Echo version message to standard output and exit.
713 func_version ()
714 {
715 $opt_debug
716
717 $SED -n '/(C)/!b go
718 :more
719 /\./!{
720 N
721 s/\n# / /
722 b more
723 }
724 :go
725 /^# '$PROGRAM' (GNU /,/# warranty; / {
726 s/^# //
727 s/^# *$//
728 s/\((C)\)[ 0-9,-]*\( [1-9][0-9]*\)/\1\2/
729 p
730 }' < "$progpath"
731 exit $?
732 }
733
734 # func_usage
735 # Echo short help message to standard output and exit.
736 func_usage ()
737 {
738 $opt_debug
739
740 $SED -n '/^# Usage:/,/^# *.*--help/ {
741 s/^# //
742 s/^# *$//
743 s/\$progname/'$progname'/
744 p
745 }' < "$progpath"
746 echo
747 $ECHO "run \`$progname --help | more' for full usage"
748 exit $?
749 }
750
751 # func_help [NOEXIT]
752 # Echo long help message to standard output and exit,
753 # unless 'noexit' is passed as argument.
1267 $debug_cmd
1268
1269 case $1 in
1270 [0-9]* | *[!a-zA-Z0-9_]*)
1271 func_tr_sh_result=`$ECHO "$1" | $SED -e 's/^\([0-9]\)/_\1/' -e 's/[^a-zA-Z0-9_]/_/g'`
1272 ;;
1273 * )
1274 func_tr_sh_result=$1
1275 ;;
1276 esac
1277 }
1278
1279
1280 # func_verbose ARG...
1281 # -------------------
1282 # Echo program name prefixed message in verbose mode only.
1283 func_verbose ()
1284 {
1285 $debug_cmd
1286
1287 $opt_verbose && func_echo "$*"
1288
1289 :
1290 }
1291
1292
1293 # func_warn_and_continue ARG...
1294 # -----------------------------
1295 # Echo program name prefixed warning message to standard error.
1296 func_warn_and_continue ()
1297 {
1298 $debug_cmd
1299
1300 $require_term_colors
1301
1302 func_echo_infix_1 "${tc_red}warning$tc_reset" "$*" >&2
1303 }
1304
1305
1306 # func_warning CATEGORY ARG...
1307 # ----------------------------
1308 # Echo program name prefixed warning message to standard error. Warning
1309 # messages can be filtered according to CATEGORY, where this function
1310 # elides messages where CATEGORY is not listed in the global variable
1311 # 'opt_warning_types'.
1312 func_warning ()
1313 {
1314 $debug_cmd
1315
1316 # CATEGORY must be in the warning_categories list!
1317 case " $warning_categories " in
1318 *" $1 "*) ;;
1319 *) func_internal_error "invalid warning category '$1'" ;;
1320 esac
1321
1322 _G_category=$1
1323 shift
1324
1325 case " $opt_warning_types " in
1326 *" $_G_category "*) $warning_func ${1+"$@"} ;;
1327 esac
1328 }
1329
1330
1331 # func_sort_ver VER1 VER2
1332 # -----------------------
1333 # 'sort -V' is not generally available.
1334 # Note this deviates from the version comparison in automake
1335 # in that it treats 1.5 < 1.5.0, and treats 1.4.4a < 1.4-p3a
1336 # but this should suffice as we won't be specifying old
1337 # version formats or redundant trailing .0 in bootstrap.conf.
1338 # If we did want full compatibility then we should probably
1339 # use m4_version_compare from autoconf.
1340 func_sort_ver ()
1341 {
1342 $debug_cmd
1343
1344 printf '%s\n%s\n' "$1" "$2" \
1345 | sort -t. -k 1,1n -k 2,2n -k 3,3n -k 4,4n -k 5,5n -k 6,6n -k 7,7n -k 8,8n -k 9,9n
1346 }
1347
1348 # func_lt_ver PREV CURR
1349 # ---------------------
1350 # Return true if PREV and CURR are in the correct order according to
1351 # func_sort_ver, otherwise false. Use it like this:
1352 #
1353 # func_lt_ver "$prev_ver" "$proposed_ver" || func_fatal_error "..."
1354 func_lt_ver ()
1355 {
1356 $debug_cmd
1357
1358 test "x$1" = x`func_sort_ver "$1" "$2" | $SED 1q`
1359 }
1360
1361
1362 # Local variables:
1363 # mode: shell-script
1364 # sh-indentation: 2
1365 # eval: (add-hook 'before-save-hook 'time-stamp)
1366 # time-stamp-pattern: "10/scriptversion=%:y-%02m-%02d.%02H; # UTC"
1367 # time-stamp-time-zone: "UTC"
1368 # End:
1369 #! /bin/sh
1370
1371 # Set a version string for this script.
1372 scriptversion=2014-01-07.03; # UTC
1373
1374 # A portable, pluggable option parser for Bourne shell.
1375 # Written by Gary V. Vaughan, 2010
1376
1377 # Copyright (C) 2010-2015 Free Software Foundation, Inc.
1378 # This is free software; see the source for copying conditions. There is NO
1379 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
1380
1381 # This program is free software: you can redistribute it and/or modify
1382 # it under the terms of the GNU General Public License as published by
1383 # the Free Software Foundation, either version 3 of the License, or
1384 # (at your option) any later version.
1385
1386 # This program is distributed in the hope that it will be useful,
1387 # but WITHOUT ANY WARRANTY; without even the implied warranty of
1388 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1389 # GNU General Public License for more details.
1390
1391 # You should have received a copy of the GNU General Public License
1392 # along with this program. If not, see <http://www.gnu.org/licenses/>.
1393
1394 # Please report bugs or propose patches to gary@gnu.org.
1395
1396
1397 ## ------ ##
1398 ## Usage. ##
1399 ## ------ ##
1400
1401 # This file is a library for parsing options in your shell scripts along
1402 # with assorted other useful supporting features that you can make use
1403 # of too.
1404 #
1405 # For the simplest scripts you might need only:
1406 #
1407 # #!/bin/sh
1408 # . relative/path/to/funclib.sh
1409 # . relative/path/to/options-parser
1410 # scriptversion=1.0
1411 # func_options ${1+"$@"}
1412 # eval set dummy "$func_options_result"; shift
1413 # ...rest of your script...
1414 #
1415 # In order for the '--version' option to work, you will need to have a
1416 # suitably formatted comment like the one at the top of this file
1417 # starting with '# Written by ' and ending with '# warranty; '.
1418 #
1419 # For '-h' and '--help' to work, you will also need a one line
1420 # description of your script's purpose in a comment directly above the
1421 # '# Written by ' line, like the one at the top of this file.
1422 #
1423 # The default options also support '--debug', which will turn on shell
1424 # execution tracing (see the comment above debug_cmd below for another
1425 # use), and '--verbose' and the func_verbose function to allow your script
1426 # to display verbose messages only when your user has specified
1427 # '--verbose'.
1428 #
1429 # After sourcing this file, you can plug processing for additional
1430 # options by amending the variables from the 'Configuration' section
1431 # below, and following the instructions in the 'Option parsing'
1432 # section further down.
1433
1434 ## -------------- ##
1435 ## Configuration. ##
1436 ## -------------- ##
1437
1438 # You should override these variables in your script after sourcing this
1439 # file so that they reflect the customisations you have added to the
1440 # option parser.
1441
1442 # The usage line for option parsing errors and the start of '-h' and
1443 # '--help' output messages. You can embed shell variables for delayed
1444 # expansion at the time the message is displayed, but you will need to
1445 # quote other shell meta-characters carefully to prevent them being
1446 # expanded when the contents are evaled.
1447 usage='$progpath [OPTION]...'
1448
1449 # Short help message in response to '-h' and '--help'. Add to this or
1450 # override it after sourcing this library to reflect the full set of
1451 # options your script accepts.
1452 usage_message="\
1453 --debug enable verbose shell tracing
1454 -W, --warnings=CATEGORY
1455 report the warnings falling in CATEGORY [all]
1456 -v, --verbose verbosely report processing
1457 --version print version information and exit
1458 -h, --help print short or long help message and exit
1459 "
1460
1461 # Additional text appended to 'usage_message' in response to '--help'.
1462 long_help_message="
1463 Warning categories include:
1464 'all' show all warnings
1465 'none' turn off all the warnings
1466 'error' warnings are treated as fatal errors"
1467
1468 # Help message printed before fatal option parsing errors.
1469 fatal_help="Try '\$progname --help' for more information."
1470
1471
1472
1473 ## ------------------------- ##
1474 ## Hook function management. ##
1475 ## ------------------------- ##
1476
1477 # This section contains functions for adding, removing, and running hooks
1478 # to the main code. A hook is just a named list of of function, that can
1479 # be run in order later on.
1480
1481 # func_hookable FUNC_NAME
1482 # -----------------------
1483 # Declare that FUNC_NAME will run hooks added with
1484 # 'func_add_hook FUNC_NAME ...'.
1485 func_hookable ()
1486 {
1487 $debug_cmd
1488
1489 func_append hookable_fns " $1"
1490 }
1491
1492
1493 # func_add_hook FUNC_NAME HOOK_FUNC
1494 # ---------------------------------
1495 # Request that FUNC_NAME call HOOK_FUNC before it returns. FUNC_NAME must
1496 # first have been declared "hookable" by a call to 'func_hookable'.
1497 func_add_hook ()
1498 {
1499 $debug_cmd
1500
1501 case " $hookable_fns " in
1502 *" $1 "*) ;;
1503 *) func_fatal_error "'$1' does not accept hook functions." ;;
1504 esac
1505
1506 eval func_append ${1}_hooks '" $2"'
1507 }
1508
1509
1510 # func_remove_hook FUNC_NAME HOOK_FUNC
1511 # ------------------------------------
1512 # Remove HOOK_FUNC from the list of functions called by FUNC_NAME.
1513 func_remove_hook ()
1514 {
1515 $debug_cmd
1516
1517 eval ${1}_hooks='`$ECHO "\$'$1'_hooks" |$SED "s| '$2'||"`'
1518 }
1519
1520
1521 # func_run_hooks FUNC_NAME [ARG]...
1522 # ---------------------------------
1523 # Run all hook functions registered to FUNC_NAME.
1524 # It is assumed that the list of hook functions contains nothing more
1525 # than a whitespace-delimited list of legal shell function names, and
1526 # no effort is wasted trying to catch shell meta-characters or preserve
1527 # whitespace.
1528 func_run_hooks ()
1529 {
1530 $debug_cmd
1531
1532 case " $hookable_fns " in
1533 *" $1 "*) ;;
1534 *) func_fatal_error "'$1' does not support hook funcions.n" ;;
1535 esac
1536
1537 eval _G_hook_fns=\$$1_hooks; shift
1538
1539 for _G_hook in $_G_hook_fns; do
1540 eval $_G_hook '"$@"'
1541
1542 # store returned options list back into positional
1543 # parameters for next 'cmd' execution.
1544 eval _G_hook_result=\$${_G_hook}_result
1545 eval set dummy "$_G_hook_result"; shift
1546 done
1547
1548 func_quote_for_eval ${1+"$@"}
1549 func_run_hooks_result=$func_quote_for_eval_result
1550 }
1551
1552
1553
1554 ## --------------- ##
1555 ## Option parsing. ##
1556 ## --------------- ##
1557
1558 # In order to add your own option parsing hooks, you must accept the
1559 # full positional parameter list in your hook function, remove any
1560 # options that you action, and then pass back the remaining unprocessed
1561 # options in '<hooked_function_name>_result', escaped suitably for
1562 # 'eval'. Like this:
1563 #
1564 # my_options_prep ()
1565 # {
1566 # $debug_cmd
1567 #
1568 # # Extend the existing usage message.
1569 # usage_message=$usage_message'
1570 # -s, --silent don'\''t print informational messages
1571 # '
1572 #
1573 # func_quote_for_eval ${1+"$@"}
1574 # my_options_prep_result=$func_quote_for_eval_result
1575 # }
1576 # func_add_hook func_options_prep my_options_prep
1577 #
1578 #
1579 # my_silent_option ()
1580 # {
1581 # $debug_cmd
1582 #
1583 # # Note that for efficiency, we parse as many options as we can
1584 # # recognise in a loop before passing the remainder back to the
1585 # # caller on the first unrecognised argument we encounter.
1586 # while test $# -gt 0; do
1587 # opt=$1; shift
1588 # case $opt in
1589 # --silent|-s) opt_silent=: ;;
1590 # # Separate non-argument short options:
1591 # -s*) func_split_short_opt "$_G_opt"
1592 # set dummy "$func_split_short_opt_name" \
1593 # "-$func_split_short_opt_arg" ${1+"$@"}
1594 # shift
1595 # ;;
1596 # *) set dummy "$_G_opt" "$*"; shift; break ;;
1597 # esac
1598 # done
1599 #
1600 # func_quote_for_eval ${1+"$@"}
1601 # my_silent_option_result=$func_quote_for_eval_result
1602 # }
1603 # func_add_hook func_parse_options my_silent_option
1604 #
1605 #
1606 # my_option_validation ()
1607 # {
1608 # $debug_cmd
1609 #
1610 # $opt_silent && $opt_verbose && func_fatal_help "\
1611 # '--silent' and '--verbose' options are mutually exclusive."
1612 #
1613 # func_quote_for_eval ${1+"$@"}
1614 # my_option_validation_result=$func_quote_for_eval_result
1615 # }
1616 # func_add_hook func_validate_options my_option_validation
1617 #
1618 # You'll alse need to manually amend $usage_message to reflect the extra
1619 # options you parse. It's preferable to append if you can, so that
1620 # multiple option parsing hooks can be added safely.
1621
1622
1623 # func_options [ARG]...
1624 # ---------------------
1625 # All the functions called inside func_options are hookable. See the
1626 # individual implementations for details.
1627 func_hookable func_options
1628 func_options ()
1629 {
1630 $debug_cmd
1631
1632 func_options_prep ${1+"$@"}
1633 eval func_parse_options \
1634 ${func_options_prep_result+"$func_options_prep_result"}
1635 eval func_validate_options \
1636 ${func_parse_options_result+"$func_parse_options_result"}
1637
1638 eval func_run_hooks func_options \
1639 ${func_validate_options_result+"$func_validate_options_result"}
1640
1641 # save modified positional parameters for caller
1642 func_options_result=$func_run_hooks_result
1643 }
1644
1645
1646 # func_options_prep [ARG]...
1647 # --------------------------
1648 # All initialisations required before starting the option parse loop.
1649 # Note that when calling hook functions, we pass through the list of
1650 # positional parameters. If a hook function modifies that list, and
1651 # needs to propogate that back to rest of this script, then the complete
1652 # modified list must be put in 'func_run_hooks_result' before
1653 # returning.
1654 func_hookable func_options_prep
1655 func_options_prep ()
1656 {
1657 $debug_cmd
1658
1659 # Option defaults:
1660 opt_verbose=false
1661 opt_warning_types=
1662
1663 func_run_hooks func_options_prep ${1+"$@"}
1664
1665 # save modified positional parameters for caller
1666 func_options_prep_result=$func_run_hooks_result
1667 }
1668
1669
1670 # func_parse_options [ARG]...
1671 # ---------------------------
1672 # The main option parsing loop.
1673 func_hookable func_parse_options
1674 func_parse_options ()
1675 {
1676 $debug_cmd
1677
1678 func_parse_options_result=
1679
1680 # this just eases exit handling
1681 while test $# -gt 0; do
1682 # Defer to hook functions for initial option parsing, so they
1683 # get priority in the event of reusing an option name.
1684 func_run_hooks func_parse_options ${1+"$@"}
1685
1686 # Adjust func_parse_options positional parameters to match
1687 eval set dummy "$func_run_hooks_result"; shift
1688
1689 # Break out of the loop if we already parsed every option.
1690 test $# -gt 0 || break
1691
1692 _G_opt=$1
1693 shift
1694 case $_G_opt in
1695 --debug|-x) debug_cmd='set -x'
1696 func_echo "enabling shell trace mode"
1697 $debug_cmd
1698 ;;
1699
1700 --no-warnings|--no-warning|--no-warn)
1701 set dummy --warnings none ${1+"$@"}
1702 shift
1703 ;;
1704
1705 --warnings|--warning|-W)
1706 test $# = 0 && func_missing_arg $_G_opt && break
1707 case " $warning_categories $1" in
1708 *" $1 "*)
1709 # trailing space prevents matching last $1 above
1710 func_append_uniq opt_warning_types " $1"
1711 ;;
1712 *all)
1713 opt_warning_types=$warning_categories
1714 ;;
1715 *none)
1716 opt_warning_types=none
1717 warning_func=:
1718 ;;
1719 *error)
1720 opt_warning_types=$warning_categories
1721 warning_func=func_fatal_error
1722 ;;
1723 *)
1724 func_fatal_error \
1725 "unsupported warning category: '$1'"
1726 ;;
1727 esac
1728 shift
1729 ;;
1730
1731 --verbose|-v) opt_verbose=: ;;
1732 --version) func_version ;;
1733 -\?|-h) func_usage ;;
1734 --help) func_help ;;
1735
1736 # Separate optargs to long options (plugins may need this):
1737 --*=*) func_split_equals "$_G_opt"
1738 set dummy "$func_split_equals_lhs" \
1739 "$func_split_equals_rhs" ${1+"$@"}
1740 shift
1741 ;;
1742
1743 # Separate optargs to short options:
1744 -W*)
1745 func_split_short_opt "$_G_opt"
1746 set dummy "$func_split_short_opt_name" \
1747 "$func_split_short_opt_arg" ${1+"$@"}
1748 shift
1749 ;;
1750
1751 # Separate non-argument short options:
1752 -\?*|-h*|-v*|-x*)
1753 func_split_short_opt "$_G_opt"
1754 set dummy "$func_split_short_opt_name" \
1755 "-$func_split_short_opt_arg" ${1+"$@"}
1756 shift
1757 ;;
1758
1759 --) break ;;
1760 -*) func_fatal_help "unrecognised option: '$_G_opt'" ;;
1761 *) set dummy "$_G_opt" ${1+"$@"}; shift; break ;;
1762 esac
1763 done
1764
1765 # save modified positional parameters for caller
1766 func_quote_for_eval ${1+"$@"}
1767 func_parse_options_result=$func_quote_for_eval_result
1768 }
1769
1770
1771 # func_validate_options [ARG]...
1772 # ------------------------------
1773 # Perform any sanity checks on option settings and/or unconsumed
1774 # arguments.
1775 func_hookable func_validate_options
1776 func_validate_options ()
1777 {
1778 $debug_cmd
1779
1780 # Display all warnings if -W was not given.
1781 test -n "$opt_warning_types" || opt_warning_types=" $warning_categories"
1782
1783 func_run_hooks func_validate_options ${1+"$@"}
1784
1785 # Bail if the options were screwed!
1786 $exit_cmd $EXIT_FAILURE
1787
1788 # save modified positional parameters for caller
1789 func_validate_options_result=$func_run_hooks_result
1790 }
1791
1792
1793
1794 ## ----------------- ##
1795 ## Helper functions. ##
1796 ## ----------------- ##
1797
1798 # This section contains the helper functions used by the rest of the
1799 # hookable option parser framework in ascii-betical order.
1800
1801
1802 # func_fatal_help ARG...
1803 # ----------------------
1804 # Echo program name prefixed message to standard error, followed by
1805 # a help hint, and exit.
1806 func_fatal_help ()
1807 {
1808 $debug_cmd
1809
1810 eval \$ECHO \""Usage: $usage"\"
1811 eval \$ECHO \""$fatal_help"\"
1812 func_error ${1+"$@"}
1813 exit $EXIT_FAILURE
1814 }
1815
1816
1817 # func_help
1818 # ---------
1819 # Echo long help message to standard output and exit.
7541820 func_help ()
7551821 {
756 $opt_debug
757
758 $SED -n '/^# Usage:/,/# Report bugs to/ {
759 :print
760 s/^# //
761 s/^# *$//
762 s*\$progname*'$progname'*
763 s*\$host*'"$host"'*
764 s*\$SHELL*'"$SHELL"'*
765 s*\$LTCC*'"$LTCC"'*
766 s*\$LTCFLAGS*'"$LTCFLAGS"'*
767 s*\$LD*'"$LD"'*
768 s/\$with_gnu_ld/'"$with_gnu_ld"'/
769 s/\$automake_version/'"`(${AUTOMAKE-automake} --version) 2>/dev/null |$SED 1q`"'/
770 s/\$autoconf_version/'"`(${AUTOCONF-autoconf} --version) 2>/dev/null |$SED 1q`"'/
771 p
772 d
773 }
774 /^# .* home page:/b print
775 /^# General help using/b print
776 ' < "$progpath"
777 ret=$?
778 if test -z "$1"; then
779 exit $ret
780 fi
781 }
782
783 # func_missing_arg argname
1822 $debug_cmd
1823
1824 func_usage_message
1825 $ECHO "$long_help_message"
1826 exit 0
1827 }
1828
1829
1830 # func_missing_arg ARGNAME
1831 # ------------------------
7841832 # Echo program name prefixed message to standard error and set global
7851833 # exit_cmd.
7861834 func_missing_arg ()
7871835 {
788 $opt_debug
789
790 func_error "missing argument for $1."
1836 $debug_cmd
1837
1838 func_error "Missing argument for '$1'."
7911839 exit_cmd=exit
7921840 }
7931841
7941842
795 # func_split_short_opt shortopt
1843 # func_split_equals STRING
1844 # ------------------------
1845 # Set func_split_equals_lhs and func_split_equals_rhs shell variables after
1846 # splitting STRING at the '=' sign.
1847 test -z "$_G_HAVE_XSI_OPS" \
1848 && (eval 'x=a/b/c;
1849 test 5aa/bb/cc = "${#x}${x%%/*}${x%/*}${x#*/}${x##*/}"') 2>/dev/null \
1850 && _G_HAVE_XSI_OPS=yes
1851
1852 if test yes = "$_G_HAVE_XSI_OPS"
1853 then
1854 # This is an XSI compatible shell, allowing a faster implementation...
1855 eval 'func_split_equals ()
1856 {
1857 $debug_cmd
1858
1859 func_split_equals_lhs=${1%%=*}
1860 func_split_equals_rhs=${1#*=}
1861 test "x$func_split_equals_lhs" = "x$1" \
1862 && func_split_equals_rhs=
1863 }'
1864 else
1865 # ...otherwise fall back to using expr, which is often a shell builtin.
1866 func_split_equals ()
1867 {
1868 $debug_cmd
1869
1870 func_split_equals_lhs=`expr "x$1" : 'x\([^=]*\)'`
1871 func_split_equals_rhs=
1872 test "x$func_split_equals_lhs" = "x$1" \
1873 || func_split_equals_rhs=`expr "x$1" : 'x[^=]*=\(.*\)$'`
1874 }
1875 fi #func_split_equals
1876
1877
1878 # func_split_short_opt SHORTOPT
1879 # -----------------------------
7961880 # Set func_split_short_opt_name and func_split_short_opt_arg shell
7971881 # variables after splitting SHORTOPT after the 2nd character.
798 func_split_short_opt ()
799 {
800 my_sed_short_opt='1s/^\(..\).*$/\1/;q'
801 my_sed_short_rest='1s/^..\(.*\)$/\1/;q'
802
803 func_split_short_opt_name=`$ECHO "$1" | $SED "$my_sed_short_opt"`
804 func_split_short_opt_arg=`$ECHO "$1" | $SED "$my_sed_short_rest"`
805 } # func_split_short_opt may be replaced by extended shell implementation
806
807
808 # func_split_long_opt longopt
809 # Set func_split_long_opt_name and func_split_long_opt_arg shell
810 # variables after splitting LONGOPT at the `=' sign.
811 func_split_long_opt ()
812 {
813 my_sed_long_opt='1s/^\(--[^=]*\)=.*/\1/;q'
814 my_sed_long_arg='1s/^--[^=]*=//'
815
816 func_split_long_opt_name=`$ECHO "$1" | $SED "$my_sed_long_opt"`
817 func_split_long_opt_arg=`$ECHO "$1" | $SED "$my_sed_long_arg"`
818 } # func_split_long_opt may be replaced by extended shell implementation
819
820 exit_cmd=:
821
822
823
824
825
826 magic="%%%MAGIC variable%%%"
827 magic_exe="%%%MAGIC EXE variable%%%"
828
829 # Global variables.
830 nonopt=
831 preserve_args=
832 lo2o="s/\\.lo\$/.${objext}/"
833 o2lo="s/\\.${objext}\$/.lo/"
834 extracted_archives=
835 extracted_serial=0
836
837 # If this variable is set in any of the actions, the command in it
838 # will be execed at the end. This prevents here-documents from being
839 # left over by shells.
840 exec_cmd=
841
842 # func_append var value
843 # Append VALUE to the end of shell variable VAR.
844 func_append ()
845 {
846 eval "${1}=\$${1}\${2}"
847 } # func_append may be replaced by extended shell implementation
848
849 # func_append_quoted var value
850 # Quote VALUE and append to the end of shell variable VAR, separated
851 # by a space.
852 func_append_quoted ()
853 {
854 func_quote_for_eval "${2}"
855 eval "${1}=\$${1}\\ \$func_quote_for_eval_result"
856 } # func_append_quoted may be replaced by extended shell implementation
857
858
859 # func_arith arithmetic-term...
860 func_arith ()
861 {
862 func_arith_result=`expr "${@}"`
863 } # func_arith may be replaced by extended shell implementation
864
865
866 # func_len string
867 # STRING may not start with a hyphen.
868 func_len ()
869 {
870 func_len_result=`expr "${1}" : ".*" 2>/dev/null || echo $max_cmd_len`
871 } # func_len may be replaced by extended shell implementation
872
873
874 # func_lo2o object
875 func_lo2o ()
876 {
877 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
878 } # func_lo2o may be replaced by extended shell implementation
879
880
881 # func_xform libobj-or-source
882 func_xform ()
883 {
884 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
885 } # func_xform may be replaced by extended shell implementation
886
887
888 # func_fatal_configuration arg...
1882 if test yes = "$_G_HAVE_XSI_OPS"
1883 then
1884 # This is an XSI compatible shell, allowing a faster implementation...
1885 eval 'func_split_short_opt ()
1886 {
1887 $debug_cmd
1888
1889 func_split_short_opt_arg=${1#??}
1890 func_split_short_opt_name=${1%"$func_split_short_opt_arg"}
1891 }'
1892 else
1893 # ...otherwise fall back to using expr, which is often a shell builtin.
1894 func_split_short_opt ()
1895 {
1896 $debug_cmd
1897
1898 func_split_short_opt_name=`expr "x$1" : 'x-\(.\)'`
1899 func_split_short_opt_arg=`expr "x$1" : 'x-.\(.*\)$'`
1900 }
1901 fi #func_split_short_opt
1902
1903
1904 # func_usage
1905 # ----------
1906 # Echo short help message to standard output and exit.
1907 func_usage ()
1908 {
1909 $debug_cmd
1910
1911 func_usage_message
1912 $ECHO "Run '$progname --help |${PAGER-more}' for full usage"
1913 exit 0
1914 }
1915
1916
1917 # func_usage_message
1918 # ------------------
1919 # Echo short help message to standard output.
1920 func_usage_message ()
1921 {
1922 $debug_cmd
1923
1924 eval \$ECHO \""Usage: $usage"\"
1925 echo
1926 $SED -n 's|^# ||
1927 /^Written by/{
1928 x;p;x
1929 }
1930 h
1931 /^Written by/q' < "$progpath"
1932 echo
1933 eval \$ECHO \""$usage_message"\"
1934 }
1935
1936
1937 # func_version
1938 # ------------
1939 # Echo version message to standard output and exit.
1940 func_version ()
1941 {
1942 $debug_cmd
1943
1944 printf '%s\n' "$progname $scriptversion"
1945 $SED -n '
1946 /(C)/!b go
1947 :more
1948 /\./!{
1949 N
1950 s|\n# | |
1951 b more
1952 }
1953 :go
1954 /^# Written by /,/# warranty; / {
1955 s|^# ||
1956 s|^# *$||
1957 s|\((C)\)[ 0-9,-]*[ ,-]\([1-9][0-9]* \)|\1 \2|
1958 p
1959 }
1960 /^# Written by / {
1961 s|^# ||
1962 p
1963 }
1964 /^warranty; /q' < "$progpath"
1965
1966 exit $?
1967 }
1968
1969
1970 # Local variables:
1971 # mode: shell-script
1972 # sh-indentation: 2
1973 # eval: (add-hook 'before-save-hook 'time-stamp)
1974 # time-stamp-pattern: "10/scriptversion=%:y-%02m-%02d.%02H; # UTC"
1975 # time-stamp-time-zone: "UTC"
1976 # End:
1977
1978 # Set a version string.
1979 scriptversion='(GNU libtool) 2.4.6'
1980
1981
1982 # func_echo ARG...
1983 # ----------------
1984 # Libtool also displays the current mode in messages, so override
1985 # funclib.sh func_echo with this custom definition.
1986 func_echo ()
1987 {
1988 $debug_cmd
1989
1990 _G_message=$*
1991
1992 func_echo_IFS=$IFS
1993 IFS=$nl
1994 for _G_line in $_G_message; do
1995 IFS=$func_echo_IFS
1996 $ECHO "$progname${opt_mode+: $opt_mode}: $_G_line"
1997 done
1998 IFS=$func_echo_IFS
1999 }
2000
2001
2002 # func_warning ARG...
2003 # -------------------
2004 # Libtool warnings are not categorized, so override funclib.sh
2005 # func_warning with this simpler definition.
2006 func_warning ()
2007 {
2008 $debug_cmd
2009
2010 $warning_func ${1+"$@"}
2011 }
2012
2013
2014 ## ---------------- ##
2015 ## Options parsing. ##
2016 ## ---------------- ##
2017
2018 # Hook in the functions to make sure our own options are parsed during
2019 # the option parsing loop.
2020
2021 usage='$progpath [OPTION]... [MODE-ARG]...'
2022
2023 # Short help message in response to '-h'.
2024 usage_message="Options:
2025 --config show all configuration variables
2026 --debug enable verbose shell tracing
2027 -n, --dry-run display commands without modifying any files
2028 --features display basic configuration information and exit
2029 --mode=MODE use operation mode MODE
2030 --no-warnings equivalent to '-Wnone'
2031 --preserve-dup-deps don't remove duplicate dependency libraries
2032 --quiet, --silent don't print informational messages
2033 --tag=TAG use configuration variables from tag TAG
2034 -v, --verbose print more informational messages than default
2035 --version print version information
2036 -W, --warnings=CATEGORY report the warnings falling in CATEGORY [all]
2037 -h, --help, --help-all print short, long, or detailed help message
2038 "
2039
2040 # Additional text appended to 'usage_message' in response to '--help'.
2041 func_help ()
2042 {
2043 $debug_cmd
2044
2045 func_usage_message
2046 $ECHO "$long_help_message
2047
2048 MODE must be one of the following:
2049
2050 clean remove files from the build directory
2051 compile compile a source file into a libtool object
2052 execute automatically set library path, then run a program
2053 finish complete the installation of libtool libraries
2054 install install libraries or executables
2055 link create a library or an executable
2056 uninstall remove libraries from an installed directory
2057
2058 MODE-ARGS vary depending on the MODE. When passed as first option,
2059 '--mode=MODE' may be abbreviated as 'MODE' or a unique abbreviation of that.
2060 Try '$progname --help --mode=MODE' for a more detailed description of MODE.
2061
2062 When reporting a bug, please describe a test case to reproduce it and
2063 include the following information:
2064
2065 host-triplet: $host
2066 shell: $SHELL
2067 compiler: $LTCC
2068 compiler flags: $LTCFLAGS
2069 linker: $LD (gnu? $with_gnu_ld)
2070 version: $progname (GNU libtool) 2.4.6
2071 automake: `($AUTOMAKE --version) 2>/dev/null |$SED 1q`
2072 autoconf: `($AUTOCONF --version) 2>/dev/null |$SED 1q`
2073
2074 Report bugs to <bug-libtool@gnu.org>.
2075 GNU libtool home page: <http://www.gnu.org/s/libtool/>.
2076 General help using GNU software: <http://www.gnu.org/gethelp/>."
2077 exit 0
2078 }
2079
2080
2081 # func_lo2o OBJECT-NAME
2082 # ---------------------
2083 # Transform OBJECT-NAME from a '.lo' suffix to the platform specific
2084 # object suffix.
2085
2086 lo2o=s/\\.lo\$/.$objext/
2087 o2lo=s/\\.$objext\$/.lo/
2088
2089 if test yes = "$_G_HAVE_XSI_OPS"; then
2090 eval 'func_lo2o ()
2091 {
2092 case $1 in
2093 *.lo) func_lo2o_result=${1%.lo}.$objext ;;
2094 * ) func_lo2o_result=$1 ;;
2095 esac
2096 }'
2097
2098 # func_xform LIBOBJ-OR-SOURCE
2099 # ---------------------------
2100 # Transform LIBOBJ-OR-SOURCE from a '.o' or '.c' (or otherwise)
2101 # suffix to a '.lo' libtool-object suffix.
2102 eval 'func_xform ()
2103 {
2104 func_xform_result=${1%.*}.lo
2105 }'
2106 else
2107 # ...otherwise fall back to using sed.
2108 func_lo2o ()
2109 {
2110 func_lo2o_result=`$ECHO "$1" | $SED "$lo2o"`
2111 }
2112
2113 func_xform ()
2114 {
2115 func_xform_result=`$ECHO "$1" | $SED 's|\.[^.]*$|.lo|'`
2116 }
2117 fi
2118
2119
2120 # func_fatal_configuration ARG...
2121 # -------------------------------
8892122 # Echo program name prefixed message to standard error, followed by
8902123 # a configuration failure hint, and exit.
8912124 func_fatal_configuration ()
8922125 {
893 func_error ${1+"$@"}
894 func_error "See the $PACKAGE documentation for more information."
895 func_fatal_error "Fatal configuration error."
2126 func__fatal_error ${1+"$@"} \
2127 "See the $PACKAGE documentation for more information." \
2128 "Fatal configuration error."
8962129 }
8972130
8982131
8992132 # func_config
2133 # -----------
9002134 # Display the configuration for all the tags in this script.
9012135 func_config ()
9022136 {
9142148 exit $?
9152149 }
9162150
2151
9172152 # func_features
2153 # -------------
9182154 # Display the features supported by this script.
9192155 func_features ()
9202156 {
9212157 echo "host: $host"
922 if test "$build_libtool_libs" = yes; then
2158 if test yes = "$build_libtool_libs"; then
9232159 echo "enable shared libraries"
9242160 else
9252161 echo "disable shared libraries"
9262162 fi
927 if test "$build_old_libs" = yes; then
2163 if test yes = "$build_old_libs"; then
9282164 echo "enable static libraries"
9292165 else
9302166 echo "disable static libraries"
9332169 exit $?
9342170 }
9352171
936 # func_enable_tag tagname
2172
2173 # func_enable_tag TAGNAME
2174 # -----------------------
9372175 # Verify that TAGNAME is valid, and either flag an error and exit, or
9382176 # enable the TAGNAME tag. We also add TAGNAME to the global $taglist
9392177 # variable here.
9402178 func_enable_tag ()
9412179 {
942 # Global variable:
943 tagname="$1"
944
945 re_begincf="^# ### BEGIN LIBTOOL TAG CONFIG: $tagname\$"
946 re_endcf="^# ### END LIBTOOL TAG CONFIG: $tagname\$"
947 sed_extractcf="/$re_begincf/,/$re_endcf/p"
948
949 # Validate tagname.
950 case $tagname in
951 *[!-_A-Za-z0-9,/]*)
952 func_fatal_error "invalid tag name: $tagname"
953 ;;
954 esac
955
956 # Don't test for the "default" C tag, as we know it's
957 # there but not specially marked.
958 case $tagname in
959 CC) ;;
2180 # Global variable:
2181 tagname=$1
2182
2183 re_begincf="^# ### BEGIN LIBTOOL TAG CONFIG: $tagname\$"
2184 re_endcf="^# ### END LIBTOOL TAG CONFIG: $tagname\$"
2185 sed_extractcf=/$re_begincf/,/$re_endcf/p
2186
2187 # Validate tagname.
2188 case $tagname in
2189 *[!-_A-Za-z0-9,/]*)
2190 func_fatal_error "invalid tag name: $tagname"
2191 ;;
2192 esac
2193
2194 # Don't test for the "default" C tag, as we know it's
2195 # there but not specially marked.
2196 case $tagname in
2197 CC) ;;
9602198 *)
961 if $GREP "$re_begincf" "$progpath" >/dev/null 2>&1; then
962 taglist="$taglist $tagname"
963
964 # Evaluate the configuration. Be careful to quote the path
965 # and the sed script, to avoid splitting on whitespace, but
966 # also don't use non-portable quotes within backquotes within
967 # quotes we have to do it in 2 steps:
968 extractedcf=`$SED -n -e "$sed_extractcf" < "$progpath"`
969 eval "$extractedcf"
970 else
971 func_error "ignoring unknown tag $tagname"
972 fi
973 ;;
974 esac
975 }
2199 if $GREP "$re_begincf" "$progpath" >/dev/null 2>&1; then
2200 taglist="$taglist $tagname"
2201
2202 # Evaluate the configuration. Be careful to quote the path
2203 # and the sed script, to avoid splitting on whitespace, but
2204 # also don't use non-portable quotes within backquotes within
2205 # quotes we have to do it in 2 steps:
2206 extractedcf=`$SED -n -e "$sed_extractcf" < "$progpath"`
2207 eval "$extractedcf"
2208 else
2209 func_error "ignoring unknown tag $tagname"
2210 fi
2211 ;;
2212 esac
2213 }
2214
9762215
9772216 # func_check_version_match
2217 # ------------------------
9782218 # Ensure that we are using m4 macros, and libtool script from the same
9792219 # release of libtool.
9802220 func_check_version_match ()
9812221 {
982 if test "$package_revision" != "$macro_revision"; then
983 if test "$VERSION" != "$macro_version"; then
984 if test -z "$macro_version"; then
985 cat >&2 <<_LT_EOF
2222 if test "$package_revision" != "$macro_revision"; then
2223 if test "$VERSION" != "$macro_version"; then
2224 if test -z "$macro_version"; then
2225 cat >&2 <<_LT_EOF
9862226 $progname: Version mismatch error. This is $PACKAGE $VERSION, but the
9872227 $progname: definition of this LT_INIT comes from an older release.
9882228 $progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
9892229 $progname: and run autoconf again.
9902230 _LT_EOF
991 else
992 cat >&2 <<_LT_EOF
2231 else
2232 cat >&2 <<_LT_EOF
9932233 $progname: Version mismatch error. This is $PACKAGE $VERSION, but the
9942234 $progname: definition of this LT_INIT comes from $PACKAGE $macro_version.
9952235 $progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
9962236 $progname: and run autoconf again.
9972237 _LT_EOF
998 fi
999 else
1000 cat >&2 <<_LT_EOF
2238 fi
2239 else
2240 cat >&2 <<_LT_EOF
10012241 $progname: Version mismatch error. This is $PACKAGE $VERSION, revision $package_revision,
10022242 $progname: but the definition of this LT_INIT comes from revision $macro_revision.
10032243 $progname: You should recreate aclocal.m4 with macros from revision $package_revision
10042244 $progname: of $PACKAGE $VERSION and run autoconf again.
10052245 _LT_EOF
2246 fi
2247
2248 exit $EXIT_MISMATCH
10062249 fi
1007
1008 exit $EXIT_MISMATCH
1009 fi
1010 }
1011
1012
1013 # Shorthand for --mode=foo, only valid as the first argument
1014 case $1 in
1015 clean|clea|cle|cl)
1016 shift; set dummy --mode clean ${1+"$@"}; shift
1017 ;;
1018 compile|compil|compi|comp|com|co|c)
1019 shift; set dummy --mode compile ${1+"$@"}; shift
1020 ;;
1021 execute|execut|execu|exec|exe|ex|e)
1022 shift; set dummy --mode execute ${1+"$@"}; shift
1023 ;;
1024 finish|finis|fini|fin|fi|f)
1025 shift; set dummy --mode finish ${1+"$@"}; shift
1026 ;;
1027 install|instal|insta|inst|ins|in|i)
1028 shift; set dummy --mode install ${1+"$@"}; shift
1029 ;;
1030 link|lin|li|l)
1031 shift; set dummy --mode link ${1+"$@"}; shift
1032 ;;
1033 uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u)
1034 shift; set dummy --mode uninstall ${1+"$@"}; shift
1035 ;;
1036 esac
1037
1038
1039
1040 # Option defaults:
1041 opt_debug=:
1042 opt_dry_run=false
1043 opt_config=false
1044 opt_preserve_dup_deps=false
1045 opt_features=false
1046 opt_finish=false
1047 opt_help=false
1048 opt_help_all=false
1049 opt_silent=:
1050 opt_warning=:
1051 opt_verbose=:
1052 opt_silent=false
1053 opt_verbose=false
1054
1055
1056 # Parse options once, thoroughly. This comes as soon as possible in the
1057 # script to make things like `--version' happen as quickly as we can.
1058 {
1059 # this just eases exit handling
1060 while test $# -gt 0; do
1061 opt="$1"
1062 shift
1063 case $opt in
1064 --debug|-x) opt_debug='set -x'
1065 func_echo "enabling shell trace mode"
1066 $opt_debug
1067 ;;
1068 --dry-run|--dryrun|-n)
1069 opt_dry_run=:
1070 ;;
1071 --config)
1072 opt_config=:
1073 func_config
1074 ;;
1075 --dlopen|-dlopen)
1076 optarg="$1"
1077 opt_dlopen="${opt_dlopen+$opt_dlopen
1078 }$optarg"
1079 shift
1080 ;;
1081 --preserve-dup-deps)
1082 opt_preserve_dup_deps=:
1083 ;;
1084 --features)
1085 opt_features=:
1086 func_features
1087 ;;
1088 --finish)
1089 opt_finish=:
1090 set dummy --mode finish ${1+"$@"}; shift
1091 ;;
1092 --help)
1093 opt_help=:
1094 ;;
1095 --help-all)
1096 opt_help_all=:
1097 opt_help=': help-all'
1098 ;;
1099 --mode)
1100 test $# = 0 && func_missing_arg $opt && break
1101 optarg="$1"
1102 opt_mode="$optarg"
1103 case $optarg in
1104 # Valid mode arguments:
1105 clean|compile|execute|finish|install|link|relink|uninstall) ;;
1106
1107 # Catch anything else as an error
1108 *) func_error "invalid argument for $opt"
1109 exit_cmd=exit
1110 break
1111 ;;
1112 esac
1113 shift
1114 ;;
1115 --no-silent|--no-quiet)
1116 opt_silent=false
1117 func_append preserve_args " $opt"
1118 ;;
1119 --no-warning|--no-warn)
1120 opt_warning=false
1121 func_append preserve_args " $opt"
1122 ;;
1123 --no-verbose)
1124 opt_verbose=false
1125 func_append preserve_args " $opt"
1126 ;;
1127 --silent|--quiet)
1128 opt_silent=:
1129 func_append preserve_args " $opt"
1130 opt_verbose=false
1131 ;;
1132 --verbose|-v)
1133 opt_verbose=:
1134 func_append preserve_args " $opt"
1135 opt_silent=false
1136 ;;
1137 --tag)
1138 test $# = 0 && func_missing_arg $opt && break
1139 optarg="$1"
1140 opt_tag="$optarg"
1141 func_append preserve_args " $opt $optarg"
1142 func_enable_tag "$optarg"
1143 shift
1144 ;;
1145
1146 -\?|-h) func_usage ;;
1147 --help) func_help ;;
1148 --version) func_version ;;
1149
1150 # Separate optargs to long options:
1151 --*=*)
1152 func_split_long_opt "$opt"
1153 set dummy "$func_split_long_opt_name" "$func_split_long_opt_arg" ${1+"$@"}
1154 shift
1155 ;;
1156
1157 # Separate non-argument short options:
1158 -\?*|-h*|-n*|-v*)
1159 func_split_short_opt "$opt"
1160 set dummy "$func_split_short_opt_name" "-$func_split_short_opt_arg" ${1+"$@"}
1161 shift
1162 ;;
1163
1164 --) break ;;
1165 -*) func_fatal_help "unrecognized option \`$opt'" ;;
1166 *) set dummy "$opt" ${1+"$@"}; shift; break ;;
2250 }
2251
2252
2253 # libtool_options_prep [ARG]...
2254 # -----------------------------
2255 # Preparation for options parsed by libtool.
2256 libtool_options_prep ()
2257 {
2258 $debug_mode
2259
2260 # Option defaults:
2261 opt_config=false
2262 opt_dlopen=
2263 opt_dry_run=false
2264 opt_help=false
2265 opt_mode=
2266 opt_preserve_dup_deps=false
2267 opt_quiet=false
2268
2269 nonopt=
2270 preserve_args=
2271
2272 # Shorthand for --mode=foo, only valid as the first argument
2273 case $1 in
2274 clean|clea|cle|cl)
2275 shift; set dummy --mode clean ${1+"$@"}; shift
2276 ;;
2277 compile|compil|compi|comp|com|co|c)
2278 shift; set dummy --mode compile ${1+"$@"}; shift
2279 ;;
2280 execute|execut|execu|exec|exe|ex|e)
2281 shift; set dummy --mode execute ${1+"$@"}; shift
2282 ;;
2283 finish|finis|fini|fin|fi|f)
2284 shift; set dummy --mode finish ${1+"$@"}; shift
2285 ;;
2286 install|instal|insta|inst|ins|in|i)
2287 shift; set dummy --mode install ${1+"$@"}; shift
2288 ;;
2289 link|lin|li|l)
2290 shift; set dummy --mode link ${1+"$@"}; shift
2291 ;;
2292 uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u)
2293 shift; set dummy --mode uninstall ${1+"$@"}; shift
2294 ;;
11672295 esac
1168 done
1169
1170 # Validate options:
1171
1172 # save first non-option argument
1173 if test "$#" -gt 0; then
1174 nonopt="$opt"
1175 shift
1176 fi
1177
1178 # preserve --debug
1179 test "$opt_debug" = : || func_append preserve_args " --debug"
1180
1181 case $host in
1182 *cygwin* | *mingw* | *pw32* | *cegcc*)
1183 # don't eliminate duplications in $postdeps and $predeps
1184 opt_duplicate_compiler_generated_deps=:
1185 ;;
1186 *)
1187 opt_duplicate_compiler_generated_deps=$opt_preserve_dup_deps
1188 ;;
1189 esac
1190
1191 $opt_help || {
1192 # Sanity checks first:
1193 func_check_version_match
1194
1195 if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
1196 func_fatal_configuration "not configured to build any kind of library"
2296
2297 # Pass back the list of options.
2298 func_quote_for_eval ${1+"$@"}
2299 libtool_options_prep_result=$func_quote_for_eval_result
2300 }
2301 func_add_hook func_options_prep libtool_options_prep
2302
2303
2304 # libtool_parse_options [ARG]...
2305 # ---------------------------------
2306 # Provide handling for libtool specific options.
2307 libtool_parse_options ()
2308 {
2309 $debug_cmd
2310
2311 # Perform our own loop to consume as many options as possible in
2312 # each iteration.
2313 while test $# -gt 0; do
2314 _G_opt=$1
2315 shift
2316 case $_G_opt in
2317 --dry-run|--dryrun|-n)
2318 opt_dry_run=:
2319 ;;
2320
2321 --config) func_config ;;
2322
2323 --dlopen|-dlopen)
2324 opt_dlopen="${opt_dlopen+$opt_dlopen
2325 }$1"
2326 shift
2327 ;;
2328
2329 --preserve-dup-deps)
2330 opt_preserve_dup_deps=: ;;
2331
2332 --features) func_features ;;
2333
2334 --finish) set dummy --mode finish ${1+"$@"}; shift ;;
2335
2336 --help) opt_help=: ;;
2337
2338 --help-all) opt_help=': help-all' ;;
2339
2340 --mode) test $# = 0 && func_missing_arg $_G_opt && break
2341 opt_mode=$1
2342 case $1 in
2343 # Valid mode arguments:
2344 clean|compile|execute|finish|install|link|relink|uninstall) ;;
2345
2346 # Catch anything else as an error
2347 *) func_error "invalid argument for $_G_opt"
2348 exit_cmd=exit
2349 break
2350 ;;
2351 esac
2352 shift
2353 ;;
2354
2355 --no-silent|--no-quiet)
2356 opt_quiet=false
2357 func_append preserve_args " $_G_opt"
2358 ;;
2359
2360 --no-warnings|--no-warning|--no-warn)
2361 opt_warning=false
2362 func_append preserve_args " $_G_opt"
2363 ;;
2364
2365 --no-verbose)
2366 opt_verbose=false
2367 func_append preserve_args " $_G_opt"
2368 ;;
2369
2370 --silent|--quiet)
2371 opt_quiet=:
2372 opt_verbose=false
2373 func_append preserve_args " $_G_opt"
2374 ;;
2375
2376 --tag) test $# = 0 && func_missing_arg $_G_opt && break
2377 opt_tag=$1
2378 func_append preserve_args " $_G_opt $1"
2379 func_enable_tag "$1"
2380 shift
2381 ;;
2382
2383 --verbose|-v) opt_quiet=false
2384 opt_verbose=:
2385 func_append preserve_args " $_G_opt"
2386 ;;
2387
2388 # An option not handled by this hook function:
2389 *) set dummy "$_G_opt" ${1+"$@"}; shift; break ;;
2390 esac
2391 done
2392
2393
2394 # save modified positional parameters for caller
2395 func_quote_for_eval ${1+"$@"}
2396 libtool_parse_options_result=$func_quote_for_eval_result
2397 }
2398 func_add_hook func_parse_options libtool_parse_options
2399
2400
2401
2402 # libtool_validate_options [ARG]...
2403 # ---------------------------------
2404 # Perform any sanity checks on option settings and/or unconsumed
2405 # arguments.
2406 libtool_validate_options ()
2407 {
2408 # save first non-option argument
2409 if test 0 -lt $#; then
2410 nonopt=$1
2411 shift
11972412 fi
11982413
1199 # Darwin sucks
1200 eval std_shrext=\"$shrext_cmds\"
1201
1202 # Only execute mode is allowed to have -dlopen flags.
1203 if test -n "$opt_dlopen" && test "$opt_mode" != execute; then
1204 func_error "unrecognized option \`-dlopen'"
1205 $ECHO "$help" 1>&2
1206 exit $EXIT_FAILURE
1207 fi
1208
1209 # Change the help message to a mode-specific one.
1210 generic_help="$help"
1211 help="Try \`$progname --help --mode=$opt_mode' for more information."
1212 }
1213
1214
1215 # Bail if the options were screwed
1216 $exit_cmd $EXIT_FAILURE
1217 }
1218
2414 # preserve --debug
2415 test : = "$debug_cmd" || func_append preserve_args " --debug"
2416
2417 case $host in
2418 # Solaris2 added to fix http://debbugs.gnu.org/cgi/bugreport.cgi?bug=16452
2419 # see also: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59788
2420 *cygwin* | *mingw* | *pw32* | *cegcc* | *solaris2* | *os2*)
2421 # don't eliminate duplications in $postdeps and $predeps
2422 opt_duplicate_compiler_generated_deps=:
2423 ;;
2424 *)
2425 opt_duplicate_compiler_generated_deps=$opt_preserve_dup_deps
2426 ;;
2427 esac
2428
2429 $opt_help || {
2430 # Sanity checks first:
2431 func_check_version_match
2432
2433 test yes != "$build_libtool_libs" \
2434 && test yes != "$build_old_libs" \
2435 && func_fatal_configuration "not configured to build any kind of library"
2436
2437 # Darwin sucks
2438 eval std_shrext=\"$shrext_cmds\"
2439
2440 # Only execute mode is allowed to have -dlopen flags.
2441 if test -n "$opt_dlopen" && test execute != "$opt_mode"; then
2442 func_error "unrecognized option '-dlopen'"
2443 $ECHO "$help" 1>&2
2444 exit $EXIT_FAILURE
2445 fi
2446
2447 # Change the help message to a mode-specific one.
2448 generic_help=$help
2449 help="Try '$progname --help --mode=$opt_mode' for more information."
2450 }
2451
2452 # Pass back the unparsed argument list
2453 func_quote_for_eval ${1+"$@"}
2454 libtool_validate_options_result=$func_quote_for_eval_result
2455 }
2456 func_add_hook func_validate_options libtool_validate_options
2457
2458
2459 # Process options as early as possible so that --help and --version
2460 # can return quickly.
2461 func_options ${1+"$@"}
2462 eval set dummy "$func_options_result"; shift
12192463
12202464
12212465
12232467 ## Main. ##
12242468 ## ----------- ##
12252469
2470 magic='%%%MAGIC variable%%%'
2471 magic_exe='%%%MAGIC EXE variable%%%'
2472
2473 # Global variables.
2474 extracted_archives=
2475 extracted_serial=0
2476
2477 # If this variable is set in any of the actions, the command in it
2478 # will be execed at the end. This prevents here-documents from being
2479 # left over by shells.
2480 exec_cmd=
2481
2482
2483 # A function that is used when there is no print builtin or printf.
2484 func_fallback_echo ()
2485 {
2486 eval 'cat <<_LTECHO_EOF
2487 $1
2488 _LTECHO_EOF'
2489 }
2490
2491 # func_generated_by_libtool
2492 # True iff stdin has been generated by Libtool. This function is only
2493 # a basic sanity check; it will hardly flush out determined imposters.
2494 func_generated_by_libtool_p ()
2495 {
2496 $GREP "^# Generated by .*$PACKAGE" > /dev/null 2>&1
2497 }
2498
12262499 # func_lalib_p file
1227 # True iff FILE is a libtool `.la' library or `.lo' object file.
2500 # True iff FILE is a libtool '.la' library or '.lo' object file.
12282501 # This function is only a basic sanity check; it will hardly flush out
12292502 # determined imposters.
12302503 func_lalib_p ()
12312504 {
12322505 test -f "$1" &&
1233 $SED -e 4q "$1" 2>/dev/null \
1234 | $GREP "^# Generated by .*$PACKAGE" > /dev/null 2>&1
2506 $SED -e 4q "$1" 2>/dev/null | func_generated_by_libtool_p
12352507 }
12362508
12372509 # func_lalib_unsafe_p file
1238 # True iff FILE is a libtool `.la' library or `.lo' object file.
2510 # True iff FILE is a libtool '.la' library or '.lo' object file.
12392511 # This function implements the same check as func_lalib_p without
12402512 # resorting to external programs. To this end, it redirects stdin and
12412513 # closes it afterwards, without saving the original file descriptor.
12422514 # As a safety measure, use it only where a negative result would be
1243 # fatal anyway. Works if `file' does not exist.
2515 # fatal anyway. Works if 'file' does not exist.
12442516 func_lalib_unsafe_p ()
12452517 {
12462518 lalib_p=no
12482520 for lalib_p_l in 1 2 3 4
12492521 do
12502522 read lalib_p_line
1251 case "$lalib_p_line" in
2523 case $lalib_p_line in
12522524 \#\ Generated\ by\ *$PACKAGE* ) lalib_p=yes; break;;
12532525 esac
12542526 done
12552527 exec 0<&5 5<&-
12562528 fi
1257 test "$lalib_p" = yes
2529 test yes = "$lalib_p"
12582530 }
12592531
12602532 # func_ltwrapper_script_p file
12632535 # determined imposters.
12642536 func_ltwrapper_script_p ()
12652537 {
1266 func_lalib_p "$1"
2538 test -f "$1" &&
2539 $lt_truncate_bin < "$1" 2>/dev/null | func_generated_by_libtool_p
12672540 }
12682541
12692542 # func_ltwrapper_executable_p file
12882561 {
12892562 func_dirname_and_basename "$1" "" "."
12902563 func_stripname '' '.exe' "$func_basename_result"
1291 func_ltwrapper_scriptname_result="$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper"
2564 func_ltwrapper_scriptname_result=$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper
12922565 }
12932566
12942567 # func_ltwrapper_p file
13072580 # FAIL_CMD may read-access the current command in variable CMD!
13082581 func_execute_cmds ()
13092582 {
1310 $opt_debug
2583 $debug_cmd
2584
13112585 save_ifs=$IFS; IFS='~'
13122586 for cmd in $1; do
2587 IFS=$sp$nl
2588 eval cmd=\"$cmd\"
13132589 IFS=$save_ifs
1314 eval cmd=\"$cmd\"
13152590 func_show_eval "$cmd" "${2-:}"
13162591 done
13172592 IFS=$save_ifs
13232598 # Note that it is not necessary on cygwin/mingw to append a dot to
13242599 # FILE even if both FILE and FILE.exe exist: automatic-append-.exe
13252600 # behavior happens only for exec(3), not for open(2)! Also, sourcing
1326 # `FILE.' does not work on cygwin managed mounts.
2601 # 'FILE.' does not work on cygwin managed mounts.
13272602 func_source ()
13282603 {
1329 $opt_debug
2604 $debug_cmd
2605
13302606 case $1 in
13312607 */* | *\\*) . "$1" ;;
13322608 *) . "./$1" ;;
13532629 # store the result into func_replace_sysroot_result.
13542630 func_replace_sysroot ()
13552631 {
1356 case "$lt_sysroot:$1" in
2632 case $lt_sysroot:$1 in
13572633 ?*:"$lt_sysroot"*)
13582634 func_stripname "$lt_sysroot" '' "$1"
1359 func_replace_sysroot_result="=$func_stripname_result"
2635 func_replace_sysroot_result='='$func_stripname_result
13602636 ;;
13612637 *)
13622638 # Including no sysroot.
13732649 # arg is usually of the form 'gcc ...'
13742650 func_infer_tag ()
13752651 {
1376 $opt_debug
2652 $debug_cmd
2653
13772654 if test -n "$available_tags" && test -z "$tagname"; then
13782655 CC_quoted=
13792656 for arg in $CC; do
13922669 for z in $available_tags; do
13932670 if $GREP "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then
13942671 # Evaluate the configuration.
1395 eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`"
2672 eval "`$SED -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`"
13962673 CC_quoted=
13972674 for arg in $CC; do
13982675 # Double-quote args containing other shell metacharacters.
14172694 # line option must be used.
14182695 if test -z "$tagname"; then
14192696 func_echo "unable to infer tagged configuration"
1420 func_fatal_error "specify a tag with \`--tag'"
2697 func_fatal_error "specify a tag with '--tag'"
14212698 # else
14222699 # func_verbose "using $tagname tagged configuration"
14232700 fi
14332710 # but don't create it if we're doing a dry run.
14342711 func_write_libtool_object ()
14352712 {
1436 write_libobj=${1}
1437 if test "$build_libtool_libs" = yes; then
1438 write_lobj=\'${2}\'
2713 write_libobj=$1
2714 if test yes = "$build_libtool_libs"; then
2715 write_lobj=\'$2\'
14392716 else
14402717 write_lobj=none
14412718 fi
14422719
1443 if test "$build_old_libs" = yes; then
1444 write_oldobj=\'${3}\'
2720 if test yes = "$build_old_libs"; then
2721 write_oldobj=\'$3\'
14452722 else
14462723 write_oldobj=none
14472724 fi
14492726 $opt_dry_run || {
14502727 cat >${write_libobj}T <<EOF
14512728 # $write_libobj - a libtool object file
1452 # Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
2729 # Generated by $PROGRAM (GNU $PACKAGE) $VERSION
14532730 #
14542731 # Please DO NOT delete this file!
14552732 # It is necessary for linking the library.
14612738 non_pic_object=$write_oldobj
14622739
14632740 EOF
1464 $MV "${write_libobj}T" "${write_libobj}"
2741 $MV "${write_libobj}T" "$write_libobj"
14652742 }
14662743 }
14672744
14812758 # be empty on error (or when ARG is empty)
14822759 func_convert_core_file_wine_to_w32 ()
14832760 {
1484 $opt_debug
1485 func_convert_core_file_wine_to_w32_result="$1"
2761 $debug_cmd
2762
2763 func_convert_core_file_wine_to_w32_result=$1
14862764 if test -n "$1"; then
14872765 # Unfortunately, winepath does not exit with a non-zero error code, so we
14882766 # are forced to check the contents of stdout. On the other hand, if the
14902768 # *an error message* to stdout. So we must check for both error code of
14912769 # zero AND non-empty stdout, which explains the odd construction:
14922770 func_convert_core_file_wine_to_w32_tmp=`winepath -w "$1" 2>/dev/null`
1493 if test "$?" -eq 0 && test -n "${func_convert_core_file_wine_to_w32_tmp}"; then
2771 if test "$?" -eq 0 && test -n "$func_convert_core_file_wine_to_w32_tmp"; then
14942772 func_convert_core_file_wine_to_w32_result=`$ECHO "$func_convert_core_file_wine_to_w32_tmp" |
1495 $SED -e "$lt_sed_naive_backslashify"`
2773 $SED -e "$sed_naive_backslashify"`
14962774 else
14972775 func_convert_core_file_wine_to_w32_result=
14982776 fi
15132791 # are convertible, then the result may be empty.
15142792 func_convert_core_path_wine_to_w32 ()
15152793 {
1516 $opt_debug
2794 $debug_cmd
2795
15172796 # unfortunately, winepath doesn't convert paths, only file names
1518 func_convert_core_path_wine_to_w32_result=""
2797 func_convert_core_path_wine_to_w32_result=
15192798 if test -n "$1"; then
15202799 oldIFS=$IFS
15212800 IFS=:
15222801 for func_convert_core_path_wine_to_w32_f in $1; do
15232802 IFS=$oldIFS
15242803 func_convert_core_file_wine_to_w32 "$func_convert_core_path_wine_to_w32_f"
1525 if test -n "$func_convert_core_file_wine_to_w32_result" ; then
2804 if test -n "$func_convert_core_file_wine_to_w32_result"; then
15262805 if test -z "$func_convert_core_path_wine_to_w32_result"; then
1527 func_convert_core_path_wine_to_w32_result="$func_convert_core_file_wine_to_w32_result"
2806 func_convert_core_path_wine_to_w32_result=$func_convert_core_file_wine_to_w32_result
15282807 else
15292808 func_append func_convert_core_path_wine_to_w32_result ";$func_convert_core_file_wine_to_w32_result"
15302809 fi
15532832 # environment variable; do not put it in $PATH.
15542833 func_cygpath ()
15552834 {
1556 $opt_debug
2835 $debug_cmd
2836
15572837 if test -n "$LT_CYGPATH" && test -f "$LT_CYGPATH"; then
15582838 func_cygpath_result=`$LT_CYGPATH "$@" 2>/dev/null`
15592839 if test "$?" -ne 0; then
15622842 fi
15632843 else
15642844 func_cygpath_result=
1565 func_error "LT_CYGPATH is empty or specifies non-existent file: \`$LT_CYGPATH'"
2845 func_error "LT_CYGPATH is empty or specifies non-existent file: '$LT_CYGPATH'"
15662846 fi
15672847 }
15682848 #end: func_cygpath
15732853 # result in func_convert_core_msys_to_w32_result.
15742854 func_convert_core_msys_to_w32 ()
15752855 {
1576 $opt_debug
2856 $debug_cmd
2857
15772858 # awkward: cmd appends spaces to result
15782859 func_convert_core_msys_to_w32_result=`( cmd //c echo "$1" ) 2>/dev/null |
1579 $SED -e 's/[ ]*$//' -e "$lt_sed_naive_backslashify"`
2860 $SED -e 's/[ ]*$//' -e "$sed_naive_backslashify"`
15802861 }
15812862 #end: func_convert_core_msys_to_w32
15822863
15872868 # func_to_host_file_result to ARG1).
15882869 func_convert_file_check ()
15892870 {
1590 $opt_debug
1591 if test -z "$2" && test -n "$1" ; then
2871 $debug_cmd
2872
2873 if test -z "$2" && test -n "$1"; then
15922874 func_error "Could not determine host file name corresponding to"
1593 func_error " \`$1'"
2875 func_error " '$1'"
15942876 func_error "Continuing, but uninstalled executables may not work."
15952877 # Fallback:
1596 func_to_host_file_result="$1"
2878 func_to_host_file_result=$1
15972879 fi
15982880 }
15992881 # end func_convert_file_check
16052887 # func_to_host_file_result to a simplistic fallback value (see below).
16062888 func_convert_path_check ()
16072889 {
1608 $opt_debug
2890 $debug_cmd
2891
16092892 if test -z "$4" && test -n "$3"; then
16102893 func_error "Could not determine the host path corresponding to"
1611 func_error " \`$3'"
2894 func_error " '$3'"
16122895 func_error "Continuing, but uninstalled executables may not work."
16132896 # Fallback. This is a deliberately simplistic "conversion" and
16142897 # should not be "improved". See libtool.info.
16172900 func_to_host_path_result=`echo "$3" |
16182901 $SED -e "$lt_replace_pathsep_chars"`
16192902 else
1620 func_to_host_path_result="$3"
2903 func_to_host_path_result=$3
16212904 fi
16222905 fi
16232906 }
16292912 # and appending REPL if ORIG matches BACKPAT.
16302913 func_convert_path_front_back_pathsep ()
16312914 {
1632 $opt_debug
2915 $debug_cmd
2916
16332917 case $4 in
1634 $1 ) func_to_host_path_result="$3$func_to_host_path_result"
2918 $1 ) func_to_host_path_result=$3$func_to_host_path_result
16352919 ;;
16362920 esac
16372921 case $4 in
16452929 ##################################################
16462930 # $build to $host FILE NAME CONVERSION FUNCTIONS #
16472931 ##################################################
1648 # invoked via `$to_host_file_cmd ARG'
2932 # invoked via '$to_host_file_cmd ARG'
16492933 #
16502934 # In each case, ARG is the path to be converted from $build to $host format.
16512935 # Result will be available in $func_to_host_file_result.
16562940 # in func_to_host_file_result.
16572941 func_to_host_file ()
16582942 {
1659 $opt_debug
2943 $debug_cmd
2944
16602945 $to_host_file_cmd "$1"
16612946 }
16622947 # end func_to_host_file
16682953 # in (the comma separated) LAZY, no conversion takes place.
16692954 func_to_tool_file ()
16702955 {
1671 $opt_debug
2956 $debug_cmd
2957
16722958 case ,$2, in
16732959 *,"$to_tool_file_cmd",*)
16742960 func_to_tool_file_result=$1
16862972 # Copy ARG to func_to_host_file_result.
16872973 func_convert_file_noop ()
16882974 {
1689 func_to_host_file_result="$1"
2975 func_to_host_file_result=$1
16902976 }
16912977 # end func_convert_file_noop
16922978
16972983 # func_to_host_file_result.
16982984 func_convert_file_msys_to_w32 ()
16992985 {
1700 $opt_debug
1701 func_to_host_file_result="$1"
2986 $debug_cmd
2987
2988 func_to_host_file_result=$1
17022989 if test -n "$1"; then
17032990 func_convert_core_msys_to_w32 "$1"
1704 func_to_host_file_result="$func_convert_core_msys_to_w32_result"
2991 func_to_host_file_result=$func_convert_core_msys_to_w32_result
17052992 fi
17062993 func_convert_file_check "$1" "$func_to_host_file_result"
17072994 }
17133000 # func_to_host_file_result.
17143001 func_convert_file_cygwin_to_w32 ()
17153002 {
1716 $opt_debug
1717 func_to_host_file_result="$1"
3003 $debug_cmd
3004
3005 func_to_host_file_result=$1
17183006 if test -n "$1"; then
17193007 # because $build is cygwin, we call "the" cygpath in $PATH; no need to use
17203008 # LT_CYGPATH in this case.
17303018 # and a working winepath. Returns result in func_to_host_file_result.
17313019 func_convert_file_nix_to_w32 ()
17323020 {
1733 $opt_debug
1734 func_to_host_file_result="$1"
3021 $debug_cmd
3022
3023 func_to_host_file_result=$1
17353024 if test -n "$1"; then
17363025 func_convert_core_file_wine_to_w32 "$1"
1737 func_to_host_file_result="$func_convert_core_file_wine_to_w32_result"
3026 func_to_host_file_result=$func_convert_core_file_wine_to_w32_result
17383027 fi
17393028 func_convert_file_check "$1" "$func_to_host_file_result"
17403029 }
17463035 # Returns result in func_to_host_file_result.
17473036 func_convert_file_msys_to_cygwin ()
17483037 {
1749 $opt_debug
1750 func_to_host_file_result="$1"
3038 $debug_cmd
3039
3040 func_to_host_file_result=$1
17513041 if test -n "$1"; then
17523042 func_convert_core_msys_to_w32 "$1"
17533043 func_cygpath -u "$func_convert_core_msys_to_w32_result"
1754 func_to_host_file_result="$func_cygpath_result"
3044 func_to_host_file_result=$func_cygpath_result
17553045 fi
17563046 func_convert_file_check "$1" "$func_to_host_file_result"
17573047 }
17643054 # in func_to_host_file_result.
17653055 func_convert_file_nix_to_cygwin ()
17663056 {
1767 $opt_debug
1768 func_to_host_file_result="$1"
3057 $debug_cmd
3058
3059 func_to_host_file_result=$1
17693060 if test -n "$1"; then
17703061 # convert from *nix to w32, then use cygpath to convert from w32 to cygwin.
17713062 func_convert_core_file_wine_to_w32 "$1"
17723063 func_cygpath -u "$func_convert_core_file_wine_to_w32_result"
1773 func_to_host_file_result="$func_cygpath_result"
3064 func_to_host_file_result=$func_cygpath_result
17743065 fi
17753066 func_convert_file_check "$1" "$func_to_host_file_result"
17763067 }
17803071 #############################################
17813072 # $build to $host PATH CONVERSION FUNCTIONS #
17823073 #############################################
1783 # invoked via `$to_host_path_cmd ARG'
3074 # invoked via '$to_host_path_cmd ARG'
17843075 #
17853076 # In each case, ARG is the path to be converted from $build to $host format.
17863077 # The result will be available in $func_to_host_path_result.
18043095 to_host_path_cmd=
18053096 func_init_to_host_path_cmd ()
18063097 {
1807 $opt_debug
3098 $debug_cmd
3099
18083100 if test -z "$to_host_path_cmd"; then
18093101 func_stripname 'func_convert_file_' '' "$to_host_file_cmd"
1810 to_host_path_cmd="func_convert_path_${func_stripname_result}"
3102 to_host_path_cmd=func_convert_path_$func_stripname_result
18113103 fi
18123104 }
18133105
18173109 # in func_to_host_path_result.
18183110 func_to_host_path ()
18193111 {
1820 $opt_debug
3112 $debug_cmd
3113
18213114 func_init_to_host_path_cmd
18223115 $to_host_path_cmd "$1"
18233116 }
18283121 # Copy ARG to func_to_host_path_result.
18293122 func_convert_path_noop ()
18303123 {
1831 func_to_host_path_result="$1"
3124 func_to_host_path_result=$1
18323125 }
18333126 # end func_convert_path_noop
18343127
18393132 # func_to_host_path_result.
18403133 func_convert_path_msys_to_w32 ()
18413134 {
1842 $opt_debug
1843 func_to_host_path_result="$1"
3135 $debug_cmd
3136
3137 func_to_host_path_result=$1
18443138 if test -n "$1"; then
18453139 # Remove leading and trailing path separator characters from ARG. MSYS
18463140 # behavior is inconsistent here; cygpath turns them into '.;' and ';.';
18483142 func_stripname : : "$1"
18493143 func_to_host_path_tmp1=$func_stripname_result
18503144 func_convert_core_msys_to_w32 "$func_to_host_path_tmp1"
1851 func_to_host_path_result="$func_convert_core_msys_to_w32_result"
3145 func_to_host_path_result=$func_convert_core_msys_to_w32_result
18523146 func_convert_path_check : ";" \
18533147 "$func_to_host_path_tmp1" "$func_to_host_path_result"
18543148 func_convert_path_front_back_pathsep ":*" "*:" ";" "$1"
18623156 # func_to_host_file_result.
18633157 func_convert_path_cygwin_to_w32 ()
18643158 {
1865 $opt_debug
1866 func_to_host_path_result="$1"
3159 $debug_cmd
3160
3161 func_to_host_path_result=$1
18673162 if test -n "$1"; then
18683163 # See func_convert_path_msys_to_w32:
18693164 func_stripname : : "$1"
18823177 # a working winepath. Returns result in func_to_host_file_result.
18833178 func_convert_path_nix_to_w32 ()
18843179 {
1885 $opt_debug
1886 func_to_host_path_result="$1"
3180 $debug_cmd
3181
3182 func_to_host_path_result=$1
18873183 if test -n "$1"; then
18883184 # See func_convert_path_msys_to_w32:
18893185 func_stripname : : "$1"
18903186 func_to_host_path_tmp1=$func_stripname_result
18913187 func_convert_core_path_wine_to_w32 "$func_to_host_path_tmp1"
1892 func_to_host_path_result="$func_convert_core_path_wine_to_w32_result"
3188 func_to_host_path_result=$func_convert_core_path_wine_to_w32_result
18933189 func_convert_path_check : ";" \
18943190 "$func_to_host_path_tmp1" "$func_to_host_path_result"
18953191 func_convert_path_front_back_pathsep ":*" "*:" ";" "$1"
19033199 # Returns result in func_to_host_file_result.
19043200 func_convert_path_msys_to_cygwin ()
19053201 {
1906 $opt_debug
1907 func_to_host_path_result="$1"
3202 $debug_cmd
3203
3204 func_to_host_path_result=$1
19083205 if test -n "$1"; then
19093206 # See func_convert_path_msys_to_w32:
19103207 func_stripname : : "$1"
19113208 func_to_host_path_tmp1=$func_stripname_result
19123209 func_convert_core_msys_to_w32 "$func_to_host_path_tmp1"
19133210 func_cygpath -u -p "$func_convert_core_msys_to_w32_result"
1914 func_to_host_path_result="$func_cygpath_result"
3211 func_to_host_path_result=$func_cygpath_result
19153212 func_convert_path_check : : \
19163213 "$func_to_host_path_tmp1" "$func_to_host_path_result"
19173214 func_convert_path_front_back_pathsep ":*" "*:" : "$1"
19263223 # func_to_host_file_result.
19273224 func_convert_path_nix_to_cygwin ()
19283225 {
1929 $opt_debug
1930 func_to_host_path_result="$1"
3226 $debug_cmd
3227
3228 func_to_host_path_result=$1
19313229 if test -n "$1"; then
19323230 # Remove leading and trailing path separator characters from
19333231 # ARG. msys behavior is inconsistent here, cygpath turns them
19363234 func_to_host_path_tmp1=$func_stripname_result
19373235 func_convert_core_path_wine_to_w32 "$func_to_host_path_tmp1"
19383236 func_cygpath -u -p "$func_convert_core_path_wine_to_w32_result"
1939 func_to_host_path_result="$func_cygpath_result"
3237 func_to_host_path_result=$func_cygpath_result
19403238 func_convert_path_check : : \
19413239 "$func_to_host_path_tmp1" "$func_to_host_path_result"
19423240 func_convert_path_front_back_pathsep ":*" "*:" : "$1"
19453243 # end func_convert_path_nix_to_cygwin
19463244
19473245
3246 # func_dll_def_p FILE
3247 # True iff FILE is a Windows DLL '.def' file.
3248 # Keep in sync with _LT_DLL_DEF_P in libtool.m4
3249 func_dll_def_p ()
3250 {
3251 $debug_cmd
3252
3253 func_dll_def_p_tmp=`$SED -n \
3254 -e 's/^[ ]*//' \
3255 -e '/^\(;.*\)*$/d' \
3256 -e 's/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p' \
3257 -e q \
3258 "$1"`
3259 test DEF = "$func_dll_def_p_tmp"
3260 }
3261
3262
19483263 # func_mode_compile arg...
19493264 func_mode_compile ()
19503265 {
1951 $opt_debug
3266 $debug_cmd
3267
19523268 # Get the compilation command and the source file.
19533269 base_compile=
1954 srcfile="$nonopt" # always keep a non-empty value in "srcfile"
3270 srcfile=$nonopt # always keep a non-empty value in "srcfile"
19553271 suppress_opt=yes
19563272 suppress_output=
19573273 arg_mode=normal
19643280 case $arg_mode in
19653281 arg )
19663282 # do not "continue". Instead, add this to base_compile
1967 lastarg="$arg"
3283 lastarg=$arg
19683284 arg_mode=normal
19693285 ;;
19703286
19713287 target )
1972 libobj="$arg"
3288 libobj=$arg
19733289 arg_mode=normal
19743290 continue
19753291 ;;
19793295 case $arg in
19803296 -o)
19813297 test -n "$libobj" && \
1982 func_fatal_error "you cannot specify \`-o' more than once"
3298 func_fatal_error "you cannot specify '-o' more than once"
19833299 arg_mode=target
19843300 continue
19853301 ;;
20083324 func_stripname '-Wc,' '' "$arg"
20093325 args=$func_stripname_result
20103326 lastarg=
2011 save_ifs="$IFS"; IFS=','
3327 save_ifs=$IFS; IFS=,
20123328 for arg in $args; do
2013 IFS="$save_ifs"
3329 IFS=$save_ifs
20143330 func_append_quoted lastarg "$arg"
20153331 done
2016 IFS="$save_ifs"
3332 IFS=$save_ifs
20173333 func_stripname ' ' '' "$lastarg"
20183334 lastarg=$func_stripname_result
20193335
20263342 # Accept the current argument as the source file.
20273343 # The previous "srcfile" becomes the current argument.
20283344 #
2029 lastarg="$srcfile"
2030 srcfile="$arg"
3345 lastarg=$srcfile
3346 srcfile=$arg
20313347 ;;
20323348 esac # case $arg
20333349 ;;
20423358 func_fatal_error "you must specify an argument for -Xcompile"
20433359 ;;
20443360 target)
2045 func_fatal_error "you must specify a target with \`-o'"
3361 func_fatal_error "you must specify a target with '-o'"
20463362 ;;
20473363 *)
20483364 # Get the name of the library object.
20493365 test -z "$libobj" && {
20503366 func_basename "$srcfile"
2051 libobj="$func_basename_result"
3367 libobj=$func_basename_result
20523368 }
20533369 ;;
20543370 esac
20683384 case $libobj in
20693385 *.lo) func_lo2o "$libobj"; obj=$func_lo2o_result ;;
20703386 *)
2071 func_fatal_error "cannot determine name of library object from \`$libobj'"
3387 func_fatal_error "cannot determine name of library object from '$libobj'"
20723388 ;;
20733389 esac
20743390
20773393 for arg in $later; do
20783394 case $arg in
20793395 -shared)
2080 test "$build_libtool_libs" != yes && \
2081 func_fatal_configuration "can not build a shared library"
3396 test yes = "$build_libtool_libs" \
3397 || func_fatal_configuration "cannot build a shared library"
20823398 build_old_libs=no
20833399 continue
20843400 ;;
21043420 func_quote_for_eval "$libobj"
21053421 test "X$libobj" != "X$func_quote_for_eval_result" \
21063422 && $ECHO "X$libobj" | $GREP '[]~#^*{};<>?"'"'"' &()|`$[]' \
2107 && func_warning "libobj name \`$libobj' may not contain shell special characters."
3423 && func_warning "libobj name '$libobj' may not contain shell special characters."
21083424 func_dirname_and_basename "$obj" "/" ""
2109 objname="$func_basename_result"
2110 xdir="$func_dirname_result"
2111 lobj=${xdir}$objdir/$objname
3425 objname=$func_basename_result
3426 xdir=$func_dirname_result
3427 lobj=$xdir$objdir/$objname
21123428
21133429 test -z "$base_compile" && \
21143430 func_fatal_help "you must specify a compilation command"
21153431
21163432 # Delete any leftover library objects.
2117 if test "$build_old_libs" = yes; then
3433 if test yes = "$build_old_libs"; then
21183434 removelist="$obj $lobj $libobj ${libobj}T"
21193435 else
21203436 removelist="$lobj $libobj ${libobj}T"
21263442 pic_mode=default
21273443 ;;
21283444 esac
2129 if test "$pic_mode" = no && test "$deplibs_check_method" != pass_all; then
3445 if test no = "$pic_mode" && test pass_all != "$deplibs_check_method"; then
21303446 # non-PIC code in shared libraries is not supported
21313447 pic_mode=default
21323448 fi
21333449
21343450 # Calculate the filename of the output object if compiler does
21353451 # not support -o with -c
2136 if test "$compiler_c_o" = no; then
2137 output_obj=`$ECHO "$srcfile" | $SED 's%^.*/%%; s%\.[^.]*$%%'`.${objext}
2138 lockfile="$output_obj.lock"
3452 if test no = "$compiler_c_o"; then
3453 output_obj=`$ECHO "$srcfile" | $SED 's%^.*/%%; s%\.[^.]*$%%'`.$objext
3454 lockfile=$output_obj.lock
21393455 else
21403456 output_obj=
21413457 need_locks=no
21443460
21453461 # Lock this critical section if it is needed
21463462 # We use this script file to make the link, it avoids creating a new file
2147 if test "$need_locks" = yes; then
3463 if test yes = "$need_locks"; then
21483464 until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do
21493465 func_echo "Waiting for $lockfile to be removed"
21503466 sleep 2
21513467 done
2152 elif test "$need_locks" = warn; then
3468 elif test warn = "$need_locks"; then
21533469 if test -f "$lockfile"; then
21543470 $ECHO "\
21553471 *** ERROR, $lockfile exists and contains:
21573473
21583474 This indicates that another process is trying to use the same
21593475 temporary object file, and libtool could not work around it because
2160 your compiler does not support \`-c' and \`-o' together. If you
3476 your compiler does not support '-c' and '-o' together. If you
21613477 repeat this compilation, it may succeed, by chance, but you had better
21623478 avoid parallel builds (make -j) in this platform, or get a better
21633479 compiler."
21793495 qsrcfile=$func_quote_for_eval_result
21803496
21813497 # Only build a PIC object if we are building libtool libraries.
2182 if test "$build_libtool_libs" = yes; then
3498 if test yes = "$build_libtool_libs"; then
21833499 # Without this assignment, base_compile gets emptied.
21843500 fbsd_hideous_sh_bug=$base_compile
21853501
2186 if test "$pic_mode" != no; then
3502 if test no != "$pic_mode"; then
21873503 command="$base_compile $qsrcfile $pic_flag"
21883504 else
21893505 # Don't build PIC code
22003516 func_show_eval_locale "$command" \
22013517 'test -n "$output_obj" && $RM $removelist; exit $EXIT_FAILURE'
22023518
2203 if test "$need_locks" = warn &&
3519 if test warn = "$need_locks" &&
22043520 test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
22053521 $ECHO "\
22063522 *** ERROR, $lockfile contains:
22113527
22123528 This indicates that another process is trying to use the same
22133529 temporary object file, and libtool could not work around it because
2214 your compiler does not support \`-c' and \`-o' together. If you
3530 your compiler does not support '-c' and '-o' together. If you
22153531 repeat this compilation, it may succeed, by chance, but you had better
22163532 avoid parallel builds (make -j) in this platform, or get a better
22173533 compiler."
22273543 fi
22283544
22293545 # Allow error messages only from the first compilation.
2230 if test "$suppress_opt" = yes; then
3546 if test yes = "$suppress_opt"; then
22313547 suppress_output=' >/dev/null 2>&1'
22323548 fi
22333549 fi
22343550
22353551 # Only build a position-dependent object if we build old libraries.
2236 if test "$build_old_libs" = yes; then
2237 if test "$pic_mode" != yes; then
3552 if test yes = "$build_old_libs"; then
3553 if test yes != "$pic_mode"; then
22383554 # Don't build PIC code
22393555 command="$base_compile $qsrcfile$pie_flag"
22403556 else
22413557 command="$base_compile $qsrcfile $pic_flag"
22423558 fi
2243 if test "$compiler_c_o" = yes; then
3559 if test yes = "$compiler_c_o"; then
22443560 func_append command " -o $obj"
22453561 fi
22463562
22493565 func_show_eval_locale "$command" \
22503566 '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE'
22513567
2252 if test "$need_locks" = warn &&
3568 if test warn = "$need_locks" &&
22533569 test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
22543570 $ECHO "\
22553571 *** ERROR, $lockfile contains:
22603576
22613577 This indicates that another process is trying to use the same
22623578 temporary object file, and libtool could not work around it because
2263 your compiler does not support \`-c' and \`-o' together. If you
3579 your compiler does not support '-c' and '-o' together. If you
22643580 repeat this compilation, it may succeed, by chance, but you had better
22653581 avoid parallel builds (make -j) in this platform, or get a better
22663582 compiler."
22803596 func_write_libtool_object "$libobj" "$objdir/$objname" "$objname"
22813597
22823598 # Unlock the critical section if it was locked
2283 if test "$need_locks" != no; then
3599 if test no != "$need_locks"; then
22843600 removelist=$lockfile
22853601 $RM "$lockfile"
22863602 fi
22903606 }
22913607
22923608 $opt_help || {
2293 test "$opt_mode" = compile && func_mode_compile ${1+"$@"}
3609 test compile = "$opt_mode" && func_mode_compile ${1+"$@"}
22943610 }
22953611
22963612 func_mode_help ()
23103626 Remove files from the build directory.
23113627
23123628 RM is the name of the program to use to delete files associated with each FILE
2313 (typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
3629 (typically '/bin/rm'). RM-OPTIONS are options (such as '-f') to be passed
23143630 to RM.
23153631
23163632 If FILE is a libtool library, object or program, all the files associated
23293645 -no-suppress do not suppress compiler output for multiple passes
23303646 -prefer-pic try to build PIC objects only
23313647 -prefer-non-pic try to build non-PIC objects only
2332 -shared do not build a \`.o' file suitable for static linking
2333 -static only build a \`.o' file suitable for static linking
3648 -shared do not build a '.o' file suitable for static linking
3649 -static only build a '.o' file suitable for static linking
23343650 -Wc,FLAG pass FLAG directly to the compiler
23353651
2336 COMPILE-COMMAND is a command to be used in creating a \`standard' object file
3652 COMPILE-COMMAND is a command to be used in creating a 'standard' object file
23373653 from the given SOURCEFILE.
23383654
23393655 The output file name is determined by removing the directory component from
2340 SOURCEFILE, then substituting the C source code suffix \`.c' with the
2341 library object suffix, \`.lo'."
3656 SOURCEFILE, then substituting the C source code suffix '.c' with the
3657 library object suffix, '.lo'."
23423658 ;;
23433659
23443660 execute)
23513667
23523668 -dlopen FILE add the directory containing FILE to the library path
23533669
2354 This mode sets the library path environment variable according to \`-dlopen'
3670 This mode sets the library path environment variable according to '-dlopen'
23553671 flags.
23563672
23573673 If any of the ARGS are libtool executable wrappers, then they are translated
23703686 Each LIBDIR is a directory that contains libtool libraries.
23713687
23723688 The commands that this mode executes may require superuser privileges. Use
2373 the \`--dry-run' option if you just want to see what would be executed."
3689 the '--dry-run' option if you just want to see what would be executed."
23743690 ;;
23753691
23763692 install)
23803696 Install executables or libraries.
23813697
23823698 INSTALL-COMMAND is the installation command. The first component should be
2383 either the \`install' or \`cp' program.
3699 either the 'install' or 'cp' program.
23843700
23853701 The following components of INSTALL-COMMAND are treated specially:
23863702
24063722 -avoid-version do not add a version suffix if possible
24073723 -bindir BINDIR specify path to binaries directory (for systems where
24083724 libraries must be found in the PATH setting at runtime)
2409 -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime
3725 -dlopen FILE '-dlpreopen' FILE if it cannot be dlopened at runtime
24103726 -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
24113727 -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
24123728 -export-symbols SYMFILE
24203736 -no-install link a not-installable executable
24213737 -no-undefined declare that a library does not refer to external symbols
24223738 -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
2423 -objectlist FILE Use a list of object files found in FILE to specify objects
3739 -objectlist FILE use a list of object files found in FILE to specify objects
3740 -os2dllname NAME force a short DLL name on OS/2 (no effect on other OSes)
24243741 -precious-files-regex REGEX
24253742 don't remove output files matching REGEX
24263743 -release RELEASE specify package release information
24403757 -Xlinker FLAG pass linker-specific FLAG directly to the linker
24413758 -XCClinker FLAG pass link-specific FLAG to the compiler driver (CC)
24423759
2443 All other options (arguments beginning with \`-') are ignored.
2444
2445 Every other argument is treated as a filename. Files ending in \`.la' are
3760 All other options (arguments beginning with '-') are ignored.
3761
3762 Every other argument is treated as a filename. Files ending in '.la' are
24463763 treated as uninstalled libtool libraries, other files are standard or library
24473764 object files.
24483765
2449 If the OUTPUT-FILE ends in \`.la', then a libtool library is created,
2450 only library objects (\`.lo' files) may be specified, and \`-rpath' is
3766 If the OUTPUT-FILE ends in '.la', then a libtool library is created,
3767 only library objects ('.lo' files) may be specified, and '-rpath' is
24513768 required, except when creating a convenience library.
24523769
2453 If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created
2454 using \`ar' and \`ranlib', or on Windows using \`lib'.
2455
2456 If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file
3770 If OUTPUT-FILE ends in '.a' or '.lib', then a standard library is created
3771 using 'ar' and 'ranlib', or on Windows using 'lib'.
3772
3773 If OUTPUT-FILE ends in '.lo' or '.$objext', then a reloadable object file
24573774 is created, otherwise an executable program is created."
24583775 ;;
24593776
24643781 Remove libraries from an installation directory.
24653782
24663783 RM is the name of the program to use to delete files associated with each FILE
2467 (typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
3784 (typically '/bin/rm'). RM-OPTIONS are options (such as '-f') to be passed
24683785 to RM.
24693786
24703787 If FILE is a libtool library, all the files associated with it are deleted.
24723789 ;;
24733790
24743791 *)
2475 func_fatal_help "invalid operation mode \`$opt_mode'"
3792 func_fatal_help "invalid operation mode '$opt_mode'"
24763793 ;;
24773794 esac
24783795
24793796 echo
2480 $ECHO "Try \`$progname --help' for more information about other modes."
3797 $ECHO "Try '$progname --help' for more information about other modes."
24813798 }
24823799
24833800 # Now that we've collected a possible --mode arg, show help if necessary
24843801 if $opt_help; then
2485 if test "$opt_help" = :; then
3802 if test : = "$opt_help"; then
24863803 func_mode_help
24873804 else
24883805 {
24903807 for opt_mode in compile link execute install finish uninstall clean; do
24913808 func_mode_help
24923809 done
2493 } | sed -n '1p; 2,$s/^Usage:/ or: /p'
3810 } | $SED -n '1p; 2,$s/^Usage:/ or: /p'
24943811 {
24953812 func_help noexit
24963813 for opt_mode in compile link execute install finish uninstall clean; do
24983815 func_mode_help
24993816 done
25003817 } |
2501 sed '1d
3818 $SED '1d
25023819 /^When reporting/,/^Report/{
25033820 H
25043821 d
25153832 # func_mode_execute arg...
25163833 func_mode_execute ()
25173834 {
2518 $opt_debug
3835 $debug_cmd
3836
25193837 # The first argument is the command name.
2520 cmd="$nonopt"
3838 cmd=$nonopt
25213839 test -z "$cmd" && \
25223840 func_fatal_help "you must specify a COMMAND"
25233841
25243842 # Handle -dlopen flags immediately.
25253843 for file in $opt_dlopen; do
25263844 test -f "$file" \
2527 || func_fatal_help "\`$file' is not a file"
3845 || func_fatal_help "'$file' is not a file"
25283846
25293847 dir=
25303848 case $file in
25343852
25353853 # Check to see that this really is a libtool archive.
25363854 func_lalib_unsafe_p "$file" \
2537 || func_fatal_help "\`$lib' is not a valid libtool archive"
3855 || func_fatal_help "'$lib' is not a valid libtool archive"
25383856
25393857 # Read the libtool library.
25403858 dlname=
25453863 if test -z "$dlname"; then
25463864 # Warn if it was a shared library.
25473865 test -n "$library_names" && \
2548 func_warning "\`$file' was not linked with \`-export-dynamic'"
3866 func_warning "'$file' was not linked with '-export-dynamic'"
25493867 continue
25503868 fi
25513869
25523870 func_dirname "$file" "" "."
2553 dir="$func_dirname_result"
3871 dir=$func_dirname_result
25543872
25553873 if test -f "$dir/$objdir/$dlname"; then
25563874 func_append dir "/$objdir"
25573875 else
25583876 if test ! -f "$dir/$dlname"; then
2559 func_fatal_error "cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'"
3877 func_fatal_error "cannot find '$dlname' in '$dir' or '$dir/$objdir'"
25603878 fi
25613879 fi
25623880 ;;
25643882 *.lo)
25653883 # Just add the directory containing the .lo file.
25663884 func_dirname "$file" "" "."
2567 dir="$func_dirname_result"
3885 dir=$func_dirname_result
25683886 ;;
25693887
25703888 *)
2571 func_warning "\`-dlopen' is ignored for non-libtool libraries and objects"
3889 func_warning "'-dlopen' is ignored for non-libtool libraries and objects"
25723890 continue
25733891 ;;
25743892 esac
25753893
25763894 # Get the absolute pathname.
25773895 absdir=`cd "$dir" && pwd`
2578 test -n "$absdir" && dir="$absdir"
3896 test -n "$absdir" && dir=$absdir
25793897
25803898 # Now add the directory to shlibpath_var.
25813899 if eval "test -z \"\$$shlibpath_var\""; then
25873905
25883906 # This variable tells wrapper scripts just to set shlibpath_var
25893907 # rather than running their programs.
2590 libtool_execute_magic="$magic"
3908 libtool_execute_magic=$magic
25913909
25923910 # Check if any of the arguments is a wrapper script.
25933911 args=
26003918 if func_ltwrapper_script_p "$file"; then
26013919 func_source "$file"
26023920 # Transform arg to wrapped name.
2603 file="$progdir/$program"
3921 file=$progdir/$program
26043922 elif func_ltwrapper_executable_p "$file"; then
26053923 func_ltwrapper_scriptname "$file"
26063924 func_source "$func_ltwrapper_scriptname_result"
26073925 # Transform arg to wrapped name.
2608 file="$progdir/$program"
3926 file=$progdir/$program
26093927 fi
26103928 ;;
26113929 esac
26133931 func_append_quoted args "$file"
26143932 done
26153933
2616 if test "X$opt_dry_run" = Xfalse; then
3934 if $opt_dry_run; then
3935 # Display what would be done.
3936 if test -n "$shlibpath_var"; then
3937 eval "\$ECHO \"\$shlibpath_var=\$$shlibpath_var\""
3938 echo "export $shlibpath_var"
3939 fi
3940 $ECHO "$cmd$args"
3941 exit $EXIT_SUCCESS
3942 else
26173943 if test -n "$shlibpath_var"; then
26183944 # Export the shlibpath_var.
26193945 eval "export $shlibpath_var"
26303956 done
26313957
26323958 # Now prepare to actually exec the command.
2633 exec_cmd="\$cmd$args"
2634 else
2635 # Display what would be done.
2636 if test -n "$shlibpath_var"; then
2637 eval "\$ECHO \"\$shlibpath_var=\$$shlibpath_var\""
2638 echo "export $shlibpath_var"
2639 fi
2640 $ECHO "$cmd$args"
2641 exit $EXIT_SUCCESS
3959 exec_cmd=\$cmd$args
26423960 fi
26433961 }
26443962
2645 test "$opt_mode" = execute && func_mode_execute ${1+"$@"}
3963 test execute = "$opt_mode" && func_mode_execute ${1+"$@"}
26463964
26473965
26483966 # func_mode_finish arg...
26493967 func_mode_finish ()
26503968 {
2651 $opt_debug
3969 $debug_cmd
3970
26523971 libs=
26533972 libdirs=
26543973 admincmds=
26623981 if func_lalib_unsafe_p "$opt"; then
26633982 func_append libs " $opt"
26643983 else
2665 func_warning "\`$opt' is not a valid libtool archive"
3984 func_warning "'$opt' is not a valid libtool archive"
26663985 fi
26673986
26683987 else
2669 func_fatal_error "invalid argument \`$opt'"
3988 func_fatal_error "invalid argument '$opt'"
26703989 fi
26713990 done
26723991
26814000 # Remove sysroot references
26824001 if $opt_dry_run; then
26834002 for lib in $libs; do
2684 echo "removing references to $lt_sysroot and \`=' prefixes from $lib"
4003 echo "removing references to $lt_sysroot and '=' prefixes from $lib"
26854004 done
26864005 else
26874006 tmpdir=`func_mktempdir`
26884007 for lib in $libs; do
2689 sed -e "${sysroot_cmd} s/\([ ']-[LR]\)=/\1/g; s/\([ ']\)=/\1/g" $lib \
4008 $SED -e "$sysroot_cmd s/\([ ']-[LR]\)=/\1/g; s/\([ ']\)=/\1/g" $lib \
26904009 > $tmpdir/tmp-la
26914010 mv -f $tmpdir/tmp-la $lib
26924011 done
27114030 fi
27124031
27134032 # Exit here if they wanted silent mode.
2714 $opt_silent && exit $EXIT_SUCCESS
4033 $opt_quiet && exit $EXIT_SUCCESS
27154034
27164035 if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
27174036 echo "----------------------------------------------------------------------"
27224041 echo
27234042 echo "If you ever happen to want to link against installed libraries"
27244043 echo "in a given directory, LIBDIR, you must either use libtool, and"
2725 echo "specify the full pathname of the library, or use the \`-LLIBDIR'"
4044 echo "specify the full pathname of the library, or use the '-LLIBDIR'"
27264045 echo "flag during linking and do at least one of the following:"
27274046 if test -n "$shlibpath_var"; then
2728 echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
4047 echo " - add LIBDIR to the '$shlibpath_var' environment variable"
27294048 echo " during execution"
27304049 fi
27314050 if test -n "$runpath_var"; then
2732 echo " - add LIBDIR to the \`$runpath_var' environment variable"
4051 echo " - add LIBDIR to the '$runpath_var' environment variable"
27334052 echo " during linking"
27344053 fi
27354054 if test -n "$hardcode_libdir_flag_spec"; then
27364055 libdir=LIBDIR
27374056 eval flag=\"$hardcode_libdir_flag_spec\"
27384057
2739 $ECHO " - use the \`$flag' linker flag"
4058 $ECHO " - use the '$flag' linker flag"
27404059 fi
27414060 if test -n "$admincmds"; then
27424061 $ECHO " - have your system administrator run these commands:$admincmds"
27434062 fi
27444063 if test -f /etc/ld.so.conf; then
2745 echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
4064 echo " - have your system administrator add LIBDIR to '/etc/ld.so.conf'"
27464065 fi
27474066 echo
27484067
27614080 exit $EXIT_SUCCESS
27624081 }
27634082
2764 test "$opt_mode" = finish && func_mode_finish ${1+"$@"}
4083 test finish = "$opt_mode" && func_mode_finish ${1+"$@"}
27654084
27664085
27674086 # func_mode_install arg...
27684087 func_mode_install ()
27694088 {
2770 $opt_debug
4089 $debug_cmd
4090
27714091 # There may be an optional sh(1) argument at the beginning of
27724092 # install_prog (especially on Windows NT).
2773 if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
4093 if test "$SHELL" = "$nonopt" || test /bin/sh = "$nonopt" ||
27744094 # Allow the use of GNU shtool's install command.
2775 case $nonopt in *shtool*) :;; *) false;; esac; then
4095 case $nonopt in *shtool*) :;; *) false;; esac
4096 then
27764097 # Aesthetically quote it.
27774098 func_quote_for_eval "$nonopt"
27784099 install_prog="$func_quote_for_eval_result "
27994120 opts=
28004121 prev=
28014122 install_type=
2802 isdir=no
4123 isdir=false
28034124 stripme=
28044125 no_mode=:
28054126 for arg
28124133 fi
28134134
28144135 case $arg in
2815 -d) isdir=yes ;;
4136 -d) isdir=: ;;
28164137 -f)
28174138 if $install_cp; then :; else
28184139 prev=$arg
28304151 *)
28314152 # If the previous option needed an argument, then skip it.
28324153 if test -n "$prev"; then
2833 if test "x$prev" = x-m && test -n "$install_override_mode"; then
4154 if test X-m = "X$prev" && test -n "$install_override_mode"; then
28344155 arg2=$install_override_mode
28354156 no_mode=false
28364157 fi
28554176 func_fatal_help "you must specify an install program"
28564177
28574178 test -n "$prev" && \
2858 func_fatal_help "the \`$prev' option requires an argument"
4179 func_fatal_help "the '$prev' option requires an argument"
28594180
28604181 if test -n "$install_override_mode" && $no_mode; then
28614182 if $install_cp; then :; else
28774198 dest=$func_stripname_result
28784199
28794200 # Check to see that the destination is a directory.
2880 test -d "$dest" && isdir=yes
2881 if test "$isdir" = yes; then
2882 destdir="$dest"
4201 test -d "$dest" && isdir=:
4202 if $isdir; then
4203 destdir=$dest
28834204 destname=
28844205 else
28854206 func_dirname_and_basename "$dest" "" "."
2886 destdir="$func_dirname_result"
2887 destname="$func_basename_result"
4207 destdir=$func_dirname_result
4208 destname=$func_basename_result
28884209
28894210 # Not a directory, so check to see that there is only one file specified.
28904211 set dummy $files; shift
28914212 test "$#" -gt 1 && \
2892 func_fatal_help "\`$dest' is not a directory"
4213 func_fatal_help "'$dest' is not a directory"
28934214 fi
28944215 case $destdir in
28954216 [\\/]* | [A-Za-z]:[\\/]*) ;;
28984219 case $file in
28994220 *.lo) ;;
29004221 *)
2901 func_fatal_help "\`$destdir' must be an absolute directory name"
4222 func_fatal_help "'$destdir' must be an absolute directory name"
29024223 ;;
29034224 esac
29044225 done
29074228
29084229 # This variable tells wrapper scripts just to set variables rather
29094230 # than running their programs.
2910 libtool_install_magic="$magic"
4231 libtool_install_magic=$magic
29114232
29124233 staticlibs=
29134234 future_libdirs=
29274248
29284249 # Check to see that this really is a libtool archive.
29294250 func_lalib_unsafe_p "$file" \
2930 || func_fatal_help "\`$file' is not a valid libtool archive"
4251 || func_fatal_help "'$file' is not a valid libtool archive"
29314252
29324253 library_names=
29334254 old_library=
29494270 fi
29504271
29514272 func_dirname "$file" "/" ""
2952 dir="$func_dirname_result"
4273 dir=$func_dirname_result
29534274 func_append dir "$objdir"
29544275
29554276 if test -n "$relink_command"; then
29634284 # are installed into $libdir/../bin (currently, that works fine)
29644285 # but it's something to keep an eye on.
29654286 test "$inst_prefix_dir" = "$destdir" && \
2966 func_fatal_error "error: cannot install \`$file' to a directory not ending in $libdir"
4287 func_fatal_error "error: cannot install '$file' to a directory not ending in $libdir"
29674288
29684289 if test -n "$inst_prefix_dir"; then
29694290 # Stick the inst_prefix_dir data into the link command.
29724293 relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%%"`
29734294 fi
29744295
2975 func_warning "relinking \`$file'"
4296 func_warning "relinking '$file'"
29764297 func_show_eval "$relink_command" \
2977 'func_fatal_error "error: relink \`$file'\'' with the above command before installing it"'
4298 'func_fatal_error "error: relink '\''$file'\'' with the above command before installing it"'
29784299 fi
29794300
29804301 # See the names of the shared library.
29814302 set dummy $library_names; shift
29824303 if test -n "$1"; then
2983 realname="$1"
4304 realname=$1
29844305 shift
29854306
2986 srcname="$realname"
2987 test -n "$relink_command" && srcname="$realname"T
4307 srcname=$realname
4308 test -n "$relink_command" && srcname=${realname}T
29884309
29894310 # Install the shared library and build the symlinks.
29904311 func_show_eval "$install_shared_prog $dir/$srcname $destdir/$realname" \
29914312 'exit $?'
2992 tstripme="$stripme"
4313 tstripme=$stripme
29934314 case $host_os in
29944315 cygwin* | mingw* | pw32* | cegcc*)
29954316 case $realname in
29964317 *.dll.a)
2997 tstripme=""
4318 tstripme=
4319 ;;
4320 esac
4321 ;;
4322 os2*)
4323 case $realname in
4324 *_dll.a)
4325 tstripme=
29984326 ;;
29994327 esac
30004328 ;;
30054333
30064334 if test "$#" -gt 0; then
30074335 # Delete the old symlinks, and create new ones.
3008 # Try `ln -sf' first, because the `ln' binary might depend on
4336 # Try 'ln -sf' first, because the 'ln' binary might depend on
30094337 # the symlink we replace! Solaris /bin/ln does not understand -f,
30104338 # so we also need to try rm && ln -s.
30114339 for linkname
30164344 fi
30174345
30184346 # Do each command in the postinstall commands.
3019 lib="$destdir/$realname"
4347 lib=$destdir/$realname
30204348 func_execute_cmds "$postinstall_cmds" 'exit $?'
30214349 fi
30224350
30234351 # Install the pseudo-library for information purposes.
30244352 func_basename "$file"
3025 name="$func_basename_result"
3026 instname="$dir/$name"i
4353 name=$func_basename_result
4354 instname=$dir/${name}i
30274355 func_show_eval "$install_prog $instname $destdir/$name" 'exit $?'
30284356
30294357 # Maybe install the static library, too.
30354363
30364364 # Figure out destination file name, if it wasn't already specified.
30374365 if test -n "$destname"; then
3038 destfile="$destdir/$destname"
4366 destfile=$destdir/$destname
30394367 else
30404368 func_basename "$file"
3041 destfile="$func_basename_result"
3042 destfile="$destdir/$destfile"
4369 destfile=$func_basename_result
4370 destfile=$destdir/$destfile
30434371 fi
30444372
30454373 # Deduce the name of the destination old-style object file.
30494377 staticdest=$func_lo2o_result
30504378 ;;
30514379 *.$objext)
3052 staticdest="$destfile"
4380 staticdest=$destfile
30534381 destfile=
30544382 ;;
30554383 *)
3056 func_fatal_help "cannot copy a libtool object to \`$destfile'"
4384 func_fatal_help "cannot copy a libtool object to '$destfile'"
30574385 ;;
30584386 esac
30594387
30624390 func_show_eval "$install_prog $file $destfile" 'exit $?'
30634391
30644392 # Install the old object if enabled.
3065 if test "$build_old_libs" = yes; then
4393 if test yes = "$build_old_libs"; then
30664394 # Deduce the name of the old-style object file.
30674395 func_lo2o "$file"
30684396 staticobj=$func_lo2o_result
30744402 *)
30754403 # Figure out destination file name, if it wasn't already specified.
30764404 if test -n "$destname"; then
3077 destfile="$destdir/$destname"
4405 destfile=$destdir/$destname
30784406 else
30794407 func_basename "$file"
3080 destfile="$func_basename_result"
3081 destfile="$destdir/$destfile"
4408 destfile=$func_basename_result
4409 destfile=$destdir/$destfile
30824410 fi
30834411
30844412 # If the file is missing, and there is a .exe on the end, strip it
30854413 # because it is most likely a libtool script we actually want to
30864414 # install
3087 stripped_ext=""
4415 stripped_ext=
30884416 case $file in
30894417 *.exe)
30904418 if test ! -f "$file"; then
30914419 func_stripname '' '.exe' "$file"
30924420 file=$func_stripname_result
3093 stripped_ext=".exe"
4421 stripped_ext=.exe
30944422 fi
30954423 ;;
30964424 esac
31184446
31194447 # Check the variables that should have been set.
31204448 test -z "$generated_by_libtool_version" && \
3121 func_fatal_error "invalid libtool wrapper script \`$wrapper'"
3122
3123 finalize=yes
4449 func_fatal_error "invalid libtool wrapper script '$wrapper'"
4450
4451 finalize=:
31244452 for lib in $notinst_deplibs; do
31254453 # Check to see that each library is installed.
31264454 libdir=
31274455 if test -f "$lib"; then
31284456 func_source "$lib"
31294457 fi
3130 libfile="$libdir/"`$ECHO "$lib" | $SED 's%^.*/%%g'` ### testsuite: skip nested quoting test
4458 libfile=$libdir/`$ECHO "$lib" | $SED 's%^.*/%%g'`
31314459 if test -n "$libdir" && test ! -f "$libfile"; then
3132 func_warning "\`$lib' has not been installed in \`$libdir'"
3133 finalize=no
4460 func_warning "'$lib' has not been installed in '$libdir'"
4461 finalize=false
31344462 fi
31354463 done
31364464
31384466 func_source "$wrapper"
31394467
31404468 outputname=
3141 if test "$fast_install" = no && test -n "$relink_command"; then
4469 if test no = "$fast_install" && test -n "$relink_command"; then
31424470 $opt_dry_run || {
3143 if test "$finalize" = yes; then
4471 if $finalize; then
31444472 tmpdir=`func_mktempdir`
31454473 func_basename "$file$stripped_ext"
3146 file="$func_basename_result"
3147 outputname="$tmpdir/$file"
4474 file=$func_basename_result
4475 outputname=$tmpdir/$file
31484476 # Replace the output file specification.
31494477 relink_command=`$ECHO "$relink_command" | $SED 's%@OUTPUT@%'"$outputname"'%g'`
31504478
3151 $opt_silent || {
4479 $opt_quiet || {
31524480 func_quote_for_expand "$relink_command"
31534481 eval "func_echo $func_quote_for_expand_result"
31544482 }
31554483 if eval "$relink_command"; then :
31564484 else
3157 func_error "error: relink \`$file' with the above command before installing it"
4485 func_error "error: relink '$file' with the above command before installing it"
31584486 $opt_dry_run || ${RM}r "$tmpdir"
31594487 continue
31604488 fi
3161 file="$outputname"
4489 file=$outputname
31624490 else
3163 func_warning "cannot relink \`$file'"
4491 func_warning "cannot relink '$file'"
31644492 fi
31654493 }
31664494 else
31974525
31984526 for file in $staticlibs; do
31994527 func_basename "$file"
3200 name="$func_basename_result"
4528 name=$func_basename_result
32014529
32024530 # Set up the ranlib parameters.
3203 oldlib="$destdir/$name"
4531 oldlib=$destdir/$name
32044532 func_to_tool_file "$oldlib" func_convert_file_msys_to_w32
32054533 tool_oldlib=$func_to_tool_file_result
32064534
32154543 done
32164544
32174545 test -n "$future_libdirs" && \
3218 func_warning "remember to run \`$progname --finish$future_libdirs'"
4546 func_warning "remember to run '$progname --finish$future_libdirs'"
32194547
32204548 if test -n "$current_libdirs"; then
32214549 # Maybe just do a dry run.
32224550 $opt_dry_run && current_libdirs=" -n$current_libdirs"
3223 exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs'
4551 exec_cmd='$SHELL "$progpath" $preserve_args --finish$current_libdirs'
32244552 else
32254553 exit $EXIT_SUCCESS
32264554 fi
32274555 }
32284556
3229 test "$opt_mode" = install && func_mode_install ${1+"$@"}
4557 test install = "$opt_mode" && func_mode_install ${1+"$@"}
32304558
32314559
32324560 # func_generate_dlsyms outputname originator pic_p
32344562 # a dlpreopen symbol table.
32354563 func_generate_dlsyms ()
32364564 {
3237 $opt_debug
3238 my_outputname="$1"
3239 my_originator="$2"
3240 my_pic_p="${3-no}"
3241 my_prefix=`$ECHO "$my_originator" | sed 's%[^a-zA-Z0-9]%_%g'`
4565 $debug_cmd
4566
4567 my_outputname=$1
4568 my_originator=$2
4569 my_pic_p=${3-false}
4570 my_prefix=`$ECHO "$my_originator" | $SED 's%[^a-zA-Z0-9]%_%g'`
32424571 my_dlsyms=
32434572
3244 if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
4573 if test -n "$dlfiles$dlprefiles" || test no != "$dlself"; then
32454574 if test -n "$NM" && test -n "$global_symbol_pipe"; then
3246 my_dlsyms="${my_outputname}S.c"
4575 my_dlsyms=${my_outputname}S.c
32474576 else
32484577 func_error "not configured to extract global symbols from dlpreopened files"
32494578 fi
32544583 "") ;;
32554584 *.c)
32564585 # Discover the nlist of each of the dlfiles.
3257 nlist="$output_objdir/${my_outputname}.nm"
4586 nlist=$output_objdir/$my_outputname.nm
32584587
32594588 func_show_eval "$RM $nlist ${nlist}S ${nlist}T"
32604589
32624591 func_verbose "creating $output_objdir/$my_dlsyms"
32634592
32644593 $opt_dry_run || $ECHO > "$output_objdir/$my_dlsyms" "\
3265 /* $my_dlsyms - symbol resolution table for \`$my_outputname' dlsym emulation. */
3266 /* Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION */
4594 /* $my_dlsyms - symbol resolution table for '$my_outputname' dlsym emulation. */
4595 /* Generated by $PROGRAM (GNU $PACKAGE) $VERSION */
32674596
32684597 #ifdef __cplusplus
32694598 extern \"C\" {
32704599 #endif
32714600
3272 #if defined(__GNUC__) && (((__GNUC__ == 4) && (__GNUC_MINOR__ >= 4)) || (__GNUC__ > 4))
4601 #if defined __GNUC__ && (((__GNUC__ == 4) && (__GNUC_MINOR__ >= 4)) || (__GNUC__ > 4))
32734602 #pragma GCC diagnostic ignored \"-Wstrict-prototypes\"
32744603 #endif
32754604
32764605 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
3277 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
3278 /* DATA imports from DLLs on WIN32 con't be const, because runtime
4606 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
4607 /* DATA imports from DLLs on WIN32 can't be const, because runtime
32794608 relocations are performed -- see ld's documentation on pseudo-relocs. */
32804609 # define LT_DLSYM_CONST
3281 #elif defined(__osf__)
4610 #elif defined __osf__
32824611 /* This system does not cope well with relocations in const data. */
32834612 # define LT_DLSYM_CONST
32844613 #else
32854614 # define LT_DLSYM_CONST const
32864615 #endif
32874616
4617 #define STREQ(s1, s2) (strcmp ((s1), (s2)) == 0)
4618
32884619 /* External symbol declarations for the compiler. */\
32894620 "
32904621
3291 if test "$dlself" = yes; then
3292 func_verbose "generating symbol list for \`$output'"
4622 if test yes = "$dlself"; then
4623 func_verbose "generating symbol list for '$output'"
32934624
32944625 $opt_dry_run || echo ': @PROGRAM@ ' > "$nlist"
32954626
32974628 progfiles=`$ECHO "$objs$old_deplibs" | $SP2NL | $SED "$lo2o" | $NL2SP`
32984629 for progfile in $progfiles; do
32994630 func_to_tool_file "$progfile" func_convert_file_msys_to_w32
3300 func_verbose "extracting global C symbols from \`$func_to_tool_file_result'"
4631 func_verbose "extracting global C symbols from '$func_to_tool_file_result'"
33014632 $opt_dry_run || eval "$NM $func_to_tool_file_result | $global_symbol_pipe >> '$nlist'"
33024633 done
33034634
33174648
33184649 # Prepare the list of exported symbols
33194650 if test -z "$export_symbols"; then
3320 export_symbols="$output_objdir/$outputname.exp"
4651 export_symbols=$output_objdir/$outputname.exp
33214652 $opt_dry_run || {
33224653 $RM $export_symbols
3323 eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
4654 eval "$SED -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
33244655 case $host in
33254656 *cygwin* | *mingw* | *cegcc* )
33264657 eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
33304661 }
33314662 else
33324663 $opt_dry_run || {
3333 eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
4664 eval "$SED -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
33344665 eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
33354666 eval '$MV "$nlist"T "$nlist"'
33364667 case $host in
33444675 fi
33454676
33464677 for dlprefile in $dlprefiles; do
3347 func_verbose "extracting global C symbols from \`$dlprefile'"
4678 func_verbose "extracting global C symbols from '$dlprefile'"
33484679 func_basename "$dlprefile"
3349 name="$func_basename_result"
4680 name=$func_basename_result
33504681 case $host in
33514682 *cygwin* | *mingw* | *cegcc* )
33524683 # if an import library, we need to obtain dlname
33534684 if func_win32_import_lib_p "$dlprefile"; then
33544685 func_tr_sh "$dlprefile"
33554686 eval "curr_lafile=\$libfile_$func_tr_sh_result"
3356 dlprefile_dlbasename=""
4687 dlprefile_dlbasename=
33574688 if test -n "$curr_lafile" && func_lalib_p "$curr_lafile"; then
33584689 # Use subshell, to avoid clobbering current variable values
33594690 dlprefile_dlname=`source "$curr_lafile" && echo "$dlname"`
3360 if test -n "$dlprefile_dlname" ; then
4691 if test -n "$dlprefile_dlname"; then
33614692 func_basename "$dlprefile_dlname"
3362 dlprefile_dlbasename="$func_basename_result"
4693 dlprefile_dlbasename=$func_basename_result
33634694 else
33644695 # no lafile. user explicitly requested -dlpreopen <import library>.
33654696 $sharedlib_from_linklib_cmd "$dlprefile"
33674698 fi
33684699 fi
33694700 $opt_dry_run || {
3370 if test -n "$dlprefile_dlbasename" ; then
4701 if test -n "$dlprefile_dlbasename"; then
33714702 eval '$ECHO ": $dlprefile_dlbasename" >> "$nlist"'
33724703 else
33734704 func_warning "Could not compute DLL name from $name"
34234754 echo '/* NONE */' >> "$output_objdir/$my_dlsyms"
34244755 fi
34254756
4757 func_show_eval '$RM "${nlist}I"'
4758 if test -n "$global_symbol_to_import"; then
4759 eval "$global_symbol_to_import"' < "$nlist"S > "$nlist"I'
4760 fi
4761
34264762 echo >> "$output_objdir/$my_dlsyms" "\
34274763
34284764 /* The mapping between symbol names and symbols. */
34314767 void *address;
34324768 } lt_dlsymlist;
34334769 extern LT_DLSYM_CONST lt_dlsymlist
3434 lt_${my_prefix}_LTX_preloaded_symbols[];
4770 lt_${my_prefix}_LTX_preloaded_symbols[];\
4771 "
4772
4773 if test -s "$nlist"I; then
4774 echo >> "$output_objdir/$my_dlsyms" "\
4775 static void lt_syminit(void)
4776 {
4777 LT_DLSYM_CONST lt_dlsymlist *symbol = lt_${my_prefix}_LTX_preloaded_symbols;
4778 for (; symbol->name; ++symbol)
4779 {"
4780 $SED 's/.*/ if (STREQ (symbol->name, \"&\")) symbol->address = (void *) \&&;/' < "$nlist"I >> "$output_objdir/$my_dlsyms"
4781 echo >> "$output_objdir/$my_dlsyms" "\
4782 }
4783 }"
4784 fi
4785 echo >> "$output_objdir/$my_dlsyms" "\
34354786 LT_DLSYM_CONST lt_dlsymlist
34364787 lt_${my_prefix}_LTX_preloaded_symbols[] =
3437 {\
3438 { \"$my_originator\", (void *) 0 },"
4788 { {\"$my_originator\", (void *) 0},"
4789
4790 if test -s "$nlist"I; then
4791 echo >> "$output_objdir/$my_dlsyms" "\
4792 {\"@INIT@\", (void *) &lt_syminit},"
4793 fi
34394794
34404795 case $need_lib_prefix in
34414796 no)
34774832 *-*-hpux*)
34784833 pic_flag_for_symtable=" $pic_flag" ;;
34794834 *)
3480 if test "X$my_pic_p" != Xno; then
3481 pic_flag_for_symtable=" $pic_flag"
3482 fi
4835 $my_pic_p && pic_flag_for_symtable=" $pic_flag"
34834836 ;;
34844837 esac
34854838 ;;
34964849 func_show_eval '(cd $output_objdir && $LTCC$symtab_cflags -c$no_builtin_flag$pic_flag_for_symtable "$my_dlsyms")' 'exit $?'
34974850
34984851 # Clean up the generated files.
3499 func_show_eval '$RM "$output_objdir/$my_dlsyms" "$nlist" "${nlist}S" "${nlist}T"'
4852 func_show_eval '$RM "$output_objdir/$my_dlsyms" "$nlist" "${nlist}S" "${nlist}T" "${nlist}I"'
35004853
35014854 # Transform the symbol file into the correct name.
3502 symfileobj="$output_objdir/${my_outputname}S.$objext"
4855 symfileobj=$output_objdir/${my_outputname}S.$objext
35034856 case $host in
35044857 *cygwin* | *mingw* | *cegcc* )
35054858 if test -f "$output_objdir/$my_outputname.def"; then
35174870 esac
35184871 ;;
35194872 *)
3520 func_fatal_error "unknown suffix for \`$my_dlsyms'"
4873 func_fatal_error "unknown suffix for '$my_dlsyms'"
35214874 ;;
35224875 esac
35234876 else
35294882 compile_command=`$ECHO "$compile_command" | $SED "s% @SYMFILE@%%"`
35304883 finalize_command=`$ECHO "$finalize_command" | $SED "s% @SYMFILE@%%"`
35314884 fi
4885 }
4886
4887 # func_cygming_gnu_implib_p ARG
4888 # This predicate returns with zero status (TRUE) if
4889 # ARG is a GNU/binutils-style import library. Returns
4890 # with nonzero status (FALSE) otherwise.
4891 func_cygming_gnu_implib_p ()
4892 {
4893 $debug_cmd
4894
4895 func_to_tool_file "$1" func_convert_file_msys_to_w32
4896 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)$'`
4897 test -n "$func_cygming_gnu_implib_tmp"
4898 }
4899
4900 # func_cygming_ms_implib_p ARG
4901 # This predicate returns with zero status (TRUE) if
4902 # ARG is an MS-style import library. Returns
4903 # with nonzero status (FALSE) otherwise.
4904 func_cygming_ms_implib_p ()
4905 {
4906 $debug_cmd
4907
4908 func_to_tool_file "$1" func_convert_file_msys_to_w32
4909 func_cygming_ms_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $GREP '_NULL_IMPORT_DESCRIPTOR'`
4910 test -n "$func_cygming_ms_implib_tmp"
35324911 }
35334912
35344913 # func_win32_libid arg
35404919 # Despite the name, also deal with 64 bit binaries.
35414920 func_win32_libid ()
35424921 {
3543 $opt_debug
3544 win32_libid_type="unknown"
4922 $debug_cmd
4923
4924 win32_libid_type=unknown
35454925 win32_fileres=`file -L $1 2>/dev/null`
35464926 case $win32_fileres in
35474927 *ar\ archive\ import\ library*) # definitely import
35514931 # Keep the egrep pattern in sync with the one in _LT_CHECK_MAGIC_METHOD.
35524932 if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null |
35534933 $EGREP 'file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' >/dev/null; then
3554 func_to_tool_file "$1" func_convert_file_msys_to_w32
3555 win32_nmres=`eval $NM -f posix -A \"$func_to_tool_file_result\" |
3556 $SED -n -e '
4934 case $nm_interface in
4935 "MS dumpbin")
4936 if func_cygming_ms_implib_p "$1" ||
4937 func_cygming_gnu_implib_p "$1"
4938 then
4939 win32_nmres=import
4940 else
4941 win32_nmres=
4942 fi
4943 ;;
4944 *)
4945 func_to_tool_file "$1" func_convert_file_msys_to_w32
4946 win32_nmres=`eval $NM -f posix -A \"$func_to_tool_file_result\" |
4947 $SED -n -e '
35574948 1,100{
35584949 / I /{
3559 s,.*,import,
4950 s|.*|import|
35604951 p
35614952 q
35624953 }
35634954 }'`
4955 ;;
4956 esac
35644957 case $win32_nmres in
35654958 import*) win32_libid_type="x86 archive import";;
35664959 *) win32_libid_type="x86 archive static";;
35924985 # $sharedlib_from_linklib_result
35934986 func_cygming_dll_for_implib ()
35944987 {
3595 $opt_debug
4988 $debug_cmd
4989
35964990 sharedlib_from_linklib_result=`$DLLTOOL --identify-strict --identify "$1"`
35974991 }
35984992
36095003 # specified import library.
36105004 func_cygming_dll_for_implib_fallback_core ()
36115005 {
3612 $opt_debug
5006 $debug_cmd
5007
36135008 match_literal=`$ECHO "$1" | $SED "$sed_make_literal_regex"`
36145009 $OBJDUMP -s --section "$1" "$2" 2>/dev/null |
36155010 $SED '/^Contents of section '"$match_literal"':/{
36455040 /./p' |
36465041 # we now have a list, one entry per line, of the stringified
36475042 # contents of the appropriate section of all members of the
3648 # archive which possess that section. Heuristic: eliminate
3649 # all those which have a first or second character that is
5043 # archive that possess that section. Heuristic: eliminate
5044 # all those that have a first or second character that is
36505045 # a '.' (that is, objdump's representation of an unprintable
36515046 # character.) This should work for all archives with less than
36525047 # 0x302f exports -- but will fail for DLLs whose name actually
36555050 #
36565051 # Of those that remain, print the first one.
36575052 $SED -e '/^\./d;/^.\./d;q'
3658 }
3659
3660 # func_cygming_gnu_implib_p ARG
3661 # This predicate returns with zero status (TRUE) if
3662 # ARG is a GNU/binutils-style import library. Returns
3663 # with nonzero status (FALSE) otherwise.
3664 func_cygming_gnu_implib_p ()
3665 {
3666 $opt_debug
3667 func_to_tool_file "$1" func_convert_file_msys_to_w32
3668 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)$'`
3669 test -n "$func_cygming_gnu_implib_tmp"
3670 }
3671
3672 # func_cygming_ms_implib_p ARG
3673 # This predicate returns with zero status (TRUE) if
3674 # ARG is an MS-style import library. Returns
3675 # with nonzero status (FALSE) otherwise.
3676 func_cygming_ms_implib_p ()
3677 {
3678 $opt_debug
3679 func_to_tool_file "$1" func_convert_file_msys_to_w32
3680 func_cygming_ms_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $GREP '_NULL_IMPORT_DESCRIPTOR'`
3681 test -n "$func_cygming_ms_implib_tmp"
36825053 }
36835054
36845055 # func_cygming_dll_for_implib_fallback ARG
36945065 # $sharedlib_from_linklib_result
36955066 func_cygming_dll_for_implib_fallback ()
36965067 {
3697 $opt_debug
3698 if func_cygming_gnu_implib_p "$1" ; then
5068 $debug_cmd
5069
5070 if func_cygming_gnu_implib_p "$1"; then
36995071 # binutils import library
37005072 sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$7' "$1"`
3701 elif func_cygming_ms_implib_p "$1" ; then
5073 elif func_cygming_ms_implib_p "$1"; then
37025074 # ms-generated import library
37035075 sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$6' "$1"`
37045076 else
37055077 # unknown
3706 sharedlib_from_linklib_result=""
5078 sharedlib_from_linklib_result=
37075079 fi
37085080 }
37095081
37115083 # func_extract_an_archive dir oldlib
37125084 func_extract_an_archive ()
37135085 {
3714 $opt_debug
3715 f_ex_an_ar_dir="$1"; shift
3716 f_ex_an_ar_oldlib="$1"
3717 if test "$lock_old_archive_extraction" = yes; then
5086 $debug_cmd
5087
5088 f_ex_an_ar_dir=$1; shift
5089 f_ex_an_ar_oldlib=$1
5090 if test yes = "$lock_old_archive_extraction"; then
37185091 lockfile=$f_ex_an_ar_oldlib.lock
37195092 until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do
37205093 func_echo "Waiting for $lockfile to be removed"
37235096 fi
37245097 func_show_eval "(cd \$f_ex_an_ar_dir && $AR x \"\$f_ex_an_ar_oldlib\")" \
37255098 'stat=$?; rm -f "$lockfile"; exit $stat'
3726 if test "$lock_old_archive_extraction" = yes; then
5099 if test yes = "$lock_old_archive_extraction"; then
37275100 $opt_dry_run || rm -f "$lockfile"
37285101 fi
37295102 if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
37375110 # func_extract_archives gentop oldlib ...
37385111 func_extract_archives ()
37395112 {
3740 $opt_debug
3741 my_gentop="$1"; shift
5113 $debug_cmd
5114
5115 my_gentop=$1; shift
37425116 my_oldlibs=${1+"$@"}
3743 my_oldobjs=""
3744 my_xlib=""
3745 my_xabs=""
3746 my_xdir=""
5117 my_oldobjs=
5118 my_xlib=
5119 my_xabs=
5120 my_xdir=
37475121
37485122 for my_xlib in $my_oldlibs; do
37495123 # Extract the objects.
37505124 case $my_xlib in
3751 [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;;
5125 [\\/]* | [A-Za-z]:[\\/]*) my_xabs=$my_xlib ;;
37525126 *) my_xabs=`pwd`"/$my_xlib" ;;
37535127 esac
37545128 func_basename "$my_xlib"
3755 my_xlib="$func_basename_result"
5129 my_xlib=$func_basename_result
37565130 my_xlib_u=$my_xlib
37575131 while :; do
37585132 case " $extracted_archives " in
37645138 esac
37655139 done
37665140 extracted_archives="$extracted_archives $my_xlib_u"
3767 my_xdir="$my_gentop/$my_xlib_u"
5141 my_xdir=$my_gentop/$my_xlib_u
37685142
37695143 func_mkdir_p "$my_xdir"
37705144
37775151 cd $my_xdir || exit $?
37785152 darwin_archive=$my_xabs
37795153 darwin_curdir=`pwd`
3780 darwin_base_archive=`basename "$darwin_archive"`
5154 func_basename "$darwin_archive"
5155 darwin_base_archive=$func_basename_result
37815156 darwin_arches=`$LIPO -info "$darwin_archive" 2>/dev/null | $GREP Architectures 2>/dev/null || true`
37825157 if test -n "$darwin_arches"; then
37835158 darwin_arches=`$ECHO "$darwin_arches" | $SED -e 's/.*are://'`
37845159 darwin_arch=
37855160 func_verbose "$darwin_base_archive has multiple architectures $darwin_arches"
3786 for darwin_arch in $darwin_arches ; do
3787 func_mkdir_p "unfat-$$/${darwin_base_archive}-${darwin_arch}"
3788 $LIPO -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}"
3789 cd "unfat-$$/${darwin_base_archive}-${darwin_arch}"
3790 func_extract_an_archive "`pwd`" "${darwin_base_archive}"
5161 for darwin_arch in $darwin_arches; do
5162 func_mkdir_p "unfat-$$/$darwin_base_archive-$darwin_arch"
5163 $LIPO -thin $darwin_arch -output "unfat-$$/$darwin_base_archive-$darwin_arch/$darwin_base_archive" "$darwin_archive"
5164 cd "unfat-$$/$darwin_base_archive-$darwin_arch"
5165 func_extract_an_archive "`pwd`" "$darwin_base_archive"
37915166 cd "$darwin_curdir"
3792 $RM "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}"
5167 $RM "unfat-$$/$darwin_base_archive-$darwin_arch/$darwin_base_archive"
37935168 done # $darwin_arches
37945169 ## Okay now we've a bunch of thin objects, gotta fatten them up :)
3795 darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print | $SED -e "$basename" | sort -u`
5170 darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print | $SED -e "$sed_basename" | sort -u`
37965171 darwin_file=
37975172 darwin_files=
37985173 for darwin_file in $darwin_filelist; do
38145189 my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | sort | $NL2SP`
38155190 done
38165191
3817 func_extract_archives_result="$my_oldobjs"
5192 func_extract_archives_result=$my_oldobjs
38185193 }
38195194
38205195
38295204 #
38305205 # ARG is the value that the WRAPPER_SCRIPT_BELONGS_IN_OBJDIR
38315206 # variable will take. If 'yes', then the emitted script
3832 # will assume that the directory in which it is stored is
5207 # will assume that the directory where it is stored is
38335208 # the $objdir directory. This is a cygwin/mingw-specific
38345209 # behavior.
38355210 func_emit_wrapper ()
38405215 #! $SHELL
38415216
38425217 # $output - temporary wrapper script for $objdir/$outputname
3843 # Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
5218 # Generated by $PROGRAM (GNU $PACKAGE) $VERSION
38445219 #
38455220 # The $output program cannot be directly executed until all the libtool
38465221 # libraries that it depends on are installed.
38975272
38985273 # Very basic option parsing. These options are (a) specific to
38995274 # the libtool wrapper, (b) are identical between the wrapper
3900 # /script/ and the wrapper /executable/ which is used only on
5275 # /script/ and the wrapper /executable/ that is used only on
39015276 # windows platforms, and (c) all begin with the string "--lt-"
3902 # (application programs are unlikely to have options which match
5277 # (application programs are unlikely to have options that match
39035278 # this pattern).
39045279 #
39055280 # There are only two supported options: --lt-debug and
39325307
39335308 # Print the debug banner immediately:
39345309 if test -n \"\$lt_option_debug\"; then
3935 echo \"${outputname}:${output}:\${LINENO}: libtool wrapper (GNU $PACKAGE$TIMESTAMP) $VERSION\" 1>&2
5310 echo \"$outputname:$output:\$LINENO: libtool wrapper (GNU $PACKAGE) $VERSION\" 1>&2
39365311 fi
39375312 }
39385313
39435318 lt_dump_args_N=1;
39445319 for lt_arg
39455320 do
3946 \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[\$lt_dump_args_N]: \$lt_arg\"
5321 \$ECHO \"$outputname:$output:\$LINENO: newargv[\$lt_dump_args_N]: \$lt_arg\"
39475322 lt_dump_args_N=\`expr \$lt_dump_args_N + 1\`
39485323 done
39495324 }
39575332 *-*-mingw | *-*-os2* | *-cegcc*)
39585333 $ECHO "\
39595334 if test -n \"\$lt_option_debug\"; then
3960 \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[0]: \$progdir\\\\\$program\" 1>&2
5335 \$ECHO \"$outputname:$output:\$LINENO: newargv[0]: \$progdir\\\\\$program\" 1>&2
39615336 func_lt_dump_args \${1+\"\$@\"} 1>&2
39625337 fi
39635338 exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
39675342 *)
39685343 $ECHO "\
39695344 if test -n \"\$lt_option_debug\"; then
3970 \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[0]: \$progdir/\$program\" 1>&2
5345 \$ECHO \"$outputname:$output:\$LINENO: newargv[0]: \$progdir/\$program\" 1>&2
39715346 func_lt_dump_args \${1+\"\$@\"} 1>&2
39725347 fi
39735348 exec \"\$progdir/\$program\" \${1+\"\$@\"}
40425417 test -n \"\$absdir\" && thisdir=\"\$absdir\"
40435418 "
40445419
4045 if test "$fast_install" = yes; then
5420 if test yes = "$fast_install"; then
40465421 $ECHO "\
40475422 program=lt-'$outputname'$exeext
40485423 progdir=\"\$thisdir/$objdir\"
40495424
40505425 if test ! -f \"\$progdir/\$program\" ||
4051 { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
5426 { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | $SED 1q\`; \\
40525427 test \"X\$file\" != \"X\$progdir/\$program\"; }; then
40535428
40545429 file=\"\$\$-\$program\"
40655440 if test -n \"\$relink_command\"; then
40665441 if relink_command_output=\`eval \$relink_command 2>&1\`; then :
40675442 else
4068 $ECHO \"\$relink_command_output\" >&2
5443 \$ECHO \"\$relink_command_output\" >&2
40695444 $RM \"\$progdir/\$file\"
40705445 exit 1
40715446 fi
41005475 fi
41015476
41025477 # Export our shlibpath_var if we have one.
4103 if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
5478 if test yes = "$shlibpath_overrides_runpath" && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
41045479 $ECHO "\
41055480 # Add our own library path to $shlibpath_var
41065481 $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
41205495 fi
41215496 else
41225497 # The program doesn't exist.
4123 \$ECHO \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2
5498 \$ECHO \"\$0: error: '\$progdir/\$program' does not exist\" 1>&2
41245499 \$ECHO \"This script is just a wrapper for \$program.\" 1>&2
41255500 \$ECHO \"See the $PACKAGE documentation for more information.\" 1>&2
41265501 exit 1
41395514 cat <<EOF
41405515
41415516 /* $cwrappersource - temporary wrapper executable for $objdir/$outputname
4142 Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
5517 Generated by $PROGRAM (GNU $PACKAGE) $VERSION
41435518
41445519 The $output program cannot be directly executed until all the libtool
41455520 libraries that it depends on are installed.
41745549 #include <fcntl.h>
41755550 #include <sys/stat.h>
41765551
5552 #define STREQ(s1, s2) (strcmp ((s1), (s2)) == 0)
5553
41775554 /* declarations of non-ANSI functions */
4178 #if defined(__MINGW32__)
5555 #if defined __MINGW32__
41795556 # ifdef __STRICT_ANSI__
41805557 int _putenv (const char *);
41815558 # endif
4182 #elif defined(__CYGWIN__)
5559 #elif defined __CYGWIN__
41835560 # ifdef __STRICT_ANSI__
41845561 char *realpath (const char *, char *);
41855562 int putenv (char *);
41865563 int setenv (const char *, const char *, int);
41875564 # endif
4188 /* #elif defined (other platforms) ... */
5565 /* #elif defined other_platform || defined ... */
41895566 #endif
41905567
41915568 /* portability defines, excluding path handling macros */
4192 #if defined(_MSC_VER)
5569 #if defined _MSC_VER
41935570 # define setmode _setmode
41945571 # define stat _stat
41955572 # define chmod _chmod
41965573 # define getcwd _getcwd
41975574 # define putenv _putenv
41985575 # define S_IXUSR _S_IEXEC
4199 # ifndef _INTPTR_T_DEFINED
4200 # define _INTPTR_T_DEFINED
4201 # define intptr_t int
4202 # endif
4203 #elif defined(__MINGW32__)
5576 #elif defined __MINGW32__
42045577 # define setmode _setmode
42055578 # define stat _stat
42065579 # define chmod _chmod
42075580 # define getcwd _getcwd
42085581 # define putenv _putenv
4209 #elif defined(__CYGWIN__)
5582 #elif defined __CYGWIN__
42105583 # define HAVE_SETENV
42115584 # define FOPEN_WB "wb"
4212 /* #elif defined (other platforms) ... */
5585 /* #elif defined other platforms ... */
42135586 #endif
42145587
4215 #if defined(PATH_MAX)
5588 #if defined PATH_MAX
42165589 # define LT_PATHMAX PATH_MAX
4217 #elif defined(MAXPATHLEN)
5590 #elif defined MAXPATHLEN
42185591 # define LT_PATHMAX MAXPATHLEN
42195592 #else
42205593 # define LT_PATHMAX 1024
42335606 # define PATH_SEPARATOR ':'
42345607 #endif
42355608
4236 #if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
4237 defined (__OS2__)
5609 #if defined _WIN32 || defined __MSDOS__ || defined __DJGPP__ || \
5610 defined __OS2__
42385611 # define HAVE_DOS_BASED_FILE_SYSTEM
42395612 # define FOPEN_WB "wb"
42405613 # ifndef DIR_SEPARATOR_2
42675640
42685641 #define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type)))
42695642 #define XFREE(stale) do { \
4270 if (stale) { free ((void *) stale); stale = 0; } \
5643 if (stale) { free (stale); stale = 0; } \
42715644 } while (0)
42725645
4273 #if defined(LT_DEBUGWRAPPER)
5646 #if defined LT_DEBUGWRAPPER
42745647 static int lt_debug = 1;
42755648 #else
42765649 static int lt_debug = 0;
42995672 EOF
43005673
43015674 cat <<EOF
4302 volatile const char * MAGIC_EXE = "$magic_exe";
5675 #if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5676 # define externally_visible volatile
5677 #else
5678 # define externally_visible __attribute__((externally_visible)) volatile
5679 #endif
5680 externally_visible const char * MAGIC_EXE = "$magic_exe";
43035681 const char * LIB_PATH_VARNAME = "$shlibpath_var";
43045682 EOF
43055683
4306 if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
5684 if test yes = "$shlibpath_overrides_runpath" && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
43075685 func_to_host_path "$temp_rpath"
43085686 cat <<EOF
43095687 const char * LIB_PATH_VALUE = "$func_to_host_path_result";
43275705 EOF
43285706 fi
43295707
4330 if test "$fast_install" = yes; then
5708 if test yes = "$fast_install"; then
43315709 cat <<EOF
43325710 const char * TARGET_PROGRAM_NAME = "lt-$outputname"; /* hopefully, no .exe */
43335711 EOF
43565734 char *actual_cwrapper_name;
43575735 char *target_name;
43585736 char *lt_argv_zero;
4359 intptr_t rval = 127;
5737 int rval = 127;
43605738
43615739 int i;
43625740
43635741 program_name = (char *) xstrdup (base_name (argv[0]));
4364 newargz = XMALLOC (char *, argc + 1);
5742 newargz = XMALLOC (char *, (size_t) argc + 1);
43655743
43665744 /* very simple arg parsing; don't want to rely on getopt
43675745 * also, copy all non cwrapper options to newargz, except
43705748 newargc=0;
43715749 for (i = 1; i < argc; i++)
43725750 {
4373 if (strcmp (argv[i], dumpscript_opt) == 0)
5751 if (STREQ (argv[i], dumpscript_opt))
43745752 {
43755753 EOF
4376 case "$host" in
5754 case $host in
43775755 *mingw* | *cygwin* )
43785756 # make stdout use "unix" line endings
43795757 echo " setmode(1,_O_BINARY);"
43845762 lt_dump_script (stdout);
43855763 return 0;
43865764 }
4387 if (strcmp (argv[i], debug_opt) == 0)
5765 if (STREQ (argv[i], debug_opt))
43885766 {
43895767 lt_debug = 1;
43905768 continue;
43915769 }
4392 if (strcmp (argv[i], ltwrapper_option_prefix) == 0)
5770 if (STREQ (argv[i], ltwrapper_option_prefix))
43935771 {
43945772 /* however, if there is an option in the LTWRAPPER_OPTION_PREFIX
43955773 namespace, but it is not one of the ones we know about and
44125790 EOF
44135791 cat <<EOF
44145792 /* The GNU banner must be the first non-error debug message */
4415 lt_debugprintf (__FILE__, __LINE__, "libtool wrapper (GNU $PACKAGE$TIMESTAMP) $VERSION\n");
5793 lt_debugprintf (__FILE__, __LINE__, "libtool wrapper (GNU $PACKAGE) $VERSION\n");
44165794 EOF
44175795 cat <<"EOF"
44185796 lt_debugprintf (__FILE__, __LINE__, "(main) argv[0]: %s\n", argv[0]);
45235901 cat <<"EOF"
45245902 /* execv doesn't actually work on mingw as expected on unix */
45255903 newargz = prepare_spawn (newargz);
4526 rval = _spawnv (_P_WAIT, lt_argv_zero, (const char * const *) newargz);
5904 rval = (int) _spawnv (_P_WAIT, lt_argv_zero, (const char * const *) newargz);
45275905 if (rval == -1)
45285906 {
45295907 /* failed to start process */
45685946 {
45695947 const char *base;
45705948
4571 #if defined (HAVE_DOS_BASED_FILE_SYSTEM)
5949 #if defined HAVE_DOS_BASED_FILE_SYSTEM
45725950 /* Skip over the disk name in MSDOS pathnames. */
45735951 if (isalpha ((unsigned char) name[0]) && name[1] == ':')
45745952 name += 2;
46276005 const char *p_next;
46286006 /* static buffer for getcwd */
46296007 char tmp[LT_PATHMAX + 1];
4630 int tmp_len;
6008 size_t tmp_len;
46316009 char *concat_name;
46326010
46336011 lt_debugprintf (__FILE__, __LINE__, "(find_executable): %s\n",
46376015 return NULL;
46386016
46396017 /* Absolute path? */
4640 #if defined (HAVE_DOS_BASED_FILE_SYSTEM)
6018 #if defined HAVE_DOS_BASED_FILE_SYSTEM
46416019 if (isalpha ((unsigned char) wrapper[0]) && wrapper[1] == ':')
46426020 {
46436021 concat_name = xstrdup (wrapper);
46556033 return concat_name;
46566034 XFREE (concat_name);
46576035 }
4658 #if defined (HAVE_DOS_BASED_FILE_SYSTEM)
6036 #if defined HAVE_DOS_BASED_FILE_SYSTEM
46596037 }
46606038 #endif
46616039
46786056 for (q = p; *q; q++)
46796057 if (IS_PATH_SEPARATOR (*q))
46806058 break;
4681 p_len = q - p;
6059 p_len = (size_t) (q - p);
46826060 p_next = (*q == '\0' ? q : q + 1);
46836061 if (p_len == 0)
46846062 {
47976175 if (patlen <= len)
47986176 {
47996177 str += len - patlen;
4800 if (strcmp (str, pat) == 0)
6178 if (STREQ (str, pat))
48016179 *str = '\0';
48026180 }
48036181 return str;
48626240 char *str = xstrdup (value);
48636241 setenv (name, str, 1);
48646242 #else
4865 int len = strlen (name) + 1 + strlen (value) + 1;
6243 size_t len = strlen (name) + 1 + strlen (value) + 1;
48666244 char *str = XMALLOC (char, len);
48676245 sprintf (str, "%s=%s", name, value);
48686246 if (putenv (str) != EXIT_SUCCESS)
48796257 char *new_value;
48806258 if (orig_value && *orig_value)
48816259 {
4882 int orig_value_len = strlen (orig_value);
4883 int add_len = strlen (add);
6260 size_t orig_value_len = strlen (orig_value);
6261 size_t add_len = strlen (add);
48846262 new_value = XMALLOC (char, add_len + orig_value_len + 1);
48856263 if (to_end)
48866264 {
49116289 {
49126290 char *new_value = lt_extend_str (getenv (name), value, 0);
49136291 /* some systems can't cope with a ':'-terminated path #' */
4914 int len = strlen (new_value);
4915 while (((len = strlen (new_value)) > 0) && IS_PATH_SEPARATOR (new_value[len-1]))
6292 size_t len = strlen (new_value);
6293 while ((len > 0) && IS_PATH_SEPARATOR (new_value[len-1]))
49166294 {
4917 new_value[len-1] = '\0';
6295 new_value[--len] = '\0';
49186296 }
49196297 lt_setenv (name, new_value);
49206298 XFREE (new_value);
50816459 # True if ARG is an import lib, as indicated by $file_magic_cmd
50826460 func_win32_import_lib_p ()
50836461 {
5084 $opt_debug
6462 $debug_cmd
6463
50856464 case `eval $file_magic_cmd \"\$1\" 2>/dev/null | $SED -e 10q` in
50866465 *import*) : ;;
50876466 *) false ;;
50886467 esac
50896468 }
50906469
6470 # func_suncc_cstd_abi
6471 # !!ONLY CALL THIS FOR SUN CC AFTER $compile_command IS FULLY EXPANDED!!
6472 # Several compiler flags select an ABI that is incompatible with the
6473 # Cstd library. Avoid specifying it if any are in CXXFLAGS.
6474 func_suncc_cstd_abi ()
6475 {
6476 $debug_cmd
6477
6478 case " $compile_command " in
6479 *" -compat=g "*|*\ -std=c++[0-9][0-9]\ *|*" -library=stdcxx4 "*|*" -library=stlport4 "*)
6480 suncc_use_cstd_abi=no
6481 ;;
6482 *)
6483 suncc_use_cstd_abi=yes
6484 ;;
6485 esac
6486 }
6487
50916488 # func_mode_link arg...
50926489 func_mode_link ()
50936490 {
5094 $opt_debug
6491 $debug_cmd
6492
50956493 case $host in
50966494 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
50976495 # It is impossible to link a dll without this setting, and
50986496 # we shouldn't force the makefile maintainer to figure out
5099 # which system we are compiling for in order to pass an extra
6497 # what system we are compiling for in order to pass an extra
51006498 # flag for every libtool invocation.
51016499 # allow_undefined=no
51026500
51036501 # FIXME: Unfortunately, there are problems with the above when trying
5104 # to make a dll which has undefined symbols, in which case not
6502 # to make a dll that has undefined symbols, in which case not
51056503 # even a static library is built. For now, we need to specify
51066504 # -no-undefined on the libtool link line when we can be certain
51076505 # that all symbols are satisfied, otherwise we get a static library.
51456543 module=no
51466544 no_install=no
51476545 objs=
6546 os2dllname=
51486547 non_pic_objects=
51496548 precious_files_regex=
51506549 prefer_static_libs=no
5151 preload=no
6550 preload=false
51526551 prev=
51536552 prevarg=
51546553 release=
51606559 vinfo=
51616560 vinfo_number=no
51626561 weak_libs=
5163 single_module="${wl}-single_module"
6562 single_module=$wl-single_module
51646563 func_infer_tag $base_compile
51656564
51666565 # We need to know -static, to get the right output filenames.
51686567 do
51696568 case $arg in
51706569 -shared)
5171 test "$build_libtool_libs" != yes && \
5172 func_fatal_configuration "can not build a shared library"
6570 test yes != "$build_libtool_libs" \
6571 && func_fatal_configuration "cannot build a shared library"
51736572 build_old_libs=no
51746573 break
51756574 ;;
51766575 -all-static | -static | -static-libtool-libs)
51776576 case $arg in
51786577 -all-static)
5179 if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
6578 if test yes = "$build_libtool_libs" && test -z "$link_static_flag"; then
51806579 func_warning "complete static linking is impossible in this configuration"
51816580 fi
51826581 if test -n "$link_static_flag"; then
52096608
52106609 # Go through the arguments, transforming them on the way.
52116610 while test "$#" -gt 0; do
5212 arg="$1"
6611 arg=$1
52136612 shift
52146613 func_quote_for_eval "$arg"
52156614 qarg=$func_quote_for_eval_unquoted_result
52266625
52276626 case $prev in
52286627 bindir)
5229 bindir="$arg"
6628 bindir=$arg
52306629 prev=
52316630 continue
52326631 ;;
52336632 dlfiles|dlprefiles)
5234 if test "$preload" = no; then
6633 $preload || {
52356634 # Add the symbol object into the linking commands.
52366635 func_append compile_command " @SYMFILE@"
52376636 func_append finalize_command " @SYMFILE@"
5238 preload=yes
5239 fi
6637 preload=:
6638 }
52406639 case $arg in
52416640 *.la | *.lo) ;; # We handle these cases below.
52426641 force)
5243 if test "$dlself" = no; then
6642 if test no = "$dlself"; then
52446643 dlself=needless
52456644 export_dynamic=yes
52466645 fi
52486647 continue
52496648 ;;
52506649 self)
5251 if test "$prev" = dlprefiles; then
6650 if test dlprefiles = "$prev"; then
52526651 dlself=yes
5253 elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then
6652 elif test dlfiles = "$prev" && test yes != "$dlopen_self"; then
52546653 dlself=yes
52556654 else
52566655 dlself=needless
52606659 continue
52616660 ;;
52626661 *)
5263 if test "$prev" = dlfiles; then
6662 if test dlfiles = "$prev"; then
52646663 func_append dlfiles " $arg"
52656664 else
52666665 func_append dlprefiles " $arg"
52716670 esac
52726671 ;;
52736672 expsyms)
5274 export_symbols="$arg"
6673 export_symbols=$arg
52756674 test -f "$arg" \
5276 || func_fatal_error "symbol file \`$arg' does not exist"
6675 || func_fatal_error "symbol file '$arg' does not exist"
52776676 prev=
52786677 continue
52796678 ;;
52806679 expsyms_regex)
5281 export_symbols_regex="$arg"
6680 export_symbols_regex=$arg
52826681 prev=
52836682 continue
52846683 ;;
52966695 continue
52976696 ;;
52986697 inst_prefix)
5299 inst_prefix_dir="$arg"
6698 inst_prefix_dir=$arg
6699 prev=
6700 continue
6701 ;;
6702 mllvm)
6703 # Clang does not use LLVM to link, so we can simply discard any
6704 # '-mllvm $arg' options when doing the link step.
53006705 prev=
53016706 continue
53026707 ;;
53206725
53216726 if test -z "$pic_object" ||
53226727 test -z "$non_pic_object" ||
5323 test "$pic_object" = none &&
5324 test "$non_pic_object" = none; then
5325 func_fatal_error "cannot find name of object for \`$arg'"
6728 test none = "$pic_object" &&
6729 test none = "$non_pic_object"; then
6730 func_fatal_error "cannot find name of object for '$arg'"
53266731 fi
53276732
53286733 # Extract subdirectory from the argument.
53296734 func_dirname "$arg" "/" ""
5330 xdir="$func_dirname_result"
5331
5332 if test "$pic_object" != none; then
6735 xdir=$func_dirname_result
6736
6737 if test none != "$pic_object"; then
53336738 # Prepend the subdirectory the object is found in.
5334 pic_object="$xdir$pic_object"
5335
5336 if test "$prev" = dlfiles; then
5337 if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
6739 pic_object=$xdir$pic_object
6740
6741 if test dlfiles = "$prev"; then
6742 if test yes = "$build_libtool_libs" && test yes = "$dlopen_support"; then
53386743 func_append dlfiles " $pic_object"
53396744 prev=
53406745 continue
53456750 fi
53466751
53476752 # CHECK ME: I think I busted this. -Ossama
5348 if test "$prev" = dlprefiles; then
6753 if test dlprefiles = "$prev"; then
53496754 # Preload the old-style object.
53506755 func_append dlprefiles " $pic_object"
53516756 prev=
53536758
53546759 # A PIC object.
53556760 func_append libobjs " $pic_object"
5356 arg="$pic_object"
6761 arg=$pic_object
53576762 fi
53586763
53596764 # Non-PIC object.
5360 if test "$non_pic_object" != none; then
6765 if test none != "$non_pic_object"; then
53616766 # Prepend the subdirectory the object is found in.
5362 non_pic_object="$xdir$non_pic_object"
6767 non_pic_object=$xdir$non_pic_object
53636768
53646769 # A standard non-PIC object
53656770 func_append non_pic_objects " $non_pic_object"
5366 if test -z "$pic_object" || test "$pic_object" = none ; then
5367 arg="$non_pic_object"
6771 if test -z "$pic_object" || test none = "$pic_object"; then
6772 arg=$non_pic_object
53686773 fi
53696774 else
53706775 # If the PIC object exists, use it instead.
53716776 # $xdir was prepended to $pic_object above.
5372 non_pic_object="$pic_object"
6777 non_pic_object=$pic_object
53736778 func_append non_pic_objects " $non_pic_object"
53746779 fi
53756780 else
53776782 if $opt_dry_run; then
53786783 # Extract subdirectory from the argument.
53796784 func_dirname "$arg" "/" ""
5380 xdir="$func_dirname_result"
6785 xdir=$func_dirname_result
53816786
53826787 func_lo2o "$arg"
53836788 pic_object=$xdir$objdir/$func_lo2o_result
53856790 func_append libobjs " $pic_object"
53866791 func_append non_pic_objects " $non_pic_object"
53876792 else
5388 func_fatal_error "\`$arg' is not a valid libtool object"
6793 func_fatal_error "'$arg' is not a valid libtool object"
53896794 fi
53906795 fi
53916796 done
53926797 else
5393 func_fatal_error "link input file \`$arg' does not exist"
6798 func_fatal_error "link input file '$arg' does not exist"
53946799 fi
53956800 arg=$save_arg
53966801 prev=
53976802 continue
53986803 ;;
6804 os2dllname)
6805 os2dllname=$arg
6806 prev=
6807 continue
6808 ;;
53996809 precious_regex)
5400 precious_files_regex="$arg"
6810 precious_files_regex=$arg
54016811 prev=
54026812 continue
54036813 ;;
54046814 release)
5405 release="-$arg"
6815 release=-$arg
54066816 prev=
54076817 continue
54086818 ;;
54146824 func_fatal_error "only absolute run-paths are allowed"
54156825 ;;
54166826 esac
5417 if test "$prev" = rpath; then
6827 if test rpath = "$prev"; then
54186828 case "$rpath " in
54196829 *" $arg "*) ;;
54206830 *) func_append rpath " $arg" ;;
54296839 continue
54306840 ;;
54316841 shrext)
5432 shrext_cmds="$arg"
6842 shrext_cmds=$arg
54336843 prev=
54346844 continue
54356845 ;;
54696879 esac
54706880 fi # test -n "$prev"
54716881
5472 prevarg="$arg"
6882 prevarg=$arg
54736883
54746884 case $arg in
54756885 -all-static)
54836893
54846894 -allow-undefined)
54856895 # FIXME: remove this flag sometime in the future.
5486 func_fatal_error "\`-allow-undefined' must not be used because it is the default"
6896 func_fatal_error "'-allow-undefined' must not be used because it is the default"
54876897 ;;
54886898
54896899 -avoid-version)
55156925 if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
55166926 func_fatal_error "more than one -exported-symbols argument is not allowed"
55176927 fi
5518 if test "X$arg" = "X-export-symbols"; then
6928 if test X-export-symbols = "X$arg"; then
55196929 prev=expsyms
55206930 else
55216931 prev=expsyms_regex
55496959 func_stripname "-L" '' "$arg"
55506960 if test -z "$func_stripname_result"; then
55516961 if test "$#" -gt 0; then
5552 func_fatal_error "require no space between \`-L' and \`$1'"
6962 func_fatal_error "require no space between '-L' and '$1'"
55536963 else
5554 func_fatal_error "need path for \`-L' option"
6964 func_fatal_error "need path for '-L' option"
55556965 fi
55566966 fi
55576967 func_resolve_sysroot "$func_stripname_result"
55626972 *)
55636973 absdir=`cd "$dir" && pwd`
55646974 test -z "$absdir" && \
5565 func_fatal_error "cannot determine absolute directory name of \`$dir'"
5566 dir="$absdir"
6975 func_fatal_error "cannot determine absolute directory name of '$dir'"
6976 dir=$absdir
55676977 ;;
55686978 esac
55696979 case "$deplibs " in
55987008 ;;
55997009
56007010 -l*)
5601 if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
7011 if test X-lc = "X$arg" || test X-lm = "X$arg"; then
56027012 case $host in
56037013 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc* | *-*-haiku*)
56047014 # These systems don't actually have a C or math library (as such)
56067016 ;;
56077017 *-*-os2*)
56087018 # These systems don't actually have a C library (as such)
5609 test "X$arg" = "X-lc" && continue
7019 test X-lc = "X$arg" && continue
56107020 ;;
5611 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
7021 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-bitrig*)
56127022 # Do not include libc due to us having libc/libc_r.
5613 test "X$arg" = "X-lc" && continue
7023 test X-lc = "X$arg" && continue
56147024 ;;
56157025 *-*-rhapsody* | *-*-darwin1.[012])
56167026 # Rhapsody C and math libraries are in the System framework
56197029 ;;
56207030 *-*-sco3.2v5* | *-*-sco5v6*)
56217031 # Causes problems with __ctype
5622 test "X$arg" = "X-lc" && continue
7032 test X-lc = "X$arg" && continue
56237033 ;;
56247034 *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
56257035 # Compiler inserts libc in the correct place for threads to work
5626 test "X$arg" = "X-lc" && continue
7036 test X-lc = "X$arg" && continue
56277037 ;;
56287038 esac
5629 elif test "X$arg" = "X-lc_r"; then
7039 elif test X-lc_r = "X$arg"; then
56307040 case $host in
5631 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
7041 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-bitrig*)
56327042 # Do not include libc_r directly, use -pthread flag.
56337043 continue
56347044 ;;
56357045 esac
56367046 fi
56377047 func_append deplibs " $arg"
7048 continue
7049 ;;
7050
7051 -mllvm)
7052 prev=mllvm
56387053 continue
56397054 ;;
56407055
56677082 ;;
56687083
56697084 -multi_module)
5670 single_module="${wl}-multi_module"
7085 single_module=$wl-multi_module
56717086 continue
56727087 ;;
56737088
56817096 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin* | *-cegcc*)
56827097 # The PATH hackery in wrapper scripts is required on Windows
56837098 # and Darwin in order for the loader to find any dlls it needs.
5684 func_warning "\`-no-install' is ignored for $host"
5685 func_warning "assuming \`-no-fast-install' instead"
7099 func_warning "'-no-install' is ignored for $host"
7100 func_warning "assuming '-no-fast-install' instead"
56867101 fast_install=no
56877102 ;;
56887103 *) no_install=yes ;;
56977112
56987113 -objectlist)
56997114 prev=objectlist
7115 continue
7116 ;;
7117
7118 -os2dllname)
7119 prev=os2dllname
57007120 continue
57017121 ;;
57027122
57877207 func_stripname '-Wc,' '' "$arg"
57887208 args=$func_stripname_result
57897209 arg=
5790 save_ifs="$IFS"; IFS=','
7210 save_ifs=$IFS; IFS=,
57917211 for flag in $args; do
5792 IFS="$save_ifs"
7212 IFS=$save_ifs
57937213 func_quote_for_eval "$flag"
57947214 func_append arg " $func_quote_for_eval_result"
57957215 func_append compiler_flags " $func_quote_for_eval_result"
57967216 done
5797 IFS="$save_ifs"
7217 IFS=$save_ifs
57987218 func_stripname ' ' '' "$arg"
57997219 arg=$func_stripname_result
58007220 ;;
58037223 func_stripname '-Wl,' '' "$arg"
58047224 args=$func_stripname_result
58057225 arg=
5806 save_ifs="$IFS"; IFS=','
7226 save_ifs=$IFS; IFS=,
58077227 for flag in $args; do
5808 IFS="$save_ifs"
7228 IFS=$save_ifs
58097229 func_quote_for_eval "$flag"
58107230 func_append arg " $wl$func_quote_for_eval_result"
58117231 func_append compiler_flags " $wl$func_quote_for_eval_result"
58127232 func_append linker_flags " $func_quote_for_eval_result"
58137233 done
5814 IFS="$save_ifs"
7234 IFS=$save_ifs
58157235 func_stripname ' ' '' "$arg"
58167236 arg=$func_stripname_result
58177237 ;;
58347254 # -msg_* for osf cc
58357255 -msg_*)
58367256 func_quote_for_eval "$arg"
5837 arg="$func_quote_for_eval_result"
7257 arg=$func_quote_for_eval_result
58387258 ;;
58397259
58407260 # Flags to be passed through unchanged, with rationale:
58467266 # -m*, -t[45]*, -txscale* architecture-specific flags for GCC
58477267 # -F/path path to uninstalled frameworks, gcc on darwin
58487268 # -p, -pg, --coverage, -fprofile-* profiling flags for GCC
7269 # -fstack-protector* stack protector flags for GCC
58497270 # @file GCC response files
58507271 # -tp=* Portland pgcc target processor selection
58517272 # --sysroot=* for sysroot support
5852 # -O*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization
7273 # -O*, -g*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization
7274 # -specs=* GCC specs files
7275 # -stdlib=* select c++ std lib with clang
7276 # -fsanitize=* Clang/GCC memory and address sanitizer
58537277 -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
58547278 -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \
5855 -O*|-flto*|-fwhopr*|-fuse-linker-plugin)
7279 -O*|-g*|-flto*|-fwhopr*|-fuse-linker-plugin|-fstack-protector*|-stdlib=*| \
7280 -specs=*|-fsanitize=*)
58567281 func_quote_for_eval "$arg"
5857 arg="$func_quote_for_eval_result"
7282 arg=$func_quote_for_eval_result
58587283 func_append compile_command " $arg"
58597284 func_append finalize_command " $arg"
58607285 func_append compiler_flags " $arg"
58617286 continue
58627287 ;;
58637288
7289 -Z*)
7290 if test os2 = "`expr $host : '.*\(os2\)'`"; then
7291 # OS/2 uses -Zxxx to specify OS/2-specific options
7292 compiler_flags="$compiler_flags $arg"
7293 func_append compile_command " $arg"
7294 func_append finalize_command " $arg"
7295 case $arg in
7296 -Zlinker | -Zstack)
7297 prev=xcompiler
7298 ;;
7299 esac
7300 continue
7301 else
7302 # Otherwise treat like 'Some other compiler flag' below
7303 func_quote_for_eval "$arg"
7304 arg=$func_quote_for_eval_result
7305 fi
7306 ;;
7307
58647308 # Some other compiler flag.
58657309 -* | +*)
58667310 func_quote_for_eval "$arg"
5867 arg="$func_quote_for_eval_result"
7311 arg=$func_quote_for_eval_result
58687312 ;;
58697313
58707314 *.$objext)
58857329
58867330 if test -z "$pic_object" ||
58877331 test -z "$non_pic_object" ||
5888 test "$pic_object" = none &&
5889 test "$non_pic_object" = none; then
5890 func_fatal_error "cannot find name of object for \`$arg'"
7332 test none = "$pic_object" &&
7333 test none = "$non_pic_object"; then
7334 func_fatal_error "cannot find name of object for '$arg'"
58917335 fi
58927336
58937337 # Extract subdirectory from the argument.
58947338 func_dirname "$arg" "/" ""
5895 xdir="$func_dirname_result"
5896
5897 if test "$pic_object" != none; then
7339 xdir=$func_dirname_result
7340
7341 test none = "$pic_object" || {
58987342 # Prepend the subdirectory the object is found in.
5899 pic_object="$xdir$pic_object"
5900
5901 if test "$prev" = dlfiles; then
5902 if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
7343 pic_object=$xdir$pic_object
7344
7345 if test dlfiles = "$prev"; then
7346 if test yes = "$build_libtool_libs" && test yes = "$dlopen_support"; then
59037347 func_append dlfiles " $pic_object"
59047348 prev=
59057349 continue
59107354 fi
59117355
59127356 # CHECK ME: I think I busted this. -Ossama
5913 if test "$prev" = dlprefiles; then
7357 if test dlprefiles = "$prev"; then
59147358 # Preload the old-style object.
59157359 func_append dlprefiles " $pic_object"
59167360 prev=
59187362
59197363 # A PIC object.
59207364 func_append libobjs " $pic_object"
5921 arg="$pic_object"
5922 fi
7365 arg=$pic_object
7366 }
59237367
59247368 # Non-PIC object.
5925 if test "$non_pic_object" != none; then
7369 if test none != "$non_pic_object"; then
59267370 # Prepend the subdirectory the object is found in.
5927 non_pic_object="$xdir$non_pic_object"
7371 non_pic_object=$xdir$non_pic_object
59287372
59297373 # A standard non-PIC object
59307374 func_append non_pic_objects " $non_pic_object"
5931 if test -z "$pic_object" || test "$pic_object" = none ; then
5932 arg="$non_pic_object"
7375 if test -z "$pic_object" || test none = "$pic_object"; then
7376 arg=$non_pic_object
59337377 fi
59347378 else
59357379 # If the PIC object exists, use it instead.
59367380 # $xdir was prepended to $pic_object above.
5937 non_pic_object="$pic_object"
7381 non_pic_object=$pic_object
59387382 func_append non_pic_objects " $non_pic_object"
59397383 fi
59407384 else
59427386 if $opt_dry_run; then
59437387 # Extract subdirectory from the argument.
59447388 func_dirname "$arg" "/" ""
5945 xdir="$func_dirname_result"
7389 xdir=$func_dirname_result
59467390
59477391 func_lo2o "$arg"
59487392 pic_object=$xdir$objdir/$func_lo2o_result
59507394 func_append libobjs " $pic_object"
59517395 func_append non_pic_objects " $non_pic_object"
59527396 else
5953 func_fatal_error "\`$arg' is not a valid libtool object"
7397 func_fatal_error "'$arg' is not a valid libtool object"
59547398 fi
59557399 fi
59567400 ;;
59667410 # A libtool-controlled library.
59677411
59687412 func_resolve_sysroot "$arg"
5969 if test "$prev" = dlfiles; then
7413 if test dlfiles = "$prev"; then
59707414 # This library was specified with -dlopen.
59717415 func_append dlfiles " $func_resolve_sysroot_result"
59727416 prev=
5973 elif test "$prev" = dlprefiles; then
7417 elif test dlprefiles = "$prev"; then
59747418 # The library was specified with -dlpreopen.
59757419 func_append dlprefiles " $func_resolve_sysroot_result"
59767420 prev=
59857429 # Unknown arguments in both finalize_command and compile_command need
59867430 # to be aesthetically quoted because they are evaled later.
59877431 func_quote_for_eval "$arg"
5988 arg="$func_quote_for_eval_result"
7432 arg=$func_quote_for_eval_result
59897433 ;;
59907434 esac # arg
59917435
59977441 done # argument parsing loop
59987442
59997443 test -n "$prev" && \
6000 func_fatal_help "the \`$prevarg' option requires an argument"
6001
6002 if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
7444 func_fatal_help "the '$prevarg' option requires an argument"
7445
7446 if test yes = "$export_dynamic" && test -n "$export_dynamic_flag_spec"; then
60037447 eval arg=\"$export_dynamic_flag_spec\"
60047448 func_append compile_command " $arg"
60057449 func_append finalize_command " $arg"
60087452 oldlibs=
60097453 # calculate the name of the file, without its directory
60107454 func_basename "$output"
6011 outputname="$func_basename_result"
6012 libobjs_save="$libobjs"
7455 outputname=$func_basename_result
7456 libobjs_save=$libobjs
60137457
60147458 if test -n "$shlibpath_var"; then
60157459 # get the directories listed in $shlibpath_var
6016 eval shlib_search_path=\`\$ECHO \"\${$shlibpath_var}\" \| \$SED \'s/:/ /g\'\`
7460 eval shlib_search_path=\`\$ECHO \"\$$shlibpath_var\" \| \$SED \'s/:/ /g\'\`
60177461 else
60187462 shlib_search_path=
60197463 fi
60207464 eval sys_lib_search_path=\"$sys_lib_search_path_spec\"
60217465 eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
60227466
7467 # Definition is injected by LT_CONFIG during libtool generation.
7468 func_munge_path_list sys_lib_dlsearch_path "$LT_SYS_LIBRARY_PATH"
7469
60237470 func_dirname "$output" "/" ""
6024 output_objdir="$func_dirname_result$objdir"
7471 output_objdir=$func_dirname_result$objdir
60257472 func_to_tool_file "$output_objdir/"
60267473 tool_output_objdir=$func_to_tool_file_result
60277474 # Create the object directory.
60447491 # Find all interdependent deplibs by searching for libraries
60457492 # that are linked more than once (e.g. -la -lb -la)
60467493 for deplib in $deplibs; do
6047 if $opt_preserve_dup_deps ; then
7494 if $opt_preserve_dup_deps; then
60487495 case "$libs " in
60497496 *" $deplib "*) func_append specialdeplibs " $deplib" ;;
60507497 esac
60527499 func_append libs " $deplib"
60537500 done
60547501
6055 if test "$linkmode" = lib; then
7502 if test lib = "$linkmode"; then
60567503 libs="$predeps $libs $compiler_lib_search_path $postdeps"
60577504
60587505 # Compute libraries that are listed more than once in $predeps
60847531 case $file in
60857532 *.la) ;;
60867533 *)
6087 func_fatal_help "libraries can \`-dlopen' only libtool libraries: $file"
7534 func_fatal_help "libraries can '-dlopen' only libtool libraries: $file"
60887535 ;;
60897536 esac
60907537 done
60927539 prog)
60937540 compile_deplibs=
60947541 finalize_deplibs=
6095 alldeplibs=no
7542 alldeplibs=false
60967543 newdlfiles=
60977544 newdlprefiles=
60987545 passes="conv scan dlopen dlpreopen link"
61047551 for pass in $passes; do
61057552 # The preopen pass in lib mode reverses $deplibs; put it back here
61067553 # so that -L comes before libs that need it for instance...
6107 if test "$linkmode,$pass" = "lib,link"; then
7554 if test lib,link = "$linkmode,$pass"; then
61087555 ## FIXME: Find the place where the list is rebuilt in the wrong
61097556 ## order, and fix it there properly
61107557 tmp_deplibs=
61117558 for deplib in $deplibs; do
61127559 tmp_deplibs="$deplib $tmp_deplibs"
61137560 done
6114 deplibs="$tmp_deplibs"
7561 deplibs=$tmp_deplibs
61157562 fi
61167563
6117 if test "$linkmode,$pass" = "lib,link" ||
6118 test "$linkmode,$pass" = "prog,scan"; then
6119 libs="$deplibs"
7564 if test lib,link = "$linkmode,$pass" ||
7565 test prog,scan = "$linkmode,$pass"; then
7566 libs=$deplibs
61207567 deplibs=
61217568 fi
6122 if test "$linkmode" = prog; then
7569 if test prog = "$linkmode"; then
61237570 case $pass in
6124 dlopen) libs="$dlfiles" ;;
6125 dlpreopen) libs="$dlprefiles" ;;
7571 dlopen) libs=$dlfiles ;;
7572 dlpreopen) libs=$dlprefiles ;;
61267573 link)
61277574 libs="$deplibs %DEPLIBS%"
61287575 test "X$link_all_deplibs" != Xno && libs="$libs $dependency_libs"
61297576 ;;
61307577 esac
61317578 fi
6132 if test "$linkmode,$pass" = "lib,dlpreopen"; then
7579 if test lib,dlpreopen = "$linkmode,$pass"; then
61337580 # Collect and forward deplibs of preopened libtool libs
61347581 for lib in $dlprefiles; do
61357582 # Ignore non-libtool-libs
61507597 esac
61517598 done
61527599 done
6153 libs="$dlprefiles"
7600 libs=$dlprefiles
61547601 fi
6155 if test "$pass" = dlopen; then
7602 if test dlopen = "$pass"; then
61567603 # Collect dlpreopened libraries
6157 save_deplibs="$deplibs"
7604 save_deplibs=$deplibs
61587605 deplibs=
61597606 fi
61607607
61617608 for deplib in $libs; do
61627609 lib=
6163 found=no
7610 found=false
61647611 case $deplib in
61657612 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \
61667613 |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*)
6167 if test "$linkmode,$pass" = "prog,link"; then
7614 if test prog,link = "$linkmode,$pass"; then
61687615 compile_deplibs="$deplib $compile_deplibs"
61697616 finalize_deplibs="$deplib $finalize_deplibs"
61707617 else
61717618 func_append compiler_flags " $deplib"
6172 if test "$linkmode" = lib ; then
7619 if test lib = "$linkmode"; then
61737620 case "$new_inherited_linker_flags " in
61747621 *" $deplib "*) ;;
61757622 * ) func_append new_inherited_linker_flags " $deplib" ;;
61797626 continue
61807627 ;;
61817628 -l*)
6182 if test "$linkmode" != lib && test "$linkmode" != prog; then
6183 func_warning "\`-l' is ignored for archives/objects"
7629 if test lib != "$linkmode" && test prog != "$linkmode"; then
7630 func_warning "'-l' is ignored for archives/objects"
61847631 continue
61857632 fi
61867633 func_stripname '-l' '' "$deplib"
61877634 name=$func_stripname_result
6188 if test "$linkmode" = lib; then
7635 if test lib = "$linkmode"; then
61897636 searchdirs="$newlib_search_path $lib_search_path $compiler_lib_search_dirs $sys_lib_search_path $shlib_search_path"
61907637 else
61917638 searchdirs="$newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path"
61937640 for searchdir in $searchdirs; do
61947641 for search_ext in .la $std_shrext .so .a; do
61957642 # Search the libtool library
6196 lib="$searchdir/lib${name}${search_ext}"
7643 lib=$searchdir/lib$name$search_ext
61977644 if test -f "$lib"; then
6198 if test "$search_ext" = ".la"; then
6199 found=yes
7645 if test .la = "$search_ext"; then
7646 found=:
62007647 else
6201 found=no
7648 found=false
62027649 fi
62037650 break 2
62047651 fi
62057652 done
62067653 done
6207 if test "$found" != yes; then
6208 # deplib doesn't seem to be a libtool library
6209 if test "$linkmode,$pass" = "prog,link"; then
6210 compile_deplibs="$deplib $compile_deplibs"
6211 finalize_deplibs="$deplib $finalize_deplibs"
6212 else
6213 deplibs="$deplib $deplibs"
6214 test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
6215 fi
6216 continue
6217 else # deplib is a libtool library
7654 if $found; then
7655 # deplib is a libtool library
62187656 # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib,
62197657 # We need to do some special things here, and not later.
6220 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
7658 if test yes = "$allow_libtool_libs_with_static_runtimes"; then
62217659 case " $predeps $postdeps " in
62227660 *" $deplib "*)
62237661 if func_lalib_p "$lib"; then
62257663 old_library=
62267664 func_source "$lib"
62277665 for l in $old_library $library_names; do
6228 ll="$l"
7666 ll=$l
62297667 done
6230 if test "X$ll" = "X$old_library" ; then # only static version available
6231 found=no
7668 if test "X$ll" = "X$old_library"; then # only static version available
7669 found=false
62327670 func_dirname "$lib" "" "."
6233 ladir="$func_dirname_result"
7671 ladir=$func_dirname_result
62347672 lib=$ladir/$old_library
6235 if test "$linkmode,$pass" = "prog,link"; then
7673 if test prog,link = "$linkmode,$pass"; then
62367674 compile_deplibs="$deplib $compile_deplibs"
62377675 finalize_deplibs="$deplib $finalize_deplibs"
62387676 else
62397677 deplibs="$deplib $deplibs"
6240 test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
7678 test lib = "$linkmode" && newdependency_libs="$deplib $newdependency_libs"
62417679 fi
62427680 continue
62437681 fi
62467684 *) ;;
62477685 esac
62487686 fi
7687 else
7688 # deplib doesn't seem to be a libtool library
7689 if test prog,link = "$linkmode,$pass"; then
7690 compile_deplibs="$deplib $compile_deplibs"
7691 finalize_deplibs="$deplib $finalize_deplibs"
7692 else
7693 deplibs="$deplib $deplibs"
7694 test lib = "$linkmode" && newdependency_libs="$deplib $newdependency_libs"
7695 fi
7696 continue
62497697 fi
62507698 ;; # -l
62517699 *.ltframework)
6252 if test "$linkmode,$pass" = "prog,link"; then
7700 if test prog,link = "$linkmode,$pass"; then
62537701 compile_deplibs="$deplib $compile_deplibs"
62547702 finalize_deplibs="$deplib $finalize_deplibs"
62557703 else
62567704 deplibs="$deplib $deplibs"
6257 if test "$linkmode" = lib ; then
7705 if test lib = "$linkmode"; then
62587706 case "$new_inherited_linker_flags " in
62597707 *" $deplib "*) ;;
62607708 * ) func_append new_inherited_linker_flags " $deplib" ;;
62677715 case $linkmode in
62687716 lib)
62697717 deplibs="$deplib $deplibs"
6270 test "$pass" = conv && continue
7718 test conv = "$pass" && continue
62717719 newdependency_libs="$deplib $newdependency_libs"
62727720 func_stripname '-L' '' "$deplib"
62737721 func_resolve_sysroot "$func_stripname_result"
62747722 func_append newlib_search_path " $func_resolve_sysroot_result"
62757723 ;;
62767724 prog)
6277 if test "$pass" = conv; then
7725 if test conv = "$pass"; then
62787726 deplibs="$deplib $deplibs"
62797727 continue
62807728 fi
6281 if test "$pass" = scan; then
7729 if test scan = "$pass"; then
62827730 deplibs="$deplib $deplibs"
62837731 else
62847732 compile_deplibs="$deplib $compile_deplibs"
62897737 func_append newlib_search_path " $func_resolve_sysroot_result"
62907738 ;;
62917739 *)
6292 func_warning "\`-L' is ignored for archives/objects"
7740 func_warning "'-L' is ignored for archives/objects"
62937741 ;;
62947742 esac # linkmode
62957743 continue
62967744 ;; # -L
62977745 -R*)
6298 if test "$pass" = link; then
7746 if test link = "$pass"; then
62997747 func_stripname '-R' '' "$deplib"
63007748 func_resolve_sysroot "$func_stripname_result"
63017749 dir=$func_resolve_sysroot_result
63137761 lib=$func_resolve_sysroot_result
63147762 ;;
63157763 *.$libext)
6316 if test "$pass" = conv; then
7764 if test conv = "$pass"; then
63177765 deplibs="$deplib $deplibs"
63187766 continue
63197767 fi
63247772 case " $dlpreconveniencelibs " in
63257773 *" $deplib "*) ;;
63267774 *)
6327 valid_a_lib=no
7775 valid_a_lib=false
63287776 case $deplibs_check_method in
63297777 match_pattern*)
63307778 set dummy $deplibs_check_method; shift
63317779 match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
63327780 if eval "\$ECHO \"$deplib\"" 2>/dev/null | $SED 10q \
63337781 | $EGREP "$match_pattern_regex" > /dev/null; then
6334 valid_a_lib=yes
7782 valid_a_lib=:
63357783 fi
63367784 ;;
63377785 pass_all)
6338 valid_a_lib=yes
7786 valid_a_lib=:
63397787 ;;
63407788 esac
6341 if test "$valid_a_lib" != yes; then
7789 if $valid_a_lib; then
7790 echo
7791 $ECHO "*** Warning: Linking the shared library $output against the"
7792 $ECHO "*** static library $deplib is not portable!"
7793 deplibs="$deplib $deplibs"
7794 else
63427795 echo
63437796 $ECHO "*** Warning: Trying to link with static lib archive $deplib."
63447797 echo "*** I have the capability to make that library automatically link in when"
63467799 echo "*** shared version of the library, which you do not appear to have"
63477800 echo "*** because the file extensions .$libext of this argument makes me believe"
63487801 echo "*** that it is just a static archive that I should not use here."
6349 else
6350 echo
6351 $ECHO "*** Warning: Linking the shared library $output against the"
6352 $ECHO "*** static library $deplib is not portable!"
6353 deplibs="$deplib $deplibs"
63547802 fi
63557803 ;;
63567804 esac
63577805 continue
63587806 ;;
63597807 prog)
6360 if test "$pass" != link; then
7808 if test link != "$pass"; then
63617809 deplibs="$deplib $deplibs"
63627810 else
63637811 compile_deplibs="$deplib $compile_deplibs"
63687816 esac # linkmode
63697817 ;; # *.$libext
63707818 *.lo | *.$objext)
6371 if test "$pass" = conv; then
7819 if test conv = "$pass"; then
63727820 deplibs="$deplib $deplibs"
6373 elif test "$linkmode" = prog; then
6374 if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
7821 elif test prog = "$linkmode"; then
7822 if test dlpreopen = "$pass" || test yes != "$dlopen_support" || test no = "$build_libtool_libs"; then
63757823 # If there is no dlopen support or we're linking statically,
63767824 # we need to preload.
63777825 func_append newdlprefiles " $deplib"
63847832 continue
63857833 ;;
63867834 %DEPLIBS%)
6387 alldeplibs=yes
7835 alldeplibs=:
63887836 continue
63897837 ;;
63907838 esac # case $deplib
63917839
6392 if test "$found" = yes || test -f "$lib"; then :
6393 else
6394 func_fatal_error "cannot find the library \`$lib' or unhandled argument \`$deplib'"
6395 fi
7840 $found || test -f "$lib" \
7841 || func_fatal_error "cannot find the library '$lib' or unhandled argument '$deplib'"
63967842
63977843 # Check to see that this really is a libtool archive.
63987844 func_lalib_unsafe_p "$lib" \
6399 || func_fatal_error "\`$lib' is not a valid libtool archive"
7845 || func_fatal_error "'$lib' is not a valid libtool archive"
64007846
64017847 func_dirname "$lib" "" "."
6402 ladir="$func_dirname_result"
7848 ladir=$func_dirname_result
64037849
64047850 dlname=
64057851 dlopen=
64297875 done
64307876 fi
64317877 dependency_libs=`$ECHO " $dependency_libs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
6432 if test "$linkmode,$pass" = "lib,link" ||
6433 test "$linkmode,$pass" = "prog,scan" ||
6434 { test "$linkmode" != prog && test "$linkmode" != lib; }; then
7878 if test lib,link = "$linkmode,$pass" ||
7879 test prog,scan = "$linkmode,$pass" ||
7880 { test prog != "$linkmode" && test lib != "$linkmode"; }; then
64357881 test -n "$dlopen" && func_append dlfiles " $dlopen"
64367882 test -n "$dlpreopen" && func_append dlprefiles " $dlpreopen"
64377883 fi
64387884
6439 if test "$pass" = conv; then
7885 if test conv = "$pass"; then
64407886 # Only check for convenience libraries
64417887 deplibs="$lib $deplibs"
64427888 if test -z "$libdir"; then
64437889 if test -z "$old_library"; then
6444 func_fatal_error "cannot find name of link library for \`$lib'"
7890 func_fatal_error "cannot find name of link library for '$lib'"
64457891 fi
64467892 # It is a libtool convenience library, so add in its objects.
64477893 func_append convenience " $ladir/$objdir/$old_library"
64497895 tmp_libs=
64507896 for deplib in $dependency_libs; do
64517897 deplibs="$deplib $deplibs"
6452 if $opt_preserve_dup_deps ; then
7898 if $opt_preserve_dup_deps; then
64537899 case "$tmp_libs " in
64547900 *" $deplib "*) func_append specialdeplibs " $deplib" ;;
64557901 esac
64567902 fi
64577903 func_append tmp_libs " $deplib"
64587904 done
6459 elif test "$linkmode" != prog && test "$linkmode" != lib; then
6460 func_fatal_error "\`$lib' is not a convenience library"
7905 elif test prog != "$linkmode" && test lib != "$linkmode"; then
7906 func_fatal_error "'$lib' is not a convenience library"
64617907 fi
64627908 continue
64637909 fi # $pass = conv
64667912 # Get the name of the library we link against.
64677913 linklib=
64687914 if test -n "$old_library" &&
6469 { test "$prefer_static_libs" = yes ||
6470 test "$prefer_static_libs,$installed" = "built,no"; }; then
7915 { test yes = "$prefer_static_libs" ||
7916 test built,no = "$prefer_static_libs,$installed"; }; then
64717917 linklib=$old_library
64727918 else
64737919 for l in $old_library $library_names; do
6474 linklib="$l"
7920 linklib=$l
64757921 done
64767922 fi
64777923 if test -z "$linklib"; then
6478 func_fatal_error "cannot find name of link library for \`$lib'"
7924 func_fatal_error "cannot find name of link library for '$lib'"
64797925 fi
64807926
64817927 # This library was specified with -dlopen.
6482 if test "$pass" = dlopen; then
6483 if test -z "$libdir"; then
6484 func_fatal_error "cannot -dlopen a convenience library: \`$lib'"
6485 fi
7928 if test dlopen = "$pass"; then
7929 test -z "$libdir" \
7930 && func_fatal_error "cannot -dlopen a convenience library: '$lib'"
64867931 if test -z "$dlname" ||
6487 test "$dlopen_support" != yes ||
6488 test "$build_libtool_libs" = no; then
7932 test yes != "$dlopen_support" ||
7933 test no = "$build_libtool_libs"
7934 then
64897935 # If there is no dlname, no dlopen support or we're linking
64907936 # statically, we need to preload. We also need to preload any
64917937 # dependent libraries so libltdl's deplib preloader doesn't
64997945
65007946 # We need an absolute path.
65017947 case $ladir in
6502 [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;;
7948 [\\/]* | [A-Za-z]:[\\/]*) abs_ladir=$ladir ;;
65037949 *)
65047950 abs_ladir=`cd "$ladir" && pwd`
65057951 if test -z "$abs_ladir"; then
6506 func_warning "cannot determine absolute directory name of \`$ladir'"
7952 func_warning "cannot determine absolute directory name of '$ladir'"
65077953 func_warning "passing it literally to the linker, although it might fail"
6508 abs_ladir="$ladir"
7954 abs_ladir=$ladir
65097955 fi
65107956 ;;
65117957 esac
65127958 func_basename "$lib"
6513 laname="$func_basename_result"
7959 laname=$func_basename_result
65147960
65157961 # Find the relevant object directory and library name.
6516 if test "X$installed" = Xyes; then
7962 if test yes = "$installed"; then
65177963 if test ! -f "$lt_sysroot$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
6518 func_warning "library \`$lib' was moved."
6519 dir="$ladir"
6520 absdir="$abs_ladir"
6521 libdir="$abs_ladir"
7964 func_warning "library '$lib' was moved."
7965 dir=$ladir
7966 absdir=$abs_ladir
7967 libdir=$abs_ladir
65227968 else
6523 dir="$lt_sysroot$libdir"
6524 absdir="$lt_sysroot$libdir"
7969 dir=$lt_sysroot$libdir
7970 absdir=$lt_sysroot$libdir
65257971 fi
6526 test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
7972 test yes = "$hardcode_automatic" && avoidtemprpath=yes
65277973 else
65287974 if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
6529 dir="$ladir"
6530 absdir="$abs_ladir"
7975 dir=$ladir
7976 absdir=$abs_ladir
65317977 # Remove this search path later
65327978 func_append notinst_path " $abs_ladir"
65337979 else
6534 dir="$ladir/$objdir"
6535 absdir="$abs_ladir/$objdir"
7980 dir=$ladir/$objdir
7981 absdir=$abs_ladir/$objdir
65367982 # Remove this search path later
65377983 func_append notinst_path " $abs_ladir"
65387984 fi
65417987 name=$func_stripname_result
65427988
65437989 # This library was specified with -dlpreopen.
6544 if test "$pass" = dlpreopen; then
6545 if test -z "$libdir" && test "$linkmode" = prog; then
6546 func_fatal_error "only libraries may -dlpreopen a convenience library: \`$lib'"
7990 if test dlpreopen = "$pass"; then
7991 if test -z "$libdir" && test prog = "$linkmode"; then
7992 func_fatal_error "only libraries may -dlpreopen a convenience library: '$lib'"
65477993 fi
6548 case "$host" in
7994 case $host in
65497995 # special handling for platforms with PE-DLLs.
65507996 *cygwin* | *mingw* | *cegcc* )
65517997 # Linker will automatically link against shared library if both
65898035
65908036 if test -z "$libdir"; then
65918037 # Link the convenience library
6592 if test "$linkmode" = lib; then
8038 if test lib = "$linkmode"; then
65938039 deplibs="$dir/$old_library $deplibs"
6594 elif test "$linkmode,$pass" = "prog,link"; then
8040 elif test prog,link = "$linkmode,$pass"; then
65958041 compile_deplibs="$dir/$old_library $compile_deplibs"
65968042 finalize_deplibs="$dir/$old_library $finalize_deplibs"
65978043 else
66018047 fi
66028048
66038049
6604 if test "$linkmode" = prog && test "$pass" != link; then
8050 if test prog = "$linkmode" && test link != "$pass"; then
66058051 func_append newlib_search_path " $ladir"
66068052 deplibs="$lib $deplibs"
66078053
6608 linkalldeplibs=no
6609 if test "$link_all_deplibs" != no || test -z "$library_names" ||
6610 test "$build_libtool_libs" = no; then
6611 linkalldeplibs=yes
8054 linkalldeplibs=false
8055 if test no != "$link_all_deplibs" || test -z "$library_names" ||
8056 test no = "$build_libtool_libs"; then
8057 linkalldeplibs=:
66128058 fi
66138059
66148060 tmp_libs=
66208066 ;;
66218067 esac
66228068 # Need to link against all dependency_libs?
6623 if test "$linkalldeplibs" = yes; then
8069 if $linkalldeplibs; then
66248070 deplibs="$deplib $deplibs"
66258071 else
66268072 # Need to hardcode shared library paths
66278073 # or/and link against static libraries
66288074 newdependency_libs="$deplib $newdependency_libs"
66298075 fi
6630 if $opt_preserve_dup_deps ; then
8076 if $opt_preserve_dup_deps; then
66318077 case "$tmp_libs " in
66328078 *" $deplib "*) func_append specialdeplibs " $deplib" ;;
66338079 esac
66378083 continue
66388084 fi # $linkmode = prog...
66398085
6640 if test "$linkmode,$pass" = "prog,link"; then
8086 if test prog,link = "$linkmode,$pass"; then
66418087 if test -n "$library_names" &&
6642 { { test "$prefer_static_libs" = no ||
6643 test "$prefer_static_libs,$installed" = "built,yes"; } ||
8088 { { test no = "$prefer_static_libs" ||
8089 test built,yes = "$prefer_static_libs,$installed"; } ||
66448090 test -z "$old_library"; }; then
66458091 # We need to hardcode the library path
6646 if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then
8092 if test -n "$shlibpath_var" && test -z "$avoidtemprpath"; then
66478093 # Make sure the rpath contains only unique directories.
6648 case "$temp_rpath:" in
8094 case $temp_rpath: in
66498095 *"$absdir:"*) ;;
66508096 *) func_append temp_rpath "$absdir:" ;;
66518097 esac
66748120 esac
66758121 fi # $linkmode,$pass = prog,link...
66768122
6677 if test "$alldeplibs" = yes &&
6678 { test "$deplibs_check_method" = pass_all ||
6679 { test "$build_libtool_libs" = yes &&
8123 if $alldeplibs &&
8124 { test pass_all = "$deplibs_check_method" ||
8125 { test yes = "$build_libtool_libs" &&
66808126 test -n "$library_names"; }; }; then
66818127 # We only need to search for static libraries
66828128 continue
66858131
66868132 link_static=no # Whether the deplib will be linked statically
66878133 use_static_libs=$prefer_static_libs
6688 if test "$use_static_libs" = built && test "$installed" = yes; then
8134 if test built = "$use_static_libs" && test yes = "$installed"; then
66898135 use_static_libs=no
66908136 fi
66918137 if test -n "$library_names" &&
6692 { test "$use_static_libs" = no || test -z "$old_library"; }; then
8138 { test no = "$use_static_libs" || test -z "$old_library"; }; then
66938139 case $host in
6694 *cygwin* | *mingw* | *cegcc*)
8140 *cygwin* | *mingw* | *cegcc* | *os2*)
66958141 # No point in relinking DLLs because paths are not encoded
66968142 func_append notinst_deplibs " $lib"
66978143 need_relink=no
66988144 ;;
66998145 *)
6700 if test "$installed" = no; then
8146 if test no = "$installed"; then
67018147 func_append notinst_deplibs " $lib"
67028148 need_relink=yes
67038149 fi
67078153
67088154 # Warn about portability, can't link against -module's on some
67098155 # systems (darwin). Don't bleat about dlopened modules though!
6710 dlopenmodule=""
8156 dlopenmodule=
67118157 for dlpremoduletest in $dlprefiles; do
67128158 if test "X$dlpremoduletest" = "X$lib"; then
6713 dlopenmodule="$dlpremoduletest"
8159 dlopenmodule=$dlpremoduletest
67148160 break
67158161 fi
67168162 done
6717 if test -z "$dlopenmodule" && test "$shouldnotlink" = yes && test "$pass" = link; then
8163 if test -z "$dlopenmodule" && test yes = "$shouldnotlink" && test link = "$pass"; then
67188164 echo
6719 if test "$linkmode" = prog; then
8165 if test prog = "$linkmode"; then
67208166 $ECHO "*** Warning: Linking the executable $output against the loadable module"
67218167 else
67228168 $ECHO "*** Warning: Linking the shared library $output against the loadable module"
67238169 fi
67248170 $ECHO "*** $linklib is not portable!"
67258171 fi
6726 if test "$linkmode" = lib &&
6727 test "$hardcode_into_libs" = yes; then
8172 if test lib = "$linkmode" &&
8173 test yes = "$hardcode_into_libs"; then
67288174 # Hardcode the library path.
67298175 # Skip directories that are in the system default run-time
67308176 # search path.
67528198 # figure out the soname
67538199 set dummy $library_names
67548200 shift
6755 realname="$1"
8201 realname=$1
67568202 shift
67578203 libname=`eval "\\$ECHO \"$libname_spec\""`
67588204 # use dlname if we got it. it's perfectly good, no?
67598205 if test -n "$dlname"; then
6760 soname="$dlname"
8206 soname=$dlname
67618207 elif test -n "$soname_spec"; then
67628208 # bleh windows
67638209 case $host in
6764 *cygwin* | mingw* | *cegcc*)
8210 *cygwin* | mingw* | *cegcc* | *os2*)
67658211 func_arith $current - $age
67668212 major=$func_arith_result
6767 versuffix="-$major"
8213 versuffix=-$major
67688214 ;;
67698215 esac
67708216 eval soname=\"$soname_spec\"
67718217 else
6772 soname="$realname"
8218 soname=$realname
67738219 fi
67748220
67758221 # Make a new name for the extract_expsyms_cmds to use
6776 soroot="$soname"
8222 soroot=$soname
67778223 func_basename "$soroot"
6778 soname="$func_basename_result"
8224 soname=$func_basename_result
67798225 func_stripname 'lib' '.dll' "$soname"
67808226 newlib=libimp-$func_stripname_result.a
67818227
67828228 # If the library has no export list, then create one now
67838229 if test -f "$output_objdir/$soname-def"; then :
67848230 else
6785 func_verbose "extracting exported symbol list from \`$soname'"
8231 func_verbose "extracting exported symbol list from '$soname'"
67868232 func_execute_cmds "$extract_expsyms_cmds" 'exit $?'
67878233 fi
67888234
67898235 # Create $newlib
67908236 if test -f "$output_objdir/$newlib"; then :; else
6791 func_verbose "generating import library for \`$soname'"
8237 func_verbose "generating import library for '$soname'"
67928238 func_execute_cmds "$old_archive_from_expsyms_cmds" 'exit $?'
67938239 fi
67948240 # make sure the library variables are pointing to the new library
67968242 linklib=$newlib
67978243 fi # test -n "$old_archive_from_expsyms_cmds"
67988244
6799 if test "$linkmode" = prog || test "$opt_mode" != relink; then
8245 if test prog = "$linkmode" || test relink != "$opt_mode"; then
68008246 add_shlibpath=
68018247 add_dir=
68028248 add=
68038249 lib_linked=yes
68048250 case $hardcode_action in
68058251 immediate | unsupported)
6806 if test "$hardcode_direct" = no; then
6807 add="$dir/$linklib"
8252 if test no = "$hardcode_direct"; then
8253 add=$dir/$linklib
68088254 case $host in
6809 *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;;
6810 *-*-sysv4*uw2*) add_dir="-L$dir" ;;
8255 *-*-sco3.2v5.0.[024]*) add_dir=-L$dir ;;
8256 *-*-sysv4*uw2*) add_dir=-L$dir ;;
68118257 *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \
6812 *-*-unixware7*) add_dir="-L$dir" ;;
8258 *-*-unixware7*) add_dir=-L$dir ;;
68138259 *-*-darwin* )
6814 # if the lib is a (non-dlopened) module then we can not
8260 # if the lib is a (non-dlopened) module then we cannot
68158261 # link against it, someone is ignoring the earlier warnings
68168262 if /usr/bin/file -L $add 2> /dev/null |
6817 $GREP ": [^:]* bundle" >/dev/null ; then
8263 $GREP ": [^:]* bundle" >/dev/null; then
68188264 if test "X$dlopenmodule" != "X$lib"; then
68198265 $ECHO "*** Warning: lib $linklib is a module, not a shared library"
6820 if test -z "$old_library" ; then
8266 if test -z "$old_library"; then
68218267 echo
68228268 echo "*** And there doesn't seem to be a static archive available"
68238269 echo "*** The link will probably fail, sorry"
68248270 else
6825 add="$dir/$old_library"
8271 add=$dir/$old_library
68268272 fi
68278273 elif test -n "$old_library"; then
6828 add="$dir/$old_library"
8274 add=$dir/$old_library
68298275 fi
68308276 fi
68318277 esac
6832 elif test "$hardcode_minus_L" = no; then
8278 elif test no = "$hardcode_minus_L"; then
68338279 case $host in
6834 *-*-sunos*) add_shlibpath="$dir" ;;
8280 *-*-sunos*) add_shlibpath=$dir ;;
68358281 esac
6836 add_dir="-L$dir"
6837 add="-l$name"
6838 elif test "$hardcode_shlibpath_var" = no; then
6839 add_shlibpath="$dir"
6840 add="-l$name"
8282 add_dir=-L$dir
8283 add=-l$name
8284 elif test no = "$hardcode_shlibpath_var"; then
8285 add_shlibpath=$dir
8286 add=-l$name
68418287 else
68428288 lib_linked=no
68438289 fi
68448290 ;;
68458291 relink)
6846 if test "$hardcode_direct" = yes &&
6847 test "$hardcode_direct_absolute" = no; then
6848 add="$dir/$linklib"
6849 elif test "$hardcode_minus_L" = yes; then
6850 add_dir="-L$absdir"
8292 if test yes = "$hardcode_direct" &&
8293 test no = "$hardcode_direct_absolute"; then
8294 add=$dir/$linklib
8295 elif test yes = "$hardcode_minus_L"; then
8296 add_dir=-L$absdir
68518297 # Try looking first in the location we're being installed to.
68528298 if test -n "$inst_prefix_dir"; then
68538299 case $libdir in
68568302 ;;
68578303 esac
68588304 fi
6859 add="-l$name"
6860 elif test "$hardcode_shlibpath_var" = yes; then
6861 add_shlibpath="$dir"
6862 add="-l$name"
8305 add=-l$name
8306 elif test yes = "$hardcode_shlibpath_var"; then
8307 add_shlibpath=$dir
8308 add=-l$name
68638309 else
68648310 lib_linked=no
68658311 fi
68678313 *) lib_linked=no ;;
68688314 esac
68698315
6870 if test "$lib_linked" != yes; then
8316 if test yes != "$lib_linked"; then
68718317 func_fatal_configuration "unsupported hardcode properties"
68728318 fi
68738319
68778323 *) func_append compile_shlibpath "$add_shlibpath:" ;;
68788324 esac
68798325 fi
6880 if test "$linkmode" = prog; then
8326 if test prog = "$linkmode"; then
68818327 test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs"
68828328 test -n "$add" && compile_deplibs="$add $compile_deplibs"
68838329 else
68848330 test -n "$add_dir" && deplibs="$add_dir $deplibs"
68858331 test -n "$add" && deplibs="$add $deplibs"
6886 if test "$hardcode_direct" != yes &&
6887 test "$hardcode_minus_L" != yes &&
6888 test "$hardcode_shlibpath_var" = yes; then
8332 if test yes != "$hardcode_direct" &&
8333 test yes != "$hardcode_minus_L" &&
8334 test yes = "$hardcode_shlibpath_var"; then
68898335 case :$finalize_shlibpath: in
68908336 *":$libdir:"*) ;;
68918337 *) func_append finalize_shlibpath "$libdir:" ;;
68948340 fi
68958341 fi
68968342
6897 if test "$linkmode" = prog || test "$opt_mode" = relink; then
8343 if test prog = "$linkmode" || test relink = "$opt_mode"; then
68988344 add_shlibpath=
68998345 add_dir=
69008346 add=
69018347 # Finalize command for both is simple: just hardcode it.
6902 if test "$hardcode_direct" = yes &&
6903 test "$hardcode_direct_absolute" = no; then
6904 add="$libdir/$linklib"
6905 elif test "$hardcode_minus_L" = yes; then
6906 add_dir="-L$libdir"
6907 add="-l$name"
6908 elif test "$hardcode_shlibpath_var" = yes; then
8348 if test yes = "$hardcode_direct" &&
8349 test no = "$hardcode_direct_absolute"; then
8350 add=$libdir/$linklib
8351 elif test yes = "$hardcode_minus_L"; then
8352 add_dir=-L$libdir
8353 add=-l$name
8354 elif test yes = "$hardcode_shlibpath_var"; then
69098355 case :$finalize_shlibpath: in
69108356 *":$libdir:"*) ;;
69118357 *) func_append finalize_shlibpath "$libdir:" ;;
69128358 esac
6913 add="-l$name"
6914 elif test "$hardcode_automatic" = yes; then
8359 add=-l$name
8360 elif test yes = "$hardcode_automatic"; then
69158361 if test -n "$inst_prefix_dir" &&
6916 test -f "$inst_prefix_dir$libdir/$linklib" ; then
6917 add="$inst_prefix_dir$libdir/$linklib"
8362 test -f "$inst_prefix_dir$libdir/$linklib"; then
8363 add=$inst_prefix_dir$libdir/$linklib
69188364 else
6919 add="$libdir/$linklib"
8365 add=$libdir/$linklib
69208366 fi
69218367 else
69228368 # We cannot seem to hardcode it, guess we'll fake it.
6923 add_dir="-L$libdir"
8369 add_dir=-L$libdir
69248370 # Try looking first in the location we're being installed to.
69258371 if test -n "$inst_prefix_dir"; then
69268372 case $libdir in
69298375 ;;
69308376 esac
69318377 fi
6932 add="-l$name"
8378 add=-l$name
69338379 fi
69348380
6935 if test "$linkmode" = prog; then
8381 if test prog = "$linkmode"; then
69368382 test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
69378383 test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
69388384 else
69408386 test -n "$add" && deplibs="$add $deplibs"
69418387 fi
69428388 fi
6943 elif test "$linkmode" = prog; then
8389 elif test prog = "$linkmode"; then
69448390 # Here we assume that one of hardcode_direct or hardcode_minus_L
69458391 # is not unsupported. This is valid on all known static and
69468392 # shared platforms.
6947 if test "$hardcode_direct" != unsupported; then
6948 test -n "$old_library" && linklib="$old_library"
8393 if test unsupported != "$hardcode_direct"; then
8394 test -n "$old_library" && linklib=$old_library
69498395 compile_deplibs="$dir/$linklib $compile_deplibs"
69508396 finalize_deplibs="$dir/$linklib $finalize_deplibs"
69518397 else
69528398 compile_deplibs="-l$name -L$dir $compile_deplibs"
69538399 finalize_deplibs="-l$name -L$dir $finalize_deplibs"
69548400 fi
6955 elif test "$build_libtool_libs" = yes; then
8401 elif test yes = "$build_libtool_libs"; then
69568402 # Not a shared library
6957 if test "$deplibs_check_method" != pass_all; then
8403 if test pass_all != "$deplibs_check_method"; then
69588404 # We're trying link a shared library against a static one
69598405 # but the system doesn't support it.
69608406
69618407 # Just print a warning and add the library to dependency_libs so
69628408 # that the program can be linked against the static library.
69638409 echo
6964 $ECHO "*** Warning: This system can not link to static lib archive $lib."
8410 $ECHO "*** Warning: This system cannot link to static lib archive $lib."
69658411 echo "*** I have the capability to make that library automatically link in when"
69668412 echo "*** you link to this library. But I can only do this if you have a"
69678413 echo "*** shared version of the library, which you do not appear to have."
6968 if test "$module" = yes; then
8414 if test yes = "$module"; then
69698415 echo "*** But as you try to build a module library, libtool will still create "
69708416 echo "*** a static module, that should work as long as the dlopening application"
69718417 echo "*** is linked with the -dlopen flag to resolve symbols at runtime."
69728418 if test -z "$global_symbol_pipe"; then
69738419 echo
69748420 echo "*** However, this would only work if libtool was able to extract symbol"
6975 echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
8421 echo "*** lists from a program, using 'nm' or equivalent, but libtool could"
69768422 echo "*** not find such a program. So, this module is probably useless."
6977 echo "*** \`nm' from GNU binutils and a full rebuild may help."
8423 echo "*** 'nm' from GNU binutils and a full rebuild may help."
69788424 fi
6979 if test "$build_old_libs" = no; then
8425 if test no = "$build_old_libs"; then
69808426 build_libtool_libs=module
69818427 build_old_libs=yes
69828428 else
69898435 fi
69908436 fi # link shared/static library?
69918437
6992 if test "$linkmode" = lib; then
8438 if test lib = "$linkmode"; then
69938439 if test -n "$dependency_libs" &&
6994 { test "$hardcode_into_libs" != yes ||
6995 test "$build_old_libs" = yes ||
6996 test "$link_static" = yes; }; then
8440 { test yes != "$hardcode_into_libs" ||
8441 test yes = "$build_old_libs" ||
8442 test yes = "$link_static"; }; then
69978443 # Extract -R from dependency_libs
69988444 temp_deplibs=
69998445 for libdir in $dependency_libs; do
70078453 *) func_append temp_deplibs " $libdir";;
70088454 esac
70098455 done
7010 dependency_libs="$temp_deplibs"
8456 dependency_libs=$temp_deplibs
70118457 fi
70128458
70138459 func_append newlib_search_path " $absdir"
70148460 # Link against this library
7015 test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
8461 test no = "$link_static" && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
70168462 # ... and its dependency_libs
70178463 tmp_libs=
70188464 for deplib in $dependency_libs; do
70228468 func_resolve_sysroot "$func_stripname_result";;
70238469 *) func_resolve_sysroot "$deplib" ;;
70248470 esac
7025 if $opt_preserve_dup_deps ; then
8471 if $opt_preserve_dup_deps; then
70268472 case "$tmp_libs " in
70278473 *" $func_resolve_sysroot_result "*)
70288474 func_append specialdeplibs " $func_resolve_sysroot_result" ;;
70318477 func_append tmp_libs " $func_resolve_sysroot_result"
70328478 done
70338479
7034 if test "$link_all_deplibs" != no; then
8480 if test no != "$link_all_deplibs"; then
70358481 # Add the search paths of all dependency libraries
70368482 for deplib in $dependency_libs; do
70378483 path=
70388484 case $deplib in
7039 -L*) path="$deplib" ;;
8485 -L*) path=$deplib ;;
70408486 *.la)
70418487 func_resolve_sysroot "$deplib"
70428488 deplib=$func_resolve_sysroot_result
70448490 dir=$func_dirname_result
70458491 # We need an absolute path.
70468492 case $dir in
7047 [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;
8493 [\\/]* | [A-Za-z]:[\\/]*) absdir=$dir ;;
70488494 *)
70498495 absdir=`cd "$dir" && pwd`
70508496 if test -z "$absdir"; then
7051 func_warning "cannot determine absolute directory name of \`$dir'"
7052 absdir="$dir"
8497 func_warning "cannot determine absolute directory name of '$dir'"
8498 absdir=$dir
70538499 fi
70548500 ;;
70558501 esac
70578503 case $host in
70588504 *-*-darwin*)
70598505 depdepl=
7060 eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
7061 if test -n "$deplibrary_names" ; then
7062 for tmp in $deplibrary_names ; do
8506 eval deplibrary_names=`$SED -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
8507 if test -n "$deplibrary_names"; then
8508 for tmp in $deplibrary_names; do
70638509 depdepl=$tmp
70648510 done
7065 if test -f "$absdir/$objdir/$depdepl" ; then
7066 depdepl="$absdir/$objdir/$depdepl"
7067 darwin_install_name=`${OTOOL} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
8511 if test -f "$absdir/$objdir/$depdepl"; then
8512 depdepl=$absdir/$objdir/$depdepl
8513 darwin_install_name=`$OTOOL -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
70688514 if test -z "$darwin_install_name"; then
7069 darwin_install_name=`${OTOOL64} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
8515 darwin_install_name=`$OTOOL64 -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
70708516 fi
7071 func_append compiler_flags " ${wl}-dylib_file ${wl}${darwin_install_name}:${depdepl}"
7072 func_append linker_flags " -dylib_file ${darwin_install_name}:${depdepl}"
8517 func_append compiler_flags " $wl-dylib_file $wl$darwin_install_name:$depdepl"
8518 func_append linker_flags " -dylib_file $darwin_install_name:$depdepl"
70738519 path=
70748520 fi
70758521 fi
70768522 ;;
70778523 *)
7078 path="-L$absdir/$objdir"
8524 path=-L$absdir/$objdir
70798525 ;;
70808526 esac
70818527 else
7082 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
8528 eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
70838529 test -z "$libdir" && \
7084 func_fatal_error "\`$deplib' is not a valid libtool archive"
8530 func_fatal_error "'$deplib' is not a valid libtool archive"
70858531 test "$absdir" != "$libdir" && \
7086 func_warning "\`$deplib' seems to be moved"
7087
7088 path="-L$absdir"
8532 func_warning "'$deplib' seems to be moved"
8533
8534 path=-L$absdir
70898535 fi
70908536 ;;
70918537 esac
70978543 fi # link_all_deplibs != no
70988544 fi # linkmode = lib
70998545 done # for deplib in $libs
7100 if test "$pass" = link; then
7101 if test "$linkmode" = "prog"; then
8546 if test link = "$pass"; then
8547 if test prog = "$linkmode"; then
71028548 compile_deplibs="$new_inherited_linker_flags $compile_deplibs"
71038549 finalize_deplibs="$new_inherited_linker_flags $finalize_deplibs"
71048550 else
71058551 compiler_flags="$compiler_flags "`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
71068552 fi
71078553 fi
7108 dependency_libs="$newdependency_libs"
7109 if test "$pass" = dlpreopen; then
8554 dependency_libs=$newdependency_libs
8555 if test dlpreopen = "$pass"; then
71108556 # Link the dlpreopened libraries before other libraries
71118557 for deplib in $save_deplibs; do
71128558 deplibs="$deplib $deplibs"
71138559 done
71148560 fi
7115 if test "$pass" != dlopen; then
7116 if test "$pass" != conv; then
8561 if test dlopen != "$pass"; then
8562 test conv = "$pass" || {
71178563 # Make sure lib_search_path contains only unique directories.
71188564 lib_search_path=
71198565 for dir in $newlib_search_path; do
71238569 esac
71248570 done
71258571 newlib_search_path=
7126 fi
7127
7128 if test "$linkmode,$pass" != "prog,link"; then
7129 vars="deplibs"
8572 }
8573
8574 if test prog,link = "$linkmode,$pass"; then
8575 vars="compile_deplibs finalize_deplibs"
71308576 else
7131 vars="compile_deplibs finalize_deplibs"
8577 vars=deplibs
71328578 fi
71338579 for var in $vars dependency_libs; do
71348580 # Add libraries to $var in reverse order
71868632 eval $var=\"$tmp_libs\"
71878633 done # for var
71888634 fi
8635
8636 # Add Sun CC postdeps if required:
8637 test CXX = "$tagname" && {
8638 case $host_os in
8639 linux*)
8640 case `$CC -V 2>&1 | sed 5q` in
8641 *Sun\ C*) # Sun C++ 5.9
8642 func_suncc_cstd_abi
8643
8644 if test no != "$suncc_use_cstd_abi"; then
8645 func_append postdeps ' -library=Cstd -library=Crun'
8646 fi
8647 ;;
8648 esac
8649 ;;
8650
8651 solaris*)
8652 func_cc_basename "$CC"
8653 case $func_cc_basename_result in
8654 CC* | sunCC*)
8655 func_suncc_cstd_abi
8656
8657 if test no != "$suncc_use_cstd_abi"; then
8658 func_append postdeps ' -library=Cstd -library=Crun'
8659 fi
8660 ;;
8661 esac
8662 ;;
8663 esac
8664 }
8665
71898666 # Last step: remove runtime libs from dependency_libs
71908667 # (they stay in deplibs)
71918668 tmp_libs=
7192 for i in $dependency_libs ; do
8669 for i in $dependency_libs; do
71938670 case " $predeps $postdeps $compiler_lib_search_path " in
71948671 *" $i "*)
7195 i=""
8672 i=
71968673 ;;
71978674 esac
7198 if test -n "$i" ; then
8675 if test -n "$i"; then
71998676 func_append tmp_libs " $i"
72008677 fi
72018678 done
72028679 dependency_libs=$tmp_libs
72038680 done # for pass
7204 if test "$linkmode" = prog; then
7205 dlfiles="$newdlfiles"
8681 if test prog = "$linkmode"; then
8682 dlfiles=$newdlfiles
72068683 fi
7207 if test "$linkmode" = prog || test "$linkmode" = lib; then
7208 dlprefiles="$newdlprefiles"
8684 if test prog = "$linkmode" || test lib = "$linkmode"; then
8685 dlprefiles=$newdlprefiles
72098686 fi
72108687
72118688 case $linkmode in
72128689 oldlib)
7213 if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
7214 func_warning "\`-dlopen' is ignored for archives"
8690 if test -n "$dlfiles$dlprefiles" || test no != "$dlself"; then
8691 func_warning "'-dlopen' is ignored for archives"
72158692 fi
72168693
72178694 case " $deplibs" in
72188695 *\ -l* | *\ -L*)
7219 func_warning "\`-l' and \`-L' are ignored for archives" ;;
8696 func_warning "'-l' and '-L' are ignored for archives" ;;
72208697 esac
72218698
72228699 test -n "$rpath" && \
7223 func_warning "\`-rpath' is ignored for archives"
8700 func_warning "'-rpath' is ignored for archives"
72248701
72258702 test -n "$xrpath" && \
7226 func_warning "\`-R' is ignored for archives"
8703 func_warning "'-R' is ignored for archives"
72278704
72288705 test -n "$vinfo" && \
7229 func_warning "\`-version-info/-version-number' is ignored for archives"
8706 func_warning "'-version-info/-version-number' is ignored for archives"
72308707
72318708 test -n "$release" && \
7232 func_warning "\`-release' is ignored for archives"
8709 func_warning "'-release' is ignored for archives"
72338710
72348711 test -n "$export_symbols$export_symbols_regex" && \
7235 func_warning "\`-export-symbols' is ignored for archives"
8712 func_warning "'-export-symbols' is ignored for archives"
72368713
72378714 # Now set the variables for building old libraries.
72388715 build_libtool_libs=no
7239 oldlibs="$output"
8716 oldlibs=$output
72408717 func_append objs "$old_deplibs"
72418718 ;;
72428719
72438720 lib)
7244 # Make sure we only generate libraries of the form `libNAME.la'.
8721 # Make sure we only generate libraries of the form 'libNAME.la'.
72458722 case $outputname in
72468723 lib*)
72478724 func_stripname 'lib' '.la' "$outputname"
72508727 eval libname=\"$libname_spec\"
72518728 ;;
72528729 *)
7253 test "$module" = no && \
7254 func_fatal_help "libtool library \`$output' must begin with \`lib'"
7255
7256 if test "$need_lib_prefix" != no; then
8730 test no = "$module" \
8731 && func_fatal_help "libtool library '$output' must begin with 'lib'"
8732
8733 if test no != "$need_lib_prefix"; then
72578734 # Add the "lib" prefix for modules if required
72588735 func_stripname '' '.la' "$outputname"
72598736 name=$func_stripname_result
72678744 esac
72688745
72698746 if test -n "$objs"; then
7270 if test "$deplibs_check_method" != pass_all; then
7271 func_fatal_error "cannot build libtool library \`$output' from non-libtool objects on this host:$objs"
8747 if test pass_all != "$deplibs_check_method"; then
8748 func_fatal_error "cannot build libtool library '$output' from non-libtool objects on this host:$objs"
72728749 else
72738750 echo
72748751 $ECHO "*** Warning: Linking the shared library $output against the non-libtool"
72778754 fi
72788755 fi
72798756
7280 test "$dlself" != no && \
7281 func_warning "\`-dlopen self' is ignored for libtool libraries"
8757 test no = "$dlself" \
8758 || func_warning "'-dlopen self' is ignored for libtool libraries"
72828759
72838760 set dummy $rpath
72848761 shift
7285 test "$#" -gt 1 && \
7286 func_warning "ignoring multiple \`-rpath's for a libtool library"
7287
7288 install_libdir="$1"
8762 test 1 -lt "$#" \
8763 && func_warning "ignoring multiple '-rpath's for a libtool library"
8764
8765 install_libdir=$1
72898766
72908767 oldlibs=
72918768 if test -z "$rpath"; then
7292 if test "$build_libtool_libs" = yes; then
8769 if test yes = "$build_libtool_libs"; then
72938770 # Building a libtool convenience library.
7294 # Some compilers have problems with a `.al' extension so
8771 # Some compilers have problems with a '.al' extension so
72958772 # convenience libraries should have the same extension an
72968773 # archive normally would.
72978774 oldlibs="$output_objdir/$libname.$libext $oldlibs"
73008777 fi
73018778
73028779 test -n "$vinfo" && \
7303 func_warning "\`-version-info/-version-number' is ignored for convenience libraries"
8780 func_warning "'-version-info/-version-number' is ignored for convenience libraries"
73048781
73058782 test -n "$release" && \
7306 func_warning "\`-release' is ignored for convenience libraries"
8783 func_warning "'-release' is ignored for convenience libraries"
73078784 else
73088785
73098786 # Parse the version information argument.
7310 save_ifs="$IFS"; IFS=':'
8787 save_ifs=$IFS; IFS=:
73118788 set dummy $vinfo 0 0 0
73128789 shift
7313 IFS="$save_ifs"
8790 IFS=$save_ifs
73148791
73158792 test -n "$7" && \
7316 func_fatal_help "too many parameters to \`-version-info'"
8793 func_fatal_help "too many parameters to '-version-info'"
73178794
73188795 # convert absolute version numbers to libtool ages
73198796 # this retains compatibility with .la files and attempts
73218798
73228799 case $vinfo_number in
73238800 yes)
7324 number_major="$1"
7325 number_minor="$2"
7326 number_revision="$3"
8801 number_major=$1
8802 number_minor=$2
8803 number_revision=$3
73278804 #
73288805 # There are really only two kinds -- those that
73298806 # use the current revision as the major version
73308807 # and those that subtract age and use age as
73318808 # a minor version. But, then there is irix
7332 # which has an extra 1 added just for fun
8809 # that has an extra 1 added just for fun
73338810 #
73348811 case $version_type in
73358812 # correct linux to gnu/linux during the next big refactor
7336 darwin|linux|osf|windows|none)
8813 darwin|freebsd-elf|linux|osf|windows|none)
73378814 func_arith $number_major + $number_minor
73388815 current=$func_arith_result
7339 age="$number_minor"
7340 revision="$number_revision"
8816 age=$number_minor
8817 revision=$number_revision
73418818 ;;
7342 freebsd-aout|freebsd-elf|qnx|sunos)
7343 current="$number_major"
7344 revision="$number_minor"
7345 age="0"
8819 freebsd-aout|qnx|sunos)
8820 current=$number_major
8821 revision=$number_minor
8822 age=0
73468823 ;;
73478824 irix|nonstopux)
73488825 func_arith $number_major + $number_minor
73498826 current=$func_arith_result
7350 age="$number_minor"
7351 revision="$number_minor"
8827 age=$number_minor
8828 revision=$number_minor
73528829 lt_irix_increment=no
73538830 ;;
73548831 *)
7355 func_fatal_configuration "$modename: unknown library version type \`$version_type'"
8832 func_fatal_configuration "$modename: unknown library version type '$version_type'"
73568833 ;;
73578834 esac
73588835 ;;
73598836 no)
7360 current="$1"
7361 revision="$2"
7362 age="$3"
8837 current=$1
8838 revision=$2
8839 age=$3
73638840 ;;
73648841 esac
73658842
73678844 case $current in
73688845 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
73698846 *)
7370 func_error "CURRENT \`$current' must be a nonnegative integer"
7371 func_fatal_error "\`$vinfo' is not valid version information"
8847 func_error "CURRENT '$current' must be a nonnegative integer"
8848 func_fatal_error "'$vinfo' is not valid version information"
73728849 ;;
73738850 esac
73748851
73758852 case $revision in
73768853 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
73778854 *)
7378 func_error "REVISION \`$revision' must be a nonnegative integer"
7379 func_fatal_error "\`$vinfo' is not valid version information"
8855 func_error "REVISION '$revision' must be a nonnegative integer"
8856 func_fatal_error "'$vinfo' is not valid version information"
73808857 ;;
73818858 esac
73828859
73838860 case $age in
73848861 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
73858862 *)
7386 func_error "AGE \`$age' must be a nonnegative integer"
7387 func_fatal_error "\`$vinfo' is not valid version information"
8863 func_error "AGE '$age' must be a nonnegative integer"
8864 func_fatal_error "'$vinfo' is not valid version information"
73888865 ;;
73898866 esac
73908867
73918868 if test "$age" -gt "$current"; then
7392 func_error "AGE \`$age' is greater than the current interface number \`$current'"
7393 func_fatal_error "\`$vinfo' is not valid version information"
8869 func_error "AGE '$age' is greater than the current interface number '$current'"
8870 func_fatal_error "'$vinfo' is not valid version information"
73948871 fi
73958872
73968873 # Calculate the version variables.
74058882 # verstring for coding it into the library header
74068883 func_arith $current - $age
74078884 major=.$func_arith_result
7408 versuffix="$major.$age.$revision"
8885 versuffix=$major.$age.$revision
74098886 # Darwin ld doesn't like 0 for these options...
74108887 func_arith $current + 1
74118888 minor_current=$func_arith_result
7412 xlcverstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
8889 xlcverstring="$wl-compatibility_version $wl$minor_current $wl-current_version $wl$minor_current.$revision"
74138890 verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
8891 # On Darwin other compilers
8892 case $CC in
8893 nagfor*)
8894 verstring="$wl-compatibility_version $wl$minor_current $wl-current_version $wl$minor_current.$revision"
8895 ;;
8896 *)
8897 verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
8898 ;;
8899 esac
74148900 ;;
74158901
74168902 freebsd-aout)
7417 major=".$current"
7418 versuffix=".$current.$revision";
8903 major=.$current
8904 versuffix=.$current.$revision
74198905 ;;
74208906
74218907 freebsd-elf)
7422 major=".$current"
7423 versuffix=".$current"
8908 func_arith $current - $age
8909 major=.$func_arith_result
8910 versuffix=$major.$age.$revision
74248911 ;;
74258912
74268913 irix | nonstopux)
7427 if test "X$lt_irix_increment" = "Xno"; then
8914 if test no = "$lt_irix_increment"; then
74288915 func_arith $current - $age
74298916 else
74308917 func_arith $current - $age + 1
74358922 nonstopux) verstring_prefix=nonstopux ;;
74368923 *) verstring_prefix=sgi ;;
74378924 esac
7438 verstring="$verstring_prefix$major.$revision"
8925 verstring=$verstring_prefix$major.$revision
74398926
74408927 # Add in all the interfaces that we are compatible with.
74418928 loop=$revision
7442 while test "$loop" -ne 0; do
8929 while test 0 -ne "$loop"; do
74438930 func_arith $revision - $loop
74448931 iface=$func_arith_result
74458932 func_arith $loop - 1
74468933 loop=$func_arith_result
7447 verstring="$verstring_prefix$major.$iface:$verstring"
8934 verstring=$verstring_prefix$major.$iface:$verstring
74488935 done
74498936
7450 # Before this point, $major must not contain `.'.
8937 # Before this point, $major must not contain '.'.
74518938 major=.$major
7452 versuffix="$major.$revision"
8939 versuffix=$major.$revision
74538940 ;;
74548941
74558942 linux) # correct to gnu/linux during the next big refactor
74568943 func_arith $current - $age
74578944 major=.$func_arith_result
7458 versuffix="$major.$age.$revision"
8945 versuffix=$major.$age.$revision
74598946 ;;
74608947
74618948 osf)
74628949 func_arith $current - $age
74638950 major=.$func_arith_result
7464 versuffix=".$current.$age.$revision"
7465 verstring="$current.$age.$revision"
8951 versuffix=.$current.$age.$revision
8952 verstring=$current.$age.$revision
74668953
74678954 # Add in all the interfaces that we are compatible with.
74688955 loop=$age
7469 while test "$loop" -ne 0; do
8956 while test 0 -ne "$loop"; do
74708957 func_arith $current - $loop
74718958 iface=$func_arith_result
74728959 func_arith $loop - 1
74738960 loop=$func_arith_result
7474 verstring="$verstring:${iface}.0"
8961 verstring=$verstring:$iface.0
74758962 done
74768963
74778964 # Make executables depend on our current version.
7478 func_append verstring ":${current}.0"
8965 func_append verstring ":$current.0"
74798966 ;;
74808967
74818968 qnx)
7482 major=".$current"
7483 versuffix=".$current"
8969 major=.$current
8970 versuffix=.$current
74848971 ;;
74858972
8973 sco)
8974 major=.$current
8975 versuffix=.$current
8976 ;;
8977
74868978 sunos)
7487 major=".$current"
7488 versuffix=".$current.$revision"
8979 major=.$current
8980 versuffix=.$current.$revision
74898981 ;;
74908982
74918983 windows)
74928984 # Use '-' rather than '.', since we only want one
7493 # extension on DOS 8.3 filesystems.
8985 # extension on DOS 8.3 file systems.
74948986 func_arith $current - $age
74958987 major=$func_arith_result
7496 versuffix="-$major"
8988 versuffix=-$major
74978989 ;;
74988990
74998991 *)
7500 func_fatal_configuration "unknown library version type \`$version_type'"
8992 func_fatal_configuration "unknown library version type '$version_type'"
75018993 ;;
75028994 esac
75038995
75119003 verstring=
75129004 ;;
75139005 *)
7514 verstring="0.0"
9006 verstring=0.0
75159007 ;;
75169008 esac
7517 if test "$need_version" = no; then
9009 if test no = "$need_version"; then
75189010 versuffix=
75199011 else
7520 versuffix=".0.0"
9012 versuffix=.0.0
75219013 fi
75229014 fi
75239015
75249016 # Remove version info from name if versioning should be avoided
7525 if test "$avoid_version" = yes && test "$need_version" = no; then
9017 if test yes,no = "$avoid_version,$need_version"; then
75269018 major=
75279019 versuffix=
7528 verstring=""
9020 verstring=
75299021 fi
75309022
75319023 # Check to see if the archive will have undefined symbols.
7532 if test "$allow_undefined" = yes; then
7533 if test "$allow_undefined_flag" = unsupported; then
7534 func_warning "undefined symbols not allowed in $host shared libraries"
7535 build_libtool_libs=no
7536 build_old_libs=yes
9024 if test yes = "$allow_undefined"; then
9025 if test unsupported = "$allow_undefined_flag"; then
9026 if test yes = "$build_old_libs"; then
9027 func_warning "undefined symbols not allowed in $host shared libraries; building static only"
9028 build_libtool_libs=no
9029 else
9030 func_fatal_error "can't build $host shared library unless -no-undefined is specified"
9031 fi
75379032 fi
75389033 else
75399034 # Don't allow undefined symbols.
7540 allow_undefined_flag="$no_undefined_flag"
9035 allow_undefined_flag=$no_undefined_flag
75419036 fi
75429037
75439038 fi
75449039
7545 func_generate_dlsyms "$libname" "$libname" "yes"
9040 func_generate_dlsyms "$libname" "$libname" :
75469041 func_append libobjs " $symfileobj"
7547 test "X$libobjs" = "X " && libobjs=
7548
7549 if test "$opt_mode" != relink; then
9042 test " " = "$libobjs" && libobjs=
9043
9044 if test relink != "$opt_mode"; then
75509045 # Remove our outputs, but don't remove object files since they
75519046 # may have been created when compiling PIC objects.
75529047 removelist=
75559050 case $p in
75569051 *.$objext | *.gcno)
75579052 ;;
7558 $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*)
7559 if test "X$precious_files_regex" != "X"; then
9053 $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/$libname$release.*)
9054 if test -n "$precious_files_regex"; then
75609055 if $ECHO "$p" | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
75619056 then
75629057 continue
75729067 fi
75739068
75749069 # Now set the variables for building old libraries.
7575 if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then
9070 if test yes = "$build_old_libs" && test convenience != "$build_libtool_libs"; then
75769071 func_append oldlibs " $output_objdir/$libname.$libext"
75779072
75789073 # Transform .lo files to .o files.
7579 oldobjs="$objs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.${libext}$/d; $lo2o" | $NL2SP`
9074 oldobjs="$objs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.$libext$/d; $lo2o" | $NL2SP`
75809075 fi
75819076
75829077 # Eliminate all temporary directories.
75979092 *) func_append finalize_rpath " $libdir" ;;
75989093 esac
75999094 done
7600 if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then
9095 if test yes != "$hardcode_into_libs" || test yes = "$build_old_libs"; then
76019096 dependency_libs="$temp_xrpath $dependency_libs"
76029097 fi
76039098 fi
76049099
76059100 # Make sure dlfiles contains only unique files that won't be dlpreopened
7606 old_dlfiles="$dlfiles"
9101 old_dlfiles=$dlfiles
76079102 dlfiles=
76089103 for lib in $old_dlfiles; do
76099104 case " $dlprefiles $dlfiles " in
76139108 done
76149109
76159110 # Make sure dlprefiles contains only unique files
7616 old_dlprefiles="$dlprefiles"
9111 old_dlprefiles=$dlprefiles
76179112 dlprefiles=
76189113 for lib in $old_dlprefiles; do
76199114 case "$dlprefiles " in
76229117 esac
76239118 done
76249119
7625 if test "$build_libtool_libs" = yes; then
9120 if test yes = "$build_libtool_libs"; then
76269121 if test -n "$rpath"; then
76279122 case $host in
76289123 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc* | *-*-haiku*)
76469141 ;;
76479142 *)
76489143 # Add libc to deplibs on all other systems if necessary.
7649 if test "$build_libtool_need_lc" = "yes"; then
9144 if test yes = "$build_libtool_need_lc"; then
76509145 func_append deplibs " -lc"
76519146 fi
76529147 ;;
76629157 # I'm not sure if I'm treating the release correctly. I think
76639158 # release should show up in the -l (ie -lgmp5) so we don't want to
76649159 # add it in twice. Is that correct?
7665 release=""
7666 versuffix=""
7667 major=""
9160 release=
9161 versuffix=
9162 major=
76689163 newdeplibs=
76699164 droppeddeps=no
76709165 case $deplibs_check_method in
76939188 -l*)
76949189 func_stripname -l '' "$i"
76959190 name=$func_stripname_result
7696 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
9191 if test yes = "$allow_libtool_libs_with_static_runtimes"; then
76979192 case " $predeps $postdeps " in
76989193 *" $i "*)
76999194 func_append newdeplibs " $i"
7700 i=""
9195 i=
77019196 ;;
77029197 esac
77039198 fi
7704 if test -n "$i" ; then
9199 if test -n "$i"; then
77059200 libname=`eval "\\$ECHO \"$libname_spec\""`
77069201 deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
77079202 set dummy $deplib_matches; shift
77089203 deplib_match=$1
7709 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
9204 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0; then
77109205 func_append newdeplibs " $i"
77119206 else
77129207 droppeddeps=yes
77369231 $opt_dry_run || $RM conftest
77379232 if $LTCC $LTCFLAGS -o conftest conftest.c $i; then
77389233 ldd_output=`ldd conftest`
7739 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
9234 if test yes = "$allow_libtool_libs_with_static_runtimes"; then
77409235 case " $predeps $postdeps " in
77419236 *" $i "*)
77429237 func_append newdeplibs " $i"
7743 i=""
9238 i=
77449239 ;;
77459240 esac
77469241 fi
7747 if test -n "$i" ; then
9242 if test -n "$i"; then
77489243 libname=`eval "\\$ECHO \"$libname_spec\""`
77499244 deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
77509245 set dummy $deplib_matches; shift
77519246 deplib_match=$1
7752 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
9247 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0; then
77539248 func_append newdeplibs " $i"
77549249 else
77559250 droppeddeps=yes
77869281 -l*)
77879282 func_stripname -l '' "$a_deplib"
77889283 name=$func_stripname_result
7789 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
9284 if test yes = "$allow_libtool_libs_with_static_runtimes"; then
77909285 case " $predeps $postdeps " in
77919286 *" $a_deplib "*)
77929287 func_append newdeplibs " $a_deplib"
7793 a_deplib=""
9288 a_deplib=
77949289 ;;
77959290 esac
77969291 fi
7797 if test -n "$a_deplib" ; then
9292 if test -n "$a_deplib"; then
77989293 libname=`eval "\\$ECHO \"$libname_spec\""`
77999294 if test -n "$file_magic_glob"; then
78009295 libnameglob=`func_echo_all "$libname" | $SED -e $file_magic_glob`
78019296 else
78029297 libnameglob=$libname
78039298 fi
7804 test "$want_nocaseglob" = yes && nocaseglob=`shopt -p nocaseglob`
9299 test yes = "$want_nocaseglob" && nocaseglob=`shopt -p nocaseglob`
78059300 for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
7806 if test "$want_nocaseglob" = yes; then
9301 if test yes = "$want_nocaseglob"; then
78079302 shopt -s nocaseglob
78089303 potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null`
78099304 $nocaseglob
78219316 # We might still enter an endless loop, since a link
78229317 # loop can be closed while we follow links,
78239318 # but so what?
7824 potlib="$potent_lib"
9319 potlib=$potent_lib
78259320 while test -h "$potlib" 2>/dev/null; do
7826 potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'`
9321 potliblink=`ls -ld $potlib | $SED 's/.* -> //'`
78279322 case $potliblink in
7828 [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
7829 *) potlib=`$ECHO "$potlib" | $SED 's,[^/]*$,,'`"$potliblink";;
9323 [\\/]* | [A-Za-z]:[\\/]*) potlib=$potliblink;;
9324 *) potlib=`$ECHO "$potlib" | $SED 's|[^/]*$||'`"$potliblink";;
78309325 esac
78319326 done
78329327 if eval $file_magic_cmd \"\$potlib\" 2>/dev/null |
78339328 $SED -e 10q |
78349329 $EGREP "$file_magic_regex" > /dev/null; then
78359330 func_append newdeplibs " $a_deplib"
7836 a_deplib=""
9331 a_deplib=
78379332 break 2
78389333 fi
78399334 done
78409335 done
78419336 fi
7842 if test -n "$a_deplib" ; then
9337 if test -n "$a_deplib"; then
78439338 droppeddeps=yes
78449339 echo
78459340 $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
78479342 echo "*** you link to this library. But I can only do this if you have a"
78489343 echo "*** shared version of the library, which you do not appear to have"
78499344 echo "*** because I did check the linker path looking for a file starting"
7850 if test -z "$potlib" ; then
9345 if test -z "$potlib"; then
78519346 $ECHO "*** with $libname but no candidates were found. (...for file magic test)"
78529347 else
78539348 $ECHO "*** with $libname and none of the candidates passed a file format test"
78709365 -l*)
78719366 func_stripname -l '' "$a_deplib"
78729367 name=$func_stripname_result
7873 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
9368 if test yes = "$allow_libtool_libs_with_static_runtimes"; then
78749369 case " $predeps $postdeps " in
78759370 *" $a_deplib "*)
78769371 func_append newdeplibs " $a_deplib"
7877 a_deplib=""
9372 a_deplib=
78789373 ;;
78799374 esac
78809375 fi
7881 if test -n "$a_deplib" ; then
9376 if test -n "$a_deplib"; then
78829377 libname=`eval "\\$ECHO \"$libname_spec\""`
78839378 for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
78849379 potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
78859380 for potent_lib in $potential_libs; do
7886 potlib="$potent_lib" # see symlink-check above in file_magic test
9381 potlib=$potent_lib # see symlink-check above in file_magic test
78879382 if eval "\$ECHO \"$potent_lib\"" 2>/dev/null | $SED 10q | \
78889383 $EGREP "$match_pattern_regex" > /dev/null; then
78899384 func_append newdeplibs " $a_deplib"
7890 a_deplib=""
9385 a_deplib=
78919386 break 2
78929387 fi
78939388 done
78949389 done
78959390 fi
7896 if test -n "$a_deplib" ; then
9391 if test -n "$a_deplib"; then
78979392 droppeddeps=yes
78989393 echo
78999394 $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
79019396 echo "*** you link to this library. But I can only do this if you have a"
79029397 echo "*** shared version of the library, which you do not appear to have"
79039398 echo "*** because I did check the linker path looking for a file starting"
7904 if test -z "$potlib" ; then
9399 if test -z "$potlib"; then
79059400 $ECHO "*** with $libname but no candidates were found. (...for regex pattern test)"
79069401 else
79079402 $ECHO "*** with $libname and none of the candidates passed a file format test"
79179412 done # Gone through all deplibs.
79189413 ;;
79199414 none | unknown | *)
7920 newdeplibs=""
9415 newdeplibs=
79219416 tmp_deplibs=`$ECHO " $deplibs" | $SED 's/ -lc$//; s/ -[LR][^ ]*//g'`
7922 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
7923 for i in $predeps $postdeps ; do
9417 if test yes = "$allow_libtool_libs_with_static_runtimes"; then
9418 for i in $predeps $postdeps; do
79249419 # can't use Xsed below, because $i might contain '/'
7925 tmp_deplibs=`$ECHO " $tmp_deplibs" | $SED "s,$i,,"`
9420 tmp_deplibs=`$ECHO " $tmp_deplibs" | $SED "s|$i||"`
79269421 done
79279422 fi
79289423 case $tmp_deplibs in
79299424 *[!\ \ ]*)
79309425 echo
7931 if test "X$deplibs_check_method" = "Xnone"; then
9426 if test none = "$deplibs_check_method"; then
79329427 echo "*** Warning: inter-library dependencies are not supported in this platform."
79339428 else
79349429 echo "*** Warning: inter-library dependencies are not known to be supported."
79529447 ;;
79539448 esac
79549449
7955 if test "$droppeddeps" = yes; then
7956 if test "$module" = yes; then
9450 if test yes = "$droppeddeps"; then
9451 if test yes = "$module"; then
79579452 echo
79589453 echo "*** Warning: libtool could not satisfy all declared inter-library"
79599454 $ECHO "*** dependencies of module $libname. Therefore, libtool will create"
79629457 if test -z "$global_symbol_pipe"; then
79639458 echo
79649459 echo "*** However, this would only work if libtool was able to extract symbol"
7965 echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
9460 echo "*** lists from a program, using 'nm' or equivalent, but libtool could"
79669461 echo "*** not find such a program. So, this module is probably useless."
7967 echo "*** \`nm' from GNU binutils and a full rebuild may help."
9462 echo "*** 'nm' from GNU binutils and a full rebuild may help."
79689463 fi
7969 if test "$build_old_libs" = no; then
7970 oldlibs="$output_objdir/$libname.$libext"
9464 if test no = "$build_old_libs"; then
9465 oldlibs=$output_objdir/$libname.$libext
79719466 build_libtool_libs=module
79729467 build_old_libs=yes
79739468 else
79789473 echo "*** automatically added whenever a program is linked with this library"
79799474 echo "*** or is declared to -dlopen it."
79809475
7981 if test "$allow_undefined" = no; then
9476 if test no = "$allow_undefined"; then
79829477 echo
79839478 echo "*** Since this library must not contain undefined symbols,"
79849479 echo "*** because either the platform does not support them or"
79859480 echo "*** it was explicitly requested with -no-undefined,"
79869481 echo "*** libtool will only create a static version of it."
7987 if test "$build_old_libs" = no; then
7988 oldlibs="$output_objdir/$libname.$libext"
9482 if test no = "$build_old_libs"; then
9483 oldlibs=$output_objdir/$libname.$libext
79899484 build_libtool_libs=module
79909485 build_old_libs=yes
79919486 else
80319526 *) func_append new_libs " $deplib" ;;
80329527 esac
80339528 done
8034 deplibs="$new_libs"
9529 deplibs=$new_libs
80359530
80369531 # All the library-specific variables (install_libdir is set above).
80379532 library_names=
80399534 dlname=
80409535
80419536 # Test again, we may have decided not to build it any more
8042 if test "$build_libtool_libs" = yes; then
8043 # Remove ${wl} instances when linking with ld.
9537 if test yes = "$build_libtool_libs"; then
9538 # Remove $wl instances when linking with ld.
80449539 # FIXME: should test the right _cmds variable.
80459540 case $archive_cmds in
80469541 *\$LD\ *) wl= ;;
80479542 esac
8048 if test "$hardcode_into_libs" = yes; then
9543 if test yes = "$hardcode_into_libs"; then
80499544 # Hardcode the library paths
80509545 hardcode_libdirs=
80519546 dep_rpath=
8052 rpath="$finalize_rpath"
8053 test "$opt_mode" != relink && rpath="$compile_rpath$rpath"
9547 rpath=$finalize_rpath
9548 test relink = "$opt_mode" || rpath=$compile_rpath$rpath
80549549 for libdir in $rpath; do
80559550 if test -n "$hardcode_libdir_flag_spec"; then
80569551 if test -n "$hardcode_libdir_separator"; then
80579552 func_replace_sysroot "$libdir"
80589553 libdir=$func_replace_sysroot_result
80599554 if test -z "$hardcode_libdirs"; then
8060 hardcode_libdirs="$libdir"
9555 hardcode_libdirs=$libdir
80619556 else
80629557 # Just accumulate the unique libdirs.
80639558 case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
80829577 # Substitute the hardcoded libdirs into the rpath.
80839578 if test -n "$hardcode_libdir_separator" &&
80849579 test -n "$hardcode_libdirs"; then
8085 libdir="$hardcode_libdirs"
9580 libdir=$hardcode_libdirs
80869581 eval "dep_rpath=\"$hardcode_libdir_flag_spec\""
80879582 fi
80889583 if test -n "$runpath_var" && test -n "$perm_rpath"; then
80969591 test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs"
80979592 fi
80989593
8099 shlibpath="$finalize_shlibpath"
8100 test "$opt_mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
9594 shlibpath=$finalize_shlibpath
9595 test relink = "$opt_mode" || shlibpath=$compile_shlibpath$shlibpath
81019596 if test -n "$shlibpath"; then
81029597 eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var"
81039598 fi
81079602 eval library_names=\"$library_names_spec\"
81089603 set dummy $library_names
81099604 shift
8110 realname="$1"
9605 realname=$1
81119606 shift
81129607
81139608 if test -n "$soname_spec"; then
81149609 eval soname=\"$soname_spec\"
81159610 else
8116 soname="$realname"
9611 soname=$realname
81179612 fi
81189613 if test -z "$dlname"; then
81199614 dlname=$soname
81209615 fi
81219616
8122 lib="$output_objdir/$realname"
9617 lib=$output_objdir/$realname
81239618 linknames=
81249619 for link
81259620 do
81339628 delfiles=
81349629 if test -n "$export_symbols" && test -n "$include_expsyms"; then
81359630 $opt_dry_run || cp "$export_symbols" "$output_objdir/$libname.uexp"
8136 export_symbols="$output_objdir/$libname.uexp"
9631 export_symbols=$output_objdir/$libname.uexp
81379632 func_append delfiles " $export_symbols"
81389633 fi
81399634
81429637 cygwin* | mingw* | cegcc*)
81439638 if test -n "$export_symbols" && test -z "$export_symbols_regex"; then
81449639 # exporting using user supplied symfile
8145 if test "x`$SED 1q $export_symbols`" != xEXPORTS; then
9640 func_dll_def_p "$export_symbols" || {
81469641 # and it's NOT already a .def file. Must figure out
81479642 # which of the given symbols are data symbols and tag
81489643 # them as such. So, trigger use of export_symbols_cmds.
81499644 # export_symbols gets reassigned inside the "prepare
81509645 # the list of exported symbols" if statement, so the
81519646 # include_expsyms logic still works.
8152 orig_export_symbols="$export_symbols"
9647 orig_export_symbols=$export_symbols
81539648 export_symbols=
81549649 always_export_symbols=yes
8155 fi
9650 }
81569651 fi
81579652 ;;
81589653 esac
81599654
81609655 # Prepare the list of exported symbols
81619656 if test -z "$export_symbols"; then
8162 if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then
8163 func_verbose "generating symbol list for \`$libname.la'"
8164 export_symbols="$output_objdir/$libname.exp"
9657 if test yes = "$always_export_symbols" || test -n "$export_symbols_regex"; then
9658 func_verbose "generating symbol list for '$libname.la'"
9659 export_symbols=$output_objdir/$libname.exp
81659660 $opt_dry_run || $RM $export_symbols
81669661 cmds=$export_symbols_cmds
8167 save_ifs="$IFS"; IFS='~'
9662 save_ifs=$IFS; IFS='~'
81689663 for cmd1 in $cmds; do
8169 IFS="$save_ifs"
9664 IFS=$save_ifs
81709665 # Take the normal branch if the nm_file_list_spec branch
81719666 # doesn't work or if tool conversion is not needed.
81729667 case $nm_file_list_spec~$to_tool_file_cmd in
81809675 try_normal_branch=no
81819676 ;;
81829677 esac
8183 if test "$try_normal_branch" = yes \
9678 if test yes = "$try_normal_branch" \
81849679 && { test "$len" -lt "$max_cmd_len" \
81859680 || test "$max_cmd_len" -le -1; }
81869681 then
81919686 output_la=$func_basename_result
81929687 save_libobjs=$libobjs
81939688 save_output=$output
8194 output=${output_objdir}/${output_la}.nm
9689 output=$output_objdir/$output_la.nm
81959690 func_to_tool_file "$output"
81969691 libobjs=$nm_file_list_spec$func_to_tool_file_result
81979692 func_append delfiles " $output"
82149709 break
82159710 fi
82169711 done
8217 IFS="$save_ifs"
8218 if test -n "$export_symbols_regex" && test "X$skipped_export" != "X:"; then
9712 IFS=$save_ifs
9713 if test -n "$export_symbols_regex" && test : != "$skipped_export"; then
82199714 func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
82209715 func_show_eval '$MV "${export_symbols}T" "$export_symbols"'
82219716 fi
82239718 fi
82249719
82259720 if test -n "$export_symbols" && test -n "$include_expsyms"; then
8226 tmp_export_symbols="$export_symbols"
8227 test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
9721 tmp_export_symbols=$export_symbols
9722 test -n "$orig_export_symbols" && tmp_export_symbols=$orig_export_symbols
82289723 $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"'
82299724 fi
82309725
8231 if test "X$skipped_export" != "X:" && test -n "$orig_export_symbols"; then
9726 if test : != "$skipped_export" && test -n "$orig_export_symbols"; then
82329727 # The given exports_symbols file has to be filtered, so filter it.
8233 func_verbose "filter symbol list for \`$libname.la' to tag DATA exports"
9728 func_verbose "filter symbol list for '$libname.la' to tag DATA exports"
82349729 # FIXME: $output_objdir/$libname.filter potentially contains lots of
8235 # 's' commands which not all seds can handle. GNU sed should be fine
9730 # 's' commands, which not all seds can handle. GNU sed should be fine
82369731 # though. Also, the filter scales superlinearly with the number of
82379732 # global variables. join(1) would be nice here, but unfortunately
82389733 # isn't a blessed tool.
82519746 ;;
82529747 esac
82539748 done
8254 deplibs="$tmp_deplibs"
9749 deplibs=$tmp_deplibs
82559750
82569751 if test -n "$convenience"; then
82579752 if test -n "$whole_archive_flag_spec" &&
8258 test "$compiler_needs_object" = yes &&
9753 test yes = "$compiler_needs_object" &&
82599754 test -z "$libobjs"; then
82609755 # extract the archives, so we have objects to list.
82619756 # TODO: could optimize this to just extract one archive.
82669761 eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
82679762 test "X$libobjs" = "X " && libobjs=
82689763 else
8269 gentop="$output_objdir/${outputname}x"
9764 gentop=$output_objdir/${outputname}x
82709765 func_append generated " $gentop"
82719766
82729767 func_extract_archives $gentop $convenience
82759770 fi
82769771 fi
82779772
8278 if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
9773 if test yes = "$thread_safe" && test -n "$thread_safe_flag_spec"; then
82799774 eval flag=\"$thread_safe_flag_spec\"
82809775 func_append linker_flags " $flag"
82819776 fi
82829777
82839778 # Make a backup of the uninstalled library when relinking
8284 if test "$opt_mode" = relink; then
9779 if test relink = "$opt_mode"; then
82859780 $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}U && $MV $realname ${realname}U)' || exit $?
82869781 fi
82879782
82889783 # Do each of the archive commands.
8289 if test "$module" = yes && test -n "$module_cmds" ; then
9784 if test yes = "$module" && test -n "$module_cmds"; then
82909785 if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
82919786 eval test_cmds=\"$module_expsym_cmds\"
82929787 cmds=$module_expsym_cmds
83049799 fi
83059800 fi
83069801
8307 if test "X$skipped_export" != "X:" &&
9802 if test : != "$skipped_export" &&
83089803 func_len " $test_cmds" &&
83099804 len=$func_len_result &&
83109805 test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
83379832 last_robj=
83389833 k=1
83399834
8340 if test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "$with_gnu_ld" = yes; then
8341 output=${output_objdir}/${output_la}.lnkscript
9835 if test -n "$save_libobjs" && test : != "$skipped_export" && test yes = "$with_gnu_ld"; then
9836 output=$output_objdir/$output_la.lnkscript
83429837 func_verbose "creating GNU ld script: $output"
83439838 echo 'INPUT (' > $output
83449839 for obj in $save_libobjs
83509845 func_append delfiles " $output"
83519846 func_to_tool_file "$output"
83529847 output=$func_to_tool_file_result
8353 elif test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "X$file_list_spec" != X; then
8354 output=${output_objdir}/${output_la}.lnk
9848 elif test -n "$save_libobjs" && test : != "$skipped_export" && test -n "$file_list_spec"; then
9849 output=$output_objdir/$output_la.lnk
83559850 func_verbose "creating linker input file list: $output"
83569851 : > $output
83579852 set x $save_libobjs
83589853 shift
83599854 firstobj=
8360 if test "$compiler_needs_object" = yes; then
9855 if test yes = "$compiler_needs_object"; then
83619856 firstobj="$1 "
83629857 shift
83639858 fi
83729867 else
83739868 if test -n "$save_libobjs"; then
83749869 func_verbose "creating reloadable object files..."
8375 output=$output_objdir/$output_la-${k}.$objext
9870 output=$output_objdir/$output_la-$k.$objext
83769871 eval test_cmds=\"$reload_cmds\"
83779872 func_len " $test_cmds"
83789873 len0=$func_len_result
83849879 func_len " $obj"
83859880 func_arith $len + $func_len_result
83869881 len=$func_arith_result
8387 if test "X$objlist" = X ||
9882 if test -z "$objlist" ||
83889883 test "$len" -lt "$max_cmd_len"; then
83899884 func_append objlist " $obj"
83909885 else
83919886 # The command $test_cmds is almost too long, add a
83929887 # command to the queue.
8393 if test "$k" -eq 1 ; then
9888 if test 1 -eq "$k"; then
83949889 # The first file doesn't have a previous command to add.
83959890 reload_objs=$objlist
83969891 eval concat_cmds=\"$reload_cmds\"
84009895 reload_objs="$objlist $last_robj"
84019896 eval concat_cmds=\"\$concat_cmds~$reload_cmds~\$RM $last_robj\"
84029897 fi
8403 last_robj=$output_objdir/$output_la-${k}.$objext
9898 last_robj=$output_objdir/$output_la-$k.$objext
84049899 func_arith $k + 1
84059900 k=$func_arith_result
8406 output=$output_objdir/$output_la-${k}.$objext
9901 output=$output_objdir/$output_la-$k.$objext
84079902 objlist=" $obj"
84089903 func_len " $last_robj"
84099904 func_arith $len0 + $func_len_result
84159910 # files will link in the last one created.
84169911 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
84179912 reload_objs="$objlist $last_robj"
8418 eval concat_cmds=\"\${concat_cmds}$reload_cmds\"
9913 eval concat_cmds=\"\$concat_cmds$reload_cmds\"
84199914 if test -n "$last_robj"; then
8420 eval concat_cmds=\"\${concat_cmds}~\$RM $last_robj\"
9915 eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\"
84219916 fi
84229917 func_append delfiles " $output"
84239918
84259920 output=
84269921 fi
84279922
8428 if ${skipped_export-false}; then
8429 func_verbose "generating symbol list for \`$libname.la'"
8430 export_symbols="$output_objdir/$libname.exp"
9923 ${skipped_export-false} && {
9924 func_verbose "generating symbol list for '$libname.la'"
9925 export_symbols=$output_objdir/$libname.exp
84319926 $opt_dry_run || $RM $export_symbols
84329927 libobjs=$output
84339928 # Append the command to create the export file.
84369931 if test -n "$last_robj"; then
84379932 eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\"
84389933 fi
8439 fi
9934 }
84409935
84419936 test -n "$save_libobjs" &&
84429937 func_verbose "creating a temporary reloadable object file: $output"
84439938
84449939 # Loop through the commands generated above and execute them.
8445 save_ifs="$IFS"; IFS='~'
9940 save_ifs=$IFS; IFS='~'
84469941 for cmd in $concat_cmds; do
8447 IFS="$save_ifs"
8448 $opt_silent || {
9942 IFS=$save_ifs
9943 $opt_quiet || {
84499944 func_quote_for_expand "$cmd"
84509945 eval "func_echo $func_quote_for_expand_result"
84519946 }
84539948 lt_exit=$?
84549949
84559950 # Restore the uninstalled library and exit
8456 if test "$opt_mode" = relink; then
9951 if test relink = "$opt_mode"; then
84579952 ( cd "$output_objdir" && \
84589953 $RM "${realname}T" && \
84599954 $MV "${realname}U" "$realname" )
84629957 exit $lt_exit
84639958 }
84649959 done
8465 IFS="$save_ifs"
9960 IFS=$save_ifs
84669961
84679962 if test -n "$export_symbols_regex" && ${skipped_export-false}; then
84689963 func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
84709965 fi
84719966 fi
84729967
8473 if ${skipped_export-false}; then
9968 ${skipped_export-false} && {
84749969 if test -n "$export_symbols" && test -n "$include_expsyms"; then
8475 tmp_export_symbols="$export_symbols"
8476 test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
9970 tmp_export_symbols=$export_symbols
9971 test -n "$orig_export_symbols" && tmp_export_symbols=$orig_export_symbols
84779972 $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"'
84789973 fi
84799974
84809975 if test -n "$orig_export_symbols"; then
84819976 # The given exports_symbols file has to be filtered, so filter it.
8482 func_verbose "filter symbol list for \`$libname.la' to tag DATA exports"
9977 func_verbose "filter symbol list for '$libname.la' to tag DATA exports"
84839978 # FIXME: $output_objdir/$libname.filter potentially contains lots of
8484 # 's' commands which not all seds can handle. GNU sed should be fine
9979 # 's' commands, which not all seds can handle. GNU sed should be fine
84859980 # though. Also, the filter scales superlinearly with the number of
84869981 # global variables. join(1) would be nice here, but unfortunately
84879982 # isn't a blessed tool.
84909985 export_symbols=$output_objdir/$libname.def
84919986 $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
84929987 fi
8493 fi
9988 }
84949989
84959990 libobjs=$output
84969991 # Restore the value of output.
85049999 # value of $libobjs for piecewise linking.
850510000
850610001 # Do each of the archive commands.
8507 if test "$module" = yes && test -n "$module_cmds" ; then
10002 if test yes = "$module" && test -n "$module_cmds"; then
850810003 if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
850910004 cmds=$module_expsym_cmds
851010005 else
852610021
852710022 # Add any objects from preloaded convenience libraries
852810023 if test -n "$dlprefiles"; then
8529 gentop="$output_objdir/${outputname}x"
10024 gentop=$output_objdir/${outputname}x
853010025 func_append generated " $gentop"
853110026
853210027 func_extract_archives $gentop $dlprefiles
853410029 test "X$libobjs" = "X " && libobjs=
853510030 fi
853610031
8537 save_ifs="$IFS"; IFS='~'
10032 save_ifs=$IFS; IFS='~'
853810033 for cmd in $cmds; do
8539 IFS="$save_ifs"
10034 IFS=$sp$nl
854010035 eval cmd=\"$cmd\"
8541 $opt_silent || {
10036 IFS=$save_ifs
10037 $opt_quiet || {
854210038 func_quote_for_expand "$cmd"
854310039 eval "func_echo $func_quote_for_expand_result"
854410040 }
854610042 lt_exit=$?
854710043
854810044 # Restore the uninstalled library and exit
8549 if test "$opt_mode" = relink; then
10045 if test relink = "$opt_mode"; then
855010046 ( cd "$output_objdir" && \
855110047 $RM "${realname}T" && \
855210048 $MV "${realname}U" "$realname" )
855510051 exit $lt_exit
855610052 }
855710053 done
8558 IFS="$save_ifs"
10054 IFS=$save_ifs
855910055
856010056 # Restore the uninstalled library and exit
8561 if test "$opt_mode" = relink; then
10057 if test relink = "$opt_mode"; then
856210058 $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}T && $MV $realname ${realname}T && $MV ${realname}U $realname)' || exit $?
856310059
856410060 if test -n "$convenience"; then
857810074 done
857910075
858010076 # If -module or -export-dynamic was specified, set the dlname.
8581 if test "$module" = yes || test "$export_dynamic" = yes; then
10077 if test yes = "$module" || test yes = "$export_dynamic"; then
858210078 # On all known operating systems, these are identical.
8583 dlname="$soname"
10079 dlname=$soname
858410080 fi
858510081 fi
858610082 ;;
858710083
858810084 obj)
8589 if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
8590 func_warning "\`-dlopen' is ignored for objects"
10085 if test -n "$dlfiles$dlprefiles" || test no != "$dlself"; then
10086 func_warning "'-dlopen' is ignored for objects"
859110087 fi
859210088
859310089 case " $deplibs" in
859410090 *\ -l* | *\ -L*)
8595 func_warning "\`-l' and \`-L' are ignored for objects" ;;
10091 func_warning "'-l' and '-L' are ignored for objects" ;;
859610092 esac
859710093
859810094 test -n "$rpath" && \
8599 func_warning "\`-rpath' is ignored for objects"
10095 func_warning "'-rpath' is ignored for objects"
860010096
860110097 test -n "$xrpath" && \
8602 func_warning "\`-R' is ignored for objects"
10098 func_warning "'-R' is ignored for objects"
860310099
860410100 test -n "$vinfo" && \
8605 func_warning "\`-version-info' is ignored for objects"
10101 func_warning "'-version-info' is ignored for objects"
860610102
860710103 test -n "$release" && \
8608 func_warning "\`-release' is ignored for objects"
10104 func_warning "'-release' is ignored for objects"
860910105
861010106 case $output in
861110107 *.lo)
861210108 test -n "$objs$old_deplibs" && \
8613 func_fatal_error "cannot build library object \`$output' from non-libtool objects"
10109 func_fatal_error "cannot build library object '$output' from non-libtool objects"
861410110
861510111 libobj=$output
861610112 func_lo2o "$libobj"
861810114 ;;
861910115 *)
862010116 libobj=
8621 obj="$output"
10117 obj=$output
862210118 ;;
862310119 esac
862410120
863110127 # the extraction.
863210128 reload_conv_objs=
863310129 gentop=
8634 # reload_cmds runs $LD directly, so let us get rid of
8635 # -Wl from whole_archive_flag_spec and hope we can get by with
8636 # turning comma into space..
8637 wl=
8638
10130 # if reload_cmds runs $LD directly, get rid of -Wl from
10131 # whole_archive_flag_spec and hope we can get by with turning comma
10132 # into space.
10133 case $reload_cmds in
10134 *\$LD[\ \$]*) wl= ;;
10135 esac
863910136 if test -n "$convenience"; then
864010137 if test -n "$whole_archive_flag_spec"; then
864110138 eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\"
8642 reload_conv_objs=$reload_objs\ `$ECHO "$tmp_whole_archive_flags" | $SED 's|,| |g'`
10139 test -n "$wl" || tmp_whole_archive_flags=`$ECHO "$tmp_whole_archive_flags" | $SED 's|,| |g'`
10140 reload_conv_objs=$reload_objs\ $tmp_whole_archive_flags
864310141 else
8644 gentop="$output_objdir/${obj}x"
10142 gentop=$output_objdir/${obj}x
864510143 func_append generated " $gentop"
864610144
864710145 func_extract_archives $gentop $convenience
865010148 fi
865110149
865210150 # If we're not building shared, we need to use non_pic_objs
8653 test "$build_libtool_libs" != yes && libobjs="$non_pic_objects"
10151 test yes = "$build_libtool_libs" || libobjs=$non_pic_objects
865410152
865510153 # Create the old-style object.
8656 reload_objs="$objs$old_deplibs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.${libext}$/d; /\.lib$/d; $lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test
8657
8658 output="$obj"
10154 reload_objs=$objs$old_deplibs' '`$ECHO "$libobjs" | $SP2NL | $SED "/\.$libext$/d; /\.lib$/d; $lo2o" | $NL2SP`' '$reload_conv_objs
10155
10156 output=$obj
865910157 func_execute_cmds "$reload_cmds" 'exit $?'
866010158
866110159 # Exit if we aren't doing a library object file.
866710165 exit $EXIT_SUCCESS
866810166 fi
866910167
8670 if test "$build_libtool_libs" != yes; then
10168 test yes = "$build_libtool_libs" || {
867110169 if test -n "$gentop"; then
867210170 func_show_eval '${RM}r "$gentop"'
867310171 fi
867710175 # $show "echo timestamp > $libobj"
867810176 # $opt_dry_run || eval "echo timestamp > $libobj" || exit $?
867910177 exit $EXIT_SUCCESS
8680 fi
8681
8682 if test -n "$pic_flag" || test "$pic_mode" != default; then
10178 }
10179
10180 if test -n "$pic_flag" || test default != "$pic_mode"; then
868310181 # Only do commands if we really have different PIC objects.
868410182 reload_objs="$libobjs $reload_conv_objs"
8685 output="$libobj"
10183 output=$libobj
868610184 func_execute_cmds "$reload_cmds" 'exit $?'
868710185 fi
868810186
869910197 output=$func_stripname_result.exe;;
870010198 esac
870110199 test -n "$vinfo" && \
8702 func_warning "\`-version-info' is ignored for programs"
10200 func_warning "'-version-info' is ignored for programs"
870310201
870410202 test -n "$release" && \
8705 func_warning "\`-release' is ignored for programs"
8706
8707 test "$preload" = yes \
8708 && test "$dlopen_support" = unknown \
8709 && test "$dlopen_self" = unknown \
8710 && test "$dlopen_self_static" = unknown && \
8711 func_warning "\`LT_INIT([dlopen])' not used. Assuming no dlopen support."
10203 func_warning "'-release' is ignored for programs"
10204
10205 $preload \
10206 && test unknown,unknown,unknown = "$dlopen_support,$dlopen_self,$dlopen_self_static" \
10207 && func_warning "'LT_INIT([dlopen])' not used. Assuming no dlopen support."
871210208
871310209 case $host in
871410210 *-*-rhapsody* | *-*-darwin1.[012])
872210218 *-*-darwin*)
872310219 # Don't allow lazy linking, it breaks C++ global constructors
872410220 # But is supposedly fixed on 10.4 or later (yay!).
8725 if test "$tagname" = CXX ; then
10221 if test CXX = "$tagname"; then
872610222 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
872710223 10.[0123])
8728 func_append compile_command " ${wl}-bind_at_load"
8729 func_append finalize_command " ${wl}-bind_at_load"
10224 func_append compile_command " $wl-bind_at_load"
10225 func_append finalize_command " $wl-bind_at_load"
873010226 ;;
873110227 esac
873210228 fi
876210258 *) func_append new_libs " $deplib" ;;
876310259 esac
876410260 done
8765 compile_deplibs="$new_libs"
10261 compile_deplibs=$new_libs
876610262
876710263
876810264 func_append compile_command " $compile_deplibs"
878610282 if test -n "$hardcode_libdir_flag_spec"; then
878710283 if test -n "$hardcode_libdir_separator"; then
878810284 if test -z "$hardcode_libdirs"; then
8789 hardcode_libdirs="$libdir"
10285 hardcode_libdirs=$libdir
879010286 else
879110287 # Just accumulate the unique libdirs.
879210288 case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
880910305 fi
881010306 case $host in
881110307 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
8812 testbindir=`${ECHO} "$libdir" | ${SED} -e 's*/lib$*/bin*'`
10308 testbindir=`$ECHO "$libdir" | $SED -e 's*/lib$*/bin*'`
881310309 case :$dllsearchpath: in
881410310 *":$libdir:"*) ;;
881510311 ::) dllsearchpath=$libdir;;
882610322 # Substitute the hardcoded libdirs into the rpath.
882710323 if test -n "$hardcode_libdir_separator" &&
882810324 test -n "$hardcode_libdirs"; then
8829 libdir="$hardcode_libdirs"
10325 libdir=$hardcode_libdirs
883010326 eval rpath=\" $hardcode_libdir_flag_spec\"
883110327 fi
8832 compile_rpath="$rpath"
10328 compile_rpath=$rpath
883310329
883410330 rpath=
883510331 hardcode_libdirs=
883710333 if test -n "$hardcode_libdir_flag_spec"; then
883810334 if test -n "$hardcode_libdir_separator"; then
883910335 if test -z "$hardcode_libdirs"; then
8840 hardcode_libdirs="$libdir"
10336 hardcode_libdirs=$libdir
884110337 else
884210338 # Just accumulate the unique libdirs.
884310339 case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
886210358 # Substitute the hardcoded libdirs into the rpath.
886310359 if test -n "$hardcode_libdir_separator" &&
886410360 test -n "$hardcode_libdirs"; then
8865 libdir="$hardcode_libdirs"
10361 libdir=$hardcode_libdirs
886610362 eval rpath=\" $hardcode_libdir_flag_spec\"
886710363 fi
8868 finalize_rpath="$rpath"
8869
8870 if test -n "$libobjs" && test "$build_old_libs" = yes; then
10364 finalize_rpath=$rpath
10365
10366 if test -n "$libobjs" && test yes = "$build_old_libs"; then
887110367 # Transform all the library objects into standard objects.
887210368 compile_command=`$ECHO "$compile_command" | $SP2NL | $SED "$lo2o" | $NL2SP`
887310369 finalize_command=`$ECHO "$finalize_command" | $SP2NL | $SED "$lo2o" | $NL2SP`
887410370 fi
887510371
8876 func_generate_dlsyms "$outputname" "@PROGRAM@" "no"
10372 func_generate_dlsyms "$outputname" "@PROGRAM@" false
887710373
887810374 # template prelinking step
887910375 if test -n "$prelink_cmds"; then
888010376 func_execute_cmds "$prelink_cmds" 'exit $?'
888110377 fi
888210378
8883 wrappers_required=yes
10379 wrappers_required=:
888410380 case $host in
888510381 *cegcc* | *mingw32ce*)
888610382 # Disable wrappers for cegcc and mingw32ce hosts, we are cross compiling anyway.
8887 wrappers_required=no
10383 wrappers_required=false
888810384 ;;
888910385 *cygwin* | *mingw* )
8890 if test "$build_libtool_libs" != yes; then
8891 wrappers_required=no
8892 fi
10386 test yes = "$build_libtool_libs" || wrappers_required=false
889310387 ;;
889410388 *)
8895 if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
8896 wrappers_required=no
10389 if test no = "$need_relink" || test yes != "$build_libtool_libs"; then
10390 wrappers_required=false
889710391 fi
889810392 ;;
889910393 esac
8900 if test "$wrappers_required" = no; then
10394 $wrappers_required || {
890110395 # Replace the output file specification.
890210396 compile_command=`$ECHO "$compile_command" | $SED 's%@OUTPUT@%'"$output"'%g'`
8903 link_command="$compile_command$compile_rpath"
10397 link_command=$compile_command$compile_rpath
890410398
890510399 # We have no uninstalled library dependencies, so finalize right now.
890610400 exit_status=0
891310407 fi
891410408
891510409 # Delete the generated files.
8916 if test -f "$output_objdir/${outputname}S.${objext}"; then
8917 func_show_eval '$RM "$output_objdir/${outputname}S.${objext}"'
10410 if test -f "$output_objdir/${outputname}S.$objext"; then
10411 func_show_eval '$RM "$output_objdir/${outputname}S.$objext"'
891810412 fi
891910413
892010414 exit $exit_status
8921 fi
10415 }
892210416
892310417 if test -n "$compile_shlibpath$finalize_shlibpath"; then
892410418 compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command"
894810442 fi
894910443 fi
895010444
8951 if test "$no_install" = yes; then
10445 if test yes = "$no_install"; then
895210446 # We don't need to create a wrapper script.
8953 link_command="$compile_var$compile_command$compile_rpath"
10447 link_command=$compile_var$compile_command$compile_rpath
895410448 # Replace the output file specification.
895510449 link_command=`$ECHO "$link_command" | $SED 's%@OUTPUT@%'"$output"'%g'`
895610450 # Delete the old output file.
896710461 exit $EXIT_SUCCESS
896810462 fi
896910463
8970 if test "$hardcode_action" = relink; then
8971 # Fast installation is not supported
8972 link_command="$compile_var$compile_command$compile_rpath"
8973 relink_command="$finalize_var$finalize_command$finalize_rpath"
8974
8975 func_warning "this platform does not like uninstalled shared libraries"
8976 func_warning "\`$output' will be relinked during installation"
8977 else
8978 if test "$fast_install" != no; then
8979 link_command="$finalize_var$compile_command$finalize_rpath"
8980 if test "$fast_install" = yes; then
8981 relink_command=`$ECHO "$compile_var$compile_command$compile_rpath" | $SED 's%@OUTPUT@%\$progdir/\$file%g'`
8982 else
8983 # fast_install is set to needless
8984 relink_command=
8985 fi
8986 else
8987 link_command="$compile_var$compile_command$compile_rpath"
8988 relink_command="$finalize_var$finalize_command$finalize_rpath"
8989 fi
8990 fi
10464 case $hardcode_action,$fast_install in
10465 relink,*)
10466 # Fast installation is not supported
10467 link_command=$compile_var$compile_command$compile_rpath
10468 relink_command=$finalize_var$finalize_command$finalize_rpath
10469
10470 func_warning "this platform does not like uninstalled shared libraries"
10471 func_warning "'$output' will be relinked during installation"
10472 ;;
10473 *,yes)
10474 link_command=$finalize_var$compile_command$finalize_rpath
10475 relink_command=`$ECHO "$compile_var$compile_command$compile_rpath" | $SED 's%@OUTPUT@%\$progdir/\$file%g'`
10476 ;;
10477 *,no)
10478 link_command=$compile_var$compile_command$compile_rpath
10479 relink_command=$finalize_var$finalize_command$finalize_rpath
10480 ;;
10481 *,needless)
10482 link_command=$finalize_var$compile_command$finalize_rpath
10483 relink_command=
10484 ;;
10485 esac
899110486
899210487 # Replace the output file specification.
899310488 link_command=`$ECHO "$link_command" | $SED 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
904410539 func_dirname_and_basename "$output" "" "."
904510540 output_name=$func_basename_result
904610541 output_path=$func_dirname_result
9047 cwrappersource="$output_path/$objdir/lt-$output_name.c"
9048 cwrapper="$output_path/$output_name.exe"
10542 cwrappersource=$output_path/$objdir/lt-$output_name.c
10543 cwrapper=$output_path/$output_name.exe
904910544 $RM $cwrappersource $cwrapper
905010545 trap "$RM $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
905110546
906610561 trap "$RM $func_ltwrapper_scriptname_result; exit $EXIT_FAILURE" 1 2 15
906710562 $opt_dry_run || {
906810563 # note: this script will not be executed, so do not chmod.
9069 if test "x$build" = "x$host" ; then
10564 if test "x$build" = "x$host"; then
907010565 $cwrapper --lt-dump-script > $func_ltwrapper_scriptname_result
907110566 else
907210567 func_emit_wrapper no > $func_ltwrapper_scriptname_result
908910584 # See if we need to build an old-fashioned archive.
909010585 for oldlib in $oldlibs; do
909110586
9092 if test "$build_libtool_libs" = convenience; then
9093 oldobjs="$libobjs_save $symfileobj"
9094 addlibs="$convenience"
9095 build_libtool_libs=no
9096 else
9097 if test "$build_libtool_libs" = module; then
9098 oldobjs="$libobjs_save"
10587 case $build_libtool_libs in
10588 convenience)
10589 oldobjs="$libobjs_save $symfileobj"
10590 addlibs=$convenience
909910591 build_libtool_libs=no
9100 else
10592 ;;
10593 module)
10594 oldobjs=$libobjs_save
10595 addlibs=$old_convenience
10596 build_libtool_libs=no
10597 ;;
10598 *)
910110599 oldobjs="$old_deplibs $non_pic_objects"
9102 if test "$preload" = yes && test -f "$symfileobj"; then
9103 func_append oldobjs " $symfileobj"
9104 fi
9105 fi
9106 addlibs="$old_convenience"
9107 fi
10600 $preload && test -f "$symfileobj" \
10601 && func_append oldobjs " $symfileobj"
10602 addlibs=$old_convenience
10603 ;;
10604 esac
910810605
910910606 if test -n "$addlibs"; then
9110 gentop="$output_objdir/${outputname}x"
10607 gentop=$output_objdir/${outputname}x
911110608 func_append generated " $gentop"
911210609
911310610 func_extract_archives $gentop $addlibs
911510612 fi
911610613
911710614 # Do each command in the archive commands.
9118 if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
10615 if test -n "$old_archive_from_new_cmds" && test yes = "$build_libtool_libs"; then
911910616 cmds=$old_archive_from_new_cmds
912010617 else
912110618
912210619 # Add any objects from preloaded convenience libraries
912310620 if test -n "$dlprefiles"; then
9124 gentop="$output_objdir/${outputname}x"
10621 gentop=$output_objdir/${outputname}x
912510622 func_append generated " $gentop"
912610623
912710624 func_extract_archives $gentop $dlprefiles
914210639 :
914310640 else
914410641 echo "copying selected object files to avoid basename conflicts..."
9145 gentop="$output_objdir/${outputname}x"
10642 gentop=$output_objdir/${outputname}x
914610643 func_append generated " $gentop"
914710644 func_mkdir_p "$gentop"
914810645 save_oldobjs=$oldobjs
915110648 for obj in $save_oldobjs
915210649 do
915310650 func_basename "$obj"
9154 objbase="$func_basename_result"
10651 objbase=$func_basename_result
915510652 case " $oldobjs " in
915610653 " ") oldobjs=$obj ;;
915710654 *[\ /]"$objbase "*)
922010717 else
922110718 # the above command should be used before it gets too long
922210719 oldobjs=$objlist
9223 if test "$obj" = "$last_oldobj" ; then
10720 if test "$obj" = "$last_oldobj"; then
922410721 RANLIB=$save_RANLIB
922510722 fi
922610723 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
9227 eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\"
10724 eval concat_cmds=\"\$concat_cmds$old_archive_cmds\"
922810725 objlist=
922910726 len=$len0
923010727 fi
923110728 done
923210729 RANLIB=$save_RANLIB
923310730 oldobjs=$objlist
9234 if test "X$oldobjs" = "X" ; then
10731 if test -z "$oldobjs"; then
923510732 eval cmds=\"\$concat_cmds\"
923610733 else
923710734 eval cmds=\"\$concat_cmds~\$old_archive_cmds\"
924810745 case $output in
924910746 *.la)
925010747 old_library=
9251 test "$build_old_libs" = yes && old_library="$libname.$libext"
10748 test yes = "$build_old_libs" && old_library=$libname.$libext
925210749 func_verbose "creating $output"
925310750
925410751 # Preserve any variables that may affect compiler behavior
926310760 fi
926410761 done
926510762 # Quote the link command for shipping.
9266 relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
10763 relink_command="(cd `pwd`; $SHELL \"$progpath\" $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
926710764 relink_command=`$ECHO "$relink_command" | $SED "$sed_quote_subst"`
9268 if test "$hardcode_automatic" = yes ; then
10765 if test yes = "$hardcode_automatic"; then
926910766 relink_command=
927010767 fi
927110768
927210769 # Only create the output if not a dry run.
927310770 $opt_dry_run || {
927410771 for installed in no yes; do
9275 if test "$installed" = yes; then
10772 if test yes = "$installed"; then
927610773 if test -z "$install_libdir"; then
927710774 break
927810775 fi
9279 output="$output_objdir/$outputname"i
10776 output=$output_objdir/${outputname}i
928010777 # Replace all uninstalled libtool libraries with the installed ones
928110778 newdependency_libs=
928210779 for deplib in $dependency_libs; do
928310780 case $deplib in
928410781 *.la)
928510782 func_basename "$deplib"
9286 name="$func_basename_result"
10783 name=$func_basename_result
928710784 func_resolve_sysroot "$deplib"
9288 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $func_resolve_sysroot_result`
10785 eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $func_resolve_sysroot_result`
928910786 test -z "$libdir" && \
9290 func_fatal_error "\`$deplib' is not a valid libtool archive"
10787 func_fatal_error "'$deplib' is not a valid libtool archive"
929110788 func_append newdependency_libs " ${lt_sysroot:+=}$libdir/$name"
929210789 ;;
929310790 -L*)
930310800 *) func_append newdependency_libs " $deplib" ;;
930410801 esac
930510802 done
9306 dependency_libs="$newdependency_libs"
10803 dependency_libs=$newdependency_libs
930710804 newdlfiles=
930810805
930910806 for lib in $dlfiles; do
931010807 case $lib in
931110808 *.la)
931210809 func_basename "$lib"
9313 name="$func_basename_result"
9314 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
10810 name=$func_basename_result
10811 eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
931510812 test -z "$libdir" && \
9316 func_fatal_error "\`$lib' is not a valid libtool archive"
10813 func_fatal_error "'$lib' is not a valid libtool archive"
931710814 func_append newdlfiles " ${lt_sysroot:+=}$libdir/$name"
931810815 ;;
931910816 *) func_append newdlfiles " $lib" ;;
932010817 esac
932110818 done
9322 dlfiles="$newdlfiles"
10819 dlfiles=$newdlfiles
932310820 newdlprefiles=
932410821 for lib in $dlprefiles; do
932510822 case $lib in
932910826 # didn't already link the preopened objects directly into
933010827 # the library:
933110828 func_basename "$lib"
9332 name="$func_basename_result"
9333 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
10829 name=$func_basename_result
10830 eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
933410831 test -z "$libdir" && \
9335 func_fatal_error "\`$lib' is not a valid libtool archive"
10832 func_fatal_error "'$lib' is not a valid libtool archive"
933610833 func_append newdlprefiles " ${lt_sysroot:+=}$libdir/$name"
933710834 ;;
933810835 esac
933910836 done
9340 dlprefiles="$newdlprefiles"
10837 dlprefiles=$newdlprefiles
934110838 else
934210839 newdlfiles=
934310840 for lib in $dlfiles; do
934410841 case $lib in
9345 [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
10842 [\\/]* | [A-Za-z]:[\\/]*) abs=$lib ;;
934610843 *) abs=`pwd`"/$lib" ;;
934710844 esac
934810845 func_append newdlfiles " $abs"
934910846 done
9350 dlfiles="$newdlfiles"
10847 dlfiles=$newdlfiles
935110848 newdlprefiles=
935210849 for lib in $dlprefiles; do
935310850 case $lib in
9354 [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
10851 [\\/]* | [A-Za-z]:[\\/]*) abs=$lib ;;
935510852 *) abs=`pwd`"/$lib" ;;
935610853 esac
935710854 func_append newdlprefiles " $abs"
935810855 done
9359 dlprefiles="$newdlprefiles"
10856 dlprefiles=$newdlprefiles
936010857 fi
936110858 $RM $output
936210859 # place dlname in correct position for cygwin
937210869 case $host,$output,$installed,$module,$dlname in
937310870 *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll)
937410871 # If a -bindir argument was supplied, place the dll there.
9375 if test "x$bindir" != x ;
9376 then
10872 if test -n "$bindir"; then
937710873 func_relative_path "$install_libdir" "$bindir"
9378 tdlname=$func_relative_path_result$dlname
10874 tdlname=$func_relative_path_result/$dlname
937910875 else
938010876 # Otherwise fall back on heuristic.
938110877 tdlname=../bin/$dlname
938410880 esac
938510881 $ECHO > $output "\
938610882 # $outputname - a libtool library file
9387 # Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
10883 # Generated by $PROGRAM (GNU $PACKAGE) $VERSION
938810884 #
938910885 # Please DO NOT delete this file!
939010886 # It is necessary for linking the library.
939810894 # The name of the static archive.
939910895 old_library='$old_library'
940010896
9401 # Linker flags that can not go in dependency_libs.
10897 # Linker flags that cannot go in dependency_libs.
940210898 inherited_linker_flags='$new_inherited_linker_flags'
940310899
940410900 # Libraries that this one depends upon.
942410920
942510921 # Directory that this library needs to be installed in:
942610922 libdir='$install_libdir'"
9427 if test "$installed" = no && test "$need_relink" = yes; then
10923 if test no,yes = "$installed,$need_relink"; then
942810924 $ECHO >> $output "\
942910925 relink_command=\"$relink_command\""
943010926 fi
943910935 exit $EXIT_SUCCESS
944010936 }
944110937
9442 { test "$opt_mode" = link || test "$opt_mode" = relink; } &&
9443 func_mode_link ${1+"$@"}
10938 if test link = "$opt_mode" || test relink = "$opt_mode"; then
10939 func_mode_link ${1+"$@"}
10940 fi
944410941
944510942
944610943 # func_mode_uninstall arg...
944710944 func_mode_uninstall ()
944810945 {
9449 $opt_debug
9450 RM="$nonopt"
10946 $debug_cmd
10947
10948 RM=$nonopt
945110949 files=
9452 rmforce=
10950 rmforce=false
945310951 exit_status=0
945410952
945510953 # This variable tells wrapper scripts just to set variables rather
945610954 # than running their programs.
9457 libtool_install_magic="$magic"
10955 libtool_install_magic=$magic
945810956
945910957 for arg
946010958 do
946110959 case $arg in
9462 -f) func_append RM " $arg"; rmforce=yes ;;
10960 -f) func_append RM " $arg"; rmforce=: ;;
946310961 -*) func_append RM " $arg" ;;
946410962 *) func_append files " $arg" ;;
946510963 esac
947210970
947310971 for file in $files; do
947410972 func_dirname "$file" "" "."
9475 dir="$func_dirname_result"
9476 if test "X$dir" = X.; then
9477 odir="$objdir"
10973 dir=$func_dirname_result
10974 if test . = "$dir"; then
10975 odir=$objdir
947810976 else
9479 odir="$dir/$objdir"
10977 odir=$dir/$objdir
948010978 fi
948110979 func_basename "$file"
9482 name="$func_basename_result"
9483 test "$opt_mode" = uninstall && odir="$dir"
10980 name=$func_basename_result
10981 test uninstall = "$opt_mode" && odir=$dir
948410982
948510983 # Remember odir for removal later, being careful to avoid duplicates
9486 if test "$opt_mode" = clean; then
10984 if test clean = "$opt_mode"; then
948710985 case " $rmdirs " in
948810986 *" $odir "*) ;;
948910987 *) func_append rmdirs " $odir" ;;
949810996 elif test -d "$file"; then
949910997 exit_status=1
950010998 continue
9501 elif test "$rmforce" = yes; then
10999 elif $rmforce; then
950211000 continue
950311001 fi
950411002
9505 rmfiles="$file"
11003 rmfiles=$file
950611004
950711005 case $name in
950811006 *.la)
951611014 done
951711015 test -n "$old_library" && func_append rmfiles " $odir/$old_library"
951811016
9519 case "$opt_mode" in
11017 case $opt_mode in
952011018 clean)
952111019 case " $library_names " in
952211020 *" $dlname "*) ;;
952711025 uninstall)
952811026 if test -n "$library_names"; then
952911027 # Do each command in the postuninstall commands.
9530 func_execute_cmds "$postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1'
11028 func_execute_cmds "$postuninstall_cmds" '$rmforce || exit_status=1'
953111029 fi
953211030
953311031 if test -n "$old_library"; then
953411032 # Do each command in the old_postuninstall commands.
9535 func_execute_cmds "$old_postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1'
11033 func_execute_cmds "$old_postuninstall_cmds" '$rmforce || exit_status=1'
953611034 fi
953711035 # FIXME: should reinstall the best remaining shared library.
953811036 ;;
954811046 func_source $dir/$name
954911047
955011048 # Add PIC object to the list of files to remove.
9551 if test -n "$pic_object" &&
9552 test "$pic_object" != none; then
11049 if test -n "$pic_object" && test none != "$pic_object"; then
955311050 func_append rmfiles " $dir/$pic_object"
955411051 fi
955511052
955611053 # Add non-PIC object to the list of files to remove.
9557 if test -n "$non_pic_object" &&
9558 test "$non_pic_object" != none; then
11054 if test -n "$non_pic_object" && test none != "$non_pic_object"; then
955911055 func_append rmfiles " $dir/$non_pic_object"
956011056 fi
956111057 fi
956211058 ;;
956311059
956411060 *)
9565 if test "$opt_mode" = clean ; then
11061 if test clean = "$opt_mode"; then
956611062 noexename=$name
956711063 case $file in
956811064 *.exe)
958911085
959011086 # note $name still contains .exe if it was in $file originally
959111087 # as does the version of $file that was added into $rmfiles
9592 func_append rmfiles " $odir/$name $odir/${name}S.${objext}"
9593 if test "$fast_install" = yes && test -n "$relink_command"; then
11088 func_append rmfiles " $odir/$name $odir/${name}S.$objext"
11089 if test yes = "$fast_install" && test -n "$relink_command"; then
959411090 func_append rmfiles " $odir/lt-$name"
959511091 fi
9596 if test "X$noexename" != "X$name" ; then
9597 func_append rmfiles " $odir/lt-${noexename}.c"
11092 if test "X$noexename" != "X$name"; then
11093 func_append rmfiles " $odir/lt-$noexename.c"
959811094 fi
959911095 fi
960011096 fi
960311099 func_show_eval "$RM $rmfiles" 'exit_status=1'
960411100 done
960511101
9606 # Try to remove the ${objdir}s in the directories where we deleted files
11102 # Try to remove the $objdir's in the directories where we deleted files
960711103 for dir in $rmdirs; do
960811104 if test -d "$dir"; then
960911105 func_show_eval "rmdir $dir >/dev/null 2>&1"
961311109 exit $exit_status
961411110 }
961511111
9616 { test "$opt_mode" = uninstall || test "$opt_mode" = clean; } &&
9617 func_mode_uninstall ${1+"$@"}
11112 if test uninstall = "$opt_mode" || test clean = "$opt_mode"; then
11113 func_mode_uninstall ${1+"$@"}
11114 fi
961811115
961911116 test -z "$opt_mode" && {
9620 help="$generic_help"
11117 help=$generic_help
962111118 func_fatal_help "you must specify a MODE"
962211119 }
962311120
962411121 test -z "$exec_cmd" && \
9625 func_fatal_help "invalid operation mode \`$opt_mode'"
11122 func_fatal_help "invalid operation mode '$opt_mode'"
962611123
962711124 if test -n "$exec_cmd"; then
962811125 eval exec "$exec_cmd"
963311130
963411131
963511132 # The TAGs below are defined such that we never get into a situation
9636 # in which we disable both kinds of libraries. Given conflicting
11133 # where we disable both kinds of libraries. Given conflicting
963711134 # choices, we go for a static library, that is the most portable,
963811135 # since we can't tell whether shared libraries were disabled because
963911136 # the user asked for that or because the platform doesn't support
965611153 # mode:shell-script
965711154 # sh-indentation:2
965811155 # End:
9659 # vi:sw=2
9660
00 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
11 #
2 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
3 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
4 # Foundation, Inc.
2 # Copyright (C) 1996-2001, 2003-2015 Free Software Foundation, Inc.
53 # Written by Gordon Matzigkeit, 1996
64 #
75 # This file is free software; the Free Software Foundation gives
97 # modifications, as long as this notice is preserved.
108
119 m4_define([_LT_COPYING], [dnl
12 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
14 # Foundation, Inc.
15 # Written by Gordon Matzigkeit, 1996
10 # Copyright (C) 2014 Free Software Foundation, Inc.
11 # This is free software; see the source for copying conditions. There is NO
12 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13
14 # GNU Libtool is free software; you can redistribute it and/or modify
15 # it under the terms of the GNU General Public License as published by
16 # the Free Software Foundation; either version 2 of of the License, or
17 # (at your option) any later version.
1618 #
17 # This file is part of GNU Libtool.
19 # As a special exception to the GNU General Public License, if you
20 # distribute this file as part of a program or library that is built
21 # using GNU Libtool, you may include this file under the same
22 # distribution terms that you use for the rest of that program.
1823 #
19 # GNU Libtool is free software; you can redistribute it and/or
20 # modify it under the terms of the GNU General Public License as
21 # published by the Free Software Foundation; either version 2 of
22 # the License, or (at your option) any later version.
23 #
24 # As a special exception to the GNU General Public License,
25 # if you distribute this file as part of a program or library that
26 # is built using GNU Libtool, you may include this file under the
27 # same distribution terms that you use for the rest of that program.
28 #
29 # GNU Libtool is distributed in the hope that it will be useful,
30 # but WITHOUT ANY WARRANTY; without even the implied warranty of
24 # GNU Libtool is distributed in the hope that it will be useful, but
25 # WITHOUT ANY WARRANTY; without even the implied warranty of
3126 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
3227 # GNU General Public License for more details.
3328 #
3429 # You should have received a copy of the GNU General Public License
35 # along with GNU Libtool; see the file COPYING. If not, a copy
36 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
37 # obtained by writing to the Free Software Foundation, Inc.,
38 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
30 # along with this program. If not, see <http://www.gnu.org/licenses/>.
3931 ])
4032
41 # serial 57 LT_INIT
33 # serial 58 LT_INIT
4234
4335
4436 # LT_PREREQ(VERSION)
6658 # LT_INIT([OPTIONS])
6759 # ------------------
6860 AC_DEFUN([LT_INIT],
69 [AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
61 [AC_PREREQ([2.62])dnl We use AC_PATH_PROGS_FEATURE_CHECK
7062 AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
7163 AC_BEFORE([$0], [LT_LANG])dnl
7264 AC_BEFORE([$0], [LT_OUTPUT])dnl
9082 _LT_SET_OPTIONS([$0], [$1])
9183
9284 # This can be used to rebuild libtool when needed
93 LIBTOOL_DEPS="$ltmain"
85 LIBTOOL_DEPS=$ltmain
9486
9587 # Always use our own libtool.
9688 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
110102 dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
111103
112104
105 # _LT_PREPARE_CC_BASENAME
106 # -----------------------
107 m4_defun([_LT_PREPARE_CC_BASENAME], [
108 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
109 func_cc_basename ()
110 {
111 for cc_temp in @S|@*""; do
112 case $cc_temp in
113 compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
114 distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
115 \-*) ;;
116 *) break;;
117 esac
118 done
119 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
120 }
121 ])# _LT_PREPARE_CC_BASENAME
122
123
113124 # _LT_CC_BASENAME(CC)
114125 # -------------------
115 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
126 # It would be clearer to call AC_REQUIREs from _LT_PREPARE_CC_BASENAME,
127 # but that macro is also expanded into generated libtool script, which
128 # arranges for $SED and $ECHO to be set by different means.
116129 m4_defun([_LT_CC_BASENAME],
117 [for cc_temp in $1""; do
118 case $cc_temp in
119 compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
120 distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
121 \-*) ;;
122 *) break;;
123 esac
124 done
125 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
130 [m4_require([_LT_PREPARE_CC_BASENAME])dnl
131 AC_REQUIRE([_LT_DECL_SED])dnl
132 AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
133 func_cc_basename $1
134 cc_basename=$func_cc_basename_result
126135 ])
127136
128137
129138 # _LT_FILEUTILS_DEFAULTS
130139 # ----------------------
131140 # It is okay to use these file commands and assume they have been set
132 # sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
141 # sensibly after 'm4_require([_LT_FILEUTILS_DEFAULTS])'.
133142 m4_defun([_LT_FILEUTILS_DEFAULTS],
134143 [: ${CP="cp -f"}
135144 : ${MV="mv -f"}
176185 m4_require([_LT_CMD_OLD_ARCHIVE])dnl
177186 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
178187 m4_require([_LT_WITH_SYSROOT])dnl
188 m4_require([_LT_CMD_TRUNCATE])dnl
179189
180190 _LT_CONFIG_LIBTOOL_INIT([
181 # See if we are running on zsh, and set the options which allow our
191 # See if we are running on zsh, and set the options that allow our
182192 # commands through without removal of \ escapes INIT.
183 if test -n "\${ZSH_VERSION+set}" ; then
193 if test -n "\${ZSH_VERSION+set}"; then
184194 setopt NO_GLOB_SUBST
185195 fi
186196 ])
187 if test -n "${ZSH_VERSION+set}" ; then
197 if test -n "${ZSH_VERSION+set}"; then
188198 setopt NO_GLOB_SUBST
189199 fi
190200
197207 # AIX sometimes has problems with the GCC collect2 program. For some
198208 # reason, if we set the COLLECT_NAMES environment variable, the problems
199209 # vanish in a puff of smoke.
200 if test "X${COLLECT_NAMES+set}" != Xset; then
210 if test set != "${COLLECT_NAMES+set}"; then
201211 COLLECT_NAMES=
202212 export COLLECT_NAMES
203213 fi
208218 ofile=libtool
209219 can_build_shared=yes
210220
211 # All known linkers require a `.a' archive for static linking (except MSVC,
221 # All known linkers require a '.a' archive for static linking (except MSVC,
212222 # which needs '.lib').
213223 libext=a
214224
215 with_gnu_ld="$lt_cv_prog_gnu_ld"
216
217 old_CC="$CC"
218 old_CFLAGS="$CFLAGS"
225 with_gnu_ld=$lt_cv_prog_gnu_ld
226
227 old_CC=$CC
228 old_CFLAGS=$CFLAGS
219229
220230 # Set sane defaults for various variables
221231 test -z "$CC" && CC=cc
268278
269279 # _LT_PROG_LTMAIN
270280 # ---------------
271 # Note that this code is called both from `configure', and `config.status'
281 # Note that this code is called both from 'configure', and 'config.status'
272282 # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
273 # `config.status' has no value for ac_aux_dir unless we are using Automake,
283 # 'config.status' has no value for ac_aux_dir unless we are using Automake,
274284 # so we pass a copy along to make sure it has a sensible value anyway.
275285 m4_defun([_LT_PROG_LTMAIN],
276286 [m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
277287 _LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
278 ltmain="$ac_aux_dir/ltmain.sh"
288 ltmain=$ac_aux_dir/ltmain.sh
279289 ])# _LT_PROG_LTMAIN
280290
281291
285295
286296 # So that we can recreate a full libtool script including additional
287297 # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
288 # in macros and then make a single call at the end using the `libtool'
298 # in macros and then make a single call at the end using the 'libtool'
289299 # label.
290300
291301
420430
421431 # _LT_CONFIG_STATUS_DECLARE([VARNAME])
422432 # ------------------------------------
423 # Quote a variable value, and forward it to `config.status' so that its
424 # declaration there will have the same value as in `configure'. VARNAME
433 # Quote a variable value, and forward it to 'config.status' so that its
434 # declaration there will have the same value as in 'configure'. VARNAME
425435 # must have a single quote delimited value for this to work.
426436 m4_define([_LT_CONFIG_STATUS_DECLARE],
427437 [$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`'])
445455 # Output comment and list of tags supported by the script
446456 m4_defun([_LT_LIBTOOL_TAGS],
447457 [_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
448 available_tags="_LT_TAGS"dnl
458 available_tags='_LT_TAGS'dnl
449459 ])
450460
451461
473483 # _LT_LIBTOOL_CONFIG_VARS
474484 # -----------------------
475485 # Produce commented declarations of non-tagged libtool config variables
476 # suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
486 # suitable for insertion in the LIBTOOL CONFIG section of the 'libtool'
477487 # script. Tagged libtool config variables (even for the LIBTOOL CONFIG
478488 # section) are produced by _LT_LIBTOOL_TAG_VARS.
479489 m4_defun([_LT_LIBTOOL_CONFIG_VARS],
499509 # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
500510 # variables for single and double quote escaping we saved from calls
501511 # to _LT_DECL, we can put quote escaped variables declarations
502 # into `config.status', and then the shell code to quote escape them in
503 # for loops in `config.status'. Finally, any additional code accumulated
512 # into 'config.status', and then the shell code to quote escape them in
513 # for loops in 'config.status'. Finally, any additional code accumulated
504514 # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
505515 m4_defun([_LT_CONFIG_COMMANDS],
506516 [AC_PROVIDE_IFELSE([LT_OUTPUT],
546556 ]], lt_decl_quote_varnames); do
547557 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
548558 *[[\\\\\\\`\\"\\\$]]*)
549 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
559 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
550560 ;;
551561 *)
552562 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
559569 ]], lt_decl_dquote_varnames); do
560570 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
561571 *[[\\\\\\\`\\"\\\$]]*)
562 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
572 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
563573 ;;
564574 *)
565575 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
575585 # Generate a child script FILE with all initialization necessary to
576586 # reuse the environment learned by the parent script, and make the
577587 # file executable. If COMMENT is supplied, it is inserted after the
578 # `#!' sequence but before initialization text begins. After this
588 # '#!' sequence but before initialization text begins. After this
579589 # macro, additional text can be appended to FILE to form the body of
580590 # the child script. The macro ends with non-zero status if the
581591 # file could not be fully written (such as if the disk is full).
597607 _AS_PREPARE
598608 exec AS_MESSAGE_FD>&1
599609 _ASEOF
600 test $lt_write_fail = 0 && chmod +x $1[]dnl
610 test 0 = "$lt_write_fail" && chmod +x $1[]dnl
601611 m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
602612
603613 # LT_OUTPUT
620630 } >&AS_MESSAGE_LOG_FD
621631
622632 lt_cl_help="\
623 \`$as_me' creates a local libtool stub from the current configuration,
633 '$as_me' creates a local libtool stub from the current configuration,
624634 for use in further configure time tests before the real libtool is
625635 generated.
626636
642652 This config.lt script is free software; the Free Software Foundation
643653 gives unlimited permision to copy, distribute and modify it."
644654
645 while test $[#] != 0
655 while test 0 != $[#]
646656 do
647657 case $[1] in
648658 --version | --v* | -V )
655665 lt_cl_silent=: ;;
656666
657667 -*) AC_MSG_ERROR([unrecognized option: $[1]
658 Try \`$[0] --help' for more information.]) ;;
668 Try '$[0] --help' for more information.]) ;;
659669
660670 *) AC_MSG_ERROR([unrecognized argument: $[1]
661 Try \`$[0] --help' for more information.]) ;;
671 Try '$[0] --help' for more information.]) ;;
662672 esac
663673 shift
664674 done
684694 # open by configure. Here we exec the FD to /dev/null, effectively closing
685695 # config.log, so it can be properly (re)opened and appended to by config.lt.
686696 lt_cl_success=:
687 test "$silent" = yes &&
697 test yes = "$silent" &&
688698 lt_config_lt_args="$lt_config_lt_args --quiet"
689699 exec AS_MESSAGE_LOG_FD>/dev/null
690700 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
704714 _LT_CONFIG_SAVE_COMMANDS([
705715 m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
706716 m4_if(_LT_TAG, [C], [
707 # See if we are running on zsh, and set the options which allow our
717 # See if we are running on zsh, and set the options that allow our
708718 # commands through without removal of \ escapes.
709 if test -n "${ZSH_VERSION+set}" ; then
719 if test -n "${ZSH_VERSION+set}"; then
710720 setopt NO_GLOB_SUBST
711721 fi
712722
713 cfgfile="${ofile}T"
723 cfgfile=${ofile}T
714724 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
715725 $RM "$cfgfile"
716726
717727 cat <<_LT_EOF >> "$cfgfile"
718728 #! $SHELL
719
720 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
721 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
729 # Generated automatically by $as_me ($PACKAGE) $VERSION
722730 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
723731 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
724 #
732
733 # Provide generalized library-building support services.
734 # Written by Gordon Matzigkeit, 1996
735
725736 _LT_COPYING
726737 _LT_LIBTOOL_TAGS
738
739 # Configured defaults for sys_lib_dlsearch_path munging.
740 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
727741
728742 # ### BEGIN LIBTOOL CONFIG
729743 _LT_LIBTOOL_CONFIG_VARS
730744 _LT_LIBTOOL_TAG_VARS
731745 # ### END LIBTOOL CONFIG
746
747 _LT_EOF
748
749 cat <<'_LT_EOF' >> "$cfgfile"
750
751 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
752
753 _LT_PREPARE_MUNGE_PATH_LIST
754 _LT_PREPARE_CC_BASENAME
755
756 # ### END FUNCTIONS SHARED WITH CONFIGURE
732757
733758 _LT_EOF
734759
738763 # AIX sometimes has problems with the GCC collect2 program. For some
739764 # reason, if we set the COLLECT_NAMES environment variable, the problems
740765 # vanish in a puff of smoke.
741 if test "X${COLLECT_NAMES+set}" != Xset; then
766 if test set != "${COLLECT_NAMES+set}"; then
742767 COLLECT_NAMES=
743768 export COLLECT_NAMES
744769 fi
754779 # is reportedly fixed, but why not run on old versions too?
755780 sed '$q' "$ltmain" >> "$cfgfile" \
756781 || (rm -f "$cfgfile"; exit 1)
757
758 _LT_PROG_REPLACE_SHELLFNS
759782
760783 mv -f "$cfgfile" "$ofile" ||
761784 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
774797 [m4_if([$1], [], [
775798 PACKAGE='$PACKAGE'
776799 VERSION='$VERSION'
777 TIMESTAMP='$TIMESTAMP'
778800 RM='$RM'
779801 ofile='$ofile'], [])
780802 ])dnl /_LT_CONFIG_SAVE_COMMANDS
973995
974996 AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
975997 [lt_cv_apple_cc_single_mod=no
976 if test -z "${LT_MULTI_MODULE}"; then
998 if test -z "$LT_MULTI_MODULE"; then
977999 # By default we will add the -single_module flag. You can override
9781000 # by either setting the environment variable LT_MULTI_MODULE
9791001 # non-empty at configure time, or by adding -multi_module to the
9911013 cat conftest.err >&AS_MESSAGE_LOG_FD
9921014 # Otherwise, if the output was created with a 0 exit code from
9931015 # the compiler, it worked.
994 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
1016 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
9951017 lt_cv_apple_cc_single_mod=yes
9961018 else
9971019 cat conftest.err >&AS_MESSAGE_LOG_FD
10091031 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
10101032 [lt_cv_ld_exported_symbols_list=yes],
10111033 [lt_cv_ld_exported_symbols_list=no])
1012 LDFLAGS="$save_LDFLAGS"
1034 LDFLAGS=$save_LDFLAGS
10131035 ])
10141036
10151037 AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
10311053 _lt_result=$?
10321054 if test -s conftest.err && $GREP force_load conftest.err; then
10331055 cat conftest.err >&AS_MESSAGE_LOG_FD
1034 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
1056 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
10351057 lt_cv_ld_force_load=yes
10361058 else
10371059 cat conftest.err >&AS_MESSAGE_LOG_FD
10411063 ])
10421064 case $host_os in
10431065 rhapsody* | darwin1.[[012]])
1044 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
1066 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
10451067 darwin1.*)
1046 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1068 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10471069 darwin*) # darwin 5.x on
10481070 # if running on 10.5 or later, the deployment target defaults
10491071 # to the OS version, if on x86, and 10.4, the deployment
10501072 # target defaults to 10.4. Don't you love it?
10511073 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10521074 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
1053 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
1054 10.[[012]]*)
1055 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1075 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
1076 10.[[012]][[,.]]*)
1077 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10561078 10.*)
1057 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
1079 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10581080 esac
10591081 ;;
10601082 esac
1061 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
1083 if test yes = "$lt_cv_apple_cc_single_mod"; then
10621084 _lt_dar_single_mod='$single_module'
10631085 fi
1064 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
1065 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
1086 if test yes = "$lt_cv_ld_exported_symbols_list"; then
1087 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
10661088 else
1067 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
1089 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
10681090 fi
1069 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
1091 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
10701092 _lt_dsymutil='~$DSYMUTIL $lib || :'
10711093 else
10721094 _lt_dsymutil=
10861108 _LT_TAGVAR(hardcode_direct, $1)=no
10871109 _LT_TAGVAR(hardcode_automatic, $1)=yes
10881110 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
1089 if test "$lt_cv_ld_force_load" = "yes"; then
1090 _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
1111 if test yes = "$lt_cv_ld_force_load"; then
1112 _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
10911113 m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes],
10921114 [FC], [_LT_TAGVAR(compiler_needs_object, $1)=yes])
10931115 else
10941116 _LT_TAGVAR(whole_archive_flag_spec, $1)=''
10951117 fi
10961118 _LT_TAGVAR(link_all_deplibs, $1)=yes
1097 _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
1119 _LT_TAGVAR(allow_undefined_flag, $1)=$_lt_dar_allow_undefined
10981120 case $cc_basename in
1099 ifort*) _lt_dar_can_shared=yes ;;
1121 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11001122 *) _lt_dar_can_shared=$GCC ;;
11011123 esac
1102 if test "$_lt_dar_can_shared" = "yes"; then
1124 if test yes = "$_lt_dar_can_shared"; then
11031125 output_verbose_link_cmd=func_echo_all
1104 _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
1105 _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
1106 _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
1107 _LT_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
1126 _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
1127 _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
1128 _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
1129 _LT_TAGVAR(module_expsym_cmds, $1)="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
11081130 m4_if([$1], [CXX],
1109 [ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
1110 _LT_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
1111 _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
1131 [ if test yes != "$lt_cv_apple_cc_single_mod"; then
1132 _LT_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil"
1133 _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil"
11121134 fi
11131135 ],[])
11141136 else
11281150 # Allow to override them for all tags through lt_cv_aix_libpath.
11291151 m4_defun([_LT_SYS_MODULE_PATH_AIX],
11301152 [m4_require([_LT_DECL_SED])dnl
1131 if test "${lt_cv_aix_libpath+set}" = set; then
1153 if test set = "${lt_cv_aix_libpath+set}"; then
11321154 aix_libpath=$lt_cv_aix_libpath
11331155 else
11341156 AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
11461168 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11471169 fi],[])
11481170 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
1149 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib"
1171 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=/usr/lib:/lib
11501172 fi
11511173 ])
11521174 aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
11661188 # -----------------------
11671189 # Find how we can fake an echo command that does not interpret backslash.
11681190 # In particular, with Autoconf 2.60 or later we add some code to the start
1169 # of the generated configure script which will find a shell with a builtin
1170 # printf (which we can use as an echo command).
1191 # of the generated configure script that will find a shell with a builtin
1192 # printf (that we can use as an echo command).
11711193 m4_defun([_LT_PROG_ECHO_BACKSLASH],
11721194 [ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11731195 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11951217 # Invoke $ECHO with all args, space-separated.
11961218 func_echo_all ()
11971219 {
1198 $ECHO "$*"
1220 $ECHO "$*"
11991221 }
12001222
1201 case "$ECHO" in
1223 case $ECHO in
12021224 printf*) AC_MSG_RESULT([printf]) ;;
12031225 print*) AC_MSG_RESULT([print -r]) ;;
12041226 *) AC_MSG_RESULT([cat]) ;;
12241246 AC_DEFUN([_LT_WITH_SYSROOT],
12251247 [AC_MSG_CHECKING([for sysroot])
12261248 AC_ARG_WITH([sysroot],
1227 [ --with-sysroot[=DIR] Search for dependent libraries within DIR
1228 (or the compiler's sysroot if not specified).],
1249 [AS_HELP_STRING([--with-sysroot@<:@=DIR@:>@],
1250 [Search for dependent libraries within DIR (or the compiler's sysroot
1251 if not specified).])],
12291252 [], [with_sysroot=no])
12301253
12311254 dnl lt_sysroot will always be passed unquoted. We quote it here
12321255 dnl in case the user passed a directory name.
12331256 lt_sysroot=
1234 case ${with_sysroot} in #(
1257 case $with_sysroot in #(
12351258 yes)
1236 if test "$GCC" = yes; then
1259 if test yes = "$GCC"; then
12371260 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12381261 fi
12391262 ;; #(
12431266 no|'')
12441267 ;; #(
12451268 *)
1246 AC_MSG_RESULT([${with_sysroot}])
1269 AC_MSG_RESULT([$with_sysroot])
12471270 AC_MSG_ERROR([The sysroot must be an absolute path.])
12481271 ;;
12491272 esac
12501273
12511274 AC_MSG_RESULT([${lt_sysroot:-no}])
12521275 _LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
1253 [dependent libraries, and in which our libraries should be installed.])])
1276 [dependent libraries, and where our libraries should be installed.])])
12541277
12551278 # _LT_ENABLE_LOCK
12561279 # ---------------
12581281 [AC_ARG_ENABLE([libtool-lock],
12591282 [AS_HELP_STRING([--disable-libtool-lock],
12601283 [avoid locking (might break parallel builds)])])
1261 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1284 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
12621285
12631286 # Some flags need to be propagated to the compiler or linker for good
12641287 # libtool support.
12651288 case $host in
12661289 ia64-*-hpux*)
1267 # Find out which ABI we are using.
1290 # Find out what ABI is being produced by ac_compile, and set mode
1291 # options accordingly.
12681292 echo 'int i;' > conftest.$ac_ext
12691293 if AC_TRY_EVAL(ac_compile); then
12701294 case `/usr/bin/file conftest.$ac_objext` in
12711295 *ELF-32*)
1272 HPUX_IA64_MODE="32"
1296 HPUX_IA64_MODE=32
12731297 ;;
12741298 *ELF-64*)
1275 HPUX_IA64_MODE="64"
1299 HPUX_IA64_MODE=64
12761300 ;;
12771301 esac
12781302 fi
12791303 rm -rf conftest*
12801304 ;;
12811305 *-*-irix6*)
1282 # Find out which ABI we are using.
1306 # Find out what ABI is being produced by ac_compile, and set linker
1307 # options accordingly.
12831308 echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
12841309 if AC_TRY_EVAL(ac_compile); then
1285 if test "$lt_cv_prog_gnu_ld" = yes; then
1310 if test yes = "$lt_cv_prog_gnu_ld"; then
12861311 case `/usr/bin/file conftest.$ac_objext` in
12871312 *32-bit*)
12881313 LD="${LD-ld} -melf32bsmip"
13111336 rm -rf conftest*
13121337 ;;
13131338
1339 mips64*-*linux*)
1340 # Find out what ABI is being produced by ac_compile, and set linker
1341 # options accordingly.
1342 echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
1343 if AC_TRY_EVAL(ac_compile); then
1344 emul=elf
1345 case `/usr/bin/file conftest.$ac_objext` in
1346 *32-bit*)
1347 emul="${emul}32"
1348 ;;
1349 *64-bit*)
1350 emul="${emul}64"
1351 ;;
1352 esac
1353 case `/usr/bin/file conftest.$ac_objext` in
1354 *MSB*)
1355 emul="${emul}btsmip"
1356 ;;
1357 *LSB*)
1358 emul="${emul}ltsmip"
1359 ;;
1360 esac
1361 case `/usr/bin/file conftest.$ac_objext` in
1362 *N32*)
1363 emul="${emul}n32"
1364 ;;
1365 esac
1366 LD="${LD-ld} -m $emul"
1367 fi
1368 rm -rf conftest*
1369 ;;
1370
13141371 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
13151372 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
1316 # Find out which ABI we are using.
1373 # Find out what ABI is being produced by ac_compile, and set linker
1374 # options accordingly. Note that the listed cases only cover the
1375 # situations where additional linker options are needed (such as when
1376 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
1377 # vice versa); the common cases where no linker options are needed do
1378 # not appear in the list.
13171379 echo 'int i;' > conftest.$ac_ext
13181380 if AC_TRY_EVAL(ac_compile); then
13191381 case `/usr/bin/file conftest.o` in
13321394 ;;
13331395 esac
13341396 ;;
1335 powerpc64le-*)
1397 powerpc64le-*linux*)
13361398 LD="${LD-ld} -m elf32lppclinux"
13371399 ;;
1338 powerpc64-*)
1400 powerpc64-*linux*)
13391401 LD="${LD-ld} -m elf32ppclinux"
13401402 ;;
13411403 s390x-*linux*)
13541416 x86_64-*linux*)
13551417 LD="${LD-ld} -m elf_x86_64"
13561418 ;;
1357 powerpcle-*)
1419 powerpcle-*linux*)
13581420 LD="${LD-ld} -m elf64lppc"
13591421 ;;
1360 powerpc-*)
1422 powerpc-*linux*)
13611423 LD="${LD-ld} -m elf64ppc"
13621424 ;;
13631425 s390*-*linux*|s390*-*tpf*)
13751437
13761438 *-*-sco3.2v5*)
13771439 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1378 SAVE_CFLAGS="$CFLAGS"
1440 SAVE_CFLAGS=$CFLAGS
13791441 CFLAGS="$CFLAGS -belf"
13801442 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
13811443 [AC_LANG_PUSH(C)
13821444 AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
13831445 AC_LANG_POP])
1384 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1446 if test yes != "$lt_cv_cc_needs_belf"; then
13851447 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1386 CFLAGS="$SAVE_CFLAGS"
1448 CFLAGS=$SAVE_CFLAGS
13871449 fi
13881450 ;;
13891451 *-*solaris*)
1390 # Find out which ABI we are using.
1452 # Find out what ABI is being produced by ac_compile, and set linker
1453 # options accordingly.
13911454 echo 'int i;' > conftest.$ac_ext
13921455 if AC_TRY_EVAL(ac_compile); then
13931456 case `/usr/bin/file conftest.o` in
13951458 case $lt_cv_prog_gnu_ld in
13961459 yes*)
13971460 case $host in
1398 i?86-*-solaris*)
1461 i?86-*-solaris*|x86_64-*-solaris*)
13991462 LD="${LD-ld} -m elf_x86_64"
14001463 ;;
14011464 sparc*-*-solaris*)
14041467 esac
14051468 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
14061469 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
1407 LD="${LD-ld}_sol2"
1470 LD=${LD-ld}_sol2
14081471 fi
14091472 ;;
14101473 *)
14201483 ;;
14211484 esac
14221485
1423 need_locks="$enable_libtool_lock"
1486 need_locks=$enable_libtool_lock
14241487 ])# _LT_ENABLE_LOCK
14251488
14261489
14391502 [echo conftest.$ac_objext > conftest.lst
14401503 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD'
14411504 AC_TRY_EVAL([lt_ar_try])
1442 if test "$ac_status" -eq 0; then
1505 if test 0 -eq "$ac_status"; then
14431506 # Ensure the archiver fails upon bogus file names.
14441507 rm -f conftest.$ac_objext libconftest.a
14451508 AC_TRY_EVAL([lt_ar_try])
1446 if test "$ac_status" -ne 0; then
1509 if test 0 -ne "$ac_status"; then
14471510 lt_cv_ar_at_file=@
14481511 fi
14491512 fi
14511514 ])
14521515 ])
14531516
1454 if test "x$lt_cv_ar_at_file" = xno; then
1517 if test no = "$lt_cv_ar_at_file"; then
14551518 archiver_list_spec=
14561519 else
14571520 archiver_list_spec=$lt_cv_ar_at_file
14821545
14831546 if test -n "$RANLIB"; then
14841547 case $host_os in
1485 openbsd*)
1548 bitrig* | openbsd*)
14861549 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
14871550 ;;
14881551 *)
15181581 [$2=no
15191582 m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
15201583 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1521 lt_compiler_flag="$3"
1584 lt_compiler_flag="$3" ## exclude from sc_useless_quotes_in_assignment
15221585 # Insert the option either (1) after the last *FLAGS variable, or
15231586 # (2) before a word containing "conftest.", or (3) at the end.
15241587 # Note that $ac_compile itself does not contain backslashes and begins
15451608 $RM conftest*
15461609 ])
15471610
1548 if test x"[$]$2" = xyes; then
1611 if test yes = "[$]$2"; then
15491612 m4_if([$5], , :, [$5])
15501613 else
15511614 m4_if([$6], , :, [$6])
15671630 m4_require([_LT_DECL_SED])dnl
15681631 AC_CACHE_CHECK([$1], [$2],
15691632 [$2=no
1570 save_LDFLAGS="$LDFLAGS"
1633 save_LDFLAGS=$LDFLAGS
15711634 LDFLAGS="$LDFLAGS $3"
15721635 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15731636 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15861649 fi
15871650 fi
15881651 $RM -r conftest*
1589 LDFLAGS="$save_LDFLAGS"
1652 LDFLAGS=$save_LDFLAGS
15901653 ])
15911654
1592 if test x"[$]$2" = xyes; then
1655 if test yes = "[$]$2"; then
15931656 m4_if([$4], , :, [$4])
15941657 else
15951658 m4_if([$5], , :, [$5])
16101673 AC_MSG_CHECKING([the maximum length of command line arguments])
16111674 AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
16121675 i=0
1613 teststring="ABCD"
1676 teststring=ABCD
16141677
16151678 case $build_os in
16161679 msdosdjgpp*)
16501713 lt_cv_sys_max_cmd_len=8192;
16511714 ;;
16521715
1653 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
1716 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
16541717 # This has been around since 386BSD, at least. Likely further.
16551718 if test -x /sbin/sysctl; then
16561719 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
17011764 *)
17021765 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
17031766 if test -n "$lt_cv_sys_max_cmd_len" && \
1704 test undefined != "$lt_cv_sys_max_cmd_len"; then
1767 test undefined != "$lt_cv_sys_max_cmd_len"; then
17051768 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
17061769 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
17071770 else
17081771 # Make teststring a little bigger before we do anything with it.
17091772 # a 1K string should be a reasonable start.
1710 for i in 1 2 3 4 5 6 7 8 ; do
1773 for i in 1 2 3 4 5 6 7 8; do
17111774 teststring=$teststring$teststring
17121775 done
17131776 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
17141777 # If test is not a shell built-in, we'll probably end up computing a
17151778 # maximum length that is only half of the actual maximum length, but
17161779 # we can't tell.
1717 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
1780 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
17181781 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
1719 test $i != 17 # 1/2 MB should be enough
1782 test 17 != "$i" # 1/2 MB should be enough
17201783 do
17211784 i=`expr $i + 1`
17221785 teststring=$teststring$teststring
17321795 ;;
17331796 esac
17341797 ])
1735 if test -n $lt_cv_sys_max_cmd_len ; then
1798 if test -n "$lt_cv_sys_max_cmd_len"; then
17361799 AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
17371800 else
17381801 AC_MSG_RESULT(none)
17601823 # ----------------------------------------------------------------
17611824 m4_defun([_LT_TRY_DLOPEN_SELF],
17621825 [m4_require([_LT_HEADER_DLFCN])dnl
1763 if test "$cross_compiling" = yes; then :
1826 if test yes = "$cross_compiling"; then :
17641827 [$4]
17651828 else
17661829 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18071870 # endif
18081871 #endif
18091872
1810 /* When -fvisbility=hidden is used, assume the code has been annotated
1873 /* When -fvisibility=hidden is used, assume the code has been annotated
18111874 correspondingly for the symbols needed. */
1812 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
1875 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18131876 int fnord () __attribute__((visibility("default")));
18141877 #endif
18151878
18351898 return status;
18361899 }]
18371900 _LT_EOF
1838 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
1901 if AC_TRY_EVAL(ac_link) && test -s "conftest$ac_exeext" 2>/dev/null; then
18391902 (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
18401903 lt_status=$?
18411904 case x$lt_status in
18561919 # ------------------
18571920 AC_DEFUN([LT_SYS_DLOPEN_SELF],
18581921 [m4_require([_LT_HEADER_DLFCN])dnl
1859 if test "x$enable_dlopen" != xyes; then
1922 if test yes != "$enable_dlopen"; then
18601923 enable_dlopen=unknown
18611924 enable_dlopen_self=unknown
18621925 enable_dlopen_self_static=unknown
18661929
18671930 case $host_os in
18681931 beos*)
1869 lt_cv_dlopen="load_add_on"
1932 lt_cv_dlopen=load_add_on
18701933 lt_cv_dlopen_libs=
18711934 lt_cv_dlopen_self=yes
18721935 ;;
18731936
18741937 mingw* | pw32* | cegcc*)
1875 lt_cv_dlopen="LoadLibrary"
1938 lt_cv_dlopen=LoadLibrary
18761939 lt_cv_dlopen_libs=
18771940 ;;
18781941
18791942 cygwin*)
1880 lt_cv_dlopen="dlopen"
1943 lt_cv_dlopen=dlopen
18811944 lt_cv_dlopen_libs=
18821945 ;;
18831946
18841947 darwin*)
1885 # if libdl is installed we need to link against it
1948 # if libdl is installed we need to link against it
18861949 AC_CHECK_LIB([dl], [dlopen],
1887 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
1888 lt_cv_dlopen="dyld"
1950 [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl],[
1951 lt_cv_dlopen=dyld
18891952 lt_cv_dlopen_libs=
18901953 lt_cv_dlopen_self=yes
18911954 ])
18921955 ;;
18931956
1957 tpf*)
1958 # Don't try to run any link tests for TPF. We know it's impossible
1959 # because TPF is a cross-compiler, and we know how we open DSOs.
1960 lt_cv_dlopen=dlopen
1961 lt_cv_dlopen_libs=
1962 lt_cv_dlopen_self=no
1963 ;;
1964
18941965 *)
18951966 AC_CHECK_FUNC([shl_load],
1896 [lt_cv_dlopen="shl_load"],
1967 [lt_cv_dlopen=shl_load],
18971968 [AC_CHECK_LIB([dld], [shl_load],
1898 [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
1969 [lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld],
18991970 [AC_CHECK_FUNC([dlopen],
1900 [lt_cv_dlopen="dlopen"],
1971 [lt_cv_dlopen=dlopen],
19011972 [AC_CHECK_LIB([dl], [dlopen],
1902 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
1973 [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl],
19031974 [AC_CHECK_LIB([svld], [dlopen],
1904 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
1975 [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld],
19051976 [AC_CHECK_LIB([dld], [dld_link],
1906 [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
1977 [lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld])
19071978 ])
19081979 ])
19091980 ])
19121983 ;;
19131984 esac
19141985
1915 if test "x$lt_cv_dlopen" != xno; then
1986 if test no = "$lt_cv_dlopen"; then
1987 enable_dlopen=no
1988 else
19161989 enable_dlopen=yes
1917 else
1918 enable_dlopen=no
19191990 fi
19201991
19211992 case $lt_cv_dlopen in
19221993 dlopen)
1923 save_CPPFLAGS="$CPPFLAGS"
1924 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
1925
1926 save_LDFLAGS="$LDFLAGS"
1994 save_CPPFLAGS=$CPPFLAGS
1995 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
1996
1997 save_LDFLAGS=$LDFLAGS
19271998 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19281999
1929 save_LIBS="$LIBS"
2000 save_LIBS=$LIBS
19302001 LIBS="$lt_cv_dlopen_libs $LIBS"
19312002
19322003 AC_CACHE_CHECK([whether a program can dlopen itself],
19362007 lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
19372008 ])
19382009
1939 if test "x$lt_cv_dlopen_self" = xyes; then
2010 if test yes = "$lt_cv_dlopen_self"; then
19402011 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
19412012 AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
19422013 lt_cv_dlopen_self_static, [dnl
19462017 ])
19472018 fi
19482019
1949 CPPFLAGS="$save_CPPFLAGS"
1950 LDFLAGS="$save_LDFLAGS"
1951 LIBS="$save_LIBS"
2020 CPPFLAGS=$save_CPPFLAGS
2021 LDFLAGS=$save_LDFLAGS
2022 LIBS=$save_LIBS
19522023 ;;
19532024 esac
19542025
20402111 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
20412112 _LT_COMPILER_C_O([$1])
20422113
2043 hard_links="nottested"
2044 if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
2114 hard_links=nottested
2115 if test no = "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" && test no != "$need_locks"; then
20452116 # do not overwrite the value of need_locks provided by the user
20462117 AC_MSG_CHECKING([if we can lock with hard links])
20472118 hard_links=yes
20512122 ln conftest.a conftest.b 2>&5 || hard_links=no
20522123 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20532124 AC_MSG_RESULT([$hard_links])
2054 if test "$hard_links" = no; then
2055 AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
2125 if test no = "$hard_links"; then
2126 AC_MSG_WARN(['$CC' does not support '-c -o', so 'make -j' may be unsafe])
20562127 need_locks=warn
20572128 fi
20582129 else
20792150 _LT_DECL([], [objdir], [0],
20802151 [The name of the directory that contains temporary libtool files])dnl
20812152 m4_pattern_allow([LT_OBJDIR])dnl
2082 AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
2083 [Define to the sub-directory in which libtool stores uninstalled libraries.])
2153 AC_DEFINE_UNQUOTED([LT_OBJDIR], "$lt_cv_objdir/",
2154 [Define to the sub-directory where libtool stores uninstalled libraries.])
20842155 ])# _LT_CHECK_OBJDIR
20852156
20862157
20922163 _LT_TAGVAR(hardcode_action, $1)=
20932164 if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
20942165 test -n "$_LT_TAGVAR(runpath_var, $1)" ||
2095 test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
2166 test yes = "$_LT_TAGVAR(hardcode_automatic, $1)"; then
20962167
20972168 # We can hardcode non-existent directories.
2098 if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
2169 if test no != "$_LT_TAGVAR(hardcode_direct, $1)" &&
20992170 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21002171 # have to relink, otherwise we might link with an installed library
21012172 # when we should be linking with a yet-to-be-installed one
2102 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
2103 test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
2173 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" &&
2174 test no != "$_LT_TAGVAR(hardcode_minus_L, $1)"; then
21042175 # Linking always hardcodes the temporary library directory.
21052176 _LT_TAGVAR(hardcode_action, $1)=relink
21062177 else
21142185 fi
21152186 AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
21162187
2117 if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
2118 test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
2188 if test relink = "$_LT_TAGVAR(hardcode_action, $1)" ||
2189 test yes = "$_LT_TAGVAR(inherit_rpath, $1)"; then
21192190 # Fast installation is not supported
21202191 enable_fast_install=no
2121 elif test "$shlibpath_overrides_runpath" = yes ||
2122 test "$enable_shared" = no; then
2192 elif test yes = "$shlibpath_overrides_runpath" ||
2193 test no = "$enable_shared"; then
21232194 # Fast installation is not necessary
21242195 enable_fast_install=needless
21252196 fi
21432214 # FIXME - insert some real tests, host_os isn't really good enough
21442215 case $host_os in
21452216 darwin*)
2146 if test -n "$STRIP" ; then
2217 if test -n "$STRIP"; then
21472218 striplib="$STRIP -x"
21482219 old_striplib="$STRIP -S"
21492220 AC_MSG_RESULT([yes])
21612232 ])# _LT_CMD_STRIPLIB
21622233
21632234
2235 # _LT_PREPARE_MUNGE_PATH_LIST
2236 # ---------------------------
2237 # Make sure func_munge_path_list() is defined correctly.
2238 m4_defun([_LT_PREPARE_MUNGE_PATH_LIST],
2239 [[# func_munge_path_list VARIABLE PATH
2240 # -----------------------------------
2241 # VARIABLE is name of variable containing _space_ separated list of
2242 # directories to be munged by the contents of PATH, which is string
2243 # having a format:
2244 # "DIR[:DIR]:"
2245 # string "DIR[ DIR]" will be prepended to VARIABLE
2246 # ":DIR[:DIR]"
2247 # string "DIR[ DIR]" will be appended to VARIABLE
2248 # "DIRP[:DIRP]::[DIRA:]DIRA"
2249 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
2250 # "DIRA[ DIRA]" will be appended to VARIABLE
2251 # "DIR[:DIR]"
2252 # VARIABLE will be replaced by "DIR[ DIR]"
2253 func_munge_path_list ()
2254 {
2255 case x@S|@2 in
2256 x)
2257 ;;
2258 *:)
2259 eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'` \@S|@@S|@1\"
2260 ;;
2261 x:*)
2262 eval @S|@1=\"\@S|@@S|@1 `$ECHO @S|@2 | $SED 's/:/ /g'`\"
2263 ;;
2264 *::*)
2265 eval @S|@1=\"\@S|@@S|@1\ `$ECHO @S|@2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
2266 eval @S|@1=\"`$ECHO @S|@2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \@S|@@S|@1\"
2267 ;;
2268 *)
2269 eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'`\"
2270 ;;
2271 esac
2272 }
2273 ]])# _LT_PREPARE_PATH_LIST
2274
2275
21642276 # _LT_SYS_DYNAMIC_LINKER([TAG])
21652277 # -----------------------------
21662278 # PORTME Fill in your ld.so characteristics
21712283 m4_require([_LT_DECL_OBJDUMP])dnl
21722284 m4_require([_LT_DECL_SED])dnl
21732285 m4_require([_LT_CHECK_SHELL_FEATURES])dnl
2286 m4_require([_LT_PREPARE_MUNGE_PATH_LIST])dnl
21742287 AC_MSG_CHECKING([dynamic linker characteristics])
21752288 m4_if([$1],
21762289 [], [
2177 if test "$GCC" = yes; then
2290 if test yes = "$GCC"; then
21782291 case $host_os in
2179 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
2180 *) lt_awk_arg="/^libraries:/" ;;
2292 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
2293 *) lt_awk_arg='/^libraries:/' ;;
21812294 esac
21822295 case $host_os in
2183 mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;;
2184 *) lt_sed_strip_eq="s,=/,/,g" ;;
2296 mingw* | cegcc*) lt_sed_strip_eq='s|=\([[A-Za-z]]:\)|\1|g' ;;
2297 *) lt_sed_strip_eq='s|=/|/|g' ;;
21852298 esac
21862299 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
21872300 case $lt_search_path_spec in
21972310 ;;
21982311 esac
21992312 # Ok, now we have the path, separated by spaces, we can step through it
2200 # and add multilib dir if necessary.
2313 # and add multilib dir if necessary...
22012314 lt_tmp_lt_search_path_spec=
2202 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
2315 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
2316 # ...but if some path component already ends with the multilib dir we assume
2317 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
2318 case "$lt_multi_os_dir; $lt_search_path_spec " in
2319 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
2320 lt_multi_os_dir=
2321 ;;
2322 esac
22032323 for lt_sys_path in $lt_search_path_spec; do
2204 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
2205 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
2206 else
2324 if test -d "$lt_sys_path$lt_multi_os_dir"; then
2325 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
2326 elif test -n "$lt_multi_os_dir"; then
22072327 test -d "$lt_sys_path" && \
22082328 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
22092329 fi
22102330 done
22112331 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
2212 BEGIN {RS=" "; FS="/|\n";} {
2213 lt_foo="";
2214 lt_count=0;
2332 BEGIN {RS = " "; FS = "/|\n";} {
2333 lt_foo = "";
2334 lt_count = 0;
22152335 for (lt_i = NF; lt_i > 0; lt_i--) {
22162336 if ($lt_i != "" && $lt_i != ".") {
22172337 if ($lt_i == "..") {
22182338 lt_count++;
22192339 } else {
22202340 if (lt_count == 0) {
2221 lt_foo="/" $lt_i lt_foo;
2341 lt_foo = "/" $lt_i lt_foo;
22222342 } else {
22232343 lt_count--;
22242344 }
22322352 # for these hosts.
22332353 case $host_os in
22342354 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
2235 $SED 's,/\([[A-Za-z]]:\),\1,g'` ;;
2355 $SED 's|/\([[A-Za-z]]:\)|\1|g'` ;;
22362356 esac
22372357 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
22382358 else
22412361 library_names_spec=
22422362 libname_spec='lib$name'
22432363 soname_spec=
2244 shrext_cmds=".so"
2364 shrext_cmds=.so
22452365 postinstall_cmds=
22462366 postuninstall_cmds=
22472367 finish_cmds=
22582378 # flags to be left without arguments
22592379 need_version=unknown
22602380
2381 AC_ARG_VAR([LT_SYS_LIBRARY_PATH],
2382 [User-defined run-time library search path.])
2383
22612384 case $host_os in
22622385 aix3*)
22632386 version_type=linux # correct to gnu/linux during the next big refactor
2264 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
2387 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
22652388 shlibpath_var=LIBPATH
22662389
22672390 # AIX 3 has no versioning support, so we append a major version to the name.
2268 soname_spec='${libname}${release}${shared_ext}$major'
2391 soname_spec='$libname$release$shared_ext$major'
22692392 ;;
22702393
22712394 aix[[4-9]]*)
22732396 need_lib_prefix=no
22742397 need_version=no
22752398 hardcode_into_libs=yes
2276 if test "$host_cpu" = ia64; then
2399 if test ia64 = "$host_cpu"; then
22772400 # AIX 5 supports IA64
2278 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
2401 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
22792402 shlibpath_var=LD_LIBRARY_PATH
22802403 else
22812404 # With GCC up to 2.95.x, collect2 would create an import file
22822405 # for dependence libraries. The import file would start with
2283 # the line `#! .'. This would cause the generated library to
2284 # depend on `.', always an invalid library. This was fixed in
2406 # the line '#! .'. This would cause the generated library to
2407 # depend on '.', always an invalid library. This was fixed in
22852408 # development snapshots of GCC prior to 3.0.
22862409 case $host_os in
22872410 aix4 | aix4.[[01]] | aix4.[[01]].*)
22882411 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22892412 echo ' yes '
2290 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
2413 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
22912414 :
22922415 else
22932416 can_build_shared=no
22942417 fi
22952418 ;;
22962419 esac
2297 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
2420 # Using Import Files as archive members, it is possible to support
2421 # filename-based versioning of shared library archives on AIX. While
2422 # this would work for both with and without runtime linking, it will
2423 # prevent static linking of such archives. So we do filename-based
2424 # shared library versioning with .so extension only, which is used
2425 # when both runtime linking and shared linking is enabled.
2426 # Unfortunately, runtime linking may impact performance, so we do
2427 # not want this to be the default eventually. Also, we use the
2428 # versioned .so libs for executables only if there is the -brtl
2429 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
2430 # To allow for filename-based versioning support, we need to create
2431 # libNAME.so.V as an archive file, containing:
2432 # *) an Import File, referring to the versioned filename of the
2433 # archive as well as the shared archive member, telling the
2434 # bitwidth (32 or 64) of that shared object, and providing the
2435 # list of exported symbols of that shared object, eventually
2436 # decorated with the 'weak' keyword
2437 # *) the shared object with the F_LOADONLY flag set, to really avoid
2438 # it being seen by the linker.
2439 # At run time we better use the real file rather than another symlink,
2440 # but for link time we create the symlink libNAME.so -> libNAME.so.V
2441
2442 case $with_aix_soname,$aix_use_runtimelinking in
2443 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
22982444 # soname into executable. Probably we can add versioning support to
22992445 # collect2, so additional links can be useful in future.
2300 if test "$aix_use_runtimelinking" = yes; then
2446 aix,yes) # traditional libtool
2447 dynamic_linker='AIX unversionable lib.so'
23012448 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
23022449 # instead of lib<name>.a to let people know that these are not
23032450 # typical AIX shared libraries.
2304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2305 else
2451 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2452 ;;
2453 aix,no) # traditional AIX only
2454 dynamic_linker='AIX lib.a[(]lib.so.V[)]'
23062455 # We preserve .a as extension for shared libraries through AIX4.2
23072456 # and later when we are not doing run time linking.
2308 library_names_spec='${libname}${release}.a $libname.a'
2309 soname_spec='${libname}${release}${shared_ext}$major'
2310 fi
2457 library_names_spec='$libname$release.a $libname.a'
2458 soname_spec='$libname$release$shared_ext$major'
2459 ;;
2460 svr4,*) # full svr4 only
2461 dynamic_linker="AIX lib.so.V[(]$shared_archive_member_spec.o[)]"
2462 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
2463 # We do not specify a path in Import Files, so LIBPATH fires.
2464 shlibpath_overrides_runpath=yes
2465 ;;
2466 *,yes) # both, prefer svr4
2467 dynamic_linker="AIX lib.so.V[(]$shared_archive_member_spec.o[)], lib.a[(]lib.so.V[)]"
2468 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
2469 # unpreferred sharedlib libNAME.a needs extra handling
2470 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
2471 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
2472 # We do not specify a path in Import Files, so LIBPATH fires.
2473 shlibpath_overrides_runpath=yes
2474 ;;
2475 *,no) # both, prefer aix
2476 dynamic_linker="AIX lib.a[(]lib.so.V[)], lib.so.V[(]$shared_archive_member_spec.o[)]"
2477 library_names_spec='$libname$release.a $libname.a'
2478 soname_spec='$libname$release$shared_ext$major'
2479 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
2480 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
2481 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
2482 ;;
2483 esac
23112484 shlibpath_var=LIBPATH
23122485 fi
23132486 ;;
23172490 powerpc)
23182491 # Since July 2007 AmigaOS4 officially supports .so libraries.
23192492 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
2320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2493 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
23212494 ;;
23222495 m68k)
23232496 library_names_spec='$libname.ixlibrary $libname.a'
23242497 # Create ${libname}_ixlibrary.a entries in /sys/libs.
2325 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
2498 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
23262499 ;;
23272500 esac
23282501 ;;
23292502
23302503 beos*)
2331 library_names_spec='${libname}${shared_ext}'
2504 library_names_spec='$libname$shared_ext'
23322505 dynamic_linker="$host_os ld.so"
23332506 shlibpath_var=LIBRARY_PATH
23342507 ;;
23362509 bsdi[[45]]*)
23372510 version_type=linux # correct to gnu/linux during the next big refactor
23382511 need_version=no
2339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2340 soname_spec='${libname}${release}${shared_ext}$major'
2512 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2513 soname_spec='$libname$release$shared_ext$major'
23412514 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
23422515 shlibpath_var=LD_LIBRARY_PATH
23432516 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
23492522
23502523 cygwin* | mingw* | pw32* | cegcc*)
23512524 version_type=windows
2352 shrext_cmds=".dll"
2525 shrext_cmds=.dll
23532526 need_version=no
23542527 need_lib_prefix=no
23552528
23582531 # gcc
23592532 library_names_spec='$libname.dll.a'
23602533 # DLL is installed to $(libdir)/../bin by postinstall_cmds
2361 postinstall_cmds='base_file=`basename \${file}`~
2362 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
2534 postinstall_cmds='base_file=`basename \$file`~
2535 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
23632536 dldir=$destdir/`dirname \$dlpath`~
23642537 test -d \$dldir || mkdir -p \$dldir~
23652538 $install_prog $dir/$dlname \$dldir/$dlname~
23752548 case $host_os in
23762549 cygwin*)
23772550 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
2378 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2551 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
23792552 m4_if([$1], [],[
23802553 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
23812554 ;;
23822555 mingw* | cegcc*)
23832556 # MinGW DLLs use traditional 'lib' prefix
2384 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2557 soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
23852558 ;;
23862559 pw32*)
23872560 # pw32 DLLs use 'pw' prefix rather than 'lib'
2388 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2561 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
23892562 ;;
23902563 esac
23912564 dynamic_linker='Win32 ld.exe'
23942567 *,cl*)
23952568 # Native MSVC
23962569 libname_spec='$name'
2397 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2398 library_names_spec='${libname}.dll.lib'
2570 soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
2571 library_names_spec='$libname.dll.lib'
23992572
24002573 case $build_os in
24012574 mingw*)
24222595 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
24232596 ;;
24242597 *)
2425 sys_lib_search_path_spec="$LIB"
2598 sys_lib_search_path_spec=$LIB
24262599 if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
24272600 # It is most probably a Windows format PATH.
24282601 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
24352608 esac
24362609
24372610 # DLL is installed to $(libdir)/../bin by postinstall_cmds
2438 postinstall_cmds='base_file=`basename \${file}`~
2439 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
2611 postinstall_cmds='base_file=`basename \$file`~
2612 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
24402613 dldir=$destdir/`dirname \$dlpath`~
24412614 test -d \$dldir || mkdir -p \$dldir~
24422615 $install_prog $dir/$dlname \$dldir/$dlname'
24492622
24502623 *)
24512624 # Assume MSVC wrapper
2452 library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
2625 library_names_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext $libname.lib'
24532626 dynamic_linker='Win32 ld.exe'
24542627 ;;
24552628 esac
24622635 version_type=darwin
24632636 need_lib_prefix=no
24642637 need_version=no
2465 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
2466 soname_spec='${libname}${release}${major}$shared_ext'
2638 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
2639 soname_spec='$libname$release$major$shared_ext'
24672640 shlibpath_overrides_runpath=yes
24682641 shlibpath_var=DYLD_LIBRARY_PATH
24692642 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
24762649 version_type=linux # correct to gnu/linux during the next big refactor
24772650 need_lib_prefix=no
24782651 need_version=no
2479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
2480 soname_spec='${libname}${release}${shared_ext}$major'
2652 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2653 soname_spec='$libname$release$shared_ext$major'
24812654 shlibpath_var=LD_LIBRARY_PATH
24822655 ;;
24832656
24952668 version_type=freebsd-$objformat
24962669 case $version_type in
24972670 freebsd-elf*)
2498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
2671 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2672 soname_spec='$libname$release$shared_ext$major'
24992673 need_version=no
25002674 need_lib_prefix=no
25012675 ;;
25022676 freebsd-*)
2503 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
2677 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
25042678 need_version=yes
25052679 ;;
25062680 esac
25302704 need_lib_prefix=no
25312705 need_version=no
25322706 dynamic_linker="$host_os runtime_loader"
2533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
2534 soname_spec='${libname}${release}${shared_ext}$major'
2707 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2708 soname_spec='$libname$release$shared_ext$major'
25352709 shlibpath_var=LIBRARY_PATH
2536 shlibpath_overrides_runpath=yes
2710 shlibpath_overrides_runpath=no
25372711 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
25382712 hardcode_into_libs=yes
25392713 ;;
25512725 dynamic_linker="$host_os dld.so"
25522726 shlibpath_var=LD_LIBRARY_PATH
25532727 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2555 soname_spec='${libname}${release}${shared_ext}$major'
2556 if test "X$HPUX_IA64_MODE" = X32; then
2728 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2729 soname_spec='$libname$release$shared_ext$major'
2730 if test 32 = "$HPUX_IA64_MODE"; then
25572731 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
2732 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
25582733 else
25592734 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
2735 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
25602736 fi
2561 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25622737 ;;
25632738 hppa*64*)
25642739 shrext_cmds='.sl'
25662741 dynamic_linker="$host_os dld.sl"
25672742 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25682743 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2570 soname_spec='${libname}${release}${shared_ext}$major'
2744 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2745 soname_spec='$libname$release$shared_ext$major'
25712746 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25722747 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25732748 ;;
25762751 dynamic_linker="$host_os dld.sl"
25772752 shlibpath_var=SHLIB_PATH
25782753 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
2579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2580 soname_spec='${libname}${release}${shared_ext}$major'
2754 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2755 soname_spec='$libname$release$shared_ext$major'
25812756 ;;
25822757 esac
25832758 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
25902765 version_type=linux # correct to gnu/linux during the next big refactor
25912766 need_lib_prefix=no
25922767 need_version=no
2593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2594 soname_spec='${libname}${release}${shared_ext}$major'
2768 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2769 soname_spec='$libname$release$shared_ext$major'
25952770 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25962771 shlibpath_var=LD_LIBRARY_PATH
25972772 shlibpath_overrides_runpath=no
26022777 case $host_os in
26032778 nonstopux*) version_type=nonstopux ;;
26042779 *)
2605 if test "$lt_cv_prog_gnu_ld" = yes; then
2780 if test yes = "$lt_cv_prog_gnu_ld"; then
26062781 version_type=linux # correct to gnu/linux during the next big refactor
26072782 else
26082783 version_type=irix
26102785 esac
26112786 need_lib_prefix=no
26122787 need_version=no
2613 soname_spec='${libname}${release}${shared_ext}$major'
2614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
2788 soname_spec='$libname$release$shared_ext$major'
2789 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
26152790 case $host_os in
26162791 irix5* | nonstopux*)
26172792 libsuff= shlibsuff=
26302805 esac
26312806 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
26322807 shlibpath_overrides_runpath=no
2633 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
2634 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
2808 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
2809 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
26352810 hardcode_into_libs=yes
26362811 ;;
26372812
26382813 # No shared lib support for Linux oldld, aout, or coff.
26392814 linux*oldld* | linux*aout* | linux*coff*)
26402815 dynamic_linker=no
2816 ;;
2817
2818 linux*android*)
2819 version_type=none # Android doesn't support versioned libraries.
2820 need_lib_prefix=no
2821 need_version=no
2822 library_names_spec='$libname$release$shared_ext'
2823 soname_spec='$libname$release$shared_ext'
2824 finish_cmds=
2825 shlibpath_var=LD_LIBRARY_PATH
2826 shlibpath_overrides_runpath=yes
2827
2828 # This implies no fast_install, which is unacceptable.
2829 # Some rework will be needed to allow for fast_install
2830 # before this can be enabled.
2831 hardcode_into_libs=yes
2832
2833 dynamic_linker='Android linker'
2834 # Don't embed -rpath directories since the linker doesn't support them.
2835 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
26412836 ;;
26422837
26432838 # This must be glibc/ELF.
26452840 version_type=linux # correct to gnu/linux during the next big refactor
26462841 need_lib_prefix=no
26472842 need_version=no
2648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2649 soname_spec='${libname}${release}${shared_ext}$major'
2843 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2844 soname_spec='$libname$release$shared_ext$major'
26502845 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
26512846 shlibpath_var=LD_LIBRARY_PATH
26522847 shlibpath_overrides_runpath=no
26712866 # before this can be enabled.
26722867 hardcode_into_libs=yes
26732868
2674 # Append ld.so.conf contents to the search path
2869 # Ideally, we could use ldconfig to report *all* directores which are
2870 # searched for libraries, however this is still not possible. Aside from not
2871 # being certain /sbin/ldconfig is available, command
2872 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
2873 # even though it is searched at run-time. Try to do the best guess by
2874 # appending ld.so.conf contents (and includes) to the search path.
26752875 if test -f /etc/ld.so.conf; then
26762876 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
26772877 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
27032903 need_lib_prefix=no
27042904 need_version=no
27052905 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
2706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2906 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
27072907 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
27082908 dynamic_linker='NetBSD (a.out) ld.so'
27092909 else
2710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2711 soname_spec='${libname}${release}${shared_ext}$major'
2910 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2911 soname_spec='$libname$release$shared_ext$major'
27122912 dynamic_linker='NetBSD ld.elf_so'
27132913 fi
27142914 shlibpath_var=LD_LIBRARY_PATH
27182918
27192919 newsos6)
27202920 version_type=linux # correct to gnu/linux during the next big refactor
2721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2921 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
27222922 shlibpath_var=LD_LIBRARY_PATH
27232923 shlibpath_overrides_runpath=yes
27242924 ;;
27272927 version_type=qnx
27282928 need_lib_prefix=no
27292929 need_version=no
2730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2731 soname_spec='${libname}${release}${shared_ext}$major'
2930 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2931 soname_spec='$libname$release$shared_ext$major'
27322932 shlibpath_var=LD_LIBRARY_PATH
27332933 shlibpath_overrides_runpath=no
27342934 hardcode_into_libs=yes
27352935 dynamic_linker='ldqnx.so'
27362936 ;;
27372937
2738 openbsd*)
2938 openbsd* | bitrig*)
27392939 version_type=sunos
2740 sys_lib_dlsearch_path_spec="/usr/lib"
2940 sys_lib_dlsearch_path_spec=/usr/lib
27412941 need_lib_prefix=no
2742 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
2743 case $host_os in
2744 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
2745 *) need_version=no ;;
2746 esac
2747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2942 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
2943 need_version=no
2944 else
2945 need_version=yes
2946 fi
2947 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
27482948 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
27492949 shlibpath_var=LD_LIBRARY_PATH
2750 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2751 case $host_os in
2752 openbsd2.[[89]] | openbsd2.[[89]].*)
2753 shlibpath_overrides_runpath=no
2754 ;;
2755 *)
2756 shlibpath_overrides_runpath=yes
2757 ;;
2758 esac
2759 else
2760 shlibpath_overrides_runpath=yes
2761 fi
2950 shlibpath_overrides_runpath=yes
27622951 ;;
27632952
27642953 os2*)
27652954 libname_spec='$name'
2766 shrext_cmds=".dll"
2955 version_type=windows
2956 shrext_cmds=.dll
2957 need_version=no
27672958 need_lib_prefix=no
2768 library_names_spec='$libname${shared_ext} $libname.a'
2959 # OS/2 can only load a DLL with a base name of 8 characters or less.
2960 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
2961 v=$($ECHO $release$versuffix | tr -d .-);
2962 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
2963 $ECHO $n$v`$shared_ext'
2964 library_names_spec='${libname}_dll.$libext'
27692965 dynamic_linker='OS/2 ld.exe'
2770 shlibpath_var=LIBPATH
2966 shlibpath_var=BEGINLIBPATH
2967 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
2968 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2969 postinstall_cmds='base_file=`basename \$file`~
2970 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
2971 dldir=$destdir/`dirname \$dlpath`~
2972 test -d \$dldir || mkdir -p \$dldir~
2973 $install_prog $dir/$dlname \$dldir/$dlname~
2974 chmod a+x \$dldir/$dlname~
2975 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
2976 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
2977 fi'
2978 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
2979 dlpath=$dir/\$dldll~
2980 $RM \$dlpath'
27712981 ;;
27722982
27732983 osf3* | osf4* | osf5*)
27742984 version_type=osf
27752985 need_lib_prefix=no
27762986 need_version=no
2777 soname_spec='${libname}${release}${shared_ext}$major'
2778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2987 soname_spec='$libname$release$shared_ext$major'
2988 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
27792989 shlibpath_var=LD_LIBRARY_PATH
27802990 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
2781 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
2991 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
27822992 ;;
27832993
27842994 rdos*)
27892999 version_type=linux # correct to gnu/linux during the next big refactor
27903000 need_lib_prefix=no
27913001 need_version=no
2792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2793 soname_spec='${libname}${release}${shared_ext}$major'
3002 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
3003 soname_spec='$libname$release$shared_ext$major'
27943004 shlibpath_var=LD_LIBRARY_PATH
27953005 shlibpath_overrides_runpath=yes
27963006 hardcode_into_libs=yes
28003010
28013011 sunos4*)
28023012 version_type=sunos
2803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3013 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
28043014 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
28053015 shlibpath_var=LD_LIBRARY_PATH
28063016 shlibpath_overrides_runpath=yes
2807 if test "$with_gnu_ld" = yes; then
3017 if test yes = "$with_gnu_ld"; then
28083018 need_lib_prefix=no
28093019 fi
28103020 need_version=yes
28123022
28133023 sysv4 | sysv4.3*)
28143024 version_type=linux # correct to gnu/linux during the next big refactor
2815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2816 soname_spec='${libname}${release}${shared_ext}$major'
3025 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
3026 soname_spec='$libname$release$shared_ext$major'
28173027 shlibpath_var=LD_LIBRARY_PATH
28183028 case $host_vendor in
28193029 sni)
28343044 ;;
28353045
28363046 sysv4*MP*)
2837 if test -d /usr/nec ;then
3047 if test -d /usr/nec; then
28383048 version_type=linux # correct to gnu/linux during the next big refactor
2839 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
2840 soname_spec='$libname${shared_ext}.$major'
3049 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
3050 soname_spec='$libname$shared_ext.$major'
28413051 shlibpath_var=LD_LIBRARY_PATH
28423052 fi
28433053 ;;
28443054
28453055 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
2846 version_type=freebsd-elf
3056 version_type=sco
28473057 need_lib_prefix=no
28483058 need_version=no
2849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
2850 soname_spec='${libname}${release}${shared_ext}$major'
3059 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
3060 soname_spec='$libname$release$shared_ext$major'
28513061 shlibpath_var=LD_LIBRARY_PATH
28523062 shlibpath_overrides_runpath=yes
28533063 hardcode_into_libs=yes
2854 if test "$with_gnu_ld" = yes; then
3064 if test yes = "$with_gnu_ld"; then
28553065 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
28563066 else
28573067 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
28693079 version_type=linux # correct to gnu/linux during the next big refactor
28703080 need_lib_prefix=no
28713081 need_version=no
2872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3082 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
28733083 shlibpath_var=LD_LIBRARY_PATH
28743084 shlibpath_overrides_runpath=no
28753085 hardcode_into_libs=yes
28773087
28783088 uts4*)
28793089 version_type=linux # correct to gnu/linux during the next big refactor
2880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2881 soname_spec='${libname}${release}${shared_ext}$major'
3090 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
3091 soname_spec='$libname$release$shared_ext$major'
28823092 shlibpath_var=LD_LIBRARY_PATH
28833093 ;;
28843094
28873097 ;;
28883098 esac
28893099 AC_MSG_RESULT([$dynamic_linker])
2890 test "$dynamic_linker" = no && can_build_shared=no
3100 test no = "$dynamic_linker" && can_build_shared=no
28913101
28923102 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
2893 if test "$GCC" = yes; then
3103 if test yes = "$GCC"; then
28943104 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
28953105 fi
28963106
2897 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
2898 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
3107 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
3108 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
28993109 fi
2900 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
2901 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
3110
3111 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
3112 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
29023113 fi
3114
3115 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
3116 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
3117
3118 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
3119 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
3120
3121 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
3122 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
29033123
29043124 _LT_DECL([], [variables_saved_for_relink], [1],
29053125 [Variables whose values should be saved in libtool wrapper scripts and
29333153 [Whether we should hardcode library paths into libraries])
29343154 _LT_DECL([], [sys_lib_search_path_spec], [2],
29353155 [Compile-time system search path for libraries])
2936 _LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
2937 [Run-time system search path for libraries])
3156 _LT_DECL([sys_lib_dlsearch_path_spec], [configure_time_dlsearch_path], [2],
3157 [Detected run-time system search path for libraries])
3158 _LT_DECL([], [configure_time_lt_sys_library_path], [2],
3159 [Explicit LT_SYS_LIBRARY_PATH set during ./configure time])
29383160 ])# _LT_SYS_DYNAMIC_LINKER
29393161
29403162
29413163 # _LT_PATH_TOOL_PREFIX(TOOL)
29423164 # --------------------------
2943 # find a file program which can recognize shared library
3165 # find a file program that can recognize shared library
29443166 AC_DEFUN([_LT_PATH_TOOL_PREFIX],
29453167 [m4_require([_LT_DECL_EGREP])dnl
29463168 AC_MSG_CHECKING([for $1])
29473169 AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
29483170 [case $MAGIC_CMD in
29493171 [[\\/*] | ?:[\\/]*])
2950 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3172 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
29513173 ;;
29523174 *)
2953 lt_save_MAGIC_CMD="$MAGIC_CMD"
2954 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3175 lt_save_MAGIC_CMD=$MAGIC_CMD
3176 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
29553177 dnl $ac_dummy forces splitting on constant user-supplied paths.
29563178 dnl POSIX.2 word splitting is done only on the output of word expansions,
29573179 dnl not every word. This closes a longstanding sh security hole.
29583180 ac_dummy="m4_if([$2], , $PATH, [$2])"
29593181 for ac_dir in $ac_dummy; do
2960 IFS="$lt_save_ifs"
3182 IFS=$lt_save_ifs
29613183 test -z "$ac_dir" && ac_dir=.
2962 if test -f $ac_dir/$1; then
2963 lt_cv_path_MAGIC_CMD="$ac_dir/$1"
3184 if test -f "$ac_dir/$1"; then
3185 lt_cv_path_MAGIC_CMD=$ac_dir/"$1"
29643186 if test -n "$file_magic_test_file"; then
29653187 case $deplibs_check_method in
29663188 "file_magic "*)
29673189 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
2968 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3190 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
29693191 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
29703192 $EGREP "$file_magic_regex" > /dev/null; then
29713193 :
29883210 break
29893211 fi
29903212 done
2991 IFS="$lt_save_ifs"
2992 MAGIC_CMD="$lt_save_MAGIC_CMD"
3213 IFS=$lt_save_ifs
3214 MAGIC_CMD=$lt_save_MAGIC_CMD
29933215 ;;
29943216 esac])
2995 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3217 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
29963218 if test -n "$MAGIC_CMD"; then
29973219 AC_MSG_RESULT($MAGIC_CMD)
29983220 else
30103232
30113233 # _LT_PATH_MAGIC
30123234 # --------------
3013 # find a file program which can recognize a shared library
3235 # find a file program that can recognize a shared library
30143236 m4_defun([_LT_PATH_MAGIC],
30153237 [_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
30163238 if test -z "$lt_cv_path_MAGIC_CMD"; then
30373259 AC_ARG_WITH([gnu-ld],
30383260 [AS_HELP_STRING([--with-gnu-ld],
30393261 [assume the C compiler uses GNU ld @<:@default=no@:>@])],
3040 [test "$withval" = no || with_gnu_ld=yes],
3262 [test no = "$withval" || with_gnu_ld=yes],
30413263 [with_gnu_ld=no])dnl
30423264
30433265 ac_prog=ld
3044 if test "$GCC" = yes; then
3266 if test yes = "$GCC"; then
30453267 # Check if gcc -print-prog-name=ld gives a path.
30463268 AC_MSG_CHECKING([for ld used by $CC])
30473269 case $host in
30483270 *-*-mingw*)
3049 # gcc leaves a trailing carriage return which upsets mingw
3271 # gcc leaves a trailing carriage return, which upsets mingw
30503272 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
30513273 *)
30523274 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
30603282 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
30613283 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
30623284 done
3063 test -z "$LD" && LD="$ac_prog"
3285 test -z "$LD" && LD=$ac_prog
30643286 ;;
30653287 "")
30663288 # If it fails, then pretend we aren't using GCC.
30713293 with_gnu_ld=unknown
30723294 ;;
30733295 esac
3074 elif test "$with_gnu_ld" = yes; then
3296 elif test yes = "$with_gnu_ld"; then
30753297 AC_MSG_CHECKING([for GNU ld])
30763298 else
30773299 AC_MSG_CHECKING([for non-GNU ld])
30783300 fi
30793301 AC_CACHE_VAL(lt_cv_path_LD,
30803302 [if test -z "$LD"; then
3081 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3303 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
30823304 for ac_dir in $PATH; do
3083 IFS="$lt_save_ifs"
3305 IFS=$lt_save_ifs
30843306 test -z "$ac_dir" && ac_dir=.
30853307 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3086 lt_cv_path_LD="$ac_dir/$ac_prog"
3308 lt_cv_path_LD=$ac_dir/$ac_prog
30873309 # Check to see if the program is GNU ld. I'd rather use --version,
30883310 # but apparently some variants of GNU ld only accept -v.
30893311 # Break only if it was the GNU/non-GNU ld that we prefer.
30903312 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
30913313 *GNU* | *'with BFD'*)
3092 test "$with_gnu_ld" != no && break
3314 test no != "$with_gnu_ld" && break
30933315 ;;
30943316 *)
3095 test "$with_gnu_ld" != yes && break
3317 test yes != "$with_gnu_ld" && break
30963318 ;;
30973319 esac
30983320 fi
30993321 done
3100 IFS="$lt_save_ifs"
3322 IFS=$lt_save_ifs
31013323 else
3102 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3324 lt_cv_path_LD=$LD # Let the user override the test with a path.
31033325 fi])
3104 LD="$lt_cv_path_LD"
3326 LD=$lt_cv_path_LD
31053327 if test -n "$LD"; then
31063328 AC_MSG_RESULT($LD)
31073329 else
31553377 reload_cmds='$LD$reload_flag -o $output$reload_objs'
31563378 case $host_os in
31573379 cygwin* | mingw* | pw32* | cegcc*)
3158 if test "$GCC" != yes; then
3380 if test yes != "$GCC"; then
31593381 reload_cmds=false
31603382 fi
31613383 ;;
31623384 darwin*)
3163 if test "$GCC" = yes; then
3164 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3385 if test yes = "$GCC"; then
3386 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
31653387 else
31663388 reload_cmds='$LD$reload_flag -o $output$reload_objs'
31673389 fi
31703392 _LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl
31713393 _LT_TAGDECL([], [reload_cmds], [2])dnl
31723394 ])# _LT_CMD_RELOAD
3395
3396
3397 # _LT_PATH_DD
3398 # -----------
3399 # find a working dd
3400 m4_defun([_LT_PATH_DD],
3401 [AC_CACHE_CHECK([for a working dd], [ac_cv_path_lt_DD],
3402 [printf 0123456789abcdef0123456789abcdef >conftest.i
3403 cat conftest.i conftest.i >conftest2.i
3404 : ${lt_DD:=$DD}
3405 AC_PATH_PROGS_FEATURE_CHECK([lt_DD], [dd],
3406 [if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
3407 cmp -s conftest.i conftest.out \
3408 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
3409 fi])
3410 rm -f conftest.i conftest2.i conftest.out])
3411 ])# _LT_PATH_DD
3412
3413
3414 # _LT_CMD_TRUNCATE
3415 # ----------------
3416 # find command to truncate a binary pipe
3417 m4_defun([_LT_CMD_TRUNCATE],
3418 [m4_require([_LT_PATH_DD])
3419 AC_CACHE_CHECK([how to truncate binary pipes], [lt_cv_truncate_bin],
3420 [printf 0123456789abcdef0123456789abcdef >conftest.i
3421 cat conftest.i conftest.i >conftest2.i
3422 lt_cv_truncate_bin=
3423 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
3424 cmp -s conftest.i conftest.out \
3425 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
3426 fi
3427 rm -f conftest.i conftest2.i conftest.out
3428 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"])
3429 _LT_DECL([lt_truncate_bin], [lt_cv_truncate_bin], [1],
3430 [Command to truncate a binary pipe])
3431 ])# _LT_CMD_TRUNCATE
31733432
31743433
31753434 # _LT_CHECK_MAGIC_METHOD
31873446 # Need to set the preceding variable on all platforms that support
31883447 # interlibrary dependencies.
31893448 # 'none' -- dependencies not supported.
3190 # `unknown' -- same as none, but documents that we really don't know.
3449 # 'unknown' -- same as none, but documents that we really don't know.
31913450 # 'pass_all' -- all dependencies passed with no checks.
31923451 # 'test_compile' -- check by making test program.
31933452 # 'file_magic [[regex]]' -- check by looking for files in library path
3194 # which responds to the $file_magic_cmd with a given extended regex.
3195 # If you have `file' or equivalent on your system and you're not sure
3196 # whether `pass_all' will *always* work, you probably want this one.
3453 # that responds to the $file_magic_cmd with a given extended regex.
3454 # If you have 'file' or equivalent on your system and you're not sure
3455 # whether 'pass_all' will *always* work, you probably want this one.
31973456
31983457 case $host_os in
31993458 aix[[4-9]]*)
32203479 # Base MSYS/MinGW do not provide the 'file' command needed by
32213480 # func_win32_libid shell function, so use a weaker test based on 'objdump',
32223481 # unless we find 'file', for example because we are cross-compiling.
3223 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
3224 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
3482 if ( file / ) >/dev/null 2>&1; then
32253483 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
32263484 lt_cv_file_magic_cmd='func_win32_libid'
32273485 else
33173575 lt_cv_deplibs_check_method=pass_all
33183576 ;;
33193577
3320 openbsd*)
3321 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3578 openbsd* | bitrig*)
3579 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
33223580 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
33233581 else
33243582 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
33713629 tpf*)
33723630 lt_cv_deplibs_check_method=pass_all
33733631 ;;
3632 os2*)
3633 lt_cv_deplibs_check_method=pass_all
3634 ;;
33743635 esac
33753636 ])
33763637
34113672 AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
34123673 [if test -n "$NM"; then
34133674 # Let the user override the test.
3414 lt_cv_path_NM="$NM"
3675 lt_cv_path_NM=$NM
34153676 else
3416 lt_nm_to_check="${ac_tool_prefix}nm"
3677 lt_nm_to_check=${ac_tool_prefix}nm
34173678 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
34183679 lt_nm_to_check="$lt_nm_to_check nm"
34193680 fi
34203681 for lt_tmp_nm in $lt_nm_to_check; do
3421 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3682 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
34223683 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3423 IFS="$lt_save_ifs"
3684 IFS=$lt_save_ifs
34243685 test -z "$ac_dir" && ac_dir=.
3425 tmp_nm="$ac_dir/$lt_tmp_nm"
3426 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3686 tmp_nm=$ac_dir/$lt_tmp_nm
3687 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
34273688 # Check to see if the nm accepts a BSD-compat flag.
3428 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3689 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
34293690 # nm: unknown option "B" ignored
34303691 # Tru64's nm complains that /dev/null is an invalid object file
3431 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3432 */dev/null* | *'Invalid file or object type'*)
3692 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
3693 case $build_os in
3694 mingw*) lt_bad_file=conftest.nm/nofile ;;
3695 *) lt_bad_file=/dev/null ;;
3696 esac
3697 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
3698 *$lt_bad_file* | *'Invalid file or object type'*)
34333699 lt_cv_path_NM="$tmp_nm -B"
3434 break
3700 break 2
34353701 ;;
34363702 *)
34373703 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
34383704 */dev/null*)
34393705 lt_cv_path_NM="$tmp_nm -p"
3440 break
3706 break 2
34413707 ;;
34423708 *)
34433709 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
34483714 esac
34493715 fi
34503716 done
3451 IFS="$lt_save_ifs"
3717 IFS=$lt_save_ifs
34523718 done
34533719 : ${lt_cv_path_NM=no}
34543720 fi])
3455 if test "$lt_cv_path_NM" != "no"; then
3456 NM="$lt_cv_path_NM"
3721 if test no != "$lt_cv_path_NM"; then
3722 NM=$lt_cv_path_NM
34573723 else
34583724 # Didn't find any BSD compatible name lister, look for dumpbin.
34593725 if test -n "$DUMPBIN"; then :
34603726 # Let the user override the test.
34613727 else
34623728 AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
3463 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
3729 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
34643730 *COFF*)
3465 DUMPBIN="$DUMPBIN -symbols"
3731 DUMPBIN="$DUMPBIN -symbols -headers"
34663732 ;;
34673733 *)
34683734 DUMPBIN=:
34703736 esac
34713737 fi
34723738 AC_SUBST([DUMPBIN])
3473 if test "$DUMPBIN" != ":"; then
3474 NM="$DUMPBIN"
3739 if test : != "$DUMPBIN"; then
3740 NM=$DUMPBIN
34753741 fi
34763742 fi
34773743 test -z "$NM" && NM=nm
35173783
35183784 case $host_os in
35193785 cygwin* | mingw* | pw32* | cegcc*)
3520 # two different shell functions defined in ltmain.sh
3521 # decide which to use based on capabilities of $DLLTOOL
3786 # two different shell functions defined in ltmain.sh;
3787 # decide which one to use based on capabilities of $DLLTOOL
35223788 case `$DLLTOOL --help 2>&1` in
35233789 *--identify-strict*)
35243790 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
35303796 ;;
35313797 *)
35323798 # fallback: assume linklib IS sharedlib
3533 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
3799 lt_cv_sharedlib_from_linklib_cmd=$ECHO
35343800 ;;
35353801 esac
35363802 ])
35573823 lt_cv_path_mainfest_tool=yes
35583824 fi
35593825 rm -f conftest*])
3560 if test "x$lt_cv_path_mainfest_tool" != xyes; then
3826 if test yes != "$lt_cv_path_mainfest_tool"; then
35613827 MANIFEST_TOOL=:
35623828 fi
35633829 _LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
35643830 ])# _LT_PATH_MANIFEST_TOOL
3831
3832
3833 # _LT_DLL_DEF_P([FILE])
3834 # ---------------------
3835 # True iff FILE is a Windows DLL '.def' file.
3836 # Keep in sync with func_dll_def_p in the libtool script
3837 AC_DEFUN([_LT_DLL_DEF_P],
3838 [dnl
3839 test DEF = "`$SED -n dnl
3840 -e '\''s/^[[ ]]*//'\'' dnl Strip leading whitespace
3841 -e '\''/^\(;.*\)*$/d'\'' dnl Delete empty lines and comments
3842 -e '\''s/^\(EXPORTS\|LIBRARY\)\([[ ]].*\)*$/DEF/p'\'' dnl
3843 -e q dnl Only consider the first "real" line
3844 $1`" dnl
3845 ])# _LT_DLL_DEF_P
35653846
35663847
35673848 # LT_LIB_M
35753856 # These system don't have libm, or don't need it
35763857 ;;
35773858 *-ncr-sysv4.3*)
3578 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
3859 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM=-lmw)
35793860 AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
35803861 ;;
35813862 *)
3582 AC_CHECK_LIB(m, cos, LIBM="-lm")
3863 AC_CHECK_LIB(m, cos, LIBM=-lm)
35833864 ;;
35843865 esac
35853866 AC_SUBST([LIBM])
35983879
35993880 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
36003881
3601 if test "$GCC" = yes; then
3882 if test yes = "$GCC"; then
36023883 case $cc_basename in
36033884 nvcc*)
36043885 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
36503931 symcode='[[ABCDGISTW]]'
36513932 ;;
36523933 hpux*)
3653 if test "$host_cpu" = ia64; then
3934 if test ia64 = "$host_cpu"; then
36543935 symcode='[[ABCDEGRST]]'
36553936 fi
36563937 ;;
36833964 symcode='[[ABCDGIRSTW]]' ;;
36843965 esac
36853966
3967 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
3968 # Gets list of data symbols to import.
3969 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
3970 # Adjust the below global symbol transforms to fixup imported variables.
3971 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
3972 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
3973 lt_c_name_lib_hook="\
3974 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
3975 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
3976 else
3977 # Disable hooks by default.
3978 lt_cv_sys_global_symbol_to_import=
3979 lt_cdecl_hook=
3980 lt_c_name_hook=
3981 lt_c_name_lib_hook=
3982 fi
3983
36863984 # Transform an extracted symbol line into a proper C declaration.
36873985 # Some systems (esp. on ia64) link data and code symbols differently,
36883986 # so use this general approach.
3689 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3987 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
3988 $lt_cdecl_hook\
3989 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
3990 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
36903991
36913992 # Transform an extracted symbol line into symbol name and symbol address
3692 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
3693 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'"
3993 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
3994 $lt_c_name_hook\
3995 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
3996 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
3997
3998 # Transform an extracted symbol line into symbol name with lib prefix and
3999 # symbol address.
4000 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
4001 $lt_c_name_lib_hook\
4002 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
4003 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
4004 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
36944005
36954006 # Handle CRLF in mingw tool chain
36964007 opt_cr=
37084019
37094020 # Write the raw and C identifiers.
37104021 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
3711 # Fake it for dumpbin and say T for any non-static function
3712 # and D for any global variable.
4022 # Fake it for dumpbin and say T for any non-static function,
4023 # D for any global variable and I for any imported variable.
37134024 # Also find C++ and __fastcall symbols from MSVC++,
37144025 # which start with @ or ?.
37154026 lt_cv_sys_global_symbol_pipe="$AWK ['"\
37164027 " {last_section=section; section=\$ 3};"\
37174028 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
37184029 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4030 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
4031 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
4032 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
37194033 " \$ 0!~/External *\|/{next};"\
37204034 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
37214035 " {if(hide[section]) next};"\
3722 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
3723 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
3724 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
3725 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4036 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
4037 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
4038 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
4039 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
37264040 " ' prfx=^$ac_symprfx]"
37274041 else
37284042 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
37624076 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
37634077 cat <<_LT_EOF > conftest.$ac_ext
37644078 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
3765 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
3766 /* DATA imports from DLLs on WIN32 con't be const, because runtime
4079 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
4080 /* DATA imports from DLLs on WIN32 can't be const, because runtime
37674081 relocations are performed -- see ld's documentation on pseudo-relocs. */
37684082 # define LT@&t@_DLSYM_CONST
3769 #elif defined(__osf__)
4083 #elif defined __osf__
37704084 /* This system does not cope well with relocations in const data. */
37714085 # define LT@&t@_DLSYM_CONST
37724086 #else
37924106 {
37934107 { "@PROGRAM@", (void *) 0 },
37944108 _LT_EOF
3795 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
4109 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
37964110 cat <<\_LT_EOF >> conftest.$ac_ext
37974111 {0, (void *) 0}
37984112 };
38124126 mv conftest.$ac_objext conftstm.$ac_objext
38134127 lt_globsym_save_LIBS=$LIBS
38144128 lt_globsym_save_CFLAGS=$CFLAGS
3815 LIBS="conftstm.$ac_objext"
4129 LIBS=conftstm.$ac_objext
38164130 CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
3817 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
4131 if AC_TRY_EVAL(ac_link) && test -s conftest$ac_exeext; then
38184132 pipe_works=yes
38194133 fi
38204134 LIBS=$lt_globsym_save_LIBS
38354149 rm -rf conftest* conftst*
38364150
38374151 # Do not use the global_symbol_pipe unless it works.
3838 if test "$pipe_works" = yes; then
4152 if test yes = "$pipe_works"; then
38394153 break
38404154 else
38414155 lt_cv_sys_global_symbol_pipe=
38624176 [Take the output of nm and produce a listing of raw symbols and C names])
38634177 _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
38644178 [Transform the output of nm in a proper C declaration])
4179 _LT_DECL([global_symbol_to_import], [lt_cv_sys_global_symbol_to_import], [1],
4180 [Transform the output of nm into a list of symbols to manually relocate])
38654181 _LT_DECL([global_symbol_to_c_name_address],
38664182 [lt_cv_sys_global_symbol_to_c_name_address], [1],
38674183 [Transform the output of nm in a C name address pair])
38684184 _LT_DECL([global_symbol_to_c_name_address_lib_prefix],
38694185 [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
38704186 [Transform the output of nm in a C name address pair when lib prefix is needed])
4187 _LT_DECL([nm_interface], [lt_cv_nm_interface], [1],
4188 [The name lister interface])
38714189 _LT_DECL([], [nm_file_list_spec], [1],
38724190 [Specify filename containing input files for $NM])
38734191 ]) # _LT_CMD_GLOBAL_SYMBOLS
38834201
38844202 m4_if([$1], [CXX], [
38854203 # C++ specific cases for pic, static, wl, etc.
3886 if test "$GXX" = yes; then
4204 if test yes = "$GXX"; then
38874205 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
38884206 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
38894207
38904208 case $host_os in
38914209 aix*)
38924210 # All AIX code is PIC.
3893 if test "$host_cpu" = ia64; then
4211 if test ia64 = "$host_cpu"; then
38944212 # AIX 5 now supports IA64 processor
38954213 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
38964214 fi
4215 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
38974216 ;;
38984217
38994218 amigaos*)
39044223 ;;
39054224 m68k)
39064225 # FIXME: we need at least 68020 code to build shared libraries, but
3907 # adding the `-m68020' flag to GCC prevents building anything better,
3908 # like `-m68040'.
4226 # adding the '-m68020' flag to GCC prevents building anything better,
4227 # like '-m68040'.
39094228 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
39104229 ;;
39114230 esac
39214240 # (--disable-auto-import) libraries
39224241 m4_if([$1], [GCJ], [],
39234242 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4243 case $host_os in
4244 os2*)
4245 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static'
4246 ;;
4247 esac
39244248 ;;
39254249 darwin* | rhapsody*)
39264250 # PIC is the default on this platform
39704294 case $host_os in
39714295 aix[[4-9]]*)
39724296 # All AIX code is PIC.
3973 if test "$host_cpu" = ia64; then
4297 if test ia64 = "$host_cpu"; then
39744298 # AIX 5 now supports IA64 processor
39754299 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
39764300 else
40114335 case $cc_basename in
40124336 CC*)
40134337 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4014 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4015 if test "$host_cpu" != ia64; then
4338 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive'
4339 if test ia64 != "$host_cpu"; then
40164340 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
40174341 fi
40184342 ;;
40194343 aCC*)
40204344 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4021 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4345 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive'
40224346 case $host_cpu in
40234347 hppa*64*|ia64*)
40244348 # +Z the default
40554379 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
40564380 ;;
40574381 ecpc* )
4058 # old Intel C++ for x86_64 which still supported -KPIC.
4382 # old Intel C++ for x86_64, which still supported -KPIC.
40594383 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
40604384 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
40614385 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
42004524 fi
42014525 ],
42024526 [
4203 if test "$GCC" = yes; then
4527 if test yes = "$GCC"; then
42044528 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
42054529 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
42064530
42074531 case $host_os in
42084532 aix*)
42094533 # All AIX code is PIC.
4210 if test "$host_cpu" = ia64; then
4534 if test ia64 = "$host_cpu"; then
42114535 # AIX 5 now supports IA64 processor
42124536 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
42134537 fi
4538 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
42144539 ;;
42154540
42164541 amigaos*)
42214546 ;;
42224547 m68k)
42234548 # FIXME: we need at least 68020 code to build shared libraries, but
4224 # adding the `-m68020' flag to GCC prevents building anything better,
4225 # like `-m68040'.
4549 # adding the '-m68020' flag to GCC prevents building anything better,
4550 # like '-m68040'.
42264551 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
42274552 ;;
42284553 esac
42394564 # (--disable-auto-import) libraries
42404565 m4_if([$1], [GCJ], [],
42414566 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4567 case $host_os in
4568 os2*)
4569 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static'
4570 ;;
4571 esac
42424572 ;;
42434573
42444574 darwin* | rhapsody*)
43094639 case $host_os in
43104640 aix*)
43114641 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4312 if test "$host_cpu" = ia64; then
4642 if test ia64 = "$host_cpu"; then
43134643 # AIX 5 now supports IA64 processor
43144644 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
43154645 else
43174647 fi
43184648 ;;
43194649
4650 darwin* | rhapsody*)
4651 # PIC is the default on this platform
4652 # Common symbols not allowed in MH_DYLIB files
4653 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4654 case $cc_basename in
4655 nagfor*)
4656 # NAG Fortran compiler
4657 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
4658 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4659 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4660 ;;
4661 esac
4662 ;;
4663
43204664 mingw* | cygwin* | pw32* | os2* | cegcc*)
43214665 # This hack is so that the source file can tell whether it is being
43224666 # built for inclusion in a dll (and should export symbols for example).
43234667 m4_if([$1], [GCJ], [],
43244668 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4669 case $host_os in
4670 os2*)
4671 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static'
4672 ;;
4673 esac
43254674 ;;
43264675
43274676 hpux9* | hpux10* | hpux11*)
43374686 ;;
43384687 esac
43394688 # Is there a better lt_prog_compiler_static that works with the bundled CC?
4340 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4689 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive'
43414690 ;;
43424691
43434692 irix5* | irix6* | nonstopux*)
43484697
43494698 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
43504699 case $cc_basename in
4351 # old Intel for x86_64 which still supported -KPIC.
4700 # old Intel for x86_64, which still supported -KPIC.
43524701 ecc*)
43534702 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
43544703 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
43724721 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
43734722 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
43744723 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4724 ;;
4725 tcc*)
4726 # Fabrice Bellard et al's Tiny C Compiler
4727 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4728 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4729 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
43754730 ;;
43764731 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
43774732 # Portland Group compilers (*not* the Pentium gcc compiler,
44704825 ;;
44714826
44724827 sysv4*MP*)
4473 if test -d /usr/nec ;then
4828 if test -d /usr/nec; then
44744829 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
44754830 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
44764831 fi
44994854 fi
45004855 ])
45014856 case $host_os in
4502 # For platforms which do not support PIC, -DPIC is meaningless:
4857 # For platforms that do not support PIC, -DPIC is meaningless:
45034858 *djgpp*)
45044859 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
45054860 ;;
45654920 case $host_os in
45664921 aix[[4-9]]*)
45674922 # If we're using GNU nm, then we don't want the "-C" option.
4568 # -C means demangle to AIX nm, but means don't demangle with GNU nm
4569 # Also, AIX nm treats weak defined symbols like other global defined
4570 # symbols, whereas GNU nm marks them as "W".
4923 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
4924 # Without the "-l" option, or with the "-B" option, AIX nm treats
4925 # weak defined symbols like other global defined symbols, whereas
4926 # GNU nm marks them as "W".
4927 # While the 'weak' keyword is ignored in the Export File, we need
4928 # it in the Import File for the 'aix-soname' feature, so we have
4929 # to replace the "-B" option with "-P" for AIX nm.
45714930 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4572 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
4931 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
45734932 else
4574 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
4933 _LT_TAGVAR(export_symbols_cmds, $1)='`func_echo_all $NM | $SED -e '\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && ([substr](\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
45754934 fi
45764935 ;;
45774936 pw32*)
4578 _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
4937 _LT_TAGVAR(export_symbols_cmds, $1)=$ltdll_cmds
45794938 ;;
45804939 cygwin* | mingw* | cegcc*)
45814940 case $cc_basename in
46244983 # included in the symbol list
46254984 _LT_TAGVAR(include_expsyms, $1)=
46264985 # exclude_expsyms can be an extended regexp of symbols to exclude
4627 # it will be wrapped by ` (' and `)$', so one must not match beginning or
4628 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
4629 # as well as any symbol that contains `d'.
4986 # it will be wrapped by ' (' and ')$', so one must not match beginning or
4987 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
4988 # as well as any symbol that contains 'd'.
46304989 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
46314990 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
46324991 # platforms (ab)use it in PIC code, but their linkers get confused if
46425001 # FIXME: the MSVC++ port hasn't been tested in a loooong time
46435002 # When not using gcc, we currently assume that we are using
46445003 # Microsoft Visual C++.
4645 if test "$GCC" != yes; then
5004 if test yes != "$GCC"; then
46465005 with_gnu_ld=no
46475006 fi
46485007 ;;
46505009 # we just hope/assume this is gcc and not c89 (= MSVC++)
46515010 with_gnu_ld=yes
46525011 ;;
4653 openbsd*)
5012 openbsd* | bitrig*)
46545013 with_gnu_ld=no
46555014 ;;
46565015 linux* | k*bsd*-gnu | gnu*)
46635022 # On some targets, GNU ld is compatible enough with the native linker
46645023 # that we're better off using the native interface for both.
46655024 lt_use_gnu_ld_interface=no
4666 if test "$with_gnu_ld" = yes; then
5025 if test yes = "$with_gnu_ld"; then
46675026 case $host_os in
46685027 aix*)
46695028 # The AIX port of GNU ld has always aspired to compatibility
46855044 esac
46865045 fi
46875046
4688 if test "$lt_use_gnu_ld_interface" = yes; then
5047 if test yes = "$lt_use_gnu_ld_interface"; then
46895048 # If archive_cmds runs LD, not CC, wlarc should be empty
4690 wlarc='${wl}'
5049 wlarc='$wl'
46915050
46925051 # Set some defaults for GNU ld with shared library support. These
46935052 # are reset later if shared libraries are not supported. Putting them
46945053 # here allows them to be overridden if necessary.
46955054 runpath_var=LD_RUN_PATH
4696 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4697 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5055 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
5056 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
46985057 # ancient GNU ld didn't support --whole-archive et. al.
46995058 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
4700 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5059 _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
47015060 else
47025061 _LT_TAGVAR(whole_archive_flag_spec, $1)=
47035062 fi
47045063 supports_anon_versioning=no
4705 case `$LD -v 2>&1` in
5064 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
47065065 *GNU\ gold*) supports_anon_versioning=yes ;;
47075066 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
47085067 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
47155074 case $host_os in
47165075 aix[[3-9]]*)
47175076 # On AIX/PPC, the GNU linker is very broken
4718 if test "$host_cpu" != ia64; then
5077 if test ia64 != "$host_cpu"; then
47195078 _LT_TAGVAR(ld_shlibs, $1)=no
47205079 cat <<_LT_EOF 1>&2
47215080
47345093 case $host_cpu in
47355094 powerpc)
47365095 # see comment about AmigaOS4 .so support
4737 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5096 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
47385097 _LT_TAGVAR(archive_expsym_cmds, $1)=''
47395098 ;;
47405099 m68k)
47505109 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
47515110 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
47525111 # support --undefined. This deserves some investigation. FIXME
4753 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5112 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
47545113 else
47555114 _LT_TAGVAR(ld_shlibs, $1)=no
47565115 fi
47605119 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
47615120 # as there is no search path for DLLs.
47625121 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4763 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
5122 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols'
47645123 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
47655124 _LT_TAGVAR(always_export_symbols, $1)=no
47665125 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
47685127 _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
47695128
47705129 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
4771 _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'
4772 # If the export-symbols file already is a .def file (1st line
4773 # is EXPORTS), use it as is; otherwise, prepend...
4774 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
4775 cp $export_symbols $output_objdir/$soname.def;
4776 else
4777 echo EXPORTS > $output_objdir/$soname.def;
4778 cat $export_symbols >> $output_objdir/$soname.def;
4779 fi~
4780 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5130 _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'
5131 # If the export-symbols file already is a .def file, use it as
5132 # is; otherwise, prepend EXPORTS...
5133 _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
5134 cp $export_symbols $output_objdir/$soname.def;
5135 else
5136 echo EXPORTS > $output_objdir/$soname.def;
5137 cat $export_symbols >> $output_objdir/$soname.def;
5138 fi~
5139 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
47815140 else
47825141 _LT_TAGVAR(ld_shlibs, $1)=no
47835142 fi
47845143 ;;
47855144
47865145 haiku*)
4787 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5146 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
47885147 _LT_TAGVAR(link_all_deplibs, $1)=yes
5148 ;;
5149
5150 os2*)
5151 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5152 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5153 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5154 shrext_cmds=.dll
5155 _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
5156 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
5157 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
5158 $ECHO EXPORTS >> $output_objdir/$libname.def~
5159 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
5160 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
5161 emximp -o $lib $output_objdir/$libname.def'
5162 _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
5163 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
5164 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
5165 $ECHO EXPORTS >> $output_objdir/$libname.def~
5166 prefix_cmds="$SED"~
5167 if test EXPORTS = "`$SED 1q $export_symbols`"; then
5168 prefix_cmds="$prefix_cmds -e 1d";
5169 fi~
5170 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
5171 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
5172 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
5173 emximp -o $lib $output_objdir/$libname.def'
5174 _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
5175 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
47895176 ;;
47905177
47915178 interix[[3-9]]*)
47925179 _LT_TAGVAR(hardcode_direct, $1)=no
47935180 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4794 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4795 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5181 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
5182 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
47965183 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
47975184 # Instead, shared libraries are loaded at an image base (0x10000000 by
47985185 # default) and relocated if they conflict, which is a slow very memory
47995186 # consuming and fragmenting process. To avoid this, we pick a random,
48005187 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
48015188 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
4802 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
4803 _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
5189 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
5190 _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
48045191 ;;
48055192
48065193 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
48075194 tmp_diet=no
4808 if test "$host_os" = linux-dietlibc; then
5195 if test linux-dietlibc = "$host_os"; then
48095196 case $cc_basename in
48105197 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
48115198 esac
48125199 fi
48135200 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
4814 && test "$tmp_diet" = no
5201 && test no = "$tmp_diet"
48155202 then
48165203 tmp_addflag=' $pic_flag'
48175204 tmp_sharedflag='-shared'
48185205 case $cc_basename,$host_cpu in
48195206 pgcc*) # Portland Group C compiler
4820 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
5207 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
48215208 tmp_addflag=' $pic_flag'
48225209 ;;
48235210 pgf77* | pgf90* | pgf95* | pgfortran*)
48245211 # Portland Group f77 and f90 compilers
4825 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
5212 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
48265213 tmp_addflag=' $pic_flag -Mnomain' ;;
48275214 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
48285215 tmp_addflag=' -i_dynamic' ;;
48335220 lf95*) # Lahey Fortran 8.1
48345221 _LT_TAGVAR(whole_archive_flag_spec, $1)=
48355222 tmp_sharedflag='--shared' ;;
5223 nagfor*) # NAGFOR 5.3
5224 tmp_sharedflag='-Wl,-shared' ;;
48365225 xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
48375226 tmp_sharedflag='-qmkshrobj'
48385227 tmp_addflag= ;;
48395228 nvcc*) # Cuda Compiler Driver 2.2
4840 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
5229 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
48415230 _LT_TAGVAR(compiler_needs_object, $1)=yes
48425231 ;;
48435232 esac
48445233 case `$CC -V 2>&1 | sed 5q` in
48455234 *Sun\ C*) # Sun C 5.9
4846 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
5235 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
48475236 _LT_TAGVAR(compiler_needs_object, $1)=yes
48485237 tmp_sharedflag='-G' ;;
48495238 *Sun\ F*) # Sun Fortran 8.3
48505239 tmp_sharedflag='-G' ;;
48515240 esac
4852 _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4853
4854 if test "x$supports_anon_versioning" = xyes; then
5241 _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
5242
5243 if test yes = "$supports_anon_versioning"; then
48555244 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
4856 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
4857 echo "local: *; };" >> $output_objdir/$libname.ver~
4858 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5245 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5246 echo "local: *; };" >> $output_objdir/$libname.ver~
5247 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
48595248 fi
48605249
48615250 case $cc_basename in
5251 tcc*)
5252 _LT_TAGVAR(export_dynamic_flag_spec, $1)='-rdynamic'
5253 ;;
48625254 xlf* | bgf* | bgxlf* | mpixlf*)
48635255 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
48645256 _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
4865 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5257 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
48665258 _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
4867 if test "x$supports_anon_versioning" = xyes; then
5259 if test yes = "$supports_anon_versioning"; then
48685260 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
4869 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
4870 echo "local: *; };" >> $output_objdir/$libname.ver~
4871 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
5261 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5262 echo "local: *; };" >> $output_objdir/$libname.ver~
5263 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
48725264 fi
48735265 ;;
48745266 esac
48825274 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
48835275 wlarc=
48845276 else
4885 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4886 _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'
5277 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
5278 _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'
48875279 fi
48885280 ;;
48895281
49015293
49025294 _LT_EOF
49035295 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4904 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4905 _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'
5296 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
5297 _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'
49065298 else
49075299 _LT_TAGVAR(ld_shlibs, $1)=no
49085300 fi
49145306 _LT_TAGVAR(ld_shlibs, $1)=no
49155307 cat <<_LT_EOF 1>&2
49165308
4917 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
5309 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
49185310 *** reliably create shared libraries on SCO systems. Therefore, libtool
49195311 *** is disabling shared libraries support. We urge you to upgrade GNU
49205312 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
49295321 # DT_RUNPATH tag from executables and libraries. But doing so
49305322 # requires that you compile everything twice, which is a pain.
49315323 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4932 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4933 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4934 _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'
5324 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
5325 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
5326 _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'
49355327 else
49365328 _LT_TAGVAR(ld_shlibs, $1)=no
49375329 fi
49485340
49495341 *)
49505342 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4951 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4952 _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'
5343 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
5344 _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'
49535345 else
49545346 _LT_TAGVAR(ld_shlibs, $1)=no
49555347 fi
49565348 ;;
49575349 esac
49585350
4959 if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
5351 if test no = "$_LT_TAGVAR(ld_shlibs, $1)"; then
49605352 runpath_var=
49615353 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
49625354 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
49725364 # Note: this linker hardcodes the directories in LIBPATH if there
49735365 # are no directories specified by -L.
49745366 _LT_TAGVAR(hardcode_minus_L, $1)=yes
4975 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
5367 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
49765368 # Neither direct hardcoding nor static linking is supported with a
49775369 # broken collect2.
49785370 _LT_TAGVAR(hardcode_direct, $1)=unsupported
49805372 ;;
49815373
49825374 aix[[4-9]]*)
4983 if test "$host_cpu" = ia64; then
5375 if test ia64 = "$host_cpu"; then
49845376 # On IA64, the linker does run time linking by default, so we don't
49855377 # have to do anything special.
49865378 aix_use_runtimelinking=no
49875379 exp_sym_flag='-Bexport'
4988 no_entry_flag=""
5380 no_entry_flag=
49895381 else
49905382 # If we're using GNU nm, then we don't want the "-C" option.
4991 # -C means demangle to AIX nm, but means don't demangle with GNU nm
4992 # Also, AIX nm treats weak defined symbols like other global
4993 # defined symbols, whereas GNU nm marks them as "W".
5383 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
5384 # Without the "-l" option, or with the "-B" option, AIX nm treats
5385 # weak defined symbols like other global defined symbols, whereas
5386 # GNU nm marks them as "W".
5387 # While the 'weak' keyword is ignored in the Export File, we need
5388 # it in the Import File for the 'aix-soname' feature, so we have
5389 # to replace the "-B" option with "-P" for AIX nm.
49945390 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4995 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
5391 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
49965392 else
4997 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
5393 _LT_TAGVAR(export_symbols_cmds, $1)='`func_echo_all $NM | $SED -e '\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && ([substr](\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
49985394 fi
49995395 aix_use_runtimelinking=no
50005396
50015397 # Test if we are trying to use run time linking or normal
50025398 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5003 # need to do runtime linking.
5399 # have runtime linking enabled, and use it for executables.
5400 # For shared libraries, we enable/disable runtime linking
5401 # depending on the kind of the shared library created -
5402 # when "with_aix_soname,aix_use_runtimelinking" is:
5403 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
5404 # "aix,yes" lib.so shared, rtl:yes, for executables
5405 # lib.a static archive
5406 # "both,no" lib.so.V(shr.o) shared, rtl:yes
5407 # lib.a(lib.so.V) shared, rtl:no, for executables
5408 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
5409 # lib.a(lib.so.V) shared, rtl:no
5410 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
5411 # lib.a static archive
50045412 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
50055413 for ld_flag in $LDFLAGS; do
5006 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5414 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
50075415 aix_use_runtimelinking=yes
50085416 break
50095417 fi
50105418 done
5419 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
5420 # With aix-soname=svr4, we create the lib.so.V shared archives only,
5421 # so we don't have lib.a shared libs to link our executables.
5422 # We have to force runtime linking in this case.
5423 aix_use_runtimelinking=yes
5424 LDFLAGS="$LDFLAGS -Wl,-brtl"
5425 fi
50115426 ;;
50125427 esac
50135428
50265441 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
50275442 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
50285443 _LT_TAGVAR(link_all_deplibs, $1)=yes
5029 _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
5030
5031 if test "$GCC" = yes; then
5444 _LT_TAGVAR(file_list_spec, $1)='$wl-f,'
5445 case $with_aix_soname,$aix_use_runtimelinking in
5446 aix,*) ;; # traditional, no import file
5447 svr4,* | *,yes) # use import file
5448 # The Import File defines what to hardcode.
5449 _LT_TAGVAR(hardcode_direct, $1)=no
5450 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
5451 ;;
5452 esac
5453
5454 if test yes = "$GCC"; then
50325455 case $host_os in aix4.[[012]]|aix4.[[012]].*)
50335456 # We only want to do this on AIX 4.2 and lower, the check
50345457 # below for broken collect2 doesn't work under 4.3+
5035 collect2name=`${CC} -print-prog-name=collect2`
5458 collect2name=`$CC -print-prog-name=collect2`
50365459 if test -f "$collect2name" &&
50375460 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
50385461 then
50515474 ;;
50525475 esac
50535476 shared_flag='-shared'
5054 if test "$aix_use_runtimelinking" = yes; then
5055 shared_flag="$shared_flag "'${wl}-G'
5477 if test yes = "$aix_use_runtimelinking"; then
5478 shared_flag="$shared_flag "'$wl-G'
50565479 fi
5057 _LT_TAGVAR(link_all_deplibs, $1)=no
5480 # Need to ensure runtime linking is disabled for the traditional
5481 # shared library, or the linker may eventually find shared libraries
5482 # /with/ Import File - we do not want to mix them.
5483 shared_flag_aix='-shared'
5484 shared_flag_svr4='-shared $wl-G'
50585485 else
50595486 # not using gcc
5060 if test "$host_cpu" = ia64; then
5487 if test ia64 = "$host_cpu"; then
50615488 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
50625489 # chokes on -Wl,-G. The following line is correct:
50635490 shared_flag='-G'
50645491 else
5065 if test "$aix_use_runtimelinking" = yes; then
5066 shared_flag='${wl}-G'
5492 if test yes = "$aix_use_runtimelinking"; then
5493 shared_flag='$wl-G'
50675494 else
5068 shared_flag='${wl}-bM:SRE'
5495 shared_flag='$wl-bM:SRE'
50695496 fi
5497 shared_flag_aix='$wl-bM:SRE'
5498 shared_flag_svr4='$wl-G'
50705499 fi
50715500 fi
50725501
5073 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
5502 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall'
50745503 # It seems that -bexpall does not export symbols beginning with
50755504 # underscore (_), so it is better to generate a list of symbols to export.
50765505 _LT_TAGVAR(always_export_symbols, $1)=yes
5077 if test "$aix_use_runtimelinking" = yes; then
5506 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
50785507 # Warning - without using the other runtime loading flags (-brtl),
50795508 # -berok will link without error, but may produce a broken library.
50805509 _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
50815510 # Determine the default libpath from the value encoded in an
50825511 # empty executable.
50835512 _LT_SYS_MODULE_PATH_AIX([$1])
5084 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5085 _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"
5513 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
5514 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
50865515 else
5087 if test "$host_cpu" = ia64; then
5088 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
5516 if test ia64 = "$host_cpu"; then
5517 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib'
50895518 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
5090 _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
5519 _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
50915520 else
50925521 # Determine the default libpath from the value encoded in an
50935522 # empty executable.
50945523 _LT_SYS_MODULE_PATH_AIX([$1])
5095 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5524 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
50965525 # Warning - without using the other run time loading flags,
50975526 # -berok will link without error, but may produce a broken library.
5098 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
5099 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5100 if test "$with_gnu_ld" = yes; then
5527 _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok'
5528 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok'
5529 if test yes = "$with_gnu_ld"; then
51015530 # We only use this code for GNU lds that support --whole-archive.
5102 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
5531 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive'
51035532 else
51045533 # Exported symbols can be pulled into shared objects from archives
51055534 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
51065535 fi
51075536 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5108 # This is similar to how AIX traditionally builds its shared libraries.
5109 _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
5537 _LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
5538 # -brtl affects multiple linker settings, -berok does not and is overridden later
5539 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([[, ]]\\)%-berok\\1%g"`'
5540 if test svr4 != "$with_aix_soname"; then
5541 # This is similar to how AIX traditionally builds its shared libraries.
5542 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
5543 fi
5544 if test aix != "$with_aix_soname"; then
5545 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
5546 else
5547 # used by -dlpreopen to get the symbols
5548 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
5549 fi
5550 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$RM -r $output_objdir/$realname.d'
51105551 fi
51115552 fi
51125553 ;;
51155556 case $host_cpu in
51165557 powerpc)
51175558 # see comment about AmigaOS4 .so support
5118 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5559 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
51195560 _LT_TAGVAR(archive_expsym_cmds, $1)=''
51205561 ;;
51215562 m68k)
51455586 # Tell ltmain to make .lib files, not .a files.
51465587 libext=lib
51475588 # Tell ltmain to make .dll files, not .so files.
5148 shrext_cmds=".dll"
5589 shrext_cmds=.dll
51495590 # FIXME: Setting linknames here is a bad hack.
5150 _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
5151 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5152 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
5153 else
5154 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
5155 fi~
5156 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
5157 linknames='
5591 _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
5592 _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
5593 cp "$export_symbols" "$output_objdir/$soname.def";
5594 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
5595 else
5596 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
5597 fi~
5598 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
5599 linknames='
51585600 # The linker will not automatically build a static lib if we build a DLL.
51595601 # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
51605602 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
51635605 # Don't use ranlib
51645606 _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
51655607 _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
5166 lt_tool_outputfile="@TOOL_OUTPUT@"~
5167 case $lt_outputfile in
5168 *.exe|*.EXE) ;;
5169 *)
5170 lt_outputfile="$lt_outputfile.exe"
5171 lt_tool_outputfile="$lt_tool_outputfile.exe"
5172 ;;
5173 esac~
5174 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
5175 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
5176 $RM "$lt_outputfile.manifest";
5177 fi'
5608 lt_tool_outputfile="@TOOL_OUTPUT@"~
5609 case $lt_outputfile in
5610 *.exe|*.EXE) ;;
5611 *)
5612 lt_outputfile=$lt_outputfile.exe
5613 lt_tool_outputfile=$lt_tool_outputfile.exe
5614 ;;
5615 esac~
5616 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
5617 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
5618 $RM "$lt_outputfile.manifest";
5619 fi'
51785620 ;;
51795621 *)
51805622 # Assume MSVC wrapper
51835625 # Tell ltmain to make .lib files, not .a files.
51845626 libext=lib
51855627 # Tell ltmain to make .dll files, not .so files.
5186 shrext_cmds=".dll"
5628 shrext_cmds=.dll
51875629 # FIXME: Setting linknames here is a bad hack.
51885630 _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
51895631 # The linker will automatically build a .lib file if we build a DLL.
52335675 ;;
52345676
52355677 hpux9*)
5236 if test "$GCC" = yes; then
5237 _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'
5678 if test yes = "$GCC"; then
5679 _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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
52385680 else
5239 _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'
5681 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
52405682 fi
5241 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5683 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
52425684 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
52435685 _LT_TAGVAR(hardcode_direct, $1)=yes
52445686
52455687 # hardcode_minus_L: Not really in the search PATH,
52465688 # but as the default location of the library.
52475689 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5248 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5690 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
52495691 ;;
52505692
52515693 hpux10*)
5252 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
5253 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5694 if test yes,no = "$GCC,$with_gnu_ld"; then
5695 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
52545696 else
52555697 _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
52565698 fi
5257 if test "$with_gnu_ld" = no; then
5258 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5699 if test no = "$with_gnu_ld"; then
5700 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
52595701 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
52605702 _LT_TAGVAR(hardcode_direct, $1)=yes
52615703 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5262 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5704 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
52635705 # hardcode_minus_L: Not really in the search PATH,
52645706 # but as the default location of the library.
52655707 _LT_TAGVAR(hardcode_minus_L, $1)=yes
52675709 ;;
52685710
52695711 hpux11*)
5270 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
5712 if test yes,no = "$GCC,$with_gnu_ld"; then
52715713 case $host_cpu in
52725714 hppa*64*)
5273 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5715 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
52745716 ;;
52755717 ia64*)
5276 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5718 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
52775719 ;;
52785720 *)
5279 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5721 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
52805722 ;;
52815723 esac
52825724 else
52835725 case $host_cpu in
52845726 hppa*64*)
5285 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5727 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
52865728 ;;
52875729 ia64*)
5288 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5730 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
52895731 ;;
52905732 *)
52915733 m4_if($1, [], [
52935735 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
52945736 _LT_LINKER_OPTION([if $CC understands -b],
52955737 _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b],
5296 [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
5738 [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
52975739 [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])],
5298 [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])
5740 [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])
52995741 ;;
53005742 esac
53015743 fi
5302 if test "$with_gnu_ld" = no; then
5303 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5744 if test no = "$with_gnu_ld"; then
5745 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
53045746 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
53055747
53065748 case $host_cpu in
53115753 *)
53125754 _LT_TAGVAR(hardcode_direct, $1)=yes
53135755 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5314 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5756 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
53155757
53165758 # hardcode_minus_L: Not really in the search PATH,
53175759 # but as the default location of the library.
53225764 ;;
53235765
53245766 irix5* | irix6* | nonstopux*)
5325 if test "$GCC" = yes; then
5326 _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'
5767 if test yes = "$GCC"; then
5768 _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'
53275769 # Try to use the -exported_symbol ld option, if it does not
53285770 # work, assume that -exports_file does not work either and
53295771 # implicitly export all symbols.
53305772 # This should be the same for all languages, so no per-tag cache variable.
53315773 AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
53325774 [lt_cv_irix_exported_symbol],
5333 [save_LDFLAGS="$LDFLAGS"
5334 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
5775 [save_LDFLAGS=$LDFLAGS
5776 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
53355777 AC_LINK_IFELSE(
53365778 [AC_LANG_SOURCE(
53375779 [AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
53445786 end]])])],
53455787 [lt_cv_irix_exported_symbol=yes],
53465788 [lt_cv_irix_exported_symbol=no])
5347 LDFLAGS="$save_LDFLAGS"])
5348 if test "$lt_cv_irix_exported_symbol" = yes; then
5349 _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'
5789 LDFLAGS=$save_LDFLAGS])
5790 if test yes = "$lt_cv_irix_exported_symbol"; then
5791 _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'
53505792 fi
5793 _LT_TAGVAR(link_all_deplibs, $1)=no
53515794 else
5352 _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'
5353 _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'
5795 _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'
5796 _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'
53545797 fi
53555798 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5356 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5799 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
53575800 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
53585801 _LT_TAGVAR(inherit_rpath, $1)=yes
53595802 _LT_TAGVAR(link_all_deplibs, $1)=yes
5803 ;;
5804
5805 linux*)
5806 case $cc_basename in
5807 tcc*)
5808 # Fabrice Bellard et al's Tiny C Compiler
5809 _LT_TAGVAR(ld_shlibs, $1)=yes
5810 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5811 ;;
5812 esac
53605813 ;;
53615814
53625815 netbsd* | netbsdelf*-gnu)
53735826 newsos6)
53745827 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
53755828 _LT_TAGVAR(hardcode_direct, $1)=yes
5376 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5829 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
53775830 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
53785831 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
53795832 ;;
53815834 *nto* | *qnx*)
53825835 ;;
53835836
5384 openbsd*)
5837 openbsd* | bitrig*)
53855838 if test -f /usr/libexec/ld.so; then
53865839 _LT_TAGVAR(hardcode_direct, $1)=yes
53875840 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
53885841 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5389 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5842 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
53905843 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5391 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
5392 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5393 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5844 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
5845 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
5846 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
53945847 else
5395 case $host_os in
5396 openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
5397 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5398 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5399 ;;
5400 *)
5401 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5402 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5403 ;;
5404 esac
5848 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5849 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
54055850 fi
54065851 else
54075852 _LT_TAGVAR(ld_shlibs, $1)=no
54125857 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
54135858 _LT_TAGVAR(hardcode_minus_L, $1)=yes
54145859 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5415 _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
5416 _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5860 shrext_cmds=.dll
5861 _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
5862 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
5863 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
5864 $ECHO EXPORTS >> $output_objdir/$libname.def~
5865 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
5866 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
5867 emximp -o $lib $output_objdir/$libname.def'
5868 _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
5869 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
5870 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
5871 $ECHO EXPORTS >> $output_objdir/$libname.def~
5872 prefix_cmds="$SED"~
5873 if test EXPORTS = "`$SED 1q $export_symbols`"; then
5874 prefix_cmds="$prefix_cmds -e 1d";
5875 fi~
5876 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
5877 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
5878 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
5879 emximp -o $lib $output_objdir/$libname.def'
5880 _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
5881 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
54175882 ;;
54185883
54195884 osf3*)
5420 if test "$GCC" = yes; then
5421 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5422 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_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'
5885 if test yes = "$GCC"; then
5886 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
5887 _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_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'
54235888 else
54245889 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5425 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
5890 _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
54265891 fi
54275892 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5428 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5893 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
54295894 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
54305895 ;;
54315896
54325897 osf4* | osf5*) # as osf3* with the addition of -msym flag
5433 if test "$GCC" = yes; then
5434 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5435 _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'
5436 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5898 if test yes = "$GCC"; then
5899 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
5900 _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'
5901 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
54375902 else
54385903 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5439 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
5904 _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
54405905 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
5441 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
5906 $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
54425907
54435908 # Both c and cxx compiler support -rpath directly
54445909 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
54495914
54505915 solaris*)
54515916 _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
5452 if test "$GCC" = yes; then
5453 wlarc='${wl}'
5454 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5917 if test yes = "$GCC"; then
5918 wlarc='$wl'
5919 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
54555920 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5456 $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'
5921 $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'
54575922 else
54585923 case `$CC -V 2>&1` in
54595924 *"Compilers 5.0"*)
54605925 wlarc=''
5461 _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5926 _LT_TAGVAR(archive_cmds, $1)='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
54625927 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5463 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
5928 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
54645929 ;;
54655930 *)
5466 wlarc='${wl}'
5467 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
5931 wlarc='$wl'
5932 _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
54685933 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5469 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
5934 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
54705935 ;;
54715936 esac
54725937 fi
54765941 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
54775942 *)
54785943 # The compiler driver will combine and reorder linker options,
5479 # but understands `-z linker_flag'. GCC discards it without `$wl',
5944 # but understands '-z linker_flag'. GCC discards it without '$wl',
54805945 # but is careful enough not to reorder.
54815946 # Supported since Solaris 2.6 (maybe 2.5.1?)
5482 if test "$GCC" = yes; then
5483 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
5947 if test yes = "$GCC"; then
5948 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
54845949 else
54855950 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
54865951 fi
54905955 ;;
54915956
54925957 sunos4*)
5493 if test "x$host_vendor" = xsequent; then
5958 if test sequent = "$host_vendor"; then
54945959 # Use $CC to link under sequent, because it throws in some extra .o
54955960 # files that make .init and .fini sections work.
5496 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5961 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
54975962 else
54985963 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
54995964 fi
55426007 ;;
55436008
55446009 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
5545 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6010 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
55466011 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
55476012 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
55486013 runpath_var='LD_RUN_PATH'
55496014
5550 if test "$GCC" = yes; then
5551 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5552 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6015 if test yes = "$GCC"; then
6016 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6017 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
55536018 else
5554 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5555 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6019 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6020 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
55566021 fi
55576022 ;;
55586023
55596024 sysv5* | sco3.2v5* | sco5v6*)
5560 # Note: We can NOT use -z defs as we might desire, because we do not
6025 # Note: We CANNOT use -z defs as we might desire, because we do not
55616026 # link with -lc, and that would cause any symbols used from libc to
55626027 # always be unresolved, which means just about no library would
55636028 # ever link correctly. If we're not using GNU ld we use -z text
55646029 # though, which does catch some bad symbols but isn't as heavy-handed
55656030 # as -z defs.
5566 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
5567 _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
6031 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
6032 _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs'
55686033 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
55696034 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5570 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
6035 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir'
55716036 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
55726037 _LT_TAGVAR(link_all_deplibs, $1)=yes
5573 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
6038 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport'
55746039 runpath_var='LD_RUN_PATH'
55756040
5576 if test "$GCC" = yes; then
5577 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5578 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6041 if test yes = "$GCC"; then
6042 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6043 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
55796044 else
5580 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5581 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6045 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6046 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
55826047 fi
55836048 ;;
55846049
55936058 ;;
55946059 esac
55956060
5596 if test x$host_vendor = xsni; then
6061 if test sni = "$host_vendor"; then
55976062 case $host in
55986063 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5599 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
6064 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Blargedynsym'
56006065 ;;
56016066 esac
56026067 fi
56036068 fi
56046069 ])
56056070 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
5606 test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
6071 test no = "$_LT_TAGVAR(ld_shlibs, $1)" && can_build_shared=no
56076072
56086073 _LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
56096074
56206085 # Assume -lc should be added
56216086 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
56226087
5623 if test "$enable_shared" = yes && test "$GCC" = yes; then
6088 if test yes,yes = "$GCC,$enable_shared"; then
56246089 case $_LT_TAGVAR(archive_cmds, $1) in
56256090 *'~'*)
56266091 # FIXME: we may have to deal with multi-command sequences.
57006165 _LT_TAGDECL([], [hardcode_libdir_separator], [1],
57016166 [Whether we need a single "-rpath" flag with a separated argument])
57026167 _LT_TAGDECL([], [hardcode_direct], [0],
5703 [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
6168 [Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes
57046169 DIR into the resulting binary])
57056170 _LT_TAGDECL([], [hardcode_direct_absolute], [0],
5706 [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
6171 [Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes
57076172 DIR into the resulting binary and the resulting library dependency is
5708 "absolute", i.e impossible to change by setting ${shlibpath_var} if the
6173 "absolute", i.e impossible to change by setting $shlibpath_var if the
57096174 library is relocated])
57106175 _LT_TAGDECL([], [hardcode_minus_L], [0],
57116176 [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
57466211 # ------------------------
57476212 # Ensure that the configuration variables for a C compiler are suitably
57486213 # defined. These variables are subsequently used by _LT_CONFIG to write
5749 # the compiler configuration to `libtool'.
6214 # the compiler configuration to 'libtool'.
57506215 m4_defun([_LT_LANG_C_CONFIG],
57516216 [m4_require([_LT_DECL_EGREP])dnl
5752 lt_save_CC="$CC"
6217 lt_save_CC=$CC
57536218 AC_LANG_PUSH(C)
57546219
57556220 # Source file extension for C test sources.
57896254 LT_SYS_DLOPEN_SELF
57906255 _LT_CMD_STRIPLIB
57916256
5792 # Report which library types will actually be built
6257 # Report what library types will actually be built
57936258 AC_MSG_CHECKING([if libtool supports shared libraries])
57946259 AC_MSG_RESULT([$can_build_shared])
57956260
57966261 AC_MSG_CHECKING([whether to build shared libraries])
5797 test "$can_build_shared" = "no" && enable_shared=no
6262 test no = "$can_build_shared" && enable_shared=no
57986263
57996264 # On AIX, shared libraries and static libraries use the same namespace, and
58006265 # are all built from PIC.
58016266 case $host_os in
58026267 aix3*)
5803 test "$enable_shared" = yes && enable_static=no
6268 test yes = "$enable_shared" && enable_static=no
58046269 if test -n "$RANLIB"; then
58056270 archive_cmds="$archive_cmds~\$RANLIB \$lib"
58066271 postinstall_cmds='$RANLIB $lib'
58086273 ;;
58096274
58106275 aix[[4-9]]*)
5811 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
5812 test "$enable_shared" = yes && enable_static=no
6276 if test ia64 != "$host_cpu"; then
6277 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
6278 yes,aix,yes) ;; # shared object as lib.so file only
6279 yes,svr4,*) ;; # shared object as lib.so archive member only
6280 yes,*) enable_static=no ;; # shared object in lib.a archive as well
6281 esac
58136282 fi
58146283 ;;
58156284 esac
58176286
58186287 AC_MSG_CHECKING([whether to build static libraries])
58196288 # Make sure either enable_shared or enable_static is yes.
5820 test "$enable_shared" = yes || enable_static=yes
6289 test yes = "$enable_shared" || enable_static=yes
58216290 AC_MSG_RESULT([$enable_static])
58226291
58236292 _LT_CONFIG($1)
58246293 fi
58256294 AC_LANG_POP
5826 CC="$lt_save_CC"
6295 CC=$lt_save_CC
58276296 ])# _LT_LANG_C_CONFIG
58286297
58296298
58316300 # --------------------------
58326301 # Ensure that the configuration variables for a C++ compiler are suitably
58336302 # defined. These variables are subsequently used by _LT_CONFIG to write
5834 # the compiler configuration to `libtool'.
6303 # the compiler configuration to 'libtool'.
58356304 m4_defun([_LT_LANG_CXX_CONFIG],
58366305 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
58376306 m4_require([_LT_DECL_EGREP])dnl
58386307 m4_require([_LT_PATH_MANIFEST_TOOL])dnl
5839 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5840 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5841 (test "X$CXX" != "Xg++"))) ; then
6308 if test -n "$CXX" && ( test no != "$CXX" &&
6309 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
6310 (test g++ != "$CXX"))); then
58426311 AC_PROG_CXXCPP
58436312 else
58446313 _lt_caught_CXX_error=yes
58806349 # the CXX compiler isn't working. Some variables (like enable_shared)
58816350 # are currently assumed to apply to all compilers on this platform,
58826351 # and will be corrupted by setting them based on a non-working compiler.
5883 if test "$_lt_caught_CXX_error" != yes; then
6352 if test yes != "$_lt_caught_CXX_error"; then
58846353 # Code to be used in simple compile tests
58856354 lt_simple_compile_test_code="int some_variable = 0;"
58866355
59226391 if test -n "$compiler"; then
59236392 # We don't want -fno-exception when compiling C++ code, so set the
59246393 # no_builtin_flag separately
5925 if test "$GXX" = yes; then
6394 if test yes = "$GXX"; then
59266395 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
59276396 else
59286397 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
59296398 fi
59306399
5931 if test "$GXX" = yes; then
6400 if test yes = "$GXX"; then
59326401 # Set up default GNU C++ configuration
59336402
59346403 LT_PATH_LD
59356404
59366405 # Check if GNU C++ uses GNU ld as the underlying linker, since the
59376406 # archiving commands below assume that GNU ld is being used.
5938 if test "$with_gnu_ld" = yes; then
5939 _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5940 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5941
5942 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5943 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6407 if test yes = "$with_gnu_ld"; then
6408 _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
6409 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
6410
6411 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
6412 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
59446413
59456414 # If archive_cmds runs LD, not CC, wlarc should be empty
59466415 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
59476416 # investigate it a little bit more. (MM)
5948 wlarc='${wl}'
6417 wlarc='$wl'
59496418
59506419 # ancient GNU ld didn't support --whole-archive et. al.
59516420 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
59526421 $GREP 'no-whole-archive' > /dev/null; then
5953 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6422 _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
59546423 else
59556424 _LT_TAGVAR(whole_archive_flag_spec, $1)=
59566425 fi
59866455 _LT_TAGVAR(ld_shlibs, $1)=no
59876456 ;;
59886457 aix[[4-9]]*)
5989 if test "$host_cpu" = ia64; then
6458 if test ia64 = "$host_cpu"; then
59906459 # On IA64, the linker does run time linking by default, so we don't
59916460 # have to do anything special.
59926461 aix_use_runtimelinking=no
59936462 exp_sym_flag='-Bexport'
5994 no_entry_flag=""
6463 no_entry_flag=
59956464 else
59966465 aix_use_runtimelinking=no
59976466
59986467 # Test if we are trying to use run time linking or normal
59996468 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6000 # need to do runtime linking.
6469 # have runtime linking enabled, and use it for executables.
6470 # For shared libraries, we enable/disable runtime linking
6471 # depending on the kind of the shared library created -
6472 # when "with_aix_soname,aix_use_runtimelinking" is:
6473 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
6474 # "aix,yes" lib.so shared, rtl:yes, for executables
6475 # lib.a static archive
6476 # "both,no" lib.so.V(shr.o) shared, rtl:yes
6477 # lib.a(lib.so.V) shared, rtl:no, for executables
6478 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
6479 # lib.a(lib.so.V) shared, rtl:no
6480 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
6481 # lib.a static archive
60016482 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
60026483 for ld_flag in $LDFLAGS; do
60036484 case $ld_flag in
60076488 ;;
60086489 esac
60096490 done
6491 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
6492 # With aix-soname=svr4, we create the lib.so.V shared archives only,
6493 # so we don't have lib.a shared libs to link our executables.
6494 # We have to force runtime linking in this case.
6495 aix_use_runtimelinking=yes
6496 LDFLAGS="$LDFLAGS -Wl,-brtl"
6497 fi
60106498 ;;
60116499 esac
60126500
60256513 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
60266514 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
60276515 _LT_TAGVAR(link_all_deplibs, $1)=yes
6028 _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
6029
6030 if test "$GXX" = yes; then
6516 _LT_TAGVAR(file_list_spec, $1)='$wl-f,'
6517 case $with_aix_soname,$aix_use_runtimelinking in
6518 aix,*) ;; # no import file
6519 svr4,* | *,yes) # use import file
6520 # The Import File defines what to hardcode.
6521 _LT_TAGVAR(hardcode_direct, $1)=no
6522 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
6523 ;;
6524 esac
6525
6526 if test yes = "$GXX"; then
60316527 case $host_os in aix4.[[012]]|aix4.[[012]].*)
60326528 # We only want to do this on AIX 4.2 and lower, the check
60336529 # below for broken collect2 doesn't work under 4.3+
6034 collect2name=`${CC} -print-prog-name=collect2`
6530 collect2name=`$CC -print-prog-name=collect2`
60356531 if test -f "$collect2name" &&
60366532 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
60376533 then
60496545 fi
60506546 esac
60516547 shared_flag='-shared'
6052 if test "$aix_use_runtimelinking" = yes; then
6053 shared_flag="$shared_flag "'${wl}-G'
6548 if test yes = "$aix_use_runtimelinking"; then
6549 shared_flag=$shared_flag' $wl-G'
60546550 fi
6551 # Need to ensure runtime linking is disabled for the traditional
6552 # shared library, or the linker may eventually find shared libraries
6553 # /with/ Import File - we do not want to mix them.
6554 shared_flag_aix='-shared'
6555 shared_flag_svr4='-shared $wl-G'
60556556 else
60566557 # not using gcc
6057 if test "$host_cpu" = ia64; then
6558 if test ia64 = "$host_cpu"; then
60586559 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
60596560 # chokes on -Wl,-G. The following line is correct:
60606561 shared_flag='-G'
60616562 else
6062 if test "$aix_use_runtimelinking" = yes; then
6063 shared_flag='${wl}-G'
6563 if test yes = "$aix_use_runtimelinking"; then
6564 shared_flag='$wl-G'
60646565 else
6065 shared_flag='${wl}-bM:SRE'
6566 shared_flag='$wl-bM:SRE'
60666567 fi
6568 shared_flag_aix='$wl-bM:SRE'
6569 shared_flag_svr4='$wl-G'
60676570 fi
60686571 fi
60696572
6070 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
6573 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall'
60716574 # It seems that -bexpall does not export symbols beginning with
60726575 # underscore (_), so it is better to generate a list of symbols to
60736576 # export.
60746577 _LT_TAGVAR(always_export_symbols, $1)=yes
6075 if test "$aix_use_runtimelinking" = yes; then
6578 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
60766579 # Warning - without using the other runtime loading flags (-brtl),
60776580 # -berok will link without error, but may produce a broken library.
6078 _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
6581 # The "-G" linker flag allows undefined symbols.
6582 _LT_TAGVAR(no_undefined_flag, $1)='-bernotok'
60796583 # Determine the default libpath from the value encoded in an empty
60806584 # executable.
60816585 _LT_SYS_MODULE_PATH_AIX([$1])
6082 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6083
6084 _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"
6586 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
6587
6588 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
60856589 else
6086 if test "$host_cpu" = ia64; then
6087 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
6590 if test ia64 = "$host_cpu"; then
6591 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib'
60886592 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
6089 _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
6593 _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
60906594 else
60916595 # Determine the default libpath from the value encoded in an
60926596 # empty executable.
60936597 _LT_SYS_MODULE_PATH_AIX([$1])
6094 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6598 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
60956599 # Warning - without using the other run time loading flags,
60966600 # -berok will link without error, but may produce a broken library.
6097 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
6098 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
6099 if test "$with_gnu_ld" = yes; then
6601 _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok'
6602 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok'
6603 if test yes = "$with_gnu_ld"; then
61006604 # We only use this code for GNU lds that support --whole-archive.
6101 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
6605 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive'
61026606 else
61036607 # Exported symbols can be pulled into shared objects from archives
61046608 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
61056609 fi
61066610 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6107 # This is similar to how AIX traditionally builds its shared
6108 # libraries.
6109 _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
6611 _LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
6612 # -brtl affects multiple linker settings, -berok does not and is overridden later
6613 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([[, ]]\\)%-berok\\1%g"`'
6614 if test svr4 != "$with_aix_soname"; then
6615 # This is similar to how AIX traditionally builds its shared
6616 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
6617 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
6618 fi
6619 if test aix != "$with_aix_soname"; then
6620 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
6621 else
6622 # used by -dlpreopen to get the symbols
6623 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
6624 fi
6625 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$RM -r $output_objdir/$realname.d'
61106626 fi
61116627 fi
61126628 ;;
61166632 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
61176633 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
61186634 # support --undefined. This deserves some investigation. FIXME
6119 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6635 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
61206636 else
61216637 _LT_TAGVAR(ld_shlibs, $1)=no
61226638 fi
61446660 # Tell ltmain to make .lib files, not .a files.
61456661 libext=lib
61466662 # Tell ltmain to make .dll files, not .so files.
6147 shrext_cmds=".dll"
6663 shrext_cmds=.dll
61486664 # FIXME: Setting linknames here is a bad hack.
6149 _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
6150 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6151 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
6152 else
6153 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
6154 fi~
6155 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
6156 linknames='
6665 _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
6666 _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
6667 cp "$export_symbols" "$output_objdir/$soname.def";
6668 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
6669 else
6670 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
6671 fi~
6672 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
6673 linknames='
61576674 # The linker will not automatically build a static lib if we build a DLL.
61586675 # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
61596676 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
61606677 # Don't use ranlib
61616678 _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
61626679 _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
6163 lt_tool_outputfile="@TOOL_OUTPUT@"~
6164 case $lt_outputfile in
6165 *.exe|*.EXE) ;;
6166 *)
6167 lt_outputfile="$lt_outputfile.exe"
6168 lt_tool_outputfile="$lt_tool_outputfile.exe"
6169 ;;
6170 esac~
6171 func_to_tool_file "$lt_outputfile"~
6172 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
6173 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
6174 $RM "$lt_outputfile.manifest";
6175 fi'
6680 lt_tool_outputfile="@TOOL_OUTPUT@"~
6681 case $lt_outputfile in
6682 *.exe|*.EXE) ;;
6683 *)
6684 lt_outputfile=$lt_outputfile.exe
6685 lt_tool_outputfile=$lt_tool_outputfile.exe
6686 ;;
6687 esac~
6688 func_to_tool_file "$lt_outputfile"~
6689 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
6690 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
6691 $RM "$lt_outputfile.manifest";
6692 fi'
61766693 ;;
61776694 *)
61786695 # g++
61796696 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
61806697 # as there is no search path for DLLs.
61816698 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6182 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
6699 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols'
61836700 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
61846701 _LT_TAGVAR(always_export_symbols, $1)=no
61856702 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
61866703
61876704 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6188 _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'
6189 # If the export-symbols file already is a .def file (1st line
6190 # is EXPORTS), use it as is; otherwise, prepend...
6191 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6192 cp $export_symbols $output_objdir/$soname.def;
6193 else
6194 echo EXPORTS > $output_objdir/$soname.def;
6195 cat $export_symbols >> $output_objdir/$soname.def;
6196 fi~
6197 $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'
6705 _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'
6706 # If the export-symbols file already is a .def file, use it as
6707 # is; otherwise, prepend EXPORTS...
6708 _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
6709 cp $export_symbols $output_objdir/$soname.def;
6710 else
6711 echo EXPORTS > $output_objdir/$soname.def;
6712 cat $export_symbols >> $output_objdir/$soname.def;
6713 fi~
6714 $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'
61986715 else
61996716 _LT_TAGVAR(ld_shlibs, $1)=no
62006717 fi
62036720 ;;
62046721 darwin* | rhapsody*)
62056722 _LT_DARWIN_LINKER_FEATURES($1)
6723 ;;
6724
6725 os2*)
6726 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6727 _LT_TAGVAR(hardcode_minus_L, $1)=yes
6728 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6729 shrext_cmds=.dll
6730 _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
6731 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
6732 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
6733 $ECHO EXPORTS >> $output_objdir/$libname.def~
6734 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
6735 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
6736 emximp -o $lib $output_objdir/$libname.def'
6737 _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
6738 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
6739 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
6740 $ECHO EXPORTS >> $output_objdir/$libname.def~
6741 prefix_cmds="$SED"~
6742 if test EXPORTS = "`$SED 1q $export_symbols`"; then
6743 prefix_cmds="$prefix_cmds -e 1d";
6744 fi~
6745 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
6746 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
6747 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
6748 emximp -o $lib $output_objdir/$libname.def'
6749 _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
6750 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
62066751 ;;
62076752
62086753 dgux*)
62406785 ;;
62416786
62426787 haiku*)
6243 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6788 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
62446789 _LT_TAGVAR(link_all_deplibs, $1)=yes
62456790 ;;
62466791
62476792 hpux9*)
6248 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6793 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
62496794 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6250 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6795 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
62516796 _LT_TAGVAR(hardcode_direct, $1)=yes
62526797 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
62536798 # but as the default
62596804 _LT_TAGVAR(ld_shlibs, $1)=no
62606805 ;;
62616806 aCC*)
6262 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b ${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'
6807 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
62636808 # Commands to make compiler produce verbose output that lists
62646809 # what "hidden" libraries, object files and flags are used when
62656810 # linking a shared library.
62686813 # explicitly linking system object files so we need to strip them
62696814 # from the output so that they don't get included in the library
62706815 # dependencies.
6271 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
6816 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
62726817 ;;
62736818 *)
6274 if test "$GXX" = yes; then
6275 _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'
6819 if test yes = "$GXX"; then
6820 _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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
62766821 else
62776822 # FIXME: insert proper C++ library support
62786823 _LT_TAGVAR(ld_shlibs, $1)=no
62826827 ;;
62836828
62846829 hpux10*|hpux11*)
6285 if test $with_gnu_ld = no; then
6286 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6830 if test no = "$with_gnu_ld"; then
6831 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
62876832 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
62886833
62896834 case $host_cpu in
62906835 hppa*64*|ia64*)
62916836 ;;
62926837 *)
6293 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6838 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
62946839 ;;
62956840 esac
62966841 fi
63166861 aCC*)
63176862 case $host_cpu in
63186863 hppa*64*)
6319 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6864 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
63206865 ;;
63216866 ia64*)
6322 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6867 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
63236868 ;;
63246869 *)
6325 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6870 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
63266871 ;;
63276872 esac
63286873 # Commands to make compiler produce verbose output that lists
63336878 # explicitly linking system object files so we need to strip them
63346879 # from the output so that they don't get included in the library
63356880 # dependencies.
6336 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
6881 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
63376882 ;;
63386883 *)
6339 if test "$GXX" = yes; then
6340 if test $with_gnu_ld = no; then
6884 if test yes = "$GXX"; then
6885 if test no = "$with_gnu_ld"; then
63416886 case $host_cpu in
63426887 hppa*64*)
6343 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6888 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
63446889 ;;
63456890 ia64*)
6346 _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'
6891 _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'
63476892 ;;
63486893 *)
6349 _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'
6894 _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'
63506895 ;;
63516896 esac
63526897 fi
63616906 interix[[3-9]]*)
63626907 _LT_TAGVAR(hardcode_direct, $1)=no
63636908 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6364 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6365 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6909 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
6910 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
63666911 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
63676912 # Instead, shared libraries are loaded at an image base (0x10000000 by
63686913 # default) and relocated if they conflict, which is a slow very memory
63696914 # consuming and fragmenting process. To avoid this, we pick a random,
63706915 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
63716916 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
6372 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6373 _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6917 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6918 _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
63746919 ;;
63756920 irix5* | irix6*)
63766921 case $cc_basename in
63776922 CC*)
63786923 # SGI C++
6379 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
6924 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
63806925
63816926 # Archives containing C++ object files must be created using
63826927 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
63856930 _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
63866931 ;;
63876932 *)
6388 if test "$GXX" = yes; then
6389 if test "$with_gnu_ld" = no; then
6390 _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'
6933 if test yes = "$GXX"; then
6934 if test no = "$with_gnu_ld"; then
6935 _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'
63916936 else
6392 _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'
6937 _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'
63936938 fi
63946939 fi
63956940 _LT_TAGVAR(link_all_deplibs, $1)=yes
63966941 ;;
63976942 esac
6398 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6943 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
63996944 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
64006945 _LT_TAGVAR(inherit_rpath, $1)=yes
64016946 ;;
64086953 # KCC will only create a shared library if the output file
64096954 # ends with ".so" (or ".sl" for HP-UX), so rename the library
64106955 # to its proper name (with version) after linking.
6411 _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
6412 _LT_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
6956 _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
6957 _LT_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib'
64136958 # Commands to make compiler produce verbose output that lists
64146959 # what "hidden" libraries, object files and flags are used when
64156960 # linking a shared library.
64186963 # explicitly linking system object files so we need to strip them
64196964 # from the output so that they don't get included in the library
64206965 # dependencies.
6421 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
6422
6423 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6424 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6966 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
6967
6968 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
6969 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
64256970
64266971 # Archives containing C++ object files must be created using
64276972 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
64356980 # earlier do not add the objects themselves.
64366981 case `$CC -V 2>&1` in
64376982 *"Version 7."*)
6438 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6439 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6983 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
6984 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
64406985 ;;
64416986 *) # Version 8.0 or newer
64426987 tmp_idyn=
64436988 case $host_cpu in
64446989 ia64*) tmp_idyn=' -i_dynamic';;
64456990 esac
6446 _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6447 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6991 _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
6992 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
64486993 ;;
64496994 esac
64506995 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6451 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6452 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6453 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
6996 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
6997 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
6998 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive'
64546999 ;;
64557000 pgCC* | pgcpp*)
64567001 # Portland Group C++ compiler
64577002 case `$CC -V` in
64587003 *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
64597004 _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
6460 rm -rf $tpldir~
6461 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
6462 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
7005 rm -rf $tpldir~
7006 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
7007 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
64637008 _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
6464 rm -rf $tpldir~
6465 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
6466 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
6467 $RANLIB $oldlib'
7009 rm -rf $tpldir~
7010 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
7011 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
7012 $RANLIB $oldlib'
64687013 _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
6469 rm -rf $tpldir~
6470 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
6471 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
7014 rm -rf $tpldir~
7015 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
7016 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
64727017 _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
6473 rm -rf $tpldir~
6474 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
6475 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
7018 rm -rf $tpldir~
7019 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
7020 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
64767021 ;;
64777022 *) # Version 6 and above use weak symbols
6478 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
6479 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
7023 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
7024 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
64807025 ;;
64817026 esac
64827027
6483 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
6484 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6485 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
7028 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl--rpath $wl$libdir'
7029 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
7030 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
64867031 ;;
64877032 cxx*)
64887033 # Compaq C++
6489 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6490 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
7034 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
7035 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib $wl-retain-symbols-file $wl$export_symbols'
64917036
64927037 runpath_var=LD_RUN_PATH
64937038 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
65017046 # explicitly linking system object files so we need to strip them
65027047 # from the output so that they don't get included in the library
65037048 # dependencies.
6504 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
7049 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
65057050 ;;
65067051 xl* | mpixl* | bgxl*)
65077052 # IBM XL 8.0 on PPC, with GNU ld
6508 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6509 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6510 _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6511 if test "x$supports_anon_versioning" = xyes; then
7053 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
7054 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
7055 _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
7056 if test yes = "$supports_anon_versioning"; then
65127057 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
6513 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6514 echo "local: *; };" >> $output_objdir/$libname.ver~
6515 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7058 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7059 echo "local: *; };" >> $output_objdir/$libname.ver~
7060 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
65167061 fi
65177062 ;;
65187063 *)
65207065 *Sun\ C*)
65217066 # Sun C++ 5.9
65227067 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
6523 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6524 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
7068 _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
7069 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols'
65257070 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6526 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
7071 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
65277072 _LT_TAGVAR(compiler_needs_object, $1)=yes
65287073
65297074 # Not sure whether something based on
65817126 _LT_TAGVAR(ld_shlibs, $1)=yes
65827127 ;;
65837128
6584 openbsd2*)
6585 # C++ shared libraries are fairly broken
6586 _LT_TAGVAR(ld_shlibs, $1)=no
6587 ;;
6588
6589 openbsd*)
7129 openbsd* | bitrig*)
65907130 if test -f /usr/libexec/ld.so; then
65917131 _LT_TAGVAR(hardcode_direct, $1)=yes
65927132 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
65937133 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
65947134 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
6595 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6596 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6597 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
6598 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6599 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7135 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
7136 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
7137 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
7138 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
7139 _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
66007140 fi
66017141 output_verbose_link_cmd=func_echo_all
66027142 else
66127152 # KCC will only create a shared library if the output file
66137153 # ends with ".so" (or ".sl" for HP-UX), so rename the library
66147154 # to its proper name (with version) after linking.
6615 _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
6616
6617 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
7155 _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
7156
7157 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
66187158 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
66197159
66207160 # Archives containing C++ object files must be created using
66327172 cxx*)
66337173 case $host in
66347174 osf3*)
6635 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6636 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
6637 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7175 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
7176 _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
7177 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
66387178 ;;
66397179 *)
66407180 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6641 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
7181 _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
66427182 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
6643 echo "-hidden">> $lib.exp~
6644 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
6645 $RM $lib.exp'
7183 echo "-hidden">> $lib.exp~
7184 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~
7185 $RM $lib.exp'
66467186 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
66477187 ;;
66487188 esac
66577197 # explicitly linking system object files so we need to strip them
66587198 # from the output so that they don't get included in the library
66597199 # dependencies.
6660 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
7200 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
66617201 ;;
66627202 *)
6663 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6664 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
7203 if test yes,no = "$GXX,$with_gnu_ld"; then
7204 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
66657205 case $host in
66667206 osf3*)
6667 _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'
7207 _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'
66687208 ;;
66697209 *)
6670 _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'
7210 _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'
66717211 ;;
66727212 esac
66737213
6674 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7214 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
66757215 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
66767216
66777217 # Commands to make compiler produce verbose output that lists
67177257 # Sun C++ 4.2, 5.x and Centerline C++
67187258 _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
67197259 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
6720 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
7260 _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
67217261 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6722 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
7262 $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
67237263
67247264 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
67257265 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
67277267 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
67287268 *)
67297269 # The compiler driver will combine and reorder linker options,
6730 # but understands `-z linker_flag'.
7270 # but understands '-z linker_flag'.
67317271 # Supported since Solaris 2.6 (maybe 2.5.1?)
67327272 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
67337273 ;;
67447284 ;;
67457285 gcx*)
67467286 # Green Hills C++ Compiler
6747 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
7287 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
67487288
67497289 # The C++ compiler must be used to create the archive.
67507290 _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
67517291 ;;
67527292 *)
67537293 # GNU C++ compiler with Solaris linker
6754 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6755 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
7294 if test yes,no = "$GXX,$with_gnu_ld"; then
7295 _LT_TAGVAR(no_undefined_flag, $1)=' $wl-z ${wl}defs'
67567296 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
6757 _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'
7297 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
67587298 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6759 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
7299 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
67607300
67617301 # Commands to make compiler produce verbose output that lists
67627302 # what "hidden" libraries, object files and flags are used when
67637303 # linking a shared library.
67647304 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
67657305 else
6766 # g++ 2.7 appears to require `-G' NOT `-shared' on this
7306 # g++ 2.7 appears to require '-G' NOT '-shared' on this
67677307 # platform.
6768 _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
7308 _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
67697309 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6770 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
7310 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
67717311
67727312 # Commands to make compiler produce verbose output that lists
67737313 # what "hidden" libraries, object files and flags are used when
67757315 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
67767316 fi
67777317
6778 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
7318 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $wl$libdir'
67797319 case $host_os in
67807320 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
67817321 *)
6782 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
7322 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
67837323 ;;
67847324 esac
67857325 fi
67887328 ;;
67897329
67907330 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
6791 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
7331 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
67927332 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
67937333 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
67947334 runpath_var='LD_RUN_PATH'
67957335
67967336 case $cc_basename in
67977337 CC*)
6798 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6799 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7338 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7339 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
68007340 ;;
68017341 *)
6802 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6803 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7342 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7343 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
68047344 ;;
68057345 esac
68067346 ;;
68077347
68087348 sysv5* | sco3.2v5* | sco5v6*)
6809 # Note: We can NOT use -z defs as we might desire, because we do not
7349 # Note: We CANNOT use -z defs as we might desire, because we do not
68107350 # link with -lc, and that would cause any symbols used from libc to
68117351 # always be unresolved, which means just about no library would
68127352 # ever link correctly. If we're not using GNU ld we use -z text
68137353 # though, which does catch some bad symbols but isn't as heavy-handed
68147354 # as -z defs.
6815 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6816 _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
7355 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
7356 _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs'
68177357 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
68187358 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6819 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
7359 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir'
68207360 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
68217361 _LT_TAGVAR(link_all_deplibs, $1)=yes
6822 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
7362 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport'
68237363 runpath_var='LD_RUN_PATH'
68247364
68257365 case $cc_basename in
68267366 CC*)
6827 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6828 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7367 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7368 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
68297369 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~
6830 '"$_LT_TAGVAR(old_archive_cmds, $1)"
7370 '"$_LT_TAGVAR(old_archive_cmds, $1)"
68317371 _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
6832 '"$_LT_TAGVAR(reload_cmds, $1)"
7372 '"$_LT_TAGVAR(reload_cmds, $1)"
68337373 ;;
68347374 *)
6835 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6836 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7375 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7376 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
68377377 ;;
68387378 esac
68397379 ;;
68647404 esac
68657405
68667406 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
6867 test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
6868
6869 _LT_TAGVAR(GCC, $1)="$GXX"
6870 _LT_TAGVAR(LD, $1)="$LD"
7407 test no = "$_LT_TAGVAR(ld_shlibs, $1)" && can_build_shared=no
7408
7409 _LT_TAGVAR(GCC, $1)=$GXX
7410 _LT_TAGVAR(LD, $1)=$LD
68717411
68727412 ## CAVEAT EMPTOR:
68737413 ## There is no encapsulation within the following macros, do not change
68947434 lt_cv_path_LD=$lt_save_path_LD
68957435 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
68967436 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
6897 fi # test "$_lt_caught_CXX_error" != yes
7437 fi # test yes != "$_lt_caught_CXX_error"
68987438
68997439 AC_LANG_POP
69007440 ])# _LT_LANG_CXX_CONFIG
69167456 AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])
69177457 func_stripname_cnf ()
69187458 {
6919 case ${2} in
6920 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
6921 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
7459 case @S|@2 in
7460 .*) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%\\\\@S|@2\$%%"`;;
7461 *) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%@S|@2\$%%"`;;
69227462 esac
69237463 } # func_stripname_cnf
69247464 ])# _LT_FUNC_STRIPNAME_CNF
7465
69257466
69267467 # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
69277468 # ---------------------------------
70067547 pre_test_object_deps_done=no
70077548
70087549 for p in `eval "$output_verbose_link_cmd"`; do
7009 case ${prev}${p} in
7550 case $prev$p in
70107551
70117552 -L* | -R* | -l*)
70127553 # Some compilers place space between "-{L,R}" and the path.
70137554 # Remove the space.
7014 if test $p = "-L" ||
7015 test $p = "-R"; then
7555 if test x-L = "$p" ||
7556 test x-R = "$p"; then
70167557 prev=$p
70177558 continue
70187559 fi
70287569 case $p in
70297570 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
70307571 esac
7031 if test "$pre_test_object_deps_done" = no; then
7032 case ${prev} in
7572 if test no = "$pre_test_object_deps_done"; then
7573 case $prev in
70337574 -L | -R)
70347575 # Internal compiler library paths should come after those
70357576 # provided the user. The postdeps already come after the
70367577 # user supplied libs so there is no need to process them.
70377578 if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
7038 _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
7579 _LT_TAGVAR(compiler_lib_search_path, $1)=$prev$p
70397580 else
7040 _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
7581 _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} $prev$p"
70417582 fi
70427583 ;;
70437584 # The "-l" case would never come before the object being
70457586 esac
70467587 else
70477588 if test -z "$_LT_TAGVAR(postdeps, $1)"; then
7048 _LT_TAGVAR(postdeps, $1)="${prev}${p}"
7589 _LT_TAGVAR(postdeps, $1)=$prev$p
70497590 else
7050 _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
7591 _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} $prev$p"
70517592 fi
70527593 fi
70537594 prev=
70627603 continue
70637604 fi
70647605
7065 if test "$pre_test_object_deps_done" = no; then
7606 if test no = "$pre_test_object_deps_done"; then
70667607 if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
7067 _LT_TAGVAR(predep_objects, $1)="$p"
7608 _LT_TAGVAR(predep_objects, $1)=$p
70687609 else
70697610 _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
70707611 fi
70717612 else
70727613 if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
7073 _LT_TAGVAR(postdep_objects, $1)="$p"
7614 _LT_TAGVAR(postdep_objects, $1)=$p
70747615 else
70757616 _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
70767617 fi
71017642 _LT_TAGVAR(postdep_objects,$1)=
71027643 _LT_TAGVAR(postdeps,$1)=
71037644 ;;
7104
7105 linux*)
7106 case `$CC -V 2>&1 | sed 5q` in
7107 *Sun\ C*)
7108 # Sun C++ 5.9
7109
7110 # The more standards-conforming stlport4 library is
7111 # incompatible with the Cstd library. Avoid specifying
7112 # it if it's in CXXFLAGS. Ignore libCrun as
7113 # -library=stlport4 depends on it.
7114 case " $CXX $CXXFLAGS " in
7115 *" -library=stlport4 "*)
7116 solaris_use_stlport4=yes
7117 ;;
7118 esac
7119
7120 if test "$solaris_use_stlport4" != yes; then
7121 _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
7122 fi
7123 ;;
7124 esac
7125 ;;
7126
7127 solaris*)
7128 case $cc_basename in
7129 CC* | sunCC*)
7130 # The more standards-conforming stlport4 library is
7131 # incompatible with the Cstd library. Avoid specifying
7132 # it if it's in CXXFLAGS. Ignore libCrun as
7133 # -library=stlport4 depends on it.
7134 case " $CXX $CXXFLAGS " in
7135 *" -library=stlport4 "*)
7136 solaris_use_stlport4=yes
7137 ;;
7138 esac
7139
7140 # Adding this requires a known-good setup of shared libraries for
7141 # Sun compiler versions before 5.6, else PIC objects from an old
7142 # archive will be linked into the output, leading to subtle bugs.
7143 if test "$solaris_use_stlport4" != yes; then
7144 _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
7145 fi
7146 ;;
7147 esac
7148 ;;
71497645 esac
71507646 ])
71517647
71547650 esac
71557651 _LT_TAGVAR(compiler_lib_search_dirs, $1)=
71567652 if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
7157 _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
7653 _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | $SED -e 's! -L! !g' -e 's!^ !!'`
71587654 fi
71597655 _LT_TAGDECL([], [compiler_lib_search_dirs], [1],
71607656 [The directories searched by this compiler when creating a shared library])
71747670 # --------------------------
71757671 # Ensure that the configuration variables for a Fortran 77 compiler are
71767672 # suitably defined. These variables are subsequently used by _LT_CONFIG
7177 # to write the compiler configuration to `libtool'.
7673 # to write the compiler configuration to 'libtool'.
71787674 m4_defun([_LT_LANG_F77_CONFIG],
71797675 [AC_LANG_PUSH(Fortran 77)
7180 if test -z "$F77" || test "X$F77" = "Xno"; then
7676 if test -z "$F77" || test no = "$F77"; then
71817677 _lt_disable_F77=yes
71827678 fi
71837679
72147710 # the F77 compiler isn't working. Some variables (like enable_shared)
72157711 # are currently assumed to apply to all compilers on this platform,
72167712 # and will be corrupted by setting them based on a non-working compiler.
7217 if test "$_lt_disable_F77" != yes; then
7713 if test yes != "$_lt_disable_F77"; then
72187714 # Code to be used in simple compile tests
72197715 lt_simple_compile_test_code="\
72207716 subroutine t
72367732 _LT_LINKER_BOILERPLATE
72377733
72387734 # Allow CC to be a program name with arguments.
7239 lt_save_CC="$CC"
7735 lt_save_CC=$CC
72407736 lt_save_GCC=$GCC
72417737 lt_save_CFLAGS=$CFLAGS
72427738 CC=${F77-"f77"}
72507746 AC_MSG_RESULT([$can_build_shared])
72517747
72527748 AC_MSG_CHECKING([whether to build shared libraries])
7253 test "$can_build_shared" = "no" && enable_shared=no
7749 test no = "$can_build_shared" && enable_shared=no
72547750
72557751 # On AIX, shared libraries and static libraries use the same namespace, and
72567752 # are all built from PIC.
72577753 case $host_os in
72587754 aix3*)
7259 test "$enable_shared" = yes && enable_static=no
7755 test yes = "$enable_shared" && enable_static=no
72607756 if test -n "$RANLIB"; then
72617757 archive_cmds="$archive_cmds~\$RANLIB \$lib"
72627758 postinstall_cmds='$RANLIB $lib'
72637759 fi
72647760 ;;
72657761 aix[[4-9]]*)
7266 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7267 test "$enable_shared" = yes && enable_static=no
7762 if test ia64 != "$host_cpu"; then
7763 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
7764 yes,aix,yes) ;; # shared object as lib.so file only
7765 yes,svr4,*) ;; # shared object as lib.so archive member only
7766 yes,*) enable_static=no ;; # shared object in lib.a archive as well
7767 esac
72687768 fi
72697769 ;;
72707770 esac
72727772
72737773 AC_MSG_CHECKING([whether to build static libraries])
72747774 # Make sure either enable_shared or enable_static is yes.
7275 test "$enable_shared" = yes || enable_static=yes
7775 test yes = "$enable_shared" || enable_static=yes
72767776 AC_MSG_RESULT([$enable_static])
72777777
7278 _LT_TAGVAR(GCC, $1)="$G77"
7279 _LT_TAGVAR(LD, $1)="$LD"
7778 _LT_TAGVAR(GCC, $1)=$G77
7779 _LT_TAGVAR(LD, $1)=$LD
72807780
72817781 ## CAVEAT EMPTOR:
72827782 ## There is no encapsulation within the following macros, do not change
72937793 fi # test -n "$compiler"
72947794
72957795 GCC=$lt_save_GCC
7296 CC="$lt_save_CC"
7297 CFLAGS="$lt_save_CFLAGS"
7298 fi # test "$_lt_disable_F77" != yes
7796 CC=$lt_save_CC
7797 CFLAGS=$lt_save_CFLAGS
7798 fi # test yes != "$_lt_disable_F77"
72997799
73007800 AC_LANG_POP
73017801 ])# _LT_LANG_F77_CONFIG
73057805 # -------------------------
73067806 # Ensure that the configuration variables for a Fortran compiler are
73077807 # suitably defined. These variables are subsequently used by _LT_CONFIG
7308 # to write the compiler configuration to `libtool'.
7808 # to write the compiler configuration to 'libtool'.
73097809 m4_defun([_LT_LANG_FC_CONFIG],
73107810 [AC_LANG_PUSH(Fortran)
73117811
7312 if test -z "$FC" || test "X$FC" = "Xno"; then
7812 if test -z "$FC" || test no = "$FC"; then
73137813 _lt_disable_FC=yes
73147814 fi
73157815
73467846 # the FC compiler isn't working. Some variables (like enable_shared)
73477847 # are currently assumed to apply to all compilers on this platform,
73487848 # and will be corrupted by setting them based on a non-working compiler.
7349 if test "$_lt_disable_FC" != yes; then
7849 if test yes != "$_lt_disable_FC"; then
73507850 # Code to be used in simple compile tests
73517851 lt_simple_compile_test_code="\
73527852 subroutine t
73687868 _LT_LINKER_BOILERPLATE
73697869
73707870 # Allow CC to be a program name with arguments.
7371 lt_save_CC="$CC"
7871 lt_save_CC=$CC
73727872 lt_save_GCC=$GCC
73737873 lt_save_CFLAGS=$CFLAGS
73747874 CC=${FC-"f95"}
73847884 AC_MSG_RESULT([$can_build_shared])
73857885
73867886 AC_MSG_CHECKING([whether to build shared libraries])
7387 test "$can_build_shared" = "no" && enable_shared=no
7887 test no = "$can_build_shared" && enable_shared=no
73887888
73897889 # On AIX, shared libraries and static libraries use the same namespace, and
73907890 # are all built from PIC.
73917891 case $host_os in
73927892 aix3*)
7393 test "$enable_shared" = yes && enable_static=no
7893 test yes = "$enable_shared" && enable_static=no
73947894 if test -n "$RANLIB"; then
73957895 archive_cmds="$archive_cmds~\$RANLIB \$lib"
73967896 postinstall_cmds='$RANLIB $lib'
73977897 fi
73987898 ;;
73997899 aix[[4-9]]*)
7400 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7401 test "$enable_shared" = yes && enable_static=no
7900 if test ia64 != "$host_cpu"; then
7901 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
7902 yes,aix,yes) ;; # shared object as lib.so file only
7903 yes,svr4,*) ;; # shared object as lib.so archive member only
7904 yes,*) enable_static=no ;; # shared object in lib.a archive as well
7905 esac
74027906 fi
74037907 ;;
74047908 esac
74067910
74077911 AC_MSG_CHECKING([whether to build static libraries])
74087912 # Make sure either enable_shared or enable_static is yes.
7409 test "$enable_shared" = yes || enable_static=yes
7913 test yes = "$enable_shared" || enable_static=yes
74107914 AC_MSG_RESULT([$enable_static])
74117915
7412 _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
7413 _LT_TAGVAR(LD, $1)="$LD"
7916 _LT_TAGVAR(GCC, $1)=$ac_cv_fc_compiler_gnu
7917 _LT_TAGVAR(LD, $1)=$LD
74147918
74157919 ## CAVEAT EMPTOR:
74167920 ## There is no encapsulation within the following macros, do not change
74307934 GCC=$lt_save_GCC
74317935 CC=$lt_save_CC
74327936 CFLAGS=$lt_save_CFLAGS
7433 fi # test "$_lt_disable_FC" != yes
7937 fi # test yes != "$_lt_disable_FC"
74347938
74357939 AC_LANG_POP
74367940 ])# _LT_LANG_FC_CONFIG
74407944 # --------------------------
74417945 # Ensure that the configuration variables for the GNU Java Compiler compiler
74427946 # are suitably defined. These variables are subsequently used by _LT_CONFIG
7443 # to write the compiler configuration to `libtool'.
7947 # to write the compiler configuration to 'libtool'.
74447948 m4_defun([_LT_LANG_GCJ_CONFIG],
74457949 [AC_REQUIRE([LT_PROG_GCJ])dnl
74467950 AC_LANG_SAVE
74747978 CFLAGS=$GCJFLAGS
74757979 compiler=$CC
74767980 _LT_TAGVAR(compiler, $1)=$CC
7477 _LT_TAGVAR(LD, $1)="$LD"
7981 _LT_TAGVAR(LD, $1)=$LD
74787982 _LT_CC_BASENAME([$compiler])
74797983
74807984 # GCJ did not exist at the time GCC didn't implicitly link libc in.
75118015 # --------------------------
75128016 # Ensure that the configuration variables for the GNU Go compiler
75138017 # are suitably defined. These variables are subsequently used by _LT_CONFIG
7514 # to write the compiler configuration to `libtool'.
8018 # to write the compiler configuration to 'libtool'.
75158019 m4_defun([_LT_LANG_GO_CONFIG],
75168020 [AC_REQUIRE([LT_PROG_GO])dnl
75178021 AC_LANG_SAVE
75458049 CFLAGS=$GOFLAGS
75468050 compiler=$CC
75478051 _LT_TAGVAR(compiler, $1)=$CC
7548 _LT_TAGVAR(LD, $1)="$LD"
8052 _LT_TAGVAR(LD, $1)=$LD
75498053 _LT_CC_BASENAME([$compiler])
75508054
75518055 # Go did not exist at the time GCC didn't implicitly link libc in.
75828086 # -------------------------
75838087 # Ensure that the configuration variables for the Windows resource compiler
75848088 # are suitably defined. These variables are subsequently used by _LT_CONFIG
7585 # to write the compiler configuration to `libtool'.
8089 # to write the compiler configuration to 'libtool'.
75868090 m4_defun([_LT_LANG_RC_CONFIG],
75878091 [AC_REQUIRE([LT_PROG_RC])dnl
75888092 AC_LANG_SAVE
75988102 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
75998103
76008104 # Code to be used in simple link tests
7601 lt_simple_link_test_code="$lt_simple_compile_test_code"
8105 lt_simple_link_test_code=$lt_simple_compile_test_code
76028106
76038107 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
76048108 _LT_TAG_COMPILER
76088112 _LT_LINKER_BOILERPLATE
76098113
76108114 # Allow CC to be a program name with arguments.
7611 lt_save_CC="$CC"
8115 lt_save_CC=$CC
76128116 lt_save_CFLAGS=$CFLAGS
76138117 lt_save_GCC=$GCC
76148118 GCC=
76378141 [m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
76388142 [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
76398143 [AC_CHECK_TOOL(GCJ, gcj,)
7640 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
8144 test set = "${GCJFLAGS+set}" || GCJFLAGS="-g -O2"
76418145 AC_SUBST(GCJFLAGS)])])[]dnl
76428146 ])
76438147
77488252 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
77498253 # along with /bin/sed that truncates output.
77508254 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
7751 test ! -f $lt_ac_sed && continue
8255 test ! -f "$lt_ac_sed" && continue
77528256 cat /dev/null > conftest.in
77538257 lt_ac_count=0
77548258 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
77658269 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
77668270 cmp -s conftest.out conftest.nl || break
77678271 # 10000 chars as input seems more than enough
7768 test $lt_ac_count -gt 10 && break
8272 test 10 -lt "$lt_ac_count" && break
77698273 lt_ac_count=`expr $lt_ac_count + 1`
7770 if test $lt_ac_count -gt $lt_ac_max; then
8274 if test "$lt_ac_count" -gt "$lt_ac_max"; then
77718275 lt_ac_max=$lt_ac_count
77728276 lt_cv_path_SED=$lt_ac_sed
77738277 fi
77918295 # Find out whether the shell is Bourne or XSI compatible,
77928296 # or has some other useful features.
77938297 m4_defun([_LT_CHECK_SHELL_FEATURES],
7794 [AC_MSG_CHECKING([whether the shell understands some XSI constructs])
7795 # Try some XSI features
7796 xsi_shell=no
7797 ( _lt_dummy="a/b/c"
7798 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
7799 = c,a/b,b/c, \
7800 && eval 'test $(( 1 + 1 )) -eq 2 \
7801 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7802 && xsi_shell=yes
7803 AC_MSG_RESULT([$xsi_shell])
7804 _LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
7805
7806 AC_MSG_CHECKING([whether the shell understands "+="])
7807 lt_shell_append=no
7808 ( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
7809 >/dev/null 2>&1 \
7810 && lt_shell_append=yes
7811 AC_MSG_RESULT([$lt_shell_append])
7812 _LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
7813
7814 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8298 [if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
78158299 lt_unset=unset
78168300 else
78178301 lt_unset=false
78358319 ])# _LT_CHECK_SHELL_FEATURES
78368320
78378321
7838 # _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY)
7839 # ------------------------------------------------------
7840 # In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and
7841 # '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY.
7842 m4_defun([_LT_PROG_FUNCTION_REPLACE],
7843 [dnl {
7844 sed -e '/^$1 ()$/,/^} # $1 /c\
7845 $1 ()\
7846 {\
7847 m4_bpatsubsts([$2], [$], [\\], [^\([ ]\)], [\\\1])
7848 } # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \
7849 && mv -f "$cfgfile.tmp" "$cfgfile" \
7850 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7851 test 0 -eq $? || _lt_function_replace_fail=:
7852 ])
7853
7854
7855 # _LT_PROG_REPLACE_SHELLFNS
7856 # -------------------------
7857 # Replace existing portable implementations of several shell functions with
7858 # equivalent extended shell implementations where those features are available..
7859 m4_defun([_LT_PROG_REPLACE_SHELLFNS],
7860 [if test x"$xsi_shell" = xyes; then
7861 _LT_PROG_FUNCTION_REPLACE([func_dirname], [dnl
7862 case ${1} in
7863 */*) func_dirname_result="${1%/*}${2}" ;;
7864 * ) func_dirname_result="${3}" ;;
7865 esac])
7866
7867 _LT_PROG_FUNCTION_REPLACE([func_basename], [dnl
7868 func_basename_result="${1##*/}"])
7869
7870 _LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl
7871 case ${1} in
7872 */*) func_dirname_result="${1%/*}${2}" ;;
7873 * ) func_dirname_result="${3}" ;;
7874 esac
7875 func_basename_result="${1##*/}"])
7876
7877 _LT_PROG_FUNCTION_REPLACE([func_stripname], [dnl
7878 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
7879 # positional parameters, so assign one to ordinary parameter first.
7880 func_stripname_result=${3}
7881 func_stripname_result=${func_stripname_result#"${1}"}
7882 func_stripname_result=${func_stripname_result%"${2}"}])
7883
7884 _LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl
7885 func_split_long_opt_name=${1%%=*}
7886 func_split_long_opt_arg=${1#*=}])
7887
7888 _LT_PROG_FUNCTION_REPLACE([func_split_short_opt], [dnl
7889 func_split_short_opt_arg=${1#??}
7890 func_split_short_opt_name=${1%"$func_split_short_opt_arg"}])
7891
7892 _LT_PROG_FUNCTION_REPLACE([func_lo2o], [dnl
7893 case ${1} in
7894 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
7895 *) func_lo2o_result=${1} ;;
7896 esac])
7897
7898 _LT_PROG_FUNCTION_REPLACE([func_xform], [ func_xform_result=${1%.*}.lo])
7899
7900 _LT_PROG_FUNCTION_REPLACE([func_arith], [ func_arith_result=$(( $[*] ))])
7901
7902 _LT_PROG_FUNCTION_REPLACE([func_len], [ func_len_result=${#1}])
7903 fi
7904
7905 if test x"$lt_shell_append" = xyes; then
7906 _LT_PROG_FUNCTION_REPLACE([func_append], [ eval "${1}+=\\${2}"])
7907
7908 _LT_PROG_FUNCTION_REPLACE([func_append_quoted], [dnl
7909 func_quote_for_eval "${2}"
7910 dnl m4 expansion turns \\\\ into \\, and then the shell eval turns that into \
7911 eval "${1}+=\\\\ \\$func_quote_for_eval_result"])
7912
7913 # Save a `func_append' function call where possible by direct use of '+='
7914 sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
7915 && mv -f "$cfgfile.tmp" "$cfgfile" \
7916 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7917 test 0 -eq $? || _lt_function_replace_fail=:
7918 else
7919 # Save a `func_append' function call even when '+=' is not available
7920 sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
7921 && mv -f "$cfgfile.tmp" "$cfgfile" \
7922 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7923 test 0 -eq $? || _lt_function_replace_fail=:
7924 fi
7925
7926 if test x"$_lt_function_replace_fail" = x":"; then
7927 AC_MSG_WARN([Unable to substitute extended shell functions in $ofile])
7928 fi
7929 ])
7930
79318322 # _LT_PATH_CONVERSION_FUNCTIONS
79328323 # -----------------------------
7933 # Determine which file name conversion functions should be used by
8324 # Determine what file name conversion functions should be used by
79348325 # func_to_host_file (and, implicitly, by func_to_host_path). These are needed
79358326 # for certain cross-compile configurations and native mingw.
79368327 m4_defun([_LT_PATH_CONVERSION_FUNCTIONS],
00 # Helper functions for option handling. -*- Autoconf -*-
11 #
2 # Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
3 # Inc.
2 # Copyright (C) 2004-2005, 2007-2009, 2011-2015 Free Software
3 # Foundation, Inc.
44 # Written by Gary V. Vaughan, 2004
55 #
66 # This file is free software; the Free Software Foundation gives
77 # unlimited permission to copy and/or distribute it, with or without
88 # modifications, as long as this notice is preserved.
99
10 # serial 7 ltoptions.m4
10 # serial 8 ltoptions.m4
1111
1212 # This is to help aclocal find these macros, as it can't see m4_define.
1313 AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
2828 [m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
2929 m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
3030 _LT_MANGLE_DEFUN([$1], [$2]),
31 [m4_warning([Unknown $1 option `$2'])])[]dnl
31 [m4_warning([Unknown $1 option '$2'])])[]dnl
3232 ])
3333
3434
7474 dnl
7575 dnl If no reference was made to various pairs of opposing options, then
7676 dnl we run the default mode handler for the pair. For example, if neither
77 dnl `shared' nor `disable-shared' was passed, we enable building of shared
77 dnl 'shared' nor 'disable-shared' was passed, we enable building of shared
7878 dnl archives by default:
7979 _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
8080 _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
8181 _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
8282 _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
83 [_LT_ENABLE_FAST_INSTALL])
83 [_LT_ENABLE_FAST_INSTALL])
84 _LT_UNLESS_OPTIONS([LT_INIT], [aix-soname=aix aix-soname=both aix-soname=svr4],
85 [_LT_WITH_AIX_SONAME([aix])])
8486 ])
8587 ])# _LT_SET_OPTIONS
8688
111113 [_LT_SET_OPTION([LT_INIT], [dlopen])
112114 AC_DIAGNOSE([obsolete],
113115 [$0: Remove this warning and the call to _LT_SET_OPTION when you
114 put the `dlopen' option into LT_INIT's first parameter.])
116 put the 'dlopen' option into LT_INIT's first parameter.])
115117 ])
116118
117119 dnl aclocal-1.4 backwards compatibility:
147149 _LT_SET_OPTION([LT_INIT], [win32-dll])
148150 AC_DIAGNOSE([obsolete],
149151 [$0: Remove this warning and the call to _LT_SET_OPTION when you
150 put the `win32-dll' option into LT_INIT's first parameter.])
152 put the 'win32-dll' option into LT_INIT's first parameter.])
151153 ])
152154
153155 dnl aclocal-1.4 backwards compatibility:
156158
157159 # _LT_ENABLE_SHARED([DEFAULT])
158160 # ----------------------------
159 # implement the --enable-shared flag, and supports the `shared' and
160 # `disable-shared' LT_INIT options.
161 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
161 # implement the --enable-shared flag, and supports the 'shared' and
162 # 'disable-shared' LT_INIT options.
163 # DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'.
162164 m4_define([_LT_ENABLE_SHARED],
163165 [m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
164166 AC_ARG_ENABLE([shared],
171173 *)
172174 enable_shared=no
173175 # Look at the argument we got. We use all the common list separators.
174 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
176 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
175177 for pkg in $enableval; do
176 IFS="$lt_save_ifs"
178 IFS=$lt_save_ifs
177179 if test "X$pkg" = "X$p"; then
178180 enable_shared=yes
179181 fi
180182 done
181 IFS="$lt_save_ifs"
183 IFS=$lt_save_ifs
182184 ;;
183185 esac],
184186 [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
210212
211213 # _LT_ENABLE_STATIC([DEFAULT])
212214 # ----------------------------
213 # implement the --enable-static flag, and support the `static' and
214 # `disable-static' LT_INIT options.
215 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
215 # implement the --enable-static flag, and support the 'static' and
216 # 'disable-static' LT_INIT options.
217 # DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'.
216218 m4_define([_LT_ENABLE_STATIC],
217219 [m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
218220 AC_ARG_ENABLE([static],
225227 *)
226228 enable_static=no
227229 # Look at the argument we got. We use all the common list separators.
228 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
230 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
229231 for pkg in $enableval; do
230 IFS="$lt_save_ifs"
232 IFS=$lt_save_ifs
231233 if test "X$pkg" = "X$p"; then
232234 enable_static=yes
233235 fi
234236 done
235 IFS="$lt_save_ifs"
237 IFS=$lt_save_ifs
236238 ;;
237239 esac],
238240 [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
264266
265267 # _LT_ENABLE_FAST_INSTALL([DEFAULT])
266268 # ----------------------------------
267 # implement the --enable-fast-install flag, and support the `fast-install'
268 # and `disable-fast-install' LT_INIT options.
269 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
269 # implement the --enable-fast-install flag, and support the 'fast-install'
270 # and 'disable-fast-install' LT_INIT options.
271 # DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'.
270272 m4_define([_LT_ENABLE_FAST_INSTALL],
271273 [m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
272274 AC_ARG_ENABLE([fast-install],
279281 *)
280282 enable_fast_install=no
281283 # Look at the argument we got. We use all the common list separators.
282 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
284 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
283285 for pkg in $enableval; do
284 IFS="$lt_save_ifs"
286 IFS=$lt_save_ifs
285287 if test "X$pkg" = "X$p"; then
286288 enable_fast_install=yes
287289 fi
288290 done
289 IFS="$lt_save_ifs"
291 IFS=$lt_save_ifs
290292 ;;
291293 esac],
292294 [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
303305 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
304306 AC_DIAGNOSE([obsolete],
305307 [$0: Remove this warning and the call to _LT_SET_OPTION when you put
306 the `fast-install' option into LT_INIT's first parameter.])
308 the 'fast-install' option into LT_INIT's first parameter.])
307309 ])
308310
309311 AU_DEFUN([AC_DISABLE_FAST_INSTALL],
310312 [_LT_SET_OPTION([LT_INIT], [disable-fast-install])
311313 AC_DIAGNOSE([obsolete],
312314 [$0: Remove this warning and the call to _LT_SET_OPTION when you put
313 the `disable-fast-install' option into LT_INIT's first parameter.])
315 the 'disable-fast-install' option into LT_INIT's first parameter.])
314316 ])
315317
316318 dnl aclocal-1.4 backwards compatibility:
318320 dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
319321
320322
323 # _LT_WITH_AIX_SONAME([DEFAULT])
324 # ----------------------------------
325 # implement the --with-aix-soname flag, and support the `aix-soname=aix'
326 # and `aix-soname=both' and `aix-soname=svr4' LT_INIT options. DEFAULT
327 # is either `aix', `both' or `svr4'. If omitted, it defaults to `aix'.
328 m4_define([_LT_WITH_AIX_SONAME],
329 [m4_define([_LT_WITH_AIX_SONAME_DEFAULT], [m4_if($1, svr4, svr4, m4_if($1, both, both, aix))])dnl
330 shared_archive_member_spec=
331 case $host,$enable_shared in
332 power*-*-aix[[5-9]]*,yes)
333 AC_MSG_CHECKING([which variant of shared library versioning to provide])
334 AC_ARG_WITH([aix-soname],
335 [AS_HELP_STRING([--with-aix-soname=aix|svr4|both],
336 [shared library versioning (aka "SONAME") variant to provide on AIX, @<:@default=]_LT_WITH_AIX_SONAME_DEFAULT[@:>@.])],
337 [case $withval in
338 aix|svr4|both)
339 ;;
340 *)
341 AC_MSG_ERROR([Unknown argument to --with-aix-soname])
342 ;;
343 esac
344 lt_cv_with_aix_soname=$with_aix_soname],
345 [AC_CACHE_VAL([lt_cv_with_aix_soname],
346 [lt_cv_with_aix_soname=]_LT_WITH_AIX_SONAME_DEFAULT)
347 with_aix_soname=$lt_cv_with_aix_soname])
348 AC_MSG_RESULT([$with_aix_soname])
349 if test aix != "$with_aix_soname"; then
350 # For the AIX way of multilib, we name the shared archive member
351 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
352 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
353 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
354 # the AIX toolchain works better with OBJECT_MODE set (default 32).
355 if test 64 = "${OBJECT_MODE-32}"; then
356 shared_archive_member_spec=shr_64
357 else
358 shared_archive_member_spec=shr
359 fi
360 fi
361 ;;
362 *)
363 with_aix_soname=aix
364 ;;
365 esac
366
367 _LT_DECL([], [shared_archive_member_spec], [0],
368 [Shared archive member basename, for filename based shared library versioning on AIX])dnl
369 ])# _LT_WITH_AIX_SONAME
370
371 LT_OPTION_DEFINE([LT_INIT], [aix-soname=aix], [_LT_WITH_AIX_SONAME([aix])])
372 LT_OPTION_DEFINE([LT_INIT], [aix-soname=both], [_LT_WITH_AIX_SONAME([both])])
373 LT_OPTION_DEFINE([LT_INIT], [aix-soname=svr4], [_LT_WITH_AIX_SONAME([svr4])])
374
375
321376 # _LT_WITH_PIC([MODE])
322377 # --------------------
323 # implement the --with-pic flag, and support the `pic-only' and `no-pic'
378 # implement the --with-pic flag, and support the 'pic-only' and 'no-pic'
324379 # LT_INIT options.
325 # MODE is either `yes' or `no'. If omitted, it defaults to `both'.
380 # MODE is either 'yes' or 'no'. If omitted, it defaults to 'both'.
326381 m4_define([_LT_WITH_PIC],
327382 [AC_ARG_WITH([pic],
328383 [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@],
333388 *)
334389 pic_mode=default
335390 # Look at the argument we got. We use all the common list separators.
336 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
391 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
337392 for lt_pkg in $withval; do
338 IFS="$lt_save_ifs"
393 IFS=$lt_save_ifs
339394 if test "X$lt_pkg" = "X$lt_p"; then
340395 pic_mode=yes
341396 fi
342397 done
343 IFS="$lt_save_ifs"
398 IFS=$lt_save_ifs
344399 ;;
345400 esac],
346 [pic_mode=default])
347
348 test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
401 [pic_mode=m4_default([$1], [default])])
349402
350403 _LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
351404 ])# _LT_WITH_PIC
358411 [_LT_SET_OPTION([LT_INIT], [pic-only])
359412 AC_DIAGNOSE([obsolete],
360413 [$0: Remove this warning and the call to _LT_SET_OPTION when you
361 put the `pic-only' option into LT_INIT's first parameter.])
414 put the 'pic-only' option into LT_INIT's first parameter.])
362415 ])
363416
364417 dnl aclocal-1.4 backwards compatibility:
00 # ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
11 #
2 # Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
2 # Copyright (C) 2004-2005, 2007-2008, 2011-2015 Free Software
3 # Foundation, Inc.
34 # Written by Gary V. Vaughan, 2004
45 #
56 # This file is free software; the Free Software Foundation gives
3233 # ------------
3334 # Manipulate m4 lists.
3435 # These macros are necessary as long as will still need to support
35 # Autoconf-2.59 which quotes differently.
36 # Autoconf-2.59, which quotes differently.
3637 m4_define([lt_car], [[$1]])
3738 m4_define([lt_cdr],
3839 [m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
4344
4445 # lt_append(MACRO-NAME, STRING, [SEPARATOR])
4546 # ------------------------------------------
46 # Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
47 # Redefine MACRO-NAME to hold its former content plus 'SEPARATOR''STRING'.
4748 # Note that neither SEPARATOR nor STRING are expanded; they are appended
4849 # to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
4950 # No SEPARATOR is output if MACRO-NAME was previously undefined (different
00 # ltversion.m4 -- version numbers -*- Autoconf -*-
11 #
2 # Copyright (C) 2004 Free Software Foundation, Inc.
2 # Copyright (C) 2004, 2011-2015 Free Software Foundation, Inc.
33 # Written by Scott James Remnant, 2004
44 #
55 # This file is free software; the Free Software Foundation gives
88
99 # @configure_input@
1010
11 # serial 3337 ltversion.m4
11 # serial 4179 ltversion.m4
1212 # This file is part of GNU Libtool
1313
14 m4_define([LT_PACKAGE_VERSION], [2.4.2])
15 m4_define([LT_PACKAGE_REVISION], [1.3337])
14 m4_define([LT_PACKAGE_VERSION], [2.4.6])
15 m4_define([LT_PACKAGE_REVISION], [2.4.6])
1616
1717 AC_DEFUN([LTVERSION_VERSION],
18 [macro_version='2.4.2'
19 macro_revision='1.3337'
18 [macro_version='2.4.6'
19 macro_revision='2.4.6'
2020 _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
2121 _LT_DECL(, macro_revision, 0)
2222 ])
00 # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
11 #
2 # Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
2 # Copyright (C) 2004-2005, 2007, 2009, 2011-2015 Free Software
3 # Foundation, Inc.
34 # Written by Scott James Remnant, 2004.
45 #
56 # This file is free software; the Free Software Foundation gives
1011
1112 # These exist entirely to fool aclocal when bootstrapping libtool.
1213 #
13 # In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
14 # In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN),
1415 # which have later been changed to m4_define as they aren't part of the
1516 # exported API, or moved to Autoconf or Automake where they belong.
1617 #
2425 # included after everything else. This provides aclocal with the
2526 # AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
2627 # because those macros already exist, or will be overwritten later.
27 # We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
28 # We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
2829 #
2930 # Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
3031 # Yes, that means every name once taken will need to remain here until
256256 LIPO = @LIPO@
257257 LN_S = @LN_S@
258258 LTLIBOBJS = @LTLIBOBJS@
259 LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@
259260 MAINT = @MAINT@
260261 MAKEINFO = @MAKEINFO@
261262 MANIFEST_TOOL = @MANIFEST_TOOL@
210210 plugin_init (GstPlugin * plugin)
211211 {
212212 PyGILState_STATE state;
213 PyObject *gst, *dict, *pyplugin;
213 PyObject *gi, *require_version, *args, *gst, *dict, *pyplugin;
214214 gboolean we_initialized = FALSE;
215215 GModule *libpython;
216216 gpointer has_python = NULL;
259259 return FALSE;
260260 }
261261
262 gi = PyImport_ImportModule ("gi");
263 if (!gi) {
264 g_critical ("can't find gi");
265 return FALSE;
266 }
267
268
269 require_version = PyObject_GetAttrString (gi, (char *) "require_version");
270 args = PyTuple_Pack (2, PyUnicode_FromString ("Gst"),
271 PyUnicode_FromString ("1.0"));
272 PyObject_CallObject (require_version, args);
273 Py_DECREF (require_version);
274 Py_DECREF (args);
275 Py_DECREF (gi);
276
262277 gst = PyImport_ImportModule ("gi.repository.Gst");
263278 if (!gst) {
264279 g_critical ("can't find gi.repository.Gst");
22
33 scriptversion=2011-06-08.12; # UTC
44
5 # Copyright (C) 2000-2014 Free Software Foundation, Inc.
5 # Copyright (C) 2000-2013 Free Software Foundation, Inc.
66
77 # This program is free software; you can redistribute it and/or modify
88 # it under the terms of the GNU General Public License as published by
172172 LIPO = @LIPO@
173173 LN_S = @LN_S@
174174 LTLIBOBJS = @LTLIBOBJS@
175 LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@
175176 MAINT = @MAINT@
176177 MAKEINFO = @MAKEINFO@
177178 MANIFEST_TOOL = @MANIFEST_TOOL@
3030 import gc
3131 import unittest
3232 import gi.overrides
33 gi.overrides
33
3434
3535 from gi.repository import Gst
3636