Merge lp:~indicator-applet-developers/ubuntu/precise/indicator-applet/upstream into lp:~ubuntu-desktop/indicator-applet/ubuntu

Proposed by Ted Gould
Status: Merged
Merged at revision: 290
Proposed branch: lp:~indicator-applet-developers/ubuntu/precise/indicator-applet/upstream
Merge into: lp:~ubuntu-desktop/indicator-applet/ubuntu
Diff against target: 19136 lines (+9232/-9086)
16 files modified
AUTHORS (+1/-0)
ChangeLog (+24/-0)
Makefile.in (+65/-39)
aclocal.m4 (+8898/-35)
configure (+112/-31)
configure.ac (+1/-1)
data/Makefile.in (+32/-24)
debian/changelog (+8/-0)
m4/intltool.m4 (+0/-216)
m4/libtool.m4 (+0/-8001)
m4/ltoptions.m4 (+0/-384)
m4/ltsugar.m4 (+0/-123)
m4/ltversion.m4 (+0/-23)
m4/lt~obsolete.m4 (+0/-98)
src/Makefile.in (+87/-106)
src/applet-main.c (+4/-5)
To merge this branch: bzr merge lp:~indicator-applet-developers/ubuntu/precise/indicator-applet/upstream
Reviewer Review Type Date Requested Status
Ken VanDine Approve
Review via email: mp+94317@code.launchpad.net

Description of the change

0.4.91

To post a comment you must log in.
Revision history for this message
Ken VanDine (ken-vandine) :
review: Approve

Preview Diff

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

Subscribers

People subscribed via source and target branches