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

Proposed by Ted Gould
Status: Merged
Merged at revision: 99
Proposed branch: lp:~dbusmenu-team/libdbusmenu/ubuntu
Merge into: lp:~ubuntu-desktop/libdbusmenu/ubuntu
Diff against target: 17347 lines (+8453/-8432)
31 files modified
ChangeLog (+12/-0)
Makefile.in (+1/-6)
aclocal.m4 (+8374/-9)
configure (+21/-25)
configure.ac (+3/-3)
debian/changelog (+15/-0)
debian/control (+5/-2)
debian/rules (+2/-1)
docs/Makefile.in (+1/-6)
docs/libdbusmenu-glib/Makefile.in (+1/-6)
docs/libdbusmenu-glib/reference/Makefile.in (+1/-6)
docs/libdbusmenu-glib/reference/version.xml (+1/-1)
docs/libdbusmenu-gtk/Makefile.in (+1/-6)
docs/libdbusmenu-gtk/reference/Makefile.in (+1/-6)
docs/libdbusmenu-gtk/reference/version.xml (+1/-1)
libdbusmenu-glib/Makefile.in (+1/-6)
libdbusmenu-glib/client-menuitem.c (+3/-3)
libdbusmenu-glib/menuitem.c (+3/-3)
libdbusmenu-glib/menuitem.h (+2/-2)
libdbusmenu-gtk/Makefile.in (+1/-6)
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/-6)
tools/Makefile.in (+1/-6)
tools/testapp/Makefile.in (+1/-6)
To merge this branch: bzr merge lp:~dbusmenu-team/libdbusmenu/ubuntu
Reviewer Review Type Date Requested Status
Didier Roche-Tolomelli Pending
Review via email: mp+36318@code.launchpad.net

Description of the change

0.3.16

To post a comment you must log in.
lp:~dbusmenu-team/libdbusmenu/ubuntu updated
99. By Didier Roche-Tolomelli

* New upstream release:
  * Don't use a typedef in the signal handler in the class to
    avoid confusing vapigen.

Preview Diff

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

Subscribers

People subscribed via source and target branches

to all changes: