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