Blame aclocal.m4

Packit 0d464f
# generated automatically by aclocal 1.11.1 -*- Autoconf -*-
Packit 0d464f
Packit 0d464f
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
Packit 0d464f
# 2005, 2006, 2007, 2008, 2009  Free Software Foundation, Inc.
Packit 0d464f
# This file is free software; the Free Software Foundation
Packit 0d464f
# gives unlimited permission to copy and/or distribute it,
Packit 0d464f
# with or without modifications, as long as this notice is preserved.
Packit 0d464f
Packit 0d464f
# This program is distributed in the hope that it will be useful,
Packit 0d464f
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
Packit 0d464f
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
Packit 0d464f
# PARTICULAR PURPOSE.
Packit 0d464f
Packit 0d464f
m4_ifndef([AC_AUTOCONF_VERSION],
Packit 0d464f
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
Packit 0d464f
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.63],,
Packit 0d464f
[m4_warning([this file was generated for autoconf 2.63.
Packit 0d464f
You have another version of autoconf.  It may work, but is not guaranteed to.
Packit 0d464f
If you have problems, you may need to regenerate the build system entirely.
Packit 0d464f
To do so, use the procedure documented by the package, typically `autoreconf'.])])
Packit 0d464f
Packit 0d464f
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
Packit 0d464f
#
Packit 0d464f
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
Packit 0d464f
#                 2006, 2007, 2008 Free Software Foundation, Inc.
Packit 0d464f
#   Written by Gordon Matzigkeit, 1996
Packit 0d464f
#
Packit 0d464f
# This file is free software; the Free Software Foundation gives
Packit 0d464f
# unlimited permission to copy and/or distribute it, with or without
Packit 0d464f
# modifications, as long as this notice is preserved.
Packit 0d464f
Packit 0d464f
m4_define([_LT_COPYING], [dnl
Packit 0d464f
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
Packit 0d464f
#                 2006, 2007, 2008 Free Software Foundation, Inc.
Packit 0d464f
#   Written by Gordon Matzigkeit, 1996
Packit 0d464f
#
Packit 0d464f
#   This file is part of GNU Libtool.
Packit 0d464f
#
Packit 0d464f
# GNU Libtool is free software; you can redistribute it and/or
Packit 0d464f
# modify it under the terms of the GNU General Public License as
Packit 0d464f
# published by the Free Software Foundation; either version 2 of
Packit 0d464f
# the License, or (at your option) any later version.
Packit 0d464f
#
Packit 0d464f
# As a special exception to the GNU General Public License,
Packit 0d464f
# if you distribute this file as part of a program or library that
Packit 0d464f
# is built using GNU Libtool, you may include this file under the
Packit 0d464f
# same distribution terms that you use for the rest of that program.
Packit 0d464f
#
Packit 0d464f
# GNU Libtool is distributed in the hope that it will be useful,
Packit 0d464f
# but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 0d464f
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
Packit 0d464f
# GNU General Public License for more details.
Packit 0d464f
#
Packit 0d464f
# You should have received a copy of the GNU General Public License
Packit 0d464f
# along with GNU Libtool; see the file COPYING.  If not, a copy
Packit 0d464f
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
Packit 0d464f
# obtained by writing to the Free Software Foundation, Inc.,
Packit 0d464f
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
Packit 0d464f
])
Packit 0d464f
Packit 0d464f
# serial 56 LT_INIT
Packit 0d464f
Packit 0d464f
Packit 0d464f
# LT_PREREQ(VERSION)
Packit 0d464f
# ------------------
Packit 0d464f
# Complain and exit if this libtool version is less that VERSION.
Packit 0d464f
m4_defun([LT_PREREQ],
Packit 0d464f
[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
Packit 0d464f
       [m4_default([$3],
Packit 0d464f
		   [m4_fatal([Libtool version $1 or higher is required],
Packit 0d464f
		             63)])],
Packit 0d464f
       [$2])])
Packit 0d464f
Packit 0d464f
Packit 0d464f
# _LT_CHECK_BUILDDIR
Packit 0d464f
# ------------------
Packit 0d464f
# Complain if the absolute build directory name contains unusual characters
Packit 0d464f
m4_defun([_LT_CHECK_BUILDDIR],
Packit 0d464f
[case `pwd` in
Packit 0d464f
  *\ * | *\	*)
Packit 0d464f
    AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
Packit 0d464f
esac
Packit 0d464f
])
Packit 0d464f
Packit 0d464f
Packit 0d464f
# LT_INIT([OPTIONS])
Packit 0d464f
# ------------------
Packit 0d464f
AC_DEFUN([LT_INIT],
Packit 0d464f
[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
Packit 0d464f
AC_BEFORE([$0], [LT_LANG])dnl
Packit 0d464f
AC_BEFORE([$0], [LT_OUTPUT])dnl
Packit 0d464f
AC_BEFORE([$0], [LTDL_INIT])dnl
Packit 0d464f
m4_require([_LT_CHECK_BUILDDIR])dnl
Packit 0d464f
Packit 0d464f
dnl Autoconf doesn't catch unexpanded LT_ macros by default:
Packit 0d464f
m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
Packit 0d464f
m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
Packit 0d464f
dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
Packit 0d464f
dnl unless we require an AC_DEFUNed macro:
Packit 0d464f
AC_REQUIRE([LTOPTIONS_VERSION])dnl
Packit 0d464f
AC_REQUIRE([LTSUGAR_VERSION])dnl
Packit 0d464f
AC_REQUIRE([LTVERSION_VERSION])dnl
Packit 0d464f
AC_REQUIRE([LTOBSOLETE_VERSION])dnl
Packit 0d464f
m4_require([_LT_PROG_LTMAIN])dnl
Packit 0d464f
Packit 0d464f
dnl Parse OPTIONS
Packit 0d464f
_LT_SET_OPTIONS([$0], [$1])
Packit 0d464f
Packit 0d464f
# This can be used to rebuild libtool when needed
Packit 0d464f
LIBTOOL_DEPS="$ltmain"
Packit 0d464f
Packit 0d464f
# Always use our own libtool.
Packit 0d464f
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
Packit 0d464f
AC_SUBST(LIBTOOL)dnl
Packit 0d464f
Packit 0d464f
_LT_SETUP
Packit 0d464f
Packit 0d464f
# Only expand once:
Packit 0d464f
m4_define([LT_INIT])
Packit 0d464f
])# LT_INIT
Packit 0d464f
Packit 0d464f
# Old names:
Packit 0d464f
AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
Packit 0d464f
AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
Packit 0d464f
dnl aclocal-1.4 backwards compatibility:
Packit 0d464f
dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
Packit 0d464f
dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
Packit 0d464f
Packit 0d464f
Packit 0d464f
# _LT_CC_BASENAME(CC)
Packit 0d464f
# -------------------
Packit 0d464f
# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
Packit 0d464f
m4_defun([_LT_CC_BASENAME],
Packit 0d464f
[for cc_temp in $1""; do
Packit 0d464f
  case $cc_temp in
Packit 0d464f
    compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
Packit 0d464f
    distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
Packit 0d464f
    \-*) ;;
Packit 0d464f
    *) break;;
Packit 0d464f
  esac
Packit 0d464f
done
Packit 0d464f
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
Packit 0d464f
])
Packit 0d464f
Packit 0d464f
Packit 0d464f
# _LT_FILEUTILS_DEFAULTS
Packit 0d464f
# ----------------------
Packit 0d464f
# It is okay to use these file commands and assume they have been set
Packit 0d464f
# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
Packit 0d464f
m4_defun([_LT_FILEUTILS_DEFAULTS],
Packit 0d464f
[: ${CP="cp -f"}
Packit 0d464f
: ${MV="mv -f"}
Packit 0d464f
: ${RM="rm -f"}
Packit 0d464f
])# _LT_FILEUTILS_DEFAULTS
Packit 0d464f
Packit 0d464f
Packit 0d464f
# _LT_SETUP
Packit 0d464f
# ---------
Packit 0d464f
m4_defun([_LT_SETUP],
Packit 0d464f
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
Packit 0d464f
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
Packit 0d464f
_LT_DECL([], [host_alias], [0], [The host system])dnl
Packit 0d464f
_LT_DECL([], [host], [0])dnl
Packit 0d464f
_LT_DECL([], [host_os], [0])dnl
Packit 0d464f
dnl
Packit 0d464f
_LT_DECL([], [build_alias], [0], [The build system])dnl
Packit 0d464f
_LT_DECL([], [build], [0])dnl
Packit 0d464f
_LT_DECL([], [build_os], [0])dnl
Packit 0d464f
dnl
Packit 0d464f
AC_REQUIRE([AC_PROG_CC])dnl
Packit 0d464f
AC_REQUIRE([LT_PATH_LD])dnl
Packit 0d464f
AC_REQUIRE([LT_PATH_NM])dnl
Packit 0d464f
dnl
Packit 0d464f
AC_REQUIRE([AC_PROG_LN_S])dnl
Packit 0d464f
test -z "$LN_S" && LN_S="ln -s"
Packit 0d464f
_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
Packit 0d464f
dnl
Packit 0d464f
AC_REQUIRE([LT_CMD_MAX_LEN])dnl
Packit 0d464f
_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
Packit 0d464f
_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
Packit 0d464f
dnl
Packit 0d464f
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
Packit 0d464f
m4_require([_LT_CHECK_SHELL_FEATURES])dnl
Packit 0d464f
m4_require([_LT_CMD_RELOAD])dnl
Packit 0d464f
m4_require([_LT_CHECK_MAGIC_METHOD])dnl
Packit 0d464f
m4_require([_LT_CMD_OLD_ARCHIVE])dnl
Packit 0d464f
m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
Packit 0d464f
Packit 0d464f
_LT_CONFIG_LIBTOOL_INIT([
Packit 0d464f
# See if we are running on zsh, and set the options which allow our
Packit 0d464f
# commands through without removal of \ escapes INIT.
Packit 0d464f
if test -n "\${ZSH_VERSION+set}" ; then
Packit 0d464f
   setopt NO_GLOB_SUBST
Packit 0d464f
fi
Packit 0d464f
])
Packit 0d464f
if test -n "${ZSH_VERSION+set}" ; then
Packit 0d464f
   setopt NO_GLOB_SUBST
Packit 0d464f
fi
Packit 0d464f
Packit 0d464f
_LT_CHECK_OBJDIR
Packit 0d464f
Packit 0d464f
m4_require([_LT_TAG_COMPILER])dnl
Packit 0d464f
_LT_PROG_ECHO_BACKSLASH
Packit 0d464f
Packit 0d464f
case $host_os in
Packit 0d464f
aix3*)
Packit 0d464f
  # AIX sometimes has problems with the GCC collect2 program.  For some
Packit 0d464f
  # reason, if we set the COLLECT_NAMES environment variable, the problems
Packit 0d464f
  # vanish in a puff of smoke.
Packit 0d464f
  if test "X${COLLECT_NAMES+set}" != Xset; then
Packit 0d464f
    COLLECT_NAMES=
Packit 0d464f
    export COLLECT_NAMES
Packit 0d464f
  fi
Packit 0d464f
  ;;
Packit 0d464f
esac
Packit 0d464f
Packit 0d464f
# Sed substitution that helps us do robust quoting.  It backslashifies
Packit 0d464f
# metacharacters that are still active within double-quoted strings.
Packit 0d464f
sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
Packit 0d464f
Packit 0d464f
# Same as above, but do not quote variable references.
Packit 0d464f
double_quote_subst='s/\([["`\\]]\)/\\\1/g'
Packit 0d464f
Packit 0d464f
# Sed substitution to delay expansion of an escaped shell variable in a
Packit 0d464f
# double_quote_subst'ed string.
Packit 0d464f
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
Packit 0d464f
Packit 0d464f
# Sed substitution to delay expansion of an escaped single quote.
Packit 0d464f
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
Packit 0d464f
Packit 0d464f
# Sed substitution to avoid accidental globbing in evaled expressions
Packit 0d464f
no_glob_subst='s/\*/\\\*/g'
Packit 0d464f
Packit 0d464f
# Global variables:
Packit 0d464f
ofile=libtool
Packit 0d464f
can_build_shared=yes
Packit 0d464f
Packit 0d464f
# All known linkers require a `.a' archive for static linking (except MSVC,
Packit 0d464f
# which needs '.lib').
Packit 0d464f
libext=a
Packit 0d464f
Packit 0d464f
with_gnu_ld="$lt_cv_prog_gnu_ld"
Packit 0d464f
Packit 0d464f
old_CC="$CC"
Packit 0d464f
old_CFLAGS="$CFLAGS"
Packit 0d464f
Packit 0d464f
# Set sane defaults for various variables
Packit 0d464f
test -z "$CC" && CC=cc
Packit 0d464f
test -z "$LTCC" && LTCC=$CC
Packit 0d464f
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
Packit 0d464f
test -z "$LD" && LD=ld
Packit 0d464f
test -z "$ac_objext" && ac_objext=o
Packit 0d464f
Packit 0d464f
_LT_CC_BASENAME([$compiler])
Packit 0d464f
Packit 0d464f
# Only perform the check for file, if the check method requires it
Packit 0d464f
test -z "$MAGIC_CMD" && MAGIC_CMD=file
Packit 0d464f
case $deplibs_check_method in
Packit 0d464f
file_magic*)
Packit 0d464f
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
Packit 0d464f
    _LT_PATH_MAGIC
Packit 0d464f
  fi
Packit 0d464f
  ;;
Packit 0d464f
esac
Packit 0d464f
Packit 0d464f
# Use C for the default configuration in the libtool script
Packit 0d464f
LT_SUPPORTED_TAG([CC])
Packit 0d464f
_LT_LANG_C_CONFIG
Packit 0d464f
_LT_LANG_DEFAULT_CONFIG
Packit 0d464f
_LT_CONFIG_COMMANDS
Packit 0d464f
])# _LT_SETUP
Packit 0d464f
Packit 0d464f
Packit 0d464f
# _LT_PROG_LTMAIN
Packit 0d464f
# ---------------
Packit 0d464f
# Note that this code is called both from `configure', and `config.status'
Packit 0d464f
# now that we use AC_CONFIG_COMMANDS to generate libtool.  Notably,
Packit 0d464f
# `config.status' has no value for ac_aux_dir unless we are using Automake,
Packit 0d464f
# so we pass a copy along to make sure it has a sensible value anyway.
Packit 0d464f
m4_defun([_LT_PROG_LTMAIN],
Packit 0d464f
[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
Packit 0d464f
_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
Packit 0d464f
ltmain="$ac_aux_dir/ltmain.sh"
Packit 0d464f
])# _LT_PROG_LTMAIN
Packit 0d464f
Packit 0d464f
Packit 0d464f
Packit 0d464f
# So that we can recreate a full libtool script including additional
Packit 0d464f
# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
Packit 0d464f
# in macros and then make a single call at the end using the `libtool'
Packit 0d464f
# label.
Packit 0d464f
Packit 0d464f
Packit 0d464f
# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
Packit 0d464f
# ----------------------------------------
Packit 0d464f
# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
Packit 0d464f
m4_define([_LT_CONFIG_LIBTOOL_INIT],
Packit 0d464f
[m4_ifval([$1],
Packit 0d464f
          [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
Packit 0d464f
                     [$1
Packit 0d464f
])])])
Packit 0d464f
Packit 0d464f
# Initialize.
Packit 0d464f
m4_define([_LT_OUTPUT_LIBTOOL_INIT])
Packit 0d464f
Packit 0d464f
Packit 0d464f
# _LT_CONFIG_LIBTOOL([COMMANDS])
Packit 0d464f
# ------------------------------
Packit 0d464f
# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
Packit 0d464f
m4_define([_LT_CONFIG_LIBTOOL],
Packit 0d464f
[m4_ifval([$1],
Packit 0d464f
          [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
Packit 0d464f
                     [$1
Packit 0d464f
])])])
Packit 0d464f
Packit 0d464f
# Initialize.
Packit 0d464f
m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
Packit 0d464f
Packit 0d464f
Packit 0d464f
# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
Packit 0d464f
# -----------------------------------------------------
Packit 0d464f
m4_defun([_LT_CONFIG_SAVE_COMMANDS],
Packit 0d464f
[_LT_CONFIG_LIBTOOL([$1])
Packit 0d464f
_LT_CONFIG_LIBTOOL_INIT([$2])
Packit 0d464f
])
Packit 0d464f
Packit 0d464f
Packit 0d464f
# _LT_FORMAT_COMMENT([COMMENT])
Packit 0d464f
# -----------------------------
Packit 0d464f
# Add leading comment marks to the start of each line, and a trailing
Packit 0d464f
# full-stop to the whole comment if one is not present already.
Packit 0d464f
m4_define([_LT_FORMAT_COMMENT],
Packit 0d464f
[m4_ifval([$1], [
Packit 0d464f
m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
Packit 0d464f
              [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
Packit 0d464f
)])
Packit 0d464f
Packit 0d464f
Packit 0d464f
Packit 0d464f
Packit 0d464f
Packit 0d464f
# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
Packit 0d464f
# -------------------------------------------------------------------
Packit 0d464f
# CONFIGNAME is the name given to the value in the libtool script.
Packit 0d464f
# VARNAME is the (base) name used in the configure script.
Packit 0d464f
# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
Packit 0d464f
# VARNAME.  Any other value will be used directly.
Packit 0d464f
m4_define([_LT_DECL],
Packit 0d464f
[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
Packit 0d464f
    [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
Packit 0d464f
	[m4_ifval([$1], [$1], [$2])])
Packit 0d464f
    lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
Packit 0d464f
    m4_ifval([$4],
Packit 0d464f
	[lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
Packit 0d464f
    lt_dict_add_subkey([lt_decl_dict], [$2],
Packit 0d464f
	[tagged?], [m4_ifval([$5], [yes], [no])])])
Packit 0d464f
])
Packit 0d464f
Packit 0d464f
Packit 0d464f
# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
Packit 0d464f
# --------------------------------------------------------
Packit 0d464f
m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
Packit 0d464f
Packit 0d464f
Packit 0d464f
# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
Packit 0d464f
# ------------------------------------------------
Packit 0d464f
m4_define([lt_decl_tag_varnames],
Packit 0d464f
[_lt_decl_filter([tagged?], [yes], $@)])
Packit 0d464f
Packit 0d464f
Packit 0d464f
# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
Packit 0d464f
# ---------------------------------------------------------
Packit 0d464f
m4_define([_lt_decl_filter],
Packit 0d464f
[m4_case([$#],
Packit 0d464f
  [0], [m4_fatal([$0: too few arguments: $#])],
Packit 0d464f
  [1], [m4_fatal([$0: too few arguments: $#: $1])],
Packit 0d464f
  [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
Packit 0d464f
  [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
Packit 0d464f
  [lt_dict_filter([lt_decl_dict], $@)])[]dnl
Packit 0d464f
])
Packit 0d464f
Packit 0d464f
Packit 0d464f
# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
Packit 0d464f
# --------------------------------------------------
Packit 0d464f
m4_define([lt_decl_quote_varnames],
Packit 0d464f
[_lt_decl_filter([value], [1], $@)])
Packit 0d464f
Packit 0d464f
Packit 0d464f
# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
Packit 0d464f
# ---------------------------------------------------
Packit 0d464f
m4_define([lt_decl_dquote_varnames],
Packit 0d464f
[_lt_decl_filter([value], [2], $@)])
Packit 0d464f
Packit 0d464f
Packit 0d464f
# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
Packit 0d464f
# ---------------------------------------------------
Packit 0d464f
m4_define([lt_decl_varnames_tagged],
Packit 0d464f
[m4_assert([$# <= 2])dnl
Packit 0d464f
_$0(m4_quote(m4_default([$1], [[, ]])),
Packit 0d464f
    m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
Packit 0d464f
    m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
Packit 0d464f
m4_define([_lt_decl_varnames_tagged],
Packit 0d464f
[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
Packit 0d464f
Packit 0d464f
Packit 0d464f
# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
Packit 0d464f
# ------------------------------------------------
Packit 0d464f
m4_define([lt_decl_all_varnames],
Packit 0d464f
[_$0(m4_quote(m4_default([$1], [[, ]])),
Packit 0d464f
     m4_if([$2], [],
Packit 0d464f
	   m4_quote(lt_decl_varnames),
Packit 0d464f
	m4_quote(m4_shift($@))))[]dnl
Packit 0d464f
])
Packit 0d464f
m4_define([_lt_decl_all_varnames],
Packit 0d464f
[lt_join($@, lt_decl_varnames_tagged([$1],
Packit 0d464f
			lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
Packit 0d464f
])
Packit 0d464f
Packit 0d464f
Packit 0d464f
# _LT_CONFIG_STATUS_DECLARE([VARNAME])
Packit 0d464f
# ------------------------------------
Packit 0d464f
# Quote a variable value, and forward it to `config.status' so that its
Packit 0d464f
# declaration there will have the same value as in `configure'.  VARNAME
Packit 0d464f
# must have a single quote delimited value for this to work.
Packit 0d464f
m4_define([_LT_CONFIG_STATUS_DECLARE],
Packit 0d464f
[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
Packit 0d464f
Packit 0d464f
Packit 0d464f
# _LT_CONFIG_STATUS_DECLARATIONS
Packit 0d464f
# ------------------------------
Packit 0d464f
# We delimit libtool config variables with single quotes, so when
Packit 0d464f
# we write them to config.status, we have to be sure to quote all
Packit 0d464f
# embedded single quotes properly.  In configure, this macro expands
Packit 0d464f
# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
Packit 0d464f
#
Packit 0d464f
#    ='`$ECHO "X$" | $Xsed -e "$delay_single_quote_subst"`'
Packit 0d464f
m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
Packit 0d464f
[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
Packit 0d464f
    [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
Packit 0d464f
Packit 0d464f
Packit 0d464f
# _LT_LIBTOOL_TAGS
Packit 0d464f
# ----------------
Packit 0d464f
# Output comment and list of tags supported by the script
Packit 0d464f
m4_defun([_LT_LIBTOOL_TAGS],
Packit 0d464f
[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
Packit 0d464f
available_tags="_LT_TAGS"dnl
Packit 0d464f
])
Packit 0d464f
Packit 0d464f
Packit 0d464f
# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
Packit 0d464f
# -----------------------------------
Packit 0d464f
# Extract the dictionary values for VARNAME (optionally with TAG) and
Packit 0d464f
# expand to a commented shell variable setting:
Packit 0d464f
#
Packit 0d464f
#    # Some comment about what VAR is for.
Packit 0d464f
#    visible_name=$lt_internal_name
Packit 0d464f
m4_define([_LT_LIBTOOL_DECLARE],
Packit 0d464f
[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
Packit 0d464f
					   [description])))[]dnl
Packit 0d464f
m4_pushdef([_libtool_name],
Packit 0d464f
    m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
Packit 0d464f
m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
Packit 0d464f
    [0], [_libtool_name=[$]$1],
Packit 0d464f
    [1], [_libtool_name=$lt_[]$1],
Packit 0d464f
    [2], [_libtool_name=$lt_[]$1],
Packit 0d464f
    [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
Packit 0d464f
m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
Packit 0d464f
])
Packit 0d464f
Packit 0d464f
Packit 0d464f
# _LT_LIBTOOL_CONFIG_VARS
Packit 0d464f
# -----------------------
Packit 0d464f
# Produce commented declarations of non-tagged libtool config variables
Packit 0d464f
# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
Packit 0d464f
# script.  Tagged libtool config variables (even for the LIBTOOL CONFIG
Packit 0d464f
# section) are produced by _LT_LIBTOOL_TAG_VARS.
Packit 0d464f
m4_defun([_LT_LIBTOOL_CONFIG_VARS],
Packit 0d464f
[m4_foreach([_lt_var],
Packit 0d464f
    m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
Packit 0d464f
    [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
Packit 0d464f
Packit 0d464f
Packit 0d464f
# _LT_LIBTOOL_TAG_VARS(TAG)
Packit 0d464f
# -------------------------
Packit 0d464f
m4_define([_LT_LIBTOOL_TAG_VARS],
Packit 0d464f
[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
Packit 0d464f
    [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
Packit 0d464f
Packit 0d464f
Packit 0d464f
# _LT_TAGVAR(VARNAME, [TAGNAME])
Packit 0d464f
# ------------------------------
Packit 0d464f
m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
Packit 0d464f
Packit 0d464f
Packit 0d464f
# _LT_CONFIG_COMMANDS
Packit 0d464f
# -------------------
Packit 0d464f
# Send accumulated output to $CONFIG_STATUS.  Thanks to the lists of
Packit 0d464f
# variables for single and double quote escaping we saved from calls
Packit 0d464f
# to _LT_DECL, we can put quote escaped variables declarations
Packit 0d464f
# into `config.status', and then the shell code to quote escape them in
Packit 0d464f
# for loops in `config.status'.  Finally, any additional code accumulated
Packit 0d464f
# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
Packit 0d464f
m4_defun([_LT_CONFIG_COMMANDS],
Packit 0d464f
[AC_PROVIDE_IFELSE([LT_OUTPUT],
Packit 0d464f
	dnl If the libtool generation code has been placed in $CONFIG_LT,
Packit 0d464f
	dnl instead of duplicating it all over again into config.status,
Packit 0d464f
	dnl then we will have config.status run $CONFIG_LT later, so it
Packit 0d464f
	dnl needs to know what name is stored there:
Packit 0d464f
        [AC_CONFIG_COMMANDS([libtool],
Packit 0d464f
            [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
Packit 0d464f
    dnl If the libtool generation code is destined for config.status,
Packit 0d464f
    dnl expand the accumulated commands and init code now:
Packit 0d464f
    [AC_CONFIG_COMMANDS([libtool],
Packit 0d464f
        [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
Packit 0d464f
])#_LT_CONFIG_COMMANDS
Packit 0d464f
Packit 0d464f
Packit 0d464f
# Initialize.
Packit 0d464f
m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
Packit 0d464f
[
Packit 0d464f
Packit 0d464f
# The HP-UX ksh and POSIX shell print the target directory to stdout
Packit 0d464f
# if CDPATH is set.
Packit 0d464f
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
Packit 0d464f
Packit 0d464f
sed_quote_subst='$sed_quote_subst'
Packit 0d464f
double_quote_subst='$double_quote_subst'
Packit 0d464f
delay_variable_subst='$delay_variable_subst'
Packit 0d464f
_LT_CONFIG_STATUS_DECLARATIONS
Packit 0d464f
LTCC='$LTCC'
Packit 0d464f
LTCFLAGS='$LTCFLAGS'
Packit 0d464f
compiler='$compiler_DEFAULT'
Packit 0d464f
Packit 0d464f
# Quote evaled strings.
Packit 0d464f
for var in lt_decl_all_varnames([[ \
Packit 0d464f
]], lt_decl_quote_varnames); do
Packit 0d464f
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
Packit 0d464f
    *[[\\\\\\\`\\"\\\$]]*)
Packit 0d464f
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
Packit 0d464f
      ;;
Packit 0d464f
    *)
Packit 0d464f
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
Packit 0d464f
      ;;
Packit 0d464f
    esac
Packit 0d464f
done
Packit 0d464f
Packit 0d464f
# Double-quote double-evaled strings.
Packit 0d464f
for var in lt_decl_all_varnames([[ \
Packit 0d464f
]], lt_decl_dquote_varnames); do
Packit 0d464f
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
Packit 0d464f
    *[[\\\\\\\`\\"\\\$]]*)
Packit 0d464f
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
Packit 0d464f
      ;;
Packit 0d464f
    *)
Packit 0d464f
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
Packit 0d464f
      ;;
Packit 0d464f
    esac
Packit 0d464f
done
Packit 0d464f
Packit 0d464f
# Fix-up fallback echo if it was mangled by the above quoting rules.
Packit 0d464f
case \$lt_ECHO in
Packit 0d464f
*'\\\[$]0 --fallback-echo"')dnl "
Packit 0d464f
  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
Packit 0d464f
  ;;
Packit 0d464f
esac
Packit 0d464f
Packit 0d464f
_LT_OUTPUT_LIBTOOL_INIT
Packit 0d464f
])
Packit 0d464f
Packit 0d464f
Packit 0d464f
# LT_OUTPUT
Packit 0d464f
# ---------
Packit 0d464f
# This macro allows early generation of the libtool script (before
Packit 0d464f
# AC_OUTPUT is called), incase it is used in configure for compilation
Packit 0d464f
# tests.
Packit 0d464f
AC_DEFUN([LT_OUTPUT],
Packit 0d464f
[: ${CONFIG_LT=./config.lt}
Packit 0d464f
AC_MSG_NOTICE([creating $CONFIG_LT])
Packit 0d464f
cat >"$CONFIG_LT" <<_LTEOF
Packit 0d464f
#! $SHELL
Packit 0d464f
# Generated by $as_me.
Packit 0d464f
# Run this file to recreate a libtool stub with the current configuration.
Packit 0d464f
Packit 0d464f
lt_cl_silent=false
Packit 0d464f
SHELL=\${CONFIG_SHELL-$SHELL}
Packit 0d464f
_LTEOF
Packit 0d464f
Packit 0d464f
cat >>"$CONFIG_LT" <<\_LTEOF
Packit 0d464f
AS_SHELL_SANITIZE
Packit 0d464f
_AS_PREPARE
Packit 0d464f
Packit 0d464f
exec AS_MESSAGE_FD>&1
Packit 0d464f
exec AS_MESSAGE_LOG_FD>>config.log
Packit 0d464f
{
Packit 0d464f
  echo
Packit 0d464f
  AS_BOX([Running $as_me.])
Packit 0d464f
} >&AS_MESSAGE_LOG_FD
Packit 0d464f
Packit 0d464f
lt_cl_help="\
Packit 0d464f
\`$as_me' creates a local libtool stub from the current configuration,
Packit 0d464f
for use in further configure time tests before the real libtool is
Packit 0d464f
generated.
Packit 0d464f
Packit 0d464f
Usage: $[0] [[OPTIONS]]
Packit 0d464f
Packit 0d464f
  -h, --help      print this help, then exit
Packit 0d464f
  -V, --version   print version number, then exit
Packit 0d464f
  -q, --quiet     do not print progress messages
Packit 0d464f
  -d, --debug     don't remove temporary files
Packit 0d464f
Packit 0d464f
Report bugs to <bug-libtool@gnu.org>."
Packit 0d464f
Packit 0d464f
lt_cl_version="\
Packit 0d464f
m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
Packit 0d464f
m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
Packit 0d464f
configured by $[0], generated by m4_PACKAGE_STRING.
Packit 0d464f
Packit 0d464f
Copyright (C) 2008 Free Software Foundation, Inc.
Packit 0d464f
This config.lt script is free software; the Free Software Foundation
Packit 0d464f
gives unlimited permision to copy, distribute and modify it."
Packit 0d464f
Packit 0d464f
while test $[#] != 0
Packit 0d464f
do
Packit 0d464f
  case $[1] in
Packit 0d464f
    --version | --v* | -V )
Packit 0d464f
      echo "$lt_cl_version"; exit 0 ;;
Packit 0d464f
    --help | --h* | -h )
Packit 0d464f
      echo "$lt_cl_help"; exit 0 ;;
Packit 0d464f
    --debug | --d* | -d )
Packit 0d464f
      debug=: ;;
Packit 0d464f
    --quiet | --q* | --silent | --s* | -q )
Packit 0d464f
      lt_cl_silent=: ;;
Packit 0d464f
Packit 0d464f
    -*) AC_MSG_ERROR([unrecognized option: $[1]
Packit 0d464f
Try \`$[0] --help' for more information.]) ;;
Packit 0d464f
Packit 0d464f
    *) AC_MSG_ERROR([unrecognized argument: $[1]
Packit 0d464f
Try \`$[0] --help' for more information.]) ;;
Packit 0d464f
  esac
Packit 0d464f
  shift
Packit 0d464f
done
Packit 0d464f
Packit 0d464f
if $lt_cl_silent; then
Packit 0d464f
  exec AS_MESSAGE_FD>/dev/null
Packit 0d464f
fi
Packit 0d464f
_LTEOF
Packit 0d464f
Packit 0d464f
cat >>"$CONFIG_LT" <<_LTEOF
Packit 0d464f
_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
Packit 0d464f
_LTEOF
Packit 0d464f
Packit 0d464f
cat >>"$CONFIG_LT" <<\_LTEOF
Packit 0d464f
AC_MSG_NOTICE([creating $ofile])
Packit 0d464f
_LT_OUTPUT_LIBTOOL_COMMANDS
Packit 0d464f
AS_EXIT(0)
Packit 0d464f
_LTEOF
Packit 0d464f
chmod +x "$CONFIG_LT"
Packit 0d464f
Packit 0d464f
# configure is writing to config.log, but config.lt does its own redirection,
Packit 0d464f
# appending to config.log, which fails on DOS, as config.log is still kept
Packit 0d464f
# open by configure.  Here we exec the FD to /dev/null, effectively closing
Packit 0d464f
# config.log, so it can be properly (re)opened and appended to by config.lt.
Packit 0d464f
if test "$no_create" != yes; then
Packit 0d464f
  lt_cl_success=:
Packit 0d464f
  test "$silent" = yes &&
Packit 0d464f
    lt_config_lt_args="$lt_config_lt_args --quiet"
Packit 0d464f
  exec AS_MESSAGE_LOG_FD>/dev/null
Packit 0d464f
  $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
Packit 0d464f
  exec AS_MESSAGE_LOG_FD>>config.log
Packit 0d464f
  $lt_cl_success || AS_EXIT(1)
Packit 0d464f
fi
Packit 0d464f
])# LT_OUTPUT
Packit 0d464f
Packit 0d464f
Packit 0d464f
# _LT_CONFIG(TAG)
Packit 0d464f
# ---------------
Packit 0d464f
# If TAG is the built-in tag, create an initial libtool script with a
Packit 0d464f
# default configuration from the untagged config vars.  Otherwise add code
Packit 0d464f
# to config.status for appending the configuration named by TAG from the
Packit 0d464f
# matching tagged config vars.
Packit 0d464f
m4_defun([_LT_CONFIG],
Packit 0d464f
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
Packit 0d464f
_LT_CONFIG_SAVE_COMMANDS([
Packit 0d464f
  m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
Packit 0d464f
  m4_if(_LT_TAG, [C], [
Packit 0d464f
    # See if we are running on zsh, and set the options which allow our
Packit 0d464f
    # commands through without removal of \ escapes.
Packit 0d464f
    if test -n "${ZSH_VERSION+set}" ; then
Packit 0d464f
      setopt NO_GLOB_SUBST
Packit 0d464f
    fi
Packit 0d464f
Packit 0d464f
    cfgfile="${ofile}T"
Packit 0d464f
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
Packit 0d464f
    $RM "$cfgfile"
Packit 0d464f
Packit 0d464f
    cat <<_LT_EOF >> "$cfgfile"
Packit 0d464f
#! $SHELL
Packit 0d464f
Packit 0d464f
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
Packit 0d464f
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
Packit 0d464f
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
Packit 0d464f
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
Packit 0d464f
#
Packit 0d464f
_LT_COPYING
Packit 0d464f
_LT_LIBTOOL_TAGS
Packit 0d464f
Packit 0d464f
# ### BEGIN LIBTOOL CONFIG
Packit 0d464f
_LT_LIBTOOL_CONFIG_VARS
Packit 0d464f
_LT_LIBTOOL_TAG_VARS
Packit 0d464f
# ### END LIBTOOL CONFIG
Packit 0d464f
Packit 0d464f
_LT_EOF
Packit 0d464f
Packit 0d464f
  case $host_os in
Packit 0d464f
  aix3*)
Packit 0d464f
    cat <<\_LT_EOF >> "$cfgfile"
Packit 0d464f
# AIX sometimes has problems with the GCC collect2 program.  For some
Packit 0d464f
# reason, if we set the COLLECT_NAMES environment variable, the problems
Packit 0d464f
# vanish in a puff of smoke.
Packit 0d464f
if test "X${COLLECT_NAMES+set}" != Xset; then
Packit 0d464f
  COLLECT_NAMES=
Packit 0d464f
  export COLLECT_NAMES
Packit 0d464f
fi
Packit 0d464f
_LT_EOF
Packit 0d464f
    ;;
Packit 0d464f
  esac
Packit 0d464f
Packit 0d464f
  _LT_PROG_LTMAIN
Packit 0d464f
Packit 0d464f
  # We use sed instead of cat because bash on DJGPP gets confused if
Packit 0d464f
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
Packit 0d464f
  # text mode, it properly converts lines to CR/LF.  This bash problem
Packit 0d464f
  # is reportedly fixed, but why not run on old versions too?
Packit 0d464f
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
Packit 0d464f
    || (rm -f "$cfgfile"; exit 1)
Packit 0d464f
Packit 0d464f
  _LT_PROG_XSI_SHELLFNS
Packit 0d464f
Packit 0d464f
  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
Packit 0d464f
    || (rm -f "$cfgfile"; exit 1)
Packit 0d464f
Packit 0d464f
  mv -f "$cfgfile" "$ofile" ||
Packit 0d464f
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
Packit 0d464f
  chmod +x "$ofile"
Packit 0d464f
],
Packit 0d464f
[cat <<_LT_EOF >> "$ofile"
Packit 0d464f
Packit 0d464f
dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
Packit 0d464f
dnl in a comment (ie after a #).
Packit 0d464f
# ### BEGIN LIBTOOL TAG CONFIG: $1
Packit 0d464f
_LT_LIBTOOL_TAG_VARS(_LT_TAG)
Packit 0d464f
# ### END LIBTOOL TAG CONFIG: $1
Packit 0d464f
_LT_EOF
Packit 0d464f
])dnl /m4_if
Packit 0d464f
],
Packit 0d464f
[m4_if([$1], [], [
Packit 0d464f
    PACKAGE='$PACKAGE'
Packit 0d464f
    VERSION='$VERSION'
Packit 0d464f
    TIMESTAMP='$TIMESTAMP'
Packit 0d464f
    RM='$RM'
Packit 0d464f
    ofile='$ofile'], [])
Packit 0d464f
])dnl /_LT_CONFIG_SAVE_COMMANDS
Packit 0d464f
])# _LT_CONFIG
Packit 0d464f
Packit 0d464f
Packit 0d464f
# LT_SUPPORTED_TAG(TAG)
Packit 0d464f
# ---------------------
Packit 0d464f
# Trace this macro to discover what tags are supported by the libtool
Packit 0d464f
# --tag option, using:
Packit 0d464f
#    autoconf --trace 'LT_SUPPORTED_TAG:$1'
Packit 0d464f
AC_DEFUN([LT_SUPPORTED_TAG], [])
Packit 0d464f
Packit 0d464f
Packit 0d464f
# C support is built-in for now
Packit 0d464f
m4_define([_LT_LANG_C_enabled], [])
Packit 0d464f
m4_define([_LT_TAGS], [])
Packit 0d464f
Packit 0d464f
Packit 0d464f
# LT_LANG(LANG)
Packit 0d464f
# -------------
Packit 0d464f
# Enable libtool support for the given language if not already enabled.
Packit 0d464f
AC_DEFUN([LT_LANG],
Packit 0d464f
[AC_BEFORE([$0], [LT_OUTPUT])dnl
Packit 0d464f
m4_case([$1],
Packit 0d464f
  [C],			[_LT_LANG(C)],
Packit 0d464f
  [C++],		[_LT_LANG(CXX)],
Packit 0d464f
  [Java],		[_LT_LANG(GCJ)],
Packit 0d464f
  [Fortran 77],		[_LT_LANG(F77)],
Packit 0d464f
  [Fortran],		[_LT_LANG(FC)],
Packit 0d464f
  [Windows Resource],	[_LT_LANG(RC)],
Packit 0d464f
  [m4_ifdef([_LT_LANG_]$1[_CONFIG],
Packit 0d464f
    [_LT_LANG($1)],
Packit 0d464f
    [m4_fatal([$0: unsupported language: "$1"])])])dnl
Packit 0d464f
])# LT_LANG
Packit 0d464f
Packit 0d464f
Packit 0d464f
# _LT_LANG(LANGNAME)
Packit 0d464f
# ------------------
Packit 0d464f
m4_defun([_LT_LANG],
Packit 0d464f
[m4_ifdef([_LT_LANG_]$1[_enabled], [],
Packit 0d464f
  [LT_SUPPORTED_TAG([$1])dnl
Packit 0d464f
  m4_append([_LT_TAGS], [$1 ])dnl
Packit 0d464f
  m4_define([_LT_LANG_]$1[_enabled], [])dnl
Packit 0d464f
  _LT_LANG_$1_CONFIG($1)])dnl
Packit 0d464f
])# _LT_LANG
Packit 0d464f
Packit 0d464f
Packit 0d464f
# _LT_LANG_DEFAULT_CONFIG
Packit 0d464f
# -----------------------
Packit 0d464f
m4_defun([_LT_LANG_DEFAULT_CONFIG],
Packit 0d464f
[AC_PROVIDE_IFELSE([AC_PROG_CXX],
Packit 0d464f
  [LT_LANG(CXX)],
Packit 0d464f
  [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
Packit 0d464f
Packit 0d464f
AC_PROVIDE_IFELSE([AC_PROG_F77],
Packit 0d464f
  [LT_LANG(F77)],
Packit 0d464f
  [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
Packit 0d464f
Packit 0d464f
AC_PROVIDE_IFELSE([AC_PROG_FC],
Packit 0d464f
  [LT_LANG(FC)],
Packit 0d464f
  [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
Packit 0d464f
Packit 0d464f
dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
Packit 0d464f
dnl pulling things in needlessly.
Packit 0d464f
AC_PROVIDE_IFELSE([AC_PROG_GCJ],
Packit 0d464f
  [LT_LANG(GCJ)],
Packit 0d464f
  [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
Packit 0d464f
    [LT_LANG(GCJ)],
Packit 0d464f
    [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
Packit 0d464f
      [LT_LANG(GCJ)],
Packit 0d464f
      [m4_ifdef([AC_PROG_GCJ],
Packit 0d464f
	[m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
Packit 0d464f
       m4_ifdef([A][M_PROG_GCJ],
Packit 0d464f
	[m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
Packit 0d464f
       m4_ifdef([LT_PROG_GCJ],
Packit 0d464f
	[m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
Packit 0d464f
Packit 0d464f
AC_PROVIDE_IFELSE([LT_PROG_RC],
Packit 0d464f
  [LT_LANG(RC)],
Packit 0d464f
  [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
Packit 0d464f
])# _LT_LANG_DEFAULT_CONFIG
Packit 0d464f
Packit 0d464f
# Obsolete macros:
Packit 0d464f
AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
Packit 0d464f
AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
Packit 0d464f
AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
Packit 0d464f
AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
Packit 0d464f
dnl aclocal-1.4 backwards compatibility:
Packit 0d464f
dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
Packit 0d464f
dnl AC_DEFUN([AC_LIBTOOL_F77], [])
Packit 0d464f
dnl AC_DEFUN([AC_LIBTOOL_FC], [])
Packit 0d464f
dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
Packit 0d464f
Packit 0d464f
Packit 0d464f
# _LT_TAG_COMPILER
Packit 0d464f
# ----------------
Packit 0d464f
m4_defun([_LT_TAG_COMPILER],
Packit 0d464f
[AC_REQUIRE([AC_PROG_CC])dnl
Packit 0d464f
Packit 0d464f
_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
Packit 0d464f
_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
Packit 0d464f
_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
Packit 0d464f
_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
Packit 0d464f
Packit 0d464f
# If no C compiler was specified, use CC.
Packit 0d464f
LTCC=${LTCC-"$CC"}
Packit 0d464f
Packit 0d464f
# If no C compiler flags were specified, use CFLAGS.
Packit 0d464f
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
Packit 0d464f
Packit 0d464f
# Allow CC to be a program name with arguments.
Packit 0d464f
compiler=$CC
Packit 0d464f
])# _LT_TAG_COMPILER
Packit 0d464f
Packit 0d464f
Packit 0d464f
# _LT_COMPILER_BOILERPLATE
Packit 0d464f
# ------------------------
Packit 0d464f
# Check for compiler boilerplate output or warnings with
Packit 0d464f
# the simple compiler test code.
Packit 0d464f
m4_defun([_LT_COMPILER_BOILERPLATE],
Packit 0d464f
[m4_require([_LT_DECL_SED])dnl
Packit 0d464f
ac_outfile=conftest.$ac_objext
Packit 0d464f
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
Packit 0d464f
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
Packit 0d464f
_lt_compiler_boilerplate=`cat conftest.err`
Packit 0d464f
$RM conftest*
Packit 0d464f
])# _LT_COMPILER_BOILERPLATE
Packit 0d464f
Packit 0d464f
Packit 0d464f
# _LT_LINKER_BOILERPLATE
Packit 0d464f
# ----------------------
Packit 0d464f
# Check for linker boilerplate output or warnings with
Packit 0d464f
# the simple link test code.
Packit 0d464f
m4_defun([_LT_LINKER_BOILERPLATE],
Packit 0d464f
[m4_require([_LT_DECL_SED])dnl
Packit 0d464f
ac_outfile=conftest.$ac_objext
Packit 0d464f
echo "$lt_simple_link_test_code" >conftest.$ac_ext
Packit 0d464f
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
Packit 0d464f
_lt_linker_boilerplate=`cat conftest.err`
Packit 0d464f
$RM -r conftest*
Packit 0d464f
])# _LT_LINKER_BOILERPLATE
Packit 0d464f
Packit 0d464f
# _LT_REQUIRED_DARWIN_CHECKS
Packit 0d464f
# -------------------------
Packit 0d464f
m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
Packit 0d464f
  case $host_os in
Packit 0d464f
    rhapsody* | darwin*)
Packit 0d464f
    AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
Packit 0d464f
    AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
Packit 0d464f
    AC_CHECK_TOOL([LIPO], [lipo], [:])
Packit 0d464f
    AC_CHECK_TOOL([OTOOL], [otool], [:])
Packit 0d464f
    AC_CHECK_TOOL([OTOOL64], [otool64], [:])
Packit 0d464f
    _LT_DECL([], [DSYMUTIL], [1],
Packit 0d464f
      [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
Packit 0d464f
    _LT_DECL([], [NMEDIT], [1],
Packit 0d464f
      [Tool to change global to local symbols on Mac OS X])
Packit 0d464f
    _LT_DECL([], [LIPO], [1],
Packit 0d464f
      [Tool to manipulate fat objects and archives on Mac OS X])
Packit 0d464f
    _LT_DECL([], [OTOOL], [1],
Packit 0d464f
      [ldd/readelf like tool for Mach-O binaries on Mac OS X])
Packit 0d464f
    _LT_DECL([], [OTOOL64], [1],
Packit 0d464f
      [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
Packit 0d464f
Packit 0d464f
    AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
Packit 0d464f
      [lt_cv_apple_cc_single_mod=no
Packit 0d464f
      if test -z "${LT_MULTI_MODULE}"; then
Packit 0d464f
	# By default we will add the -single_module flag. You can override
Packit 0d464f
	# by either setting the environment variable LT_MULTI_MODULE
Packit 0d464f
	# non-empty at configure time, or by adding -multi_module to the
Packit 0d464f
	# link flags.
Packit 0d464f
	rm -rf libconftest.dylib*
Packit 0d464f
	echo "int foo(void){return 1;}" > conftest.c
Packit 0d464f
	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
Packit 0d464f
-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
Packit 0d464f
	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
Packit 0d464f
	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
Packit 0d464f
        _lt_result=$?
Packit 0d464f
	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
Packit 0d464f
	  lt_cv_apple_cc_single_mod=yes
Packit 0d464f
	else
Packit 0d464f
	  cat conftest.err >&AS_MESSAGE_LOG_FD
Packit 0d464f
	fi
Packit 0d464f
	rm -rf libconftest.dylib*
Packit 0d464f
	rm -f conftest.*
Packit 0d464f
      fi])
Packit 0d464f
    AC_CACHE_CHECK([for -exported_symbols_list linker flag],
Packit 0d464f
      [lt_cv_ld_exported_symbols_list],
Packit 0d464f
      [lt_cv_ld_exported_symbols_list=no
Packit 0d464f
      save_LDFLAGS=$LDFLAGS
Packit 0d464f
      echo "_main" > conftest.sym
Packit 0d464f
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
Packit 0d464f
      AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
Packit 0d464f
	[lt_cv_ld_exported_symbols_list=yes],
Packit 0d464f
	[lt_cv_ld_exported_symbols_list=no])
Packit 0d464f
	LDFLAGS="$save_LDFLAGS"
Packit 0d464f
    ])
Packit 0d464f
    case $host_os in
Packit 0d464f
    rhapsody* | darwin1.[[012]])
Packit 0d464f
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
Packit 0d464f
    darwin1.*)
Packit 0d464f
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
Packit 0d464f
    darwin*) # darwin 5.x on
Packit 0d464f
      # if running on 10.5 or later, the deployment target defaults
Packit 0d464f
      # to the OS version, if on x86, and 10.4, the deployment
Packit 0d464f
      # target defaults to 10.4. Don't you love it?
Packit 0d464f
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
Packit 0d464f
	10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
Packit 0d464f
	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
Packit 0d464f
	10.[[012]]*)
Packit 0d464f
	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
Packit 0d464f
	10.*)
Packit 0d464f
	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
Packit 0d464f
      esac
Packit 0d464f
    ;;
Packit 0d464f
  esac
Packit 0d464f
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
Packit 0d464f
      _lt_dar_single_mod='$single_module'
Packit 0d464f
    fi
Packit 0d464f
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
Packit 0d464f
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
Packit 0d464f
    else
Packit 0d464f
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
Packit 0d464f
    fi
Packit 0d464f
    if test "$DSYMUTIL" != ":"; then
Packit 0d464f
      _lt_dsymutil='~$DSYMUTIL $lib || :'
Packit 0d464f
    else
Packit 0d464f
      _lt_dsymutil=
Packit 0d464f
    fi
Packit 0d464f
    ;;
Packit 0d464f
  esac
Packit 0d464f
])
Packit 0d464f
Packit 0d464f
Packit 0d464f
# _LT_DARWIN_LINKER_FEATURES
Packit 0d464f
# --------------------------
Packit 0d464f
# Checks for linker and compiler features on darwin
Packit 0d464f
m4_defun([_LT_DARWIN_LINKER_FEATURES],
Packit 0d464f
[
Packit 0d464f
  m4_require([_LT_REQUIRED_DARWIN_CHECKS])
Packit 0d464f
  _LT_TAGVAR(archive_cmds_need_lc, $1)=no
Packit 0d464f
  _LT_TAGVAR(hardcode_direct, $1)=no
Packit 0d464f
  _LT_TAGVAR(hardcode_automatic, $1)=yes
Packit 0d464f
  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
Packit 0d464f
  _LT_TAGVAR(whole_archive_flag_spec, $1)=''
Packit 0d464f
  _LT_TAGVAR(link_all_deplibs, $1)=yes
Packit 0d464f
  _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
Packit 0d464f
  case $cc_basename in
Packit 0d464f
     ifort*) _lt_dar_can_shared=yes ;;
Packit 0d464f
     *) _lt_dar_can_shared=$GCC ;;
Packit 0d464f
  esac
Packit 0d464f
  if test "$_lt_dar_can_shared" = "yes"; then
Packit 0d464f
    output_verbose_link_cmd=echo
Packit 0d464f
    _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}"
Packit 0d464f
    _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
Packit 0d464f
    _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}"
Packit 0d464f
    _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}"
Packit 0d464f
    m4_if([$1], [CXX],
Packit 0d464f
[   if test "$lt_cv_apple_cc_single_mod" != "yes"; then
Packit 0d464f
      _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}"
Packit 0d464f
      _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}"
Packit 0d464f
    fi
Packit 0d464f
],[])
Packit 0d464f
  else
Packit 0d464f
  _LT_TAGVAR(ld_shlibs, $1)=no
Packit 0d464f
  fi
Packit 0d464f
])
Packit 0d464f
Packit 0d464f
# _LT_SYS_MODULE_PATH_AIX
Packit 0d464f
# -----------------------
Packit 0d464f
# Links a minimal program and checks the executable
Packit 0d464f
# for the system default hardcoded library path. In most cases,
Packit 0d464f
# this is /usr/lib:/lib, but when the MPI compilers are used
Packit 0d464f
# the location of the communication and MPI libs are included too.
Packit 0d464f
# If we don't find anything, use the default library path according
Packit 0d464f
# to the aix ld manual.
Packit 0d464f
m4_defun([_LT_SYS_MODULE_PATH_AIX],
Packit 0d464f
[m4_require([_LT_DECL_SED])dnl
Packit 0d464f
AC_LINK_IFELSE(AC_LANG_PROGRAM,[
Packit 0d464f
lt_aix_libpath_sed='
Packit 0d464f
    /Import File Strings/,/^$/ {
Packit 0d464f
	/^0/ {
Packit 0d464f
	    s/^0  *\(.*\)$/\1/
Packit 0d464f
	    p
Packit 0d464f
	}
Packit 0d464f
    }'
Packit 0d464f
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
Packit 0d464f
# Check for a 64-bit object if we didn't find anything.
Packit 0d464f
if test -z "$aix_libpath"; then
Packit 0d464f
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
Packit 0d464f
fi],[])
Packit 0d464f
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
Packit 0d464f
])# _LT_SYS_MODULE_PATH_AIX
Packit 0d464f
Packit 0d464f
Packit 0d464f
# _LT_SHELL_INIT(ARG)
Packit 0d464f
# -------------------
Packit 0d464f
m4_define([_LT_SHELL_INIT],
Packit 0d464f
[ifdef([AC_DIVERSION_NOTICE],
Packit 0d464f
	     [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
Packit 0d464f
	 [AC_DIVERT_PUSH(NOTICE)])
Packit 0d464f
$1
Packit 0d464f
AC_DIVERT_POP
Packit 0d464f
])# _LT_SHELL_INIT
Packit 0d464f
Packit 0d464f
Packit 0d464f
# _LT_PROG_ECHO_BACKSLASH
Packit 0d464f
# -----------------------
Packit 0d464f
# Add some code to the start of the generated configure script which
Packit 0d464f
# will find an echo command which doesn't interpret backslashes.
Packit 0d464f
m4_defun([_LT_PROG_ECHO_BACKSLASH],
Packit 0d464f
[_LT_SHELL_INIT([
Packit 0d464f
# Check that we are running under the correct shell.
Packit 0d464f
SHELL=${CONFIG_SHELL-/bin/sh}
Packit 0d464f
Packit 0d464f
case X$lt_ECHO in
Packit 0d464f
X*--fallback-echo)
Packit 0d464f
  # Remove one level of quotation (which was required for Make).
Packit 0d464f
  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
Packit 0d464f
  ;;
Packit 0d464f
esac
Packit 0d464f
Packit 0d464f
ECHO=${lt_ECHO-echo}
Packit 0d464f
if test "X[$]1" = X--no-reexec; then
Packit 0d464f
  # Discard the --no-reexec flag, and continue.
Packit 0d464f
  shift
Packit 0d464f
elif test "X[$]1" = X--fallback-echo; then
Packit 0d464f
  # Avoid inline document here, it may be left over
Packit 0d464f
  :
Packit 0d464f
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
Packit 0d464f
  # Yippee, $ECHO works!
Packit 0d464f
  :
Packit 0d464f
else
Packit 0d464f
  # Restart under the correct shell.
Packit 0d464f
  exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
Packit 0d464f
fi
Packit 0d464f
Packit 0d464f
if test "X[$]1" = X--fallback-echo; then
Packit 0d464f
  # used as fallback echo
Packit 0d464f
  shift
Packit 0d464f
  cat <<_LT_EOF
Packit 0d464f
[$]*
Packit 0d464f
_LT_EOF
Packit 0d464f
  exit 0
Packit 0d464f
fi
Packit 0d464f
Packit 0d464f
# The HP-UX ksh and POSIX shell print the target directory to stdout
Packit 0d464f
# if CDPATH is set.
Packit 0d464f
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
Packit 0d464f
Packit 0d464f
if test -z "$lt_ECHO"; then
Packit 0d464f
  if test "X${echo_test_string+set}" != Xset; then
Packit 0d464f
    # find a string as large as possible, as long as the shell can cope with it
Packit 0d464f
    for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
Packit 0d464f
      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
Packit 0d464f
      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
Packit 0d464f
	 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
Packit 0d464f
      then
Packit 0d464f
        break
Packit 0d464f
      fi
Packit 0d464f
    done
Packit 0d464f
  fi
Packit 0d464f
Packit 0d464f
  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
Packit 0d464f
     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
Packit 0d464f
     test "X$echo_testing_string" = "X$echo_test_string"; then
Packit 0d464f
    :
Packit 0d464f
  else
Packit 0d464f
    # The Solaris, AIX, and Digital Unix default echo programs unquote
Packit 0d464f
    # backslashes.  This makes it impossible to quote backslashes using
Packit 0d464f
    #   echo "$something" | sed 's/\\/\\\\/g'
Packit 0d464f
    #
Packit 0d464f
    # So, first we look for a working echo in the user's PATH.
Packit 0d464f
Packit 0d464f
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
Packit 0d464f
    for dir in $PATH /usr/ucb; do
Packit 0d464f
      IFS="$lt_save_ifs"
Packit 0d464f
      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
Packit 0d464f
         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
Packit 0d464f
         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
Packit 0d464f
         test "X$echo_testing_string" = "X$echo_test_string"; then
Packit 0d464f
        ECHO="$dir/echo"
Packit 0d464f
        break
Packit 0d464f
      fi
Packit 0d464f
    done
Packit 0d464f
    IFS="$lt_save_ifs"
Packit 0d464f
Packit 0d464f
    if test "X$ECHO" = Xecho; then
Packit 0d464f
      # We didn't find a better echo, so look for alternatives.
Packit 0d464f
      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
Packit 0d464f
         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
Packit 0d464f
         test "X$echo_testing_string" = "X$echo_test_string"; then
Packit 0d464f
        # This shell has a builtin print -r that does the trick.
Packit 0d464f
        ECHO='print -r'
Packit 0d464f
      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
Packit 0d464f
	   test "X$CONFIG_SHELL" != X/bin/ksh; then
Packit 0d464f
        # If we have ksh, try running configure again with it.
Packit 0d464f
        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
Packit 0d464f
        export ORIGINAL_CONFIG_SHELL
Packit 0d464f
        CONFIG_SHELL=/bin/ksh
Packit 0d464f
        export CONFIG_SHELL
Packit 0d464f
        exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
Packit 0d464f
      else
Packit 0d464f
        # Try using printf.
Packit 0d464f
        ECHO='printf %s\n'
Packit 0d464f
        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
Packit 0d464f
	   echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
Packit 0d464f
	   test "X$echo_testing_string" = "X$echo_test_string"; then
Packit 0d464f
	  # Cool, printf works
Packit 0d464f
	  :
Packit 0d464f
        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
Packit 0d464f
	     test "X$echo_testing_string" = 'X\t' &&
Packit 0d464f
	     echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
Packit 0d464f
	     test "X$echo_testing_string" = "X$echo_test_string"; then
Packit 0d464f
	  CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
Packit 0d464f
	  export CONFIG_SHELL
Packit 0d464f
	  SHELL="$CONFIG_SHELL"
Packit 0d464f
	  export SHELL
Packit 0d464f
	  ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
Packit 0d464f
        elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
Packit 0d464f
	     test "X$echo_testing_string" = 'X\t' &&
Packit 0d464f
	     echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
Packit 0d464f
	     test "X$echo_testing_string" = "X$echo_test_string"; then
Packit 0d464f
	  ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
Packit 0d464f
        else
Packit 0d464f
	  # maybe with a smaller string...
Packit 0d464f
	  prev=:
Packit 0d464f
Packit 0d464f
	  for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
Packit 0d464f
	    if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
Packit 0d464f
	    then
Packit 0d464f
	      break
Packit 0d464f
	    fi
Packit 0d464f
	    prev="$cmd"
Packit 0d464f
	  done
Packit 0d464f
Packit 0d464f
	  if test "$prev" != 'sed 50q "[$]0"'; then
Packit 0d464f
	    echo_test_string=`eval $prev`
Packit 0d464f
	    export echo_test_string
Packit 0d464f
	    exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
Packit 0d464f
	  else
Packit 0d464f
	    # Oops.  We lost completely, so just stick with echo.
Packit 0d464f
	    ECHO=echo
Packit 0d464f
	  fi
Packit 0d464f
        fi
Packit 0d464f
      fi
Packit 0d464f
    fi
Packit 0d464f
  fi
Packit 0d464f
fi
Packit 0d464f
Packit 0d464f
# Copy echo and quote the copy suitably for passing to libtool from
Packit 0d464f
# the Makefile, instead of quoting the original, which is used later.
Packit 0d464f
lt_ECHO=$ECHO
Packit 0d464f
if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
Packit 0d464f
   lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
Packit 0d464f
fi
Packit 0d464f
Packit 0d464f
AC_SUBST(lt_ECHO)
Packit 0d464f
])
Packit 0d464f
_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
Packit 0d464f
_LT_DECL([], [ECHO], [1],
Packit 0d464f
    [An echo program that does not interpret backslashes])
Packit 0d464f
])# _LT_PROG_ECHO_BACKSLASH
Packit 0d464f
Packit 0d464f
Packit 0d464f
# _LT_ENABLE_LOCK
Packit 0d464f
# ---------------
Packit 0d464f
m4_defun([_LT_ENABLE_LOCK],
Packit 0d464f
[AC_ARG_ENABLE([libtool-lock],
Packit 0d464f
  [AS_HELP_STRING([--disable-libtool-lock],
Packit 0d464f
    [avoid locking (might break parallel builds)])])
Packit 0d464f
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
Packit 0d464f
Packit 0d464f
# Some flags need to be propagated to the compiler or linker for good
Packit 0d464f
# libtool support.
Packit 0d464f
case $host in
Packit 0d464f
ia64-*-hpux*)
Packit 0d464f
  # Find out which ABI we are using.
Packit 0d464f
  echo 'int i;' > conftest.$ac_ext
Packit 0d464f
  if AC_TRY_EVAL(ac_compile); then
Packit 0d464f
    case `/usr/bin/file conftest.$ac_objext` in
Packit 0d464f
      *ELF-32*)
Packit 0d464f
	HPUX_IA64_MODE="32"
Packit 0d464f
	;;
Packit 0d464f
      *ELF-64*)
Packit 0d464f
	HPUX_IA64_MODE="64"
Packit 0d464f
	;;
Packit 0d464f
    esac
Packit 0d464f
  fi
Packit 0d464f
  rm -rf conftest*
Packit 0d464f
  ;;
Packit 0d464f
*-*-irix6*)
Packit 0d464f
  # Find out which ABI we are using.
Packit 0d464f
  echo '[#]line __oline__ "configure"' > conftest.$ac_ext
Packit 0d464f
  if AC_TRY_EVAL(ac_compile); then
Packit 0d464f
    if test "$lt_cv_prog_gnu_ld" = yes; then
Packit 0d464f
      case `/usr/bin/file conftest.$ac_objext` in
Packit 0d464f
	*32-bit*)
Packit 0d464f
	  LD="${LD-ld} -melf32bsmip"
Packit 0d464f
	  ;;
Packit 0d464f
	*N32*)
Packit 0d464f
	  LD="${LD-ld} -melf32bmipn32"
Packit 0d464f
	  ;;
Packit 0d464f
	*64-bit*)
Packit 0d464f
	  LD="${LD-ld} -melf64bmip"
Packit 0d464f
	;;
Packit 0d464f
      esac
Packit 0d464f
    else
Packit 0d464f
      case `/usr/bin/file conftest.$ac_objext` in
Packit 0d464f
	*32-bit*)
Packit 0d464f
	  LD="${LD-ld} -32"
Packit 0d464f
	  ;;
Packit 0d464f
	*N32*)
Packit 0d464f
	  LD="${LD-ld} -n32"
Packit 0d464f
	  ;;
Packit 0d464f
	*64-bit*)
Packit 0d464f
	  LD="${LD-ld} -64"
Packit 0d464f
	  ;;
Packit 0d464f
      esac
Packit 0d464f
    fi
Packit 0d464f
  fi
Packit 0d464f
  rm -rf conftest*
Packit 0d464f
  ;;
Packit 0d464f
Packit 0d464f
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
Packit 0d464f
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
Packit 0d464f
  # Find out which ABI we are using.
Packit 0d464f
  echo 'int i;' > conftest.$ac_ext
Packit 0d464f
  if AC_TRY_EVAL(ac_compile); then
Packit 0d464f
    case `/usr/bin/file conftest.o` in
Packit 0d464f
      *32-bit*)
Packit 0d464f
	case $host in
Packit 0d464f
	  x86_64-*kfreebsd*-gnu)
Packit 0d464f
	    LD="${LD-ld} -m elf_i386_fbsd"
Packit 0d464f
	    ;;
Packit 0d464f
	  x86_64-*linux*)
Packit 0d464f
	    LD="${LD-ld} -m elf_i386"
Packit 0d464f
	    ;;
Packit 0d464f
	  ppc64-*linux*|powerpc64-*linux*)
Packit 0d464f
	    LD="${LD-ld} -m elf32ppclinux"
Packit 0d464f
	    ;;
Packit 0d464f
	  s390x-*linux*)
Packit 0d464f
	    LD="${LD-ld} -m elf_s390"
Packit 0d464f
	    ;;
Packit 0d464f
	  sparc64-*linux*)
Packit 0d464f
	    LD="${LD-ld} -m elf32_sparc"
Packit 0d464f
	    ;;
Packit 0d464f
	esac
Packit 0d464f
	;;
Packit 0d464f
      *64-bit*)
Packit 0d464f
	case $host in
Packit 0d464f
	  x86_64-*kfreebsd*-gnu)
Packit 0d464f
	    LD="${LD-ld} -m elf_x86_64_fbsd"
Packit 0d464f
	    ;;
Packit 0d464f
	  x86_64-*linux*)
Packit 0d464f
	    LD="${LD-ld} -m elf_x86_64"
Packit 0d464f
	    ;;
Packit 0d464f
	  ppc*-*linux*|powerpc*-*linux*)
Packit 0d464f
	    LD="${LD-ld} -m elf64ppc"
Packit 0d464f
	    ;;
Packit 0d464f
	  s390*-*linux*|s390*-*tpf*)
Packit 0d464f
	    LD="${LD-ld} -m elf64_s390"
Packit 0d464f
	    ;;
Packit 0d464f
	  sparc*-*linux*)
Packit 0d464f
	    LD="${LD-ld} -m elf64_sparc"
Packit 0d464f
	    ;;
Packit 0d464f
	esac
Packit 0d464f
	;;
Packit 0d464f
    esac
Packit 0d464f
  fi
Packit 0d464f
  rm -rf conftest*
Packit 0d464f
  ;;
Packit 0d464f
Packit 0d464f
*-*-sco3.2v5*)
Packit 0d464f
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
Packit 0d464f
  SAVE_CFLAGS="$CFLAGS"
Packit 0d464f
  CFLAGS="$CFLAGS -belf"
Packit 0d464f
  AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
Packit 0d464f
    [AC_LANG_PUSH(C)
Packit 0d464f
     AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
Packit 0d464f
     AC_LANG_POP])
Packit 0d464f
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
Packit 0d464f
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
Packit 0d464f
    CFLAGS="$SAVE_CFLAGS"
Packit 0d464f
  fi
Packit 0d464f
  ;;
Packit 0d464f
sparc*-*solaris*)
Packit 0d464f
  # Find out which ABI we are using.
Packit 0d464f
  echo 'int i;' > conftest.$ac_ext
Packit 0d464f
  if AC_TRY_EVAL(ac_compile); then
Packit 0d464f
    case `/usr/bin/file conftest.o` in
Packit 0d464f
    *64-bit*)
Packit 0d464f
      case $lt_cv_prog_gnu_ld in
Packit 0d464f
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
Packit 0d464f
      *)
Packit 0d464f
	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
Packit 0d464f
	  LD="${LD-ld} -64"
Packit 0d464f
	fi
Packit 0d464f
	;;
Packit 0d464f
      esac
Packit 0d464f
      ;;
Packit 0d464f
    esac
Packit 0d464f
  fi
Packit 0d464f
  rm -rf conftest*
Packit 0d464f
  ;;
Packit 0d464f
esac
Packit 0d464f
Packit 0d464f
need_locks="$enable_libtool_lock"
Packit 0d464f
])# _LT_ENABLE_LOCK
Packit 0d464f
Packit 0d464f
Packit 0d464f
# _LT_CMD_OLD_ARCHIVE
Packit 0d464f
# -------------------
Packit 0d464f
m4_defun([_LT_CMD_OLD_ARCHIVE],
Packit 0d464f
[AC_CHECK_TOOL(AR, ar, false)
Packit 0d464f
test -z "$AR" && AR=ar
Packit 0d464f
test -z "$AR_FLAGS" && AR_FLAGS=cru
Packit 0d464f
_LT_DECL([], [AR], [1], [The archiver])
Packit 0d464f
_LT_DECL([], [AR_FLAGS], [1])
Packit 0d464f
Packit 0d464f
AC_CHECK_TOOL(STRIP, strip, :)
Packit 0d464f
test -z "$STRIP" && STRIP=:
Packit 0d464f
_LT_DECL([], [STRIP], [1], [A symbol stripping program])
Packit 0d464f
Packit 0d464f
AC_CHECK_TOOL(RANLIB, ranlib, :)
Packit 0d464f
test -z "$RANLIB" && RANLIB=:
Packit 0d464f
_LT_DECL([], [RANLIB], [1],
Packit 0d464f
    [Commands used to install an old-style archive])
Packit 0d464f
Packit 0d464f
# Determine commands to create old-style static archives.
Packit 0d464f
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
Packit 0d464f
old_postinstall_cmds='chmod 644 $oldlib'
Packit 0d464f
old_postuninstall_cmds=
Packit 0d464f
Packit 0d464f
if test -n "$RANLIB"; then
Packit 0d464f
  case $host_os in
Packit 0d464f
  openbsd*)
Packit 0d464f
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
Packit 0d464f
    ;;
Packit 0d464f
  *)
Packit 0d464f
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
Packit 0d464f
    ;;
Packit 0d464f
  esac
Packit 0d464f
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
Packit 0d464f
fi
Packit 0d464f
_LT_DECL([], [old_postinstall_cmds], [2])
Packit 0d464f
_LT_DECL([], [old_postuninstall_cmds], [2])
Packit 0d464f
_LT_TAGDECL([], [old_archive_cmds], [2],
Packit 0d464f
    [Commands used to build an old-style archive])
Packit 0d464f
])# _LT_CMD_OLD_ARCHIVE
Packit 0d464f
Packit 0d464f
Packit 0d464f
# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
Packit 0d464f
#		[OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
Packit 0d464f
# ----------------------------------------------------------------
Packit 0d464f
# Check whether the given compiler option works
Packit 0d464f
AC_DEFUN([_LT_COMPILER_OPTION],
Packit 0d464f
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
Packit 0d464f
m4_require([_LT_DECL_SED])dnl
Packit 0d464f
AC_CACHE_CHECK([$1], [$2],
Packit 0d464f
  [$2=no
Packit 0d464f
   m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
Packit 0d464f
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Packit 0d464f
   lt_compiler_flag="$3"
Packit 0d464f
   # Insert the option either (1) after the last *FLAGS variable, or
Packit 0d464f
   # (2) before a word containing "conftest.", or (3) at the end.
Packit 0d464f
   # Note that $ac_compile itself does not contain backslashes and begins
Packit 0d464f
   # with a dollar sign (not a hyphen), so the echo should work correctly.
Packit 0d464f
   # The option is referenced via a variable to avoid confusing sed.
Packit 0d464f
   lt_compile=`echo "$ac_compile" | $SED \
Packit 0d464f
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
Packit 0d464f
   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
Packit 0d464f
   -e 's:$: $lt_compiler_flag:'`
Packit 0d464f
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
Packit 0d464f
   (eval "$lt_compile" 2>conftest.err)
Packit 0d464f
   ac_status=$?
Packit 0d464f
   cat conftest.err >&AS_MESSAGE_LOG_FD
Packit 0d464f
   echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
Packit 0d464f
   if (exit $ac_status) && test -s "$ac_outfile"; then
Packit 0d464f
     # The compiler can only warn and ignore the option if not recognized
Packit 0d464f
     # So say no if there are warnings other than the usual output.
Packit 0d464f
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
Packit 0d464f
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
Packit 0d464f
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
Packit 0d464f
       $2=yes
Packit 0d464f
     fi
Packit 0d464f
   fi
Packit 0d464f
   $RM conftest*
Packit 0d464f
])
Packit 0d464f
Packit 0d464f
if test x"[$]$2" = xyes; then
Packit 0d464f
    m4_if([$5], , :, [$5])
Packit 0d464f
else
Packit 0d464f
    m4_if([$6], , :, [$6])
Packit 0d464f
fi
Packit 0d464f
])# _LT_COMPILER_OPTION
Packit 0d464f
Packit 0d464f
# Old name:
Packit 0d464f
AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
Packit 0d464f
dnl aclocal-1.4 backwards compatibility:
Packit 0d464f
dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
Packit 0d464f
Packit 0d464f
Packit 0d464f
# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
Packit 0d464f
#                  [ACTION-SUCCESS], [ACTION-FAILURE])
Packit 0d464f
# ----------------------------------------------------
Packit 0d464f
# Check whether the given linker option works
Packit 0d464f
AC_DEFUN([_LT_LINKER_OPTION],
Packit 0d464f
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
Packit 0d464f
m4_require([_LT_DECL_SED])dnl
Packit 0d464f
AC_CACHE_CHECK([$1], [$2],
Packit 0d464f
  [$2=no
Packit 0d464f
   save_LDFLAGS="$LDFLAGS"
Packit 0d464f
   LDFLAGS="$LDFLAGS $3"
Packit 0d464f
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
Packit 0d464f
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
Packit 0d464f
     # The linker can only warn and ignore the option if not recognized
Packit 0d464f
     # So say no if there are warnings
Packit 0d464f
     if test -s conftest.err; then
Packit 0d464f
       # Append any errors to the config.log.
Packit 0d464f
       cat conftest.err 1>&AS_MESSAGE_LOG_FD
Packit 0d464f
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
Packit 0d464f
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
Packit 0d464f
       if diff conftest.exp conftest.er2 >/dev/null; then
Packit 0d464f
         $2=yes
Packit 0d464f
       fi
Packit 0d464f
     else
Packit 0d464f
       $2=yes
Packit 0d464f
     fi
Packit 0d464f
   fi
Packit 0d464f
   $RM -r conftest*
Packit 0d464f
   LDFLAGS="$save_LDFLAGS"
Packit 0d464f
])
Packit 0d464f
Packit 0d464f
if test x"[$]$2" = xyes; then
Packit 0d464f
    m4_if([$4], , :, [$4])
Packit 0d464f
else
Packit 0d464f
    m4_if([$5], , :, [$5])
Packit 0d464f
fi
Packit 0d464f
])# _LT_LINKER_OPTION
Packit 0d464f
Packit 0d464f
# Old name:
Packit 0d464f
AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
Packit 0d464f
dnl aclocal-1.4 backwards compatibility:
Packit 0d464f
dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
Packit 0d464f
Packit 0d464f
Packit 0d464f
# LT_CMD_MAX_LEN
Packit 0d464f
#---------------
Packit 0d464f
AC_DEFUN([LT_CMD_MAX_LEN],
Packit 0d464f
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
Packit 0d464f
# find the maximum length of command line arguments
Packit 0d464f
AC_MSG_CHECKING([the maximum length of command line arguments])
Packit 0d464f
AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
Packit 0d464f
  i=0
Packit 0d464f
  teststring="ABCD"
Packit 0d464f
Packit 0d464f
  case $build_os in
Packit 0d464f
  msdosdjgpp*)
Packit 0d464f
    # On DJGPP, this test can blow up pretty badly due to problems in libc
Packit 0d464f
    # (any single argument exceeding 2000 bytes causes a buffer overrun
Packit 0d464f
    # during glob expansion).  Even if it were fixed, the result of this
Packit 0d464f
    # check would be larger than it should be.
Packit 0d464f
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
Packit 0d464f
    ;;
Packit 0d464f
Packit 0d464f
  gnu*)
Packit 0d464f
    # Under GNU Hurd, this test is not required because there is
Packit 0d464f
    # no limit to the length of command line arguments.
Packit 0d464f
    # Libtool will interpret -1 as no limit whatsoever
Packit 0d464f
    lt_cv_sys_max_cmd_len=-1;
Packit 0d464f
    ;;
Packit 0d464f
Packit 0d464f
  cygwin* | mingw* | cegcc*)
Packit 0d464f
    # On Win9x/ME, this test blows up -- it succeeds, but takes
Packit 0d464f
    # about 5 minutes as the teststring grows exponentially.
Packit 0d464f
    # Worse, since 9x/ME are not pre-emptively multitasking,
Packit 0d464f
    # you end up with a "frozen" computer, even though with patience
Packit 0d464f
    # the test eventually succeeds (with a max line length of 256k).
Packit 0d464f
    # Instead, let's just punt: use the minimum linelength reported by
Packit 0d464f
    # all of the supported platforms: 8192 (on NT/2K/XP).
Packit 0d464f
    lt_cv_sys_max_cmd_len=8192;
Packit 0d464f
    ;;
Packit 0d464f
Packit 0d464f
  amigaos*)
Packit 0d464f
    # On AmigaOS with pdksh, this test takes hours, literally.
Packit 0d464f
    # So we just punt and use a minimum line length of 8192.
Packit 0d464f
    lt_cv_sys_max_cmd_len=8192;
Packit 0d464f
    ;;
Packit 0d464f
Packit 0d464f
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
Packit 0d464f
    # This has been around since 386BSD, at least.  Likely further.
Packit 0d464f
    if test -x /sbin/sysctl; then
Packit 0d464f
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
Packit 0d464f
    elif test -x /usr/sbin/sysctl; then
Packit 0d464f
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
Packit 0d464f
    else
Packit 0d464f
      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
Packit 0d464f
    fi
Packit 0d464f
    # And add a safety zone
Packit 0d464f
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
Packit 0d464f
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
Packit 0d464f
    ;;
Packit 0d464f
Packit 0d464f
  interix*)
Packit 0d464f
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
Packit 0d464f
    lt_cv_sys_max_cmd_len=196608
Packit 0d464f
    ;;
Packit 0d464f
Packit 0d464f
  osf*)
Packit 0d464f
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
Packit 0d464f
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
Packit 0d464f
    # nice to cause kernel panics so lets avoid the loop below.
Packit 0d464f
    # First set a reasonable default.
Packit 0d464f
    lt_cv_sys_max_cmd_len=16384
Packit 0d464f
    #
Packit 0d464f
    if test -x /sbin/sysconfig; then
Packit 0d464f
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
Packit 0d464f
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
Packit 0d464f
      esac
Packit 0d464f
    fi
Packit 0d464f
    ;;
Packit 0d464f
  sco3.2v5*)
Packit 0d464f
    lt_cv_sys_max_cmd_len=102400
Packit 0d464f
    ;;
Packit 0d464f
  sysv5* | sco5v6* | sysv4.2uw2*)
Packit 0d464f
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
Packit 0d464f
    if test -n "$kargmax"; then
Packit 0d464f
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[	 ]]//'`
Packit 0d464f
    else
Packit 0d464f
      lt_cv_sys_max_cmd_len=32768
Packit 0d464f
    fi
Packit 0d464f
    ;;
Packit 0d464f
  *)
Packit 0d464f
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
Packit 0d464f
    if test -n "$lt_cv_sys_max_cmd_len"; then
Packit 0d464f
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
Packit 0d464f
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
Packit 0d464f
    else
Packit 0d464f
      # Make teststring a little bigger before we do anything with it.
Packit 0d464f
      # a 1K string should be a reasonable start.
Packit 0d464f
      for i in 1 2 3 4 5 6 7 8 ; do
Packit 0d464f
        teststring=$teststring$teststring
Packit 0d464f
      done
Packit 0d464f
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
Packit 0d464f
      # If test is not a shell built-in, we'll probably end up computing a
Packit 0d464f
      # maximum length that is only half of the actual maximum length, but
Packit 0d464f
      # we can't tell.
Packit 0d464f
      while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
Packit 0d464f
	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
Packit 0d464f
	      test $i != 17 # 1/2 MB should be enough
Packit 0d464f
      do
Packit 0d464f
        i=`expr $i + 1`
Packit 0d464f
        teststring=$teststring$teststring
Packit 0d464f
      done
Packit 0d464f
      # Only check the string length outside the loop.
Packit 0d464f
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
Packit 0d464f
      teststring=
Packit 0d464f
      # Add a significant safety factor because C++ compilers can tack on
Packit 0d464f
      # massive amounts of additional arguments before passing them to the
Packit 0d464f
      # linker.  It appears as though 1/2 is a usable value.
Packit 0d464f
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
Packit 0d464f
    fi
Packit 0d464f
    ;;
Packit 0d464f
  esac
Packit 0d464f
])
Packit 0d464f
if test -n $lt_cv_sys_max_cmd_len ; then
Packit 0d464f
  AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
Packit 0d464f
else
Packit 0d464f
  AC_MSG_RESULT(none)
Packit 0d464f
fi
Packit 0d464f
max_cmd_len=$lt_cv_sys_max_cmd_len
Packit 0d464f
_LT_DECL([], [max_cmd_len], [0],
Packit 0d464f
    [What is the maximum length of a command?])
Packit 0d464f
])# LT_CMD_MAX_LEN
Packit 0d464f
Packit 0d464f
# Old name:
Packit 0d464f
AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
Packit 0d464f
dnl aclocal-1.4 backwards compatibility:
Packit 0d464f
dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
Packit 0d464f
Packit 0d464f
Packit 0d464f
# _LT_HEADER_DLFCN
Packit 0d464f
# ----------------
Packit 0d464f
m4_defun([_LT_HEADER_DLFCN],
Packit 0d464f
[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
Packit 0d464f
])# _LT_HEADER_DLFCN
Packit 0d464f
Packit 0d464f
Packit 0d464f
# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
Packit 0d464f
#                      ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
Packit 0d464f
# ----------------------------------------------------------------
Packit 0d464f
m4_defun([_LT_TRY_DLOPEN_SELF],
Packit 0d464f
[m4_require([_LT_HEADER_DLFCN])dnl
Packit 0d464f
if test "$cross_compiling" = yes; then :
Packit 0d464f
  [$4]
Packit 0d464f
else
Packit 0d464f
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
Packit 0d464f
  lt_status=$lt_dlunknown
Packit 0d464f
  cat > conftest.$ac_ext <<_LT_EOF
Packit 0d464f
[#line __oline__ "configure"
Packit 0d464f
#include "confdefs.h"
Packit 0d464f
Packit 0d464f
#if HAVE_DLFCN_H
Packit 0d464f
#include <dlfcn.h>
Packit 0d464f
#endif
Packit 0d464f
Packit 0d464f
#include <stdio.h>
Packit 0d464f
Packit 0d464f
#ifdef RTLD_GLOBAL
Packit 0d464f
#  define LT_DLGLOBAL		RTLD_GLOBAL
Packit 0d464f
#else
Packit 0d464f
#  ifdef DL_GLOBAL
Packit 0d464f
#    define LT_DLGLOBAL		DL_GLOBAL
Packit 0d464f
#  else
Packit 0d464f
#    define LT_DLGLOBAL		0
Packit 0d464f
#  endif
Packit 0d464f
#endif
Packit 0d464f
Packit 0d464f
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
Packit 0d464f
   find out it does not work in some platform. */
Packit 0d464f
#ifndef LT_DLLAZY_OR_NOW
Packit 0d464f
#  ifdef RTLD_LAZY
Packit 0d464f
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
Packit 0d464f
#  else
Packit 0d464f
#    ifdef DL_LAZY
Packit 0d464f
#      define LT_DLLAZY_OR_NOW		DL_LAZY
Packit 0d464f
#    else
Packit 0d464f
#      ifdef RTLD_NOW
Packit 0d464f
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
Packit 0d464f
#      else
Packit 0d464f
#        ifdef DL_NOW
Packit 0d464f
#          define LT_DLLAZY_OR_NOW	DL_NOW
Packit 0d464f
#        else
Packit 0d464f
#          define LT_DLLAZY_OR_NOW	0
Packit 0d464f
#        endif
Packit 0d464f
#      endif
Packit 0d464f
#    endif
Packit 0d464f
#  endif
Packit 0d464f
#endif
Packit 0d464f
Packit 0d464f
void fnord() { int i=42;}
Packit 0d464f
int main ()
Packit 0d464f
{
Packit 0d464f
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
Packit 0d464f
  int status = $lt_dlunknown;
Packit 0d464f
Packit 0d464f
  if (self)
Packit 0d464f
    {
Packit 0d464f
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
Packit 0d464f
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
Packit 0d464f
      /* dlclose (self); */
Packit 0d464f
    }
Packit 0d464f
  else
Packit 0d464f
    puts (dlerror ());
Packit 0d464f
Packit 0d464f
  return status;
Packit 0d464f
}]
Packit 0d464f
_LT_EOF
Packit 0d464f
  if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
Packit 0d464f
    (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
Packit 0d464f
    lt_status=$?
Packit 0d464f
    case x$lt_status in
Packit 0d464f
      x$lt_dlno_uscore) $1 ;;
Packit 0d464f
      x$lt_dlneed_uscore) $2 ;;
Packit 0d464f
      x$lt_dlunknown|x*) $3 ;;
Packit 0d464f
    esac
Packit 0d464f
  else :
Packit 0d464f
    # compilation failed
Packit 0d464f
    $3
Packit 0d464f
  fi
Packit 0d464f
fi
Packit 0d464f
rm -fr conftest*
Packit 0d464f
])# _LT_TRY_DLOPEN_SELF
Packit 0d464f
Packit 0d464f
Packit 0d464f
# LT_SYS_DLOPEN_SELF
Packit 0d464f
# ------------------
Packit 0d464f
AC_DEFUN([LT_SYS_DLOPEN_SELF],
Packit 0d464f
[m4_require([_LT_HEADER_DLFCN])dnl
Packit 0d464f
if test "x$enable_dlopen" != xyes; then
Packit 0d464f
  enable_dlopen=unknown
Packit 0d464f
  enable_dlopen_self=unknown
Packit 0d464f
  enable_dlopen_self_static=unknown
Packit 0d464f
else
Packit 0d464f
  lt_cv_dlopen=no
Packit 0d464f
  lt_cv_dlopen_libs=
Packit 0d464f
Packit 0d464f
  case $host_os in
Packit 0d464f
  beos*)
Packit 0d464f
    lt_cv_dlopen="load_add_on"
Packit 0d464f
    lt_cv_dlopen_libs=
Packit 0d464f
    lt_cv_dlopen_self=yes
Packit 0d464f
    ;;
Packit 0d464f
Packit 0d464f
  mingw* | pw32* | cegcc*)
Packit 0d464f
    lt_cv_dlopen="LoadLibrary"
Packit 0d464f
    lt_cv_dlopen_libs=
Packit 0d464f
    ;;
Packit 0d464f
Packit 0d464f
  cygwin*)
Packit 0d464f
    lt_cv_dlopen="dlopen"
Packit 0d464f
    lt_cv_dlopen_libs=
Packit 0d464f
    ;;
Packit 0d464f
Packit 0d464f
  darwin*)
Packit 0d464f
  # if libdl is installed we need to link against it
Packit 0d464f
    AC_CHECK_LIB([dl], [dlopen],
Packit 0d464f
		[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
Packit 0d464f
    lt_cv_dlopen="dyld"
Packit 0d464f
    lt_cv_dlopen_libs=
Packit 0d464f
    lt_cv_dlopen_self=yes
Packit 0d464f
    ])
Packit 0d464f
    ;;
Packit 0d464f
Packit 0d464f
  *)
Packit 0d464f
    AC_CHECK_FUNC([shl_load],
Packit 0d464f
	  [lt_cv_dlopen="shl_load"],
Packit 0d464f
      [AC_CHECK_LIB([dld], [shl_load],
Packit 0d464f
	    [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
Packit 0d464f
	[AC_CHECK_FUNC([dlopen],
Packit 0d464f
	      [lt_cv_dlopen="dlopen"],
Packit 0d464f
	  [AC_CHECK_LIB([dl], [dlopen],
Packit 0d464f
		[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
Packit 0d464f
	    [AC_CHECK_LIB([svld], [dlopen],
Packit 0d464f
		  [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
Packit 0d464f
	      [AC_CHECK_LIB([dld], [dld_link],
Packit 0d464f
		    [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
Packit 0d464f
	      ])
Packit 0d464f
	    ])
Packit 0d464f
	  ])
Packit 0d464f
	])
Packit 0d464f
      ])
Packit 0d464f
    ;;
Packit 0d464f
  esac
Packit 0d464f
Packit 0d464f
  if test "x$lt_cv_dlopen" != xno; then
Packit 0d464f
    enable_dlopen=yes
Packit 0d464f
  else
Packit 0d464f
    enable_dlopen=no
Packit 0d464f
  fi
Packit 0d464f
Packit 0d464f
  case $lt_cv_dlopen in
Packit 0d464f
  dlopen)
Packit 0d464f
    save_CPPFLAGS="$CPPFLAGS"
Packit 0d464f
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
Packit 0d464f
Packit 0d464f
    save_LDFLAGS="$LDFLAGS"
Packit 0d464f
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
Packit 0d464f
Packit 0d464f
    save_LIBS="$LIBS"
Packit 0d464f
    LIBS="$lt_cv_dlopen_libs $LIBS"
Packit 0d464f
Packit 0d464f
    AC_CACHE_CHECK([whether a program can dlopen itself],
Packit 0d464f
	  lt_cv_dlopen_self, [dnl
Packit 0d464f
	  _LT_TRY_DLOPEN_SELF(
Packit 0d464f
	    lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
Packit 0d464f
	    lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
Packit 0d464f
    ])
Packit 0d464f
Packit 0d464f
    if test "x$lt_cv_dlopen_self" = xyes; then
Packit 0d464f
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
Packit 0d464f
      AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
Packit 0d464f
	  lt_cv_dlopen_self_static, [dnl
Packit 0d464f
	  _LT_TRY_DLOPEN_SELF(
Packit 0d464f
	    lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
Packit 0d464f
	    lt_cv_dlopen_self_static=no,  lt_cv_dlopen_self_static=cross)
Packit 0d464f
      ])
Packit 0d464f
    fi
Packit 0d464f
Packit 0d464f
    CPPFLAGS="$save_CPPFLAGS"
Packit 0d464f
    LDFLAGS="$save_LDFLAGS"
Packit 0d464f
    LIBS="$save_LIBS"
Packit 0d464f
    ;;
Packit 0d464f
  esac
Packit 0d464f
Packit 0d464f
  case $lt_cv_dlopen_self in
Packit 0d464f
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
Packit 0d464f
  *) enable_dlopen_self=unknown ;;
Packit 0d464f
  esac
Packit 0d464f
Packit 0d464f
  case $lt_cv_dlopen_self_static in
Packit 0d464f
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
Packit 0d464f
  *) enable_dlopen_self_static=unknown ;;
Packit 0d464f
  esac
Packit 0d464f
fi
Packit 0d464f
_LT_DECL([dlopen_support], [enable_dlopen], [0],
Packit 0d464f
	 [Whether dlopen is supported])
Packit 0d464f
_LT_DECL([dlopen_self], [enable_dlopen_self], [0],
Packit 0d464f
	 [Whether dlopen of programs is supported])
Packit 0d464f
_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
Packit 0d464f
	 [Whether dlopen of statically linked programs is supported])
Packit 0d464f
])# LT_SYS_DLOPEN_SELF
Packit 0d464f
Packit 0d464f
# Old name:
Packit 0d464f
AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
Packit 0d464f
dnl aclocal-1.4 backwards compatibility:
Packit 0d464f
dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
Packit 0d464f
Packit 0d464f
Packit 0d464f
# _LT_COMPILER_C_O([TAGNAME])
Packit 0d464f
# ---------------------------
Packit 0d464f
# Check to see if options -c and -o are simultaneously supported by compiler.
Packit 0d464f
# This macro does not hard code the compiler like AC_PROG_CC_C_O.
Packit 0d464f
m4_defun([_LT_COMPILER_C_O],
Packit 0d464f
[m4_require([_LT_DECL_SED])dnl
Packit 0d464f
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
Packit 0d464f
m4_require([_LT_TAG_COMPILER])dnl
Packit 0d464f
AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
Packit 0d464f
  [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
Packit 0d464f
  [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
Packit 0d464f
   $RM -r conftest 2>/dev/null
Packit 0d464f
   mkdir conftest
Packit 0d464f
   cd conftest
Packit 0d464f
   mkdir out
Packit 0d464f
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Packit 0d464f
Packit 0d464f
   lt_compiler_flag="-o out/conftest2.$ac_objext"
Packit 0d464f
   # Insert the option either (1) after the last *FLAGS variable, or
Packit 0d464f
   # (2) before a word containing "conftest.", or (3) at the end.
Packit 0d464f
   # Note that $ac_compile itself does not contain backslashes and begins
Packit 0d464f
   # with a dollar sign (not a hyphen), so the echo should work correctly.
Packit 0d464f
   lt_compile=`echo "$ac_compile" | $SED \
Packit 0d464f
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
Packit 0d464f
   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
Packit 0d464f
   -e 's:$: $lt_compiler_flag:'`
Packit 0d464f
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
Packit 0d464f
   (eval "$lt_compile" 2>out/conftest.err)
Packit 0d464f
   ac_status=$?
Packit 0d464f
   cat out/conftest.err >&AS_MESSAGE_LOG_FD
Packit 0d464f
   echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
Packit 0d464f
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
Packit 0d464f
   then
Packit 0d464f
     # The compiler can only warn and ignore the option if not recognized
Packit 0d464f
     # So say no if there are warnings
Packit 0d464f
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
Packit 0d464f
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
Packit 0d464f
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
Packit 0d464f
       _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
Packit 0d464f
     fi
Packit 0d464f
   fi
Packit 0d464f
   chmod u+w . 2>&AS_MESSAGE_LOG_FD
Packit 0d464f
   $RM conftest*
Packit 0d464f
   # SGI C++ compiler will create directory out/ii_files/ for
Packit 0d464f
   # template instantiation
Packit 0d464f
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
Packit 0d464f
   $RM out/* && rmdir out
Packit 0d464f
   cd ..
Packit 0d464f
   $RM -r conftest
Packit 0d464f
   $RM conftest*
Packit 0d464f
])
Packit 0d464f
_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
Packit 0d464f
	[Does compiler simultaneously support -c and -o options?])
Packit 0d464f
])# _LT_COMPILER_C_O
Packit 0d464f
Packit 0d464f
Packit 0d464f
# _LT_COMPILER_FILE_LOCKS([TAGNAME])
Packit 0d464f
# ----------------------------------
Packit 0d464f
# Check to see if we can do hard links to lock some files if needed
Packit 0d464f
m4_defun([_LT_COMPILER_FILE_LOCKS],
Packit 0d464f
[m4_require([_LT_ENABLE_LOCK])dnl
Packit 0d464f
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
Packit 0d464f
_LT_COMPILER_C_O([$1])
Packit 0d464f
Packit 0d464f
hard_links="nottested"
Packit 0d464f
if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
Packit 0d464f
  # do not overwrite the value of need_locks provided by the user
Packit 0d464f
  AC_MSG_CHECKING([if we can lock with hard links])
Packit 0d464f
  hard_links=yes
Packit 0d464f
  $RM conftest*
Packit 0d464f
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
Packit 0d464f
  touch conftest.a
Packit 0d464f
  ln conftest.a conftest.b 2>&5 || hard_links=no
Packit 0d464f
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
Packit 0d464f
  AC_MSG_RESULT([$hard_links])
Packit 0d464f
  if test "$hard_links" = no; then
Packit 0d464f
    AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
Packit 0d464f
    need_locks=warn
Packit 0d464f
  fi
Packit 0d464f
else
Packit 0d464f
  need_locks=no
Packit 0d464f
fi
Packit 0d464f
_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
Packit 0d464f
])# _LT_COMPILER_FILE_LOCKS
Packit 0d464f
Packit 0d464f
Packit 0d464f
# _LT_CHECK_OBJDIR
Packit 0d464f
# ----------------
Packit 0d464f
m4_defun([_LT_CHECK_OBJDIR],
Packit 0d464f
[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
Packit 0d464f
[rm -f .libs 2>/dev/null
Packit 0d464f
mkdir .libs 2>/dev/null
Packit 0d464f
if test -d .libs; then
Packit 0d464f
  lt_cv_objdir=.libs
Packit 0d464f
else
Packit 0d464f
  # MS-DOS does not allow filenames that begin with a dot.
Packit 0d464f
  lt_cv_objdir=_libs
Packit 0d464f
fi
Packit 0d464f
rmdir .libs 2>/dev/null])
Packit 0d464f
objdir=$lt_cv_objdir
Packit 0d464f
_LT_DECL([], [objdir], [0],
Packit 0d464f
         [The name of the directory that contains temporary libtool files])dnl
Packit 0d464f
m4_pattern_allow([LT_OBJDIR])dnl
Packit 0d464f
AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
Packit 0d464f
  [Define to the sub-directory in which libtool stores uninstalled libraries.])
Packit 0d464f
])# _LT_CHECK_OBJDIR
Packit 0d464f
Packit 0d464f
Packit 0d464f
# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
Packit 0d464f
# --------------------------------------
Packit 0d464f
# Check hardcoding attributes.
Packit 0d464f
m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
Packit 0d464f
[AC_MSG_CHECKING([how to hardcode library paths into programs])
Packit 0d464f
_LT_TAGVAR(hardcode_action, $1)=
Packit 0d464f
if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
Packit 0d464f
   test -n "$_LT_TAGVAR(runpath_var, $1)" ||
Packit 0d464f
   test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
Packit 0d464f
Packit 0d464f
  # We can hardcode non-existent directories.
Packit 0d464f
  if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
Packit 0d464f
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
Packit 0d464f
     # have to relink, otherwise we might link with an installed library
Packit 0d464f
     # when we should be linking with a yet-to-be-installed one
Packit 0d464f
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
Packit 0d464f
     test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
Packit 0d464f
    # Linking always hardcodes the temporary library directory.
Packit 0d464f
    _LT_TAGVAR(hardcode_action, $1)=relink
Packit 0d464f
  else
Packit 0d464f
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
Packit 0d464f
    _LT_TAGVAR(hardcode_action, $1)=immediate
Packit 0d464f
  fi
Packit 0d464f
else
Packit 0d464f
  # We cannot hardcode anything, or else we can only hardcode existing
Packit 0d464f
  # directories.
Packit 0d464f
  _LT_TAGVAR(hardcode_action, $1)=unsupported
Packit 0d464f
fi
Packit 0d464f
AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
Packit 0d464f
Packit 0d464f
if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
Packit 0d464f
   test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
Packit 0d464f
  # Fast installation is not supported
Packit 0d464f
  enable_fast_install=no
Packit 0d464f
elif test "$shlibpath_overrides_runpath" = yes ||
Packit 0d464f
     test "$enable_shared" = no; then
Packit 0d464f
  # Fast installation is not necessary
Packit 0d464f
  enable_fast_install=needless
Packit 0d464f
fi
Packit 0d464f
_LT_TAGDECL([], [hardcode_action], [0],
Packit 0d464f
    [How to hardcode a shared library path into an executable])
Packit 0d464f
])# _LT_LINKER_HARDCODE_LIBPATH
Packit 0d464f
Packit 0d464f
Packit 0d464f
# _LT_CMD_STRIPLIB
Packit 0d464f
# ----------------
Packit 0d464f
m4_defun([_LT_CMD_STRIPLIB],
Packit 0d464f
[m4_require([_LT_DECL_EGREP])
Packit 0d464f
striplib=
Packit 0d464f
old_striplib=
Packit 0d464f
AC_MSG_CHECKING([whether stripping libraries is possible])
Packit 0d464f
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
Packit 0d464f
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
Packit 0d464f
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
Packit 0d464f
  AC_MSG_RESULT([yes])
Packit 0d464f
else
Packit 0d464f
# FIXME - insert some real tests, host_os isn't really good enough
Packit 0d464f
  case $host_os in
Packit 0d464f
  darwin*)
Packit 0d464f
    if test -n "$STRIP" ; then
Packit 0d464f
      striplib="$STRIP -x"
Packit 0d464f
      old_striplib="$STRIP -S"
Packit 0d464f
      AC_MSG_RESULT([yes])
Packit 0d464f
    else
Packit 0d464f
      AC_MSG_RESULT([no])
Packit 0d464f
    fi
Packit 0d464f
    ;;
Packit 0d464f
  *)
Packit 0d464f
    AC_MSG_RESULT([no])
Packit 0d464f
    ;;
Packit 0d464f
  esac
Packit 0d464f
fi
Packit 0d464f
_LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
Packit 0d464f
_LT_DECL([], [striplib], [1])
Packit 0d464f
])# _LT_CMD_STRIPLIB
Packit 0d464f
Packit 0d464f
Packit 0d464f
# _LT_SYS_DYNAMIC_LINKER([TAG])
Packit 0d464f
# -----------------------------
Packit 0d464f
# PORTME Fill in your ld.so characteristics
Packit 0d464f
m4_defun([_LT_SYS_DYNAMIC_LINKER],
Packit 0d464f
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
Packit 0d464f
m4_require([_LT_DECL_EGREP])dnl
Packit 0d464f
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
Packit 0d464f
m4_require([_LT_DECL_OBJDUMP])dnl
Packit 0d464f
m4_require([_LT_DECL_SED])dnl
Packit 0d464f
AC_MSG_CHECKING([dynamic linker characteristics])
Packit 0d464f
m4_if([$1],
Packit 0d464f
	[], [
Packit 0d464f
if test "$GCC" = yes; then
Packit 0d464f
  case $host_os in
Packit 0d464f
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
Packit 0d464f
    *) lt_awk_arg="/^libraries:/" ;;
Packit 0d464f
  esac
Packit 0d464f
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
Packit 0d464f
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
Packit 0d464f
    # if the path contains ";" then we assume it to be the separator
Packit 0d464f
    # otherwise default to the standard path separator (i.e. ":") - it is
Packit 0d464f
    # assumed that no part of a normal pathname contains ";" but that should
Packit 0d464f
    # okay in the real world where ";" in dirpaths is itself problematic.
Packit 0d464f
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
Packit 0d464f
  else
Packit 0d464f
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
Packit 0d464f
  fi
Packit 0d464f
  # Ok, now we have the path, separated by spaces, we can step through it
Packit 0d464f
  # and add multilib dir if necessary.
Packit 0d464f
  lt_tmp_lt_search_path_spec=
Packit 0d464f
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
Packit 0d464f
  for lt_sys_path in $lt_search_path_spec; do
Packit 0d464f
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
Packit 0d464f
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
Packit 0d464f
    else
Packit 0d464f
      test -d "$lt_sys_path" && \
Packit 0d464f
	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
Packit 0d464f
    fi
Packit 0d464f
  done
Packit 0d464f
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
Packit 0d464f
BEGIN {RS=" "; FS="/|\n";} {
Packit 0d464f
  lt_foo="";
Packit 0d464f
  lt_count=0;
Packit 0d464f
  for (lt_i = NF; lt_i > 0; lt_i--) {
Packit 0d464f
    if ($lt_i != "" && $lt_i != ".") {
Packit 0d464f
      if ($lt_i == "..") {
Packit 0d464f
        lt_count++;
Packit 0d464f
      } else {
Packit 0d464f
        if (lt_count == 0) {
Packit 0d464f
          lt_foo="/" $lt_i lt_foo;
Packit 0d464f
        } else {
Packit 0d464f
          lt_count--;
Packit 0d464f
        }
Packit 0d464f
      }
Packit 0d464f
    }
Packit 0d464f
  }
Packit 0d464f
  if (lt_foo != "") { lt_freq[[lt_foo]]++; }
Packit 0d464f
  if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
Packit 0d464f
}'`
Packit 0d464f
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
Packit 0d464f
else
Packit 0d464f
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
Packit 0d464f
fi])
Packit 0d464f
library_names_spec=
Packit 0d464f
libname_spec='lib$name'
Packit 0d464f
soname_spec=
Packit 0d464f
shrext_cmds=".so"
Packit 0d464f
postinstall_cmds=
Packit 0d464f
postuninstall_cmds=
Packit 0d464f
finish_cmds=
Packit 0d464f
finish_eval=
Packit 0d464f
shlibpath_var=
Packit 0d464f
shlibpath_overrides_runpath=unknown
Packit 0d464f
version_type=none
Packit 0d464f
dynamic_linker="$host_os ld.so"
Packit 0d464f
sys_lib_dlsearch_path_spec="/lib /usr/lib"
Packit 0d464f
need_lib_prefix=unknown
Packit 0d464f
hardcode_into_libs=no
Packit 0d464f
Packit 0d464f
# when you set need_version to no, make sure it does not cause -set_version
Packit 0d464f
# flags to be left without arguments
Packit 0d464f
need_version=unknown
Packit 0d464f
Packit 0d464f
case $host_os in
Packit 0d464f
aix3*)
Packit 0d464f
  version_type=linux
Packit 0d464f
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
Packit 0d464f
  shlibpath_var=LIBPATH
Packit 0d464f
Packit 0d464f
  # AIX 3 has no versioning support, so we append a major version to the name.
Packit 0d464f
  soname_spec='${libname}${release}${shared_ext}$major'
Packit 0d464f
  ;;
Packit 0d464f
Packit 0d464f
aix[[4-9]]*)
Packit 0d464f
  version_type=linux
Packit 0d464f
  need_lib_prefix=no
Packit 0d464f
  need_version=no
Packit 0d464f
  hardcode_into_libs=yes
Packit 0d464f
  if test "$host_cpu" = ia64; then
Packit 0d464f
    # AIX 5 supports IA64
Packit 0d464f
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
Packit 0d464f
    shlibpath_var=LD_LIBRARY_PATH
Packit 0d464f
  else
Packit 0d464f
    # With GCC up to 2.95.x, collect2 would create an import file
Packit 0d464f
    # for dependence libraries.  The import file would start with
Packit 0d464f
    # the line `#! .'.  This would cause the generated library to
Packit 0d464f
    # depend on `.', always an invalid library.  This was fixed in
Packit 0d464f
    # development snapshots of GCC prior to 3.0.
Packit 0d464f
    case $host_os in
Packit 0d464f
      aix4 | aix4.[[01]] | aix4.[[01]].*)
Packit 0d464f
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
Packit 0d464f
	   echo ' yes '
Packit 0d464f
	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
Packit 0d464f
	:
Packit 0d464f
      else
Packit 0d464f
	can_build_shared=no
Packit 0d464f
      fi
Packit 0d464f
      ;;
Packit 0d464f
    esac
Packit 0d464f
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
Packit 0d464f
    # soname into executable. Probably we can add versioning support to
Packit 0d464f
    # collect2, so additional links can be useful in future.
Packit 0d464f
    if test "$aix_use_runtimelinking" = yes; then
Packit 0d464f
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
Packit 0d464f
      # instead of lib<name>.a to let people know that these are not
Packit 0d464f
      # typical AIX shared libraries.
Packit 0d464f
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Packit 0d464f
    else
Packit 0d464f
      # We preserve .a as extension for shared libraries through AIX4.2
Packit 0d464f
      # and later when we are not doing run time linking.
Packit 0d464f
      library_names_spec='${libname}${release}.a $libname.a'
Packit 0d464f
      soname_spec='${libname}${release}${shared_ext}$major'
Packit 0d464f
    fi
Packit 0d464f
    shlibpath_var=LIBPATH
Packit 0d464f
  fi
Packit 0d464f
  ;;
Packit 0d464f
Packit 0d464f
amigaos*)
Packit 0d464f
  case $host_cpu in
Packit 0d464f
  powerpc)
Packit 0d464f
    # Since July 2007 AmigaOS4 officially supports .so libraries.
Packit 0d464f
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
Packit 0d464f
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Packit 0d464f
    ;;
Packit 0d464f
  m68k)
Packit 0d464f
    library_names_spec='$libname.ixlibrary $libname.a'
Packit 0d464f
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
Packit 0d464f
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
Packit 0d464f
    ;;
Packit 0d464f
  esac
Packit 0d464f
  ;;
Packit 0d464f
Packit 0d464f
beos*)
Packit 0d464f
  library_names_spec='${libname}${shared_ext}'
Packit 0d464f
  dynamic_linker="$host_os ld.so"
Packit 0d464f
  shlibpath_var=LIBRARY_PATH
Packit 0d464f
  ;;
Packit 0d464f
Packit 0d464f
bsdi[[45]]*)
Packit 0d464f
  version_type=linux
Packit 0d464f
  need_version=no
Packit 0d464f
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Packit 0d464f
  soname_spec='${libname}${release}${shared_ext}$major'
Packit 0d464f
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
Packit 0d464f
  shlibpath_var=LD_LIBRARY_PATH
Packit 0d464f
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
Packit 0d464f
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
Packit 0d464f
  # the default ld.so.conf also contains /usr/contrib/lib and
Packit 0d464f
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
Packit 0d464f
  # libtool to hard-code these into programs
Packit 0d464f
  ;;
Packit 0d464f
Packit 0d464f
cygwin* | mingw* | pw32* | cegcc*)
Packit 0d464f
  version_type=windows
Packit 0d464f
  shrext_cmds=".dll"
Packit 0d464f
  need_version=no
Packit 0d464f
  need_lib_prefix=no
Packit 0d464f
Packit 0d464f
  case $GCC,$host_os in
Packit 0d464f
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
Packit 0d464f
    library_names_spec='$libname.dll.a'
Packit 0d464f
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
Packit 0d464f
    postinstall_cmds='base_file=`basename \${file}`~
Packit 0d464f
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
Packit 0d464f
      dldir=$destdir/`dirname \$dlpath`~
Packit 0d464f
      test -d \$dldir || mkdir -p \$dldir~
Packit 0d464f
      $install_prog $dir/$dlname \$dldir/$dlname~
Packit 0d464f
      chmod a+x \$dldir/$dlname~
Packit 0d464f
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
Packit 0d464f
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
Packit 0d464f
      fi'
Packit 0d464f
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
Packit 0d464f
      dlpath=$dir/\$dldll~
Packit 0d464f
       $RM \$dlpath'
Packit 0d464f
    shlibpath_overrides_runpath=yes
Packit 0d464f
Packit 0d464f
    case $host_os in
Packit 0d464f
    cygwin*)
Packit 0d464f
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
Packit 0d464f
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
Packit 0d464f
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
Packit 0d464f
      ;;
Packit 0d464f
    mingw* | cegcc*)
Packit 0d464f
      # MinGW DLLs use traditional 'lib' prefix
Packit 0d464f
      soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
Packit 0d464f
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
Packit 0d464f
      if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
Packit 0d464f
        # It is most probably a Windows format PATH printed by
Packit 0d464f
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
Packit 0d464f
        # path with ; separators, and with drive letters. We can handle the
Packit 0d464f
        # drive letters (cygwin fileutils understands them), so leave them,
Packit 0d464f
        # especially as we might pass files found there to a mingw objdump,
Packit 0d464f
        # which wouldn't understand a cygwinified path. Ahh.
Packit 0d464f
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
Packit 0d464f
      else
Packit 0d464f
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
Packit 0d464f
      fi
Packit 0d464f
      ;;
Packit 0d464f
    pw32*)
Packit 0d464f
      # pw32 DLLs use 'pw' prefix rather than 'lib'
Packit 0d464f
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
Packit 0d464f
      ;;
Packit 0d464f
    esac
Packit 0d464f
    ;;
Packit 0d464f
Packit 0d464f
  *)
Packit 0d464f
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
Packit 0d464f
    ;;
Packit 0d464f
  esac
Packit 0d464f
  dynamic_linker='Win32 ld.exe'
Packit 0d464f
  # FIXME: first we should search . and the directory the executable is in
Packit 0d464f
  shlibpath_var=PATH
Packit 0d464f
  ;;
Packit 0d464f
Packit 0d464f
darwin* | rhapsody*)
Packit 0d464f
  dynamic_linker="$host_os dyld"
Packit 0d464f
  version_type=darwin
Packit 0d464f
  need_lib_prefix=no
Packit 0d464f
  need_version=no
Packit 0d464f
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
Packit 0d464f
  soname_spec='${libname}${release}${major}$shared_ext'
Packit 0d464f
  shlibpath_overrides_runpath=yes
Packit 0d464f
  shlibpath_var=DYLD_LIBRARY_PATH
Packit 0d464f
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
Packit 0d464f
m4_if([$1], [],[
Packit 0d464f
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
Packit 0d464f
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
Packit 0d464f
  ;;
Packit 0d464f
Packit 0d464f
dgux*)
Packit 0d464f
  version_type=linux
Packit 0d464f
  need_lib_prefix=no
Packit 0d464f
  need_version=no
Packit 0d464f
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
Packit 0d464f
  soname_spec='${libname}${release}${shared_ext}$major'
Packit 0d464f
  shlibpath_var=LD_LIBRARY_PATH
Packit 0d464f
  ;;
Packit 0d464f
Packit 0d464f
freebsd1*)
Packit 0d464f
  dynamic_linker=no
Packit 0d464f
  ;;
Packit 0d464f
Packit 0d464f
freebsd* | dragonfly*)
Packit 0d464f
  # DragonFly does not have aout.  When/if they implement a new
Packit 0d464f
  # versioning mechanism, adjust this.
Packit 0d464f
  if test -x /usr/bin/objformat; then
Packit 0d464f
    objformat=`/usr/bin/objformat`
Packit 0d464f
  else
Packit 0d464f
    case $host_os in
Packit 0d464f
    freebsd[[123]]*) objformat=aout ;;
Packit 0d464f
    *) objformat=elf ;;
Packit 0d464f
    esac
Packit 0d464f
  fi
Packit 0d464f
  version_type=freebsd-$objformat
Packit 0d464f
  case $version_type in
Packit 0d464f
    freebsd-elf*)
Packit 0d464f
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
Packit 0d464f
      need_version=no
Packit 0d464f
      need_lib_prefix=no
Packit 0d464f
      ;;
Packit 0d464f
    freebsd-*)
Packit 0d464f
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
Packit 0d464f
      need_version=yes
Packit 0d464f
      ;;
Packit 0d464f
  esac
Packit 0d464f
  shlibpath_var=LD_LIBRARY_PATH
Packit 0d464f
  case $host_os in
Packit 0d464f
  freebsd2*)
Packit 0d464f
    shlibpath_overrides_runpath=yes
Packit 0d464f
    ;;
Packit 0d464f
  freebsd3.[[01]]* | freebsdelf3.[[01]]*)
Packit 0d464f
    shlibpath_overrides_runpath=yes
Packit 0d464f
    hardcode_into_libs=yes
Packit 0d464f
    ;;
Packit 0d464f
  freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
Packit 0d464f
  freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
Packit 0d464f
    shlibpath_overrides_runpath=no
Packit 0d464f
    hardcode_into_libs=yes
Packit 0d464f
    ;;
Packit 0d464f
  *) # from 4.6 on, and DragonFly
Packit 0d464f
    shlibpath_overrides_runpath=yes
Packit 0d464f
    hardcode_into_libs=yes
Packit 0d464f
    ;;
Packit 0d464f
  esac
Packit 0d464f
  ;;
Packit 0d464f
Packit 0d464f
gnu*)
Packit 0d464f
  version_type=linux
Packit 0d464f
  need_lib_prefix=no
Packit 0d464f
  need_version=no
Packit 0d464f
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
Packit 0d464f
  soname_spec='${libname}${release}${shared_ext}$major'
Packit 0d464f
  shlibpath_var=LD_LIBRARY_PATH
Packit 0d464f
  hardcode_into_libs=yes
Packit 0d464f
  ;;
Packit 0d464f
Packit 0d464f
hpux9* | hpux10* | hpux11*)
Packit 0d464f
  # Give a soname corresponding to the major version so that dld.sl refuses to
Packit 0d464f
  # link against other versions.
Packit 0d464f
  version_type=sunos
Packit 0d464f
  need_lib_prefix=no
Packit 0d464f
  need_version=no
Packit 0d464f
  case $host_cpu in
Packit 0d464f
  ia64*)
Packit 0d464f
    shrext_cmds='.so'
Packit 0d464f
    hardcode_into_libs=yes
Packit 0d464f
    dynamic_linker="$host_os dld.so"
Packit 0d464f
    shlibpath_var=LD_LIBRARY_PATH
Packit 0d464f
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
Packit 0d464f
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Packit 0d464f
    soname_spec='${libname}${release}${shared_ext}$major'
Packit 0d464f
    if test "X$HPUX_IA64_MODE" = X32; then
Packit 0d464f
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
Packit 0d464f
    else
Packit 0d464f
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
Packit 0d464f
    fi
Packit 0d464f
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
Packit 0d464f
    ;;
Packit 0d464f
  hppa*64*)
Packit 0d464f
    shrext_cmds='.sl'
Packit 0d464f
    hardcode_into_libs=yes
Packit 0d464f
    dynamic_linker="$host_os dld.sl"
Packit 0d464f
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
Packit 0d464f
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
Packit 0d464f
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Packit 0d464f
    soname_spec='${libname}${release}${shared_ext}$major'
Packit 0d464f
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
Packit 0d464f
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
Packit 0d464f
    ;;
Packit 0d464f
  *)
Packit 0d464f
    shrext_cmds='.sl'
Packit 0d464f
    dynamic_linker="$host_os dld.sl"
Packit 0d464f
    shlibpath_var=SHLIB_PATH
Packit 0d464f
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
Packit 0d464f
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Packit 0d464f
    soname_spec='${libname}${release}${shared_ext}$major'
Packit 0d464f
    ;;
Packit 0d464f
  esac
Packit 0d464f
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
Packit 0d464f
  postinstall_cmds='chmod 555 $lib'
Packit 0d464f
  ;;
Packit 0d464f
Packit 0d464f
interix[[3-9]]*)
Packit 0d464f
  version_type=linux
Packit 0d464f
  need_lib_prefix=no
Packit 0d464f
  need_version=no
Packit 0d464f
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
Packit 0d464f
  soname_spec='${libname}${release}${shared_ext}$major'
Packit 0d464f
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
Packit 0d464f
  shlibpath_var=LD_LIBRARY_PATH
Packit 0d464f
  shlibpath_overrides_runpath=no
Packit 0d464f
  hardcode_into_libs=yes
Packit 0d464f
  ;;
Packit 0d464f
Packit 0d464f
irix5* | irix6* | nonstopux*)
Packit 0d464f
  case $host_os in
Packit 0d464f
    nonstopux*) version_type=nonstopux ;;
Packit 0d464f
    *)
Packit 0d464f
	if test "$lt_cv_prog_gnu_ld" = yes; then
Packit 0d464f
		version_type=linux
Packit 0d464f
	else
Packit 0d464f
		version_type=irix
Packit 0d464f
	fi ;;
Packit 0d464f
  esac
Packit 0d464f
  need_lib_prefix=no
Packit 0d464f
  need_version=no
Packit 0d464f
  soname_spec='${libname}${release}${shared_ext}$major'
Packit 0d464f
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
Packit 0d464f
  case $host_os in
Packit 0d464f
  irix5* | nonstopux*)
Packit 0d464f
    libsuff= shlibsuff=
Packit 0d464f
    ;;
Packit 0d464f
  *)
Packit 0d464f
    case $LD in # libtool.m4 will add one of these switches to LD
Packit 0d464f
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
Packit 0d464f
      libsuff= shlibsuff= libmagic=32-bit;;
Packit 0d464f
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
Packit 0d464f
      libsuff=32 shlibsuff=N32 libmagic=N32;;
Packit 0d464f
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
Packit 0d464f
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
Packit 0d464f
    *) libsuff= shlibsuff= libmagic=never-match;;
Packit 0d464f
    esac
Packit 0d464f
    ;;
Packit 0d464f
  esac
Packit 0d464f
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
Packit 0d464f
  shlibpath_overrides_runpath=no
Packit 0d464f
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
Packit 0d464f
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
Packit 0d464f
  hardcode_into_libs=yes
Packit 0d464f
  ;;
Packit 0d464f
Packit 0d464f
# No shared lib support for Linux oldld, aout, or coff.
Packit 0d464f
linux*oldld* | linux*aout* | linux*coff*)
Packit 0d464f
  dynamic_linker=no
Packit 0d464f
  ;;
Packit 0d464f
Packit 0d464f
# This must be Linux ELF.
Packit 0d464f
linux* | k*bsd*-gnu)
Packit 0d464f
  version_type=linux
Packit 0d464f
  need_lib_prefix=no
Packit 0d464f
  need_version=no
Packit 0d464f
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Packit 0d464f
  soname_spec='${libname}${release}${shared_ext}$major'
Packit 0d464f
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
Packit 0d464f
  shlibpath_var=LD_LIBRARY_PATH
Packit 0d464f
  shlibpath_overrides_runpath=no
Packit 0d464f
  # Some binutils ld are patched to set DT_RUNPATH
Packit 0d464f
  save_LDFLAGS=$LDFLAGS
Packit 0d464f
  save_libdir=$libdir
Packit 0d464f
  eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
Packit 0d464f
       LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
Packit 0d464f
  AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
Packit 0d464f
    [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
Packit 0d464f
       [shlibpath_overrides_runpath=yes])])
Packit 0d464f
  LDFLAGS=$save_LDFLAGS
Packit 0d464f
  libdir=$save_libdir
Packit 0d464f
Packit 0d464f
  # This implies no fast_install, which is unacceptable.
Packit 0d464f
  # Some rework will be needed to allow for fast_install
Packit 0d464f
  # before this can be enabled.
Packit 0d464f
  hardcode_into_libs=yes
Packit 0d464f
Packit 0d464f
  # Add ABI-specific directories to the system library path.
Packit 0d464f
  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
Packit 0d464f
Packit 0d464f
  # Append ld.so.conf contents to the search path
Packit 0d464f
  if test -f /etc/ld.so.conf; then
Packit 0d464f
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
Packit 0d464f
    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
Packit 0d464f
  fi
Packit 0d464f
Packit 0d464f
  # We used to test for /lib/ld.so.1 and disable shared libraries on
Packit 0d464f
  # powerpc, because MkLinux only supported shared libraries with the
Packit 0d464f
  # GNU dynamic linker.  Since this was broken with cross compilers,
Packit 0d464f
  # most powerpc-linux boxes support dynamic linking these days and
Packit 0d464f
  # people can always --disable-shared, the test was removed, and we
Packit 0d464f
  # assume the GNU/Linux dynamic linker is in use.
Packit 0d464f
  dynamic_linker='GNU/Linux ld.so'
Packit 0d464f
  ;;
Packit 0d464f
Packit 0d464f
netbsd*)
Packit 0d464f
  version_type=sunos
Packit 0d464f
  need_lib_prefix=no
Packit 0d464f
  need_version=no
Packit 0d464f
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
Packit 0d464f
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
Packit 0d464f
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
Packit 0d464f
    dynamic_linker='NetBSD (a.out) ld.so'
Packit 0d464f
  else
Packit 0d464f
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
Packit 0d464f
    soname_spec='${libname}${release}${shared_ext}$major'
Packit 0d464f
    dynamic_linker='NetBSD ld.elf_so'
Packit 0d464f
  fi
Packit 0d464f
  shlibpath_var=LD_LIBRARY_PATH
Packit 0d464f
  shlibpath_overrides_runpath=yes
Packit 0d464f
  hardcode_into_libs=yes
Packit 0d464f
  ;;
Packit 0d464f
Packit 0d464f
newsos6)
Packit 0d464f
  version_type=linux
Packit 0d464f
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Packit 0d464f
  shlibpath_var=LD_LIBRARY_PATH
Packit 0d464f
  shlibpath_overrides_runpath=yes
Packit 0d464f
  ;;
Packit 0d464f
Packit 0d464f
*nto* | *qnx*)
Packit 0d464f
  version_type=qnx
Packit 0d464f
  need_lib_prefix=no
Packit 0d464f
  need_version=no
Packit 0d464f
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Packit 0d464f
  soname_spec='${libname}${release}${shared_ext}$major'
Packit 0d464f
  shlibpath_var=LD_LIBRARY_PATH
Packit 0d464f
  shlibpath_overrides_runpath=no
Packit 0d464f
  hardcode_into_libs=yes
Packit 0d464f
  dynamic_linker='ldqnx.so'
Packit 0d464f
  ;;
Packit 0d464f
Packit 0d464f
openbsd*)
Packit 0d464f
  version_type=sunos
Packit 0d464f
  sys_lib_dlsearch_path_spec="/usr/lib"
Packit 0d464f
  need_lib_prefix=no
Packit 0d464f
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
Packit 0d464f
  case $host_os in
Packit 0d464f
    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
Packit 0d464f
    *)				need_version=no  ;;
Packit 0d464f
  esac
Packit 0d464f
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
Packit 0d464f
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
Packit 0d464f
  shlibpath_var=LD_LIBRARY_PATH
Packit 0d464f
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
Packit 0d464f
    case $host_os in
Packit 0d464f
      openbsd2.[[89]] | openbsd2.[[89]].*)
Packit 0d464f
	shlibpath_overrides_runpath=no
Packit 0d464f
	;;
Packit 0d464f
      *)
Packit 0d464f
	shlibpath_overrides_runpath=yes
Packit 0d464f
	;;
Packit 0d464f
      esac
Packit 0d464f
  else
Packit 0d464f
    shlibpath_overrides_runpath=yes
Packit 0d464f
  fi
Packit 0d464f
  ;;
Packit 0d464f
Packit 0d464f
os2*)
Packit 0d464f
  libname_spec='$name'
Packit 0d464f
  shrext_cmds=".dll"
Packit 0d464f
  need_lib_prefix=no
Packit 0d464f
  library_names_spec='$libname${shared_ext} $libname.a'
Packit 0d464f
  dynamic_linker='OS/2 ld.exe'
Packit 0d464f
  shlibpath_var=LIBPATH
Packit 0d464f
  ;;
Packit 0d464f
Packit 0d464f
osf3* | osf4* | osf5*)
Packit 0d464f
  version_type=osf
Packit 0d464f
  need_lib_prefix=no
Packit 0d464f
  need_version=no
Packit 0d464f
  soname_spec='${libname}${release}${shared_ext}$major'
Packit 0d464f
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Packit 0d464f
  shlibpath_var=LD_LIBRARY_PATH
Packit 0d464f
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
Packit 0d464f
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
Packit 0d464f
  ;;
Packit 0d464f
Packit 0d464f
rdos*)
Packit 0d464f
  dynamic_linker=no
Packit 0d464f
  ;;
Packit 0d464f
Packit 0d464f
solaris*)
Packit 0d464f
  version_type=linux
Packit 0d464f
  need_lib_prefix=no
Packit 0d464f
  need_version=no
Packit 0d464f
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Packit 0d464f
  soname_spec='${libname}${release}${shared_ext}$major'
Packit 0d464f
  shlibpath_var=LD_LIBRARY_PATH
Packit 0d464f
  shlibpath_overrides_runpath=yes
Packit 0d464f
  hardcode_into_libs=yes
Packit 0d464f
  # ldd complains unless libraries are executable
Packit 0d464f
  postinstall_cmds='chmod +x $lib'
Packit 0d464f
  ;;
Packit 0d464f
Packit 0d464f
sunos4*)
Packit 0d464f
  version_type=sunos
Packit 0d464f
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
Packit 0d464f
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
Packit 0d464f
  shlibpath_var=LD_LIBRARY_PATH
Packit 0d464f
  shlibpath_overrides_runpath=yes
Packit 0d464f
  if test "$with_gnu_ld" = yes; then
Packit 0d464f
    need_lib_prefix=no
Packit 0d464f
  fi
Packit 0d464f
  need_version=yes
Packit 0d464f
  ;;
Packit 0d464f
Packit 0d464f
sysv4 | sysv4.3*)
Packit 0d464f
  version_type=linux
Packit 0d464f
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Packit 0d464f
  soname_spec='${libname}${release}${shared_ext}$major'
Packit 0d464f
  shlibpath_var=LD_LIBRARY_PATH
Packit 0d464f
  case $host_vendor in
Packit 0d464f
    sni)
Packit 0d464f
      shlibpath_overrides_runpath=no
Packit 0d464f
      need_lib_prefix=no
Packit 0d464f
      runpath_var=LD_RUN_PATH
Packit 0d464f
      ;;
Packit 0d464f
    siemens)
Packit 0d464f
      need_lib_prefix=no
Packit 0d464f
      ;;
Packit 0d464f
    motorola)
Packit 0d464f
      need_lib_prefix=no
Packit 0d464f
      need_version=no
Packit 0d464f
      shlibpath_overrides_runpath=no
Packit 0d464f
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
Packit 0d464f
      ;;
Packit 0d464f
  esac
Packit 0d464f
  ;;
Packit 0d464f
Packit 0d464f
sysv4*MP*)
Packit 0d464f
  if test -d /usr/nec ;then
Packit 0d464f
    version_type=linux
Packit 0d464f
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
Packit 0d464f
    soname_spec='$libname${shared_ext}.$major'
Packit 0d464f
    shlibpath_var=LD_LIBRARY_PATH
Packit 0d464f
  fi
Packit 0d464f
  ;;
Packit 0d464f
Packit 0d464f
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
Packit 0d464f
  version_type=freebsd-elf
Packit 0d464f
  need_lib_prefix=no
Packit 0d464f
  need_version=no
Packit 0d464f
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
Packit 0d464f
  soname_spec='${libname}${release}${shared_ext}$major'
Packit 0d464f
  shlibpath_var=LD_LIBRARY_PATH
Packit 0d464f
  shlibpath_overrides_runpath=yes
Packit 0d464f
  hardcode_into_libs=yes
Packit 0d464f
  if test "$with_gnu_ld" = yes; then
Packit 0d464f
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
Packit 0d464f
  else
Packit 0d464f
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
Packit 0d464f
    case $host_os in
Packit 0d464f
      sco3.2v5*)
Packit 0d464f
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
Packit 0d464f
	;;
Packit 0d464f
    esac
Packit 0d464f
  fi
Packit 0d464f
  sys_lib_dlsearch_path_spec='/usr/lib'
Packit 0d464f
  ;;
Packit 0d464f
Packit 0d464f
tpf*)
Packit 0d464f
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
Packit 0d464f
  version_type=linux
Packit 0d464f
  need_lib_prefix=no
Packit 0d464f
  need_version=no
Packit 0d464f
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Packit 0d464f
  shlibpath_var=LD_LIBRARY_PATH
Packit 0d464f
  shlibpath_overrides_runpath=no
Packit 0d464f
  hardcode_into_libs=yes
Packit 0d464f
  ;;
Packit 0d464f
Packit 0d464f
uts4*)
Packit 0d464f
  version_type=linux
Packit 0d464f
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Packit 0d464f
  soname_spec='${libname}${release}${shared_ext}$major'
Packit 0d464f
  shlibpath_var=LD_LIBRARY_PATH
Packit 0d464f
  ;;
Packit 0d464f
Packit 0d464f
*)
Packit 0d464f
  dynamic_linker=no
Packit 0d464f
  ;;
Packit 0d464f
esac
Packit 0d464f
AC_MSG_RESULT([$dynamic_linker])
Packit 0d464f
test "$dynamic_linker" = no && can_build_shared=no
Packit 0d464f
Packit 0d464f
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
Packit 0d464f
if test "$GCC" = yes; then
Packit 0d464f
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
Packit 0d464f
fi
Packit 0d464f
Packit 0d464f
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
Packit 0d464f
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
Packit 0d464f
fi
Packit 0d464f
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
Packit 0d464f
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
Packit 0d464f
fi
Packit 0d464f
Packit 0d464f
_LT_DECL([], [variables_saved_for_relink], [1],
Packit 0d464f
    [Variables whose values should be saved in libtool wrapper scripts and
Packit 0d464f
    restored at link time])
Packit 0d464f
_LT_DECL([], [need_lib_prefix], [0],
Packit 0d464f
    [Do we need the "lib" prefix for modules?])
Packit 0d464f
_LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
Packit 0d464f
_LT_DECL([], [version_type], [0], [Library versioning type])
Packit 0d464f
_LT_DECL([], [runpath_var], [0],  [Shared library runtime path variable])
Packit 0d464f
_LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
Packit 0d464f
_LT_DECL([], [shlibpath_overrides_runpath], [0],
Packit 0d464f
    [Is shlibpath searched before the hard-coded library search path?])
Packit 0d464f
_LT_DECL([], [libname_spec], [1], [Format of library name prefix])
Packit 0d464f
_LT_DECL([], [library_names_spec], [1],
Packit 0d464f
    [[List of archive names.  First name is the real one, the rest are links.
Packit 0d464f
    The last name is the one that the linker finds with -lNAME]])
Packit 0d464f
_LT_DECL([], [soname_spec], [1],
Packit 0d464f
    [[The coded name of the library, if different from the real name]])
Packit 0d464f
_LT_DECL([], [postinstall_cmds], [2],
Packit 0d464f
    [Command to use after installation of a shared archive])
Packit 0d464f
_LT_DECL([], [postuninstall_cmds], [2],
Packit 0d464f
    [Command to use after uninstallation of a shared archive])
Packit 0d464f
_LT_DECL([], [finish_cmds], [2],
Packit 0d464f
    [Commands used to finish a libtool library installation in a directory])
Packit 0d464f
_LT_DECL([], [finish_eval], [1],
Packit 0d464f
    [[As "finish_cmds", except a single script fragment to be evaled but
Packit 0d464f
    not shown]])
Packit 0d464f
_LT_DECL([], [hardcode_into_libs], [0],
Packit 0d464f
    [Whether we should hardcode library paths into libraries])
Packit 0d464f
_LT_DECL([], [sys_lib_search_path_spec], [2],
Packit 0d464f
    [Compile-time system search path for libraries])
Packit 0d464f
_LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
Packit 0d464f
    [Run-time system search path for libraries])
Packit 0d464f
])# _LT_SYS_DYNAMIC_LINKER
Packit 0d464f
Packit 0d464f
Packit 0d464f
# _LT_PATH_TOOL_PREFIX(TOOL)
Packit 0d464f
# --------------------------
Packit 0d464f
# find a file program which can recognize shared library
Packit 0d464f
AC_DEFUN([_LT_PATH_TOOL_PREFIX],
Packit 0d464f
[m4_require([_LT_DECL_EGREP])dnl
Packit 0d464f
AC_MSG_CHECKING([for $1])
Packit 0d464f
AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
Packit 0d464f
[case $MAGIC_CMD in
Packit 0d464f
[[\\/*] |  ?:[\\/]*])
Packit 0d464f
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
Packit 0d464f
  ;;
Packit 0d464f
*)
Packit 0d464f
  lt_save_MAGIC_CMD="$MAGIC_CMD"
Packit 0d464f
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
Packit 0d464f
dnl $ac_dummy forces splitting on constant user-supplied paths.
Packit 0d464f
dnl POSIX.2 word splitting is done only on the output of word expansions,
Packit 0d464f
dnl not every word.  This closes a longstanding sh security hole.
Packit 0d464f
  ac_dummy="m4_if([$2], , $PATH, [$2])"
Packit 0d464f
  for ac_dir in $ac_dummy; do
Packit 0d464f
    IFS="$lt_save_ifs"
Packit 0d464f
    test -z "$ac_dir" && ac_dir=.
Packit 0d464f
    if test -f $ac_dir/$1; then
Packit 0d464f
      lt_cv_path_MAGIC_CMD="$ac_dir/$1"
Packit 0d464f
      if test -n "$file_magic_test_file"; then
Packit 0d464f
	case $deplibs_check_method in
Packit 0d464f
	"file_magic "*)
Packit 0d464f
	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
Packit 0d464f
	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
Packit 0d464f
	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
Packit 0d464f
	    $EGREP "$file_magic_regex" > /dev/null; then
Packit 0d464f
	    :
Packit 0d464f
	  else
Packit 0d464f
	    cat <<_LT_EOF 1>&2
Packit 0d464f
Packit 0d464f
*** Warning: the command libtool uses to detect shared libraries,
Packit 0d464f
*** $file_magic_cmd, produces output that libtool cannot recognize.
Packit 0d464f
*** The result is that libtool may fail to recognize shared libraries
Packit 0d464f
*** as such.  This will affect the creation of libtool libraries that
Packit 0d464f
*** depend on shared libraries, but programs linked with such libtool
Packit 0d464f
*** libraries will work regardless of this problem.  Nevertheless, you
Packit 0d464f
*** may want to report the problem to your system manager and/or to
Packit 0d464f
*** bug-libtool@gnu.org
Packit 0d464f
Packit 0d464f
_LT_EOF
Packit 0d464f
	  fi ;;
Packit 0d464f
	esac
Packit 0d464f
      fi
Packit 0d464f
      break
Packit 0d464f
    fi
Packit 0d464f
  done
Packit 0d464f
  IFS="$lt_save_ifs"
Packit 0d464f
  MAGIC_CMD="$lt_save_MAGIC_CMD"
Packit 0d464f
  ;;
Packit 0d464f
esac])
Packit 0d464f
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
Packit 0d464f
if test -n "$MAGIC_CMD"; then
Packit 0d464f
  AC_MSG_RESULT($MAGIC_CMD)
Packit 0d464f
else
Packit 0d464f
  AC_MSG_RESULT(no)
Packit 0d464f
fi
Packit 0d464f
_LT_DECL([], [MAGIC_CMD], [0],
Packit 0d464f
	 [Used to examine libraries when file_magic_cmd begins with "file"])dnl
Packit 0d464f
])# _LT_PATH_TOOL_PREFIX
Packit 0d464f
Packit 0d464f
# Old name:
Packit 0d464f
AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
Packit 0d464f
dnl aclocal-1.4 backwards compatibility:
Packit 0d464f
dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
Packit 0d464f
Packit 0d464f
Packit 0d464f
# _LT_PATH_MAGIC
Packit 0d464f
# --------------
Packit 0d464f
# find a file program which can recognize a shared library
Packit 0d464f
m4_defun([_LT_PATH_MAGIC],
Packit 0d464f
[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
Packit 0d464f
if test -z "$lt_cv_path_MAGIC_CMD"; then
Packit 0d464f
  if test -n "$ac_tool_prefix"; then
Packit 0d464f
    _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
Packit 0d464f
  else
Packit 0d464f
    MAGIC_CMD=:
Packit 0d464f
  fi
Packit 0d464f
fi
Packit 0d464f
])# _LT_PATH_MAGIC
Packit 0d464f
Packit 0d464f
Packit 0d464f
# LT_PATH_LD
Packit 0d464f
# ----------
Packit 0d464f
# find the pathname to the GNU or non-GNU linker
Packit 0d464f
AC_DEFUN([LT_PATH_LD],
Packit 0d464f
[AC_REQUIRE([AC_PROG_CC])dnl
Packit 0d464f
AC_REQUIRE([AC_CANONICAL_HOST])dnl
Packit 0d464f
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
Packit 0d464f
m4_require([_LT_DECL_SED])dnl
Packit 0d464f
m4_require([_LT_DECL_EGREP])dnl
Packit 0d464f
Packit 0d464f
AC_ARG_WITH([gnu-ld],
Packit 0d464f
    [AS_HELP_STRING([--with-gnu-ld],
Packit 0d464f
	[assume the C compiler uses GNU ld @<:@default=no@:>@])],
Packit 0d464f
    [test "$withval" = no || with_gnu_ld=yes],
Packit 0d464f
    [with_gnu_ld=no])dnl
Packit 0d464f
Packit 0d464f
ac_prog=ld
Packit 0d464f
if test "$GCC" = yes; then
Packit 0d464f
  # Check if gcc -print-prog-name=ld gives a path.
Packit 0d464f
  AC_MSG_CHECKING([for ld used by $CC])
Packit 0d464f
  case $host in
Packit 0d464f
  *-*-mingw*)
Packit 0d464f
    # gcc leaves a trailing carriage return which upsets mingw
Packit 0d464f
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
Packit 0d464f
  *)
Packit 0d464f
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
Packit 0d464f
  esac
Packit 0d464f
  case $ac_prog in
Packit 0d464f
    # Accept absolute paths.
Packit 0d464f
    [[\\/]]* | ?:[[\\/]]*)
Packit 0d464f
      re_direlt='/[[^/]][[^/]]*/\.\./'
Packit 0d464f
      # Canonicalize the pathname of ld
Packit 0d464f
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
Packit 0d464f
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
Packit 0d464f
	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
Packit 0d464f
      done
Packit 0d464f
      test -z "$LD" && LD="$ac_prog"
Packit 0d464f
      ;;
Packit 0d464f
  "")
Packit 0d464f
    # If it fails, then pretend we aren't using GCC.
Packit 0d464f
    ac_prog=ld
Packit 0d464f
    ;;
Packit 0d464f
  *)
Packit 0d464f
    # If it is relative, then search for the first ld in PATH.
Packit 0d464f
    with_gnu_ld=unknown
Packit 0d464f
    ;;
Packit 0d464f
  esac
Packit 0d464f
elif test "$with_gnu_ld" = yes; then
Packit 0d464f
  AC_MSG_CHECKING([for GNU ld])
Packit 0d464f
else
Packit 0d464f
  AC_MSG_CHECKING([for non-GNU ld])
Packit 0d464f
fi
Packit 0d464f
AC_CACHE_VAL(lt_cv_path_LD,
Packit 0d464f
[if test -z "$LD"; then
Packit 0d464f
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
Packit 0d464f
  for ac_dir in $PATH; do
Packit 0d464f
    IFS="$lt_save_ifs"
Packit 0d464f
    test -z "$ac_dir" && ac_dir=.
Packit 0d464f
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
Packit 0d464f
      lt_cv_path_LD="$ac_dir/$ac_prog"
Packit 0d464f
      # Check to see if the program is GNU ld.  I'd rather use --version,
Packit 0d464f
      # but apparently some variants of GNU ld only accept -v.
Packit 0d464f
      # Break only if it was the GNU/non-GNU ld that we prefer.
Packit 0d464f
      case `"$lt_cv_path_LD" -v 2>&1 
Packit 0d464f
      *GNU* | *'with BFD'*)
Packit 0d464f
	test "$with_gnu_ld" != no && break
Packit 0d464f
	;;
Packit 0d464f
      *)
Packit 0d464f
	test "$with_gnu_ld" != yes && break
Packit 0d464f
	;;
Packit 0d464f
      esac
Packit 0d464f
    fi
Packit 0d464f
  done
Packit 0d464f
  IFS="$lt_save_ifs"
Packit 0d464f
else
Packit 0d464f
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
Packit 0d464f
fi])
Packit 0d464f
LD="$lt_cv_path_LD"
Packit 0d464f
if test -n "$LD"; then
Packit 0d464f
  AC_MSG_RESULT($LD)
Packit 0d464f
else
Packit 0d464f
  AC_MSG_RESULT(no)
Packit 0d464f
fi
Packit 0d464f
test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
Packit 0d464f
_LT_PATH_LD_GNU
Packit 0d464f
AC_SUBST([LD])
Packit 0d464f
Packit 0d464f
_LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
Packit 0d464f
])# LT_PATH_LD
Packit 0d464f
Packit 0d464f
# Old names:
Packit 0d464f
AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
Packit 0d464f
AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
Packit 0d464f
dnl aclocal-1.4 backwards compatibility:
Packit 0d464f
dnl AC_DEFUN([AM_PROG_LD], [])
Packit 0d464f
dnl AC_DEFUN([AC_PROG_LD], [])
Packit 0d464f
Packit 0d464f
Packit 0d464f
# _LT_PATH_LD_GNU
Packit 0d464f
#- --------------
Packit 0d464f
m4_defun([_LT_PATH_LD_GNU],
Packit 0d464f
[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
Packit 0d464f
[# I'd rather use --version here, but apparently some GNU lds only accept -v.
Packit 0d464f
case `$LD -v 2>&1 
Packit 0d464f
*GNU* | *'with BFD'*)
Packit 0d464f
  lt_cv_prog_gnu_ld=yes
Packit 0d464f
  ;;
Packit 0d464f
*)
Packit 0d464f
  lt_cv_prog_gnu_ld=no
Packit 0d464f
  ;;
Packit 0d464f
esac])
Packit 0d464f
with_gnu_ld=$lt_cv_prog_gnu_ld
Packit 0d464f
])# _LT_PATH_LD_GNU
Packit 0d464f
Packit 0d464f
Packit 0d464f
# _LT_CMD_RELOAD
Packit 0d464f
# --------------
Packit 0d464f
# find reload flag for linker
Packit 0d464f
#   -- PORTME Some linkers may need a different reload flag.
Packit 0d464f
m4_defun([_LT_CMD_RELOAD],
Packit 0d464f
[AC_CACHE_CHECK([for $LD option to reload object files],
Packit 0d464f
  lt_cv_ld_reload_flag,
Packit 0d464f
  [lt_cv_ld_reload_flag='-r'])
Packit 0d464f
reload_flag=$lt_cv_ld_reload_flag
Packit 0d464f
case $reload_flag in
Packit 0d464f
"" | " "*) ;;
Packit 0d464f
*) reload_flag=" $reload_flag" ;;
Packit 0d464f
esac
Packit 0d464f
reload_cmds='$LD$reload_flag -o $output$reload_objs'
Packit 0d464f
case $host_os in
Packit 0d464f
  darwin*)
Packit 0d464f
    if test "$GCC" = yes; then
Packit 0d464f
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
Packit 0d464f
    else
Packit 0d464f
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
Packit 0d464f
    fi
Packit 0d464f
    ;;
Packit 0d464f
esac
Packit 0d464f
_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
Packit 0d464f
_LT_DECL([], [reload_cmds], [2])dnl
Packit 0d464f
])# _LT_CMD_RELOAD
Packit 0d464f
Packit 0d464f
Packit 0d464f
# _LT_CHECK_MAGIC_METHOD
Packit 0d464f
# ----------------------
Packit 0d464f
# how to check for library dependencies
Packit 0d464f
#  -- PORTME fill in with the dynamic library characteristics
Packit 0d464f
m4_defun([_LT_CHECK_MAGIC_METHOD],
Packit 0d464f
[m4_require([_LT_DECL_EGREP])
Packit 0d464f
m4_require([_LT_DECL_OBJDUMP])
Packit 0d464f
AC_CACHE_CHECK([how to recognize dependent libraries],
Packit 0d464f
lt_cv_deplibs_check_method,
Packit 0d464f
[lt_cv_file_magic_cmd='$MAGIC_CMD'
Packit 0d464f
lt_cv_file_magic_test_file=
Packit 0d464f
lt_cv_deplibs_check_method='unknown'
Packit 0d464f
# Need to set the preceding variable on all platforms that support
Packit 0d464f
# interlibrary dependencies.
Packit 0d464f
# 'none' -- dependencies not supported.
Packit 0d464f
# `unknown' -- same as none, but documents that we really don't know.
Packit 0d464f
# 'pass_all' -- all dependencies passed with no checks.
Packit 0d464f
# 'test_compile' -- check by making test program.
Packit 0d464f
# 'file_magic [[regex]]' -- check by looking for files in library path
Packit 0d464f
# which responds to the $file_magic_cmd with a given extended regex.
Packit 0d464f
# If you have `file' or equivalent on your system and you're not sure
Packit 0d464f
# whether `pass_all' will *always* work, you probably want this one.
Packit 0d464f
Packit 0d464f
case $host_os in
Packit 0d464f
aix[[4-9]]*)
Packit 0d464f
  lt_cv_deplibs_check_method=pass_all
Packit 0d464f
  ;;
Packit 0d464f
Packit 0d464f
beos*)
Packit 0d464f
  lt_cv_deplibs_check_method=pass_all
Packit 0d464f
  ;;
Packit 0d464f
Packit 0d464f
bsdi[[45]]*)
Packit 0d464f
  lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
Packit 0d464f
  lt_cv_file_magic_cmd='/usr/bin/file -L'
Packit 0d464f
  lt_cv_file_magic_test_file=/shlib/libc.so
Packit 0d464f
  ;;
Packit 0d464f
Packit 0d464f
cygwin*)
Packit 0d464f
  # func_win32_libid is a shell function defined in ltmain.sh
Packit 0d464f
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
Packit 0d464f
  lt_cv_file_magic_cmd='func_win32_libid'
Packit 0d464f
  ;;
Packit 0d464f
Packit 0d464f
mingw* | pw32*)
Packit 0d464f
  # Base MSYS/MinGW do not provide the 'file' command needed by
Packit 0d464f
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
Packit 0d464f
  # unless we find 'file', for example because we are cross-compiling.
Packit 0d464f
  if ( file / ) >/dev/null 2>&1; then
Packit 0d464f
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
Packit 0d464f
    lt_cv_file_magic_cmd='func_win32_libid'
Packit 0d464f
  else
Packit 0d464f
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
Packit 0d464f
    lt_cv_file_magic_cmd='$OBJDUMP -f'
Packit 0d464f
  fi
Packit 0d464f
  ;;
Packit 0d464f
Packit 0d464f
cegcc)
Packit 0d464f
  # use the weaker test based on 'objdump'. See mingw*.
Packit 0d464f
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
Packit 0d464f
  lt_cv_file_magic_cmd='$OBJDUMP -f'
Packit 0d464f
  ;;
Packit 0d464f
Packit 0d464f
darwin* | rhapsody*)
Packit 0d464f
  lt_cv_deplibs_check_method=pass_all
Packit 0d464f
  ;;
Packit 0d464f
Packit 0d464f
freebsd* | dragonfly*)
Packit 0d464f
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
Packit 0d464f
    case $host_cpu in
Packit 0d464f
    i*86 )
Packit 0d464f
      # Not sure whether the presence of OpenBSD here was a mistake.
Packit 0d464f
      # Let's accept both of them until this is cleared up.
Packit 0d464f
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
Packit 0d464f
      lt_cv_file_magic_cmd=/usr/bin/file
Packit 0d464f
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
Packit 0d464f
      ;;
Packit 0d464f
    esac
Packit 0d464f
  else
Packit 0d464f
    lt_cv_deplibs_check_method=pass_all
Packit 0d464f
  fi
Packit 0d464f
  ;;
Packit 0d464f
Packit 0d464f
gnu*)
Packit 0d464f
  lt_cv_deplibs_check_method=pass_all
Packit 0d464f
  ;;
Packit 0d464f
Packit 0d464f
hpux10.20* | hpux11*)
Packit 0d464f
  lt_cv_file_magic_cmd=/usr/bin/file
Packit 0d464f
  case $host_cpu in
Packit 0d464f
  ia64*)
Packit 0d464f
    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
Packit 0d464f
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
Packit 0d464f
    ;;
Packit 0d464f
  hppa*64*)
Packit 0d464f
    [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]']
Packit 0d464f
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
Packit 0d464f
    ;;
Packit 0d464f
  *)
Packit 0d464f
    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
Packit 0d464f
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
Packit 0d464f
    ;;
Packit 0d464f
  esac
Packit 0d464f
  ;;
Packit 0d464f
Packit 0d464f
interix[[3-9]]*)
Packit 0d464f
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
Packit 0d464f
  lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
Packit 0d464f
  ;;
Packit 0d464f
Packit 0d464f
irix5* | irix6* | nonstopux*)
Packit 0d464f
  case $LD in
Packit 0d464f
  *-32|*"-32 ") libmagic=32-bit;;
Packit 0d464f
  *-n32|*"-n32 ") libmagic=N32;;
Packit 0d464f
  *-64|*"-64 ") libmagic=64-bit;;
Packit 0d464f
  *) libmagic=never-match;;
Packit 0d464f
  esac
Packit 0d464f
  lt_cv_deplibs_check_method=pass_all
Packit 0d464f
  ;;
Packit 0d464f
Packit 0d464f
# This must be Linux ELF.
Packit 0d464f
linux* | k*bsd*-gnu)
Packit 0d464f
  lt_cv_deplibs_check_method=pass_all
Packit 0d464f
  ;;
Packit 0d464f
Packit 0d464f
netbsd*)
Packit 0d464f
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
Packit 0d464f
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
Packit 0d464f
  else
Packit 0d464f
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
Packit 0d464f
  fi
Packit 0d464f
  ;;
Packit 0d464f
Packit 0d464f
newos6*)
Packit 0d464f
  lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
Packit 0d464f
  lt_cv_file_magic_cmd=/usr/bin/file
Packit 0d464f
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
Packit 0d464f
  ;;
Packit 0d464f
Packit 0d464f
*nto* | *qnx*)
Packit 0d464f
  lt_cv_deplibs_check_method=pass_all
Packit 0d464f
  ;;
Packit 0d464f
Packit 0d464f
openbsd*)
Packit 0d464f
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
Packit 0d464f
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
Packit 0d464f
  else
Packit 0d464f
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
Packit 0d464f
  fi
Packit 0d464f
  ;;
Packit 0d464f
Packit 0d464f
osf3* | osf4* | osf5*)
Packit 0d464f
  lt_cv_deplibs_check_method=pass_all
Packit 0d464f
  ;;
Packit 0d464f
Packit 0d464f
rdos*)
Packit 0d464f
  lt_cv_deplibs_check_method=pass_all
Packit 0d464f
  ;;
Packit 0d464f
Packit 0d464f
solaris*)
Packit 0d464f
  lt_cv_deplibs_check_method=pass_all
