Merge lp:~clint-fewbar/ubuntu/natty/libdbi/upstream-0.8.4 into lp:ubuntu/natty/libdbi

Proposed by Clint Byrum
Status: Work in progress
Proposed branch: lp:~clint-fewbar/ubuntu/natty/libdbi/upstream-0.8.4
Merge into: lp:ubuntu/natty/libdbi
Diff against target: 110049 lines
To merge this branch: bzr merge lp:~clint-fewbar/ubuntu/natty/libdbi/upstream-0.8.4
Reviewer Review Type Date Requested Status
Ubuntu branches Pending
Review via email: mp+42296@code.launchpad.net

Description of the change

This updates the package to the latest upstream, which bumps the soname. Also, the dev library is renamed from libdbi0-dev to libdbi-dev.

The bug report linked to this specifies all of the known build-deps that will have to be updated to use libdbi-dev once this is accepted into natty.

I have been working directly with the debian maintainer, and he is on board with these changes, and will hopefully upload them to experimental soem time soon.

I have tested building this using sbuild on natty and debian sid chroots.

To post a comment you must log in.
Revision history for this message
Barry Warsaw (barry) wrote :

Sorry, I'm not going to review a 100k line patch. :)

Since the debian maintainer is good with the changes, and they're going to show up in experimental soon, why not just wait until then and do a sync request?

Revision history for this message
Dave Walker (davewalker) wrote :

@Clint, would you be able to make a debdiff for the Debian bug? That would help expeidate the fix landing in Ubuntu. Thanks.

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=594607

Revision history for this message
Daniel Holbach (dholbach) wrote :

As it seems you're working on getting it into Debian first, I'll mark this merge proposal as "work in progress".

Revision history for this message
Clint Byrum (clint-fewbar) wrote :

I've discussed with Thomas Goirand and he isn't interested in even working on getting it into experimental until post squeeze release. This means we'll have two releases with 0.8.3 and its ABI problems. That said, the necessary changes to other packages' build is still better off done in experimental, so its probably worth waiting. :p

Unmerged revisions

9. By Clint Byrum

changing target to natty

8. By Clint Byrum

* New upstream release.
* debian/rules: make upstream version dynamic for /usr/share/doc clearing

7. By Clint Byrum

* debian/rules: move .a and .la files to -dev package
* debian/control: libdbi-dev breaks libdbi0, since archives are now in -dev

6. By Clint Byrum

