Blame m4/libtool.m4

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