Packit 0d464f
  ;;
Packit 0d464f
Packit 0d464f
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
Packit 0d464f
  lt_cv_deplibs_check_method=pass_all
Packit 0d464f
  ;;
Packit 0d464f
Packit 0d464f
sysv4 | sysv4.3*)
Packit 0d464f
  case $host_vendor in
Packit 0d464f
  motorola)
Packit 0d464f
    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]]'
Packit 0d464f
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
Packit 0d464f
    ;;
Packit 0d464f
  ncr)
Packit 0d464f
    lt_cv_deplibs_check_method=pass_all
Packit 0d464f
    ;;
Packit 0d464f
  sequent)
Packit 0d464f
    lt_cv_file_magic_cmd='/bin/file'
Packit 0d464f
    lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
Packit 0d464f
    ;;
Packit 0d464f
  sni)
Packit 0d464f
    lt_cv_file_magic_cmd='/bin/file'
Packit 0d464f
    lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
Packit 0d464f
    lt_cv_file_magic_test_file=/lib/libc.so
Packit 0d464f
    ;;
Packit 0d464f
  siemens)
Packit 0d464f
    lt_cv_deplibs_check_method=pass_all
Packit 0d464f
    ;;
Packit 0d464f
  pc)
Packit 0d464f
    lt_cv_deplibs_check_method=pass_all
Packit 0d464f
    ;;
Packit 0d464f
  esac
Packit 0d464f
  ;;
Packit 0d464f
Packit 0d464f
tpf*)
Packit 0d464f
  lt_cv_deplibs_check_method=pass_all
Packit 0d464f
  ;;
Packit 0d464f
esac
Packit 0d464f
])
Packit 0d464f
file_magic_cmd=$lt_cv_file_magic_cmd
Packit 0d464f
deplibs_check_method=$lt_cv_deplibs_check_method
Packit 0d464f
test -z "$deplibs_check_method" && deplibs_check_method=unknown
Packit 0d464f
Packit 0d464f
_LT_DECL([], [deplibs_check_method], [1],
Packit 0d464f
    [Method to check whether dependent libraries are shared objects])
Packit 0d464f
_LT_DECL([], [file_magic_cmd], [1],
Packit 0d464f
    [Command to use when deplibs_check_method == "file_magic"])
Packit 0d464f
])# _LT_CHECK_MAGIC_METHOD
Packit 0d464f
Packit 0d464f
Packit 0d464f
# LT_PATH_NM
Packit 0d464f
# ----------
Packit 0d464f
# find the pathname to a BSD- or MS-compatible name lister
Packit 0d464f
AC_DEFUN([LT_PATH_NM],
Packit 0d464f
[AC_REQUIRE([AC_PROG_CC])dnl
Packit 0d464f
AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
Packit 0d464f
[if test -n "$NM"; then
Packit 0d464f
  # Let the user override the test.
Packit 0d464f
  lt_cv_path_NM="$NM"
Packit 0d464f
else
Packit 0d464f
  lt_nm_to_check="${ac_tool_prefix}nm"
Packit 0d464f
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
Packit 0d464f
    lt_nm_to_check="$lt_nm_to_check nm"
Packit 0d464f
  fi
Packit 0d464f
  for lt_tmp_nm in $lt_nm_to_check; do
Packit 0d464f
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
Packit 0d464f
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
Packit 0d464f
      IFS="$lt_save_ifs"
Packit 0d464f
      test -z "$ac_dir" && ac_dir=.
Packit 0d464f
      tmp_nm="$ac_dir/$lt_tmp_nm"
Packit 0d464f
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
Packit 0d464f
	# Check to see if the nm accepts a BSD-compat flag.
Packit 0d464f
	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
Packit 0d464f
	#   nm: unknown option "B" ignored
Packit 0d464f
	# Tru64's nm complains that /dev/null is an invalid object file
Packit 0d464f
	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
Packit 0d464f
	*/dev/null* | *'Invalid file or object type'*)
Packit 0d464f
	  lt_cv_path_NM="$tmp_nm -B"
Packit 0d464f
	  break
Packit 0d464f
	  ;;
Packit 0d464f
	*)
Packit 0d464f
	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
Packit 0d464f
	  */dev/null*)
