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