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