• R/O
  • SSH
  • HTTPS

qrobosdk: コミット


コミットメタ情報

リビジョン1766 (tree)
日時2010-04-11 16:01:11
作者satofumi

ログメッセージ

fixed compile error

変更サマリ

差分

--- trunk/libs/system/c/Makefile (revision 1765)
+++ trunk/libs/system/c/Makefile (revision 1766)
@@ -28,7 +28,7 @@
2828 $(C_SYSTEM_LIB)(delay.o) \
2929 $(C_SYSTEM_LIB)(ticks.o) \
3030 $(C_SYSTEM_LIB)(urg_delay.o) \
31- $(C_SYSTEM_LIB)(urg_ticks.o)
31+ $(C_SYSTEM_LIB)(urg_ticks.o) \
3232
3333 # DO NOT DELETE
3434
--- trunk/libs/range_sensor/samples/urgsScan.cpp (revision 1765)
+++ trunk/libs/range_sensor/samples/urgsScan.cpp (revision 1766)
@@ -11,6 +11,7 @@
1111 #include "Thread.h"
1212 #include "delay.h"
1313 #include <cstdlib>
14+#include <cstdio>
1415
1516 using namespace qrk;
1617 using namespace std;
--- trunk/libs/range_sensor/simple_samples/urgsScan.cpp (revision 1765)
+++ trunk/libs/range_sensor/simple_samples/urgsScan.cpp (revision 1766)
@@ -11,6 +11,7 @@
1111 #include "Thread.h"
1212 #include "delay.h"
1313 #include <cstdlib>
14+#include <cstdio>
1415
1516 using namespace qrk;
1617 using namespace std;
--- trunk/libs/packages/urg/config.h.in (revision 1765)
+++ trunk/libs/packages/urg/config.h.in (revision 1766)
@@ -150,6 +150,9 @@
150150 /* Define to the one symbol short name of this package. */
151151 #undef PACKAGE_TARNAME
152152
153+/* Define to the home page for this package. */
154+#undef PACKAGE_URL
155+
153156 /* Define to the version of this package. */
154157 #undef PACKAGE_VERSION
155158
--- trunk/libs/packages/urg/aclocal.m4 (revision 1765)
+++ trunk/libs/packages/urg/aclocal.m4 (revision 1766)
@@ -1,7 +1,7 @@
1-# generated automatically by aclocal 1.10 -*- Autoconf -*-
1+# generated automatically by aclocal 1.11 -*- Autoconf -*-
22
33 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4-# 2005, 2006 Free Software Foundation, Inc.
4+# 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
55 # This file is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
77 # with or without modifications, as long as this notice is preserved.
@@ -11,7957 +11,14 @@
1111 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
1212 # PARTICULAR PURPOSE.
1313
14-m4_if(m4_PACKAGE_VERSION, [2.61],,
15-[m4_fatal([this file was generated for autoconf 2.61.
16-You have another version of autoconf. If you want to use that,
17-you should regenerate the build system entirely.], [63])])
14+m4_ifndef([AC_AUTOCONF_VERSION],
15+ [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
16+m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.64],,
17+[m4_warning([this file was generated for autoconf 2.64.
18+You have another version of autoconf. It may work, but is not guaranteed to.
19+If you have problems, you may need to regenerate the build system entirely.
20+To do so, use the procedure documented by the package, typically `autoreconf'.])])
1821
19-# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
20-#
21-# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
22-# 2006, 2007, 2008 Free Software Foundation, Inc.
23-# Written by Gordon Matzigkeit, 1996
24-#
25-# This file is free software; the Free Software Foundation gives
26-# unlimited permission to copy and/or distribute it, with or without
27-# modifications, as long as this notice is preserved.
28-
29-m4_define([_LT_COPYING], [dnl
30-# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
31-# 2006, 2007, 2008 Free Software Foundation, Inc.
32-# Written by Gordon Matzigkeit, 1996
33-#
34-# This file is part of GNU Libtool.
35-#
36-# GNU Libtool is free software; you can redistribute it and/or
37-# modify it under the terms of the GNU General Public License as
38-# published by the Free Software Foundation; either version 2 of
39-# the License, or (at your option) any later version.
40-#
41-# As a special exception to the GNU General Public License,
42-# if you distribute this file as part of a program or library that
43-# is built using GNU Libtool, you may include this file under the
44-# same distribution terms that you use for the rest of that program.
45-#
46-# GNU Libtool is distributed in the hope that it will be useful,
47-# but WITHOUT ANY WARRANTY; without even the implied warranty of
48-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
49-# GNU General Public License for more details.
50-#
51-# You should have received a copy of the GNU General Public License
52-# along with GNU Libtool; see the file COPYING. If not, a copy
53-# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
54-# obtained by writing to the Free Software Foundation, Inc.,
55-# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
56-])
57-
58-# serial 56 LT_INIT
59-
60-
61-# LT_PREREQ(VERSION)
62-# ------------------
63-# Complain and exit if this libtool version is less that VERSION.
64-m4_defun([LT_PREREQ],
65-[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
66- [m4_default([$3],
67- [m4_fatal([Libtool version $1 or higher is required],
68- 63)])],
69- [$2])])
70-
71-
72-# _LT_CHECK_BUILDDIR
73-# ------------------
74-# Complain if the absolute build directory name contains unusual characters
75-m4_defun([_LT_CHECK_BUILDDIR],
76-[case `pwd` in
77- *\ * | *\ *)
78- AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
79-esac
80-])
81-
82-
83-# LT_INIT([OPTIONS])
84-# ------------------
85-AC_DEFUN([LT_INIT],
86-[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
87-AC_BEFORE([$0], [LT_LANG])dnl
88-AC_BEFORE([$0], [LT_OUTPUT])dnl
89-AC_BEFORE([$0], [LTDL_INIT])dnl
90-m4_require([_LT_CHECK_BUILDDIR])dnl
91-
92-dnl Autoconf doesn't catch unexpanded LT_ macros by default:
93-m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
94-m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
95-dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
96-dnl unless we require an AC_DEFUNed macro:
97-AC_REQUIRE([LTOPTIONS_VERSION])dnl
98-AC_REQUIRE([LTSUGAR_VERSION])dnl
99-AC_REQUIRE([LTVERSION_VERSION])dnl
100-AC_REQUIRE([LTOBSOLETE_VERSION])dnl
101-m4_require([_LT_PROG_LTMAIN])dnl
102-
103-dnl Parse OPTIONS
104-_LT_SET_OPTIONS([$0], [$1])
105-
106-# This can be used to rebuild libtool when needed
107-LIBTOOL_DEPS="$ltmain"
108-
109-# Always use our own libtool.
110-LIBTOOL='$(SHELL) $(top_builddir)/libtool'
111-AC_SUBST(LIBTOOL)dnl
112-
113-_LT_SETUP
114-
115-# Only expand once:
116-m4_define([LT_INIT])
117-])# LT_INIT
118-
119-# Old names:
120-AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
121-AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
122-dnl aclocal-1.4 backwards compatibility:
123-dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
124-dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
125-
126-
127-# _LT_CC_BASENAME(CC)
128-# -------------------
129-# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
130-m4_defun([_LT_CC_BASENAME],
131-[for cc_temp in $1""; do
132- case $cc_temp in
133- compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
134- distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
135- \-*) ;;
136- *) break;;
137- esac
138-done
139-cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
140-])
141-
142-
143-# _LT_FILEUTILS_DEFAULTS
144-# ----------------------
145-# It is okay to use these file commands and assume they have been set
146-# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
147-m4_defun([_LT_FILEUTILS_DEFAULTS],
148-[: ${CP="cp -f"}
149-: ${MV="mv -f"}
150-: ${RM="rm -f"}
151-])# _LT_FILEUTILS_DEFAULTS
152-
153-
154-# _LT_SETUP
155-# ---------
156-m4_defun([_LT_SETUP],
157-[AC_REQUIRE([AC_CANONICAL_HOST])dnl
158-AC_REQUIRE([AC_CANONICAL_BUILD])dnl
159-_LT_DECL([], [host_alias], [0], [The host system])dnl
160-_LT_DECL([], [host], [0])dnl
161-_LT_DECL([], [host_os], [0])dnl
162-dnl
163-_LT_DECL([], [build_alias], [0], [The build system])dnl
164-_LT_DECL([], [build], [0])dnl
165-_LT_DECL([], [build_os], [0])dnl
166-dnl
167-AC_REQUIRE([AC_PROG_CC])dnl
168-AC_REQUIRE([LT_PATH_LD])dnl
169-AC_REQUIRE([LT_PATH_NM])dnl
170-dnl
171-AC_REQUIRE([AC_PROG_LN_S])dnl
172-test -z "$LN_S" && LN_S="ln -s"
173-_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
174-dnl
175-AC_REQUIRE([LT_CMD_MAX_LEN])dnl
176-_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
177-_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
178-dnl
179-m4_require([_LT_FILEUTILS_DEFAULTS])dnl
180-m4_require([_LT_CHECK_SHELL_FEATURES])dnl
181-m4_require([_LT_CMD_RELOAD])dnl
182-m4_require([_LT_CHECK_MAGIC_METHOD])dnl
183-m4_require([_LT_CMD_OLD_ARCHIVE])dnl
184-m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
185-
186-_LT_CONFIG_LIBTOOL_INIT([
187-# See if we are running on zsh, and set the options which allow our
188-# commands through without removal of \ escapes INIT.
189-if test -n "\${ZSH_VERSION+set}" ; then
190- setopt NO_GLOB_SUBST
191-fi
192-])
193-if test -n "${ZSH_VERSION+set}" ; then
194- setopt NO_GLOB_SUBST
195-fi
196-
197-_LT_CHECK_OBJDIR
198-
199-m4_require([_LT_TAG_COMPILER])dnl
200-_LT_PROG_ECHO_BACKSLASH
201-
202-case $host_os in
203-aix3*)
204- # AIX sometimes has problems with the GCC collect2 program. For some
205- # reason, if we set the COLLECT_NAMES environment variable, the problems
206- # vanish in a puff of smoke.
207- if test "X${COLLECT_NAMES+set}" != Xset; then
208- COLLECT_NAMES=
209- export COLLECT_NAMES
210- fi
211- ;;
212-esac
213-
214-# Sed substitution that helps us do robust quoting. It backslashifies
215-# metacharacters that are still active within double-quoted strings.
216-sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
217-
218-# Same as above, but do not quote variable references.
219-double_quote_subst='s/\([["`\\]]\)/\\\1/g'
220-
221-# Sed substitution to delay expansion of an escaped shell variable in a
222-# double_quote_subst'ed string.
223-delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
224-
225-# Sed substitution to delay expansion of an escaped single quote.
226-delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
227-
228-# Sed substitution to avoid accidental globbing in evaled expressions
229-no_glob_subst='s/\*/\\\*/g'
230-
231-# Global variables:
232-ofile=libtool
233-can_build_shared=yes
234-
235-# All known linkers require a `.a' archive for static linking (except MSVC,
236-# which needs '.lib').
237-libext=a
238-
239-with_gnu_ld="$lt_cv_prog_gnu_ld"
240-
241-old_CC="$CC"
242-old_CFLAGS="$CFLAGS"
243-
244-# Set sane defaults for various variables
245-test -z "$CC" && CC=cc
246-test -z "$LTCC" && LTCC=$CC
247-test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
248-test -z "$LD" && LD=ld
249-test -z "$ac_objext" && ac_objext=o
250-
251-_LT_CC_BASENAME([$compiler])
252-
253-# Only perform the check for file, if the check method requires it
254-test -z "$MAGIC_CMD" && MAGIC_CMD=file
255-case $deplibs_check_method in
256-file_magic*)
257- if test "$file_magic_cmd" = '$MAGIC_CMD'; then
258- _LT_PATH_MAGIC
259- fi
260- ;;
261-esac
262-
263-# Use C for the default configuration in the libtool script
264-LT_SUPPORTED_TAG([CC])
265-_LT_LANG_C_CONFIG
266-_LT_LANG_DEFAULT_CONFIG
267-_LT_CONFIG_COMMANDS
268-])# _LT_SETUP
269-
270-
271-# _LT_PROG_LTMAIN
272-# ---------------
273-# Note that this code is called both from `configure', and `config.status'
274-# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
275-# `config.status' has no value for ac_aux_dir unless we are using Automake,
276-# so we pass a copy along to make sure it has a sensible value anyway.
277-m4_defun([_LT_PROG_LTMAIN],
278-[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
279-_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
280-ltmain="$ac_aux_dir/ltmain.sh"
281-])# _LT_PROG_LTMAIN
282-
283-
284-
285-# So that we can recreate a full libtool script including additional
286-# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
287-# in macros and then make a single call at the end using the `libtool'
288-# label.
289-
290-
291-# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
292-# ----------------------------------------
293-# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
294-m4_define([_LT_CONFIG_LIBTOOL_INIT],
295-[m4_ifval([$1],
296- [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
297- [$1
298-])])])
299-
300-# Initialize.
301-m4_define([_LT_OUTPUT_LIBTOOL_INIT])
302-
303-
304-# _LT_CONFIG_LIBTOOL([COMMANDS])
305-# ------------------------------
306-# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
307-m4_define([_LT_CONFIG_LIBTOOL],
308-[m4_ifval([$1],
309- [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
310- [$1
311-])])])
312-
313-# Initialize.
314-m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
315-
316-
317-# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
318-# -----------------------------------------------------
319-m4_defun([_LT_CONFIG_SAVE_COMMANDS],
320-[_LT_CONFIG_LIBTOOL([$1])
321-_LT_CONFIG_LIBTOOL_INIT([$2])
322-])
323-
324-
325-# _LT_FORMAT_COMMENT([COMMENT])
326-# -----------------------------
327-# Add leading comment marks to the start of each line, and a trailing
328-# full-stop to the whole comment if one is not present already.
329-m4_define([_LT_FORMAT_COMMENT],
330-[m4_ifval([$1], [
331-m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
332- [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
333-)])
334-
335-
336-
337-
338-
339-# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
340-# -------------------------------------------------------------------
341-# CONFIGNAME is the name given to the value in the libtool script.
342-# VARNAME is the (base) name used in the configure script.
343-# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
344-# VARNAME. Any other value will be used directly.
345-m4_define([_LT_DECL],
346-[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
347- [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
348- [m4_ifval([$1], [$1], [$2])])
349- lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
350- m4_ifval([$4],
351- [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
352- lt_dict_add_subkey([lt_decl_dict], [$2],
353- [tagged?], [m4_ifval([$5], [yes], [no])])])
354-])
355-
356-
357-# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
358-# --------------------------------------------------------
359-m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
360-
361-
362-# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
363-# ------------------------------------------------
364-m4_define([lt_decl_tag_varnames],
365-[_lt_decl_filter([tagged?], [yes], $@)])
366-
367-
368-# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
369-# ---------------------------------------------------------
370-m4_define([_lt_decl_filter],
371-[m4_case([$#],
372- [0], [m4_fatal([$0: too few arguments: $#])],
373- [1], [m4_fatal([$0: too few arguments: $#: $1])],
374- [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
375- [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
376- [lt_dict_filter([lt_decl_dict], $@)])[]dnl
377-])
378-
379-
380-# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
381-# --------------------------------------------------
382-m4_define([lt_decl_quote_varnames],
383-[_lt_decl_filter([value], [1], $@)])
384-
385-
386-# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
387-# ---------------------------------------------------
388-m4_define([lt_decl_dquote_varnames],
389-[_lt_decl_filter([value], [2], $@)])
390-
391-
392-# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
393-# ---------------------------------------------------
394-m4_define([lt_decl_varnames_tagged],
395-[m4_assert([$# <= 2])dnl
396-_$0(m4_quote(m4_default([$1], [[, ]])),
397- m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
398- m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
399-m4_define([_lt_decl_varnames_tagged],
400-[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
401-
402-
403-# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
404-# ------------------------------------------------
405-m4_define([lt_decl_all_varnames],
406-[_$0(m4_quote(m4_default([$1], [[, ]])),
407- m4_if([$2], [],
408- m4_quote(lt_decl_varnames),
409- m4_quote(m4_shift($@))))[]dnl
410-])
411-m4_define([_lt_decl_all_varnames],
412-[lt_join($@, lt_decl_varnames_tagged([$1],
413- lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
414-])
415-
416-
417-# _LT_CONFIG_STATUS_DECLARE([VARNAME])
418-# ------------------------------------
419-# Quote a variable value, and forward it to `config.status' so that its
420-# declaration there will have the same value as in `configure'. VARNAME
421-# must have a single quote delimited value for this to work.
422-m4_define([_LT_CONFIG_STATUS_DECLARE],
423-[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
424-
425-
426-# _LT_CONFIG_STATUS_DECLARATIONS
427-# ------------------------------
428-# We delimit libtool config variables with single quotes, so when
429-# we write them to config.status, we have to be sure to quote all
430-# embedded single quotes properly. In configure, this macro expands
431-# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
432-#
433-# <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
434-m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
435-[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
436- [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
437-
438-
439-# _LT_LIBTOOL_TAGS
440-# ----------------
441-# Output comment and list of tags supported by the script
442-m4_defun([_LT_LIBTOOL_TAGS],
443-[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
444-available_tags="_LT_TAGS"dnl
445-])
446-
447-
448-# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
449-# -----------------------------------
450-# Extract the dictionary values for VARNAME (optionally with TAG) and
451-# expand to a commented shell variable setting:
452-#
453-# # Some comment about what VAR is for.
454-# visible_name=$lt_internal_name
455-m4_define([_LT_LIBTOOL_DECLARE],
456-[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
457- [description])))[]dnl
458-m4_pushdef([_libtool_name],
459- m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
460-m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
461- [0], [_libtool_name=[$]$1],
462- [1], [_libtool_name=$lt_[]$1],
463- [2], [_libtool_name=$lt_[]$1],
464- [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
465-m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
466-])
467-
468-
469-# _LT_LIBTOOL_CONFIG_VARS
470-# -----------------------
471-# Produce commented declarations of non-tagged libtool config variables
472-# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
473-# script. Tagged libtool config variables (even for the LIBTOOL CONFIG
474-# section) are produced by _LT_LIBTOOL_TAG_VARS.
475-m4_defun([_LT_LIBTOOL_CONFIG_VARS],
476-[m4_foreach([_lt_var],
477- m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
478- [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
479-
480-
481-# _LT_LIBTOOL_TAG_VARS(TAG)
482-# -------------------------
483-m4_define([_LT_LIBTOOL_TAG_VARS],
484-[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
485- [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
486-
487-
488-# _LT_TAGVAR(VARNAME, [TAGNAME])
489-# ------------------------------
490-m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
491-
492-
493-# _LT_CONFIG_COMMANDS
494-# -------------------
495-# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
496-# variables for single and double quote escaping we saved from calls
497-# to _LT_DECL, we can put quote escaped variables declarations
498-# into `config.status', and then the shell code to quote escape them in
499-# for loops in `config.status'. Finally, any additional code accumulated
500-# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
501-m4_defun([_LT_CONFIG_COMMANDS],
502-[AC_PROVIDE_IFELSE([LT_OUTPUT],
503- dnl If the libtool generation code has been placed in $CONFIG_LT,
504- dnl instead of duplicating it all over again into config.status,
505- dnl then we will have config.status run $CONFIG_LT later, so it
506- dnl needs to know what name is stored there:
507- [AC_CONFIG_COMMANDS([libtool],
508- [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
509- dnl If the libtool generation code is destined for config.status,
510- dnl expand the accumulated commands and init code now:
511- [AC_CONFIG_COMMANDS([libtool],
512- [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
513-])#_LT_CONFIG_COMMANDS
514-
515-
516-# Initialize.
517-m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
518-[
519-
520-# The HP-UX ksh and POSIX shell print the target directory to stdout
521-# if CDPATH is set.
522-(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
523-
524-sed_quote_subst='$sed_quote_subst'
525-double_quote_subst='$double_quote_subst'
526-delay_variable_subst='$delay_variable_subst'
527-_LT_CONFIG_STATUS_DECLARATIONS
528-LTCC='$LTCC'
529-LTCFLAGS='$LTCFLAGS'
530-compiler='$compiler_DEFAULT'
531-
532-# Quote evaled strings.
533-for var in lt_decl_all_varnames([[ \
534-]], lt_decl_quote_varnames); do
535- case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
536- *[[\\\\\\\`\\"\\\$]]*)
537- eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
538- ;;
539- *)
540- eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
541- ;;
542- esac
543-done
544-
545-# Double-quote double-evaled strings.
546-for var in lt_decl_all_varnames([[ \
547-]], lt_decl_dquote_varnames); do
548- case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
549- *[[\\\\\\\`\\"\\\$]]*)
550- eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
551- ;;
552- *)
553- eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
554- ;;
555- esac
556-done
557-
558-# Fix-up fallback echo if it was mangled by the above quoting rules.
559-case \$lt_ECHO in
560-*'\\\[$]0 --fallback-echo"')dnl "
561- lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
562- ;;
563-esac
564-
565-_LT_OUTPUT_LIBTOOL_INIT
566-])
567-
568-
569-# LT_OUTPUT
570-# ---------
571-# This macro allows early generation of the libtool script (before
572-# AC_OUTPUT is called), incase it is used in configure for compilation
573-# tests.
574-AC_DEFUN([LT_OUTPUT],
575-[: ${CONFIG_LT=./config.lt}
576-AC_MSG_NOTICE([creating $CONFIG_LT])
577-cat >"$CONFIG_LT" <<_LTEOF
578-#! $SHELL
579-# Generated by $as_me.
580-# Run this file to recreate a libtool stub with the current configuration.
581-
582-lt_cl_silent=false
583-SHELL=\${CONFIG_SHELL-$SHELL}
584-_LTEOF
585-
586-cat >>"$CONFIG_LT" <<\_LTEOF
587-AS_SHELL_SANITIZE
588-_AS_PREPARE
589-
590-exec AS_MESSAGE_FD>&1
591-exec AS_MESSAGE_LOG_FD>>config.log
592-{
593- echo
594- AS_BOX([Running $as_me.])
595-} >&AS_MESSAGE_LOG_FD
596-
597-lt_cl_help="\
598-\`$as_me' creates a local libtool stub from the current configuration,
599-for use in further configure time tests before the real libtool is
600-generated.
601-
602-Usage: $[0] [[OPTIONS]]
603-
604- -h, --help print this help, then exit
605- -V, --version print version number, then exit
606- -q, --quiet do not print progress messages
607- -d, --debug don't remove temporary files
608-
609-Report bugs to <bug-libtool@gnu.org>."
610-
611-lt_cl_version="\
612-m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
613-m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
614-configured by $[0], generated by m4_PACKAGE_STRING.
615-
616-Copyright (C) 2008 Free Software Foundation, Inc.
617-This config.lt script is free software; the Free Software Foundation
618-gives unlimited permision to copy, distribute and modify it."
619-
620-while test $[#] != 0
621-do
622- case $[1] in
623- --version | --v* | -V )
624- echo "$lt_cl_version"; exit 0 ;;
625- --help | --h* | -h )
626- echo "$lt_cl_help"; exit 0 ;;
627- --debug | --d* | -d )
628- debug=: ;;
629- --quiet | --q* | --silent | --s* | -q )
630- lt_cl_silent=: ;;
631-
632- -*) AC_MSG_ERROR([unrecognized option: $[1]
633-Try \`$[0] --help' for more information.]) ;;
634-
635- *) AC_MSG_ERROR([unrecognized argument: $[1]
636-Try \`$[0] --help' for more information.]) ;;
637- esac
638- shift
639-done
640-
641-if $lt_cl_silent; then
642- exec AS_MESSAGE_FD>/dev/null
643-fi
644-_LTEOF
645-
646-cat >>"$CONFIG_LT" <<_LTEOF
647-_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
648-_LTEOF
649-
650-cat >>"$CONFIG_LT" <<\_LTEOF
651-AC_MSG_NOTICE([creating $ofile])
652-_LT_OUTPUT_LIBTOOL_COMMANDS
653-AS_EXIT(0)
654-_LTEOF
655-chmod +x "$CONFIG_LT"
656-
657-# configure is writing to config.log, but config.lt does its own redirection,
658-# appending to config.log, which fails on DOS, as config.log is still kept
659-# open by configure. Here we exec the FD to /dev/null, effectively closing
660-# config.log, so it can be properly (re)opened and appended to by config.lt.
661-if test "$no_create" != yes; then
662- lt_cl_success=:
663- test "$silent" = yes &&
664- lt_config_lt_args="$lt_config_lt_args --quiet"
665- exec AS_MESSAGE_LOG_FD>/dev/null
666- $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
667- exec AS_MESSAGE_LOG_FD>>config.log
668- $lt_cl_success || AS_EXIT(1)
669-fi
670-])# LT_OUTPUT
671-
672-
673-# _LT_CONFIG(TAG)
674-# ---------------
675-# If TAG is the built-in tag, create an initial libtool script with a
676-# default configuration from the untagged config vars. Otherwise add code
677-# to config.status for appending the configuration named by TAG from the
678-# matching tagged config vars.
679-m4_defun([_LT_CONFIG],
680-[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
681-_LT_CONFIG_SAVE_COMMANDS([
682- m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
683- m4_if(_LT_TAG, [C], [
684- # See if we are running on zsh, and set the options which allow our
685- # commands through without removal of \ escapes.
686- if test -n "${ZSH_VERSION+set}" ; then
687- setopt NO_GLOB_SUBST
688- fi
689-
690- cfgfile="${ofile}T"
691- trap "$RM \"$cfgfile\"; exit 1" 1 2 15
692- $RM "$cfgfile"
693-
694- cat <<_LT_EOF >> "$cfgfile"
695-#! $SHELL
696-
697-# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
698-# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
699-# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
700-# NOTE: Changes made to this file will be lost: look at ltmain.sh.
701-#
702-_LT_COPYING
703-_LT_LIBTOOL_TAGS
704-
705-# ### BEGIN LIBTOOL CONFIG
706-_LT_LIBTOOL_CONFIG_VARS
707-_LT_LIBTOOL_TAG_VARS
708-# ### END LIBTOOL CONFIG
709-
710-_LT_EOF
711-
712- case $host_os in
713- aix3*)
714- cat <<\_LT_EOF >> "$cfgfile"
715-# AIX sometimes has problems with the GCC collect2 program. For some
716-# reason, if we set the COLLECT_NAMES environment variable, the problems
717-# vanish in a puff of smoke.
718-if test "X${COLLECT_NAMES+set}" != Xset; then
719- COLLECT_NAMES=
720- export COLLECT_NAMES
721-fi
722-_LT_EOF
723- ;;
724- esac
725-
726- _LT_PROG_LTMAIN
727-
728- # We use sed instead of cat because bash on DJGPP gets confused if
729- # if finds mixed CR/LF and LF-only lines. Since sed operates in
730- # text mode, it properly converts lines to CR/LF. This bash problem
731- # is reportedly fixed, but why not run on old versions too?
732- sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
733- || (rm -f "$cfgfile"; exit 1)
734-
735- _LT_PROG_XSI_SHELLFNS
736-
737- sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
738- || (rm -f "$cfgfile"; exit 1)
739-
740- mv -f "$cfgfile" "$ofile" ||
741- (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
742- chmod +x "$ofile"
743-],
744-[cat <<_LT_EOF >> "$ofile"
745-
746-dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
747-dnl in a comment (ie after a #).
748-# ### BEGIN LIBTOOL TAG CONFIG: $1
749-_LT_LIBTOOL_TAG_VARS(_LT_TAG)
750-# ### END LIBTOOL TAG CONFIG: $1
751-_LT_EOF
752-])dnl /m4_if
753-],
754-[m4_if([$1], [], [
755- PACKAGE='$PACKAGE'
756- VERSION='$VERSION'
757- TIMESTAMP='$TIMESTAMP'
758- RM='$RM'
759- ofile='$ofile'], [])
760-])dnl /_LT_CONFIG_SAVE_COMMANDS
761-])# _LT_CONFIG
762-
763-
764-# LT_SUPPORTED_TAG(TAG)
765-# ---------------------
766-# Trace this macro to discover what tags are supported by the libtool
767-# --tag option, using:
768-# autoconf --trace 'LT_SUPPORTED_TAG:$1'
769-AC_DEFUN([LT_SUPPORTED_TAG], [])
770-
771-
772-# C support is built-in for now
773-m4_define([_LT_LANG_C_enabled], [])
774-m4_define([_LT_TAGS], [])
775-
776-
777-# LT_LANG(LANG)
778-# -------------
779-# Enable libtool support for the given language if not already enabled.
780-AC_DEFUN([LT_LANG],
781-[AC_BEFORE([$0], [LT_OUTPUT])dnl
782-m4_case([$1],
783- [C], [_LT_LANG(C)],
784- [C++], [_LT_LANG(CXX)],
785- [Java], [_LT_LANG(GCJ)],
786- [Fortran 77], [_LT_LANG(F77)],
787- [Fortran], [_LT_LANG(FC)],
788- [Windows Resource], [_LT_LANG(RC)],
789- [m4_ifdef([_LT_LANG_]$1[_CONFIG],
790- [_LT_LANG($1)],
791- [m4_fatal([$0: unsupported language: "$1"])])])dnl
792-])# LT_LANG
793-
794-
795-# _LT_LANG(LANGNAME)
796-# ------------------
797-m4_defun([_LT_LANG],
798-[m4_ifdef([_LT_LANG_]$1[_enabled], [],
799- [LT_SUPPORTED_TAG([$1])dnl
800- m4_append([_LT_TAGS], [$1 ])dnl
801- m4_define([_LT_LANG_]$1[_enabled], [])dnl
802- _LT_LANG_$1_CONFIG($1)])dnl
803-])# _LT_LANG
804-
805-
806-# _LT_LANG_DEFAULT_CONFIG
807-# -----------------------
808-m4_defun([_LT_LANG_DEFAULT_CONFIG],
809-[AC_PROVIDE_IFELSE([AC_PROG_CXX],
810- [LT_LANG(CXX)],
811- [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
812-
813-AC_PROVIDE_IFELSE([AC_PROG_F77],
814- [LT_LANG(F77)],
815- [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
816-
817-AC_PROVIDE_IFELSE([AC_PROG_FC],
818- [LT_LANG(FC)],
819- [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
820-
821-dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
822-dnl pulling things in needlessly.
823-AC_PROVIDE_IFELSE([AC_PROG_GCJ],
824- [LT_LANG(GCJ)],
825- [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
826- [LT_LANG(GCJ)],
827- [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
828- [LT_LANG(GCJ)],
829- [m4_ifdef([AC_PROG_GCJ],
830- [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
831- m4_ifdef([A][M_PROG_GCJ],
832- [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
833- m4_ifdef([LT_PROG_GCJ],
834- [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
835-
836-AC_PROVIDE_IFELSE([LT_PROG_RC],
837- [LT_LANG(RC)],
838- [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
839-])# _LT_LANG_DEFAULT_CONFIG
840-
841-# Obsolete macros:
842-AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
843-AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
844-AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
845-AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
846-dnl aclocal-1.4 backwards compatibility:
847-dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
848-dnl AC_DEFUN([AC_LIBTOOL_F77], [])
849-dnl AC_DEFUN([AC_LIBTOOL_FC], [])
850-dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
851-
852-
853-# _LT_TAG_COMPILER
854-# ----------------
855-m4_defun([_LT_TAG_COMPILER],
856-[AC_REQUIRE([AC_PROG_CC])dnl
857-
858-_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
859-_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
860-_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
861-_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
862-
863-# If no C compiler was specified, use CC.
864-LTCC=${LTCC-"$CC"}
865-
866-# If no C compiler flags were specified, use CFLAGS.
867-LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
868-
869-# Allow CC to be a program name with arguments.
870-compiler=$CC
871-])# _LT_TAG_COMPILER
872-
873-
874-# _LT_COMPILER_BOILERPLATE
875-# ------------------------
876-# Check for compiler boilerplate output or warnings with
877-# the simple compiler test code.
878-m4_defun([_LT_COMPILER_BOILERPLATE],
879-[m4_require([_LT_DECL_SED])dnl
880-ac_outfile=conftest.$ac_objext
881-echo "$lt_simple_compile_test_code" >conftest.$ac_ext
882-eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
883-_lt_compiler_boilerplate=`cat conftest.err`
884-$RM conftest*
885-])# _LT_COMPILER_BOILERPLATE
886-
887-
888-# _LT_LINKER_BOILERPLATE
889-# ----------------------
890-# Check for linker boilerplate output or warnings with
891-# the simple link test code.
892-m4_defun([_LT_LINKER_BOILERPLATE],
893-[m4_require([_LT_DECL_SED])dnl
894-ac_outfile=conftest.$ac_objext
895-echo "$lt_simple_link_test_code" >conftest.$ac_ext
896-eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
897-_lt_linker_boilerplate=`cat conftest.err`
898-$RM -r conftest*
899-])# _LT_LINKER_BOILERPLATE
900-
901-# _LT_REQUIRED_DARWIN_CHECKS
902-# -------------------------
903-m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
904- case $host_os in
905- rhapsody* | darwin*)
906- AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
907- AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
908- AC_CHECK_TOOL([LIPO], [lipo], [:])
909- AC_CHECK_TOOL([OTOOL], [otool], [:])
910- AC_CHECK_TOOL([OTOOL64], [otool64], [:])
911- _LT_DECL([], [DSYMUTIL], [1],
912- [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
913- _LT_DECL([], [NMEDIT], [1],
914- [Tool to change global to local symbols on Mac OS X])
915- _LT_DECL([], [LIPO], [1],
916- [Tool to manipulate fat objects and archives on Mac OS X])
917- _LT_DECL([], [OTOOL], [1],
918- [ldd/readelf like tool for Mach-O binaries on Mac OS X])
919- _LT_DECL([], [OTOOL64], [1],
920- [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
921-
922- AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
923- [lt_cv_apple_cc_single_mod=no
924- if test -z "${LT_MULTI_MODULE}"; then
925- # By default we will add the -single_module flag. You can override
926- # by either setting the environment variable LT_MULTI_MODULE
927- # non-empty at configure time, or by adding -multi_module to the
928- # link flags.
929- rm -rf libconftest.dylib*
930- echo "int foo(void){return 1;}" > conftest.c
931- echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
932--dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
933- $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
934- -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
935- _lt_result=$?
936- if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
937- lt_cv_apple_cc_single_mod=yes
938- else
939- cat conftest.err >&AS_MESSAGE_LOG_FD
940- fi
941- rm -rf libconftest.dylib*
942- rm -f conftest.*
943- fi])
944- AC_CACHE_CHECK([for -exported_symbols_list linker flag],
945- [lt_cv_ld_exported_symbols_list],
946- [lt_cv_ld_exported_symbols_list=no
947- save_LDFLAGS=$LDFLAGS
948- echo "_main" > conftest.sym
949- LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
950- AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
951- [lt_cv_ld_exported_symbols_list=yes],
952- [lt_cv_ld_exported_symbols_list=no])
953- LDFLAGS="$save_LDFLAGS"
954- ])
955- case $host_os in
956- rhapsody* | darwin1.[[012]])
957- _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
958- darwin1.*)
959- _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
960- darwin*) # darwin 5.x on
961- # if running on 10.5 or later, the deployment target defaults
962- # to the OS version, if on x86, and 10.4, the deployment
963- # target defaults to 10.4. Don't you love it?
964- case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
965- 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
966- _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
967- 10.[[012]]*)
968- _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
969- 10.*)
970- _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
971- esac
972- ;;
973- esac
974- if test "$lt_cv_apple_cc_single_mod" = "yes"; then
975- _lt_dar_single_mod='$single_module'
976- fi
977- if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
978- _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
979- else
980- _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
981- fi
982- if test "$DSYMUTIL" != ":"; then
983- _lt_dsymutil='~$DSYMUTIL $lib || :'
984- else
985- _lt_dsymutil=
986- fi
987- ;;
988- esac
989-])
990-
991-
992-# _LT_DARWIN_LINKER_FEATURES
993-# --------------------------
994-# Checks for linker and compiler features on darwin
995-m4_defun([_LT_DARWIN_LINKER_FEATURES],
996-[
997- m4_require([_LT_REQUIRED_DARWIN_CHECKS])
998- _LT_TAGVAR(archive_cmds_need_lc, $1)=no
999- _LT_TAGVAR(hardcode_direct, $1)=no
1000- _LT_TAGVAR(hardcode_automatic, $1)=yes
1001- _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
1002- _LT_TAGVAR(whole_archive_flag_spec, $1)=''
1003- _LT_TAGVAR(link_all_deplibs, $1)=yes
1004- _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
1005- case $cc_basename in
1006- ifort*) _lt_dar_can_shared=yes ;;
1007- *) _lt_dar_can_shared=$GCC ;;
1008- esac
1009- if test "$_lt_dar_can_shared" = "yes"; then
1010- output_verbose_link_cmd=echo
1011- _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}"
1012- _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
1013- _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}"
1014- _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}"
1015- m4_if([$1], [CXX],
1016-[ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
1017- _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}"
1018- _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}"
1019- fi
1020-],[])
1021- else
1022- _LT_TAGVAR(ld_shlibs, $1)=no
1023- fi
1024-])
1025-
1026-# _LT_SYS_MODULE_PATH_AIX
1027-# -----------------------
1028-# Links a minimal program and checks the executable
1029-# for the system default hardcoded library path. In most cases,
1030-# this is /usr/lib:/lib, but when the MPI compilers are used
1031-# the location of the communication and MPI libs are included too.
1032-# If we don't find anything, use the default library path according
1033-# to the aix ld manual.
1034-m4_defun([_LT_SYS_MODULE_PATH_AIX],
1035-[m4_require([_LT_DECL_SED])dnl
1036-AC_LINK_IFELSE(AC_LANG_PROGRAM,[
1037-lt_aix_libpath_sed='
1038- /Import File Strings/,/^$/ {
1039- /^0/ {
1040- s/^0 *\(.*\)$/\1/
1041- p
1042- }
1043- }'
1044-aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1045-# Check for a 64-bit object if we didn't find anything.
1046-if test -z "$aix_libpath"; then
1047- aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1048-fi],[])
1049-if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
1050-])# _LT_SYS_MODULE_PATH_AIX
1051-
1052-
1053-# _LT_SHELL_INIT(ARG)
1054-# -------------------
1055-m4_define([_LT_SHELL_INIT],
1056-[ifdef([AC_DIVERSION_NOTICE],
1057- [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
1058- [AC_DIVERT_PUSH(NOTICE)])
1059-$1
1060-AC_DIVERT_POP
1061-])# _LT_SHELL_INIT
1062-
1063-
1064-# _LT_PROG_ECHO_BACKSLASH
1065-# -----------------------
1066-# Add some code to the start of the generated configure script which
1067-# will find an echo command which doesn't interpret backslashes.
1068-m4_defun([_LT_PROG_ECHO_BACKSLASH],
1069-[_LT_SHELL_INIT([
1070-# Check that we are running under the correct shell.
1071-SHELL=${CONFIG_SHELL-/bin/sh}
1072-
1073-case X$lt_ECHO in
1074-X*--fallback-echo)
1075- # Remove one level of quotation (which was required for Make).
1076- ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
1077- ;;
1078-esac
1079-
1080-ECHO=${lt_ECHO-echo}
1081-if test "X[$]1" = X--no-reexec; then
1082- # Discard the --no-reexec flag, and continue.
1083- shift
1084-elif test "X[$]1" = X--fallback-echo; then
1085- # Avoid inline document here, it may be left over
1086- :
1087-elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
1088- # Yippee, $ECHO works!
1089- :
1090-else
1091- # Restart under the correct shell.
1092- exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
1093-fi
1094-
1095-if test "X[$]1" = X--fallback-echo; then
1096- # used as fallback echo
1097- shift
1098- cat <<_LT_EOF
1099-[$]*
1100-_LT_EOF
1101- exit 0
1102-fi
1103-
1104-# The HP-UX ksh and POSIX shell print the target directory to stdout
1105-# if CDPATH is set.
1106-(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1107-
1108-if test -z "$lt_ECHO"; then
1109- if test "X${echo_test_string+set}" != Xset; then
1110- # find a string as large as possible, as long as the shell can cope with it
1111- for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
1112- # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
1113- if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
1114- { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
1115- then
1116- break
1117- fi
1118- done
1119- fi
1120-
1121- if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
1122- echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
1123- test "X$echo_testing_string" = "X$echo_test_string"; then
1124- :
1125- else
1126- # The Solaris, AIX, and Digital Unix default echo programs unquote
1127- # backslashes. This makes it impossible to quote backslashes using
1128- # echo "$something" | sed 's/\\/\\\\/g'
1129- #
1130- # So, first we look for a working echo in the user's PATH.
1131-
1132- lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1133- for dir in $PATH /usr/ucb; do
1134- IFS="$lt_save_ifs"
1135- if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
1136- test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
1137- echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
1138- test "X$echo_testing_string" = "X$echo_test_string"; then
1139- ECHO="$dir/echo"
1140- break
1141- fi
1142- done
1143- IFS="$lt_save_ifs"
1144-
1145- if test "X$ECHO" = Xecho; then
1146- # We didn't find a better echo, so look for alternatives.
1147- if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
1148- echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
1149- test "X$echo_testing_string" = "X$echo_test_string"; then
1150- # This shell has a builtin print -r that does the trick.
1151- ECHO='print -r'
1152- elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
1153- test "X$CONFIG_SHELL" != X/bin/ksh; then
1154- # If we have ksh, try running configure again with it.
1155- ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
1156- export ORIGINAL_CONFIG_SHELL
1157- CONFIG_SHELL=/bin/ksh
1158- export CONFIG_SHELL
1159- exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
1160- else
1161- # Try using printf.
1162- ECHO='printf %s\n'
1163- if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
1164- echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
1165- test "X$echo_testing_string" = "X$echo_test_string"; then
1166- # Cool, printf works
1167- :
1168- elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1169- test "X$echo_testing_string" = 'X\t' &&
1170- echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1171- test "X$echo_testing_string" = "X$echo_test_string"; then
1172- CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
1173- export CONFIG_SHELL
1174- SHELL="$CONFIG_SHELL"
1175- export SHELL
1176- ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
1177- elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1178- test "X$echo_testing_string" = 'X\t' &&
1179- echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1180- test "X$echo_testing_string" = "X$echo_test_string"; then
1181- ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
1182- else
1183- # maybe with a smaller string...
1184- prev=:
1185-
1186- for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
1187- if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
1188- then
1189- break
1190- fi
1191- prev="$cmd"
1192- done
1193-
1194- if test "$prev" != 'sed 50q "[$]0"'; then
1195- echo_test_string=`eval $prev`
1196- export echo_test_string
1197- exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
1198- else
1199- # Oops. We lost completely, so just stick with echo.
1200- ECHO=echo
1201- fi
1202- fi
1203- fi
1204- fi
1205- fi
1206-fi
1207-
1208-# Copy echo and quote the copy suitably for passing to libtool from
1209-# the Makefile, instead of quoting the original, which is used later.
1210-lt_ECHO=$ECHO
1211-if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
1212- lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
1213-fi
1214-
1215-AC_SUBST(lt_ECHO)
1216-])
1217-_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
1218-_LT_DECL([], [ECHO], [1],
1219- [An echo program that does not interpret backslashes])
1220-])# _LT_PROG_ECHO_BACKSLASH
1221-
1222-
1223-# _LT_ENABLE_LOCK
1224-# ---------------
1225-m4_defun([_LT_ENABLE_LOCK],
1226-[AC_ARG_ENABLE([libtool-lock],
1227- [AS_HELP_STRING([--disable-libtool-lock],
1228- [avoid locking (might break parallel builds)])])
1229-test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1230-
1231-# Some flags need to be propagated to the compiler or linker for good
1232-# libtool support.
1233-case $host in
1234-ia64-*-hpux*)
1235- # Find out which ABI we are using.
1236- echo 'int i;' > conftest.$ac_ext
1237- if AC_TRY_EVAL(ac_compile); then
1238- case `/usr/bin/file conftest.$ac_objext` in
1239- *ELF-32*)
1240- HPUX_IA64_MODE="32"
1241- ;;
1242- *ELF-64*)
1243- HPUX_IA64_MODE="64"
1244- ;;
1245- esac
1246- fi
1247- rm -rf conftest*
1248- ;;
1249-*-*-irix6*)
1250- # Find out which ABI we are using.
1251- echo '[#]line __oline__ "configure"' > conftest.$ac_ext
1252- if AC_TRY_EVAL(ac_compile); then
1253- if test "$lt_cv_prog_gnu_ld" = yes; then
1254- case `/usr/bin/file conftest.$ac_objext` in
1255- *32-bit*)
1256- LD="${LD-ld} -melf32bsmip"
1257- ;;
1258- *N32*)
1259- LD="${LD-ld} -melf32bmipn32"
1260- ;;
1261- *64-bit*)
1262- LD="${LD-ld} -melf64bmip"
1263- ;;
1264- esac
1265- else
1266- case `/usr/bin/file conftest.$ac_objext` in
1267- *32-bit*)
1268- LD="${LD-ld} -32"
1269- ;;
1270- *N32*)
1271- LD="${LD-ld} -n32"
1272- ;;
1273- *64-bit*)
1274- LD="${LD-ld} -64"
1275- ;;
1276- esac
1277- fi
1278- fi
1279- rm -rf conftest*
1280- ;;
1281-
1282-x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
1283-s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
1284- # Find out which ABI we are using.
1285- echo 'int i;' > conftest.$ac_ext
1286- if AC_TRY_EVAL(ac_compile); then
1287- case `/usr/bin/file conftest.o` in
1288- *32-bit*)
1289- case $host in
1290- x86_64-*kfreebsd*-gnu)
1291- LD="${LD-ld} -m elf_i386_fbsd"
1292- ;;
1293- x86_64-*linux*)
1294- LD="${LD-ld} -m elf_i386"
1295- ;;
1296- ppc64-*linux*|powerpc64-*linux*)
1297- LD="${LD-ld} -m elf32ppclinux"
1298- ;;
1299- s390x-*linux*)
1300- LD="${LD-ld} -m elf_s390"
1301- ;;
1302- sparc64-*linux*)
1303- LD="${LD-ld} -m elf32_sparc"
1304- ;;
1305- esac
1306- ;;
1307- *64-bit*)
1308- case $host in
1309- x86_64-*kfreebsd*-gnu)
1310- LD="${LD-ld} -m elf_x86_64_fbsd"
1311- ;;
1312- x86_64-*linux*)
1313- LD="${LD-ld} -m elf_x86_64"
1314- ;;
1315- ppc*-*linux*|powerpc*-*linux*)
1316- LD="${LD-ld} -m elf64ppc"
1317- ;;
1318- s390*-*linux*|s390*-*tpf*)
1319- LD="${LD-ld} -m elf64_s390"
1320- ;;
1321- sparc*-*linux*)
1322- LD="${LD-ld} -m elf64_sparc"
1323- ;;
1324- esac
1325- ;;
1326- esac
1327- fi
1328- rm -rf conftest*
1329- ;;
1330-
1331-*-*-sco3.2v5*)
1332- # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1333- SAVE_CFLAGS="$CFLAGS"
1334- CFLAGS="$CFLAGS -belf"
1335- AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
1336- [AC_LANG_PUSH(C)
1337- AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
1338- AC_LANG_POP])
1339- if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1340- # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1341- CFLAGS="$SAVE_CFLAGS"
1342- fi
1343- ;;
1344-sparc*-*solaris*)
1345- # Find out which ABI we are using.
1346- echo 'int i;' > conftest.$ac_ext
1347- if AC_TRY_EVAL(ac_compile); then
1348- case `/usr/bin/file conftest.o` in
1349- *64-bit*)
1350- case $lt_cv_prog_gnu_ld in
1351- yes*) LD="${LD-ld} -m elf64_sparc" ;;
1352- *)
1353- if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
1354- LD="${LD-ld} -64"
1355- fi
1356- ;;
1357- esac
1358- ;;
1359- esac
1360- fi
1361- rm -rf conftest*
1362- ;;
1363-esac
1364-
1365-need_locks="$enable_libtool_lock"
1366-])# _LT_ENABLE_LOCK
1367-
1368-
1369-# _LT_CMD_OLD_ARCHIVE
1370-# -------------------
1371-m4_defun([_LT_CMD_OLD_ARCHIVE],
1372-[AC_CHECK_TOOL(AR, ar, false)
1373-test -z "$AR" && AR=ar
1374-test -z "$AR_FLAGS" && AR_FLAGS=cru
1375-_LT_DECL([], [AR], [1], [The archiver])
1376-_LT_DECL([], [AR_FLAGS], [1])
1377-
1378-AC_CHECK_TOOL(STRIP, strip, :)
1379-test -z "$STRIP" && STRIP=:
1380-_LT_DECL([], [STRIP], [1], [A symbol stripping program])
1381-
1382-AC_CHECK_TOOL(RANLIB, ranlib, :)
1383-test -z "$RANLIB" && RANLIB=:
1384-_LT_DECL([], [RANLIB], [1],
1385- [Commands used to install an old-style archive])
1386-
1387-# Determine commands to create old-style static archives.
1388-old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
1389-old_postinstall_cmds='chmod 644 $oldlib'
1390-old_postuninstall_cmds=
1391-
1392-if test -n "$RANLIB"; then
1393- case $host_os in
1394- openbsd*)
1395- old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
1396- ;;
1397- *)
1398- old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
1399- ;;
1400- esac
1401- old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
1402-fi
1403-_LT_DECL([], [old_postinstall_cmds], [2])
1404-_LT_DECL([], [old_postuninstall_cmds], [2])
1405-_LT_TAGDECL([], [old_archive_cmds], [2],
1406- [Commands used to build an old-style archive])
1407-])# _LT_CMD_OLD_ARCHIVE
1408-
1409-
1410-# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1411-# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
1412-# ----------------------------------------------------------------
1413-# Check whether the given compiler option works
1414-AC_DEFUN([_LT_COMPILER_OPTION],
1415-[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1416-m4_require([_LT_DECL_SED])dnl
1417-AC_CACHE_CHECK([$1], [$2],
1418- [$2=no
1419- m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
1420- echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1421- lt_compiler_flag="$3"
1422- # Insert the option either (1) after the last *FLAGS variable, or
1423- # (2) before a word containing "conftest.", or (3) at the end.
1424- # Note that $ac_compile itself does not contain backslashes and begins
1425- # with a dollar sign (not a hyphen), so the echo should work correctly.
1426- # The option is referenced via a variable to avoid confusing sed.
1427- lt_compile=`echo "$ac_compile" | $SED \
1428- -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1429- -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1430- -e 's:$: $lt_compiler_flag:'`
1431- (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1432- (eval "$lt_compile" 2>conftest.err)
1433- ac_status=$?
1434- cat conftest.err >&AS_MESSAGE_LOG_FD
1435- echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1436- if (exit $ac_status) && test -s "$ac_outfile"; then
1437- # The compiler can only warn and ignore the option if not recognized
1438- # So say no if there are warnings other than the usual output.
1439- $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
1440- $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1441- if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
1442- $2=yes
1443- fi
1444- fi
1445- $RM conftest*
1446-])
1447-
1448-if test x"[$]$2" = xyes; then
1449- m4_if([$5], , :, [$5])
1450-else
1451- m4_if([$6], , :, [$6])
1452-fi
1453-])# _LT_COMPILER_OPTION
1454-
1455-# Old name:
1456-AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
1457-dnl aclocal-1.4 backwards compatibility:
1458-dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
1459-
1460-
1461-# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1462-# [ACTION-SUCCESS], [ACTION-FAILURE])
1463-# ----------------------------------------------------
1464-# Check whether the given linker option works
1465-AC_DEFUN([_LT_LINKER_OPTION],
1466-[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1467-m4_require([_LT_DECL_SED])dnl
1468-AC_CACHE_CHECK([$1], [$2],
1469- [$2=no
1470- save_LDFLAGS="$LDFLAGS"
1471- LDFLAGS="$LDFLAGS $3"
1472- echo "$lt_simple_link_test_code" > conftest.$ac_ext
1473- if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
1474- # The linker can only warn and ignore the option if not recognized
1475- # So say no if there are warnings
1476- if test -s conftest.err; then
1477- # Append any errors to the config.log.
1478- cat conftest.err 1>&AS_MESSAGE_LOG_FD
1479- $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
1480- $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1481- if diff conftest.exp conftest.er2 >/dev/null; then
1482- $2=yes
1483- fi
1484- else
1485- $2=yes
1486- fi
1487- fi
1488- $RM -r conftest*
1489- LDFLAGS="$save_LDFLAGS"
1490-])
1491-
1492-if test x"[$]$2" = xyes; then
1493- m4_if([$4], , :, [$4])
1494-else
1495- m4_if([$5], , :, [$5])
1496-fi
1497-])# _LT_LINKER_OPTION
1498-
1499-# Old name:
1500-AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
1501-dnl aclocal-1.4 backwards compatibility:
1502-dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
1503-
1504-
1505-# LT_CMD_MAX_LEN
1506-#---------------
1507-AC_DEFUN([LT_CMD_MAX_LEN],
1508-[AC_REQUIRE([AC_CANONICAL_HOST])dnl
1509-# find the maximum length of command line arguments
1510-AC_MSG_CHECKING([the maximum length of command line arguments])
1511-AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
1512- i=0
1513- teststring="ABCD"
1514-
1515- case $build_os in
1516- msdosdjgpp*)
1517- # On DJGPP, this test can blow up pretty badly due to problems in libc
1518- # (any single argument exceeding 2000 bytes causes a buffer overrun
1519- # during glob expansion). Even if it were fixed, the result of this
1520- # check would be larger than it should be.
1521- lt_cv_sys_max_cmd_len=12288; # 12K is about right
1522- ;;
1523-
1524- gnu*)
1525- # Under GNU Hurd, this test is not required because there is
1526- # no limit to the length of command line arguments.
1527- # Libtool will interpret -1 as no limit whatsoever
1528- lt_cv_sys_max_cmd_len=-1;
1529- ;;
1530-
1531- cygwin* | mingw* | cegcc*)
1532- # On Win9x/ME, this test blows up -- it succeeds, but takes
1533- # about 5 minutes as the teststring grows exponentially.
1534- # Worse, since 9x/ME are not pre-emptively multitasking,
1535- # you end up with a "frozen" computer, even though with patience
1536- # the test eventually succeeds (with a max line length of 256k).
1537- # Instead, let's just punt: use the minimum linelength reported by
1538- # all of the supported platforms: 8192 (on NT/2K/XP).
1539- lt_cv_sys_max_cmd_len=8192;
1540- ;;
1541-
1542- amigaos*)
1543- # On AmigaOS with pdksh, this test takes hours, literally.
1544- # So we just punt and use a minimum line length of 8192.
1545- lt_cv_sys_max_cmd_len=8192;
1546- ;;
1547-
1548- netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
1549- # This has been around since 386BSD, at least. Likely further.
1550- if test -x /sbin/sysctl; then
1551- lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
1552- elif test -x /usr/sbin/sysctl; then
1553- lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
1554- else
1555- lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
1556- fi
1557- # And add a safety zone
1558- lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
1559- lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
1560- ;;
1561-
1562- interix*)
1563- # We know the value 262144 and hardcode it with a safety zone (like BSD)
1564- lt_cv_sys_max_cmd_len=196608
1565- ;;
1566-
1567- osf*)
1568- # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
1569- # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
1570- # nice to cause kernel panics so lets avoid the loop below.
1571- # First set a reasonable default.
1572- lt_cv_sys_max_cmd_len=16384
1573- #
1574- if test -x /sbin/sysconfig; then
1575- case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
1576- *1*) lt_cv_sys_max_cmd_len=-1 ;;
1577- esac
1578- fi
1579- ;;
1580- sco3.2v5*)
1581- lt_cv_sys_max_cmd_len=102400
1582- ;;
1583- sysv5* | sco5v6* | sysv4.2uw2*)
1584- kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
1585- if test -n "$kargmax"; then
1586- lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
1587- else
1588- lt_cv_sys_max_cmd_len=32768
1589- fi
1590- ;;
1591- *)
1592- lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
1593- if test -n "$lt_cv_sys_max_cmd_len"; then
1594- lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
1595- lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
1596- else
1597- # Make teststring a little bigger before we do anything with it.
1598- # a 1K string should be a reasonable start.
1599- for i in 1 2 3 4 5 6 7 8 ; do
1600- teststring=$teststring$teststring
1601- done
1602- SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
1603- # If test is not a shell built-in, we'll probably end up computing a
1604- # maximum length that is only half of the actual maximum length, but
1605- # we can't tell.
1606- while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
1607- = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
1608- test $i != 17 # 1/2 MB should be enough
1609- do
1610- i=`expr $i + 1`
1611- teststring=$teststring$teststring
1612- done
1613- # Only check the string length outside the loop.
1614- lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
1615- teststring=
1616- # Add a significant safety factor because C++ compilers can tack on
1617- # massive amounts of additional arguments before passing them to the
1618- # linker. It appears as though 1/2 is a usable value.
1619- lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
1620- fi
1621- ;;
1622- esac
1623-])
1624-if test -n $lt_cv_sys_max_cmd_len ; then
1625- AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
1626-else
1627- AC_MSG_RESULT(none)
1628-fi
1629-max_cmd_len=$lt_cv_sys_max_cmd_len
1630-_LT_DECL([], [max_cmd_len], [0],
1631- [What is the maximum length of a command?])
1632-])# LT_CMD_MAX_LEN
1633-
1634-# Old name:
1635-AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
1636-dnl aclocal-1.4 backwards compatibility:
1637-dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
1638-
1639-
1640-# _LT_HEADER_DLFCN
1641-# ----------------
1642-m4_defun([_LT_HEADER_DLFCN],
1643-[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
1644-])# _LT_HEADER_DLFCN
1645-
1646-
1647-# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
1648-# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
1649-# ----------------------------------------------------------------
1650-m4_defun([_LT_TRY_DLOPEN_SELF],
1651-[m4_require([_LT_HEADER_DLFCN])dnl
1652-if test "$cross_compiling" = yes; then :
1653- [$4]
1654-else
1655- lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1656- lt_status=$lt_dlunknown
1657- cat > conftest.$ac_ext <<_LT_EOF
1658-[#line __oline__ "configure"
1659-#include "confdefs.h"
1660-
1661-#if HAVE_DLFCN_H
1662-#include <dlfcn.h>
1663-#endif
1664-
1665-#include <stdio.h>
1666-
1667-#ifdef RTLD_GLOBAL
1668-# define LT_DLGLOBAL RTLD_GLOBAL
1669-#else
1670-# ifdef DL_GLOBAL
1671-# define LT_DLGLOBAL DL_GLOBAL
1672-# else
1673-# define LT_DLGLOBAL 0
1674-# endif
1675-#endif
1676-
1677-/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
1678- find out it does not work in some platform. */
1679-#ifndef LT_DLLAZY_OR_NOW
1680-# ifdef RTLD_LAZY
1681-# define LT_DLLAZY_OR_NOW RTLD_LAZY
1682-# else
1683-# ifdef DL_LAZY
1684-# define LT_DLLAZY_OR_NOW DL_LAZY
1685-# else
1686-# ifdef RTLD_NOW
1687-# define LT_DLLAZY_OR_NOW RTLD_NOW
1688-# else
1689-# ifdef DL_NOW
1690-# define LT_DLLAZY_OR_NOW DL_NOW
1691-# else
1692-# define LT_DLLAZY_OR_NOW 0
1693-# endif
1694-# endif
1695-# endif
1696-# endif
1697-#endif
1698-
1699-void fnord() { int i=42;}
1700-int main ()
1701-{
1702- void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
1703- int status = $lt_dlunknown;
1704-
1705- if (self)
1706- {
1707- if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
1708- else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
1709- /* dlclose (self); */
1710- }
1711- else
1712- puts (dlerror ());
1713-
1714- return status;
1715-}]
1716-_LT_EOF
1717- if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
1718- (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
1719- lt_status=$?
1720- case x$lt_status in
1721- x$lt_dlno_uscore) $1 ;;
1722- x$lt_dlneed_uscore) $2 ;;
1723- x$lt_dlunknown|x*) $3 ;;
1724- esac
1725- else :
1726- # compilation failed
1727- $3
1728- fi
1729-fi
1730-rm -fr conftest*
1731-])# _LT_TRY_DLOPEN_SELF
1732-
1733-
1734-# LT_SYS_DLOPEN_SELF
1735-# ------------------
1736-AC_DEFUN([LT_SYS_DLOPEN_SELF],
1737-[m4_require([_LT_HEADER_DLFCN])dnl
1738-if test "x$enable_dlopen" != xyes; then
1739- enable_dlopen=unknown
1740- enable_dlopen_self=unknown
1741- enable_dlopen_self_static=unknown
1742-else
1743- lt_cv_dlopen=no
1744- lt_cv_dlopen_libs=
1745-
1746- case $host_os in
1747- beos*)
1748- lt_cv_dlopen="load_add_on"
1749- lt_cv_dlopen_libs=
1750- lt_cv_dlopen_self=yes
1751- ;;
1752-
1753- mingw* | pw32* | cegcc*)
1754- lt_cv_dlopen="LoadLibrary"
1755- lt_cv_dlopen_libs=
1756- ;;
1757-
1758- cygwin*)
1759- lt_cv_dlopen="dlopen"
1760- lt_cv_dlopen_libs=
1761- ;;
1762-
1763- darwin*)
1764- # if libdl is installed we need to link against it
1765- AC_CHECK_LIB([dl], [dlopen],
1766- [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
1767- lt_cv_dlopen="dyld"
1768- lt_cv_dlopen_libs=
1769- lt_cv_dlopen_self=yes
1770- ])
1771- ;;
1772-
1773- *)
1774- AC_CHECK_FUNC([shl_load],
1775- [lt_cv_dlopen="shl_load"],
1776- [AC_CHECK_LIB([dld], [shl_load],
1777- [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
1778- [AC_CHECK_FUNC([dlopen],
1779- [lt_cv_dlopen="dlopen"],
1780- [AC_CHECK_LIB([dl], [dlopen],
1781- [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
1782- [AC_CHECK_LIB([svld], [dlopen],
1783- [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
1784- [AC_CHECK_LIB([dld], [dld_link],
1785- [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
1786- ])
1787- ])
1788- ])
1789- ])
1790- ])
1791- ;;
1792- esac
1793-
1794- if test "x$lt_cv_dlopen" != xno; then
1795- enable_dlopen=yes
1796- else
1797- enable_dlopen=no
1798- fi
1799-
1800- case $lt_cv_dlopen in
1801- dlopen)
1802- save_CPPFLAGS="$CPPFLAGS"
1803- test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
1804-
1805- save_LDFLAGS="$LDFLAGS"
1806- wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
1807-
1808- save_LIBS="$LIBS"
1809- LIBS="$lt_cv_dlopen_libs $LIBS"
1810-
1811- AC_CACHE_CHECK([whether a program can dlopen itself],
1812- lt_cv_dlopen_self, [dnl
1813- _LT_TRY_DLOPEN_SELF(
1814- lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
1815- lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
1816- ])
1817-
1818- if test "x$lt_cv_dlopen_self" = xyes; then
1819- wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
1820- AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
1821- lt_cv_dlopen_self_static, [dnl
1822- _LT_TRY_DLOPEN_SELF(
1823- lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
1824- lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
1825- ])
1826- fi
1827-
1828- CPPFLAGS="$save_CPPFLAGS"
1829- LDFLAGS="$save_LDFLAGS"
1830- LIBS="$save_LIBS"
1831- ;;
1832- esac
1833-
1834- case $lt_cv_dlopen_self in
1835- yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
1836- *) enable_dlopen_self=unknown ;;
1837- esac
1838-
1839- case $lt_cv_dlopen_self_static in
1840- yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
1841- *) enable_dlopen_self_static=unknown ;;
1842- esac
1843-fi
1844-_LT_DECL([dlopen_support], [enable_dlopen], [0],
1845- [Whether dlopen is supported])
1846-_LT_DECL([dlopen_self], [enable_dlopen_self], [0],
1847- [Whether dlopen of programs is supported])
1848-_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
1849- [Whether dlopen of statically linked programs is supported])
1850-])# LT_SYS_DLOPEN_SELF
1851-
1852-# Old name:
1853-AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
1854-dnl aclocal-1.4 backwards compatibility:
1855-dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
1856-
1857-
1858-# _LT_COMPILER_C_O([TAGNAME])
1859-# ---------------------------
1860-# Check to see if options -c and -o are simultaneously supported by compiler.
1861-# This macro does not hard code the compiler like AC_PROG_CC_C_O.
1862-m4_defun([_LT_COMPILER_C_O],
1863-[m4_require([_LT_DECL_SED])dnl
1864-m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1865-m4_require([_LT_TAG_COMPILER])dnl
1866-AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
1867- [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
1868- [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
1869- $RM -r conftest 2>/dev/null
1870- mkdir conftest
1871- cd conftest
1872- mkdir out
1873- echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1874-
1875- lt_compiler_flag="-o out/conftest2.$ac_objext"
1876- # Insert the option either (1) after the last *FLAGS variable, or
1877- # (2) before a word containing "conftest.", or (3) at the end.
1878- # Note that $ac_compile itself does not contain backslashes and begins
1879- # with a dollar sign (not a hyphen), so the echo should work correctly.
1880- lt_compile=`echo "$ac_compile" | $SED \
1881- -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1882- -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1883- -e 's:$: $lt_compiler_flag:'`
1884- (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1885- (eval "$lt_compile" 2>out/conftest.err)
1886- ac_status=$?
1887- cat out/conftest.err >&AS_MESSAGE_LOG_FD
1888- echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1889- if (exit $ac_status) && test -s out/conftest2.$ac_objext
1890- then
1891- # The compiler can only warn and ignore the option if not recognized
1892- # So say no if there are warnings
1893- $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
1894- $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
1895- if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
1896- _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
1897- fi
1898- fi
1899- chmod u+w . 2>&AS_MESSAGE_LOG_FD
1900- $RM conftest*
1901- # SGI C++ compiler will create directory out/ii_files/ for
1902- # template instantiation
1903- test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
1904- $RM out/* && rmdir out
1905- cd ..
1906- $RM -r conftest
1907- $RM conftest*
1908-])
1909-_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
1910- [Does compiler simultaneously support -c and -o options?])
1911-])# _LT_COMPILER_C_O
1912-
1913-
1914-# _LT_COMPILER_FILE_LOCKS([TAGNAME])
1915-# ----------------------------------
1916-# Check to see if we can do hard links to lock some files if needed
1917-m4_defun([_LT_COMPILER_FILE_LOCKS],
1918-[m4_require([_LT_ENABLE_LOCK])dnl
1919-m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1920-_LT_COMPILER_C_O([$1])
1921-
1922-hard_links="nottested"
1923-if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
1924- # do not overwrite the value of need_locks provided by the user
1925- AC_MSG_CHECKING([if we can lock with hard links])
1926- hard_links=yes
1927- $RM conftest*
1928- ln conftest.a conftest.b 2>/dev/null && hard_links=no
1929- touch conftest.a
1930- ln conftest.a conftest.b 2>&5 || hard_links=no
1931- ln conftest.a conftest.b 2>/dev/null && hard_links=no
1932- AC_MSG_RESULT([$hard_links])
1933- if test "$hard_links" = no; then
1934- AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
1935- need_locks=warn
1936- fi
1937-else
1938- need_locks=no
1939-fi
1940-_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
1941-])# _LT_COMPILER_FILE_LOCKS
1942-
1943-
1944-# _LT_CHECK_OBJDIR
1945-# ----------------
1946-m4_defun([_LT_CHECK_OBJDIR],
1947-[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
1948-[rm -f .libs 2>/dev/null
1949-mkdir .libs 2>/dev/null
1950-if test -d .libs; then
1951- lt_cv_objdir=.libs
1952-else
1953- # MS-DOS does not allow filenames that begin with a dot.
1954- lt_cv_objdir=_libs
1955-fi
1956-rmdir .libs 2>/dev/null])
1957-objdir=$lt_cv_objdir
1958-_LT_DECL([], [objdir], [0],
1959- [The name of the directory that contains temporary libtool files])dnl
1960-m4_pattern_allow([LT_OBJDIR])dnl
1961-AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
1962- [Define to the sub-directory in which libtool stores uninstalled libraries.])
1963-])# _LT_CHECK_OBJDIR
1964-
1965-
1966-# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
1967-# --------------------------------------
1968-# Check hardcoding attributes.
1969-m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
1970-[AC_MSG_CHECKING([how to hardcode library paths into programs])
1971-_LT_TAGVAR(hardcode_action, $1)=
1972-if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
1973- test -n "$_LT_TAGVAR(runpath_var, $1)" ||
1974- test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
1975-
1976- # We can hardcode non-existent directories.
1977- if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
1978- # If the only mechanism to avoid hardcoding is shlibpath_var, we
1979- # have to relink, otherwise we might link with an installed library
1980- # when we should be linking with a yet-to-be-installed one
1981- ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
1982- test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
1983- # Linking always hardcodes the temporary library directory.
1984- _LT_TAGVAR(hardcode_action, $1)=relink
1985- else
1986- # We can link without hardcoding, and we can hardcode nonexisting dirs.
1987- _LT_TAGVAR(hardcode_action, $1)=immediate
1988- fi
1989-else
1990- # We cannot hardcode anything, or else we can only hardcode existing
1991- # directories.
1992- _LT_TAGVAR(hardcode_action, $1)=unsupported
1993-fi
1994-AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
1995-
1996-if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
1997- test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
1998- # Fast installation is not supported
1999- enable_fast_install=no
2000-elif test "$shlibpath_overrides_runpath" = yes ||
2001- test "$enable_shared" = no; then
2002- # Fast installation is not necessary
2003- enable_fast_install=needless
2004-fi
2005-_LT_TAGDECL([], [hardcode_action], [0],
2006- [How to hardcode a shared library path into an executable])
2007-])# _LT_LINKER_HARDCODE_LIBPATH
2008-
2009-
2010-# _LT_CMD_STRIPLIB
2011-# ----------------
2012-m4_defun([_LT_CMD_STRIPLIB],
2013-[m4_require([_LT_DECL_EGREP])
2014-striplib=
2015-old_striplib=
2016-AC_MSG_CHECKING([whether stripping libraries is possible])
2017-if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
2018- test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
2019- test -z "$striplib" && striplib="$STRIP --strip-unneeded"
2020- AC_MSG_RESULT([yes])
2021-else
2022-# FIXME - insert some real tests, host_os isn't really good enough
2023- case $host_os in
2024- darwin*)
2025- if test -n "$STRIP" ; then
2026- striplib="$STRIP -x"
2027- old_striplib="$STRIP -S"
2028- AC_MSG_RESULT([yes])
2029- else
2030- AC_MSG_RESULT([no])
2031- fi
2032- ;;
2033- *)
2034- AC_MSG_RESULT([no])
2035- ;;
2036- esac
2037-fi
2038-_LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
2039-_LT_DECL([], [striplib], [1])
2040-])# _LT_CMD_STRIPLIB
2041-
2042-
2043-# _LT_SYS_DYNAMIC_LINKER([TAG])
2044-# -----------------------------
2045-# PORTME Fill in your ld.so characteristics
2046-m4_defun([_LT_SYS_DYNAMIC_LINKER],
2047-[AC_REQUIRE([AC_CANONICAL_HOST])dnl
2048-m4_require([_LT_DECL_EGREP])dnl
2049-m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2050-m4_require([_LT_DECL_OBJDUMP])dnl
2051-m4_require([_LT_DECL_SED])dnl
2052-AC_MSG_CHECKING([dynamic linker characteristics])
2053-m4_if([$1],
2054- [], [
2055-if test "$GCC" = yes; then
2056- case $host_os in
2057- darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
2058- *) lt_awk_arg="/^libraries:/" ;;
2059- esac
2060- lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2061- if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
2062- # if the path contains ";" then we assume it to be the separator
2063- # otherwise default to the standard path separator (i.e. ":") - it is
2064- # assumed that no part of a normal pathname contains ";" but that should
2065- # okay in the real world where ";" in dirpaths is itself problematic.
2066- lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
2067- else
2068- lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2069- fi
2070- # Ok, now we have the path, separated by spaces, we can step through it
2071- # and add multilib dir if necessary.
2072- lt_tmp_lt_search_path_spec=
2073- lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
2074- for lt_sys_path in $lt_search_path_spec; do
2075- if test -d "$lt_sys_path/$lt_multi_os_dir"; then
2076- lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
2077- else
2078- test -d "$lt_sys_path" && \
2079- lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
2080- fi
2081- done
2082- lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
2083-BEGIN {RS=" "; FS="/|\n";} {
2084- lt_foo="";
2085- lt_count=0;
2086- for (lt_i = NF; lt_i > 0; lt_i--) {
2087- if ($lt_i != "" && $lt_i != ".") {
2088- if ($lt_i == "..") {
2089- lt_count++;
2090- } else {
2091- if (lt_count == 0) {
2092- lt_foo="/" $lt_i lt_foo;
2093- } else {
2094- lt_count--;
2095- }
2096- }
2097- }
2098- }
2099- if (lt_foo != "") { lt_freq[[lt_foo]]++; }
2100- if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
2101-}'`
2102- sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
2103-else
2104- sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
2105-fi])
2106-library_names_spec=
2107-libname_spec='lib$name'
2108-soname_spec=
2109-shrext_cmds=".so"
2110-postinstall_cmds=
2111-postuninstall_cmds=
2112-finish_cmds=
2113-finish_eval=
2114-shlibpath_var=
2115-shlibpath_overrides_runpath=unknown
2116-version_type=none
2117-dynamic_linker="$host_os ld.so"
2118-sys_lib_dlsearch_path_spec="/lib /usr/lib"
2119-need_lib_prefix=unknown
2120-hardcode_into_libs=no
2121-
2122-# when you set need_version to no, make sure it does not cause -set_version
2123-# flags to be left without arguments
2124-need_version=unknown
2125-
2126-case $host_os in
2127-aix3*)
2128- version_type=linux
2129- library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
2130- shlibpath_var=LIBPATH
2131-
2132- # AIX 3 has no versioning support, so we append a major version to the name.
2133- soname_spec='${libname}${release}${shared_ext}$major'
2134- ;;
2135-
2136-aix[[4-9]]*)
2137- version_type=linux
2138- need_lib_prefix=no
2139- need_version=no
2140- hardcode_into_libs=yes
2141- if test "$host_cpu" = ia64; then
2142- # AIX 5 supports IA64
2143- library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
2144- shlibpath_var=LD_LIBRARY_PATH
2145- else
2146- # With GCC up to 2.95.x, collect2 would create an import file
2147- # for dependence libraries. The import file would start with
2148- # the line `#! .'. This would cause the generated library to
2149- # depend on `.', always an invalid library. This was fixed in
2150- # development snapshots of GCC prior to 3.0.
2151- case $host_os in
2152- aix4 | aix4.[[01]] | aix4.[[01]].*)
2153- if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
2154- echo ' yes '
2155- echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
2156- :
2157- else
2158- can_build_shared=no
2159- fi
2160- ;;
2161- esac
2162- # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
2163- # soname into executable. Probably we can add versioning support to
2164- # collect2, so additional links can be useful in future.
2165- if test "$aix_use_runtimelinking" = yes; then
2166- # If using run time linking (on AIX 4.2 or later) use lib<name>.so
2167- # instead of lib<name>.a to let people know that these are not
2168- # typical AIX shared libraries.
2169- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2170- else
2171- # We preserve .a as extension for shared libraries through AIX4.2
2172- # and later when we are not doing run time linking.
2173- library_names_spec='${libname}${release}.a $libname.a'
2174- soname_spec='${libname}${release}${shared_ext}$major'
2175- fi
2176- shlibpath_var=LIBPATH
2177- fi
2178- ;;
2179-
2180-amigaos*)
2181- case $host_cpu in
2182- powerpc)
2183- # Since July 2007 AmigaOS4 officially supports .so libraries.
2184- # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
2185- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2186- ;;
2187- m68k)
2188- library_names_spec='$libname.ixlibrary $libname.a'
2189- # Create ${libname}_ixlibrary.a entries in /sys/libs.
2190- finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
2191- ;;
2192- esac
2193- ;;
2194-
2195-beos*)
2196- library_names_spec='${libname}${shared_ext}'
2197- dynamic_linker="$host_os ld.so"
2198- shlibpath_var=LIBRARY_PATH
2199- ;;
2200-
2201-bsdi[[45]]*)
2202- version_type=linux
2203- need_version=no
2204- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2205- soname_spec='${libname}${release}${shared_ext}$major'
2206- finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
2207- shlibpath_var=LD_LIBRARY_PATH
2208- sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
2209- sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
2210- # the default ld.so.conf also contains /usr/contrib/lib and
2211- # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
2212- # libtool to hard-code these into programs
2213- ;;
2214-
2215-cygwin* | mingw* | pw32* | cegcc*)
2216- version_type=windows
2217- shrext_cmds=".dll"
2218- need_version=no
2219- need_lib_prefix=no
2220-
2221- case $GCC,$host_os in
2222- yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
2223- library_names_spec='$libname.dll.a'
2224- # DLL is installed to $(libdir)/../bin by postinstall_cmds
2225- postinstall_cmds='base_file=`basename \${file}`~
2226- dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
2227- dldir=$destdir/`dirname \$dlpath`~
2228- test -d \$dldir || mkdir -p \$dldir~
2229- $install_prog $dir/$dlname \$dldir/$dlname~
2230- chmod a+x \$dldir/$dlname~
2231- if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
2232- eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
2233- fi'
2234- postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2235- dlpath=$dir/\$dldll~
2236- $RM \$dlpath'
2237- shlibpath_overrides_runpath=yes
2238-
2239- case $host_os in
2240- cygwin*)
2241- # Cygwin DLLs use 'cyg' prefix rather than 'lib'
2242- soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2243- sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
2244- ;;
2245- mingw* | cegcc*)
2246- # MinGW DLLs use traditional 'lib' prefix
2247- soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2248- sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2249- if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
2250- # It is most probably a Windows format PATH printed by
2251- # mingw gcc, but we are running on Cygwin. Gcc prints its search
2252- # path with ; separators, and with drive letters. We can handle the
2253- # drive letters (cygwin fileutils understands them), so leave them,
2254- # especially as we might pass files found there to a mingw objdump,
2255- # which wouldn't understand a cygwinified path. Ahh.
2256- sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2257- else
2258- sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2259- fi
2260- ;;
2261- pw32*)
2262- # pw32 DLLs use 'pw' prefix rather than 'lib'
2263- library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2264- ;;
2265- esac
2266- ;;
2267-
2268- *)
2269- library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
2270- ;;
2271- esac
2272- dynamic_linker='Win32 ld.exe'
2273- # FIXME: first we should search . and the directory the executable is in
2274- shlibpath_var=PATH
2275- ;;
2276-
2277-darwin* | rhapsody*)
2278- dynamic_linker="$host_os dyld"
2279- version_type=darwin
2280- need_lib_prefix=no
2281- need_version=no
2282- library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
2283- soname_spec='${libname}${release}${major}$shared_ext'
2284- shlibpath_overrides_runpath=yes
2285- shlibpath_var=DYLD_LIBRARY_PATH
2286- shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
2287-m4_if([$1], [],[
2288- sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
2289- sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
2290- ;;
2291-
2292-dgux*)
2293- version_type=linux
2294- need_lib_prefix=no
2295- need_version=no
2296- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
2297- soname_spec='${libname}${release}${shared_ext}$major'
2298- shlibpath_var=LD_LIBRARY_PATH
2299- ;;
2300-
2301-freebsd1*)
2302- dynamic_linker=no
2303- ;;
2304-
2305-freebsd* | dragonfly*)
2306- # DragonFly does not have aout. When/if they implement a new
2307- # versioning mechanism, adjust this.
2308- if test -x /usr/bin/objformat; then
2309- objformat=`/usr/bin/objformat`
2310- else
2311- case $host_os in
2312- freebsd[[123]]*) objformat=aout ;;
2313- *) objformat=elf ;;
2314- esac
2315- fi
2316- version_type=freebsd-$objformat
2317- case $version_type in
2318- freebsd-elf*)
2319- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
2320- need_version=no
2321- need_lib_prefix=no
2322- ;;
2323- freebsd-*)
2324- library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
2325- need_version=yes
2326- ;;
2327- esac
2328- shlibpath_var=LD_LIBRARY_PATH
2329- case $host_os in
2330- freebsd2*)
2331- shlibpath_overrides_runpath=yes
2332- ;;
2333- freebsd3.[[01]]* | freebsdelf3.[[01]]*)
2334- shlibpath_overrides_runpath=yes
2335- hardcode_into_libs=yes
2336- ;;
2337- freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
2338- freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
2339- shlibpath_overrides_runpath=no
2340- hardcode_into_libs=yes
2341- ;;
2342- *) # from 4.6 on, and DragonFly
2343- shlibpath_overrides_runpath=yes
2344- hardcode_into_libs=yes
2345- ;;
2346- esac
2347- ;;
2348-
2349-gnu*)
2350- version_type=linux
2351- need_lib_prefix=no
2352- need_version=no
2353- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
2354- soname_spec='${libname}${release}${shared_ext}$major'
2355- shlibpath_var=LD_LIBRARY_PATH
2356- hardcode_into_libs=yes
2357- ;;
2358-
2359-hpux9* | hpux10* | hpux11*)
2360- # Give a soname corresponding to the major version so that dld.sl refuses to
2361- # link against other versions.
2362- version_type=sunos
2363- need_lib_prefix=no
2364- need_version=no
2365- case $host_cpu in
2366- ia64*)
2367- shrext_cmds='.so'
2368- hardcode_into_libs=yes
2369- dynamic_linker="$host_os dld.so"
2370- shlibpath_var=LD_LIBRARY_PATH
2371- shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2372- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2373- soname_spec='${libname}${release}${shared_ext}$major'
2374- if test "X$HPUX_IA64_MODE" = X32; then
2375- sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
2376- else
2377- sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
2378- fi
2379- sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2380- ;;
2381- hppa*64*)
2382- shrext_cmds='.sl'
2383- hardcode_into_libs=yes
2384- dynamic_linker="$host_os dld.sl"
2385- shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
2386- shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2387- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2388- soname_spec='${libname}${release}${shared_ext}$major'
2389- sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
2390- sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2391- ;;
2392- *)
2393- shrext_cmds='.sl'
2394- dynamic_linker="$host_os dld.sl"
2395- shlibpath_var=SHLIB_PATH
2396- shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
2397- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2398- soname_spec='${libname}${release}${shared_ext}$major'
2399- ;;
2400- esac
2401- # HP-UX runs *really* slowly unless shared libraries are mode 555.
2402- postinstall_cmds='chmod 555 $lib'
2403- ;;
2404-
2405-interix[[3-9]]*)
2406- version_type=linux
2407- need_lib_prefix=no
2408- need_version=no
2409- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2410- soname_spec='${libname}${release}${shared_ext}$major'
2411- dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
2412- shlibpath_var=LD_LIBRARY_PATH
2413- shlibpath_overrides_runpath=no
2414- hardcode_into_libs=yes
2415- ;;
2416-
2417-irix5* | irix6* | nonstopux*)
2418- case $host_os in
2419- nonstopux*) version_type=nonstopux ;;
2420- *)
2421- if test "$lt_cv_prog_gnu_ld" = yes; then
2422- version_type=linux
2423- else
2424- version_type=irix
2425- fi ;;
2426- esac
2427- need_lib_prefix=no
2428- need_version=no
2429- soname_spec='${libname}${release}${shared_ext}$major'
2430- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
2431- case $host_os in
2432- irix5* | nonstopux*)
2433- libsuff= shlibsuff=
2434- ;;
2435- *)
2436- case $LD in # libtool.m4 will add one of these switches to LD
2437- *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
2438- libsuff= shlibsuff= libmagic=32-bit;;
2439- *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
2440- libsuff=32 shlibsuff=N32 libmagic=N32;;
2441- *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
2442- libsuff=64 shlibsuff=64 libmagic=64-bit;;
2443- *) libsuff= shlibsuff= libmagic=never-match;;
2444- esac
2445- ;;
2446- esac
2447- shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
2448- shlibpath_overrides_runpath=no
2449- sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
2450- sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
2451- hardcode_into_libs=yes
2452- ;;
2453-
2454-# No shared lib support for Linux oldld, aout, or coff.
2455-linux*oldld* | linux*aout* | linux*coff*)
2456- dynamic_linker=no
2457- ;;
2458-
2459-# This must be Linux ELF.
2460-linux* | k*bsd*-gnu)
2461- version_type=linux
2462- need_lib_prefix=no
2463- need_version=no
2464- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2465- soname_spec='${libname}${release}${shared_ext}$major'
2466- finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
2467- shlibpath_var=LD_LIBRARY_PATH
2468- shlibpath_overrides_runpath=no
2469- # Some binutils ld are patched to set DT_RUNPATH
2470- save_LDFLAGS=$LDFLAGS
2471- save_libdir=$libdir
2472- eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
2473- LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
2474- AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
2475- [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
2476- [shlibpath_overrides_runpath=yes])])
2477- LDFLAGS=$save_LDFLAGS
2478- libdir=$save_libdir
2479-
2480- # This implies no fast_install, which is unacceptable.
2481- # Some rework will be needed to allow for fast_install
2482- # before this can be enabled.
2483- hardcode_into_libs=yes
2484-
2485- # Append ld.so.conf contents to the search path
2486- if test -f /etc/ld.so.conf; then
2487- lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
2488- sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
2489- fi
2490-
2491- # We used to test for /lib/ld.so.1 and disable shared libraries on
2492- # powerpc, because MkLinux only supported shared libraries with the
2493- # GNU dynamic linker. Since this was broken with cross compilers,
2494- # most powerpc-linux boxes support dynamic linking these days and
2495- # people can always --disable-shared, the test was removed, and we
2496- # assume the GNU/Linux dynamic linker is in use.
2497- dynamic_linker='GNU/Linux ld.so'
2498- ;;
2499-
2500-netbsd*)
2501- version_type=sunos
2502- need_lib_prefix=no
2503- need_version=no
2504- if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
2505- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2506- finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2507- dynamic_linker='NetBSD (a.out) ld.so'
2508- else
2509- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2510- soname_spec='${libname}${release}${shared_ext}$major'
2511- dynamic_linker='NetBSD ld.elf_so'
2512- fi
2513- shlibpath_var=LD_LIBRARY_PATH
2514- shlibpath_overrides_runpath=yes
2515- hardcode_into_libs=yes
2516- ;;
2517-
2518-newsos6)
2519- version_type=linux
2520- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2521- shlibpath_var=LD_LIBRARY_PATH
2522- shlibpath_overrides_runpath=yes
2523- ;;
2524-
2525-*nto* | *qnx*)
2526- version_type=qnx
2527- need_lib_prefix=no
2528- need_version=no
2529- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2530- soname_spec='${libname}${release}${shared_ext}$major'
2531- shlibpath_var=LD_LIBRARY_PATH
2532- shlibpath_overrides_runpath=no
2533- hardcode_into_libs=yes
2534- dynamic_linker='ldqnx.so'
2535- ;;
2536-
2537-openbsd*)
2538- version_type=sunos
2539- sys_lib_dlsearch_path_spec="/usr/lib"
2540- need_lib_prefix=no
2541- # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
2542- case $host_os in
2543- openbsd3.3 | openbsd3.3.*) need_version=yes ;;
2544- *) need_version=no ;;
2545- esac
2546- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2547- finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2548- shlibpath_var=LD_LIBRARY_PATH
2549- if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2550- case $host_os in
2551- openbsd2.[[89]] | openbsd2.[[89]].*)
2552- shlibpath_overrides_runpath=no
2553- ;;
2554- *)
2555- shlibpath_overrides_runpath=yes
2556- ;;
2557- esac
2558- else
2559- shlibpath_overrides_runpath=yes
2560- fi
2561- ;;
2562-
2563-os2*)
2564- libname_spec='$name'
2565- shrext_cmds=".dll"
2566- need_lib_prefix=no
2567- library_names_spec='$libname${shared_ext} $libname.a'
2568- dynamic_linker='OS/2 ld.exe'
2569- shlibpath_var=LIBPATH
2570- ;;
2571-
2572-osf3* | osf4* | osf5*)
2573- version_type=osf
2574- need_lib_prefix=no
2575- need_version=no
2576- soname_spec='${libname}${release}${shared_ext}$major'
2577- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2578- shlibpath_var=LD_LIBRARY_PATH
2579- sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
2580- sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
2581- ;;
2582-
2583-rdos*)
2584- dynamic_linker=no
2585- ;;
2586-
2587-solaris*)
2588- version_type=linux
2589- need_lib_prefix=no
2590- need_version=no
2591- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2592- soname_spec='${libname}${release}${shared_ext}$major'
2593- shlibpath_var=LD_LIBRARY_PATH
2594- shlibpath_overrides_runpath=yes
2595- hardcode_into_libs=yes
2596- # ldd complains unless libraries are executable
2597- postinstall_cmds='chmod +x $lib'
2598- ;;
2599-
2600-sunos4*)
2601- version_type=sunos
2602- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2603- finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
2604- shlibpath_var=LD_LIBRARY_PATH
2605- shlibpath_overrides_runpath=yes
2606- if test "$with_gnu_ld" = yes; then
2607- need_lib_prefix=no
2608- fi
2609- need_version=yes
2610- ;;
2611-
2612-sysv4 | sysv4.3*)
2613- version_type=linux
2614- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2615- soname_spec='${libname}${release}${shared_ext}$major'
2616- shlibpath_var=LD_LIBRARY_PATH
2617- case $host_vendor in
2618- sni)
2619- shlibpath_overrides_runpath=no
2620- need_lib_prefix=no
2621- runpath_var=LD_RUN_PATH
2622- ;;
2623- siemens)
2624- need_lib_prefix=no
2625- ;;
2626- motorola)
2627- need_lib_prefix=no
2628- need_version=no
2629- shlibpath_overrides_runpath=no
2630- sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
2631- ;;
2632- esac
2633- ;;
2634-
2635-sysv4*MP*)
2636- if test -d /usr/nec ;then
2637- version_type=linux
2638- library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
2639- soname_spec='$libname${shared_ext}.$major'
2640- shlibpath_var=LD_LIBRARY_PATH
2641- fi
2642- ;;
2643-
2644-sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
2645- version_type=freebsd-elf
2646- need_lib_prefix=no
2647- need_version=no
2648- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
2649- soname_spec='${libname}${release}${shared_ext}$major'
2650- shlibpath_var=LD_LIBRARY_PATH
2651- shlibpath_overrides_runpath=yes
2652- hardcode_into_libs=yes
2653- if test "$with_gnu_ld" = yes; then
2654- sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
2655- else
2656- sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
2657- case $host_os in
2658- sco3.2v5*)
2659- sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
2660- ;;
2661- esac
2662- fi
2663- sys_lib_dlsearch_path_spec='/usr/lib'
2664- ;;
2665-
2666-tpf*)
2667- # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
2668- version_type=linux
2669- need_lib_prefix=no
2670- need_version=no
2671- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2672- shlibpath_var=LD_LIBRARY_PATH
2673- shlibpath_overrides_runpath=no
2674- hardcode_into_libs=yes
2675- ;;
2676-
2677-uts4*)
2678- version_type=linux
2679- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2680- soname_spec='${libname}${release}${shared_ext}$major'
2681- shlibpath_var=LD_LIBRARY_PATH
2682- ;;
2683-
2684-*)
2685- dynamic_linker=no
2686- ;;
2687-esac
2688-AC_MSG_RESULT([$dynamic_linker])
2689-test "$dynamic_linker" = no && can_build_shared=no
2690-
2691-variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
2692-if test "$GCC" = yes; then
2693- variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
2694-fi
2695-
2696-if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
2697- sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
2698-fi
2699-if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
2700- sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
2701-fi
2702-
2703-_LT_DECL([], [variables_saved_for_relink], [1],
2704- [Variables whose values should be saved in libtool wrapper scripts and
2705- restored at link time])
2706-_LT_DECL([], [need_lib_prefix], [0],
2707- [Do we need the "lib" prefix for modules?])
2708-_LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
2709-_LT_DECL([], [version_type], [0], [Library versioning type])
2710-_LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
2711-_LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
2712-_LT_DECL([], [shlibpath_overrides_runpath], [0],
2713- [Is shlibpath searched before the hard-coded library search path?])
2714-_LT_DECL([], [libname_spec], [1], [Format of library name prefix])
2715-_LT_DECL([], [library_names_spec], [1],
2716- [[List of archive names. First name is the real one, the rest are links.
2717- The last name is the one that the linker finds with -lNAME]])
2718-_LT_DECL([], [soname_spec], [1],
2719- [[The coded name of the library, if different from the real name]])
2720-_LT_DECL([], [postinstall_cmds], [2],
2721- [Command to use after installation of a shared archive])
2722-_LT_DECL([], [postuninstall_cmds], [2],
2723- [Command to use after uninstallation of a shared archive])
2724-_LT_DECL([], [finish_cmds], [2],
2725- [Commands used to finish a libtool library installation in a directory])
2726-_LT_DECL([], [finish_eval], [1],
2727- [[As "finish_cmds", except a single script fragment to be evaled but
2728- not shown]])
2729-_LT_DECL([], [hardcode_into_libs], [0],
2730- [Whether we should hardcode library paths into libraries])
2731-_LT_DECL([], [sys_lib_search_path_spec], [2],
2732- [Compile-time system search path for libraries])
2733-_LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
2734- [Run-time system search path for libraries])
2735-])# _LT_SYS_DYNAMIC_LINKER
2736-
2737-
2738-# _LT_PATH_TOOL_PREFIX(TOOL)
2739-# --------------------------
2740-# find a file program which can recognize shared library
2741-AC_DEFUN([_LT_PATH_TOOL_PREFIX],
2742-[m4_require([_LT_DECL_EGREP])dnl
2743-AC_MSG_CHECKING([for $1])
2744-AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
2745-[case $MAGIC_CMD in
2746-[[\\/*] | ?:[\\/]*])
2747- lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2748- ;;
2749-*)
2750- lt_save_MAGIC_CMD="$MAGIC_CMD"
2751- lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2752-dnl $ac_dummy forces splitting on constant user-supplied paths.
2753-dnl POSIX.2 word splitting is done only on the output of word expansions,
2754-dnl not every word. This closes a longstanding sh security hole.
2755- ac_dummy="m4_if([$2], , $PATH, [$2])"
2756- for ac_dir in $ac_dummy; do
2757- IFS="$lt_save_ifs"
2758- test -z "$ac_dir" && ac_dir=.
2759- if test -f $ac_dir/$1; then
2760- lt_cv_path_MAGIC_CMD="$ac_dir/$1"
2761- if test -n "$file_magic_test_file"; then
2762- case $deplibs_check_method in
2763- "file_magic "*)
2764- file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
2765- MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2766- if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2767- $EGREP "$file_magic_regex" > /dev/null; then
2768- :
2769- else
2770- cat <<_LT_EOF 1>&2
2771-
2772-*** Warning: the command libtool uses to detect shared libraries,
2773-*** $file_magic_cmd, produces output that libtool cannot recognize.
2774-*** The result is that libtool may fail to recognize shared libraries
2775-*** as such. This will affect the creation of libtool libraries that
2776-*** depend on shared libraries, but programs linked with such libtool
2777-*** libraries will work regardless of this problem. Nevertheless, you
2778-*** may want to report the problem to your system manager and/or to
2779-*** bug-libtool@gnu.org
2780-
2781-_LT_EOF
2782- fi ;;
2783- esac
2784- fi
2785- break
2786- fi
2787- done
2788- IFS="$lt_save_ifs"
2789- MAGIC_CMD="$lt_save_MAGIC_CMD"
2790- ;;
2791-esac])
2792-MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2793-if test -n "$MAGIC_CMD"; then
2794- AC_MSG_RESULT($MAGIC_CMD)
2795-else
2796- AC_MSG_RESULT(no)
2797-fi
2798-_LT_DECL([], [MAGIC_CMD], [0],
2799- [Used to examine libraries when file_magic_cmd begins with "file"])dnl
2800-])# _LT_PATH_TOOL_PREFIX
2801-
2802-# Old name:
2803-AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
2804-dnl aclocal-1.4 backwards compatibility:
2805-dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
2806-
2807-
2808-# _LT_PATH_MAGIC
2809-# --------------
2810-# find a file program which can recognize a shared library
2811-m4_defun([_LT_PATH_MAGIC],
2812-[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
2813-if test -z "$lt_cv_path_MAGIC_CMD"; then
2814- if test -n "$ac_tool_prefix"; then
2815- _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
2816- else
2817- MAGIC_CMD=:
2818- fi
2819-fi
2820-])# _LT_PATH_MAGIC
2821-
2822-
2823-# LT_PATH_LD
2824-# ----------
2825-# find the pathname to the GNU or non-GNU linker
2826-AC_DEFUN([LT_PATH_LD],
2827-[AC_REQUIRE([AC_PROG_CC])dnl
2828-AC_REQUIRE([AC_CANONICAL_HOST])dnl
2829-AC_REQUIRE([AC_CANONICAL_BUILD])dnl
2830-m4_require([_LT_DECL_SED])dnl
2831-m4_require([_LT_DECL_EGREP])dnl
2832-
2833-AC_ARG_WITH([gnu-ld],
2834- [AS_HELP_STRING([--with-gnu-ld],
2835- [assume the C compiler uses GNU ld @<:@default=no@:>@])],
2836- [test "$withval" = no || with_gnu_ld=yes],
2837- [with_gnu_ld=no])dnl
2838-
2839-ac_prog=ld
2840-if test "$GCC" = yes; then
2841- # Check if gcc -print-prog-name=ld gives a path.
2842- AC_MSG_CHECKING([for ld used by $CC])
2843- case $host in
2844- *-*-mingw*)
2845- # gcc leaves a trailing carriage return which upsets mingw
2846- ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2847- *)
2848- ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2849- esac
2850- case $ac_prog in
2851- # Accept absolute paths.
2852- [[\\/]]* | ?:[[\\/]]*)
2853- re_direlt='/[[^/]][[^/]]*/\.\./'
2854- # Canonicalize the pathname of ld
2855- ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
2856- while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
2857- ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
2858- done
2859- test -z "$LD" && LD="$ac_prog"
2860- ;;
2861- "")
2862- # If it fails, then pretend we aren't using GCC.
2863- ac_prog=ld
2864- ;;
2865- *)
2866- # If it is relative, then search for the first ld in PATH.
2867- with_gnu_ld=unknown
2868- ;;
2869- esac
2870-elif test "$with_gnu_ld" = yes; then
2871- AC_MSG_CHECKING([for GNU ld])
2872-else
2873- AC_MSG_CHECKING([for non-GNU ld])
2874-fi
2875-AC_CACHE_VAL(lt_cv_path_LD,
2876-[if test -z "$LD"; then
2877- lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2878- for ac_dir in $PATH; do
2879- IFS="$lt_save_ifs"
2880- test -z "$ac_dir" && ac_dir=.
2881- if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2882- lt_cv_path_LD="$ac_dir/$ac_prog"
2883- # Check to see if the program is GNU ld. I'd rather use --version,
2884- # but apparently some variants of GNU ld only accept -v.
2885- # Break only if it was the GNU/non-GNU ld that we prefer.
2886- case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
2887- *GNU* | *'with BFD'*)
2888- test "$with_gnu_ld" != no && break
2889- ;;
2890- *)
2891- test "$with_gnu_ld" != yes && break
2892- ;;
2893- esac
2894- fi
2895- done
2896- IFS="$lt_save_ifs"
2897-else
2898- lt_cv_path_LD="$LD" # Let the user override the test with a path.
2899-fi])
2900-LD="$lt_cv_path_LD"
2901-if test -n "$LD"; then
2902- AC_MSG_RESULT($LD)
2903-else
2904- AC_MSG_RESULT(no)
2905-fi
2906-test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
2907-_LT_PATH_LD_GNU
2908-AC_SUBST([LD])
2909-
2910-_LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
2911-])# LT_PATH_LD
2912-
2913-# Old names:
2914-AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
2915-AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
2916-dnl aclocal-1.4 backwards compatibility:
2917-dnl AC_DEFUN([AM_PROG_LD], [])
2918-dnl AC_DEFUN([AC_PROG_LD], [])
2919-
2920-
2921-# _LT_PATH_LD_GNU
2922-#- --------------
2923-m4_defun([_LT_PATH_LD_GNU],
2924-[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
2925-[# I'd rather use --version here, but apparently some GNU lds only accept -v.
2926-case `$LD -v 2>&1 </dev/null` in
2927-*GNU* | *'with BFD'*)
2928- lt_cv_prog_gnu_ld=yes
2929- ;;
2930-*)
2931- lt_cv_prog_gnu_ld=no
2932- ;;
2933-esac])
2934-with_gnu_ld=$lt_cv_prog_gnu_ld
2935-])# _LT_PATH_LD_GNU
2936-
2937-
2938-# _LT_CMD_RELOAD
2939-# --------------
2940-# find reload flag for linker
2941-# -- PORTME Some linkers may need a different reload flag.
2942-m4_defun([_LT_CMD_RELOAD],
2943-[AC_CACHE_CHECK([for $LD option to reload object files],
2944- lt_cv_ld_reload_flag,
2945- [lt_cv_ld_reload_flag='-r'])
2946-reload_flag=$lt_cv_ld_reload_flag
2947-case $reload_flag in
2948-"" | " "*) ;;
2949-*) reload_flag=" $reload_flag" ;;
2950-esac
2951-reload_cmds='$LD$reload_flag -o $output$reload_objs'
2952-case $host_os in
2953- darwin*)
2954- if test "$GCC" = yes; then
2955- reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
2956- else
2957- reload_cmds='$LD$reload_flag -o $output$reload_objs'
2958- fi
2959- ;;
2960-esac
2961-_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
2962-_LT_DECL([], [reload_cmds], [2])dnl
2963-])# _LT_CMD_RELOAD
2964-
2965-
2966-# _LT_CHECK_MAGIC_METHOD
2967-# ----------------------
2968-# how to check for library dependencies
2969-# -- PORTME fill in with the dynamic library characteristics
2970-m4_defun([_LT_CHECK_MAGIC_METHOD],
2971-[m4_require([_LT_DECL_EGREP])
2972-m4_require([_LT_DECL_OBJDUMP])
2973-AC_CACHE_CHECK([how to recognize dependent libraries],
2974-lt_cv_deplibs_check_method,
2975-[lt_cv_file_magic_cmd='$MAGIC_CMD'
2976-lt_cv_file_magic_test_file=
2977-lt_cv_deplibs_check_method='unknown'
2978-# Need to set the preceding variable on all platforms that support
2979-# interlibrary dependencies.
2980-# 'none' -- dependencies not supported.
2981-# `unknown' -- same as none, but documents that we really don't know.
2982-# 'pass_all' -- all dependencies passed with no checks.
2983-# 'test_compile' -- check by making test program.
2984-# 'file_magic [[regex]]' -- check by looking for files in library path
2985-# which responds to the $file_magic_cmd with a given extended regex.
2986-# If you have `file' or equivalent on your system and you're not sure
2987-# whether `pass_all' will *always* work, you probably want this one.
2988-
2989-case $host_os in
2990-aix[[4-9]]*)
2991- lt_cv_deplibs_check_method=pass_all
2992- ;;
2993-
2994-beos*)
2995- lt_cv_deplibs_check_method=pass_all
2996- ;;
2997-
2998-bsdi[[45]]*)
2999- lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
3000- lt_cv_file_magic_cmd='/usr/bin/file -L'
3001- lt_cv_file_magic_test_file=/shlib/libc.so
3002- ;;
3003-
3004-cygwin*)
3005- # func_win32_libid is a shell function defined in ltmain.sh
3006- lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3007- lt_cv_file_magic_cmd='func_win32_libid'
3008- ;;
3009-
3010-mingw* | pw32*)
3011- # Base MSYS/MinGW do not provide the 'file' command needed by
3012- # func_win32_libid shell function, so use a weaker test based on 'objdump',
3013- # unless we find 'file', for example because we are cross-compiling.
3014- if ( file / ) >/dev/null 2>&1; then
3015- lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3016- lt_cv_file_magic_cmd='func_win32_libid'
3017- else
3018- lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3019- lt_cv_file_magic_cmd='$OBJDUMP -f'
3020- fi
3021- ;;
3022-
3023-cegcc)
3024- # use the weaker test based on 'objdump'. See mingw*.
3025- lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
3026- lt_cv_file_magic_cmd='$OBJDUMP -f'
3027- ;;
3028-
3029-darwin* | rhapsody*)
3030- lt_cv_deplibs_check_method=pass_all
3031- ;;
3032-
3033-freebsd* | dragonfly*)
3034- if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3035- case $host_cpu in
3036- i*86 )
3037- # Not sure whether the presence of OpenBSD here was a mistake.
3038- # Let's accept both of them until this is cleared up.
3039- lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
3040- lt_cv_file_magic_cmd=/usr/bin/file
3041- lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3042- ;;
3043- esac
3044- else
3045- lt_cv_deplibs_check_method=pass_all
3046- fi
3047- ;;
3048-
3049-gnu*)
3050- lt_cv_deplibs_check_method=pass_all
3051- ;;
3052-
3053-hpux10.20* | hpux11*)
3054- lt_cv_file_magic_cmd=/usr/bin/file
3055- case $host_cpu in
3056- ia64*)
3057- lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
3058- lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3059- ;;
3060- hppa*64*)
3061- [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]']
3062- lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3063- ;;
3064- *)
3065- lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
3066- lt_cv_file_magic_test_file=/usr/lib/libc.sl
3067- ;;
3068- esac
3069- ;;
3070-
3071-interix[[3-9]]*)
3072- # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3073- lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
3074- ;;
3075-
3076-irix5* | irix6* | nonstopux*)
3077- case $LD in
3078- *-32|*"-32 ") libmagic=32-bit;;
3079- *-n32|*"-n32 ") libmagic=N32;;
3080- *-64|*"-64 ") libmagic=64-bit;;
3081- *) libmagic=never-match;;
3082- esac
3083- lt_cv_deplibs_check_method=pass_all
3084- ;;
3085-
3086-# This must be Linux ELF.
3087-linux* | k*bsd*-gnu)
3088- lt_cv_deplibs_check_method=pass_all
3089- ;;
3090-
3091-netbsd*)
3092- if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3093- lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3094- else
3095- lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
3096- fi
3097- ;;
3098-
3099-newos6*)
3100- lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
3101- lt_cv_file_magic_cmd=/usr/bin/file
3102- lt_cv_file_magic_test_file=/usr/lib/libnls.so
3103- ;;
3104-
3105-*nto* | *qnx*)
3106- lt_cv_deplibs_check_method=pass_all
3107- ;;
3108-
3109-openbsd*)
3110- if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3111- lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
3112- else
3113- lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3114- fi
3115- ;;
3116-
3117-osf3* | osf4* | osf5*)
3118- lt_cv_deplibs_check_method=pass_all
3119- ;;
3120-
3121-rdos*)
3122- lt_cv_deplibs_check_method=pass_all
3123- ;;
3124-
3125-solaris*)
3126- lt_cv_deplibs_check_method=pass_all
3127- ;;
3128-
3129-sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3130- lt_cv_deplibs_check_method=pass_all
3131- ;;
3132-
3133-sysv4 | sysv4.3*)
3134- case $host_vendor in
3135- motorola)
3136- 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]]'
3137- lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3138- ;;
3139- ncr)
3140- lt_cv_deplibs_check_method=pass_all
3141- ;;
3142- sequent)
3143- lt_cv_file_magic_cmd='/bin/file'
3144- lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
3145- ;;
3146- sni)
3147- lt_cv_file_magic_cmd='/bin/file'
3148- lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
3149- lt_cv_file_magic_test_file=/lib/libc.so
3150- ;;
3151- siemens)
3152- lt_cv_deplibs_check_method=pass_all
3153- ;;
3154- pc)
3155- lt_cv_deplibs_check_method=pass_all
3156- ;;
3157- esac
3158- ;;
3159-
3160-tpf*)
3161- lt_cv_deplibs_check_method=pass_all
3162- ;;
3163-esac
3164-])
3165-file_magic_cmd=$lt_cv_file_magic_cmd
3166-deplibs_check_method=$lt_cv_deplibs_check_method
3167-test -z "$deplibs_check_method" && deplibs_check_method=unknown
3168-
3169-_LT_DECL([], [deplibs_check_method], [1],
3170- [Method to check whether dependent libraries are shared objects])
3171-_LT_DECL([], [file_magic_cmd], [1],
3172- [Command to use when deplibs_check_method == "file_magic"])
3173-])# _LT_CHECK_MAGIC_METHOD
3174-
3175-
3176-# LT_PATH_NM
3177-# ----------
3178-# find the pathname to a BSD- or MS-compatible name lister
3179-AC_DEFUN([LT_PATH_NM],
3180-[AC_REQUIRE([AC_PROG_CC])dnl
3181-AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
3182-[if test -n "$NM"; then
3183- # Let the user override the test.
3184- lt_cv_path_NM="$NM"
3185-else
3186- lt_nm_to_check="${ac_tool_prefix}nm"
3187- if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3188- lt_nm_to_check="$lt_nm_to_check nm"
3189- fi
3190- for lt_tmp_nm in $lt_nm_to_check; do
3191- lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3192- for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3193- IFS="$lt_save_ifs"
3194- test -z "$ac_dir" && ac_dir=.
3195- tmp_nm="$ac_dir/$lt_tmp_nm"
3196- if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3197- # Check to see if the nm accepts a BSD-compat flag.
3198- # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3199- # nm: unknown option "B" ignored
3200- # Tru64's nm complains that /dev/null is an invalid object file
3201- case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3202- */dev/null* | *'Invalid file or object type'*)
3203- lt_cv_path_NM="$tmp_nm -B"
3204- break
3205- ;;
3206- *)
3207- case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3208- */dev/null*)
3209- lt_cv_path_NM="$tmp_nm -p"
3210- break
3211- ;;
3212- *)
3213- lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3214- continue # so that we can try to find one that supports BSD flags
3215- ;;
3216- esac
3217- ;;
3218- esac
3219- fi
3220- done
3221- IFS="$lt_save_ifs"
3222- done
3223- : ${lt_cv_path_NM=no}
3224-fi])
3225-if test "$lt_cv_path_NM" != "no"; then
3226- NM="$lt_cv_path_NM"
3227-else
3228- # Didn't find any BSD compatible name lister, look for dumpbin.
3229- AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
3230- AC_SUBST([DUMPBIN])
3231- if test "$DUMPBIN" != ":"; then
3232- NM="$DUMPBIN"
3233- fi
3234-fi
3235-test -z "$NM" && NM=nm
3236-AC_SUBST([NM])
3237-_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
3238-
3239-AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
3240- [lt_cv_nm_interface="BSD nm"
3241- echo "int some_variable = 0;" > conftest.$ac_ext
3242- (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
3243- (eval "$ac_compile" 2>conftest.err)
3244- cat conftest.err >&AS_MESSAGE_LOG_FD
3245- (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
3246- (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3247- cat conftest.err >&AS_MESSAGE_LOG_FD
3248- (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
3249- cat conftest.out >&AS_MESSAGE_LOG_FD
3250- if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3251- lt_cv_nm_interface="MS dumpbin"
3252- fi
3253- rm -f conftest*])
3254-])# LT_PATH_NM
3255-
3256-# Old names:
3257-AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
3258-AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
3259-dnl aclocal-1.4 backwards compatibility:
3260-dnl AC_DEFUN([AM_PROG_NM], [])
3261-dnl AC_DEFUN([AC_PROG_NM], [])
3262-
3263-
3264-# LT_LIB_M
3265-# --------
3266-# check for math library
3267-AC_DEFUN([LT_LIB_M],
3268-[AC_REQUIRE([AC_CANONICAL_HOST])dnl
3269-LIBM=
3270-case $host in
3271-*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
3272- # These system don't have libm, or don't need it
3273- ;;
3274-*-ncr-sysv4.3*)
3275- AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
3276- AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
3277- ;;
3278-*)
3279- AC_CHECK_LIB(m, cos, LIBM="-lm")
3280- ;;
3281-esac
3282-AC_SUBST([LIBM])
3283-])# LT_LIB_M
3284-
3285-# Old name:
3286-AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
3287-dnl aclocal-1.4 backwards compatibility:
3288-dnl AC_DEFUN([AC_CHECK_LIBM], [])
3289-
3290-
3291-# _LT_COMPILER_NO_RTTI([TAGNAME])
3292-# -------------------------------
3293-m4_defun([_LT_COMPILER_NO_RTTI],
3294-[m4_require([_LT_TAG_COMPILER])dnl
3295-
3296-_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
3297-
3298-if test "$GCC" = yes; then
3299- _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
3300-
3301- _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
3302- lt_cv_prog_compiler_rtti_exceptions,
3303- [-fno-rtti -fno-exceptions], [],
3304- [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
3305-fi
3306-_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
3307- [Compiler flag to turn off builtin functions])
3308-])# _LT_COMPILER_NO_RTTI
3309-
3310-
3311-# _LT_CMD_GLOBAL_SYMBOLS
3312-# ----------------------
3313-m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
3314-[AC_REQUIRE([AC_CANONICAL_HOST])dnl
3315-AC_REQUIRE([AC_PROG_CC])dnl
3316-AC_REQUIRE([LT_PATH_NM])dnl
3317-AC_REQUIRE([LT_PATH_LD])dnl
3318-m4_require([_LT_DECL_SED])dnl
3319-m4_require([_LT_DECL_EGREP])dnl
3320-m4_require([_LT_TAG_COMPILER])dnl
3321-
3322-# Check for command to grab the raw symbol name followed by C symbol from nm.
3323-AC_MSG_CHECKING([command to parse $NM output from $compiler object])
3324-AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
3325-[
3326-# These are sane defaults that work on at least a few old systems.
3327-# [They come from Ultrix. What could be older than Ultrix?!! ;)]
3328-
3329-# Character class describing NM global symbol codes.
3330-symcode='[[BCDEGRST]]'
3331-
3332-# Regexp to match symbols that can be accessed directly from C.
3333-sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
3334-
3335-# Define system-specific variables.
3336-case $host_os in
3337-aix*)
3338- symcode='[[BCDT]]'
3339- ;;
3340-cygwin* | mingw* | pw32* | cegcc*)
3341- symcode='[[ABCDGISTW]]'
3342- ;;
3343-hpux*)
3344- if test "$host_cpu" = ia64; then
3345- symcode='[[ABCDEGRST]]'
3346- fi
3347- ;;
3348-irix* | nonstopux*)
3349- symcode='[[BCDEGRST]]'
3350- ;;
3351-osf*)
3352- symcode='[[BCDEGQRST]]'
3353- ;;
3354-solaris*)
3355- symcode='[[BDRT]]'
3356- ;;
3357-sco3.2v5*)
3358- symcode='[[DT]]'
3359- ;;
3360-sysv4.2uw2*)
3361- symcode='[[DT]]'
3362- ;;
3363-sysv5* | sco5v6* | unixware* | OpenUNIX*)
3364- symcode='[[ABDT]]'
3365- ;;
3366-sysv4)
3367- symcode='[[DFNSTU]]'
3368- ;;
3369-esac
3370-
3371-# If we're using GNU nm, then use its standard symbol codes.
3372-case `$NM -V 2>&1` in
3373-*GNU* | *'with BFD'*)
3374- symcode='[[ABCDGIRSTW]]' ;;
3375-esac
3376-
3377-# Transform an extracted symbol line into a proper C declaration.
3378-# Some systems (esp. on ia64) link data and code symbols differently,
3379-# so use this general approach.
3380-lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3381-
3382-# Transform an extracted symbol line into symbol name and symbol address
3383-lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
3384-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'"
3385-
3386-# Handle CRLF in mingw tool chain
3387-opt_cr=
3388-case $build_os in
3389-mingw*)
3390- opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3391- ;;
3392-esac
3393-
3394-# Try without a prefix underscore, then with it.
3395-for ac_symprfx in "" "_"; do
3396-
3397- # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
3398- symxfrm="\\1 $ac_symprfx\\2 \\2"
3399-
3400- # Write the raw and C identifiers.
3401- if test "$lt_cv_nm_interface" = "MS dumpbin"; then
3402- # Fake it for dumpbin and say T for any non-static function
3403- # and D for any global variable.
3404- # Also find C++ and __fastcall symbols from MSVC++,
3405- # which start with @ or ?.
3406- lt_cv_sys_global_symbol_pipe="$AWK ['"\
3407-" {last_section=section; section=\$ 3};"\
3408-" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
3409-" \$ 0!~/External *\|/{next};"\
3410-" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
3411-" {if(hide[section]) next};"\
3412-" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
3413-" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
3414-" s[1]~/^[@?]/{print s[1], s[1]; next};"\
3415-" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
3416-" ' prfx=^$ac_symprfx]"
3417- else
3418- lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
3419- fi
3420-
3421- # Check to see that the pipe works correctly.
3422- pipe_works=no
3423-
3424- rm -f conftest*
3425- cat > conftest.$ac_ext <<_LT_EOF
3426-#ifdef __cplusplus
3427-extern "C" {
3428-#endif
3429-char nm_test_var;
3430-void nm_test_func(void);
3431-void nm_test_func(void){}
3432-#ifdef __cplusplus
3433-}
3434-#endif
3435-int main(){nm_test_var='a';nm_test_func();return(0);}
3436-_LT_EOF
3437-
3438- if AC_TRY_EVAL(ac_compile); then
3439- # Now try to grab the symbols.
3440- nlist=conftest.nm
3441- if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
3442- # Try sorting and uniquifying the output.
3443- if sort "$nlist" | uniq > "$nlist"T; then
3444- mv -f "$nlist"T "$nlist"
3445- else
3446- rm -f "$nlist"T
3447- fi
3448-
3449- # Make sure that we snagged all the symbols we need.
3450- if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
3451- if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
3452- cat <<_LT_EOF > conftest.$ac_ext
3453-#ifdef __cplusplus
3454-extern "C" {
3455-#endif
3456-
3457-_LT_EOF
3458- # Now generate the symbol file.
3459- eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
3460-
3461- cat <<_LT_EOF >> conftest.$ac_ext
3462-
3463-/* The mapping between symbol names and symbols. */
3464-const struct {
3465- const char *name;
3466- void *address;
3467-}
3468-lt__PROGRAM__LTX_preloaded_symbols[[]] =
3469-{
3470- { "@PROGRAM@", (void *) 0 },
3471-_LT_EOF
3472- $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
3473- cat <<\_LT_EOF >> conftest.$ac_ext
3474- {0, (void *) 0}
3475-};
3476-
3477-/* This works around a problem in FreeBSD linker */
3478-#ifdef FREEBSD_WORKAROUND
3479-static const void *lt_preloaded_setup() {
3480- return lt__PROGRAM__LTX_preloaded_symbols;
3481-}
3482-#endif
3483-
3484-#ifdef __cplusplus
3485-}
3486-#endif
3487-_LT_EOF
3488- # Now try linking the two files.
3489- mv conftest.$ac_objext conftstm.$ac_objext
3490- lt_save_LIBS="$LIBS"
3491- lt_save_CFLAGS="$CFLAGS"
3492- LIBS="conftstm.$ac_objext"
3493- CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
3494- if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
3495- pipe_works=yes
3496- fi
3497- LIBS="$lt_save_LIBS"
3498- CFLAGS="$lt_save_CFLAGS"
3499- else
3500- echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
3501- fi
3502- else
3503- echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
3504- fi
3505- else
3506- echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
3507- fi
3508- else
3509- echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
3510- cat conftest.$ac_ext >&5
3511- fi
3512- rm -rf conftest* conftst*
3513-
3514- # Do not use the global_symbol_pipe unless it works.
3515- if test "$pipe_works" = yes; then
3516- break
3517- else
3518- lt_cv_sys_global_symbol_pipe=
3519- fi
3520-done
3521-])
3522-if test -z "$lt_cv_sys_global_symbol_pipe"; then
3523- lt_cv_sys_global_symbol_to_cdecl=
3524-fi
3525-if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
3526- AC_MSG_RESULT(failed)
3527-else
3528- AC_MSG_RESULT(ok)
3529-fi
3530-
3531-_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
3532- [Take the output of nm and produce a listing of raw symbols and C names])
3533-_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
3534- [Transform the output of nm in a proper C declaration])
3535-_LT_DECL([global_symbol_to_c_name_address],
3536- [lt_cv_sys_global_symbol_to_c_name_address], [1],
3537- [Transform the output of nm in a C name address pair])
3538-_LT_DECL([global_symbol_to_c_name_address_lib_prefix],
3539- [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
3540- [Transform the output of nm in a C name address pair when lib prefix is needed])
3541-]) # _LT_CMD_GLOBAL_SYMBOLS
3542-
3543-
3544-# _LT_COMPILER_PIC([TAGNAME])
3545-# ---------------------------
3546-m4_defun([_LT_COMPILER_PIC],
3547-[m4_require([_LT_TAG_COMPILER])dnl
3548-_LT_TAGVAR(lt_prog_compiler_wl, $1)=
3549-_LT_TAGVAR(lt_prog_compiler_pic, $1)=
3550-_LT_TAGVAR(lt_prog_compiler_static, $1)=
3551-
3552-AC_MSG_CHECKING([for $compiler option to produce PIC])
3553-m4_if([$1], [CXX], [
3554- # C++ specific cases for pic, static, wl, etc.
3555- if test "$GXX" = yes; then
3556- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3557- _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
3558-
3559- case $host_os in
3560- aix*)
3561- # All AIX code is PIC.
3562- if test "$host_cpu" = ia64; then
3563- # AIX 5 now supports IA64 processor
3564- _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3565- fi
3566- ;;
3567-
3568- amigaos*)
3569- case $host_cpu in
3570- powerpc)
3571- # see comment about AmigaOS4 .so support
3572- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3573- ;;
3574- m68k)
3575- # FIXME: we need at least 68020 code to build shared libraries, but
3576- # adding the `-m68020' flag to GCC prevents building anything better,
3577- # like `-m68040'.
3578- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
3579- ;;
3580- esac
3581- ;;
3582-
3583- beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
3584- # PIC is the default for these OSes.
3585- ;;
3586- mingw* | cygwin* | os2* | pw32* | cegcc*)
3587- # This hack is so that the source file can tell whether it is being
3588- # built for inclusion in a dll (and should export symbols for example).
3589- # Although the cygwin gcc ignores -fPIC, still need this for old-style
3590- # (--disable-auto-import) libraries
3591- m4_if([$1], [GCJ], [],
3592- [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
3593- ;;
3594- darwin* | rhapsody*)
3595- # PIC is the default on this platform
3596- # Common symbols not allowed in MH_DYLIB files
3597- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
3598- ;;
3599- *djgpp*)
3600- # DJGPP does not support shared libraries at all
3601- _LT_TAGVAR(lt_prog_compiler_pic, $1)=
3602- ;;
3603- interix[[3-9]]*)
3604- # Interix 3.x gcc -fpic/-fPIC options generate broken code.
3605- # Instead, we relocate shared libraries at runtime.
3606- ;;
3607- sysv4*MP*)
3608- if test -d /usr/nec; then
3609- _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
3610- fi
3611- ;;
3612- hpux*)
3613- # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
3614- # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
3615- # sets the default TLS model and affects inlining.
3616- case $host_cpu in
3617- hppa*64*)
3618- ;;
3619- *)
3620- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3621- ;;
3622- esac
3623- ;;
3624- *qnx* | *nto*)
3625- # QNX uses GNU C++, but need to define -shared option too, otherwise
3626- # it will coredump.
3627- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
3628- ;;
3629- *)
3630- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3631- ;;
3632- esac
3633- else
3634- case $host_os in
3635- aix[[4-9]]*)
3636- # All AIX code is PIC.
3637- if test "$host_cpu" = ia64; then
3638- # AIX 5 now supports IA64 processor
3639- _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3640- else
3641- _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
3642- fi
3643- ;;
3644- chorus*)
3645- case $cc_basename in
3646- cxch68*)
3647- # Green Hills C++ Compiler
3648- # _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"
3649- ;;
3650- esac
3651- ;;
3652- dgux*)
3653- case $cc_basename in
3654- ec++*)
3655- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3656- ;;
3657- ghcx*)
3658- # Green Hills C++ Compiler
3659- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
3660- ;;
3661- *)
3662- ;;
3663- esac
3664- ;;
3665- freebsd* | dragonfly*)
3666- # FreeBSD uses GNU C++
3667- ;;
3668- hpux9* | hpux10* | hpux11*)
3669- case $cc_basename in
3670- CC*)
3671- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3672- _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
3673- if test "$host_cpu" != ia64; then
3674- _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
3675- fi
3676- ;;
3677- aCC*)
3678- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3679- _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
3680- case $host_cpu in
3681- hppa*64*|ia64*)
3682- # +Z the default
3683- ;;
3684- *)
3685- _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
3686- ;;
3687- esac
3688- ;;
3689- *)
3690- ;;
3691- esac
3692- ;;
3693- interix*)
3694- # This is c89, which is MS Visual C++ (no shared libs)
3695- # Anyone wants to do a port?
3696- ;;
3697- irix5* | irix6* | nonstopux*)
3698- case $cc_basename in
3699- CC*)
3700- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3701- _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
3702- # CC pic flag -KPIC is the default.
3703- ;;
3704- *)
3705- ;;
3706- esac
3707- ;;
3708- linux* | k*bsd*-gnu)
3709- case $cc_basename in
3710- KCC*)
3711- # KAI C++ Compiler
3712- _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
3713- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3714- ;;
3715- ecpc* )
3716- # old Intel C++ for x86_64 which still supported -KPIC.
3717- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3718- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3719- _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
3720- ;;
3721- icpc* )
3722- # Intel C++, used to be incompatible with GCC.
3723- # ICC 10 doesn't accept -KPIC any more.
3724- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3725- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3726- _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
3727- ;;
3728- pgCC* | pgcpp*)
3729- # Portland Group C++ compiler
3730- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3731- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
3732- _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3733- ;;
3734- cxx*)
3735- # Compaq C++
3736- # Make sure the PIC flag is empty. It appears that all Alpha
3737- # Linux and Compaq Tru64 Unix objects are PIC.
3738- _LT_TAGVAR(lt_prog_compiler_pic, $1)=
3739- _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
3740- ;;
3741- xlc* | xlC*)
3742- # IBM XL 8.0 on PPC
3743- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3744- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
3745- _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
3746- ;;
3747- *)
3748- case `$CC -V 2>&1 | sed 5q` in
3749- *Sun\ C*)
3750- # Sun C++ 5.9
3751- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3752- _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3753- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
3754- ;;
3755- esac
3756- ;;
3757- esac
3758- ;;
3759- lynxos*)
3760- ;;
3761- m88k*)
3762- ;;
3763- mvs*)
3764- case $cc_basename in
3765- cxx*)
3766- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
3767- ;;
3768- *)
3769- ;;
3770- esac
3771- ;;
3772- netbsd*)
3773- ;;
3774- *qnx* | *nto*)
3775- # QNX uses GNU C++, but need to define -shared option too, otherwise
3776- # it will coredump.
3777- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
3778- ;;
3779- osf3* | osf4* | osf5*)
3780- case $cc_basename in
3781- KCC*)
3782- _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
3783- ;;
3784- RCC*)
3785- # Rational C++ 2.4.1
3786- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
3787- ;;
3788- cxx*)
3789- # Digital/Compaq C++
3790- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3791- # Make sure the PIC flag is empty. It appears that all Alpha
3792- # Linux and Compaq Tru64 Unix objects are PIC.
3793- _LT_TAGVAR(lt_prog_compiler_pic, $1)=
3794- _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
3795- ;;
3796- *)
3797- ;;
3798- esac
3799- ;;
3800- psos*)
3801- ;;
3802- solaris*)
3803- case $cc_basename in
3804- CC*)
3805- # Sun C++ 4.2, 5.x and Centerline C++
3806- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3807- _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3808- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
3809- ;;
3810- gcx*)
3811- # Green Hills C++ Compiler
3812- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
3813- ;;
3814- *)
3815- ;;
3816- esac
3817- ;;
3818- sunos4*)
3819- case $cc_basename in
3820- CC*)
3821- # Sun C++ 4.x
3822- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
3823- _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3824- ;;
3825- lcc*)
3826- # Lucid
3827- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
3828- ;;
3829- *)
3830- ;;
3831- esac
3832- ;;
3833- sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
3834- case $cc_basename in
3835- CC*)
3836- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3837- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3838- _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3839- ;;
3840- esac
3841- ;;
3842- tandem*)
3843- case $cc_basename in
3844- NCC*)
3845- # NonStop-UX NCC 3.20
3846- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3847- ;;
3848- *)
3849- ;;
3850- esac
3851- ;;
3852- vxworks*)
3853- ;;
3854- *)
3855- _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
3856- ;;
3857- esac
3858- fi
3859-],
3860-[
3861- if test "$GCC" = yes; then
3862- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3863- _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
3864-
3865- case $host_os in
3866- aix*)
3867- # All AIX code is PIC.
3868- if test "$host_cpu" = ia64; then
3869- # AIX 5 now supports IA64 processor
3870- _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3871- fi
3872- ;;
3873-
3874- amigaos*)
3875- case $host_cpu in
3876- powerpc)
3877- # see comment about AmigaOS4 .so support
3878- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3879- ;;
3880- m68k)
3881- # FIXME: we need at least 68020 code to build shared libraries, but
3882- # adding the `-m68020' flag to GCC prevents building anything better,
3883- # like `-m68040'.
3884- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
3885- ;;
3886- esac
3887- ;;
3888-
3889- beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
3890- # PIC is the default for these OSes.
3891- ;;
3892-
3893- mingw* | cygwin* | pw32* | os2* | cegcc*)
3894- # This hack is so that the source file can tell whether it is being
3895- # built for inclusion in a dll (and should export symbols for example).
3896- # Although the cygwin gcc ignores -fPIC, still need this for old-style
3897- # (--disable-auto-import) libraries
3898- m4_if([$1], [GCJ], [],
3899- [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
3900- ;;
3901-
3902- darwin* | rhapsody*)
3903- # PIC is the default on this platform
3904- # Common symbols not allowed in MH_DYLIB files
3905- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
3906- ;;
3907-
3908- hpux*)
3909- # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
3910- # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
3911- # sets the default TLS model and affects inlining.
3912- case $host_cpu in
3913- hppa*64*)
3914- # +Z the default
3915- ;;
3916- *)
3917- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3918- ;;
3919- esac
3920- ;;
3921-
3922- interix[[3-9]]*)
3923- # Interix 3.x gcc -fpic/-fPIC options generate broken code.
3924- # Instead, we relocate shared libraries at runtime.
3925- ;;
3926-
3927- msdosdjgpp*)
3928- # Just because we use GCC doesn't mean we suddenly get shared libraries
3929- # on systems that don't support them.
3930- _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
3931- enable_shared=no
3932- ;;
3933-
3934- *nto* | *qnx*)
3935- # QNX uses GNU C++, but need to define -shared option too, otherwise
3936- # it will coredump.
3937- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
3938- ;;
3939-
3940- sysv4*MP*)
3941- if test -d /usr/nec; then
3942- _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
3943- fi
3944- ;;
3945-
3946- *)
3947- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3948- ;;
3949- esac
3950- else
3951- # PORTME Check for flag to pass linker flags through the system compiler.
3952- case $host_os in
3953- aix*)
3954- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3955- if test "$host_cpu" = ia64; then
3956- # AIX 5 now supports IA64 processor
3957- _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3958- else
3959- _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
3960- fi
3961- ;;
3962-
3963- mingw* | cygwin* | pw32* | os2* | cegcc*)
3964- # This hack is so that the source file can tell whether it is being
3965- # built for inclusion in a dll (and should export symbols for example).
3966- m4_if([$1], [GCJ], [],
3967- [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
3968- ;;
3969-
3970- hpux9* | hpux10* | hpux11*)
3971- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3972- # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
3973- # not for PA HP-UX.
3974- case $host_cpu in
3975- hppa*64*|ia64*)
3976- # +Z the default
3977- ;;
3978- *)
3979- _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
3980- ;;
3981- esac
3982- # Is there a better lt_prog_compiler_static that works with the bundled CC?
3983- _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
3984- ;;
3985-
3986- irix5* | irix6* | nonstopux*)
3987- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3988- # PIC (with -KPIC) is the default.
3989- _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
3990- ;;
3991-
3992- linux* | k*bsd*-gnu)
3993- case $cc_basename in
3994- # old Intel for x86_64 which still supported -KPIC.
3995- ecc*)
3996- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3997- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3998- _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
3999- ;;
4000- # icc used to be incompatible with GCC.
4001- # ICC 10 doesn't accept -KPIC any more.
4002- icc* | ifort*)
4003- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4004- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4005- _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4006- ;;
4007- # Lahey Fortran 8.1.
4008- lf95*)
4009- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4010- _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
4011- _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
4012- ;;
4013- pgcc* | pgf77* | pgf90* | pgf95*)
4014- # Portland Group compilers (*not* the Pentium gcc compiler,
4015- # which looks to be a dead project)
4016- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4017- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4018- _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4019- ;;
4020- ccc*)
4021- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4022- # All Alpha code is PIC.
4023- _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4024- ;;
4025- xl*)
4026- # IBM XL C 8.0/Fortran 10.1 on PPC
4027- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4028- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4029- _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4030- ;;
4031- *)
4032- case `$CC -V 2>&1 | sed 5q` in
4033- *Sun\ C*)
4034- # Sun C 5.9
4035- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4036- _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4037- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4038- ;;
4039- *Sun\ F*)
4040- # Sun Fortran 8.3 passes all unrecognized flags to the linker
4041- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4042- _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4043- _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
4044- ;;
4045- esac
4046- ;;
4047- esac
4048- ;;
4049-
4050- newsos6)
4051- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4052- _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4053- ;;
4054-
4055- *nto* | *qnx*)
4056- # QNX uses GNU C++, but need to define -shared option too, otherwise
4057- # it will coredump.
4058- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4059- ;;
4060-
4061- osf3* | osf4* | osf5*)
4062- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4063- # All OSF/1 code is PIC.
4064- _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4065- ;;
4066-
4067- rdos*)
4068- _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4069- ;;
4070-
4071- solaris*)
4072- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4073- _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4074- case $cc_basename in
4075- f77* | f90* | f95*)
4076- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
4077- *)
4078- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
4079- esac
4080- ;;
4081-
4082- sunos4*)
4083- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4084- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4085- _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4086- ;;
4087-
4088- sysv4 | sysv4.2uw2* | sysv4.3*)
4089- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4090- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4091- _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4092- ;;
4093-
4094- sysv4*MP*)
4095- if test -d /usr/nec ;then
4096- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
4097- _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4098- fi
4099- ;;
4100-
4101- sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
4102- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4103- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4104- _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4105- ;;
4106-
4107- unicos*)
4108- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4109- _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4110- ;;
4111-
4112- uts4*)
4113- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4114- _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4115- ;;
4116-
4117- *)
4118- _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4119- ;;
4120- esac
4121- fi
4122-])
4123-case $host_os in
4124- # For platforms which do not support PIC, -DPIC is meaningless:
4125- *djgpp*)
4126- _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4127- ;;
4128- *)
4129- _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
4130- ;;
4131-esac
4132-AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
4133-_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
4134- [How to pass a linker flag through the compiler])
4135-
4136-#
4137-# Check to make sure the PIC flag actually works.
4138-#
4139-if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
4140- _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
4141- [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
4142- [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
4143- [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
4144- "" | " "*) ;;
4145- *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
4146- esac],
4147- [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
4148- _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
4149-fi
4150-_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
4151- [Additional compiler flags for building library objects])
4152-
4153-#
4154-# Check to make sure the static flag actually works.
4155-#
4156-wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
4157-_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
4158- _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
4159- $lt_tmp_static_flag,
4160- [],
4161- [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
4162-_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
4163- [Compiler flag to prevent dynamic linking])
4164-])# _LT_COMPILER_PIC
4165-
4166-
4167-# _LT_LINKER_SHLIBS([TAGNAME])
4168-# ----------------------------
4169-# See if the linker supports building shared libraries.
4170-m4_defun([_LT_LINKER_SHLIBS],
4171-[AC_REQUIRE([LT_PATH_LD])dnl
4172-AC_REQUIRE([LT_PATH_NM])dnl
4173-m4_require([_LT_FILEUTILS_DEFAULTS])dnl
4174-m4_require([_LT_DECL_EGREP])dnl
4175-m4_require([_LT_DECL_SED])dnl
4176-m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
4177-m4_require([_LT_TAG_COMPILER])dnl
4178-AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
4179-m4_if([$1], [CXX], [
4180- _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4181- case $host_os in
4182- aix[[4-9]]*)
4183- # If we're using GNU nm, then we don't want the "-C" option.
4184- # -C means demangle to AIX nm, but means don't demangle with GNU nm
4185- if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4186- _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
4187- else
4188- _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'
4189- fi
4190- ;;
4191- pw32*)
4192- _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
4193- ;;
4194- cygwin* | mingw* | cegcc*)
4195- _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
4196- ;;
4197- *)
4198- _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4199- ;;
4200- esac
4201- _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
4202-], [
4203- runpath_var=
4204- _LT_TAGVAR(allow_undefined_flag, $1)=
4205- _LT_TAGVAR(always_export_symbols, $1)=no
4206- _LT_TAGVAR(archive_cmds, $1)=
4207- _LT_TAGVAR(archive_expsym_cmds, $1)=
4208- _LT_TAGVAR(compiler_needs_object, $1)=no
4209- _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
4210- _LT_TAGVAR(export_dynamic_flag_spec, $1)=
4211- _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4212- _LT_TAGVAR(hardcode_automatic, $1)=no
4213- _LT_TAGVAR(hardcode_direct, $1)=no
4214- _LT_TAGVAR(hardcode_direct_absolute, $1)=no
4215- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
4216- _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
4217- _LT_TAGVAR(hardcode_libdir_separator, $1)=
4218- _LT_TAGVAR(hardcode_minus_L, $1)=no
4219- _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
4220- _LT_TAGVAR(inherit_rpath, $1)=no
4221- _LT_TAGVAR(link_all_deplibs, $1)=unknown
4222- _LT_TAGVAR(module_cmds, $1)=
4223- _LT_TAGVAR(module_expsym_cmds, $1)=
4224- _LT_TAGVAR(old_archive_from_new_cmds, $1)=
4225- _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
4226- _LT_TAGVAR(thread_safe_flag_spec, $1)=
4227- _LT_TAGVAR(whole_archive_flag_spec, $1)=
4228- # include_expsyms should be a list of space-separated symbols to be *always*
4229- # included in the symbol list
4230- _LT_TAGVAR(include_expsyms, $1)=
4231- # exclude_expsyms can be an extended regexp of symbols to exclude
4232- # it will be wrapped by ` (' and `)$', so one must not match beginning or
4233- # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
4234- # as well as any symbol that contains `d'.
4235- _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
4236- # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
4237- # platforms (ab)use it in PIC code, but their linkers get confused if
4238- # the symbol is explicitly referenced. Since portable code cannot
4239- # rely on this symbol name, it's probably fine to never include it in
4240- # preloaded symbol tables.
4241- # Exclude shared library initialization/finalization symbols.
4242-dnl Note also adjust exclude_expsyms for C++ above.
4243- extract_expsyms_cmds=
4244-
4245- case $host_os in
4246- cygwin* | mingw* | pw32* | cegcc*)
4247- # FIXME: the MSVC++ port hasn't been tested in a loooong time
4248- # When not using gcc, we currently assume that we are using
4249- # Microsoft Visual C++.
4250- if test "$GCC" != yes; then
4251- with_gnu_ld=no
4252- fi
4253- ;;
4254- interix*)
4255- # we just hope/assume this is gcc and not c89 (= MSVC++)
4256- with_gnu_ld=yes
4257- ;;
4258- openbsd*)
4259- with_gnu_ld=no
4260- ;;
4261- esac
4262-
4263- _LT_TAGVAR(ld_shlibs, $1)=yes
4264- if test "$with_gnu_ld" = yes; then
4265- # If archive_cmds runs LD, not CC, wlarc should be empty
4266- wlarc='${wl}'
4267-
4268- # Set some defaults for GNU ld with shared library support. These
4269- # are reset later if shared libraries are not supported. Putting them
4270- # here allows them to be overridden if necessary.
4271- runpath_var=LD_RUN_PATH
4272- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4273- _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4274- # ancient GNU ld didn't support --whole-archive et. al.
4275- if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
4276- _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4277- else
4278- _LT_TAGVAR(whole_archive_flag_spec, $1)=
4279- fi
4280- supports_anon_versioning=no
4281- case `$LD -v 2>&1` in
4282- *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
4283- *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
4284- *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
4285- *\ 2.11.*) ;; # other 2.11 versions
4286- *) supports_anon_versioning=yes ;;
4287- esac
4288-
4289- # See if GNU ld supports shared libraries.
4290- case $host_os in
4291- aix[[3-9]]*)
4292- # On AIX/PPC, the GNU linker is very broken
4293- if test "$host_cpu" != ia64; then
4294- _LT_TAGVAR(ld_shlibs, $1)=no
4295- cat <<_LT_EOF 1>&2
4296-
4297-*** Warning: the GNU linker, at least up to release 2.9.1, is reported
4298-*** to be unable to reliably create shared libraries on AIX.
4299-*** Therefore, libtool is disabling shared libraries support. If you
4300-*** really care for shared libraries, you may want to modify your PATH
4301-*** so that a non-GNU linker is found, and then restart.
4302-
4303-_LT_EOF
4304- fi
4305- ;;
4306-
4307- amigaos*)
4308- case $host_cpu in
4309- powerpc)
4310- # see comment about AmigaOS4 .so support
4311- _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4312- _LT_TAGVAR(archive_expsym_cmds, $1)=''
4313- ;;
4314- m68k)
4315- _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)'
4316- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4317- _LT_TAGVAR(hardcode_minus_L, $1)=yes
4318- ;;
4319- esac
4320- ;;
4321-
4322- beos*)
4323- if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4324- _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4325- # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
4326- # support --undefined. This deserves some investigation. FIXME
4327- _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4328- else
4329- _LT_TAGVAR(ld_shlibs, $1)=no
4330- fi
4331- ;;
4332-
4333- cygwin* | mingw* | pw32* | cegcc*)
4334- # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
4335- # as there is no search path for DLLs.
4336- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4337- _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4338- _LT_TAGVAR(always_export_symbols, $1)=no
4339- _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
4340- _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
4341-
4342- if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
4343- _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'
4344- # If the export-symbols file already is a .def file (1st line
4345- # is EXPORTS), use it as is; otherwise, prepend...
4346- _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
4347- cp $export_symbols $output_objdir/$soname.def;
4348- else
4349- echo EXPORTS > $output_objdir/$soname.def;
4350- cat $export_symbols >> $output_objdir/$soname.def;
4351- fi~
4352- $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
4353- else
4354- _LT_TAGVAR(ld_shlibs, $1)=no
4355- fi
4356- ;;
4357-
4358- interix[[3-9]]*)
4359- _LT_TAGVAR(hardcode_direct, $1)=no
4360- _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4361- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4362- _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4363- # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
4364- # Instead, shared libraries are loaded at an image base (0x10000000 by
4365- # default) and relocated if they conflict, which is a slow very memory
4366- # consuming and fragmenting process. To avoid this, we pick a random,
4367- # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
4368- # time. Moving up from 0x10000000 also allows more sbrk(2) space.
4369- _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'
4370- _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'
4371- ;;
4372-
4373- gnu* | linux* | tpf* | k*bsd*-gnu)
4374- tmp_diet=no
4375- if test "$host_os" = linux-dietlibc; then
4376- case $cc_basename in
4377- diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
4378- esac
4379- fi
4380- if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
4381- && test "$tmp_diet" = no
4382- then
4383- tmp_addflag=
4384- tmp_sharedflag='-shared'
4385- case $cc_basename,$host_cpu in
4386- pgcc*) # Portland Group C compiler
4387- _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
4388- tmp_addflag=' $pic_flag'
4389- ;;
4390- pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
4391- _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
4392- tmp_addflag=' $pic_flag -Mnomain' ;;
4393- ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
4394- tmp_addflag=' -i_dynamic' ;;
4395- efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
4396- tmp_addflag=' -i_dynamic -nofor_main' ;;
4397- ifc* | ifort*) # Intel Fortran compiler
4398- tmp_addflag=' -nofor_main' ;;
4399- lf95*) # Lahey Fortran 8.1
4400- _LT_TAGVAR(whole_archive_flag_spec, $1)=
4401- tmp_sharedflag='--shared' ;;
4402- xl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
4403- tmp_sharedflag='-qmkshrobj'
4404- tmp_addflag= ;;
4405- esac
4406- case `$CC -V 2>&1 | sed 5q` in
4407- *Sun\ C*) # Sun C 5.9
4408- _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
4409- _LT_TAGVAR(compiler_needs_object, $1)=yes
4410- tmp_sharedflag='-G' ;;
4411- *Sun\ F*) # Sun Fortran 8.3
4412- tmp_sharedflag='-G' ;;
4413- esac
4414- _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4415-
4416- if test "x$supports_anon_versioning" = xyes; then
4417- _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
4418- cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
4419- echo "local: *; };" >> $output_objdir/$libname.ver~
4420- $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
4421- fi
4422-
4423- case $cc_basename in
4424- xlf*)
4425- # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
4426- _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
4427- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
4428- _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
4429- _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
4430- if test "x$supports_anon_versioning" = xyes; then
4431- _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
4432- cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
4433- echo "local: *; };" >> $output_objdir/$libname.ver~
4434- $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
4435- fi
4436- ;;
4437- esac
4438- else
4439- _LT_TAGVAR(ld_shlibs, $1)=no
4440- fi
4441- ;;
4442-
4443- netbsd*)
4444- if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
4445- _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
4446- wlarc=
4447- else
4448- _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4449- _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4450- fi
4451- ;;
4452-
4453- solaris*)
4454- if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
4455- _LT_TAGVAR(ld_shlibs, $1)=no
4456- cat <<_LT_EOF 1>&2
4457-
4458-*** Warning: The releases 2.8.* of the GNU linker cannot reliably
4459-*** create shared libraries on Solaris systems. Therefore, libtool
4460-*** is disabling shared libraries support. We urge you to upgrade GNU
4461-*** binutils to release 2.9.1 or newer. Another option is to modify
4462-*** your PATH or compiler configuration so that the native linker is
4463-*** used, and then restart.
4464-
4465-_LT_EOF
4466- elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4467- _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4468- _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4469- else
4470- _LT_TAGVAR(ld_shlibs, $1)=no
4471- fi
4472- ;;
4473-
4474- sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
4475- case `$LD -v 2>&1` in
4476- *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
4477- _LT_TAGVAR(ld_shlibs, $1)=no
4478- cat <<_LT_EOF 1>&2
4479-
4480-*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
4481-*** reliably create shared libraries on SCO systems. Therefore, libtool
4482-*** is disabling shared libraries support. We urge you to upgrade GNU
4483-*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
4484-*** your PATH or compiler configuration so that the native linker is
4485-*** used, and then restart.
4486-
4487-_LT_EOF
4488- ;;
4489- *)
4490- # For security reasons, it is highly recommended that you always
4491- # use absolute paths for naming shared libraries, and exclude the
4492- # DT_RUNPATH tag from executables and libraries. But doing so
4493- # requires that you compile everything twice, which is a pain.
4494- if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4495- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4496- _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4497- _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4498- else
4499- _LT_TAGVAR(ld_shlibs, $1)=no
4500- fi
4501- ;;
4502- esac
4503- ;;
4504-
4505- sunos4*)
4506- _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4507- wlarc=
4508- _LT_TAGVAR(hardcode_direct, $1)=yes
4509- _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4510- ;;
4511-
4512- *)
4513- if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4514- _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4515- _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4516- else
4517- _LT_TAGVAR(ld_shlibs, $1)=no
4518- fi
4519- ;;
4520- esac
4521-
4522- if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
4523- runpath_var=
4524- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
4525- _LT_TAGVAR(export_dynamic_flag_spec, $1)=
4526- _LT_TAGVAR(whole_archive_flag_spec, $1)=
4527- fi
4528- else
4529- # PORTME fill in a description of your system's linker (not GNU ld)
4530- case $host_os in
4531- aix3*)
4532- _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4533- _LT_TAGVAR(always_export_symbols, $1)=yes
4534- _LT_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
4535- # Note: this linker hardcodes the directories in LIBPATH if there
4536- # are no directories specified by -L.
4537- _LT_TAGVAR(hardcode_minus_L, $1)=yes
4538- if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
4539- # Neither direct hardcoding nor static linking is supported with a
4540- # broken collect2.
4541- _LT_TAGVAR(hardcode_direct, $1)=unsupported
4542- fi
4543- ;;
4544-
4545- aix[[4-9]]*)
4546- if test "$host_cpu" = ia64; then
4547- # On IA64, the linker does run time linking by default, so we don't
4548- # have to do anything special.
4549- aix_use_runtimelinking=no
4550- exp_sym_flag='-Bexport'
4551- no_entry_flag=""
4552- else
4553- # If we're using GNU nm, then we don't want the "-C" option.
4554- # -C means demangle to AIX nm, but means don't demangle with GNU nm
4555- if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4556- _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
4557- else
4558- _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'
4559- fi
4560- aix_use_runtimelinking=no
4561-
4562- # Test if we are trying to use run time linking or normal
4563- # AIX style linking. If -brtl is somewhere in LDFLAGS, we
4564- # need to do runtime linking.
4565- case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
4566- for ld_flag in $LDFLAGS; do
4567- if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
4568- aix_use_runtimelinking=yes
4569- break
4570- fi
4571- done
4572- ;;
4573- esac
4574-
4575- exp_sym_flag='-bexport'
4576- no_entry_flag='-bnoentry'
4577- fi
4578-
4579- # When large executables or shared objects are built, AIX ld can
4580- # have problems creating the table of contents. If linking a library
4581- # or program results in "error TOC overflow" add -mminimal-toc to
4582- # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
4583- # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
4584-
4585- _LT_TAGVAR(archive_cmds, $1)=''
4586- _LT_TAGVAR(hardcode_direct, $1)=yes
4587- _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
4588- _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
4589- _LT_TAGVAR(link_all_deplibs, $1)=yes
4590- _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
4591-
4592- if test "$GCC" = yes; then
4593- case $host_os in aix4.[[012]]|aix4.[[012]].*)
4594- # We only want to do this on AIX 4.2 and lower, the check
4595- # below for broken collect2 doesn't work under 4.3+
4596- collect2name=`${CC} -print-prog-name=collect2`
4597- if test -f "$collect2name" &&
4598- strings "$collect2name" | $GREP resolve_lib_name >/dev/null
4599- then
4600- # We have reworked collect2
4601- :
4602- else
4603- # We have old collect2
4604- _LT_TAGVAR(hardcode_direct, $1)=unsupported
4605- # It fails to find uninstalled libraries when the uninstalled
4606- # path is not listed in the libpath. Setting hardcode_minus_L
4607- # to unsupported forces relinking
4608- _LT_TAGVAR(hardcode_minus_L, $1)=yes
4609- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4610- _LT_TAGVAR(hardcode_libdir_separator, $1)=
4611- fi
4612- ;;
4613- esac
4614- shared_flag='-shared'
4615- if test "$aix_use_runtimelinking" = yes; then
4616- shared_flag="$shared_flag "'${wl}-G'
4617- fi
4618- else
4619- # not using gcc
4620- if test "$host_cpu" = ia64; then
4621- # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
4622- # chokes on -Wl,-G. The following line is correct:
4623- shared_flag='-G'
4624- else
4625- if test "$aix_use_runtimelinking" = yes; then
4626- shared_flag='${wl}-G'
4627- else
4628- shared_flag='${wl}-bM:SRE'
4629- fi
4630- fi
4631- fi
4632-
4633- _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
4634- # It seems that -bexpall does not export symbols beginning with
4635- # underscore (_), so it is better to generate a list of symbols to export.
4636- _LT_TAGVAR(always_export_symbols, $1)=yes
4637- if test "$aix_use_runtimelinking" = yes; then
4638- # Warning - without using the other runtime loading flags (-brtl),
4639- # -berok will link without error, but may produce a broken library.
4640- _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
4641- # Determine the default libpath from the value encoded in an
4642- # empty executable.
4643- _LT_SYS_MODULE_PATH_AIX
4644- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
4645- _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
4646- else
4647- if test "$host_cpu" = ia64; then
4648- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
4649- _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
4650- _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
4651- else
4652- # Determine the default libpath from the value encoded in an
4653- # empty executable.
4654- _LT_SYS_MODULE_PATH_AIX
4655- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
4656- # Warning - without using the other run time loading flags,
4657- # -berok will link without error, but may produce a broken library.
4658- _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
4659- _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
4660- # Exported symbols can be pulled into shared objects from archives
4661- _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
4662- _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
4663- # This is similar to how AIX traditionally builds its shared libraries.
4664- _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
4665- fi
4666- fi
4667- ;;
4668-
4669- amigaos*)
4670- case $host_cpu in
4671- powerpc)
4672- # see comment about AmigaOS4 .so support
4673- _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4674- _LT_TAGVAR(archive_expsym_cmds, $1)=''
4675- ;;
4676- m68k)
4677- _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)'
4678- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4679- _LT_TAGVAR(hardcode_minus_L, $1)=yes
4680- ;;
4681- esac
4682- ;;
4683-
4684- bsdi[[45]]*)
4685- _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
4686- ;;
4687-
4688- cygwin* | mingw* | pw32* | cegcc*)
4689- # When not using gcc, we currently assume that we are using
4690- # Microsoft Visual C++.
4691- # hardcode_libdir_flag_spec is actually meaningless, as there is
4692- # no search path for DLLs.
4693- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
4694- _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4695- # Tell ltmain to make .lib files, not .a files.
4696- libext=lib
4697- # Tell ltmain to make .dll files, not .so files.
4698- shrext_cmds=".dll"
4699- # FIXME: Setting linknames here is a bad hack.
4700- _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
4701- # The linker will automatically build a .lib file if we build a DLL.
4702- _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
4703- # FIXME: Should let the user specify the lib program.
4704- _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
4705- _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
4706- _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
4707- ;;
4708-
4709- darwin* | rhapsody*)
4710- _LT_DARWIN_LINKER_FEATURES($1)
4711- ;;
4712-
4713- dgux*)
4714- _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4715- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4716- _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4717- ;;
4718-
4719- freebsd1*)
4720- _LT_TAGVAR(ld_shlibs, $1)=no
4721- ;;
4722-
4723- # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
4724- # support. Future versions do this automatically, but an explicit c++rt0.o
4725- # does not break anything, and helps significantly (at the cost of a little
4726- # extra space).
4727- freebsd2.2*)
4728- _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
4729- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4730- _LT_TAGVAR(hardcode_direct, $1)=yes
4731- _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4732- ;;
4733-
4734- # Unfortunately, older versions of FreeBSD 2 do not have this feature.
4735- freebsd2*)
4736- _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4737- _LT_TAGVAR(hardcode_direct, $1)=yes
4738- _LT_TAGVAR(hardcode_minus_L, $1)=yes
4739- _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4740- ;;
4741-
4742- # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
4743- freebsd* | dragonfly*)
4744- _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
4745- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4746- _LT_TAGVAR(hardcode_direct, $1)=yes
4747- _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4748- ;;
4749-
4750- hpux9*)
4751- if test "$GCC" = yes; then
4752- _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
4753- else
4754- _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
4755- fi
4756- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
4757- _LT_TAGVAR(hardcode_libdir_separator, $1)=:
4758- _LT_TAGVAR(hardcode_direct, $1)=yes
4759-
4760- # hardcode_minus_L: Not really in the search PATH,
4761- # but as the default location of the library.
4762- _LT_TAGVAR(hardcode_minus_L, $1)=yes
4763- _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4764- ;;
4765-
4766- hpux10*)
4767- if test "$GCC" = yes -a "$with_gnu_ld" = no; then
4768- _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
4769- else
4770- _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
4771- fi
4772- if test "$with_gnu_ld" = no; then
4773- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
4774- _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
4775- _LT_TAGVAR(hardcode_libdir_separator, $1)=:
4776- _LT_TAGVAR(hardcode_direct, $1)=yes
4777- _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
4778- _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4779- # hardcode_minus_L: Not really in the search PATH,
4780- # but as the default location of the library.
4781- _LT_TAGVAR(hardcode_minus_L, $1)=yes
4782- fi
4783- ;;
4784-
4785- hpux11*)
4786- if test "$GCC" = yes -a "$with_gnu_ld" = no; then
4787- case $host_cpu in
4788- hppa*64*)
4789- _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4790- ;;
4791- ia64*)
4792- _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
4793- ;;
4794- *)
4795- _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
4796- ;;
4797- esac
4798- else
4799- case $host_cpu in
4800- hppa*64*)
4801- _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4802- ;;
4803- ia64*)
4804- _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
4805- ;;
4806- *)
4807- _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
4808- ;;
4809- esac
4810- fi
4811- if test "$with_gnu_ld" = no; then
4812- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
4813- _LT_TAGVAR(hardcode_libdir_separator, $1)=:
4814-
4815- case $host_cpu in
4816- hppa*64*|ia64*)
4817- _LT_TAGVAR(hardcode_direct, $1)=no
4818- _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4819- ;;
4820- *)
4821- _LT_TAGVAR(hardcode_direct, $1)=yes
4822- _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
4823- _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4824-
4825- # hardcode_minus_L: Not really in the search PATH,
4826- # but as the default location of the library.
4827- _LT_TAGVAR(hardcode_minus_L, $1)=yes
4828- ;;
4829- esac
4830- fi
4831- ;;
4832-
4833- irix5* | irix6* | nonstopux*)
4834- if test "$GCC" = yes; then
4835- _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4836- # Try to use the -exported_symbol ld option, if it does not
4837- # work, assume that -exports_file does not work either and
4838- # implicitly export all symbols.
4839- save_LDFLAGS="$LDFLAGS"
4840- LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
4841- AC_LINK_IFELSE(int foo(void) {},
4842- _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
4843- )
4844- LDFLAGS="$save_LDFLAGS"
4845- else
4846- _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
4847- _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
4848- fi
4849- _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
4850- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4851- _LT_TAGVAR(hardcode_libdir_separator, $1)=:
4852- _LT_TAGVAR(inherit_rpath, $1)=yes
4853- _LT_TAGVAR(link_all_deplibs, $1)=yes
4854- ;;
4855-
4856- netbsd*)
4857- if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
4858- _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
4859- else
4860- _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
4861- fi
4862- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4863- _LT_TAGVAR(hardcode_direct, $1)=yes
4864- _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4865- ;;
4866-
4867- newsos6)
4868- _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4869- _LT_TAGVAR(hardcode_direct, $1)=yes
4870- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4871- _LT_TAGVAR(hardcode_libdir_separator, $1)=:
4872- _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4873- ;;
4874-
4875- *nto* | *qnx*)
4876- ;;
4877-
4878- openbsd*)
4879- if test -f /usr/libexec/ld.so; then
4880- _LT_TAGVAR(hardcode_direct, $1)=yes
4881- _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4882- _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
4883- if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4884- _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
4885- _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
4886- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4887- _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4888- else
4889- case $host_os in
4890- openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
4891- _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4892- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4893- ;;
4894- *)
4895- _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
4896- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4897- ;;
4898- esac
4899- fi
4900- else
4901- _LT_TAGVAR(ld_shlibs, $1)=no
4902- fi
4903- ;;
4904-
4905- os2*)
4906- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4907- _LT_TAGVAR(hardcode_minus_L, $1)=yes
4908- _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4909- _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
4910- _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
4911- ;;
4912-
4913- osf3*)
4914- if test "$GCC" = yes; then
4915- _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4916- _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4917- else
4918- _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
4919- _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
4920- fi
4921- _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
4922- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4923- _LT_TAGVAR(hardcode_libdir_separator, $1)=:
4924- ;;
4925-
4926- osf4* | osf5*) # as osf3* with the addition of -msym flag
4927- if test "$GCC" = yes; then
4928- _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4929- _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4930- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4931- else
4932- _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
4933- _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
4934- _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
4935- $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
4936-
4937- # Both c and cxx compiler support -rpath directly
4938- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
4939- fi
4940- _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
4941- _LT_TAGVAR(hardcode_libdir_separator, $1)=:
4942- ;;
4943-
4944- solaris*)
4945- _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
4946- if test "$GCC" = yes; then
4947- wlarc='${wl}'
4948- _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4949- _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
4950- $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
4951- else
4952- case `$CC -V 2>&1` in
4953- *"Compilers 5.0"*)
4954- wlarc=''
4955- _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
4956- _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
4957- $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
4958- ;;
4959- *)
4960- wlarc='${wl}'
4961- _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
4962- _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
4963- $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
4964- ;;
4965- esac
4966- fi
4967- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4968- _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4969- case $host_os in
4970- solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
4971- *)
4972- # The compiler driver will combine and reorder linker options,
4973- # but understands `-z linker_flag'. GCC discards it without `$wl',
4974- # but is careful enough not to reorder.
4975- # Supported since Solaris 2.6 (maybe 2.5.1?)
4976- if test "$GCC" = yes; then
4977- _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
4978- else
4979- _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
4980- fi
4981- ;;
4982- esac
4983- _LT_TAGVAR(link_all_deplibs, $1)=yes
4984- ;;
4985-
4986- sunos4*)
4987- if test "x$host_vendor" = xsequent; then
4988- # Use $CC to link under sequent, because it throws in some extra .o
4989- # files that make .init and .fini sections work.
4990- _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
4991- else
4992- _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
4993- fi
4994- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4995- _LT_TAGVAR(hardcode_direct, $1)=yes
4996- _LT_TAGVAR(hardcode_minus_L, $1)=yes
4997- _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4998- ;;
4999-
5000- sysv4)
5001- case $host_vendor in
5002- sni)
5003- _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5004- _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
5005- ;;
5006- siemens)
5007- ## LD is ld it makes a PLAMLIB
5008- ## CC just makes a GrossModule.
5009- _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5010- _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
5011- _LT_TAGVAR(hardcode_direct, $1)=no
5012- ;;
5013- motorola)
5014- _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5015- _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
5016- ;;
5017- esac
5018- runpath_var='LD_RUN_PATH'
5019- _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5020- ;;
5021-
5022- sysv4.3*)
5023- _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5024- _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5025- _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
5026- ;;
5027-
5028- sysv4*MP*)
5029- if test -d /usr/nec; then
5030- _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5031- _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5032- runpath_var=LD_RUN_PATH
5033- hardcode_runpath_var=yes
5034- _LT_TAGVAR(ld_shlibs, $1)=yes
5035- fi
5036- ;;
5037-
5038- sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
5039- _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
5040- _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5041- _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5042- runpath_var='LD_RUN_PATH'
5043-
5044- if test "$GCC" = yes; then
5045- _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5046- _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5047- else
5048- _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5049- _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5050- fi
5051- ;;
5052-
5053- sysv5* | sco3.2v5* | sco5v6*)
5054- # Note: We can NOT use -z defs as we might desire, because we do not
5055- # link with -lc, and that would cause any symbols used from libc to
5056- # always be unresolved, which means just about no library would
5057- # ever link correctly. If we're not using GNU ld we use -z text
5058- # though, which does catch some bad symbols but isn't as heavy-handed
5059- # as -z defs.
5060- _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
5061- _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
5062- _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5063- _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5064- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
5065- _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
5066- _LT_TAGVAR(link_all_deplibs, $1)=yes
5067- _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
5068- runpath_var='LD_RUN_PATH'
5069-
5070- if test "$GCC" = yes; then
5071- _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5072- _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5073- else
5074- _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5075- _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5076- fi
5077- ;;
5078-
5079- uts4*)
5080- _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5081- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5082- _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5083- ;;
5084-
5085- *)
5086- _LT_TAGVAR(ld_shlibs, $1)=no
5087- ;;
5088- esac
5089-
5090- if test x$host_vendor = xsni; then
5091- case $host in
5092- sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5093- _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
5094- ;;
5095- esac
5096- fi
5097- fi
5098-])
5099-AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
5100-test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
5101-
5102-_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
5103-
5104-_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
5105-_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
5106-_LT_DECL([], [extract_expsyms_cmds], [2],
5107- [The commands to extract the exported symbol list from a shared archive])
5108-
5109-#
5110-# Do we need to explicitly link libc?
5111-#
5112-case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
5113-x|xyes)
5114- # Assume -lc should be added
5115- _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5116-
5117- if test "$enable_shared" = yes && test "$GCC" = yes; then
5118- case $_LT_TAGVAR(archive_cmds, $1) in
5119- *'~'*)
5120- # FIXME: we may have to deal with multi-command sequences.
5121- ;;
5122- '$CC '*)
5123- # Test whether the compiler implicitly links with -lc since on some
5124- # systems, -lgcc has to come before -lc. If gcc already passes -lc
5125- # to ld, don't add -lc before -lgcc.
5126- AC_MSG_CHECKING([whether -lc should be explicitly linked in])
5127- $RM conftest*
5128- echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5129-
5130- if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
5131- soname=conftest
5132- lib=conftest
5133- libobjs=conftest.$ac_objext
5134- deplibs=
5135- wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
5136- pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
5137- compiler_flags=-v
5138- linker_flags=-v
5139- verstring=
5140- output_objdir=.
5141- libname=conftest
5142- lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
5143- _LT_TAGVAR(allow_undefined_flag, $1)=
5144- if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
5145- then
5146- _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5147- else
5148- _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5149- fi
5150- _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
5151- else
5152- cat conftest.err 1>&5
5153- fi
5154- $RM conftest*
5155- AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
5156- ;;
5157- esac
5158- fi
5159- ;;
5160-esac
5161-
5162-_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
5163- [Whether or not to add -lc for building shared libraries])
5164-_LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
5165- [enable_shared_with_static_runtimes], [0],
5166- [Whether or not to disallow shared libs when runtime libs are static])
5167-_LT_TAGDECL([], [export_dynamic_flag_spec], [1],
5168- [Compiler flag to allow reflexive dlopens])
5169-_LT_TAGDECL([], [whole_archive_flag_spec], [1],
5170- [Compiler flag to generate shared objects directly from archives])
5171-_LT_TAGDECL([], [compiler_needs_object], [1],
5172- [Whether the compiler copes with passing no objects directly])
5173-_LT_TAGDECL([], [old_archive_from_new_cmds], [2],
5174- [Create an old-style archive from a shared archive])
5175-_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
5176- [Create a temporary old-style archive to link instead of a shared archive])
5177-_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
5178-_LT_TAGDECL([], [archive_expsym_cmds], [2])
5179-_LT_TAGDECL([], [module_cmds], [2],
5180- [Commands used to build a loadable module if different from building
5181- a shared archive.])
5182-_LT_TAGDECL([], [module_expsym_cmds], [2])
5183-_LT_TAGDECL([], [with_gnu_ld], [1],
5184- [Whether we are building with GNU ld or not])
5185-_LT_TAGDECL([], [allow_undefined_flag], [1],
5186- [Flag that allows shared libraries with undefined symbols to be built])
5187-_LT_TAGDECL([], [no_undefined_flag], [1],
5188- [Flag that enforces no undefined symbols])
5189-_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
5190- [Flag to hardcode $libdir into a binary during linking.
5191- This must work even if $libdir does not exist])
5192-_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
5193- [[If ld is used when linking, flag to hardcode $libdir into a binary
5194- during linking. This must work even if $libdir does not exist]])
5195-_LT_TAGDECL([], [hardcode_libdir_separator], [1],
5196- [Whether we need a single "-rpath" flag with a separated argument])
5197-_LT_TAGDECL([], [hardcode_direct], [0],
5198- [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
5199- DIR into the resulting binary])
5200-_LT_TAGDECL([], [hardcode_direct_absolute], [0],
5201- [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
5202- DIR into the resulting binary and the resulting library dependency is
5203- "absolute", i.e impossible to change by setting ${shlibpath_var} if the
5204- library is relocated])
5205-_LT_TAGDECL([], [hardcode_minus_L], [0],
5206- [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
5207- into the resulting binary])
5208-_LT_TAGDECL([], [hardcode_shlibpath_var], [0],
5209- [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
5210- into the resulting binary])
5211-_LT_TAGDECL([], [hardcode_automatic], [0],
5212- [Set to "yes" if building a shared library automatically hardcodes DIR
5213- into the library and all subsequent libraries and executables linked
5214- against it])
5215-_LT_TAGDECL([], [inherit_rpath], [0],
5216- [Set to yes if linker adds runtime paths of dependent libraries
5217- to runtime path list])
5218-_LT_TAGDECL([], [link_all_deplibs], [0],
5219- [Whether libtool must link a program against all its dependency libraries])
5220-_LT_TAGDECL([], [fix_srcfile_path], [1],
5221- [Fix the shell variable $srcfile for the compiler])
5222-_LT_TAGDECL([], [always_export_symbols], [0],
5223- [Set to "yes" if exported symbols are required])
5224-_LT_TAGDECL([], [export_symbols_cmds], [2],
5225- [The commands to list exported symbols])
5226-_LT_TAGDECL([], [exclude_expsyms], [1],
5227- [Symbols that should not be listed in the preloaded symbols])
5228-_LT_TAGDECL([], [include_expsyms], [1],
5229- [Symbols that must always be exported])
5230-_LT_TAGDECL([], [prelink_cmds], [2],
5231- [Commands necessary for linking programs (against libraries) with templates])
5232-_LT_TAGDECL([], [file_list_spec], [1],
5233- [Specify filename containing input files])
5234-dnl FIXME: Not yet implemented
5235-dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
5236-dnl [Compiler flag to generate thread safe objects])
5237-])# _LT_LINKER_SHLIBS
5238-
5239-
5240-# _LT_LANG_C_CONFIG([TAG])
5241-# ------------------------
5242-# Ensure that the configuration variables for a C compiler are suitably
5243-# defined. These variables are subsequently used by _LT_CONFIG to write
5244-# the compiler configuration to `libtool'.
5245-m4_defun([_LT_LANG_C_CONFIG],
5246-[m4_require([_LT_DECL_EGREP])dnl
5247-lt_save_CC="$CC"
5248-AC_LANG_PUSH(C)
5249-
5250-# Source file extension for C test sources.
5251-ac_ext=c
5252-
5253-# Object file extension for compiled C test sources.
5254-objext=o
5255-_LT_TAGVAR(objext, $1)=$objext
5256-
5257-# Code to be used in simple compile tests
5258-lt_simple_compile_test_code="int some_variable = 0;"
5259-
5260-# Code to be used in simple link tests
5261-lt_simple_link_test_code='int main(){return(0);}'
5262-
5263-_LT_TAG_COMPILER
5264-# Save the default compiler, since it gets overwritten when the other
5265-# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
5266-compiler_DEFAULT=$CC
5267-
5268-# save warnings/boilerplate of simple test code
5269-_LT_COMPILER_BOILERPLATE
5270-_LT_LINKER_BOILERPLATE
5271-
5272-if test -n "$compiler"; then
5273- _LT_COMPILER_NO_RTTI($1)
5274- _LT_COMPILER_PIC($1)
5275- _LT_COMPILER_C_O($1)
5276- _LT_COMPILER_FILE_LOCKS($1)
5277- _LT_LINKER_SHLIBS($1)
5278- _LT_SYS_DYNAMIC_LINKER($1)
5279- _LT_LINKER_HARDCODE_LIBPATH($1)
5280- LT_SYS_DLOPEN_SELF
5281- _LT_CMD_STRIPLIB
5282-
5283- # Report which library types will actually be built
5284- AC_MSG_CHECKING([if libtool supports shared libraries])
5285- AC_MSG_RESULT([$can_build_shared])
5286-
5287- AC_MSG_CHECKING([whether to build shared libraries])
5288- test "$can_build_shared" = "no" && enable_shared=no
5289-
5290- # On AIX, shared libraries and static libraries use the same namespace, and
5291- # are all built from PIC.
5292- case $host_os in
5293- aix3*)
5294- test "$enable_shared" = yes && enable_static=no
5295- if test -n "$RANLIB"; then
5296- archive_cmds="$archive_cmds~\$RANLIB \$lib"
5297- postinstall_cmds='$RANLIB $lib'
5298- fi
5299- ;;
5300-
5301- aix[[4-9]]*)
5302- if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
5303- test "$enable_shared" = yes && enable_static=no
5304- fi
5305- ;;
5306- esac
5307- AC_MSG_RESULT([$enable_shared])
5308-
5309- AC_MSG_CHECKING([whether to build static libraries])
5310- # Make sure either enable_shared or enable_static is yes.
5311- test "$enable_shared" = yes || enable_static=yes
5312- AC_MSG_RESULT([$enable_static])
5313-
5314- _LT_CONFIG($1)
5315-fi
5316-AC_LANG_POP
5317-CC="$lt_save_CC"
5318-])# _LT_LANG_C_CONFIG
5319-
5320-
5321-# _LT_PROG_CXX
5322-# ------------
5323-# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
5324-# compiler, we have our own version here.
5325-m4_defun([_LT_PROG_CXX],
5326-[
5327-pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
5328-AC_PROG_CXX
5329-if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5330- ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5331- (test "X$CXX" != "Xg++"))) ; then
5332- AC_PROG_CXXCPP
5333-else
5334- _lt_caught_CXX_error=yes
5335-fi
5336-popdef([AC_MSG_ERROR])
5337-])# _LT_PROG_CXX
5338-
5339-dnl aclocal-1.4 backwards compatibility:
5340-dnl AC_DEFUN([_LT_PROG_CXX], [])
5341-
5342-
5343-# _LT_LANG_CXX_CONFIG([TAG])
5344-# --------------------------
5345-# Ensure that the configuration variables for a C++ compiler are suitably
5346-# defined. These variables are subsequently used by _LT_CONFIG to write
5347-# the compiler configuration to `libtool'.
5348-m4_defun([_LT_LANG_CXX_CONFIG],
5349-[AC_REQUIRE([_LT_PROG_CXX])dnl
5350-m4_require([_LT_FILEUTILS_DEFAULTS])dnl
5351-m4_require([_LT_DECL_EGREP])dnl
5352-
5353-AC_LANG_PUSH(C++)
5354-_LT_TAGVAR(archive_cmds_need_lc, $1)=no
5355-_LT_TAGVAR(allow_undefined_flag, $1)=
5356-_LT_TAGVAR(always_export_symbols, $1)=no
5357-_LT_TAGVAR(archive_expsym_cmds, $1)=
5358-_LT_TAGVAR(compiler_needs_object, $1)=no
5359-_LT_TAGVAR(export_dynamic_flag_spec, $1)=
5360-_LT_TAGVAR(hardcode_direct, $1)=no
5361-_LT_TAGVAR(hardcode_direct_absolute, $1)=no
5362-_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5363-_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
5364-_LT_TAGVAR(hardcode_libdir_separator, $1)=
5365-_LT_TAGVAR(hardcode_minus_L, $1)=no
5366-_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5367-_LT_TAGVAR(hardcode_automatic, $1)=no
5368-_LT_TAGVAR(inherit_rpath, $1)=no
5369-_LT_TAGVAR(module_cmds, $1)=
5370-_LT_TAGVAR(module_expsym_cmds, $1)=
5371-_LT_TAGVAR(link_all_deplibs, $1)=unknown
5372-_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
5373-_LT_TAGVAR(no_undefined_flag, $1)=
5374-_LT_TAGVAR(whole_archive_flag_spec, $1)=
5375-_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
5376-
5377-# Source file extension for C++ test sources.
5378-ac_ext=cpp
5379-
5380-# Object file extension for compiled C++ test sources.
5381-objext=o
5382-_LT_TAGVAR(objext, $1)=$objext
5383-
5384-# No sense in running all these tests if we already determined that
5385-# the CXX compiler isn't working. Some variables (like enable_shared)
5386-# are currently assumed to apply to all compilers on this platform,
5387-# and will be corrupted by setting them based on a non-working compiler.
5388-if test "$_lt_caught_CXX_error" != yes; then
5389- # Code to be used in simple compile tests
5390- lt_simple_compile_test_code="int some_variable = 0;"
5391-
5392- # Code to be used in simple link tests
5393- lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
5394-
5395- # ltmain only uses $CC for tagged configurations so make sure $CC is set.
5396- _LT_TAG_COMPILER
5397-
5398- # save warnings/boilerplate of simple test code
5399- _LT_COMPILER_BOILERPLATE
5400- _LT_LINKER_BOILERPLATE
5401-
5402- # Allow CC to be a program name with arguments.
5403- lt_save_CC=$CC
5404- lt_save_LD=$LD
5405- lt_save_GCC=$GCC
5406- GCC=$GXX
5407- lt_save_with_gnu_ld=$with_gnu_ld
5408- lt_save_path_LD=$lt_cv_path_LD
5409- if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
5410- lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
5411- else
5412- $as_unset lt_cv_prog_gnu_ld
5413- fi
5414- if test -n "${lt_cv_path_LDCXX+set}"; then
5415- lt_cv_path_LD=$lt_cv_path_LDCXX
5416- else
5417- $as_unset lt_cv_path_LD
5418- fi
5419- test -z "${LDCXX+set}" || LD=$LDCXX
5420- CC=${CXX-"c++"}
5421- compiler=$CC
5422- _LT_TAGVAR(compiler, $1)=$CC
5423- _LT_CC_BASENAME([$compiler])
5424-
5425- if test -n "$compiler"; then
5426- # We don't want -fno-exception when compiling C++ code, so set the
5427- # no_builtin_flag separately
5428- if test "$GXX" = yes; then
5429- _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
5430- else
5431- _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
5432- fi
5433-
5434- if test "$GXX" = yes; then
5435- # Set up default GNU C++ configuration
5436-
5437- LT_PATH_LD
5438-
5439- # Check if GNU C++ uses GNU ld as the underlying linker, since the
5440- # archiving commands below assume that GNU ld is being used.
5441- if test "$with_gnu_ld" = yes; then
5442- _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5443- _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5444-
5445- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5446- _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5447-
5448- # If archive_cmds runs LD, not CC, wlarc should be empty
5449- # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
5450- # investigate it a little bit more. (MM)
5451- wlarc='${wl}'
5452-
5453- # ancient GNU ld didn't support --whole-archive et. al.
5454- if eval "`$CC -print-prog-name=ld` --help 2>&1" |
5455- $GREP 'no-whole-archive' > /dev/null; then
5456- _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5457- else
5458- _LT_TAGVAR(whole_archive_flag_spec, $1)=
5459- fi
5460- else
5461- with_gnu_ld=no
5462- wlarc=
5463-
5464- # A generic and very simple default shared library creation
5465- # command for GNU C++ for the case where it uses the native
5466- # linker, instead of GNU ld. If possible, this setting should
5467- # overridden to take advantage of the native linker features on
5468- # the platform it is being used on.
5469- _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
5470- fi
5471-
5472- # Commands to make compiler produce verbose output that lists
5473- # what "hidden" libraries, object files and flags are used when
5474- # linking a shared library.
5475- output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
5476-
5477- else
5478- GXX=no
5479- with_gnu_ld=no
5480- wlarc=
5481- fi
5482-
5483- # PORTME: fill in a description of your system's C++ link characteristics
5484- AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5485- _LT_TAGVAR(ld_shlibs, $1)=yes
5486- case $host_os in
5487- aix3*)
5488- # FIXME: insert proper C++ library support
5489- _LT_TAGVAR(ld_shlibs, $1)=no
5490- ;;
5491- aix[[4-9]]*)
5492- if test "$host_cpu" = ia64; then
5493- # On IA64, the linker does run time linking by default, so we don't
5494- # have to do anything special.
5495- aix_use_runtimelinking=no
5496- exp_sym_flag='-Bexport'
5497- no_entry_flag=""
5498- else
5499- aix_use_runtimelinking=no
5500-
5501- # Test if we are trying to use run time linking or normal
5502- # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5503- # need to do runtime linking.
5504- case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
5505- for ld_flag in $LDFLAGS; do
5506- case $ld_flag in
5507- *-brtl*)
5508- aix_use_runtimelinking=yes
5509- break
5510- ;;
5511- esac
5512- done
5513- ;;
5514- esac
5515-
5516- exp_sym_flag='-bexport'
5517- no_entry_flag='-bnoentry'
5518- fi
5519-
5520- # When large executables or shared objects are built, AIX ld can
5521- # have problems creating the table of contents. If linking a library
5522- # or program results in "error TOC overflow" add -mminimal-toc to
5523- # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5524- # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5525-
5526- _LT_TAGVAR(archive_cmds, $1)=''
5527- _LT_TAGVAR(hardcode_direct, $1)=yes
5528- _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5529- _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
5530- _LT_TAGVAR(link_all_deplibs, $1)=yes
5531- _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
5532-
5533- if test "$GXX" = yes; then
5534- case $host_os in aix4.[[012]]|aix4.[[012]].*)
5535- # We only want to do this on AIX 4.2 and lower, the check
5536- # below for broken collect2 doesn't work under 4.3+
5537- collect2name=`${CC} -print-prog-name=collect2`
5538- if test -f "$collect2name" &&
5539- strings "$collect2name" | $GREP resolve_lib_name >/dev/null
5540- then
5541- # We have reworked collect2
5542- :
5543- else
5544- # We have old collect2
5545- _LT_TAGVAR(hardcode_direct, $1)=unsupported
5546- # It fails to find uninstalled libraries when the uninstalled
5547- # path is not listed in the libpath. Setting hardcode_minus_L
5548- # to unsupported forces relinking
5549- _LT_TAGVAR(hardcode_minus_L, $1)=yes
5550- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5551- _LT_TAGVAR(hardcode_libdir_separator, $1)=
5552- fi
5553- esac
5554- shared_flag='-shared'
5555- if test "$aix_use_runtimelinking" = yes; then
5556- shared_flag="$shared_flag "'${wl}-G'
5557- fi
5558- else
5559- # not using gcc
5560- if test "$host_cpu" = ia64; then
5561- # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
5562- # chokes on -Wl,-G. The following line is correct:
5563- shared_flag='-G'
5564- else
5565- if test "$aix_use_runtimelinking" = yes; then
5566- shared_flag='${wl}-G'
5567- else
5568- shared_flag='${wl}-bM:SRE'
5569- fi
5570- fi
5571- fi
5572-
5573- _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
5574- # It seems that -bexpall does not export symbols beginning with
5575- # underscore (_), so it is better to generate a list of symbols to
5576- # export.
5577- _LT_TAGVAR(always_export_symbols, $1)=yes
5578- if test "$aix_use_runtimelinking" = yes; then
5579- # Warning - without using the other runtime loading flags (-brtl),
5580- # -berok will link without error, but may produce a broken library.
5581- _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
5582- # Determine the default libpath from the value encoded in an empty
5583- # executable.
5584- _LT_SYS_MODULE_PATH_AIX
5585- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5586-
5587- _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
5588- else
5589- if test "$host_cpu" = ia64; then
5590- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
5591- _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
5592- _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
5593- else
5594- # Determine the default libpath from the value encoded in an
5595- # empty executable.
5596- _LT_SYS_MODULE_PATH_AIX
5597- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5598- # Warning - without using the other run time loading flags,
5599- # -berok will link without error, but may produce a broken library.
5600- _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
5601- _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5602- # Exported symbols can be pulled into shared objects from archives
5603- _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
5604- _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5605- # This is similar to how AIX traditionally builds its shared
5606- # libraries.
5607- _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
5608- fi
5609- fi
5610- ;;
5611-
5612- beos*)
5613- if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5614- _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5615- # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5616- # support --undefined. This deserves some investigation. FIXME
5617- _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5618- else
5619- _LT_TAGVAR(ld_shlibs, $1)=no
5620- fi
5621- ;;
5622-
5623- chorus*)
5624- case $cc_basename in
5625- *)
5626- # FIXME: insert proper C++ library support
5627- _LT_TAGVAR(ld_shlibs, $1)=no
5628- ;;
5629- esac
5630- ;;
5631-
5632- cygwin* | mingw* | pw32* | cegcc*)
5633- # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
5634- # as there is no search path for DLLs.
5635- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5636- _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5637- _LT_TAGVAR(always_export_symbols, $1)=no
5638- _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5639-
5640- if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
5641- _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5642- # If the export-symbols file already is a .def file (1st line
5643- # is EXPORTS), use it as is; otherwise, prepend...
5644- _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5645- cp $export_symbols $output_objdir/$soname.def;
5646- else
5647- echo EXPORTS > $output_objdir/$soname.def;
5648- cat $export_symbols >> $output_objdir/$soname.def;
5649- fi~
5650- $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5651- else
5652- _LT_TAGVAR(ld_shlibs, $1)=no
5653- fi
5654- ;;
5655- darwin* | rhapsody*)
5656- _LT_DARWIN_LINKER_FEATURES($1)
5657- ;;
5658-
5659- dgux*)
5660- case $cc_basename in
5661- ec++*)
5662- # FIXME: insert proper C++ library support
5663- _LT_TAGVAR(ld_shlibs, $1)=no
5664- ;;
5665- ghcx*)
5666- # Green Hills C++ Compiler
5667- # FIXME: insert proper C++ library support
5668- _LT_TAGVAR(ld_shlibs, $1)=no
5669- ;;
5670- *)
5671- # FIXME: insert proper C++ library support
5672- _LT_TAGVAR(ld_shlibs, $1)=no
5673- ;;
5674- esac
5675- ;;
5676-
5677- freebsd[[12]]*)
5678- # C++ shared libraries reported to be fairly broken before
5679- # switch to ELF
5680- _LT_TAGVAR(ld_shlibs, $1)=no
5681- ;;
5682-
5683- freebsd-elf*)
5684- _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5685- ;;
5686-
5687- freebsd* | dragonfly*)
5688- # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
5689- # conventions
5690- _LT_TAGVAR(ld_shlibs, $1)=yes
5691- ;;
5692-
5693- gnu*)
5694- ;;
5695-
5696- hpux9*)
5697- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5698- _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5699- _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5700- _LT_TAGVAR(hardcode_direct, $1)=yes
5701- _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
5702- # but as the default
5703- # location of the library.
5704-
5705- case $cc_basename in
5706- CC*)
5707- # FIXME: insert proper C++ library support
5708- _LT_TAGVAR(ld_shlibs, $1)=no
5709- ;;
5710- aCC*)
5711- _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
5712- # Commands to make compiler produce verbose output that lists
5713- # what "hidden" libraries, object files and flags are used when
5714- # linking a shared library.
5715- #
5716- # There doesn't appear to be a way to prevent this compiler from
5717- # explicitly linking system object files so we need to strip them
5718- # from the output so that they don't get included in the library
5719- # dependencies.
5720- output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
5721- ;;
5722- *)
5723- if test "$GXX" = yes; then
5724- _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
5725- else
5726- # FIXME: insert proper C++ library support
5727- _LT_TAGVAR(ld_shlibs, $1)=no
5728- fi
5729- ;;
5730- esac
5731- ;;
5732-
5733- hpux10*|hpux11*)
5734- if test $with_gnu_ld = no; then
5735- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5736- _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5737-
5738- case $host_cpu in
5739- hppa*64*|ia64*)
5740- ;;
5741- *)
5742- _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5743- ;;
5744- esac
5745- fi
5746- case $host_cpu in
5747- hppa*64*|ia64*)
5748- _LT_TAGVAR(hardcode_direct, $1)=no
5749- _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5750- ;;
5751- *)
5752- _LT_TAGVAR(hardcode_direct, $1)=yes
5753- _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5754- _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
5755- # but as the default
5756- # location of the library.
5757- ;;
5758- esac
5759-
5760- case $cc_basename in
5761- CC*)
5762- # FIXME: insert proper C++ library support
5763- _LT_TAGVAR(ld_shlibs, $1)=no
5764- ;;
5765- aCC*)
5766- case $host_cpu in
5767- hppa*64*)
5768- _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5769- ;;
5770- ia64*)
5771- _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5772- ;;
5773- *)
5774- _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5775- ;;
5776- esac
5777- # Commands to make compiler produce verbose output that lists
5778- # what "hidden" libraries, object files and flags are used when
5779- # linking a shared library.
5780- #
5781- # There doesn't appear to be a way to prevent this compiler from
5782- # explicitly linking system object files so we need to strip them
5783- # from the output so that they don't get included in the library
5784- # dependencies.
5785- output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
5786- ;;
5787- *)
5788- if test "$GXX" = yes; then
5789- if test $with_gnu_ld = no; then
5790- case $host_cpu in
5791- hppa*64*)
5792- _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5793- ;;
5794- ia64*)
5795- _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5796- ;;
5797- *)
5798- _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5799- ;;
5800- esac
5801- fi
5802- else
5803- # FIXME: insert proper C++ library support
5804- _LT_TAGVAR(ld_shlibs, $1)=no
5805- fi
5806- ;;
5807- esac
5808- ;;
5809-
5810- interix[[3-9]]*)
5811- _LT_TAGVAR(hardcode_direct, $1)=no
5812- _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5813- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5814- _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5815- # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
5816- # Instead, shared libraries are loaded at an image base (0x10000000 by
5817- # default) and relocated if they conflict, which is a slow very memory
5818- # consuming and fragmenting process. To avoid this, we pick a random,
5819- # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
5820- # time. Moving up from 0x10000000 also allows more sbrk(2) space.
5821- _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'
5822- _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'
5823- ;;
5824- irix5* | irix6*)
5825- case $cc_basename in
5826- CC*)
5827- # SGI C++
5828- _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
5829-
5830- # Archives containing C++ object files must be created using
5831- # "CC -ar", where "CC" is the IRIX C++ compiler. This is
5832- # necessary to make sure instantiated templates are included
5833- # in the archive.
5834- _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
5835- ;;
5836- *)
5837- if test "$GXX" = yes; then
5838- if test "$with_gnu_ld" = no; then
5839- _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5840- else
5841- _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
5842- fi
5843- fi
5844- _LT_TAGVAR(link_all_deplibs, $1)=yes
5845- ;;
5846- esac
5847- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5848- _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5849- _LT_TAGVAR(inherit_rpath, $1)=yes
5850- ;;
5851-
5852- linux* | k*bsd*-gnu)
5853- case $cc_basename in
5854- KCC*)
5855- # Kuck and Associates, Inc. (KAI) C++ Compiler
5856-
5857- # KCC will only create a shared library if the output file
5858- # ends with ".so" (or ".sl" for HP-UX), so rename the library
5859- # to its proper name (with version) after linking.
5860- _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
5861- _LT_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
5862- # Commands to make compiler produce verbose output that lists
5863- # what "hidden" libraries, object files and flags are used when
5864- # linking a shared library.
5865- #
5866- # There doesn't appear to be a way to prevent this compiler from
5867- # explicitly linking system object files so we need to strip them
5868- # from the output so that they don't get included in the library
5869- # dependencies.
5870- output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
5871-
5872- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5873- _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5874-
5875- # Archives containing C++ object files must be created using
5876- # "CC -Bstatic", where "CC" is the KAI C++ compiler.
5877- _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
5878- ;;
5879- icpc* | ecpc* )
5880- # Intel C++
5881- with_gnu_ld=yes
5882- # version 8.0 and above of icpc choke on multiply defined symbols
5883- # if we add $predep_objects and $postdep_objects, however 7.1 and
5884- # earlier do not add the objects themselves.
5885- case `$CC -V 2>&1` in
5886- *"Version 7."*)
5887- _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5888- _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5889- ;;
5890- *) # Version 8.0 or newer
5891- tmp_idyn=
5892- case $host_cpu in
5893- ia64*) tmp_idyn=' -i_dynamic';;
5894- esac
5895- _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5896- _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5897- ;;
5898- esac
5899- _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5900- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5901- _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5902- _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
5903- ;;
5904- pgCC* | pgcpp*)
5905- # Portland Group C++ compiler
5906- case `$CC -V` in
5907- *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
5908- _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
5909- rm -rf $tpldir~
5910- $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
5911- compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
5912- _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
5913- rm -rf $tpldir~
5914- $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
5915- $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
5916- $RANLIB $oldlib'
5917- _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
5918- rm -rf $tpldir~
5919- $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
5920- $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
5921- _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
5922- rm -rf $tpldir~
5923- $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
5924- $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
5925- ;;
5926- *) # Version 6 will use weak symbols
5927- _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
5928- _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
5929- ;;
5930- esac
5931-
5932- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
5933- _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5934- _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
5935- ;;
5936- cxx*)
5937- # Compaq C++
5938- _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5939- _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
5940-
5941- runpath_var=LD_RUN_PATH
5942- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
5943- _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5944-
5945- # Commands to make compiler produce verbose output that lists
5946- # what "hidden" libraries, object files and flags are used when
5947- # linking a shared library.
5948- #
5949- # There doesn't appear to be a way to prevent this compiler from
5950- # explicitly linking system object files so we need to strip them
5951- # from the output so that they don't get included in the library
5952- # dependencies.
5953- output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
5954- ;;
5955- xl*)
5956- # IBM XL 8.0 on PPC, with GNU ld
5957- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5958- _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5959- _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5960- if test "x$supports_anon_versioning" = xyes; then
5961- _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
5962- cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5963- echo "local: *; };" >> $output_objdir/$libname.ver~
5964- $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5965- fi
5966- ;;
5967- *)
5968- case `$CC -V 2>&1 | sed 5q` in
5969- *Sun\ C*)
5970- # Sun C++ 5.9
5971- _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
5972- _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5973- _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
5974- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5975- _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
5976- _LT_TAGVAR(compiler_needs_object, $1)=yes
5977-
5978- # Not sure whether something based on
5979- # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
5980- # would be better.
5981- output_verbose_link_cmd='echo'
5982-
5983- # Archives containing C++ object files must be created using
5984- # "CC -xar", where "CC" is the Sun C++ compiler. This is
5985- # necessary to make sure instantiated templates are included
5986- # in the archive.
5987- _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
5988- ;;
5989- esac
5990- ;;
5991- esac
5992- ;;
5993-
5994- lynxos*)
5995- # FIXME: insert proper C++ library support
5996- _LT_TAGVAR(ld_shlibs, $1)=no
5997- ;;
5998-
5999- m88k*)
6000- # FIXME: insert proper C++ library support
6001- _LT_TAGVAR(ld_shlibs, $1)=no
6002- ;;
6003-
6004- mvs*)
6005- case $cc_basename in
6006- cxx*)
6007- # FIXME: insert proper C++ library support
6008- _LT_TAGVAR(ld_shlibs, $1)=no
6009- ;;
6010- *)
6011- # FIXME: insert proper C++ library support
6012- _LT_TAGVAR(ld_shlibs, $1)=no
6013- ;;
6014- esac
6015- ;;
6016-
6017- netbsd*)
6018- if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
6019- _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
6020- wlarc=
6021- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6022- _LT_TAGVAR(hardcode_direct, $1)=yes
6023- _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6024- fi
6025- # Workaround some broken pre-1.5 toolchains
6026- output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
6027- ;;
6028-
6029- *nto* | *qnx*)
6030- _LT_TAGVAR(ld_shlibs, $1)=yes
6031- ;;
6032-
6033- openbsd2*)
6034- # C++ shared libraries are fairly broken
6035- _LT_TAGVAR(ld_shlibs, $1)=no
6036- ;;
6037-
6038- openbsd*)
6039- if test -f /usr/libexec/ld.so; then
6040- _LT_TAGVAR(hardcode_direct, $1)=yes
6041- _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6042- _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6043- _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
6044- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6045- if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6046- _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
6047- _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6048- _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6049- fi
6050- output_verbose_link_cmd=echo
6051- else
6052- _LT_TAGVAR(ld_shlibs, $1)=no
6053- fi
6054- ;;
6055-
6056- osf3* | osf4* | osf5*)
6057- case $cc_basename in
6058- KCC*)
6059- # Kuck and Associates, Inc. (KAI) C++ Compiler
6060-
6061- # KCC will only create a shared library if the output file
6062- # ends with ".so" (or ".sl" for HP-UX), so rename the library
6063- # to its proper name (with version) after linking.
6064- _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
6065-
6066- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6067- _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6068-
6069- # Archives containing C++ object files must be created using
6070- # the KAI C++ compiler.
6071- case $host in
6072- osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
6073- *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
6074- esac
6075- ;;
6076- RCC*)
6077- # Rational C++ 2.4.1
6078- # FIXME: insert proper C++ library support
6079- _LT_TAGVAR(ld_shlibs, $1)=no
6080- ;;
6081- cxx*)
6082- case $host in
6083- osf3*)
6084- _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6085- _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
6086- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6087- ;;
6088- *)
6089- _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6090- _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
6091- _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
6092- echo "-hidden">> $lib.exp~
6093- $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
6094- $RM $lib.exp'
6095- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6096- ;;
6097- esac
6098-
6099- _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6100-
6101- # Commands to make compiler produce verbose output that lists
6102- # what "hidden" libraries, object files and flags are used when
6103- # linking a shared library.
6104- #
6105- # There doesn't appear to be a way to prevent this compiler from
6106- # explicitly linking system object files so we need to strip them
6107- # from the output so that they don't get included in the library
6108- # dependencies.
6109- output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
6110- ;;
6111- *)
6112- if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6113- _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6114- case $host in
6115- osf3*)
6116- _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6117- ;;
6118- *)
6119- _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6120- ;;
6121- esac
6122-
6123- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6124- _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6125-
6126- # Commands to make compiler produce verbose output that lists
6127- # what "hidden" libraries, object files and flags are used when
6128- # linking a shared library.
6129- output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6130-
6131- else
6132- # FIXME: insert proper C++ library support
6133- _LT_TAGVAR(ld_shlibs, $1)=no
6134- fi
6135- ;;
6136- esac
6137- ;;
6138-
6139- psos*)
6140- # FIXME: insert proper C++ library support
6141- _LT_TAGVAR(ld_shlibs, $1)=no
6142- ;;
6143-
6144- sunos4*)
6145- case $cc_basename in
6146- CC*)
6147- # Sun C++ 4.x
6148- # FIXME: insert proper C++ library support
6149- _LT_TAGVAR(ld_shlibs, $1)=no
6150- ;;
6151- lcc*)
6152- # Lucid
6153- # FIXME: insert proper C++ library support
6154- _LT_TAGVAR(ld_shlibs, $1)=no
6155- ;;
6156- *)
6157- # FIXME: insert proper C++ library support
6158- _LT_TAGVAR(ld_shlibs, $1)=no
6159- ;;
6160- esac
6161- ;;
6162-
6163- solaris*)
6164- case $cc_basename in
6165- CC*)
6166- # Sun C++ 4.2, 5.x and Centerline C++
6167- _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
6168- _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
6169- _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6170- _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6171- $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
6172-
6173- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6174- _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6175- case $host_os in
6176- solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6177- *)
6178- # The compiler driver will combine and reorder linker options,
6179- # but understands `-z linker_flag'.
6180- # Supported since Solaris 2.6 (maybe 2.5.1?)
6181- _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
6182- ;;
6183- esac
6184- _LT_TAGVAR(link_all_deplibs, $1)=yes
6185-
6186- output_verbose_link_cmd='echo'
6187-
6188- # Archives containing C++ object files must be created using
6189- # "CC -xar", where "CC" is the Sun C++ compiler. This is
6190- # necessary to make sure instantiated templates are included
6191- # in the archive.
6192- _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
6193- ;;
6194- gcx*)
6195- # Green Hills C++ Compiler
6196- _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6197-
6198- # The C++ compiler must be used to create the archive.
6199- _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
6200- ;;
6201- *)
6202- # GNU C++ compiler with Solaris linker
6203- if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6204- _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
6205- if $CC --version | $GREP -v '^2\.7' > /dev/null; then
6206- _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6207- _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6208- $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
6209-
6210- # Commands to make compiler produce verbose output that lists
6211- # what "hidden" libraries, object files and flags are used when
6212- # linking a shared library.
6213- output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6214- else
6215- # g++ 2.7 appears to require `-G' NOT `-shared' on this
6216- # platform.
6217- _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6218- _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6219- $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
6220-
6221- # Commands to make compiler produce verbose output that lists
6222- # what "hidden" libraries, object files and flags are used when
6223- # linking a shared library.
6224- output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6225- fi
6226-
6227- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
6228- case $host_os in
6229- solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6230- *)
6231- _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
6232- ;;
6233- esac
6234- fi
6235- ;;
6236- esac
6237- ;;
6238-
6239- sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
6240- _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6241- _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6242- _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6243- runpath_var='LD_RUN_PATH'
6244-
6245- case $cc_basename in
6246- CC*)
6247- _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6248- _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6249- ;;
6250- *)
6251- _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6252- _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6253- ;;
6254- esac
6255- ;;
6256-
6257- sysv5* | sco3.2v5* | sco5v6*)
6258- # Note: We can NOT use -z defs as we might desire, because we do not
6259- # link with -lc, and that would cause any symbols used from libc to
6260- # always be unresolved, which means just about no library would
6261- # ever link correctly. If we're not using GNU ld we use -z text
6262- # though, which does catch some bad symbols but isn't as heavy-handed
6263- # as -z defs.
6264- _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6265- _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
6266- _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6267- _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6268- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
6269- _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
6270- _LT_TAGVAR(link_all_deplibs, $1)=yes
6271- _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
6272- runpath_var='LD_RUN_PATH'
6273-
6274- case $cc_basename in
6275- CC*)
6276- _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6277- _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6278- ;;
6279- *)
6280- _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6281- _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6282- ;;
6283- esac
6284- ;;
6285-
6286- tandem*)
6287- case $cc_basename in
6288- NCC*)
6289- # NonStop-UX NCC 3.20
6290- # FIXME: insert proper C++ library support
6291- _LT_TAGVAR(ld_shlibs, $1)=no
6292- ;;
6293- *)
6294- # FIXME: insert proper C++ library support
6295- _LT_TAGVAR(ld_shlibs, $1)=no
6296- ;;
6297- esac
6298- ;;
6299-
6300- vxworks*)
6301- # FIXME: insert proper C++ library support
6302- _LT_TAGVAR(ld_shlibs, $1)=no
6303- ;;
6304-
6305- *)
6306- # FIXME: insert proper C++ library support
6307- _LT_TAGVAR(ld_shlibs, $1)=no
6308- ;;
6309- esac
6310-
6311- AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
6312- test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
6313-
6314- _LT_TAGVAR(GCC, $1)="$GXX"
6315- _LT_TAGVAR(LD, $1)="$LD"
6316-
6317- ## CAVEAT EMPTOR:
6318- ## There is no encapsulation within the following macros, do not change
6319- ## the running order or otherwise move them around unless you know exactly
6320- ## what you are doing...
6321- _LT_SYS_HIDDEN_LIBDEPS($1)
6322- _LT_COMPILER_PIC($1)
6323- _LT_COMPILER_C_O($1)
6324- _LT_COMPILER_FILE_LOCKS($1)
6325- _LT_LINKER_SHLIBS($1)
6326- _LT_SYS_DYNAMIC_LINKER($1)
6327- _LT_LINKER_HARDCODE_LIBPATH($1)
6328-
6329- _LT_CONFIG($1)
6330- fi # test -n "$compiler"
6331-
6332- CC=$lt_save_CC
6333- LDCXX=$LD
6334- LD=$lt_save_LD
6335- GCC=$lt_save_GCC
6336- with_gnu_ld=$lt_save_with_gnu_ld
6337- lt_cv_path_LDCXX=$lt_cv_path_LD
6338- lt_cv_path_LD=$lt_save_path_LD
6339- lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
6340- lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
6341-fi # test "$_lt_caught_CXX_error" != yes
6342-
6343-AC_LANG_POP
6344-])# _LT_LANG_CXX_CONFIG
6345-
6346-
6347-# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
6348-# ---------------------------------
6349-# Figure out "hidden" library dependencies from verbose
6350-# compiler output when linking a shared library.
6351-# Parse the compiler output and extract the necessary
6352-# objects, libraries and library flags.
6353-m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
6354-[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
6355-# Dependencies to place before and after the object being linked:
6356-_LT_TAGVAR(predep_objects, $1)=
6357-_LT_TAGVAR(postdep_objects, $1)=
6358-_LT_TAGVAR(predeps, $1)=
6359-_LT_TAGVAR(postdeps, $1)=
6360-_LT_TAGVAR(compiler_lib_search_path, $1)=
6361-
6362-dnl we can't use the lt_simple_compile_test_code here,
6363-dnl because it contains code intended for an executable,
6364-dnl not a library. It's possible we should let each
6365-dnl tag define a new lt_????_link_test_code variable,
6366-dnl but it's only used here...
6367-m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
6368-int a;
6369-void foo (void) { a = 0; }
6370-_LT_EOF
6371-], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
6372-class Foo
6373-{
6374-public:
6375- Foo (void) { a = 0; }
6376-private:
6377- int a;
6378-};
6379-_LT_EOF
6380-], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
6381- subroutine foo
6382- implicit none
6383- integer*4 a
6384- a=0
6385- return
6386- end
6387-_LT_EOF
6388-], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
6389- subroutine foo
6390- implicit none
6391- integer a
6392- a=0
6393- return
6394- end
6395-_LT_EOF
6396-], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
6397-public class foo {
6398- private int a;
6399- public void bar (void) {
6400- a = 0;
6401- }
6402-};
6403-_LT_EOF
6404-])
6405-dnl Parse the compiler output and extract the necessary
6406-dnl objects, libraries and library flags.
6407-if AC_TRY_EVAL(ac_compile); then
6408- # Parse the compiler output and extract the necessary
6409- # objects, libraries and library flags.
6410-
6411- # Sentinel used to keep track of whether or not we are before
6412- # the conftest object file.
6413- pre_test_object_deps_done=no
6414-
6415- for p in `eval "$output_verbose_link_cmd"`; do
6416- case $p in
6417-
6418- -L* | -R* | -l*)
6419- # Some compilers place space between "-{L,R}" and the path.
6420- # Remove the space.
6421- if test $p = "-L" ||
6422- test $p = "-R"; then
6423- prev=$p
6424- continue
6425- else
6426- prev=
6427- fi
6428-
6429- if test "$pre_test_object_deps_done" = no; then
6430- case $p in
6431- -L* | -R*)
6432- # Internal compiler library paths should come after those
6433- # provided the user. The postdeps already come after the
6434- # user supplied libs so there is no need to process them.
6435- if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
6436- _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
6437- else
6438- _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
6439- fi
6440- ;;
6441- # The "-l" case would never come before the object being
6442- # linked, so don't bother handling this case.
6443- esac
6444- else
6445- if test -z "$_LT_TAGVAR(postdeps, $1)"; then
6446- _LT_TAGVAR(postdeps, $1)="${prev}${p}"
6447- else
6448- _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
6449- fi
6450- fi
6451- ;;
6452-
6453- *.$objext)
6454- # This assumes that the test object file only shows up
6455- # once in the compiler output.
6456- if test "$p" = "conftest.$objext"; then
6457- pre_test_object_deps_done=yes
6458- continue
6459- fi
6460-
6461- if test "$pre_test_object_deps_done" = no; then
6462- if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
6463- _LT_TAGVAR(predep_objects, $1)="$p"
6464- else
6465- _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
6466- fi
6467- else
6468- if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
6469- _LT_TAGVAR(postdep_objects, $1)="$p"
6470- else
6471- _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
6472- fi
6473- fi
6474- ;;
6475-
6476- *) ;; # Ignore the rest.
6477-
6478- esac
6479- done
6480-
6481- # Clean up.
6482- rm -f a.out a.exe
6483-else
6484- echo "libtool.m4: error: problem compiling $1 test program"
6485-fi
6486-
6487-$RM -f confest.$objext
6488-
6489-# PORTME: override above test on systems where it is broken
6490-m4_if([$1], [CXX],
6491-[case $host_os in
6492-interix[[3-9]]*)
6493- # Interix 3.5 installs completely hosed .la files for C++, so rather than
6494- # hack all around it, let's just trust "g++" to DTRT.
6495- _LT_TAGVAR(predep_objects,$1)=
6496- _LT_TAGVAR(postdep_objects,$1)=
6497- _LT_TAGVAR(postdeps,$1)=
6498- ;;
6499-
6500-linux*)
6501- case `$CC -V 2>&1 | sed 5q` in
6502- *Sun\ C*)
6503- # Sun C++ 5.9
6504-
6505- # The more standards-conforming stlport4 library is
6506- # incompatible with the Cstd library. Avoid specifying
6507- # it if it's in CXXFLAGS. Ignore libCrun as
6508- # -library=stlport4 depends on it.
6509- case " $CXX $CXXFLAGS " in
6510- *" -library=stlport4 "*)
6511- solaris_use_stlport4=yes
6512- ;;
6513- esac
6514-
6515- if test "$solaris_use_stlport4" != yes; then
6516- _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
6517- fi
6518- ;;
6519- esac
6520- ;;
6521-
6522-solaris*)
6523- case $cc_basename in
6524- CC*)
6525- # The more standards-conforming stlport4 library is
6526- # incompatible with the Cstd library. Avoid specifying
6527- # it if it's in CXXFLAGS. Ignore libCrun as
6528- # -library=stlport4 depends on it.
6529- case " $CXX $CXXFLAGS " in
6530- *" -library=stlport4 "*)
6531- solaris_use_stlport4=yes
6532- ;;
6533- esac
6534-
6535- # Adding this requires a known-good setup of shared libraries for
6536- # Sun compiler versions before 5.6, else PIC objects from an old
6537- # archive will be linked into the output, leading to subtle bugs.
6538- if test "$solaris_use_stlport4" != yes; then
6539- _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
6540- fi
6541- ;;
6542- esac
6543- ;;
6544-esac
6545-])
6546-
6547-case " $_LT_TAGVAR(postdeps, $1) " in
6548-*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
6549-esac
6550- _LT_TAGVAR(compiler_lib_search_dirs, $1)=
6551-if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
6552- _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
6553-fi
6554-_LT_TAGDECL([], [compiler_lib_search_dirs], [1],
6555- [The directories searched by this compiler when creating a shared library])
6556-_LT_TAGDECL([], [predep_objects], [1],
6557- [Dependencies to place before and after the objects being linked to
6558- create a shared library])
6559-_LT_TAGDECL([], [postdep_objects], [1])
6560-_LT_TAGDECL([], [predeps], [1])
6561-_LT_TAGDECL([], [postdeps], [1])
6562-_LT_TAGDECL([], [compiler_lib_search_path], [1],
6563- [The library search path used internally by the compiler when linking
6564- a shared library])
6565-])# _LT_SYS_HIDDEN_LIBDEPS
6566-
6567-
6568-# _LT_PROG_F77
6569-# ------------
6570-# Since AC_PROG_F77 is broken, in that it returns the empty string
6571-# if there is no fortran compiler, we have our own version here.
6572-m4_defun([_LT_PROG_F77],
6573-[
6574-pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
6575-AC_PROG_F77
6576-if test -z "$F77" || test "X$F77" = "Xno"; then
6577- _lt_disable_F77=yes
6578-fi
6579-popdef([AC_MSG_ERROR])
6580-])# _LT_PROG_F77
6581-
6582-dnl aclocal-1.4 backwards compatibility:
6583-dnl AC_DEFUN([_LT_PROG_F77], [])
6584-
6585-
6586-# _LT_LANG_F77_CONFIG([TAG])
6587-# --------------------------
6588-# Ensure that the configuration variables for a Fortran 77 compiler are
6589-# suitably defined. These variables are subsequently used by _LT_CONFIG
6590-# to write the compiler configuration to `libtool'.
6591-m4_defun([_LT_LANG_F77_CONFIG],
6592-[AC_REQUIRE([_LT_PROG_F77])dnl
6593-AC_LANG_PUSH(Fortran 77)
6594-
6595-_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6596-_LT_TAGVAR(allow_undefined_flag, $1)=
6597-_LT_TAGVAR(always_export_symbols, $1)=no
6598-_LT_TAGVAR(archive_expsym_cmds, $1)=
6599-_LT_TAGVAR(export_dynamic_flag_spec, $1)=
6600-_LT_TAGVAR(hardcode_direct, $1)=no
6601-_LT_TAGVAR(hardcode_direct_absolute, $1)=no
6602-_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
6603-_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
6604-_LT_TAGVAR(hardcode_libdir_separator, $1)=
6605-_LT_TAGVAR(hardcode_minus_L, $1)=no
6606-_LT_TAGVAR(hardcode_automatic, $1)=no
6607-_LT_TAGVAR(inherit_rpath, $1)=no
6608-_LT_TAGVAR(module_cmds, $1)=
6609-_LT_TAGVAR(module_expsym_cmds, $1)=
6610-_LT_TAGVAR(link_all_deplibs, $1)=unknown
6611-_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
6612-_LT_TAGVAR(no_undefined_flag, $1)=
6613-_LT_TAGVAR(whole_archive_flag_spec, $1)=
6614-_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6615-
6616-# Source file extension for f77 test sources.
6617-ac_ext=f
6618-
6619-# Object file extension for compiled f77 test sources.
6620-objext=o
6621-_LT_TAGVAR(objext, $1)=$objext
6622-
6623-# No sense in running all these tests if we already determined that
6624-# the F77 compiler isn't working. Some variables (like enable_shared)
6625-# are currently assumed to apply to all compilers on this platform,
6626-# and will be corrupted by setting them based on a non-working compiler.
6627-if test "$_lt_disable_F77" != yes; then
6628- # Code to be used in simple compile tests
6629- lt_simple_compile_test_code="\
6630- subroutine t
6631- return
6632- end
6633-"
6634-
6635- # Code to be used in simple link tests
6636- lt_simple_link_test_code="\
6637- program t
6638- end
6639-"
6640-
6641- # ltmain only uses $CC for tagged configurations so make sure $CC is set.
6642- _LT_TAG_COMPILER
6643-
6644- # save warnings/boilerplate of simple test code
6645- _LT_COMPILER_BOILERPLATE
6646- _LT_LINKER_BOILERPLATE
6647-
6648- # Allow CC to be a program name with arguments.
6649- lt_save_CC="$CC"
6650- lt_save_GCC=$GCC
6651- CC=${F77-"f77"}
6652- compiler=$CC
6653- _LT_TAGVAR(compiler, $1)=$CC
6654- _LT_CC_BASENAME([$compiler])
6655- GCC=$G77
6656- if test -n "$compiler"; then
6657- AC_MSG_CHECKING([if libtool supports shared libraries])
6658- AC_MSG_RESULT([$can_build_shared])
6659-
6660- AC_MSG_CHECKING([whether to build shared libraries])
6661- test "$can_build_shared" = "no" && enable_shared=no
6662-
6663- # On AIX, shared libraries and static libraries use the same namespace, and
6664- # are all built from PIC.
6665- case $host_os in
6666- aix3*)
6667- test "$enable_shared" = yes && enable_static=no
6668- if test -n "$RANLIB"; then
6669- archive_cmds="$archive_cmds~\$RANLIB \$lib"
6670- postinstall_cmds='$RANLIB $lib'
6671- fi
6672- ;;
6673- aix[[4-9]]*)
6674- if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6675- test "$enable_shared" = yes && enable_static=no
6676- fi
6677- ;;
6678- esac
6679- AC_MSG_RESULT([$enable_shared])
6680-
6681- AC_MSG_CHECKING([whether to build static libraries])
6682- # Make sure either enable_shared or enable_static is yes.
6683- test "$enable_shared" = yes || enable_static=yes
6684- AC_MSG_RESULT([$enable_static])
6685-
6686- _LT_TAGVAR(GCC, $1)="$G77"
6687- _LT_TAGVAR(LD, $1)="$LD"
6688-
6689- ## CAVEAT EMPTOR:
6690- ## There is no encapsulation within the following macros, do not change
6691- ## the running order or otherwise move them around unless you know exactly
6692- ## what you are doing...
6693- _LT_COMPILER_PIC($1)
6694- _LT_COMPILER_C_O($1)
6695- _LT_COMPILER_FILE_LOCKS($1)
6696- _LT_LINKER_SHLIBS($1)
6697- _LT_SYS_DYNAMIC_LINKER($1)
6698- _LT_LINKER_HARDCODE_LIBPATH($1)
6699-
6700- _LT_CONFIG($1)
6701- fi # test -n "$compiler"
6702-
6703- GCC=$lt_save_GCC
6704- CC="$lt_save_CC"
6705-fi # test "$_lt_disable_F77" != yes
6706-
6707-AC_LANG_POP
6708-])# _LT_LANG_F77_CONFIG
6709-
6710-
6711-# _LT_PROG_FC
6712-# -----------
6713-# Since AC_PROG_FC is broken, in that it returns the empty string
6714-# if there is no fortran compiler, we have our own version here.
6715-m4_defun([_LT_PROG_FC],
6716-[
6717-pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
6718-AC_PROG_FC
6719-if test -z "$FC" || test "X$FC" = "Xno"; then
6720- _lt_disable_FC=yes
6721-fi
6722-popdef([AC_MSG_ERROR])
6723-])# _LT_PROG_FC
6724-
6725-dnl aclocal-1.4 backwards compatibility:
6726-dnl AC_DEFUN([_LT_PROG_FC], [])
6727-
6728-
6729-# _LT_LANG_FC_CONFIG([TAG])
6730-# -------------------------
6731-# Ensure that the configuration variables for a Fortran compiler are
6732-# suitably defined. These variables are subsequently used by _LT_CONFIG
6733-# to write the compiler configuration to `libtool'.
6734-m4_defun([_LT_LANG_FC_CONFIG],
6735-[AC_REQUIRE([_LT_PROG_FC])dnl
6736-AC_LANG_PUSH(Fortran)
6737-
6738-_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6739-_LT_TAGVAR(allow_undefined_flag, $1)=
6740-_LT_TAGVAR(always_export_symbols, $1)=no
6741-_LT_TAGVAR(archive_expsym_cmds, $1)=
6742-_LT_TAGVAR(export_dynamic_flag_spec, $1)=
6743-_LT_TAGVAR(hardcode_direct, $1)=no
6744-_LT_TAGVAR(hardcode_direct_absolute, $1)=no
6745-_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
6746-_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
6747-_LT_TAGVAR(hardcode_libdir_separator, $1)=
6748-_LT_TAGVAR(hardcode_minus_L, $1)=no
6749-_LT_TAGVAR(hardcode_automatic, $1)=no
6750-_LT_TAGVAR(inherit_rpath, $1)=no
6751-_LT_TAGVAR(module_cmds, $1)=
6752-_LT_TAGVAR(module_expsym_cmds, $1)=
6753-_LT_TAGVAR(link_all_deplibs, $1)=unknown
6754-_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
6755-_LT_TAGVAR(no_undefined_flag, $1)=
6756-_LT_TAGVAR(whole_archive_flag_spec, $1)=
6757-_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6758-
6759-# Source file extension for fc test sources.
6760-ac_ext=${ac_fc_srcext-f}
6761-
6762-# Object file extension for compiled fc test sources.
6763-objext=o
6764-_LT_TAGVAR(objext, $1)=$objext
6765-
6766-# No sense in running all these tests if we already determined that
6767-# the FC compiler isn't working. Some variables (like enable_shared)
6768-# are currently assumed to apply to all compilers on this platform,
6769-# and will be corrupted by setting them based on a non-working compiler.
6770-if test "$_lt_disable_FC" != yes; then
6771- # Code to be used in simple compile tests
6772- lt_simple_compile_test_code="\
6773- subroutine t
6774- return
6775- end
6776-"
6777-
6778- # Code to be used in simple link tests
6779- lt_simple_link_test_code="\
6780- program t
6781- end
6782-"
6783-
6784- # ltmain only uses $CC for tagged configurations so make sure $CC is set.
6785- _LT_TAG_COMPILER
6786-
6787- # save warnings/boilerplate of simple test code
6788- _LT_COMPILER_BOILERPLATE
6789- _LT_LINKER_BOILERPLATE
6790-
6791- # Allow CC to be a program name with arguments.
6792- lt_save_CC="$CC"
6793- lt_save_GCC=$GCC
6794- CC=${FC-"f95"}
6795- compiler=$CC
6796- GCC=$ac_cv_fc_compiler_gnu
6797-
6798- _LT_TAGVAR(compiler, $1)=$CC
6799- _LT_CC_BASENAME([$compiler])
6800-
6801- if test -n "$compiler"; then
6802- AC_MSG_CHECKING([if libtool supports shared libraries])
6803- AC_MSG_RESULT([$can_build_shared])
6804-
6805- AC_MSG_CHECKING([whether to build shared libraries])
6806- test "$can_build_shared" = "no" && enable_shared=no
6807-
6808- # On AIX, shared libraries and static libraries use the same namespace, and
6809- # are all built from PIC.
6810- case $host_os in
6811- aix3*)
6812- test "$enable_shared" = yes && enable_static=no
6813- if test -n "$RANLIB"; then
6814- archive_cmds="$archive_cmds~\$RANLIB \$lib"
6815- postinstall_cmds='$RANLIB $lib'
6816- fi
6817- ;;
6818- aix[[4-9]]*)
6819- if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6820- test "$enable_shared" = yes && enable_static=no
6821- fi
6822- ;;
6823- esac
6824- AC_MSG_RESULT([$enable_shared])
6825-
6826- AC_MSG_CHECKING([whether to build static libraries])
6827- # Make sure either enable_shared or enable_static is yes.
6828- test "$enable_shared" = yes || enable_static=yes
6829- AC_MSG_RESULT([$enable_static])
6830-
6831- _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
6832- _LT_TAGVAR(LD, $1)="$LD"
6833-
6834- ## CAVEAT EMPTOR:
6835- ## There is no encapsulation within the following macros, do not change
6836- ## the running order or otherwise move them around unless you know exactly
6837- ## what you are doing...
6838- _LT_SYS_HIDDEN_LIBDEPS($1)
6839- _LT_COMPILER_PIC($1)
6840- _LT_COMPILER_C_O($1)
6841- _LT_COMPILER_FILE_LOCKS($1)
6842- _LT_LINKER_SHLIBS($1)
6843- _LT_SYS_DYNAMIC_LINKER($1)
6844- _LT_LINKER_HARDCODE_LIBPATH($1)
6845-
6846- _LT_CONFIG($1)
6847- fi # test -n "$compiler"
6848-
6849- GCC=$lt_save_GCC
6850- CC="$lt_save_CC"
6851-fi # test "$_lt_disable_FC" != yes
6852-
6853-AC_LANG_POP
6854-])# _LT_LANG_FC_CONFIG
6855-
6856-
6857-# _LT_LANG_GCJ_CONFIG([TAG])
6858-# --------------------------
6859-# Ensure that the configuration variables for the GNU Java Compiler compiler
6860-# are suitably defined. These variables are subsequently used by _LT_CONFIG
6861-# to write the compiler configuration to `libtool'.
6862-m4_defun([_LT_LANG_GCJ_CONFIG],
6863-[AC_REQUIRE([LT_PROG_GCJ])dnl
6864-AC_LANG_SAVE
6865-
6866-# Source file extension for Java test sources.
6867-ac_ext=java
6868-
6869-# Object file extension for compiled Java test sources.
6870-objext=o
6871-_LT_TAGVAR(objext, $1)=$objext
6872-
6873-# Code to be used in simple compile tests
6874-lt_simple_compile_test_code="class foo {}"
6875-
6876-# Code to be used in simple link tests
6877-lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
6878-
6879-# ltmain only uses $CC for tagged configurations so make sure $CC is set.
6880-_LT_TAG_COMPILER
6881-
6882-# save warnings/boilerplate of simple test code
6883-_LT_COMPILER_BOILERPLATE
6884-_LT_LINKER_BOILERPLATE
6885-
6886-# Allow CC to be a program name with arguments.
6887-lt_save_CC="$CC"
6888-lt_save_GCC=$GCC
6889-GCC=yes
6890-CC=${GCJ-"gcj"}
6891-compiler=$CC
6892-_LT_TAGVAR(compiler, $1)=$CC
6893-_LT_TAGVAR(LD, $1)="$LD"
6894-_LT_CC_BASENAME([$compiler])
6895-
6896-# GCJ did not exist at the time GCC didn't implicitly link libc in.
6897-_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6898-
6899-_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
6900-
6901-if test -n "$compiler"; then
6902- _LT_COMPILER_NO_RTTI($1)
6903- _LT_COMPILER_PIC($1)
6904- _LT_COMPILER_C_O($1)
6905- _LT_COMPILER_FILE_LOCKS($1)
6906- _LT_LINKER_SHLIBS($1)
6907- _LT_LINKER_HARDCODE_LIBPATH($1)
6908-
6909- _LT_CONFIG($1)
6910-fi
6911-
6912-AC_LANG_RESTORE
6913-
6914-GCC=$lt_save_GCC
6915-CC="$lt_save_CC"
6916-])# _LT_LANG_GCJ_CONFIG
6917-
6918-
6919-# _LT_LANG_RC_CONFIG([TAG])
6920-# -------------------------
6921-# Ensure that the configuration variables for the Windows resource compiler
6922-# are suitably defined. These variables are subsequently used by _LT_CONFIG
6923-# to write the compiler configuration to `libtool'.
6924-m4_defun([_LT_LANG_RC_CONFIG],
6925-[AC_REQUIRE([LT_PROG_RC])dnl
6926-AC_LANG_SAVE
6927-
6928-# Source file extension for RC test sources.
6929-ac_ext=rc
6930-
6931-# Object file extension for compiled RC test sources.
6932-objext=o
6933-_LT_TAGVAR(objext, $1)=$objext
6934-
6935-# Code to be used in simple compile tests
6936-lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
6937-
6938-# Code to be used in simple link tests
6939-lt_simple_link_test_code="$lt_simple_compile_test_code"
6940-
6941-# ltmain only uses $CC for tagged configurations so make sure $CC is set.
6942-_LT_TAG_COMPILER
6943-
6944-# save warnings/boilerplate of simple test code
6945-_LT_COMPILER_BOILERPLATE
6946-_LT_LINKER_BOILERPLATE
6947-
6948-# Allow CC to be a program name with arguments.
6949-lt_save_CC="$CC"
6950-lt_save_GCC=$GCC
6951-GCC=
6952-CC=${RC-"windres"}
6953-compiler=$CC
6954-_LT_TAGVAR(compiler, $1)=$CC
6955-_LT_CC_BASENAME([$compiler])
6956-_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
6957-
6958-if test -n "$compiler"; then
6959- :
6960- _LT_CONFIG($1)
6961-fi
6962-
6963-GCC=$lt_save_GCC
6964-AC_LANG_RESTORE
6965-CC="$lt_save_CC"
6966-])# _LT_LANG_RC_CONFIG
6967-
6968-
6969-# LT_PROG_GCJ
6970-# -----------
6971-AC_DEFUN([LT_PROG_GCJ],
6972-[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
6973- [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
6974- [AC_CHECK_TOOL(GCJ, gcj,)
6975- test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
6976- AC_SUBST(GCJFLAGS)])])[]dnl
6977-])
6978-
6979-# Old name:
6980-AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
6981-dnl aclocal-1.4 backwards compatibility:
6982-dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
6983-
6984-
6985-# LT_PROG_RC
6986-# ----------
6987-AC_DEFUN([LT_PROG_RC],
6988-[AC_CHECK_TOOL(RC, windres,)
6989-])
6990-
6991-# Old name:
6992-AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
6993-dnl aclocal-1.4 backwards compatibility:
6994-dnl AC_DEFUN([LT_AC_PROG_RC], [])
6995-
6996-
6997-# _LT_DECL_EGREP
6998-# --------------
6999-# If we don't have a new enough Autoconf to choose the best grep
7000-# available, choose the one first in the user's PATH.
7001-m4_defun([_LT_DECL_EGREP],
7002-[AC_REQUIRE([AC_PROG_EGREP])dnl
7003-AC_REQUIRE([AC_PROG_FGREP])dnl
7004-test -z "$GREP" && GREP=grep
7005-_LT_DECL([], [GREP], [1], [A grep program that handles long lines])
7006-_LT_DECL([], [EGREP], [1], [An ERE matcher])
7007-_LT_DECL([], [FGREP], [1], [A literal string matcher])
7008-dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
7009-AC_SUBST([GREP])
7010-])
7011-
7012-
7013-# _LT_DECL_OBJDUMP
7014-# --------------
7015-# If we don't have a new enough Autoconf to choose the best objdump
7016-# available, choose the one first in the user's PATH.
7017-m4_defun([_LT_DECL_OBJDUMP],
7018-[AC_CHECK_TOOL(OBJDUMP, objdump, false)
7019-test -z "$OBJDUMP" && OBJDUMP=objdump
7020-_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
7021-AC_SUBST([OBJDUMP])
7022-])
7023-
7024-
7025-# _LT_DECL_SED
7026-# ------------
7027-# Check for a fully-functional sed program, that truncates
7028-# as few characters as possible. Prefer GNU sed if found.
7029-m4_defun([_LT_DECL_SED],
7030-[AC_PROG_SED
7031-test -z "$SED" && SED=sed
7032-Xsed="$SED -e 1s/^X//"
7033-_LT_DECL([], [SED], [1], [A sed program that does not truncate output])
7034-_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
7035- [Sed that helps us avoid accidentally triggering echo(1) options like -n])
7036-])# _LT_DECL_SED
7037-
7038-m4_ifndef([AC_PROG_SED], [
7039-# NOTE: This macro has been submitted for inclusion into #
7040-# GNU Autoconf as AC_PROG_SED. When it is available in #
7041-# a released version of Autoconf we should remove this #
7042-# macro and use it instead. #
7043-
7044-m4_defun([AC_PROG_SED],
7045-[AC_MSG_CHECKING([for a sed that does not truncate output])
7046-AC_CACHE_VAL(lt_cv_path_SED,
7047-[# Loop through the user's path and test for sed and gsed.
7048-# Then use that list of sed's as ones to test for truncation.
7049-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7050-for as_dir in $PATH
7051-do
7052- IFS=$as_save_IFS
7053- test -z "$as_dir" && as_dir=.
7054- for lt_ac_prog in sed gsed; do
7055- for ac_exec_ext in '' $ac_executable_extensions; do
7056- if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
7057- lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
7058- fi
7059- done
7060- done
7061-done
7062-IFS=$as_save_IFS
7063-lt_ac_max=0
7064-lt_ac_count=0
7065-# Add /usr/xpg4/bin/sed as it is typically found on Solaris
7066-# along with /bin/sed that truncates output.
7067-for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
7068- test ! -f $lt_ac_sed && continue
7069- cat /dev/null > conftest.in
7070- lt_ac_count=0
7071- echo $ECHO_N "0123456789$ECHO_C" >conftest.in
7072- # Check for GNU sed and select it if it is found.
7073- if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
7074- lt_cv_path_SED=$lt_ac_sed
7075- break
7076- fi
7077- while true; do
7078- cat conftest.in conftest.in >conftest.tmp
7079- mv conftest.tmp conftest.in
7080- cp conftest.in conftest.nl
7081- echo >>conftest.nl
7082- $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
7083- cmp -s conftest.out conftest.nl || break
7084- # 10000 chars as input seems more than enough
7085- test $lt_ac_count -gt 10 && break
7086- lt_ac_count=`expr $lt_ac_count + 1`
7087- if test $lt_ac_count -gt $lt_ac_max; then
7088- lt_ac_max=$lt_ac_count
7089- lt_cv_path_SED=$lt_ac_sed
7090- fi
7091- done
7092-done
7093-])
7094-SED=$lt_cv_path_SED
7095-AC_SUBST([SED])
7096-AC_MSG_RESULT([$SED])
7097-])#AC_PROG_SED
7098-])#m4_ifndef
7099-
7100-# Old name:
7101-AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
7102-dnl aclocal-1.4 backwards compatibility:
7103-dnl AC_DEFUN([LT_AC_PROG_SED], [])
7104-
7105-
7106-# _LT_CHECK_SHELL_FEATURES
7107-# ------------------------
7108-# Find out whether the shell is Bourne or XSI compatible,
7109-# or has some other useful features.
7110-m4_defun([_LT_CHECK_SHELL_FEATURES],
7111-[AC_MSG_CHECKING([whether the shell understands some XSI constructs])
7112-# Try some XSI features
7113-xsi_shell=no
7114-( _lt_dummy="a/b/c"
7115- test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7116- = c,a/b,, \
7117- && eval 'test $(( 1 + 1 )) -eq 2 \
7118- && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7119- && xsi_shell=yes
7120-AC_MSG_RESULT([$xsi_shell])
7121-_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
7122-
7123-AC_MSG_CHECKING([whether the shell understands "+="])
7124-lt_shell_append=no
7125-( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
7126- >/dev/null 2>&1 \
7127- && lt_shell_append=yes
7128-AC_MSG_RESULT([$lt_shell_append])
7129-_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
7130-
7131-if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7132- lt_unset=unset
7133-else
7134- lt_unset=false
7135-fi
7136-_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
7137-
7138-# test EBCDIC or ASCII
7139-case `echo X|tr X '\101'` in
7140- A) # ASCII based system
7141- # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7142- lt_SP2NL='tr \040 \012'
7143- lt_NL2SP='tr \015\012 \040\040'
7144- ;;
7145- *) # EBCDIC based system
7146- lt_SP2NL='tr \100 \n'
7147- lt_NL2SP='tr \r\n \100\100'
7148- ;;
7149-esac
7150-_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
7151-_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
7152-])# _LT_CHECK_SHELL_FEATURES
7153-
7154-
7155-# _LT_PROG_XSI_SHELLFNS
7156-# ---------------------
7157-# Bourne and XSI compatible variants of some useful shell functions.
7158-m4_defun([_LT_PROG_XSI_SHELLFNS],
7159-[case $xsi_shell in
7160- yes)
7161- cat << \_LT_EOF >> "$cfgfile"
7162-
7163-# func_dirname file append nondir_replacement
7164-# Compute the dirname of FILE. If nonempty, add APPEND to the result,
7165-# otherwise set result to NONDIR_REPLACEMENT.
7166-func_dirname ()
7167-{
7168- case ${1} in
7169- */*) func_dirname_result="${1%/*}${2}" ;;
7170- * ) func_dirname_result="${3}" ;;
7171- esac
7172-}
7173-
7174-# func_basename file
7175-func_basename ()
7176-{
7177- func_basename_result="${1##*/}"
7178-}
7179-
7180-# func_dirname_and_basename file append nondir_replacement
7181-# perform func_basename and func_dirname in a single function
7182-# call:
7183-# dirname: Compute the dirname of FILE. If nonempty,
7184-# add APPEND to the result, otherwise set result
7185-# to NONDIR_REPLACEMENT.
7186-# value returned in "$func_dirname_result"
7187-# basename: Compute filename of FILE.
7188-# value retuned in "$func_basename_result"
7189-# Implementation must be kept synchronized with func_dirname
7190-# and func_basename. For efficiency, we do not delegate to
7191-# those functions but instead duplicate the functionality here.
7192-func_dirname_and_basename ()
7193-{
7194- case ${1} in
7195- */*) func_dirname_result="${1%/*}${2}" ;;
7196- * ) func_dirname_result="${3}" ;;
7197- esac
7198- func_basename_result="${1##*/}"
7199-}
7200-
7201-# func_stripname prefix suffix name
7202-# strip PREFIX and SUFFIX off of NAME.
7203-# PREFIX and SUFFIX must not contain globbing or regex special
7204-# characters, hashes, percent signs, but SUFFIX may contain a leading
7205-# dot (in which case that matches only a dot).
7206-func_stripname ()
7207-{
7208- # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
7209- # positional parameters, so assign one to ordinary parameter first.
7210- func_stripname_result=${3}
7211- func_stripname_result=${func_stripname_result#"${1}"}
7212- func_stripname_result=${func_stripname_result%"${2}"}
7213-}
7214-
7215-# func_opt_split
7216-func_opt_split ()
7217-{
7218- func_opt_split_opt=${1%%=*}
7219- func_opt_split_arg=${1#*=}
7220-}
7221-
7222-# func_lo2o object
7223-func_lo2o ()
7224-{
7225- case ${1} in
7226- *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
7227- *) func_lo2o_result=${1} ;;
7228- esac
7229-}
7230-
7231-# func_xform libobj-or-source
7232-func_xform ()
7233-{
7234- func_xform_result=${1%.*}.lo
7235-}
7236-
7237-# func_arith arithmetic-term...
7238-func_arith ()
7239-{
7240- func_arith_result=$(( $[*] ))
7241-}
7242-
7243-# func_len string
7244-# STRING may not start with a hyphen.
7245-func_len ()
7246-{
7247- func_len_result=${#1}
7248-}
7249-
7250-_LT_EOF
7251- ;;
7252- *) # Bourne compatible functions.
7253- cat << \_LT_EOF >> "$cfgfile"
7254-
7255-# func_dirname file append nondir_replacement
7256-# Compute the dirname of FILE. If nonempty, add APPEND to the result,
7257-# otherwise set result to NONDIR_REPLACEMENT.
7258-func_dirname ()
7259-{
7260- # Extract subdirectory from the argument.
7261- func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
7262- if test "X$func_dirname_result" = "X${1}"; then
7263- func_dirname_result="${3}"
7264- else
7265- func_dirname_result="$func_dirname_result${2}"
7266- fi
7267-}
7268-
7269-# func_basename file
7270-func_basename ()
7271-{
7272- func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
7273-}
7274-
7275-dnl func_dirname_and_basename
7276-dnl A portable version of this function is already defined in general.m4sh
7277-dnl so there is no need for it here.
7278-
7279-# func_stripname prefix suffix name
7280-# strip PREFIX and SUFFIX off of NAME.
7281-# PREFIX and SUFFIX must not contain globbing or regex special
7282-# characters, hashes, percent signs, but SUFFIX may contain a leading
7283-# dot (in which case that matches only a dot).
7284-# func_strip_suffix prefix name
7285-func_stripname ()
7286-{
7287- case ${2} in
7288- .*) func_stripname_result=`$ECHO "X${3}" \
7289- | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
7290- *) func_stripname_result=`$ECHO "X${3}" \
7291- | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
7292- esac
7293-}
7294-
7295-# sed scripts:
7296-my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
7297-my_sed_long_arg='1s/^-[[^=]]*=//'
7298-
7299-# func_opt_split
7300-func_opt_split ()
7301-{
7302- func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
7303- func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
7304-}
7305-
7306-# func_lo2o object
7307-func_lo2o ()
7308-{
7309- func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
7310-}
7311-
7312-# func_xform libobj-or-source
7313-func_xform ()
7314-{
7315- func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
7316-}
7317-
7318-# func_arith arithmetic-term...
7319-func_arith ()
7320-{
7321- func_arith_result=`expr "$[@]"`
7322-}
7323-
7324-# func_len string
7325-# STRING may not start with a hyphen.
7326-func_len ()
7327-{
7328- func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
7329-}
7330-
7331-_LT_EOF
7332-esac
7333-
7334-case $lt_shell_append in
7335- yes)
7336- cat << \_LT_EOF >> "$cfgfile"
7337-
7338-# func_append var value
7339-# Append VALUE to the end of shell variable VAR.
7340-func_append ()
7341-{
7342- eval "$[1]+=\$[2]"
7343-}
7344-_LT_EOF
7345- ;;
7346- *)
7347- cat << \_LT_EOF >> "$cfgfile"
7348-
7349-# func_append var value
7350-# Append VALUE to the end of shell variable VAR.
7351-func_append ()
7352-{
7353- eval "$[1]=\$$[1]\$[2]"
7354-}
7355-
7356-_LT_EOF
7357- ;;
7358- esac
7359-])
7360-
7361-# Helper functions for option handling. -*- Autoconf -*-
7362-#
7363-# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
7364-# Written by Gary V. Vaughan, 2004
7365-#
7366-# This file is free software; the Free Software Foundation gives
7367-# unlimited permission to copy and/or distribute it, with or without
7368-# modifications, as long as this notice is preserved.
7369-
7370-# serial 6 ltoptions.m4
7371-
7372-# This is to help aclocal find these macros, as it can't see m4_define.
7373-AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
7374-
7375-
7376-# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
7377-# ------------------------------------------
7378-m4_define([_LT_MANGLE_OPTION],
7379-[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
7380-
7381-
7382-# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
7383-# ---------------------------------------
7384-# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
7385-# matching handler defined, dispatch to it. Other OPTION-NAMEs are
7386-# saved as a flag.
7387-m4_define([_LT_SET_OPTION],
7388-[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
7389-m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
7390- _LT_MANGLE_DEFUN([$1], [$2]),
7391- [m4_warning([Unknown $1 option `$2'])])[]dnl
7392-])
7393-
7394-
7395-# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
7396-# ------------------------------------------------------------
7397-# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
7398-m4_define([_LT_IF_OPTION],
7399-[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
7400-
7401-
7402-# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
7403-# -------------------------------------------------------
7404-# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
7405-# are set.
7406-m4_define([_LT_UNLESS_OPTIONS],
7407-[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
7408- [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
7409- [m4_define([$0_found])])])[]dnl
7410-m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
7411-])[]dnl
7412-])
7413-
7414-
7415-# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
7416-# ----------------------------------------
7417-# OPTION-LIST is a space-separated list of Libtool options associated
7418-# with MACRO-NAME. If any OPTION has a matching handler declared with
7419-# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
7420-# the unknown option and exit.
7421-m4_defun([_LT_SET_OPTIONS],
7422-[# Set options
7423-m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
7424- [_LT_SET_OPTION([$1], _LT_Option)])
7425-
7426-m4_if([$1],[LT_INIT],[
7427- dnl
7428- dnl Simply set some default values (i.e off) if boolean options were not
7429- dnl specified:
7430- _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
7431- ])
7432- _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
7433- ])
7434- dnl
7435- dnl If no reference was made to various pairs of opposing options, then
7436- dnl we run the default mode handler for the pair. For example, if neither
7437- dnl `shared' nor `disable-shared' was passed, we enable building of shared
7438- dnl archives by default:
7439- _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
7440- _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
7441- _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
7442- _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
7443- [_LT_ENABLE_FAST_INSTALL])
7444- ])
7445-])# _LT_SET_OPTIONS
7446-
7447-
7448-
7449-# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
7450-# -----------------------------------------
7451-m4_define([_LT_MANGLE_DEFUN],
7452-[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
7453-
7454-
7455-# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
7456-# -----------------------------------------------
7457-m4_define([LT_OPTION_DEFINE],
7458-[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
7459-])# LT_OPTION_DEFINE
7460-
7461-
7462-# dlopen
7463-# ------
7464-LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
7465-])
7466-
7467-AU_DEFUN([AC_LIBTOOL_DLOPEN],
7468-[_LT_SET_OPTION([LT_INIT], [dlopen])
7469-AC_DIAGNOSE([obsolete],
7470-[$0: Remove this warning and the call to _LT_SET_OPTION when you
7471-put the `dlopen' option into LT_INIT's first parameter.])
7472-])
7473-
7474-dnl aclocal-1.4 backwards compatibility:
7475-dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
7476-
7477-
7478-# win32-dll
7479-# ---------
7480-# Declare package support for building win32 dll's.
7481-LT_OPTION_DEFINE([LT_INIT], [win32-dll],
7482-[enable_win32_dll=yes
7483-
7484-case $host in
7485-*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
7486- AC_CHECK_TOOL(AS, as, false)
7487- AC_CHECK_TOOL(DLLTOOL, dlltool, false)
7488- AC_CHECK_TOOL(OBJDUMP, objdump, false)
7489- ;;
7490-esac
7491-
7492-test -z "$AS" && AS=as
7493-_LT_DECL([], [AS], [0], [Assembler program])dnl
7494-
7495-test -z "$DLLTOOL" && DLLTOOL=dlltool
7496-_LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
7497-
7498-test -z "$OBJDUMP" && OBJDUMP=objdump
7499-_LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
7500-])# win32-dll
7501-
7502-AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
7503-[AC_REQUIRE([AC_CANONICAL_HOST])dnl
7504-_LT_SET_OPTION([LT_INIT], [win32-dll])
7505-AC_DIAGNOSE([obsolete],
7506-[$0: Remove this warning and the call to _LT_SET_OPTION when you
7507-put the `win32-dll' option into LT_INIT's first parameter.])
7508-])
7509-
7510-dnl aclocal-1.4 backwards compatibility:
7511-dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
7512-
7513-
7514-# _LT_ENABLE_SHARED([DEFAULT])
7515-# ----------------------------
7516-# implement the --enable-shared flag, and supports the `shared' and
7517-# `disable-shared' LT_INIT options.
7518-# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
7519-m4_define([_LT_ENABLE_SHARED],
7520-[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
7521-AC_ARG_ENABLE([shared],
7522- [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
7523- [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
7524- [p=${PACKAGE-default}
7525- case $enableval in
7526- yes) enable_shared=yes ;;
7527- no) enable_shared=no ;;
7528- *)
7529- enable_shared=no
7530- # Look at the argument we got. We use all the common list separators.
7531- lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7532- for pkg in $enableval; do
7533- IFS="$lt_save_ifs"
7534- if test "X$pkg" = "X$p"; then
7535- enable_shared=yes
7536- fi
7537- done
7538- IFS="$lt_save_ifs"
7539- ;;
7540- esac],
7541- [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
7542-
7543- _LT_DECL([build_libtool_libs], [enable_shared], [0],
7544- [Whether or not to build shared libraries])
7545-])# _LT_ENABLE_SHARED
7546-
7547-LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
7548-LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
7549-
7550-# Old names:
7551-AC_DEFUN([AC_ENABLE_SHARED],
7552-[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
7553-])
7554-
7555-AC_DEFUN([AC_DISABLE_SHARED],
7556-[_LT_SET_OPTION([LT_INIT], [disable-shared])
7557-])
7558-
7559-AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
7560-AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
7561-
7562-dnl aclocal-1.4 backwards compatibility:
7563-dnl AC_DEFUN([AM_ENABLE_SHARED], [])
7564-dnl AC_DEFUN([AM_DISABLE_SHARED], [])
7565-
7566-
7567-
7568-# _LT_ENABLE_STATIC([DEFAULT])
7569-# ----------------------------
7570-# implement the --enable-static flag, and support the `static' and
7571-# `disable-static' LT_INIT options.
7572-# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
7573-m4_define([_LT_ENABLE_STATIC],
7574-[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
7575-AC_ARG_ENABLE([static],
7576- [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
7577- [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
7578- [p=${PACKAGE-default}
7579- case $enableval in
7580- yes) enable_static=yes ;;
7581- no) enable_static=no ;;
7582- *)
7583- enable_static=no
7584- # Look at the argument we got. We use all the common list separators.
7585- lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7586- for pkg in $enableval; do
7587- IFS="$lt_save_ifs"
7588- if test "X$pkg" = "X$p"; then
7589- enable_static=yes
7590- fi
7591- done
7592- IFS="$lt_save_ifs"
7593- ;;
7594- esac],
7595- [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
7596-
7597- _LT_DECL([build_old_libs], [enable_static], [0],
7598- [Whether or not to build static libraries])
7599-])# _LT_ENABLE_STATIC
7600-
7601-LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
7602-LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
7603-
7604-# Old names:
7605-AC_DEFUN([AC_ENABLE_STATIC],
7606-[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
7607-])
7608-
7609-AC_DEFUN([AC_DISABLE_STATIC],
7610-[_LT_SET_OPTION([LT_INIT], [disable-static])
7611-])
7612-
7613-AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
7614-AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
7615-
7616-dnl aclocal-1.4 backwards compatibility:
7617-dnl AC_DEFUN([AM_ENABLE_STATIC], [])
7618-dnl AC_DEFUN([AM_DISABLE_STATIC], [])
7619-
7620-
7621-
7622-# _LT_ENABLE_FAST_INSTALL([DEFAULT])
7623-# ----------------------------------
7624-# implement the --enable-fast-install flag, and support the `fast-install'
7625-# and `disable-fast-install' LT_INIT options.
7626-# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
7627-m4_define([_LT_ENABLE_FAST_INSTALL],
7628-[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
7629-AC_ARG_ENABLE([fast-install],
7630- [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
7631- [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
7632- [p=${PACKAGE-default}
7633- case $enableval in
7634- yes) enable_fast_install=yes ;;
7635- no) enable_fast_install=no ;;
7636- *)
7637- enable_fast_install=no
7638- # Look at the argument we got. We use all the common list separators.
7639- lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7640- for pkg in $enableval; do
7641- IFS="$lt_save_ifs"
7642- if test "X$pkg" = "X$p"; then
7643- enable_fast_install=yes
7644- fi
7645- done
7646- IFS="$lt_save_ifs"
7647- ;;
7648- esac],
7649- [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
7650-
7651-_LT_DECL([fast_install], [enable_fast_install], [0],
7652- [Whether or not to optimize for fast installation])dnl
7653-])# _LT_ENABLE_FAST_INSTALL
7654-
7655-LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
7656-LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
7657-
7658-# Old names:
7659-AU_DEFUN([AC_ENABLE_FAST_INSTALL],
7660-[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
7661-AC_DIAGNOSE([obsolete],
7662-[$0: Remove this warning and the call to _LT_SET_OPTION when you put
7663-the `fast-install' option into LT_INIT's first parameter.])
7664-])
7665-
7666-AU_DEFUN([AC_DISABLE_FAST_INSTALL],
7667-[_LT_SET_OPTION([LT_INIT], [disable-fast-install])
7668-AC_DIAGNOSE([obsolete],
7669-[$0: Remove this warning and the call to _LT_SET_OPTION when you put
7670-the `disable-fast-install' option into LT_INIT's first parameter.])
7671-])
7672-
7673-dnl aclocal-1.4 backwards compatibility:
7674-dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
7675-dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
7676-
7677-
7678-# _LT_WITH_PIC([MODE])
7679-# --------------------
7680-# implement the --with-pic flag, and support the `pic-only' and `no-pic'
7681-# LT_INIT options.
7682-# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
7683-m4_define([_LT_WITH_PIC],
7684-[AC_ARG_WITH([pic],
7685- [AS_HELP_STRING([--with-pic],
7686- [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
7687- [pic_mode="$withval"],
7688- [pic_mode=default])
7689-
7690-test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
7691-
7692-_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
7693-])# _LT_WITH_PIC
7694-
7695-LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
7696-LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
7697-
7698-# Old name:
7699-AU_DEFUN([AC_LIBTOOL_PICMODE],
7700-[_LT_SET_OPTION([LT_INIT], [pic-only])
7701-AC_DIAGNOSE([obsolete],
7702-[$0: Remove this warning and the call to _LT_SET_OPTION when you
7703-put the `pic-only' option into LT_INIT's first parameter.])
7704-])
7705-
7706-dnl aclocal-1.4 backwards compatibility:
7707-dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
7708-
7709-
7710-m4_define([_LTDL_MODE], [])
7711-LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
7712- [m4_define([_LTDL_MODE], [nonrecursive])])
7713-LT_OPTION_DEFINE([LTDL_INIT], [recursive],
7714- [m4_define([_LTDL_MODE], [recursive])])
7715-LT_OPTION_DEFINE([LTDL_INIT], [subproject],
7716- [m4_define([_LTDL_MODE], [subproject])])
7717-
7718-m4_define([_LTDL_TYPE], [])
7719-LT_OPTION_DEFINE([LTDL_INIT], [installable],
7720- [m4_define([_LTDL_TYPE], [installable])])
7721-LT_OPTION_DEFINE([LTDL_INIT], [convenience],
7722- [m4_define([_LTDL_TYPE], [convenience])])
7723-
7724-# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
7725-#
7726-# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
7727-# Written by Gary V. Vaughan, 2004
7728-#
7729-# This file is free software; the Free Software Foundation gives
7730-# unlimited permission to copy and/or distribute it, with or without
7731-# modifications, as long as this notice is preserved.
7732-
7733-# serial 6 ltsugar.m4
7734-
7735-# This is to help aclocal find these macros, as it can't see m4_define.
7736-AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
7737-
7738-
7739-# lt_join(SEP, ARG1, [ARG2...])
7740-# -----------------------------
7741-# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
7742-# associated separator.
7743-# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
7744-# versions in m4sugar had bugs.
7745-m4_define([lt_join],
7746-[m4_if([$#], [1], [],
7747- [$#], [2], [[$2]],
7748- [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
7749-m4_define([_lt_join],
7750-[m4_if([$#$2], [2], [],
7751- [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
7752-
7753-
7754-# lt_car(LIST)
7755-# lt_cdr(LIST)
7756-# ------------
7757-# Manipulate m4 lists.
7758-# These macros are necessary as long as will still need to support
7759-# Autoconf-2.59 which quotes differently.
7760-m4_define([lt_car], [[$1]])
7761-m4_define([lt_cdr],
7762-[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
7763- [$#], 1, [],
7764- [m4_dquote(m4_shift($@))])])
7765-m4_define([lt_unquote], $1)
7766-
7767-
7768-# lt_append(MACRO-NAME, STRING, [SEPARATOR])
7769-# ------------------------------------------
7770-# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
7771-# Note that neither SEPARATOR nor STRING are expanded; they are appended
7772-# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
7773-# No SEPARATOR is output if MACRO-NAME was previously undefined (different
7774-# than defined and empty).
7775-#
7776-# This macro is needed until we can rely on Autoconf 2.62, since earlier
7777-# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
7778-m4_define([lt_append],
7779-[m4_define([$1],
7780- m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
7781-
7782-
7783-
7784-# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
7785-# ----------------------------------------------------------
7786-# Produce a SEP delimited list of all paired combinations of elements of
7787-# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
7788-# has the form PREFIXmINFIXSUFFIXn.
7789-# Needed until we can rely on m4_combine added in Autoconf 2.62.
7790-m4_define([lt_combine],
7791-[m4_if(m4_eval([$# > 3]), [1],
7792- [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
7793-[[m4_foreach([_Lt_prefix], [$2],
7794- [m4_foreach([_Lt_suffix],
7795- ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
7796- [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
7797-
7798-
7799-# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
7800-# -----------------------------------------------------------------------
7801-# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
7802-# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
7803-m4_define([lt_if_append_uniq],
7804-[m4_ifdef([$1],
7805- [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
7806- [lt_append([$1], [$2], [$3])$4],
7807- [$5])],
7808- [lt_append([$1], [$2], [$3])$4])])
7809-
7810-
7811-# lt_dict_add(DICT, KEY, VALUE)
7812-# -----------------------------
7813-m4_define([lt_dict_add],
7814-[m4_define([$1($2)], [$3])])
7815-
7816-
7817-# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
7818-# --------------------------------------------
7819-m4_define([lt_dict_add_subkey],
7820-[m4_define([$1($2:$3)], [$4])])
7821-
7822-
7823-# lt_dict_fetch(DICT, KEY, [SUBKEY])
7824-# ----------------------------------
7825-m4_define([lt_dict_fetch],
7826-[m4_ifval([$3],
7827- m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
7828- m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
7829-
7830-
7831-# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
7832-# -----------------------------------------------------------------
7833-m4_define([lt_if_dict_fetch],
7834-[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
7835- [$5],
7836- [$6])])
7837-
7838-
7839-# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
7840-# --------------------------------------------------------------
7841-m4_define([lt_dict_filter],
7842-[m4_if([$5], [], [],
7843- [lt_join(m4_quote(m4_default([$4], [[, ]])),
7844- lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
7845- [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
7846-])
7847-
7848-# ltversion.m4 -- version numbers -*- Autoconf -*-
7849-#
7850-# Copyright (C) 2004 Free Software Foundation, Inc.
7851-# Written by Scott James Remnant, 2004
7852-#
7853-# This file is free software; the Free Software Foundation gives
7854-# unlimited permission to copy and/or distribute it, with or without
7855-# modifications, as long as this notice is preserved.
7856-
7857-# Generated from ltversion.in.
7858-
7859-# serial 3012 ltversion.m4
7860-# This file is part of GNU Libtool
7861-
7862-m4_define([LT_PACKAGE_VERSION], [2.2.6])
7863-m4_define([LT_PACKAGE_REVISION], [1.3012])
7864-
7865-AC_DEFUN([LTVERSION_VERSION],
7866-[macro_version='2.2.6'
7867-macro_revision='1.3012'
7868-_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
7869-_LT_DECL(, macro_revision, 0)
7870-])
7871-
7872-# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
7873-#
7874-# Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
7875-# Written by Scott James Remnant, 2004.
7876-#
7877-# This file is free software; the Free Software Foundation gives
7878-# unlimited permission to copy and/or distribute it, with or without
7879-# modifications, as long as this notice is preserved.
7880-
7881-# serial 4 lt~obsolete.m4
7882-
7883-# These exist entirely to fool aclocal when bootstrapping libtool.
7884-#
7885-# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
7886-# which have later been changed to m4_define as they aren't part of the
7887-# exported API, or moved to Autoconf or Automake where they belong.
7888-#
7889-# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
7890-# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
7891-# using a macro with the same name in our local m4/libtool.m4 it'll
7892-# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
7893-# and doesn't know about Autoconf macros at all.)
7894-#
7895-# So we provide this file, which has a silly filename so it's always
7896-# included after everything else. This provides aclocal with the
7897-# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
7898-# because those macros already exist, or will be overwritten later.
7899-# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
7900-#
7901-# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
7902-# Yes, that means every name once taken will need to remain here until
7903-# we give up compatibility with versions before 1.7, at which point
7904-# we need to keep only those names which we still refer to.
7905-
7906-# This is to help aclocal find these macros, as it can't see m4_define.
7907-AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
7908-
7909-m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
7910-m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
7911-m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
7912-m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
7913-m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
7914-m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
7915-m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
7916-m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
7917-m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
7918-m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
7919-m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
7920-m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
7921-m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
7922-m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
7923-m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
7924-m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
7925-m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
7926-m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
7927-m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
7928-m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
7929-m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
7930-m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
7931-m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
7932-m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
7933-m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
7934-m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
7935-m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
7936-m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
7937-m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
7938-m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
7939-m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
7940-m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
7941-m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
7942-m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
7943-m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
7944-m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
7945-m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
7946-m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
7947-m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
7948-m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
7949-m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
7950-m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
7951-m4_ifndef([AC_LIBTOOL_RC], [AC_DEFUN([AC_LIBTOOL_RC])])
7952-m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
7953-m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
7954-m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
7955-m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
7956-m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
7957-m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
7958-m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
7959-m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
7960-m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
7961-m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
7962-m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
7963-m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
7964-
796522 # Configure paths for SDL
796623 # Sam Lantinga 9/21/99
796724 # stolen from Manish Singh
@@ -8144,7 +201,7 @@
8144201 rm -f conf.sdltest
8145202 ])
8146203
8147-# Copyright (C) 2002, 2003, 2005, 2006 Free Software Foundation, Inc.
204+# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
8148205 #
8149206 # This file is free software; the Free Software Foundation
8150207 # gives unlimited permission to copy and/or distribute it,
@@ -8156,10 +213,10 @@
8156213 # generated from the m4 files accompanying Automake X.Y.
8157214 # (This private macro should not be called outside this file.)
8158215 AC_DEFUN([AM_AUTOMAKE_VERSION],
8159-[am__api_version='1.10'
216+[am__api_version='1.11'
8160217 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
8161218 dnl require some minimum version. Point them to the right macro.
8162-m4_if([$1], [1.10], [],
219+m4_if([$1], [1.11], [],
8163220 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
8164221 ])
8165222
@@ -8173,10 +230,12 @@
8173230 # AM_SET_CURRENT_AUTOMAKE_VERSION
8174231 # -------------------------------
8175232 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
8176-# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
233+# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
8177234 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
8178-[AM_AUTOMAKE_VERSION([1.10])dnl
8179-_AM_AUTOCONF_VERSION(m4_PACKAGE_VERSION)])
235+[AM_AUTOMAKE_VERSION([1.11])dnl
236+m4_ifndef([AC_AUTOCONF_VERSION],
237+ [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
238+_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
8180239
8181240 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
8182241
@@ -8233,7 +292,7 @@
8233292
8234293 # AM_CONDITIONAL -*- Autoconf -*-
8235294
8236-# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
295+# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
8237296 # Free Software Foundation, Inc.
8238297 #
8239298 # This file is free software; the Free Software Foundation
@@ -8240,7 +299,7 @@
8240299 # gives unlimited permission to copy and/or distribute it,
8241300 # with or without modifications, as long as this notice is preserved.
8242301
8243-# serial 8
302+# serial 9
8244303
8245304 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
8246305 # -------------------------------------
@@ -8253,6 +312,7 @@
8253312 AC_SUBST([$1_FALSE])dnl
8254313 _AM_SUBST_NOTMAKE([$1_TRUE])dnl
8255314 _AM_SUBST_NOTMAKE([$1_FALSE])dnl
315+m4_define([_AM_COND_VALUE_$1], [$2])dnl
8256316 if $2; then
8257317 $1_TRUE=
8258318 $1_FALSE='#'
@@ -8266,7 +326,7 @@
8266326 Usually this means the macro was only invoked conditionally.]])
8267327 fi])])
8268328
8269-# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
329+# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
8270330 # Free Software Foundation, Inc.
8271331 #
8272332 # This file is free software; the Free Software Foundation
@@ -8273,7 +333,7 @@
8273333 # gives unlimited permission to copy and/or distribute it,
8274334 # with or without modifications, as long as this notice is preserved.
8275335
8276-# serial 9
336+# serial 10
8277337
8278338 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
8279339 # written in clear, in which case automake, when reading aclocal.m4,
@@ -8330,6 +390,16 @@
8330390 if test "$am_compiler_list" = ""; then
8331391 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
8332392 fi
393+ am__universal=false
394+ m4_case([$1], [CC],
395+ [case " $depcc " in #(
396+ *\ -arch\ *\ -arch\ *) am__universal=true ;;
397+ esac],
398+ [CXX],
399+ [case " $depcc " in #(
400+ *\ -arch\ *\ -arch\ *) am__universal=true ;;
401+ esac])
402+
8333403 for depmode in $am_compiler_list; do
8334404 # Setup a source with many dependencies, because some compilers
8335405 # like to wrap large dependency lists on column 80 (with \), and
@@ -8347,7 +417,17 @@
8347417 done
8348418 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8349419
420+ # We check with `-c' and `-o' for the sake of the "dashmstdout"
421+ # mode. It turns out that the SunPro C++ compiler does not properly
422+ # handle `-M -o', and we need to detect this. Also, some Intel
423+ # versions had trouble with output in subdirs
424+ am__obj=sub/conftest.${OBJEXT-o}
425+ am__minus_obj="-o $am__obj"
8350426 case $depmode in
427+ gcc)
428+ # This depmode causes a compiler race in universal mode.
429+ test "$am__universal" = false || continue
430+ ;;
8351431 nosideeffect)
8352432 # after this tag, mechanisms are not by side-effect, so they'll
8353433 # only be used when explicitly requested
@@ -8357,19 +437,23 @@
8357437 break
8358438 fi
8359439 ;;
440+ msvisualcpp | msvcmsys)
441+ # This compiler won't grok `-c -o', but also, the minuso test has
442+ # not run yet. These depmodes are late enough in the game, and
443+ # so weak that their functioning should not be impacted.
444+ am__obj=conftest.${OBJEXT-o}
445+ am__minus_obj=
446+ ;;
8360447 none) break ;;
8361448 esac
8362- # We check with `-c' and `-o' for the sake of the "dashmstdout"
8363- # mode. It turns out that the SunPro C++ compiler does not properly
8364- # handle `-M -o', and we need to detect this.
8365449 if depmode=$depmode \
8366- source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
450+ source=sub/conftest.c object=$am__obj \
8367451 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8368- $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
452+ $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
8369453 >/dev/null 2>conftest.err &&
8370454 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
8371455 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8372- grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
456+ grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
8373457 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8374458 # icc doesn't choke on unknown options, it will just issue warnings
8375459 # or remarks (even with -Werror). So we grep stderr for any message
@@ -8426,7 +510,7 @@
8426510
8427511 # Generate code to set up dependency tracking. -*- Autoconf -*-
8428512
8429-# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
513+# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
8430514 # Free Software Foundation, Inc.
8431515 #
8432516 # This file is free software; the Free Software Foundation
@@ -8433,50 +517,61 @@
8433517 # gives unlimited permission to copy and/or distribute it,
8434518 # with or without modifications, as long as this notice is preserved.
8435519
8436-#serial 3
520+#serial 5
8437521
8438522 # _AM_OUTPUT_DEPENDENCY_COMMANDS
8439523 # ------------------------------
8440524 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
8441-[for mf in $CONFIG_FILES; do
8442- # Strip MF so we end up with the name of the file.
8443- mf=`echo "$mf" | sed -e 's/:.*$//'`
8444- # Check whether this is an Automake generated Makefile or not.
8445- # We used to match only the files named `Makefile.in', but
8446- # some people rename them; so instead we look at the file content.
8447- # Grep'ing the first line is not enough: some people post-process
8448- # each Makefile.in and add a new line on top of each file to say so.
8449- # Grep'ing the whole file is not good either: AIX grep has a line
8450- # limit of 2048, but all sed's we know have understand at least 4000.
8451- if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
8452- dirpart=`AS_DIRNAME("$mf")`
8453- else
8454- continue
8455- fi
8456- # Extract the definition of DEPDIR, am__include, and am__quote
8457- # from the Makefile without running `make'.
8458- DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
8459- test -z "$DEPDIR" && continue
8460- am__include=`sed -n 's/^am__include = //p' < "$mf"`
8461- test -z "am__include" && continue
8462- am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
8463- # When using ansi2knr, U may be empty or an underscore; expand it
8464- U=`sed -n 's/^U = //p' < "$mf"`
8465- # Find all dependency output files, they are included files with
8466- # $(DEPDIR) in their names. We invoke sed twice because it is the
8467- # simplest approach to changing $(DEPDIR) to its actual value in the
8468- # expansion.
8469- for file in `sed -n "
8470- s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
8471- sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
8472- # Make sure the directory exists.
8473- test -f "$dirpart/$file" && continue
8474- fdir=`AS_DIRNAME(["$file"])`
8475- AS_MKDIR_P([$dirpart/$fdir])
8476- # echo "creating $dirpart/$file"
8477- echo '# dummy' > "$dirpart/$file"
525+[{
526+ # Autoconf 2.62 quotes --file arguments for eval, but not when files
527+ # are listed without --file. Let's play safe and only enable the eval
528+ # if we detect the quoting.
529+ case $CONFIG_FILES in
530+ *\'*) eval set x "$CONFIG_FILES" ;;
531+ *) set x $CONFIG_FILES ;;
532+ esac
533+ shift
534+ for mf
535+ do
536+ # Strip MF so we end up with the name of the file.
537+ mf=`echo "$mf" | sed -e 's/:.*$//'`
538+ # Check whether this is an Automake generated Makefile or not.
539+ # We used to match only the files named `Makefile.in', but
540+ # some people rename them; so instead we look at the file content.
541+ # Grep'ing the first line is not enough: some people post-process
542+ # each Makefile.in and add a new line on top of each file to say so.
543+ # Grep'ing the whole file is not good either: AIX grep has a line
544+ # limit of 2048, but all sed's we know have understand at least 4000.
545+ if sed -n 's,^#.