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

Proposed by Ted Gould
Status: Merged
Merged at revision: 213
Proposed branch: lp:~indicator-applet-developers/ubuntu/precise/indicator-messages/upstream
Merge into: lp:~ubuntu-desktop/indicator-messages/ubuntu
Diff against target: 21812 lines (+10096/-9512)
44 files modified
AUTHORS (+1/-0)
ChangeLog (+79/-0)
Makefile.in (+65/-40)
aclocal.m4 (+8898/-35)
compile (+183/-16)
configure (+86/-32)
configure.ac (+1/-1)
data/Makefile.in (+30/-18)
data/icons/16x16/Makefile.in (+23/-15)
data/icons/16x16/categories/Makefile.in (+30/-18)
data/icons/16x16/status/Makefile.in (+30/-18)
data/icons/22x22/Makefile.in (+23/-15)
data/icons/22x22/categories/Makefile.in (+30/-18)
data/icons/22x22/status/Makefile.in (+30/-18)
data/icons/24x24/Makefile.in (+23/-15)
data/icons/24x24/status/Makefile.in (+30/-18)
data/icons/32x32/Makefile.in (+23/-15)
data/icons/32x32/categories/Makefile.in (+30/-18)
data/icons/32x32/status/Makefile.in (+30/-18)
data/icons/48x48/Makefile.in (+23/-15)
data/icons/48x48/status/Makefile.in (+30/-18)
data/icons/Makefile.in (+23/-15)
data/icons/scalable/Makefile.in (+23/-15)
data/icons/scalable/categories/Makefile.in (+30/-18)
data/icons/scalable/status/Makefile.in (+30/-18)
debian/changelog (+10/-0)
debian/compat (+1/-0)
debian/rules (+3/-0)
debian/source/format (+0/-1)
depcomp (+66/-8)
install-sh (+18/-11)
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)
missing (+4/-49)
po/Makefile.in.in (+9/-4)
src/Makefile.am (+1/-1)
src/Makefile.in (+107/-128)
src/dbus-data.h (+5/-4)
src/im-menu-item.c (+6/-0)
src/indicator-messages.c (+62/-34)
To merge this branch: bzr merge lp:~indicator-applet-developers/ubuntu/precise/indicator-messages/upstream
Reviewer Review Type Date Requested Status
Sebastien Bacher Pending
Review via email: mp+93083@code.launchpad.net

Description of the change

0.4.91

To post a comment you must log in.
Revision history for this message
Ted Gould (ted) wrote :

Oops, 0.5.91 :-)

Revision history for this message
Charles Kerr (charlesk) wrote :

launchpad won't show the entire diff -- why are Makefile.in and aclocal.m4 under version control? :)

Revision history for this message
Charles Kerr (charlesk) wrote :

Ah, nvm, all clear

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

Subscribers

People subscribed via source and target branches