Packit 0d464f
	    lt_cv_path_NM="$tmp_nm -p"
Packit 0d464f
	    break
Packit 0d464f
	    ;;
Packit 0d464f
	  *)
Packit 0d464f
	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
Packit 0d464f
	    continue # so that we can try to find one that supports BSD flags
Packit 0d464f
	    ;;
Packit 0d464f
	  esac
Packit 0d464f
	  ;;
Packit 0d464f
	esac
Packit 0d464f
      fi
Packit 0d464f
    done
Packit 0d464f
    IFS="$lt_save_ifs"
Packit 0d464f
  done
Packit 0d464f
  : ${lt_cv_path_NM=no}
Packit 0d464f
fi])
Packit 0d464f
if test "$lt_cv_path_NM" != "no"; then
Packit 0d464f
  NM="$lt_cv_path_NM"
Packit 0d464f
else
Packit 0d464f
  # Didn't find any BSD compatible name lister, look for dumpbin.
Packit 0d464f
  AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
Packit 0d464f
  AC_SUBST([DUMPBIN])
Packit 0d464f
  if test "$DUMPBIN" != ":"; then
Packit 0d464f
    NM="$DUMPBIN"
Packit 0d464f
  fi
Packit 0d464f
fi
Packit 0d464f
test -z "$NM" && NM=nm
Packit 0d464f
AC_SUBST([NM])
Packit 0d464f
_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
Packit 0d464f
Packit 0d464f
AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
Packit 0d464f
  [lt_cv_nm_interface="BSD nm"
Packit 0d464f
  echo "int some_variable = 0;" > conftest.$ac_ext
Packit 0d464f
  (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
Packit 0d464f
  (eval "$ac_compile" 2>conftest.err)
Packit 0d464f
  cat conftest.err >&AS_MESSAGE_LOG_FD
Packit 0d464f
  (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
Packit 0d464f
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
Packit 0d464f
  cat conftest.err >&AS_MESSAGE_LOG_FD
Packit 0d464f
  (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
Packit 0d464f
  cat conftest.out >&AS_MESSAGE_LOG_FD
Packit 0d464f
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
Packit 0d464f
    lt_cv_nm_interface="MS dumpbin"
Packit 0d464f
  fi
Packit 0d464f
  rm -f conftest*])
Packit 0d464f
])# LT_PATH_NM
Packit 0d464f
Packit 0d464f
# Old names:
Packit 0d464f
AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
Packit 0d464f
AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
Packit 0d464f
dnl aclocal-1.4 backwards compatibility:
Packit 0d464f
dnl AC_DEFUN([AM_PROG_NM], [])
Packit 0d464f
dnl AC_DEFUN([AC_PROG_NM], [])
Packit 0d464f
Packit 0d464f
Packit 0d464f
# LT_LIB_M
Packit 0d464f
# --------
Packit 0d464f
# check for math library
Packit 0d464f
AC_DEFUN([LT_LIB_M],
Packit 0d464f
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
Packit 0d464f
LIBM=
Packit 0d464f
case $host in
Packit 0d464f
*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
Packit 0d464f
  # These system don't have libm, or don't need it
Packit 0d464f
  ;;
Packit 0d464f
*-ncr-sysv4.3*)
Packit 0d464f
  AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
Packit 0d464f
  AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
Packit 0d464f
  ;;
Packit 0d464f
*)
Packit 0d464f
  AC_CHECK_LIB(m, cos, LIBM="-lm")
Packit 0d464f
  ;;
Packit 0d464f
esac
Packit 0d464f
AC_SUBST([LIBM])
Packit 0d464f
])# LT_LIB_M
Packit 0d464f
Packit 0d464f
# Old name:
Packit 0d464f
AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
Packit 0d464f
dnl aclocal-1.4 backwards compatibility:
Packit 0d464f
dnl AC_DEFUN([AC_CHECK_LIBM], [])
Packit 0d464f
Packit 0d464f
Packit 0d464f
# _LT_COMPILER_NO_RTTI([TAGNAME])
Packit 0d464f
# -------------------------------
Packit 0d464f
m4_defun([_LT_COMPILER_NO_RTTI],
Packit 0d464f
[m4_require([_LT_TAG_COMPILER])dnl
Packit 0d464f
Packit 0d464f
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
Packit 0d464f
Packit 0d464f
if test "$GCC" = yes; then
Packit 0d464f
  _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
Packit 0d464f
Packit 0d464f
  _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
Packit 0d464f
    lt_cv_prog_compiler_rtti_exceptions,
Packit 0d464f
    [-fno-rtti -fno-exceptions], [],
Packit 0d464f
    [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
Packit 0d464f
fi
Packit 0d464f
_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
Packit 0d464f
	[Compiler flag to turn off builtin functions])
Packit 0d464f
])# _LT_COMPILER_NO_RTTI
Packit 0d464f
Packit 0d464f
Packit 0d464f
# _LT_CMD_GLOBAL_SYMBOLS
Packit 0d464f
# ----------------------
Packit 0d464f
m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
Packit 0d464f
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
Packit 0d464f
AC_REQUIRE([AC_PROG_CC])dnl