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

Proposed by Ted Gould
Status: Merged
Merged at revision: not available
Proposed branch: lp:~indicator-applet-developers/libindicator/ubuntu
Merge into: lp:~ubuntu-desktop/libindicator/ubuntu
Diff against target: 41023 lines (+40546/-246)
33 files modified
.bzr-builddeb/default.conf (+1/-1)
.bzrignore (+0/-154)
INSTALL (+302/-0)
Makefile.in (+739/-0)
aclocal.m4 (+9189/-0)
autogen.sh (+0/-11)
compile (+143/-0)
config.guess (+1533/-0)
config.h.in (+74/-0)
config.sub (+1693/-0)
configure (+13993/-0)
configure.ac (+2/-2)
debian/changelog (+14/-0)
depcomp (+630/-0)
helper/test-loader-build (+0/-3)
helper/test-loader.c (+0/-18)
install-sh (+520/-0)
libindicator/Makefile.am (+1/-1)
libindicator/Makefile.in (+798/-0)
libindicator/indicator-desktop-shortcuts.c (+45/-6)
libindicator/indicator-object-enum-types.c (+25/-0)
libindicator/indicator-object-marshal.c (+126/-0)
libindicator/indicator-object-marshal.h (+28/-0)
ltmain.sh (+8413/-0)
missing (+376/-0)
tests/Makefile.am (+1/-1)
tests/Makefile.in (+1328/-0)
tests/service-manager-connect.service.in (+0/-3)
tests/service-version-bad.service.in (+0/-3)
tests/service-version-good.service.in (+0/-3)
tests/session.conf.in (+0/-40)
tests/test-desktop-shortcuts.c (+1/-0)
tools/Makefile.in (+571/-0)
To merge this branch: bzr merge lp:~indicator-applet-developers/libindicator/ubuntu
Reviewer Review Type Date Requested Status
Sebastien Bacher Pending
Review via email: mp+23131@code.launchpad.net

Description of the change

0.3.8

NOTE: Changing to merge-upstream style.

To post a comment you must log in.

Preview Diff

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

Subscribers

People subscribed via source and target branches

to all changes: