Merge lp:~indicator-applet-developers/ubuntu/precise/appmenu-gtk/upstream into lp:~ubuntu-desktop/appmenu-gtk/ubuntu

Proposed by Charles Kerr
Status: Merged
Merged at revision: 84
Proposed branch: lp:~indicator-applet-developers/ubuntu/precise/appmenu-gtk/upstream
Merge into: lp:~ubuntu-desktop/appmenu-gtk/ubuntu
Diff against target: 19287 lines (+9555/-8822)
28 files modified
INSTALL (+7/-2)
Makefile.am (+3/-1)
Makefile.am.coverage (+48/-0)
Makefile.in (+73/-27)
aclocal.m4 (+5/-5)
build/autotools/libtool.m4 (+0/-8001)
build/autotools/ltoptions.m4 (+0/-384)
build/autotools/ltsugar.m4 (+0/-123)
build/autotools/ltversion.m4 (+0/-23)
build/autotools/lt~obsolete.m4 (+0/-98)
compile (+183/-16)
config.guess (+31/-18)
config.sub (+39/-26)
configure (+313/-12)
configure.ac (+16/-3)
debian/changelog (+9/-0)
depcomp (+66/-8)
install-sh (+18/-11)
m4/gcov.m4 (+86/-0)
m4/libtool.m4 (+8001/-0)
m4/ltoptions.m4 (+384/-0)
m4/ltsugar.m4 (+123/-0)
m4/ltversion.m4 (+23/-0)
m4/lt~obsolete.m4 (+98/-0)
missing (+4/-49)
src/Makefile.am (+4/-0)
src/Makefile.in (+20/-12)
src/bridge.c (+1/-3)
To merge this branch: bzr merge lp:~indicator-applet-developers/ubuntu/precise/appmenu-gtk/upstream
Reviewer Review Type Date Requested Status
Ken VanDine Pending
Review via email: mp+100879@code.launchpad.net

Description of the change

