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

Proposed by Ted Gould
Status: Merged
Merged at revision: not available
Proposed branch: lp:~dbusmenu-team/libdbusmenu/ubuntu
Merge into: lp:~ubuntu-desktop/libdbusmenu/ubuntu
Diff against target: 46389 lines (+45822/-375)
32 files modified
.bzr-builddeb/default.conf (+1/-1)
.bzrignore (+0/-71)
Makefile.in (+776/-0)
aclocal.m4 (+9943/-0)
autogen.sh (+0/-12)
compile (+143/-0)
config.guess (+1533/-0)
config.h.in (+83/-0)
config.sub (+1693/-0)
configure (+15708/-0)
configure.ac (+3/-3)
debian/changelog (+15/-1)
depcomp (+630/-0)
install-sh (+520/-0)
libdbusmenu-glib/Doxyfile (+0/-257)
libdbusmenu-glib/Makefile.in (+895/-0)
libdbusmenu-glib/dbus-menu.xml (+1/-1)
libdbusmenu-glib/dbusmenu-client.h (+292/-0)
libdbusmenu-glib/dbusmenu-server.h (+385/-0)
libdbusmenu-glib/menuitem-marshal.c (+168/-0)
libdbusmenu-glib/menuitem-marshal.h (+45/-0)
libdbusmenu-glib/server-marshal.c (+125/-0)
libdbusmenu-glib/server-marshal.h (+28/-0)
libdbusmenu-gtk/Makefile.in (+820/-0)
ltmain.sh (+8413/-0)
missing (+376/-0)
mkinstalldirs (+162/-0)
po/Makefile.in.in (+217/-0)
tests/Makefile.in (+1402/-0)
tools/Makefile.in (+841/-0)
tools/testapp/CMakeLists.txt (+0/-29)
tools/testapp/Makefile.in (+604/-0)
To merge this branch: bzr merge lp:~dbusmenu-team/libdbusmenu/ubuntu
Reviewer Review Type Date Requested Status
Sebastien Bacher Pending
Review via email: mp+22624@code.launchpad.net

Description of the change

0.2.9

NOTE: This switching to merge-upstream style. Large diff.

To post a comment you must log in.
lp:~dbusmenu-team/libdbusmenu/ubuntu updated
72. By Sebastien Bacher

releasing version 0.2.9-0ubuntu1

Preview Diff

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

Subscribers

People subscribed via source and target branches

to all changes: