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

Proposed by Ted Gould
Status: Merged
Merged at revision: 289
Proposed branch: lp:~indicator-applet-developers/ubuntu/precise/indicator-application/upstream
Merge into: lp:~ubuntu-desktop/indicator-application/ubuntu
Diff against target: 9907 lines (+8810/-410)
17 files modified
ChangeLog (+16/-0)
INSTALL (+2/-7)
Makefile.in (+2/-5)
aclocal.m4 (+8606/-5)
compile (+16/-183)
config.guess (+18/-31)
config.sub (+26/-39)
configure (+10/-14)
configure.ac (+2/-2)
data/Makefile.in (+2/-5)
debian/changelog (+15/-0)
depcomp (+8/-66)
install-sh (+11/-18)
missing (+49/-4)
src/Makefile.in (+2/-5)
src/indicator-application.c (+23/-21)
tests/Makefile.in (+2/-5)
To merge this branch: bzr merge lp:~indicator-applet-developers/ubuntu/precise/indicator-application/upstream
Reviewer Review Type Date Requested Status
Ken VanDine Pending
Review via email: mp+98745@code.launchpad.net

Description of the change

New version!

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

Subscribers

People subscribed via source and target branches