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

Proposed by Ted Gould
Status: Merged
Merged at revision: 263
Proposed branch: lp:~indicator-applet-developers/indicator-applet/ubuntu-0.3
Merge into: lp:~ubuntu-desktop/indicator-applet/ubuntu
Diff against target: 17197 lines (+8466/-8242)
16 files modified
INSTALL (+80/-17)
Makefile.in (+4/-1)
aclocal.m4 (+6/-8160)
configure (+15/-11)
configure.ac (+1/-1)
data/Makefile.in (+4/-1)
debian/changelog (+9/-0)
m4/intltool.m4 (+216/-0)
m4/libtool.m4 (+7377/-0)
m4/ltoptions.m4 (+368/-0)
m4/ltsugar.m4 (+123/-0)
m4/ltversion.m4 (+23/-0)
m4/lt~obsolete.m4 (+92/-0)
src/Makefile.in (+4/-1)
src/applet-main.c (+138/-47)
src/tomboykeybinder.c (+6/-3)
To merge this branch: bzr merge lp:~indicator-applet-developers/indicator-applet/ubuntu-0.3
Reviewer Review Type Date Requested Status
Sebastien Bacher Pending
Review via email: mp+24695@code.launchpad.net

Description of the change

Release 0.3.7

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

Subscribers

People subscribed via source and target branches