Merge lp:~dbusmenu-team/libdbusmenu/ubuntu into lp:~ubuntu-desktop/libdbusmenu/ubuntu

Proposed by Ted Gould
Status: Merged
Merged at revision: 100
Proposed branch: lp:~dbusmenu-team/libdbusmenu/ubuntu
Merge into: lp:~ubuntu-desktop/libdbusmenu/ubuntu
Diff against target: 20980 lines (+10839/-8572)
91 files modified
AUTHORS (+1/-0)
ChangeLog (+80/-0)
Makefile.am (+5/-0)
Makefile.in (+3/-0)
aclocal.m4 (+9/-8374)
config.h.in (+3/-0)
configure (+228/-55)
configure.ac (+42/-12)
debian/changelog (+13/-0)
debian/control (+15/-12)
debian/rules (+1/-0)
docs/Makefile.in (+6/-1)
docs/libdbusmenu-glib/Makefile.in (+6/-1)
docs/libdbusmenu-glib/reference/Makefile.in (+6/-1)
docs/libdbusmenu-glib/reference/html/annotation-glossary.html (+62/-0)
docs/libdbusmenu-glib/reference/html/api-index-full.html (+414/-0)
docs/libdbusmenu-glib/reference/html/ch01.html (+48/-0)
docs/libdbusmenu-glib/reference/html/index.html (+46/-0)
docs/libdbusmenu-glib/reference/html/index.sgml (+121/-0)
docs/libdbusmenu-glib/reference/html/libdbusmenu-glib-DbusmenuClient.html (+508/-0)
docs/libdbusmenu-glib/reference/html/libdbusmenu-glib-DbusmenuMenuitem.html (+1504/-0)
docs/libdbusmenu-glib/reference/html/libdbusmenu-glib-DbusmenuMenuitemProxy.html (+168/-0)
docs/libdbusmenu-glib/reference/html/libdbusmenu-glib-DbusmenuServer.html (+299/-0)
docs/libdbusmenu-glib/reference/html/libdbusmenu-glib.devhelp (+111/-0)
docs/libdbusmenu-glib/reference/html/libdbusmenu-glib.devhelp2 (+111/-0)
docs/libdbusmenu-glib/reference/html/object-tree.html (+32/-0)
docs/libdbusmenu-glib/reference/html/style.css (+265/-0)
docs/libdbusmenu-glib/reference/tmpl/client-menuitem.sgml (+55/-0)
docs/libdbusmenu-glib/reference/tmpl/client.sgml (+170/-0)
docs/libdbusmenu-glib/reference/tmpl/menuitem-proxy.sgml (+61/-0)
docs/libdbusmenu-glib/reference/tmpl/menuitem.sgml (+540/-0)
docs/libdbusmenu-glib/reference/tmpl/server.sgml (+116/-0)
docs/libdbusmenu-glib/reference/version.xml (+1/-1)
docs/libdbusmenu-glib/reference/xml/annotation-glossary.xml (+54/-0)
docs/libdbusmenu-glib/reference/xml/api-index-deprecated.xml (+8/-0)
docs/libdbusmenu-glib/reference/xml/api-index-full.xml (+107/-0)
docs/libdbusmenu-glib/reference/xml/client-menuitem.xml (+82/-0)
docs/libdbusmenu-glib/reference/xml/client.xml (+380/-0)
docs/libdbusmenu-glib/reference/xml/menuitem-proxy.xml (+118/-0)
docs/libdbusmenu-glib/reference/xml/menuitem.xml (+1060/-0)
docs/libdbusmenu-glib/reference/xml/server.xml (+230/-0)
docs/libdbusmenu-gtk/Makefile.in (+6/-1)
docs/libdbusmenu-gtk/reference/Makefile.in (+6/-1)
docs/libdbusmenu-gtk/reference/html/Genericmenuitem.html (+360/-0)
docs/libdbusmenu-gtk/reference/html/api-index-full.html (+189/-0)
docs/libdbusmenu-gtk/reference/html/ch01.html (+44/-0)
docs/libdbusmenu-gtk/reference/html/index.html (+42/-0)
docs/libdbusmenu-gtk/reference/html/index.sgml (+55/-0)
docs/libdbusmenu-gtk/reference/html/libdbusmenu-gtk-DbusmenuGtkClient.html (+345/-0)
docs/libdbusmenu-gtk/reference/html/libdbusmenu-gtk-DbusmenuGtkMenu.html (+186/-0)
docs/libdbusmenu-gtk/reference/html/libdbusmenu-gtk-menuitem.html (+280/-0)
docs/libdbusmenu-gtk/reference/html/libdbusmenu-gtk.devhelp (+53/-0)
docs/libdbusmenu-gtk/reference/html/libdbusmenu-gtk.devhelp2 (+53/-0)
docs/libdbusmenu-gtk/reference/html/object-tree.html (+42/-0)
docs/libdbusmenu-gtk/reference/html/style.css (+265/-0)
docs/libdbusmenu-gtk/reference/libdbusmenu-gtk-sections.txt (+70/-0)
docs/libdbusmenu-gtk/reference/libdbusmenu-gtk.types (+3/-0)
docs/libdbusmenu-gtk/reference/tmpl/client.sgml (+117/-0)
docs/libdbusmenu-gtk/reference/tmpl/genericmenuitem.sgml (+153/-0)
docs/libdbusmenu-gtk/reference/tmpl/menu.sgml (+69/-0)
docs/libdbusmenu-gtk/reference/tmpl/menuitem.sgml (+86/-0)
docs/libdbusmenu-gtk/reference/version.xml (+1/-1)
docs/libdbusmenu-gtk/reference/xml/api-index-deprecated.xml (+8/-0)
docs/libdbusmenu-gtk/reference/xml/api-index-full.xml (+51/-0)
docs/libdbusmenu-gtk/reference/xml/client.xml (+241/-0)
docs/libdbusmenu-gtk/reference/xml/genericmenuitem.xml (+256/-0)
docs/libdbusmenu-gtk/reference/xml/menu.xml (+132/-0)
docs/libdbusmenu-gtk/reference/xml/menuitem.xml (+187/-0)
libdbusmenu-glib/Makefile.in (+6/-1)
libdbusmenu-glib/client.c (+18/-5)
libdbusmenu-glib/client.h (+14/-3)
libdbusmenu-glib/menuitem-proxy.c (+3/-3)
libdbusmenu-glib/menuitem-proxy.h (+16/-2)
libdbusmenu-glib/menuitem.c (+3/-3)
libdbusmenu-glib/menuitem.h (+20/-4)
libdbusmenu-glib/server.c (+3/-4)
libdbusmenu-glib/server.h (+19/-7)
libdbusmenu-gtk/Makefile.am (+44/-17)
libdbusmenu-gtk/Makefile.in (+143/-35)
libdbusmenu-gtk/client.c (+9/-3)
libdbusmenu-gtk/client.h (+10/-1)
libdbusmenu-gtk/dbusmenu-gtk3.pc.in (+14/-0)
libdbusmenu-gtk/genericmenuitem.c (+28/-12)
libdbusmenu-gtk/menu.c (+5/-5)
libdbusmenu-gtk/menu.h (+10/-1)
libdbusmenu-gtk/menuitem.c (+1/-1)
m4/gtk-doc.m4 (+61/-0)
tests/Makefile.in (+6/-1)
tools/Makefile.in (+6/-1)
tools/testapp/Makefile.am (+7/-1)
tools/testapp/Makefile.in (+4/-2)
To merge this branch: bzr merge lp:~dbusmenu-team/libdbusmenu/ubuntu
Reviewer Review Type Date Requested Status
Ken VanDine Pending
Review via email: mp+40654@code.launchpad.net

Description of the change

Release 0.3.90

To post a comment you must log in.
lp:~dbusmenu-team/libdbusmenu/ubuntu updated
100. By Ken VanDine

* New upstream release.
  * Breaking ABI and getting reserved back
  * Adding build support for GTK2/3 builds
  * Only force a flush of top level items, allow others to be
    based on the count.
* debian/control, debian/libdbusmenu-glib2.install,
  debian/libdbusmenu-gtk2.install: Switching package names to
  match .so bump.

Preview Diff

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

Subscribers

People subscribed via source and target branches

to all changes: