1# generated automatically by aclocal 1.15 -*- Autoconf -*-
2
3# Copyright (C) 1996-2014 Free Software Foundation, Inc.
4
5# This file is free software; the Free Software Foundation
6# gives unlimited permission to copy and/or distribute it,
7# with or without modifications, as long as this notice is preserved.
8
9# This program is distributed in the hope that it will be useful,
10# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12# PARTICULAR PURPOSE.
13
14m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
15m4_ifndef([AC_AUTOCONF_VERSION],
16  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
17m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,
18[m4_warning([this file was generated for autoconf 2.69.
19You have another version of autoconf.  It may work, but is not guaranteed to.
20If you have problems, you may need to regenerate the build system entirely.
21To do so, use the procedure documented by the package, typically 'autoreconf'.])])
22
23# pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
24# serial 1 (pkg-config-0.24)
25#
26# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
27#
28# This program is free software; you can redistribute it and/or modify
29# it under the terms of the GNU General Public License as published by
30# the Free Software Foundation; either version 2 of the License, or
31# (at your option) any later version.
32#
33# This program is distributed in the hope that it will be useful, but
34# WITHOUT ANY WARRANTY; without even the implied warranty of
35# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
36# General Public License for more details.
37#
38# You should have received a copy of the GNU General Public License
39# along with this program; if not, write to the Free Software
40# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
41#
42# As a special exception to the GNU General Public License, if you
43# distribute this file as part of a program that contains a
44# configuration script generated by Autoconf, you may include it under
45# the same distribution terms that you use for the rest of that program.
46
47# PKG_PROG_PKG_CONFIG([MIN-VERSION])
48# ----------------------------------
49AC_DEFUN([PKG_PROG_PKG_CONFIG],
50[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
51m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$])
52m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$])
53AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
54AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
55AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
56
57if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
58	AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
59fi
60if test -n "$PKG_CONFIG"; then
61	_pkg_min_version=m4_default([$1], [0.9.0])
62	AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
63	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
64		AC_MSG_RESULT([yes])
65	else
66		AC_MSG_RESULT([no])
67		PKG_CONFIG=""
68	fi
69fi[]dnl
70])# PKG_PROG_PKG_CONFIG
71
72# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
73#
74# Check to see whether a particular set of modules exists.  Similar
75# to PKG_CHECK_MODULES(), but does not set variables or print errors.
76#
77# Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
78# only at the first occurence in configure.ac, so if the first place
79# it's called might be skipped (such as if it is within an "if", you
80# have to call PKG_CHECK_EXISTS manually
81# --------------------------------------------------------------
82AC_DEFUN([PKG_CHECK_EXISTS],
83[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
84if test -n "$PKG_CONFIG" && \
85    AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
86  m4_default([$2], [:])
87m4_ifvaln([$3], [else
88  $3])dnl
89fi])
90
91# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
92# ---------------------------------------------
93m4_define([_PKG_CONFIG],
94[if test -n "$$1"; then
95    pkg_cv_[]$1="$$1"
96 elif test -n "$PKG_CONFIG"; then
97    PKG_CHECK_EXISTS([$3],
98                     [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`
99		      test "x$?" != "x0" && pkg_failed=yes ],
100		     [pkg_failed=yes])
101 else
102    pkg_failed=untried
103fi[]dnl
104])# _PKG_CONFIG
105
106# _PKG_SHORT_ERRORS_SUPPORTED
107# -----------------------------
108AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
109[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
110if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
111        _pkg_short_errors_supported=yes
112else
113        _pkg_short_errors_supported=no
114fi[]dnl
115])# _PKG_SHORT_ERRORS_SUPPORTED
116
117
118# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
119# [ACTION-IF-NOT-FOUND])
120#
121#
122# Note that if there is a possibility the first call to
123# PKG_CHECK_MODULES might not happen, you should be sure to include an
124# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
125#
126#
127# --------------------------------------------------------------
128AC_DEFUN([PKG_CHECK_MODULES],
129[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
130AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
131AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
132
133pkg_failed=no
134AC_MSG_CHECKING([for $1])
135
136_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
137_PKG_CONFIG([$1][_LIBS], [libs], [$2])
138
139m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
140and $1[]_LIBS to avoid the need to call pkg-config.
141See the pkg-config man page for more details.])
142
143if test $pkg_failed = yes; then
144   	AC_MSG_RESULT([no])
145        _PKG_SHORT_ERRORS_SUPPORTED
146        if test $_pkg_short_errors_supported = yes; then
147	        $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1`
148        else
149	        $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1`
150        fi
151	# Put the nasty error message in config.log where it belongs
152	echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
153
154	m4_default([$4], [AC_MSG_ERROR(
155[Package requirements ($2) were not met:
156
157$$1_PKG_ERRORS
158
159Consider adjusting the PKG_CONFIG_PATH environment variable if you
160installed software in a non-standard prefix.
161
162_PKG_TEXT])[]dnl
163        ])
164elif test $pkg_failed = untried; then
165     	AC_MSG_RESULT([no])
166	m4_default([$4], [AC_MSG_FAILURE(
167[The pkg-config script could not be found or is too old.  Make sure it
168is in your PATH or set the PKG_CONFIG environment variable to the full
169path to pkg-config.
170
171_PKG_TEXT
172
173To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl
174        ])
175else
176	$1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
177	$1[]_LIBS=$pkg_cv_[]$1[]_LIBS
178        AC_MSG_RESULT([yes])
179	$3
180fi[]dnl
181])# PKG_CHECK_MODULES
182
183
184# PKG_INSTALLDIR(DIRECTORY)
185# -------------------------
186# Substitutes the variable pkgconfigdir as the location where a module
187# should install pkg-config .pc files. By default the directory is
188# $libdir/pkgconfig, but the default can be changed by passing
189# DIRECTORY. The user can override through the --with-pkgconfigdir
190# parameter.
191AC_DEFUN([PKG_INSTALLDIR],
192[m4_pushdef([pkg_default], [m4_default([$1], ['${libdir}/pkgconfig'])])
193m4_pushdef([pkg_description],
194    [pkg-config installation directory @<:@]pkg_default[@:>@])
195AC_ARG_WITH([pkgconfigdir],
196    [AS_HELP_STRING([--with-pkgconfigdir], pkg_description)],,
197    [with_pkgconfigdir=]pkg_default)
198AC_SUBST([pkgconfigdir], [$with_pkgconfigdir])
199m4_popdef([pkg_default])
200m4_popdef([pkg_description])
201]) dnl PKG_INSTALLDIR
202
203
204# PKG_NOARCH_INSTALLDIR(DIRECTORY)
205# -------------------------
206# Substitutes the variable noarch_pkgconfigdir as the location where a
207# module should install arch-independent pkg-config .pc files. By
208# default the directory is $datadir/pkgconfig, but the default can be
209# changed by passing DIRECTORY. The user can override through the
210# --with-noarch-pkgconfigdir parameter.
211AC_DEFUN([PKG_NOARCH_INSTALLDIR],
212[m4_pushdef([pkg_default], [m4_default([$1], ['${datadir}/pkgconfig'])])
213m4_pushdef([pkg_description],
214    [pkg-config arch-independent installation directory @<:@]pkg_default[@:>@])
215AC_ARG_WITH([noarch-pkgconfigdir],
216    [AS_HELP_STRING([--with-noarch-pkgconfigdir], pkg_description)],,
217    [with_noarch_pkgconfigdir=]pkg_default)
218AC_SUBST([noarch_pkgconfigdir], [$with_noarch_pkgconfigdir])
219m4_popdef([pkg_default])
220m4_popdef([pkg_description])
221]) dnl PKG_NOARCH_INSTALLDIR
222
223
224# PKG_CHECK_VAR(VARIABLE, MODULE, CONFIG-VARIABLE,
225# [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
226# -------------------------------------------
227# Retrieves the value of the pkg-config variable for the given module.
228AC_DEFUN([PKG_CHECK_VAR],
229[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
230AC_ARG_VAR([$1], [value of $3 for $2, overriding pkg-config])dnl
231
232_PKG_CONFIG([$1], [variable="][$3]["], [$2])
233AS_VAR_COPY([$1], [pkg_cv_][$1])
234
235AS_VAR_IF([$1], [""], [$5], [$4])dnl
236])# PKG_CHECK_VAR
237
238# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
239#
240#   Copyright (C) 1996-2001, 2003-2013 Free Software Foundation, Inc.
241#   Written by Gordon Matzigkeit, 1996
242#
243# This file is free software; the Free Software Foundation gives
244# unlimited permission to copy and/or distribute it, with or without
245# modifications, as long as this notice is preserved.
246
247m4_define([_LT_COPYING], [dnl
248#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
249#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
250#                 Foundation, Inc.
251#   Written by Gordon Matzigkeit, 1996
252#
253#   This file is part of GNU Libtool.
254#
255# GNU Libtool is free software; you can redistribute it and/or
256# modify it under the terms of the GNU General Public License as
257# published by the Free Software Foundation; either version 2 of
258# the License, or (at your option) any later version.
259#
260# As a special exception to the GNU General Public License,
261# if you distribute this file as part of a program or library that
262# is built using GNU Libtool, you may include this file under the
263# same distribution terms that you use for the rest of that program.
264#
265# GNU Libtool is distributed in the hope that it will be useful,
266# but WITHOUT ANY WARRANTY; without even the implied warranty of
267# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
268# GNU General Public License for more details.
269#
270# You should have received a copy of the GNU General Public License
271# along with GNU Libtool; see the file COPYING.  If not, a copy
272# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
273# obtained by writing to the Free Software Foundation, Inc.,
274# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
275])
276
277# serial 58 LT_INIT
278
279
280# LT_PREREQ(VERSION)
281# ------------------
282# Complain and exit if this libtool version is less that VERSION.
283m4_defun([LT_PREREQ],
284[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
285       [m4_default([$3],
286		   [m4_fatal([Libtool version $1 or higher is required],
287		             63)])],
288       [$2])])
289
290
291# _LT_CHECK_BUILDDIR
292# ------------------
293# Complain if the absolute build directory name contains unusual characters
294m4_defun([_LT_CHECK_BUILDDIR],
295[case `pwd` in
296  *\ * | *\	*)
297    AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
298esac
299])
300
301
302# LT_INIT([OPTIONS])
303# ------------------
304AC_DEFUN([LT_INIT],
305[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
306AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
307AC_BEFORE([$0], [LT_LANG])dnl
308AC_BEFORE([$0], [LT_OUTPUT])dnl
309AC_BEFORE([$0], [LTDL_INIT])dnl
310m4_require([_LT_CHECK_BUILDDIR])dnl
311
312dnl Autoconf doesn't catch unexpanded LT_ macros by default:
313m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
314m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
315dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
316dnl unless we require an AC_DEFUNed macro:
317AC_REQUIRE([LTOPTIONS_VERSION])dnl
318AC_REQUIRE([LTSUGAR_VERSION])dnl
319AC_REQUIRE([LTVERSION_VERSION])dnl
320AC_REQUIRE([LTOBSOLETE_VERSION])dnl
321m4_require([_LT_PROG_LTMAIN])dnl
322
323_LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
324
325dnl Parse OPTIONS
326_LT_SET_OPTIONS([$0], [$1])
327
328# This can be used to rebuild libtool when needed
329LIBTOOL_DEPS=$ltmain
330
331# Always use our own libtool.
332LIBTOOL='$(SHELL) $(top_builddir)/libtool'
333AC_SUBST(LIBTOOL)dnl
334
335_LT_SETUP
336
337# Only expand once:
338m4_define([LT_INIT])
339])# LT_INIT
340
341# Old names:
342AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
343AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
344dnl aclocal-1.4 backwards compatibility:
345dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
346dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
347
348
349# _LT_CC_BASENAME(CC)
350# -------------------
351# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
352m4_defun([_LT_CC_BASENAME],
353[for cc_temp in $1""; do
354  case $cc_temp in
355    compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
356    distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
357    \-*) ;;
358    *) break;;
359  esac
360done
361cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
362])
363
364
365# _LT_FILEUTILS_DEFAULTS
366# ----------------------
367# It is okay to use these file commands and assume they have been set
368# sensibly after 'm4_require([_LT_FILEUTILS_DEFAULTS])'.
369m4_defun([_LT_FILEUTILS_DEFAULTS],
370[: ${CP="cp -f"}
371: ${MV="mv -f"}
372: ${RM="rm -f"}
373])# _LT_FILEUTILS_DEFAULTS
374
375
376# _LT_SETUP
377# ---------
378m4_defun([_LT_SETUP],
379[AC_REQUIRE([AC_CANONICAL_HOST])dnl
380AC_REQUIRE([AC_CANONICAL_BUILD])dnl
381AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
382AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
383
384_LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl
385dnl
386_LT_DECL([], [host_alias], [0], [The host system])dnl
387_LT_DECL([], [host], [0])dnl
388_LT_DECL([], [host_os], [0])dnl
389dnl
390_LT_DECL([], [build_alias], [0], [The build system])dnl
391_LT_DECL([], [build], [0])dnl
392_LT_DECL([], [build_os], [0])dnl
393dnl
394AC_REQUIRE([AC_PROG_CC])dnl
395AC_REQUIRE([LT_PATH_LD])dnl
396AC_REQUIRE([LT_PATH_NM])dnl
397dnl
398AC_REQUIRE([AC_PROG_LN_S])dnl
399test -z "$LN_S" && LN_S="ln -s"
400_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
401dnl
402AC_REQUIRE([LT_CMD_MAX_LEN])dnl
403_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
404_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
405dnl
406m4_require([_LT_FILEUTILS_DEFAULTS])dnl
407m4_require([_LT_CHECK_SHELL_FEATURES])dnl
408m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl
409m4_require([_LT_CMD_RELOAD])dnl
410m4_require([_LT_CHECK_MAGIC_METHOD])dnl
411m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl
412m4_require([_LT_CMD_OLD_ARCHIVE])dnl
413m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
414m4_require([_LT_WITH_SYSROOT])dnl
415
416_LT_CONFIG_LIBTOOL_INIT([
417# See if we are running on zsh, and set the options that allow our
418# commands through without removal of \ escapes INIT.
419if test -n "\${ZSH_VERSION+set}"; then
420   setopt NO_GLOB_SUBST
421fi
422])
423if test -n "${ZSH_VERSION+set}"; then
424   setopt NO_GLOB_SUBST
425fi
426
427_LT_CHECK_OBJDIR
428
429m4_require([_LT_TAG_COMPILER])dnl
430
431case $host_os in
432aix3*)
433  # AIX sometimes has problems with the GCC collect2 program.  For some
434  # reason, if we set the COLLECT_NAMES environment variable, the problems
435  # vanish in a puff of smoke.
436  if test set != "${COLLECT_NAMES+set}"; then
437    COLLECT_NAMES=
438    export COLLECT_NAMES
439  fi
440  ;;
441esac
442
443# Global variables:
444ofile=libtool
445can_build_shared=yes
446
447# All known linkers require a '.a' archive for static linking (except MSVC,
448# which needs '.lib').
449libext=a
450
451with_gnu_ld=$lt_cv_prog_gnu_ld
452
453old_CC=$CC
454old_CFLAGS=$CFLAGS
455
456# Set sane defaults for various variables
457test -z "$CC" && CC=cc
458test -z "$LTCC" && LTCC=$CC
459test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
460test -z "$LD" && LD=ld
461test -z "$ac_objext" && ac_objext=o
462
463_LT_CC_BASENAME([$compiler])
464
465# Only perform the check for file, if the check method requires it
466test -z "$MAGIC_CMD" && MAGIC_CMD=file
467case $deplibs_check_method in
468file_magic*)
469  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
470    _LT_PATH_MAGIC
471  fi
472  ;;
473esac
474
475# Use C for the default configuration in the libtool script
476LT_SUPPORTED_TAG([CC])
477_LT_LANG_C_CONFIG
478_LT_LANG_DEFAULT_CONFIG
479_LT_CONFIG_COMMANDS
480])# _LT_SETUP
481
482
483# _LT_PREPARE_SED_QUOTE_VARS
484# --------------------------
485# Define a few sed substitution that help us do robust quoting.
486m4_defun([_LT_PREPARE_SED_QUOTE_VARS],
487[# Backslashify metacharacters that are still active within
488# double-quoted strings.
489sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
490
491# Same as above, but do not quote variable references.
492double_quote_subst='s/\([["`\\]]\)/\\\1/g'
493
494# Sed substitution to delay expansion of an escaped shell variable in a
495# double_quote_subst'ed string.
496delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
497
498# Sed substitution to delay expansion of an escaped single quote.
499delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
500
501# Sed substitution to avoid accidental globbing in evaled expressions
502no_glob_subst='s/\*/\\\*/g'
503])
504
505# _LT_PROG_LTMAIN
506# ---------------
507# Note that this code is called both from 'configure', and 'config.status'
508# now that we use AC_CONFIG_COMMANDS to generate libtool.  Notably,
509# 'config.status' has no value for ac_aux_dir unless we are using Automake,
510# so we pass a copy along to make sure it has a sensible value anyway.
511m4_defun([_LT_PROG_LTMAIN],
512[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
513_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
514ltmain=$ac_aux_dir/ltmain.sh
515])# _LT_PROG_LTMAIN
516
517
518
519# So that we can recreate a full libtool script including additional
520# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
521# in macros and then make a single call at the end using the 'libtool'
522# label.
523
524
525# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
526# ----------------------------------------
527# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
528m4_define([_LT_CONFIG_LIBTOOL_INIT],
529[m4_ifval([$1],
530          [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
531                     [$1
532])])])
533
534# Initialize.
535m4_define([_LT_OUTPUT_LIBTOOL_INIT])
536
537
538# _LT_CONFIG_LIBTOOL([COMMANDS])
539# ------------------------------
540# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
541m4_define([_LT_CONFIG_LIBTOOL],
542[m4_ifval([$1],
543          [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
544                     [$1
545])])])
546
547# Initialize.
548m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
549
550
551# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
552# -----------------------------------------------------
553m4_defun([_LT_CONFIG_SAVE_COMMANDS],
554[_LT_CONFIG_LIBTOOL([$1])
555_LT_CONFIG_LIBTOOL_INIT([$2])
556])
557
558
559# _LT_FORMAT_COMMENT([COMMENT])
560# -----------------------------
561# Add leading comment marks to the start of each line, and a trailing
562# full-stop to the whole comment if one is not present already.
563m4_define([_LT_FORMAT_COMMENT],
564[m4_ifval([$1], [
565m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
566              [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
567)])
568
569
570
571
572
573# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
574# -------------------------------------------------------------------
575# CONFIGNAME is the name given to the value in the libtool script.
576# VARNAME is the (base) name used in the configure script.
577# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
578# VARNAME.  Any other value will be used directly.
579m4_define([_LT_DECL],
580[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
581    [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
582	[m4_ifval([$1], [$1], [$2])])
583    lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
584    m4_ifval([$4],
585	[lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
586    lt_dict_add_subkey([lt_decl_dict], [$2],
587	[tagged?], [m4_ifval([$5], [yes], [no])])])
588])
589
590
591# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
592# --------------------------------------------------------
593m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
594
595
596# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
597# ------------------------------------------------
598m4_define([lt_decl_tag_varnames],
599[_lt_decl_filter([tagged?], [yes], $@)])
600
601
602# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
603# ---------------------------------------------------------
604m4_define([_lt_decl_filter],
605[m4_case([$#],
606  [0], [m4_fatal([$0: too few arguments: $#])],
607  [1], [m4_fatal([$0: too few arguments: $#: $1])],
608  [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
609  [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
610  [lt_dict_filter([lt_decl_dict], $@)])[]dnl
611])
612
613
614# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
615# --------------------------------------------------
616m4_define([lt_decl_quote_varnames],
617[_lt_decl_filter([value], [1], $@)])
618
619
620# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
621# ---------------------------------------------------
622m4_define([lt_decl_dquote_varnames],
623[_lt_decl_filter([value], [2], $@)])
624
625
626# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
627# ---------------------------------------------------
628m4_define([lt_decl_varnames_tagged],
629[m4_assert([$# <= 2])dnl
630_$0(m4_quote(m4_default([$1], [[, ]])),
631    m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
632    m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
633m4_define([_lt_decl_varnames_tagged],
634[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
635
636
637# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
638# ------------------------------------------------
639m4_define([lt_decl_all_varnames],
640[_$0(m4_quote(m4_default([$1], [[, ]])),
641     m4_if([$2], [],
642	   m4_quote(lt_decl_varnames),
643	m4_quote(m4_shift($@))))[]dnl
644])
645m4_define([_lt_decl_all_varnames],
646[lt_join($@, lt_decl_varnames_tagged([$1],
647			lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
648])
649
650
651# _LT_CONFIG_STATUS_DECLARE([VARNAME])
652# ------------------------------------
653# Quote a variable value, and forward it to 'config.status' so that its
654# declaration there will have the same value as in 'configure'.  VARNAME
655# must have a single quote delimited value for this to work.
656m4_define([_LT_CONFIG_STATUS_DECLARE],
657[$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`'])
658
659
660# _LT_CONFIG_STATUS_DECLARATIONS
661# ------------------------------
662# We delimit libtool config variables with single quotes, so when
663# we write them to config.status, we have to be sure to quote all
664# embedded single quotes properly.  In configure, this macro expands
665# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
666#
667#    <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
668m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
669[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
670    [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
671
672
673# _LT_LIBTOOL_TAGS
674# ----------------
675# Output comment and list of tags supported by the script
676m4_defun([_LT_LIBTOOL_TAGS],
677[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
678available_tags='_LT_TAGS'dnl
679])
680
681
682# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
683# -----------------------------------
684# Extract the dictionary values for VARNAME (optionally with TAG) and
685# expand to a commented shell variable setting:
686#
687#    # Some comment about what VAR is for.
688#    visible_name=$lt_internal_name
689m4_define([_LT_LIBTOOL_DECLARE],
690[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
691					   [description])))[]dnl
692m4_pushdef([_libtool_name],
693    m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
694m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
695    [0], [_libtool_name=[$]$1],
696    [1], [_libtool_name=$lt_[]$1],
697    [2], [_libtool_name=$lt_[]$1],
698    [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
699m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
700])
701
702
703# _LT_LIBTOOL_CONFIG_VARS
704# -----------------------
705# Produce commented declarations of non-tagged libtool config variables
706# suitable for insertion in the LIBTOOL CONFIG section of the 'libtool'
707# script.  Tagged libtool config variables (even for the LIBTOOL CONFIG
708# section) are produced by _LT_LIBTOOL_TAG_VARS.
709m4_defun([_LT_LIBTOOL_CONFIG_VARS],
710[m4_foreach([_lt_var],
711    m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
712    [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
713
714
715# _LT_LIBTOOL_TAG_VARS(TAG)
716# -------------------------
717m4_define([_LT_LIBTOOL_TAG_VARS],
718[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
719    [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
720
721
722# _LT_TAGVAR(VARNAME, [TAGNAME])
723# ------------------------------
724m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
725
726
727# _LT_CONFIG_COMMANDS
728# -------------------
729# Send accumulated output to $CONFIG_STATUS.  Thanks to the lists of
730# variables for single and double quote escaping we saved from calls
731# to _LT_DECL, we can put quote escaped variables declarations
732# into 'config.status', and then the shell code to quote escape them in
733# for loops in 'config.status'.  Finally, any additional code accumulated
734# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
735m4_defun([_LT_CONFIG_COMMANDS],
736[AC_PROVIDE_IFELSE([LT_OUTPUT],
737	dnl If the libtool generation code has been placed in $CONFIG_LT,
738	dnl instead of duplicating it all over again into config.status,
739	dnl then we will have config.status run $CONFIG_LT later, so it
740	dnl needs to know what name is stored there:
741        [AC_CONFIG_COMMANDS([libtool],
742            [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
743    dnl If the libtool generation code is destined for config.status,
744    dnl expand the accumulated commands and init code now:
745    [AC_CONFIG_COMMANDS([libtool],
746        [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
747])#_LT_CONFIG_COMMANDS
748
749
750# Initialize.
751m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
752[
753
754# The HP-UX ksh and POSIX shell print the target directory to stdout
755# if CDPATH is set.
756(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
757
758sed_quote_subst='$sed_quote_subst'
759double_quote_subst='$double_quote_subst'
760delay_variable_subst='$delay_variable_subst'
761_LT_CONFIG_STATUS_DECLARATIONS
762LTCC='$LTCC'
763LTCFLAGS='$LTCFLAGS'
764compiler='$compiler_DEFAULT'
765
766# A function that is used when there is no print builtin or printf.
767func_fallback_echo ()
768{
769  eval 'cat <<_LTECHO_EOF
770\$[]1
771_LTECHO_EOF'
772}
773
774# Quote evaled strings.
775for var in lt_decl_all_varnames([[ \
776]], lt_decl_quote_varnames); do
777    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
778    *[[\\\\\\\`\\"\\\$]]*)
779      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
780      ;;
781    *)
782      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
783      ;;
784    esac
785done
786
787# Double-quote double-evaled strings.
788for var in lt_decl_all_varnames([[ \
789]], lt_decl_dquote_varnames); do
790    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
791    *[[\\\\\\\`\\"\\\$]]*)
792      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
793      ;;
794    *)
795      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
796      ;;
797    esac
798done
799
800_LT_OUTPUT_LIBTOOL_INIT
801])
802
803# _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
804# ------------------------------------
805# Generate a child script FILE with all initialization necessary to
806# reuse the environment learned by the parent script, and make the
807# file executable.  If COMMENT is supplied, it is inserted after the
808# '#!' sequence but before initialization text begins.  After this
809# macro, additional text can be appended to FILE to form the body of
810# the child script.  The macro ends with non-zero status if the
811# file could not be fully written (such as if the disk is full).
812m4_ifdef([AS_INIT_GENERATED],
813[m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])],
814[m4_defun([_LT_GENERATED_FILE_INIT],
815[m4_require([AS_PREPARE])]dnl
816[m4_pushdef([AS_MESSAGE_LOG_FD])]dnl
817[lt_write_fail=0
818cat >$1 <<_ASEOF || lt_write_fail=1
819#! $SHELL
820# Generated by $as_me.
821$2
822SHELL=\${CONFIG_SHELL-$SHELL}
823export SHELL
824_ASEOF
825cat >>$1 <<\_ASEOF || lt_write_fail=1
826AS_SHELL_SANITIZE
827_AS_PREPARE
828exec AS_MESSAGE_FD>&1
829_ASEOF
830test 0 = "$lt_write_fail" && chmod +x $1[]dnl
831m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
832
833# LT_OUTPUT
834# ---------
835# This macro allows early generation of the libtool script (before
836# AC_OUTPUT is called), incase it is used in configure for compilation
837# tests.
838AC_DEFUN([LT_OUTPUT],
839[: ${CONFIG_LT=./config.lt}
840AC_MSG_NOTICE([creating $CONFIG_LT])
841_LT_GENERATED_FILE_INIT(["$CONFIG_LT"],
842[# Run this file to recreate a libtool stub with the current configuration.])
843
844cat >>"$CONFIG_LT" <<\_LTEOF
845lt_cl_silent=false
846exec AS_MESSAGE_LOG_FD>>config.log
847{
848  echo
849  AS_BOX([Running $as_me.])
850} >&AS_MESSAGE_LOG_FD
851
852lt_cl_help="\
853'$as_me' creates a local libtool stub from the current configuration,
854for use in further configure time tests before the real libtool is
855generated.
856
857Usage: $[0] [[OPTIONS]]
858
859  -h, --help      print this help, then exit
860  -V, --version   print version number, then exit
861  -q, --quiet     do not print progress messages
862  -d, --debug     don't remove temporary files
863
864Report bugs to <bug-libtool@gnu.org>."
865
866lt_cl_version="\
867m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
868m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
869configured by $[0], generated by m4_PACKAGE_STRING.
870
871Copyright (C) 2011 Free Software Foundation, Inc.
872This config.lt script is free software; the Free Software Foundation
873gives unlimited permision to copy, distribute and modify it."
874
875while test 0 != $[#]
876do
877  case $[1] in
878    --version | --v* | -V )
879      echo "$lt_cl_version"; exit 0 ;;
880    --help | --h* | -h )
881      echo "$lt_cl_help"; exit 0 ;;
882    --debug | --d* | -d )
883      debug=: ;;
884    --quiet | --q* | --silent | --s* | -q )
885      lt_cl_silent=: ;;
886
887    -*) AC_MSG_ERROR([unrecognized option: $[1]
888Try '$[0] --help' for more information.]) ;;
889
890    *) AC_MSG_ERROR([unrecognized argument: $[1]
891Try '$[0] --help' for more information.]) ;;
892  esac
893  shift
894done
895
896if $lt_cl_silent; then
897  exec AS_MESSAGE_FD>/dev/null
898fi
899_LTEOF
900
901cat >>"$CONFIG_LT" <<_LTEOF
902_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
903_LTEOF
904
905cat >>"$CONFIG_LT" <<\_LTEOF
906AC_MSG_NOTICE([creating $ofile])
907_LT_OUTPUT_LIBTOOL_COMMANDS
908AS_EXIT(0)
909_LTEOF
910chmod +x "$CONFIG_LT"
911
912# configure is writing to config.log, but config.lt does its own redirection,
913# appending to config.log, which fails on DOS, as config.log is still kept
914# open by configure.  Here we exec the FD to /dev/null, effectively closing
915# config.log, so it can be properly (re)opened and appended to by config.lt.
916lt_cl_success=:
917test yes = "$silent" &&
918  lt_config_lt_args="$lt_config_lt_args --quiet"
919exec AS_MESSAGE_LOG_FD>/dev/null
920$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
921exec AS_MESSAGE_LOG_FD>>config.log
922$lt_cl_success || AS_EXIT(1)
923])# LT_OUTPUT
924
925
926# _LT_CONFIG(TAG)
927# ---------------
928# If TAG is the built-in tag, create an initial libtool script with a
929# default configuration from the untagged config vars.  Otherwise add code
930# to config.status for appending the configuration named by TAG from the
931# matching tagged config vars.
932m4_defun([_LT_CONFIG],
933[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
934_LT_CONFIG_SAVE_COMMANDS([
935  m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
936  m4_if(_LT_TAG, [C], [
937    # See if we are running on zsh, and set the options that allow our
938    # commands through without removal of \ escapes.
939    if test -n "${ZSH_VERSION+set}"; then
940      setopt NO_GLOB_SUBST
941    fi
942
943    cfgfile=${ofile}T
944    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
945    $RM "$cfgfile"
946
947    cat <<_LT_EOF >> "$cfgfile"
948#! $SHELL
949
950# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
951# Generated automatically by $as_me ($PACKAGE) $VERSION
952# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
953# NOTE: Changes made to this file will be lost: look at ltmain.sh.
954#
955_LT_COPYING
956_LT_LIBTOOL_TAGS
957
958# ### BEGIN LIBTOOL CONFIG
959_LT_LIBTOOL_CONFIG_VARS
960_LT_LIBTOOL_TAG_VARS
961# ### END LIBTOOL CONFIG
962
963_LT_EOF
964
965  case $host_os in
966  aix3*)
967    cat <<\_LT_EOF >> "$cfgfile"
968# AIX sometimes has problems with the GCC collect2 program.  For some
969# reason, if we set the COLLECT_NAMES environment variable, the problems
970# vanish in a puff of smoke.
971if test set != "${COLLECT_NAMES+set}"; then
972  COLLECT_NAMES=
973  export COLLECT_NAMES
974fi
975_LT_EOF
976    ;;
977  esac
978
979  _LT_PROG_LTMAIN
980
981  # We use sed instead of cat because bash on DJGPP gets confused if
982  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
983  # text mode, it properly converts lines to CR/LF.  This bash problem
984  # is reportedly fixed, but why not run on old versions too?
985  sed '$q' "$ltmain" >> "$cfgfile" \
986     || (rm -f "$cfgfile"; exit 1)
987
988   mv -f "$cfgfile" "$ofile" ||
989    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
990  chmod +x "$ofile"
991],
992[cat <<_LT_EOF >> "$ofile"
993
994dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
995dnl in a comment (ie after a #).
996# ### BEGIN LIBTOOL TAG CONFIG: $1
997_LT_LIBTOOL_TAG_VARS(_LT_TAG)
998# ### END LIBTOOL TAG CONFIG: $1
999_LT_EOF
1000])dnl /m4_if
1001],
1002[m4_if([$1], [], [
1003    PACKAGE='$PACKAGE'
1004    VERSION='$VERSION'
1005    RM='$RM'
1006    ofile='$ofile'], [])
1007])dnl /_LT_CONFIG_SAVE_COMMANDS
1008])# _LT_CONFIG
1009
1010
1011# LT_SUPPORTED_TAG(TAG)
1012# ---------------------
1013# Trace this macro to discover what tags are supported by the libtool
1014# --tag option, using:
1015#    autoconf --trace 'LT_SUPPORTED_TAG:$1'
1016AC_DEFUN([LT_SUPPORTED_TAG], [])
1017
1018
1019# C support is built-in for now
1020m4_define([_LT_LANG_C_enabled], [])
1021m4_define([_LT_TAGS], [])
1022
1023
1024# LT_LANG(LANG)
1025# -------------
1026# Enable libtool support for the given language if not already enabled.
1027AC_DEFUN([LT_LANG],
1028[AC_BEFORE([$0], [LT_OUTPUT])dnl
1029m4_case([$1],
1030  [C],			[_LT_LANG(C)],
1031  [C++],		[_LT_LANG(CXX)],
1032  [Go],			[_LT_LANG(GO)],
1033  [Java],		[_LT_LANG(GCJ)],
1034  [Fortran 77],		[_LT_LANG(F77)],
1035  [Fortran],		[_LT_LANG(FC)],
1036  [Windows Resource],	[_LT_LANG(RC)],
1037  [m4_ifdef([_LT_LANG_]$1[_CONFIG],
1038    [_LT_LANG($1)],
1039    [m4_fatal([$0: unsupported language: "$1"])])])dnl
1040])# LT_LANG
1041
1042
1043# _LT_LANG(LANGNAME)
1044# ------------------
1045m4_defun([_LT_LANG],
1046[m4_ifdef([_LT_LANG_]$1[_enabled], [],
1047  [LT_SUPPORTED_TAG([$1])dnl
1048  m4_append([_LT_TAGS], [$1 ])dnl
1049  m4_define([_LT_LANG_]$1[_enabled], [])dnl
1050  _LT_LANG_$1_CONFIG($1)])dnl
1051])# _LT_LANG
1052
1053
1054m4_ifndef([AC_PROG_GO], [
1055# NOTE: This macro has been submitted for inclusion into   #
1056#  GNU Autoconf as AC_PROG_GO.  When it is available in    #
1057#  a released version of Autoconf we should remove this    #
1058#  macro and use it instead.                               #
1059m4_defun([AC_PROG_GO],
1060[AC_LANG_PUSH(Go)dnl
1061AC_ARG_VAR([GOC],     [Go compiler command])dnl
1062AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl
1063_AC_ARG_VAR_LDFLAGS()dnl
1064AC_CHECK_TOOL(GOC, gccgo)
1065if test -z "$GOC"; then
1066  if test -n "$ac_tool_prefix"; then
1067    AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo])
1068  fi
1069fi
1070if test -z "$GOC"; then
1071  AC_CHECK_PROG(GOC, gccgo, gccgo, false)
1072fi
1073])#m4_defun
1074])#m4_ifndef
1075
1076
1077# _LT_LANG_DEFAULT_CONFIG
1078# -----------------------
1079m4_defun([_LT_LANG_DEFAULT_CONFIG],
1080[AC_PROVIDE_IFELSE([AC_PROG_CXX],
1081  [LT_LANG(CXX)],
1082  [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
1083
1084AC_PROVIDE_IFELSE([AC_PROG_F77],
1085  [LT_LANG(F77)],
1086  [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
1087
1088AC_PROVIDE_IFELSE([AC_PROG_FC],
1089  [LT_LANG(FC)],
1090  [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
1091
1092dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
1093dnl pulling things in needlessly.
1094AC_PROVIDE_IFELSE([AC_PROG_GCJ],
1095  [LT_LANG(GCJ)],
1096  [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
1097    [LT_LANG(GCJ)],
1098    [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
1099      [LT_LANG(GCJ)],
1100      [m4_ifdef([AC_PROG_GCJ],
1101	[m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
1102       m4_ifdef([A][M_PROG_GCJ],
1103	[m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
1104       m4_ifdef([LT_PROG_GCJ],
1105	[m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
1106
1107AC_PROVIDE_IFELSE([AC_PROG_GO],
1108  [LT_LANG(GO)],
1109  [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])])
1110
1111AC_PROVIDE_IFELSE([LT_PROG_RC],
1112  [LT_LANG(RC)],
1113  [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
1114])# _LT_LANG_DEFAULT_CONFIG
1115
1116# Obsolete macros:
1117AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
1118AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
1119AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
1120AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
1121AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)])
1122dnl aclocal-1.4 backwards compatibility:
1123dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
1124dnl AC_DEFUN([AC_LIBTOOL_F77], [])
1125dnl AC_DEFUN([AC_LIBTOOL_FC], [])
1126dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
1127dnl AC_DEFUN([AC_LIBTOOL_RC], [])
1128
1129
1130# _LT_TAG_COMPILER
1131# ----------------
1132m4_defun([_LT_TAG_COMPILER],
1133[AC_REQUIRE([AC_PROG_CC])dnl
1134
1135_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
1136_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
1137_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
1138_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
1139
1140# If no C compiler was specified, use CC.
1141LTCC=${LTCC-"$CC"}
1142
1143# If no C compiler flags were specified, use CFLAGS.
1144LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
1145
1146# Allow CC to be a program name with arguments.
1147compiler=$CC
1148])# _LT_TAG_COMPILER
1149
1150
1151# _LT_COMPILER_BOILERPLATE
1152# ------------------------
1153# Check for compiler boilerplate output or warnings with
1154# the simple compiler test code.
1155m4_defun([_LT_COMPILER_BOILERPLATE],
1156[m4_require([_LT_DECL_SED])dnl
1157ac_outfile=conftest.$ac_objext
1158echo "$lt_simple_compile_test_code" >conftest.$ac_ext
1159eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1160_lt_compiler_boilerplate=`cat conftest.err`
1161$RM conftest*
1162])# _LT_COMPILER_BOILERPLATE
1163
1164
1165# _LT_LINKER_BOILERPLATE
1166# ----------------------
1167# Check for linker boilerplate output or warnings with
1168# the simple link test code.
1169m4_defun([_LT_LINKER_BOILERPLATE],
1170[m4_require([_LT_DECL_SED])dnl
1171ac_outfile=conftest.$ac_objext
1172echo "$lt_simple_link_test_code" >conftest.$ac_ext
1173eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1174_lt_linker_boilerplate=`cat conftest.err`
1175$RM -r conftest*
1176])# _LT_LINKER_BOILERPLATE
1177
1178# _LT_REQUIRED_DARWIN_CHECKS
1179# -------------------------
1180m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
1181  case $host_os in
1182    rhapsody* | darwin*)
1183    AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
1184    AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
1185    AC_CHECK_TOOL([LIPO], [lipo], [:])
1186    AC_CHECK_TOOL([OTOOL], [otool], [:])
1187    AC_CHECK_TOOL([OTOOL64], [otool64], [:])
1188    _LT_DECL([], [DSYMUTIL], [1],
1189      [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
1190    _LT_DECL([], [NMEDIT], [1],
1191      [Tool to change global to local symbols on Mac OS X])
1192    _LT_DECL([], [LIPO], [1],
1193      [Tool to manipulate fat objects and archives on Mac OS X])
1194    _LT_DECL([], [OTOOL], [1],
1195      [ldd/readelf like tool for Mach-O binaries on Mac OS X])
1196    _LT_DECL([], [OTOOL64], [1],
1197      [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
1198
1199    AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
1200      [lt_cv_apple_cc_single_mod=no
1201      if test -z "$LT_MULTI_MODULE"; then
1202	# By default we will add the -single_module flag. You can override
1203	# by either setting the environment variable LT_MULTI_MODULE
1204	# non-empty at configure time, or by adding -multi_module to the
1205	# link flags.
1206	rm -rf libconftest.dylib*
1207	echo "int foo(void){return 1;}" > conftest.c
1208	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
1209-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
1210	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
1211	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
1212        _lt_result=$?
1213	# If there is a non-empty error log, and "single_module"
1214	# appears in it, assume the flag caused a linker warning
1215        if test -s conftest.err && $GREP single_module conftest.err; then
1216	  cat conftest.err >&AS_MESSAGE_LOG_FD
1217	# Otherwise, if the output was created with a 0 exit code from
1218	# the compiler, it worked.
1219	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
1220	  lt_cv_apple_cc_single_mod=yes
1221	else
1222	  cat conftest.err >&AS_MESSAGE_LOG_FD
1223	fi
1224	rm -rf libconftest.dylib*
1225	rm -f conftest.*
1226      fi])
1227
1228    AC_CACHE_CHECK([for -exported_symbols_list linker flag],
1229      [lt_cv_ld_exported_symbols_list],
1230      [lt_cv_ld_exported_symbols_list=no
1231      save_LDFLAGS=$LDFLAGS
1232      echo "_main" > conftest.sym
1233      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
1234      AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
1235	[lt_cv_ld_exported_symbols_list=yes],
1236	[lt_cv_ld_exported_symbols_list=no])
1237	LDFLAGS=$save_LDFLAGS
1238    ])
1239
1240    AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
1241      [lt_cv_ld_force_load=no
1242      cat > conftest.c << _LT_EOF
1243int forced_loaded() { return 2;}
1244_LT_EOF
1245      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
1246      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
1247      echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
1248      $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
1249      echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
1250      $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
1251      cat > conftest.c << _LT_EOF
1252int main() { return 0;}
1253_LT_EOF
1254      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
1255      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
1256      _lt_result=$?
1257      if test -s conftest.err && $GREP force_load conftest.err; then
1258	cat conftest.err >&AS_MESSAGE_LOG_FD
1259      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
1260	lt_cv_ld_force_load=yes
1261      else
1262	cat conftest.err >&AS_MESSAGE_LOG_FD
1263      fi
1264        rm -f conftest.err libconftest.a conftest conftest.c
1265        rm -rf conftest.dSYM
1266    ])
1267    case $host_os in
1268    rhapsody* | darwin1.[[012]])
1269      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
1270    darwin1.*)
1271      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
1272    darwin*) # darwin 5.x on
1273      # if running on 10.5 or later, the deployment target defaults
1274      # to the OS version, if on x86, and 10.4, the deployment
1275      # target defaults to 10.4. Don't you love it?
1276      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
1277	10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
1278	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
1279	10.[[012]]*)
1280	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
1281	10.*)
1282	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
1283      esac
1284    ;;
1285  esac
1286    if test yes = "$lt_cv_apple_cc_single_mod"; then
1287      _lt_dar_single_mod='$single_module'
1288    fi
1289    if test yes = "$lt_cv_ld_exported_symbols_list"; then
1290      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
1291    else
1292      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
1293    fi
1294    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
1295      _lt_dsymutil='~$DSYMUTIL $lib || :'
1296    else
1297      _lt_dsymutil=
1298    fi
1299    ;;
1300  esac
1301])
1302
1303
1304# _LT_DARWIN_LINKER_FEATURES([TAG])
1305# ---------------------------------
1306# Checks for linker and compiler features on darwin
1307m4_defun([_LT_DARWIN_LINKER_FEATURES],
1308[
1309  m4_require([_LT_REQUIRED_DARWIN_CHECKS])
1310  _LT_TAGVAR(archive_cmds_need_lc, $1)=no
1311  _LT_TAGVAR(hardcode_direct, $1)=no
1312  _LT_TAGVAR(hardcode_automatic, $1)=yes
1313  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
1314  if test yes = "$lt_cv_ld_force_load"; then
1315    _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
1316    m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes],
1317                  [FC],  [_LT_TAGVAR(compiler_needs_object, $1)=yes])
1318  else
1319    _LT_TAGVAR(whole_archive_flag_spec, $1)=''
1320  fi
1321  _LT_TAGVAR(link_all_deplibs, $1)=yes
1322  _LT_TAGVAR(allow_undefined_flag, $1)=$_lt_dar_allow_undefined
1323  case $cc_basename in
1324     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
1325     *) _lt_dar_can_shared=$GCC ;;
1326  esac
1327  if test yes = "$_lt_dar_can_shared"; then
1328    output_verbose_link_cmd=func_echo_all
1329    _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"
1330    _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
1331    _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"
1332    _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"
1333    m4_if([$1], [CXX],
1334[   if test yes != "$lt_cv_apple_cc_single_mod"; then
1335      _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"
1336      _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"
1337    fi
1338],[])
1339  else
1340  _LT_TAGVAR(ld_shlibs, $1)=no
1341  fi
1342])
1343
1344# _LT_SYS_MODULE_PATH_AIX([TAGNAME])
1345# ----------------------------------
1346# Links a minimal program and checks the executable
1347# for the system default hardcoded library path. In most cases,
1348# this is /usr/lib:/lib, but when the MPI compilers are used
1349# the location of the communication and MPI libs are included too.
1350# If we don't find anything, use the default library path according
1351# to the aix ld manual.
1352# Store the results from the different compilers for each TAGNAME.
1353# Allow to override them for all tags through lt_cv_aix_libpath.
1354m4_defun([_LT_SYS_MODULE_PATH_AIX],
1355[m4_require([_LT_DECL_SED])dnl
1356if test set = "${lt_cv_aix_libpath+set}"; then
1357  aix_libpath=$lt_cv_aix_libpath
1358else
1359  AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
1360  [AC_LINK_IFELSE([AC_LANG_PROGRAM],[
1361  lt_aix_libpath_sed='[
1362      /Import File Strings/,/^$/ {
1363	  /^0/ {
1364	      s/^0  *\([^ ]*\) *$/\1/
1365	      p
1366	  }
1367      }]'
1368  _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1369  # Check for a 64-bit object if we didn't find anything.
1370  if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
1371    _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1372  fi],[])
1373  if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
1374    _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=/usr/lib:/lib
1375  fi
1376  ])
1377  aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
1378fi
1379])# _LT_SYS_MODULE_PATH_AIX
1380
1381
1382# _LT_SHELL_INIT(ARG)
1383# -------------------
1384m4_define([_LT_SHELL_INIT],
1385[m4_divert_text([M4SH-INIT], [$1
1386])])# _LT_SHELL_INIT
1387
1388
1389
1390# _LT_PROG_ECHO_BACKSLASH
1391# -----------------------
1392# Find how we can fake an echo command that does not interpret backslash.
1393# In particular, with Autoconf 2.60 or later we add some code to the start
1394# of the generated configure script that will find a shell with a builtin
1395# printf (that we can use as an echo command).
1396m4_defun([_LT_PROG_ECHO_BACKSLASH],
1397[ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
1398ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
1399ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
1400
1401AC_MSG_CHECKING([how to print strings])
1402# Test print first, because it will be a builtin if present.
1403if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
1404   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
1405  ECHO='print -r --'
1406elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
1407  ECHO='printf %s\n'
1408else
1409  # Use this function as a fallback that always works.
1410  func_fallback_echo ()
1411  {
1412    eval 'cat <<_LTECHO_EOF
1413$[]1
1414_LTECHO_EOF'
1415  }
1416  ECHO='func_fallback_echo'
1417fi
1418
1419# func_echo_all arg...
1420# Invoke $ECHO with all args, space-separated.
1421func_echo_all ()
1422{
1423    $ECHO "$*"
1424}
1425
1426case $ECHO in
1427  printf*) AC_MSG_RESULT([printf]) ;;
1428  print*) AC_MSG_RESULT([print -r]) ;;
1429  *) AC_MSG_RESULT([cat]) ;;
1430esac
1431
1432m4_ifdef([_AS_DETECT_SUGGESTED],
1433[_AS_DETECT_SUGGESTED([
1434  test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
1435    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
1436    ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
1437    ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
1438    PATH=/empty FPATH=/empty; export PATH FPATH
1439    test "X`printf %s $ECHO`" = "X$ECHO" \
1440      || test "X`print -r -- $ECHO`" = "X$ECHO" )])])
1441
1442_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
1443_LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
1444])# _LT_PROG_ECHO_BACKSLASH
1445
1446
1447# _LT_WITH_SYSROOT
1448# ----------------
1449AC_DEFUN([_LT_WITH_SYSROOT],
1450[AC_MSG_CHECKING([for sysroot])
1451AC_ARG_WITH([sysroot],
1452[AS_HELP_STRING([--with-sysroot@<:@=DIR@:>@],
1453  [Search for dependent libraries within DIR (or the compiler's sysroot
1454   if not specified).])],
1455[], [with_sysroot=no])
1456
1457dnl lt_sysroot will always be passed unquoted.  We quote it here
1458dnl in case the user passed a directory name.
1459lt_sysroot=
1460case $with_sysroot in #(
1461 yes)
1462   if test yes = "$GCC"; then
1463     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
1464   fi
1465   ;; #(
1466 /*)
1467   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
1468   ;; #(
1469 no|'')
1470   ;; #(
1471 *)
1472   AC_MSG_RESULT([$with_sysroot])
1473   AC_MSG_ERROR([The sysroot must be an absolute path.])
1474   ;;
1475esac
1476
1477 AC_MSG_RESULT([${lt_sysroot:-no}])
1478_LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
1479[dependent libraries, and where our libraries should be installed.])])
1480
1481# _LT_ENABLE_LOCK
1482# ---------------
1483m4_defun([_LT_ENABLE_LOCK],
1484[AC_ARG_ENABLE([libtool-lock],
1485  [AS_HELP_STRING([--disable-libtool-lock],
1486    [avoid locking (might break parallel builds)])])
1487test no = "$enable_libtool_lock" || enable_libtool_lock=yes
1488
1489# Some flags need to be propagated to the compiler or linker for good
1490# libtool support.
1491case $host in
1492ia64-*-hpux*)
1493  # Find out what ABI is being produced by ac_compile, and set mode
1494  # options accordingly.
1495  echo 'int i;' > conftest.$ac_ext
1496  if AC_TRY_EVAL(ac_compile); then
1497    case `/usr/bin/file conftest.$ac_objext` in
1498      *ELF-32*)
1499	HPUX_IA64_MODE=32
1500	;;
1501      *ELF-64*)
1502	HPUX_IA64_MODE=64
1503	;;
1504    esac
1505  fi
1506  rm -rf conftest*
1507  ;;
1508*-*-irix6*)
1509  # Find out what ABI is being produced by ac_compile, and set linker
1510  # options accordingly.
1511  echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
1512  if AC_TRY_EVAL(ac_compile); then
1513    if test yes = "$lt_cv_prog_gnu_ld"; then
1514      case `/usr/bin/file conftest.$ac_objext` in
1515	*32-bit*)
1516	  LD="${LD-ld} -melf32bsmip"
1517	  ;;
1518	*N32*)
1519	  LD="${LD-ld} -melf32bmipn32"
1520	  ;;
1521	*64-bit*)
1522	  LD="${LD-ld} -melf64bmip"
1523	;;
1524      esac
1525    else
1526      case `/usr/bin/file conftest.$ac_objext` in
1527	*32-bit*)
1528	  LD="${LD-ld} -32"
1529	  ;;
1530	*N32*)
1531	  LD="${LD-ld} -n32"
1532	  ;;
1533	*64-bit*)
1534	  LD="${LD-ld} -64"
1535	  ;;
1536      esac
1537    fi
1538  fi
1539  rm -rf conftest*
1540  ;;
1541
1542mips64*-*linux*)
1543  # Find out what ABI is being produced by ac_compile, and set linker
1544  # options accordingly.
1545  echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
1546  if AC_TRY_EVAL(ac_compile); then
1547    emul=elf
1548    case `/usr/bin/file conftest.$ac_objext` in
1549      *32-bit*)
1550	emul="${emul}32"
1551	;;
1552      *64-bit*)
1553	emul="${emul}64"
1554	;;
1555    esac
1556    case `/usr/bin/file conftest.$ac_objext` in
1557      *MSB*)
1558	emul="${emul}btsmip"
1559	;;
1560      *LSB*)
1561	emul="${emul}ltsmip"
1562	;;
1563    esac
1564    case `/usr/bin/file conftest.$ac_objext` in
1565      *N32*)
1566	emul="${emul}n32"
1567	;;
1568    esac
1569    LD="${LD-ld} -m $emul"
1570  fi
1571  rm -rf conftest*
1572  ;;
1573
1574x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
1575s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
1576  # Find out what ABI is being produced by ac_compile, and set linker
1577  # options accordingly.  Note that the listed cases only cover the
1578  # situations where additional linker options are needed (such as when
1579  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
1580  # vice versa); the common cases where no linker options are needed do
1581  # not appear in the list.
1582  echo 'int i;' > conftest.$ac_ext
1583  if AC_TRY_EVAL(ac_compile); then
1584    case `/usr/bin/file conftest.o` in
1585      *32-bit*)
1586	case $host in
1587	  x86_64-*kfreebsd*-gnu)
1588	    LD="${LD-ld} -m elf_i386_fbsd"
1589	    ;;
1590	  x86_64-*linux*)
1591	    case `/usr/bin/file conftest.o` in
1592	      *x86-64*)
1593		LD="${LD-ld} -m elf32_x86_64"
1594		;;
1595	      *)
1596		LD="${LD-ld} -m elf_i386"
1597		;;
1598	    esac
1599	    ;;
1600	  powerpc64le-*linux*)
1601	    LD="${LD-ld} -m elf32lppclinux"
1602	    ;;
1603	  powerpc64-*linux*)
1604	    LD="${LD-ld} -m elf32ppclinux"
1605	    ;;
1606	  s390x-*linux*)
1607	    LD="${LD-ld} -m elf_s390"
1608	    ;;
1609	  sparc64-*linux*)
1610	    LD="${LD-ld} -m elf32_sparc"
1611	    ;;
1612	esac
1613	;;
1614      *64-bit*)
1615	case $host in
1616	  x86_64-*kfreebsd*-gnu)
1617	    LD="${LD-ld} -m elf_x86_64_fbsd"
1618	    ;;
1619	  x86_64-*linux*)
1620	    LD="${LD-ld} -m elf_x86_64"
1621	    ;;
1622	  powerpcle-*linux*)
1623	    LD="${LD-ld} -m elf64lppc"
1624	    ;;
1625	  powerpc-*linux*)
1626	    LD="${LD-ld} -m elf64ppc"
1627	    ;;
1628	  s390*-*linux*|s390*-*tpf*)
1629	    LD="${LD-ld} -m elf64_s390"
1630	    ;;
1631	  sparc*-*linux*)
1632	    LD="${LD-ld} -m elf64_sparc"
1633	    ;;
1634	esac
1635	;;
1636    esac
1637  fi
1638  rm -rf conftest*
1639  ;;
1640
1641*-*-sco3.2v5*)
1642  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1643  SAVE_CFLAGS=$CFLAGS
1644  CFLAGS="$CFLAGS -belf"
1645  AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
1646    [AC_LANG_PUSH(C)
1647     AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
1648     AC_LANG_POP])
1649  if test yes != "$lt_cv_cc_needs_belf"; then
1650    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1651    CFLAGS=$SAVE_CFLAGS
1652  fi
1653  ;;
1654*-*solaris*)
1655  # Find out what ABI is being produced by ac_compile, and set linker
1656  # options accordingly.
1657  echo 'int i;' > conftest.$ac_ext
1658  if AC_TRY_EVAL(ac_compile); then
1659    case `/usr/bin/file conftest.o` in
1660    *64-bit*)
1661      case $lt_cv_prog_gnu_ld in
1662      yes*)
1663        case $host in
1664        i?86-*-solaris*|x86_64-*-solaris*)
1665          LD="${LD-ld} -m elf_x86_64"
1666          ;;
1667        sparc*-*-solaris*)
1668          LD="${LD-ld} -m elf64_sparc"
1669          ;;
1670        esac
1671        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
1672        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
1673          LD=${LD-ld}_sol2
1674        fi
1675        ;;
1676      *)
1677	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
1678	  LD="${LD-ld} -64"
1679	fi
1680	;;
1681      esac
1682      ;;
1683    esac
1684  fi
1685  rm -rf conftest*
1686  ;;
1687esac
1688
1689need_locks=$enable_libtool_lock
1690])# _LT_ENABLE_LOCK
1691
1692
1693# _LT_PROG_AR
1694# -----------
1695m4_defun([_LT_PROG_AR],
1696[AC_CHECK_TOOLS(AR, [ar], false)
1697: ${AR=ar}
1698: ${AR_FLAGS=cru}
1699_LT_DECL([], [AR], [1], [The archiver])
1700_LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive])
1701
1702AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file],
1703  [lt_cv_ar_at_file=no
1704   AC_COMPILE_IFELSE([AC_LANG_PROGRAM],
1705     [echo conftest.$ac_objext > conftest.lst
1706      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD'
1707      AC_TRY_EVAL([lt_ar_try])
1708      if test 0 -eq "$ac_status"; then
1709	# Ensure the archiver fails upon bogus file names.
1710	rm -f conftest.$ac_objext libconftest.a
1711	AC_TRY_EVAL([lt_ar_try])
1712	if test 0 -ne "$ac_status"; then
1713          lt_cv_ar_at_file=@
1714        fi
1715      fi
1716      rm -f conftest.* libconftest.a
1717     ])
1718  ])
1719
1720if test no = "$lt_cv_ar_at_file"; then
1721  archiver_list_spec=
1722else
1723  archiver_list_spec=$lt_cv_ar_at_file
1724fi
1725_LT_DECL([], [archiver_list_spec], [1],
1726  [How to feed a file listing to the archiver])
1727])# _LT_PROG_AR
1728
1729
1730# _LT_CMD_OLD_ARCHIVE
1731# -------------------
1732m4_defun([_LT_CMD_OLD_ARCHIVE],
1733[_LT_PROG_AR
1734
1735AC_CHECK_TOOL(STRIP, strip, :)
1736test -z "$STRIP" && STRIP=:
1737_LT_DECL([], [STRIP], [1], [A symbol stripping program])
1738
1739AC_CHECK_TOOL(RANLIB, ranlib, :)
1740test -z "$RANLIB" && RANLIB=:
1741_LT_DECL([], [RANLIB], [1],
1742    [Commands used to install an old-style archive])
1743
1744# Determine commands to create old-style static archives.
1745old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
1746old_postinstall_cmds='chmod 644 $oldlib'
1747old_postuninstall_cmds=
1748
1749if test -n "$RANLIB"; then
1750  case $host_os in
1751  bitrig* | openbsd*)
1752    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
1753    ;;
1754  *)
1755    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
1756    ;;
1757  esac
1758  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
1759fi
1760
1761case $host_os in
1762  darwin*)
1763    lock_old_archive_extraction=yes ;;
1764  *)
1765    lock_old_archive_extraction=no ;;
1766esac
1767_LT_DECL([], [old_postinstall_cmds], [2])
1768_LT_DECL([], [old_postuninstall_cmds], [2])
1769_LT_TAGDECL([], [old_archive_cmds], [2],
1770    [Commands used to build an old-style archive])
1771_LT_DECL([], [lock_old_archive_extraction], [0],
1772    [Whether to use a lock for old archive extraction])
1773])# _LT_CMD_OLD_ARCHIVE
1774
1775
1776# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1777#		[OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
1778# ----------------------------------------------------------------
1779# Check whether the given compiler option works
1780AC_DEFUN([_LT_COMPILER_OPTION],
1781[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1782m4_require([_LT_DECL_SED])dnl
1783AC_CACHE_CHECK([$1], [$2],
1784  [$2=no
1785   m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
1786   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1787   lt_compiler_flag="$3"  ## exclude from sc_useless_quotes_in_assignment
1788   # Insert the option either (1) after the last *FLAGS variable, or
1789   # (2) before a word containing "conftest.", or (3) at the end.
1790   # Note that $ac_compile itself does not contain backslashes and begins
1791   # with a dollar sign (not a hyphen), so the echo should work correctly.
1792   # The option is referenced via a variable to avoid confusing sed.
1793   lt_compile=`echo "$ac_compile" | $SED \
1794   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1795   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1796   -e 's:$: $lt_compiler_flag:'`
1797   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1798   (eval "$lt_compile" 2>conftest.err)
1799   ac_status=$?
1800   cat conftest.err >&AS_MESSAGE_LOG_FD
1801   echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1802   if (exit $ac_status) && test -s "$ac_outfile"; then
1803     # The compiler can only warn and ignore the option if not recognized
1804     # So say no if there are warnings other than the usual output.
1805     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
1806     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1807     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
1808       $2=yes
1809     fi
1810   fi
1811   $RM conftest*
1812])
1813
1814if test yes = "[$]$2"; then
1815    m4_if([$5], , :, [$5])
1816else
1817    m4_if([$6], , :, [$6])
1818fi
1819])# _LT_COMPILER_OPTION
1820
1821# Old name:
1822AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
1823dnl aclocal-1.4 backwards compatibility:
1824dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
1825
1826
1827# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1828#                  [ACTION-SUCCESS], [ACTION-FAILURE])
1829# ----------------------------------------------------
1830# Check whether the given linker option works
1831AC_DEFUN([_LT_LINKER_OPTION],
1832[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1833m4_require([_LT_DECL_SED])dnl
1834AC_CACHE_CHECK([$1], [$2],
1835  [$2=no
1836   save_LDFLAGS=$LDFLAGS
1837   LDFLAGS="$LDFLAGS $3"
1838   echo "$lt_simple_link_test_code" > conftest.$ac_ext
1839   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
1840     # The linker can only warn and ignore the option if not recognized
1841     # So say no if there are warnings
1842     if test -s conftest.err; then
1843       # Append any errors to the config.log.
1844       cat conftest.err 1>&AS_MESSAGE_LOG_FD
1845       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
1846       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1847       if diff conftest.exp conftest.er2 >/dev/null; then
1848         $2=yes
1849       fi
1850     else
1851       $2=yes
1852     fi
1853   fi
1854   $RM -r conftest*
1855   LDFLAGS=$save_LDFLAGS
1856])
1857
1858if test yes = "[$]$2"; then
1859    m4_if([$4], , :, [$4])
1860else
1861    m4_if([$5], , :, [$5])
1862fi
1863])# _LT_LINKER_OPTION
1864
1865# Old name:
1866AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
1867dnl aclocal-1.4 backwards compatibility:
1868dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
1869
1870
1871# LT_CMD_MAX_LEN
1872#---------------
1873AC_DEFUN([LT_CMD_MAX_LEN],
1874[AC_REQUIRE([AC_CANONICAL_HOST])dnl
1875# find the maximum length of command line arguments
1876AC_MSG_CHECKING([the maximum length of command line arguments])
1877AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
1878  i=0
1879  teststring=ABCD
1880
1881  case $build_os in
1882  msdosdjgpp*)
1883    # On DJGPP, this test can blow up pretty badly due to problems in libc
1884    # (any single argument exceeding 2000 bytes causes a buffer overrun
1885    # during glob expansion).  Even if it were fixed, the result of this
1886    # check would be larger than it should be.
1887    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
1888    ;;
1889
1890  gnu*)
1891    # Under GNU Hurd, this test is not required because there is
1892    # no limit to the length of command line arguments.
1893    # Libtool will interpret -1 as no limit whatsoever
1894    lt_cv_sys_max_cmd_len=-1;
1895    ;;
1896
1897  cygwin* | mingw* | cegcc*)
1898    # On Win9x/ME, this test blows up -- it succeeds, but takes
1899    # about 5 minutes as the teststring grows exponentially.
1900    # Worse, since 9x/ME are not pre-emptively multitasking,
1901    # you end up with a "frozen" computer, even though with patience
1902    # the test eventually succeeds (with a max line length of 256k).
1903    # Instead, let's just punt: use the minimum linelength reported by
1904    # all of the supported platforms: 8192 (on NT/2K/XP).
1905    lt_cv_sys_max_cmd_len=8192;
1906    ;;
1907
1908  mint*)
1909    # On MiNT this can take a long time and run out of memory.
1910    lt_cv_sys_max_cmd_len=8192;
1911    ;;
1912
1913  amigaos*)
1914    # On AmigaOS with pdksh, this test takes hours, literally.
1915    # So we just punt and use a minimum line length of 8192.
1916    lt_cv_sys_max_cmd_len=8192;
1917    ;;
1918
1919  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
1920    # This has been around since 386BSD, at least.  Likely further.
1921    if test -x /sbin/sysctl; then
1922      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
1923    elif test -x /usr/sbin/sysctl; then
1924      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
1925    else
1926      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
1927    fi
1928    # And add a safety zone
1929    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
1930    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
1931    ;;
1932
1933  interix*)
1934    # We know the value 262144 and hardcode it with a safety zone (like BSD)
1935    lt_cv_sys_max_cmd_len=196608
1936    ;;
1937
1938  os2*)
1939    # The test takes a long time on OS/2.
1940    lt_cv_sys_max_cmd_len=8192
1941    ;;
1942
1943  osf*)
1944    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
1945    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
1946    # nice to cause kernel panics so lets avoid the loop below.
1947    # First set a reasonable default.
1948    lt_cv_sys_max_cmd_len=16384
1949    #
1950    if test -x /sbin/sysconfig; then
1951      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
1952        *1*) lt_cv_sys_max_cmd_len=-1 ;;
1953      esac
1954    fi
1955    ;;
1956  sco3.2v5*)
1957    lt_cv_sys_max_cmd_len=102400
1958    ;;
1959  sysv5* | sco5v6* | sysv4.2uw2*)
1960    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
1961    if test -n "$kargmax"; then
1962      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[	 ]]//'`
1963    else
1964      lt_cv_sys_max_cmd_len=32768
1965    fi
1966    ;;
1967  *)
1968    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
1969    if test -n "$lt_cv_sys_max_cmd_len" && \
1970       test undefined != "$lt_cv_sys_max_cmd_len"; then
1971      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
1972      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
1973    else
1974      # Make teststring a little bigger before we do anything with it.
1975      # a 1K string should be a reasonable start.
1976      for i in 1 2 3 4 5 6 7 8; do
1977        teststring=$teststring$teststring
1978      done
1979      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
1980      # If test is not a shell built-in, we'll probably end up computing a
1981      # maximum length that is only half of the actual maximum length, but
1982      # we can't tell.
1983      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
1984	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
1985	      test 17 != "$i" # 1/2 MB should be enough
1986      do
1987        i=`expr $i + 1`
1988        teststring=$teststring$teststring
1989      done
1990      # Only check the string length outside the loop.
1991      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
1992      teststring=
1993      # Add a significant safety factor because C++ compilers can tack on
1994      # massive amounts of additional arguments before passing them to the
1995      # linker.  It appears as though 1/2 is a usable value.
1996      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
1997    fi
1998    ;;
1999  esac
2000])
2001if test -n "$lt_cv_sys_max_cmd_len"; then
2002  AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
2003else
2004  AC_MSG_RESULT(none)
2005fi
2006max_cmd_len=$lt_cv_sys_max_cmd_len
2007_LT_DECL([], [max_cmd_len], [0],
2008    [What is the maximum length of a command?])
2009])# LT_CMD_MAX_LEN
2010
2011# Old name:
2012AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
2013dnl aclocal-1.4 backwards compatibility:
2014dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
2015
2016
2017# _LT_HEADER_DLFCN
2018# ----------------
2019m4_defun([_LT_HEADER_DLFCN],
2020[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
2021])# _LT_HEADER_DLFCN
2022
2023
2024# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
2025#                      ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
2026# ----------------------------------------------------------------
2027m4_defun([_LT_TRY_DLOPEN_SELF],
2028[m4_require([_LT_HEADER_DLFCN])dnl
2029if test yes = "$cross_compiling"; then :
2030  [$4]
2031else
2032  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
2033  lt_status=$lt_dlunknown
2034  cat > conftest.$ac_ext <<_LT_EOF
2035[#line $LINENO "configure"
2036#include "confdefs.h"
2037
2038#if HAVE_DLFCN_H
2039#include <dlfcn.h>
2040#endif
2041
2042#include <stdio.h>
2043
2044#ifdef RTLD_GLOBAL
2045#  define LT_DLGLOBAL		RTLD_GLOBAL
2046#else
2047#  ifdef DL_GLOBAL
2048#    define LT_DLGLOBAL		DL_GLOBAL
2049#  else
2050#    define LT_DLGLOBAL		0
2051#  endif
2052#endif
2053
2054/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
2055   find out it does not work in some platform. */
2056#ifndef LT_DLLAZY_OR_NOW
2057#  ifdef RTLD_LAZY
2058#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
2059#  else
2060#    ifdef DL_LAZY
2061#      define LT_DLLAZY_OR_NOW		DL_LAZY
2062#    else
2063#      ifdef RTLD_NOW
2064#        define LT_DLLAZY_OR_NOW	RTLD_NOW
2065#      else
2066#        ifdef DL_NOW
2067#          define LT_DLLAZY_OR_NOW	DL_NOW
2068#        else
2069#          define LT_DLLAZY_OR_NOW	0
2070#        endif
2071#      endif
2072#    endif
2073#  endif
2074#endif
2075
2076/* When -fvisbility=hidden is used, assume the code has been annotated
2077   correspondingly for the symbols needed.  */
2078#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
2079int fnord () __attribute__((visibility("default")));
2080#endif
2081
2082int fnord () { return 42; }
2083int main ()
2084{
2085  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
2086  int status = $lt_dlunknown;
2087
2088  if (self)
2089    {
2090      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
2091      else
2092        {
2093	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
2094          else puts (dlerror ());
2095	}
2096      /* dlclose (self); */
2097    }
2098  else
2099    puts (dlerror ());
2100
2101  return status;
2102}]
2103_LT_EOF
2104  if AC_TRY_EVAL(ac_link) && test -s "conftest$ac_exeext" 2>/dev/null; then
2105    (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
2106    lt_status=$?
2107    case x$lt_status in
2108      x$lt_dlno_uscore) $1 ;;
2109      x$lt_dlneed_uscore) $2 ;;
2110      x$lt_dlunknown|x*) $3 ;;
2111    esac
2112  else :
2113    # compilation failed
2114    $3
2115  fi
2116fi
2117rm -fr conftest*
2118])# _LT_TRY_DLOPEN_SELF
2119
2120
2121# LT_SYS_DLOPEN_SELF
2122# ------------------
2123AC_DEFUN([LT_SYS_DLOPEN_SELF],
2124[m4_require([_LT_HEADER_DLFCN])dnl
2125if test yes != "$enable_dlopen"; then
2126  enable_dlopen=unknown
2127  enable_dlopen_self=unknown
2128  enable_dlopen_self_static=unknown
2129else
2130  lt_cv_dlopen=no
2131  lt_cv_dlopen_libs=
2132
2133  case $host_os in
2134  beos*)
2135    lt_cv_dlopen=load_add_on
2136    lt_cv_dlopen_libs=
2137    lt_cv_dlopen_self=yes
2138    ;;
2139
2140  mingw* | pw32* | cegcc*)
2141    lt_cv_dlopen=LoadLibrary
2142    lt_cv_dlopen_libs=
2143    ;;
2144
2145  cygwin*)
2146    lt_cv_dlopen=dlopen
2147    lt_cv_dlopen_libs=
2148    ;;
2149
2150  darwin*)
2151    # if libdl is installed we need to link against it
2152    AC_CHECK_LIB([dl], [dlopen],
2153		[lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl],[
2154    lt_cv_dlopen=dyld
2155    lt_cv_dlopen_libs=
2156    lt_cv_dlopen_self=yes
2157    ])
2158    ;;
2159
2160  tpf*)
2161    # Don't try to run any link tests for TPF.  We know it's impossible
2162    # because TPF is a cross-compiler, and we know how we open DSOs.
2163    lt_cv_dlopen=dlopen
2164    lt_cv_dlopen_libs=
2165    lt_cv_dlopen_self=no
2166    ;;
2167
2168  *)
2169    AC_CHECK_FUNC([shl_load],
2170	  [lt_cv_dlopen=shl_load],
2171      [AC_CHECK_LIB([dld], [shl_load],
2172	    [lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld],
2173	[AC_CHECK_FUNC([dlopen],
2174	      [lt_cv_dlopen=dlopen],
2175	  [AC_CHECK_LIB([dl], [dlopen],
2176		[lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl],
2177	    [AC_CHECK_LIB([svld], [dlopen],
2178		  [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld],
2179	      [AC_CHECK_LIB([dld], [dld_link],
2180		    [lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld])
2181	      ])
2182	    ])
2183	  ])
2184	])
2185      ])
2186    ;;
2187  esac
2188
2189  if test no = "$lt_cv_dlopen"; then
2190    enable_dlopen=no
2191  else
2192    enable_dlopen=yes
2193  fi
2194
2195  case $lt_cv_dlopen in
2196  dlopen)
2197    save_CPPFLAGS=$CPPFLAGS
2198    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
2199
2200    save_LDFLAGS=$LDFLAGS
2201    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
2202
2203    save_LIBS=$LIBS
2204    LIBS="$lt_cv_dlopen_libs $LIBS"
2205
2206    AC_CACHE_CHECK([whether a program can dlopen itself],
2207	  lt_cv_dlopen_self, [dnl
2208	  _LT_TRY_DLOPEN_SELF(
2209	    lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
2210	    lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
2211    ])
2212
2213    if test yes = "$lt_cv_dlopen_self"; then
2214      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
2215      AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
2216	  lt_cv_dlopen_self_static, [dnl
2217	  _LT_TRY_DLOPEN_SELF(
2218	    lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
2219	    lt_cv_dlopen_self_static=no,  lt_cv_dlopen_self_static=cross)
2220      ])
2221    fi
2222
2223    CPPFLAGS=$save_CPPFLAGS
2224    LDFLAGS=$save_LDFLAGS
2225    LIBS=$save_LIBS
2226    ;;
2227  esac
2228
2229  case $lt_cv_dlopen_self in
2230  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
2231  *) enable_dlopen_self=unknown ;;
2232  esac
2233
2234  case $lt_cv_dlopen_self_static in
2235  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
2236  *) enable_dlopen_self_static=unknown ;;
2237  esac
2238fi
2239_LT_DECL([dlopen_support], [enable_dlopen], [0],
2240	 [Whether dlopen is supported])
2241_LT_DECL([dlopen_self], [enable_dlopen_self], [0],
2242	 [Whether dlopen of programs is supported])
2243_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
2244	 [Whether dlopen of statically linked programs is supported])
2245])# LT_SYS_DLOPEN_SELF
2246
2247# Old name:
2248AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
2249dnl aclocal-1.4 backwards compatibility:
2250dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
2251
2252
2253# _LT_COMPILER_C_O([TAGNAME])
2254# ---------------------------
2255# Check to see if options -c and -o are simultaneously supported by compiler.
2256# This macro does not hard code the compiler like AC_PROG_CC_C_O.
2257m4_defun([_LT_COMPILER_C_O],
2258[m4_require([_LT_DECL_SED])dnl
2259m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2260m4_require([_LT_TAG_COMPILER])dnl
2261AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
2262  [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
2263  [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
2264   $RM -r conftest 2>/dev/null
2265   mkdir conftest
2266   cd conftest
2267   mkdir out
2268   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
2269
2270   lt_compiler_flag="-o out/conftest2.$ac_objext"
2271   # Insert the option either (1) after the last *FLAGS variable, or
2272   # (2) before a word containing "conftest.", or (3) at the end.
2273   # Note that $ac_compile itself does not contain backslashes and begins
2274   # with a dollar sign (not a hyphen), so the echo should work correctly.
2275   lt_compile=`echo "$ac_compile" | $SED \
2276   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2277   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
2278   -e 's:$: $lt_compiler_flag:'`
2279   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
2280   (eval "$lt_compile" 2>out/conftest.err)
2281   ac_status=$?
2282   cat out/conftest.err >&AS_MESSAGE_LOG_FD
2283   echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
2284   if (exit $ac_status) && test -s out/conftest2.$ac_objext
2285   then
2286     # The compiler can only warn and ignore the option if not recognized
2287     # So say no if there are warnings
2288     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
2289     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
2290     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
2291       _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
2292     fi
2293   fi
2294   chmod u+w . 2>&AS_MESSAGE_LOG_FD
2295   $RM conftest*
2296   # SGI C++ compiler will create directory out/ii_files/ for
2297   # template instantiation
2298   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
2299   $RM out/* && rmdir out
2300   cd ..
2301   $RM -r conftest
2302   $RM conftest*
2303])
2304_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
2305	[Does compiler simultaneously support -c and -o options?])
2306])# _LT_COMPILER_C_O
2307
2308
2309# _LT_COMPILER_FILE_LOCKS([TAGNAME])
2310# ----------------------------------
2311# Check to see if we can do hard links to lock some files if needed
2312m4_defun([_LT_COMPILER_FILE_LOCKS],
2313[m4_require([_LT_ENABLE_LOCK])dnl
2314m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2315_LT_COMPILER_C_O([$1])
2316
2317hard_links=nottested
2318if test no = "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" && test no != "$need_locks"; then
2319  # do not overwrite the value of need_locks provided by the user
2320  AC_MSG_CHECKING([if we can lock with hard links])
2321  hard_links=yes
2322  $RM conftest*
2323  ln conftest.a conftest.b 2>/dev/null && hard_links=no
2324  touch conftest.a
2325  ln conftest.a conftest.b 2>&5 || hard_links=no
2326  ln conftest.a conftest.b 2>/dev/null && hard_links=no
2327  AC_MSG_RESULT([$hard_links])
2328  if test no = "$hard_links"; then
2329    AC_MSG_WARN(['$CC' does not support '-c -o', so 'make -j' may be unsafe])
2330    need_locks=warn
2331  fi
2332else
2333  need_locks=no
2334fi
2335_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
2336])# _LT_COMPILER_FILE_LOCKS
2337
2338
2339# _LT_CHECK_OBJDIR
2340# ----------------
2341m4_defun([_LT_CHECK_OBJDIR],
2342[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
2343[rm -f .libs 2>/dev/null
2344mkdir .libs 2>/dev/null
2345if test -d .libs; then
2346  lt_cv_objdir=.libs
2347else
2348  # MS-DOS does not allow filenames that begin with a dot.
2349  lt_cv_objdir=_libs
2350fi
2351rmdir .libs 2>/dev/null])
2352objdir=$lt_cv_objdir
2353_LT_DECL([], [objdir], [0],
2354         [The name of the directory that contains temporary libtool files])dnl
2355m4_pattern_allow([LT_OBJDIR])dnl
2356AC_DEFINE_UNQUOTED([LT_OBJDIR], "$lt_cv_objdir/",
2357  [Define to the sub-directory where libtool stores uninstalled libraries.])
2358])# _LT_CHECK_OBJDIR
2359
2360
2361# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
2362# --------------------------------------
2363# Check hardcoding attributes.
2364m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
2365[AC_MSG_CHECKING([how to hardcode library paths into programs])
2366_LT_TAGVAR(hardcode_action, $1)=
2367if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
2368   test -n "$_LT_TAGVAR(runpath_var, $1)" ||
2369   test yes = "$_LT_TAGVAR(hardcode_automatic, $1)"; then
2370
2371  # We can hardcode non-existent directories.
2372  if test no != "$_LT_TAGVAR(hardcode_direct, $1)" &&
2373     # If the only mechanism to avoid hardcoding is shlibpath_var, we
2374     # have to relink, otherwise we might link with an installed library
2375     # when we should be linking with a yet-to-be-installed one
2376     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" &&
2377     test no != "$_LT_TAGVAR(hardcode_minus_L, $1)"; then
2378    # Linking always hardcodes the temporary library directory.
2379    _LT_TAGVAR(hardcode_action, $1)=relink
2380  else
2381    # We can link without hardcoding, and we can hardcode nonexisting dirs.
2382    _LT_TAGVAR(hardcode_action, $1)=immediate
2383  fi
2384else
2385  # We cannot hardcode anything, or else we can only hardcode existing
2386  # directories.
2387  _LT_TAGVAR(hardcode_action, $1)=unsupported
2388fi
2389AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
2390
2391if test relink = "$_LT_TAGVAR(hardcode_action, $1)" ||
2392   test yes = "$_LT_TAGVAR(inherit_rpath, $1)"; then
2393  # Fast installation is not supported
2394  enable_fast_install=no
2395elif test yes = "$shlibpath_overrides_runpath" ||
2396     test no = "$enable_shared"; then
2397  # Fast installation is not necessary
2398  enable_fast_install=needless
2399fi
2400_LT_TAGDECL([], [hardcode_action], [0],
2401    [How to hardcode a shared library path into an executable])
2402])# _LT_LINKER_HARDCODE_LIBPATH
2403
2404
2405# _LT_CMD_STRIPLIB
2406# ----------------
2407m4_defun([_LT_CMD_STRIPLIB],
2408[m4_require([_LT_DECL_EGREP])
2409striplib=
2410old_striplib=
2411AC_MSG_CHECKING([whether stripping libraries is possible])
2412if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
2413  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
2414  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
2415  AC_MSG_RESULT([yes])
2416else
2417# FIXME - insert some real tests, host_os isn't really good enough
2418  case $host_os in
2419  darwin*)
2420    if test -n "$STRIP"; then
2421      striplib="$STRIP -x"
2422      old_striplib="$STRIP -S"
2423      AC_MSG_RESULT([yes])
2424    else
2425      AC_MSG_RESULT([no])
2426    fi
2427    ;;
2428  *)
2429    AC_MSG_RESULT([no])
2430    ;;
2431  esac
2432fi
2433_LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
2434_LT_DECL([], [striplib], [1])
2435])# _LT_CMD_STRIPLIB
2436
2437
2438# _LT_SYS_DYNAMIC_LINKER([TAG])
2439# -----------------------------
2440# PORTME Fill in your ld.so characteristics
2441m4_defun([_LT_SYS_DYNAMIC_LINKER],
2442[AC_REQUIRE([AC_CANONICAL_HOST])dnl
2443m4_require([_LT_DECL_EGREP])dnl
2444m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2445m4_require([_LT_DECL_OBJDUMP])dnl
2446m4_require([_LT_DECL_SED])dnl
2447m4_require([_LT_CHECK_SHELL_FEATURES])dnl
2448AC_MSG_CHECKING([dynamic linker characteristics])
2449m4_if([$1],
2450	[], [
2451if test yes = "$GCC"; then
2452  case $host_os in
2453    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
2454    *) lt_awk_arg='/^libraries:/' ;;
2455  esac
2456  case $host_os in
2457    mingw* | cegcc*) lt_sed_strip_eq='s|=\([[A-Za-z]]:\)|\1|g' ;;
2458    *) lt_sed_strip_eq='s|=/|/|g' ;;
2459  esac
2460  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
2461  case $lt_search_path_spec in
2462  *\;*)
2463    # if the path contains ";" then we assume it to be the separator
2464    # otherwise default to the standard path separator (i.e. ":") - it is
2465    # assumed that no part of a normal pathname contains ";" but that should
2466    # okay in the real world where ";" in dirpaths is itself problematic.
2467    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
2468    ;;
2469  *)
2470    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
2471    ;;
2472  esac
2473  # Ok, now we have the path, separated by spaces, we can step through it
2474  # and add multilib dir if necessary...
2475  lt_tmp_lt_search_path_spec=
2476  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
2477  # ...but if some path component already ends with the multilib dir we assume
2478  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
2479  case "$lt_multi_os_dir; $lt_search_path_spec " in
2480  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
2481    lt_multi_os_dir=
2482    ;;
2483  esac
2484  for lt_sys_path in $lt_search_path_spec; do
2485    if test -d "$lt_sys_path$lt_multi_os_dir"; then
2486      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
2487    elif test -n "$lt_multi_os_dir"; then
2488      test -d "$lt_sys_path" && \
2489	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
2490    fi
2491  done
2492  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
2493BEGIN {RS = " "; FS = "/|\n";} {
2494  lt_foo = "";
2495  lt_count = 0;
2496  for (lt_i = NF; lt_i > 0; lt_i--) {
2497    if ($lt_i != "" && $lt_i != ".") {
2498      if ($lt_i == "..") {
2499        lt_count++;
2500      } else {
2501        if (lt_count == 0) {
2502          lt_foo = "/" $lt_i lt_foo;
2503        } else {
2504          lt_count--;
2505        }
2506      }
2507    }
2508  }
2509  if (lt_foo != "") { lt_freq[[lt_foo]]++; }
2510  if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
2511}'`
2512  # AWK program above erroneously prepends '/' to C:/dos/paths
2513  # for these hosts.
2514  case $host_os in
2515    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
2516      $SED 's|/\([[A-Za-z]]:\)|\1|g'` ;;
2517  esac
2518  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
2519else
2520  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
2521fi])
2522library_names_spec=
2523libname_spec='lib$name'
2524soname_spec=
2525shrext_cmds=.so
2526postinstall_cmds=
2527postuninstall_cmds=
2528finish_cmds=
2529finish_eval=
2530shlibpath_var=
2531shlibpath_overrides_runpath=unknown
2532version_type=none
2533dynamic_linker="$host_os ld.so"
2534sys_lib_dlsearch_path_spec="/lib /usr/lib"
2535need_lib_prefix=unknown
2536hardcode_into_libs=no
2537
2538# when you set need_version to no, make sure it does not cause -set_version
2539# flags to be left without arguments
2540need_version=unknown
2541
2542case $host_os in
2543aix3*)
2544  version_type=linux # correct to gnu/linux during the next big refactor
2545  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
2546  shlibpath_var=LIBPATH
2547
2548  # AIX 3 has no versioning support, so we append a major version to the name.
2549  soname_spec='$libname$release$shared_ext$major'
2550  ;;
2551
2552aix[[4-9]]*)
2553  version_type=linux # correct to gnu/linux during the next big refactor
2554  need_lib_prefix=no
2555  need_version=no
2556  hardcode_into_libs=yes
2557  if test ia64 = "$host_cpu"; then
2558    # AIX 5 supports IA64
2559    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
2560    shlibpath_var=LD_LIBRARY_PATH
2561  else
2562    # With GCC up to 2.95.x, collect2 would create an import file
2563    # for dependence libraries.  The import file would start with
2564    # the line '#! .'.  This would cause the generated library to
2565    # depend on '.', always an invalid library.  This was fixed in
2566    # development snapshots of GCC prior to 3.0.
2567    case $host_os in
2568      aix4 | aix4.[[01]] | aix4.[[01]].*)
2569      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
2570	   echo ' yes '
2571	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
2572	:
2573      else
2574	can_build_shared=no
2575      fi
2576      ;;
2577    esac
2578    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
2579    # soname into executable. Probably we can add versioning support to
2580    # collect2, so additional links can be useful in future.
2581    if test yes = "$aix_use_runtimelinking"; then
2582      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
2583      # instead of lib<name>.a to let people know that these are not
2584      # typical AIX shared libraries.
2585      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2586    else
2587      # We preserve .a as extension for shared libraries through AIX4.2
2588      # and later when we are not doing run time linking.
2589      library_names_spec='$libname$release.a $libname.a'
2590      soname_spec='$libname$release$shared_ext$major'
2591    fi
2592    shlibpath_var=LIBPATH
2593  fi
2594  ;;
2595
2596amigaos*)
2597  case $host_cpu in
2598  powerpc)
2599    # Since July 2007 AmigaOS4 officially supports .so libraries.
2600    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
2601    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2602    ;;
2603  m68k)
2604    library_names_spec='$libname.ixlibrary $libname.a'
2605    # Create ${libname}_ixlibrary.a entries in /sys/libs.
2606    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; $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'
2607    ;;
2608  esac
2609  ;;
2610
2611beos*)
2612  library_names_spec='$libname$shared_ext'
2613  dynamic_linker="$host_os ld.so"
2614  shlibpath_var=LIBRARY_PATH
2615  ;;
2616
2617bsdi[[45]]*)
2618  version_type=linux # correct to gnu/linux during the next big refactor
2619  need_version=no
2620  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2621  soname_spec='$libname$release$shared_ext$major'
2622  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
2623  shlibpath_var=LD_LIBRARY_PATH
2624  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
2625  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
2626  # the default ld.so.conf also contains /usr/contrib/lib and
2627  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
2628  # libtool to hard-code these into programs
2629  ;;
2630
2631cygwin* | mingw* | pw32* | cegcc*)
2632  version_type=windows
2633  shrext_cmds=.dll
2634  need_version=no
2635  need_lib_prefix=no
2636
2637  case $GCC,$cc_basename in
2638  yes,*)
2639    # gcc
2640    library_names_spec='$libname.dll.a'
2641    # DLL is installed to $(libdir)/../bin by postinstall_cmds
2642    postinstall_cmds='base_file=`basename \$file`~
2643      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
2644      dldir=$destdir/`dirname \$dlpath`~
2645      test -d \$dldir || mkdir -p \$dldir~
2646      $install_prog $dir/$dlname \$dldir/$dlname~
2647      chmod a+x \$dldir/$dlname~
2648      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
2649        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
2650      fi'
2651    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2652      dlpath=$dir/\$dldll~
2653       $RM \$dlpath'
2654    shlibpath_overrides_runpath=yes
2655
2656    case $host_os in
2657    cygwin*)
2658      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
2659      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
2660m4_if([$1], [],[
2661      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
2662      ;;
2663    mingw* | cegcc*)
2664      # MinGW DLLs use traditional 'lib' prefix
2665      soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
2666      ;;
2667    pw32*)
2668      # pw32 DLLs use 'pw' prefix rather than 'lib'
2669      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
2670      ;;
2671    esac
2672    dynamic_linker='Win32 ld.exe'
2673    ;;
2674
2675  *,cl*)
2676    # Native MSVC
2677    libname_spec='$name'
2678    soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
2679    library_names_spec='$libname.dll.lib'
2680
2681    case $build_os in
2682    mingw*)
2683      sys_lib_search_path_spec=
2684      lt_save_ifs=$IFS
2685      IFS=';'
2686      for lt_path in $LIB
2687      do
2688        IFS=$lt_save_ifs
2689        # Let DOS variable expansion print the short 8.3 style file name.
2690        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
2691        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
2692      done
2693      IFS=$lt_save_ifs
2694      # Convert to MSYS style.
2695      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
2696      ;;
2697    cygwin*)
2698      # Convert to unix form, then to dos form, then back to unix form
2699      # but this time dos style (no spaces!) so that the unix form looks
2700      # like /cygdrive/c/PROGRA~1:/cygdr...
2701      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
2702      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
2703      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2704      ;;
2705    *)
2706      sys_lib_search_path_spec=$LIB
2707      if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
2708        # It is most probably a Windows format PATH.
2709        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2710      else
2711        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2712      fi
2713      # FIXME: find the short name or the path components, as spaces are
2714      # common. (e.g. "Program Files" -> "PROGRA~1")
2715      ;;
2716    esac
2717
2718    # DLL is installed to $(libdir)/../bin by postinstall_cmds
2719    postinstall_cmds='base_file=`basename \$file`~
2720      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
2721      dldir=$destdir/`dirname \$dlpath`~
2722      test -d \$dldir || mkdir -p \$dldir~
2723      $install_prog $dir/$dlname \$dldir/$dlname'
2724    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2725      dlpath=$dir/\$dldll~
2726       $RM \$dlpath'
2727    shlibpath_overrides_runpath=yes
2728    dynamic_linker='Win32 link.exe'
2729    ;;
2730
2731  *)
2732    # Assume MSVC wrapper
2733    library_names_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext $libname.lib'
2734    dynamic_linker='Win32 ld.exe'
2735    ;;
2736  esac
2737  # FIXME: first we should search . and the directory the executable is in
2738  shlibpath_var=PATH
2739  ;;
2740
2741darwin* | rhapsody*)
2742  dynamic_linker="$host_os dyld"
2743  version_type=darwin
2744  need_lib_prefix=no
2745  need_version=no
2746  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
2747  soname_spec='$libname$release$major$shared_ext'
2748  shlibpath_overrides_runpath=yes
2749  shlibpath_var=DYLD_LIBRARY_PATH
2750  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
2751m4_if([$1], [],[
2752  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
2753  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
2754  ;;
2755
2756dgux*)
2757  version_type=linux # correct to gnu/linux during the next big refactor
2758  need_lib_prefix=no
2759  need_version=no
2760  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2761  soname_spec='$libname$release$shared_ext$major'
2762  shlibpath_var=LD_LIBRARY_PATH
2763  ;;
2764
2765freebsd* | dragonfly*)
2766  # DragonFly does not have aout.  When/if they implement a new
2767  # versioning mechanism, adjust this.
2768  if test -x /usr/bin/objformat; then
2769    objformat=`/usr/bin/objformat`
2770  else
2771    case $host_os in
2772    freebsd[[23]].*) objformat=aout ;;
2773    *) objformat=elf ;;
2774    esac
2775  fi
2776  version_type=freebsd-$objformat
2777  case $version_type in
2778    freebsd-elf*)
2779      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
2780      need_version=no
2781      need_lib_prefix=no
2782      ;;
2783    freebsd-*)
2784      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
2785      need_version=yes
2786      ;;
2787  esac
2788  shlibpath_var=LD_LIBRARY_PATH
2789  case $host_os in
2790  freebsd2.*)
2791    shlibpath_overrides_runpath=yes
2792    ;;
2793  freebsd3.[[01]]* | freebsdelf3.[[01]]*)
2794    shlibpath_overrides_runpath=yes
2795    hardcode_into_libs=yes
2796    ;;
2797  freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
2798  freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
2799    shlibpath_overrides_runpath=no
2800    hardcode_into_libs=yes
2801    ;;
2802  *) # from 4.6 on, and DragonFly
2803    shlibpath_overrides_runpath=yes
2804    hardcode_into_libs=yes
2805    ;;
2806  esac
2807  ;;
2808
2809haiku*)
2810  version_type=linux # correct to gnu/linux during the next big refactor
2811  need_lib_prefix=no
2812  need_version=no
2813  dynamic_linker="$host_os runtime_loader"
2814  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2815  soname_spec='$libname$release$shared_ext$major'
2816  shlibpath_var=LIBRARY_PATH
2817  shlibpath_overrides_runpath=no
2818  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
2819  hardcode_into_libs=yes
2820  ;;
2821
2822hpux9* | hpux10* | hpux11*)
2823  # Give a soname corresponding to the major version so that dld.sl refuses to
2824  # link against other versions.
2825  version_type=sunos
2826  need_lib_prefix=no
2827  need_version=no
2828  case $host_cpu in
2829  ia64*)
2830    shrext_cmds='.so'
2831    hardcode_into_libs=yes
2832    dynamic_linker="$host_os dld.so"
2833    shlibpath_var=LD_LIBRARY_PATH
2834    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2835    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2836    soname_spec='$libname$release$shared_ext$major'
2837    if test 32 = "$HPUX_IA64_MODE"; then
2838      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
2839    else
2840      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
2841    fi
2842    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2843    ;;
2844  hppa*64*)
2845    shrext_cmds='.sl'
2846    hardcode_into_libs=yes
2847    dynamic_linker="$host_os dld.sl"
2848    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
2849    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2850    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2851    soname_spec='$libname$release$shared_ext$major'
2852    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
2853    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2854    ;;
2855  *)
2856    shrext_cmds='.sl'
2857    dynamic_linker="$host_os dld.sl"
2858    shlibpath_var=SHLIB_PATH
2859    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
2860    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2861    soname_spec='$libname$release$shared_ext$major'
2862    ;;
2863  esac
2864  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
2865  postinstall_cmds='chmod 555 $lib'
2866  # or fails outright, so override atomically:
2867  install_override_mode=555
2868  ;;
2869
2870interix[[3-9]]*)
2871  version_type=linux # correct to gnu/linux during the next big refactor
2872  need_lib_prefix=no
2873  need_version=no
2874  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2875  soname_spec='$libname$release$shared_ext$major'
2876  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
2877  shlibpath_var=LD_LIBRARY_PATH
2878  shlibpath_overrides_runpath=no
2879  hardcode_into_libs=yes
2880  ;;
2881
2882irix5* | irix6* | nonstopux*)
2883  case $host_os in
2884    nonstopux*) version_type=nonstopux ;;
2885    *)
2886	if test yes = "$lt_cv_prog_gnu_ld"; then
2887		version_type=linux # correct to gnu/linux during the next big refactor
2888	else
2889		version_type=irix
2890	fi ;;
2891  esac
2892  need_lib_prefix=no
2893  need_version=no
2894  soname_spec='$libname$release$shared_ext$major'
2895  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
2896  case $host_os in
2897  irix5* | nonstopux*)
2898    libsuff= shlibsuff=
2899    ;;
2900  *)
2901    case $LD in # libtool.m4 will add one of these switches to LD
2902    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
2903      libsuff= shlibsuff= libmagic=32-bit;;
2904    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
2905      libsuff=32 shlibsuff=N32 libmagic=N32;;
2906    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
2907      libsuff=64 shlibsuff=64 libmagic=64-bit;;
2908    *) libsuff= shlibsuff= libmagic=never-match;;
2909    esac
2910    ;;
2911  esac
2912  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
2913  shlibpath_overrides_runpath=no
2914  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
2915  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
2916  hardcode_into_libs=yes
2917  ;;
2918
2919# No shared lib support for Linux oldld, aout, or coff.
2920linux*oldld* | linux*aout* | linux*coff*)
2921  dynamic_linker=no
2922  ;;
2923
2924linux*android*)
2925  version_type=none # Android doesn't support versioned libraries.
2926  need_lib_prefix=no
2927  need_version=no
2928  library_names_spec='$libname$release$shared_ext'
2929  soname_spec='$libname$release$shared_ext'
2930  finish_cmds=
2931  shlibpath_var=LD_LIBRARY_PATH
2932  shlibpath_overrides_runpath=yes
2933
2934  # This implies no fast_install, which is unacceptable.
2935  # Some rework will be needed to allow for fast_install
2936  # before this can be enabled.
2937  hardcode_into_libs=yes
2938
2939  dynamic_linker='Android linker'
2940  # Don't embed -rpath directories since the linker doesn't support them.
2941  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
2942  ;;
2943
2944# This must be glibc/ELF.
2945linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
2946  version_type=linux # correct to gnu/linux during the next big refactor
2947  need_lib_prefix=no
2948  need_version=no
2949  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2950  soname_spec='$libname$release$shared_ext$major'
2951  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
2952  shlibpath_var=LD_LIBRARY_PATH
2953  shlibpath_overrides_runpath=no
2954
2955  # Some binutils ld are patched to set DT_RUNPATH
2956  AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath],
2957    [lt_cv_shlibpath_overrides_runpath=no
2958    save_LDFLAGS=$LDFLAGS
2959    save_libdir=$libdir
2960    eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
2961	 LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
2962    AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
2963      [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
2964	 [lt_cv_shlibpath_overrides_runpath=yes])])
2965    LDFLAGS=$save_LDFLAGS
2966    libdir=$save_libdir
2967    ])
2968  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
2969
2970  # This implies no fast_install, which is unacceptable.
2971  # Some rework will be needed to allow for fast_install
2972  # before this can be enabled.
2973  hardcode_into_libs=yes
2974
2975  # Add ABI-specific directories to the system library path.
2976  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
2977
2978  # Append ld.so.conf contents to the search path
2979  if test -f /etc/ld.so.conf; then
2980    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
2981    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
2982
2983  fi
2984
2985  # We used to test for /lib/ld.so.1 and disable shared libraries on
2986  # powerpc, because MkLinux only supported shared libraries with the
2987  # GNU dynamic linker.  Since this was broken with cross compilers,
2988  # most powerpc-linux boxes support dynamic linking these days and
2989  # people can always --disable-shared, the test was removed, and we
2990  # assume the GNU/Linux dynamic linker is in use.
2991  dynamic_linker='GNU/Linux ld.so'
2992  ;;
2993
2994netbsd*)
2995  version_type=sunos
2996  need_lib_prefix=no
2997  need_version=no
2998  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
2999    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
3000    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
3001    dynamic_linker='NetBSD (a.out) ld.so'
3002  else
3003    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
3004    soname_spec='$libname$release$shared_ext$major'
3005    dynamic_linker='NetBSD ld.elf_so'
3006  fi
3007  shlibpath_var=LD_LIBRARY_PATH
3008  shlibpath_overrides_runpath=yes
3009  hardcode_into_libs=yes
3010  ;;
3011
3012newsos6)
3013  version_type=linux # correct to gnu/linux during the next big refactor
3014  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
3015  shlibpath_var=LD_LIBRARY_PATH
3016  shlibpath_overrides_runpath=yes
3017  ;;
3018
3019*nto* | *qnx*)
3020  version_type=qnx
3021  need_lib_prefix=no
3022  need_version=no
3023  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
3024  soname_spec='$libname$release$shared_ext$major'
3025  shlibpath_var=LD_LIBRARY_PATH
3026  shlibpath_overrides_runpath=no
3027  hardcode_into_libs=yes
3028  dynamic_linker='ldqnx.so'
3029  ;;
3030
3031openbsd* | bitrig*)
3032  version_type=sunos
3033  sys_lib_dlsearch_path_spec=/usr/lib
3034  need_lib_prefix=no
3035  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
3036    need_version=no
3037  else
3038    need_version=yes
3039  fi
3040  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
3041  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
3042  shlibpath_var=LD_LIBRARY_PATH
3043  shlibpath_overrides_runpath=yes
3044  ;;
3045
3046os2*)
3047  libname_spec='$name'
3048  shrext_cmds=.dll
3049  need_lib_prefix=no
3050  library_names_spec='$libname$shared_ext $libname.a'
3051  dynamic_linker='OS/2 ld.exe'
3052  shlibpath_var=LIBPATH
3053  ;;
3054
3055osf3* | osf4* | osf5*)
3056  version_type=osf
3057  need_lib_prefix=no
3058  need_version=no
3059  soname_spec='$libname$release$shared_ext$major'
3060  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
3061  shlibpath_var=LD_LIBRARY_PATH
3062  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
3063  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
3064  ;;
3065
3066rdos*)
3067  dynamic_linker=no
3068  ;;
3069
3070solaris*)
3071  version_type=linux # correct to gnu/linux during the next big refactor
3072  need_lib_prefix=no
3073  need_version=no
3074  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
3075  soname_spec='$libname$release$shared_ext$major'
3076  shlibpath_var=LD_LIBRARY_PATH
3077  shlibpath_overrides_runpath=yes
3078  hardcode_into_libs=yes
3079  # ldd complains unless libraries are executable
3080  postinstall_cmds='chmod +x $lib'
3081  ;;
3082
3083sunos4*)
3084  version_type=sunos
3085  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
3086  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
3087  shlibpath_var=LD_LIBRARY_PATH
3088  shlibpath_overrides_runpath=yes
3089  if test yes = "$with_gnu_ld"; then
3090    need_lib_prefix=no
3091  fi
3092  need_version=yes
3093  ;;
3094
3095sysv4 | sysv4.3*)
3096  version_type=linux # correct to gnu/linux during the next big refactor
3097  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
3098  soname_spec='$libname$release$shared_ext$major'
3099  shlibpath_var=LD_LIBRARY_PATH
3100  case $host_vendor in
3101    sni)
3102      shlibpath_overrides_runpath=no
3103      need_lib_prefix=no
3104      runpath_var=LD_RUN_PATH
3105      ;;
3106    siemens)
3107      need_lib_prefix=no
3108      ;;
3109    motorola)
3110      need_lib_prefix=no
3111      need_version=no
3112      shlibpath_overrides_runpath=no
3113      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
3114      ;;
3115  esac
3116  ;;
3117
3118sysv4*MP*)
3119  if test -d /usr/nec; then
3120    version_type=linux # correct to gnu/linux during the next big refactor
3121    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
3122    soname_spec='$libname$shared_ext.$major'
3123    shlibpath_var=LD_LIBRARY_PATH
3124  fi
3125  ;;
3126
3127sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3128  version_type=freebsd-elf
3129  need_lib_prefix=no
3130  need_version=no
3131  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
3132  soname_spec='$libname$release$shared_ext$major'
3133  shlibpath_var=LD_LIBRARY_PATH
3134  shlibpath_overrides_runpath=yes
3135  hardcode_into_libs=yes
3136  if test yes = "$with_gnu_ld"; then
3137    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
3138  else
3139    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
3140    case $host_os in
3141      sco3.2v5*)
3142        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
3143	;;
3144    esac
3145  fi
3146  sys_lib_dlsearch_path_spec='/usr/lib'
3147  ;;
3148
3149tpf*)
3150  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
3151  version_type=linux # correct to gnu/linux during the next big refactor
3152  need_lib_prefix=no
3153  need_version=no
3154  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
3155  shlibpath_var=LD_LIBRARY_PATH
3156  shlibpath_overrides_runpath=no
3157  hardcode_into_libs=yes
3158  ;;
3159
3160uts4*)
3161  version_type=linux # correct to gnu/linux during the next big refactor
3162  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
3163  soname_spec='$libname$release$shared_ext$major'
3164  shlibpath_var=LD_LIBRARY_PATH
3165  ;;
3166
3167*)
3168  dynamic_linker=no
3169  ;;
3170esac
3171AC_MSG_RESULT([$dynamic_linker])
3172test no = "$dynamic_linker" && can_build_shared=no
3173
3174variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
3175if test yes = "$GCC"; then
3176  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
3177fi
3178
3179if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
3180  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
3181fi
3182if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
3183  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
3184fi
3185
3186_LT_DECL([], [variables_saved_for_relink], [1],
3187    [Variables whose values should be saved in libtool wrapper scripts and
3188    restored at link time])
3189_LT_DECL([], [need_lib_prefix], [0],
3190    [Do we need the "lib" prefix for modules?])
3191_LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
3192_LT_DECL([], [version_type], [0], [Library versioning type])
3193_LT_DECL([], [runpath_var], [0],  [Shared library runtime path variable])
3194_LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
3195_LT_DECL([], [shlibpath_overrides_runpath], [0],
3196    [Is shlibpath searched before the hard-coded library search path?])
3197_LT_DECL([], [libname_spec], [1], [Format of library name prefix])
3198_LT_DECL([], [library_names_spec], [1],
3199    [[List of archive names.  First name is the real one, the rest are links.
3200    The last name is the one that the linker finds with -lNAME]])
3201_LT_DECL([], [soname_spec], [1],
3202    [[The coded name of the library, if different from the real name]])
3203_LT_DECL([], [install_override_mode], [1],
3204    [Permission mode override for installation of shared libraries])
3205_LT_DECL([], [postinstall_cmds], [2],
3206    [Command to use after installation of a shared archive])
3207_LT_DECL([], [postuninstall_cmds], [2],
3208    [Command to use after uninstallation of a shared archive])
3209_LT_DECL([], [finish_cmds], [2],
3210    [Commands used to finish a libtool library installation in a directory])
3211_LT_DECL([], [finish_eval], [1],
3212    [[As "finish_cmds", except a single script fragment to be evaled but
3213    not shown]])
3214_LT_DECL([], [hardcode_into_libs], [0],
3215    [Whether we should hardcode library paths into libraries])
3216_LT_DECL([], [sys_lib_search_path_spec], [2],
3217    [Compile-time system search path for libraries])
3218_LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
3219    [Run-time system search path for libraries])
3220])# _LT_SYS_DYNAMIC_LINKER
3221
3222
3223# _LT_PATH_TOOL_PREFIX(TOOL)
3224# --------------------------
3225# find a file program that can recognize shared library
3226AC_DEFUN([_LT_PATH_TOOL_PREFIX],
3227[m4_require([_LT_DECL_EGREP])dnl
3228AC_MSG_CHECKING([for $1])
3229AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
3230[case $MAGIC_CMD in
3231[[\\/*] |  ?:[\\/]*])
3232  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
3233  ;;
3234*)
3235  lt_save_MAGIC_CMD=$MAGIC_CMD
3236  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
3237dnl $ac_dummy forces splitting on constant user-supplied paths.
3238dnl POSIX.2 word splitting is done only on the output of word expansions,
3239dnl not every word.  This closes a longstanding sh security hole.
3240  ac_dummy="m4_if([$2], , $PATH, [$2])"
3241  for ac_dir in $ac_dummy; do
3242    IFS=$lt_save_ifs
3243    test -z "$ac_dir" && ac_dir=.
3244    if test -f "$ac_dir/$1"; then
3245      lt_cv_path_MAGIC_CMD=$ac_dir/"$1"
3246      if test -n "$file_magic_test_file"; then
3247	case $deplibs_check_method in
3248	"file_magic "*)
3249	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
3250	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
3251	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3252	    $EGREP "$file_magic_regex" > /dev/null; then
3253	    :
3254	  else
3255	    cat <<_LT_EOF 1>&2
3256
3257*** Warning: the command libtool uses to detect shared libraries,
3258*** $file_magic_cmd, produces output that libtool cannot recognize.
3259*** The result is that libtool may fail to recognize shared libraries
3260*** as such.  This will affect the creation of libtool libraries that
3261*** depend on shared libraries, but programs linked with such libtool
3262*** libraries will work regardless of this problem.  Nevertheless, you
3263*** may want to report the problem to your system manager and/or to
3264*** bug-libtool@gnu.org
3265
3266_LT_EOF
3267	  fi ;;
3268	esac
3269      fi
3270      break
3271    fi
3272  done
3273  IFS=$lt_save_ifs
3274  MAGIC_CMD=$lt_save_MAGIC_CMD
3275  ;;
3276esac])
3277MAGIC_CMD=$lt_cv_path_MAGIC_CMD
3278if test -n "$MAGIC_CMD"; then
3279  AC_MSG_RESULT($MAGIC_CMD)
3280else
3281  AC_MSG_RESULT(no)
3282fi
3283_LT_DECL([], [MAGIC_CMD], [0],
3284	 [Used to examine libraries when file_magic_cmd begins with "file"])dnl
3285])# _LT_PATH_TOOL_PREFIX
3286
3287# Old name:
3288AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
3289dnl aclocal-1.4 backwards compatibility:
3290dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
3291
3292
3293# _LT_PATH_MAGIC
3294# --------------
3295# find a file program that can recognize a shared library
3296m4_defun([_LT_PATH_MAGIC],
3297[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
3298if test -z "$lt_cv_path_MAGIC_CMD"; then
3299  if test -n "$ac_tool_prefix"; then
3300    _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
3301  else
3302    MAGIC_CMD=:
3303  fi
3304fi
3305])# _LT_PATH_MAGIC
3306
3307
3308# LT_PATH_LD
3309# ----------
3310# find the pathname to the GNU or non-GNU linker
3311AC_DEFUN([LT_PATH_LD],
3312[AC_REQUIRE([AC_PROG_CC])dnl
3313AC_REQUIRE([AC_CANONICAL_HOST])dnl
3314AC_REQUIRE([AC_CANONICAL_BUILD])dnl
3315m4_require([_LT_DECL_SED])dnl
3316m4_require([_LT_DECL_EGREP])dnl
3317m4_require([_LT_PROG_ECHO_BACKSLASH])dnl
3318
3319AC_ARG_WITH([gnu-ld],
3320    [AS_HELP_STRING([--with-gnu-ld],
3321	[assume the C compiler uses GNU ld @<:@default=no@:>@])],
3322    [test no = "$withval" || with_gnu_ld=yes],
3323    [with_gnu_ld=no])dnl
3324
3325ac_prog=ld
3326if test yes = "$GCC"; then
3327  # Check if gcc -print-prog-name=ld gives a path.
3328  AC_MSG_CHECKING([for ld used by $CC])
3329  case $host in
3330  *-*-mingw*)
3331    # gcc leaves a trailing carriage return, which upsets mingw
3332    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3333  *)
3334    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3335  esac
3336  case $ac_prog in
3337    # Accept absolute paths.
3338    [[\\/]]* | ?:[[\\/]]*)
3339      re_direlt='/[[^/]][[^/]]*/\.\./'
3340      # Canonicalize the pathname of ld
3341      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3342      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3343	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3344      done
3345      test -z "$LD" && LD=$ac_prog
3346      ;;
3347  "")
3348    # If it fails, then pretend we aren't using GCC.
3349    ac_prog=ld
3350    ;;
3351  *)
3352    # If it is relative, then search for the first ld in PATH.
3353    with_gnu_ld=unknown
3354    ;;
3355  esac
3356elif test yes = "$with_gnu_ld"; then
3357  AC_MSG_CHECKING([for GNU ld])
3358else
3359  AC_MSG_CHECKING([for non-GNU ld])
3360fi
3361AC_CACHE_VAL(lt_cv_path_LD,
3362[if test -z "$LD"; then
3363  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
3364  for ac_dir in $PATH; do
3365    IFS=$lt_save_ifs
3366    test -z "$ac_dir" && ac_dir=.
3367    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3368      lt_cv_path_LD=$ac_dir/$ac_prog
3369      # Check to see if the program is GNU ld.  I'd rather use --version,
3370      # but apparently some variants of GNU ld only accept -v.
3371      # Break only if it was the GNU/non-GNU ld that we prefer.
3372      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3373      *GNU* | *'with BFD'*)
3374	test no != "$with_gnu_ld" && break
3375	;;
3376      *)
3377	test yes != "$with_gnu_ld" && break
3378	;;
3379      esac
3380    fi
3381  done
3382  IFS=$lt_save_ifs
3383else
3384  lt_cv_path_LD=$LD # Let the user override the test with a path.
3385fi])
3386LD=$lt_cv_path_LD
3387if test -n "$LD"; then
3388  AC_MSG_RESULT($LD)
3389else
3390  AC_MSG_RESULT(no)
3391fi
3392test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
3393_LT_PATH_LD_GNU
3394AC_SUBST([LD])
3395
3396_LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
3397])# LT_PATH_LD
3398
3399# Old names:
3400AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
3401AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
3402dnl aclocal-1.4 backwards compatibility:
3403dnl AC_DEFUN([AM_PROG_LD], [])
3404dnl AC_DEFUN([AC_PROG_LD], [])
3405
3406
3407# _LT_PATH_LD_GNU
3408#- --------------
3409m4_defun([_LT_PATH_LD_GNU],
3410[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
3411[# I'd rather use --version here, but apparently some GNU lds only accept -v.
3412case `$LD -v 2>&1 </dev/null` in
3413*GNU* | *'with BFD'*)
3414  lt_cv_prog_gnu_ld=yes
3415  ;;
3416*)
3417  lt_cv_prog_gnu_ld=no
3418  ;;
3419esac])
3420with_gnu_ld=$lt_cv_prog_gnu_ld
3421])# _LT_PATH_LD_GNU
3422
3423
3424# _LT_CMD_RELOAD
3425# --------------
3426# find reload flag for linker
3427#   -- PORTME Some linkers may need a different reload flag.
3428m4_defun([_LT_CMD_RELOAD],
3429[AC_CACHE_CHECK([for $LD option to reload object files],
3430  lt_cv_ld_reload_flag,
3431  [lt_cv_ld_reload_flag='-r'])
3432reload_flag=$lt_cv_ld_reload_flag
3433case $reload_flag in
3434"" | " "*) ;;
3435*) reload_flag=" $reload_flag" ;;
3436esac
3437reload_cmds='$LD$reload_flag -o $output$reload_objs'
3438case $host_os in
3439  cygwin* | mingw* | pw32* | cegcc*)
3440    if test yes != "$GCC"; then
3441      reload_cmds=false
3442    fi
3443    ;;
3444  darwin*)
3445    if test yes = "$GCC"; then
3446      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
3447    else
3448      reload_cmds='$LD$reload_flag -o $output$reload_objs'
3449    fi
3450    ;;
3451esac
3452_LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl
3453_LT_TAGDECL([], [reload_cmds], [2])dnl
3454])# _LT_CMD_RELOAD
3455
3456
3457# _LT_CHECK_MAGIC_METHOD
3458# ----------------------
3459# how to check for library dependencies
3460#  -- PORTME fill in with the dynamic library characteristics
3461m4_defun([_LT_CHECK_MAGIC_METHOD],
3462[m4_require([_LT_DECL_EGREP])
3463m4_require([_LT_DECL_OBJDUMP])
3464AC_CACHE_CHECK([how to recognize dependent libraries],
3465lt_cv_deplibs_check_method,
3466[lt_cv_file_magic_cmd='$MAGIC_CMD'
3467lt_cv_file_magic_test_file=
3468lt_cv_deplibs_check_method='unknown'
3469# Need to set the preceding variable on all platforms that support
3470# interlibrary dependencies.
3471# 'none' -- dependencies not supported.
3472# 'unknown' -- same as none, but documents that we really don't know.
3473# 'pass_all' -- all dependencies passed with no checks.
3474# 'test_compile' -- check by making test program.
3475# 'file_magic [[regex]]' -- check by looking for files in library path
3476# that responds to the $file_magic_cmd with a given extended regex.
3477# If you have 'file' or equivalent on your system and you're not sure
3478# whether 'pass_all' will *always* work, you probably want this one.
3479
3480case $host_os in
3481aix[[4-9]]*)
3482  lt_cv_deplibs_check_method=pass_all
3483  ;;
3484
3485beos*)
3486  lt_cv_deplibs_check_method=pass_all
3487  ;;
3488
3489bsdi[[45]]*)
3490  lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
3491  lt_cv_file_magic_cmd='/usr/bin/file -L'
3492  lt_cv_file_magic_test_file=/shlib/libc.so
3493  ;;
3494
3495cygwin*)
3496  # func_win32_libid is a shell function defined in ltmain.sh
3497  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3498  lt_cv_file_magic_cmd='func_win32_libid'
3499  ;;
3500
3501mingw* | pw32*)
3502  # Base MSYS/MinGW do not provide the 'file' command needed by
3503  # func_win32_libid shell function, so use a weaker test based on 'objdump',
3504  # unless we find 'file', for example because we are cross-compiling.
3505  if ( file / ) >/dev/null 2>&1; then
3506    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3507    lt_cv_file_magic_cmd='func_win32_libid'
3508  else
3509    # Keep this pattern in sync with the one in func_win32_libid.
3510    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
3511    lt_cv_file_magic_cmd='$OBJDUMP -f'
3512  fi
3513  ;;
3514
3515cegcc*)
3516  # use the weaker test based on 'objdump'. See mingw*.
3517  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
3518  lt_cv_file_magic_cmd='$OBJDUMP -f'
3519  ;;
3520
3521darwin* | rhapsody*)
3522  lt_cv_deplibs_check_method=pass_all
3523  ;;
3524
3525freebsd* | dragonfly*)
3526  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3527    case $host_cpu in
3528    i*86 )
3529      # Not sure whether the presence of OpenBSD here was a mistake.
3530      # Let's accept both of them until this is cleared up.
3531      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
3532      lt_cv_file_magic_cmd=/usr/bin/file
3533      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3534      ;;
3535    esac
3536  else
3537    lt_cv_deplibs_check_method=pass_all
3538  fi
3539  ;;
3540
3541haiku*)
3542  lt_cv_deplibs_check_method=pass_all
3543  ;;
3544
3545hpux10.20* | hpux11*)
3546  lt_cv_file_magic_cmd=/usr/bin/file
3547  case $host_cpu in
3548  ia64*)
3549    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
3550    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3551    ;;
3552  hppa*64*)
3553    [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]']
3554    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3555    ;;
3556  *)
3557    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library'
3558    lt_cv_file_magic_test_file=/usr/lib/libc.sl
3559    ;;
3560  esac
3561  ;;
3562
3563interix[[3-9]]*)
3564  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3565  lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
3566  ;;
3567
3568irix5* | irix6* | nonstopux*)
3569  case $LD in
3570  *-32|*"-32 ") libmagic=32-bit;;
3571  *-n32|*"-n32 ") libmagic=N32;;
3572  *-64|*"-64 ") libmagic=64-bit;;
3573  *) libmagic=never-match;;
3574  esac
3575  lt_cv_deplibs_check_method=pass_all
3576  ;;
3577
3578# This must be glibc/ELF.
3579linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
3580  lt_cv_deplibs_check_method=pass_all
3581  ;;
3582
3583netbsd*)
3584  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3585    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3586  else
3587    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
3588  fi
3589  ;;
3590
3591newos6*)
3592  lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
3593  lt_cv_file_magic_cmd=/usr/bin/file
3594  lt_cv_file_magic_test_file=/usr/lib/libnls.so
3595  ;;
3596
3597*nto* | *qnx*)
3598  lt_cv_deplibs_check_method=pass_all
3599  ;;
3600
3601openbsd* | bitrig*)
3602  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
3603    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
3604  else
3605    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3606  fi
3607  ;;
3608
3609osf3* | osf4* | osf5*)
3610  lt_cv_deplibs_check_method=pass_all
3611  ;;
3612
3613rdos*)
3614  lt_cv_deplibs_check_method=pass_all
3615  ;;
3616
3617solaris*)
3618  lt_cv_deplibs_check_method=pass_all
3619  ;;
3620
3621sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3622  lt_cv_deplibs_check_method=pass_all
3623  ;;
3624
3625sysv4 | sysv4.3*)
3626  case $host_vendor in
3627  motorola)
3628    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]]'
3629    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3630    ;;
3631  ncr)
3632    lt_cv_deplibs_check_method=pass_all
3633    ;;
3634  sequent)
3635    lt_cv_file_magic_cmd='/bin/file'
3636    lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
3637    ;;
3638  sni)
3639    lt_cv_file_magic_cmd='/bin/file'
3640    lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
3641    lt_cv_file_magic_test_file=/lib/libc.so
3642    ;;
3643  siemens)
3644    lt_cv_deplibs_check_method=pass_all
3645    ;;
3646  pc)
3647    lt_cv_deplibs_check_method=pass_all
3648    ;;
3649  esac
3650  ;;
3651
3652tpf*)
3653  lt_cv_deplibs_check_method=pass_all
3654  ;;
3655esac
3656])
3657
3658file_magic_glob=
3659want_nocaseglob=no
3660if test "$build" = "$host"; then
3661  case $host_os in
3662  mingw* | pw32*)
3663    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
3664      want_nocaseglob=yes
3665    else
3666      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"`
3667    fi
3668    ;;
3669  esac
3670fi
3671
3672file_magic_cmd=$lt_cv_file_magic_cmd
3673deplibs_check_method=$lt_cv_deplibs_check_method
3674test -z "$deplibs_check_method" && deplibs_check_method=unknown
3675
3676_LT_DECL([], [deplibs_check_method], [1],
3677    [Method to check whether dependent libraries are shared objects])
3678_LT_DECL([], [file_magic_cmd], [1],
3679    [Command to use when deplibs_check_method = "file_magic"])
3680_LT_DECL([], [file_magic_glob], [1],
3681    [How to find potential files when deplibs_check_method = "file_magic"])
3682_LT_DECL([], [want_nocaseglob], [1],
3683    [Find potential files using nocaseglob when deplibs_check_method = "file_magic"])
3684])# _LT_CHECK_MAGIC_METHOD
3685
3686
3687# LT_PATH_NM
3688# ----------
3689# find the pathname to a BSD- or MS-compatible name lister
3690AC_DEFUN([LT_PATH_NM],
3691[AC_REQUIRE([AC_PROG_CC])dnl
3692AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
3693[if test -n "$NM"; then
3694  # Let the user override the test.
3695  lt_cv_path_NM=$NM
3696else
3697  lt_nm_to_check=${ac_tool_prefix}nm
3698  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3699    lt_nm_to_check="$lt_nm_to_check nm"
3700  fi
3701  for lt_tmp_nm in $lt_nm_to_check; do
3702    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
3703    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3704      IFS=$lt_save_ifs
3705      test -z "$ac_dir" && ac_dir=.
3706      tmp_nm=$ac_dir/$lt_tmp_nm
3707      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
3708	# Check to see if the nm accepts a BSD-compat flag.
3709	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
3710	#   nm: unknown option "B" ignored
3711	# Tru64's nm complains that /dev/null is an invalid object file
3712	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3713	*/dev/null* | *'Invalid file or object type'*)
3714	  lt_cv_path_NM="$tmp_nm -B"
3715	  break 2
3716	  ;;
3717	*)
3718	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3719	  */dev/null*)
3720	    lt_cv_path_NM="$tmp_nm -p"
3721	    break 2
3722	    ;;
3723	  *)
3724	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3725	    continue # so that we can try to find one that supports BSD flags
3726	    ;;
3727	  esac
3728	  ;;
3729	esac
3730      fi
3731    done
3732    IFS=$lt_save_ifs
3733  done
3734  : ${lt_cv_path_NM=no}
3735fi])
3736if test no != "$lt_cv_path_NM"; then
3737  NM=$lt_cv_path_NM
3738else
3739  # Didn't find any BSD compatible name lister, look for dumpbin.
3740  if test -n "$DUMPBIN"; then :
3741    # Let the user override the test.
3742  else
3743    AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
3744    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
3745    *COFF*)
3746      DUMPBIN="$DUMPBIN -symbols -headers"
3747      ;;
3748    *)
3749      DUMPBIN=:
3750      ;;
3751    esac
3752  fi
3753  AC_SUBST([DUMPBIN])
3754  if test : != "$DUMPBIN"; then
3755    NM=$DUMPBIN
3756  fi
3757fi
3758test -z "$NM" && NM=nm
3759AC_SUBST([NM])
3760_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
3761
3762AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
3763  [lt_cv_nm_interface="BSD nm"
3764  echo "int some_variable = 0;" > conftest.$ac_ext
3765  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
3766  (eval "$ac_compile" 2>conftest.err)
3767  cat conftest.err >&AS_MESSAGE_LOG_FD
3768  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
3769  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3770  cat conftest.err >&AS_MESSAGE_LOG_FD
3771  (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD)
3772  cat conftest.out >&AS_MESSAGE_LOG_FD
3773  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3774    lt_cv_nm_interface="MS dumpbin"
3775  fi
3776  rm -f conftest*])
3777])# LT_PATH_NM
3778
3779# Old names:
3780AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
3781AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
3782dnl aclocal-1.4 backwards compatibility:
3783dnl AC_DEFUN([AM_PROG_NM], [])
3784dnl AC_DEFUN([AC_PROG_NM], [])
3785
3786# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
3787# --------------------------------
3788# how to determine the name of the shared library
3789# associated with a specific link library.
3790#  -- PORTME fill in with the dynamic library characteristics
3791m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB],
3792[m4_require([_LT_DECL_EGREP])
3793m4_require([_LT_DECL_OBJDUMP])
3794m4_require([_LT_DECL_DLLTOOL])
3795AC_CACHE_CHECK([how to associate runtime and link libraries],
3796lt_cv_sharedlib_from_linklib_cmd,
3797[lt_cv_sharedlib_from_linklib_cmd='unknown'
3798
3799case $host_os in
3800cygwin* | mingw* | pw32* | cegcc*)
3801  # two different shell functions defined in ltmain.sh;
3802  # decide which one to use based on capabilities of $DLLTOOL
3803  case `$DLLTOOL --help 2>&1` in
3804  *--identify-strict*)
3805    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
3806    ;;
3807  *)
3808    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
3809    ;;
3810  esac
3811  ;;
3812*)
3813  # fallback: assume linklib IS sharedlib
3814  lt_cv_sharedlib_from_linklib_cmd=$ECHO
3815  ;;
3816esac
3817])
3818sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
3819test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
3820
3821_LT_DECL([], [sharedlib_from_linklib_cmd], [1],
3822    [Command to associate shared and link libraries])
3823])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
3824
3825
3826# _LT_PATH_MANIFEST_TOOL
3827# ----------------------
3828# locate the manifest tool
3829m4_defun([_LT_PATH_MANIFEST_TOOL],
3830[AC_CHECK_TOOL(MANIFEST_TOOL, mt, :)
3831test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
3832AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool],
3833  [lt_cv_path_mainfest_tool=no
3834  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
3835  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
3836  cat conftest.err >&AS_MESSAGE_LOG_FD
3837  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
3838    lt_cv_path_mainfest_tool=yes
3839  fi
3840  rm -f conftest*])
3841if test yes != "$lt_cv_path_mainfest_tool"; then
3842  MANIFEST_TOOL=:
3843fi
3844_LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
3845])# _LT_PATH_MANIFEST_TOOL
3846
3847
3848# _LT_DLL_DEF_P([FILE])
3849# ---------------------
3850# True iff FILE is a Windows DLL '.def' file.
3851# Keep in sync with func_dll_def_p in the libtool script
3852AC_DEFUN([_LT_DLL_DEF_P],
3853[dnl
3854  test DEF = "`$SED -n dnl
3855    -e '\''s/^[[	 ]]*//'\'' dnl Strip leading whitespace
3856    -e '\''/^\(;.*\)*$/d'\'' dnl      Delete empty lines and comments
3857    -e '\''s/^\(EXPORTS\|LIBRARY\)\([[	 ]].*\)*$/DEF/p'\'' dnl
3858    -e q dnl                          Only consider the first "real" line
3859    $1`" dnl
3860])# _LT_DLL_DEF_P
3861
3862
3863# LT_LIB_M
3864# --------
3865# check for math library
3866AC_DEFUN([LT_LIB_M],
3867[AC_REQUIRE([AC_CANONICAL_HOST])dnl
3868LIBM=
3869case $host in
3870*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
3871  # These system don't have libm, or don't need it
3872  ;;
3873*-ncr-sysv4.3*)
3874  AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM=-lmw)
3875  AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
3876  ;;
3877*)
3878  AC_CHECK_LIB(m, cos, LIBM=-lm)
3879  ;;
3880esac
3881AC_SUBST([LIBM])
3882])# LT_LIB_M
3883
3884# Old name:
3885AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
3886dnl aclocal-1.4 backwards compatibility:
3887dnl AC_DEFUN([AC_CHECK_LIBM], [])
3888
3889
3890# _LT_COMPILER_NO_RTTI([TAGNAME])
3891# -------------------------------
3892m4_defun([_LT_COMPILER_NO_RTTI],
3893[m4_require([_LT_TAG_COMPILER])dnl
3894
3895_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
3896
3897if test yes = "$GCC"; then
3898  case $cc_basename in
3899  nvcc*)
3900    _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
3901  *)
3902    _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;;
3903  esac
3904
3905  _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
3906    lt_cv_prog_compiler_rtti_exceptions,
3907    [-fno-rtti -fno-exceptions], [],
3908    [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
3909fi
3910_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
3911	[Compiler flag to turn off builtin functions])
3912])# _LT_COMPILER_NO_RTTI
3913
3914
3915# _LT_CMD_GLOBAL_SYMBOLS
3916# ----------------------
3917m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
3918[AC_REQUIRE([AC_CANONICAL_HOST])dnl
3919AC_REQUIRE([AC_PROG_CC])dnl
3920AC_REQUIRE([AC_PROG_AWK])dnl
3921AC_REQUIRE([LT_PATH_NM])dnl
3922AC_REQUIRE([LT_PATH_LD])dnl
3923m4_require([_LT_DECL_SED])dnl
3924m4_require([_LT_DECL_EGREP])dnl
3925m4_require([_LT_TAG_COMPILER])dnl
3926
3927# Check for command to grab the raw symbol name followed by C symbol from nm.
3928AC_MSG_CHECKING([command to parse $NM output from $compiler object])
3929AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
3930[
3931# These are sane defaults that work on at least a few old systems.
3932# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
3933
3934# Character class describing NM global symbol codes.
3935symcode='[[BCDEGRST]]'
3936
3937# Regexp to match symbols that can be accessed directly from C.
3938sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
3939
3940# Define system-specific variables.
3941case $host_os in
3942aix*)
3943  symcode='[[BCDT]]'
3944  ;;
3945cygwin* | mingw* | pw32* | cegcc*)
3946  symcode='[[ABCDGISTW]]'
3947  ;;
3948hpux*)
3949  if test ia64 = "$host_cpu"; then
3950    symcode='[[ABCDEGRST]]'
3951  fi
3952  ;;
3953irix* | nonstopux*)
3954  symcode='[[BCDEGRST]]'
3955  ;;
3956osf*)
3957  symcode='[[BCDEGQRST]]'
3958  ;;
3959solaris*)
3960  symcode='[[BDRT]]'
3961  ;;
3962sco3.2v5*)
3963  symcode='[[DT]]'
3964  ;;
3965sysv4.2uw2*)
3966  symcode='[[DT]]'
3967  ;;
3968sysv5* | sco5v6* | unixware* | OpenUNIX*)
3969  symcode='[[ABDT]]'
3970  ;;
3971sysv4)
3972  symcode='[[DFNSTU]]'
3973  ;;
3974esac
3975
3976# If we're using GNU nm, then use its standard symbol codes.
3977case `$NM -V 2>&1` in
3978*GNU* | *'with BFD'*)
3979  symcode='[[ABCDGIRSTW]]' ;;
3980esac
3981
3982if test "$lt_cv_nm_interface" = "MS dumpbin"; then
3983  # Gets list of data symbols to import.
3984  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
3985  # Adjust the below global symbol transforms to fixup imported variables.
3986  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
3987  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
3988  lt_c_name_lib_hook="\
3989  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
3990  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
3991else
3992  # Disable hooks by default.
3993  lt_cv_sys_global_symbol_to_import=
3994  lt_cdecl_hook=
3995  lt_c_name_hook=
3996  lt_c_name_lib_hook=
3997fi
3998
3999# Transform an extracted symbol line into a proper C declaration.
4000# Some systems (esp. on ia64) link data and code symbols differently,
4001# so use this general approach.
4002lt_cv_sys_global_symbol_to_cdecl="sed -n"\
4003$lt_cdecl_hook\
4004" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
4005" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
4006
4007# Transform an extracted symbol line into symbol name and symbol address
4008lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
4009$lt_c_name_hook\
4010" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
4011" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
4012
4013# Transform an extracted symbol line into symbol name with lib prefix and
4014# symbol address.
4015lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
4016$lt_c_name_lib_hook\
4017" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
4018" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
4019" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
4020
4021# Handle CRLF in mingw tool chain
4022opt_cr=
4023case $build_os in
4024mingw*)
4025  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4026  ;;
4027esac
4028
4029# Try without a prefix underscore, then with it.
4030for ac_symprfx in "" "_"; do
4031
4032  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4033  symxfrm="\\1 $ac_symprfx\\2 \\2"
4034
4035  # Write the raw and C identifiers.
4036  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4037    # Fake it for dumpbin and say T for any non-static function,
4038    # D for any global variable and I for any imported variable.
4039    # Also find C++ and __fastcall symbols from MSVC++,
4040    # which start with @ or ?.
4041    lt_cv_sys_global_symbol_pipe="$AWK ['"\
4042"     {last_section=section; section=\$ 3};"\
4043"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
4044"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4045"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
4046"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
4047"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
4048"     \$ 0!~/External *\|/{next};"\
4049"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4050"     {if(hide[section]) next};"\
4051"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
4052"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
4053"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
4054"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
4055"     ' prfx=^$ac_symprfx]"
4056  else
4057    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[	 ]]\($symcode$symcode*\)[[	 ]][[	 ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4058  fi
4059  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
4060
4061  # Check to see that the pipe works correctly.
4062  pipe_works=no
4063
4064  rm -f conftest*
4065  cat > conftest.$ac_ext <<_LT_EOF
4066#ifdef __cplusplus
4067extern "C" {
4068#endif
4069char nm_test_var;
4070void nm_test_func(void);
4071void nm_test_func(void){}
4072#ifdef __cplusplus
4073}
4074#endif
4075int main(){nm_test_var='a';nm_test_func();return(0);}
4076_LT_EOF
4077
4078  if AC_TRY_EVAL(ac_compile); then
4079    # Now try to grab the symbols.
4080    nlist=conftest.nm
4081    if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then
4082      # Try sorting and uniquifying the output.
4083      if sort "$nlist" | uniq > "$nlist"T; then
4084	mv -f "$nlist"T "$nlist"
4085      else
4086	rm -f "$nlist"T
4087      fi
4088
4089      # Make sure that we snagged all the symbols we need.
4090      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4091	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4092	  cat <<_LT_EOF > conftest.$ac_ext
4093/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
4094#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
4095/* DATA imports from DLLs on WIN32 can't be const, because runtime
4096   relocations are performed -- see ld's documentation on pseudo-relocs.  */
4097# define LT@&t@_DLSYM_CONST
4098#elif defined __osf__
4099/* This system does not cope well with relocations in const data.  */
4100# define LT@&t@_DLSYM_CONST
4101#else
4102# define LT@&t@_DLSYM_CONST const
4103#endif
4104
4105#ifdef __cplusplus
4106extern "C" {
4107#endif
4108
4109_LT_EOF
4110	  # Now generate the symbol file.
4111	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
4112
4113	  cat <<_LT_EOF >> conftest.$ac_ext
4114
4115/* The mapping between symbol names and symbols.  */
4116LT@&t@_DLSYM_CONST struct {
4117  const char *name;
4118  void       *address;
4119}
4120lt__PROGRAM__LTX_preloaded_symbols[[]] =
4121{
4122  { "@PROGRAM@", (void *) 0 },
4123_LT_EOF
4124	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
4125	  cat <<\_LT_EOF >> conftest.$ac_ext
4126  {0, (void *) 0}
4127};
4128
4129/* This works around a problem in FreeBSD linker */
4130#ifdef FREEBSD_WORKAROUND
4131static const void *lt_preloaded_setup() {
4132  return lt__PROGRAM__LTX_preloaded_symbols;
4133}
4134#endif
4135
4136#ifdef __cplusplus
4137}
4138#endif
4139_LT_EOF
4140	  # Now try linking the two files.
4141	  mv conftest.$ac_objext conftstm.$ac_objext
4142	  lt_globsym_save_LIBS=$LIBS
4143	  lt_globsym_save_CFLAGS=$CFLAGS
4144	  LIBS=conftstm.$ac_objext
4145	  CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
4146	  if AC_TRY_EVAL(ac_link) && test -s conftest$ac_exeext; then
4147	    pipe_works=yes
4148	  fi
4149	  LIBS=$lt_globsym_save_LIBS
4150	  CFLAGS=$lt_globsym_save_CFLAGS
4151	else
4152	  echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
4153	fi
4154      else
4155	echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
4156      fi
4157    else
4158      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
4159    fi
4160  else
4161    echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
4162    cat conftest.$ac_ext >&5
4163  fi
4164  rm -rf conftest* conftst*
4165
4166  # Do not use the global_symbol_pipe unless it works.
4167  if test yes = "$pipe_works"; then
4168    break
4169  else
4170    lt_cv_sys_global_symbol_pipe=
4171  fi
4172done
4173])
4174if test -z "$lt_cv_sys_global_symbol_pipe"; then
4175  lt_cv_sys_global_symbol_to_cdecl=
4176fi
4177if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4178  AC_MSG_RESULT(failed)
4179else
4180  AC_MSG_RESULT(ok)
4181fi
4182
4183# Response file support.
4184if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4185  nm_file_list_spec='@'
4186elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then
4187  nm_file_list_spec='@'
4188fi
4189
4190_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
4191    [Take the output of nm and produce a listing of raw symbols and C names])
4192_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
4193    [Transform the output of nm in a proper C declaration])
4194_LT_DECL([global_symbol_to_import], [lt_cv_sys_global_symbol_to_import], [1],
4195    [Transform the output of nm into a list of symbols to manually relocate])
4196_LT_DECL([global_symbol_to_c_name_address],
4197    [lt_cv_sys_global_symbol_to_c_name_address], [1],
4198    [Transform the output of nm in a C name address pair])
4199_LT_DECL([global_symbol_to_c_name_address_lib_prefix],
4200    [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
4201    [Transform the output of nm in a C name address pair when lib prefix is needed])
4202_LT_DECL([nm_interface], [lt_cv_nm_interface], [1],
4203    [The name lister interface])
4204_LT_DECL([], [nm_file_list_spec], [1],
4205    [Specify filename containing input files for $NM])
4206]) # _LT_CMD_GLOBAL_SYMBOLS
4207
4208
4209# _LT_COMPILER_PIC([TAGNAME])
4210# ---------------------------
4211m4_defun([_LT_COMPILER_PIC],
4212[m4_require([_LT_TAG_COMPILER])dnl
4213_LT_TAGVAR(lt_prog_compiler_wl, $1)=
4214_LT_TAGVAR(lt_prog_compiler_pic, $1)=
4215_LT_TAGVAR(lt_prog_compiler_static, $1)=
4216
4217m4_if([$1], [CXX], [
4218  # C++ specific cases for pic, static, wl, etc.
4219  if test yes = "$GXX"; then
4220    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4221    _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4222
4223    case $host_os in
4224    aix*)
4225      # All AIX code is PIC.
4226      if test ia64 = "$host_cpu"; then
4227	# AIX 5 now supports IA64 processor
4228	_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4229      fi
4230      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4231      ;;
4232
4233    amigaos*)
4234      case $host_cpu in
4235      powerpc)
4236            # see comment about AmigaOS4 .so support
4237            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4238        ;;
4239      m68k)
4240            # FIXME: we need at least 68020 code to build shared libraries, but
4241            # adding the '-m68020' flag to GCC prevents building anything better,
4242            # like '-m68040'.
4243            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4244        ;;
4245      esac
4246      ;;
4247
4248    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4249      # PIC is the default for these OSes.
4250      ;;
4251    mingw* | cygwin* | os2* | pw32* | cegcc*)
4252      # This hack is so that the source file can tell whether it is being
4253      # built for inclusion in a dll (and should export symbols for example).
4254      # Although the cygwin gcc ignores -fPIC, still need this for old-style
4255      # (--disable-auto-import) libraries
4256      m4_if([$1], [GCJ], [],
4257	[_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4258      ;;
4259    darwin* | rhapsody*)
4260      # PIC is the default on this platform
4261      # Common symbols not allowed in MH_DYLIB files
4262      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4263      ;;
4264    *djgpp*)
4265      # DJGPP does not support shared libraries at all
4266      _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4267      ;;
4268    haiku*)
4269      # PIC is the default for Haiku.
4270      # The "-static" flag exists, but is broken.
4271      _LT_TAGVAR(lt_prog_compiler_static, $1)=
4272      ;;
4273    interix[[3-9]]*)
4274      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4275      # Instead, we relocate shared libraries at runtime.
4276      ;;
4277    sysv4*MP*)
4278      if test -d /usr/nec; then
4279	_LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
4280      fi
4281      ;;
4282    hpux*)
4283      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
4284      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
4285      # sets the default TLS model and affects inlining.
4286      case $host_cpu in
4287      hppa*64*)
4288	;;
4289      *)
4290	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4291	;;
4292      esac
4293      ;;
4294    *qnx* | *nto*)
4295      # QNX uses GNU C++, but need to define -shared option too, otherwise
4296      # it will coredump.
4297      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4298      ;;
4299    *)
4300      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4301      ;;
4302    esac
4303  else
4304    case $host_os in
4305      aix[[4-9]]*)
4306	# All AIX code is PIC.
4307	if test ia64 = "$host_cpu"; then
4308	  # AIX 5 now supports IA64 processor
4309	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4310	else
4311	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
4312	fi
4313	;;
4314      chorus*)
4315	case $cc_basename in
4316	cxch68*)
4317	  # Green Hills C++ Compiler
4318	  # _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"
4319	  ;;
4320	esac
4321	;;
4322      mingw* | cygwin* | os2* | pw32* | cegcc*)
4323	# This hack is so that the source file can tell whether it is being
4324	# built for inclusion in a dll (and should export symbols for example).
4325	m4_if([$1], [GCJ], [],
4326	  [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4327	;;
4328      dgux*)
4329	case $cc_basename in
4330	  ec++*)
4331	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4332	    ;;
4333	  ghcx*)
4334	    # Green Hills C++ Compiler
4335	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4336	    ;;
4337	  *)
4338	    ;;
4339	esac
4340	;;
4341      freebsd* | dragonfly*)
4342	# FreeBSD uses GNU C++
4343	;;
4344      hpux9* | hpux10* | hpux11*)
4345	case $cc_basename in
4346	  CC*)
4347	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4348	    _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive'
4349	    if test ia64 != "$host_cpu"; then
4350	      _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4351	    fi
4352	    ;;
4353	  aCC*)
4354	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4355	    _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive'
4356	    case $host_cpu in
4357	    hppa*64*|ia64*)
4358	      # +Z the default
4359	      ;;
4360	    *)
4361	      _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4362	      ;;
4363	    esac
4364	    ;;
4365	  *)
4366	    ;;
4367	esac
4368	;;
4369      interix*)
4370	# This is c89, which is MS Visual C++ (no shared libs)
4371	# Anyone wants to do a port?
4372	;;
4373      irix5* | irix6* | nonstopux*)
4374	case $cc_basename in
4375	  CC*)
4376	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4377	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4378	    # CC pic flag -KPIC is the default.
4379	    ;;
4380	  *)
4381	    ;;
4382	esac
4383	;;
4384      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
4385	case $cc_basename in
4386	  KCC*)
4387	    # KAI C++ Compiler
4388	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4389	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4390	    ;;
4391	  ecpc* )
4392	    # old Intel C++ for x86_64, which still supported -KPIC.
4393	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4394	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4395	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4396	    ;;
4397	  icpc* )
4398	    # Intel C++, used to be incompatible with GCC.
4399	    # ICC 10 doesn't accept -KPIC any more.
4400	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4401	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4402	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4403	    ;;
4404	  pgCC* | pgcpp*)
4405	    # Portland Group C++ compiler
4406	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4407	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4408	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4409	    ;;
4410	  cxx*)
4411	    # Compaq C++
4412	    # Make sure the PIC flag is empty.  It appears that all Alpha
4413	    # Linux and Compaq Tru64 Unix objects are PIC.
4414	    _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4415	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4416	    ;;
4417	  xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*)
4418	    # IBM XL 8.0, 9.0 on PPC and BlueGene
4419	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4420	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4421	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4422	    ;;
4423	  *)
4424	    case `$CC -V 2>&1 | sed 5q` in
4425	    *Sun\ C*)
4426	      # Sun C++ 5.9
4427	      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4428	      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4429	      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4430	      ;;
4431	    esac
4432	    ;;
4433	esac
4434	;;
4435      lynxos*)
4436	;;
4437      m88k*)
4438	;;
4439      mvs*)
4440	case $cc_basename in
4441	  cxx*)
4442	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
4443	    ;;
4444	  *)
4445	    ;;
4446	esac
4447	;;
4448      netbsd*)
4449	;;
4450      *qnx* | *nto*)
4451        # QNX uses GNU C++, but need to define -shared option too, otherwise
4452        # it will coredump.
4453        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4454        ;;
4455      osf3* | osf4* | osf5*)
4456	case $cc_basename in
4457	  KCC*)
4458	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4459	    ;;
4460	  RCC*)
4461	    # Rational C++ 2.4.1
4462	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4463	    ;;
4464	  cxx*)
4465	    # Digital/Compaq C++
4466	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4467	    # Make sure the PIC flag is empty.  It appears that all Alpha
4468	    # Linux and Compaq Tru64 Unix objects are PIC.
4469	    _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4470	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4471	    ;;
4472	  *)
4473	    ;;
4474	esac
4475	;;
4476      psos*)
4477	;;
4478      solaris*)
4479	case $cc_basename in
4480	  CC* | sunCC*)
4481	    # Sun C++ 4.2, 5.x and Centerline C++
4482	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4483	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4484	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4485	    ;;
4486	  gcx*)
4487	    # Green Hills C++ Compiler
4488	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4489	    ;;
4490	  *)
4491	    ;;
4492	esac
4493	;;
4494      sunos4*)
4495	case $cc_basename in
4496	  CC*)
4497	    # Sun C++ 4.x
4498	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4499	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4500	    ;;
4501	  lcc*)
4502	    # Lucid
4503	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4504	    ;;
4505	  *)
4506	    ;;
4507	esac
4508	;;
4509      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
4510	case $cc_basename in
4511	  CC*)
4512	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4513	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4514	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4515	    ;;
4516	esac
4517	;;
4518      tandem*)
4519	case $cc_basename in
4520	  NCC*)
4521	    # NonStop-UX NCC 3.20
4522	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4523	    ;;
4524	  *)
4525	    ;;
4526	esac
4527	;;
4528      vxworks*)
4529	;;
4530      *)
4531	_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4532	;;
4533    esac
4534  fi
4535],
4536[
4537  if test yes = "$GCC"; then
4538    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4539    _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4540
4541    case $host_os in
4542      aix*)
4543      # All AIX code is PIC.
4544      if test ia64 = "$host_cpu"; then
4545	# AIX 5 now supports IA64 processor
4546	_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4547      fi
4548      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4549      ;;
4550
4551    amigaos*)
4552      case $host_cpu in
4553      powerpc)
4554            # see comment about AmigaOS4 .so support
4555            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4556        ;;
4557      m68k)
4558            # FIXME: we need at least 68020 code to build shared libraries, but
4559            # adding the '-m68020' flag to GCC prevents building anything better,
4560            # like '-m68040'.
4561            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4562        ;;
4563      esac
4564      ;;
4565
4566    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4567      # PIC is the default for these OSes.
4568      ;;
4569
4570    mingw* | cygwin* | pw32* | os2* | cegcc*)
4571      # This hack is so that the source file can tell whether it is being
4572      # built for inclusion in a dll (and should export symbols for example).
4573      # Although the cygwin gcc ignores -fPIC, still need this for old-style
4574      # (--disable-auto-import) libraries
4575      m4_if([$1], [GCJ], [],
4576	[_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4577      ;;
4578
4579    darwin* | rhapsody*)
4580      # PIC is the default on this platform
4581      # Common symbols not allowed in MH_DYLIB files
4582      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4583      ;;
4584
4585    haiku*)
4586      # PIC is the default for Haiku.
4587      # The "-static" flag exists, but is broken.
4588      _LT_TAGVAR(lt_prog_compiler_static, $1)=
4589      ;;
4590
4591    hpux*)
4592      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
4593      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
4594      # sets the default TLS model and affects inlining.
4595      case $host_cpu in
4596      hppa*64*)
4597	# +Z the default
4598	;;
4599      *)
4600	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4601	;;
4602      esac
4603      ;;
4604
4605    interix[[3-9]]*)
4606      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4607      # Instead, we relocate shared libraries at runtime.
4608      ;;
4609
4610    msdosdjgpp*)
4611      # Just because we use GCC doesn't mean we suddenly get shared libraries
4612      # on systems that don't support them.
4613      _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4614      enable_shared=no
4615      ;;
4616
4617    *nto* | *qnx*)
4618      # QNX uses GNU C++, but need to define -shared option too, otherwise
4619      # it will coredump.
4620      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4621      ;;
4622
4623    sysv4*MP*)
4624      if test -d /usr/nec; then
4625	_LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
4626      fi
4627      ;;
4628
4629    *)
4630      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4631      ;;
4632    esac
4633
4634    case $cc_basename in
4635    nvcc*) # Cuda Compiler Driver 2.2
4636      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
4637      if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
4638        _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)"
4639      fi
4640      ;;
4641    esac
4642  else
4643    # PORTME Check for flag to pass linker flags through the system compiler.
4644    case $host_os in
4645    aix*)
4646      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4647      if test ia64 = "$host_cpu"; then
4648	# AIX 5 now supports IA64 processor
4649	_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4650      else
4651	_LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
4652      fi
4653      ;;
4654
4655    darwin* | rhapsody*)
4656      # PIC is the default on this platform
4657      # Common symbols not allowed in MH_DYLIB files
4658      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4659      case $cc_basename in
4660      nagfor*)
4661        # NAG Fortran compiler
4662        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
4663        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4664        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4665        ;;
4666      esac
4667      ;;
4668
4669    mingw* | cygwin* | pw32* | os2* | cegcc*)
4670      # This hack is so that the source file can tell whether it is being
4671      # built for inclusion in a dll (and should export symbols for example).
4672      m4_if([$1], [GCJ], [],
4673	[_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4674      ;;
4675
4676    hpux9* | hpux10* | hpux11*)
4677      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4678      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
4679      # not for PA HP-UX.
4680      case $host_cpu in
4681      hppa*64*|ia64*)
4682	# +Z the default
4683	;;
4684      *)
4685	_LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4686	;;
4687      esac
4688      # Is there a better lt_prog_compiler_static that works with the bundled CC?
4689      _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive'
4690      ;;
4691
4692    irix5* | irix6* | nonstopux*)
4693      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4694      # PIC (with -KPIC) is the default.
4695      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4696      ;;
4697
4698    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
4699      case $cc_basename in
4700      # old Intel for x86_64, which still supported -KPIC.
4701      ecc*)
4702	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4703	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4704	_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4705        ;;
4706      # icc used to be incompatible with GCC.
4707      # ICC 10 doesn't accept -KPIC any more.
4708      icc* | ifort*)
4709	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4710	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4711	_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4712        ;;
4713      # Lahey Fortran 8.1.
4714      lf95*)
4715	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4716	_LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
4717	_LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
4718	;;
4719      nagfor*)
4720	# NAG Fortran compiler
4721	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
4722	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4723	_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4724	;;
4725      tcc*)
4726	# Fabrice Bellard et al's Tiny C Compiler
4727	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4728	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4729	_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4730	;;
4731      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
4732        # Portland Group compilers (*not* the Pentium gcc compiler,
4733	# which looks to be a dead project)
4734	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4735	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4736	_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4737        ;;
4738      ccc*)
4739        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4740        # All Alpha code is PIC.
4741        _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4742        ;;
4743      xl* | bgxl* | bgf* | mpixl*)
4744	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
4745	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4746	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4747	_LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4748	;;
4749      *)
4750	case `$CC -V 2>&1 | sed 5q` in
4751	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*)
4752	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
4753	  _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4754	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4755	  _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
4756	  ;;
4757	*Sun\ F* | *Sun*Fortran*)
4758	  _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4759	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4760	  _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4761	  ;;
4762	*Sun\ C*)
4763	  # Sun C 5.9
4764	  _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4765	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4766	  _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4767	  ;;
4768        *Intel*\ [[CF]]*Compiler*)
4769	  _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4770	  _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4771	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4772	  ;;
4773	*Portland\ Group*)
4774	  _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4775	  _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4776	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4777	  ;;
4778	esac
4779	;;
4780      esac
4781      ;;
4782
4783    newsos6)
4784      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4785      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4786      ;;
4787
4788    *nto* | *qnx*)
4789      # QNX uses GNU C++, but need to define -shared option too, otherwise
4790      # it will coredump.
4791      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4792      ;;
4793
4794    osf3* | osf4* | osf5*)
4795      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4796      # All OSF/1 code is PIC.
4797      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4798      ;;
4799
4800    rdos*)
4801      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4802      ;;
4803
4804    solaris*)
4805      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4806      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4807      case $cc_basename in
4808      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
4809	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
4810      *)
4811	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
4812      esac
4813      ;;
4814
4815    sunos4*)
4816      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4817      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4818      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4819      ;;
4820
4821    sysv4 | sysv4.2uw2* | sysv4.3*)
4822      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4823      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4824      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4825      ;;
4826
4827    sysv4*MP*)
4828      if test -d /usr/nec; then
4829	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
4830	_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4831      fi
4832      ;;
4833
4834    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
4835      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4836      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4837      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4838      ;;
4839
4840    unicos*)
4841      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4842      _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4843      ;;
4844
4845    uts4*)
4846      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4847      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4848      ;;
4849
4850    *)
4851      _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4852      ;;
4853    esac
4854  fi
4855])
4856case $host_os in
4857  # For platforms that do not support PIC, -DPIC is meaningless:
4858  *djgpp*)
4859    _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4860    ;;
4861  *)
4862    _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
4863    ;;
4864esac
4865
4866AC_CACHE_CHECK([for $compiler option to produce PIC],
4867  [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)],
4868  [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
4869_LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)
4870
4871#
4872# Check to make sure the PIC flag actually works.
4873#
4874if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
4875  _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
4876    [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
4877    [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
4878    [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
4879     "" | " "*) ;;
4880     *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
4881     esac],
4882    [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
4883     _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
4884fi
4885_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
4886	[Additional compiler flags for building library objects])
4887
4888_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
4889	[How to pass a linker flag through the compiler])
4890#
4891# Check to make sure the static flag actually works.
4892#
4893wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
4894_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
4895  _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
4896  $lt_tmp_static_flag,
4897  [],
4898  [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
4899_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
4900	[Compiler flag to prevent dynamic linking])
4901])# _LT_COMPILER_PIC
4902
4903
4904# _LT_LINKER_SHLIBS([TAGNAME])
4905# ----------------------------
4906# See if the linker supports building shared libraries.
4907m4_defun([_LT_LINKER_SHLIBS],
4908[AC_REQUIRE([LT_PATH_LD])dnl
4909AC_REQUIRE([LT_PATH_NM])dnl
4910m4_require([_LT_PATH_MANIFEST_TOOL])dnl
4911m4_require([_LT_FILEUTILS_DEFAULTS])dnl
4912m4_require([_LT_DECL_EGREP])dnl
4913m4_require([_LT_DECL_SED])dnl
4914m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
4915m4_require([_LT_TAG_COMPILER])dnl
4916AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
4917m4_if([$1], [CXX], [
4918  _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4919  _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
4920  case $host_os in
4921  aix[[4-9]]*)
4922    # If we're using GNU nm, then we don't want the "-C" option.
4923    # -C means demangle to AIX nm, but means don't demangle with GNU nm
4924    # Also, AIX nm treats weak defined symbols like other global defined
4925    # symbols, whereas GNU nm marks them as "W".
4926    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4927      _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
4928    else
4929      _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'
4930    fi
4931    ;;
4932  pw32*)
4933    _LT_TAGVAR(export_symbols_cmds, $1)=$ltdll_cmds
4934    ;;
4935  cygwin* | mingw* | cegcc*)
4936    case $cc_basename in
4937    cl*)
4938      _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
4939      ;;
4940    *)
4941      _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
4942      _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
4943      ;;
4944    esac
4945    ;;
4946  *)
4947    _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4948    ;;
4949  esac
4950], [
4951  runpath_var=
4952  _LT_TAGVAR(allow_undefined_flag, $1)=
4953  _LT_TAGVAR(always_export_symbols, $1)=no
4954  _LT_TAGVAR(archive_cmds, $1)=
4955  _LT_TAGVAR(archive_expsym_cmds, $1)=
4956  _LT_TAGVAR(compiler_needs_object, $1)=no
4957  _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
4958  _LT_TAGVAR(export_dynamic_flag_spec, $1)=
4959  _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4960  _LT_TAGVAR(hardcode_automatic, $1)=no
4961  _LT_TAGVAR(hardcode_direct, $1)=no
4962  _LT_TAGVAR(hardcode_direct_absolute, $1)=no
4963  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
4964  _LT_TAGVAR(hardcode_libdir_separator, $1)=
4965  _LT_TAGVAR(hardcode_minus_L, $1)=no
4966  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
4967  _LT_TAGVAR(inherit_rpath, $1)=no
4968  _LT_TAGVAR(link_all_deplibs, $1)=unknown
4969  _LT_TAGVAR(module_cmds, $1)=
4970  _LT_TAGVAR(module_expsym_cmds, $1)=
4971  _LT_TAGVAR(old_archive_from_new_cmds, $1)=
4972  _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
4973  _LT_TAGVAR(thread_safe_flag_spec, $1)=
4974  _LT_TAGVAR(whole_archive_flag_spec, $1)=
4975  # include_expsyms should be a list of space-separated symbols to be *always*
4976  # included in the symbol list
4977  _LT_TAGVAR(include_expsyms, $1)=
4978  # exclude_expsyms can be an extended regexp of symbols to exclude
4979  # it will be wrapped by ' (' and ')$', so one must not match beginning or
4980  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
4981  # as well as any symbol that contains 'd'.
4982  _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
4983  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
4984  # platforms (ab)use it in PIC code, but their linkers get confused if
4985  # the symbol is explicitly referenced.  Since portable code cannot
4986  # rely on this symbol name, it's probably fine to never include it in
4987  # preloaded symbol tables.
4988  # Exclude shared library initialization/finalization symbols.
4989dnl Note also adjust exclude_expsyms for C++ above.
4990  extract_expsyms_cmds=
4991
4992  case $host_os in
4993  cygwin* | mingw* | pw32* | cegcc*)
4994    # FIXME: the MSVC++ port hasn't been tested in a loooong time
4995    # When not using gcc, we currently assume that we are using
4996    # Microsoft Visual C++.
4997    if test yes != "$GCC"; then
4998      with_gnu_ld=no
4999    fi
5000    ;;
5001  interix*)
5002    # we just hope/assume this is gcc and not c89 (= MSVC++)
5003    with_gnu_ld=yes
5004    ;;
5005  openbsd* | bitrig*)
5006    with_gnu_ld=no
5007    ;;
5008  esac
5009
5010  _LT_TAGVAR(ld_shlibs, $1)=yes
5011
5012  # On some targets, GNU ld is compatible enough with the native linker
5013  # that we're better off using the native interface for both.
5014  lt_use_gnu_ld_interface=no
5015  if test yes = "$with_gnu_ld"; then
5016    case $host_os in
5017      aix*)
5018	# The AIX port of GNU ld has always aspired to compatibility
5019	# with the native linker.  However, as the warning in the GNU ld
5020	# block says, versions before 2.19.5* couldn't really create working
5021	# shared libraries, regardless of the interface used.
5022	case `$LD -v 2>&1` in
5023	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
5024	  *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;;
5025	  *\ \(GNU\ Binutils\)\ [[3-9]]*) ;;
5026	  *)
5027	    lt_use_gnu_ld_interface=yes
5028	    ;;
5029	esac
5030	;;
5031      *)
5032	lt_use_gnu_ld_interface=yes
5033	;;
5034    esac
5035  fi
5036
5037  if test yes = "$lt_use_gnu_ld_interface"; then
5038    # If archive_cmds runs LD, not CC, wlarc should be empty
5039    wlarc='$wl'
5040
5041    # Set some defaults for GNU ld with shared library support. These
5042    # are reset later if shared libraries are not supported. Putting them
5043    # here allows them to be overridden if necessary.
5044    runpath_var=LD_RUN_PATH
5045    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
5046    _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
5047    # ancient GNU ld didn't support --whole-archive et. al.
5048    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
5049      _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
5050    else
5051      _LT_TAGVAR(whole_archive_flag_spec, $1)=
5052    fi
5053    supports_anon_versioning=no
5054    case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
5055      *GNU\ gold*) supports_anon_versioning=yes ;;
5056      *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
5057      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
5058      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
5059      *\ 2.11.*) ;; # other 2.11 versions
5060      *) supports_anon_versioning=yes ;;
5061    esac
5062
5063    # See if GNU ld supports shared libraries.
5064    case $host_os in
5065    aix[[3-9]]*)
5066      # On AIX/PPC, the GNU linker is very broken
5067      if test ia64 != "$host_cpu"; then
5068	_LT_TAGVAR(ld_shlibs, $1)=no
5069	cat <<_LT_EOF 1>&2
5070
5071*** Warning: the GNU linker, at least up to release 2.19, is reported
5072*** to be unable to reliably create shared libraries on AIX.
5073*** Therefore, libtool is disabling shared libraries support.  If you
5074*** really care for shared libraries, you may want to install binutils
5075*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
5076*** You will then need to restart the configuration process.
5077
5078_LT_EOF
5079      fi
5080      ;;
5081
5082    amigaos*)
5083      case $host_cpu in
5084      powerpc)
5085            # see comment about AmigaOS4 .so support
5086            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
5087            _LT_TAGVAR(archive_expsym_cmds, $1)=''
5088        ;;
5089      m68k)
5090            _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)'
5091            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5092            _LT_TAGVAR(hardcode_minus_L, $1)=yes
5093        ;;
5094      esac
5095      ;;
5096
5097    beos*)
5098      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5099	_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5100	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5101	# support --undefined.  This deserves some investigation.  FIXME
5102	_LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
5103      else
5104	_LT_TAGVAR(ld_shlibs, $1)=no
5105      fi
5106      ;;
5107
5108    cygwin* | mingw* | pw32* | cegcc*)
5109      # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
5110      # as there is no search path for DLLs.
5111      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5112      _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols'
5113      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5114      _LT_TAGVAR(always_export_symbols, $1)=no
5115      _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5116      _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
5117      _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
5118
5119      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
5120        _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'
5121	# If the export-symbols file already is a .def file, use it as
5122	# is; otherwise, prepend EXPORTS...
5123	_LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
5124          cp $export_symbols $output_objdir/$soname.def;
5125        else
5126          echo EXPORTS > $output_objdir/$soname.def;
5127          cat $export_symbols >> $output_objdir/$soname.def;
5128        fi~
5129        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5130      else
5131	_LT_TAGVAR(ld_shlibs, $1)=no
5132      fi
5133      ;;
5134
5135    haiku*)
5136      _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
5137      _LT_TAGVAR(link_all_deplibs, $1)=yes
5138      ;;
5139
5140    interix[[3-9]]*)
5141      _LT_TAGVAR(hardcode_direct, $1)=no
5142      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5143      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
5144      _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
5145      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
5146      # Instead, shared libraries are loaded at an image base (0x10000000 by
5147      # default) and relocated if they conflict, which is a slow very memory
5148      # consuming and fragmenting process.  To avoid this, we pick a random,
5149      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
5150      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
5151      _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'
5152      _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'
5153      ;;
5154
5155    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
5156      tmp_diet=no
5157      if test linux-dietlibc = "$host_os"; then
5158	case $cc_basename in
5159	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
5160	esac
5161      fi
5162      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
5163	 && test no = "$tmp_diet"
5164      then
5165	tmp_addflag=' $pic_flag'
5166	tmp_sharedflag='-shared'
5167	case $cc_basename,$host_cpu in
5168        pgcc*)				# Portland Group C compiler
5169	  _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
5170	  tmp_addflag=' $pic_flag'
5171	  ;;
5172	pgf77* | pgf90* | pgf95* | pgfortran*)
5173					# Portland Group f77 and f90 compilers
5174	  _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
5175	  tmp_addflag=' $pic_flag -Mnomain' ;;
5176	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
5177	  tmp_addflag=' -i_dynamic' ;;
5178	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
5179	  tmp_addflag=' -i_dynamic -nofor_main' ;;
5180	ifc* | ifort*)			# Intel Fortran compiler
5181	  tmp_addflag=' -nofor_main' ;;
5182	lf95*)				# Lahey Fortran 8.1
5183	  _LT_TAGVAR(whole_archive_flag_spec, $1)=
5184	  tmp_sharedflag='--shared' ;;
5185        nagfor*)                        # NAGFOR 5.3
5186          tmp_sharedflag='-Wl,-shared' ;;
5187	xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
5188	  tmp_sharedflag='-qmkshrobj'
5189	  tmp_addflag= ;;
5190	nvcc*)	# Cuda Compiler Driver 2.2
5191	  _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
5192	  _LT_TAGVAR(compiler_needs_object, $1)=yes
5193	  ;;
5194	esac
5195	case `$CC -V 2>&1 | sed 5q` in
5196	*Sun\ C*)			# Sun C 5.9
5197	  _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
5198	  _LT_TAGVAR(compiler_needs_object, $1)=yes
5199	  tmp_sharedflag='-G' ;;
5200	*Sun\ F*)			# Sun Fortran 8.3
5201	  tmp_sharedflag='-G' ;;
5202	esac
5203	_LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
5204
5205        if test yes = "$supports_anon_versioning"; then
5206          _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
5207            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5208            echo "local: *; };" >> $output_objdir/$libname.ver~
5209            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
5210        fi
5211
5212	case $cc_basename in
5213	xlf* | bgf* | bgxlf* | mpixlf*)
5214	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
5215	  _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
5216	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
5217	  _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
5218	  if test yes = "$supports_anon_versioning"; then
5219	    _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
5220              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5221              echo "local: *; };" >> $output_objdir/$libname.ver~
5222              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
5223	  fi
5224	  ;;
5225	esac
5226      else
5227        _LT_TAGVAR(ld_shlibs, $1)=no
5228      fi
5229      ;;
5230
5231    netbsd*)
5232      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
5233	_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5234	wlarc=
5235      else
5236	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
5237	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
5238      fi
5239      ;;
5240
5241    solaris*)
5242      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
5243	_LT_TAGVAR(ld_shlibs, $1)=no
5244	cat <<_LT_EOF 1>&2
5245
5246*** Warning: The releases 2.8.* of the GNU linker cannot reliably
5247*** create shared libraries on Solaris systems.  Therefore, libtool
5248*** is disabling shared libraries support.  We urge you to upgrade GNU
5249*** binutils to release 2.9.1 or newer.  Another option is to modify
5250*** your PATH or compiler configuration so that the native linker is
5251*** used, and then restart.
5252
5253_LT_EOF
5254      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5255	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
5256	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
5257      else
5258	_LT_TAGVAR(ld_shlibs, $1)=no
5259      fi
5260      ;;
5261
5262    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
5263      case `$LD -v 2>&1` in
5264        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
5265	_LT_TAGVAR(ld_shlibs, $1)=no
5266	cat <<_LT_EOF 1>&2
5267
5268*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
5269*** reliably create shared libraries on SCO systems.  Therefore, libtool
5270*** is disabling shared libraries support.  We urge you to upgrade GNU
5271*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
5272*** your PATH or compiler configuration so that the native linker is
5273*** used, and then restart.
5274
5275_LT_EOF
5276	;;
5277	*)
5278	  # For security reasons, it is highly recommended that you always
5279	  # use absolute paths for naming shared libraries, and exclude the
5280	  # DT_RUNPATH tag from executables and libraries.  But doing so
5281	  # requires that you compile everything twice, which is a pain.
5282	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5283	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
5284	    _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
5285	    _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'
5286	  else
5287	    _LT_TAGVAR(ld_shlibs, $1)=no
5288	  fi
5289	;;
5290      esac
5291      ;;
5292
5293    sunos4*)
5294      _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5295      wlarc=
5296      _LT_TAGVAR(hardcode_direct, $1)=yes
5297      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5298      ;;
5299
5300    *)
5301      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5302	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
5303	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
5304      else
5305	_LT_TAGVAR(ld_shlibs, $1)=no
5306      fi
5307      ;;
5308    esac
5309
5310    if test no = "$_LT_TAGVAR(ld_shlibs, $1)"; then
5311      runpath_var=
5312      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5313      _LT_TAGVAR(export_dynamic_flag_spec, $1)=
5314      _LT_TAGVAR(whole_archive_flag_spec, $1)=
5315    fi
5316  else
5317    # PORTME fill in a description of your system's linker (not GNU ld)
5318    case $host_os in
5319    aix3*)
5320      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5321      _LT_TAGVAR(always_export_symbols, $1)=yes
5322      _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'
5323      # Note: this linker hardcodes the directories in LIBPATH if there
5324      # are no directories specified by -L.
5325      _LT_TAGVAR(hardcode_minus_L, $1)=yes
5326      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
5327	# Neither direct hardcoding nor static linking is supported with a
5328	# broken collect2.
5329	_LT_TAGVAR(hardcode_direct, $1)=unsupported
5330      fi
5331      ;;
5332
5333    aix[[4-9]]*)
5334      if test ia64 = "$host_cpu"; then
5335	# On IA64, the linker does run time linking by default, so we don't
5336	# have to do anything special.
5337	aix_use_runtimelinking=no
5338	exp_sym_flag='-Bexport'
5339	no_entry_flag=
5340      else
5341	# If we're using GNU nm, then we don't want the "-C" option.
5342	# -C means demangle to AIX nm, but means don't demangle with GNU nm
5343	# Also, AIX nm treats weak defined symbols like other global
5344	# defined symbols, whereas GNU nm marks them as "W".
5345	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
5346	  _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
5347	else
5348	  _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'
5349	fi
5350	aix_use_runtimelinking=no
5351
5352	# Test if we are trying to use run time linking or normal
5353	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
5354	# need to do runtime linking.
5355	case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
5356	  for ld_flag in $LDFLAGS; do
5357	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
5358	    aix_use_runtimelinking=yes
5359	    break
5360	  fi
5361	  done
5362	  ;;
5363	esac
5364
5365	exp_sym_flag='-bexport'
5366	no_entry_flag='-bnoentry'
5367      fi
5368
5369      # When large executables or shared objects are built, AIX ld can
5370      # have problems creating the table of contents.  If linking a library
5371      # or program results in "error TOC overflow" add -mminimal-toc to
5372      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
5373      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5374
5375      _LT_TAGVAR(archive_cmds, $1)=''
5376      _LT_TAGVAR(hardcode_direct, $1)=yes
5377      _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5378      _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
5379      _LT_TAGVAR(link_all_deplibs, $1)=yes
5380      _LT_TAGVAR(file_list_spec, $1)='$wl-f,'
5381
5382      if test yes = "$GCC"; then
5383	case $host_os in aix4.[[012]]|aix4.[[012]].*)
5384	# We only want to do this on AIX 4.2 and lower, the check
5385	# below for broken collect2 doesn't work under 4.3+
5386	  collect2name=`$CC -print-prog-name=collect2`
5387	  if test -f "$collect2name" &&
5388	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
5389	  then
5390	  # We have reworked collect2
5391	  :
5392	  else
5393	  # We have old collect2
5394	  _LT_TAGVAR(hardcode_direct, $1)=unsupported
5395	  # It fails to find uninstalled libraries when the uninstalled
5396	  # path is not listed in the libpath.  Setting hardcode_minus_L
5397	  # to unsupported forces relinking
5398	  _LT_TAGVAR(hardcode_minus_L, $1)=yes
5399	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5400	  _LT_TAGVAR(hardcode_libdir_separator, $1)=
5401	  fi
5402	  ;;
5403	esac
5404	shared_flag='-shared'
5405	if test yes = "$aix_use_runtimelinking"; then
5406	  shared_flag="$shared_flag "'$wl-G'
5407	fi
5408      else
5409	# not using gcc
5410	if test ia64 = "$host_cpu"; then
5411	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
5412	# chokes on -Wl,-G. The following line is correct:
5413	  shared_flag='-G'
5414	else
5415	  if test yes = "$aix_use_runtimelinking"; then
5416	    shared_flag='$wl-G'
5417	  else
5418	    shared_flag='$wl-bM:SRE'
5419	  fi
5420	fi
5421      fi
5422
5423      _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall'
5424      # It seems that -bexpall does not export symbols beginning with
5425      # underscore (_), so it is better to generate a list of symbols to export.
5426      _LT_TAGVAR(always_export_symbols, $1)=yes
5427      if test yes = "$aix_use_runtimelinking"; then
5428	# Warning - without using the other runtime loading flags (-brtl),
5429	# -berok will link without error, but may produce a broken library.
5430	_LT_TAGVAR(allow_undefined_flag, $1)='-berok'
5431        # Determine the default libpath from the value encoded in an
5432        # empty executable.
5433        _LT_SYS_MODULE_PATH_AIX([$1])
5434        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
5435        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
5436      else
5437	if test ia64 = "$host_cpu"; then
5438	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib'
5439	  _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
5440	  _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"
5441	else
5442	 # Determine the default libpath from the value encoded in an
5443	 # empty executable.
5444	 _LT_SYS_MODULE_PATH_AIX([$1])
5445	 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
5446	  # Warning - without using the other run time loading flags,
5447	  # -berok will link without error, but may produce a broken library.
5448	  _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok'
5449	  _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok'
5450	  if test yes = "$with_gnu_ld"; then
5451	    # We only use this code for GNU lds that support --whole-archive.
5452	    _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive'
5453	  else
5454	    # Exported symbols can be pulled into shared objects from archives
5455	    _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
5456	  fi
5457	  _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5458	  # This is similar to how AIX traditionally builds its shared libraries.
5459	  _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'
5460	fi
5461      fi
5462      ;;
5463
5464    amigaos*)
5465      case $host_cpu in
5466      powerpc)
5467            # see comment about AmigaOS4 .so support
5468            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
5469            _LT_TAGVAR(archive_expsym_cmds, $1)=''
5470        ;;
5471      m68k)
5472            _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)'
5473            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5474            _LT_TAGVAR(hardcode_minus_L, $1)=yes
5475        ;;
5476      esac
5477      ;;
5478
5479    bsdi[[45]]*)
5480      _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
5481      ;;
5482
5483    cygwin* | mingw* | pw32* | cegcc*)
5484      # When not using gcc, we currently assume that we are using
5485      # Microsoft Visual C++.
5486      # hardcode_libdir_flag_spec is actually meaningless, as there is
5487      # no search path for DLLs.
5488      case $cc_basename in
5489      cl*)
5490	# Native MSVC
5491	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
5492	_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5493	_LT_TAGVAR(always_export_symbols, $1)=yes
5494	_LT_TAGVAR(file_list_spec, $1)='@'
5495	# Tell ltmain to make .lib files, not .a files.
5496	libext=lib
5497	# Tell ltmain to make .dll files, not .so files.
5498	shrext_cmds=.dll
5499	# FIXME: Setting linknames here is a bad hack.
5500	_LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
5501	_LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
5502            cp "$export_symbols" "$output_objdir/$soname.def";
5503            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
5504          else
5505            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
5506          fi~
5507          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
5508          linknames='
5509	# The linker will not automatically build a static lib if we build a DLL.
5510	# _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
5511	_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5512	_LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
5513	_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'
5514	# Don't use ranlib
5515	_LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
5516	_LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
5517          lt_tool_outputfile="@TOOL_OUTPUT@"~
5518          case $lt_outputfile in
5519            *.exe|*.EXE) ;;
5520            *)
5521              lt_outputfile=$lt_outputfile.exe
5522              lt_tool_outputfile=$lt_tool_outputfile.exe
5523              ;;
5524          esac~
5525          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
5526            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
5527            $RM "$lt_outputfile.manifest";
5528          fi'
5529	;;
5530      *)
5531	# Assume MSVC wrapper
5532	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
5533	_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5534	# Tell ltmain to make .lib files, not .a files.
5535	libext=lib
5536	# Tell ltmain to make .dll files, not .so files.
5537	shrext_cmds=.dll
5538	# FIXME: Setting linknames here is a bad hack.
5539	_LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
5540	# The linker will automatically build a .lib file if we build a DLL.
5541	_LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
5542	# FIXME: Should let the user specify the lib program.
5543	_LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
5544	_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5545	;;
5546      esac
5547      ;;
5548
5549    darwin* | rhapsody*)
5550      _LT_DARWIN_LINKER_FEATURES($1)
5551      ;;
5552
5553    dgux*)
5554      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5555      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5556      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5557      ;;
5558
5559    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5560    # support.  Future versions do this automatically, but an explicit c++rt0.o
5561    # does not break anything, and helps significantly (at the cost of a little
5562    # extra space).
5563    freebsd2.2*)
5564      _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5565      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5566      _LT_TAGVAR(hardcode_direct, $1)=yes
5567      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5568      ;;
5569
5570    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5571    freebsd2.*)
5572      _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5573      _LT_TAGVAR(hardcode_direct, $1)=yes
5574      _LT_TAGVAR(hardcode_minus_L, $1)=yes
5575      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5576      ;;
5577
5578    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5579    freebsd* | dragonfly*)
5580      _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5581      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5582      _LT_TAGVAR(hardcode_direct, $1)=yes
5583      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5584      ;;
5585
5586    hpux9*)
5587      if test yes = "$GCC"; then
5588	_LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
5589      else
5590	_LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
5591      fi
5592      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
5593      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5594      _LT_TAGVAR(hardcode_direct, $1)=yes
5595
5596      # hardcode_minus_L: Not really in the search PATH,
5597      # but as the default location of the library.
5598      _LT_TAGVAR(hardcode_minus_L, $1)=yes
5599      _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
5600      ;;
5601
5602    hpux10*)
5603      if test yes,no = "$GCC,$with_gnu_ld"; then
5604	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5605      else
5606	_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
5607      fi
5608      if test no = "$with_gnu_ld"; then
5609	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
5610	_LT_TAGVAR(hardcode_libdir_separator, $1)=:
5611	_LT_TAGVAR(hardcode_direct, $1)=yes
5612	_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5613	_LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
5614	# hardcode_minus_L: Not really in the search PATH,
5615	# but as the default location of the library.
5616	_LT_TAGVAR(hardcode_minus_L, $1)=yes
5617      fi
5618      ;;
5619
5620    hpux11*)
5621      if test yes,no = "$GCC,$with_gnu_ld"; then
5622	case $host_cpu in
5623	hppa*64*)
5624	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
5625	  ;;
5626	ia64*)
5627	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5628	  ;;
5629	*)
5630	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5631	  ;;
5632	esac
5633      else
5634	case $host_cpu in
5635	hppa*64*)
5636	  _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
5637	  ;;
5638	ia64*)
5639	  _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5640	  ;;
5641	*)
5642	m4_if($1, [], [
5643	  # Older versions of the 11.00 compiler do not understand -b yet
5644	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
5645	  _LT_LINKER_OPTION([if $CC understands -b],
5646	    _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b],
5647	    [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
5648	    [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])],
5649	  [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])
5650	  ;;
5651	esac
5652      fi
5653      if test no = "$with_gnu_ld"; then
5654	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
5655	_LT_TAGVAR(hardcode_libdir_separator, $1)=:
5656
5657	case $host_cpu in
5658	hppa*64*|ia64*)
5659	  _LT_TAGVAR(hardcode_direct, $1)=no
5660	  _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5661	  ;;
5662	*)
5663	  _LT_TAGVAR(hardcode_direct, $1)=yes
5664	  _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5665	  _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
5666
5667	  # hardcode_minus_L: Not really in the search PATH,
5668	  # but as the default location of the library.
5669	  _LT_TAGVAR(hardcode_minus_L, $1)=yes
5670	  ;;
5671	esac
5672      fi
5673      ;;
5674
5675    irix5* | irix6* | nonstopux*)
5676      if test yes = "$GCC"; then
5677	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
5678	# Try to use the -exported_symbol ld option, if it does not
5679	# work, assume that -exports_file does not work either and
5680	# implicitly export all symbols.
5681	# This should be the same for all languages, so no per-tag cache variable.
5682	AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
5683	  [lt_cv_irix_exported_symbol],
5684	  [save_LDFLAGS=$LDFLAGS
5685	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
5686	   AC_LINK_IFELSE(
5687	     [AC_LANG_SOURCE(
5688	        [AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
5689			      [C++], [[int foo (void) { return 0; }]],
5690			      [Fortran 77], [[
5691      subroutine foo
5692      end]],
5693			      [Fortran], [[
5694      subroutine foo
5695      end]])])],
5696	      [lt_cv_irix_exported_symbol=yes],
5697	      [lt_cv_irix_exported_symbol=no])
5698           LDFLAGS=$save_LDFLAGS])
5699	if test yes = "$lt_cv_irix_exported_symbol"; then
5700          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
5701	fi
5702      else
5703	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
5704	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
5705      fi
5706      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5707      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
5708      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5709      _LT_TAGVAR(inherit_rpath, $1)=yes
5710      _LT_TAGVAR(link_all_deplibs, $1)=yes
5711      ;;
5712
5713    netbsd*)
5714      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
5715	_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
5716      else
5717	_LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
5718      fi
5719      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5720      _LT_TAGVAR(hardcode_direct, $1)=yes
5721      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5722      ;;
5723
5724    newsos6)
5725      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5726      _LT_TAGVAR(hardcode_direct, $1)=yes
5727      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
5728      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5729      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5730      ;;
5731
5732    *nto* | *qnx*)
5733      ;;
5734
5735    openbsd* | bitrig*)
5736      if test -f /usr/libexec/ld.so; then
5737	_LT_TAGVAR(hardcode_direct, $1)=yes
5738	_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5739	_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5740	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5741	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5742	  _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
5743	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
5744	  _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
5745	else
5746	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5747	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
5748	fi
5749      else
5750	_LT_TAGVAR(ld_shlibs, $1)=no
5751      fi
5752      ;;
5753
5754    os2*)
5755      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5756      _LT_TAGVAR(hardcode_minus_L, $1)=yes
5757      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5758      _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'
5759      _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5760      ;;
5761
5762    osf3*)
5763      if test yes = "$GCC"; then
5764	_LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
5765	_LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
5766      else
5767	_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5768	_LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
5769      fi
5770      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5771      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
5772      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5773      ;;
5774
5775    osf4* | osf5*)	# as osf3* with the addition of -msym flag
5776      if test yes = "$GCC"; then
5777	_LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
5778	_LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
5779	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
5780      else
5781	_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5782	_LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
5783	_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~
5784          $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
5785
5786	# Both c and cxx compiler support -rpath directly
5787	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
5788      fi
5789      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5790      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5791      ;;
5792
5793    solaris*)
5794      _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
5795      if test yes = "$GCC"; then
5796	wlarc='$wl'
5797	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
5798	_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5799          $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
5800      else
5801	case `$CC -V 2>&1` in
5802	*"Compilers 5.0"*)
5803	  wlarc=''
5804	  _LT_TAGVAR(archive_cmds, $1)='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
5805	  _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5806            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
5807	  ;;
5808	*)
5809	  wlarc='$wl'
5810	  _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
5811	  _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5812            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
5813	  ;;
5814	esac
5815      fi
5816      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5817      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5818      case $host_os in
5819      solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
5820      *)
5821	# The compiler driver will combine and reorder linker options,
5822	# but understands '-z linker_flag'.  GCC discards it without '$wl',
5823	# but is careful enough not to reorder.
5824	# Supported since Solaris 2.6 (maybe 2.5.1?)
5825	if test yes = "$GCC"; then
5826	  _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
5827	else
5828	  _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
5829	fi
5830	;;
5831      esac
5832      _LT_TAGVAR(link_all_deplibs, $1)=yes
5833      ;;
5834
5835    sunos4*)
5836      if test sequent = "$host_vendor"; then
5837	# Use $CC to link under sequent, because it throws in some extra .o
5838	# files that make .init and .fini sections work.
5839	_LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5840      else
5841	_LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5842      fi
5843      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5844      _LT_TAGVAR(hardcode_direct, $1)=yes
5845      _LT_TAGVAR(hardcode_minus_L, $1)=yes
5846      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5847      ;;
5848
5849    sysv4)
5850      case $host_vendor in
5851	sni)
5852	  _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5853	  _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
5854	;;
5855	siemens)
5856	  ## LD is ld it makes a PLAMLIB
5857	  ## CC just makes a GrossModule.
5858	  _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5859	  _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
5860	  _LT_TAGVAR(hardcode_direct, $1)=no
5861        ;;
5862	motorola)
5863	  _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5864	  _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
5865	;;
5866      esac
5867      runpath_var='LD_RUN_PATH'
5868      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5869      ;;
5870
5871    sysv4.3*)
5872      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5873      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5874      _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
5875      ;;
5876
5877    sysv4*MP*)
5878      if test -d /usr/nec; then
5879	_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5880	_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5881	runpath_var=LD_RUN_PATH
5882	hardcode_runpath_var=yes
5883	_LT_TAGVAR(ld_shlibs, $1)=yes
5884      fi
5885      ;;
5886
5887    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
5888      _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
5889      _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5890      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5891      runpath_var='LD_RUN_PATH'
5892
5893      if test yes = "$GCC"; then
5894	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5895	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5896      else
5897	_LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5898	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5899      fi
5900      ;;
5901
5902    sysv5* | sco3.2v5* | sco5v6*)
5903      # Note: We CANNOT use -z defs as we might desire, because we do not
5904      # link with -lc, and that would cause any symbols used from libc to
5905      # always be unresolved, which means just about no library would
5906      # ever link correctly.  If we're not using GNU ld we use -z text
5907      # though, which does catch some bad symbols but isn't as heavy-handed
5908      # as -z defs.
5909      _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
5910      _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs'
5911      _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5912      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5913      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir'
5914      _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
5915      _LT_TAGVAR(link_all_deplibs, $1)=yes
5916      _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport'
5917      runpath_var='LD_RUN_PATH'
5918
5919      if test yes = "$GCC"; then
5920	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5921	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5922      else
5923	_LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5924	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5925      fi
5926      ;;
5927
5928    uts4*)
5929      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5930      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5931      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5932      ;;
5933
5934    *)
5935      _LT_TAGVAR(ld_shlibs, $1)=no
5936      ;;
5937    esac
5938
5939    if test sni = "$host_vendor"; then
5940      case $host in
5941      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5942	_LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Blargedynsym'
5943	;;
5944      esac
5945    fi
5946  fi
5947])
5948AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
5949test no = "$_LT_TAGVAR(ld_shlibs, $1)" && can_build_shared=no
5950
5951_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
5952
5953_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
5954_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
5955_LT_DECL([], [extract_expsyms_cmds], [2],
5956    [The commands to extract the exported symbol list from a shared archive])
5957
5958#
5959# Do we need to explicitly link libc?
5960#
5961case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
5962x|xyes)
5963  # Assume -lc should be added
5964  _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5965
5966  if test yes,yes = "$GCC,$enable_shared"; then
5967    case $_LT_TAGVAR(archive_cmds, $1) in
5968    *'~'*)
5969      # FIXME: we may have to deal with multi-command sequences.
5970      ;;
5971    '$CC '*)
5972      # Test whether the compiler implicitly links with -lc since on some
5973      # systems, -lgcc has to come before -lc. If gcc already passes -lc
5974      # to ld, don't add -lc before -lgcc.
5975      AC_CACHE_CHECK([whether -lc should be explicitly linked in],
5976	[lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1),
5977	[$RM conftest*
5978	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5979
5980	if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
5981	  soname=conftest
5982	  lib=conftest
5983	  libobjs=conftest.$ac_objext
5984	  deplibs=
5985	  wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
5986	  pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
5987	  compiler_flags=-v
5988	  linker_flags=-v
5989	  verstring=
5990	  output_objdir=.
5991	  libname=conftest
5992	  lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
5993	  _LT_TAGVAR(allow_undefined_flag, $1)=
5994	  if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
5995	  then
5996	    lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no
5997	  else
5998	    lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5999	  fi
6000	  _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
6001	else
6002	  cat conftest.err 1>&5
6003	fi
6004	$RM conftest*
6005	])
6006      _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)
6007      ;;
6008    esac
6009  fi
6010  ;;
6011esac
6012
6013_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
6014    [Whether or not to add -lc for building shared libraries])
6015_LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
6016    [enable_shared_with_static_runtimes], [0],
6017    [Whether or not to disallow shared libs when runtime libs are static])
6018_LT_TAGDECL([], [export_dynamic_flag_spec], [1],
6019    [Compiler flag to allow reflexive dlopens])
6020_LT_TAGDECL([], [whole_archive_flag_spec], [1],
6021    [Compiler flag to generate shared objects directly from archives])
6022_LT_TAGDECL([], [compiler_needs_object], [1],
6023    [Whether the compiler copes with passing no objects directly])
6024_LT_TAGDECL([], [old_archive_from_new_cmds], [2],
6025    [Create an old-style archive from a shared archive])
6026_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
6027    [Create a temporary old-style archive to link instead of a shared archive])
6028_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
6029_LT_TAGDECL([], [archive_expsym_cmds], [2])
6030_LT_TAGDECL([], [module_cmds], [2],
6031    [Commands used to build a loadable module if different from building
6032    a shared archive.])
6033_LT_TAGDECL([], [module_expsym_cmds], [2])
6034_LT_TAGDECL([], [with_gnu_ld], [1],
6035    [Whether we are building with GNU ld or not])
6036_LT_TAGDECL([], [allow_undefined_flag], [1],
6037    [Flag that allows shared libraries with undefined symbols to be built])
6038_LT_TAGDECL([], [no_undefined_flag], [1],
6039    [Flag that enforces no undefined symbols])
6040_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
6041    [Flag to hardcode $libdir into a binary during linking.
6042    This must work even if $libdir does not exist])
6043_LT_TAGDECL([], [hardcode_libdir_separator], [1],
6044    [Whether we need a single "-rpath" flag with a separated argument])
6045_LT_TAGDECL([], [hardcode_direct], [0],
6046    [Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes
6047    DIR into the resulting binary])
6048_LT_TAGDECL([], [hardcode_direct_absolute], [0],
6049    [Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes
6050    DIR into the resulting binary and the resulting library dependency is
6051    "absolute", i.e impossible to change by setting $shlibpath_var if the
6052    library is relocated])
6053_LT_TAGDECL([], [hardcode_minus_L], [0],
6054    [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
6055    into the resulting binary])
6056_LT_TAGDECL([], [hardcode_shlibpath_var], [0],
6057    [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
6058    into the resulting binary])
6059_LT_TAGDECL([], [hardcode_automatic], [0],
6060    [Set to "yes" if building a shared library automatically hardcodes DIR
6061    into the library and all subsequent libraries and executables linked
6062    against it])
6063_LT_TAGDECL([], [inherit_rpath], [0],
6064    [Set to yes if linker adds runtime paths of dependent libraries
6065    to runtime path list])
6066_LT_TAGDECL([], [link_all_deplibs], [0],
6067    [Whether libtool must link a program against all its dependency libraries])
6068_LT_TAGDECL([], [always_export_symbols], [0],
6069    [Set to "yes" if exported symbols are required])
6070_LT_TAGDECL([], [export_symbols_cmds], [2],
6071    [The commands to list exported symbols])
6072_LT_TAGDECL([], [exclude_expsyms], [1],
6073    [Symbols that should not be listed in the preloaded symbols])
6074_LT_TAGDECL([], [include_expsyms], [1],
6075    [Symbols that must always be exported])
6076_LT_TAGDECL([], [prelink_cmds], [2],
6077    [Commands necessary for linking programs (against libraries) with templates])
6078_LT_TAGDECL([], [postlink_cmds], [2],
6079    [Commands necessary for finishing linking programs])
6080_LT_TAGDECL([], [file_list_spec], [1],
6081    [Specify filename containing input files])
6082dnl FIXME: Not yet implemented
6083dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
6084dnl    [Compiler flag to generate thread safe objects])
6085])# _LT_LINKER_SHLIBS
6086
6087
6088# _LT_LANG_C_CONFIG([TAG])
6089# ------------------------
6090# Ensure that the configuration variables for a C compiler are suitably
6091# defined.  These variables are subsequently used by _LT_CONFIG to write
6092# the compiler configuration to 'libtool'.
6093m4_defun([_LT_LANG_C_CONFIG],
6094[m4_require([_LT_DECL_EGREP])dnl
6095lt_save_CC=$CC
6096AC_LANG_PUSH(C)
6097
6098# Source file extension for C test sources.
6099ac_ext=c
6100
6101# Object file extension for compiled C test sources.
6102objext=o
6103_LT_TAGVAR(objext, $1)=$objext
6104
6105# Code to be used in simple compile tests
6106lt_simple_compile_test_code="int some_variable = 0;"
6107
6108# Code to be used in simple link tests
6109lt_simple_link_test_code='int main(){return(0);}'
6110
6111_LT_TAG_COMPILER
6112# Save the default compiler, since it gets overwritten when the other
6113# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6114compiler_DEFAULT=$CC
6115
6116# save warnings/boilerplate of simple test code
6117_LT_COMPILER_BOILERPLATE
6118_LT_LINKER_BOILERPLATE
6119
6120if test -n "$compiler"; then
6121  _LT_COMPILER_NO_RTTI($1)
6122  _LT_COMPILER_PIC($1)
6123  _LT_COMPILER_C_O($1)
6124  _LT_COMPILER_FILE_LOCKS($1)
6125  _LT_LINKER_SHLIBS($1)
6126  _LT_SYS_DYNAMIC_LINKER($1)
6127  _LT_LINKER_HARDCODE_LIBPATH($1)
6128  LT_SYS_DLOPEN_SELF
6129  _LT_CMD_STRIPLIB
6130
6131  # Report what library types will actually be built
6132  AC_MSG_CHECKING([if libtool supports shared libraries])
6133  AC_MSG_RESULT([$can_build_shared])
6134
6135  AC_MSG_CHECKING([whether to build shared libraries])
6136  test no = "$can_build_shared" && enable_shared=no
6137
6138  # On AIX, shared libraries and static libraries use the same namespace, and
6139  # are all built from PIC.
6140  case $host_os in
6141  aix3*)
6142    test yes = "$enable_shared" && enable_static=no
6143    if test -n "$RANLIB"; then
6144      archive_cmds="$archive_cmds~\$RANLIB \$lib"
6145      postinstall_cmds='$RANLIB $lib'
6146    fi
6147    ;;
6148
6149  aix[[4-9]]*)
6150    if test ia64 != "$host_cpu" && test no = "$aix_use_runtimelinking"; then
6151      test yes = "$enable_shared" && enable_static=no
6152    fi
6153    ;;
6154  esac
6155  AC_MSG_RESULT([$enable_shared])
6156
6157  AC_MSG_CHECKING([whether to build static libraries])
6158  # Make sure either enable_shared or enable_static is yes.
6159  test yes = "$enable_shared" || enable_static=yes
6160  AC_MSG_RESULT([$enable_static])
6161
6162  _LT_CONFIG($1)
6163fi
6164AC_LANG_POP
6165CC=$lt_save_CC
6166])# _LT_LANG_C_CONFIG
6167
6168
6169# _LT_LANG_CXX_CONFIG([TAG])
6170# --------------------------
6171# Ensure that the configuration variables for a C++ compiler are suitably
6172# defined.  These variables are subsequently used by _LT_CONFIG to write
6173# the compiler configuration to 'libtool'.
6174m4_defun([_LT_LANG_CXX_CONFIG],
6175[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
6176m4_require([_LT_DECL_EGREP])dnl
6177m4_require([_LT_PATH_MANIFEST_TOOL])dnl
6178if test -n "$CXX" && ( test no != "$CXX" &&
6179    ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
6180    (test g++ != "$CXX"))); then
6181  AC_PROG_CXXCPP
6182else
6183  _lt_caught_CXX_error=yes
6184fi
6185
6186AC_LANG_PUSH(C++)
6187_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6188_LT_TAGVAR(allow_undefined_flag, $1)=
6189_LT_TAGVAR(always_export_symbols, $1)=no
6190_LT_TAGVAR(archive_expsym_cmds, $1)=
6191_LT_TAGVAR(compiler_needs_object, $1)=no
6192_LT_TAGVAR(export_dynamic_flag_spec, $1)=
6193_LT_TAGVAR(hardcode_direct, $1)=no
6194_LT_TAGVAR(hardcode_direct_absolute, $1)=no
6195_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
6196_LT_TAGVAR(hardcode_libdir_separator, $1)=
6197_LT_TAGVAR(hardcode_minus_L, $1)=no
6198_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6199_LT_TAGVAR(hardcode_automatic, $1)=no
6200_LT_TAGVAR(inherit_rpath, $1)=no
6201_LT_TAGVAR(module_cmds, $1)=
6202_LT_TAGVAR(module_expsym_cmds, $1)=
6203_LT_TAGVAR(link_all_deplibs, $1)=unknown
6204_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
6205_LT_TAGVAR(reload_flag, $1)=$reload_flag
6206_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
6207_LT_TAGVAR(no_undefined_flag, $1)=
6208_LT_TAGVAR(whole_archive_flag_spec, $1)=
6209_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6210
6211# Source file extension for C++ test sources.
6212ac_ext=cpp
6213
6214# Object file extension for compiled C++ test sources.
6215objext=o
6216_LT_TAGVAR(objext, $1)=$objext
6217
6218# No sense in running all these tests if we already determined that
6219# the CXX compiler isn't working.  Some variables (like enable_shared)
6220# are currently assumed to apply to all compilers on this platform,
6221# and will be corrupted by setting them based on a non-working compiler.
6222if test yes != "$_lt_caught_CXX_error"; then
6223  # Code to be used in simple compile tests
6224  lt_simple_compile_test_code="int some_variable = 0;"
6225
6226  # Code to be used in simple link tests
6227  lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
6228
6229  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
6230  _LT_TAG_COMPILER
6231
6232  # save warnings/boilerplate of simple test code
6233  _LT_COMPILER_BOILERPLATE
6234  _LT_LINKER_BOILERPLATE
6235
6236  # Allow CC to be a program name with arguments.
6237  lt_save_CC=$CC
6238  lt_save_CFLAGS=$CFLAGS
6239  lt_save_LD=$LD
6240  lt_save_GCC=$GCC
6241  GCC=$GXX
6242  lt_save_with_gnu_ld=$with_gnu_ld
6243  lt_save_path_LD=$lt_cv_path_LD
6244  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
6245    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
6246  else
6247    $as_unset lt_cv_prog_gnu_ld
6248  fi
6249  if test -n "${lt_cv_path_LDCXX+set}"; then
6250    lt_cv_path_LD=$lt_cv_path_LDCXX
6251  else
6252    $as_unset lt_cv_path_LD
6253  fi
6254  test -z "${LDCXX+set}" || LD=$LDCXX
6255  CC=${CXX-"c++"}
6256  CFLAGS=$CXXFLAGS
6257  compiler=$CC
6258  _LT_TAGVAR(compiler, $1)=$CC
6259  _LT_CC_BASENAME([$compiler])
6260
6261  if test -n "$compiler"; then
6262    # We don't want -fno-exception when compiling C++ code, so set the
6263    # no_builtin_flag separately
6264    if test yes = "$GXX"; then
6265      _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
6266    else
6267      _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
6268    fi
6269
6270    if test yes = "$GXX"; then
6271      # Set up default GNU C++ configuration
6272
6273      LT_PATH_LD
6274
6275      # Check if GNU C++ uses GNU ld as the underlying linker, since the
6276      # archiving commands below assume that GNU ld is being used.
6277      if test yes = "$with_gnu_ld"; then
6278        _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
6279        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
6280
6281        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
6282        _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
6283
6284        # If archive_cmds runs LD, not CC, wlarc should be empty
6285        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
6286        #     investigate it a little bit more. (MM)
6287        wlarc='$wl'
6288
6289        # ancient GNU ld didn't support --whole-archive et. al.
6290        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
6291	  $GREP 'no-whole-archive' > /dev/null; then
6292          _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
6293        else
6294          _LT_TAGVAR(whole_archive_flag_spec, $1)=
6295        fi
6296      else
6297        with_gnu_ld=no
6298        wlarc=
6299
6300        # A generic and very simple default shared library creation
6301        # command for GNU C++ for the case where it uses the native
6302        # linker, instead of GNU ld.  If possible, this setting should
6303        # overridden to take advantage of the native linker features on
6304        # the platform it is being used on.
6305        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
6306      fi
6307
6308      # Commands to make compiler produce verbose output that lists
6309      # what "hidden" libraries, object files and flags are used when
6310      # linking a shared library.
6311      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
6312
6313    else
6314      GXX=no
6315      with_gnu_ld=no
6316      wlarc=
6317    fi
6318
6319    # PORTME: fill in a description of your system's C++ link characteristics
6320    AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
6321    _LT_TAGVAR(ld_shlibs, $1)=yes
6322    case $host_os in
6323      aix3*)
6324        # FIXME: insert proper C++ library support
6325        _LT_TAGVAR(ld_shlibs, $1)=no
6326        ;;
6327      aix[[4-9]]*)
6328        if test ia64 = "$host_cpu"; then
6329          # On IA64, the linker does run time linking by default, so we don't
6330          # have to do anything special.
6331          aix_use_runtimelinking=no
6332          exp_sym_flag='-Bexport'
6333          no_entry_flag=
6334        else
6335          aix_use_runtimelinking=no
6336
6337          # Test if we are trying to use run time linking or normal
6338          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6339          # need to do runtime linking.
6340          case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
6341	    for ld_flag in $LDFLAGS; do
6342	      case $ld_flag in
6343	      *-brtl*)
6344	        aix_use_runtimelinking=yes
6345	        break
6346	        ;;
6347	      esac
6348	    done
6349	    ;;
6350          esac
6351
6352          exp_sym_flag='-bexport'
6353          no_entry_flag='-bnoentry'
6354        fi
6355
6356        # When large executables or shared objects are built, AIX ld can
6357        # have problems creating the table of contents.  If linking a library
6358        # or program results in "error TOC overflow" add -mminimal-toc to
6359        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6360        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6361
6362        _LT_TAGVAR(archive_cmds, $1)=''
6363        _LT_TAGVAR(hardcode_direct, $1)=yes
6364        _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6365        _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
6366        _LT_TAGVAR(link_all_deplibs, $1)=yes
6367        _LT_TAGVAR(file_list_spec, $1)='$wl-f,'
6368
6369        if test yes = "$GXX"; then
6370          case $host_os in aix4.[[012]]|aix4.[[012]].*)
6371          # We only want to do this on AIX 4.2 and lower, the check
6372          # below for broken collect2 doesn't work under 4.3+
6373	  collect2name=`$CC -print-prog-name=collect2`
6374	  if test -f "$collect2name" &&
6375	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
6376	  then
6377	    # We have reworked collect2
6378	    :
6379	  else
6380	    # We have old collect2
6381	    _LT_TAGVAR(hardcode_direct, $1)=unsupported
6382	    # It fails to find uninstalled libraries when the uninstalled
6383	    # path is not listed in the libpath.  Setting hardcode_minus_L
6384	    # to unsupported forces relinking
6385	    _LT_TAGVAR(hardcode_minus_L, $1)=yes
6386	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6387	    _LT_TAGVAR(hardcode_libdir_separator, $1)=
6388	  fi
6389          esac
6390          shared_flag='-shared'
6391	  if test yes = "$aix_use_runtimelinking"; then
6392	    shared_flag=$shared_flag' $wl-G'
6393	  fi
6394        else
6395          # not using gcc
6396          if test ia64 = "$host_cpu"; then
6397	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6398	  # chokes on -Wl,-G. The following line is correct:
6399	  shared_flag='-G'
6400          else
6401	    if test yes = "$aix_use_runtimelinking"; then
6402	      shared_flag='$wl-G'
6403	    else
6404	      shared_flag='$wl-bM:SRE'
6405	    fi
6406          fi
6407        fi
6408
6409        _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall'
6410        # It seems that -bexpall does not export symbols beginning with
6411        # underscore (_), so it is better to generate a list of symbols to
6412	# export.
6413        _LT_TAGVAR(always_export_symbols, $1)=yes
6414        if test yes = "$aix_use_runtimelinking"; then
6415          # Warning - without using the other runtime loading flags (-brtl),
6416          # -berok will link without error, but may produce a broken library.
6417          _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
6418          # Determine the default libpath from the value encoded in an empty
6419          # executable.
6420          _LT_SYS_MODULE_PATH_AIX([$1])
6421          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
6422
6423          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
6424        else
6425          if test ia64 = "$host_cpu"; then
6426	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib'
6427	    _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
6428	    _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"
6429          else
6430	    # Determine the default libpath from the value encoded in an
6431	    # empty executable.
6432	    _LT_SYS_MODULE_PATH_AIX([$1])
6433	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
6434	    # Warning - without using the other run time loading flags,
6435	    # -berok will link without error, but may produce a broken library.
6436	    _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok'
6437	    _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok'
6438	    if test yes = "$with_gnu_ld"; then
6439	      # We only use this code for GNU lds that support --whole-archive.
6440	      _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive'
6441	    else
6442	      # Exported symbols can be pulled into shared objects from archives
6443	      _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
6444	    fi
6445	    _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6446	    # This is similar to how AIX traditionally builds its shared
6447	    # libraries.
6448	    _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'
6449          fi
6450        fi
6451        ;;
6452
6453      beos*)
6454	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6455	  _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6456	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6457	  # support --undefined.  This deserves some investigation.  FIXME
6458	  _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
6459	else
6460	  _LT_TAGVAR(ld_shlibs, $1)=no
6461	fi
6462	;;
6463
6464      chorus*)
6465        case $cc_basename in
6466          *)
6467	  # FIXME: insert proper C++ library support
6468	  _LT_TAGVAR(ld_shlibs, $1)=no
6469	  ;;
6470        esac
6471        ;;
6472
6473      cygwin* | mingw* | pw32* | cegcc*)
6474	case $GXX,$cc_basename in
6475	,cl* | no,cl*)
6476	  # Native MSVC
6477	  # hardcode_libdir_flag_spec is actually meaningless, as there is
6478	  # no search path for DLLs.
6479	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
6480	  _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6481	  _LT_TAGVAR(always_export_symbols, $1)=yes
6482	  _LT_TAGVAR(file_list_spec, $1)='@'
6483	  # Tell ltmain to make .lib files, not .a files.
6484	  libext=lib
6485	  # Tell ltmain to make .dll files, not .so files.
6486	  shrext_cmds=.dll
6487	  # FIXME: Setting linknames here is a bad hack.
6488	  _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
6489	  _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
6490              cp "$export_symbols" "$output_objdir/$soname.def";
6491              echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
6492            else
6493              $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
6494            fi~
6495            $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
6496            linknames='
6497	  # The linker will not automatically build a static lib if we build a DLL.
6498	  # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
6499	  _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6500	  # Don't use ranlib
6501	  _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
6502	  _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
6503            lt_tool_outputfile="@TOOL_OUTPUT@"~
6504            case $lt_outputfile in
6505              *.exe|*.EXE) ;;
6506              *)
6507                lt_outputfile=$lt_outputfile.exe
6508                lt_tool_outputfile=$lt_tool_outputfile.exe
6509                ;;
6510            esac~
6511            func_to_tool_file "$lt_outputfile"~
6512            if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
6513              $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
6514              $RM "$lt_outputfile.manifest";
6515            fi'
6516	  ;;
6517	*)
6518	  # g++
6519	  # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
6520	  # as there is no search path for DLLs.
6521	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6522	  _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols'
6523	  _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6524	  _LT_TAGVAR(always_export_symbols, $1)=no
6525	  _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6526
6527	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6528	    _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'
6529	    # If the export-symbols file already is a .def file, use it as
6530	    # is; otherwise, prepend EXPORTS...
6531	    _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
6532              cp $export_symbols $output_objdir/$soname.def;
6533            else
6534              echo EXPORTS > $output_objdir/$soname.def;
6535              cat $export_symbols >> $output_objdir/$soname.def;
6536            fi~
6537            $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'
6538	  else
6539	    _LT_TAGVAR(ld_shlibs, $1)=no
6540	  fi
6541	  ;;
6542	esac
6543	;;
6544      darwin* | rhapsody*)
6545        _LT_DARWIN_LINKER_FEATURES($1)
6546	;;
6547
6548      dgux*)
6549        case $cc_basename in
6550          ec++*)
6551	    # FIXME: insert proper C++ library support
6552	    _LT_TAGVAR(ld_shlibs, $1)=no
6553	    ;;
6554          ghcx*)
6555	    # Green Hills C++ Compiler
6556	    # FIXME: insert proper C++ library support
6557	    _LT_TAGVAR(ld_shlibs, $1)=no
6558	    ;;
6559          *)
6560	    # FIXME: insert proper C++ library support
6561	    _LT_TAGVAR(ld_shlibs, $1)=no
6562	    ;;
6563        esac
6564        ;;
6565
6566      freebsd2.*)
6567        # C++ shared libraries reported to be fairly broken before
6568	# switch to ELF
6569        _LT_TAGVAR(ld_shlibs, $1)=no
6570        ;;
6571
6572      freebsd-elf*)
6573        _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6574        ;;
6575
6576      freebsd* | dragonfly*)
6577        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
6578        # conventions
6579        _LT_TAGVAR(ld_shlibs, $1)=yes
6580        ;;
6581
6582      haiku*)
6583        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
6584        _LT_TAGVAR(link_all_deplibs, $1)=yes
6585        ;;
6586
6587      hpux9*)
6588        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
6589        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6590        _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
6591        _LT_TAGVAR(hardcode_direct, $1)=yes
6592        _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
6593				             # but as the default
6594				             # location of the library.
6595
6596        case $cc_basename in
6597          CC*)
6598            # FIXME: insert proper C++ library support
6599            _LT_TAGVAR(ld_shlibs, $1)=no
6600            ;;
6601          aCC*)
6602            _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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
6603            # Commands to make compiler produce verbose output that lists
6604            # what "hidden" libraries, object files and flags are used when
6605            # linking a shared library.
6606            #
6607            # There doesn't appear to be a way to prevent this compiler from
6608            # explicitly linking system object files so we need to strip them
6609            # from the output so that they don't get included in the library
6610            # dependencies.
6611            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; func_echo_all "$list"'
6612            ;;
6613          *)
6614            if test yes = "$GXX"; then
6615              _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
6616            else
6617              # FIXME: insert proper C++ library support
6618              _LT_TAGVAR(ld_shlibs, $1)=no
6619            fi
6620            ;;
6621        esac
6622        ;;
6623
6624      hpux10*|hpux11*)
6625        if test no = "$with_gnu_ld"; then
6626	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
6627	  _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6628
6629          case $host_cpu in
6630            hppa*64*|ia64*)
6631              ;;
6632            *)
6633	      _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
6634              ;;
6635          esac
6636        fi
6637        case $host_cpu in
6638          hppa*64*|ia64*)
6639            _LT_TAGVAR(hardcode_direct, $1)=no
6640            _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6641            ;;
6642          *)
6643            _LT_TAGVAR(hardcode_direct, $1)=yes
6644            _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6645            _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
6646					         # but as the default
6647					         # location of the library.
6648            ;;
6649        esac
6650
6651        case $cc_basename in
6652          CC*)
6653	    # FIXME: insert proper C++ library support
6654	    _LT_TAGVAR(ld_shlibs, $1)=no
6655	    ;;
6656          aCC*)
6657	    case $host_cpu in
6658	      hppa*64*)
6659	        _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6660	        ;;
6661	      ia64*)
6662	        _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6663	        ;;
6664	      *)
6665	        _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'
6666	        ;;
6667	    esac
6668	    # Commands to make compiler produce verbose output that lists
6669	    # what "hidden" libraries, object files and flags are used when
6670	    # linking a shared library.
6671	    #
6672	    # There doesn't appear to be a way to prevent this compiler from
6673	    # explicitly linking system object files so we need to strip them
6674	    # from the output so that they don't get included in the library
6675	    # dependencies.
6676	    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; func_echo_all "$list"'
6677	    ;;
6678          *)
6679	    if test yes = "$GXX"; then
6680	      if test no = "$with_gnu_ld"; then
6681	        case $host_cpu in
6682	          hppa*64*)
6683	            _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6684	            ;;
6685	          ia64*)
6686	            _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6687	            ;;
6688	          *)
6689	            _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6690	            ;;
6691	        esac
6692	      fi
6693	    else
6694	      # FIXME: insert proper C++ library support
6695	      _LT_TAGVAR(ld_shlibs, $1)=no
6696	    fi
6697	    ;;
6698        esac
6699        ;;
6700
6701      interix[[3-9]]*)
6702	_LT_TAGVAR(hardcode_direct, $1)=no
6703	_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6704	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
6705	_LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
6706	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6707	# Instead, shared libraries are loaded at an image base (0x10000000 by
6708	# default) and relocated if they conflict, which is a slow very memory
6709	# consuming and fragmenting process.  To avoid this, we pick a random,
6710	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6711	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
6712	_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'
6713	_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'
6714	;;
6715      irix5* | irix6*)
6716        case $cc_basename in
6717          CC*)
6718	    # SGI C++
6719	    _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
6720
6721	    # Archives containing C++ object files must be created using
6722	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
6723	    # necessary to make sure instantiated templates are included
6724	    # in the archive.
6725	    _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
6726	    ;;
6727          *)
6728	    if test yes = "$GXX"; then
6729	      if test no = "$with_gnu_ld"; then
6730	        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
6731	      else
6732	        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib'
6733	      fi
6734	    fi
6735	    _LT_TAGVAR(link_all_deplibs, $1)=yes
6736	    ;;
6737        esac
6738        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
6739        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6740        _LT_TAGVAR(inherit_rpath, $1)=yes
6741        ;;
6742
6743      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6744        case $cc_basename in
6745          KCC*)
6746	    # Kuck and Associates, Inc. (KAI) C++ Compiler
6747
6748	    # KCC will only create a shared library if the output file
6749	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
6750	    # to its proper name (with version) after linking.
6751	    _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'
6752	    _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'
6753	    # Commands to make compiler produce verbose output that lists
6754	    # what "hidden" libraries, object files and flags are used when
6755	    # linking a shared library.
6756	    #
6757	    # There doesn't appear to be a way to prevent this compiler from
6758	    # explicitly linking system object files so we need to strip them
6759	    # from the output so that they don't get included in the library
6760	    # dependencies.
6761	    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; func_echo_all "$list"'
6762
6763	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
6764	    _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
6765
6766	    # Archives containing C++ object files must be created using
6767	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
6768	    _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
6769	    ;;
6770	  icpc* | ecpc* )
6771	    # Intel C++
6772	    with_gnu_ld=yes
6773	    # version 8.0 and above of icpc choke on multiply defined symbols
6774	    # if we add $predep_objects and $postdep_objects, however 7.1 and
6775	    # earlier do not add the objects themselves.
6776	    case `$CC -V 2>&1` in
6777	      *"Version 7."*)
6778	        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
6779		_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'
6780		;;
6781	      *)  # Version 8.0 or newer
6782	        tmp_idyn=
6783	        case $host_cpu in
6784		  ia64*) tmp_idyn=' -i_dynamic';;
6785		esac
6786	        _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
6787		_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'
6788		;;
6789	    esac
6790	    _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6791	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
6792	    _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
6793	    _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive'
6794	    ;;
6795          pgCC* | pgcpp*)
6796            # Portland Group C++ compiler
6797	    case `$CC -V` in
6798	    *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
6799	      _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
6800               rm -rf $tpldir~
6801               $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
6802               compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
6803	      _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
6804                rm -rf $tpldir~
6805                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
6806                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
6807                $RANLIB $oldlib'
6808	      _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
6809                rm -rf $tpldir~
6810                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
6811                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
6812	      _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
6813                rm -rf $tpldir~
6814                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
6815                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
6816	      ;;
6817	    *) # Version 6 and above use weak symbols
6818	      _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
6819	      _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'
6820	      ;;
6821	    esac
6822
6823	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl--rpath $wl$libdir'
6824	    _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
6825	    _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
6826            ;;
6827	  cxx*)
6828	    # Compaq C++
6829	    _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
6830	    _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'
6831
6832	    runpath_var=LD_RUN_PATH
6833	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6834	    _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6835
6836	    # Commands to make compiler produce verbose output that lists
6837	    # what "hidden" libraries, object files and flags are used when
6838	    # linking a shared library.
6839	    #
6840	    # There doesn't appear to be a way to prevent this compiler from
6841	    # explicitly linking system object files so we need to strip them
6842	    # from the output so that they don't get included in the library
6843	    # dependencies.
6844	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
6845	    ;;
6846	  xl* | mpixl* | bgxl*)
6847	    # IBM XL 8.0 on PPC, with GNU ld
6848	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
6849	    _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
6850	    _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
6851	    if test yes = "$supports_anon_versioning"; then
6852	      _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
6853                cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6854                echo "local: *; };" >> $output_objdir/$libname.ver~
6855                $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
6856	    fi
6857	    ;;
6858	  *)
6859	    case `$CC -V 2>&1 | sed 5q` in
6860	    *Sun\ C*)
6861	      # Sun C++ 5.9
6862	      _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
6863	      _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6864	      _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'
6865	      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6866	      _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
6867	      _LT_TAGVAR(compiler_needs_object, $1)=yes
6868
6869	      # Not sure whether something based on
6870	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
6871	      # would be better.
6872	      output_verbose_link_cmd='func_echo_all'
6873
6874	      # Archives containing C++ object files must be created using
6875	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
6876	      # necessary to make sure instantiated templates are included
6877	      # in the archive.
6878	      _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
6879	      ;;
6880	    esac
6881	    ;;
6882	esac
6883	;;
6884
6885      lynxos*)
6886        # FIXME: insert proper C++ library support
6887	_LT_TAGVAR(ld_shlibs, $1)=no
6888	;;
6889
6890      m88k*)
6891        # FIXME: insert proper C++ library support
6892        _LT_TAGVAR(ld_shlibs, $1)=no
6893	;;
6894
6895      mvs*)
6896        case $cc_basename in
6897          cxx*)
6898	    # FIXME: insert proper C++ library support
6899	    _LT_TAGVAR(ld_shlibs, $1)=no
6900	    ;;
6901	  *)
6902	    # FIXME: insert proper C++ library support
6903	    _LT_TAGVAR(ld_shlibs, $1)=no
6904	    ;;
6905	esac
6906	;;
6907
6908      netbsd*)
6909        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
6910	  _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
6911	  wlarc=
6912	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6913	  _LT_TAGVAR(hardcode_direct, $1)=yes
6914	  _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6915	fi
6916	# Workaround some broken pre-1.5 toolchains
6917	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
6918	;;
6919
6920      *nto* | *qnx*)
6921        _LT_TAGVAR(ld_shlibs, $1)=yes
6922	;;
6923
6924      openbsd* | bitrig*)
6925	if test -f /usr/libexec/ld.so; then
6926	  _LT_TAGVAR(hardcode_direct, $1)=yes
6927	  _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6928	  _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6929	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
6930	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
6931	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
6932	    _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'
6933	    _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
6934	    _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
6935	  fi
6936	  output_verbose_link_cmd=func_echo_all
6937	else
6938	  _LT_TAGVAR(ld_shlibs, $1)=no
6939	fi
6940	;;
6941
6942      osf3* | osf4* | osf5*)
6943        case $cc_basename in
6944          KCC*)
6945	    # Kuck and Associates, Inc. (KAI) C++ Compiler
6946
6947	    # KCC will only create a shared library if the output file
6948	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
6949	    # to its proper name (with version) after linking.
6950	    _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'
6951
6952	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
6953	    _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6954
6955	    # Archives containing C++ object files must be created using
6956	    # the KAI C++ compiler.
6957	    case $host in
6958	      osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
6959	      *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
6960	    esac
6961	    ;;
6962          RCC*)
6963	    # Rational C++ 2.4.1
6964	    # FIXME: insert proper C++ library support
6965	    _LT_TAGVAR(ld_shlibs, $1)=no
6966	    ;;
6967          cxx*)
6968	    case $host in
6969	      osf3*)
6970	        _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
6971	        _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
6972	        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
6973		;;
6974	      *)
6975	        _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6976	        _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
6977	        _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
6978                  echo "-hidden">> $lib.exp~
6979                  $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 "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~
6980                  $RM $lib.exp'
6981	        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6982		;;
6983	    esac
6984
6985	    _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6986
6987	    # Commands to make compiler produce verbose output that lists
6988	    # what "hidden" libraries, object files and flags are used when
6989	    # linking a shared library.
6990	    #
6991	    # There doesn't appear to be a way to prevent this compiler from
6992	    # explicitly linking system object files so we need to strip them
6993	    # from the output so that they don't get included in the library
6994	    # dependencies.
6995	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
6996	    ;;
6997	  *)
6998	    if test yes,no = "$GXX,$with_gnu_ld"; then
6999	      _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
7000	      case $host in
7001	        osf3*)
7002	          _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" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
7003		  ;;
7004	        *)
7005	          _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
7006		  ;;
7007	      esac
7008
7009	      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
7010	      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
7011
7012	      # Commands to make compiler produce verbose output that lists
7013	      # what "hidden" libraries, object files and flags are used when
7014	      # linking a shared library.
7015	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
7016
7017	    else
7018	      # FIXME: insert proper C++ library support
7019	      _LT_TAGVAR(ld_shlibs, $1)=no
7020	    fi
7021	    ;;
7022        esac
7023        ;;
7024
7025      psos*)
7026        # FIXME: insert proper C++ library support
7027        _LT_TAGVAR(ld_shlibs, $1)=no
7028        ;;
7029
7030      sunos4*)
7031        case $cc_basename in
7032          CC*)
7033	    # Sun C++ 4.x
7034	    # FIXME: insert proper C++ library support
7035	    _LT_TAGVAR(ld_shlibs, $1)=no
7036	    ;;
7037          lcc*)
7038	    # Lucid
7039	    # FIXME: insert proper C++ library support
7040	    _LT_TAGVAR(ld_shlibs, $1)=no
7041	    ;;
7042          *)
7043	    # FIXME: insert proper C++ library support
7044	    _LT_TAGVAR(ld_shlibs, $1)=no
7045	    ;;
7046        esac
7047        ;;
7048
7049      solaris*)
7050        case $cc_basename in
7051          CC* | sunCC*)
7052	    # Sun C++ 4.2, 5.x and Centerline C++
7053            _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
7054	    _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
7055	    _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
7056	    _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7057              $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'
7058
7059	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7060	    _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7061	    case $host_os in
7062	      solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
7063	      *)
7064		# The compiler driver will combine and reorder linker options,
7065		# but understands '-z linker_flag'.
7066	        # Supported since Solaris 2.6 (maybe 2.5.1?)
7067		_LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
7068	        ;;
7069	    esac
7070	    _LT_TAGVAR(link_all_deplibs, $1)=yes
7071
7072	    output_verbose_link_cmd='func_echo_all'
7073
7074	    # Archives containing C++ object files must be created using
7075	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
7076	    # necessary to make sure instantiated templates are included
7077	    # in the archive.
7078	    _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
7079	    ;;
7080          gcx*)
7081	    # Green Hills C++ Compiler
7082	    _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
7083
7084	    # The C++ compiler must be used to create the archive.
7085	    _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
7086	    ;;
7087          *)
7088	    # GNU C++ compiler with Solaris linker
7089	    if test yes,no = "$GXX,$with_gnu_ld"; then
7090	      _LT_TAGVAR(no_undefined_flag, $1)=' $wl-z ${wl}defs'
7091	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
7092	        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
7093	        _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7094                  $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
7095
7096	        # Commands to make compiler produce verbose output that lists
7097	        # what "hidden" libraries, object files and flags are used when
7098	        # linking a shared library.
7099	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
7100	      else
7101	        # g++ 2.7 appears to require '-G' NOT '-shared' on this
7102	        # platform.
7103	        _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
7104	        _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7105                  $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
7106
7107	        # Commands to make compiler produce verbose output that lists
7108	        # what "hidden" libraries, object files and flags are used when
7109	        # linking a shared library.
7110	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
7111	      fi
7112
7113	      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $wl$libdir'
7114	      case $host_os in
7115		solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
7116		*)
7117		  _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
7118		  ;;
7119	      esac
7120	    fi
7121	    ;;
7122        esac
7123        ;;
7124
7125    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
7126      _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
7127      _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7128      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7129      runpath_var='LD_RUN_PATH'
7130
7131      case $cc_basename in
7132        CC*)
7133	  _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7134	  _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7135	  ;;
7136	*)
7137	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7138	  _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7139	  ;;
7140      esac
7141      ;;
7142
7143      sysv5* | sco3.2v5* | sco5v6*)
7144	# Note: We CANNOT use -z defs as we might desire, because we do not
7145	# link with -lc, and that would cause any symbols used from libc to
7146	# always be unresolved, which means just about no library would
7147	# ever link correctly.  If we're not using GNU ld we use -z text
7148	# though, which does catch some bad symbols but isn't as heavy-handed
7149	# as -z defs.
7150	_LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
7151	_LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs'
7152	_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7153	_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7154	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir'
7155	_LT_TAGVAR(hardcode_libdir_separator, $1)=':'
7156	_LT_TAGVAR(link_all_deplibs, $1)=yes
7157	_LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport'
7158	runpath_var='LD_RUN_PATH'
7159
7160	case $cc_basename in
7161          CC*)
7162	    _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7163	    _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7164	    _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~
7165              '"$_LT_TAGVAR(old_archive_cmds, $1)"
7166	    _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
7167              '"$_LT_TAGVAR(reload_cmds, $1)"
7168	    ;;
7169	  *)
7170	    _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7171	    _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7172	    ;;
7173	esac
7174      ;;
7175
7176      tandem*)
7177        case $cc_basename in
7178          NCC*)
7179	    # NonStop-UX NCC 3.20
7180	    # FIXME: insert proper C++ library support
7181	    _LT_TAGVAR(ld_shlibs, $1)=no
7182	    ;;
7183          *)
7184	    # FIXME: insert proper C++ library support
7185	    _LT_TAGVAR(ld_shlibs, $1)=no
7186	    ;;
7187        esac
7188        ;;
7189
7190      vxworks*)
7191        # FIXME: insert proper C++ library support
7192        _LT_TAGVAR(ld_shlibs, $1)=no
7193        ;;
7194
7195      *)
7196        # FIXME: insert proper C++ library support
7197        _LT_TAGVAR(ld_shlibs, $1)=no
7198        ;;
7199    esac
7200
7201    AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
7202    test no = "$_LT_TAGVAR(ld_shlibs, $1)" && can_build_shared=no
7203
7204    _LT_TAGVAR(GCC, $1)=$GXX
7205    _LT_TAGVAR(LD, $1)=$LD
7206
7207    ## CAVEAT EMPTOR:
7208    ## There is no encapsulation within the following macros, do not change
7209    ## the running order or otherwise move them around unless you know exactly
7210    ## what you are doing...
7211    _LT_SYS_HIDDEN_LIBDEPS($1)
7212    _LT_COMPILER_PIC($1)
7213    _LT_COMPILER_C_O($1)
7214    _LT_COMPILER_FILE_LOCKS($1)
7215    _LT_LINKER_SHLIBS($1)
7216    _LT_SYS_DYNAMIC_LINKER($1)
7217    _LT_LINKER_HARDCODE_LIBPATH($1)
7218
7219    _LT_CONFIG($1)
7220  fi # test -n "$compiler"
7221
7222  CC=$lt_save_CC
7223  CFLAGS=$lt_save_CFLAGS
7224  LDCXX=$LD
7225  LD=$lt_save_LD
7226  GCC=$lt_save_GCC
7227  with_gnu_ld=$lt_save_with_gnu_ld
7228  lt_cv_path_LDCXX=$lt_cv_path_LD
7229  lt_cv_path_LD=$lt_save_path_LD
7230  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
7231  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
7232fi # test yes != "$_lt_caught_CXX_error"
7233
7234AC_LANG_POP
7235])# _LT_LANG_CXX_CONFIG
7236
7237
7238# _LT_FUNC_STRIPNAME_CNF
7239# ----------------------
7240# func_stripname_cnf prefix suffix name
7241# strip PREFIX and SUFFIX off of NAME.
7242# PREFIX and SUFFIX must not contain globbing or regex special
7243# characters, hashes, percent signs, but SUFFIX may contain a leading
7244# dot (in which case that matches only a dot).
7245#
7246# This function is identical to the (non-XSI) version of func_stripname,
7247# except this one can be used by m4 code that may be executed by configure,
7248# rather than the libtool script.
7249m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl
7250AC_REQUIRE([_LT_DECL_SED])
7251AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])
7252func_stripname_cnf ()
7253{
7254  case @S|@2 in
7255  .*) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%\\\\@S|@2\$%%"`;;
7256  *)  func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%@S|@2\$%%"`;;
7257  esac
7258} # func_stripname_cnf
7259])# _LT_FUNC_STRIPNAME_CNF
7260
7261# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
7262# ---------------------------------
7263# Figure out "hidden" library dependencies from verbose
7264# compiler output when linking a shared library.
7265# Parse the compiler output and extract the necessary
7266# objects, libraries and library flags.
7267m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
7268[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
7269AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl
7270# Dependencies to place before and after the object being linked:
7271_LT_TAGVAR(predep_objects, $1)=
7272_LT_TAGVAR(postdep_objects, $1)=
7273_LT_TAGVAR(predeps, $1)=
7274_LT_TAGVAR(postdeps, $1)=
7275_LT_TAGVAR(compiler_lib_search_path, $1)=
7276
7277dnl we can't use the lt_simple_compile_test_code here,
7278dnl because it contains code intended for an executable,
7279dnl not a library.  It's possible we should let each
7280dnl tag define a new lt_????_link_test_code variable,
7281dnl but it's only used here...
7282m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
7283int a;
7284void foo (void) { a = 0; }
7285_LT_EOF
7286], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
7287class Foo
7288{
7289public:
7290  Foo (void) { a = 0; }
7291private:
7292  int a;
7293};
7294_LT_EOF
7295], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
7296      subroutine foo
7297      implicit none
7298      integer*4 a
7299      a=0
7300      return
7301      end
7302_LT_EOF
7303], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
7304      subroutine foo
7305      implicit none
7306      integer a
7307      a=0
7308      return
7309      end
7310_LT_EOF
7311], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
7312public class foo {
7313  private int a;
7314  public void bar (void) {
7315    a = 0;
7316  }
7317};
7318_LT_EOF
7319], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF
7320package foo
7321func foo() {
7322}
7323_LT_EOF
7324])
7325
7326_lt_libdeps_save_CFLAGS=$CFLAGS
7327case "$CC $CFLAGS " in #(
7328*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
7329*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
7330*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
7331esac
7332
7333dnl Parse the compiler output and extract the necessary
7334dnl objects, libraries and library flags.
7335if AC_TRY_EVAL(ac_compile); then
7336  # Parse the compiler output and extract the necessary
7337  # objects, libraries and library flags.
7338
7339  # Sentinel used to keep track of whether or not we are before
7340  # the conftest object file.
7341  pre_test_object_deps_done=no
7342
7343  for p in `eval "$output_verbose_link_cmd"`; do
7344    case $prev$p in
7345
7346    -L* | -R* | -l*)
7347       # Some compilers place space between "-{L,R}" and the path.
7348       # Remove the space.
7349       if test x-L = "$p" ||
7350          test x-R = "$p"; then
7351	 prev=$p
7352	 continue
7353       fi
7354
7355       # Expand the sysroot to ease extracting the directories later.
7356       if test -z "$prev"; then
7357         case $p in
7358         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
7359         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
7360         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
7361         esac
7362       fi
7363       case $p in
7364       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
7365       esac
7366       if test no = "$pre_test_object_deps_done"; then
7367	 case $prev in
7368	 -L | -R)
7369	   # Internal compiler library paths should come after those
7370	   # provided the user.  The postdeps already come after the
7371	   # user supplied libs so there is no need to process them.
7372	   if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
7373	     _LT_TAGVAR(compiler_lib_search_path, $1)=$prev$p
7374	   else
7375	     _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} $prev$p"
7376	   fi
7377	   ;;
7378	 # The "-l" case would never come before the object being
7379	 # linked, so don't bother handling this case.
7380	 esac
7381       else
7382	 if test -z "$_LT_TAGVAR(postdeps, $1)"; then
7383	   _LT_TAGVAR(postdeps, $1)=$prev$p
7384	 else
7385	   _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} $prev$p"
7386	 fi
7387       fi
7388       prev=
7389       ;;
7390
7391    *.lto.$objext) ;; # Ignore GCC LTO objects
7392    *.$objext)
7393       # This assumes that the test object file only shows up
7394       # once in the compiler output.
7395       if test "$p" = "conftest.$objext"; then
7396	 pre_test_object_deps_done=yes
7397	 continue
7398       fi
7399
7400       if test no = "$pre_test_object_deps_done"; then
7401	 if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
7402	   _LT_TAGVAR(predep_objects, $1)=$p
7403	 else
7404	   _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
7405	 fi
7406       else
7407	 if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
7408	   _LT_TAGVAR(postdep_objects, $1)=$p
7409	 else
7410	   _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
7411	 fi
7412       fi
7413       ;;
7414
7415    *) ;; # Ignore the rest.
7416
7417    esac
7418  done
7419
7420  # Clean up.
7421  rm -f a.out a.exe
7422else
7423  echo "libtool.m4: error: problem compiling $1 test program"
7424fi
7425
7426$RM -f confest.$objext
7427CFLAGS=$_lt_libdeps_save_CFLAGS
7428
7429# PORTME: override above test on systems where it is broken
7430m4_if([$1], [CXX],
7431[case $host_os in
7432interix[[3-9]]*)
7433  # Interix 3.5 installs completely hosed .la files for C++, so rather than
7434  # hack all around it, let's just trust "g++" to DTRT.
7435  _LT_TAGVAR(predep_objects,$1)=
7436  _LT_TAGVAR(postdep_objects,$1)=
7437  _LT_TAGVAR(postdeps,$1)=
7438  ;;
7439
7440linux*)
7441  case `$CC -V 2>&1 | sed 5q` in
7442  *Sun\ C*)
7443    # Sun C++ 5.9
7444
7445    # The more standards-conforming stlport4 library is
7446    # incompatible with the Cstd library. Avoid specifying
7447    # it if it's in CXXFLAGS. Ignore libCrun as
7448    # -library=stlport4 depends on it.
7449    case " $CXX $CXXFLAGS " in
7450    *" -library=stlport4 "*)
7451      solaris_use_stlport4=yes
7452      ;;
7453    esac
7454
7455    if test yes != "$solaris_use_stlport4"; then
7456      _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
7457    fi
7458    ;;
7459  esac
7460  ;;
7461
7462solaris*)
7463  case $cc_basename in
7464  CC* | sunCC*)
7465    # The more standards-conforming stlport4 library is
7466    # incompatible with the Cstd library. Avoid specifying
7467    # it if it's in CXXFLAGS. Ignore libCrun as
7468    # -library=stlport4 depends on it.
7469    case " $CXX $CXXFLAGS " in
7470    *" -library=stlport4 "*)
7471      solaris_use_stlport4=yes
7472      ;;
7473    esac
7474
7475    # Adding this requires a known-good setup of shared libraries for
7476    # Sun compiler versions before 5.6, else PIC objects from an old
7477    # archive will be linked into the output, leading to subtle bugs.
7478    if test yes != "$solaris_use_stlport4"; then
7479      _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
7480    fi
7481    ;;
7482  esac
7483  ;;
7484esac
7485])
7486
7487case " $_LT_TAGVAR(postdeps, $1) " in
7488*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
7489esac
7490 _LT_TAGVAR(compiler_lib_search_dirs, $1)=
7491if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
7492 _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | $SED -e 's! -L! !g' -e 's!^ !!'`
7493fi
7494_LT_TAGDECL([], [compiler_lib_search_dirs], [1],
7495    [The directories searched by this compiler when creating a shared library])
7496_LT_TAGDECL([], [predep_objects], [1],
7497    [Dependencies to place before and after the objects being linked to
7498    create a shared library])
7499_LT_TAGDECL([], [postdep_objects], [1])
7500_LT_TAGDECL([], [predeps], [1])
7501_LT_TAGDECL([], [postdeps], [1])
7502_LT_TAGDECL([], [compiler_lib_search_path], [1],
7503    [The library search path used internally by the compiler when linking
7504    a shared library])
7505])# _LT_SYS_HIDDEN_LIBDEPS
7506
7507
7508# _LT_LANG_F77_CONFIG([TAG])
7509# --------------------------
7510# Ensure that the configuration variables for a Fortran 77 compiler are
7511# suitably defined.  These variables are subsequently used by _LT_CONFIG
7512# to write the compiler configuration to 'libtool'.
7513m4_defun([_LT_LANG_F77_CONFIG],
7514[AC_LANG_PUSH(Fortran 77)
7515if test -z "$F77" || test no = "$F77"; then
7516  _lt_disable_F77=yes
7517fi
7518
7519_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7520_LT_TAGVAR(allow_undefined_flag, $1)=
7521_LT_TAGVAR(always_export_symbols, $1)=no
7522_LT_TAGVAR(archive_expsym_cmds, $1)=
7523_LT_TAGVAR(export_dynamic_flag_spec, $1)=
7524_LT_TAGVAR(hardcode_direct, $1)=no
7525_LT_TAGVAR(hardcode_direct_absolute, $1)=no
7526_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
7527_LT_TAGVAR(hardcode_libdir_separator, $1)=
7528_LT_TAGVAR(hardcode_minus_L, $1)=no
7529_LT_TAGVAR(hardcode_automatic, $1)=no
7530_LT_TAGVAR(inherit_rpath, $1)=no
7531_LT_TAGVAR(module_cmds, $1)=
7532_LT_TAGVAR(module_expsym_cmds, $1)=
7533_LT_TAGVAR(link_all_deplibs, $1)=unknown
7534_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7535_LT_TAGVAR(reload_flag, $1)=$reload_flag
7536_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
7537_LT_TAGVAR(no_undefined_flag, $1)=
7538_LT_TAGVAR(whole_archive_flag_spec, $1)=
7539_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7540
7541# Source file extension for f77 test sources.
7542ac_ext=f
7543
7544# Object file extension for compiled f77 test sources.
7545objext=o
7546_LT_TAGVAR(objext, $1)=$objext
7547
7548# No sense in running all these tests if we already determined that
7549# the F77 compiler isn't working.  Some variables (like enable_shared)
7550# are currently assumed to apply to all compilers on this platform,
7551# and will be corrupted by setting them based on a non-working compiler.
7552if test yes != "$_lt_disable_F77"; then
7553  # Code to be used in simple compile tests
7554  lt_simple_compile_test_code="\
7555      subroutine t
7556      return
7557      end
7558"
7559
7560  # Code to be used in simple link tests
7561  lt_simple_link_test_code="\
7562      program t
7563      end
7564"
7565
7566  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
7567  _LT_TAG_COMPILER
7568
7569  # save warnings/boilerplate of simple test code
7570  _LT_COMPILER_BOILERPLATE
7571  _LT_LINKER_BOILERPLATE
7572
7573  # Allow CC to be a program name with arguments.
7574  lt_save_CC=$CC
7575  lt_save_GCC=$GCC
7576  lt_save_CFLAGS=$CFLAGS
7577  CC=${F77-"f77"}
7578  CFLAGS=$FFLAGS
7579  compiler=$CC
7580  _LT_TAGVAR(compiler, $1)=$CC
7581  _LT_CC_BASENAME([$compiler])
7582  GCC=$G77
7583  if test -n "$compiler"; then
7584    AC_MSG_CHECKING([if libtool supports shared libraries])
7585    AC_MSG_RESULT([$can_build_shared])
7586
7587    AC_MSG_CHECKING([whether to build shared libraries])
7588    test no = "$can_build_shared" && enable_shared=no
7589
7590    # On AIX, shared libraries and static libraries use the same namespace, and
7591    # are all built from PIC.
7592    case $host_os in
7593      aix3*)
7594        test yes = "$enable_shared" && enable_static=no
7595        if test -n "$RANLIB"; then
7596          archive_cmds="$archive_cmds~\$RANLIB \$lib"
7597          postinstall_cmds='$RANLIB $lib'
7598        fi
7599        ;;
7600      aix[[4-9]]*)
7601	if test ia64 != "$host_cpu" && test no = "$aix_use_runtimelinking"; then
7602	  test yes = "$enable_shared" && enable_static=no
7603	fi
7604        ;;
7605    esac
7606    AC_MSG_RESULT([$enable_shared])
7607
7608    AC_MSG_CHECKING([whether to build static libraries])
7609    # Make sure either enable_shared or enable_static is yes.
7610    test yes = "$enable_shared" || enable_static=yes
7611    AC_MSG_RESULT([$enable_static])
7612
7613    _LT_TAGVAR(GCC, $1)=$G77
7614    _LT_TAGVAR(LD, $1)=$LD
7615
7616    ## CAVEAT EMPTOR:
7617    ## There is no encapsulation within the following macros, do not change
7618    ## the running order or otherwise move them around unless you know exactly
7619    ## what you are doing...
7620    _LT_COMPILER_PIC($1)
7621    _LT_COMPILER_C_O($1)
7622    _LT_COMPILER_FILE_LOCKS($1)
7623    _LT_LINKER_SHLIBS($1)
7624    _LT_SYS_DYNAMIC_LINKER($1)
7625    _LT_LINKER_HARDCODE_LIBPATH($1)
7626
7627    _LT_CONFIG($1)
7628  fi # test -n "$compiler"
7629
7630  GCC=$lt_save_GCC
7631  CC=$lt_save_CC
7632  CFLAGS=$lt_save_CFLAGS
7633fi # test yes != "$_lt_disable_F77"
7634
7635AC_LANG_POP
7636])# _LT_LANG_F77_CONFIG
7637
7638
7639# _LT_LANG_FC_CONFIG([TAG])
7640# -------------------------
7641# Ensure that the configuration variables for a Fortran compiler are
7642# suitably defined.  These variables are subsequently used by _LT_CONFIG
7643# to write the compiler configuration to 'libtool'.
7644m4_defun([_LT_LANG_FC_CONFIG],
7645[AC_LANG_PUSH(Fortran)
7646
7647if test -z "$FC" || test no = "$FC"; then
7648  _lt_disable_FC=yes
7649fi
7650
7651_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7652_LT_TAGVAR(allow_undefined_flag, $1)=
7653_LT_TAGVAR(always_export_symbols, $1)=no
7654_LT_TAGVAR(archive_expsym_cmds, $1)=
7655_LT_TAGVAR(export_dynamic_flag_spec, $1)=
7656_LT_TAGVAR(hardcode_direct, $1)=no
7657_LT_TAGVAR(hardcode_direct_absolute, $1)=no
7658_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
7659_LT_TAGVAR(hardcode_libdir_separator, $1)=
7660_LT_TAGVAR(hardcode_minus_L, $1)=no
7661_LT_TAGVAR(hardcode_automatic, $1)=no
7662_LT_TAGVAR(inherit_rpath, $1)=no
7663_LT_TAGVAR(module_cmds, $1)=
7664_LT_TAGVAR(module_expsym_cmds, $1)=
7665_LT_TAGVAR(link_all_deplibs, $1)=unknown
7666_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7667_LT_TAGVAR(reload_flag, $1)=$reload_flag
7668_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
7669_LT_TAGVAR(no_undefined_flag, $1)=
7670_LT_TAGVAR(whole_archive_flag_spec, $1)=
7671_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7672
7673# Source file extension for fc test sources.
7674ac_ext=${ac_fc_srcext-f}
7675
7676# Object file extension for compiled fc test sources.
7677objext=o
7678_LT_TAGVAR(objext, $1)=$objext
7679
7680# No sense in running all these tests if we already determined that
7681# the FC compiler isn't working.  Some variables (like enable_shared)
7682# are currently assumed to apply to all compilers on this platform,
7683# and will be corrupted by setting them based on a non-working compiler.
7684if test yes != "$_lt_disable_FC"; then
7685  # Code to be used in simple compile tests
7686  lt_simple_compile_test_code="\
7687      subroutine t
7688      return
7689      end
7690"
7691
7692  # Code to be used in simple link tests
7693  lt_simple_link_test_code="\
7694      program t
7695      end
7696"
7697
7698  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
7699  _LT_TAG_COMPILER
7700
7701  # save warnings/boilerplate of simple test code
7702  _LT_COMPILER_BOILERPLATE
7703  _LT_LINKER_BOILERPLATE
7704
7705  # Allow CC to be a program name with arguments.
7706  lt_save_CC=$CC
7707  lt_save_GCC=$GCC
7708  lt_save_CFLAGS=$CFLAGS
7709  CC=${FC-"f95"}
7710  CFLAGS=$FCFLAGS
7711  compiler=$CC
7712  GCC=$ac_cv_fc_compiler_gnu
7713
7714  _LT_TAGVAR(compiler, $1)=$CC
7715  _LT_CC_BASENAME([$compiler])
7716
7717  if test -n "$compiler"; then
7718    AC_MSG_CHECKING([if libtool supports shared libraries])
7719    AC_MSG_RESULT([$can_build_shared])
7720
7721    AC_MSG_CHECKING([whether to build shared libraries])
7722    test no = "$can_build_shared" && enable_shared=no
7723
7724    # On AIX, shared libraries and static libraries use the same namespace, and
7725    # are all built from PIC.
7726    case $host_os in
7727      aix3*)
7728        test yes = "$enable_shared" && enable_static=no
7729        if test -n "$RANLIB"; then
7730          archive_cmds="$archive_cmds~\$RANLIB \$lib"
7731          postinstall_cmds='$RANLIB $lib'
7732        fi
7733        ;;
7734      aix[[4-9]]*)
7735	if test ia64 != "$host_cpu" && test no = "$aix_use_runtimelinking"; then
7736	  test yes = "$enable_shared" && enable_static=no
7737	fi
7738        ;;
7739    esac
7740    AC_MSG_RESULT([$enable_shared])
7741
7742    AC_MSG_CHECKING([whether to build static libraries])
7743    # Make sure either enable_shared or enable_static is yes.
7744    test yes = "$enable_shared" || enable_static=yes
7745    AC_MSG_RESULT([$enable_static])
7746
7747    _LT_TAGVAR(GCC, $1)=$ac_cv_fc_compiler_gnu
7748    _LT_TAGVAR(LD, $1)=$LD
7749
7750    ## CAVEAT EMPTOR:
7751    ## There is no encapsulation within the following macros, do not change
7752    ## the running order or otherwise move them around unless you know exactly
7753    ## what you are doing...
7754    _LT_SYS_HIDDEN_LIBDEPS($1)
7755    _LT_COMPILER_PIC($1)
7756    _LT_COMPILER_C_O($1)
7757    _LT_COMPILER_FILE_LOCKS($1)
7758    _LT_LINKER_SHLIBS($1)
7759    _LT_SYS_DYNAMIC_LINKER($1)
7760    _LT_LINKER_HARDCODE_LIBPATH($1)
7761
7762    _LT_CONFIG($1)
7763  fi # test -n "$compiler"
7764
7765  GCC=$lt_save_GCC
7766  CC=$lt_save_CC
7767  CFLAGS=$lt_save_CFLAGS
7768fi # test yes != "$_lt_disable_FC"
7769
7770AC_LANG_POP
7771])# _LT_LANG_FC_CONFIG
7772
7773
7774# _LT_LANG_GCJ_CONFIG([TAG])
7775# --------------------------
7776# Ensure that the configuration variables for the GNU Java Compiler compiler
7777# are suitably defined.  These variables are subsequently used by _LT_CONFIG
7778# to write the compiler configuration to 'libtool'.
7779m4_defun([_LT_LANG_GCJ_CONFIG],
7780[AC_REQUIRE([LT_PROG_GCJ])dnl
7781AC_LANG_SAVE
7782
7783# Source file extension for Java test sources.
7784ac_ext=java
7785
7786# Object file extension for compiled Java test sources.
7787objext=o
7788_LT_TAGVAR(objext, $1)=$objext
7789
7790# Code to be used in simple compile tests
7791lt_simple_compile_test_code="class foo {}"
7792
7793# Code to be used in simple link tests
7794lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
7795
7796# ltmain only uses $CC for tagged configurations so make sure $CC is set.
7797_LT_TAG_COMPILER
7798
7799# save warnings/boilerplate of simple test code
7800_LT_COMPILER_BOILERPLATE
7801_LT_LINKER_BOILERPLATE
7802
7803# Allow CC to be a program name with arguments.
7804lt_save_CC=$CC
7805lt_save_CFLAGS=$CFLAGS
7806lt_save_GCC=$GCC
7807GCC=yes
7808CC=${GCJ-"gcj"}
7809CFLAGS=$GCJFLAGS
7810compiler=$CC
7811_LT_TAGVAR(compiler, $1)=$CC
7812_LT_TAGVAR(LD, $1)=$LD
7813_LT_CC_BASENAME([$compiler])
7814
7815# GCJ did not exist at the time GCC didn't implicitly link libc in.
7816_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7817
7818_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7819_LT_TAGVAR(reload_flag, $1)=$reload_flag
7820_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
7821
7822if test -n "$compiler"; then
7823  _LT_COMPILER_NO_RTTI($1)
7824  _LT_COMPILER_PIC($1)
7825  _LT_COMPILER_C_O($1)
7826  _LT_COMPILER_FILE_LOCKS($1)
7827  _LT_LINKER_SHLIBS($1)
7828  _LT_LINKER_HARDCODE_LIBPATH($1)
7829
7830  _LT_CONFIG($1)
7831fi
7832
7833AC_LANG_RESTORE
7834
7835GCC=$lt_save_GCC
7836CC=$lt_save_CC
7837CFLAGS=$lt_save_CFLAGS
7838])# _LT_LANG_GCJ_CONFIG
7839
7840
7841# _LT_LANG_GO_CONFIG([TAG])
7842# --------------------------
7843# Ensure that the configuration variables for the GNU Go compiler
7844# are suitably defined.  These variables are subsequently used by _LT_CONFIG
7845# to write the compiler configuration to 'libtool'.
7846m4_defun([_LT_LANG_GO_CONFIG],
7847[AC_REQUIRE([LT_PROG_GO])dnl
7848AC_LANG_SAVE
7849
7850# Source file extension for Go test sources.
7851ac_ext=go
7852
7853# Object file extension for compiled Go test sources.
7854objext=o
7855_LT_TAGVAR(objext, $1)=$objext
7856
7857# Code to be used in simple compile tests
7858lt_simple_compile_test_code="package main; func main() { }"
7859
7860# Code to be used in simple link tests
7861lt_simple_link_test_code='package main; func main() { }'
7862
7863# ltmain only uses $CC for tagged configurations so make sure $CC is set.
7864_LT_TAG_COMPILER
7865
7866# save warnings/boilerplate of simple test code
7867_LT_COMPILER_BOILERPLATE
7868_LT_LINKER_BOILERPLATE
7869
7870# Allow CC to be a program name with arguments.
7871lt_save_CC=$CC
7872lt_save_CFLAGS=$CFLAGS
7873lt_save_GCC=$GCC
7874GCC=yes
7875CC=${GOC-"gccgo"}
7876CFLAGS=$GOFLAGS
7877compiler=$CC
7878_LT_TAGVAR(compiler, $1)=$CC
7879_LT_TAGVAR(LD, $1)=$LD
7880_LT_CC_BASENAME([$compiler])
7881
7882# Go did not exist at the time GCC didn't implicitly link libc in.
7883_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7884
7885_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7886_LT_TAGVAR(reload_flag, $1)=$reload_flag
7887_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
7888
7889if test -n "$compiler"; then
7890  _LT_COMPILER_NO_RTTI($1)
7891  _LT_COMPILER_PIC($1)
7892  _LT_COMPILER_C_O($1)
7893  _LT_COMPILER_FILE_LOCKS($1)
7894  _LT_LINKER_SHLIBS($1)
7895  _LT_LINKER_HARDCODE_LIBPATH($1)
7896
7897  _LT_CONFIG($1)
7898fi
7899
7900AC_LANG_RESTORE
7901
7902GCC=$lt_save_GCC
7903CC=$lt_save_CC
7904CFLAGS=$lt_save_CFLAGS
7905])# _LT_LANG_GO_CONFIG
7906
7907
7908# _LT_LANG_RC_CONFIG([TAG])
7909# -------------------------
7910# Ensure that the configuration variables for the Windows resource compiler
7911# are suitably defined.  These variables are subsequently used by _LT_CONFIG
7912# to write the compiler configuration to 'libtool'.
7913m4_defun([_LT_LANG_RC_CONFIG],
7914[AC_REQUIRE([LT_PROG_RC])dnl
7915AC_LANG_SAVE
7916
7917# Source file extension for RC test sources.
7918ac_ext=rc
7919
7920# Object file extension for compiled RC test sources.
7921objext=o
7922_LT_TAGVAR(objext, $1)=$objext
7923
7924# Code to be used in simple compile tests
7925lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
7926
7927# Code to be used in simple link tests
7928lt_simple_link_test_code=$lt_simple_compile_test_code
7929
7930# ltmain only uses $CC for tagged configurations so make sure $CC is set.
7931_LT_TAG_COMPILER
7932
7933# save warnings/boilerplate of simple test code
7934_LT_COMPILER_BOILERPLATE
7935_LT_LINKER_BOILERPLATE
7936
7937# Allow CC to be a program name with arguments.
7938lt_save_CC=$CC
7939lt_save_CFLAGS=$CFLAGS
7940lt_save_GCC=$GCC
7941GCC=
7942CC=${RC-"windres"}
7943CFLAGS=
7944compiler=$CC
7945_LT_TAGVAR(compiler, $1)=$CC
7946_LT_CC_BASENAME([$compiler])
7947_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
7948
7949if test -n "$compiler"; then
7950  :
7951  _LT_CONFIG($1)
7952fi
7953
7954GCC=$lt_save_GCC
7955AC_LANG_RESTORE
7956CC=$lt_save_CC
7957CFLAGS=$lt_save_CFLAGS
7958])# _LT_LANG_RC_CONFIG
7959
7960
7961# LT_PROG_GCJ
7962# -----------
7963AC_DEFUN([LT_PROG_GCJ],
7964[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
7965  [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
7966    [AC_CHECK_TOOL(GCJ, gcj,)
7967      test set = "${GCJFLAGS+set}" || GCJFLAGS="-g -O2"
7968      AC_SUBST(GCJFLAGS)])])[]dnl
7969])
7970
7971# Old name:
7972AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
7973dnl aclocal-1.4 backwards compatibility:
7974dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
7975
7976
7977# LT_PROG_GO
7978# ----------
7979AC_DEFUN([LT_PROG_GO],
7980[AC_CHECK_TOOL(GOC, gccgo,)
7981])
7982
7983
7984# LT_PROG_RC
7985# ----------
7986AC_DEFUN([LT_PROG_RC],
7987[AC_CHECK_TOOL(RC, windres,)
7988])
7989
7990# Old name:
7991AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
7992dnl aclocal-1.4 backwards compatibility:
7993dnl AC_DEFUN([LT_AC_PROG_RC], [])
7994
7995
7996# _LT_DECL_EGREP
7997# --------------
7998# If we don't have a new enough Autoconf to choose the best grep
7999# available, choose the one first in the user's PATH.
8000m4_defun([_LT_DECL_EGREP],
8001[AC_REQUIRE([AC_PROG_EGREP])dnl
8002AC_REQUIRE([AC_PROG_FGREP])dnl
8003test -z "$GREP" && GREP=grep
8004_LT_DECL([], [GREP], [1], [A grep program that handles long lines])
8005_LT_DECL([], [EGREP], [1], [An ERE matcher])
8006_LT_DECL([], [FGREP], [1], [A literal string matcher])
8007dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
8008AC_SUBST([GREP])
8009])
8010
8011
8012# _LT_DECL_OBJDUMP
8013# --------------
8014# If we don't have a new enough Autoconf to choose the best objdump
8015# available, choose the one first in the user's PATH.
8016m4_defun([_LT_DECL_OBJDUMP],
8017[AC_CHECK_TOOL(OBJDUMP, objdump, false)
8018test -z "$OBJDUMP" && OBJDUMP=objdump
8019_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
8020AC_SUBST([OBJDUMP])
8021])
8022
8023# _LT_DECL_DLLTOOL
8024# ----------------
8025# Ensure DLLTOOL variable is set.
8026m4_defun([_LT_DECL_DLLTOOL],
8027[AC_CHECK_TOOL(DLLTOOL, dlltool, false)
8028test -z "$DLLTOOL" && DLLTOOL=dlltool
8029_LT_DECL([], [DLLTOOL], [1], [DLL creation program])
8030AC_SUBST([DLLTOOL])
8031])
8032
8033# _LT_DECL_SED
8034# ------------
8035# Check for a fully-functional sed program, that truncates
8036# as few characters as possible.  Prefer GNU sed if found.
8037m4_defun([_LT_DECL_SED],
8038[AC_PROG_SED
8039test -z "$SED" && SED=sed
8040Xsed="$SED -e 1s/^X//"
8041_LT_DECL([], [SED], [1], [A sed program that does not truncate output])
8042_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
8043    [Sed that helps us avoid accidentally triggering echo(1) options like -n])
8044])# _LT_DECL_SED
8045
8046m4_ifndef([AC_PROG_SED], [
8047# NOTE: This macro has been submitted for inclusion into   #
8048#  GNU Autoconf as AC_PROG_SED.  When it is available in   #
8049#  a released version of Autoconf we should remove this    #
8050#  macro and use it instead.                               #
8051
8052m4_defun([AC_PROG_SED],
8053[AC_MSG_CHECKING([for a sed that does not truncate output])
8054AC_CACHE_VAL(lt_cv_path_SED,
8055[# Loop through the user's path and test for sed and gsed.
8056# Then use that list of sed's as ones to test for truncation.
8057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8058for as_dir in $PATH
8059do
8060  IFS=$as_save_IFS
8061  test -z "$as_dir" && as_dir=.
8062  for lt_ac_prog in sed gsed; do
8063    for ac_exec_ext in '' $ac_executable_extensions; do
8064      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
8065        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
8066      fi
8067    done
8068  done
8069done
8070IFS=$as_save_IFS
8071lt_ac_max=0
8072lt_ac_count=0
8073# Add /usr/xpg4/bin/sed as it is typically found on Solaris
8074# along with /bin/sed that truncates output.
8075for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
8076  test ! -f "$lt_ac_sed" && continue
8077  cat /dev/null > conftest.in
8078  lt_ac_count=0
8079  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
8080  # Check for GNU sed and select it if it is found.
8081  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
8082    lt_cv_path_SED=$lt_ac_sed
8083    break
8084  fi
8085  while true; do
8086    cat conftest.in conftest.in >conftest.tmp
8087    mv conftest.tmp conftest.in
8088    cp conftest.in conftest.nl
8089    echo >>conftest.nl
8090    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
8091    cmp -s conftest.out conftest.nl || break
8092    # 10000 chars as input seems more than enough
8093    test 10 -lt "$lt_ac_count" && break
8094    lt_ac_count=`expr $lt_ac_count + 1`
8095    if test "$lt_ac_count" -gt "$lt_ac_max"; then
8096      lt_ac_max=$lt_ac_count
8097      lt_cv_path_SED=$lt_ac_sed
8098    fi
8099  done
8100done
8101])
8102SED=$lt_cv_path_SED
8103AC_SUBST([SED])
8104AC_MSG_RESULT([$SED])
8105])#AC_PROG_SED
8106])#m4_ifndef
8107
8108# Old name:
8109AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
8110dnl aclocal-1.4 backwards compatibility:
8111dnl AC_DEFUN([LT_AC_PROG_SED], [])
8112
8113
8114# _LT_CHECK_SHELL_FEATURES
8115# ------------------------
8116# Find out whether the shell is Bourne or XSI compatible,
8117# or has some other useful features.
8118m4_defun([_LT_CHECK_SHELL_FEATURES],
8119[if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8120  lt_unset=unset
8121else
8122  lt_unset=false
8123fi
8124_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
8125
8126# test EBCDIC or ASCII
8127case `echo X|tr X '\101'` in
8128 A) # ASCII based system
8129    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8130  lt_SP2NL='tr \040 \012'
8131  lt_NL2SP='tr \015\012 \040\040'
8132  ;;
8133 *) # EBCDIC based system
8134  lt_SP2NL='tr \100 \n'
8135  lt_NL2SP='tr \r\n \100\100'
8136  ;;
8137esac
8138_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
8139_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
8140])# _LT_CHECK_SHELL_FEATURES
8141
8142
8143# _LT_PATH_CONVERSION_FUNCTIONS
8144# -----------------------------
8145# Determine what file name conversion functions should be used by
8146# func_to_host_file (and, implicitly, by func_to_host_path).  These are needed
8147# for certain cross-compile configurations and native mingw.
8148m4_defun([_LT_PATH_CONVERSION_FUNCTIONS],
8149[AC_REQUIRE([AC_CANONICAL_HOST])dnl
8150AC_REQUIRE([AC_CANONICAL_BUILD])dnl
8151AC_MSG_CHECKING([how to convert $build file names to $host format])
8152AC_CACHE_VAL(lt_cv_to_host_file_cmd,
8153[case $host in
8154  *-*-mingw* )
8155    case $build in
8156      *-*-mingw* ) # actually msys
8157        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8158        ;;
8159      *-*-cygwin* )
8160        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8161        ;;
8162      * ) # otherwise, assume *nix
8163        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8164        ;;
8165    esac
8166    ;;
8167  *-*-cygwin* )
8168    case $build in
8169      *-*-mingw* ) # actually msys
8170        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8171        ;;
8172      *-*-cygwin* )
8173        lt_cv_to_host_file_cmd=func_convert_file_noop
8174        ;;
8175      * ) # otherwise, assume *nix
8176        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8177        ;;
8178    esac
8179    ;;
8180  * ) # unhandled hosts (and "normal" native builds)
8181    lt_cv_to_host_file_cmd=func_convert_file_noop
8182    ;;
8183esac
8184])
8185to_host_file_cmd=$lt_cv_to_host_file_cmd
8186AC_MSG_RESULT([$lt_cv_to_host_file_cmd])
8187_LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd],
8188         [0], [convert $build file names to $host format])dnl
8189
8190AC_MSG_CHECKING([how to convert $build file names to toolchain format])
8191AC_CACHE_VAL(lt_cv_to_tool_file_cmd,
8192[#assume ordinary cross tools, or native build.
8193lt_cv_to_tool_file_cmd=func_convert_file_noop
8194case $host in
8195  *-*-mingw* )
8196    case $build in
8197      *-*-mingw* ) # actually msys
8198        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8199        ;;
8200    esac
8201    ;;
8202esac
8203])
8204to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8205AC_MSG_RESULT([$lt_cv_to_tool_file_cmd])
8206_LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd],
8207         [0], [convert $build files to toolchain format])dnl
8208])# _LT_PATH_CONVERSION_FUNCTIONS
8209
8210# Helper functions for option handling.                    -*- Autoconf -*-
8211#
8212#   Copyright (C) 2004-2005, 2007-2009, 2011-2013 Free Software
8213#   Foundation, Inc.
8214#   Written by Gary V. Vaughan, 2004
8215#
8216# This file is free software; the Free Software Foundation gives
8217# unlimited permission to copy and/or distribute it, with or without
8218# modifications, as long as this notice is preserved.
8219
8220# serial 8 ltoptions.m4
8221
8222# This is to help aclocal find these macros, as it can't see m4_define.
8223AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
8224
8225
8226# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
8227# ------------------------------------------
8228m4_define([_LT_MANGLE_OPTION],
8229[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
8230
8231
8232# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
8233# ---------------------------------------
8234# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
8235# matching handler defined, dispatch to it.  Other OPTION-NAMEs are
8236# saved as a flag.
8237m4_define([_LT_SET_OPTION],
8238[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
8239m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
8240        _LT_MANGLE_DEFUN([$1], [$2]),
8241    [m4_warning([Unknown $1 option '$2'])])[]dnl
8242])
8243
8244
8245# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
8246# ------------------------------------------------------------
8247# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
8248m4_define([_LT_IF_OPTION],
8249[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
8250
8251
8252# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
8253# -------------------------------------------------------
8254# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
8255# are set.
8256m4_define([_LT_UNLESS_OPTIONS],
8257[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
8258	    [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
8259		      [m4_define([$0_found])])])[]dnl
8260m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
8261])[]dnl
8262])
8263
8264
8265# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
8266# ----------------------------------------
8267# OPTION-LIST is a space-separated list of Libtool options associated
8268# with MACRO-NAME.  If any OPTION has a matching handler declared with
8269# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
8270# the unknown option and exit.
8271m4_defun([_LT_SET_OPTIONS],
8272[# Set options
8273m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
8274    [_LT_SET_OPTION([$1], _LT_Option)])
8275
8276m4_if([$1],[LT_INIT],[
8277  dnl
8278  dnl Simply set some default values (i.e off) if boolean options were not
8279  dnl specified:
8280  _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
8281  ])
8282  _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
8283  ])
8284  dnl
8285  dnl If no reference was made to various pairs of opposing options, then
8286  dnl we run the default mode handler for the pair.  For example, if neither
8287  dnl 'shared' nor 'disable-shared' was passed, we enable building of shared
8288  dnl archives by default:
8289  _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
8290  _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
8291  _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
8292  _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
8293		   [_LT_ENABLE_FAST_INSTALL])
8294  ])
8295])# _LT_SET_OPTIONS
8296
8297
8298
8299# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
8300# -----------------------------------------
8301m4_define([_LT_MANGLE_DEFUN],
8302[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
8303
8304
8305# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
8306# -----------------------------------------------
8307m4_define([LT_OPTION_DEFINE],
8308[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
8309])# LT_OPTION_DEFINE
8310
8311
8312# dlopen
8313# ------
8314LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
8315])
8316
8317AU_DEFUN([AC_LIBTOOL_DLOPEN],
8318[_LT_SET_OPTION([LT_INIT], [dlopen])
8319AC_DIAGNOSE([obsolete],
8320[$0: Remove this warning and the call to _LT_SET_OPTION when you
8321put the 'dlopen' option into LT_INIT's first parameter.])
8322])
8323
8324dnl aclocal-1.4 backwards compatibility:
8325dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
8326
8327
8328# win32-dll
8329# ---------
8330# Declare package support for building win32 dll's.
8331LT_OPTION_DEFINE([LT_INIT], [win32-dll],
8332[enable_win32_dll=yes
8333
8334case $host in
8335*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
8336  AC_CHECK_TOOL(AS, as, false)
8337  AC_CHECK_TOOL(DLLTOOL, dlltool, false)
8338  AC_CHECK_TOOL(OBJDUMP, objdump, false)
8339  ;;
8340esac
8341
8342test -z "$AS" && AS=as
8343_LT_DECL([], [AS],      [1], [Assembler program])dnl
8344
8345test -z "$DLLTOOL" && DLLTOOL=dlltool
8346_LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl
8347
8348test -z "$OBJDUMP" && OBJDUMP=objdump
8349_LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl
8350])# win32-dll
8351
8352AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
8353[AC_REQUIRE([AC_CANONICAL_HOST])dnl
8354_LT_SET_OPTION([LT_INIT], [win32-dll])
8355AC_DIAGNOSE([obsolete],
8356[$0: Remove this warning and the call to _LT_SET_OPTION when you
8357put the 'win32-dll' option into LT_INIT's first parameter.])
8358])
8359
8360dnl aclocal-1.4 backwards compatibility:
8361dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
8362
8363
8364# _LT_ENABLE_SHARED([DEFAULT])
8365# ----------------------------
8366# implement the --enable-shared flag, and supports the 'shared' and
8367# 'disable-shared' LT_INIT options.
8368# DEFAULT is either 'yes' or 'no'.  If omitted, it defaults to 'yes'.
8369m4_define([_LT_ENABLE_SHARED],
8370[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
8371AC_ARG_ENABLE([shared],
8372    [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
8373	[build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
8374    [p=${PACKAGE-default}
8375    case $enableval in
8376    yes) enable_shared=yes ;;
8377    no) enable_shared=no ;;
8378    *)
8379      enable_shared=no
8380      # Look at the argument we got.  We use all the common list separators.
8381      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8382      for pkg in $enableval; do
8383	IFS=$lt_save_ifs
8384	if test "X$pkg" = "X$p"; then
8385	  enable_shared=yes
8386	fi
8387      done
8388      IFS=$lt_save_ifs
8389      ;;
8390    esac],
8391    [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
8392
8393    _LT_DECL([build_libtool_libs], [enable_shared], [0],
8394	[Whether or not to build shared libraries])
8395])# _LT_ENABLE_SHARED
8396
8397LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
8398LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
8399
8400# Old names:
8401AC_DEFUN([AC_ENABLE_SHARED],
8402[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
8403])
8404
8405AC_DEFUN([AC_DISABLE_SHARED],
8406[_LT_SET_OPTION([LT_INIT], [disable-shared])
8407])
8408
8409AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
8410AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
8411
8412dnl aclocal-1.4 backwards compatibility:
8413dnl AC_DEFUN([AM_ENABLE_SHARED], [])
8414dnl AC_DEFUN([AM_DISABLE_SHARED], [])
8415
8416
8417
8418# _LT_ENABLE_STATIC([DEFAULT])
8419# ----------------------------
8420# implement the --enable-static flag, and support the 'static' and
8421# 'disable-static' LT_INIT options.
8422# DEFAULT is either 'yes' or 'no'.  If omitted, it defaults to 'yes'.
8423m4_define([_LT_ENABLE_STATIC],
8424[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
8425AC_ARG_ENABLE([static],
8426    [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
8427	[build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
8428    [p=${PACKAGE-default}
8429    case $enableval in
8430    yes) enable_static=yes ;;
8431    no) enable_static=no ;;
8432    *)
8433     enable_static=no
8434      # Look at the argument we got.  We use all the common list separators.
8435      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8436      for pkg in $enableval; do
8437	IFS=$lt_save_ifs
8438	if test "X$pkg" = "X$p"; then
8439	  enable_static=yes
8440	fi
8441      done
8442      IFS=$lt_save_ifs
8443      ;;
8444    esac],
8445    [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
8446
8447    _LT_DECL([build_old_libs], [enable_static], [0],
8448	[Whether or not to build static libraries])
8449])# _LT_ENABLE_STATIC
8450
8451LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
8452LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
8453
8454# Old names:
8455AC_DEFUN([AC_ENABLE_STATIC],
8456[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
8457])
8458
8459AC_DEFUN([AC_DISABLE_STATIC],
8460[_LT_SET_OPTION([LT_INIT], [disable-static])
8461])
8462
8463AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
8464AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
8465
8466dnl aclocal-1.4 backwards compatibility:
8467dnl AC_DEFUN([AM_ENABLE_STATIC], [])
8468dnl AC_DEFUN([AM_DISABLE_STATIC], [])
8469
8470
8471
8472# _LT_ENABLE_FAST_INSTALL([DEFAULT])
8473# ----------------------------------
8474# implement the --enable-fast-install flag, and support the 'fast-install'
8475# and 'disable-fast-install' LT_INIT options.
8476# DEFAULT is either 'yes' or 'no'.  If omitted, it defaults to 'yes'.
8477m4_define([_LT_ENABLE_FAST_INSTALL],
8478[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
8479AC_ARG_ENABLE([fast-install],
8480    [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
8481    [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
8482    [p=${PACKAGE-default}
8483    case $enableval in
8484    yes) enable_fast_install=yes ;;
8485    no) enable_fast_install=no ;;
8486    *)
8487      enable_fast_install=no
8488      # Look at the argument we got.  We use all the common list separators.
8489      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8490      for pkg in $enableval; do
8491	IFS=$lt_save_ifs
8492	if test "X$pkg" = "X$p"; then
8493	  enable_fast_install=yes
8494	fi
8495      done
8496      IFS=$lt_save_ifs
8497      ;;
8498    esac],
8499    [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
8500
8501_LT_DECL([fast_install], [enable_fast_install], [0],
8502	 [Whether or not to optimize for fast installation])dnl
8503])# _LT_ENABLE_FAST_INSTALL
8504
8505LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
8506LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
8507
8508# Old names:
8509AU_DEFUN([AC_ENABLE_FAST_INSTALL],
8510[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
8511AC_DIAGNOSE([obsolete],
8512[$0: Remove this warning and the call to _LT_SET_OPTION when you put
8513the 'fast-install' option into LT_INIT's first parameter.])
8514])
8515
8516AU_DEFUN([AC_DISABLE_FAST_INSTALL],
8517[_LT_SET_OPTION([LT_INIT], [disable-fast-install])
8518AC_DIAGNOSE([obsolete],
8519[$0: Remove this warning and the call to _LT_SET_OPTION when you put
8520the 'disable-fast-install' option into LT_INIT's first parameter.])
8521])
8522
8523dnl aclocal-1.4 backwards compatibility:
8524dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
8525dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
8526
8527
8528# _LT_WITH_PIC([MODE])
8529# --------------------
8530# implement the --with-pic flag, and support the 'pic-only' and 'no-pic'
8531# LT_INIT options.
8532# MODE is either 'yes' or 'no'.  If omitted, it defaults to 'both'.
8533m4_define([_LT_WITH_PIC],
8534[AC_ARG_WITH([pic],
8535    [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@],
8536	[try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
8537    [lt_p=${PACKAGE-default}
8538    case $withval in
8539    yes|no) pic_mode=$withval ;;
8540    *)
8541      pic_mode=default
8542      # Look at the argument we got.  We use all the common list separators.
8543      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8544      for lt_pkg in $withval; do
8545	IFS=$lt_save_ifs
8546	if test "X$lt_pkg" = "X$lt_p"; then
8547	  pic_mode=yes
8548	fi
8549      done
8550      IFS=$lt_save_ifs
8551      ;;
8552    esac],
8553    [pic_mode=m4_default([$1], [default])])
8554
8555_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
8556])# _LT_WITH_PIC
8557
8558LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
8559LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
8560
8561# Old name:
8562AU_DEFUN([AC_LIBTOOL_PICMODE],
8563[_LT_SET_OPTION([LT_INIT], [pic-only])
8564AC_DIAGNOSE([obsolete],
8565[$0: Remove this warning and the call to _LT_SET_OPTION when you
8566put the 'pic-only' option into LT_INIT's first parameter.])
8567])
8568
8569dnl aclocal-1.4 backwards compatibility:
8570dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
8571
8572
8573m4_define([_LTDL_MODE], [])
8574LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
8575		 [m4_define([_LTDL_MODE], [nonrecursive])])
8576LT_OPTION_DEFINE([LTDL_INIT], [recursive],
8577		 [m4_define([_LTDL_MODE], [recursive])])
8578LT_OPTION_DEFINE([LTDL_INIT], [subproject],
8579		 [m4_define([_LTDL_MODE], [subproject])])
8580
8581m4_define([_LTDL_TYPE], [])
8582LT_OPTION_DEFINE([LTDL_INIT], [installable],
8583		 [m4_define([_LTDL_TYPE], [installable])])
8584LT_OPTION_DEFINE([LTDL_INIT], [convenience],
8585		 [m4_define([_LTDL_TYPE], [convenience])])
8586
8587# ltsugar.m4 -- libtool m4 base layer.                         -*-Autoconf-*-
8588#
8589# Copyright (C) 2004-2005, 2007-2008, 2011-2013 Free Software
8590# Foundation, Inc.
8591# Written by Gary V. Vaughan, 2004
8592#
8593# This file is free software; the Free Software Foundation gives
8594# unlimited permission to copy and/or distribute it, with or without
8595# modifications, as long as this notice is preserved.
8596
8597# serial 6 ltsugar.m4
8598
8599# This is to help aclocal find these macros, as it can't see m4_define.
8600AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
8601
8602
8603# lt_join(SEP, ARG1, [ARG2...])
8604# -----------------------------
8605# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
8606# associated separator.
8607# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
8608# versions in m4sugar had bugs.
8609m4_define([lt_join],
8610[m4_if([$#], [1], [],
8611       [$#], [2], [[$2]],
8612       [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
8613m4_define([_lt_join],
8614[m4_if([$#$2], [2], [],
8615       [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
8616
8617
8618# lt_car(LIST)
8619# lt_cdr(LIST)
8620# ------------
8621# Manipulate m4 lists.
8622# These macros are necessary as long as will still need to support
8623# Autoconf-2.59, which quotes differently.
8624m4_define([lt_car], [[$1]])
8625m4_define([lt_cdr],
8626[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
8627       [$#], 1, [],
8628       [m4_dquote(m4_shift($@))])])
8629m4_define([lt_unquote], $1)
8630
8631
8632# lt_append(MACRO-NAME, STRING, [SEPARATOR])
8633# ------------------------------------------
8634# Redefine MACRO-NAME to hold its former content plus 'SEPARATOR''STRING'.
8635# Note that neither SEPARATOR nor STRING are expanded; they are appended
8636# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
8637# No SEPARATOR is output if MACRO-NAME was previously undefined (different
8638# than defined and empty).
8639#
8640# This macro is needed until we can rely on Autoconf 2.62, since earlier
8641# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
8642m4_define([lt_append],
8643[m4_define([$1],
8644	   m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
8645
8646
8647
8648# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
8649# ----------------------------------------------------------
8650# Produce a SEP delimited list of all paired combinations of elements of
8651# PREFIX-LIST with SUFFIX1 through SUFFIXn.  Each element of the list
8652# has the form PREFIXmINFIXSUFFIXn.
8653# Needed until we can rely on m4_combine added in Autoconf 2.62.
8654m4_define([lt_combine],
8655[m4_if(m4_eval([$# > 3]), [1],
8656       [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
8657[[m4_foreach([_Lt_prefix], [$2],
8658	     [m4_foreach([_Lt_suffix],
8659		]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
8660	[_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
8661
8662
8663# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
8664# -----------------------------------------------------------------------
8665# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
8666# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
8667m4_define([lt_if_append_uniq],
8668[m4_ifdef([$1],
8669	  [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
8670		 [lt_append([$1], [$2], [$3])$4],
8671		 [$5])],
8672	  [lt_append([$1], [$2], [$3])$4])])
8673
8674
8675# lt_dict_add(DICT, KEY, VALUE)
8676# -----------------------------
8677m4_define([lt_dict_add],
8678[m4_define([$1($2)], [$3])])
8679
8680
8681# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
8682# --------------------------------------------
8683m4_define([lt_dict_add_subkey],
8684[m4_define([$1($2:$3)], [$4])])
8685
8686
8687# lt_dict_fetch(DICT, KEY, [SUBKEY])
8688# ----------------------------------
8689m4_define([lt_dict_fetch],
8690[m4_ifval([$3],
8691	m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
8692    m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
8693
8694
8695# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
8696# -----------------------------------------------------------------
8697m4_define([lt_if_dict_fetch],
8698[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
8699	[$5],
8700    [$6])])
8701
8702
8703# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
8704# --------------------------------------------------------------
8705m4_define([lt_dict_filter],
8706[m4_if([$5], [], [],
8707  [lt_join(m4_quote(m4_default([$4], [[, ]])),
8708           lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
8709		      [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
8710])
8711
8712# ltversion.m4 -- version numbers			-*- Autoconf -*-
8713#
8714#   Copyright (C) 2004, 2011-2013 Free Software Foundation, Inc.
8715#   Written by Scott James Remnant, 2004
8716#
8717# This file is free software; the Free Software Foundation gives
8718# unlimited permission to copy and/or distribute it, with or without
8719# modifications, as long as this notice is preserved.
8720
8721# @configure_input@
8722
8723# serial 4038 ltversion.m4
8724# This file is part of GNU Libtool
8725
8726m4_define([LT_PACKAGE_VERSION], [2.4.2.418])
8727m4_define([LT_PACKAGE_REVISION], [2.4.2.418])
8728
8729AC_DEFUN([LTVERSION_VERSION],
8730[macro_version='2.4.2.418'
8731macro_revision='2.4.2.418'
8732_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
8733_LT_DECL(, macro_revision, 0)
8734])
8735
8736# lt~obsolete.m4 -- aclocal satisfying obsolete definitions.    -*-Autoconf-*-
8737#
8738#   Copyright (C) 2004-2005, 2007, 2009, 2011-2013 Free Software
8739#   Foundation, Inc.
8740#   Written by Scott James Remnant, 2004.
8741#
8742# This file is free software; the Free Software Foundation gives
8743# unlimited permission to copy and/or distribute it, with or without
8744# modifications, as long as this notice is preserved.
8745
8746# serial 5 lt~obsolete.m4
8747
8748# These exist entirely to fool aclocal when bootstrapping libtool.
8749#
8750# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN),
8751# which have later been changed to m4_define as they aren't part of the
8752# exported API, or moved to Autoconf or Automake where they belong.
8753#
8754# The trouble is, aclocal is a bit thick.  It'll see the old AC_DEFUN
8755# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
8756# using a macro with the same name in our local m4/libtool.m4 it'll
8757# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
8758# and doesn't know about Autoconf macros at all.)
8759#
8760# So we provide this file, which has a silly filename so it's always
8761# included after everything else.  This provides aclocal with the
8762# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
8763# because those macros already exist, or will be overwritten later.
8764# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
8765#
8766# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
8767# Yes, that means every name once taken will need to remain here until
8768# we give up compatibility with versions before 1.7, at which point
8769# we need to keep only those names which we still refer to.
8770
8771# This is to help aclocal find these macros, as it can't see m4_define.
8772AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
8773
8774m4_ifndef([AC_LIBTOOL_LINKER_OPTION],	[AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
8775m4_ifndef([AC_PROG_EGREP],		[AC_DEFUN([AC_PROG_EGREP])])
8776m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH],	[AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
8777m4_ifndef([_LT_AC_SHELL_INIT],		[AC_DEFUN([_LT_AC_SHELL_INIT])])
8778m4_ifndef([_LT_AC_SYS_LIBPATH_AIX],	[AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
8779m4_ifndef([_LT_PROG_LTMAIN],		[AC_DEFUN([_LT_PROG_LTMAIN])])
8780m4_ifndef([_LT_AC_TAGVAR],		[AC_DEFUN([_LT_AC_TAGVAR])])
8781m4_ifndef([AC_LTDL_ENABLE_INSTALL],	[AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
8782m4_ifndef([AC_LTDL_PREOPEN],		[AC_DEFUN([AC_LTDL_PREOPEN])])
8783m4_ifndef([_LT_AC_SYS_COMPILER],	[AC_DEFUN([_LT_AC_SYS_COMPILER])])
8784m4_ifndef([_LT_AC_LOCK],		[AC_DEFUN([_LT_AC_LOCK])])
8785m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE],	[AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
8786m4_ifndef([_LT_AC_TRY_DLOPEN_SELF],	[AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
8787m4_ifndef([AC_LIBTOOL_PROG_CC_C_O],	[AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
8788m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
8789m4_ifndef([AC_LIBTOOL_OBJDIR],		[AC_DEFUN([AC_LIBTOOL_OBJDIR])])
8790m4_ifndef([AC_LTDL_OBJDIR],		[AC_DEFUN([AC_LTDL_OBJDIR])])
8791m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
8792m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP],	[AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
8793m4_ifndef([AC_PATH_MAGIC],		[AC_DEFUN([AC_PATH_MAGIC])])
8794m4_ifndef([AC_PROG_LD_GNU],		[AC_DEFUN([AC_PROG_LD_GNU])])
8795m4_ifndef([AC_PROG_LD_RELOAD_FLAG],	[AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
8796m4_ifndef([AC_DEPLIBS_CHECK_METHOD],	[AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
8797m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
8798m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
8799m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
8800m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS],	[AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
8801m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP],	[AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
8802m4_ifndef([LT_AC_PROG_EGREP],		[AC_DEFUN([LT_AC_PROG_EGREP])])
8803m4_ifndef([LT_AC_PROG_SED],		[AC_DEFUN([LT_AC_PROG_SED])])
8804m4_ifndef([_LT_CC_BASENAME],		[AC_DEFUN([_LT_CC_BASENAME])])
8805m4_ifndef([_LT_COMPILER_BOILERPLATE],	[AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
8806m4_ifndef([_LT_LINKER_BOILERPLATE],	[AC_DEFUN([_LT_LINKER_BOILERPLATE])])
8807m4_ifndef([_AC_PROG_LIBTOOL],		[AC_DEFUN([_AC_PROG_LIBTOOL])])
8808m4_ifndef([AC_LIBTOOL_SETUP],		[AC_DEFUN([AC_LIBTOOL_SETUP])])
8809m4_ifndef([_LT_AC_CHECK_DLFCN],		[AC_DEFUN([_LT_AC_CHECK_DLFCN])])
8810m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER],	[AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
8811m4_ifndef([_LT_AC_TAGCONFIG],		[AC_DEFUN([_LT_AC_TAGCONFIG])])
8812m4_ifndef([AC_DISABLE_FAST_INSTALL],	[AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
8813m4_ifndef([_LT_AC_LANG_CXX],		[AC_DEFUN([_LT_AC_LANG_CXX])])
8814m4_ifndef([_LT_AC_LANG_F77],		[AC_DEFUN([_LT_AC_LANG_F77])])
8815m4_ifndef([_LT_AC_LANG_GCJ],		[AC_DEFUN([_LT_AC_LANG_GCJ])])
8816m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG],	[AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
8817m4_ifndef([_LT_AC_LANG_C_CONFIG],	[AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
8818m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG],	[AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
8819m4_ifndef([_LT_AC_LANG_CXX_CONFIG],	[AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
8820m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG],	[AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
8821m4_ifndef([_LT_AC_LANG_F77_CONFIG],	[AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
8822m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG],	[AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
8823m4_ifndef([_LT_AC_LANG_GCJ_CONFIG],	[AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
8824m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG],	[AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
8825m4_ifndef([_LT_AC_LANG_RC_CONFIG],	[AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
8826m4_ifndef([AC_LIBTOOL_CONFIG],		[AC_DEFUN([AC_LIBTOOL_CONFIG])])
8827m4_ifndef([_LT_AC_FILE_LTDLL_C],	[AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
8828m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS],	[AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])])
8829m4_ifndef([_LT_AC_PROG_CXXCPP],		[AC_DEFUN([_LT_AC_PROG_CXXCPP])])
8830m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS],	[AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])])
8831m4_ifndef([_LT_PROG_ECHO_BACKSLASH],	[AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])])
8832m4_ifndef([_LT_PROG_F77],		[AC_DEFUN([_LT_PROG_F77])])
8833m4_ifndef([_LT_PROG_FC],		[AC_DEFUN([_LT_PROG_FC])])
8834m4_ifndef([_LT_PROG_CXX],		[AC_DEFUN([_LT_PROG_CXX])])
8835
8836# Copyright (C) 2002-2014 Free Software Foundation, Inc.
8837#
8838# This file is free software; the Free Software Foundation
8839# gives unlimited permission to copy and/or distribute it,
8840# with or without modifications, as long as this notice is preserved.
8841
8842# AM_AUTOMAKE_VERSION(VERSION)
8843# ----------------------------
8844# Automake X.Y traces this macro to ensure aclocal.m4 has been
8845# generated from the m4 files accompanying Automake X.Y.
8846# (This private macro should not be called outside this file.)
8847AC_DEFUN([AM_AUTOMAKE_VERSION],
8848[am__api_version='1.15'
8849dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
8850dnl require some minimum version.  Point them to the right macro.
8851m4_if([$1], [1.15], [],
8852      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
8853])
8854
8855# _AM_AUTOCONF_VERSION(VERSION)
8856# -----------------------------
8857# aclocal traces this macro to find the Autoconf version.
8858# This is a private macro too.  Using m4_define simplifies
8859# the logic in aclocal, which can simply ignore this definition.
8860m4_define([_AM_AUTOCONF_VERSION], [])
8861
8862# AM_SET_CURRENT_AUTOMAKE_VERSION
8863# -------------------------------
8864# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
8865# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
8866AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
8867[AM_AUTOMAKE_VERSION([1.15])dnl
8868m4_ifndef([AC_AUTOCONF_VERSION],
8869  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
8870_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
8871
8872# Copyright (C) 2011-2014 Free Software Foundation, Inc.
8873#
8874# This file is free software; the Free Software Foundation
8875# gives unlimited permission to copy and/or distribute it,
8876# with or without modifications, as long as this notice is preserved.
8877
8878# AM_PROG_AR([ACT-IF-FAIL])
8879# -------------------------
8880# Try to determine the archiver interface, and trigger the ar-lib wrapper
8881# if it is needed.  If the detection of archiver interface fails, run
8882# ACT-IF-FAIL (default is to abort configure with a proper error message).
8883AC_DEFUN([AM_PROG_AR],
8884[AC_BEFORE([$0], [LT_INIT])dnl
8885AC_BEFORE([$0], [AC_PROG_LIBTOOL])dnl
8886AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
8887AC_REQUIRE_AUX_FILE([ar-lib])dnl
8888AC_CHECK_TOOLS([AR], [ar lib "link -lib"], [false])
8889: ${AR=ar}
8890
8891AC_CACHE_CHECK([the archiver ($AR) interface], [am_cv_ar_interface],
8892  [AC_LANG_PUSH([C])
8893   am_cv_ar_interface=ar
8894   AC_COMPILE_IFELSE([AC_LANG_SOURCE([[int some_variable = 0;]])],
8895     [am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&AS_MESSAGE_LOG_FD'
8896      AC_TRY_EVAL([am_ar_try])
8897      if test "$ac_status" -eq 0; then
8898        am_cv_ar_interface=ar
8899      else
8900        am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&AS_MESSAGE_LOG_FD'
8901        AC_TRY_EVAL([am_ar_try])
8902        if test "$ac_status" -eq 0; then
8903          am_cv_ar_interface=lib
8904        else
8905          am_cv_ar_interface=unknown
8906        fi
8907      fi
8908      rm -f conftest.lib libconftest.a
8909     ])
8910   AC_LANG_POP([C])])
8911
8912case $am_cv_ar_interface in
8913ar)
8914  ;;
8915lib)
8916  # Microsoft lib, so override with the ar-lib wrapper script.
8917  # FIXME: It is wrong to rewrite AR.
8918  # But if we don't then we get into trouble of one sort or another.
8919  # A longer-term fix would be to have automake use am__AR in this case,
8920  # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
8921  # similar.
8922  AR="$am_aux_dir/ar-lib $AR"
8923  ;;
8924unknown)
8925  m4_default([$1],
8926             [AC_MSG_ERROR([could not determine $AR interface])])
8927  ;;
8928esac
8929AC_SUBST([AR])dnl
8930])
8931
8932# Figure out how to run the assembler.                      -*- Autoconf -*-
8933
8934# Copyright (C) 2001-2014 Free Software Foundation, Inc.
8935#
8936# This file is free software; the Free Software Foundation
8937# gives unlimited permission to copy and/or distribute it,
8938# with or without modifications, as long as this notice is preserved.
8939
8940# AM_PROG_AS
8941# ----------
8942AC_DEFUN([AM_PROG_AS],
8943[# By default we simply use the C compiler to build assembly code.
8944AC_REQUIRE([AC_PROG_CC])
8945test "${CCAS+set}" = set || CCAS=$CC
8946test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
8947AC_ARG_VAR([CCAS],      [assembler compiler command (defaults to CC)])
8948AC_ARG_VAR([CCASFLAGS], [assembler compiler flags (defaults to CFLAGS)])
8949_AM_IF_OPTION([no-dependencies],, [_AM_DEPENDENCIES([CCAS])])dnl
8950])
8951
8952# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
8953
8954# Copyright (C) 2001-2014 Free Software Foundation, Inc.
8955#
8956# This file is free software; the Free Software Foundation
8957# gives unlimited permission to copy and/or distribute it,
8958# with or without modifications, as long as this notice is preserved.
8959
8960# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
8961# $ac_aux_dir to '$srcdir/foo'.  In other projects, it is set to
8962# '$srcdir', '$srcdir/..', or '$srcdir/../..'.
8963#
8964# Of course, Automake must honor this variable whenever it calls a
8965# tool from the auxiliary directory.  The problem is that $srcdir (and
8966# therefore $ac_aux_dir as well) can be either absolute or relative,
8967# depending on how configure is run.  This is pretty annoying, since
8968# it makes $ac_aux_dir quite unusable in subdirectories: in the top
8969# source directory, any form will work fine, but in subdirectories a
8970# relative path needs to be adjusted first.
8971#
8972# $ac_aux_dir/missing
8973#    fails when called from a subdirectory if $ac_aux_dir is relative
8974# $top_srcdir/$ac_aux_dir/missing
8975#    fails if $ac_aux_dir is absolute,
8976#    fails when called from a subdirectory in a VPATH build with
8977#          a relative $ac_aux_dir
8978#
8979# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
8980# are both prefixed by $srcdir.  In an in-source build this is usually
8981# harmless because $srcdir is '.', but things will broke when you
8982# start a VPATH build or use an absolute $srcdir.
8983#
8984# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
8985# iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
8986#   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
8987# and then we would define $MISSING as
8988#   MISSING="\${SHELL} $am_aux_dir/missing"
8989# This will work as long as MISSING is not called from configure, because
8990# unfortunately $(top_srcdir) has no meaning in configure.
8991# However there are other variables, like CC, which are often used in
8992# configure, and could therefore not use this "fixed" $ac_aux_dir.
8993#
8994# Another solution, used here, is to always expand $ac_aux_dir to an
8995# absolute PATH.  The drawback is that using absolute paths prevent a
8996# configured tree to be moved without reconfiguration.
8997
8998AC_DEFUN([AM_AUX_DIR_EXPAND],
8999[AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
9000# Expand $ac_aux_dir to an absolute path.
9001am_aux_dir=`cd "$ac_aux_dir" && pwd`
9002])
9003
9004# AM_CONDITIONAL                                            -*- Autoconf -*-
9005
9006# Copyright (C) 1997-2014 Free Software Foundation, Inc.
9007#
9008# This file is free software; the Free Software Foundation
9009# gives unlimited permission to copy and/or distribute it,
9010# with or without modifications, as long as this notice is preserved.
9011
9012# AM_CONDITIONAL(NAME, SHELL-CONDITION)
9013# -------------------------------------
9014# Define a conditional.
9015AC_DEFUN([AM_CONDITIONAL],
9016[AC_PREREQ([2.52])dnl
9017 m4_if([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
9018       [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
9019AC_SUBST([$1_TRUE])dnl
9020AC_SUBST([$1_FALSE])dnl
9021_AM_SUBST_NOTMAKE([$1_TRUE])dnl
9022_AM_SUBST_NOTMAKE([$1_FALSE])dnl
9023m4_define([_AM_COND_VALUE_$1], [$2])dnl
9024if $2; then
9025  $1_TRUE=
9026  $1_FALSE='#'
9027else
9028  $1_TRUE='#'
9029  $1_FALSE=
9030fi
9031AC_CONFIG_COMMANDS_PRE(
9032[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
9033  AC_MSG_ERROR([[conditional "$1" was never defined.
9034Usually this means the macro was only invoked conditionally.]])
9035fi])])
9036
9037# Copyright (C) 1999-2014 Free Software Foundation, Inc.
9038#
9039# This file is free software; the Free Software Foundation
9040# gives unlimited permission to copy and/or distribute it,
9041# with or without modifications, as long as this notice is preserved.
9042
9043
9044# There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
9045# written in clear, in which case automake, when reading aclocal.m4,
9046# will think it sees a *use*, and therefore will trigger all it's
9047# C support machinery.  Also note that it means that autoscan, seeing
9048# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
9049
9050
9051# _AM_DEPENDENCIES(NAME)
9052# ----------------------
9053# See how the compiler implements dependency checking.
9054# NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC".
9055# We try a few techniques and use that to set a single cache variable.
9056#
9057# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
9058# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
9059# dependency, and given that the user is not expected to run this macro,
9060# just rely on AC_PROG_CC.
9061AC_DEFUN([_AM_DEPENDENCIES],
9062[AC_REQUIRE([AM_SET_DEPDIR])dnl
9063AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
9064AC_REQUIRE([AM_MAKE_INCLUDE])dnl
9065AC_REQUIRE([AM_DEP_TRACK])dnl
9066
9067m4_if([$1], [CC],   [depcc="$CC"   am_compiler_list=],
9068      [$1], [CXX],  [depcc="$CXX"  am_compiler_list=],
9069      [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
9070      [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
9071      [$1], [UPC],  [depcc="$UPC"  am_compiler_list=],
9072      [$1], [GCJ],  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
9073                    [depcc="$$1"   am_compiler_list=])
9074
9075AC_CACHE_CHECK([dependency style of $depcc],
9076               [am_cv_$1_dependencies_compiler_type],
9077[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
9078  # We make a subdir and do the tests there.  Otherwise we can end up
9079  # making bogus files that we don't know about and never remove.  For
9080  # instance it was reported that on HP-UX the gcc test will end up
9081  # making a dummy file named 'D' -- because '-MD' means "put the output
9082  # in D".
9083  rm -rf conftest.dir
9084  mkdir conftest.dir
9085  # Copy depcomp to subdir because otherwise we won't find it if we're
9086  # using a relative directory.
9087  cp "$am_depcomp" conftest.dir
9088  cd conftest.dir
9089  # We will build objects and dependencies in a subdirectory because
9090  # it helps to detect inapplicable dependency modes.  For instance
9091  # both Tru64's cc and ICC support -MD to output dependencies as a
9092  # side effect of compilation, but ICC will put the dependencies in
9093  # the current directory while Tru64 will put them in the object
9094  # directory.
9095  mkdir sub
9096
9097  am_cv_$1_dependencies_compiler_type=none
9098  if test "$am_compiler_list" = ""; then
9099     am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
9100  fi
9101  am__universal=false
9102  m4_case([$1], [CC],
9103    [case " $depcc " in #(
9104     *\ -arch\ *\ -arch\ *) am__universal=true ;;
9105     esac],
9106    [CXX],
9107    [case " $depcc " in #(
9108     *\ -arch\ *\ -arch\ *) am__universal=true ;;
9109     esac])
9110
9111  for depmode in $am_compiler_list; do
9112    # Setup a source with many dependencies, because some compilers
9113    # like to wrap large dependency lists on column 80 (with \), and
9114    # we should not choose a depcomp mode which is confused by this.
9115    #
9116    # We need to recreate these files for each test, as the compiler may
9117    # overwrite some of them when testing with obscure command lines.
9118    # This happens at least with the AIX C compiler.
9119    : > sub/conftest.c
9120    for i in 1 2 3 4 5 6; do
9121      echo '#include "conftst'$i'.h"' >> sub/conftest.c
9122      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
9123      # Solaris 10 /bin/sh.
9124      echo '/* dummy */' > sub/conftst$i.h
9125    done
9126    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
9127
9128    # We check with '-c' and '-o' for the sake of the "dashmstdout"
9129    # mode.  It turns out that the SunPro C++ compiler does not properly
9130    # handle '-M -o', and we need to detect this.  Also, some Intel
9131    # versions had trouble with output in subdirs.
9132    am__obj=sub/conftest.${OBJEXT-o}
9133    am__minus_obj="-o $am__obj"
9134    case $depmode in
9135    gcc)
9136      # This depmode causes a compiler race in universal mode.
9137      test "$am__universal" = false || continue
9138      ;;
9139    nosideeffect)
9140      # After this tag, mechanisms are not by side-effect, so they'll
9141      # only be used when explicitly requested.
9142      if test "x$enable_dependency_tracking" = xyes; then
9143	continue
9144      else
9145	break
9146      fi
9147      ;;
9148    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
9149      # This compiler won't grok '-c -o', but also, the minuso test has
9150      # not run yet.  These depmodes are late enough in the game, and
9151      # so weak that their functioning should not be impacted.
9152      am__obj=conftest.${OBJEXT-o}
9153      am__minus_obj=
9154      ;;
9155    none) break ;;
9156    esac
9157    if depmode=$depmode \
9158       source=sub/conftest.c object=$am__obj \
9159       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9160       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
9161         >/dev/null 2>conftest.err &&
9162       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
9163       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
9164       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
9165       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
9166      # icc doesn't choke on unknown options, it will just issue warnings
9167      # or remarks (even with -Werror).  So we grep stderr for any message
9168      # that says an option was ignored or not supported.
9169      # When given -MP, icc 7.0 and 7.1 complain thusly:
9170      #   icc: Command line warning: ignoring option '-M'; no argument required
9171      # The diagnosis changed in icc 8.0:
9172      #   icc: Command line remark: option '-MP' not supported
9173      if (grep 'ignoring option' conftest.err ||
9174          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9175        am_cv_$1_dependencies_compiler_type=$depmode
9176        break
9177      fi
9178    fi
9179  done
9180
9181  cd ..
9182  rm -rf conftest.dir
9183else
9184  am_cv_$1_dependencies_compiler_type=none
9185fi
9186])
9187AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
9188AM_CONDITIONAL([am__fastdep$1], [
9189  test "x$enable_dependency_tracking" != xno \
9190  && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
9191])
9192
9193
9194# AM_SET_DEPDIR
9195# -------------
9196# Choose a directory name for dependency files.
9197# This macro is AC_REQUIREd in _AM_DEPENDENCIES.
9198AC_DEFUN([AM_SET_DEPDIR],
9199[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
9200AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
9201])
9202
9203
9204# AM_DEP_TRACK
9205# ------------
9206AC_DEFUN([AM_DEP_TRACK],
9207[AC_ARG_ENABLE([dependency-tracking], [dnl
9208AS_HELP_STRING(
9209  [--enable-dependency-tracking],
9210  [do not reject slow dependency extractors])
9211AS_HELP_STRING(
9212  [--disable-dependency-tracking],
9213  [speeds up one-time build])])
9214if test "x$enable_dependency_tracking" != xno; then
9215  am_depcomp="$ac_aux_dir/depcomp"
9216  AMDEPBACKSLASH='\'
9217  am__nodep='_no'
9218fi
9219AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
9220AC_SUBST([AMDEPBACKSLASH])dnl
9221_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
9222AC_SUBST([am__nodep])dnl
9223_AM_SUBST_NOTMAKE([am__nodep])dnl
9224])
9225
9226# Generate code to set up dependency tracking.              -*- Autoconf -*-
9227
9228# Copyright (C) 1999-2014 Free Software Foundation, Inc.
9229#
9230# This file is free software; the Free Software Foundation
9231# gives unlimited permission to copy and/or distribute it,
9232# with or without modifications, as long as this notice is preserved.
9233
9234
9235# _AM_OUTPUT_DEPENDENCY_COMMANDS
9236# ------------------------------
9237AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
9238[{
9239  # Older Autoconf quotes --file arguments for eval, but not when files
9240  # are listed without --file.  Let's play safe and only enable the eval
9241  # if we detect the quoting.
9242  case $CONFIG_FILES in
9243  *\'*) eval set x "$CONFIG_FILES" ;;
9244  *)   set x $CONFIG_FILES ;;
9245  esac
9246  shift
9247  for mf
9248  do
9249    # Strip MF so we end up with the name of the file.
9250    mf=`echo "$mf" | sed -e 's/:.*$//'`
9251    # Check whether this is an Automake generated Makefile or not.
9252    # We used to match only the files named 'Makefile.in', but
9253    # some people rename them; so instead we look at the file content.
9254    # Grep'ing the first line is not enough: some people post-process
9255    # each Makefile.in and add a new line on top of each file to say so.
9256    # Grep'ing the whole file is not good either: AIX grep has a line
9257    # limit of 2048, but all sed's we know have understand at least 4000.
9258    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
9259      dirpart=`AS_DIRNAME("$mf")`
9260    else
9261      continue
9262    fi
9263    # Extract the definition of DEPDIR, am__include, and am__quote
9264    # from the Makefile without running 'make'.
9265    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
9266    test -z "$DEPDIR" && continue
9267    am__include=`sed -n 's/^am__include = //p' < "$mf"`
9268    test -z "$am__include" && continue
9269    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
9270    # Find all dependency output files, they are included files with
9271    # $(DEPDIR) in their names.  We invoke sed twice because it is the
9272    # simplest approach to changing $(DEPDIR) to its actual value in the
9273    # expansion.
9274    for file in `sed -n "
9275      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
9276	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
9277      # Make sure the directory exists.
9278      test -f "$dirpart/$file" && continue
9279      fdir=`AS_DIRNAME(["$file"])`
9280      AS_MKDIR_P([$dirpart/$fdir])
9281      # echo "creating $dirpart/$file"
9282      echo '# dummy' > "$dirpart/$file"
9283    done
9284  done
9285}
9286])# _AM_OUTPUT_DEPENDENCY_COMMANDS
9287
9288
9289# AM_OUTPUT_DEPENDENCY_COMMANDS
9290# -----------------------------
9291# This macro should only be invoked once -- use via AC_REQUIRE.
9292#
9293# This code is only required when automatic dependency tracking
9294# is enabled.  FIXME.  This creates each '.P' file that we will
9295# need in order to bootstrap the dependency handling code.
9296AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
9297[AC_CONFIG_COMMANDS([depfiles],
9298     [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
9299     [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
9300])
9301
9302# Do all the work for Automake.                             -*- Autoconf -*-
9303
9304# Copyright (C) 1996-2014 Free Software Foundation, Inc.
9305#
9306# This file is free software; the Free Software Foundation
9307# gives unlimited permission to copy and/or distribute it,
9308# with or without modifications, as long as this notice is preserved.
9309
9310# This macro actually does too much.  Some checks are only needed if
9311# your package does certain things.  But this isn't really a big deal.
9312
9313dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O.
9314m4_define([AC_PROG_CC],
9315m4_defn([AC_PROG_CC])
9316[_AM_PROG_CC_C_O
9317])
9318
9319# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
9320# AM_INIT_AUTOMAKE([OPTIONS])
9321# -----------------------------------------------
9322# The call with PACKAGE and VERSION arguments is the old style
9323# call (pre autoconf-2.50), which is being phased out.  PACKAGE
9324# and VERSION should now be passed to AC_INIT and removed from
9325# the call to AM_INIT_AUTOMAKE.
9326# We support both call styles for the transition.  After
9327# the next Automake release, Autoconf can make the AC_INIT
9328# arguments mandatory, and then we can depend on a new Autoconf
9329# release and drop the old call support.
9330AC_DEFUN([AM_INIT_AUTOMAKE],
9331[AC_PREREQ([2.65])dnl
9332dnl Autoconf wants to disallow AM_ names.  We explicitly allow
9333dnl the ones we care about.
9334m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
9335AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
9336AC_REQUIRE([AC_PROG_INSTALL])dnl
9337if test "`cd $srcdir && pwd`" != "`pwd`"; then
9338  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
9339  # is not polluted with repeated "-I."
9340  AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
9341  # test to see if srcdir already configured
9342  if test -f $srcdir/config.status; then
9343    AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
9344  fi
9345fi
9346
9347# test whether we have cygpath
9348if test -z "$CYGPATH_W"; then
9349  if (cygpath --version) >/dev/null 2>/dev/null; then
9350    CYGPATH_W='cygpath -w'
9351  else
9352    CYGPATH_W=echo
9353  fi
9354fi
9355AC_SUBST([CYGPATH_W])
9356
9357# Define the identity of the package.
9358dnl Distinguish between old-style and new-style calls.
9359m4_ifval([$2],
9360[AC_DIAGNOSE([obsolete],
9361             [$0: two- and three-arguments forms are deprecated.])
9362m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
9363 AC_SUBST([PACKAGE], [$1])dnl
9364 AC_SUBST([VERSION], [$2])],
9365[_AM_SET_OPTIONS([$1])dnl
9366dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
9367m4_if(
9368  m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
9369  [ok:ok],,
9370  [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
9371 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
9372 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
9373
9374_AM_IF_OPTION([no-define],,
9375[AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
9376 AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
9377
9378# Some tools Automake needs.
9379AC_REQUIRE([AM_SANITY_CHECK])dnl
9380AC_REQUIRE([AC_ARG_PROGRAM])dnl
9381AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
9382AM_MISSING_PROG([AUTOCONF], [autoconf])
9383AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
9384AM_MISSING_PROG([AUTOHEADER], [autoheader])
9385AM_MISSING_PROG([MAKEINFO], [makeinfo])
9386AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
9387AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
9388AC_REQUIRE([AC_PROG_MKDIR_P])dnl
9389# For better backward compatibility.  To be removed once Automake 1.9.x
9390# dies out for good.  For more background, see:
9391# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
9392# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
9393AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
9394# We need awk for the "check" target (and possibly the TAP driver).  The
9395# system "awk" is bad on some platforms.
9396AC_REQUIRE([AC_PROG_AWK])dnl
9397AC_REQUIRE([AC_PROG_MAKE_SET])dnl
9398AC_REQUIRE([AM_SET_LEADING_DOT])dnl
9399_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
9400	      [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
9401			     [_AM_PROG_TAR([v7])])])
9402_AM_IF_OPTION([no-dependencies],,
9403[AC_PROVIDE_IFELSE([AC_PROG_CC],
9404		  [_AM_DEPENDENCIES([CC])],
9405		  [m4_define([AC_PROG_CC],
9406			     m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
9407AC_PROVIDE_IFELSE([AC_PROG_CXX],
9408		  [_AM_DEPENDENCIES([CXX])],
9409		  [m4_define([AC_PROG_CXX],
9410			     m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
9411AC_PROVIDE_IFELSE([AC_PROG_OBJC],
9412		  [_AM_DEPENDENCIES([OBJC])],
9413		  [m4_define([AC_PROG_OBJC],
9414			     m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
9415AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
9416		  [_AM_DEPENDENCIES([OBJCXX])],
9417		  [m4_define([AC_PROG_OBJCXX],
9418			     m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
9419])
9420AC_REQUIRE([AM_SILENT_RULES])dnl
9421dnl The testsuite driver may need to know about EXEEXT, so add the
9422dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This
9423dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
9424AC_CONFIG_COMMANDS_PRE(dnl
9425[m4_provide_if([_AM_COMPILER_EXEEXT],
9426  [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
9427
9428# POSIX will say in a future version that running "rm -f" with no argument
9429# is OK; and we want to be able to make that assumption in our Makefile
9430# recipes.  So use an aggressive probe to check that the usage we want is
9431# actually supported "in the wild" to an acceptable degree.
9432# See automake bug#10828.
9433# To make any issue more visible, cause the running configure to be aborted
9434# by default if the 'rm' program in use doesn't match our expectations; the
9435# user can still override this though.
9436if rm -f && rm -fr && rm -rf; then : OK; else
9437  cat >&2 <<'END'
9438Oops!
9439
9440Your 'rm' program seems unable to run without file operands specified
9441on the command line, even when the '-f' option is present.  This is contrary
9442to the behaviour of most rm programs out there, and not conforming with
9443the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
9444
9445Please tell bug-automake@gnu.org about your system, including the value
9446of your $PATH and any error possibly output before this message.  This
9447can help us improve future automake versions.
9448
9449END
9450  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
9451    echo 'Configuration will proceed anyway, since you have set the' >&2
9452    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
9453    echo >&2
9454  else
9455    cat >&2 <<'END'
9456Aborting the configuration process, to ensure you take notice of the issue.
9457
9458You can download and install GNU coreutils to get an 'rm' implementation
9459that behaves properly: <http://www.gnu.org/software/coreutils/>.
9460
9461If you want to complete the configuration process using your problematic
9462'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
9463to "yes", and re-run configure.
9464
9465END
9466    AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
9467  fi
9468fi
9469dnl The trailing newline in this macro's definition is deliberate, for
9470dnl backward compatibility and to allow trailing 'dnl'-style comments
9471dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841.
9472])
9473
9474dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
9475dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
9476dnl mangled by Autoconf and run in a shell conditional statement.
9477m4_define([_AC_COMPILER_EXEEXT],
9478m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
9479
9480# When config.status generates a header, we must update the stamp-h file.
9481# This file resides in the same directory as the config header
9482# that is generated.  The stamp files are numbered to have different names.
9483
9484# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
9485# loop where config.status creates the headers, so we can generate
9486# our stamp files there.
9487AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
9488[# Compute $1's index in $config_headers.
9489_am_arg=$1
9490_am_stamp_count=1
9491for _am_header in $config_headers :; do
9492  case $_am_header in
9493    $_am_arg | $_am_arg:* )
9494      break ;;
9495    * )
9496      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
9497  esac
9498done
9499echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
9500
9501# Copyright (C) 2001-2014 Free Software Foundation, Inc.
9502#
9503# This file is free software; the Free Software Foundation
9504# gives unlimited permission to copy and/or distribute it,
9505# with or without modifications, as long as this notice is preserved.
9506
9507# AM_PROG_INSTALL_SH
9508# ------------------
9509# Define $install_sh.
9510AC_DEFUN([AM_PROG_INSTALL_SH],
9511[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
9512if test x"${install_sh+set}" != xset; then
9513  case $am_aux_dir in
9514  *\ * | *\	*)
9515    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
9516  *)
9517    install_sh="\${SHELL} $am_aux_dir/install-sh"
9518  esac
9519fi
9520AC_SUBST([install_sh])])
9521
9522# Copyright (C) 2003-2014 Free Software Foundation, Inc.
9523#
9524# This file is free software; the Free Software Foundation
9525# gives unlimited permission to copy and/or distribute it,
9526# with or without modifications, as long as this notice is preserved.
9527
9528# Check whether the underlying file-system supports filenames
9529# with a leading dot.  For instance MS-DOS doesn't.
9530AC_DEFUN([AM_SET_LEADING_DOT],
9531[rm -rf .tst 2>/dev/null
9532mkdir .tst 2>/dev/null
9533if test -d .tst; then
9534  am__leading_dot=.
9535else
9536  am__leading_dot=_
9537fi
9538rmdir .tst 2>/dev/null
9539AC_SUBST([am__leading_dot])])
9540
9541# Add --enable-maintainer-mode option to configure.         -*- Autoconf -*-
9542# From Jim Meyering
9543
9544# Copyright (C) 1996-2014 Free Software Foundation, Inc.
9545#
9546# This file is free software; the Free Software Foundation
9547# gives unlimited permission to copy and/or distribute it,
9548# with or without modifications, as long as this notice is preserved.
9549
9550# AM_MAINTAINER_MODE([DEFAULT-MODE])
9551# ----------------------------------
9552# Control maintainer-specific portions of Makefiles.
9553# Default is to disable them, unless 'enable' is passed literally.
9554# For symmetry, 'disable' may be passed as well.  Anyway, the user
9555# can override the default with the --enable/--disable switch.
9556AC_DEFUN([AM_MAINTAINER_MODE],
9557[m4_case(m4_default([$1], [disable]),
9558       [enable], [m4_define([am_maintainer_other], [disable])],
9559       [disable], [m4_define([am_maintainer_other], [enable])],
9560       [m4_define([am_maintainer_other], [enable])
9561        m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
9562AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
9563  dnl maintainer-mode's default is 'disable' unless 'enable' is passed
9564  AC_ARG_ENABLE([maintainer-mode],
9565    [AS_HELP_STRING([--]am_maintainer_other[-maintainer-mode],
9566      am_maintainer_other[ make rules and dependencies not useful
9567      (and sometimes confusing) to the casual installer])],
9568    [USE_MAINTAINER_MODE=$enableval],
9569    [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
9570  AC_MSG_RESULT([$USE_MAINTAINER_MODE])
9571  AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
9572  MAINT=$MAINTAINER_MODE_TRUE
9573  AC_SUBST([MAINT])dnl
9574]
9575)
9576
9577# Check to see how 'make' treats includes.	            -*- Autoconf -*-
9578
9579# Copyright (C) 2001-2014 Free Software Foundation, Inc.
9580#
9581# This file is free software; the Free Software Foundation
9582# gives unlimited permission to copy and/or distribute it,
9583# with or without modifications, as long as this notice is preserved.
9584
9585# AM_MAKE_INCLUDE()
9586# -----------------
9587# Check to see how make treats includes.
9588AC_DEFUN([AM_MAKE_INCLUDE],
9589[am_make=${MAKE-make}
9590cat > confinc << 'END'
9591am__doit:
9592	@echo this is the am__doit target
9593.PHONY: am__doit
9594END
9595# If we don't find an include directive, just comment out the code.
9596AC_MSG_CHECKING([for style of include used by $am_make])
9597am__include="#"
9598am__quote=
9599_am_result=none
9600# First try GNU make style include.
9601echo "include confinc" > confmf
9602# Ignore all kinds of additional output from 'make'.
9603case `$am_make -s -f confmf 2> /dev/null` in #(
9604*the\ am__doit\ target*)
9605  am__include=include
9606  am__quote=
9607  _am_result=GNU
9608  ;;
9609esac
9610# Now try BSD make style include.
9611if test "$am__include" = "#"; then
9612   echo '.include "confinc"' > confmf
9613   case `$am_make -s -f confmf 2> /dev/null` in #(
9614   *the\ am__doit\ target*)
9615     am__include=.include
9616     am__quote="\""
9617     _am_result=BSD
9618     ;;
9619   esac
9620fi
9621AC_SUBST([am__include])
9622AC_SUBST([am__quote])
9623AC_MSG_RESULT([$_am_result])
9624rm -f confinc confmf
9625])
9626
9627# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
9628
9629# Copyright (C) 1997-2014 Free Software Foundation, Inc.
9630#
9631# This file is free software; the Free Software Foundation
9632# gives unlimited permission to copy and/or distribute it,
9633# with or without modifications, as long as this notice is preserved.
9634
9635# AM_MISSING_PROG(NAME, PROGRAM)
9636# ------------------------------
9637AC_DEFUN([AM_MISSING_PROG],
9638[AC_REQUIRE([AM_MISSING_HAS_RUN])
9639$1=${$1-"${am_missing_run}$2"}
9640AC_SUBST($1)])
9641
9642# AM_MISSING_HAS_RUN
9643# ------------------
9644# Define MISSING if not defined so far and test if it is modern enough.
9645# If it is, set am_missing_run to use it, otherwise, to nothing.
9646AC_DEFUN([AM_MISSING_HAS_RUN],
9647[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
9648AC_REQUIRE_AUX_FILE([missing])dnl
9649if test x"${MISSING+set}" != xset; then
9650  case $am_aux_dir in
9651  *\ * | *\	*)
9652    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
9653  *)
9654    MISSING="\${SHELL} $am_aux_dir/missing" ;;
9655  esac
9656fi
9657# Use eval to expand $SHELL
9658if eval "$MISSING --is-lightweight"; then
9659  am_missing_run="$MISSING "
9660else
9661  am_missing_run=
9662  AC_MSG_WARN(['missing' script is too old or missing])
9663fi
9664])
9665
9666# Helper functions for option handling.                     -*- Autoconf -*-
9667
9668# Copyright (C) 2001-2014 Free Software Foundation, Inc.
9669#
9670# This file is free software; the Free Software Foundation
9671# gives unlimited permission to copy and/or distribute it,
9672# with or without modifications, as long as this notice is preserved.
9673
9674# _AM_MANGLE_OPTION(NAME)
9675# -----------------------
9676AC_DEFUN([_AM_MANGLE_OPTION],
9677[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
9678
9679# _AM_SET_OPTION(NAME)
9680# --------------------
9681# Set option NAME.  Presently that only means defining a flag for this option.
9682AC_DEFUN([_AM_SET_OPTION],
9683[m4_define(_AM_MANGLE_OPTION([$1]), [1])])
9684
9685# _AM_SET_OPTIONS(OPTIONS)
9686# ------------------------
9687# OPTIONS is a space-separated list of Automake options.
9688AC_DEFUN([_AM_SET_OPTIONS],
9689[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
9690
9691# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
9692# -------------------------------------------
9693# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
9694AC_DEFUN([_AM_IF_OPTION],
9695[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
9696
9697# Copyright (C) 1999-2014 Free Software Foundation, Inc.
9698#
9699# This file is free software; the Free Software Foundation
9700# gives unlimited permission to copy and/or distribute it,
9701# with or without modifications, as long as this notice is preserved.
9702
9703# _AM_PROG_CC_C_O
9704# ---------------
9705# Like AC_PROG_CC_C_O, but changed for automake.  We rewrite AC_PROG_CC
9706# to automatically call this.
9707AC_DEFUN([_AM_PROG_CC_C_O],
9708[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
9709AC_REQUIRE_AUX_FILE([compile])dnl
9710AC_LANG_PUSH([C])dnl
9711AC_CACHE_CHECK(
9712  [whether $CC understands -c and -o together],
9713  [am_cv_prog_cc_c_o],
9714  [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])])
9715  # Make sure it works both with $CC and with simple cc.
9716  # Following AC_PROG_CC_C_O, we do the test twice because some
9717  # compilers refuse to overwrite an existing .o file with -o,
9718  # though they will create one.
9719  am_cv_prog_cc_c_o=yes
9720  for am_i in 1 2; do
9721    if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \
9722         && test -f conftest2.$ac_objext; then
9723      : OK
9724    else
9725      am_cv_prog_cc_c_o=no
9726      break
9727    fi
9728  done
9729  rm -f core conftest*
9730  unset am_i])
9731if test "$am_cv_prog_cc_c_o" != yes; then
9732   # Losing compiler, so override with the script.
9733   # FIXME: It is wrong to rewrite CC.
9734   # But if we don't then we get into trouble of one sort or another.
9735   # A longer-term fix would be to have automake use am__CC in this case,
9736   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
9737   CC="$am_aux_dir/compile $CC"
9738fi
9739AC_LANG_POP([C])])
9740
9741# For backward compatibility.
9742AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
9743
9744# Copyright (C) 2001-2014 Free Software Foundation, Inc.
9745#
9746# This file is free software; the Free Software Foundation
9747# gives unlimited permission to copy and/or distribute it,
9748# with or without modifications, as long as this notice is preserved.
9749
9750# AM_RUN_LOG(COMMAND)
9751# -------------------
9752# Run COMMAND, save the exit status in ac_status, and log it.
9753# (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
9754AC_DEFUN([AM_RUN_LOG],
9755[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
9756   ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
9757   ac_status=$?
9758   echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
9759   (exit $ac_status); }])
9760
9761# Check to make sure that the build environment is sane.    -*- Autoconf -*-
9762
9763# Copyright (C) 1996-2014 Free Software Foundation, Inc.
9764#
9765# This file is free software; the Free Software Foundation
9766# gives unlimited permission to copy and/or distribute it,
9767# with or without modifications, as long as this notice is preserved.
9768
9769# AM_SANITY_CHECK
9770# ---------------
9771AC_DEFUN([AM_SANITY_CHECK],
9772[AC_MSG_CHECKING([whether build environment is sane])
9773# Reject unsafe characters in $srcdir or the absolute working directory
9774# name.  Accept space and tab only in the latter.
9775am_lf='
9776'
9777case `pwd` in
9778  *[[\\\"\#\$\&\'\`$am_lf]]*)
9779    AC_MSG_ERROR([unsafe absolute working directory name]);;
9780esac
9781case $srcdir in
9782  *[[\\\"\#\$\&\'\`$am_lf\ \	]]*)
9783    AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
9784esac
9785
9786# Do 'set' in a subshell so we don't clobber the current shell's
9787# arguments.  Must try -L first in case configure is actually a
9788# symlink; some systems play weird games with the mod time of symlinks
9789# (eg FreeBSD returns the mod time of the symlink's containing
9790# directory).
9791if (
9792   am_has_slept=no
9793   for am_try in 1 2; do
9794     echo "timestamp, slept: $am_has_slept" > conftest.file
9795     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
9796     if test "$[*]" = "X"; then
9797	# -L didn't work.
9798	set X `ls -t "$srcdir/configure" conftest.file`
9799     fi
9800     if test "$[*]" != "X $srcdir/configure conftest.file" \
9801	&& test "$[*]" != "X conftest.file $srcdir/configure"; then
9802
9803	# If neither matched, then we have a broken ls.  This can happen
9804	# if, for instance, CONFIG_SHELL is bash and it inherits a
9805	# broken ls alias from the environment.  This has actually
9806	# happened.  Such a system could not be considered "sane".
9807	AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
9808  alias in your environment])
9809     fi
9810     if test "$[2]" = conftest.file || test $am_try -eq 2; then
9811       break
9812     fi
9813     # Just in case.
9814     sleep 1
9815     am_has_slept=yes
9816   done
9817   test "$[2]" = conftest.file
9818   )
9819then
9820   # Ok.
9821   :
9822else
9823   AC_MSG_ERROR([newly created file is older than distributed files!
9824Check your system clock])
9825fi
9826AC_MSG_RESULT([yes])
9827# If we didn't sleep, we still need to ensure time stamps of config.status and
9828# generated files are strictly newer.
9829am_sleep_pid=
9830if grep 'slept: no' conftest.file >/dev/null 2>&1; then
9831  ( sleep 1 ) &
9832  am_sleep_pid=$!
9833fi
9834AC_CONFIG_COMMANDS_PRE(
9835  [AC_MSG_CHECKING([that generated files are newer than configure])
9836   if test -n "$am_sleep_pid"; then
9837     # Hide warnings about reused PIDs.
9838     wait $am_sleep_pid 2>/dev/null
9839   fi
9840   AC_MSG_RESULT([done])])
9841rm -f conftest.file
9842])
9843
9844# Copyright (C) 2009-2014 Free Software Foundation, Inc.
9845#
9846# This file is free software; the Free Software Foundation
9847# gives unlimited permission to copy and/or distribute it,
9848# with or without modifications, as long as this notice is preserved.
9849
9850# AM_SILENT_RULES([DEFAULT])
9851# --------------------------
9852# Enable less verbose build rules; with the default set to DEFAULT
9853# ("yes" being less verbose, "no" or empty being verbose).
9854AC_DEFUN([AM_SILENT_RULES],
9855[AC_ARG_ENABLE([silent-rules], [dnl
9856AS_HELP_STRING(
9857  [--enable-silent-rules],
9858  [less verbose build output (undo: "make V=1")])
9859AS_HELP_STRING(
9860  [--disable-silent-rules],
9861  [verbose build output (undo: "make V=0")])dnl
9862])
9863case $enable_silent_rules in @%:@ (((
9864  yes) AM_DEFAULT_VERBOSITY=0;;
9865   no) AM_DEFAULT_VERBOSITY=1;;
9866    *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
9867esac
9868dnl
9869dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
9870dnl do not support nested variable expansions.
9871dnl See automake bug#9928 and bug#10237.
9872am_make=${MAKE-make}
9873AC_CACHE_CHECK([whether $am_make supports nested variables],
9874   [am_cv_make_support_nested_variables],
9875   [if AS_ECHO([['TRUE=$(BAR$(V))
9876BAR0=false
9877BAR1=true
9878V=1
9879am__doit:
9880	@$(TRUE)
9881.PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
9882  am_cv_make_support_nested_variables=yes
9883else
9884  am_cv_make_support_nested_variables=no
9885fi])
9886if test $am_cv_make_support_nested_variables = yes; then
9887  dnl Using '$V' instead of '$(V)' breaks IRIX make.
9888  AM_V='$(V)'
9889  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
9890else
9891  AM_V=$AM_DEFAULT_VERBOSITY
9892  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
9893fi
9894AC_SUBST([AM_V])dnl
9895AM_SUBST_NOTMAKE([AM_V])dnl
9896AC_SUBST([AM_DEFAULT_V])dnl
9897AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
9898AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
9899AM_BACKSLASH='\'
9900AC_SUBST([AM_BACKSLASH])dnl
9901_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
9902])
9903
9904# Copyright (C) 2001-2014 Free Software Foundation, Inc.
9905#
9906# This file is free software; the Free Software Foundation
9907# gives unlimited permission to copy and/or distribute it,
9908# with or without modifications, as long as this notice is preserved.
9909
9910# AM_PROG_INSTALL_STRIP
9911# ---------------------
9912# One issue with vendor 'install' (even GNU) is that you can't
9913# specify the program used to strip binaries.  This is especially
9914# annoying in cross-compiling environments, where the build's strip
9915# is unlikely to handle the host's binaries.
9916# Fortunately install-sh will honor a STRIPPROG variable, so we
9917# always use install-sh in "make install-strip", and initialize
9918# STRIPPROG with the value of the STRIP variable (set by the user).
9919AC_DEFUN([AM_PROG_INSTALL_STRIP],
9920[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
9921# Installed binaries are usually stripped using 'strip' when the user
9922# run "make install-strip".  However 'strip' might not be the right
9923# tool to use in cross-compilation environments, therefore Automake
9924# will honor the 'STRIP' environment variable to overrule this program.
9925dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
9926if test "$cross_compiling" != no; then
9927  AC_CHECK_TOOL([STRIP], [strip], :)
9928fi
9929INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
9930AC_SUBST([INSTALL_STRIP_PROGRAM])])
9931
9932# Copyright (C) 2006-2014 Free Software Foundation, Inc.
9933#
9934# This file is free software; the Free Software Foundation
9935# gives unlimited permission to copy and/or distribute it,
9936# with or without modifications, as long as this notice is preserved.
9937
9938# _AM_SUBST_NOTMAKE(VARIABLE)
9939# ---------------------------
9940# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
9941# This macro is traced by Automake.
9942AC_DEFUN([_AM_SUBST_NOTMAKE])
9943
9944# AM_SUBST_NOTMAKE(VARIABLE)
9945# --------------------------
9946# Public sister of _AM_SUBST_NOTMAKE.
9947AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
9948
9949# Check how to create a tarball.                            -*- Autoconf -*-
9950
9951# Copyright (C) 2004-2014 Free Software Foundation, Inc.
9952#
9953# This file is free software; the Free Software Foundation
9954# gives unlimited permission to copy and/or distribute it,
9955# with or without modifications, as long as this notice is preserved.
9956
9957# _AM_PROG_TAR(FORMAT)
9958# --------------------
9959# Check how to create a tarball in format FORMAT.
9960# FORMAT should be one of 'v7', 'ustar', or 'pax'.
9961#
9962# Substitute a variable $(am__tar) that is a command
9963# writing to stdout a FORMAT-tarball containing the directory
9964# $tardir.
9965#     tardir=directory && $(am__tar) > result.tar
9966#
9967# Substitute a variable $(am__untar) that extract such
9968# a tarball read from stdin.
9969#     $(am__untar) < result.tar
9970#
9971AC_DEFUN([_AM_PROG_TAR],
9972[# Always define AMTAR for backward compatibility.  Yes, it's still used
9973# in the wild :-(  We should find a proper way to deprecate it ...
9974AC_SUBST([AMTAR], ['$${TAR-tar}'])
9975
9976# We'll loop over all known methods to create a tar archive until one works.
9977_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
9978
9979m4_if([$1], [v7],
9980  [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
9981
9982  [m4_case([$1],
9983    [ustar],
9984     [# The POSIX 1988 'ustar' format is defined with fixed-size fields.
9985      # There is notably a 21 bits limit for the UID and the GID.  In fact,
9986      # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
9987      # and bug#13588).
9988      am_max_uid=2097151 # 2^21 - 1
9989      am_max_gid=$am_max_uid
9990      # The $UID and $GID variables are not portable, so we need to resort
9991      # to the POSIX-mandated id(1) utility.  Errors in the 'id' calls
9992      # below are definitely unexpected, so allow the users to see them
9993      # (that is, avoid stderr redirection).
9994      am_uid=`id -u || echo unknown`
9995      am_gid=`id -g || echo unknown`
9996      AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
9997      if test $am_uid -le $am_max_uid; then
9998         AC_MSG_RESULT([yes])
9999      else
10000         AC_MSG_RESULT([no])
10001         _am_tools=none
10002      fi
10003      AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
10004      if test $am_gid -le $am_max_gid; then
10005         AC_MSG_RESULT([yes])
10006      else
10007        AC_MSG_RESULT([no])
10008        _am_tools=none
10009      fi],
10010
10011  [pax],
10012    [],
10013
10014  [m4_fatal([Unknown tar format])])
10015
10016  AC_MSG_CHECKING([how to create a $1 tar archive])
10017
10018  # Go ahead even if we have the value already cached.  We do so because we
10019  # need to set the values for the 'am__tar' and 'am__untar' variables.
10020  _am_tools=${am_cv_prog_tar_$1-$_am_tools}
10021
10022  for _am_tool in $_am_tools; do
10023    case $_am_tool in
10024    gnutar)
10025      for _am_tar in tar gnutar gtar; do
10026        AM_RUN_LOG([$_am_tar --version]) && break
10027      done
10028      am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
10029      am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
10030      am__untar="$_am_tar -xf -"
10031      ;;
10032    plaintar)
10033      # Must skip GNU tar: if it does not support --format= it doesn't create
10034      # ustar tarball either.
10035      (tar --version) >/dev/null 2>&1 && continue
10036      am__tar='tar chf - "$$tardir"'
10037      am__tar_='tar chf - "$tardir"'
10038      am__untar='tar xf -'
10039      ;;
10040    pax)
10041      am__tar='pax -L -x $1 -w "$$tardir"'
10042      am__tar_='pax -L -x $1 -w "$tardir"'
10043      am__untar='pax -r'
10044      ;;
10045    cpio)
10046      am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
10047      am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
10048      am__untar='cpio -i -H $1 -d'
10049      ;;
10050    none)
10051      am__tar=false
10052      am__tar_=false
10053      am__untar=false
10054      ;;
10055    esac
10056
10057    # If the value was cached, stop now.  We just wanted to have am__tar
10058    # and am__untar set.
10059    test -n "${am_cv_prog_tar_$1}" && break
10060
10061    # tar/untar a dummy directory, and stop if the command works.
10062    rm -rf conftest.dir
10063    mkdir conftest.dir
10064    echo GrepMe > conftest.dir/file
10065    AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
10066    rm -rf conftest.dir
10067    if test -s conftest.tar; then
10068      AM_RUN_LOG([$am__untar <conftest.tar])
10069      AM_RUN_LOG([cat conftest.dir/file])
10070      grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
10071    fi
10072  done
10073  rm -rf conftest.dir
10074
10075  AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
10076  AC_MSG_RESULT([$am_cv_prog_tar_$1])])
10077
10078AC_SUBST([am__tar])
10079AC_SUBST([am__untar])
10080]) # _AM_PROG_TAR
10081
10082