appmenu-gtk 0.3.92

 * Use GDK threads when scheduling timeouts. (LP: #797188)
 * Fix disappearing menubar regression (LP: #971459)
 * Add gcov targets to autotools build for code-coverage reporting.

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'INSTALL'
2--- INSTALL 2011-01-14 17:40:20 +0000
3+++ INSTALL 2012-04-04 21:02:20 +0000
4@@ -1,8 +1,8 @@
5 Installation Instructions
6 *************************
7
8-Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005,
9-2006, 2007, 2008, 2009 Free Software Foundation, Inc.
10+Copyright (C) 1994-1996, 1999-2002, 2004-2011 Free Software Foundation,
11+Inc.
12
13 Copying and distribution of this file, with or without modification,
14 are permitted in any medium without royalty provided the copyright
15@@ -226,6 +226,11 @@
16
17 and if that doesn't work, install pre-built binaries of GCC for HP-UX.
18
19+ HP-UX `make' updates targets which have the same time stamps as
20+their prerequisites, which makes it generally unusable when shipped
21+generated files such as `configure' are involved. Use GNU `make'
22+instead.
23+
24 On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot
25 parse its `<wchar.h>' header file. The option `-nodtk' can be used as
26 a workaround. If GNU CC is not installed, it is therefore recommended
27
28=== modified file 'Makefile.am'
29--- Makefile.am 2012-02-08 16:00:23 +0000
30+++ Makefile.am 2012-04-04 21:02:20 +0000
31@@ -1,4 +1,4 @@
32-ACLOCAL_AMFLAGS = -I build/autotools
33+ACLOCAL_AMFLAGS = -I m4
34
35 SUBDIRS = \
36 src
37@@ -17,3 +17,5 @@
38 80appmenu.in
39
40 DISTCLEANFILES = $(sessionfile)
41+
42+include $(top_srcdir)/Makefile.am.coverage
43
44=== added file 'Makefile.am.coverage'
45--- Makefile.am.coverage 1970-01-01 00:00:00 +0000
46+++ Makefile.am.coverage 2012-04-04 21:02:20 +0000
47@@ -0,0 +1,48 @@
48+
49+# Coverage targets
50+
51+.PHONY: clean-gcno clean-gcda \
52+ coverage-html generate-coverage-html clean-coverage-html \
53+ coverage-gcovr generate-coverage-gcovr clean-coverage-gcovr
54+
55+clean-local: clean-gcno clean-coverage-html clean-coverage-gcovr
56+
57+if HAVE_GCOV
58+
59+clean-gcno:
60+ @echo Removing old coverage instrumentation
61+ -find -name '*.gcno' -print | xargs -r rm
62+
63+clean-gcda:
64+ @echo Removing old coverage results
65+ -find -name '*.gcda' -print | xargs -r rm
66+
67+coverage-html: clean-gcda
68+ -$(MAKE) $(AM_MAKEFLAGS) -k check
69+ $(MAKE) $(AM_MAKEFLAGS) generate-coverage-html
70+
71+generate-coverage-html:
72+ @echo Collecting coverage data
73+ $(LCOV) --directory $(top_builddir) --capture --output-file coverage.info --no-checksum --compat-libtool
74+ LANG=C $(GENHTML) --prefix $(top_builddir) --output-directory coveragereport --title "Code Coverage" --legend --show-details coverage.info
75+
76+clean-coverage-html: clean-gcda
77+ -$(LCOV) --directory $(top_builddir) -z
78+ -rm -rf coverage.info coveragereport
79+
80+if HAVE_GCOVR
81+
82+coverage-gcovr: clean-gcda
83+ -$(MAKE) $(AM_MAKEFLAGS) -k check
84+ $(MAKE) $(AM_MAKEFLAGS) generate-coverage-gcovr
85+
86+generate-coverage-gcovr:
87+ @echo Generating coverage GCOVR report
88+ $(GCOVR) -x -r $(top_builddir) -o $(top_builddir)/coverage.xml
89+
90+clean-coverage-gcovr: clean-gcda
91+ -rm -rf $(top_builddir)/coverage.xml
92+
93+endif # HAVE_GCOVR
94+
95+endif # HAVE_GCOV
96
97=== modified file 'Makefile.in'
98--- Makefile.in 2012-03-08 23:17:54 +0000
99+++ Makefile.in 2012-04-04 21:02:20 +0000
100@@ -15,6 +15,8 @@
101
102 @SET_MAKE@
103
104+# Coverage targets
105+
106 VPATH = @srcdir@
107 pkgdatadir = $(datadir)/@PACKAGE@
108 pkgincludedir = $(includedir)/@PACKAGE@
109@@ -34,19 +36,17 @@
110 POST_UNINSTALL = :
111 build_triplet = @build@
112 host_triplet = @host@
113-subdir = .
114 DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
115 $(srcdir)/Makefile.in $(srcdir)/config.h.in \
116- $(top_srcdir)/configure AUTHORS COPYING ChangeLog INSTALL NEWS \
117- compile config.guess config.sub depcomp install-sh ltmain.sh \
118- missing
119+ $(top_srcdir)/Makefile.am.coverage $(top_srcdir)/configure \
120+ AUTHORS COPYING ChangeLog INSTALL NEWS compile config.guess \
121+ config.sub depcomp install-sh ltmain.sh missing
122+subdir = .
123 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
124-am__aclocal_m4_deps = $(top_srcdir)/build/autotools/libtool.m4 \
125- $(top_srcdir)/build/autotools/ltoptions.m4 \
126- $(top_srcdir)/build/autotools/ltsugar.m4 \
127- $(top_srcdir)/build/autotools/ltversion.m4 \
128- $(top_srcdir)/build/autotools/lt~obsolete.m4 \
129- $(top_srcdir)/configure.ac
130+am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \
131+ $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
132+ $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
133+ $(top_srcdir)/m4/gcov.m4 $(top_srcdir)/configure.ac
134 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
135 $(ACLOCAL_M4)
136 am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
137@@ -160,6 +160,8 @@
138 CC = @CC@
139 CCDEPMODE = @CCDEPMODE@
140 CFLAGS = @CFLAGS@
141+COVERAGE_CFLAGS = @COVERAGE_CFLAGS@
142+COVERAGE_LDFLAGS = @COVERAGE_LDFLAGS@
143 CPP = @CPP@
144 CPPFLAGS = @CPPFLAGS@
145 CYGPATH_W = @CYGPATH_W@
146@@ -174,12 +176,15 @@
147 EGREP = @EGREP@
148 EXEEXT = @EXEEXT@
149 FGREP = @FGREP@
150+GCOVR = @GCOVR@
151+GENHTML = @GENHTML@
152 GREP = @GREP@
153 INSTALL = @INSTALL@
154 INSTALL_DATA = @INSTALL_DATA@
155 INSTALL_PROGRAM = @INSTALL_PROGRAM@
156 INSTALL_SCRIPT = @INSTALL_SCRIPT@
157 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
158+LCOV = @LCOV@
159 LD = @LD@
160 LDFLAGS = @LDFLAGS@
161 LIBOBJS = @LIBOBJS@
162@@ -213,6 +218,7 @@
163 SED = @SED@
164 SET_MAKE = @SET_MAKE@
165 SHELL = @SHELL@
166+SHTOOL = @SHTOOL@
167 STRIP = @STRIP@
168 VERSION = @VERSION@
169 abs_builddir = @abs_builddir@
170@@ -269,7 +275,7 @@
171 top_build_prefix = @top_build_prefix@
172 top_builddir = @top_builddir@
173 top_srcdir = @top_srcdir@
174-ACLOCAL_AMFLAGS = -I build/autotools
175+ACLOCAL_AMFLAGS = -I m4
176 SUBDIRS = \
177 src
178
179@@ -288,7 +294,7 @@
180 .SUFFIXES:
181 am--refresh: Makefile
182 @:
183-$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
184+$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(top_srcdir)/Makefile.am.coverage $(am__configure_deps)
185 @for dep in $?; do \
186 case '$(am__configure_deps)' in \
187 *$$dep*) \
188@@ -311,6 +317,7 @@
189 echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
190 cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
191 esac;
192+$(top_srcdir)/Makefile.am.coverage:
193
194 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
195 $(SHELL) ./config.status --recheck
196@@ -729,7 +736,7 @@
197 @echo "it deletes files that may require special tools to rebuild."
198 clean: clean-recursive
199
200-clean-am: clean-generic clean-libtool mostlyclean-am
201+clean-am: clean-generic clean-libtool clean-local mostlyclean-am
202
203 distclean: distclean-recursive
204 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
205@@ -802,25 +809,64 @@
206
207 .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
208 all all-am am--refresh check check-am clean clean-generic \
209- clean-libtool ctags ctags-recursive dist dist-all dist-bzip2 \
210- dist-gzip dist-lzip dist-lzma dist-shar dist-tarZ dist-xz \
211- dist-zip distcheck distclean distclean-generic distclean-hdr \
212- distclean-libtool distclean-tags distcleancheck distdir \
213- distuninstallcheck dvi dvi-am html html-am info info-am \
214- install install-am install-data install-data-am install-dvi \
215- install-dvi-am install-exec install-exec-am install-html \
216- install-html-am install-info install-info-am install-man \
217- install-nodist_xsessionDATA install-pdf install-pdf-am \
218- install-ps install-ps-am install-strip installcheck \
219- installcheck-am installdirs installdirs-am maintainer-clean \
220- maintainer-clean-generic mostlyclean mostlyclean-generic \
221- mostlyclean-libtool pdf pdf-am ps ps-am tags tags-recursive \
222- uninstall uninstall-am uninstall-nodist_xsessionDATA
223+ clean-libtool clean-local ctags ctags-recursive dist dist-all \
224+ dist-bzip2 dist-gzip dist-lzip dist-lzma dist-shar dist-tarZ \
225+ dist-xz dist-zip distcheck distclean distclean-generic \
226+ distclean-hdr distclean-libtool distclean-tags distcleancheck \
227+ distdir distuninstallcheck dvi dvi-am html html-am info \
228+ info-am install install-am install-data install-data-am \
229+ install-dvi install-dvi-am install-exec install-exec-am \
230+ install-html install-html-am install-info install-info-am \
231+ install-man install-nodist_xsessionDATA install-pdf \
232+ install-pdf-am install-ps install-ps-am install-strip \
233+ installcheck installcheck-am installdirs installdirs-am \
234+ maintainer-clean maintainer-clean-generic mostlyclean \
235+ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
236+ tags tags-recursive uninstall uninstall-am \
237+ uninstall-nodist_xsessionDATA
238
239
240 $(sessionfile): 80appmenu.in
241 sed -e "s|\@moduledir\@|$(moduledir)|" $< > $@
242
243+.PHONY: clean-gcno clean-gcda \
244+ coverage-html generate-coverage-html clean-coverage-html \
245+ coverage-gcovr generate-coverage-gcovr clean-coverage-gcovr
246+
247+clean-local: clean-gcno clean-coverage-html clean-coverage-gcovr
248+
249+@HAVE_GCOV_TRUE@clean-gcno:
250+@HAVE_GCOV_TRUE@ @echo Removing old coverage instrumentation
251+@HAVE_GCOV_TRUE@ -find -name '*.gcno' -print | xargs -r rm
252+
253+@HAVE_GCOV_TRUE@clean-gcda:
254+@HAVE_GCOV_TRUE@ @echo Removing old coverage results
255+@HAVE_GCOV_TRUE@ -find -name '*.gcda' -print | xargs -r rm
256+
257+@HAVE_GCOV_TRUE@coverage-html: clean-gcda
258+@HAVE_GCOV_TRUE@ -$(MAKE) $(AM_MAKEFLAGS) -k check
259+@HAVE_GCOV_TRUE@ $(MAKE) $(AM_MAKEFLAGS) generate-coverage-html
260+
261+@HAVE_GCOV_TRUE@generate-coverage-html:
262+@HAVE_GCOV_TRUE@ @echo Collecting coverage data
263+@HAVE_GCOV_TRUE@ $(LCOV) --directory $(top_builddir) --capture --output-file coverage.info --no-checksum --compat-libtool
264+@HAVE_GCOV_TRUE@ LANG=C $(GENHTML) --prefix $(top_builddir) --output-directory coveragereport --title "Code Coverage" --legend --show-details coverage.info
265+
266+@HAVE_GCOV_TRUE@clean-coverage-html: clean-gcda
267+@HAVE_GCOV_TRUE@ -$(LCOV) --directory $(top_builddir) -z
268+@HAVE_GCOV_TRUE@ -rm -rf coverage.info coveragereport
269+
270+@HAVE_GCOVR_TRUE@@HAVE_GCOV_TRUE@coverage-gcovr: clean-gcda
271+@HAVE_GCOVR_TRUE@@HAVE_GCOV_TRUE@ -$(MAKE) $(AM_MAKEFLAGS) -k check
272+@HAVE_GCOVR_TRUE@@HAVE_GCOV_TRUE@ $(MAKE) $(AM_MAKEFLAGS) generate-coverage-gcovr
273+
274+@HAVE_GCOVR_TRUE@@HAVE_GCOV_TRUE@generate-coverage-gcovr:
275+@HAVE_GCOVR_TRUE@@HAVE_GCOV_TRUE@ @echo Generating coverage GCOVR report
276+@HAVE_GCOVR_TRUE@@HAVE_GCOV_TRUE@ $(GCOVR) -x -r $(top_builddir) -o $(top_builddir)/coverage.xml
277+
278+@HAVE_GCOVR_TRUE@@HAVE_GCOV_TRUE@clean-coverage-gcovr: clean-gcda
279+@HAVE_GCOVR_TRUE@@HAVE_GCOV_TRUE@ -rm -rf $(top_builddir)/coverage.xml
280+
281 # Tell versions [3.59,3.63) of GNU make to not export all variables.
282 # Otherwise a system limit (for SysV at least) may be exceeded.
283 .NOEXPORT:
284
285=== modified file 'aclocal.m4'
286--- aclocal.m4 2012-03-08 23:17:54 +0000
287+++ aclocal.m4 2012-04-04 21:02:20 +0000
288@@ -1273,8 +1273,8 @@
289 AC_SUBST([am__untar])
290 ]) # _AM_PROG_TAR
291
292-m4_include([build/autotools/libtool.m4])
293-m4_include([build/autotools/ltoptions.m4])
294-m4_include([build/autotools/ltsugar.m4])
295-m4_include([build/autotools/ltversion.m4])
296-m4_include([build/autotools/lt~obsolete.m4])
297+m4_include([m4/libtool.m4])
298+m4_include([m4/ltoptions.m4])
299+m4_include([m4/ltsugar.m4])
300+m4_include([m4/ltversion.m4])
301+m4_include([m4/lt~obsolete.m4])
302
303=== removed directory 'build'
304=== removed directory 'build/autotools'
305=== removed file 'build/autotools/libtool.m4'
306--- build/autotools/libtool.m4 2012-02-08 16:09:30 +0000
307+++ build/autotools/libtool.m4 1970-01-01 00:00:00 +0000
308@@ -1,8001 +0,0 @@
309-# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
310-#
311-# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
312-# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
313-# Foundation, Inc.
314-# Written by Gordon Matzigkeit, 1996
315-#
316-# This file is free software; the Free Software Foundation gives
317-# unlimited permission to copy and/or distribute it, with or without
318-# modifications, as long as this notice is preserved.
319-
320-m4_define([_LT_COPYING], [dnl
321-# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
322-# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
323-# Foundation, Inc.
324-# Written by Gordon Matzigkeit, 1996
325-#
326-# This file is part of GNU Libtool.
327-#
328-# GNU Libtool is free software; you can redistribute it and/or
329-# modify it under the terms of the GNU General Public License as
330-# published by the Free Software Foundation; either version 2 of
331-# the License, or (at your option) any later version.
332-#
333-# As a special exception to the GNU General Public License,
334-# if you distribute this file as part of a program or library that
335-# is built using GNU Libtool, you may include this file under the
336-# same distribution terms that you use for the rest of that program.
337-#
338-# GNU Libtool is distributed in the hope that it will be useful,
339-# but WITHOUT ANY WARRANTY; without even the implied warranty of
340-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
341-# GNU General Public License for more details.
342-#
343-# You should have received a copy of the GNU General Public License
344-# along with GNU Libtool; see the file COPYING. If not, a copy
345-# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
346-# obtained by writing to the Free Software Foundation, Inc.,
347-# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
348-])
349-
350-# serial 57 LT_INIT
351-
352-
353-# LT_PREREQ(VERSION)
354-# ------------------
355-# Complain and exit if this libtool version is less that VERSION.
356-m4_defun([LT_PREREQ],
357-[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
358- [m4_default([$3],
359- [m4_fatal([Libtool version $1 or higher is required],
360- 63)])],
361- [$2])])
362-
363-
364-# _LT_CHECK_BUILDDIR
365-# ------------------
366-# Complain if the absolute build directory name contains unusual characters
367-m4_defun([_LT_CHECK_BUILDDIR],
368-[case `pwd` in
369- *\ * | *\ *)
370- AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
371-esac
372-])
373-
374-
375-# LT_INIT([OPTIONS])
376-# ------------------
377-AC_DEFUN([LT_INIT],
378-[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
379-AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
380-AC_BEFORE([$0], [LT_LANG])dnl
381-AC_BEFORE([$0], [LT_OUTPUT])dnl
382-AC_BEFORE([$0], [LTDL_INIT])dnl
383-m4_require([_LT_CHECK_BUILDDIR])dnl
384-
385-dnl Autoconf doesn't catch unexpanded LT_ macros by default:
386-m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
387-m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
388-dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
389-dnl unless we require an AC_DEFUNed macro:
390-AC_REQUIRE([LTOPTIONS_VERSION])dnl
391-AC_REQUIRE([LTSUGAR_VERSION])dnl
392-AC_REQUIRE([LTVERSION_VERSION])dnl
393-AC_REQUIRE([LTOBSOLETE_VERSION])dnl
394-m4_require([_LT_PROG_LTMAIN])dnl
395-
396-_LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
397-
398-dnl Parse OPTIONS
399-_LT_SET_OPTIONS([$0], [$1])
400-
401-# This can be used to rebuild libtool when needed
402-LIBTOOL_DEPS="$ltmain"
403-
404-# Always use our own libtool.
405-LIBTOOL='$(SHELL) $(top_builddir)/libtool'
406-AC_SUBST(LIBTOOL)dnl
407-
408-_LT_SETUP
409-
410-# Only expand once:
411-m4_define([LT_INIT])
412-])# LT_INIT
413-
414-# Old names:
415-AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
416-AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
417-dnl aclocal-1.4 backwards compatibility:
418-dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
419-dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
420-
421-
422-# _LT_CC_BASENAME(CC)
423-# -------------------
424-# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
425-m4_defun([_LT_CC_BASENAME],
426-[for cc_temp in $1""; do
427- case $cc_temp in
428- compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
429- distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
430- \-*) ;;
431- *) break;;
432- esac
433-done
434-cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
435-])
436-
437-
438-# _LT_FILEUTILS_DEFAULTS
439-# ----------------------
440-# It is okay to use these file commands and assume they have been set
441-# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
442-m4_defun([_LT_FILEUTILS_DEFAULTS],
443-[: ${CP="cp -f"}
444-: ${MV="mv -f"}
445-: ${RM="rm -f"}
446-])# _LT_FILEUTILS_DEFAULTS
447-
448-
449-# _LT_SETUP
450-# ---------
451-m4_defun([_LT_SETUP],
452-[AC_REQUIRE([AC_CANONICAL_HOST])dnl
453-AC_REQUIRE([AC_CANONICAL_BUILD])dnl
454-AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
455-AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
456-
457-_LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl
458-dnl
459-_LT_DECL([], [host_alias], [0], [The host system])dnl
460-_LT_DECL([], [host], [0])dnl
461-_LT_DECL([], [host_os], [0])dnl
462-dnl
463-_LT_DECL([], [build_alias], [0], [The build system])dnl
464-_LT_DECL([], [build], [0])dnl
465-_LT_DECL([], [build_os], [0])dnl
466-dnl
467-AC_REQUIRE([AC_PROG_CC])dnl
468-AC_REQUIRE([LT_PATH_LD])dnl
469-AC_REQUIRE([LT_PATH_NM])dnl
470-dnl
471-AC_REQUIRE([AC_PROG_LN_S])dnl
472-test -z "$LN_S" && LN_S="ln -s"
473-_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
474-dnl
475-AC_REQUIRE([LT_CMD_MAX_LEN])dnl
476-_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
477-_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
478-dnl
479-m4_require([_LT_FILEUTILS_DEFAULTS])dnl
480-m4_require([_LT_CHECK_SHELL_FEATURES])dnl
481-m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl
482-m4_require([_LT_CMD_RELOAD])dnl
483-m4_require([_LT_CHECK_MAGIC_METHOD])dnl
484-m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl
485-m4_require([_LT_CMD_OLD_ARCHIVE])dnl
486-m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
487-m4_require([_LT_WITH_SYSROOT])dnl
488-
489-_LT_CONFIG_LIBTOOL_INIT([
490-# See if we are running on zsh, and set the options which allow our
491-# commands through without removal of \ escapes INIT.
492-if test -n "\${ZSH_VERSION+set}" ; then
493- setopt NO_GLOB_SUBST
494-fi
495-])
496-if test -n "${ZSH_VERSION+set}" ; then
497- setopt NO_GLOB_SUBST
498-fi
499-
500-_LT_CHECK_OBJDIR
501-
502-m4_require([_LT_TAG_COMPILER])dnl
503-
504-case $host_os in
505-aix3*)
506- # AIX sometimes has problems with the GCC collect2 program. For some
507- # reason, if we set the COLLECT_NAMES environment variable, the problems
508- # vanish in a puff of smoke.
509- if test "X${COLLECT_NAMES+set}" != Xset; then
510- COLLECT_NAMES=
511- export COLLECT_NAMES
512- fi
513- ;;
514-esac
515-
516-# Global variables:
517-ofile=libtool
518-can_build_shared=yes
519-
520-# All known linkers require a `.a' archive for static linking (except MSVC,
521-# which needs '.lib').
522-libext=a
523-
524-with_gnu_ld="$lt_cv_prog_gnu_ld"
525-
526-old_CC="$CC"
527-old_CFLAGS="$CFLAGS"
528-
529-# Set sane defaults for various variables
530-test -z "$CC" && CC=cc
531-test -z "$LTCC" && LTCC=$CC
532-test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
533-test -z "$LD" && LD=ld
534-test -z "$ac_objext" && ac_objext=o
535-
536-_LT_CC_BASENAME([$compiler])
537-
538-# Only perform the check for file, if the check method requires it
539-test -z "$MAGIC_CMD" && MAGIC_CMD=file
540-case $deplibs_check_method in
541-file_magic*)
542- if test "$file_magic_cmd" = '$MAGIC_CMD'; then
543- _LT_PATH_MAGIC
544- fi
545- ;;
546-esac
547-
548-# Use C for the default configuration in the libtool script
549-LT_SUPPORTED_TAG([CC])
550-_LT_LANG_C_CONFIG
551-_LT_LANG_DEFAULT_CONFIG
552-_LT_CONFIG_COMMANDS
553-])# _LT_SETUP
554-
555-
556-# _LT_PREPARE_SED_QUOTE_VARS
557-# --------------------------
558-# Define a few sed substitution that help us do robust quoting.
559-m4_defun([_LT_PREPARE_SED_QUOTE_VARS],
560-[# Backslashify metacharacters that are still active within
561-# double-quoted strings.
562-sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
563-
564-# Same as above, but do not quote variable references.
565-double_quote_subst='s/\([["`\\]]\)/\\\1/g'
566-
567-# Sed substitution to delay expansion of an escaped shell variable in a
568-# double_quote_subst'ed string.
569-delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
570-
571-# Sed substitution to delay expansion of an escaped single quote.
572-delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
573-
574-# Sed substitution to avoid accidental globbing in evaled expressions
575-no_glob_subst='s/\*/\\\*/g'
576-])
577-
578-# _LT_PROG_LTMAIN
579-# ---------------
580-# Note that this code is called both from `configure', and `config.status'
581-# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
582-# `config.status' has no value for ac_aux_dir unless we are using Automake,
583-# so we pass a copy along to make sure it has a sensible value anyway.
584-m4_defun([_LT_PROG_LTMAIN],
585-[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
586-_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
587-ltmain="$ac_aux_dir/ltmain.sh"
588-])# _LT_PROG_LTMAIN
589-
590-
591-## ------------------------------------- ##
592-## Accumulate code for creating libtool. ##
593-## ------------------------------------- ##
594-
595-# So that we can recreate a full libtool script including additional
596-# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
597-# in macros and then make a single call at the end using the `libtool'
598-# label.
599-
600-
601-# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
602-# ----------------------------------------
603-# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
604-m4_define([_LT_CONFIG_LIBTOOL_INIT],
605-[m4_ifval([$1],
606- [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
607- [$1
608-])])])
609-
610-# Initialize.
611-m4_define([_LT_OUTPUT_LIBTOOL_INIT])
612-
613-
614-# _LT_CONFIG_LIBTOOL([COMMANDS])
615-# ------------------------------
616-# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
617-m4_define([_LT_CONFIG_LIBTOOL],
618-[m4_ifval([$1],
619- [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
620- [$1
621-])])])
622-
623-# Initialize.
624-m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
625-
626-
627-# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
628-# -----------------------------------------------------
629-m4_defun([_LT_CONFIG_SAVE_COMMANDS],
630-[_LT_CONFIG_LIBTOOL([$1])
631-_LT_CONFIG_LIBTOOL_INIT([$2])
632-])
633-
634-
635-# _LT_FORMAT_COMMENT([COMMENT])
636-# -----------------------------
637-# Add leading comment marks to the start of each line, and a trailing
638-# full-stop to the whole comment if one is not present already.
639-m4_define([_LT_FORMAT_COMMENT],
640-[m4_ifval([$1], [
641-m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
642- [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
643-)])
644-
645-
646-
647-## ------------------------ ##
648-## FIXME: Eliminate VARNAME ##
649-## ------------------------ ##
650-
651-
652-# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
653-# -------------------------------------------------------------------
654-# CONFIGNAME is the name given to the value in the libtool script.
655-# VARNAME is the (base) name used in the configure script.
656-# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
657-# VARNAME. Any other value will be used directly.
658-m4_define([_LT_DECL],
659-[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
660- [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
661- [m4_ifval([$1], [$1], [$2])])
662- lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
663- m4_ifval([$4],
664- [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
665- lt_dict_add_subkey([lt_decl_dict], [$2],
666- [tagged?], [m4_ifval([$5], [yes], [no])])])
667-])
668-
669-
670-# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
671-# --------------------------------------------------------
672-m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
673-
674-
675-# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
676-# ------------------------------------------------
677-m4_define([lt_decl_tag_varnames],
678-[_lt_decl_filter([tagged?], [yes], $@)])
679-
680-
681-# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
682-# ---------------------------------------------------------
683-m4_define([_lt_decl_filter],
684-[m4_case([$#],
685- [0], [m4_fatal([$0: too few arguments: $#])],
686- [1], [m4_fatal([$0: too few arguments: $#: $1])],
687- [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
688- [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
689- [lt_dict_filter([lt_decl_dict], $@)])[]dnl
690-])
691-
692-
693-# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
694-# --------------------------------------------------
695-m4_define([lt_decl_quote_varnames],
696-[_lt_decl_filter([value], [1], $@)])
697-
698-
699-# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
700-# ---------------------------------------------------
701-m4_define([lt_decl_dquote_varnames],
702-[_lt_decl_filter([value], [2], $@)])
703-
704-
705-# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
706-# ---------------------------------------------------
707-m4_define([lt_decl_varnames_tagged],
708-[m4_assert([$# <= 2])dnl
709-_$0(m4_quote(m4_default([$1], [[, ]])),
710- m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
711- m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
712-m4_define([_lt_decl_varnames_tagged],
713-[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
714-
715-
716-# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
717-# ------------------------------------------------
718-m4_define([lt_decl_all_varnames],
719-[_$0(m4_quote(m4_default([$1], [[, ]])),
720- m4_if([$2], [],
721- m4_quote(lt_decl_varnames),
722- m4_quote(m4_shift($@))))[]dnl
723-])
724-m4_define([_lt_decl_all_varnames],
725-[lt_join($@, lt_decl_varnames_tagged([$1],
726- lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
727-])
728-
729-
730-# _LT_CONFIG_STATUS_DECLARE([VARNAME])
731-# ------------------------------------
732-# Quote a variable value, and forward it to `config.status' so that its
733-# declaration there will have the same value as in `configure'. VARNAME
734-# must have a single quote delimited value for this to work.
735-m4_define([_LT_CONFIG_STATUS_DECLARE],
736-[$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`'])
737-
738-
739-# _LT_CONFIG_STATUS_DECLARATIONS
740-# ------------------------------
741-# We delimit libtool config variables with single quotes, so when
742-# we write them to config.status, we have to be sure to quote all
743-# embedded single quotes properly. In configure, this macro expands
744-# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
745-#
746-# <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
747-m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
748-[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
749- [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
750-
751-
752-# _LT_LIBTOOL_TAGS
753-# ----------------
754-# Output comment and list of tags supported by the script
755-m4_defun([_LT_LIBTOOL_TAGS],
756-[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
757-available_tags="_LT_TAGS"dnl
758-])
759-
760-
761-# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
762-# -----------------------------------
763-# Extract the dictionary values for VARNAME (optionally with TAG) and
764-# expand to a commented shell variable setting:
765-#
766-# # Some comment about what VAR is for.
767-# visible_name=$lt_internal_name
768-m4_define([_LT_LIBTOOL_DECLARE],
769-[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
770- [description])))[]dnl
771-m4_pushdef([_libtool_name],
772- m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
773-m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
774- [0], [_libtool_name=[$]$1],
775- [1], [_libtool_name=$lt_[]$1],
776- [2], [_libtool_name=$lt_[]$1],
777- [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
778-m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
779-])
780-
781-
782-# _LT_LIBTOOL_CONFIG_VARS
783-# -----------------------
784-# Produce commented declarations of non-tagged libtool config variables
785-# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
786-# script. Tagged libtool config variables (even for the LIBTOOL CONFIG
787-# section) are produced by _LT_LIBTOOL_TAG_VARS.
788-m4_defun([_LT_LIBTOOL_CONFIG_VARS],
789-[m4_foreach([_lt_var],
790- m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
791- [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
792-
793-
794-# _LT_LIBTOOL_TAG_VARS(TAG)
795-# -------------------------
796-m4_define([_LT_LIBTOOL_TAG_VARS],
797-[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
798- [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
799-
800-
801-# _LT_TAGVAR(VARNAME, [TAGNAME])
802-# ------------------------------
803-m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
804-
805-
806-# _LT_CONFIG_COMMANDS
807-# -------------------
808-# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
809-# variables for single and double quote escaping we saved from calls
810-# to _LT_DECL, we can put quote escaped variables declarations
811-# into `config.status', and then the shell code to quote escape them in
812-# for loops in `config.status'. Finally, any additional code accumulated
813-# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
814-m4_defun([_LT_CONFIG_COMMANDS],
815-[AC_PROVIDE_IFELSE([LT_OUTPUT],
816- dnl If the libtool generation code has been placed in $CONFIG_LT,
817- dnl instead of duplicating it all over again into config.status,
818- dnl then we will have config.status run $CONFIG_LT later, so it
819- dnl needs to know what name is stored there:
820- [AC_CONFIG_COMMANDS([libtool],
821- [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
822- dnl If the libtool generation code is destined for config.status,
823- dnl expand the accumulated commands and init code now:
824- [AC_CONFIG_COMMANDS([libtool],
825- [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
826-])#_LT_CONFIG_COMMANDS
827-
828-
829-# Initialize.
830-m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
831-[
832-
833-# The HP-UX ksh and POSIX shell print the target directory to stdout
834-# if CDPATH is set.
835-(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
836-
837-sed_quote_subst='$sed_quote_subst'
838-double_quote_subst='$double_quote_subst'
839-delay_variable_subst='$delay_variable_subst'
840-_LT_CONFIG_STATUS_DECLARATIONS
841-LTCC='$LTCC'
842-LTCFLAGS='$LTCFLAGS'
843-compiler='$compiler_DEFAULT'
844-
845-# A function that is used when there is no print builtin or printf.
846-func_fallback_echo ()
847-{
848- eval 'cat <<_LTECHO_EOF
849-\$[]1
850-_LTECHO_EOF'
851-}
852-
853-# Quote evaled strings.
854-for var in lt_decl_all_varnames([[ \
855-]], lt_decl_quote_varnames); do
856- case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
857- *[[\\\\\\\`\\"\\\$]]*)
858- eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
859- ;;
860- *)
861- eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
862- ;;
863- esac
864-done
865-
866-# Double-quote double-evaled strings.
867-for var in lt_decl_all_varnames([[ \
868-]], lt_decl_dquote_varnames); do
869- case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
870- *[[\\\\\\\`\\"\\\$]]*)
871- eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
872- ;;
873- *)
874- eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
875- ;;
876- esac
877-done
878-
879-_LT_OUTPUT_LIBTOOL_INIT
880-])
881-
882-# _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
883-# ------------------------------------
884-# Generate a child script FILE with all initialization necessary to
885-# reuse the environment learned by the parent script, and make the
886-# file executable. If COMMENT is supplied, it is inserted after the
887-# `#!' sequence but before initialization text begins. After this
888-# macro, additional text can be appended to FILE to form the body of
889-# the child script. The macro ends with non-zero status if the
890-# file could not be fully written (such as if the disk is full).
891-m4_ifdef([AS_INIT_GENERATED],
892-[m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])],
893-[m4_defun([_LT_GENERATED_FILE_INIT],
894-[m4_require([AS_PREPARE])]dnl
895-[m4_pushdef([AS_MESSAGE_LOG_FD])]dnl
896-[lt_write_fail=0
897-cat >$1 <<_ASEOF || lt_write_fail=1
898-#! $SHELL
899-# Generated by $as_me.
900-$2
901-SHELL=\${CONFIG_SHELL-$SHELL}
902-export SHELL
903-_ASEOF
904-cat >>$1 <<\_ASEOF || lt_write_fail=1
905-AS_SHELL_SANITIZE
906-_AS_PREPARE
907-exec AS_MESSAGE_FD>&1
908-_ASEOF
909-test $lt_write_fail = 0 && chmod +x $1[]dnl
910-m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
911-
912-# LT_OUTPUT
913-# ---------
914-# This macro allows early generation of the libtool script (before
915-# AC_OUTPUT is called), incase it is used in configure for compilation
916-# tests.
917-AC_DEFUN([LT_OUTPUT],
918-[: ${CONFIG_LT=./config.lt}
919-AC_MSG_NOTICE([creating $CONFIG_LT])
920-_LT_GENERATED_FILE_INIT(["$CONFIG_LT"],
921-[# Run this file to recreate a libtool stub with the current configuration.])
922-
923-cat >>"$CONFIG_LT" <<\_LTEOF
924-lt_cl_silent=false
925-exec AS_MESSAGE_LOG_FD>>config.log
926-{
927- echo
928- AS_BOX([Running $as_me.])
929-} >&AS_MESSAGE_LOG_FD
930-
931-lt_cl_help="\
932-\`$as_me' creates a local libtool stub from the current configuration,
933-for use in further configure time tests before the real libtool is
934-generated.
935-
936-Usage: $[0] [[OPTIONS]]
937-
938- -h, --help print this help, then exit
939- -V, --version print version number, then exit
940- -q, --quiet do not print progress messages
941- -d, --debug don't remove temporary files
942-
943-Report bugs to <bug-libtool@gnu.org>."
944-
945-lt_cl_version="\
946-m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
947-m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
948-configured by $[0], generated by m4_PACKAGE_STRING.
949-
950-Copyright (C) 2011 Free Software Foundation, Inc.
951-This config.lt script is free software; the Free Software Foundation
952-gives unlimited permision to copy, distribute and modify it."
953-
954-while test $[#] != 0
955-do
956- case $[1] in
957- --version | --v* | -V )
958- echo "$lt_cl_version"; exit 0 ;;
959- --help | --h* | -h )
960- echo "$lt_cl_help"; exit 0 ;;
961- --debug | --d* | -d )
962- debug=: ;;
963- --quiet | --q* | --silent | --s* | -q )
964- lt_cl_silent=: ;;
965-
966- -*) AC_MSG_ERROR([unrecognized option: $[1]
967-Try \`$[0] --help' for more information.]) ;;
968-
969- *) AC_MSG_ERROR([unrecognized argument: $[1]
970-Try \`$[0] --help' for more information.]) ;;
971- esac
972- shift
973-done
974-
975-if $lt_cl_silent; then
976- exec AS_MESSAGE_FD>/dev/null
977-fi
978-_LTEOF
979-
980-cat >>"$CONFIG_LT" <<_LTEOF
981-_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
982-_LTEOF
983-
984-cat >>"$CONFIG_LT" <<\_LTEOF
985-AC_MSG_NOTICE([creating $ofile])
986-_LT_OUTPUT_LIBTOOL_COMMANDS
987-AS_EXIT(0)
988-_LTEOF
989-chmod +x "$CONFIG_LT"
990-
991-# configure is writing to config.log, but config.lt does its own redirection,
992-# appending to config.log, which fails on DOS, as config.log is still kept
993-# open by configure. Here we exec the FD to /dev/null, effectively closing
994-# config.log, so it can be properly (re)opened and appended to by config.lt.
995-lt_cl_success=:
996-test "$silent" = yes &&
997- lt_config_lt_args="$lt_config_lt_args --quiet"
998-exec AS_MESSAGE_LOG_FD>/dev/null
999-$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
1000-exec AS_MESSAGE_LOG_FD>>config.log
1001-$lt_cl_success || AS_EXIT(1)
1002-])# LT_OUTPUT
1003-
1004-
1005-# _LT_CONFIG(TAG)
1006-# ---------------
1007-# If TAG is the built-in tag, create an initial libtool script with a
1008-# default configuration from the untagged config vars. Otherwise add code
1009-# to config.status for appending the configuration named by TAG from the
1010-# matching tagged config vars.
1011-m4_defun([_LT_CONFIG],
1012-[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1013-_LT_CONFIG_SAVE_COMMANDS([
1014- m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
1015- m4_if(_LT_TAG, [C], [
1016- # See if we are running on zsh, and set the options which allow our
1017- # commands through without removal of \ escapes.
1018- if test -n "${ZSH_VERSION+set}" ; then
1019- setopt NO_GLOB_SUBST
1020- fi
1021-
1022- cfgfile="${ofile}T"
1023- trap "$RM \"$cfgfile\"; exit 1" 1 2 15
1024- $RM "$cfgfile"
1025-
1026- cat <<_LT_EOF >> "$cfgfile"
1027-#! $SHELL
1028-
1029-# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
1030-# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
1031-# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1032-# NOTE: Changes made to this file will be lost: look at ltmain.sh.
1033-#
1034-_LT_COPYING
1035-_LT_LIBTOOL_TAGS
1036-
1037-# ### BEGIN LIBTOOL CONFIG
1038-_LT_LIBTOOL_CONFIG_VARS
1039-_LT_LIBTOOL_TAG_VARS
1040-# ### END LIBTOOL CONFIG
1041-
1042-_LT_EOF
1043-
1044- case $host_os in
1045- aix3*)
1046- cat <<\_LT_EOF >> "$cfgfile"
1047-# AIX sometimes has problems with the GCC collect2 program. For some
1048-# reason, if we set the COLLECT_NAMES environment variable, the problems
1049-# vanish in a puff of smoke.
1050-if test "X${COLLECT_NAMES+set}" != Xset; then
1051- COLLECT_NAMES=
1052- export COLLECT_NAMES
1053-fi
1054-_LT_EOF
1055- ;;
1056- esac
1057-
1058- _LT_PROG_LTMAIN
1059-
1060- # We use sed instead of cat because bash on DJGPP gets confused if
1061- # if finds mixed CR/LF and LF-only lines. Since sed operates in
1062- # text mode, it properly converts lines to CR/LF. This bash problem
1063- # is reportedly fixed, but why not run on old versions too?
1064- sed '$q' "$ltmain" >> "$cfgfile" \
1065- || (rm -f "$cfgfile"; exit 1)
1066-
1067- _LT_PROG_REPLACE_SHELLFNS
1068-
1069- mv -f "$cfgfile" "$ofile" ||
1070- (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
1071- chmod +x "$ofile"
1072-],
1073-[cat <<_LT_EOF >> "$ofile"
1074-
1075-dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
1076-dnl in a comment (ie after a #).
1077-# ### BEGIN LIBTOOL TAG CONFIG: $1
1078-_LT_LIBTOOL_TAG_VARS(_LT_TAG)
1079-# ### END LIBTOOL TAG CONFIG: $1
1080-_LT_EOF
1081-])dnl /m4_if
1082-],
1083-[m4_if([$1], [], [
1084- PACKAGE='$PACKAGE'
1085- VERSION='$VERSION'
1086- TIMESTAMP='$TIMESTAMP'
1087- RM='$RM'
1088- ofile='$ofile'], [])
1089-])dnl /_LT_CONFIG_SAVE_COMMANDS
1090-])# _LT_CONFIG
1091-
1092-
1093-# LT_SUPPORTED_TAG(TAG)
1094-# ---------------------
1095-# Trace this macro to discover what tags are supported by the libtool
1096-# --tag option, using:
1097-# autoconf --trace 'LT_SUPPORTED_TAG:$1'
1098-AC_DEFUN([LT_SUPPORTED_TAG], [])
1099-
1100-
1101-# C support is built-in for now
1102-m4_define([_LT_LANG_C_enabled], [])
1103-m4_define([_LT_TAGS], [])
1104-
1105-
1106-# LT_LANG(LANG)
1107-# -------------
1108-# Enable libtool support for the given language if not already enabled.
1109-AC_DEFUN([LT_LANG],
1110-[AC_BEFORE([$0], [LT_OUTPUT])dnl
1111-m4_case([$1],
1112- [C], [_LT_LANG(C)],
1113- [C++], [_LT_LANG(CXX)],
1114- [Go], [_LT_LANG(GO)],
1115- [Java], [_LT_LANG(GCJ)],
1116- [Fortran 77], [_LT_LANG(F77)],
1117- [Fortran], [_LT_LANG(FC)],
1118- [Windows Resource], [_LT_LANG(RC)],
1119- [m4_ifdef([_LT_LANG_]$1[_CONFIG],
1120- [_LT_LANG($1)],
1121- [m4_fatal([$0: unsupported language: "$1"])])])dnl
1122-])# LT_LANG
1123-
1124-
1125-# _LT_LANG(LANGNAME)
1126-# ------------------
1127-m4_defun([_LT_LANG],
1128-[m4_ifdef([_LT_LANG_]$1[_enabled], [],
1129- [LT_SUPPORTED_TAG([$1])dnl
1130- m4_append([_LT_TAGS], [$1 ])dnl
1131- m4_define([_LT_LANG_]$1[_enabled], [])dnl
1132- _LT_LANG_$1_CONFIG($1)])dnl
1133-])# _LT_LANG
1134-
1135-
1136-m4_ifndef([AC_PROG_GO], [
1137-############################################################
1138-# NOTE: This macro has been submitted for inclusion into #
1139-# GNU Autoconf as AC_PROG_GO. When it is available in #
1140-# a released version of Autoconf we should remove this #
1141-# macro and use it instead. #
1142-############################################################
1143-m4_defun([AC_PROG_GO],
1144-[AC_LANG_PUSH(Go)dnl
1145-AC_ARG_VAR([GOC], [Go compiler command])dnl
1146-AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl
1147-_AC_ARG_VAR_LDFLAGS()dnl
1148-AC_CHECK_TOOL(GOC, gccgo)
1149-if test -z "$GOC"; then
1150- if test -n "$ac_tool_prefix"; then
1151- AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo])
1152- fi
1153-fi
1154-if test -z "$GOC"; then
1155- AC_CHECK_PROG(GOC, gccgo, gccgo, false)
1156-fi
1157-])#m4_defun
1158-])#m4_ifndef
1159-
1160-
1161-# _LT_LANG_DEFAULT_CONFIG
1162-# -----------------------
1163-m4_defun([_LT_LANG_DEFAULT_CONFIG],
1164-[AC_PROVIDE_IFELSE([AC_PROG_CXX],
1165- [LT_LANG(CXX)],
1166- [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
1167-
1168-AC_PROVIDE_IFELSE([AC_PROG_F77],
1169- [LT_LANG(F77)],
1170- [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
1171-
1172-AC_PROVIDE_IFELSE([AC_PROG_FC],
1173- [LT_LANG(FC)],
1174- [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
1175-
1176-dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
1177-dnl pulling things in needlessly.
1178-AC_PROVIDE_IFELSE([AC_PROG_GCJ],
1179- [LT_LANG(GCJ)],
1180- [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
1181- [LT_LANG(GCJ)],
1182- [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
1183- [LT_LANG(GCJ)],
1184- [m4_ifdef([AC_PROG_GCJ],
1185- [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
1186- m4_ifdef([A][M_PROG_GCJ],
1187- [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
1188- m4_ifdef([LT_PROG_GCJ],
1189- [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
1190-
1191-AC_PROVIDE_IFELSE([AC_PROG_GO],
1192- [LT_LANG(GO)],
1193- [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])])
1194-
1195-AC_PROVIDE_IFELSE([LT_PROG_RC],
1196- [LT_LANG(RC)],
1197- [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
1198-])# _LT_LANG_DEFAULT_CONFIG
1199-
1200-# Obsolete macros:
1201-AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
1202-AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
1203-AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
1204-AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
1205-AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)])
1206-dnl aclocal-1.4 backwards compatibility:
1207-dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
1208-dnl AC_DEFUN([AC_LIBTOOL_F77], [])
1209-dnl AC_DEFUN([AC_LIBTOOL_FC], [])
1210-dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
1211-dnl AC_DEFUN([AC_LIBTOOL_RC], [])
1212-
1213-
1214-# _LT_TAG_COMPILER
1215-# ----------------
1216-m4_defun([_LT_TAG_COMPILER],
1217-[AC_REQUIRE([AC_PROG_CC])dnl
1218-
1219-_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
1220-_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
1221-_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
1222-_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
1223-
1224-# If no C compiler was specified, use CC.
1225-LTCC=${LTCC-"$CC"}
1226-
1227-# If no C compiler flags were specified, use CFLAGS.
1228-LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
1229-
1230-# Allow CC to be a program name with arguments.
1231-compiler=$CC
1232-])# _LT_TAG_COMPILER
1233-
1234-
1235-# _LT_COMPILER_BOILERPLATE
1236-# ------------------------
1237-# Check for compiler boilerplate output or warnings with
1238-# the simple compiler test code.
1239-m4_defun([_LT_COMPILER_BOILERPLATE],
1240-[m4_require([_LT_DECL_SED])dnl
1241-ac_outfile=conftest.$ac_objext
1242-echo "$lt_simple_compile_test_code" >conftest.$ac_ext
1243-eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1244-_lt_compiler_boilerplate=`cat conftest.err`
1245-$RM conftest*
1246-])# _LT_COMPILER_BOILERPLATE
1247-
1248-
1249-# _LT_LINKER_BOILERPLATE
1250-# ----------------------
1251-# Check for linker boilerplate output or warnings with
1252-# the simple link test code.
1253-m4_defun([_LT_LINKER_BOILERPLATE],
1254-[m4_require([_LT_DECL_SED])dnl
1255-ac_outfile=conftest.$ac_objext
1256-echo "$lt_simple_link_test_code" >conftest.$ac_ext
1257-eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1258-_lt_linker_boilerplate=`cat conftest.err`
1259-$RM -r conftest*
1260-])# _LT_LINKER_BOILERPLATE
1261-
1262-# _LT_REQUIRED_DARWIN_CHECKS
1263-# -------------------------
1264-m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
1265- case $host_os in
1266- rhapsody* | darwin*)
1267- AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
1268- AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
1269- AC_CHECK_TOOL([LIPO], [lipo], [:])
1270- AC_CHECK_TOOL([OTOOL], [otool], [:])
1271- AC_CHECK_TOOL([OTOOL64], [otool64], [:])
1272- _LT_DECL([], [DSYMUTIL], [1],
1273- [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
1274- _LT_DECL([], [NMEDIT], [1],
1275- [Tool to change global to local symbols on Mac OS X])
1276- _LT_DECL([], [LIPO], [1],
1277- [Tool to manipulate fat objects and archives on Mac OS X])
1278- _LT_DECL([], [OTOOL], [1],
1279- [ldd/readelf like tool for Mach-O binaries on Mac OS X])
1280- _LT_DECL([], [OTOOL64], [1],
1281- [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
1282-
1283- AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
1284- [lt_cv_apple_cc_single_mod=no
1285- if test -z "${LT_MULTI_MODULE}"; then
1286- # By default we will add the -single_module flag. You can override
1287- # by either setting the environment variable LT_MULTI_MODULE
1288- # non-empty at configure time, or by adding -multi_module to the
1289- # link flags.
1290- rm -rf libconftest.dylib*
1291- echo "int foo(void){return 1;}" > conftest.c
1292- echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
1293--dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
1294- $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
1295- -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
1296- _lt_result=$?
1297- # If there is a non-empty error log, and "single_module"
1298- # appears in it, assume the flag caused a linker warning
1299- if test -s conftest.err && $GREP single_module conftest.err; then
1300- cat conftest.err >&AS_MESSAGE_LOG_FD
1301- # Otherwise, if the output was created with a 0 exit code from
1302- # the compiler, it worked.
1303- elif test -f libconftest.dylib && test $_lt_result -eq 0; then
1304- lt_cv_apple_cc_single_mod=yes
1305- else
1306- cat conftest.err >&AS_MESSAGE_LOG_FD
1307- fi
1308- rm -rf libconftest.dylib*
1309- rm -f conftest.*
1310- fi])
1311-
1312- AC_CACHE_CHECK([for -exported_symbols_list linker flag],
1313- [lt_cv_ld_exported_symbols_list],
1314- [lt_cv_ld_exported_symbols_list=no
1315- save_LDFLAGS=$LDFLAGS
1316- echo "_main" > conftest.sym
1317- LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
1318- AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
1319- [lt_cv_ld_exported_symbols_list=yes],
1320- [lt_cv_ld_exported_symbols_list=no])
1321- LDFLAGS="$save_LDFLAGS"
1322- ])
1323-
1324- AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
1325- [lt_cv_ld_force_load=no
1326- cat > conftest.c << _LT_EOF
1327-int forced_loaded() { return 2;}
1328-_LT_EOF
1329- echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
1330- $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
1331- echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
1332- $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
1333- echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
1334- $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
1335- cat > conftest.c << _LT_EOF
1336-int main() { return 0;}
1337-_LT_EOF
1338- echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
1339- $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
1340- _lt_result=$?
1341- if test -s conftest.err && $GREP force_load conftest.err; then
1342- cat conftest.err >&AS_MESSAGE_LOG_FD
1343- elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
1344- lt_cv_ld_force_load=yes
1345- else
1346- cat conftest.err >&AS_MESSAGE_LOG_FD
1347- fi
1348- rm -f conftest.err libconftest.a conftest conftest.c
1349- rm -rf conftest.dSYM
1350- ])
1351- case $host_os in
1352- rhapsody* | darwin1.[[012]])
1353- _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
1354- darwin1.*)
1355- _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1356- darwin*) # darwin 5.x on
1357- # if running on 10.5 or later, the deployment target defaults
1358- # to the OS version, if on x86, and 10.4, the deployment
1359- # target defaults to 10.4. Don't you love it?
1360- case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
1361- 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
1362- _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
1363- 10.[[012]]*)
1364- _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1365- 10.*)
1366- _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
1367- esac
1368- ;;
1369- esac
1370- if test "$lt_cv_apple_cc_single_mod" = "yes"; then
1371- _lt_dar_single_mod='$single_module'
1372- fi
1373- if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
1374- _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
1375- else
1376- _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
1377- fi
1378- if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
1379- _lt_dsymutil='~$DSYMUTIL $lib || :'
1380- else
1381- _lt_dsymutil=
1382- fi
1383- ;;
1384- esac
1385-])
1386-
1387-
1388-# _LT_DARWIN_LINKER_FEATURES([TAG])
1389-# ---------------------------------
1390-# Checks for linker and compiler features on darwin
1391-m4_defun([_LT_DARWIN_LINKER_FEATURES],
1392-[
1393- m4_require([_LT_REQUIRED_DARWIN_CHECKS])
1394- _LT_TAGVAR(archive_cmds_need_lc, $1)=no
1395- _LT_TAGVAR(hardcode_direct, $1)=no
1396- _LT_TAGVAR(hardcode_automatic, $1)=yes
1397- _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
1398- if test "$lt_cv_ld_force_load" = "yes"; then
1399- _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\"`'
1400- m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes],
1401- [FC], [_LT_TAGVAR(compiler_needs_object, $1)=yes])
1402- else
1403- _LT_TAGVAR(whole_archive_flag_spec, $1)=''
1404- fi
1405- _LT_TAGVAR(link_all_deplibs, $1)=yes
1406- _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
1407- case $cc_basename in
1408- ifort*) _lt_dar_can_shared=yes ;;
1409- *) _lt_dar_can_shared=$GCC ;;
1410- esac
1411- if test "$_lt_dar_can_shared" = "yes"; then
1412- output_verbose_link_cmd=func_echo_all
1413- _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}"
1414- _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
1415- _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}"
1416- _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}"
1417- m4_if([$1], [CXX],
1418-[ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
1419- _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}"
1420- _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}"
1421- fi
1422-],[])
1423- else
1424- _LT_TAGVAR(ld_shlibs, $1)=no
1425- fi
1426-])
1427-
1428-# _LT_SYS_MODULE_PATH_AIX([TAGNAME])
1429-# ----------------------------------
1430-# Links a minimal program and checks the executable
1431-# for the system default hardcoded library path. In most cases,
1432-# this is /usr/lib:/lib, but when the MPI compilers are used
1433-# the location of the communication and MPI libs are included too.
1434-# If we don't find anything, use the default library path according
1435-# to the aix ld manual.
1436-# Store the results from the different compilers for each TAGNAME.
1437-# Allow to override them for all tags through lt_cv_aix_libpath.
1438-m4_defun([_LT_SYS_MODULE_PATH_AIX],
1439-[m4_require([_LT_DECL_SED])dnl
1440-if test "${lt_cv_aix_libpath+set}" = set; then
1441- aix_libpath=$lt_cv_aix_libpath
1442-else
1443- AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
1444- [AC_LINK_IFELSE([AC_LANG_PROGRAM],[
1445- lt_aix_libpath_sed='[
1446- /Import File Strings/,/^$/ {
1447- /^0/ {
1448- s/^0 *\([^ ]*\) *$/\1/
1449- p
1450- }
1451- }]'
1452- _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1453- # Check for a 64-bit object if we didn't find anything.
1454- if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
1455- _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1456- fi],[])
1457- if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
1458- _LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib"
1459- fi
1460- ])
1461- aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
1462-fi
1463-])# _LT_SYS_MODULE_PATH_AIX
1464-
1465-
1466-# _LT_SHELL_INIT(ARG)
1467-# -------------------
1468-m4_define([_LT_SHELL_INIT],
1469-[m4_divert_text([M4SH-INIT], [$1
1470-])])# _LT_SHELL_INIT
1471-
1472-
1473-
1474-# _LT_PROG_ECHO_BACKSLASH
1475-# -----------------------
1476-# Find how we can fake an echo command that does not interpret backslash.
1477-# In particular, with Autoconf 2.60 or later we add some code to the start
1478-# of the generated configure script which will find a shell with a builtin
1479-# printf (which we can use as an echo command).
1480-m4_defun([_LT_PROG_ECHO_BACKSLASH],
1481-[ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
1482-ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
1483-ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
1484-
1485-AC_MSG_CHECKING([how to print strings])
1486-# Test print first, because it will be a builtin if present.
1487-if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
1488- test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
1489- ECHO='print -r --'
1490-elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
1491- ECHO='printf %s\n'
1492-else
1493- # Use this function as a fallback that always works.
1494- func_fallback_echo ()
1495- {
1496- eval 'cat <<_LTECHO_EOF
1497-$[]1
1498-_LTECHO_EOF'
1499- }
1500- ECHO='func_fallback_echo'
1501-fi
1502-
1503-# func_echo_all arg...
1504-# Invoke $ECHO with all args, space-separated.
1505-func_echo_all ()
1506-{
1507- $ECHO "$*"
1508-}
1509-
1510-case "$ECHO" in
1511- printf*) AC_MSG_RESULT([printf]) ;;
1512- print*) AC_MSG_RESULT([print -r]) ;;
1513- *) AC_MSG_RESULT([cat]) ;;
1514-esac
1515-
1516-m4_ifdef([_AS_DETECT_SUGGESTED],
1517-[_AS_DETECT_SUGGESTED([
1518- test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
1519- ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
1520- ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
1521- ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
1522- PATH=/empty FPATH=/empty; export PATH FPATH
1523- test "X`printf %s $ECHO`" = "X$ECHO" \
1524- || test "X`print -r -- $ECHO`" = "X$ECHO" )])])
1525-
1526-_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
1527-_LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
1528-])# _LT_PROG_ECHO_BACKSLASH
1529-
1530-
1531-# _LT_WITH_SYSROOT
1532-# ----------------
1533-AC_DEFUN([_LT_WITH_SYSROOT],
1534-[AC_MSG_CHECKING([for sysroot])
1535-AC_ARG_WITH([sysroot],
1536-[ --with-sysroot[=DIR] Search for dependent libraries within DIR
1537- (or the compiler's sysroot if not specified).],
1538-[], [with_sysroot=no])
1539-
1540-dnl lt_sysroot will always be passed unquoted. We quote it here
1541-dnl in case the user passed a directory name.
1542-lt_sysroot=
1543-case ${with_sysroot} in #(
1544- yes)
1545- if test "$GCC" = yes; then
1546- lt_sysroot=`$CC --print-sysroot 2>/dev/null`
1547- fi
1548- ;; #(
1549- /*)
1550- lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
1551- ;; #(
1552- no|'')
1553- ;; #(
1554- *)
1555- AC_MSG_RESULT([${with_sysroot}])
1556- AC_MSG_ERROR([The sysroot must be an absolute path.])
1557- ;;
1558-esac
1559-
1560- AC_MSG_RESULT([${lt_sysroot:-no}])
1561-_LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
1562-[dependent libraries, and in which our libraries should be installed.])])
1563-
1564-# _LT_ENABLE_LOCK
1565-# ---------------
1566-m4_defun([_LT_ENABLE_LOCK],
1567-[AC_ARG_ENABLE([libtool-lock],
1568- [AS_HELP_STRING([--disable-libtool-lock],
1569- [avoid locking (might break parallel builds)])])
1570-test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1571-
1572-# Some flags need to be propagated to the compiler or linker for good
1573-# libtool support.
1574-case $host in
1575-ia64-*-hpux*)
1576- # Find out which ABI we are using.
1577- echo 'int i;' > conftest.$ac_ext
1578- if AC_TRY_EVAL(ac_compile); then
1579- case `/usr/bin/file conftest.$ac_objext` in
1580- *ELF-32*)
1581- HPUX_IA64_MODE="32"
1582- ;;
1583- *ELF-64*)
1584- HPUX_IA64_MODE="64"
1585- ;;
1586- esac
1587- fi
1588- rm -rf conftest*
1589- ;;
1590-*-*-irix6*)
1591- # Find out which ABI we are using.
1592- echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
1593- if AC_TRY_EVAL(ac_compile); then
1594- if test "$lt_cv_prog_gnu_ld" = yes; then
1595- case `/usr/bin/file conftest.$ac_objext` in
1596- *32-bit*)
1597- LD="${LD-ld} -melf32bsmip"
1598- ;;
1599- *N32*)
1600- LD="${LD-ld} -melf32bmipn32"
1601- ;;
1602- *64-bit*)
1603- LD="${LD-ld} -melf64bmip"
1604- ;;
1605- esac
1606- else
1607- case `/usr/bin/file conftest.$ac_objext` in
1608- *32-bit*)
1609- LD="${LD-ld} -32"
1610- ;;
1611- *N32*)
1612- LD="${LD-ld} -n32"
1613- ;;
1614- *64-bit*)
1615- LD="${LD-ld} -64"
1616- ;;
1617- esac
1618- fi
1619- fi
1620- rm -rf conftest*
1621- ;;
1622-
1623-x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
1624-s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
1625- # Find out which ABI we are using.
1626- echo 'int i;' > conftest.$ac_ext
1627- if AC_TRY_EVAL(ac_compile); then
1628- case `/usr/bin/file conftest.o` in
1629- *32-bit*)
1630- case $host in
1631- x86_64-*kfreebsd*-gnu)
1632- LD="${LD-ld} -m elf_i386_fbsd"
1633- ;;
1634- x86_64-*linux*)
1635- LD="${LD-ld} -m elf_i386"
1636- ;;
1637- ppc64-*linux*|powerpc64-*linux*)
1638- LD="${LD-ld} -m elf32ppclinux"
1639- ;;
1640- s390x-*linux*)
1641- LD="${LD-ld} -m elf_s390"
1642- ;;
1643- sparc64-*linux*)
1644- LD="${LD-ld} -m elf32_sparc"
1645- ;;
1646- esac
1647- ;;
1648- *64-bit*)
1649- case $host in
1650- x86_64-*kfreebsd*-gnu)
1651- LD="${LD-ld} -m elf_x86_64_fbsd"
1652- ;;
1653- x86_64-*linux*)
1654- LD="${LD-ld} -m elf_x86_64"
1655- ;;
1656- ppc*-*linux*|powerpc*-*linux*)
1657- LD="${LD-ld} -m elf64ppc"
1658- ;;
1659- s390*-*linux*|s390*-*tpf*)
1660- LD="${LD-ld} -m elf64_s390"
1661- ;;
1662- sparc*-*linux*)
1663- LD="${LD-ld} -m elf64_sparc"
1664- ;;
1665- esac
1666- ;;
1667- esac
1668- fi
1669- rm -rf conftest*
1670- ;;
1671-
1672-*-*-sco3.2v5*)
1673- # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1674- SAVE_CFLAGS="$CFLAGS"
1675- CFLAGS="$CFLAGS -belf"
1676- AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
1677- [AC_LANG_PUSH(C)
1678- AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
1679- AC_LANG_POP])
1680- if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1681- # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1682- CFLAGS="$SAVE_CFLAGS"
1683- fi
1684- ;;
1685-*-*solaris*)
1686- # Find out which ABI we are using.
1687- echo 'int i;' > conftest.$ac_ext
1688- if AC_TRY_EVAL(ac_compile); then
1689- case `/usr/bin/file conftest.o` in
1690- *64-bit*)
1691- case $lt_cv_prog_gnu_ld in
1692- yes*)
1693- case $host in
1694- i?86-*-solaris*)
1695- LD="${LD-ld} -m elf_x86_64"
1696- ;;
1697- sparc*-*-solaris*)
1698- LD="${LD-ld} -m elf64_sparc"
1699- ;;
1700- esac
1701- # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
1702- if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
1703- LD="${LD-ld}_sol2"
1704- fi
1705- ;;
1706- *)
1707- if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
1708- LD="${LD-ld} -64"
1709- fi
1710- ;;
1711- esac
1712- ;;
1713- esac
1714- fi
1715- rm -rf conftest*
1716- ;;
1717-esac
1718-
1719-need_locks="$enable_libtool_lock"
1720-])# _LT_ENABLE_LOCK
1721-
1722-
1723-# _LT_PROG_AR
1724-# -----------
1725-m4_defun([_LT_PROG_AR],
1726-[AC_CHECK_TOOLS(AR, [ar], false)
1727-: ${AR=ar}
1728-: ${AR_FLAGS=cru}
1729-_LT_DECL([], [AR], [1], [The archiver])
1730-_LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive])
1731-
1732-AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file],
1733- [lt_cv_ar_at_file=no
1734- AC_COMPILE_IFELSE([AC_LANG_PROGRAM],
1735- [echo conftest.$ac_objext > conftest.lst
1736- lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD'
1737- AC_TRY_EVAL([lt_ar_try])
1738- if test "$ac_status" -eq 0; then
1739- # Ensure the archiver fails upon bogus file names.
1740- rm -f conftest.$ac_objext libconftest.a
1741- AC_TRY_EVAL([lt_ar_try])
1742- if test "$ac_status" -ne 0; then
1743- lt_cv_ar_at_file=@
1744- fi
1745- fi
1746- rm -f conftest.* libconftest.a
1747- ])
1748- ])
1749-
1750-if test "x$lt_cv_ar_at_file" = xno; then
1751- archiver_list_spec=
1752-else
1753- archiver_list_spec=$lt_cv_ar_at_file
1754-fi
1755-_LT_DECL([], [archiver_list_spec], [1],
1756- [How to feed a file listing to the archiver])
1757-])# _LT_PROG_AR
1758-
1759-
1760-# _LT_CMD_OLD_ARCHIVE
1761-# -------------------
1762-m4_defun([_LT_CMD_OLD_ARCHIVE],
1763-[_LT_PROG_AR
1764-
1765-AC_CHECK_TOOL(STRIP, strip, :)
1766-test -z "$STRIP" && STRIP=:
1767-_LT_DECL([], [STRIP], [1], [A symbol stripping program])
1768-
1769-AC_CHECK_TOOL(RANLIB, ranlib, :)
1770-test -z "$RANLIB" && RANLIB=:
1771-_LT_DECL([], [RANLIB], [1],
1772- [Commands used to install an old-style archive])
1773-
1774-# Determine commands to create old-style static archives.
1775-old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
1776-old_postinstall_cmds='chmod 644 $oldlib'
1777-old_postuninstall_cmds=
1778-
1779-if test -n "$RANLIB"; then
1780- case $host_os in
1781- openbsd*)
1782- old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
1783- ;;
1784- *)
1785- old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
1786- ;;
1787- esac
1788- old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
1789-fi
1790-
1791-case $host_os in
1792- darwin*)
1793- lock_old_archive_extraction=yes ;;
1794- *)
1795- lock_old_archive_extraction=no ;;
1796-esac
1797-_LT_DECL([], [old_postinstall_cmds], [2])
1798-_LT_DECL([], [old_postuninstall_cmds], [2])
1799-_LT_TAGDECL([], [old_archive_cmds], [2],
1800- [Commands used to build an old-style archive])
1801-_LT_DECL([], [lock_old_archive_extraction], [0],
1802- [Whether to use a lock for old archive extraction])
1803-])# _LT_CMD_OLD_ARCHIVE
1804-
1805-
1806-# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1807-# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
1808-# ----------------------------------------------------------------
1809-# Check whether the given compiler option works
1810-AC_DEFUN([_LT_COMPILER_OPTION],
1811-[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1812-m4_require([_LT_DECL_SED])dnl
1813-AC_CACHE_CHECK([$1], [$2],
1814- [$2=no
1815- m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
1816- echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1817- lt_compiler_flag="$3"
1818- # Insert the option either (1) after the last *FLAGS variable, or
1819- # (2) before a word containing "conftest.", or (3) at the end.
1820- # Note that $ac_compile itself does not contain backslashes and begins
1821- # with a dollar sign (not a hyphen), so the echo should work correctly.
1822- # The option is referenced via a variable to avoid confusing sed.
1823- lt_compile=`echo "$ac_compile" | $SED \
1824- -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1825- -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1826- -e 's:$: $lt_compiler_flag:'`
1827- (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1828- (eval "$lt_compile" 2>conftest.err)
1829- ac_status=$?
1830- cat conftest.err >&AS_MESSAGE_LOG_FD
1831- echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1832- if (exit $ac_status) && test -s "$ac_outfile"; then
1833- # The compiler can only warn and ignore the option if not recognized
1834- # So say no if there are warnings other than the usual output.
1835- $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
1836- $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1837- if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
1838- $2=yes
1839- fi
1840- fi
1841- $RM conftest*
1842-])
1843-
1844-if test x"[$]$2" = xyes; then
1845- m4_if([$5], , :, [$5])
1846-else
1847- m4_if([$6], , :, [$6])
1848-fi
1849-])# _LT_COMPILER_OPTION
1850-
1851-# Old name:
1852-AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
1853-dnl aclocal-1.4 backwards compatibility:
1854-dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
1855-
1856-
1857-# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1858-# [ACTION-SUCCESS], [ACTION-FAILURE])
1859-# ----------------------------------------------------
1860-# Check whether the given linker option works
1861-AC_DEFUN([_LT_LINKER_OPTION],
1862-[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1863-m4_require([_LT_DECL_SED])dnl
1864-AC_CACHE_CHECK([$1], [$2],
1865- [$2=no
1866- save_LDFLAGS="$LDFLAGS"
1867- LDFLAGS="$LDFLAGS $3"
1868- echo "$lt_simple_link_test_code" > conftest.$ac_ext
1869- if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
1870- # The linker can only warn and ignore the option if not recognized
1871- # So say no if there are warnings
1872- if test -s conftest.err; then
1873- # Append any errors to the config.log.
1874- cat conftest.err 1>&AS_MESSAGE_LOG_FD
1875- $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
1876- $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1877- if diff conftest.exp conftest.er2 >/dev/null; then
1878- $2=yes
1879- fi
1880- else
1881- $2=yes
1882- fi
1883- fi
1884- $RM -r conftest*
1885- LDFLAGS="$save_LDFLAGS"
1886-])
1887-
1888-if test x"[$]$2" = xyes; then
1889- m4_if([$4], , :, [$4])
1890-else
1891- m4_if([$5], , :, [$5])
1892-fi
1893-])# _LT_LINKER_OPTION
1894-
1895-# Old name:
1896-AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
1897-dnl aclocal-1.4 backwards compatibility:
1898-dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
1899-
1900-
1901-# LT_CMD_MAX_LEN
1902-#---------------
1903-AC_DEFUN([LT_CMD_MAX_LEN],
1904-[AC_REQUIRE([AC_CANONICAL_HOST])dnl
1905-# find the maximum length of command line arguments
1906-AC_MSG_CHECKING([the maximum length of command line arguments])
1907-AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
1908- i=0
1909- teststring="ABCD"
1910-
1911- case $build_os in
1912- msdosdjgpp*)
1913- # On DJGPP, this test can blow up pretty badly due to problems in libc
1914- # (any single argument exceeding 2000 bytes causes a buffer overrun
1915- # during glob expansion). Even if it were fixed, the result of this
1916- # check would be larger than it should be.
1917- lt_cv_sys_max_cmd_len=12288; # 12K is about right
1918- ;;
1919-
1920- gnu*)
1921- # Under GNU Hurd, this test is not required because there is
1922- # no limit to the length of command line arguments.
1923- # Libtool will interpret -1 as no limit whatsoever
1924- lt_cv_sys_max_cmd_len=-1;
1925- ;;
1926-
1927- cygwin* | mingw* | cegcc*)
1928- # On Win9x/ME, this test blows up -- it succeeds, but takes
1929- # about 5 minutes as the teststring grows exponentially.
1930- # Worse, since 9x/ME are not pre-emptively multitasking,
1931- # you end up with a "frozen" computer, even though with patience
1932- # the test eventually succeeds (with a max line length of 256k).
1933- # Instead, let's just punt: use the minimum linelength reported by
1934- # all of the supported platforms: 8192 (on NT/2K/XP).
1935- lt_cv_sys_max_cmd_len=8192;
1936- ;;
1937-
1938- mint*)
1939- # On MiNT this can take a long time and run out of memory.
1940- lt_cv_sys_max_cmd_len=8192;
1941- ;;
1942-
1943- amigaos*)
1944- # On AmigaOS with pdksh, this test takes hours, literally.
1945- # So we just punt and use a minimum line length of 8192.
1946- lt_cv_sys_max_cmd_len=8192;
1947- ;;
1948-
1949- netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
1950- # This has been around since 386BSD, at least. Likely further.
1951- if test -x /sbin/sysctl; then
1952- lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
1953- elif test -x /usr/sbin/sysctl; then
1954- lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
1955- else
1956- lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
1957- fi
1958- # And add a safety zone
1959- lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
1960- lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
1961- ;;
1962-
1963- interix*)
1964- # We know the value 262144 and hardcode it with a safety zone (like BSD)
1965- lt_cv_sys_max_cmd_len=196608
1966- ;;
1967-
1968- os2*)
1969- # The test takes a long time on OS/2.
1970- lt_cv_sys_max_cmd_len=8192
1971- ;;
1972-
1973- osf*)
1974- # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
1975- # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
1976- # nice to cause kernel panics so lets avoid the loop below.
1977- # First set a reasonable default.
1978- lt_cv_sys_max_cmd_len=16384
1979- #
1980- if test -x /sbin/sysconfig; then
1981- case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
1982- *1*) lt_cv_sys_max_cmd_len=-1 ;;
1983- esac
1984- fi
1985- ;;
1986- sco3.2v5*)
1987- lt_cv_sys_max_cmd_len=102400
1988- ;;
1989- sysv5* | sco5v6* | sysv4.2uw2*)
1990- kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
1991- if test -n "$kargmax"; then
1992- lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
1993- else
1994- lt_cv_sys_max_cmd_len=32768
1995- fi
1996- ;;
1997- *)
1998- lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
1999- if test -n "$lt_cv_sys_max_cmd_len"; then
2000- lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
2001- lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
2002- else
2003- # Make teststring a little bigger before we do anything with it.
2004- # a 1K string should be a reasonable start.
2005- for i in 1 2 3 4 5 6 7 8 ; do
2006- teststring=$teststring$teststring
2007- done
2008- SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
2009- # If test is not a shell built-in, we'll probably end up computing a
2010- # maximum length that is only half of the actual maximum length, but
2011- # we can't tell.
2012- while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
2013- = "X$teststring$teststring"; } >/dev/null 2>&1 &&
2014- test $i != 17 # 1/2 MB should be enough
2015- do
2016- i=`expr $i + 1`
2017- teststring=$teststring$teststring
2018- done
2019- # Only check the string length outside the loop.
2020- lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
2021- teststring=
2022- # Add a significant safety factor because C++ compilers can tack on
2023- # massive amounts of additional arguments before passing them to the
2024- # linker. It appears as though 1/2 is a usable value.
2025- lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
2026- fi
2027- ;;
2028- esac
2029-])
2030-if test -n $lt_cv_sys_max_cmd_len ; then
2031- AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
2032-else
2033- AC_MSG_RESULT(none)
2034-fi
2035-max_cmd_len=$lt_cv_sys_max_cmd_len
2036-_LT_DECL([], [max_cmd_len], [0],
2037- [What is the maximum length of a command?])
2038-])# LT_CMD_MAX_LEN
2039-
2040-# Old name:
2041-AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
2042-dnl aclocal-1.4 backwards compatibility:
2043-dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
2044-
2045-
2046-# _LT_HEADER_DLFCN
2047-# ----------------
2048-m4_defun([_LT_HEADER_DLFCN],
2049-[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
2050-])# _LT_HEADER_DLFCN
2051-
2052-
2053-# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
2054-# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
2055-# ----------------------------------------------------------------
2056-m4_defun([_LT_TRY_DLOPEN_SELF],
2057-[m4_require([_LT_HEADER_DLFCN])dnl
2058-if test "$cross_compiling" = yes; then :
2059- [$4]
2060-else
2061- lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
2062- lt_status=$lt_dlunknown
2063- cat > conftest.$ac_ext <<_LT_EOF
2064-[#line $LINENO "configure"
2065-#include "confdefs.h"
2066-
2067-#if HAVE_DLFCN_H
2068-#include <dlfcn.h>
2069-#endif
2070-
2071-#include <stdio.h>
2072-
2073-#ifdef RTLD_GLOBAL
2074-# define LT_DLGLOBAL RTLD_GLOBAL
2075-#else
2076-# ifdef DL_GLOBAL
2077-# define LT_DLGLOBAL DL_GLOBAL
2078-# else
2079-# define LT_DLGLOBAL 0
2080-# endif
2081-#endif
2082-
2083-/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
2084- find out it does not work in some platform. */
2085-#ifndef LT_DLLAZY_OR_NOW
2086-# ifdef RTLD_LAZY
2087-# define LT_DLLAZY_OR_NOW RTLD_LAZY
2088-# else
2089-# ifdef DL_LAZY
2090-# define LT_DLLAZY_OR_NOW DL_LAZY
2091-# else
2092-# ifdef RTLD_NOW
2093-# define LT_DLLAZY_OR_NOW RTLD_NOW
2094-# else
2095-# ifdef DL_NOW
2096-# define LT_DLLAZY_OR_NOW DL_NOW
2097-# else
2098-# define LT_DLLAZY_OR_NOW 0
2099-# endif
2100-# endif
2101-# endif
2102-# endif
2103-#endif
2104-
2105-/* When -fvisbility=hidden is used, assume the code has been annotated
2106- correspondingly for the symbols needed. */
2107-#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
2108-int fnord () __attribute__((visibility("default")));
2109-#endif
2110-
2111-int fnord () { return 42; }
2112-int main ()
2113-{
2114- void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
2115- int status = $lt_dlunknown;
2116-
2117- if (self)
2118- {
2119- if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
2120- else
2121- {
2122- if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
2123- else puts (dlerror ());
2124- }
2125- /* dlclose (self); */
2126- }
2127- else
2128- puts (dlerror ());
2129-
2130- return status;
2131-}]
2132-_LT_EOF
2133- if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
2134- (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
2135- lt_status=$?
2136- case x$lt_status in
2137- x$lt_dlno_uscore) $1 ;;
2138- x$lt_dlneed_uscore) $2 ;;
2139- x$lt_dlunknown|x*) $3 ;;
2140- esac
2141- else :
2142- # compilation failed
2143- $3
2144- fi
2145-fi
2146-rm -fr conftest*
2147-])# _LT_TRY_DLOPEN_SELF
2148-
2149-
2150-# LT_SYS_DLOPEN_SELF
2151-# ------------------
2152-AC_DEFUN([LT_SYS_DLOPEN_SELF],
2153-[m4_require([_LT_HEADER_DLFCN])dnl
2154-if test "x$enable_dlopen" != xyes; then
2155- enable_dlopen=unknown
2156- enable_dlopen_self=unknown
2157- enable_dlopen_self_static=unknown
2158-else
2159- lt_cv_dlopen=no
2160- lt_cv_dlopen_libs=
2161-
2162- case $host_os in
2163- beos*)
2164- lt_cv_dlopen="load_add_on"
2165- lt_cv_dlopen_libs=
2166- lt_cv_dlopen_self=yes
2167- ;;
2168-
2169- mingw* | pw32* | cegcc*)
2170- lt_cv_dlopen="LoadLibrary"
2171- lt_cv_dlopen_libs=
2172- ;;
2173-
2174- cygwin*)
2175- lt_cv_dlopen="dlopen"
2176- lt_cv_dlopen_libs=
2177- ;;
2178-
2179- darwin*)
2180- # if libdl is installed we need to link against it
2181- AC_CHECK_LIB([dl], [dlopen],
2182- [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
2183- lt_cv_dlopen="dyld"
2184- lt_cv_dlopen_libs=
2185- lt_cv_dlopen_self=yes
2186- ])
2187- ;;
2188-
2189- *)
2190- AC_CHECK_FUNC([shl_load],
2191- [lt_cv_dlopen="shl_load"],
2192- [AC_CHECK_LIB([dld], [shl_load],
2193- [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
2194- [AC_CHECK_FUNC([dlopen],
2195- [lt_cv_dlopen="dlopen"],
2196- [AC_CHECK_LIB([dl], [dlopen],
2197- [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
2198- [AC_CHECK_LIB([svld], [dlopen],
2199- [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
2200- [AC_CHECK_LIB([dld], [dld_link],
2201- [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
2202- ])
2203- ])
2204- ])
2205- ])
2206- ])
2207- ;;
2208- esac
2209-
2210- if test "x$lt_cv_dlopen" != xno; then
2211- enable_dlopen=yes
2212- else
2213- enable_dlopen=no
2214- fi
2215-
2216- case $lt_cv_dlopen in
2217- dlopen)
2218- save_CPPFLAGS="$CPPFLAGS"
2219- test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
2220-
2221- save_LDFLAGS="$LDFLAGS"
2222- wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
2223-
2224- save_LIBS="$LIBS"
2225- LIBS="$lt_cv_dlopen_libs $LIBS"
2226-
2227- AC_CACHE_CHECK([whether a program can dlopen itself],
2228- lt_cv_dlopen_self, [dnl
2229- _LT_TRY_DLOPEN_SELF(
2230- lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
2231- lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
2232- ])
2233-
2234- if test "x$lt_cv_dlopen_self" = xyes; then
2235- wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
2236- AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
2237- lt_cv_dlopen_self_static, [dnl
2238- _LT_TRY_DLOPEN_SELF(
2239- lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
2240- lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
2241- ])
2242- fi
2243-
2244- CPPFLAGS="$save_CPPFLAGS"
2245- LDFLAGS="$save_LDFLAGS"
2246- LIBS="$save_LIBS"
2247- ;;
2248- esac
2249-
2250- case $lt_cv_dlopen_self in
2251- yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
2252- *) enable_dlopen_self=unknown ;;
2253- esac
2254-
2255- case $lt_cv_dlopen_self_static in
2256- yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
2257- *) enable_dlopen_self_static=unknown ;;
2258- esac
2259-fi
2260-_LT_DECL([dlopen_support], [enable_dlopen], [0],
2261- [Whether dlopen is supported])
2262-_LT_DECL([dlopen_self], [enable_dlopen_self], [0],
2263- [Whether dlopen of programs is supported])
2264-_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
2265- [Whether dlopen of statically linked programs is supported])
2266-])# LT_SYS_DLOPEN_SELF
2267-
2268-# Old name:
2269-AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
2270-dnl aclocal-1.4 backwards compatibility:
2271-dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
2272-
2273-
2274-# _LT_COMPILER_C_O([TAGNAME])
2275-# ---------------------------
2276-# Check to see if options -c and -o are simultaneously supported by compiler.
2277-# This macro does not hard code the compiler like AC_PROG_CC_C_O.
2278-m4_defun([_LT_COMPILER_C_O],
2279-[m4_require([_LT_DECL_SED])dnl
2280-m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2281-m4_require([_LT_TAG_COMPILER])dnl
2282-AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
2283- [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
2284- [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
2285- $RM -r conftest 2>/dev/null
2286- mkdir conftest
2287- cd conftest
2288- mkdir out
2289- echo "$lt_simple_compile_test_code" > conftest.$ac_ext
2290-
2291- lt_compiler_flag="-o out/conftest2.$ac_objext"
2292- # Insert the option either (1) after the last *FLAGS variable, or
2293- # (2) before a word containing "conftest.", or (3) at the end.
2294- # Note that $ac_compile itself does not contain backslashes and begins
2295- # with a dollar sign (not a hyphen), so the echo should work correctly.
2296- lt_compile=`echo "$ac_compile" | $SED \
2297- -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2298- -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
2299- -e 's:$: $lt_compiler_flag:'`
2300- (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
2301- (eval "$lt_compile" 2>out/conftest.err)
2302- ac_status=$?
2303- cat out/conftest.err >&AS_MESSAGE_LOG_FD
2304- echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
2305- if (exit $ac_status) && test -s out/conftest2.$ac_objext
2306- then
2307- # The compiler can only warn and ignore the option if not recognized
2308- # So say no if there are warnings
2309- $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
2310- $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
2311- if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
2312- _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
2313- fi
2314- fi
2315- chmod u+w . 2>&AS_MESSAGE_LOG_FD
2316- $RM conftest*
2317- # SGI C++ compiler will create directory out/ii_files/ for
2318- # template instantiation
2319- test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
2320- $RM out/* && rmdir out
2321- cd ..
2322- $RM -r conftest
2323- $RM conftest*
2324-])
2325-_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
2326- [Does compiler simultaneously support -c and -o options?])
2327-])# _LT_COMPILER_C_O
2328-
2329-
2330-# _LT_COMPILER_FILE_LOCKS([TAGNAME])
2331-# ----------------------------------
2332-# Check to see if we can do hard links to lock some files if needed
2333-m4_defun([_LT_COMPILER_FILE_LOCKS],
2334-[m4_require([_LT_ENABLE_LOCK])dnl
2335-m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2336-_LT_COMPILER_C_O([$1])
2337-
2338-hard_links="nottested"
2339-if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
2340- # do not overwrite the value of need_locks provided by the user
2341- AC_MSG_CHECKING([if we can lock with hard links])
2342- hard_links=yes
2343- $RM conftest*
2344- ln conftest.a conftest.b 2>/dev/null && hard_links=no
2345- touch conftest.a
2346- ln conftest.a conftest.b 2>&5 || hard_links=no
2347- ln conftest.a conftest.b 2>/dev/null && hard_links=no
2348- AC_MSG_RESULT([$hard_links])
2349- if test "$hard_links" = no; then
2350- AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
2351- need_locks=warn
2352- fi
2353-else
2354- need_locks=no
2355-fi
2356-_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
2357-])# _LT_COMPILER_FILE_LOCKS
2358-
2359-
2360-# _LT_CHECK_OBJDIR
2361-# ----------------
2362-m4_defun([_LT_CHECK_OBJDIR],
2363-[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
2364-[rm -f .libs 2>/dev/null
2365-mkdir .libs 2>/dev/null
2366-if test -d .libs; then
2367- lt_cv_objdir=.libs
2368-else
2369- # MS-DOS does not allow filenames that begin with a dot.
2370- lt_cv_objdir=_libs
2371-fi
2372-rmdir .libs 2>/dev/null])
2373-objdir=$lt_cv_objdir
2374-_LT_DECL([], [objdir], [0],
2375- [The name of the directory that contains temporary libtool files])dnl
2376-m4_pattern_allow([LT_OBJDIR])dnl
2377-AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
2378- [Define to the sub-directory in which libtool stores uninstalled libraries.])
2379-])# _LT_CHECK_OBJDIR
2380-
2381-
2382-# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
2383-# --------------------------------------
2384-# Check hardcoding attributes.
2385-m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
2386-[AC_MSG_CHECKING([how to hardcode library paths into programs])
2387-_LT_TAGVAR(hardcode_action, $1)=
2388-if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
2389- test -n "$_LT_TAGVAR(runpath_var, $1)" ||
2390- test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
2391-
2392- # We can hardcode non-existent directories.
2393- if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
2394- # If the only mechanism to avoid hardcoding is shlibpath_var, we
2395- # have to relink, otherwise we might link with an installed library
2396- # when we should be linking with a yet-to-be-installed one
2397- ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
2398- test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
2399- # Linking always hardcodes the temporary library directory.
2400- _LT_TAGVAR(hardcode_action, $1)=relink
2401- else
2402- # We can link without hardcoding, and we can hardcode nonexisting dirs.
2403- _LT_TAGVAR(hardcode_action, $1)=immediate
2404- fi
2405-else
2406- # We cannot hardcode anything, or else we can only hardcode existing
2407- # directories.
2408- _LT_TAGVAR(hardcode_action, $1)=unsupported
2409-fi
2410-AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
2411-
2412-if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
2413- test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
2414- # Fast installation is not supported
2415- enable_fast_install=no
2416-elif test "$shlibpath_overrides_runpath" = yes ||
2417- test "$enable_shared" = no; then
2418- # Fast installation is not necessary
2419- enable_fast_install=needless
2420-fi
2421-_LT_TAGDECL([], [hardcode_action], [0],
2422- [How to hardcode a shared library path into an executable])
2423-])# _LT_LINKER_HARDCODE_LIBPATH
2424-
2425-
2426-# _LT_CMD_STRIPLIB
2427-# ----------------
2428-m4_defun([_LT_CMD_STRIPLIB],
2429-[m4_require([_LT_DECL_EGREP])
2430-striplib=
2431-old_striplib=
2432-AC_MSG_CHECKING([whether stripping libraries is possible])
2433-if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
2434- test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
2435- test -z "$striplib" && striplib="$STRIP --strip-unneeded"
2436- AC_MSG_RESULT([yes])
2437-else
2438-# FIXME - insert some real tests, host_os isn't really good enough
2439- case $host_os in
2440- darwin*)
2441- if test -n "$STRIP" ; then
2442- striplib="$STRIP -x"
2443- old_striplib="$STRIP -S"
2444- AC_MSG_RESULT([yes])
2445- else
2446- AC_MSG_RESULT([no])
2447- fi
2448- ;;
2449- *)
2450- AC_MSG_RESULT([no])
2451- ;;
2452- esac
2453-fi
2454-_LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
2455-_LT_DECL([], [striplib], [1])
2456-])# _LT_CMD_STRIPLIB
2457-
2458-
2459-# _LT_SYS_DYNAMIC_LINKER([TAG])
2460-# -----------------------------
2461-# PORTME Fill in your ld.so characteristics
2462-m4_defun([_LT_SYS_DYNAMIC_LINKER],
2463-[AC_REQUIRE([AC_CANONICAL_HOST])dnl
2464-m4_require([_LT_DECL_EGREP])dnl
2465-m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2466-m4_require([_LT_DECL_OBJDUMP])dnl
2467-m4_require([_LT_DECL_SED])dnl
2468-m4_require([_LT_CHECK_SHELL_FEATURES])dnl
2469-AC_MSG_CHECKING([dynamic linker characteristics])
2470-m4_if([$1],
2471- [], [
2472-if test "$GCC" = yes; then
2473- case $host_os in
2474- darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
2475- *) lt_awk_arg="/^libraries:/" ;;
2476- esac
2477- case $host_os in
2478- mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;;
2479- *) lt_sed_strip_eq="s,=/,/,g" ;;
2480- esac
2481- lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
2482- case $lt_search_path_spec in
2483- *\;*)
2484- # if the path contains ";" then we assume it to be the separator
2485- # otherwise default to the standard path separator (i.e. ":") - it is
2486- # assumed that no part of a normal pathname contains ";" but that should
2487- # okay in the real world where ";" in dirpaths is itself problematic.
2488- lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
2489- ;;
2490- *)
2491- lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
2492- ;;
2493- esac
2494- # Ok, now we have the path, separated by spaces, we can step through it
2495- # and add multilib dir if necessary.
2496- lt_tmp_lt_search_path_spec=
2497- lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
2498- for lt_sys_path in $lt_search_path_spec; do
2499- if test -d "$lt_sys_path/$lt_multi_os_dir"; then
2500- lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
2501- else
2502- test -d "$lt_sys_path" && \
2503- lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
2504- fi
2505- done
2506- lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
2507-BEGIN {RS=" "; FS="/|\n";} {
2508- lt_foo="";
2509- lt_count=0;
2510- for (lt_i = NF; lt_i > 0; lt_i--) {
2511- if ($lt_i != "" && $lt_i != ".") {
2512- if ($lt_i == "..") {
2513- lt_count++;
2514- } else {
2515- if (lt_count == 0) {
2516- lt_foo="/" $lt_i lt_foo;
2517- } else {
2518- lt_count--;
2519- }
2520- }
2521- }
2522- }
2523- if (lt_foo != "") { lt_freq[[lt_foo]]++; }
2524- if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
2525-}'`
2526- # AWK program above erroneously prepends '/' to C:/dos/paths
2527- # for these hosts.
2528- case $host_os in
2529- mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
2530- $SED 's,/\([[A-Za-z]]:\),\1,g'` ;;
2531- esac
2532- sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
2533-else
2534- sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
2535-fi])
2536-library_names_spec=
2537-libname_spec='lib$name'
2538-soname_spec=
2539-shrext_cmds=".so"
2540-postinstall_cmds=
2541-postuninstall_cmds=
2542-finish_cmds=
2543-finish_eval=
2544-shlibpath_var=
2545-shlibpath_overrides_runpath=unknown
2546-version_type=none
2547-dynamic_linker="$host_os ld.so"
2548-sys_lib_dlsearch_path_spec="/lib /usr/lib"
2549-need_lib_prefix=unknown
2550-hardcode_into_libs=no
2551-
2552-# when you set need_version to no, make sure it does not cause -set_version
2553-# flags to be left without arguments
2554-need_version=unknown
2555-
2556-case $host_os in
2557-aix3*)
2558- version_type=linux # correct to gnu/linux during the next big refactor
2559- library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
2560- shlibpath_var=LIBPATH
2561-
2562- # AIX 3 has no versioning support, so we append a major version to the name.
2563- soname_spec='${libname}${release}${shared_ext}$major'
2564- ;;
2565-
2566-aix[[4-9]]*)
2567- version_type=linux # correct to gnu/linux during the next big refactor
2568- need_lib_prefix=no
2569- need_version=no
2570- hardcode_into_libs=yes
2571- if test "$host_cpu" = ia64; then
2572- # AIX 5 supports IA64
2573- library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
2574- shlibpath_var=LD_LIBRARY_PATH
2575- else
2576- # With GCC up to 2.95.x, collect2 would create an import file
2577- # for dependence libraries. The import file would start with
2578- # the line `#! .'. This would cause the generated library to
2579- # depend on `.', always an invalid library. This was fixed in
2580- # development snapshots of GCC prior to 3.0.
2581- case $host_os in
2582- aix4 | aix4.[[01]] | aix4.[[01]].*)
2583- if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
2584- echo ' yes '
2585- echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
2586- :
2587- else
2588- can_build_shared=no
2589- fi
2590- ;;
2591- esac
2592- # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
2593- # soname into executable. Probably we can add versioning support to
2594- # collect2, so additional links can be useful in future.
2595- if test "$aix_use_runtimelinking" = yes; then
2596- # If using run time linking (on AIX 4.2 or later) use lib<name>.so
2597- # instead of lib<name>.a to let people know that these are not
2598- # typical AIX shared libraries.
2599- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2600- else
2601- # We preserve .a as extension for shared libraries through AIX4.2
2602- # and later when we are not doing run time linking.
2603- library_names_spec='${libname}${release}.a $libname.a'
2604- soname_spec='${libname}${release}${shared_ext}$major'
2605- fi
2606- shlibpath_var=LIBPATH
2607- fi
2608- ;;
2609-
2610-amigaos*)
2611- case $host_cpu in
2612- powerpc)
2613- # Since July 2007 AmigaOS4 officially supports .so libraries.
2614- # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
2615- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2616- ;;
2617- m68k)
2618- library_names_spec='$libname.ixlibrary $libname.a'
2619- # Create ${libname}_ixlibrary.a entries in /sys/libs.
2620- 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'
2621- ;;
2622- esac
2623- ;;
2624-
2625-beos*)
2626- library_names_spec='${libname}${shared_ext}'
2627- dynamic_linker="$host_os ld.so"
2628- shlibpath_var=LIBRARY_PATH
2629- ;;
2630-
2631-bsdi[[45]]*)
2632- version_type=linux # correct to gnu/linux during the next big refactor
2633- need_version=no
2634- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2635- soname_spec='${libname}${release}${shared_ext}$major'
2636- finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
2637- shlibpath_var=LD_LIBRARY_PATH
2638- sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
2639- sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
2640- # the default ld.so.conf also contains /usr/contrib/lib and
2641- # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
2642- # libtool to hard-code these into programs
2643- ;;
2644-
2645-cygwin* | mingw* | pw32* | cegcc*)
2646- version_type=windows
2647- shrext_cmds=".dll"
2648- need_version=no
2649- need_lib_prefix=no
2650-
2651- case $GCC,$cc_basename in
2652- yes,*)
2653- # gcc
2654- library_names_spec='$libname.dll.a'
2655- # DLL is installed to $(libdir)/../bin by postinstall_cmds
2656- postinstall_cmds='base_file=`basename \${file}`~
2657- dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
2658- dldir=$destdir/`dirname \$dlpath`~
2659- test -d \$dldir || mkdir -p \$dldir~
2660- $install_prog $dir/$dlname \$dldir/$dlname~
2661- chmod a+x \$dldir/$dlname~
2662- if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
2663- eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
2664- fi'
2665- postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2666- dlpath=$dir/\$dldll~
2667- $RM \$dlpath'
2668- shlibpath_overrides_runpath=yes
2669-
2670- case $host_os in
2671- cygwin*)
2672- # Cygwin DLLs use 'cyg' prefix rather than 'lib'
2673- soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2674-m4_if([$1], [],[
2675- sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
2676- ;;
2677- mingw* | cegcc*)
2678- # MinGW DLLs use traditional 'lib' prefix
2679- soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2680- ;;
2681- pw32*)
2682- # pw32 DLLs use 'pw' prefix rather than 'lib'
2683- library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2684- ;;
2685- esac
2686- dynamic_linker='Win32 ld.exe'
2687- ;;
2688-
2689- *,cl*)
2690- # Native MSVC
2691- libname_spec='$name'
2692- soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2693- library_names_spec='${libname}.dll.lib'
2694-
2695- case $build_os in
2696- mingw*)
2697- sys_lib_search_path_spec=
2698- lt_save_ifs=$IFS
2699- IFS=';'
2700- for lt_path in $LIB
2701- do
2702- IFS=$lt_save_ifs
2703- # Let DOS variable expansion print the short 8.3 style file name.
2704- lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
2705- sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
2706- done
2707- IFS=$lt_save_ifs
2708- # Convert to MSYS style.
2709- sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
2710- ;;
2711- cygwin*)
2712- # Convert to unix form, then to dos form, then back to unix form
2713- # but this time dos style (no spaces!) so that the unix form looks
2714- # like /cygdrive/c/PROGRA~1:/cygdr...
2715- sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
2716- sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
2717- sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2718- ;;
2719- *)
2720- sys_lib_search_path_spec="$LIB"
2721- if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
2722- # It is most probably a Windows format PATH.
2723- sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2724- else
2725- sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2726- fi
2727- # FIXME: find the short name or the path components, as spaces are
2728- # common. (e.g. "Program Files" -> "PROGRA~1")
2729- ;;
2730- esac
2731-
2732- # DLL is installed to $(libdir)/../bin by postinstall_cmds
2733- postinstall_cmds='base_file=`basename \${file}`~
2734- dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
2735- dldir=$destdir/`dirname \$dlpath`~
2736- test -d \$dldir || mkdir -p \$dldir~
2737- $install_prog $dir/$dlname \$dldir/$dlname'
2738- postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2739- dlpath=$dir/\$dldll~
2740- $RM \$dlpath'
2741- shlibpath_overrides_runpath=yes
2742- dynamic_linker='Win32 link.exe'
2743- ;;
2744-
2745- *)
2746- # Assume MSVC wrapper
2747- library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
2748- dynamic_linker='Win32 ld.exe'
2749- ;;
2750- esac
2751- # FIXME: first we should search . and the directory the executable is in
2752- shlibpath_var=PATH
2753- ;;
2754-
2755-darwin* | rhapsody*)
2756- dynamic_linker="$host_os dyld"
2757- version_type=darwin
2758- need_lib_prefix=no
2759- need_version=no
2760- library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
2761- soname_spec='${libname}${release}${major}$shared_ext'
2762- shlibpath_overrides_runpath=yes
2763- shlibpath_var=DYLD_LIBRARY_PATH
2764- shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
2765-m4_if([$1], [],[
2766- sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
2767- sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
2768- ;;
2769-
2770-dgux*)
2771- version_type=linux # correct to gnu/linux during the next big refactor
2772- need_lib_prefix=no
2773- need_version=no
2774- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
2775- soname_spec='${libname}${release}${shared_ext}$major'
2776- shlibpath_var=LD_LIBRARY_PATH
2777- ;;
2778-
2779-freebsd* | dragonfly*)
2780- # DragonFly does not have aout. When/if they implement a new
2781- # versioning mechanism, adjust this.
2782- if test -x /usr/bin/objformat; then
2783- objformat=`/usr/bin/objformat`
2784- else
2785- case $host_os in
2786- freebsd[[23]].*) objformat=aout ;;
2787- *) objformat=elf ;;
2788- esac
2789- fi
2790- version_type=freebsd-$objformat
2791- case $version_type in
2792- freebsd-elf*)
2793- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
2794- need_version=no
2795- need_lib_prefix=no
2796- ;;
2797- freebsd-*)
2798- library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
2799- need_version=yes
2800- ;;
2801- esac
2802- shlibpath_var=LD_LIBRARY_PATH
2803- case $host_os in
2804- freebsd2.*)
2805- shlibpath_overrides_runpath=yes
2806- ;;
2807- freebsd3.[[01]]* | freebsdelf3.[[01]]*)
2808- shlibpath_overrides_runpath=yes
2809- hardcode_into_libs=yes
2810- ;;
2811- freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
2812- freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
2813- shlibpath_overrides_runpath=no
2814- hardcode_into_libs=yes
2815- ;;
2816- *) # from 4.6 on, and DragonFly
2817- shlibpath_overrides_runpath=yes
2818- hardcode_into_libs=yes
2819- ;;
2820- esac
2821- ;;
2822-
2823-gnu*)
2824- version_type=linux # correct to gnu/linux during the next big refactor
2825- need_lib_prefix=no
2826- need_version=no
2827- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
2828- soname_spec='${libname}${release}${shared_ext}$major'
2829- shlibpath_var=LD_LIBRARY_PATH
2830- shlibpath_overrides_runpath=no
2831- hardcode_into_libs=yes
2832- ;;
2833-
2834-haiku*)
2835- version_type=linux # correct to gnu/linux during the next big refactor
2836- need_lib_prefix=no
2837- need_version=no
2838- dynamic_linker="$host_os runtime_loader"
2839- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
2840- soname_spec='${libname}${release}${shared_ext}$major'
2841- shlibpath_var=LIBRARY_PATH
2842- shlibpath_overrides_runpath=yes
2843- sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
2844- hardcode_into_libs=yes
2845- ;;
2846-
2847-hpux9* | hpux10* | hpux11*)
2848- # Give a soname corresponding to the major version so that dld.sl refuses to
2849- # link against other versions.
2850- version_type=sunos
2851- need_lib_prefix=no
2852- need_version=no
2853- case $host_cpu in
2854- ia64*)
2855- shrext_cmds='.so'
2856- hardcode_into_libs=yes
2857- dynamic_linker="$host_os dld.so"
2858- shlibpath_var=LD_LIBRARY_PATH
2859- shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2860- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2861- soname_spec='${libname}${release}${shared_ext}$major'
2862- if test "X$HPUX_IA64_MODE" = X32; then
2863- sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
2864- else
2865- sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
2866- fi
2867- sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2868- ;;
2869- hppa*64*)
2870- shrext_cmds='.sl'
2871- hardcode_into_libs=yes
2872- dynamic_linker="$host_os dld.sl"
2873- shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
2874- shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2875- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2876- soname_spec='${libname}${release}${shared_ext}$major'
2877- sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
2878- sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2879- ;;
2880- *)
2881- shrext_cmds='.sl'
2882- dynamic_linker="$host_os dld.sl"
2883- shlibpath_var=SHLIB_PATH
2884- shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
2885- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2886- soname_spec='${libname}${release}${shared_ext}$major'
2887- ;;
2888- esac
2889- # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
2890- postinstall_cmds='chmod 555 $lib'
2891- # or fails outright, so override atomically:
2892- install_override_mode=555
2893- ;;
2894-
2895-interix[[3-9]]*)
2896- version_type=linux # correct to gnu/linux during the next big refactor
2897- need_lib_prefix=no
2898- need_version=no
2899- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2900- soname_spec='${libname}${release}${shared_ext}$major'
2901- dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
2902- shlibpath_var=LD_LIBRARY_PATH
2903- shlibpath_overrides_runpath=no
2904- hardcode_into_libs=yes
2905- ;;
2906-
2907-irix5* | irix6* | nonstopux*)
2908- case $host_os in
2909- nonstopux*) version_type=nonstopux ;;
2910- *)
2911- if test "$lt_cv_prog_gnu_ld" = yes; then
2912- version_type=linux # correct to gnu/linux during the next big refactor
2913- else
2914- version_type=irix
2915- fi ;;
2916- esac
2917- need_lib_prefix=no
2918- need_version=no
2919- soname_spec='${libname}${release}${shared_ext}$major'
2920- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
2921- case $host_os in
2922- irix5* | nonstopux*)
2923- libsuff= shlibsuff=
2924- ;;
2925- *)
2926- case $LD in # libtool.m4 will add one of these switches to LD
2927- *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
2928- libsuff= shlibsuff= libmagic=32-bit;;
2929- *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
2930- libsuff=32 shlibsuff=N32 libmagic=N32;;
2931- *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
2932- libsuff=64 shlibsuff=64 libmagic=64-bit;;
2933- *) libsuff= shlibsuff= libmagic=never-match;;
2934- esac
2935- ;;
2936- esac
2937- shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
2938- shlibpath_overrides_runpath=no
2939- sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
2940- sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
2941- hardcode_into_libs=yes
2942- ;;
2943-
2944-# No shared lib support for Linux oldld, aout, or coff.
2945-linux*oldld* | linux*aout* | linux*coff*)
2946- dynamic_linker=no
2947- ;;
2948-
2949-# This must be glibc/ELF.
2950-linux* | k*bsd*-gnu | kopensolaris*-gnu)
2951- version_type=linux # correct to gnu/linux during the next big refactor
2952- need_lib_prefix=no
2953- need_version=no
2954- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2955- soname_spec='${libname}${release}${shared_ext}$major'
2956- finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
2957- shlibpath_var=LD_LIBRARY_PATH
2958- shlibpath_overrides_runpath=no
2959-
2960- # Some binutils ld are patched to set DT_RUNPATH
2961- AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath],
2962- [lt_cv_shlibpath_overrides_runpath=no
2963- save_LDFLAGS=$LDFLAGS
2964- save_libdir=$libdir
2965- eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
2966- LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
2967- AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
2968- [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
2969- [lt_cv_shlibpath_overrides_runpath=yes])])
2970- LDFLAGS=$save_LDFLAGS
2971- libdir=$save_libdir
2972- ])
2973- shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
2974-
2975- # This implies no fast_install, which is unacceptable.
2976- # Some rework will be needed to allow for fast_install
2977- # before this can be enabled.
2978- hardcode_into_libs=yes
2979-
2980- # Append ld.so.conf contents to the search path
2981- if test -f /etc/ld.so.conf; then
2982- 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' ' '`
2983- sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
2984- fi
2985-
2986- # We used to test for /lib/ld.so.1 and disable shared libraries on
2987- # powerpc, because MkLinux only supported shared libraries with the
2988- # GNU dynamic linker. Since this was broken with cross compilers,
2989- # most powerpc-linux boxes support dynamic linking these days and
2990- # people can always --disable-shared, the test was removed, and we
2991- # assume the GNU/Linux dynamic linker is in use.
2992- dynamic_linker='GNU/Linux ld.so'
2993- ;;
2994-
2995-netbsdelf*-gnu)
2996- version_type=linux
2997- need_lib_prefix=no
2998- need_version=no
2999- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
3000- soname_spec='${libname}${release}${shared_ext}$major'
3001- shlibpath_var=LD_LIBRARY_PATH
3002- shlibpath_overrides_runpath=no
3003- hardcode_into_libs=yes
3004- dynamic_linker='NetBSD ld.elf_so'
3005- ;;
3006-
3007-netbsd*)
3008- version_type=sunos
3009- need_lib_prefix=no
3010- need_version=no
3011- if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
3012- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3013- finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
3014- dynamic_linker='NetBSD (a.out) ld.so'
3015- else
3016- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
3017- soname_spec='${libname}${release}${shared_ext}$major'
3018- dynamic_linker='NetBSD ld.elf_so'
3019- fi
3020- shlibpath_var=LD_LIBRARY_PATH
3021- shlibpath_overrides_runpath=yes
3022- hardcode_into_libs=yes
3023- ;;
3024-
3025-newsos6)
3026- version_type=linux # correct to gnu/linux during the next big refactor
3027- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3028- shlibpath_var=LD_LIBRARY_PATH
3029- shlibpath_overrides_runpath=yes
3030- ;;
3031-
3032-*nto* | *qnx*)
3033- version_type=qnx
3034- need_lib_prefix=no
3035- need_version=no
3036- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3037- soname_spec='${libname}${release}${shared_ext}$major'
3038- shlibpath_var=LD_LIBRARY_PATH
3039- shlibpath_overrides_runpath=no
3040- hardcode_into_libs=yes
3041- dynamic_linker='ldqnx.so'
3042- ;;
3043-
3044-openbsd*)
3045- version_type=sunos
3046- sys_lib_dlsearch_path_spec="/usr/lib"
3047- need_lib_prefix=no
3048- # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
3049- case $host_os in
3050- openbsd3.3 | openbsd3.3.*) need_version=yes ;;
3051- *) need_version=no ;;
3052- esac
3053- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3054- finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
3055- shlibpath_var=LD_LIBRARY_PATH
3056- if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3057- case $host_os in
3058- openbsd2.[[89]] | openbsd2.[[89]].*)
3059- shlibpath_overrides_runpath=no
3060- ;;
3061- *)
3062- shlibpath_overrides_runpath=yes
3063- ;;
3064- esac
3065- else
3066- shlibpath_overrides_runpath=yes
3067- fi
3068- ;;
3069-
3070-os2*)
3071- libname_spec='$name'
3072- shrext_cmds=".dll"
3073- need_lib_prefix=no
3074- library_names_spec='$libname${shared_ext} $libname.a'
3075- dynamic_linker='OS/2 ld.exe'
3076- shlibpath_var=LIBPATH
3077- ;;
3078-
3079-osf3* | osf4* | osf5*)
3080- version_type=osf
3081- need_lib_prefix=no
3082- need_version=no
3083- soname_spec='${libname}${release}${shared_ext}$major'
3084- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3085- shlibpath_var=LD_LIBRARY_PATH
3086- sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
3087- sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
3088- ;;
3089-
3090-rdos*)
3091- dynamic_linker=no
3092- ;;
3093-
3094-solaris*)
3095- version_type=linux # correct to gnu/linux during the next big refactor
3096- need_lib_prefix=no
3097- need_version=no
3098- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3099- soname_spec='${libname}${release}${shared_ext}$major'
3100- shlibpath_var=LD_LIBRARY_PATH
3101- shlibpath_overrides_runpath=yes
3102- hardcode_into_libs=yes
3103- # ldd complains unless libraries are executable
3104- postinstall_cmds='chmod +x $lib'
3105- ;;
3106-
3107-sunos4*)
3108- version_type=sunos
3109- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3110- finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
3111- shlibpath_var=LD_LIBRARY_PATH
3112- shlibpath_overrides_runpath=yes
3113- if test "$with_gnu_ld" = yes; then
3114- need_lib_prefix=no
3115- fi
3116- need_version=yes
3117- ;;
3118-
3119-sysv4 | sysv4.3*)
3120- version_type=linux # correct to gnu/linux during the next big refactor
3121- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3122- soname_spec='${libname}${release}${shared_ext}$major'
3123- shlibpath_var=LD_LIBRARY_PATH
3124- case $host_vendor in
3125- sni)
3126- shlibpath_overrides_runpath=no
3127- need_lib_prefix=no
3128- runpath_var=LD_RUN_PATH
3129- ;;
3130- siemens)
3131- need_lib_prefix=no
3132- ;;
3133- motorola)
3134- need_lib_prefix=no
3135- need_version=no
3136- shlibpath_overrides_runpath=no
3137- sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
3138- ;;
3139- esac
3140- ;;
3141-
3142-sysv4*MP*)
3143- if test -d /usr/nec ;then
3144- version_type=linux # correct to gnu/linux during the next big refactor
3145- library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
3146- soname_spec='$libname${shared_ext}.$major'
3147- shlibpath_var=LD_LIBRARY_PATH
3148- fi
3149- ;;
3150-
3151-sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3152- version_type=freebsd-elf
3153- need_lib_prefix=no
3154- need_version=no
3155- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
3156- soname_spec='${libname}${release}${shared_ext}$major'
3157- shlibpath_var=LD_LIBRARY_PATH
3158- shlibpath_overrides_runpath=yes
3159- hardcode_into_libs=yes
3160- if test "$with_gnu_ld" = yes; then
3161- sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
3162- else
3163- sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
3164- case $host_os in
3165- sco3.2v5*)
3166- sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
3167- ;;
3168- esac
3169- fi
3170- sys_lib_dlsearch_path_spec='/usr/lib'
3171- ;;
3172-
3173-tpf*)
3174- # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
3175- version_type=linux # correct to gnu/linux during the next big refactor
3176- need_lib_prefix=no
3177- need_version=no
3178- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3179- shlibpath_var=LD_LIBRARY_PATH
3180- shlibpath_overrides_runpath=no
3181- hardcode_into_libs=yes
3182- ;;
3183-
3184-uts4*)
3185- version_type=linux # correct to gnu/linux during the next big refactor
3186- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3187- soname_spec='${libname}${release}${shared_ext}$major'
3188- shlibpath_var=LD_LIBRARY_PATH
3189- ;;
3190-
3191-*)
3192- dynamic_linker=no
3193- ;;
3194-esac
3195-AC_MSG_RESULT([$dynamic_linker])
3196-test "$dynamic_linker" = no && can_build_shared=no
3197-
3198-variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
3199-if test "$GCC" = yes; then
3200- variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
3201-fi
3202-
3203-if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
3204- sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
3205-fi
3206-if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
3207- sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
3208-fi
3209-
3210-_LT_DECL([], [variables_saved_for_relink], [1],
3211- [Variables whose values should be saved in libtool wrapper scripts and
3212- restored at link time])
3213-_LT_DECL([], [need_lib_prefix], [0],
3214- [Do we need the "lib" prefix for modules?])
3215-_LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
3216-_LT_DECL([], [version_type], [0], [Library versioning type])
3217-_LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
3218-_LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
3219-_LT_DECL([], [shlibpath_overrides_runpath], [0],
3220- [Is shlibpath searched before the hard-coded library search path?])
3221-_LT_DECL([], [libname_spec], [1], [Format of library name prefix])
3222-_LT_DECL([], [library_names_spec], [1],
3223- [[List of archive names. First name is the real one, the rest are links.
3224- The last name is the one that the linker finds with -lNAME]])
3225-_LT_DECL([], [soname_spec], [1],
3226- [[The coded name of the library, if different from the real name]])
3227-_LT_DECL([], [install_override_mode], [1],
3228- [Permission mode override for installation of shared libraries])
3229-_LT_DECL([], [postinstall_cmds], [2],
3230- [Command to use after installation of a shared archive])
3231-_LT_DECL([], [postuninstall_cmds], [2],
3232- [Command to use after uninstallation of a shared archive])
3233-_LT_DECL([], [finish_cmds], [2],
3234- [Commands used to finish a libtool library installation in a directory])
3235-_LT_DECL([], [finish_eval], [1],
3236- [[As "finish_cmds", except a single script fragment to be evaled but
3237- not shown]])
3238-_LT_DECL([], [hardcode_into_libs], [0],
3239- [Whether we should hardcode library paths into libraries])
3240-_LT_DECL([], [sys_lib_search_path_spec], [2],
3241- [Compile-time system search path for libraries])
3242-_LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
3243- [Run-time system search path for libraries])
3244-])# _LT_SYS_DYNAMIC_LINKER
3245-
3246-
3247-# _LT_PATH_TOOL_PREFIX(TOOL)
3248-# --------------------------
3249-# find a file program which can recognize shared library
3250-AC_DEFUN([_LT_PATH_TOOL_PREFIX],
3251-[m4_require([_LT_DECL_EGREP])dnl
3252-AC_MSG_CHECKING([for $1])
3253-AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
3254-[case $MAGIC_CMD in
3255-[[\\/*] | ?:[\\/]*])
3256- lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3257- ;;
3258-*)
3259- lt_save_MAGIC_CMD="$MAGIC_CMD"
3260- lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3261-dnl $ac_dummy forces splitting on constant user-supplied paths.
3262-dnl POSIX.2 word splitting is done only on the output of word expansions,
3263-dnl not every word. This closes a longstanding sh security hole.
3264- ac_dummy="m4_if([$2], , $PATH, [$2])"
3265- for ac_dir in $ac_dummy; do
3266- IFS="$lt_save_ifs"
3267- test -z "$ac_dir" && ac_dir=.
3268- if test -f $ac_dir/$1; then
3269- lt_cv_path_MAGIC_CMD="$ac_dir/$1"
3270- if test -n "$file_magic_test_file"; then
3271- case $deplibs_check_method in
3272- "file_magic "*)
3273- file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
3274- MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3275- if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3276- $EGREP "$file_magic_regex" > /dev/null; then
3277- :
3278- else
3279- cat <<_LT_EOF 1>&2
3280-
3281-*** Warning: the command libtool uses to detect shared libraries,
3282-*** $file_magic_cmd, produces output that libtool cannot recognize.
3283-*** The result is that libtool may fail to recognize shared libraries
3284-*** as such. This will affect the creation of libtool libraries that
3285-*** depend on shared libraries, but programs linked with such libtool
3286-*** libraries will work regardless of this problem. Nevertheless, you
3287-*** may want to report the problem to your system manager and/or to
3288-*** bug-libtool@gnu.org
3289-
3290-_LT_EOF
3291- fi ;;
3292- esac
3293- fi
3294- break
3295- fi
3296- done
3297- IFS="$lt_save_ifs"
3298- MAGIC_CMD="$lt_save_MAGIC_CMD"
3299- ;;
3300-esac])
3301-MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3302-if test -n "$MAGIC_CMD"; then
3303- AC_MSG_RESULT($MAGIC_CMD)
3304-else
3305- AC_MSG_RESULT(no)
3306-fi
3307-_LT_DECL([], [MAGIC_CMD], [0],
3308- [Used to examine libraries when file_magic_cmd begins with "file"])dnl
3309-])# _LT_PATH_TOOL_PREFIX
3310-
3311-# Old name:
3312-AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
3313-dnl aclocal-1.4 backwards compatibility:
3314-dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
3315-
3316-
3317-# _LT_PATH_MAGIC
3318-# --------------
3319-# find a file program which can recognize a shared library
3320-m4_defun([_LT_PATH_MAGIC],
3321-[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
3322-if test -z "$lt_cv_path_MAGIC_CMD"; then
3323- if test -n "$ac_tool_prefix"; then
3324- _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
3325- else
3326- MAGIC_CMD=:
3327- fi
3328-fi
3329-])# _LT_PATH_MAGIC
3330-
3331-
3332-# LT_PATH_LD
3333-# ----------
3334-# find the pathname to the GNU or non-GNU linker
3335-AC_DEFUN([LT_PATH_LD],
3336-[AC_REQUIRE([AC_PROG_CC])dnl
3337-AC_REQUIRE([AC_CANONICAL_HOST])dnl
3338-AC_REQUIRE([AC_CANONICAL_BUILD])dnl
3339-m4_require([_LT_DECL_SED])dnl
3340-m4_require([_LT_DECL_EGREP])dnl
3341-m4_require([_LT_PROG_ECHO_BACKSLASH])dnl
3342-
3343-AC_ARG_WITH([gnu-ld],
3344- [AS_HELP_STRING([--with-gnu-ld],
3345- [assume the C compiler uses GNU ld @<:@default=no@:>@])],
3346- [test "$withval" = no || with_gnu_ld=yes],
3347- [with_gnu_ld=no])dnl
3348-
3349-ac_prog=ld
3350-if test "$GCC" = yes; then
3351- # Check if gcc -print-prog-name=ld gives a path.
3352- AC_MSG_CHECKING([for ld used by $CC])
3353- case $host in
3354- *-*-mingw*)
3355- # gcc leaves a trailing carriage return which upsets mingw
3356- ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3357- *)
3358- ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3359- esac
3360- case $ac_prog in
3361- # Accept absolute paths.
3362- [[\\/]]* | ?:[[\\/]]*)
3363- re_direlt='/[[^/]][[^/]]*/\.\./'
3364- # Canonicalize the pathname of ld
3365- ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3366- while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3367- ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3368- done
3369- test -z "$LD" && LD="$ac_prog"
3370- ;;
3371- "")
3372- # If it fails, then pretend we aren't using GCC.
3373- ac_prog=ld
3374- ;;
3375- *)
3376- # If it is relative, then search for the first ld in PATH.
3377- with_gnu_ld=unknown
3378- ;;
3379- esac
3380-elif test "$with_gnu_ld" = yes; then
3381- AC_MSG_CHECKING([for GNU ld])
3382-else
3383- AC_MSG_CHECKING([for non-GNU ld])
3384-fi
3385-AC_CACHE_VAL(lt_cv_path_LD,
3386-[if test -z "$LD"; then
3387- lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3388- for ac_dir in $PATH; do
3389- IFS="$lt_save_ifs"
3390- test -z "$ac_dir" && ac_dir=.
3391- if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3392- lt_cv_path_LD="$ac_dir/$ac_prog"
3393- # Check to see if the program is GNU ld. I'd rather use --version,
3394- # but apparently some variants of GNU ld only accept -v.
3395- # Break only if it was the GNU/non-GNU ld that we prefer.
3396- case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3397- *GNU* | *'with BFD'*)
3398- test "$with_gnu_ld" != no && break
3399- ;;
3400- *)
3401- test "$with_gnu_ld" != yes && break
3402- ;;
3403- esac
3404- fi
3405- done
3406- IFS="$lt_save_ifs"
3407-else
3408- lt_cv_path_LD="$LD" # Let the user override the test with a path.
3409-fi])
3410-LD="$lt_cv_path_LD"
3411-if test -n "$LD"; then
3412- AC_MSG_RESULT($LD)
3413-else
3414- AC_MSG_RESULT(no)
3415-fi
3416-test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
3417-_LT_PATH_LD_GNU
3418-AC_SUBST([LD])
3419-
3420-_LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
3421-])# LT_PATH_LD
3422-
3423-# Old names:
3424-AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
3425-AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
3426-dnl aclocal-1.4 backwards compatibility:
3427-dnl AC_DEFUN([AM_PROG_LD], [])
3428-dnl AC_DEFUN([AC_PROG_LD], [])
3429-
3430-
3431-# _LT_PATH_LD_GNU
3432-#- --------------
3433-m4_defun([_LT_PATH_LD_GNU],
3434-[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
3435-[# I'd rather use --version here, but apparently some GNU lds only accept -v.
3436-case `$LD -v 2>&1 </dev/null` in
3437-*GNU* | *'with BFD'*)
3438- lt_cv_prog_gnu_ld=yes
3439- ;;
3440-*)
3441- lt_cv_prog_gnu_ld=no
3442- ;;
3443-esac])
3444-with_gnu_ld=$lt_cv_prog_gnu_ld
3445-])# _LT_PATH_LD_GNU
3446-
3447-
3448-# _LT_CMD_RELOAD
3449-# --------------
3450-# find reload flag for linker
3451-# -- PORTME Some linkers may need a different reload flag.
3452-m4_defun([_LT_CMD_RELOAD],
3453-[AC_CACHE_CHECK([for $LD option to reload object files],
3454- lt_cv_ld_reload_flag,
3455- [lt_cv_ld_reload_flag='-r'])
3456-reload_flag=$lt_cv_ld_reload_flag
3457-case $reload_flag in
3458-"" | " "*) ;;
3459-*) reload_flag=" $reload_flag" ;;
3460-esac
3461-reload_cmds='$LD$reload_flag -o $output$reload_objs'
3462-case $host_os in
3463- cygwin* | mingw* | pw32* | cegcc*)
3464- if test "$GCC" != yes; then
3465- reload_cmds=false
3466- fi
3467- ;;
3468- darwin*)
3469- if test "$GCC" = yes; then
3470- reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3471- else
3472- reload_cmds='$LD$reload_flag -o $output$reload_objs'
3473- fi
3474- ;;
3475-esac
3476-_LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl
3477-_LT_TAGDECL([], [reload_cmds], [2])dnl
3478-])# _LT_CMD_RELOAD
3479-
3480-
3481-# _LT_CHECK_MAGIC_METHOD
3482-# ----------------------
3483-# how to check for library dependencies
3484-# -- PORTME fill in with the dynamic library characteristics
3485-m4_defun([_LT_CHECK_MAGIC_METHOD],
3486-[m4_require([_LT_DECL_EGREP])
3487-m4_require([_LT_DECL_OBJDUMP])
3488-AC_CACHE_CHECK([how to recognize dependent libraries],
3489-lt_cv_deplibs_check_method,
3490-[lt_cv_file_magic_cmd='$MAGIC_CMD'
3491-lt_cv_file_magic_test_file=
3492-lt_cv_deplibs_check_method='unknown'
3493-# Need to set the preceding variable on all platforms that support
3494-# interlibrary dependencies.
3495-# 'none' -- dependencies not supported.
3496-# `unknown' -- same as none, but documents that we really don't know.
3497-# 'pass_all' -- all dependencies passed with no checks.
3498-# 'test_compile' -- check by making test program.
3499-# 'file_magic [[regex]]' -- check by looking for files in library path
3500-# which responds to the $file_magic_cmd with a given extended regex.
3501-# If you have `file' or equivalent on your system and you're not sure
3502-# whether `pass_all' will *always* work, you probably want this one.
3503-
3504-case $host_os in
3505-aix[[4-9]]*)
3506- lt_cv_deplibs_check_method=pass_all
3507- ;;
3508-
3509-beos*)
3510- lt_cv_deplibs_check_method=pass_all
3511- ;;
3512-
3513-bsdi[[45]]*)
3514- lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
3515- lt_cv_file_magic_cmd='/usr/bin/file -L'
3516- lt_cv_file_magic_test_file=/shlib/libc.so
3517- ;;
3518-
3519-cygwin*)
3520- # func_win32_libid is a shell function defined in ltmain.sh
3521- lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3522- lt_cv_file_magic_cmd='func_win32_libid'
3523- ;;
3524-
3525-mingw* | pw32*)
3526- # Base MSYS/MinGW do not provide the 'file' command needed by
3527- # func_win32_libid shell function, so use a weaker test based on 'objdump',
3528- # unless we find 'file', for example because we are cross-compiling.
3529- # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
3530- if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
3531- lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3532- lt_cv_file_magic_cmd='func_win32_libid'
3533- else
3534- # Keep this pattern in sync with the one in func_win32_libid.
3535- lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
3536- lt_cv_file_magic_cmd='$OBJDUMP -f'
3537- fi
3538- ;;
3539-
3540-cegcc*)
3541- # use the weaker test based on 'objdump'. See mingw*.
3542- lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
3543- lt_cv_file_magic_cmd='$OBJDUMP -f'
3544- ;;
3545-
3546-darwin* | rhapsody*)
3547- lt_cv_deplibs_check_method=pass_all
3548- ;;
3549-
3550-freebsd* | dragonfly*)
3551- if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3552- case $host_cpu in
3553- i*86 )
3554- # Not sure whether the presence of OpenBSD here was a mistake.
3555- # Let's accept both of them until this is cleared up.
3556- lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
3557- lt_cv_file_magic_cmd=/usr/bin/file
3558- lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3559- ;;
3560- esac
3561- else
3562- lt_cv_deplibs_check_method=pass_all
3563- fi
3564- ;;
3565-
3566-gnu*)
3567- lt_cv_deplibs_check_method=pass_all
3568- ;;
3569-
3570-haiku*)
3571- lt_cv_deplibs_check_method=pass_all
3572- ;;
3573-
3574-hpux10.20* | hpux11*)
3575- lt_cv_file_magic_cmd=/usr/bin/file
3576- case $host_cpu in
3577- ia64*)
3578- lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
3579- lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3580- ;;
3581- hppa*64*)
3582- [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]']
3583- lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3584- ;;
3585- *)
3586- lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library'
3587- lt_cv_file_magic_test_file=/usr/lib/libc.sl
3588- ;;
3589- esac
3590- ;;
3591-
3592-interix[[3-9]]*)
3593- # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3594- lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
3595- ;;
3596-
3597-irix5* | irix6* | nonstopux*)
3598- case $LD in
3599- *-32|*"-32 ") libmagic=32-bit;;
3600- *-n32|*"-n32 ") libmagic=N32;;
3601- *-64|*"-64 ") libmagic=64-bit;;
3602- *) libmagic=never-match;;
3603- esac
3604- lt_cv_deplibs_check_method=pass_all
3605- ;;
3606-
3607-# This must be glibc/ELF.
3608-linux* | k*bsd*-gnu | kopensolaris*-gnu)
3609- lt_cv_deplibs_check_method=pass_all
3610- ;;
3611-
3612-netbsd* | netbsdelf*-gnu)
3613- if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3614- lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3615- else
3616- lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
3617- fi
3618- ;;
3619-
3620-newos6*)
3621- lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
3622- lt_cv_file_magic_cmd=/usr/bin/file
3623- lt_cv_file_magic_test_file=/usr/lib/libnls.so
3624- ;;
3625-
3626-*nto* | *qnx*)
3627- lt_cv_deplibs_check_method=pass_all
3628- ;;
3629-
3630-openbsd*)
3631- if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3632- lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
3633- else
3634- lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3635- fi
3636- ;;
3637-
3638-osf3* | osf4* | osf5*)
3639- lt_cv_deplibs_check_method=pass_all
3640- ;;
3641-
3642-rdos*)
3643- lt_cv_deplibs_check_method=pass_all
3644- ;;
3645-
3646-solaris*)
3647- lt_cv_deplibs_check_method=pass_all
3648- ;;
3649-
3650-sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3651- lt_cv_deplibs_check_method=pass_all
3652- ;;
3653-
3654-sysv4 | sysv4.3*)
3655- case $host_vendor in
3656- motorola)
3657- lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]'
3658- lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3659- ;;
3660- ncr)
3661- lt_cv_deplibs_check_method=pass_all
3662- ;;
3663- sequent)
3664- lt_cv_file_magic_cmd='/bin/file'
3665- lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
3666- ;;
3667- sni)
3668- lt_cv_file_magic_cmd='/bin/file'
3669- lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
3670- lt_cv_file_magic_test_file=/lib/libc.so
3671- ;;
3672- siemens)
3673- lt_cv_deplibs_check_method=pass_all
3674- ;;
3675- pc)
3676- lt_cv_deplibs_check_method=pass_all
3677- ;;
3678- esac
3679- ;;
3680-
3681-tpf*)
3682- lt_cv_deplibs_check_method=pass_all
3683- ;;
3684-esac
3685-])
3686-
3687-file_magic_glob=
3688-want_nocaseglob=no
3689-if test "$build" = "$host"; then
3690- case $host_os in
3691- mingw* | pw32*)
3692- if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
3693- want_nocaseglob=yes
3694- else
3695- file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"`
3696- fi
3697- ;;
3698- esac
3699-fi
3700-
3701-file_magic_cmd=$lt_cv_file_magic_cmd
3702-deplibs_check_method=$lt_cv_deplibs_check_method
3703-test -z "$deplibs_check_method" && deplibs_check_method=unknown
3704-
3705-_LT_DECL([], [deplibs_check_method], [1],
3706- [Method to check whether dependent libraries are shared objects])
3707-_LT_DECL([], [file_magic_cmd], [1],
3708- [Command to use when deplibs_check_method = "file_magic"])
3709-_LT_DECL([], [file_magic_glob], [1],
3710- [How to find potential files when deplibs_check_method = "file_magic"])
3711-_LT_DECL([], [want_nocaseglob], [1],
3712- [Find potential files using nocaseglob when deplibs_check_method = "file_magic"])
3713-])# _LT_CHECK_MAGIC_METHOD
3714-
3715-
3716-# LT_PATH_NM
3717-# ----------
3718-# find the pathname to a BSD- or MS-compatible name lister
3719-AC_DEFUN([LT_PATH_NM],
3720-[AC_REQUIRE([AC_PROG_CC])dnl
3721-AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
3722-[if test -n "$NM"; then
3723- # Let the user override the test.
3724- lt_cv_path_NM="$NM"
3725-else
3726- lt_nm_to_check="${ac_tool_prefix}nm"
3727- if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3728- lt_nm_to_check="$lt_nm_to_check nm"
3729- fi
3730- for lt_tmp_nm in $lt_nm_to_check; do
3731- lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3732- for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3733- IFS="$lt_save_ifs"
3734- test -z "$ac_dir" && ac_dir=.
3735- tmp_nm="$ac_dir/$lt_tmp_nm"
3736- if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3737- # Check to see if the nm accepts a BSD-compat flag.
3738- # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3739- # nm: unknown option "B" ignored
3740- # Tru64's nm complains that /dev/null is an invalid object file
3741- case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3742- */dev/null* | *'Invalid file or object type'*)
3743- lt_cv_path_NM="$tmp_nm -B"
3744- break
3745- ;;
3746- *)
3747- case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3748- */dev/null*)
3749- lt_cv_path_NM="$tmp_nm -p"
3750- break
3751- ;;
3752- *)
3753- lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3754- continue # so that we can try to find one that supports BSD flags
3755- ;;
3756- esac
3757- ;;
3758- esac
3759- fi
3760- done
3761- IFS="$lt_save_ifs"
3762- done
3763- : ${lt_cv_path_NM=no}
3764-fi])
3765-if test "$lt_cv_path_NM" != "no"; then
3766- NM="$lt_cv_path_NM"
3767-else
3768- # Didn't find any BSD compatible name lister, look for dumpbin.
3769- if test -n "$DUMPBIN"; then :
3770- # Let the user override the test.
3771- else
3772- AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
3773- case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
3774- *COFF*)
3775- DUMPBIN="$DUMPBIN -symbols"
3776- ;;
3777- *)
3778- DUMPBIN=:
3779- ;;
3780- esac
3781- fi
3782- AC_SUBST([DUMPBIN])
3783- if test "$DUMPBIN" != ":"; then
3784- NM="$DUMPBIN"
3785- fi
3786-fi
3787-test -z "$NM" && NM=nm
3788-AC_SUBST([NM])
3789-_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
3790-
3791-AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
3792- [lt_cv_nm_interface="BSD nm"
3793- echo "int some_variable = 0;" > conftest.$ac_ext
3794- (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
3795- (eval "$ac_compile" 2>conftest.err)
3796- cat conftest.err >&AS_MESSAGE_LOG_FD
3797- (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
3798- (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3799- cat conftest.err >&AS_MESSAGE_LOG_FD
3800- (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD)
3801- cat conftest.out >&AS_MESSAGE_LOG_FD
3802- if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3803- lt_cv_nm_interface="MS dumpbin"
3804- fi
3805- rm -f conftest*])
3806-])# LT_PATH_NM
3807-
3808-# Old names:
3809-AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
3810-AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
3811-dnl aclocal-1.4 backwards compatibility:
3812-dnl AC_DEFUN([AM_PROG_NM], [])
3813-dnl AC_DEFUN([AC_PROG_NM], [])
3814-
3815-# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
3816-# --------------------------------
3817-# how to determine the name of the shared library
3818-# associated with a specific link library.
3819-# -- PORTME fill in with the dynamic library characteristics
3820-m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB],
3821-[m4_require([_LT_DECL_EGREP])
3822-m4_require([_LT_DECL_OBJDUMP])
3823-m4_require([_LT_DECL_DLLTOOL])
3824-AC_CACHE_CHECK([how to associate runtime and link libraries],
3825-lt_cv_sharedlib_from_linklib_cmd,
3826-[lt_cv_sharedlib_from_linklib_cmd='unknown'
3827-
3828-case $host_os in
3829-cygwin* | mingw* | pw32* | cegcc*)
3830- # two different shell functions defined in ltmain.sh
3831- # decide which to use based on capabilities of $DLLTOOL
3832- case `$DLLTOOL --help 2>&1` in
3833- *--identify-strict*)
3834- lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
3835- ;;
3836- *)
3837- lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
3838- ;;
3839- esac
3840- ;;
3841-*)
3842- # fallback: assume linklib IS sharedlib
3843- lt_cv_sharedlib_from_linklib_cmd="$ECHO"
3844- ;;
3845-esac
3846-])
3847-sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
3848-test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
3849-
3850-_LT_DECL([], [sharedlib_from_linklib_cmd], [1],
3851- [Command to associate shared and link libraries])
3852-])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
3853-
3854-
3855-# _LT_PATH_MANIFEST_TOOL
3856-# ----------------------
3857-# locate the manifest tool
3858-m4_defun([_LT_PATH_MANIFEST_TOOL],
3859-[AC_CHECK_TOOL(MANIFEST_TOOL, mt, :)
3860-test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
3861-AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool],
3862- [lt_cv_path_mainfest_tool=no
3863- echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
3864- $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
3865- cat conftest.err >&AS_MESSAGE_LOG_FD
3866- if $GREP 'Manifest Tool' conftest.out > /dev/null; then
3867- lt_cv_path_mainfest_tool=yes
3868- fi
3869- rm -f conftest*])
3870-if test "x$lt_cv_path_mainfest_tool" != xyes; then
3871- MANIFEST_TOOL=:
3872-fi
3873-_LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
3874-])# _LT_PATH_MANIFEST_TOOL
3875-
3876-
3877-# LT_LIB_M
3878-# --------
3879-# check for math library
3880-AC_DEFUN([LT_LIB_M],
3881-[AC_REQUIRE([AC_CANONICAL_HOST])dnl
3882-LIBM=
3883-case $host in
3884-*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
3885- # These system don't have libm, or don't need it
3886- ;;
3887-*-ncr-sysv4.3*)
3888- AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
3889- AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
3890- ;;
3891-*)
3892- AC_CHECK_LIB(m, cos, LIBM="-lm")
3893- ;;
3894-esac
3895-AC_SUBST([LIBM])
3896-])# LT_LIB_M
3897-
3898-# Old name:
3899-AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
3900-dnl aclocal-1.4 backwards compatibility:
3901-dnl AC_DEFUN([AC_CHECK_LIBM], [])
3902-
3903-
3904-# _LT_COMPILER_NO_RTTI([TAGNAME])
3905-# -------------------------------
3906-m4_defun([_LT_COMPILER_NO_RTTI],
3907-[m4_require([_LT_TAG_COMPILER])dnl
3908-
3909-_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
3910-
3911-if test "$GCC" = yes; then
3912- case $cc_basename in
3913- nvcc*)
3914- _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
3915- *)
3916- _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;;
3917- esac
3918-
3919- _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
3920- lt_cv_prog_compiler_rtti_exceptions,
3921- [-fno-rtti -fno-exceptions], [],
3922- [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
3923-fi
3924-_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
3925- [Compiler flag to turn off builtin functions])
3926-])# _LT_COMPILER_NO_RTTI
3927-
3928-
3929-# _LT_CMD_GLOBAL_SYMBOLS
3930-# ----------------------
3931-m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
3932-[AC_REQUIRE([AC_CANONICAL_HOST])dnl
3933-AC_REQUIRE([AC_PROG_CC])dnl
3934-AC_REQUIRE([AC_PROG_AWK])dnl
3935-AC_REQUIRE([LT_PATH_NM])dnl
3936-AC_REQUIRE([LT_PATH_LD])dnl
3937-m4_require([_LT_DECL_SED])dnl
3938-m4_require([_LT_DECL_EGREP])dnl
3939-m4_require([_LT_TAG_COMPILER])dnl
3940-
3941-# Check for command to grab the raw symbol name followed by C symbol from nm.
3942-AC_MSG_CHECKING([command to parse $NM output from $compiler object])
3943-AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
3944-[
3945-# These are sane defaults that work on at least a few old systems.
3946-# [They come from Ultrix. What could be older than Ultrix?!! ;)]
3947-
3948-# Character class describing NM global symbol codes.
3949-symcode='[[BCDEGRST]]'
3950-
3951-# Regexp to match symbols that can be accessed directly from C.
3952-sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
3953-
3954-# Define system-specific variables.
3955-case $host_os in
3956-aix*)
3957- symcode='[[BCDT]]'
3958- ;;
3959-cygwin* | mingw* | pw32* | cegcc*)
3960- symcode='[[ABCDGISTW]]'
3961- ;;
3962-hpux*)
3963- if test "$host_cpu" = ia64; then
3964- symcode='[[ABCDEGRST]]'
3965- fi
3966- ;;
3967-irix* | nonstopux*)
3968- symcode='[[BCDEGRST]]'
3969- ;;
3970-osf*)
3971- symcode='[[BCDEGQRST]]'
3972- ;;
3973-solaris*)
3974- symcode='[[BDRT]]'
3975- ;;
3976-sco3.2v5*)
3977- symcode='[[DT]]'
3978- ;;
3979-sysv4.2uw2*)
3980- symcode='[[DT]]'
3981- ;;
3982-sysv5* | sco5v6* | unixware* | OpenUNIX*)
3983- symcode='[[ABDT]]'
3984- ;;
3985-sysv4)
3986- symcode='[[DFNSTU]]'
3987- ;;
3988-esac
3989-
3990-# If we're using GNU nm, then use its standard symbol codes.
3991-case `$NM -V 2>&1` in
3992-*GNU* | *'with BFD'*)
3993- symcode='[[ABCDGIRSTW]]' ;;
3994-esac
3995-
3996-# Transform an extracted symbol line into a proper C declaration.
3997-# Some systems (esp. on ia64) link data and code symbols differently,
3998-# so use this general approach.
3999-lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4000-
4001-# Transform an extracted symbol line into symbol name and symbol address
4002-lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
4003-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'"
4004-
4005-# Handle CRLF in mingw tool chain
4006-opt_cr=
4007-case $build_os in
4008-mingw*)
4009- opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4010- ;;
4011-esac
4012-
4013-# Try without a prefix underscore, then with it.
4014-for ac_symprfx in "" "_"; do
4015-
4016- # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4017- symxfrm="\\1 $ac_symprfx\\2 \\2"
4018-
4019- # Write the raw and C identifiers.
4020- if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4021- # Fake it for dumpbin and say T for any non-static function
4022- # and D for any global variable.
4023- # Also find C++ and __fastcall symbols from MSVC++,
4024- # which start with @ or ?.
4025- lt_cv_sys_global_symbol_pipe="$AWK ['"\
4026-" {last_section=section; section=\$ 3};"\
4027-" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
4028-" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4029-" \$ 0!~/External *\|/{next};"\
4030-" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4031-" {if(hide[section]) next};"\
4032-" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4033-" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4034-" s[1]~/^[@?]/{print s[1], s[1]; next};"\
4035-" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4036-" ' prfx=^$ac_symprfx]"
4037- else
4038- lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4039- fi
4040- lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
4041-
4042- # Check to see that the pipe works correctly.
4043- pipe_works=no
4044-
4045- rm -f conftest*
4046- cat > conftest.$ac_ext <<_LT_EOF
4047-#ifdef __cplusplus
4048-extern "C" {
4049-#endif
4050-char nm_test_var;
4051-void nm_test_func(void);
4052-void nm_test_func(void){}
4053-#ifdef __cplusplus
4054-}
4055-#endif
4056-int main(){nm_test_var='a';nm_test_func();return(0);}
4057-_LT_EOF
4058-
4059- if AC_TRY_EVAL(ac_compile); then
4060- # Now try to grab the symbols.
4061- nlist=conftest.nm
4062- if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then
4063- # Try sorting and uniquifying the output.
4064- if sort "$nlist" | uniq > "$nlist"T; then
4065- mv -f "$nlist"T "$nlist"
4066- else
4067- rm -f "$nlist"T
4068- fi
4069-
4070- # Make sure that we snagged all the symbols we need.
4071- if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4072- if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4073- cat <<_LT_EOF > conftest.$ac_ext
4074-/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
4075-#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
4076-/* DATA imports from DLLs on WIN32 con't be const, because runtime
4077- relocations are performed -- see ld's documentation on pseudo-relocs. */
4078-# define LT@&t@_DLSYM_CONST
4079-#elif defined(__osf__)
4080-/* This system does not cope well with relocations in const data. */
4081-# define LT@&t@_DLSYM_CONST
4082-#else
4083-# define LT@&t@_DLSYM_CONST const
4084-#endif
4085-
4086-#ifdef __cplusplus
4087-extern "C" {
4088-#endif
4089-
4090-_LT_EOF
4091- # Now generate the symbol file.
4092- eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
4093-
4094- cat <<_LT_EOF >> conftest.$ac_ext
4095-
4096-/* The mapping between symbol names and symbols. */
4097-LT@&t@_DLSYM_CONST struct {
4098- const char *name;
4099- void *address;
4100-}
4101-lt__PROGRAM__LTX_preloaded_symbols[[]] =
4102-{
4103- { "@PROGRAM@", (void *) 0 },
4104-_LT_EOF
4105- $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
4106- cat <<\_LT_EOF >> conftest.$ac_ext
4107- {0, (void *) 0}
4108-};
4109-
4110-/* This works around a problem in FreeBSD linker */
4111-#ifdef FREEBSD_WORKAROUND
4112-static const void *lt_preloaded_setup() {
4113- return lt__PROGRAM__LTX_preloaded_symbols;
4114-}
4115-#endif
4116-
4117-#ifdef __cplusplus
4118-}
4119-#endif
4120-_LT_EOF
4121- # Now try linking the two files.
4122- mv conftest.$ac_objext conftstm.$ac_objext
4123- lt_globsym_save_LIBS=$LIBS
4124- lt_globsym_save_CFLAGS=$CFLAGS
4125- LIBS="conftstm.$ac_objext"
4126- CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
4127- if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
4128- pipe_works=yes
4129- fi
4130- LIBS=$lt_globsym_save_LIBS
4131- CFLAGS=$lt_globsym_save_CFLAGS
4132- else
4133- echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
4134- fi
4135- else
4136- echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
4137- fi
4138- else
4139- echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
4140- fi
4141- else
4142- echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
4143- cat conftest.$ac_ext >&5
4144- fi
4145- rm -rf conftest* conftst*
4146-
4147- # Do not use the global_symbol_pipe unless it works.
4148- if test "$pipe_works" = yes; then
4149- break
4150- else
4151- lt_cv_sys_global_symbol_pipe=
4152- fi
4153-done
4154-])
4155-if test -z "$lt_cv_sys_global_symbol_pipe"; then
4156- lt_cv_sys_global_symbol_to_cdecl=
4157-fi
4158-if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4159- AC_MSG_RESULT(failed)
4160-else
4161- AC_MSG_RESULT(ok)
4162-fi
4163-
4164-# Response file support.
4165-if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4166- nm_file_list_spec='@'
4167-elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then
4168- nm_file_list_spec='@'
4169-fi
4170-
4171-_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
4172- [Take the output of nm and produce a listing of raw symbols and C names])
4173-_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
4174- [Transform the output of nm in a proper C declaration])
4175-_LT_DECL([global_symbol_to_c_name_address],
4176- [lt_cv_sys_global_symbol_to_c_name_address], [1],
4177- [Transform the output of nm in a C name address pair])
4178-_LT_DECL([global_symbol_to_c_name_address_lib_prefix],
4179- [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
4180- [Transform the output of nm in a C name address pair when lib prefix is needed])
4181-_LT_DECL([], [nm_file_list_spec], [1],
4182- [Specify filename containing input files for $NM])
4183-]) # _LT_CMD_GLOBAL_SYMBOLS
4184-
4185-
4186-# _LT_COMPILER_PIC([TAGNAME])
4187-# ---------------------------
4188-m4_defun([_LT_COMPILER_PIC],
4189-[m4_require([_LT_TAG_COMPILER])dnl
4190-_LT_TAGVAR(lt_prog_compiler_wl, $1)=
4191-_LT_TAGVAR(lt_prog_compiler_pic, $1)=
4192-_LT_TAGVAR(lt_prog_compiler_static, $1)=
4193-
4194-m4_if([$1], [CXX], [
4195- # C++ specific cases for pic, static, wl, etc.
4196- if test "$GXX" = yes; then
4197- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4198- _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4199-
4200- case $host_os in
4201- aix*)
4202- # All AIX code is PIC.
4203- if test "$host_cpu" = ia64; then
4204- # AIX 5 now supports IA64 processor
4205- _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4206- fi
4207- ;;
4208-
4209- amigaos*)
4210- case $host_cpu in
4211- powerpc)
4212- # see comment about AmigaOS4 .so support
4213- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4214- ;;
4215- m68k)
4216- # FIXME: we need at least 68020 code to build shared libraries, but
4217- # adding the `-m68020' flag to GCC prevents building anything better,
4218- # like `-m68040'.
4219- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4220- ;;
4221- esac
4222- ;;
4223-
4224- beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4225- # PIC is the default for these OSes.
4226- ;;
4227- mingw* | cygwin* | os2* | pw32* | cegcc*)
4228- # This hack is so that the source file can tell whether it is being
4229- # built for inclusion in a dll (and should export symbols for example).
4230- # Although the cygwin gcc ignores -fPIC, still need this for old-style
4231- # (--disable-auto-import) libraries
4232- m4_if([$1], [GCJ], [],
4233- [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4234- ;;
4235- darwin* | rhapsody*)
4236- # PIC is the default on this platform
4237- # Common symbols not allowed in MH_DYLIB files
4238- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4239- ;;
4240- *djgpp*)
4241- # DJGPP does not support shared libraries at all
4242- _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4243- ;;
4244- haiku*)
4245- # PIC is the default for Haiku.
4246- # The "-static" flag exists, but is broken.
4247- _LT_TAGVAR(lt_prog_compiler_static, $1)=
4248- ;;
4249- interix[[3-9]]*)
4250- # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4251- # Instead, we relocate shared libraries at runtime.
4252- ;;
4253- sysv4*MP*)
4254- if test -d /usr/nec; then
4255- _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
4256- fi
4257- ;;
4258- hpux*)
4259- # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
4260- # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
4261- # sets the default TLS model and affects inlining.
4262- case $host_cpu in
4263- hppa*64*)
4264- ;;
4265- *)
4266- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4267- ;;
4268- esac
4269- ;;
4270- *qnx* | *nto*)
4271- # QNX uses GNU C++, but need to define -shared option too, otherwise
4272- # it will coredump.
4273- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4274- ;;
4275- *)
4276- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4277- ;;
4278- esac
4279- else
4280- case $host_os in
4281- aix[[4-9]]*)
4282- # All AIX code is PIC.
4283- if test "$host_cpu" = ia64; then
4284- # AIX 5 now supports IA64 processor
4285- _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4286- else
4287- _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
4288- fi
4289- ;;
4290- chorus*)
4291- case $cc_basename in
4292- cxch68*)
4293- # Green Hills C++ Compiler
4294- # _LT_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
4295- ;;
4296- esac
4297- ;;
4298- mingw* | cygwin* | os2* | pw32* | cegcc*)
4299- # This hack is so that the source file can tell whether it is being
4300- # built for inclusion in a dll (and should export symbols for example).
4301- m4_if([$1], [GCJ], [],
4302- [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4303- ;;
4304- dgux*)
4305- case $cc_basename in
4306- ec++*)
4307- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4308- ;;
4309- ghcx*)
4310- # Green Hills C++ Compiler
4311- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4312- ;;
4313- *)
4314- ;;
4315- esac
4316- ;;
4317- freebsd* | dragonfly*)
4318- # FreeBSD uses GNU C++
4319- ;;
4320- hpux9* | hpux10* | hpux11*)
4321- case $cc_basename in
4322- CC*)
4323- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4324- _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4325- if test "$host_cpu" != ia64; then
4326- _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4327- fi
4328- ;;
4329- aCC*)
4330- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4331- _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4332- case $host_cpu in
4333- hppa*64*|ia64*)
4334- # +Z the default
4335- ;;
4336- *)
4337- _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4338- ;;
4339- esac
4340- ;;
4341- *)
4342- ;;
4343- esac
4344- ;;
4345- interix*)
4346- # This is c89, which is MS Visual C++ (no shared libs)
4347- # Anyone wants to do a port?
4348- ;;
4349- irix5* | irix6* | nonstopux*)
4350- case $cc_basename in
4351- CC*)
4352- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4353- _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4354- # CC pic flag -KPIC is the default.
4355- ;;
4356- *)
4357- ;;
4358- esac
4359- ;;
4360- linux* | k*bsd*-gnu | kopensolaris*-gnu)
4361- case $cc_basename in
4362- KCC*)
4363- # KAI C++ Compiler
4364- _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4365- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4366- ;;
4367- ecpc* )
4368- # old Intel C++ for x86_64 which still supported -KPIC.
4369- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4370- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4371- _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4372- ;;
4373- icpc* )
4374- # Intel C++, used to be incompatible with GCC.
4375- # ICC 10 doesn't accept -KPIC any more.
4376- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4377- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4378- _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4379- ;;
4380- pgCC* | pgcpp*)
4381- # Portland Group C++ compiler
4382- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4383- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4384- _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4385- ;;
4386- cxx*)
4387- # Compaq C++
4388- # Make sure the PIC flag is empty. It appears that all Alpha
4389- # Linux and Compaq Tru64 Unix objects are PIC.
4390- _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4391- _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4392- ;;
4393- xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*)
4394- # IBM XL 8.0, 9.0 on PPC and BlueGene
4395- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4396- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4397- _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4398- ;;
4399- *)
4400- case `$CC -V 2>&1 | sed 5q` in
4401- *Sun\ C*)
4402- # Sun C++ 5.9
4403- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4404- _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4405- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4406- ;;
4407- esac
4408- ;;
4409- esac
4410- ;;
4411- lynxos*)
4412- ;;
4413- m88k*)
4414- ;;
4415- mvs*)
4416- case $cc_basename in
4417- cxx*)
4418- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
4419- ;;
4420- *)
4421- ;;
4422- esac
4423- ;;
4424- netbsd* | netbsdelf*-gnu)
4425- ;;
4426- *qnx* | *nto*)
4427- # QNX uses GNU C++, but need to define -shared option too, otherwise
4428- # it will coredump.
4429- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4430- ;;
4431- osf3* | osf4* | osf5*)
4432- case $cc_basename in
4433- KCC*)
4434- _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4435- ;;
4436- RCC*)
4437- # Rational C++ 2.4.1
4438- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4439- ;;
4440- cxx*)
4441- # Digital/Compaq C++
4442- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4443- # Make sure the PIC flag is empty. It appears that all Alpha
4444- # Linux and Compaq Tru64 Unix objects are PIC.
4445- _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4446- _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4447- ;;
4448- *)
4449- ;;
4450- esac
4451- ;;
4452- psos*)
4453- ;;
4454- solaris*)
4455- case $cc_basename in
4456- CC* | sunCC*)
4457- # Sun C++ 4.2, 5.x and Centerline C++
4458- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4459- _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4460- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4461- ;;
4462- gcx*)
4463- # Green Hills C++ Compiler
4464- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4465- ;;
4466- *)
4467- ;;
4468- esac
4469- ;;
4470- sunos4*)
4471- case $cc_basename in
4472- CC*)
4473- # Sun C++ 4.x
4474- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4475- _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4476- ;;
4477- lcc*)
4478- # Lucid
4479- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4480- ;;
4481- *)
4482- ;;
4483- esac
4484- ;;
4485- sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
4486- case $cc_basename in
4487- CC*)
4488- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4489- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4490- _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4491- ;;
4492- esac
4493- ;;
4494- tandem*)
4495- case $cc_basename in
4496- NCC*)
4497- # NonStop-UX NCC 3.20
4498- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4499- ;;
4500- *)
4501- ;;
4502- esac
4503- ;;
4504- vxworks*)
4505- ;;
4506- *)
4507- _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4508- ;;
4509- esac
4510- fi
4511-],
4512-[
4513- if test "$GCC" = yes; then
4514- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4515- _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4516-
4517- case $host_os in
4518- aix*)
4519- # All AIX code is PIC.
4520- if test "$host_cpu" = ia64; then
4521- # AIX 5 now supports IA64 processor
4522- _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4523- fi
4524- ;;
4525-
4526- amigaos*)
4527- case $host_cpu in
4528- powerpc)
4529- # see comment about AmigaOS4 .so support
4530- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4531- ;;
4532- m68k)
4533- # FIXME: we need at least 68020 code to build shared libraries, but
4534- # adding the `-m68020' flag to GCC prevents building anything better,
4535- # like `-m68040'.
4536- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4537- ;;
4538- esac
4539- ;;
4540-
4541- beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4542- # PIC is the default for these OSes.
4543- ;;
4544-
4545- mingw* | cygwin* | pw32* | os2* | cegcc*)
4546- # This hack is so that the source file can tell whether it is being
4547- # built for inclusion in a dll (and should export symbols for example).
4548- # Although the cygwin gcc ignores -fPIC, still need this for old-style
4549- # (--disable-auto-import) libraries
4550- m4_if([$1], [GCJ], [],
4551- [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4552- ;;
4553-
4554- darwin* | rhapsody*)
4555- # PIC is the default on this platform
4556- # Common symbols not allowed in MH_DYLIB files
4557- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4558- ;;
4559-
4560- haiku*)
4561- # PIC is the default for Haiku.
4562- # The "-static" flag exists, but is broken.
4563- _LT_TAGVAR(lt_prog_compiler_static, $1)=
4564- ;;
4565-
4566- hpux*)
4567- # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
4568- # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
4569- # sets the default TLS model and affects inlining.
4570- case $host_cpu in
4571- hppa*64*)
4572- # +Z the default
4573- ;;
4574- *)
4575- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4576- ;;
4577- esac
4578- ;;
4579-
4580- interix[[3-9]]*)
4581- # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4582- # Instead, we relocate shared libraries at runtime.
4583- ;;
4584-
4585- msdosdjgpp*)
4586- # Just because we use GCC doesn't mean we suddenly get shared libraries
4587- # on systems that don't support them.
4588- _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4589- enable_shared=no
4590- ;;
4591-
4592- *nto* | *qnx*)
4593- # QNX uses GNU C++, but need to define -shared option too, otherwise
4594- # it will coredump.
4595- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4596- ;;
4597-
4598- sysv4*MP*)
4599- if test -d /usr/nec; then
4600- _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
4601- fi
4602- ;;
4603-
4604- *)
4605- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4606- ;;
4607- esac
4608-
4609- case $cc_basename in
4610- nvcc*) # Cuda Compiler Driver 2.2
4611- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
4612- if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
4613- _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)"
4614- fi
4615- ;;
4616- esac
4617- else
4618- # PORTME Check for flag to pass linker flags through the system compiler.
4619- case $host_os in
4620- aix*)
4621- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4622- if test "$host_cpu" = ia64; then
4623- # AIX 5 now supports IA64 processor
4624- _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4625- else
4626- _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
4627- fi
4628- ;;
4629-
4630- mingw* | cygwin* | pw32* | os2* | cegcc*)
4631- # This hack is so that the source file can tell whether it is being
4632- # built for inclusion in a dll (and should export symbols for example).
4633- m4_if([$1], [GCJ], [],
4634- [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4635- ;;
4636-
4637- hpux9* | hpux10* | hpux11*)
4638- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4639- # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
4640- # not for PA HP-UX.
4641- case $host_cpu in
4642- hppa*64*|ia64*)
4643- # +Z the default
4644- ;;
4645- *)
4646- _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4647- ;;
4648- esac
4649- # Is there a better lt_prog_compiler_static that works with the bundled CC?
4650- _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4651- ;;
4652-
4653- irix5* | irix6* | nonstopux*)
4654- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4655- # PIC (with -KPIC) is the default.
4656- _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4657- ;;
4658-
4659- linux* | k*bsd*-gnu | kopensolaris*-gnu)
4660- case $cc_basename in
4661- # old Intel for x86_64 which still supported -KPIC.
4662- ecc*)
4663- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4664- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4665- _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4666- ;;
4667- # icc used to be incompatible with GCC.
4668- # ICC 10 doesn't accept -KPIC any more.
4669- icc* | ifort*)
4670- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4671- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4672- _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4673- ;;
4674- # Lahey Fortran 8.1.
4675- lf95*)
4676- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4677- _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
4678- _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
4679- ;;
4680- nagfor*)
4681- # NAG Fortran compiler
4682- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
4683- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4684- _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4685- ;;
4686- pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
4687- # Portland Group compilers (*not* the Pentium gcc compiler,
4688- # which looks to be a dead project)
4689- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4690- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4691- _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4692- ;;
4693- ccc*)
4694- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4695- # All Alpha code is PIC.
4696- _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4697- ;;
4698- xl* | bgxl* | bgf* | mpixl*)
4699- # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
4700- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4701- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4702- _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4703- ;;
4704- *)
4705- case `$CC -V 2>&1 | sed 5q` in
4706- *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*)
4707- # Sun Fortran 8.3 passes all unrecognized flags to the linker
4708- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4709- _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4710- _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
4711- ;;
4712- *Sun\ F* | *Sun*Fortran*)
4713- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4714- _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4715- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4716- ;;
4717- *Sun\ C*)
4718- # Sun C 5.9
4719- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4720- _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4721- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4722- ;;
4723- *Intel*\ [[CF]]*Compiler*)
4724- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4725- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4726- _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4727- ;;
4728- *Portland\ Group*)
4729- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4730- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4731- _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4732- ;;
4733- esac
4734- ;;
4735- esac
4736- ;;
4737-
4738- newsos6)
4739- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4740- _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4741- ;;
4742-
4743- *nto* | *qnx*)
4744- # QNX uses GNU C++, but need to define -shared option too, otherwise
4745- # it will coredump.
4746- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4747- ;;
4748-
4749- osf3* | osf4* | osf5*)
4750- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4751- # All OSF/1 code is PIC.
4752- _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4753- ;;
4754-
4755- rdos*)
4756- _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4757- ;;
4758-
4759- solaris*)
4760- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4761- _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4762- case $cc_basename in
4763- f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
4764- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
4765- *)
4766- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
4767- esac
4768- ;;
4769-
4770- sunos4*)
4771- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4772- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4773- _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4774- ;;
4775-
4776- sysv4 | sysv4.2uw2* | sysv4.3*)
4777- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4778- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4779- _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4780- ;;
4781-
4782- sysv4*MP*)
4783- if test -d /usr/nec ;then
4784- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
4785- _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4786- fi
4787- ;;
4788-
4789- sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
4790- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4791- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4792- _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4793- ;;
4794-
4795- unicos*)
4796- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4797- _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4798- ;;
4799-
4800- uts4*)
4801- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4802- _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4803- ;;
4804-
4805- *)
4806- _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4807- ;;
4808- esac
4809- fi
4810-])
4811-case $host_os in
4812- # For platforms which do not support PIC, -DPIC is meaningless:
4813- *djgpp*)
4814- _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4815- ;;
4816- *)
4817- _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
4818- ;;
4819-esac
4820-
4821-AC_CACHE_CHECK([for $compiler option to produce PIC],
4822- [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)],
4823- [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
4824-_LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)
4825-
4826-#
4827-# Check to make sure the PIC flag actually works.
4828-#
4829-if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
4830- _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
4831- [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
4832- [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
4833- [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
4834- "" | " "*) ;;
4835- *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
4836- esac],
4837- [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
4838- _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
4839-fi
4840-_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
4841- [Additional compiler flags for building library objects])
4842-
4843-_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
4844- [How to pass a linker flag through the compiler])
4845-#
4846-# Check to make sure the static flag actually works.
4847-#
4848-wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
4849-_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
4850- _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
4851- $lt_tmp_static_flag,
4852- [],
4853- [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
4854-_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
4855- [Compiler flag to prevent dynamic linking])
4856-])# _LT_COMPILER_PIC
4857-
4858-
4859-# _LT_LINKER_SHLIBS([TAGNAME])
4860-# ----------------------------
4861-# See if the linker supports building shared libraries.
4862-m4_defun([_LT_LINKER_SHLIBS],
4863-[AC_REQUIRE([LT_PATH_LD])dnl
4864-AC_REQUIRE([LT_PATH_NM])dnl
4865-m4_require([_LT_PATH_MANIFEST_TOOL])dnl
4866-m4_require([_LT_FILEUTILS_DEFAULTS])dnl
4867-m4_require([_LT_DECL_EGREP])dnl
4868-m4_require([_LT_DECL_SED])dnl
4869-m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
4870-m4_require([_LT_TAG_COMPILER])dnl
4871-AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
4872-m4_if([$1], [CXX], [
4873- _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4874- _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
4875- case $host_os in
4876- aix[[4-9]]*)
4877- # If we're using GNU nm, then we don't want the "-C" option.
4878- # -C means demangle to AIX nm, but means don't demangle with GNU nm
4879- # Also, AIX nm treats weak defined symbols like other global defined
4880- # symbols, whereas GNU nm marks them as "W".
4881- if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4882- _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'
4883- else
4884- _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'
4885- fi
4886- ;;
4887- pw32*)
4888- _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
4889- ;;
4890- cygwin* | mingw* | cegcc*)
4891- case $cc_basename in
4892- cl*)
4893- _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
4894- ;;
4895- *)
4896- _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
4897- _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
4898- ;;
4899- esac
4900- ;;
4901- linux* | k*bsd*-gnu | gnu*)
4902- _LT_TAGVAR(link_all_deplibs, $1)=no
4903- ;;
4904- *)
4905- _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4906- ;;
4907- esac
4908-], [
4909- runpath_var=
4910- _LT_TAGVAR(allow_undefined_flag, $1)=
4911- _LT_TAGVAR(always_export_symbols, $1)=no
4912- _LT_TAGVAR(archive_cmds, $1)=
4913- _LT_TAGVAR(archive_expsym_cmds, $1)=
4914- _LT_TAGVAR(compiler_needs_object, $1)=no
4915- _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
4916- _LT_TAGVAR(export_dynamic_flag_spec, $1)=
4917- _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4918- _LT_TAGVAR(hardcode_automatic, $1)=no
4919- _LT_TAGVAR(hardcode_direct, $1)=no
4920- _LT_TAGVAR(hardcode_direct_absolute, $1)=no
4921- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
4922- _LT_TAGVAR(hardcode_libdir_separator, $1)=
4923- _LT_TAGVAR(hardcode_minus_L, $1)=no
4924- _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
4925- _LT_TAGVAR(inherit_rpath, $1)=no
4926- _LT_TAGVAR(link_all_deplibs, $1)=unknown
4927- _LT_TAGVAR(module_cmds, $1)=
4928- _LT_TAGVAR(module_expsym_cmds, $1)=
4929- _LT_TAGVAR(old_archive_from_new_cmds, $1)=
4930- _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
4931- _LT_TAGVAR(thread_safe_flag_spec, $1)=
4932- _LT_TAGVAR(whole_archive_flag_spec, $1)=
4933- # include_expsyms should be a list of space-separated symbols to be *always*
4934- # included in the symbol list
4935- _LT_TAGVAR(include_expsyms, $1)=
4936- # exclude_expsyms can be an extended regexp of symbols to exclude
4937- # it will be wrapped by ` (' and `)$', so one must not match beginning or
4938- # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
4939- # as well as any symbol that contains `d'.
4940- _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
4941- # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
4942- # platforms (ab)use it in PIC code, but their linkers get confused if
4943- # the symbol is explicitly referenced. Since portable code cannot
4944- # rely on this symbol name, it's probably fine to never include it in
4945- # preloaded symbol tables.
4946- # Exclude shared library initialization/finalization symbols.
4947-dnl Note also adjust exclude_expsyms for C++ above.
4948- extract_expsyms_cmds=
4949-
4950- case $host_os in
4951- cygwin* | mingw* | pw32* | cegcc*)
4952- # FIXME: the MSVC++ port hasn't been tested in a loooong time
4953- # When not using gcc, we currently assume that we are using
4954- # Microsoft Visual C++.
4955- if test "$GCC" != yes; then
4956- with_gnu_ld=no
4957- fi
4958- ;;
4959- interix*)
4960- # we just hope/assume this is gcc and not c89 (= MSVC++)
4961- with_gnu_ld=yes
4962- ;;
4963- openbsd*)
4964- with_gnu_ld=no
4965- ;;
4966- linux* | k*bsd*-gnu | gnu*)
4967- _LT_TAGVAR(link_all_deplibs, $1)=no
4968- ;;
4969- esac
4970-
4971- _LT_TAGVAR(ld_shlibs, $1)=yes
4972-
4973- # On some targets, GNU ld is compatible enough with the native linker
4974- # that we're better off using the native interface for both.
4975- lt_use_gnu_ld_interface=no
4976- if test "$with_gnu_ld" = yes; then
4977- case $host_os in
4978- aix*)
4979- # The AIX port of GNU ld has always aspired to compatibility
4980- # with the native linker. However, as the warning in the GNU ld
4981- # block says, versions before 2.19.5* couldn't really create working
4982- # shared libraries, regardless of the interface used.
4983- case `$LD -v 2>&1` in
4984- *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
4985- *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;;
4986- *\ \(GNU\ Binutils\)\ [[3-9]]*) ;;
4987- *)
4988- lt_use_gnu_ld_interface=yes
4989- ;;
4990- esac
4991- ;;
4992- *)
4993- lt_use_gnu_ld_interface=yes
4994- ;;
4995- esac
4996- fi
4997-
4998- if test "$lt_use_gnu_ld_interface" = yes; then
4999- # If archive_cmds runs LD, not CC, wlarc should be empty
5000- wlarc='${wl}'
The diff has been truncated for viewing.

Subscribers

People subscribed via source and target branches