* debian/control: new soname fixes ABI (LP: #625882)
  - renaming libdbi0-dev to libdbi-dev
  - renaming libdbi0 to libdbi1
  - Replaces/conflicts/provides libdbi0-dev for build-deps

5. By Clint Byrum

New upstream release.

4. By Thomas Goirand <email address hidden>

* New upstream release (Closes: #592447, #565562).
* Now using my email <email address hidden> on the maintainer field.
* Now depends on debhelper 7.
* Added some missing Depends: ${misc:Depends}.
* Now using Standards-Version 3.9.1.
* Added Vcs-Browser: URL where I'll keep the Debian package source.
* Added debian/source/format file, using 1.0 with autoreconf to avoid clean
  target head akes.
* Not using dh_clean -k but dh_prep in debian/rules.
* Removed the duplicate section fields.
* Reviewed a bit short and long descriptions.
* Now calls ./autogen.sh before ./configure, the package also
  Build-Depends on automake and libtool.
* In debian/rules, added rm -rf debian/libdbi0/usr/lib/pkgconfig in the
  install target.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'ChangeLog'
2--- ChangeLog 2010-07-28 12:44:39 +0000
3+++ ChangeLog 2010-11-30 19:53:57 +0000
4@@ -1,72 +1,51 @@
5-2008-02-06 20:36 mhoenicka
6-
7- * NEWS, configure.in: updated for 0.8.3
8-
9-2008-02-06 20:34 mhoenicka
10-
11- * doc/libdbi-reference.sgml, include/dbi/dbi.h.in: added escape
12- functions
13-
14-2008-02-06 17:21 mhoenicka
15-
16- * src/dbi_main.c: implemented escape functions
17-
18-2008-01-23 17:37 mhoenicka
19-
20- * src/dbi_result.c: fixed 0-based vs. 1-based index error in
21- dbi_result_get_binary_copy_idx()
22-
23-2008-01-15 15:04 mhoenicka
24-
25- * ChangeLog: final touches for 0.8.3-pre1
26-
27 2008-01-15 15:01 mhoenicka
28
29- * NEWS, doc/driver-guide.sgml, doc/example-program.sgml,
30- doc/libdbi-errorhandling.sgml, doc/libdbi-reference.sgml: final
31- touches for 0.8.3-pre1
32+ * NEWS (1.6), doc/driver-guide.sgml (1.3), doc/example-program.sgml
33+ (1.15), doc/libdbi-errorhandling.sgml (1.2),
34+ doc/libdbi-reference.sgml (1.16): final touches for 0.8.3-pre1
35
36 2008-01-15 14:59 mhoenicka
37
38- * ChangeLog: shut up
39+ * ChangeLog (1.22): shut up
40
41 2008-01-15 01:21 mhoenicka
42
43- * doc/libdbi-reference.sgml, include/dbi/dbi-dev.h,
44- include/dbi/dbi.h.in, src/dbd_helper.c, src/dbi_main.c,
45- src/dbi_result.c: overhauled error reporting;
46+ * doc/libdbi-reference.sgml (1.15), include/dbi/dbi-dev.h (1.42),
47+ include/dbi/dbi.h.in (1.2), src/dbd_helper.c (1.40), src/dbi_main.c
48+ (1.78), src/dbi_result.c (1.46): overhauled error reporting;
49 dbi_conn_error_flags() is now deprecated, use the return value of
50 dbi_conn_error() instead; make sure error status is reset before
51 each dbi command
52
53 2008-01-15 01:18 mhoenicka
54
55- * doc/: Makefile.am, libdbi-errorhandling.sgml,
56- programmers-guide.sgml: added chapter about error handling
57+ * doc/: Makefile.am (1.20), libdbi-errorhandling.sgml (1.1),
58+ programmers-guide.sgml (1.13): added chapter about error handling
59
60 2008-01-15 01:15 mhoenicka
61
62- * configure.in: bumped up version number to 0.8.3-pre1
63+ * configure.in (1.44): bumped up version number to 0.8.3-pre1
64
65 2008-01-02 17:14 mhoenicka
66
67- * drivers/example/dbd_example.c: added safe_dlclose cap
68+ * drivers/example/dbd_example.c (1.2): added safe_dlclose cap
69
70 2008-01-01 01:12 mhoenicka
71
72- * doc/driver-guide.sgml: added driver cap info
73+ * doc/driver-guide.sgml (1.2): added driver cap info
74
75 2008-01-01 01:11 mhoenicka
76
77- * src/dbi_main.c: added _safe_dlclose() to work around crash on
78- FreeBSD when using firebird
79+ * src/dbi_main.c (1.77): added _safe_dlclose() to work around crash
80+ on FreeBSD when using firebird
81
82 2007-05-01 21:38 qu1j0t3
83
84- * ChangeLog, README, README.osx: minor doc updates
85+ * ChangeLog (1.21), README (1.16), README.osx (1.4): minor doc
86+ updates
87
88 2007-04-30 14:40 qu1j0t3
89
90- * src/dbi_main.c: restore test for Verbosity before logging message
91- (reported by Balazs Scheidler)
92+ * src/dbi_main.c (1.76): restore test for Verbosity before logging
93+ message (reported by Balazs Scheidler)
94
95
96=== modified file 'Makefile.am'
97--- Makefile.am 2007-11-26 05:53:13 +0000
98+++ Makefile.am 2010-11-30 19:53:57 +0000
99@@ -1,6 +1,7 @@
100 ## Process this file with automake to produce Makefile.in
101
102 AUTOMAKE_OPTIONS = foreign dist-zip
103+ACLOCAL_AMFLAGS = -I m4
104
105 SUBDIRS = src include @docs_subdirs@
106
107
108=== modified file 'Makefile.in'
109--- Makefile.in 2007-11-26 05:53:13 +0000
110+++ Makefile.in 2010-11-30 19:53:57 +0000
111@@ -1,8 +1,8 @@
112-# Makefile.in generated by automake 1.9.6 from Makefile.am.
113+# Makefile.in generated by automake 1.10.1 from Makefile.am.
114 # @configure_input@
115
116 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
117-# 2003, 2004, 2005 Free Software Foundation, Inc.
118+# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
119 # This Makefile.in is free software; the Free Software Foundation
120 # gives unlimited permission to copy and/or distribute it,
121 # with or without modifications, as long as this notice is preserved.
122@@ -13,15 +13,11 @@
123 # PARTICULAR PURPOSE.
124
125 @SET_MAKE@
126-srcdir = @srcdir@
127-top_srcdir = @top_srcdir@
128 VPATH = @srcdir@
129 pkgdatadir = $(datadir)/@PACKAGE@
130 pkglibdir = $(libdir)/@PACKAGE@
131 pkgincludedir = $(includedir)/@PACKAGE@
132-top_builddir = .
133 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
134-INSTALL = @INSTALL@
135 install_sh_DATA = $(install_sh) -c -m 644
136 install_sh_PROGRAM = $(install_sh) -c
137 install_sh_SCRIPT = $(install_sh) -c
138@@ -35,18 +31,21 @@
139 POST_UNINSTALL = :
140 build_triplet = @build@
141 host_triplet = @host@
142+subdir = .
143 DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
144 $(srcdir)/Makefile.in $(srcdir)/config.h.in \
145 $(srcdir)/libdbi.spec.in $(top_srcdir)/configure AUTHORS \
146 COPYING ChangeLog INSTALL NEWS TODO config.guess config.sub \
147 depcomp install-sh ltmain.sh missing
148-subdir = .
149 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
150-am__aclocal_m4_deps = $(top_srcdir)/configure.in
151+am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \
152+ $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
153+ $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
154+ $(top_srcdir)/configure.in
155 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
156 $(ACLOCAL_M4)
157 am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
158- configure.lineno configure.status.lineno
159+ configure.lineno config.status.lineno
160 mkinstalldirs = $(install_sh) -d
161 CONFIG_HEADER = config.h
162 CONFIG_CLEAN_FILES = libdbi.spec
163@@ -54,10 +53,13 @@
164 DIST_SOURCES =
165 RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
166 html-recursive info-recursive install-data-recursive \
167- install-exec-recursive install-info-recursive \
168- install-recursive installcheck-recursive installdirs-recursive \
169- pdf-recursive ps-recursive uninstall-info-recursive \
170- uninstall-recursive
171+ install-dvi-recursive install-exec-recursive \
172+ install-html-recursive install-info-recursive \
173+ install-pdf-recursive install-ps-recursive install-recursive \
174+ installcheck-recursive installdirs-recursive pdf-recursive \
175+ ps-recursive uninstall-recursive
176+RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
177+ distclean-recursive maintainer-clean-recursive
178 ETAGS = etags
179 CTAGS = ctags
180 DIST_SUBDIRS = $(SUBDIRS)
181@@ -73,8 +75,6 @@
182 distuninstallcheck_listfiles = find . -type f -print
183 distcleancheck_listfiles = find . -type f -print
184 ACLOCAL = @ACLOCAL@
185-AMDEP_FALSE = @AMDEP_FALSE@
186-AMDEP_TRUE = @AMDEP_TRUE@
187 AMTAR = @AMTAR@
188 AR = @AR@
189 AUTOCONF = @AUTOCONF@
190@@ -86,26 +86,25 @@
191 CFLAGS = @CFLAGS@
192 CPP = @CPP@
193 CPPFLAGS = @CPPFLAGS@
194-CXX = @CXX@
195-CXXCPP = @CXXCPP@
196-CXXDEPMODE = @CXXDEPMODE@
197-CXXFLAGS = @CXXFLAGS@
198 CYGPATH_W = @CYGPATH_W@
199 DEBUG = @DEBUG@
200 DEFS = @DEFS@
201 DEPDIR = @DEPDIR@
202-ECHO = @ECHO@
203+DSYMUTIL = @DSYMUTIL@
204+DUMPBIN = @DUMPBIN@
205 ECHO_C = @ECHO_C@
206 ECHO_N = @ECHO_N@
207 ECHO_T = @ECHO_T@
208 EGREP = @EGREP@
209 EXEEXT = @EXEEXT@
210-F77 = @F77@
211-FFLAGS = @FFLAGS@
212+FGREP = @FGREP@
213+GREP = @GREP@
214+INSTALL = @INSTALL@
215 INSTALL_DATA = @INSTALL_DATA@
216 INSTALL_PROGRAM = @INSTALL_PROGRAM@
217 INSTALL_SCRIPT = @INSTALL_SCRIPT@
218 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
219+LD = @LD@
220 LDFLAGS = @LDFLAGS@
221 LIBADD_DL = @LIBADD_DL@
222 LIBOBJS = @LIBOBJS@
223@@ -114,13 +113,18 @@
224 LIB_AGE = @LIB_AGE@
225 LIB_CURRENT = @LIB_CURRENT@
226 LIB_REVISION = @LIB_REVISION@
227+LIPO = @LIPO@
228 LN_S = @LN_S@
229 LTLIBOBJS = @LTLIBOBJS@
230 MAINT = @MAINT@
231-MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
232-MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
233 MAKEINFO = @MAKEINFO@
234+MKDIR_P = @MKDIR_P@
235+NM = @NM@
236+NMEDIT = @NMEDIT@
237+OBJDUMP = @OBJDUMP@
238 OBJEXT = @OBJEXT@
239+OTOOL = @OTOOL@
240+OTOOL64 = @OTOOL64@
241 PACKAGE = @PACKAGE@
242 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
243 PACKAGE_NAME = @PACKAGE_NAME@
244@@ -130,20 +134,17 @@
245 PATH_SEPARATOR = @PATH_SEPARATOR@
246 PROFILE = @PROFILE@
247 RANLIB = @RANLIB@
248+SED = @SED@
249 SET_MAKE = @SET_MAKE@
250 SHELL = @SHELL@
251 STRIP = @STRIP@
252 VERSION = @VERSION@
253-ac_ct_AR = @ac_ct_AR@
254+abs_builddir = @abs_builddir@
255+abs_srcdir = @abs_srcdir@
256+abs_top_builddir = @abs_top_builddir@
257+abs_top_srcdir = @abs_top_srcdir@
258 ac_ct_CC = @ac_ct_CC@
259-ac_ct_CXX = @ac_ct_CXX@
260-ac_ct_F77 = @ac_ct_F77@
261-ac_ct_RANLIB = @ac_ct_RANLIB@
262-ac_ct_STRIP = @ac_ct_STRIP@
263-am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
264-am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
265-am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
266-am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
267+ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
268 am__include = @am__include@
269 am__leading_dot = @am__leading_dot@
270 am__quote = @am__quote@
271@@ -155,31 +156,45 @@
272 build_cpu = @build_cpu@
273 build_os = @build_os@
274 build_vendor = @build_vendor@
275+builddir = @builddir@
276 datadir = @datadir@
277+datarootdir = @datarootdir@
278+docdir = @docdir@
279 docs_subdirs = @docs_subdirs@
280 driverdir = @driverdir@
281+dvidir = @dvidir@
282 exec_prefix = @exec_prefix@
283 host = @host@
284 host_alias = @host_alias@
285 host_cpu = @host_cpu@
286 host_os = @host_os@
287 host_vendor = @host_vendor@
288+htmldir = @htmldir@
289 includedir = @includedir@
290 infodir = @infodir@
291 install_sh = @install_sh@
292 libdir = @libdir@
293 libexecdir = @libexecdir@
294+localedir = @localedir@
295 localstatedir = @localstatedir@
296+lt_ECHO = @lt_ECHO@
297 mandir = @mandir@
298 mkdir_p = @mkdir_p@
299 oldincludedir = @oldincludedir@
300+pdfdir = @pdfdir@
301 prefix = @prefix@
302 program_transform_name = @program_transform_name@
303+psdir = @psdir@
304 sbindir = @sbindir@
305 sharedstatedir = @sharedstatedir@
306+srcdir = @srcdir@
307 sysconfdir = @sysconfdir@
308 target_alias = @target_alias@
309+top_build_prefix = @top_build_prefix@
310+top_builddir = @top_builddir@
311+top_srcdir = @top_srcdir@
312 AUTOMAKE_OPTIONS = foreign dist-zip
313+ACLOCAL_AMFLAGS = -I m4
314 SUBDIRS = src include @docs_subdirs@
315 EXTRA_DIST = AUTHORS COPYING ChangeLog INSTALL README README.win32 README.osx TODO NEWS libdbi.spec.in config.h.in Makefile.w32 autogen.sh drivers/example/AUTHORS drivers/example/Makefile.am drivers/example/README drivers/example/TODO drivers/example/.cvsignore drivers/example/dbd_example.c drivers/example/dbd_example.h drivers/example/dbd_example.sgml
316 all: config.h
317@@ -223,7 +238,7 @@
318 config.h: stamp-h1
319 @if test ! -f $@; then \
320 rm -f stamp-h1; \
321- $(MAKE) stamp-h1; \
322+ $(MAKE) $(AM_MAKEFLAGS) stamp-h1; \
323 else :; fi
324
325 stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
326@@ -247,7 +262,6 @@
327
328 distclean-libtool:
329 -rm -f libtool
330-uninstall-info-am:
331
332 # This directory's subdirectories are mostly independent; you can cd
333 # into them and run `make' without going through this Makefile.
334@@ -280,8 +294,7 @@
335 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
336 fi; test -z "$$fail"
337
338-mostlyclean-recursive clean-recursive distclean-recursive \
339-maintainer-clean-recursive:
340+$(RECURSIVE_CLEAN_TARGETS):
341 @failcom='exit 1'; \
342 for f in x $$MAKEFLAGS; do \
343 case $$f in \
344@@ -325,8 +338,8 @@
345 unique=`for i in $$list; do \
346 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
347 done | \
348- $(AWK) ' { files[$$0] = 1; } \
349- END { for (i in files) print i; }'`; \
350+ $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
351+ END { if (nonempty) { for (i in files) print i; }; }'`; \
352 mkid -fID $$unique
353 tags: TAGS
354
355@@ -351,8 +364,8 @@
356 unique=`for i in $$list; do \
357 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
358 done | \
359- $(AWK) ' { files[$$0] = 1; } \
360- END { for (i in files) print i; }'`; \
361+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
362+ END { if (nonempty) { for (i in files) print i; }; }'`; \
363 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
364 test -n "$$unique" || unique=$$empty_fix; \
365 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
366@@ -362,13 +375,12 @@
367 CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
368 $(TAGS_FILES) $(LISP)
369 tags=; \
370- here=`pwd`; \
371 list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
372 unique=`for i in $$list; do \
373 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
374 done | \
375- $(AWK) ' { files[$$0] = 1; } \
376- END { for (i in files) print i; }'`; \
377+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
378+ END { if (nonempty) { for (i in files) print i; }; }'`; \
379 test -z "$(CTAGS_ARGS)$$tags$$unique" \
380 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
381 $$tags $$unique
382@@ -383,24 +395,22 @@
383
384 distdir: $(DISTFILES)
385 $(am__remove_distdir)
386- mkdir $(distdir)
387- $(mkdir_p) $(distdir)/. $(distdir)/drivers/example $(distdir)/include/dbi
388- @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
389- topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
390- list='$(DISTFILES)'; for file in $$list; do \
391- case $$file in \
392- $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
393- $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
394- esac; \
395+ test -d $(distdir) || mkdir $(distdir)
396+ @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
397+ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
398+ list='$(DISTFILES)'; \
399+ dist_files=`for file in $$list; do echo $$file; done | \
400+ sed -e "s|^$$srcdirstrip/||;t" \
401+ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
402+ case $$dist_files in \
403+ */*) $(MKDIR_P) `echo "$$dist_files" | \
404+ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
405+ sort -u` ;; \
406+ esac; \
407+ for file in $$dist_files; do \
408 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
409- dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
410- if test "$$dir" != "$$file" && test "$$dir" != "."; then \
411- dir="/$$dir"; \
412- $(mkdir_p) "$(distdir)$$dir"; \
413- else \
414- dir=''; \
415- fi; \
416 if test -d $$d/$$file; then \
417+ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
418 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
419 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
420 fi; \
421@@ -414,7 +424,7 @@
422 list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
423 if test "$$subdir" = .; then :; else \
424 test -d "$(distdir)/$$subdir" \
425- || $(mkdir_p) "$(distdir)/$$subdir" \
426+ || $(MKDIR_P) "$(distdir)/$$subdir" \
427 || exit 1; \
428 distdir=`$(am__cd) $(distdir) && pwd`; \
429 top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
430@@ -422,6 +432,8 @@
431 $(MAKE) $(AM_MAKEFLAGS) \
432 top_distdir="$$top_distdir" \
433 distdir="$$distdir/$$subdir" \
434+ am__remove_distdir=: \
435+ am__skip_length_check=: \
436 distdir) \
437 || exit 1; \
438 fi; \
439@@ -429,7 +441,7 @@
440 -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
441 ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
442 ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
443- ! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \
444+ ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
445 || chmod -R a+r $(distdir)
446 dist-gzip: distdir
447 tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
448@@ -439,6 +451,10 @@
449 tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
450 $(am__remove_distdir)
451
452+dist-lzma: distdir
453+ tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma
454+ $(am__remove_distdir)
455+
456 dist-tarZ: distdir
457 tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
458 $(am__remove_distdir)
459@@ -466,6 +482,8 @@
460 GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\
461 *.tar.bz2*) \
462 bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\
463+ *.tar.lzma*) \
464+ unlzma -c $(distdir).tar.lzma | $(am__untar) ;;\
465 *.tar.Z*) \
466 uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
467 *.shar.gz*) \
468@@ -505,7 +523,7 @@
469 $(am__remove_distdir)
470 @(echo "$(distdir) archives ready for distribution: "; \
471 list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
472- sed -e '1{h;s/./=/g;p;x;}' -e '$${p;x;}'
473+ sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
474 distuninstallcheck:
475 @cd $(distuninstallcheck_dir) \
476 && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
477@@ -575,12 +593,20 @@
478
479 install-data-am:
480
481+install-dvi: install-dvi-recursive
482+
483 install-exec-am:
484
485+install-html: install-html-recursive
486+
487 install-info: install-info-recursive
488
489 install-man:
490
491+install-pdf: install-pdf-recursive
492+
493+install-ps: install-ps-recursive
494+
495 installcheck-am:
496
497 maintainer-clean: maintainer-clean-recursive
498@@ -601,24 +627,26 @@
499
500 ps-am:
501
502-uninstall-am: uninstall-info-am
503-
504-uninstall-info: uninstall-info-recursive
505-
506-.PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am am--refresh check \
507- check-am clean clean-generic clean-libtool clean-recursive \
508- ctags ctags-recursive dist dist-all dist-bzip2 dist-gzip \
509- dist-shar dist-tarZ dist-zip distcheck distclean \
510- distclean-generic distclean-hdr distclean-libtool \
511- distclean-recursive distclean-tags distcleancheck distdir \
512- distuninstallcheck dvi dvi-am html html-am info info-am \
513- install install-am install-data install-data-am install-exec \
514- install-exec-am install-info install-info-am install-man \
515- install-strip installcheck installcheck-am installdirs \
516- installdirs-am maintainer-clean maintainer-clean-generic \
517- maintainer-clean-recursive mostlyclean mostlyclean-generic \
518- mostlyclean-libtool mostlyclean-recursive pdf pdf-am ps ps-am \
519- tags tags-recursive uninstall uninstall-am uninstall-info-am
520+uninstall-am:
521+
522+.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) install-am \
523+ install-strip
524+
525+.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
526+ all all-am am--refresh check check-am clean clean-generic \
527+ clean-libtool ctags ctags-recursive dist dist-all dist-bzip2 \
528+ dist-gzip dist-lzma dist-shar dist-tarZ dist-zip distcheck \
529+ distclean distclean-generic distclean-hdr distclean-libtool \
530+ distclean-tags distcleancheck distdir distuninstallcheck dvi \
531+ dvi-am html html-am info info-am install install-am \
532+ install-data install-data-am install-dvi install-dvi-am \
533+ install-exec install-exec-am install-html install-html-am \
534+ install-info install-info-am install-man install-pdf \
535+ install-pdf-am install-ps install-ps-am install-strip \
536+ installcheck installcheck-am installdirs installdirs-am \
537+ maintainer-clean maintainer-clean-generic mostlyclean \
538+ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
539+ tags tags-recursive uninstall uninstall-am
540
541
542 debug:
543
544=== modified file 'README'
545--- README 2007-11-26 05:53:13 +0000
546+++ README 2010-11-30 19:53:57 +0000
547@@ -93,9 +93,9 @@
548 Windows: 98, NT4, 2000, XP
549 FreeBSD: 4.3 through 6.2
550 SunOS: 2.8
551-Solaris: 7
552+Solaris: 7, 10
553 AIX: 4.2, 4.3 and 5.1
554-OSX: 10.2-10.4
555+OS X: 10.2-10.4.9
556
557 If you are using libdbi on a platform not listed here, please notify the
558 mailing list! (see below)
559@@ -155,5 +155,5 @@
560 David A. Parker <david@neongoat.com>
561 Mark M. Tobenkin <mark@brentwoodradio.com>
562
563-$Id: README,v 1.15 2007/02/20 00:55:46 mhoenicka Exp $
564+$Id: README,v 1.16 2007/05/01 19:38:10 qu1j0t3 Exp $
565
566
567=== modified file 'README.osx'
568--- README.osx 2007-11-26 05:53:13 +0000
569+++ README.osx 2010-11-30 19:53:57 +0000
570@@ -4,17 +4,16 @@
571 http://libdbi.sourceforge.net
572
573
574-OSX-SPECIFIC INSTALLATION INSTRUCTIONS:
575--------------------------------------------
576-
577-Building libdbi on OSX requires a little more typing compared to other
578-Unixes. This is what you need to do:
579+OS X-SPECIFIC INSTALLATION INSTRUCTIONS:
580+----------------------------------------
581
582 LIBTOOLIZE=glibtoolize ./autogen.sh
583-./configure CFLAGS="-I/sw/include" LDFLAGS="-L/sw/lib"
584-make CFLAGS="-I/sw/include" LDFLAGS="-L/sw/lib"
585+./configure
586+make
587 sudo make install
588
589+If openjade is not available, add '--disable-docs' to configure's options.
590+
591
592 MODIFICATIONS AND REDISTRIBUTION (LGPL):
593 ----------------------------------------
594@@ -32,5 +31,5 @@
595 See the file COPYING or http://www.gnu.org for more details.
596
597
598-$Id: README.osx,v 1.3 2005/08/28 00:05:17 mhoenicka Exp $
599+$Id: README.osx,v 1.4 2007/05/01 19:38:10 qu1j0t3 Exp $
600
601
602=== modified file 'aclocal.m4'
603--- aclocal.m4 2007-11-26 05:53:13 +0000
604+++ aclocal.m4 2010-11-30 19:53:57 +0000
605@@ -1,7 +1,7 @@
606-# generated automatically by aclocal 1.9.6 -*- Autoconf -*-
607+# generated automatically by aclocal 1.10.1 -*- Autoconf -*-
608
609 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
610-# 2005 Free Software Foundation, Inc.
611+# 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
612 # This file is free software; the Free Software Foundation
613 # gives unlimited permission to copy and/or distribute it,
614 # with or without modifications, as long as this notice is preserved.
615@@ -11,5972 +11,15 @@
616 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
617 # PARTICULAR PURPOSE.
618
619-# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
620-
621-# serial 47 AC_PROG_LIBTOOL
622-
623-
624-# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
625-# -----------------------------------------------------------
626-# If this macro is not defined by Autoconf, define it here.
627-m4_ifdef([AC_PROVIDE_IFELSE],
628- [],
629- [m4_define([AC_PROVIDE_IFELSE],
630- [m4_ifdef([AC_PROVIDE_$1],
631- [$2], [$3])])])
632-
633-
634-# AC_PROG_LIBTOOL
635-# ---------------
636-AC_DEFUN([AC_PROG_LIBTOOL],
637-[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
638-dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
639-dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
640- AC_PROVIDE_IFELSE([AC_PROG_CXX],
641- [AC_LIBTOOL_CXX],
642- [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
643- ])])
644-dnl And a similar setup for Fortran 77 support
645- AC_PROVIDE_IFELSE([AC_PROG_F77],
646- [AC_LIBTOOL_F77],
647- [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
648-])])
649-
650-dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
651-dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
652-dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
653- AC_PROVIDE_IFELSE([AC_PROG_GCJ],
654- [AC_LIBTOOL_GCJ],
655- [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
656- [AC_LIBTOOL_GCJ],
657- [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
658- [AC_LIBTOOL_GCJ],
659- [ifdef([AC_PROG_GCJ],
660- [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
661- ifdef([A][M_PROG_GCJ],
662- [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
663- ifdef([LT_AC_PROG_GCJ],
664- [define([LT_AC_PROG_GCJ],
665- defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
666-])])# AC_PROG_LIBTOOL
667-
668-
669-# _AC_PROG_LIBTOOL
670-# ----------------
671-AC_DEFUN([_AC_PROG_LIBTOOL],
672-[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
673-AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
674-AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
675-AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
676-
677-# This can be used to rebuild libtool when needed
678-LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
679-
680-# Always use our own libtool.
681-LIBTOOL='$(SHELL) $(top_builddir)/libtool'
682-AC_SUBST(LIBTOOL)dnl
683-
684-# Prevent multiple expansion
685-define([AC_PROG_LIBTOOL], [])
686-])# _AC_PROG_LIBTOOL
687-
688-
689-# AC_LIBTOOL_SETUP
690-# ----------------
691-AC_DEFUN([AC_LIBTOOL_SETUP],
692-[AC_PREREQ(2.50)dnl
693-AC_REQUIRE([AC_ENABLE_SHARED])dnl
694-AC_REQUIRE([AC_ENABLE_STATIC])dnl
695-AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
696-AC_REQUIRE([AC_CANONICAL_HOST])dnl
697-AC_REQUIRE([AC_CANONICAL_BUILD])dnl
698-AC_REQUIRE([AC_PROG_CC])dnl
699-AC_REQUIRE([AC_PROG_LD])dnl
700-AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
701-AC_REQUIRE([AC_PROG_NM])dnl
702-
703-AC_REQUIRE([AC_PROG_LN_S])dnl
704-AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
705-# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
706-AC_REQUIRE([AC_OBJEXT])dnl
707-AC_REQUIRE([AC_EXEEXT])dnl
708-dnl
709-
710-AC_LIBTOOL_SYS_MAX_CMD_LEN
711-AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
712-AC_LIBTOOL_OBJDIR
713-
714-AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
715-_LT_AC_PROG_ECHO_BACKSLASH
716-
717-case $host_os in
718-aix3*)
719- # AIX sometimes has problems with the GCC collect2 program. For some
720- # reason, if we set the COLLECT_NAMES environment variable, the problems
721- # vanish in a puff of smoke.
722- if test "X${COLLECT_NAMES+set}" != Xset; then
723- COLLECT_NAMES=
724- export COLLECT_NAMES
725- fi
726- ;;
727-esac
728-
729-# Sed substitution that helps us do robust quoting. It backslashifies
730-# metacharacters that are still active within double-quoted strings.
731-Xsed='sed -e s/^X//'
732-[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
733-
734-# Same as above, but do not quote variable references.
735-[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
736-
737-# Sed substitution to delay expansion of an escaped shell variable in a
738-# double_quote_subst'ed string.
739-delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
740-
741-# Sed substitution to avoid accidental globbing in evaled expressions
742-no_glob_subst='s/\*/\\\*/g'
743-
744-# Constants:
745-rm="rm -f"
746-
747-# Global variables:
748-default_ofile=libtool
749-can_build_shared=yes
750-
751-# All known linkers require a `.a' archive for static linking (except M$VC,
752-# which needs '.lib').
753-libext=a
754-ltmain="$ac_aux_dir/ltmain.sh"
755-ofile="$default_ofile"
756-with_gnu_ld="$lt_cv_prog_gnu_ld"
757-
758-AC_CHECK_TOOL(AR, ar, false)
759-AC_CHECK_TOOL(RANLIB, ranlib, :)
760-AC_CHECK_TOOL(STRIP, strip, :)
761-
762-old_CC="$CC"
763-old_CFLAGS="$CFLAGS"
764-
765-# Set sane defaults for various variables
766-test -z "$AR" && AR=ar
767-test -z "$AR_FLAGS" && AR_FLAGS=cru
768-test -z "$AS" && AS=as
769-test -z "$CC" && CC=cc
770-test -z "$LTCC" && LTCC=$CC
771-test -z "$DLLTOOL" && DLLTOOL=dlltool
772-test -z "$LD" && LD=ld
773-test -z "$LN_S" && LN_S="ln -s"
774-test -z "$MAGIC_CMD" && MAGIC_CMD=file
775-test -z "$NM" && NM=nm
776-test -z "$SED" && SED=sed
777-test -z "$OBJDUMP" && OBJDUMP=objdump
778-test -z "$RANLIB" && RANLIB=:
779-test -z "$STRIP" && STRIP=:
780-test -z "$ac_objext" && ac_objext=o
781-
782-# Determine commands to create old-style static archives.
783-old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
784-old_postinstall_cmds='chmod 644 $oldlib'
785-old_postuninstall_cmds=
786-
787-if test -n "$RANLIB"; then
788- case $host_os in
789- openbsd*)
790- old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
791- ;;
792- *)
793- old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
794- ;;
795- esac
796- old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
797-fi
798-
799-cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
800-
801-# Only perform the check for file, if the check method requires it
802-case $deplibs_check_method in
803-file_magic*)
804- if test "$file_magic_cmd" = '$MAGIC_CMD'; then
805- AC_PATH_MAGIC
806- fi
807- ;;
808-esac
809-
810-AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
811-AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
812-enable_win32_dll=yes, enable_win32_dll=no)
813-
814-AC_ARG_ENABLE([libtool-lock],
815- [AC_HELP_STRING([--disable-libtool-lock],
816- [avoid locking (might break parallel builds)])])
817-test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
818-
819-AC_ARG_WITH([pic],
820- [AC_HELP_STRING([--with-pic],
821- [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
822- [pic_mode="$withval"],
823- [pic_mode=default])
824-test -z "$pic_mode" && pic_mode=default
825-
826-# Use C for the default configuration in the libtool script
827-tagname=
828-AC_LIBTOOL_LANG_C_CONFIG
829-_LT_AC_TAGCONFIG
830-])# AC_LIBTOOL_SETUP
831-
832-
833-# _LT_AC_SYS_COMPILER
834-# -------------------
835-AC_DEFUN([_LT_AC_SYS_COMPILER],
836-[AC_REQUIRE([AC_PROG_CC])dnl
837-
838-# If no C compiler was specified, use CC.
839-LTCC=${LTCC-"$CC"}
840-
841-# Allow CC to be a program name with arguments.
842-compiler=$CC
843-])# _LT_AC_SYS_COMPILER
844-
845-
846-# _LT_AC_SYS_LIBPATH_AIX
847-# ----------------------
848-# Links a minimal program and checks the executable
849-# for the system default hardcoded library path. In most cases,
850-# this is /usr/lib:/lib, but when the MPI compilers are used
851-# the location of the communication and MPI libs are included too.
852-# If we don't find anything, use the default library path according
853-# to the aix ld manual.
854-AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
855-[AC_LINK_IFELSE(AC_LANG_PROGRAM,[
856-aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
857-}'`
858-# Check for a 64-bit object if we didn't find anything.
859-if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
860-}'`; fi],[])
861-if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
862-])# _LT_AC_SYS_LIBPATH_AIX
863-
864-
865-# _LT_AC_SHELL_INIT(ARG)
866-# ----------------------
867-AC_DEFUN([_LT_AC_SHELL_INIT],
868-[ifdef([AC_DIVERSION_NOTICE],
869- [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
870- [AC_DIVERT_PUSH(NOTICE)])
871-$1
872-AC_DIVERT_POP
873-])# _LT_AC_SHELL_INIT
874-
875-
876-# _LT_AC_PROG_ECHO_BACKSLASH
877-# --------------------------
878-# Add some code to the start of the generated configure script which
879-# will find an echo command which doesn't interpret backslashes.
880-AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
881-[_LT_AC_SHELL_INIT([
882-# Check that we are running under the correct shell.
883-SHELL=${CONFIG_SHELL-/bin/sh}
884-
885-case X$ECHO in
886-X*--fallback-echo)
887- # Remove one level of quotation (which was required for Make).
888- ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
889- ;;
890-esac
891-
892-echo=${ECHO-echo}
893-if test "X[$]1" = X--no-reexec; then
894- # Discard the --no-reexec flag, and continue.
895- shift
896-elif test "X[$]1" = X--fallback-echo; then
897- # Avoid inline document here, it may be left over
898- :
899-elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
900- # Yippee, $echo works!
901- :
902-else
903- # Restart under the correct shell.
904- exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
905-fi
906-
907-if test "X[$]1" = X--fallback-echo; then
908- # used as fallback echo
909- shift
910- cat <<EOF
911-[$]*
912-EOF
913- exit 0
914-fi
915-
916-# The HP-UX ksh and POSIX shell print the target directory to stdout
917-# if CDPATH is set.
918-(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
919-
920-if test -z "$ECHO"; then
921-if test "X${echo_test_string+set}" != Xset; then
922-# find a string as large as possible, as long as the shell can cope with it
923- for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
924- # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
925- if (echo_test_string="`eval $cmd`") 2>/dev/null &&
926- echo_test_string="`eval $cmd`" &&
927- (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
928- then
929- break
930- fi
931- done
932-fi
933-
934-if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
935- echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
936- test "X$echo_testing_string" = "X$echo_test_string"; then
937- :
938-else
939- # The Solaris, AIX, and Digital Unix default echo programs unquote
940- # backslashes. This makes it impossible to quote backslashes using
941- # echo "$something" | sed 's/\\/\\\\/g'
942- #
943- # So, first we look for a working echo in the user's PATH.
944-
945- lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
946- for dir in $PATH /usr/ucb; do
947- IFS="$lt_save_ifs"
948- if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
949- test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
950- echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
951- test "X$echo_testing_string" = "X$echo_test_string"; then
952- echo="$dir/echo"
953- break
954- fi
955- done
956- IFS="$lt_save_ifs"
957-
958- if test "X$echo" = Xecho; then
959- # We didn't find a better echo, so look for alternatives.
960- if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
961- echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
962- test "X$echo_testing_string" = "X$echo_test_string"; then
963- # This shell has a builtin print -r that does the trick.
964- echo='print -r'
965- elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
966- test "X$CONFIG_SHELL" != X/bin/ksh; then
967- # If we have ksh, try running configure again with it.
968- ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
969- export ORIGINAL_CONFIG_SHELL
970- CONFIG_SHELL=/bin/ksh
971- export CONFIG_SHELL
972- exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
973- else
974- # Try using printf.
975- echo='printf %s\n'
976- if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
977- echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
978- test "X$echo_testing_string" = "X$echo_test_string"; then
979- # Cool, printf works
980- :
981- elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
982- test "X$echo_testing_string" = 'X\t' &&
983- echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
984- test "X$echo_testing_string" = "X$echo_test_string"; then
985- CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
986- export CONFIG_SHELL
987- SHELL="$CONFIG_SHELL"
988- export SHELL
989- echo="$CONFIG_SHELL [$]0 --fallback-echo"
990- elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
991- test "X$echo_testing_string" = 'X\t' &&
992- echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
993- test "X$echo_testing_string" = "X$echo_test_string"; then
994- echo="$CONFIG_SHELL [$]0 --fallback-echo"
995- else
996- # maybe with a smaller string...
997- prev=:
998-
999- for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
1000- if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
1001- then
1002- break
1003- fi
1004- prev="$cmd"
1005- done
1006-
1007- if test "$prev" != 'sed 50q "[$]0"'; then
1008- echo_test_string=`eval $prev`
1009- export echo_test_string
1010- exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
1011- else
1012- # Oops. We lost completely, so just stick with echo.
1013- echo=echo
1014- fi
1015- fi
1016- fi
1017- fi
1018-fi
1019-fi
1020-
1021-# Copy echo and quote the copy suitably for passing to libtool from
1022-# the Makefile, instead of quoting the original, which is used later.
1023-ECHO=$echo
1024-if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
1025- ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
1026-fi
1027-
1028-AC_SUBST(ECHO)
1029-])])# _LT_AC_PROG_ECHO_BACKSLASH
1030-
1031-
1032-# _LT_AC_LOCK
1033-# -----------
1034-AC_DEFUN([_LT_AC_LOCK],
1035-[AC_ARG_ENABLE([libtool-lock],
1036- [AC_HELP_STRING([--disable-libtool-lock],
1037- [avoid locking (might break parallel builds)])])
1038-test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1039-
1040-# Some flags need to be propagated to the compiler or linker for good
1041-# libtool support.
1042-case $host in
1043-ia64-*-hpux*)
1044- # Find out which ABI we are using.
1045- echo 'int i;' > conftest.$ac_ext
1046- if AC_TRY_EVAL(ac_compile); then
1047- case `/usr/bin/file conftest.$ac_objext` in
1048- *ELF-32*)
1049- HPUX_IA64_MODE="32"
1050- ;;
1051- *ELF-64*)
1052- HPUX_IA64_MODE="64"
1053- ;;
1054- esac
1055- fi
1056- rm -rf conftest*
1057- ;;
1058-*-*-irix6*)
1059- # Find out which ABI we are using.
1060- echo '[#]line __oline__ "configure"' > conftest.$ac_ext
1061- if AC_TRY_EVAL(ac_compile); then
1062- if test "$lt_cv_prog_gnu_ld" = yes; then
1063- case `/usr/bin/file conftest.$ac_objext` in
1064- *32-bit*)
1065- LD="${LD-ld} -melf32bsmip"
1066- ;;
1067- *N32*)
1068- LD="${LD-ld} -melf32bmipn32"
1069- ;;
1070- *64-bit*)
1071- LD="${LD-ld} -melf64bmip"
1072- ;;
1073- esac
1074- else
1075- case `/usr/bin/file conftest.$ac_objext` in
1076- *32-bit*)
1077- LD="${LD-ld} -32"
1078- ;;
1079- *N32*)
1080- LD="${LD-ld} -n32"
1081- ;;
1082- *64-bit*)
1083- LD="${LD-ld} -64"
1084- ;;
1085- esac
1086- fi
1087- fi
1088- rm -rf conftest*
1089- ;;
1090-
1091-x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
1092- # Find out which ABI we are using.
1093- echo 'int i;' > conftest.$ac_ext
1094- if AC_TRY_EVAL(ac_compile); then
1095- case "`/usr/bin/file conftest.o`" in
1096- *32-bit*)
1097- case $host in
1098- x86_64-*linux*)
1099- LD="${LD-ld} -m elf_i386"
1100- ;;
1101- ppc64-*linux*|powerpc64-*linux*)
1102- LD="${LD-ld} -m elf32ppclinux"
1103- ;;
1104- s390x-*linux*)
1105- LD="${LD-ld} -m elf_s390"
1106- ;;
1107- sparc64-*linux*)
1108- LD="${LD-ld} -m elf32_sparc"
1109- ;;
1110- esac
1111- ;;
1112- *64-bit*)
1113- case $host in
1114- x86_64-*linux*)
1115- LD="${LD-ld} -m elf_x86_64"
1116- ;;
1117- ppc*-*linux*|powerpc*-*linux*)
1118- LD="${LD-ld} -m elf64ppc"
1119- ;;
1120- s390*-*linux*)
1121- LD="${LD-ld} -m elf64_s390"
1122- ;;
1123- sparc*-*linux*)
1124- LD="${LD-ld} -m elf64_sparc"
1125- ;;
1126- esac
1127- ;;
1128- esac
1129- fi
1130- rm -rf conftest*
1131- ;;
1132-
1133-*-*-sco3.2v5*)
1134- # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1135- SAVE_CFLAGS="$CFLAGS"
1136- CFLAGS="$CFLAGS -belf"
1137- AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
1138- [AC_LANG_PUSH(C)
1139- AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
1140- AC_LANG_POP])
1141- if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1142- # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1143- CFLAGS="$SAVE_CFLAGS"
1144- fi
1145- ;;
1146-AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
1147-[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
1148- AC_CHECK_TOOL(DLLTOOL, dlltool, false)
1149- AC_CHECK_TOOL(AS, as, false)
1150- AC_CHECK_TOOL(OBJDUMP, objdump, false)
1151- ;;
1152- ])
1153-esac
1154-
1155-need_locks="$enable_libtool_lock"
1156-
1157-])# _LT_AC_LOCK
1158-
1159-
1160-# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1161-# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
1162-# ----------------------------------------------------------------
1163-# Check whether the given compiler option works
1164-AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
1165-[AC_REQUIRE([LT_AC_PROG_SED])
1166-AC_CACHE_CHECK([$1], [$2],
1167- [$2=no
1168- ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
1169- printf "$lt_simple_compile_test_code" > conftest.$ac_ext
1170- lt_compiler_flag="$3"
1171- # Insert the option either (1) after the last *FLAGS variable, or
1172- # (2) before a word containing "conftest.", or (3) at the end.
1173- # Note that $ac_compile itself does not contain backslashes and begins
1174- # with a dollar sign (not a hyphen), so the echo should work correctly.
1175- # The option is referenced via a variable to avoid confusing sed.
1176- lt_compile=`echo "$ac_compile" | $SED \
1177- -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
1178- -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1179- -e 's:$: $lt_compiler_flag:'`
1180- (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1181- (eval "$lt_compile" 2>conftest.err)
1182- ac_status=$?
1183- cat conftest.err >&AS_MESSAGE_LOG_FD
1184- echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1185- if (exit $ac_status) && test -s "$ac_outfile"; then
1186- # The compiler can only warn and ignore the option if not recognized
1187- # So say no if there are warnings
1188- if test ! -s conftest.err; then
1189- $2=yes
1190- fi
1191- fi
1192- $rm conftest*
1193-])
1194-
1195-if test x"[$]$2" = xyes; then
1196- ifelse([$5], , :, [$5])
1197-else
1198- ifelse([$6], , :, [$6])
1199-fi
1200-])# AC_LIBTOOL_COMPILER_OPTION
1201-
1202-
1203-# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1204-# [ACTION-SUCCESS], [ACTION-FAILURE])
1205-# ------------------------------------------------------------
1206-# Check whether the given compiler option works
1207-AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
1208-[AC_CACHE_CHECK([$1], [$2],
1209- [$2=no
1210- save_LDFLAGS="$LDFLAGS"
1211- LDFLAGS="$LDFLAGS $3"
1212- printf "$lt_simple_link_test_code" > conftest.$ac_ext
1213- if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
1214- # The compiler can only warn and ignore the option if not recognized
1215- # So say no if there are warnings
1216- if test -s conftest.err; then
1217- # Append any errors to the config.log.
1218- cat conftest.err 1>&AS_MESSAGE_LOG_FD
1219- else
1220- $2=yes
1221- fi
1222- fi
1223- $rm conftest*
1224- LDFLAGS="$save_LDFLAGS"
1225-])
1226-
1227-if test x"[$]$2" = xyes; then
1228- ifelse([$4], , :, [$4])
1229-else
1230- ifelse([$5], , :, [$5])
1231-fi
1232-])# AC_LIBTOOL_LINKER_OPTION
1233-
1234-
1235-# AC_LIBTOOL_SYS_MAX_CMD_LEN
1236-# --------------------------
1237-AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
1238-[# find the maximum length of command line arguments
1239-AC_MSG_CHECKING([the maximum length of command line arguments])
1240-AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
1241- i=0
1242- teststring="ABCD"
1243-
1244- case $build_os in
1245- msdosdjgpp*)
1246- # On DJGPP, this test can blow up pretty badly due to problems in libc
1247- # (any single argument exceeding 2000 bytes causes a buffer overrun
1248- # during glob expansion). Even if it were fixed, the result of this
1249- # check would be larger than it should be.
1250- lt_cv_sys_max_cmd_len=12288; # 12K is about right
1251- ;;
1252-
1253- gnu*)
1254- # Under GNU Hurd, this test is not required because there is
1255- # no limit to the length of command line arguments.
1256- # Libtool will interpret -1 as no limit whatsoever
1257- lt_cv_sys_max_cmd_len=-1;
1258- ;;
1259-
1260- cygwin* | mingw*)
1261- # On Win9x/ME, this test blows up -- it succeeds, but takes
1262- # about 5 minutes as the teststring grows exponentially.
1263- # Worse, since 9x/ME are not pre-emptively multitasking,
1264- # you end up with a "frozen" computer, even though with patience
1265- # the test eventually succeeds (with a max line length of 256k).
1266- # Instead, let's just punt: use the minimum linelength reported by
1267- # all of the supported platforms: 8192 (on NT/2K/XP).
1268- lt_cv_sys_max_cmd_len=8192;
1269- ;;
1270-
1271- amigaos*)
1272- # On AmigaOS with pdksh, this test takes hours, literally.
1273- # So we just punt and use a minimum line length of 8192.
1274- lt_cv_sys_max_cmd_len=8192;
1275- ;;
1276-
1277- netbsd* | freebsd* | openbsd* | darwin* )
1278- # This has been around since 386BSD, at least. Likely further.
1279- if test -x /sbin/sysctl; then
1280- lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
1281- elif test -x /usr/sbin/sysctl; then
1282- lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
1283- else
1284- lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
1285- fi
1286- # And add a safety zone
1287- lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
1288- ;;
1289-
1290- *)
1291- # If test is not a shell built-in, we'll probably end up computing a
1292- # maximum length that is only half of the actual maximum length, but
1293- # we can't tell.
1294- SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
1295- while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
1296- = "XX$teststring") >/dev/null 2>&1 &&
1297- new_result=`expr "X$teststring" : ".*" 2>&1` &&
1298- lt_cv_sys_max_cmd_len=$new_result &&
1299- test $i != 17 # 1/2 MB should be enough
1300- do
1301- i=`expr $i + 1`
1302- teststring=$teststring$teststring
1303- done
1304- teststring=
1305- # Add a significant safety factor because C++ compilers can tack on massive
1306- # amounts of additional arguments before passing them to the linker.
1307- # It appears as though 1/2 is a usable value.
1308- lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
1309- ;;
1310- esac
1311-])
1312-if test -n $lt_cv_sys_max_cmd_len ; then
1313- AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
1314-else
1315- AC_MSG_RESULT(none)
1316-fi
1317-])# AC_LIBTOOL_SYS_MAX_CMD_LEN
1318-
1319-
1320-# _LT_AC_CHECK_DLFCN
1321-# --------------------
1322-AC_DEFUN([_LT_AC_CHECK_DLFCN],
1323-[AC_CHECK_HEADERS(dlfcn.h)dnl
1324-])# _LT_AC_CHECK_DLFCN
1325-
1326-
1327-# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
1328-# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
1329-# ------------------------------------------------------------------
1330-AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
1331-[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
1332-if test "$cross_compiling" = yes; then :
1333- [$4]
1334-else
1335- lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1336- lt_status=$lt_dlunknown
1337- cat > conftest.$ac_ext <<EOF
1338-[#line __oline__ "configure"
1339-#include "confdefs.h"
1340-
1341-#if HAVE_DLFCN_H
1342-#include <dlfcn.h>
1343-#endif
1344-
1345-#include <stdio.h>
1346-
1347-#ifdef RTLD_GLOBAL
1348-# define LT_DLGLOBAL RTLD_GLOBAL
1349-#else
1350-# ifdef DL_GLOBAL
1351-# define LT_DLGLOBAL DL_GLOBAL
1352-# else
1353-# define LT_DLGLOBAL 0
1354-# endif
1355-#endif
1356-
1357-/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
1358- find out it does not work in some platform. */
1359-#ifndef LT_DLLAZY_OR_NOW
1360-# ifdef RTLD_LAZY
1361-# define LT_DLLAZY_OR_NOW RTLD_LAZY
1362-# else
1363-# ifdef DL_LAZY
1364-# define LT_DLLAZY_OR_NOW DL_LAZY
1365-# else
1366-# ifdef RTLD_NOW
1367-# define LT_DLLAZY_OR_NOW RTLD_NOW
1368-# else
1369-# ifdef DL_NOW
1370-# define LT_DLLAZY_OR_NOW DL_NOW
1371-# else
1372-# define LT_DLLAZY_OR_NOW 0
1373-# endif
1374-# endif
1375-# endif
1376-# endif
1377-#endif
1378-
1379-#ifdef __cplusplus
1380-extern "C" void exit (int);
1381-#endif
1382-
1383-void fnord() { int i=42;}
1384-int main ()
1385-{
1386- void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
1387- int status = $lt_dlunknown;
1388-
1389- if (self)
1390- {
1391- if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
1392- else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
1393- /* dlclose (self); */
1394- }
1395-
1396- exit (status);
1397-}]
1398-EOF
1399- if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
1400- (./conftest; exit; ) 2>/dev/null
1401- lt_status=$?
1402- case x$lt_status in
1403- x$lt_dlno_uscore) $1 ;;
1404- x$lt_dlneed_uscore) $2 ;;
1405- x$lt_unknown|x*) $3 ;;
1406- esac
1407- else :
1408- # compilation failed
1409- $3
1410- fi
1411-fi
1412-rm -fr conftest*
1413-])# _LT_AC_TRY_DLOPEN_SELF
1414-
1415-
1416-# AC_LIBTOOL_DLOPEN_SELF
1417-# -------------------
1418-AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
1419-[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
1420-if test "x$enable_dlopen" != xyes; then
1421- enable_dlopen=unknown
1422- enable_dlopen_self=unknown
1423- enable_dlopen_self_static=unknown
1424-else
1425- lt_cv_dlopen=no
1426- lt_cv_dlopen_libs=
1427-
1428- case $host_os in
1429- beos*)
1430- lt_cv_dlopen="load_add_on"
1431- lt_cv_dlopen_libs=
1432- lt_cv_dlopen_self=yes
1433- ;;
1434-
1435- mingw* | pw32*)
1436- lt_cv_dlopen="LoadLibrary"
1437- lt_cv_dlopen_libs=
1438- ;;
1439-
1440- cygwin*)
1441- lt_cv_dlopen="dlopen"
1442- lt_cv_dlopen_libs=
1443- ;;
1444-
1445- darwin*)
1446- # if libdl is installed we need to link against it
1447- AC_CHECK_LIB([dl], [dlopen],
1448- [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
1449- lt_cv_dlopen="dyld"
1450- lt_cv_dlopen_libs=
1451- lt_cv_dlopen_self=yes
1452- ])
1453- ;;
1454-
1455- *)
1456- AC_CHECK_FUNC([shl_load],
1457- [lt_cv_dlopen="shl_load"],
1458- [AC_CHECK_LIB([dld], [shl_load],
1459- [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
1460- [AC_CHECK_FUNC([dlopen],
1461- [lt_cv_dlopen="dlopen"],
1462- [AC_CHECK_LIB([dl], [dlopen],
1463- [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
1464- [AC_CHECK_LIB([svld], [dlopen],
1465- [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
1466- [AC_CHECK_LIB([dld], [dld_link],
1467- [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
1468- ])
1469- ])
1470- ])
1471- ])
1472- ])
1473- ;;
1474- esac
1475-
1476- if test "x$lt_cv_dlopen" != xno; then
1477- enable_dlopen=yes
1478- else
1479- enable_dlopen=no
1480- fi
1481-
1482- case $lt_cv_dlopen in
1483- dlopen)
1484- save_CPPFLAGS="$CPPFLAGS"
1485- test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
1486-
1487- save_LDFLAGS="$LDFLAGS"
1488- eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
1489-
1490- save_LIBS="$LIBS"
1491- LIBS="$lt_cv_dlopen_libs $LIBS"
1492-
1493- AC_CACHE_CHECK([whether a program can dlopen itself],
1494- lt_cv_dlopen_self, [dnl
1495- _LT_AC_TRY_DLOPEN_SELF(
1496- lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
1497- lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
1498- ])
1499-
1500- if test "x$lt_cv_dlopen_self" = xyes; then
1501- LDFLAGS="$LDFLAGS $link_static_flag"
1502- AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
1503- lt_cv_dlopen_self_static, [dnl
1504- _LT_AC_TRY_DLOPEN_SELF(
1505- lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
1506- lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
1507- ])
1508- fi
1509-
1510- CPPFLAGS="$save_CPPFLAGS"
1511- LDFLAGS="$save_LDFLAGS"
1512- LIBS="$save_LIBS"
1513- ;;
1514- esac
1515-
1516- case $lt_cv_dlopen_self in
1517- yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
1518- *) enable_dlopen_self=unknown ;;
1519- esac
1520-
1521- case $lt_cv_dlopen_self_static in
1522- yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
1523- *) enable_dlopen_self_static=unknown ;;
1524- esac
1525-fi
1526-])# AC_LIBTOOL_DLOPEN_SELF
1527-
1528-
1529-# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
1530-# ---------------------------------
1531-# Check to see if options -c and -o are simultaneously supported by compiler
1532-AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
1533-[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
1534-AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
1535- [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
1536- [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
1537- $rm -r conftest 2>/dev/null
1538- mkdir conftest
1539- cd conftest
1540- mkdir out
1541- printf "$lt_simple_compile_test_code" > conftest.$ac_ext
1542-
1543- lt_compiler_flag="-o out/conftest2.$ac_objext"
1544- # Insert the option either (1) after the last *FLAGS variable, or
1545- # (2) before a word containing "conftest.", or (3) at the end.
1546- # Note that $ac_compile itself does not contain backslashes and begins
1547- # with a dollar sign (not a hyphen), so the echo should work correctly.
1548- lt_compile=`echo "$ac_compile" | $SED \
1549- -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
1550- -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1551- -e 's:$: $lt_compiler_flag:'`
1552- (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1553- (eval "$lt_compile" 2>out/conftest.err)
1554- ac_status=$?
1555- cat out/conftest.err >&AS_MESSAGE_LOG_FD
1556- echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1557- if (exit $ac_status) && test -s out/conftest2.$ac_objext
1558- then
1559- # The compiler can only warn and ignore the option if not recognized
1560- # So say no if there are warnings
1561- if test ! -s out/conftest.err; then
1562- _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
1563- fi
1564- fi
1565- chmod u+w .
1566- $rm conftest*
1567- # SGI C++ compiler will create directory out/ii_files/ for
1568- # template instantiation
1569- test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
1570- $rm out/* && rmdir out
1571- cd ..
1572- rmdir conftest
1573- $rm conftest*
1574-])
1575-])# AC_LIBTOOL_PROG_CC_C_O
1576-
1577-
1578-# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
1579-# -----------------------------------------
1580-# Check to see if we can do hard links to lock some files if needed
1581-AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
1582-[AC_REQUIRE([_LT_AC_LOCK])dnl
1583-
1584-hard_links="nottested"
1585-if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
1586- # do not overwrite the value of need_locks provided by the user
1587- AC_MSG_CHECKING([if we can lock with hard links])
1588- hard_links=yes
1589- $rm conftest*
1590- ln conftest.a conftest.b 2>/dev/null && hard_links=no
1591- touch conftest.a
1592- ln conftest.a conftest.b 2>&5 || hard_links=no
1593- ln conftest.a conftest.b 2>/dev/null && hard_links=no
1594- AC_MSG_RESULT([$hard_links])
1595- if test "$hard_links" = no; then
1596- AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
1597- need_locks=warn
1598- fi
1599-else
1600- need_locks=no
1601-fi
1602-])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
1603-
1604-
1605-# AC_LIBTOOL_OBJDIR
1606-# -----------------
1607-AC_DEFUN([AC_LIBTOOL_OBJDIR],
1608-[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
1609-[rm -f .libs 2>/dev/null
1610-mkdir .libs 2>/dev/null
1611-if test -d .libs; then
1612- lt_cv_objdir=.libs
1613-else
1614- # MS-DOS does not allow filenames that begin with a dot.
1615- lt_cv_objdir=_libs
1616-fi
1617-rmdir .libs 2>/dev/null])
1618-objdir=$lt_cv_objdir
1619-])# AC_LIBTOOL_OBJDIR
1620-
1621-
1622-# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
1623-# ----------------------------------------------
1624-# Check hardcoding attributes.
1625-AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
1626-[AC_MSG_CHECKING([how to hardcode library paths into programs])
1627-_LT_AC_TAGVAR(hardcode_action, $1)=
1628-if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
1629- test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
1630- test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
1631-
1632- # We can hardcode non-existant directories.
1633- if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
1634- # If the only mechanism to avoid hardcoding is shlibpath_var, we
1635- # have to relink, otherwise we might link with an installed library
1636- # when we should be linking with a yet-to-be-installed one
1637- ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
1638- test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
1639- # Linking always hardcodes the temporary library directory.
1640- _LT_AC_TAGVAR(hardcode_action, $1)=relink
1641- else
1642- # We can link without hardcoding, and we can hardcode nonexisting dirs.
1643- _LT_AC_TAGVAR(hardcode_action, $1)=immediate
1644- fi
1645-else
1646- # We cannot hardcode anything, or else we can only hardcode existing
1647- # directories.
1648- _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
1649-fi
1650-AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
1651-
1652-if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
1653- # Fast installation is not supported
1654- enable_fast_install=no
1655-elif test "$shlibpath_overrides_runpath" = yes ||
1656- test "$enable_shared" = no; then
1657- # Fast installation is not necessary
1658- enable_fast_install=needless
1659-fi
1660-])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
1661-
1662-
1663-# AC_LIBTOOL_SYS_LIB_STRIP
1664-# ------------------------
1665-AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
1666-[striplib=
1667-old_striplib=
1668-AC_MSG_CHECKING([whether stripping libraries is possible])
1669-if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
1670- test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
1671- test -z "$striplib" && striplib="$STRIP --strip-unneeded"
1672- AC_MSG_RESULT([yes])
1673-else
1674-# FIXME - insert some real tests, host_os isn't really good enough
1675- case $host_os in
1676- darwin*)
1677- if test -n "$STRIP" ; then
1678- striplib="$STRIP -x"
1679- AC_MSG_RESULT([yes])
1680- else
1681- AC_MSG_RESULT([no])
1682-fi
1683- ;;
1684- *)
1685- AC_MSG_RESULT([no])
1686- ;;
1687- esac
1688-fi
1689-])# AC_LIBTOOL_SYS_LIB_STRIP
1690-
1691-
1692-# AC_LIBTOOL_SYS_DYNAMIC_LINKER
1693-# -----------------------------
1694-# PORTME Fill in your ld.so characteristics
1695-AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
1696-[AC_MSG_CHECKING([dynamic linker characteristics])
1697-library_names_spec=
1698-libname_spec='lib$name'
1699-soname_spec=
1700-shrext_cmds=".so"
1701-postinstall_cmds=
1702-postuninstall_cmds=
1703-finish_cmds=
1704-finish_eval=
1705-shlibpath_var=
1706-shlibpath_overrides_runpath=unknown
1707-version_type=none
1708-dynamic_linker="$host_os ld.so"
1709-sys_lib_dlsearch_path_spec="/lib /usr/lib"
1710-if test "$GCC" = yes; then
1711- sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1712- if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
1713- # if the path contains ";" then we assume it to be the separator
1714- # otherwise default to the standard path separator (i.e. ":") - it is
1715- # assumed that no part of a normal pathname contains ";" but that should
1716- # okay in the real world where ";" in dirpaths is itself problematic.
1717- sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
1718- else
1719- sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1720- fi
1721-else
1722- sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
1723-fi
1724-need_lib_prefix=unknown
1725-hardcode_into_libs=no
1726-
1727-# when you set need_version to no, make sure it does not cause -set_version
1728-# flags to be left without arguments
1729-need_version=unknown
1730-
1731-case $host_os in
1732-aix3*)
1733- version_type=linux
1734- library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
1735- shlibpath_var=LIBPATH
1736-
1737- # AIX 3 has no versioning support, so we append a major version to the name.
1738- soname_spec='${libname}${release}${shared_ext}$major'
1739- ;;
1740-
1741-aix4* | aix5*)
1742- version_type=linux
1743- need_lib_prefix=no
1744- need_version=no
1745- hardcode_into_libs=yes
1746- if test "$host_cpu" = ia64; then
1747- # AIX 5 supports IA64
1748- library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
1749- shlibpath_var=LD_LIBRARY_PATH
1750- else
1751- # With GCC up to 2.95.x, collect2 would create an import file
1752- # for dependence libraries. The import file would start with
1753- # the line `#! .'. This would cause the generated library to
1754- # depend on `.', always an invalid library. This was fixed in
1755- # development snapshots of GCC prior to 3.0.
1756- case $host_os in
1757- aix4 | aix4.[[01]] | aix4.[[01]].*)
1758- if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
1759- echo ' yes '
1760- echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
1761- :
1762- else
1763- can_build_shared=no
1764- fi
1765- ;;
1766- esac
1767- # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
1768- # soname into executable. Probably we can add versioning support to
1769- # collect2, so additional links can be useful in future.
1770- if test "$aix_use_runtimelinking" = yes; then
1771- # If using run time linking (on AIX 4.2 or later) use lib<name>.so
1772- # instead of lib<name>.a to let people know that these are not
1773- # typical AIX shared libraries.
1774- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1775- else
1776- # We preserve .a as extension for shared libraries through AIX4.2
1777- # and later when we are not doing run time linking.
1778- library_names_spec='${libname}${release}.a $libname.a'
1779- soname_spec='${libname}${release}${shared_ext}$major'
1780- fi
1781- shlibpath_var=LIBPATH
1782- fi
1783- ;;
1784-
1785-amigaos*)
1786- library_names_spec='$libname.ixlibrary $libname.a'
1787- # Create ${libname}_ixlibrary.a entries in /sys/libs.
1788- finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
1789- ;;
1790-
1791-beos*)
1792- library_names_spec='${libname}${shared_ext}'
1793- dynamic_linker="$host_os ld.so"
1794- shlibpath_var=LIBRARY_PATH
1795- ;;
1796-
1797-bsdi[[45]]*)
1798- version_type=linux
1799- need_version=no
1800- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1801- soname_spec='${libname}${release}${shared_ext}$major'
1802- finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
1803- shlibpath_var=LD_LIBRARY_PATH
1804- sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
1805- sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
1806- # the default ld.so.conf also contains /usr/contrib/lib and
1807- # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
1808- # libtool to hard-code these into programs
1809- ;;
1810-
1811-cygwin* | mingw* | pw32*)
1812- version_type=windows
1813- shrext_cmds=".dll"
1814- need_version=no
1815- need_lib_prefix=no
1816-
1817- case $GCC,$host_os in
1818- yes,cygwin* | yes,mingw* | yes,pw32*)
1819- library_names_spec='$libname.dll.a'
1820- # DLL is installed to $(libdir)/../bin by postinstall_cmds
1821- postinstall_cmds='base_file=`basename \${file}`~
1822- dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
1823- dldir=$destdir/`dirname \$dlpath`~
1824- test -d \$dldir || mkdir -p \$dldir~
1825- $install_prog $dir/$dlname \$dldir/$dlname'
1826- postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
1827- dlpath=$dir/\$dldll~
1828- $rm \$dlpath'
1829- shlibpath_overrides_runpath=yes
1830-
1831- case $host_os in
1832- cygwin*)
1833- # Cygwin DLLs use 'cyg' prefix rather than 'lib'
1834- soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
1835- sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
1836- ;;
1837- mingw*)
1838- # MinGW DLLs use traditional 'lib' prefix
1839- soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
1840- sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1841- if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
1842- # It is most probably a Windows format PATH printed by
1843- # mingw gcc, but we are running on Cygwin. Gcc prints its search
1844- # path with ; separators, and with drive letters. We can handle the
1845- # drive letters (cygwin fileutils understands them), so leave them,
1846- # especially as we might pass files found there to a mingw objdump,
1847- # which wouldn't understand a cygwinified path. Ahh.
1848- sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
1849- else
1850- sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1851- fi
1852- ;;
1853- pw32*)
1854- # pw32 DLLs use 'pw' prefix rather than 'lib'
1855- library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
1856- ;;
1857- esac
1858- ;;
1859-
1860- *)
1861- library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
1862- ;;
1863- esac
1864- dynamic_linker='Win32 ld.exe'
1865- # FIXME: first we should search . and the directory the executable is in
1866- shlibpath_var=PATH
1867- ;;
1868-
1869-darwin* | rhapsody*)
1870- dynamic_linker="$host_os dyld"
1871- version_type=darwin
1872- need_lib_prefix=no
1873- need_version=no
1874- library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
1875- soname_spec='${libname}${release}${major}$shared_ext'
1876- shlibpath_overrides_runpath=yes
1877- shlibpath_var=DYLD_LIBRARY_PATH
1878- shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
1879- # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
1880- if test "$GCC" = yes; then
1881- sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
1882- else
1883- sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
1884- fi
1885- sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
1886- ;;
1887-
1888-dgux*)
1889- version_type=linux
1890- need_lib_prefix=no
1891- need_version=no
1892- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
1893- soname_spec='${libname}${release}${shared_ext}$major'
1894- shlibpath_var=LD_LIBRARY_PATH
1895- ;;
1896-
1897-freebsd1*)
1898- dynamic_linker=no
1899- ;;
1900-
1901-kfreebsd*-gnu)
1902- version_type=linux
1903- need_lib_prefix=no
1904- need_version=no
1905- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1906- soname_spec='${libname}${release}${shared_ext}$major'
1907- shlibpath_var=LD_LIBRARY_PATH
1908- shlibpath_overrides_runpath=no
1909- hardcode_into_libs=yes
1910- dynamic_linker='GNU ld.so'
1911- ;;
1912-
1913-freebsd*)
1914- objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
1915- version_type=freebsd-$objformat
1916- case $version_type in
1917- freebsd-elf*)
1918- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
1919- need_version=no
1920- need_lib_prefix=no
1921- ;;
1922- freebsd-*)
1923- library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
1924- need_version=yes
1925- ;;
1926- esac
1927- shlibpath_var=LD_LIBRARY_PATH
1928- case $host_os in
1929- freebsd2*)
1930- shlibpath_overrides_runpath=yes
1931- ;;
1932- freebsd3.[01]* | freebsdelf3.[01]*)
1933- shlibpath_overrides_runpath=yes
1934- hardcode_into_libs=yes
1935- ;;
1936- *) # from 3.2 on
1937- shlibpath_overrides_runpath=no
1938- hardcode_into_libs=yes
1939- ;;
1940- esac
1941- ;;
1942-
1943-gnu*)
1944- version_type=linux
1945- need_lib_prefix=no
1946- need_version=no
1947- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
1948- soname_spec='${libname}${release}${shared_ext}$major'
1949- shlibpath_var=LD_LIBRARY_PATH
1950- hardcode_into_libs=yes
1951- ;;
1952-
1953-hpux9* | hpux10* | hpux11*)
1954- # Give a soname corresponding to the major version so that dld.sl refuses to
1955- # link against other versions.
1956- version_type=sunos
1957- need_lib_prefix=no
1958- need_version=no
1959- case "$host_cpu" in
1960- ia64*)
1961- shrext_cmds='.so'
1962- hardcode_into_libs=yes
1963- dynamic_linker="$host_os dld.so"
1964- shlibpath_var=LD_LIBRARY_PATH
1965- shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
1966- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1967- soname_spec='${libname}${release}${shared_ext}$major'
1968- if test "X$HPUX_IA64_MODE" = X32; then
1969- sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
1970- else
1971- sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
1972- fi
1973- sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1974- ;;
1975- hppa*64*)
1976- shrext_cmds='.sl'
1977- hardcode_into_libs=yes
1978- dynamic_linker="$host_os dld.sl"
1979- shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
1980- shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
1981- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1982- soname_spec='${libname}${release}${shared_ext}$major'
1983- sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
1984- sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1985- ;;
1986- *)
1987- shrext_cmds='.sl'
1988- dynamic_linker="$host_os dld.sl"
1989- shlibpath_var=SHLIB_PATH
1990- shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
1991- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1992- soname_spec='${libname}${release}${shared_ext}$major'
1993- ;;
1994- esac
1995- # HP-UX runs *really* slowly unless shared libraries are mode 555.
1996- postinstall_cmds='chmod 555 $lib'
1997- ;;
1998-
1999-irix5* | irix6* | nonstopux*)
2000- case $host_os in
2001- nonstopux*) version_type=nonstopux ;;
2002- *)
2003- if test "$lt_cv_prog_gnu_ld" = yes; then
2004- version_type=linux
2005- else
2006- version_type=irix
2007- fi ;;
2008- esac
2009- need_lib_prefix=no
2010- need_version=no
2011- soname_spec='${libname}${release}${shared_ext}$major'
2012- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
2013- case $host_os in
2014- irix5* | nonstopux*)
2015- libsuff= shlibsuff=
2016- ;;
2017- *)
2018- case $LD in # libtool.m4 will add one of these switches to LD
2019- *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
2020- libsuff= shlibsuff= libmagic=32-bit;;
2021- *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
2022- libsuff=32 shlibsuff=N32 libmagic=N32;;
2023- *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
2024- libsuff=64 shlibsuff=64 libmagic=64-bit;;
2025- *) libsuff= shlibsuff= libmagic=never-match;;
2026- esac
2027- ;;
2028- esac
2029- shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
2030- shlibpath_overrides_runpath=no
2031- sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
2032- sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
2033- hardcode_into_libs=yes
2034- ;;
2035-
2036-# No shared lib support for Linux oldld, aout, or coff.
2037-linux*oldld* | linux*aout* | linux*coff*)
2038- dynamic_linker=no
2039- ;;
2040-
2041-# This must be Linux ELF.
2042-linux*)
2043- version_type=linux
2044- need_lib_prefix=no
2045- need_version=no
2046- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2047- soname_spec='${libname}${release}${shared_ext}$major'
2048- finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
2049- shlibpath_var=LD_LIBRARY_PATH
2050- shlibpath_overrides_runpath=no
2051- # This implies no fast_install, which is unacceptable.
2052- # Some rework will be needed to allow for fast_install
2053- # before this can be enabled.
2054- hardcode_into_libs=yes
2055-
2056- # Append ld.so.conf contents to the search path
2057- if test -f /etc/ld.so.conf; then
2058- lt_ld_extra=`$SED -e 's/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g' /etc/ld.so.conf | tr '\n' ' '`
2059- sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
2060- fi
2061-
2062- # We used to test for /lib/ld.so.1 and disable shared libraries on
2063- # powerpc, because MkLinux only supported shared libraries with the
2064- # GNU dynamic linker. Since this was broken with cross compilers,
2065- # most powerpc-linux boxes support dynamic linking these days and
2066- # people can always --disable-shared, the test was removed, and we
2067- # assume the GNU/Linux dynamic linker is in use.
2068- dynamic_linker='GNU/Linux ld.so'
2069- ;;
2070-
2071-knetbsd*-gnu)
2072- version_type=linux
2073- need_lib_prefix=no
2074- need_version=no
2075- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2076- soname_spec='${libname}${release}${shared_ext}$major'
2077- shlibpath_var=LD_LIBRARY_PATH
2078- shlibpath_overrides_runpath=no
2079- hardcode_into_libs=yes
2080- dynamic_linker='GNU ld.so'
2081- ;;
2082-
2083-netbsd*)
2084- version_type=sunos
2085- need_lib_prefix=no
2086- need_version=no
2087- if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
2088- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2089- finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2090- dynamic_linker='NetBSD (a.out) ld.so'
2091- else
2092- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2093- soname_spec='${libname}${release}${shared_ext}$major'
2094- dynamic_linker='NetBSD ld.elf_so'
2095- fi
2096- shlibpath_var=LD_LIBRARY_PATH
2097- shlibpath_overrides_runpath=yes
2098- hardcode_into_libs=yes
2099- ;;
2100-
2101-newsos6)
2102- version_type=linux
2103- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2104- shlibpath_var=LD_LIBRARY_PATH
2105- shlibpath_overrides_runpath=yes
2106- ;;
2107-
2108-nto-qnx*)
2109- version_type=linux
2110- need_lib_prefix=no
2111- need_version=no
2112- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2113- soname_spec='${libname}${release}${shared_ext}$major'
2114- shlibpath_var=LD_LIBRARY_PATH
2115- shlibpath_overrides_runpath=yes
2116- ;;
2117-
2118-openbsd*)
2119- version_type=sunos
2120- need_lib_prefix=no
2121- need_version=no
2122- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2123- finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2124- shlibpath_var=LD_LIBRARY_PATH
2125- if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2126- case $host_os in
2127- openbsd2.[[89]] | openbsd2.[[89]].*)
2128- shlibpath_overrides_runpath=no
2129- ;;
2130- *)
2131- shlibpath_overrides_runpath=yes
2132- ;;
2133- esac
2134- else
2135- shlibpath_overrides_runpath=yes
2136- fi
2137- ;;
2138-
2139-os2*)
2140- libname_spec='$name'
2141- shrext_cmds=".dll"
2142- need_lib_prefix=no
2143- library_names_spec='$libname${shared_ext} $libname.a'
2144- dynamic_linker='OS/2 ld.exe'
2145- shlibpath_var=LIBPATH
2146- ;;
2147-
2148-osf3* | osf4* | osf5*)
2149- version_type=osf
2150- need_lib_prefix=no
2151- need_version=no
2152- soname_spec='${libname}${release}${shared_ext}$major'
2153- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2154- shlibpath_var=LD_LIBRARY_PATH
2155- sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
2156- sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
2157- ;;
2158-
2159-sco3.2v5*)
2160- version_type=osf
2161- soname_spec='${libname}${release}${shared_ext}$major'
2162- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2163- shlibpath_var=LD_LIBRARY_PATH
2164- ;;
2165-
2166-solaris*)
2167- version_type=linux
2168- need_lib_prefix=no
2169- need_version=no
2170- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2171- soname_spec='${libname}${release}${shared_ext}$major'
2172- shlibpath_var=LD_LIBRARY_PATH
2173- shlibpath_overrides_runpath=yes
2174- hardcode_into_libs=yes
2175- # ldd complains unless libraries are executable
2176- postinstall_cmds='chmod +x $lib'
2177- ;;
2178-
2179-sunos4*)
2180- version_type=sunos
2181- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2182- finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
2183- shlibpath_var=LD_LIBRARY_PATH
2184- shlibpath_overrides_runpath=yes
2185- if test "$with_gnu_ld" = yes; then
2186- need_lib_prefix=no
2187- fi
2188- need_version=yes
2189- ;;
2190-
2191-sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2192- version_type=linux
2193- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2194- soname_spec='${libname}${release}${shared_ext}$major'
2195- shlibpath_var=LD_LIBRARY_PATH
2196- case $host_vendor in
2197- sni)
2198- shlibpath_overrides_runpath=no
2199- need_lib_prefix=no
2200- export_dynamic_flag_spec='${wl}-Blargedynsym'
2201- runpath_var=LD_RUN_PATH
2202- ;;
2203- siemens)
2204- need_lib_prefix=no
2205- ;;
2206- motorola)
2207- need_lib_prefix=no
2208- need_version=no
2209- shlibpath_overrides_runpath=no
2210- sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
2211- ;;
2212- esac
2213- ;;
2214-
2215-sysv4*MP*)
2216- if test -d /usr/nec ;then
2217- version_type=linux
2218- library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
2219- soname_spec='$libname${shared_ext}.$major'
2220- shlibpath_var=LD_LIBRARY_PATH
2221- fi
2222- ;;
2223-
2224-uts4*)
2225- version_type=linux
2226- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2227- soname_spec='${libname}${release}${shared_ext}$major'
2228- shlibpath_var=LD_LIBRARY_PATH
2229- ;;
2230-
2231-*)
2232- dynamic_linker=no
2233- ;;
2234-esac
2235-AC_MSG_RESULT([$dynamic_linker])
2236-test "$dynamic_linker" = no && can_build_shared=no
2237-])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
2238-
2239-
2240-# _LT_AC_TAGCONFIG
2241-# ----------------
2242-AC_DEFUN([_LT_AC_TAGCONFIG],
2243-[AC_ARG_WITH([tags],
2244- [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
2245- [include additional configurations @<:@automatic@:>@])],
2246- [tagnames="$withval"])
2247-
2248-if test -f "$ltmain" && test -n "$tagnames"; then
2249- if test ! -f "${ofile}"; then
2250- AC_MSG_WARN([output file `$ofile' does not exist])
2251- fi
2252-
2253- if test -z "$LTCC"; then
2254- eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
2255- if test -z "$LTCC"; then
2256- AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
2257- else
2258- AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
2259- fi
2260- fi
2261-
2262- # Extract list of available tagged configurations in $ofile.
2263- # Note that this assumes the entire list is on one line.
2264- available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
2265-
2266- lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2267- for tagname in $tagnames; do
2268- IFS="$lt_save_ifs"
2269- # Check whether tagname contains only valid characters
2270- case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
2271- "") ;;
2272- *) AC_MSG_ERROR([invalid tag name: $tagname])
2273- ;;
2274- esac
2275-
2276- if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
2277- then
2278- AC_MSG_ERROR([tag name \"$tagname\" already exists])
2279- fi
2280-
2281- # Update the list of available tags.
2282- if test -n "$tagname"; then
2283- echo appending configuration tag \"$tagname\" to $ofile
2284-
2285- case $tagname in
2286- CXX)
2287- if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
2288- ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
2289- (test "X$CXX" != "Xg++"))) ; then
2290- AC_LIBTOOL_LANG_CXX_CONFIG
2291- else
2292- tagname=""
2293- fi
2294- ;;
2295-
2296- F77)
2297- if test -n "$F77" && test "X$F77" != "Xno"; then
2298- AC_LIBTOOL_LANG_F77_CONFIG
2299- else
2300- tagname=""
2301- fi
2302- ;;
2303-
2304- GCJ)
2305- if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
2306- AC_LIBTOOL_LANG_GCJ_CONFIG
2307- else
2308- tagname=""
2309- fi
2310- ;;
2311-
2312- RC)
2313- AC_LIBTOOL_LANG_RC_CONFIG
2314- ;;
2315-
2316- *)
2317- AC_MSG_ERROR([Unsupported tag name: $tagname])
2318- ;;
2319- esac
2320-
2321- # Append the new tag name to the list of available tags.
2322- if test -n "$tagname" ; then
2323- available_tags="$available_tags $tagname"
2324- fi
2325- fi
2326- done
2327- IFS="$lt_save_ifs"
2328-
2329- # Now substitute the updated list of available tags.
2330- if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
2331- mv "${ofile}T" "$ofile"
2332- chmod +x "$ofile"
2333- else
2334- rm -f "${ofile}T"
2335- AC_MSG_ERROR([unable to update list of available tagged configurations.])
2336- fi
2337-fi
2338-])# _LT_AC_TAGCONFIG
2339-
2340-
2341-# AC_LIBTOOL_DLOPEN
2342-# -----------------
2343-# enable checks for dlopen support
2344-AC_DEFUN([AC_LIBTOOL_DLOPEN],
2345- [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
2346-])# AC_LIBTOOL_DLOPEN
2347-
2348-
2349-# AC_LIBTOOL_WIN32_DLL
2350-# --------------------
2351-# declare package support for building win32 dll's
2352-AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
2353-[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
2354-])# AC_LIBTOOL_WIN32_DLL
2355-
2356-
2357-# AC_ENABLE_SHARED([DEFAULT])
2358-# ---------------------------
2359-# implement the --enable-shared flag
2360-# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
2361-AC_DEFUN([AC_ENABLE_SHARED],
2362-[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
2363-AC_ARG_ENABLE([shared],
2364- [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
2365- [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
2366- [p=${PACKAGE-default}
2367- case $enableval in
2368- yes) enable_shared=yes ;;
2369- no) enable_shared=no ;;
2370- *)
2371- enable_shared=no
2372- # Look at the argument we got. We use all the common list separators.
2373- lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2374- for pkg in $enableval; do
2375- IFS="$lt_save_ifs"
2376- if test "X$pkg" = "X$p"; then
2377- enable_shared=yes
2378- fi
2379- done
2380- IFS="$lt_save_ifs"
2381- ;;
2382- esac],
2383- [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
2384-])# AC_ENABLE_SHARED
2385-
2386-
2387-# AC_DISABLE_SHARED
2388-# -----------------
2389-#- set the default shared flag to --disable-shared
2390-AC_DEFUN([AC_DISABLE_SHARED],
2391-[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2392-AC_ENABLE_SHARED(no)
2393-])# AC_DISABLE_SHARED
2394-
2395-
2396-# AC_ENABLE_STATIC([DEFAULT])
2397-# ---------------------------
2398-# implement the --enable-static flag
2399-# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
2400-AC_DEFUN([AC_ENABLE_STATIC],
2401-[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
2402-AC_ARG_ENABLE([static],
2403- [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
2404- [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
2405- [p=${PACKAGE-default}
2406- case $enableval in
2407- yes) enable_static=yes ;;
2408- no) enable_static=no ;;
2409- *)
2410- enable_static=no
2411- # Look at the argument we got. We use all the common list separators.
2412- lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2413- for pkg in $enableval; do
2414- IFS="$lt_save_ifs"
2415- if test "X$pkg" = "X$p"; then
2416- enable_static=yes
2417- fi
2418- done
2419- IFS="$lt_save_ifs"
2420- ;;
2421- esac],
2422- [enable_static=]AC_ENABLE_STATIC_DEFAULT)
2423-])# AC_ENABLE_STATIC
2424-
2425-
2426-# AC_DISABLE_STATIC
2427-# -----------------
2428-# set the default static flag to --disable-static
2429-AC_DEFUN([AC_DISABLE_STATIC],
2430-[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2431-AC_ENABLE_STATIC(no)
2432-])# AC_DISABLE_STATIC
2433-
2434-
2435-# AC_ENABLE_FAST_INSTALL([DEFAULT])
2436-# ---------------------------------
2437-# implement the --enable-fast-install flag
2438-# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
2439-AC_DEFUN([AC_ENABLE_FAST_INSTALL],
2440-[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
2441-AC_ARG_ENABLE([fast-install],
2442- [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
2443- [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
2444- [p=${PACKAGE-default}
2445- case $enableval in
2446- yes) enable_fast_install=yes ;;
2447- no) enable_fast_install=no ;;
2448- *)
2449- enable_fast_install=no
2450- # Look at the argument we got. We use all the common list separators.
2451- lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2452- for pkg in $enableval; do
2453- IFS="$lt_save_ifs"
2454- if test "X$pkg" = "X$p"; then
2455- enable_fast_install=yes
2456- fi
2457- done
2458- IFS="$lt_save_ifs"
2459- ;;
2460- esac],
2461- [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
2462-])# AC_ENABLE_FAST_INSTALL
2463-
2464-
2465-# AC_DISABLE_FAST_INSTALL
2466-# -----------------------
2467-# set the default to --disable-fast-install
2468-AC_DEFUN([AC_DISABLE_FAST_INSTALL],
2469-[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2470-AC_ENABLE_FAST_INSTALL(no)
2471-])# AC_DISABLE_FAST_INSTALL
2472-
2473-
2474-# AC_LIBTOOL_PICMODE([MODE])
2475-# --------------------------
2476-# implement the --with-pic flag
2477-# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
2478-AC_DEFUN([AC_LIBTOOL_PICMODE],
2479-[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2480-pic_mode=ifelse($#,1,$1,default)
2481-])# AC_LIBTOOL_PICMODE
2482-
2483-
2484-# AC_PROG_EGREP
2485-# -------------
2486-# This is predefined starting with Autoconf 2.54, so this conditional
2487-# definition can be removed once we require Autoconf 2.54 or later.
2488-m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
2489-[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
2490- [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2491- then ac_cv_prog_egrep='grep -E'
2492- else ac_cv_prog_egrep='egrep'
2493- fi])
2494- EGREP=$ac_cv_prog_egrep
2495- AC_SUBST([EGREP])
2496-])])
2497-
2498-
2499-# AC_PATH_TOOL_PREFIX
2500-# -------------------
2501-# find a file program which can recognise shared library
2502-AC_DEFUN([AC_PATH_TOOL_PREFIX],
2503-[AC_REQUIRE([AC_PROG_EGREP])dnl
2504-AC_MSG_CHECKING([for $1])
2505-AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
2506-[case $MAGIC_CMD in
2507-[[\\/*] | ?:[\\/]*])
2508- lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2509- ;;
2510-*)
2511- lt_save_MAGIC_CMD="$MAGIC_CMD"
2512- lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2513-dnl $ac_dummy forces splitting on constant user-supplied paths.
2514-dnl POSIX.2 word splitting is done only on the output of word expansions,
2515-dnl not every word. This closes a longstanding sh security hole.
2516- ac_dummy="ifelse([$2], , $PATH, [$2])"
2517- for ac_dir in $ac_dummy; do
2518- IFS="$lt_save_ifs"
2519- test -z "$ac_dir" && ac_dir=.
2520- if test -f $ac_dir/$1; then
2521- lt_cv_path_MAGIC_CMD="$ac_dir/$1"
2522- if test -n "$file_magic_test_file"; then
2523- case $deplibs_check_method in
2524- "file_magic "*)
2525- file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2526- MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2527- if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2528- $EGREP "$file_magic_regex" > /dev/null; then
2529- :
2530- else
2531- cat <<EOF 1>&2
2532-
2533-*** Warning: the command libtool uses to detect shared libraries,
2534-*** $file_magic_cmd, produces output that libtool cannot recognize.
2535-*** The result is that libtool may fail to recognize shared libraries
2536-*** as such. This will affect the creation of libtool libraries that
2537-*** depend on shared libraries, but programs linked with such libtool
2538-*** libraries will work regardless of this problem. Nevertheless, you
2539-*** may want to report the problem to your system manager and/or to
2540-*** bug-libtool@gnu.org
2541-
2542-EOF
2543- fi ;;
2544- esac
2545- fi
2546- break
2547- fi
2548- done
2549- IFS="$lt_save_ifs"
2550- MAGIC_CMD="$lt_save_MAGIC_CMD"
2551- ;;
2552-esac])
2553-MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2554-if test -n "$MAGIC_CMD"; then
2555- AC_MSG_RESULT($MAGIC_CMD)
2556-else
2557- AC_MSG_RESULT(no)
2558-fi
2559-])# AC_PATH_TOOL_PREFIX
2560-
2561-
2562-# AC_PATH_MAGIC
2563-# -------------
2564-# find a file program which can recognise a shared library
2565-AC_DEFUN([AC_PATH_MAGIC],
2566-[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
2567-if test -z "$lt_cv_path_MAGIC_CMD"; then
2568- if test -n "$ac_tool_prefix"; then
2569- AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
2570- else
2571- MAGIC_CMD=:
2572- fi
2573-fi
2574-])# AC_PATH_MAGIC
2575-
2576-
2577-# AC_PROG_LD
2578-# ----------
2579-# find the pathname to the GNU or non-GNU linker
2580-AC_DEFUN([AC_PROG_LD],
2581-[AC_ARG_WITH([gnu-ld],
2582- [AC_HELP_STRING([--with-gnu-ld],
2583- [assume the C compiler uses GNU ld @<:@default=no@:>@])],
2584- [test "$withval" = no || with_gnu_ld=yes],
2585- [with_gnu_ld=no])
2586-AC_REQUIRE([LT_AC_PROG_SED])dnl
2587-AC_REQUIRE([AC_PROG_CC])dnl
2588-AC_REQUIRE([AC_CANONICAL_HOST])dnl
2589-AC_REQUIRE([AC_CANONICAL_BUILD])dnl
2590-ac_prog=ld
2591-if test "$GCC" = yes; then
2592- # Check if gcc -print-prog-name=ld gives a path.
2593- AC_MSG_CHECKING([for ld used by $CC])
2594- case $host in
2595- *-*-mingw*)
2596- # gcc leaves a trailing carriage return which upsets mingw
2597- ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2598- *)
2599- ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2600- esac
2601- case $ac_prog in
2602- # Accept absolute paths.
2603- [[\\/]]* | ?:[[\\/]]*)
2604- re_direlt='/[[^/]][[^/]]*/\.\./'
2605- # Canonicalize the pathname of ld
2606- ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
2607- while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2608- ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
2609- done
2610- test -z "$LD" && LD="$ac_prog"
2611- ;;
2612- "")
2613- # If it fails, then pretend we aren't using GCC.
2614- ac_prog=ld
2615- ;;
2616- *)
2617- # If it is relative, then search for the first ld in PATH.
2618- with_gnu_ld=unknown
2619- ;;
2620- esac
2621-elif test "$with_gnu_ld" = yes; then
2622- AC_MSG_CHECKING([for GNU ld])
2623-else
2624- AC_MSG_CHECKING([for non-GNU ld])
2625-fi
2626-AC_CACHE_VAL(lt_cv_path_LD,
2627-[if test -z "$LD"; then
2628- lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2629- for ac_dir in $PATH; do
2630- IFS="$lt_save_ifs"
2631- test -z "$ac_dir" && ac_dir=.
2632- if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2633- lt_cv_path_LD="$ac_dir/$ac_prog"
2634- # Check to see if the program is GNU ld. I'd rather use --version,
2635- # but apparently some GNU ld's only accept -v.
2636- # Break only if it was the GNU/non-GNU ld that we prefer.
2637- case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
2638- *GNU* | *'with BFD'*)
2639- test "$with_gnu_ld" != no && break
2640- ;;
2641- *)
2642- test "$with_gnu_ld" != yes && break
2643- ;;
2644- esac
2645- fi
2646- done
2647- IFS="$lt_save_ifs"
2648-else
2649- lt_cv_path_LD="$LD" # Let the user override the test with a path.
2650-fi])
2651-LD="$lt_cv_path_LD"
2652-if test -n "$LD"; then
2653- AC_MSG_RESULT($LD)
2654-else
2655- AC_MSG_RESULT(no)
2656-fi
2657-test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
2658-AC_PROG_LD_GNU
2659-])# AC_PROG_LD
2660-
2661-
2662-# AC_PROG_LD_GNU
2663-# --------------
2664-AC_DEFUN([AC_PROG_LD_GNU],
2665-[AC_REQUIRE([AC_PROG_EGREP])dnl
2666-AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
2667-[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
2668-case `$LD -v 2>&1 </dev/null` in
2669-*GNU* | *'with BFD'*)
2670- lt_cv_prog_gnu_ld=yes
2671- ;;
2672-*)
2673- lt_cv_prog_gnu_ld=no
2674- ;;
2675-esac])
2676-with_gnu_ld=$lt_cv_prog_gnu_ld
2677-])# AC_PROG_LD_GNU
2678-
2679-
2680-# AC_PROG_LD_RELOAD_FLAG
2681-# ----------------------
2682-# find reload flag for linker
2683-# -- PORTME Some linkers may need a different reload flag.
2684-AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
2685-[AC_CACHE_CHECK([for $LD option to reload object files],
2686- lt_cv_ld_reload_flag,
2687- [lt_cv_ld_reload_flag='-r'])
2688-reload_flag=$lt_cv_ld_reload_flag
2689-case $reload_flag in
2690-"" | " "*) ;;
2691-*) reload_flag=" $reload_flag" ;;
2692-esac
2693-reload_cmds='$LD$reload_flag -o $output$reload_objs'
2694-case $host_os in
2695- darwin*)
2696- if test "$GCC" = yes; then
2697- reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
2698- else
2699- reload_cmds='$LD$reload_flag -o $output$reload_objs'
2700- fi
2701- ;;
2702-esac
2703-])# AC_PROG_LD_RELOAD_FLAG
2704-
2705-
2706-# AC_DEPLIBS_CHECK_METHOD
2707-# -----------------------
2708-# how to check for library dependencies
2709-# -- PORTME fill in with the dynamic library characteristics
2710-AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
2711-[AC_CACHE_CHECK([how to recognise dependent libraries],
2712-lt_cv_deplibs_check_method,
2713-[lt_cv_file_magic_cmd='$MAGIC_CMD'
2714-lt_cv_file_magic_test_file=
2715-lt_cv_deplibs_check_method='unknown'
2716-# Need to set the preceding variable on all platforms that support
2717-# interlibrary dependencies.
2718-# 'none' -- dependencies not supported.
2719-# `unknown' -- same as none, but documents that we really don't know.
2720-# 'pass_all' -- all dependencies passed with no checks.
2721-# 'test_compile' -- check by making test program.
2722-# 'file_magic [[regex]]' -- check by looking for files in library path
2723-# which responds to the $file_magic_cmd with a given extended regex.
2724-# If you have `file' or equivalent on your system and you're not sure
2725-# whether `pass_all' will *always* work, you probably want this one.
2726-
2727-case $host_os in
2728-aix4* | aix5*)
2729- lt_cv_deplibs_check_method=pass_all
2730- ;;
2731-
2732-beos*)
2733- lt_cv_deplibs_check_method=pass_all
2734- ;;
2735-
2736-bsdi[[45]]*)
2737- lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
2738- lt_cv_file_magic_cmd='/usr/bin/file -L'
2739- lt_cv_file_magic_test_file=/shlib/libc.so
2740- ;;
2741-
2742-cygwin*)
2743- # func_win32_libid is a shell function defined in ltmain.sh
2744- lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
2745- lt_cv_file_magic_cmd='func_win32_libid'
2746- ;;
2747-
2748-mingw* | pw32*)
2749- # Base MSYS/MinGW do not provide the 'file' command needed by
2750- # func_win32_libid shell function, so use a weaker test based on 'objdump'.
2751- lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2752- lt_cv_file_magic_cmd='$OBJDUMP -f'
2753- ;;
2754-
2755-darwin* | rhapsody*)
2756- lt_cv_deplibs_check_method=pass_all
2757- ;;
2758-
2759-freebsd* | kfreebsd*-gnu)
2760- if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2761- case $host_cpu in
2762- i*86 )
2763- # Not sure whether the presence of OpenBSD here was a mistake.
2764- # Let's accept both of them until this is cleared up.
2765- lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library'
2766- lt_cv_file_magic_cmd=/usr/bin/file
2767- lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2768- ;;
2769- esac
2770- else
2771- lt_cv_deplibs_check_method=pass_all
2772- fi
2773- ;;
2774-
2775-gnu*)
2776- lt_cv_deplibs_check_method=pass_all
2777- ;;
2778-
2779-hpux10.20* | hpux11*)
2780- lt_cv_file_magic_cmd=/usr/bin/file
2781- case "$host_cpu" in
2782- ia64*)
2783- lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
2784- lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
2785- ;;
2786- hppa*64*)
2787- [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]']
2788- lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
2789- ;;
2790- *)
2791- lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
2792- lt_cv_file_magic_test_file=/usr/lib/libc.sl
2793- ;;
2794- esac
2795- ;;
2796-
2797-irix5* | irix6* | nonstopux*)
2798- case $LD in
2799- *-32|*"-32 ") libmagic=32-bit;;
2800- *-n32|*"-n32 ") libmagic=N32;;
2801- *-64|*"-64 ") libmagic=64-bit;;
2802- *) libmagic=never-match;;
2803- esac
2804- lt_cv_deplibs_check_method=pass_all
2805- ;;
2806-
2807-# This must be Linux ELF.
2808-linux*)
2809- lt_cv_deplibs_check_method=pass_all
2810- ;;
2811-
2812-netbsd*)
2813- if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2814- lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
2815- else
2816- lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
2817- fi
2818- ;;
2819-
2820-newos6*)
2821- lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
2822- lt_cv_file_magic_cmd=/usr/bin/file
2823- lt_cv_file_magic_test_file=/usr/lib/libnls.so
2824- ;;
2825-
2826-nto-qnx*)
2827- lt_cv_deplibs_check_method=unknown
2828- ;;
2829-
2830-openbsd*)
2831- if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2832- lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
2833- else
2834- lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
2835- fi
2836- ;;
2837-
2838-osf3* | osf4* | osf5*)
2839- lt_cv_deplibs_check_method=pass_all
2840- ;;
2841-
2842-sco3.2v5*)
2843- lt_cv_deplibs_check_method=pass_all
2844- ;;
2845-
2846-solaris*)
2847- lt_cv_deplibs_check_method=pass_all
2848- ;;
2849-
2850-sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2851- case $host_vendor in
2852- motorola)
2853- 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]]'
2854- lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2855- ;;
2856- ncr)
2857- lt_cv_deplibs_check_method=pass_all
2858- ;;
2859- sequent)
2860- lt_cv_file_magic_cmd='/bin/file'
2861- lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
2862- ;;
2863- sni)
2864- lt_cv_file_magic_cmd='/bin/file'
2865- lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
2866- lt_cv_file_magic_test_file=/lib/libc.so
2867- ;;
2868- siemens)
2869- lt_cv_deplibs_check_method=pass_all
2870- ;;
2871- esac
2872- ;;
2873-
2874-sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7* | sysv4*uw2*)
2875- lt_cv_deplibs_check_method=pass_all
2876- ;;
2877-esac
2878-])
2879-file_magic_cmd=$lt_cv_file_magic_cmd
2880-deplibs_check_method=$lt_cv_deplibs_check_method
2881-test -z "$deplibs_check_method" && deplibs_check_method=unknown
2882-])# AC_DEPLIBS_CHECK_METHOD
2883-
2884-
2885-# AC_PROG_NM
2886-# ----------
2887-# find the pathname to a BSD-compatible name lister
2888-AC_DEFUN([AC_PROG_NM],
2889-[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
2890-[if test -n "$NM"; then
2891- # Let the user override the test.
2892- lt_cv_path_NM="$NM"
2893-else
2894- lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2895- for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2896- IFS="$lt_save_ifs"
2897- test -z "$ac_dir" && ac_dir=.
2898- tmp_nm="$ac_dir/${ac_tool_prefix}nm"
2899- if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
2900- # Check to see if the nm accepts a BSD-compat flag.
2901- # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2902- # nm: unknown option "B" ignored
2903- # Tru64's nm complains that /dev/null is an invalid object file
2904- case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
2905- */dev/null* | *'Invalid file or object type'*)
2906- lt_cv_path_NM="$tmp_nm -B"
2907- break
2908- ;;
2909- *)
2910- case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
2911- */dev/null*)
2912- lt_cv_path_NM="$tmp_nm -p"
2913- break
2914- ;;
2915- *)
2916- lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2917- continue # so that we can try to find one that supports BSD flags
2918- ;;
2919- esac
2920- esac
2921- fi
2922- done
2923- IFS="$lt_save_ifs"
2924- test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2925-fi])
2926-NM="$lt_cv_path_NM"
2927-])# AC_PROG_NM
2928-
2929-
2930-# AC_CHECK_LIBM
2931-# -------------
2932-# check for math library
2933-AC_DEFUN([AC_CHECK_LIBM],
2934-[AC_REQUIRE([AC_CANONICAL_HOST])dnl
2935-LIBM=
2936-case $host in
2937-*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
2938- # These system don't have libm, or don't need it
2939- ;;
2940-*-ncr-sysv4.3*)
2941- AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
2942- AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
2943- ;;
2944-*)
2945- AC_CHECK_LIB(m, cos, LIBM="-lm")
2946- ;;
2947-esac
2948-])# AC_CHECK_LIBM
2949-
2950-
2951-# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
2952-# -----------------------------------
2953-# sets LIBLTDL to the link flags for the libltdl convenience library and
2954-# LTDLINCL to the include flags for the libltdl header and adds
2955-# --enable-ltdl-convenience to the configure arguments. Note that LIBLTDL
2956-# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If
2957-# DIRECTORY is not provided, it is assumed to be `libltdl'. LIBLTDL will
2958-# be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed with
2959-# '${top_srcdir}/' (note the single quotes!). If your package is not
2960-# flat and you're not using automake, define top_builddir and
2961-# top_srcdir appropriately in the Makefiles.
2962-AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
2963-[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2964- case $enable_ltdl_convenience in
2965- no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
2966- "") enable_ltdl_convenience=yes
2967- ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
2968- esac
2969- LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
2970- LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
2971- # For backwards non-gettext consistent compatibility...
2972- INCLTDL="$LTDLINCL"
2973-])# AC_LIBLTDL_CONVENIENCE
2974-
2975-
2976-# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
2977-# -----------------------------------
2978-# sets LIBLTDL to the link flags for the libltdl installable library and
2979-# LTDLINCL to the include flags for the libltdl header and adds
2980-# --enable-ltdl-install to the configure arguments. Note that LIBLTDL
2981-# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If
2982-# DIRECTORY is not provided and an installed libltdl is not found, it is
2983-# assumed to be `libltdl'. LIBLTDL will be prefixed with '${top_builddir}/'
2984-# and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single
2985-# quotes!). If your package is not flat and you're not using automake,
2986-# define top_builddir and top_srcdir appropriately in the Makefiles.
2987-# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
2988-AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
2989-[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2990- AC_CHECK_LIB(ltdl, lt_dlinit,
2991- [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
2992- [if test x"$enable_ltdl_install" = xno; then
2993- AC_MSG_WARN([libltdl not installed, but installation disabled])
2994- else
2995- enable_ltdl_install=yes
2996- fi
2997- ])
2998- if test x"$enable_ltdl_install" = x"yes"; then
2999- ac_configure_args="$ac_configure_args --enable-ltdl-install"
3000- LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
3001- LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
3002- else
3003- ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
3004- LIBLTDL="-lltdl"
3005- LTDLINCL=
3006- fi
3007- # For backwards non-gettext consistent compatibility...
3008- INCLTDL="$LTDLINCL"
3009-])# AC_LIBLTDL_INSTALLABLE
3010-
3011-
3012-# AC_LIBTOOL_CXX
3013-# --------------
3014-# enable support for C++ libraries
3015-AC_DEFUN([AC_LIBTOOL_CXX],
3016-[AC_REQUIRE([_LT_AC_LANG_CXX])
3017-])# AC_LIBTOOL_CXX
3018-
3019-
3020-# _LT_AC_LANG_CXX
3021-# ---------------
3022-AC_DEFUN([_LT_AC_LANG_CXX],
3023-[AC_REQUIRE([AC_PROG_CXX])
3024-AC_REQUIRE([_LT_AC_PROG_CXXCPP])
3025-_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
3026-])# _LT_AC_LANG_CXX
3027-
3028-# _LT_AC_PROG_CXXCPP
3029-# ---------------
3030-AC_DEFUN([_LT_AC_PROG_CXXCPP],
3031-[
3032-AC_REQUIRE([AC_PROG_CXX])
3033-if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
3034- ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
3035- (test "X$CXX" != "Xg++"))) ; then
3036- AC_PROG_CXXCPP
3037-fi
3038-])# _LT_AC_PROG_CXXCPP
3039-
3040-# AC_LIBTOOL_F77
3041-# --------------
3042-# enable support for Fortran 77 libraries
3043-AC_DEFUN([AC_LIBTOOL_F77],
3044-[AC_REQUIRE([_LT_AC_LANG_F77])
3045-])# AC_LIBTOOL_F77
3046-
3047-
3048-# _LT_AC_LANG_F77
3049-# ---------------
3050-AC_DEFUN([_LT_AC_LANG_F77],
3051-[AC_REQUIRE([AC_PROG_F77])
3052-_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
3053-])# _LT_AC_LANG_F77
3054-
3055-
3056-# AC_LIBTOOL_GCJ
3057-# --------------
3058-# enable support for GCJ libraries
3059-AC_DEFUN([AC_LIBTOOL_GCJ],
3060-[AC_REQUIRE([_LT_AC_LANG_GCJ])
3061-])# AC_LIBTOOL_GCJ
3062-
3063-
3064-# _LT_AC_LANG_GCJ
3065-# ---------------
3066-AC_DEFUN([_LT_AC_LANG_GCJ],
3067-[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
3068- [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
3069- [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
3070- [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
3071- [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
3072- [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
3073-_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
3074-])# _LT_AC_LANG_GCJ
3075-
3076-
3077-# AC_LIBTOOL_RC
3078-# --------------
3079-# enable support for Windows resource files
3080-AC_DEFUN([AC_LIBTOOL_RC],
3081-[AC_REQUIRE([LT_AC_PROG_RC])
3082-_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
3083-])# AC_LIBTOOL_RC
3084-
3085-
3086-# AC_LIBTOOL_LANG_C_CONFIG
3087-# ------------------------
3088-# Ensure that the configuration vars for the C compiler are
3089-# suitably defined. Those variables are subsequently used by
3090-# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3091-AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
3092-AC_DEFUN([_LT_AC_LANG_C_CONFIG],
3093-[lt_save_CC="$CC"
3094-AC_LANG_PUSH(C)
3095-
3096-# Source file extension for C test sources.
3097-ac_ext=c
3098-
3099-# Object file extension for compiled C test sources.
3100-objext=o
3101-_LT_AC_TAGVAR(objext, $1)=$objext
3102-
3103-# Code to be used in simple compile tests
3104-lt_simple_compile_test_code="int some_variable = 0;\n"
3105-
3106-# Code to be used in simple link tests
3107-lt_simple_link_test_code='int main(){return(0);}\n'
3108-
3109-_LT_AC_SYS_COMPILER
3110-
3111-#
3112-# Check for any special shared library compilation flags.
3113-#
3114-_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)=
3115-if test "$GCC" = no; then
3116- case $host_os in
3117- sco3.2v5*)
3118- _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf'
3119- ;;
3120- esac
3121-fi
3122-if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then
3123- AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries])
3124- if echo "$old_CC $old_CFLAGS " | grep "[[ ]]$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[ ]]" >/dev/null; then :
3125- else
3126- AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure])
3127- _LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no
3128- fi
3129-fi
3130-
3131-
3132-#
3133-# Check to make sure the static flag actually works.
3134-#
3135-AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works],
3136- _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
3137- $_LT_AC_TAGVAR(lt_prog_compiler_static, $1),
3138- [],
3139- [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
3140-
3141-
3142-AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
3143-AC_LIBTOOL_PROG_COMPILER_PIC($1)
3144-AC_LIBTOOL_PROG_CC_C_O($1)
3145-AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
3146-AC_LIBTOOL_PROG_LD_SHLIBS($1)
3147-AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3148-AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3149-AC_LIBTOOL_SYS_LIB_STRIP
3150-AC_LIBTOOL_DLOPEN_SELF($1)
3151-
3152-# Report which librarie types wil actually be built
3153-AC_MSG_CHECKING([if libtool supports shared libraries])
3154-AC_MSG_RESULT([$can_build_shared])
3155-
3156-AC_MSG_CHECKING([whether to build shared libraries])
3157-test "$can_build_shared" = "no" && enable_shared=no
3158-
3159-# On AIX, shared libraries and static libraries use the same namespace, and
3160-# are all built from PIC.
3161-case "$host_os" in
3162-aix3*)
3163- test "$enable_shared" = yes && enable_static=no
3164- if test -n "$RANLIB"; then
3165- archive_cmds="$archive_cmds~\$RANLIB \$lib"
3166- postinstall_cmds='$RANLIB $lib'
3167- fi
3168- ;;
3169-
3170-aix4* | aix5*)
3171- if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
3172- test "$enable_shared" = yes && enable_static=no
3173- fi
3174- ;;
3175-esac
3176-AC_MSG_RESULT([$enable_shared])
3177-
3178-AC_MSG_CHECKING([whether to build static libraries])
3179-# Make sure either enable_shared or enable_static is yes.
3180-test "$enable_shared" = yes || enable_static=yes
3181-AC_MSG_RESULT([$enable_static])
3182-
3183-AC_LIBTOOL_CONFIG($1)
3184-
3185-AC_LANG_POP
3186-CC="$lt_save_CC"
3187-])# AC_LIBTOOL_LANG_C_CONFIG
3188-
3189-
3190-# AC_LIBTOOL_LANG_CXX_CONFIG
3191-# --------------------------
3192-# Ensure that the configuration vars for the C compiler are
3193-# suitably defined. Those variables are subsequently used by
3194-# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3195-AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
3196-AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
3197-[AC_LANG_PUSH(C++)
3198-AC_REQUIRE([AC_PROG_CXX])
3199-AC_REQUIRE([_LT_AC_PROG_CXXCPP])
3200-
3201-_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3202-_LT_AC_TAGVAR(allow_undefined_flag, $1)=
3203-_LT_AC_TAGVAR(always_export_symbols, $1)=no
3204-_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
3205-_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
3206-_LT_AC_TAGVAR(hardcode_direct, $1)=no
3207-_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
3208-_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
3209-_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3210-_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
3211-_LT_AC_TAGVAR(hardcode_automatic, $1)=no
3212-_LT_AC_TAGVAR(module_cmds, $1)=
3213-_LT_AC_TAGVAR(module_expsym_cmds, $1)=
3214-_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
3215-_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
3216-_LT_AC_TAGVAR(no_undefined_flag, $1)=
3217-_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
3218-_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
3219-
3220-# Dependencies to place before and after the object being linked:
3221-_LT_AC_TAGVAR(predep_objects, $1)=
3222-_LT_AC_TAGVAR(postdep_objects, $1)=
3223-_LT_AC_TAGVAR(predeps, $1)=
3224-_LT_AC_TAGVAR(postdeps, $1)=
3225-_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
3226-
3227-# Source file extension for C++ test sources.
3228-ac_ext=cc
3229-
3230-# Object file extension for compiled C++ test sources.
3231-objext=o
3232-_LT_AC_TAGVAR(objext, $1)=$objext
3233-
3234-# Code to be used in simple compile tests
3235-lt_simple_compile_test_code="int some_variable = 0;\n"
3236-
3237-# Code to be used in simple link tests
3238-lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
3239-
3240-# ltmain only uses $CC for tagged configurations so make sure $CC is set.
3241-_LT_AC_SYS_COMPILER
3242-
3243-# Allow CC to be a program name with arguments.
3244-lt_save_CC=$CC
3245-lt_save_LD=$LD
3246-lt_save_GCC=$GCC
3247-GCC=$GXX
3248-lt_save_with_gnu_ld=$with_gnu_ld
3249-lt_save_path_LD=$lt_cv_path_LD
3250-if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
3251- lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
3252-else
3253- unset lt_cv_prog_gnu_ld
3254-fi
3255-if test -n "${lt_cv_path_LDCXX+set}"; then
3256- lt_cv_path_LD=$lt_cv_path_LDCXX
3257-else
3258- unset lt_cv_path_LD
3259-fi
3260-test -z "${LDCXX+set}" || LD=$LDCXX
3261-CC=${CXX-"c++"}
3262-compiler=$CC
3263-_LT_AC_TAGVAR(compiler, $1)=$CC
3264-cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
3265-
3266-# We don't want -fno-exception wen compiling C++ code, so set the
3267-# no_builtin_flag separately
3268-if test "$GXX" = yes; then
3269- _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
3270-else
3271- _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
3272-fi
3273-
3274-if test "$GXX" = yes; then
3275- # Set up default GNU C++ configuration
3276-
3277- AC_PROG_LD
3278-
3279- # Check if GNU C++ uses GNU ld as the underlying linker, since the
3280- # archiving commands below assume that GNU ld is being used.
3281- if test "$with_gnu_ld" = yes; then
3282- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3283- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3284-
3285- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
3286- _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3287-
3288- # If archive_cmds runs LD, not CC, wlarc should be empty
3289- # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
3290- # investigate it a little bit more. (MM)
3291- wlarc='${wl}'
3292-
3293- # ancient GNU ld didn't support --whole-archive et. al.
3294- if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
3295- grep 'no-whole-archive' > /dev/null; then
3296- _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3297- else
3298- _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
3299- fi
3300- else
3301- with_gnu_ld=no
3302- wlarc=
3303-
3304- # A generic and very simple default shared library creation
3305- # command for GNU C++ for the case where it uses the native
3306- # linker, instead of GNU ld. If possible, this setting should
3307- # overridden to take advantage of the native linker features on
3308- # the platform it is being used on.
3309- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3310- fi
3311-
3312- # Commands to make compiler produce verbose output that lists
3313- # what "hidden" libraries, object files and flags are used when
3314- # linking a shared library.
3315- output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3316-
3317-else
3318- GXX=no
3319- with_gnu_ld=no
3320- wlarc=
3321-fi
3322-
3323-# PORTME: fill in a description of your system's C++ link characteristics
3324-AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
3325-_LT_AC_TAGVAR(ld_shlibs, $1)=yes
3326-case $host_os in
3327- aix3*)
3328- # FIXME: insert proper C++ library support
3329- _LT_AC_TAGVAR(ld_shlibs, $1)=no
3330- ;;
3331- aix4* | aix5*)
3332- if test "$host_cpu" = ia64; then
3333- # On IA64, the linker does run time linking by default, so we don't
3334- # have to do anything special.
3335- aix_use_runtimelinking=no
3336- exp_sym_flag='-Bexport'
3337- no_entry_flag=""
3338- else
3339- aix_use_runtimelinking=no
3340-
3341- # Test if we are trying to use run time linking or normal
3342- # AIX style linking. If -brtl is somewhere in LDFLAGS, we
3343- # need to do runtime linking.
3344- case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
3345- for ld_flag in $LDFLAGS; do
3346- case $ld_flag in
3347- *-brtl*)
3348- aix_use_runtimelinking=yes
3349- break
3350- ;;
3351- esac
3352- done
3353- esac
3354-
3355- exp_sym_flag='-bexport'
3356- no_entry_flag='-bnoentry'
3357- fi
3358-
3359- # When large executables or shared objects are built, AIX ld can
3360- # have problems creating the table of contents. If linking a library
3361- # or program results in "error TOC overflow" add -mminimal-toc to
3362- # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
3363- # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
3364-
3365- _LT_AC_TAGVAR(archive_cmds, $1)=''
3366- _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3367- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
3368- _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3369-
3370- if test "$GXX" = yes; then
3371- case $host_os in aix4.[012]|aix4.[012].*)
3372- # We only want to do this on AIX 4.2 and lower, the check
3373- # below for broken collect2 doesn't work under 4.3+
3374- collect2name=`${CC} -print-prog-name=collect2`
3375- if test -f "$collect2name" && \
3376- strings "$collect2name" | grep resolve_lib_name >/dev/null
3377- then
3378- # We have reworked collect2
3379- _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3380- else
3381- # We have old collect2
3382- _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
3383- # It fails to find uninstalled libraries when the uninstalled
3384- # path is not listed in the libpath. Setting hardcode_minus_L
3385- # to unsupported forces relinking
3386- _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
3387- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3388- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3389- fi
3390- esac
3391- shared_flag='-shared'
3392- else
3393- # not using gcc
3394- if test "$host_cpu" = ia64; then
3395- # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
3396- # chokes on -Wl,-G. The following line is correct:
3397- shared_flag='-G'
3398- else
3399- if test "$aix_use_runtimelinking" = yes; then
3400- shared_flag='${wl}-G'
3401- else
3402- shared_flag='${wl}-bM:SRE'
3403- fi
3404- fi
3405- fi
3406-
3407- # It seems that -bexpall does not export symbols beginning with
3408- # underscore (_), so it is better to generate a list of symbols to export.
3409- _LT_AC_TAGVAR(always_export_symbols, $1)=yes
3410- if test "$aix_use_runtimelinking" = yes; then
3411- # Warning - without using the other runtime loading flags (-brtl),
3412- # -berok will link without error, but may produce a broken library.
3413- _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
3414- # Determine the default libpath from the value encoded in an empty executable.
3415- _LT_AC_SYS_LIBPATH_AIX
3416- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3417-
3418- _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
3419- else
3420- if test "$host_cpu" = ia64; then
3421- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
3422- _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
3423- _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
3424- else
3425- # Determine the default libpath from the value encoded in an empty executable.
3426- _LT_AC_SYS_LIBPATH_AIX
3427- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3428- # Warning - without using the other run time loading flags,
3429- # -berok will link without error, but may produce a broken library.
3430- _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
3431- _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
3432- # -bexpall does not export symbols beginning with underscore (_)
3433- _LT_AC_TAGVAR(always_export_symbols, $1)=yes
3434- # Exported symbols can be pulled into shared objects from archives
3435- _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
3436- _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
3437- # This is similar to how AIX traditionally builds it's shared libraries.
3438- _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
3439- fi
3440- fi
3441- ;;
3442- chorus*)
3443- case $cc_basename in
3444- *)
3445- # FIXME: insert proper C++ library support
3446- _LT_AC_TAGVAR(ld_shlibs, $1)=no
3447- ;;
3448- esac
3449- ;;
3450-
3451-
3452- cygwin* | mingw* | pw32*)
3453- # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
3454- # as there is no search path for DLLs.
3455- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3456- _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3457- _LT_AC_TAGVAR(always_export_symbols, $1)=no
3458- _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
3459-
3460- if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
3461- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
3462- # If the export-symbols file already is a .def file (1st line
3463- # is EXPORTS), use it as is; otherwise, prepend...
3464- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
3465- cp $export_symbols $output_objdir/$soname.def;
3466- else
3467- echo EXPORTS > $output_objdir/$soname.def;
3468- cat $export_symbols >> $output_objdir/$soname.def;
3469- fi~
3470- $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
3471- else
3472- _LT_AC_TAGVAR(ld_shlibs, $1)=no
3473- fi
3474- ;;
3475- darwin* | rhapsody*)
3476- case "$host_os" in
3477- rhapsody* | darwin1.[[012]])
3478- _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
3479- ;;
3480- *) # Darwin 1.3 on
3481- if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
3482- _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
3483- else
3484- case ${MACOSX_DEPLOYMENT_TARGET} in
3485- 10.[[012]])
3486- _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
3487- ;;
3488- 10.*)
3489- _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
3490- ;;
3491- esac
3492- fi
3493- ;;
3494- esac
3495- _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3496- _LT_AC_TAGVAR(hardcode_direct, $1)=no
3497- _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
3498- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3499- _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
3500- _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3501-
3502- if test "$GXX" = yes ; then
3503- lt_int_apple_cc_single_mod=no
3504- output_verbose_link_cmd='echo'
3505- if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
3506- lt_int_apple_cc_single_mod=yes
3507- fi
3508- if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3509- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
3510- else
3511- _LT_AC_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'
3512- fi
3513- _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3514- # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
3515- if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3516- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3517- else
3518- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3519- fi
3520- _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3521- else
3522- case "$cc_basename" in
3523- xlc*)
3524- output_verbose_link_cmd='echo'
3525- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
3526- _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3527- # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
3528- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3529- _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3530- ;;
3531- *)
3532- _LT_AC_TAGVAR(ld_shlibs, $1)=no
3533- ;;
3534- esac
3535- fi
3536- ;;
3537-
3538- dgux*)
3539- case $cc_basename in
3540- ec++)
3541- # FIXME: insert proper C++ library support
3542- _LT_AC_TAGVAR(ld_shlibs, $1)=no
3543- ;;
3544- ghcx)
3545- # Green Hills C++ Compiler
3546- # FIXME: insert proper C++ library support
3547- _LT_AC_TAGVAR(ld_shlibs, $1)=no
3548- ;;
3549- *)
3550- # FIXME: insert proper C++ library support
3551- _LT_AC_TAGVAR(ld_shlibs, $1)=no
3552- ;;
3553- esac
3554- ;;
3555- freebsd[12]*)
3556- # C++ shared libraries reported to be fairly broken before switch to ELF
3557- _LT_AC_TAGVAR(ld_shlibs, $1)=no
3558- ;;
3559- freebsd-elf*)
3560- _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3561- ;;
3562- freebsd* | kfreebsd*-gnu)
3563- # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
3564- # conventions
3565- _LT_AC_TAGVAR(ld_shlibs, $1)=yes
3566- ;;
3567- gnu*)
3568- ;;
3569- hpux9*)
3570- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3571- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3572- _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3573- _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3574- _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3575- # but as the default
3576- # location of the library.
3577-
3578- case $cc_basename in
3579- CC)
3580- # FIXME: insert proper C++ library support
3581- _LT_AC_TAGVAR(ld_shlibs, $1)=no
3582- ;;
3583- aCC)
3584- _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
3585- # Commands to make compiler produce verbose output that lists
3586- # what "hidden" libraries, object files and flags are used when
3587- # linking a shared library.
3588- #
3589- # There doesn't appear to be a way to prevent this compiler from
3590- # explicitly linking system object files so we need to strip them
3591- # from the output so that they don't get included in the library
3592- # dependencies.
3593- output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
3594- ;;
3595- *)
3596- if test "$GXX" = yes; then
3597- _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
3598- else
3599- # FIXME: insert proper C++ library support
3600- _LT_AC_TAGVAR(ld_shlibs, $1)=no
3601- fi
3602- ;;
3603- esac
3604- ;;
3605- hpux10*|hpux11*)
3606- if test $with_gnu_ld = no; then
3607- case "$host_cpu" in
3608- hppa*64*)
3609- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3610- _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
3611- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3612- ;;
3613- ia64*)
3614- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3615- ;;
3616- *)
3617- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3618- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3619- _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3620- ;;
3621- esac
3622- fi
3623- case "$host_cpu" in
3624- hppa*64*)
3625- _LT_AC_TAGVAR(hardcode_direct, $1)=no
3626- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3627- ;;
3628- ia64*)
3629- _LT_AC_TAGVAR(hardcode_direct, $1)=no
3630- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3631- _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3632- # but as the default
3633- # location of the library.
3634- ;;
3635- *)
3636- _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3637- _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3638- # but as the default
3639- # location of the library.
3640- ;;
3641- esac
3642-
3643- case $cc_basename in
3644- CC)
3645- # FIXME: insert proper C++ library support
3646- _LT_AC_TAGVAR(ld_shlibs, $1)=no
3647- ;;
3648- aCC)
3649- case "$host_cpu" in
3650- hppa*64*|ia64*)
3651- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
3652- ;;
3653- *)
3654- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3655- ;;
3656- esac
3657- # Commands to make compiler produce verbose output that lists
3658- # what "hidden" libraries, object files and flags are used when
3659- # linking a shared library.
3660- #
3661- # There doesn't appear to be a way to prevent this compiler from
3662- # explicitly linking system object files so we need to strip them
3663- # from the output so that they don't get included in the library
3664- # dependencies.
3665- output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
3666- ;;
3667- *)
3668- if test "$GXX" = yes; then
3669- if test $with_gnu_ld = no; then
3670- case "$host_cpu" in
3671- ia64*|hppa*64*)
3672- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
3673- ;;
3674- *)
3675- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3676- ;;
3677- esac
3678- fi
3679- else
3680- # FIXME: insert proper C++ library support
3681- _LT_AC_TAGVAR(ld_shlibs, $1)=no
3682- fi
3683- ;;
3684- esac
3685- ;;
3686- irix5* | irix6*)
3687- case $cc_basename in
3688- CC)
3689- # SGI C++
3690- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
3691-
3692- # Archives containing C++ object files must be created using
3693- # "CC -ar", where "CC" is the IRIX C++ compiler. This is
3694- # necessary to make sure instantiated templates are included
3695- # in the archive.
3696- _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
3697- ;;
3698- *)
3699- if test "$GXX" = yes; then
3700- if test "$with_gnu_ld" = no; then
3701- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
3702- else
3703- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
3704- fi
3705- fi
3706- _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3707- ;;
3708- esac
3709- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3710- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3711- ;;
3712- linux*)
3713- case $cc_basename in
3714- KCC)
3715- # Kuck and Associates, Inc. (KAI) C++ Compiler
3716-
3717- # KCC will only create a shared library if the output file
3718- # ends with ".so" (or ".sl" for HP-UX), so rename the library
3719- # to its proper name (with version) after linking.
3720- _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
3721- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
3722- # Commands to make compiler produce verbose output that lists
3723- # what "hidden" libraries, object files and flags are used when
3724- # linking a shared library.
3725- #
3726- # There doesn't appear to be a way to prevent this compiler from
3727- # explicitly linking system object files so we need to strip them
3728- # from the output so that they don't get included in the library
3729- # dependencies.
3730- output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
3731-
3732- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
3733- _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3734-
3735- # Archives containing C++ object files must be created using
3736- # "CC -Bstatic", where "CC" is the KAI C++ compiler.
3737- _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
3738- ;;
3739- icpc)
3740- # Intel C++
3741- with_gnu_ld=yes
3742- # version 8.0 and above of icpc choke on multiply defined symbols
3743- # if we add $predep_objects and $postdep_objects, however 7.1 and
3744- # earlier do not add the objects themselves.
3745- case `$CC -V 2>&1` in
3746- *"Version 7."*)
3747- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3748- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3749- ;;
3750- *) # Version 8.0 or newer
3751- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3752- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3753- ;;
3754- esac
3755- _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3756- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3757- _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3758- _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
3759- ;;
3760- cxx)
3761- # Compaq C++
3762- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3763- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
3764-
3765- runpath_var=LD_RUN_PATH
3766- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
3767- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3768-
3769- # Commands to make compiler produce verbose output that lists
3770- # what "hidden" libraries, object files and flags are used when
3771- # linking a shared library.
3772- #
3773- # There doesn't appear to be a way to prevent this compiler from
3774- # explicitly linking system object files so we need to strip them
3775- # from the output so that they don't get included in the library
3776- # dependencies.
3777- output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
3778- ;;
3779- esac
3780- ;;
3781- lynxos*)
3782- # FIXME: insert proper C++ library support
3783- _LT_AC_TAGVAR(ld_shlibs, $1)=no
3784- ;;
3785- m88k*)
3786- # FIXME: insert proper C++ library support
3787- _LT_AC_TAGVAR(ld_shlibs, $1)=no
3788- ;;
3789- mvs*)
3790- case $cc_basename in
3791- cxx)
3792- # FIXME: insert proper C++ library support
3793- _LT_AC_TAGVAR(ld_shlibs, $1)=no
3794- ;;
3795- *)
3796- # FIXME: insert proper C++ library support
3797- _LT_AC_TAGVAR(ld_shlibs, $1)=no
3798- ;;
3799- esac
3800- ;;
3801- netbsd*)
3802- if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3803- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
3804- wlarc=
3805- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3806- _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3807- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3808- fi
3809- # Workaround some broken pre-1.5 toolchains
3810- output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
3811- ;;
3812- openbsd2*)
3813- # C++ shared libraries are fairly broken
3814- _LT_AC_TAGVAR(ld_shlibs, $1)=no
3815- ;;
3816- openbsd*)
3817- _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3818- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3819- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3820- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3821- if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3822- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
3823- _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3824- _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3825- fi
3826- output_verbose_link_cmd='echo'
3827- ;;
3828- osf3*)
3829- case $cc_basename in
3830- KCC)
3831- # Kuck and Associates, Inc. (KAI) C++ Compiler
3832-
3833- # KCC will only create a shared library if the output file
3834- # ends with ".so" (or ".sl" for HP-UX), so rename the library
3835- # to its proper name (with version) after linking.
3836- _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
3837-
3838- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3839- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3840-
3841- # Archives containing C++ object files must be created using
3842- # "CC -Bstatic", where "CC" is the KAI C++ compiler.
3843- _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
3844-
3845- ;;
3846- RCC)
3847- # Rational C++ 2.4.1
3848- # FIXME: insert proper C++ library support
3849- _LT_AC_TAGVAR(ld_shlibs, $1)=no
3850- ;;
3851- cxx)
3852- _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3853- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
3854-
3855- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3856- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3857-
3858- # Commands to make compiler produce verbose output that lists
3859- # what "hidden" libraries, object files and flags are used when
3860- # linking a shared library.
3861- #
3862- # There doesn't appear to be a way to prevent this compiler from
3863- # explicitly linking system object files so we need to strip them
3864- # from the output so that they don't get included in the library
3865- # dependencies.
3866- output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
3867- ;;
3868- *)
3869- if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3870- _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3871- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
3872-
3873- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3874- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3875-
3876- # Commands to make compiler produce verbose output that lists
3877- # what "hidden" libraries, object files and flags are used when
3878- # linking a shared library.
3879- output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3880-
3881- else
3882- # FIXME: insert proper C++ library support
3883- _LT_AC_TAGVAR(ld_shlibs, $1)=no
3884- fi
3885- ;;
3886- esac
3887- ;;
3888- osf4* | osf5*)
3889- case $cc_basename in
3890- KCC)
3891- # Kuck and Associates, Inc. (KAI) C++ Compiler
3892-
3893- # KCC will only create a shared library if the output file
3894- # ends with ".so" (or ".sl" for HP-UX), so rename the library
3895- # to its proper name (with version) after linking.
3896- _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
3897-
3898- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3899- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3900-
3901- # Archives containing C++ object files must be created using
3902- # the KAI C++ compiler.
3903- _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
3904- ;;
3905- RCC)
3906- # Rational C++ 2.4.1
3907- # FIXME: insert proper C++ library support
3908- _LT_AC_TAGVAR(ld_shlibs, $1)=no
3909- ;;
3910- cxx)
3911- _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
3912- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
3913- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
3914- echo "-hidden">> $lib.exp~
3915- $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
3916- $rm $lib.exp'
3917-
3918- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
3919- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3920-
3921- # Commands to make compiler produce verbose output that lists
3922- # what "hidden" libraries, object files and flags are used when
3923- # linking a shared library.
3924- #
3925- # There doesn't appear to be a way to prevent this compiler from
3926- # explicitly linking system object files so we need to strip them
3927- # from the output so that they don't get included in the library
3928- # dependencies.
3929- output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
3930- ;;
3931- *)
3932- if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3933- _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3934- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
3935-
3936- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3937- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3938-
3939- # Commands to make compiler produce verbose output that lists
3940- # what "hidden" libraries, object files and flags are used when
3941- # linking a shared library.
3942- output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3943-
3944- else
3945- # FIXME: insert proper C++ library support
3946- _LT_AC_TAGVAR(ld_shlibs, $1)=no
3947- fi
3948- ;;
3949- esac
3950- ;;
3951- psos*)
3952- # FIXME: insert proper C++ library support
3953- _LT_AC_TAGVAR(ld_shlibs, $1)=no
3954- ;;
3955- sco*)
3956- _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3957- case $cc_basename in
3958- CC)
3959- # FIXME: insert proper C++ library support
3960- _LT_AC_TAGVAR(ld_shlibs, $1)=no
3961- ;;
3962- *)
3963- # FIXME: insert proper C++ library support
3964- _LT_AC_TAGVAR(ld_shlibs, $1)=no
3965- ;;
3966- esac
3967- ;;
3968- sunos4*)
3969- case $cc_basename in
3970- CC)
3971- # Sun C++ 4.x
3972- # FIXME: insert proper C++ library support
3973- _LT_AC_TAGVAR(ld_shlibs, $1)=no
3974- ;;
3975- lcc)
3976- # Lucid
3977- # FIXME: insert proper C++ library support
3978- _LT_AC_TAGVAR(ld_shlibs, $1)=no
3979- ;;
3980- *)
3981- # FIXME: insert proper C++ library support
3982- _LT_AC_TAGVAR(ld_shlibs, $1)=no
3983- ;;
3984- esac
3985- ;;
3986- solaris*)
3987- case $cc_basename in
3988- CC)
3989- # Sun C++ 4.2, 5.x and Centerline C++
3990- _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
3991- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3992- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3993- $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
3994-
3995- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3996- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3997- case $host_os in
3998- solaris2.[0-5] | solaris2.[0-5].*) ;;
3999- *)
4000- # The C++ compiler is used as linker so we must use $wl
4001- # flag to pass the commands to the underlying system
4002- # linker.
4003- # Supported since Solaris 2.6 (maybe 2.5.1?)
4004- _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
4005- ;;
4006- esac
4007- _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4008-
4009- # Commands to make compiler produce verbose output that lists
4010- # what "hidden" libraries, object files and flags are used when
4011- # linking a shared library.
4012- #
4013- # There doesn't appear to be a way to prevent this compiler from
4014- # explicitly linking system object files so we need to strip them
4015- # from the output so that they don't get included in the library
4016- # dependencies.
4017- output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[[LR]]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
4018-
4019- # Archives containing C++ object files must be created using
4020- # "CC -xar", where "CC" is the Sun C++ compiler. This is
4021- # necessary to make sure instantiated templates are included
4022- # in the archive.
4023- _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
4024- ;;
4025- gcx)
4026- # Green Hills C++ Compiler
4027- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
4028-
4029- # The C++ compiler must be used to create the archive.
4030- _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
4031- ;;
4032- *)
4033- # GNU C++ compiler with Solaris linker
4034- if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4035- _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
4036- if $CC --version | grep -v '^2\.7' > /dev/null; then
4037- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
4038- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4039- $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
4040-
4041- # Commands to make compiler produce verbose output that lists
4042- # what "hidden" libraries, object files and flags are used when
4043- # linking a shared library.
4044- output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
4045- else
4046- # g++ 2.7 appears to require `-G' NOT `-shared' on this
4047- # platform.
4048- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
4049- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4050- $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
4051-
4052- # Commands to make compiler produce verbose output that lists
4053- # what "hidden" libraries, object files and flags are used when
4054- # linking a shared library.
4055- output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
4056- fi
4057-
4058- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
4059- fi
4060- ;;
4061- esac
4062- ;;
4063- sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
4064- _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4065- ;;
4066- tandem*)
4067- case $cc_basename in
4068- NCC)
4069- # NonStop-UX NCC 3.20
4070- # FIXME: insert proper C++ library support
4071- _LT_AC_TAGVAR(ld_shlibs, $1)=no
4072- ;;
4073- *)
4074- # FIXME: insert proper C++ library support
4075- _LT_AC_TAGVAR(ld_shlibs, $1)=no
4076- ;;
4077- esac
4078- ;;
4079- vxworks*)
4080- # FIXME: insert proper C++ library support
4081- _LT_AC_TAGVAR(ld_shlibs, $1)=no
4082- ;;
4083- *)
4084- # FIXME: insert proper C++ library support
4085- _LT_AC_TAGVAR(ld_shlibs, $1)=no
4086- ;;
4087-esac
4088-AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
4089-test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
4090-
4091-_LT_AC_TAGVAR(GCC, $1)="$GXX"
4092-_LT_AC_TAGVAR(LD, $1)="$LD"
4093-
4094-AC_LIBTOOL_POSTDEP_PREDEP($1)
4095-AC_LIBTOOL_PROG_COMPILER_PIC($1)
4096-AC_LIBTOOL_PROG_CC_C_O($1)
4097-AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4098-AC_LIBTOOL_PROG_LD_SHLIBS($1)
4099-AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4100-AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4101-AC_LIBTOOL_SYS_LIB_STRIP
4102-AC_LIBTOOL_DLOPEN_SELF($1)
4103-
4104-AC_LIBTOOL_CONFIG($1)
4105-
4106-AC_LANG_POP
4107-CC=$lt_save_CC
4108-LDCXX=$LD
4109-LD=$lt_save_LD
4110-GCC=$lt_save_GCC
4111-with_gnu_ldcxx=$with_gnu_ld
4112-with_gnu_ld=$lt_save_with_gnu_ld
4113-lt_cv_path_LDCXX=$lt_cv_path_LD
4114-lt_cv_path_LD=$lt_save_path_LD
4115-lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
4116-lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
4117-])# AC_LIBTOOL_LANG_CXX_CONFIG
4118-
4119-# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
4120-# ------------------------
4121-# Figure out "hidden" library dependencies from verbose
4122-# compiler output when linking a shared library.
4123-# Parse the compiler output and extract the necessary
4124-# objects, libraries and library flags.
4125-AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
4126-dnl we can't use the lt_simple_compile_test_code here,
4127-dnl because it contains code intended for an executable,
4128-dnl not a library. It's possible we should let each
4129-dnl tag define a new lt_????_link_test_code variable,
4130-dnl but it's only used here...
4131-ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
4132-int a;
4133-void foo (void) { a = 0; }
4134-EOF
4135-],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
4136-class Foo
4137-{
4138-public:
4139- Foo (void) { a = 0; }
4140-private:
4141- int a;
4142-};
4143-EOF
4144-],[$1],[F77],[cat > conftest.$ac_ext <<EOF
4145- subroutine foo
4146- implicit none
4147- integer*4 a
4148- a=0
4149- return
4150- end
4151-EOF
4152-],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
4153-public class foo {
4154- private int a;
4155- public void bar (void) {
4156- a = 0;
4157- }
4158-};
4159-EOF
4160-])
4161-dnl Parse the compiler output and extract the necessary
4162-dnl objects, libraries and library flags.
4163-if AC_TRY_EVAL(ac_compile); then
4164- # Parse the compiler output and extract the necessary
4165- # objects, libraries and library flags.
4166-
4167- # Sentinel used to keep track of whether or not we are before
4168- # the conftest object file.
4169- pre_test_object_deps_done=no
4170-
4171- # The `*' in the case matches for architectures that use `case' in
4172- # $output_verbose_cmd can trigger glob expansion during the loop
4173- # eval without this substitution.
4174- output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
4175-
4176- for p in `eval $output_verbose_link_cmd`; do
4177- case $p in
4178-
4179- -L* | -R* | -l*)
4180- # Some compilers place space between "-{L,R}" and the path.
4181- # Remove the space.
4182- if test $p = "-L" \
4183- || test $p = "-R"; then
4184- prev=$p
4185- continue
4186- else
4187- prev=
4188- fi
4189-
4190- if test "$pre_test_object_deps_done" = no; then
4191- case $p in
4192- -L* | -R*)
4193- # Internal compiler library paths should come after those
4194- # provided the user. The postdeps already come after the
4195- # user supplied libs so there is no need to process them.
4196- if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
4197- _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
4198- else
4199- _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
4200- fi
4201- ;;
4202- # The "-l" case would never come before the object being
4203- # linked, so don't bother handling this case.
4204- esac
4205- else
4206- if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
4207- _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
4208- else
4209- _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
4210- fi
4211- fi
4212- ;;
4213-
4214- *.$objext)
4215- # This assumes that the test object file only shows up
4216- # once in the compiler output.
4217- if test "$p" = "conftest.$objext"; then
4218- pre_test_object_deps_done=yes
4219- continue
4220- fi
4221-
4222- if test "$pre_test_object_deps_done" = no; then
4223- if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
4224- _LT_AC_TAGVAR(predep_objects, $1)="$p"
4225- else
4226- _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
4227- fi
4228- else
4229- if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
4230- _LT_AC_TAGVAR(postdep_objects, $1)="$p"
4231- else
4232- _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
4233- fi
4234- fi
4235- ;;
4236-
4237- *) ;; # Ignore the rest.
4238-
4239- esac
4240- done
4241-
4242- # Clean up.
4243- rm -f a.out a.exe
4244-else
4245- echo "libtool.m4: error: problem compiling $1 test program"
4246-fi
4247-
4248-$rm -f confest.$objext
4249-
4250-case " $_LT_AC_TAGVAR(postdeps, $1) " in
4251-*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
4252-esac
4253-])# AC_LIBTOOL_POSTDEP_PREDEP
4254-
4255-# AC_LIBTOOL_LANG_F77_CONFIG
4256-# ------------------------
4257-# Ensure that the configuration vars for the C compiler are
4258-# suitably defined. Those variables are subsequently used by
4259-# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4260-AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
4261-AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
4262-[AC_REQUIRE([AC_PROG_F77])
4263-AC_LANG_PUSH(Fortran 77)
4264-
4265-_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4266-_LT_AC_TAGVAR(allow_undefined_flag, $1)=
4267-_LT_AC_TAGVAR(always_export_symbols, $1)=no
4268-_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
4269-_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
4270-_LT_AC_TAGVAR(hardcode_direct, $1)=no
4271-_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
4272-_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
4273-_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
4274-_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
4275-_LT_AC_TAGVAR(hardcode_automatic, $1)=no
4276-_LT_AC_TAGVAR(module_cmds, $1)=
4277-_LT_AC_TAGVAR(module_expsym_cmds, $1)=
4278-_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
4279-_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
4280-_LT_AC_TAGVAR(no_undefined_flag, $1)=
4281-_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
4282-_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
4283-
4284-# Source file extension for f77 test sources.
4285-ac_ext=f
4286-
4287-# Object file extension for compiled f77 test sources.
4288-objext=o
4289-_LT_AC_TAGVAR(objext, $1)=$objext
4290-
4291-# Code to be used in simple compile tests
4292-lt_simple_compile_test_code=" subroutine t\n return\n end\n"
4293-
4294-# Code to be used in simple link tests
4295-lt_simple_link_test_code=" program t\n end\n"
4296-
4297-# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4298-_LT_AC_SYS_COMPILER
4299-
4300-# Allow CC to be a program name with arguments.
4301-lt_save_CC="$CC"
4302-CC=${F77-"f77"}
4303-compiler=$CC
4304-_LT_AC_TAGVAR(compiler, $1)=$CC
4305-cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
4306-
4307-AC_MSG_CHECKING([if libtool supports shared libraries])
4308-AC_MSG_RESULT([$can_build_shared])
4309-
4310-AC_MSG_CHECKING([whether to build shared libraries])
4311-test "$can_build_shared" = "no" && enable_shared=no
4312-
4313-# On AIX, shared libraries and static libraries use the same namespace, and
4314-# are all built from PIC.
4315-case "$host_os" in
4316-aix3*)
4317- test "$enable_shared" = yes && enable_static=no
4318- if test -n "$RANLIB"; then
4319- archive_cmds="$archive_cmds~\$RANLIB \$lib"
4320- postinstall_cmds='$RANLIB $lib'
4321- fi
4322- ;;
4323-aix4* | aix5*)
4324- test "$enable_shared" = yes && enable_static=no
4325- ;;
4326-esac
4327-AC_MSG_RESULT([$enable_shared])
4328-
4329-AC_MSG_CHECKING([whether to build static libraries])
4330-# Make sure either enable_shared or enable_static is yes.
4331-test "$enable_shared" = yes || enable_static=yes
4332-AC_MSG_RESULT([$enable_static])
4333-
4334-test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
4335-
4336-_LT_AC_TAGVAR(GCC, $1)="$G77"
4337-_LT_AC_TAGVAR(LD, $1)="$LD"
4338-
4339-AC_LIBTOOL_PROG_COMPILER_PIC($1)
4340-AC_LIBTOOL_PROG_CC_C_O($1)
4341-AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4342-AC_LIBTOOL_PROG_LD_SHLIBS($1)
4343-AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4344-AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4345-AC_LIBTOOL_SYS_LIB_STRIP
4346-
4347-
4348-AC_LIBTOOL_CONFIG($1)
4349-
4350-AC_LANG_POP
4351-CC="$lt_save_CC"
4352-])# AC_LIBTOOL_LANG_F77_CONFIG
4353-
4354-
4355-# AC_LIBTOOL_LANG_GCJ_CONFIG
4356-# --------------------------
4357-# Ensure that the configuration vars for the C compiler are
4358-# suitably defined. Those variables are subsequently used by
4359-# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4360-AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
4361-AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
4362-[AC_LANG_SAVE
4363-
4364-# Source file extension for Java test sources.
4365-ac_ext=java
4366-
4367-# Object file extension for compiled Java test sources.
4368-objext=o
4369-_LT_AC_TAGVAR(objext, $1)=$objext
4370-
4371-# Code to be used in simple compile tests
4372-lt_simple_compile_test_code="class foo {}\n"
4373-
4374-# Code to be used in simple link tests
4375-lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
4376-
4377-# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4378-_LT_AC_SYS_COMPILER
4379-
4380-# Allow CC to be a program name with arguments.
4381-lt_save_CC="$CC"
4382-CC=${GCJ-"gcj"}
4383-compiler=$CC
4384-_LT_AC_TAGVAR(compiler, $1)=$CC
4385-
4386-# GCJ did not exist at the time GCC didn't implicitly link libc in.
4387-_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4388-
4389-AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
4390-AC_LIBTOOL_PROG_COMPILER_PIC($1)
4391-AC_LIBTOOL_PROG_CC_C_O($1)
4392-AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4393-AC_LIBTOOL_PROG_LD_SHLIBS($1)
4394-AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4395-AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4396-AC_LIBTOOL_SYS_LIB_STRIP
4397-AC_LIBTOOL_DLOPEN_SELF($1)
4398-
4399-AC_LIBTOOL_CONFIG($1)
4400-
4401-AC_LANG_RESTORE
4402-CC="$lt_save_CC"
4403-])# AC_LIBTOOL_LANG_GCJ_CONFIG
4404-
4405-
4406-# AC_LIBTOOL_LANG_RC_CONFIG
4407-# --------------------------
4408-# Ensure that the configuration vars for the Windows resource compiler are
4409-# suitably defined. Those variables are subsequently used by
4410-# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4411-AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
4412-AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
4413-[AC_LANG_SAVE
4414-
4415-# Source file extension for RC test sources.
4416-ac_ext=rc
4417-
4418-# Object file extension for compiled RC test sources.
4419-objext=o
4420-_LT_AC_TAGVAR(objext, $1)=$objext
4421-
4422-# Code to be used in simple compile tests
4423-lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
4424-
4425-# Code to be used in simple link tests
4426-lt_simple_link_test_code="$lt_simple_compile_test_code"
4427-
4428-# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4429-_LT_AC_SYS_COMPILER
4430-
4431-# Allow CC to be a program name with arguments.
4432-lt_save_CC="$CC"
4433-CC=${RC-"windres"}
4434-compiler=$CC
4435-_LT_AC_TAGVAR(compiler, $1)=$CC
4436-_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
4437-
4438-AC_LIBTOOL_CONFIG($1)
4439-
4440-AC_LANG_RESTORE
4441-CC="$lt_save_CC"
4442-])# AC_LIBTOOL_LANG_RC_CONFIG
4443-
4444-
4445-# AC_LIBTOOL_CONFIG([TAGNAME])
4446-# ----------------------------
4447-# If TAGNAME is not passed, then create an initial libtool script
4448-# with a default configuration from the untagged config vars. Otherwise
4449-# add code to config.status for appending the configuration named by
4450-# TAGNAME from the matching tagged config vars.
4451-AC_DEFUN([AC_LIBTOOL_CONFIG],
4452-[# The else clause should only fire when bootstrapping the
4453-# libtool distribution, otherwise you forgot to ship ltmain.sh
4454-# with your package, and you will get complaints that there are
4455-# no rules to generate ltmain.sh.
4456-if test -f "$ltmain"; then
4457- # See if we are running on zsh, and set the options which allow our commands through
4458- # without removal of \ escapes.
4459- if test -n "${ZSH_VERSION+set}" ; then
4460- setopt NO_GLOB_SUBST
4461- fi
4462- # Now quote all the things that may contain metacharacters while being
4463- # careful not to overquote the AC_SUBSTed values. We take copies of the
4464- # variables and quote the copies for generation of the libtool script.
4465- for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
4466- SED SHELL STRIP \
4467- libname_spec library_names_spec soname_spec extract_expsyms_cmds \
4468- old_striplib striplib file_magic_cmd finish_cmds finish_eval \
4469- deplibs_check_method reload_flag reload_cmds need_locks \
4470- lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
4471- lt_cv_sys_global_symbol_to_c_name_address \
4472- sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
4473- old_postinstall_cmds old_postuninstall_cmds \
4474- _LT_AC_TAGVAR(compiler, $1) \
4475- _LT_AC_TAGVAR(CC, $1) \
4476- _LT_AC_TAGVAR(LD, $1) \
4477- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
4478- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
4479- _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
4480- _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
4481- _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
4482- _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
4483- _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
4484- _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
4485- _LT_AC_TAGVAR(old_archive_cmds, $1) \
4486- _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
4487- _LT_AC_TAGVAR(predep_objects, $1) \
4488- _LT_AC_TAGVAR(postdep_objects, $1) \
4489- _LT_AC_TAGVAR(predeps, $1) \
4490- _LT_AC_TAGVAR(postdeps, $1) \
4491- _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
4492- _LT_AC_TAGVAR(archive_cmds, $1) \
4493- _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
4494- _LT_AC_TAGVAR(postinstall_cmds, $1) \
4495- _LT_AC_TAGVAR(postuninstall_cmds, $1) \
4496- _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
4497- _LT_AC_TAGVAR(allow_undefined_flag, $1) \
4498- _LT_AC_TAGVAR(no_undefined_flag, $1) \
4499- _LT_AC_TAGVAR(export_symbols_cmds, $1) \
4500- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
4501- _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
4502- _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
4503- _LT_AC_TAGVAR(hardcode_automatic, $1) \
4504- _LT_AC_TAGVAR(module_cmds, $1) \
4505- _LT_AC_TAGVAR(module_expsym_cmds, $1) \
4506- _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
4507- _LT_AC_TAGVAR(exclude_expsyms, $1) \
4508- _LT_AC_TAGVAR(include_expsyms, $1); do
4509-
4510- case $var in
4511- _LT_AC_TAGVAR(old_archive_cmds, $1) | \
4512- _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
4513- _LT_AC_TAGVAR(archive_cmds, $1) | \
4514- _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
4515- _LT_AC_TAGVAR(module_cmds, $1) | \
4516- _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
4517- _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
4518- _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
4519- extract_expsyms_cmds | reload_cmds | finish_cmds | \
4520- postinstall_cmds | postuninstall_cmds | \
4521- old_postinstall_cmds | old_postuninstall_cmds | \
4522- sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
4523- # Double-quote double-evaled strings.
4524- eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
4525- ;;
4526- *)
4527- eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
4528- ;;
4529- esac
4530- done
4531-
4532- case $lt_echo in
4533- *'\[$]0 --fallback-echo"')
4534- lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
4535- ;;
4536- esac
4537-
4538-ifelse([$1], [],
4539- [cfgfile="${ofile}T"
4540- trap "$rm \"$cfgfile\"; exit 1" 1 2 15
4541- $rm -f "$cfgfile"
4542- AC_MSG_NOTICE([creating $ofile])],
4543- [cfgfile="$ofile"])
4544-
4545- cat <<__EOF__ >> "$cfgfile"
4546-ifelse([$1], [],
4547-[#! $SHELL
4548-
4549-# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
4550-# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
4551-# NOTE: Changes made to this file will be lost: look at ltmain.sh.
4552-#
4553-# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
4554-# Free Software Foundation, Inc.
4555-#
4556-# This file is part of GNU Libtool:
4557-# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
4558-#
4559-# This program is free software; you can redistribute it and/or modify
4560-# it under the terms of the GNU General Public License as published by
4561-# the Free Software Foundation; either version 2 of the License, or
4562-# (at your option) any later version.
4563-#
4564-# This program is distributed in the hope that it will be useful, but
4565-# WITHOUT ANY WARRANTY; without even the implied warranty of
4566-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
4567-# General Public License for more details.
4568-#
4569-# You should have received a copy of the GNU General Public License
4570-# along with this program; if not, write to the Free Software
4571-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
4572-#
4573-# As a special exception to the GNU General Public License, if you
4574-# distribute this file as part of a program that contains a
4575-# configuration script generated by Autoconf, you may include it under
4576-# the same distribution terms that you use for the rest of that program.
4577-
4578-# A sed program that does not truncate output.
4579-SED=$lt_SED
4580-
4581-# Sed that helps us avoid accidentally triggering echo(1) options like -n.
4582-Xsed="$SED -e s/^X//"
4583-
4584-# The HP-UX ksh and POSIX shell print the target directory to stdout
4585-# if CDPATH is set.
4586-(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4587-
4588-# The names of the tagged configurations supported by this script.
4589-available_tags=
4590-
4591-# ### BEGIN LIBTOOL CONFIG],
4592-[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
4593-
4594-# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4595-
4596-# Shell to use when invoking shell scripts.
4597-SHELL=$lt_SHELL
4598-
4599-# Whether or not to build shared libraries.
4600-build_libtool_libs=$enable_shared
4601-
4602-# Whether or not to build static libraries.
4603-build_old_libs=$enable_static
4604-
4605-# Whether or not to add -lc for building shared libraries.
4606-build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
4607-
4608-# Whether or not to disallow shared libs when runtime libs are static
4609-allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
4610-
4611-# Whether or not to optimize for fast installation.
4612-fast_install=$enable_fast_install
4613-
4614-# The host system.
4615-host_alias=$host_alias
4616-host=$host
4617-
4618-# An echo program that does not interpret backslashes.
4619-echo=$lt_echo
4620-
4621-# The archiver.
4622-AR=$lt_AR
4623-AR_FLAGS=$lt_AR_FLAGS
4624-
4625-# A C compiler.
4626-LTCC=$lt_LTCC
4627-
4628-# A language-specific compiler.
4629-CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
4630-
4631-# Is the compiler the GNU C compiler?
4632-with_gcc=$_LT_AC_TAGVAR(GCC, $1)
4633-
4634-# An ERE matcher.
4635-EGREP=$lt_EGREP
4636-
4637-# The linker used to build libraries.
4638-LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
4639-
4640-# Whether we need hard or soft links.
4641-LN_S=$lt_LN_S
4642-
4643-# A BSD-compatible nm program.
4644-NM=$lt_NM
4645-
4646-# A symbol stripping program
4647-STRIP=$lt_STRIP
4648-
4649-# Used to examine libraries when file_magic_cmd begins "file"
4650-MAGIC_CMD=$MAGIC_CMD
4651-
4652-# Used on cygwin: DLL creation program.
4653-DLLTOOL="$DLLTOOL"
4654-
4655-# Used on cygwin: object dumper.
4656-OBJDUMP="$OBJDUMP"
4657-
4658-# Used on cygwin: assembler.
4659-AS="$AS"
4660-
4661-# The name of the directory that contains temporary libtool files.
4662-objdir=$objdir
4663-
4664-# How to create reloadable object files.
4665-reload_flag=$lt_reload_flag
4666-reload_cmds=$lt_reload_cmds
4667-
4668-# How to pass a linker flag through the compiler.
4669-wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
4670-
4671-# Object file suffix (normally "o").
4672-objext="$ac_objext"
4673-
4674-# Old archive suffix (normally "a").
4675-libext="$libext"
4676-
4677-# Shared library suffix (normally ".so").
4678-shrext_cmds='$shrext_cmds'
4679-
4680-# Executable file suffix (normally "").
4681-exeext="$exeext"
4682-
4683-# Additional compiler flags for building library objects.
4684-pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
4685-pic_mode=$pic_mode
4686-
4687-# What is the maximum length of a command?
4688-max_cmd_len=$lt_cv_sys_max_cmd_len
4689-
4690-# Does compiler simultaneously support -c and -o options?
4691-compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
4692-
4693-# Must we lock files when doing compilation ?
4694-need_locks=$lt_need_locks
4695-
4696-# Do we need the lib prefix for modules?
4697-need_lib_prefix=$need_lib_prefix
4698-
4699-# Do we need a version for libraries?
4700-need_version=$need_version
4701-
4702-# Whether dlopen is supported.
4703-dlopen_support=$enable_dlopen
4704-
4705-# Whether dlopen of programs is supported.
4706-dlopen_self=$enable_dlopen_self
4707-
4708-# Whether dlopen of statically linked programs is supported.
4709-dlopen_self_static=$enable_dlopen_self_static
4710-
4711-# Compiler flag to prevent dynamic linking.
4712-link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
4713-
4714-# Compiler flag to turn off builtin functions.
4715-no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
4716-
4717-# Compiler flag to allow reflexive dlopens.
4718-export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
4719-
4720-# Compiler flag to generate shared objects directly from archives.
4721-whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
4722-
4723-# Compiler flag to generate thread-safe objects.
4724-thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
4725-
4726-# Library versioning type.
4727-version_type=$version_type
4728-
4729-# Format of library name prefix.
4730-libname_spec=$lt_libname_spec
4731-
4732-# List of archive names. First name is the real one, the rest are links.
4733-# The last name is the one that the linker finds with -lNAME.
4734-library_names_spec=$lt_library_names_spec
4735-
4736-# The coded name of the library, if different from the real name.
4737-soname_spec=$lt_soname_spec
4738-
4739-# Commands used to build and install an old-style archive.
4740-RANLIB=$lt_RANLIB
4741-old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
4742-old_postinstall_cmds=$lt_old_postinstall_cmds
4743-old_postuninstall_cmds=$lt_old_postuninstall_cmds
4744-
4745-# Create an old-style archive from a shared archive.
4746-old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
4747-
4748-# Create a temporary old-style archive to link instead of a shared archive.
4749-old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
4750-
4751-# Commands used to build and install a shared archive.
4752-archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
4753-archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
4754-postinstall_cmds=$lt_postinstall_cmds
4755-postuninstall_cmds=$lt_postuninstall_cmds
4756-
4757-# Commands used to build a loadable module (assumed same as above if empty)
4758-module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
4759-module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
4760-
4761-# Commands to strip libraries.
4762-old_striplib=$lt_old_striplib
4763-striplib=$lt_striplib
4764-
4765-# Dependencies to place before the objects being linked to create a
4766-# shared library.
4767-predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
4768-
4769-# Dependencies to place after the objects being linked to create a
4770-# shared library.
4771-postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
4772-
4773-# Dependencies to place before the objects being linked to create a
4774-# shared library.
4775-predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
4776-
4777-# Dependencies to place after the objects being linked to create a
4778-# shared library.
4779-postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
4780-
4781-# The library search path used internally by the compiler when linking
4782-# a shared library.
4783-compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
4784-
4785-# Method to check whether dependent libraries are shared objects.
4786-deplibs_check_method=$lt_deplibs_check_method
4787-
4788-# Command to use when deplibs_check_method == file_magic.
4789-file_magic_cmd=$lt_file_magic_cmd
4790-
4791-# Flag that allows shared libraries with undefined symbols to be built.
4792-allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
4793-
4794-# Flag that forces no undefined symbols.
4795-no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
4796-
4797-# Commands used to finish a libtool library installation in a directory.
4798-finish_cmds=$lt_finish_cmds
4799-
4800-# Same as above, but a single script fragment to be evaled but not shown.
4801-finish_eval=$lt_finish_eval
4802-
4803-# Take the output of nm and produce a listing of raw symbols and C names.
4804-global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
4805-
4806-# Transform the output of nm in a proper C declaration
4807-global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
4808-
4809-# Transform the output of nm in a C name address pair
4810-global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
4811-
4812-# This is the shared library runtime path variable.
4813-runpath_var=$runpath_var
4814-
4815-# This is the shared library path variable.
4816-shlibpath_var=$shlibpath_var
4817-
4818-# Is shlibpath searched before the hard-coded library search path?
4819-shlibpath_overrides_runpath=$shlibpath_overrides_runpath
4820-
4821-# How to hardcode a shared library path into an executable.
4822-hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
4823-
4824-# Whether we should hardcode library paths into libraries.
4825-hardcode_into_libs=$hardcode_into_libs
4826-
4827-# Flag to hardcode \$libdir into a binary during linking.
4828-# This must work even if \$libdir does not exist.
4829-hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
4830-
4831-# If ld is used when linking, flag to hardcode \$libdir into
4832-# a binary during linking. This must work even if \$libdir does
4833-# not exist.
4834-hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
4835-
4836-# Whether we need a single -rpath flag with a separated argument.
4837-hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
4838-
4839-# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
4840-# resulting binary.
4841-hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
4842-
4843-# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
4844-# resulting binary.
4845-hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
4846-
4847-# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
4848-# the resulting binary.
4849-hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
4850-
4851-# Set to yes if building a shared library automatically hardcodes DIR into the library
4852-# and all subsequent libraries and executables linked against it.
4853-hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
4854-
4855-# Variables whose values should be saved in libtool wrapper scripts and
4856-# restored at relink time.
4857-variables_saved_for_relink="$variables_saved_for_relink"
4858-
4859-# Whether libtool must link a program against all its dependency libraries.
4860-link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
4861-
4862-# Compile-time system search path for libraries
4863-sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
4864-
4865-# Run-time system search path for libraries
4866-sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
4867-
4868-# Fix the shell variable \$srcfile for the compiler.
4869-fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
4870-
4871-# Set to yes if exported symbols are required.
4872-always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
4873-
4874-# The commands to list exported symbols.
4875-export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
4876-
4877-# The commands to extract the exported symbol list from a shared archive.
4878-extract_expsyms_cmds=$lt_extract_expsyms_cmds
4879-
4880-# Symbols that should not be listed in the preloaded symbols.
4881-exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
4882-
4883-# Symbols that must always be exported.
4884-include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
4885-
4886-ifelse([$1],[],
4887-[# ### END LIBTOOL CONFIG],
4888-[# ### END LIBTOOL TAG CONFIG: $tagname])
4889-
4890-__EOF__
4891-
4892-ifelse([$1],[], [
4893- case $host_os in
4894- aix3*)
4895- cat <<\EOF >> "$cfgfile"
4896-
4897-# AIX sometimes has problems with the GCC collect2 program. For some
4898-# reason, if we set the COLLECT_NAMES environment variable, the problems
4899-# vanish in a puff of smoke.
4900-if test "X${COLLECT_NAMES+set}" != Xset; then
4901- COLLECT_NAMES=
4902- export COLLECT_NAMES
4903-fi
4904-EOF
4905- ;;
4906- esac
4907-
4908- # We use sed instead of cat because bash on DJGPP gets confused if
4909- # if finds mixed CR/LF and LF-only lines. Since sed operates in
4910- # text mode, it properly converts lines to CR/LF. This bash problem
4911- # is reportedly fixed, but why not run on old versions too?
4912- sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
4913-
4914- mv -f "$cfgfile" "$ofile" || \
4915- (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
4916- chmod +x "$ofile"
4917-])
4918-else
4919- # If there is no Makefile yet, we rely on a make rule to execute
4920- # `config.status --recheck' to rerun these tests and create the
4921- # libtool script then.
4922- ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
4923- if test -f "$ltmain_in"; then
4924- test -f Makefile && make "$ltmain"
4925- fi
4926-fi
4927-])# AC_LIBTOOL_CONFIG
4928-
4929-
4930-# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
4931-# -------------------------------------------
4932-AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
4933-[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
4934-
4935-_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
4936-
4937-if test "$GCC" = yes; then
4938- _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
4939-
4940- AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
4941- lt_cv_prog_compiler_rtti_exceptions,
4942- [-fno-rtti -fno-exceptions], [],
4943- [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
4944-fi
4945-])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
4946-
4947-
4948-# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
4949-# ---------------------------------
4950-AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
4951-[AC_REQUIRE([AC_CANONICAL_HOST])
4952-AC_REQUIRE([AC_PROG_NM])
4953-AC_REQUIRE([AC_OBJEXT])
4954-# Check for command to grab the raw symbol name followed by C symbol from nm.
4955-AC_MSG_CHECKING([command to parse $NM output from $compiler object])
4956-AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
4957-[
4958-# These are sane defaults that work on at least a few old systems.
4959-# [They come from Ultrix. What could be older than Ultrix?!! ;)]
4960-
4961-# Character class describing NM global symbol codes.
4962-symcode='[[BCDEGRST]]'
4963-
4964-# Regexp to match symbols that can be accessed directly from C.
4965-sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
4966-
4967-# Transform the above into a raw symbol and a C symbol.
4968-symxfrm='\1 \2\3 \3'
4969-
4970-# Transform an extracted symbol line into a proper C declaration
4971-lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
4972-
4973-# Transform an extracted symbol line into symbol name and symbol address
4974-lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
4975-
4976-# Define system-specific variables.
4977-case $host_os in
4978-aix*)
4979- symcode='[[BCDT]]'
4980- ;;
4981-cygwin* | mingw* | pw32*)
4982- symcode='[[ABCDGISTW]]'
4983- ;;
4984-hpux*) # Its linker distinguishes data from code symbols
4985- if test "$host_cpu" = ia64; then
4986- symcode='[[ABCDEGRST]]'
4987- fi
4988- lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4989- lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
4990- ;;
4991-linux*)
4992- if test "$host_cpu" = ia64; then
4993- symcode='[[ABCDGIRSTW]]'
4994- lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4995- lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
4996- fi
4997- ;;
4998-irix* | nonstopux*)
4999- symcode='[[BCDEGRST]]'
5000- ;;
The diff has been truncated for viewing.

Subscribers

People subscribed via source and target branches

to all changes: