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

Proposed by Ted Gould
Status: Merged
Merged at revision: 87
Proposed branch: lp:~dbusmenu-team/libdbusmenu/ubuntu
Merge into: lp:~ubuntu-desktop/libdbusmenu/ubuntu
Diff against target: 20898 lines (+9332/-9402)
65 files modified
Makefile.in (+1/-8)
aclocal.m4 (+8403/-38)
config.guess (+90/-59)
config.sub (+13/-34)
configure (+118/-129)
configure.ac (+3/-3)
debian/changelog (+38/-0)
debian/control (+4/-4)
docs/Makefile.in (+1/-8)
docs/libdbusmenu-glib/Makefile.in (+1/-8)
docs/libdbusmenu-glib/reference/Makefile.in (+1/-8)
docs/libdbusmenu-glib/reference/html/annotation-glossary.html (+2/-2)
docs/libdbusmenu-glib/reference/html/api-index-full.html (+2/-2)
docs/libdbusmenu-glib/reference/html/ch01.html (+3/-3)
docs/libdbusmenu-glib/reference/html/index.html (+2/-2)
docs/libdbusmenu-glib/reference/html/libdbusmenu-glib-DbusmenuClient.html (+2/-2)
docs/libdbusmenu-glib/reference/html/libdbusmenu-glib-DbusmenuClientMenuitem.html (+2/-2)
docs/libdbusmenu-glib/reference/html/libdbusmenu-glib-DbusmenuMenuitem.html (+7/-12)
docs/libdbusmenu-glib/reference/html/libdbusmenu-glib-DbusmenuMenuitemProxy.html (+2/-2)
docs/libdbusmenu-glib/reference/html/libdbusmenu-glib-DbusmenuServer.html (+8/-8)
docs/libdbusmenu-glib/reference/html/object-tree.html (+2/-2)
docs/libdbusmenu-glib/reference/html/style.css (+0/-8)
docs/libdbusmenu-glib/reference/tmpl/server.sgml (+1/-1)
docs/libdbusmenu-glib/reference/version.xml (+1/-1)
docs/libdbusmenu-glib/reference/xml/menuitem.xml (+5/-5)
docs/libdbusmenu-glib/reference/xml/server.xml (+5/-5)
docs/libdbusmenu-gtk/Makefile.in (+1/-8)
docs/libdbusmenu-gtk/reference/Makefile.in (+1/-8)
docs/libdbusmenu-gtk/reference/html/Genericmenuitem.html (+14/-14)
docs/libdbusmenu-gtk/reference/html/api-index-full.html (+72/-81)
docs/libdbusmenu-gtk/reference/html/ch01.html (+3/-3)
docs/libdbusmenu-gtk/reference/html/index.html (+2/-2)
docs/libdbusmenu-gtk/reference/html/index.sgml (+0/-6)
docs/libdbusmenu-gtk/reference/html/libdbusmenu-gtk-DbusmenuGtkClient.html (+18/-70)
docs/libdbusmenu-gtk/reference/html/libdbusmenu-gtk-DbusmenuGtkMenu.html (+2/-2)
docs/libdbusmenu-gtk/reference/html/libdbusmenu-gtk-menuitem.html (+7/-154)
docs/libdbusmenu-gtk/reference/html/libdbusmenu-gtk.devhelp (+0/-6)
docs/libdbusmenu-gtk/reference/html/libdbusmenu-gtk.devhelp2 (+0/-6)
docs/libdbusmenu-gtk/reference/html/object-tree.html (+9/-9)
docs/libdbusmenu-gtk/reference/html/style.css (+0/-8)
docs/libdbusmenu-gtk/reference/libdbusmenu-gtk-sections.txt (+6/-12)
docs/libdbusmenu-gtk/reference/tmpl/client.sgml (+0/-20)
docs/libdbusmenu-gtk/reference/tmpl/genericmenuitem.sgml (+0/-2)
docs/libdbusmenu-gtk/reference/tmpl/menu.sgml (+0/-2)
docs/libdbusmenu-gtk/reference/tmpl/menuitem.sgml (+0/-43)
docs/libdbusmenu-gtk/reference/version.xml (+1/-1)
docs/libdbusmenu-gtk/reference/xml/api-index-full.xml (+26/-22)
docs/libdbusmenu-gtk/reference/xml/client.xml (+0/-33)
docs/libdbusmenu-gtk/reference/xml/menuitem.xml (+0/-98)
libdbusmenu-glib/Makefile.in (+1/-8)
libdbusmenu-glib/client.c (+367/-54)
libdbusmenu-glib/menuitem-marshal.c (+0/-2)
libdbusmenu-glib/server.c (+81/-24)
libdbusmenu-gtk/Makefile.in (+1/-8)
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.in (+1/-8)
tools/Makefile.in (+1/-8)
tools/testapp/Makefile.in (+1/-8)
To merge this branch: bzr merge lp:~dbusmenu-team/libdbusmenu/ubuntu
Reviewer Review Type Date Requested Status
Sebastien Bacher Pending
Review via email: mp+31595@code.launchpad.net

Description of the change

Upstream release 0.3.9

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

releasing version 0.3.9-0ubuntu1

Preview Diff

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

Subscribers

People subscribed via source and target branches

to all changes: