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

Proposed by Ted Gould
Status: Merged
Merged at revision: 133
Proposed branch: lp:~dbusmenu-team/libdbusmenu/ubuntu
Merge into: lp:~ubuntu-desktop/libdbusmenu/ubuntu
Diff against target: 29433 lines (+20089/-8444)
89 files modified
ChangeLog (+148/-0)
Makefile.in (+1/-6)
aclocal.m4 (+8374/-9)
configure (+21/-25)
configure.ac (+3/-3)
debian/changelog (+17/-0)
docs/Makefile.in (+1/-6)
docs/libdbusmenu-glib/Makefile.in (+1/-6)
docs/libdbusmenu-glib/reference/Makefile.in (+1/-6)
docs/libdbusmenu-glib/reference/html/annotation-glossary.html (+77/-0)
docs/libdbusmenu-glib/reference/html/api-index-deprecated.html (+31/-0)
docs/libdbusmenu-glib/reference/html/api-index-full.html (+545/-0)
docs/libdbusmenu-glib/reference/html/ch01.html (+50/-0)
docs/libdbusmenu-glib/reference/html/index.html (+49/-0)
docs/libdbusmenu-glib/reference/html/index.sgml (+163/-0)
docs/libdbusmenu-glib/reference/html/libdbusmenu-glib-DbusmenuClient.html (+597/-0)
docs/libdbusmenu-glib/reference/html/libdbusmenu-glib-DbusmenuMenuitem.html (+1696/-0)
docs/libdbusmenu-glib/reference/html/libdbusmenu-glib-DbusmenuMenuitemProxy.html (+166/-0)
docs/libdbusmenu-glib/reference/html/libdbusmenu-glib-DbusmenuServer.html (+412/-0)
docs/libdbusmenu-glib/reference/html/libdbusmenu-glib-Types.html (+274/-0)
docs/libdbusmenu-glib/reference/html/libdbusmenu-glib.devhelp (+144/-0)
docs/libdbusmenu-glib/reference/html/libdbusmenu-glib.devhelp2 (+149/-0)
docs/libdbusmenu-glib/reference/html/object-tree.html (+32/-0)
docs/libdbusmenu-glib/reference/html/style.css (+266/-0)
docs/libdbusmenu-glib/reference/tmpl/client.sgml (+221/-0)
docs/libdbusmenu-glib/reference/tmpl/menuitem-proxy.sgml (+59/-0)
docs/libdbusmenu-glib/reference/tmpl/menuitem.sgml (+635/-0)
docs/libdbusmenu-glib/reference/tmpl/server.sgml (+171/-0)
docs/libdbusmenu-glib/reference/tmpl/types.sgml (+109/-0)
docs/libdbusmenu-glib/reference/version.xml (+1/-1)
docs/libdbusmenu-glib/reference/xml/annotation-glossary.xml (+72/-0)
docs/libdbusmenu-glib/reference/xml/api-index-deprecated.xml (+8/-0)
docs/libdbusmenu-glib/reference/xml/api-index-full.xml (+141/-0)
docs/libdbusmenu-glib/reference/xml/client.xml (+439/-0)
docs/libdbusmenu-glib/reference/xml/menuitem-proxy.xml (+114/-0)
docs/libdbusmenu-glib/reference/xml/menuitem.xml (+1174/-0)
docs/libdbusmenu-glib/reference/xml/server.xml (+309/-0)
docs/libdbusmenu-glib/reference/xml/types.xml (+190/-0)
docs/libdbusmenu-gtk/Makefile.in (+1/-6)
docs/libdbusmenu-gtk/reference/Makefile.in (+1/-6)
docs/libdbusmenu-gtk/reference/html/annotation-glossary.html (+47/-0)
docs/libdbusmenu-gtk/reference/html/api-index-deprecated.html (+31/-0)
docs/libdbusmenu-gtk/reference/html/api-index-full.html (+139/-0)
docs/libdbusmenu-gtk/reference/html/ch01.html (+47/-0)
docs/libdbusmenu-gtk/reference/html/index.html (+47/-0)
docs/libdbusmenu-gtk/reference/html/index.sgml (+53/-0)
docs/libdbusmenu-gtk/reference/html/libdbusmenu-gtk-DbusmenuGtkClient.html (+347/-0)
docs/libdbusmenu-gtk/reference/html/libdbusmenu-gtk-DbusmenuGtkMenu.html (+187/-0)
docs/libdbusmenu-gtk/reference/html/libdbusmenu-gtk-menuitem.html (+274/-0)
docs/libdbusmenu-gtk/reference/html/libdbusmenu-gtk-parser.html (+118/-0)
docs/libdbusmenu-gtk/reference/html/libdbusmenu-gtk.devhelp (+44/-0)
docs/libdbusmenu-gtk/reference/html/libdbusmenu-gtk.devhelp2 (+44/-0)
docs/libdbusmenu-gtk/reference/html/object-tree.html (+32/-0)
docs/libdbusmenu-gtk/reference/html/style.css (+266/-0)
docs/libdbusmenu-gtk/reference/libdbusmenu-gtk-sections.txt (+1/-0)
docs/libdbusmenu-gtk/reference/tmpl/client.sgml (+108/-0)
docs/libdbusmenu-gtk/reference/tmpl/menu.sgml (+54/-0)
docs/libdbusmenu-gtk/reference/tmpl/menuitem.sgml (+84/-0)
docs/libdbusmenu-gtk/reference/tmpl/parser.sgml (+40/-0)
docs/libdbusmenu-gtk/reference/tmpl/serializablemenuitem.sgml (+72/-0)
docs/libdbusmenu-gtk/reference/version.xml (+1/-1)
docs/libdbusmenu-gtk/reference/xml/annotation-glossary.xml (+32/-0)
docs/libdbusmenu-gtk/reference/xml/api-index-deprecated.xml (+8/-0)
docs/libdbusmenu-gtk/reference/xml/api-index-full.xml (+37/-0)
docs/libdbusmenu-gtk/reference/xml/client.xml (+238/-0)
docs/libdbusmenu-gtk/reference/xml/menu.xml (+133/-0)
docs/libdbusmenu-gtk/reference/xml/menuitem.xml (+178/-0)
docs/libdbusmenu-gtk/reference/xml/parser.xml (+77/-0)
docs/libdbusmenu-gtk/reference/xml/serializablemenuitem.xml (+176/-0)
libdbusmenu-glib/Makefile.in (+1/-6)
libdbusmenu-glib/client.c (+36/-5)
libdbusmenu-glib/server.c (+3/-3)
libdbusmenu-gtk/Makefile.in (+1/-6)
libdbusmenu-gtk/client.c (+176/-0)
libdbusmenu-gtk/menuitem.c (+1/-6)
libdbusmenu-gtk/parser.c (+71/-5)
libdbusmenu-gtk/parser.h (+1/-0)
m4/gnome-doc-utils.m4 (+0/-56)
m4/gtk-doc.m4 (+0/-61)
m4/intltool.m4 (+0/-216)
m4/libtool.m4 (+0/-7377)
m4/ltoptions.m4 (+0/-368)
m4/ltsugar.m4 (+0/-123)
m4/ltversion.m4 (+0/-23)
m4/lt~obsolete.m4 (+0/-92)
tests/Makefile.am (+8/-2)
tests/Makefile.in (+11/-8)
tools/Makefile.in (+1/-6)
tools/testapp/Makefile.in (+1/-6)
To merge this branch: bzr merge lp:~dbusmenu-team/libdbusmenu/ubuntu
Reviewer Review Type Date Requested Status
Ken VanDine Pending
Review via email: mp+52886@code.launchpad.net

Description of the change

0.3.101

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

releasing version 0.3.101-0ubuntu1

Preview Diff

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

Subscribers

People subscribed via source and target branches

to all changes: