Blame m4/libtool.m4

Packit c32a2d
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
Packit c32a2d
#
Packit c32a2d
#   Copyright (C) 1996-2001, 2003-2015 Free Software Foundation, Inc.
Packit c32a2d
#   Written by Gordon Matzigkeit, 1996
Packit c32a2d
#
Packit c32a2d
# This file is free software; the Free Software Foundation gives
Packit c32a2d
# unlimited permission to copy and/or distribute it, with or without
Packit c32a2d
# modifications, as long as this notice is preserved.
Packit c32a2d
Packit c32a2d
m4_define([_LT_COPYING], [dnl
Packit c32a2d
# Copyright (C) 2014 Free Software Foundation, Inc.
Packit c32a2d
# This is free software; see the source for copying conditions.  There is NO
Packit c32a2d
# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Packit c32a2d
Packit c32a2d
# GNU Libtool is free software; you can redistribute it and/or modify
Packit c32a2d
# it under the terms of the GNU General Public License as published by
Packit c32a2d
# the Free Software Foundation; either version 2 of of the License, or
Packit c32a2d
# (at your option) any later version.
Packit c32a2d
#
Packit c32a2d
# As a special exception to the GNU General Public License, if you
Packit c32a2d
# distribute this file as part of a program or library that is built
Packit c32a2d
# using GNU Libtool, you may include this file under the  same
Packit c32a2d
# distribution terms that you use for the rest of that program.
Packit c32a2d
#
Packit c32a2d
# GNU Libtool is distributed in the hope that it will be useful, but
Packit c32a2d
# WITHOUT ANY WARRANTY; without even the implied warranty of
Packit c32a2d
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
Packit c32a2d
# GNU General Public License for more details.
Packit c32a2d
#
Packit c32a2d
# You should have received a copy of the GNU General Public License
Packit c32a2d
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
Packit c32a2d
])
Packit c32a2d
Packit c32a2d
# serial 58 LT_INIT
Packit c32a2d
Packit c32a2d
Packit c32a2d
# LT_PREREQ(VERSION)
Packit c32a2d
# ------------------
Packit c32a2d
# Complain and exit if this libtool version is less that VERSION.
Packit c32a2d
m4_defun([LT_PREREQ],
Packit c32a2d
[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
Packit c32a2d
       [m4_default([$3],
Packit c32a2d
		   [m4_fatal([Libtool version $1 or higher is required],
Packit c32a2d
		             63)])],
Packit c32a2d
       [$2])])
Packit c32a2d
Packit c32a2d
Packit c32a2d
# _LT_CHECK_BUILDDIR
Packit c32a2d
# ------------------
Packit c32a2d
# Complain if the absolute build directory name contains unusual characters
Packit c32a2d
m4_defun([_LT_CHECK_BUILDDIR],
Packit c32a2d
[case `pwd` in
Packit c32a2d
  *\ * | *\	*)
Packit c32a2d
    AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
Packit c32a2d
esac
Packit c32a2d
])
Packit c32a2d
Packit c32a2d
Packit c32a2d
# LT_INIT([OPTIONS])
Packit c32a2d
# ------------------
Packit c32a2d
AC_DEFUN([LT_INIT],
Packit c32a2d
[AC_PREREQ([2.62])dnl We use AC_PATH_PROGS_FEATURE_CHECK
Packit c32a2d
AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
Packit c32a2d
AC_BEFORE([$0], [LT_LANG])dnl
Packit c32a2d
AC_BEFORE([$0], [LT_OUTPUT])dnl
Packit c32a2d
AC_BEFORE([$0], [LTDL_INIT])dnl
Packit c32a2d
m4_require([_LT_CHECK_BUILDDIR])dnl
Packit c32a2d
Packit c32a2d
dnl Autoconf doesn't catch unexpanded LT_ macros by default:
Packit c32a2d
m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
Packit c32a2d
m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
Packit c32a2d
dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
Packit c32a2d
dnl unless we require an AC_DEFUNed macro:
Packit c32a2d
AC_REQUIRE([LTOPTIONS_VERSION])dnl
Packit c32a2d
AC_REQUIRE([LTSUGAR_VERSION])dnl
Packit c32a2d
AC_REQUIRE([LTVERSION_VERSION])dnl
Packit c32a2d
AC_REQUIRE([LTOBSOLETE_VERSION])dnl
Packit c32a2d
m4_require([_LT_PROG_LTMAIN])dnl
Packit c32a2d
Packit c32a2d
_LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
Packit c32a2d
Packit c32a2d
dnl Parse OPTIONS
Packit c32a2d
_LT_SET_OPTIONS([$0], [$1])
Packit c32a2d
Packit c32a2d
# This can be used to rebuild libtool when needed
Packit c32a2d
LIBTOOL_DEPS=$ltmain
Packit c32a2d
Packit c32a2d
# Always use our own libtool.
Packit c32a2d
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
Packit c32a2d
AC_SUBST(LIBTOOL)dnl
Packit c32a2d
Packit c32a2d
_LT_SETUP
Packit c32a2d
Packit c32a2d
# Only expand once:
Packit c32a2d
m4_define([LT_INIT])
Packit c32a2d
])# LT_INIT
Packit c32a2d
Packit c32a2d
# Old names:
Packit c32a2d
AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
Packit c32a2d
AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
Packit c32a2d
dnl aclocal-1.4 backwards compatibility:
Packit c32a2d
dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
Packit c32a2d
dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
Packit c32a2d
Packit c32a2d
Packit c32a2d
# _LT_PREPARE_CC_BASENAME
Packit c32a2d
# -----------------------
Packit c32a2d
m4_defun([_LT_PREPARE_CC_BASENAME], [
Packit c32a2d
# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
Packit c32a2d
func_cc_basename ()
Packit c32a2d
{
Packit c32a2d
    for cc_temp in @S|@*""; do
Packit c32a2d
      case $cc_temp in
Packit c32a2d
        compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
Packit c32a2d
        distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
Packit c32a2d
        \-*) ;;
Packit c32a2d
        *) break;;
Packit c32a2d
      esac
Packit c32a2d
    done
Packit c32a2d
    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
Packit c32a2d
}
Packit c32a2d
])# _LT_PREPARE_CC_BASENAME
Packit c32a2d
Packit c32a2d
Packit c32a2d
# _LT_CC_BASENAME(CC)
Packit c32a2d
# -------------------
Packit c32a2d
# It would be clearer to call AC_REQUIREs from _LT_PREPARE_CC_BASENAME,
Packit c32a2d
# but that macro is also expanded into generated libtool script, which
Packit c32a2d
# arranges for $SED and $ECHO to be set by different means.
Packit c32a2d
m4_defun([_LT_CC_BASENAME],
Packit c32a2d
[m4_require([_LT_PREPARE_CC_BASENAME])dnl
Packit c32a2d
AC_REQUIRE([_LT_DECL_SED])dnl
Packit c32a2d
AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
Packit c32a2d
func_cc_basename $1
Packit c32a2d
cc_basename=$func_cc_basename_result
Packit c32a2d
])
Packit c32a2d
Packit c32a2d
Packit c32a2d
# _LT_FILEUTILS_DEFAULTS
Packit c32a2d
# ----------------------
Packit c32a2d
# It is okay to use these file commands and assume they have been set
Packit c32a2d
# sensibly after 'm4_require([_LT_FILEUTILS_DEFAULTS])'.
Packit c32a2d
m4_defun([_LT_FILEUTILS_DEFAULTS],
Packit c32a2d
[: ${CP="cp -f"}
Packit c32a2d
: ${MV="mv -f"}
Packit c32a2d
: ${RM="rm -f"}
Packit c32a2d
])# _LT_FILEUTILS_DEFAULTS
Packit c32a2d
Packit c32a2d
Packit c32a2d
# _LT_SETUP
Packit c32a2d
# ---------
Packit c32a2d
m4_defun([_LT_SETUP],
Packit c32a2d
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
Packit c32a2d
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
Packit c32a2d
AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
Packit c32a2d
AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
Packit c32a2d
Packit c32a2d
_LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl
Packit c32a2d
dnl
Packit c32a2d
_LT_DECL([], [host_alias], [0], [The host system])dnl
Packit c32a2d
_LT_DECL([], [host], [0])dnl
Packit c32a2d
_LT_DECL([], [host_os], [0])dnl
Packit c32a2d
dnl
Packit c32a2d
_LT_DECL([], [build_alias], [0], [The build system])dnl
Packit c32a2d
_LT_DECL([], [build], [0])dnl
Packit c32a2d
_LT_DECL([], [build_os], [0])dnl
Packit c32a2d
dnl
Packit c32a2d
AC_REQUIRE([AC_PROG_CC])dnl
Packit c32a2d
AC_REQUIRE([LT_PATH_LD])dnl
Packit c32a2d
AC_REQUIRE([LT_PATH_NM])dnl
Packit c32a2d
dnl
Packit c32a2d
AC_REQUIRE([AC_PROG_LN_S])dnl
Packit c32a2d
test -z "$LN_S" && LN_S="ln -s"
Packit c32a2d
_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
Packit c32a2d
dnl
Packit c32a2d
AC_REQUIRE([LT_CMD_MAX_LEN])dnl
Packit c32a2d
_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
Packit c32a2d
_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
Packit c32a2d
dnl
Packit c32a2d
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
Packit c32a2d
m4_require([_LT_CHECK_SHELL_FEATURES])dnl
Packit c32a2d
m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl
Packit c32a2d
m4_require([_LT_CMD_RELOAD])dnl
Packit c32a2d
m4_require([_LT_CHECK_MAGIC_METHOD])dnl
Packit c32a2d
m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl
Packit c32a2d
m4_require([_LT_CMD_OLD_ARCHIVE])dnl
Packit c32a2d
m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
Packit c32a2d
m4_require([_LT_WITH_SYSROOT])dnl
Packit c32a2d
m4_require([_LT_CMD_TRUNCATE])dnl
Packit c32a2d
Packit c32a2d
_LT_CONFIG_LIBTOOL_INIT([
Packit c32a2d
# See if we are running on zsh, and set the options that allow our
Packit c32a2d
# commands through without removal of \ escapes INIT.
Packit c32a2d
if test -n "\${ZSH_VERSION+set}"; then
Packit c32a2d
   setopt NO_GLOB_SUBST
Packit c32a2d
fi
Packit c32a2d
])
Packit c32a2d
if test -n "${ZSH_VERSION+set}"; then
Packit c32a2d
   setopt NO_GLOB_SUBST
Packit c32a2d
fi
Packit c32a2d
Packit c32a2d
_LT_CHECK_OBJDIR
Packit c32a2d
Packit c32a2d
m4_require([_LT_TAG_COMPILER])dnl
Packit c32a2d
Packit c32a2d
case $host_os in
Packit c32a2d
aix3*)
Packit c32a2d
  # AIX sometimes has problems with the GCC collect2 program.  For some
Packit c32a2d
  # reason, if we set the COLLECT_NAMES environment variable, the problems
Packit c32a2d
  # vanish in a puff of smoke.
Packit c32a2d
  if test set != "${COLLECT_NAMES+set}"; then
Packit c32a2d
    COLLECT_NAMES=
Packit c32a2d
    export COLLECT_NAMES
Packit c32a2d
  fi
Packit c32a2d
  ;;
Packit c32a2d
esac
Packit c32a2d
Packit c32a2d
# Global variables:
Packit c32a2d
ofile=libtool
Packit c32a2d
can_build_shared=yes
Packit c32a2d
Packit c32a2d
# All known linkers require a '.a' archive for static linking (except MSVC,
Packit c32a2d
# which needs '.lib').
Packit c32a2d
libext=a
Packit c32a2d
Packit c32a2d
with_gnu_ld=$lt_cv_prog_gnu_ld
Packit c32a2d
Packit c32a2d
old_CC=$CC
Packit c32a2d
old_CFLAGS=$CFLAGS
Packit c32a2d
Packit c32a2d
# Set sane defaults for various variables
Packit c32a2d
test -z "$CC" && CC=cc
Packit c32a2d
test -z "$LTCC" && LTCC=$CC
Packit c32a2d
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
Packit c32a2d
test -z "$LD" && LD=ld
Packit c32a2d
test -z "$ac_objext" && ac_objext=o
Packit c32a2d
Packit c32a2d
_LT_CC_BASENAME([$compiler])
Packit c32a2d
Packit c32a2d
# Only perform the check for file, if the check method requires it
Packit c32a2d
test -z "$MAGIC_CMD" && MAGIC_CMD=file
Packit c32a2d
case $deplibs_check_method in
Packit c32a2d
file_magic*)
Packit c32a2d
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
Packit c32a2d
    _LT_PATH_MAGIC
Packit c32a2d
  fi
Packit c32a2d
  ;;
Packit c32a2d
esac
Packit c32a2d
Packit c32a2d
# Use C for the default configuration in the libtool script
Packit c32a2d
LT_SUPPORTED_TAG([CC])
Packit c32a2d
_LT_LANG_C_CONFIG
Packit c32a2d
_LT_LANG_DEFAULT_CONFIG
Packit c32a2d
_LT_CONFIG_COMMANDS
Packit c32a2d
])# _LT_SETUP
Packit c32a2d
Packit c32a2d
Packit c32a2d
# _LT_PREPARE_SED_QUOTE_VARS
Packit c32a2d
# --------------------------
Packit c32a2d
# Define a few sed substitution that help us do robust quoting.
Packit c32a2d
m4_defun([_LT_PREPARE_SED_QUOTE_VARS],
Packit c32a2d
[# Backslashify metacharacters that are still active within
Packit c32a2d
# double-quoted strings.
Packit c32a2d
sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
Packit c32a2d
Packit c32a2d
# Same as above, but do not quote variable references.
Packit c32a2d
double_quote_subst='s/\([["`\\]]\)/\\\1/g'
Packit c32a2d
Packit c32a2d
# Sed substitution to delay expansion of an escaped shell variable in a
Packit c32a2d
# double_quote_subst'ed string.
Packit c32a2d
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
Packit c32a2d
Packit c32a2d
# Sed substitution to delay expansion of an escaped single quote.
Packit c32a2d
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
Packit c32a2d
Packit c32a2d
# Sed substitution to avoid accidental globbing in evaled expressions
Packit c32a2d
no_glob_subst='s/\*/\\\*/g'
Packit c32a2d
])
Packit c32a2d
Packit c32a2d
# _LT_PROG_LTMAIN
Packit c32a2d
# ---------------
Packit c32a2d
# Note that this code is called both from 'configure', and 'config.status'
Packit c32a2d
# now that we use AC_CONFIG_COMMANDS to generate libtool.  Notably,
Packit c32a2d
# 'config.status' has no value for ac_aux_dir unless we are using Automake,
Packit c32a2d
# so we pass a copy along to make sure it has a sensible value anyway.
Packit c32a2d
m4_defun([_LT_PROG_LTMAIN],
Packit c32a2d
[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
Packit c32a2d
_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
Packit c32a2d
ltmain=$ac_aux_dir/ltmain.sh
Packit c32a2d
])# _LT_PROG_LTMAIN
Packit c32a2d
Packit c32a2d
Packit c32a2d
## ------------------------------------- ##
Packit c32a2d
## Accumulate code for creating libtool. ##
Packit c32a2d
## ------------------------------------- ##
Packit c32a2d
Packit c32a2d
# So that we can recreate a full libtool script including additional
Packit c32a2d
# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
Packit c32a2d
# in macros and then make a single call at the end using the 'libtool'
Packit c32a2d
# label.
Packit c32a2d
Packit c32a2d
Packit c32a2d
# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
Packit c32a2d
# ----------------------------------------
Packit c32a2d
# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
Packit c32a2d
m4_define([_LT_CONFIG_LIBTOOL_INIT],
Packit c32a2d
[m4_ifval([$1],
Packit c32a2d
          [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
Packit c32a2d
                     [$1
Packit c32a2d
])])])
Packit c32a2d
Packit c32a2d
# Initialize.
Packit c32a2d
m4_define([_LT_OUTPUT_LIBTOOL_INIT])
Packit c32a2d
Packit c32a2d
Packit c32a2d
# _LT_CONFIG_LIBTOOL([COMMANDS])
Packit c32a2d
# ------------------------------
Packit c32a2d
# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
Packit c32a2d
m4_define([_LT_CONFIG_LIBTOOL],
Packit c32a2d
[m4_ifval([$1],
Packit c32a2d
          [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
Packit c32a2d
                     [$1
Packit c32a2d
])])])
Packit c32a2d
Packit c32a2d
# Initialize.
Packit c32a2d
m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
Packit c32a2d
Packit c32a2d
Packit c32a2d
# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
Packit c32a2d
# -----------------------------------------------------
Packit c32a2d
m4_defun([_LT_CONFIG_SAVE_COMMANDS],
Packit c32a2d
[_LT_CONFIG_LIBTOOL([$1])
Packit c32a2d
_LT_CONFIG_LIBTOOL_INIT([$2])
Packit c32a2d
])
Packit c32a2d
Packit c32a2d
Packit c32a2d
# _LT_FORMAT_COMMENT([COMMENT])
Packit c32a2d
# -----------------------------
Packit c32a2d
# Add leading comment marks to the start of each line, and a trailing
Packit c32a2d
# full-stop to the whole comment if one is not present already.
Packit c32a2d
m4_define([_LT_FORMAT_COMMENT],
Packit c32a2d
[m4_ifval([$1], [
Packit c32a2d
m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
Packit c32a2d
              [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
Packit c32a2d
)])
Packit c32a2d
Packit c32a2d
Packit c32a2d
Packit c32a2d
## ------------------------ ##
Packit c32a2d
## FIXME: Eliminate VARNAME ##
Packit c32a2d
## ------------------------ ##
Packit c32a2d
Packit c32a2d
Packit c32a2d
# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
Packit c32a2d
# -------------------------------------------------------------------
Packit c32a2d
# CONFIGNAME is the name given to the value in the libtool script.
Packit c32a2d
# VARNAME is the (base) name used in the configure script.
Packit c32a2d
# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
Packit c32a2d
# VARNAME.  Any other value will be used directly.
Packit c32a2d
m4_define([_LT_DECL],
Packit c32a2d
[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
Packit c32a2d
    [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
Packit c32a2d
	[m4_ifval([$1], [$1], [$2])])
Packit c32a2d
    lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
Packit c32a2d
    m4_ifval([$4],
Packit c32a2d
	[lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
Packit c32a2d
    lt_dict_add_subkey([lt_decl_dict], [$2],
Packit c32a2d
	[tagged?], [m4_ifval([$5], [yes], [no])])])
Packit c32a2d
])
Packit c32a2d
Packit c32a2d
Packit c32a2d
# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
Packit c32a2d
# --------------------------------------------------------
Packit c32a2d
m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
Packit c32a2d
Packit c32a2d
Packit c32a2d
# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
Packit c32a2d
# ------------------------------------------------
Packit c32a2d
m4_define([lt_decl_tag_varnames],
Packit c32a2d
[_lt_decl_filter([tagged?], [yes], $@)])
Packit c32a2d
Packit c32a2d
Packit c32a2d
# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
Packit c32a2d
# ---------------------------------------------------------
Packit c32a2d
m4_define([_lt_decl_filter],
Packit c32a2d
[m4_case([$#],
Packit c32a2d
  [0], [m4_fatal([$0: too few arguments: $#])],
Packit c32a2d
  [1], [m4_fatal([$0: too few arguments: $#: $1])],
Packit c32a2d
  [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
Packit c32a2d
  [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
Packit c32a2d
  [lt_dict_filter([lt_decl_dict], $@)])[]dnl
Packit c32a2d
])
Packit c32a2d
Packit c32a2d
Packit c32a2d
# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
Packit c32a2d
# --------------------------------------------------
Packit c32a2d
m4_define([lt_decl_quote_varnames],
Packit c32a2d
[_lt_decl_filter([value], [1], $@)])
Packit c32a2d
Packit c32a2d
Packit c32a2d
# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
Packit c32a2d
# ---------------------------------------------------
Packit c32a2d
m4_define([lt_decl_dquote_varnames],
Packit c32a2d
[_lt_decl_filter([value], [2], $@)])
Packit c32a2d
Packit c32a2d
Packit c32a2d
# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
Packit c32a2d
# ---------------------------------------------------
Packit c32a2d
m4_define([lt_decl_varnames_tagged],
Packit c32a2d
[m4_assert([$# <= 2])dnl
Packit c32a2d
_$0(m4_quote(m4_default([$1], [[, ]])),
Packit c32a2d
    m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
Packit c32a2d
    m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
Packit c32a2d
m4_define([_lt_decl_varnames_tagged],
Packit c32a2d
[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
Packit c32a2d
Packit c32a2d
Packit c32a2d
# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
Packit c32a2d
# ------------------------------------------------
Packit c32a2d
m4_define([lt_decl_all_varnames],
Packit c32a2d
[_$0(m4_quote(m4_default([$1], [[, ]])),
Packit c32a2d
     m4_if([$2], [],
Packit c32a2d
	   m4_quote(lt_decl_varnames),
Packit c32a2d
	m4_quote(m4_shift($@))))[]dnl
Packit c32a2d
])
Packit c32a2d
m4_define([_lt_decl_all_varnames],
Packit c32a2d
[lt_join($@, lt_decl_varnames_tagged([$1],
Packit c32a2d
			lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
Packit c32a2d
])
Packit c32a2d
Packit c32a2d
Packit c32a2d
# _LT_CONFIG_STATUS_DECLARE([VARNAME])
Packit c32a2d
# ------------------------------------
Packit c32a2d
# Quote a variable value, and forward it to 'config.status' so that its
Packit c32a2d
# declaration there will have the same value as in 'configure'.  VARNAME
Packit c32a2d
# must have a single quote delimited value for this to work.
Packit c32a2d
m4_define([_LT_CONFIG_STATUS_DECLARE],
Packit c32a2d
[$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`'])
Packit c32a2d
Packit c32a2d
Packit c32a2d
# _LT_CONFIG_STATUS_DECLARATIONS
Packit c32a2d
# ------------------------------
Packit c32a2d
# We delimit libtool config variables with single quotes, so when
Packit c32a2d
# we write them to config.status, we have to be sure to quote all
Packit c32a2d
# embedded single quotes properly.  In configure, this macro expands
Packit c32a2d
# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
Packit c32a2d
#
Packit c32a2d
#    ='`$ECHO "$" | $SED "$delay_single_quote_subst"`'
Packit c32a2d
m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
Packit c32a2d
[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
Packit c32a2d
    [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
Packit c32a2d
Packit c32a2d
Packit c32a2d
# _LT_LIBTOOL_TAGS
Packit c32a2d
# ----------------
Packit c32a2d
# Output comment and list of tags supported by the script
Packit c32a2d
m4_defun([_LT_LIBTOOL_TAGS],
Packit c32a2d
[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
Packit c32a2d
available_tags='_LT_TAGS'dnl
Packit c32a2d
])
Packit c32a2d
Packit c32a2d
Packit c32a2d
# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
Packit c32a2d
# -----------------------------------
Packit c32a2d
# Extract the dictionary values for VARNAME (optionally with TAG) and
Packit c32a2d
# expand to a commented shell variable setting:
Packit c32a2d
#
Packit c32a2d
#    # Some comment about what VAR is for.
Packit c32a2d
#    visible_name=$lt_internal_name
Packit c32a2d
m4_define([_LT_LIBTOOL_DECLARE],
Packit c32a2d
[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
Packit c32a2d
					   [description])))[]dnl
Packit c32a2d
m4_pushdef([_libtool_name],
Packit c32a2d
    m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
Packit c32a2d
m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
Packit c32a2d
    [0], [_libtool_name=[$]$1],
Packit c32a2d
    [1], [_libtool_name=$lt_[]$1],
Packit c32a2d
    [2], [_libtool_name=$lt_[]$1],
Packit c32a2d
    [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
Packit c32a2d
m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
Packit c32a2d
])
Packit c32a2d
Packit c32a2d
Packit c32a2d
# _LT_LIBTOOL_CONFIG_VARS
Packit c32a2d
# -----------------------
Packit c32a2d
# Produce commented declarations of non-tagged libtool config variables
Packit c32a2d
# suitable for insertion in the LIBTOOL CONFIG section of the 'libtool'
Packit c32a2d
# script.  Tagged libtool config variables (even for the LIBTOOL CONFIG
Packit c32a2d
# section) are produced by _LT_LIBTOOL_TAG_VARS.
Packit c32a2d
m4_defun([_LT_LIBTOOL_CONFIG_VARS],
Packit c32a2d
[m4_foreach([_lt_var],
Packit c32a2d
    m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
Packit c32a2d
    [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
Packit c32a2d
Packit c32a2d
Packit c32a2d
# _LT_LIBTOOL_TAG_VARS(TAG)
Packit c32a2d
# -------------------------
Packit c32a2d
m4_define([_LT_LIBTOOL_TAG_VARS],
Packit c32a2d
[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
Packit c32a2d
    [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
Packit c32a2d
Packit c32a2d
Packit c32a2d
# _LT_TAGVAR(VARNAME, [TAGNAME])
Packit c32a2d
# ------------------------------
Packit c32a2d
m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
Packit c32a2d
Packit c32a2d
Packit c32a2d
# _LT_CONFIG_COMMANDS
Packit c32a2d
# -------------------
Packit c32a2d
# Send accumulated output to $CONFIG_STATUS.  Thanks to the lists of
Packit c32a2d
# variables for single and double quote escaping we saved from calls
Packit c32a2d
# to _LT_DECL, we can put quote escaped variables declarations
Packit c32a2d
# into 'config.status', and then the shell code to quote escape them in
Packit c32a2d
# for loops in 'config.status'.  Finally, any additional code accumulated
Packit c32a2d
# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
Packit c32a2d
m4_defun([_LT_CONFIG_COMMANDS],
Packit c32a2d
[AC_PROVIDE_IFELSE([LT_OUTPUT],
Packit c32a2d
	dnl If the libtool generation code has been placed in $CONFIG_LT,
Packit c32a2d
	dnl instead of duplicating it all over again into config.status,
Packit c32a2d
	dnl then we will have config.status run $CONFIG_LT later, so it
Packit c32a2d
	dnl needs to know what name is stored there:
Packit c32a2d
        [AC_CONFIG_COMMANDS([libtool],
Packit c32a2d
            [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
Packit c32a2d
    dnl If the libtool generation code is destined for config.status,
Packit c32a2d
    dnl expand the accumulated commands and init code now:
Packit c32a2d
    [AC_CONFIG_COMMANDS([libtool],
Packit c32a2d
        [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
Packit c32a2d
])#_LT_CONFIG_COMMANDS
Packit c32a2d
Packit c32a2d
Packit c32a2d
# Initialize.
Packit c32a2d
m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
Packit c32a2d
[
Packit c32a2d
Packit c32a2d
# The HP-UX ksh and POSIX shell print the target directory to stdout
Packit c32a2d
# if CDPATH is set.
Packit c32a2d
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
Packit c32a2d
Packit c32a2d
sed_quote_subst='$sed_quote_subst'
Packit c32a2d
double_quote_subst='$double_quote_subst'
Packit c32a2d
delay_variable_subst='$delay_variable_subst'
Packit c32a2d
_LT_CONFIG_STATUS_DECLARATIONS
Packit c32a2d
LTCC='$LTCC'
Packit c32a2d
LTCFLAGS='$LTCFLAGS'
Packit c32a2d
compiler='$compiler_DEFAULT'
Packit c32a2d
Packit c32a2d
# A function that is used when there is no print builtin or printf.
Packit c32a2d
func_fallback_echo ()
Packit c32a2d
{
Packit c32a2d
  eval 'cat <<_LTECHO_EOF
Packit c32a2d
\$[]1
Packit c32a2d
_LTECHO_EOF'
Packit c32a2d
}
Packit c32a2d
Packit c32a2d
# Quote evaled strings.
Packit c32a2d
for var in lt_decl_all_varnames([[ \
Packit c32a2d
]], lt_decl_quote_varnames); do
Packit c32a2d
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
Packit c32a2d
    *[[\\\\\\\`\\"\\\$]]*)
Packit c32a2d
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
Packit c32a2d
      ;;
Packit c32a2d
    *)
Packit c32a2d
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
Packit c32a2d
      ;;
Packit c32a2d
    esac
Packit c32a2d
done
Packit c32a2d
Packit c32a2d
# Double-quote double-evaled strings.
Packit c32a2d
for var in lt_decl_all_varnames([[ \
Packit c32a2d
]], lt_decl_dquote_varnames); do
Packit c32a2d
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
Packit c32a2d
    *[[\\\\\\\`\\"\\\$]]*)
Packit c32a2d
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
Packit c32a2d
      ;;
Packit c32a2d
    *)
Packit c32a2d
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
Packit c32a2d
      ;;
Packit c32a2d
    esac
Packit c32a2d
done
Packit c32a2d
Packit c32a2d
_LT_OUTPUT_LIBTOOL_INIT
Packit c32a2d
])
Packit c32a2d
Packit c32a2d
# _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
Packit c32a2d
# ------------------------------------
Packit c32a2d
# Generate a child script FILE with all initialization necessary to
Packit c32a2d
# reuse the environment learned by the parent script, and make the
Packit c32a2d
# file executable.  If COMMENT is supplied, it is inserted after the
Packit c32a2d
# '#!' sequence but before initialization text begins.  After this
Packit c32a2d
# macro, additional text can be appended to FILE to form the body of
Packit c32a2d
# the child script.  The macro ends with non-zero status if the
Packit c32a2d
# file could not be fully written (such as if the disk is full).
Packit c32a2d
m4_ifdef([AS_INIT_GENERATED],
Packit c32a2d
[m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])],
Packit c32a2d
[m4_defun([_LT_GENERATED_FILE_INIT],
Packit c32a2d
[m4_require([AS_PREPARE])]dnl
Packit c32a2d
[m4_pushdef([AS_MESSAGE_LOG_FD])]dnl
Packit c32a2d
[lt_write_fail=0
Packit c32a2d
cat >$1 <<_ASEOF || lt_write_fail=1
Packit c32a2d
#! $SHELL
Packit c32a2d
# Generated by $as_me.
Packit c32a2d
$2
Packit c32a2d
SHELL=\${CONFIG_SHELL-$SHELL}
Packit c32a2d
export SHELL
Packit c32a2d
_ASEOF
Packit c32a2d
cat >>$1 <<\_ASEOF || lt_write_fail=1
Packit c32a2d
AS_SHELL_SANITIZE
Packit c32a2d
_AS_PREPARE
Packit c32a2d
exec AS_MESSAGE_FD>&1
Packit c32a2d
_ASEOF
Packit c32a2d
test 0 = "$lt_write_fail" && chmod +x $1[]dnl
Packit c32a2d
m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
Packit c32a2d
Packit c32a2d
# LT_OUTPUT
Packit c32a2d
# ---------
Packit c32a2d
# This macro allows early generation of the libtool script (before
Packit c32a2d
# AC_OUTPUT is called), incase it is used in configure for compilation
Packit c32a2d
# tests.
Packit c32a2d
AC_DEFUN([LT_OUTPUT],
Packit c32a2d
[: ${CONFIG_LT=./config.lt}
Packit c32a2d
AC_MSG_NOTICE([creating $CONFIG_LT])
Packit c32a2d
_LT_GENERATED_FILE_INIT(["$CONFIG_LT"],
Packit c32a2d
[# Run this file to recreate a libtool stub with the current configuration.])
Packit c32a2d
Packit c32a2d
cat >>"$CONFIG_LT" <<\_LTEOF
Packit c32a2d
lt_cl_silent=false
Packit c32a2d
exec AS_MESSAGE_LOG_FD>>config.log
Packit c32a2d
{
Packit c32a2d
  echo
Packit c32a2d
  AS_BOX([Running $as_me.])
Packit c32a2d
} >&AS_MESSAGE_LOG_FD
Packit c32a2d
Packit c32a2d
lt_cl_help="\
Packit c32a2d
'$as_me' creates a local libtool stub from the current configuration,
Packit c32a2d
for use in further configure time tests before the real libtool is
Packit c32a2d
generated.
Packit c32a2d
Packit c32a2d
Usage: $[0] [[OPTIONS]]
Packit c32a2d
Packit c32a2d
  -h, --help      print this help, then exit
Packit c32a2d
  -V, --version   print version number, then exit
Packit c32a2d
  -q, --quiet     do not print progress messages
Packit c32a2d
  -d, --debug     don't remove temporary files
Packit c32a2d
Packit c32a2d
Report bugs to <bug-libtool@gnu.org>."
Packit c32a2d
Packit c32a2d
lt_cl_version="\
Packit c32a2d
m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
Packit c32a2d
m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
Packit c32a2d
configured by $[0], generated by m4_PACKAGE_STRING.
Packit c32a2d
Packit c32a2d
Copyright (C) 2011 Free Software Foundation, Inc.
Packit c32a2d
This config.lt script is free software; the Free Software Foundation
Packit c32a2d
gives unlimited permision to copy, distribute and modify it."
Packit c32a2d
Packit c32a2d
while test 0 != $[#]
Packit c32a2d
do
Packit c32a2d
  case $[1] in
Packit c32a2d
    --version | --v* | -V )
Packit c32a2d
      echo "$lt_cl_version"; exit 0 ;;
Packit c32a2d
    --help | --h* | -h )
Packit c32a2d
      echo "$lt_cl_help"; exit 0 ;;
Packit c32a2d
    --debug | --d* | -d )
Packit c32a2d
      debug=: ;;
Packit c32a2d
    --quiet | --q* | --silent | --s* | -q )
Packit c32a2d
      lt_cl_silent=: ;;
Packit c32a2d
Packit c32a2d
    -*) AC_MSG_ERROR([unrecognized option: $[1]
Packit c32a2d
Try '$[0] --help' for more information.]) ;;
Packit c32a2d
Packit c32a2d
    *) AC_MSG_ERROR([unrecognized argument: $[1]
Packit c32a2d
Try '$[0] --help' for more information.]) ;;
Packit c32a2d
  esac
Packit c32a2d
  shift
Packit c32a2d
done
Packit c32a2d
Packit c32a2d
if $lt_cl_silent; then
Packit c32a2d
  exec AS_MESSAGE_FD>/dev/null
Packit c32a2d
fi
Packit c32a2d
_LTEOF
Packit c32a2d
Packit c32a2d
cat >>"$CONFIG_LT" <<_LTEOF
Packit c32a2d
_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
Packit c32a2d
_LTEOF
Packit c32a2d
Packit c32a2d
cat >>"$CONFIG_LT" <<\_LTEOF
Packit c32a2d
AC_MSG_NOTICE([creating $ofile])
Packit c32a2d
_LT_OUTPUT_LIBTOOL_COMMANDS
Packit c32a2d
AS_EXIT(0)
Packit c32a2d
_LTEOF
Packit c32a2d
chmod +x "$CONFIG_LT"
Packit c32a2d
Packit c32a2d
# configure is writing to config.log, but config.lt does its own redirection,
Packit c32a2d
# appending to config.log, which fails on DOS, as config.log is still kept
Packit c32a2d
# open by configure.  Here we exec the FD to /dev/null, effectively closing
Packit c32a2d
# config.log, so it can be properly (re)opened and appended to by config.lt.
Packit c32a2d
lt_cl_success=:
Packit c32a2d
test yes = "$silent" &&
Packit c32a2d
  lt_config_lt_args="$lt_config_lt_args --quiet"
Packit c32a2d
exec AS_MESSAGE_LOG_FD>/dev/null
Packit c32a2d
$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
Packit c32a2d
exec AS_MESSAGE_LOG_FD>>config.log
Packit c32a2d
$lt_cl_success || AS_EXIT(1)
Packit c32a2d
])# LT_OUTPUT
Packit c32a2d
Packit c32a2d
Packit c32a2d
# _LT_CONFIG(TAG)
Packit c32a2d
# ---------------
Packit c32a2d
# If TAG is the built-in tag, create an initial libtool script with a
Packit c32a2d
# default configuration from the untagged config vars.  Otherwise add code
Packit c32a2d
# to config.status for appending the configuration named by TAG from the
Packit c32a2d
# matching tagged config vars.
Packit c32a2d
m4_defun([_LT_CONFIG],
Packit c32a2d
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
Packit c32a2d
_LT_CONFIG_SAVE_COMMANDS([
Packit c32a2d
  m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
Packit c32a2d
  m4_if(_LT_TAG, [C], [
Packit c32a2d
    # See if we are running on zsh, and set the options that allow our
Packit c32a2d
    # commands through without removal of \ escapes.
Packit c32a2d
    if test -n "${ZSH_VERSION+set}"; then
Packit c32a2d
      setopt NO_GLOB_SUBST
Packit c32a2d
    fi
Packit c32a2d
Packit c32a2d
    cfgfile=${ofile}T
Packit c32a2d
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
Packit c32a2d
    $RM "$cfgfile"
Packit c32a2d
Packit c32a2d
    cat <<_LT_EOF >> "$cfgfile"
Packit c32a2d
#! $SHELL
Packit c32a2d
# Generated automatically by $as_me ($PACKAGE) $VERSION
Packit c32a2d
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
Packit c32a2d
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
Packit c32a2d
Packit c32a2d
# Provide generalized library-building support services.
Packit c32a2d
# Written by Gordon Matzigkeit, 1996
Packit c32a2d
Packit c32a2d
_LT_COPYING
Packit c32a2d
_LT_LIBTOOL_TAGS
Packit c32a2d
Packit c32a2d
# Configured defaults for sys_lib_dlsearch_path munging.
Packit c32a2d
: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
Packit c32a2d
Packit c32a2d
# ### BEGIN LIBTOOL CONFIG
Packit c32a2d
_LT_LIBTOOL_CONFIG_VARS
Packit c32a2d
_LT_LIBTOOL_TAG_VARS
Packit c32a2d
# ### END LIBTOOL CONFIG
Packit c32a2d
Packit c32a2d
_LT_EOF
Packit c32a2d
Packit c32a2d
    cat <<'_LT_EOF' >> "$cfgfile"
Packit c32a2d
Packit c32a2d
# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
Packit c32a2d
Packit c32a2d
_LT_PREPARE_MUNGE_PATH_LIST
Packit c32a2d
_LT_PREPARE_CC_BASENAME
Packit c32a2d
Packit c32a2d
# ### END FUNCTIONS SHARED WITH CONFIGURE
Packit c32a2d
Packit c32a2d
_LT_EOF
Packit c32a2d
Packit c32a2d
  case $host_os in
Packit c32a2d
  aix3*)
Packit c32a2d
    cat <<\_LT_EOF >> "$cfgfile"
Packit c32a2d
# AIX sometimes has problems with the GCC collect2 program.  For some
Packit c32a2d
# reason, if we set the COLLECT_NAMES environment variable, the problems
Packit c32a2d
# vanish in a puff of smoke.
Packit c32a2d
if test set != "${COLLECT_NAMES+set}"; then
Packit c32a2d
  COLLECT_NAMES=
Packit c32a2d
  export COLLECT_NAMES
Packit c32a2d
fi
Packit c32a2d
_LT_EOF
Packit c32a2d
    ;;
Packit c32a2d
  esac
Packit c32a2d
Packit c32a2d
  _LT_PROG_LTMAIN
Packit c32a2d
Packit c32a2d
  # We use sed instead of cat because bash on DJGPP gets confused if
Packit c32a2d
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
Packit c32a2d
  # text mode, it properly converts lines to CR/LF.  This bash problem
Packit c32a2d
  # is reportedly fixed, but why not run on old versions too?
Packit c32a2d
  sed '$q' "$ltmain" >> "$cfgfile" \
Packit c32a2d
     || (rm -f "$cfgfile"; exit 1)
Packit c32a2d
Packit c32a2d
   mv -f "$cfgfile" "$ofile" ||
Packit c32a2d
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
Packit c32a2d
  chmod +x "$ofile"
Packit c32a2d
],
Packit c32a2d
[cat <<_LT_EOF >> "$ofile"
Packit c32a2d
Packit c32a2d
dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
Packit c32a2d
dnl in a comment (ie after a #).
Packit c32a2d
# ### BEGIN LIBTOOL TAG CONFIG: $1
Packit c32a2d
_LT_LIBTOOL_TAG_VARS(_LT_TAG)
Packit c32a2d
# ### END LIBTOOL TAG CONFIG: $1
Packit c32a2d
_LT_EOF
Packit c32a2d
])dnl /m4_if
Packit c32a2d
],
Packit c32a2d
[m4_if([$1], [], [
Packit c32a2d
    PACKAGE='$PACKAGE'
Packit c32a2d
    VERSION='$VERSION'
Packit c32a2d
    RM='$RM'
Packit c32a2d
    ofile='$ofile'], [])
Packit c32a2d
])dnl /_LT_CONFIG_SAVE_COMMANDS
Packit c32a2d
])# _LT_CONFIG
Packit c32a2d
Packit c32a2d
Packit c32a2d
# LT_SUPPORTED_TAG(TAG)
Packit c32a2d
# ---------------------
Packit c32a2d
# Trace this macro to discover what tags are supported by the libtool
Packit c32a2d
# --tag option, using:
Packit c32a2d
#    autoconf --trace 'LT_SUPPORTED_TAG:$1'
Packit c32a2d
AC_DEFUN([LT_SUPPORTED_TAG], [])
Packit c32a2d
Packit c32a2d
Packit c32a2d
# C support is built-in for now
Packit c32a2d
m4_define([_LT_LANG_C_enabled], [])
Packit c32a2d
m4_define([_LT_TAGS], [])
Packit c32a2d
Packit c32a2d
Packit c32a2d
# LT_LANG(LANG)
Packit c32a2d
# -------------
Packit c32a2d
# Enable libtool support for the given language if not already enabled.
Packit c32a2d
AC_DEFUN([LT_LANG],
Packit c32a2d
[AC_BEFORE([$0], [LT_OUTPUT])dnl
Packit c32a2d
m4_case([$1],
Packit c32a2d
  [C],			[_LT_LANG(C)],
Packit c32a2d
  [C++],		[_LT_LANG(CXX)],
Packit c32a2d
  [Go],			[_LT_LANG(GO)],
Packit c32a2d
  [Java],		[_LT_LANG(GCJ)],
Packit c32a2d
  [Fortran 77],		[_LT_LANG(F77)],
Packit c32a2d
  [Fortran],		[_LT_LANG(FC)],
Packit c32a2d
  [Windows Resource],	[_LT_LANG(RC)],
Packit c32a2d
  [m4_ifdef([_LT_LANG_]$1[_CONFIG],
Packit c32a2d
    [_LT_LANG($1)],
Packit c32a2d
    [m4_fatal([$0: unsupported language: "$1"])])])dnl
Packit c32a2d
])# LT_LANG
Packit c32a2d
Packit c32a2d
Packit c32a2d
# _LT_LANG(LANGNAME)
Packit c32a2d
# ------------------
Packit c32a2d
m4_defun([_LT_LANG],
Packit c32a2d
[m4_ifdef([_LT_LANG_]$1[_enabled], [],
Packit c32a2d
  [LT_SUPPORTED_TAG([$1])dnl
Packit c32a2d
  m4_append([_LT_TAGS], [$1 ])dnl
Packit c32a2d
  m4_define([_LT_LANG_]$1[_enabled], [])dnl
Packit c32a2d
  _LT_LANG_$1_CONFIG($1)])dnl
Packit c32a2d
])# _LT_LANG
Packit c32a2d
Packit c32a2d
Packit c32a2d
m4_ifndef([AC_PROG_GO], [
Packit c32a2d
############################################################
Packit c32a2d
# NOTE: This macro has been submitted for inclusion into   #
Packit c32a2d
#  GNU Autoconf as AC_PROG_GO.  When it is available in    #
Packit c32a2d
#  a released version of Autoconf we should remove this    #
Packit c32a2d
#  macro and use it instead.                               #
Packit c32a2d
############################################################
Packit c32a2d
m4_defun([AC_PROG_GO],
Packit c32a2d
[AC_LANG_PUSH(Go)dnl
Packit c32a2d
AC_ARG_VAR([GOC],     [Go compiler command])dnl
Packit c32a2d
AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl
Packit c32a2d
_AC_ARG_VAR_LDFLAGS()dnl
Packit c32a2d
AC_CHECK_TOOL(GOC, gccgo)
Packit c32a2d
if test -z "$GOC"; then
Packit c32a2d
  if test -n "$ac_tool_prefix"; then
Packit c32a2d
    AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo])
Packit c32a2d
  fi
Packit c32a2d
fi
Packit c32a2d
if test -z "$GOC"; then
Packit c32a2d
  AC_CHECK_PROG(GOC, gccgo, gccgo, false)
Packit c32a2d
fi
Packit c32a2d
])#m4_defun
Packit c32a2d
])#m4_ifndef
Packit c32a2d
Packit c32a2d
Packit c32a2d
# _LT_LANG_DEFAULT_CONFIG
Packit c32a2d
# -----------------------
Packit c32a2d
m4_defun([_LT_LANG_DEFAULT_CONFIG],
Packit c32a2d
[AC_PROVIDE_IFELSE([AC_PROG_CXX],
Packit c32a2d
  [LT_LANG(CXX)],
Packit c32a2d
  [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
Packit c32a2d
Packit c32a2d
AC_PROVIDE_IFELSE([AC_PROG_F77],
Packit c32a2d
  [LT_LANG(F77)],
Packit c32a2d
  [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
Packit c32a2d
Packit c32a2d
AC_PROVIDE_IFELSE([AC_PROG_FC],
Packit c32a2d
  [LT_LANG(FC)],
Packit c32a2d
  [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
Packit c32a2d
Packit c32a2d
dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
Packit c32a2d
dnl pulling things in needlessly.
Packit c32a2d
AC_PROVIDE_IFELSE([AC_PROG_GCJ],
Packit c32a2d
  [LT_LANG(GCJ)],
Packit c32a2d
  [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
Packit c32a2d
    [LT_LANG(GCJ)],
Packit c32a2d
    [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
Packit c32a2d
      [LT_LANG(GCJ)],
Packit c32a2d
      [m4_ifdef([AC_PROG_GCJ],
Packit c32a2d
	[m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
Packit c32a2d
       m4_ifdef([A][M_PROG_GCJ],
Packit c32a2d
	[m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
Packit c32a2d
       m4_ifdef([LT_PROG_GCJ],
Packit c32a2d
	[m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
Packit c32a2d
Packit c32a2d
AC_PROVIDE_IFELSE([AC_PROG_GO],
Packit c32a2d
  [LT_LANG(GO)],
Packit c32a2d
  [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])])
Packit c32a2d
Packit c32a2d
AC_PROVIDE_IFELSE([LT_PROG_RC],
Packit c32a2d
  [LT_LANG(RC)],
Packit c32a2d
  [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
Packit c32a2d
])# _LT_LANG_DEFAULT_CONFIG
Packit c32a2d
Packit c32a2d
# Obsolete macros:
Packit c32a2d
AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
Packit c32a2d
AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
Packit c32a2d
AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
Packit c32a2d
AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
Packit c32a2d
AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)])
Packit c32a2d
dnl aclocal-1.4 backwards compatibility:
Packit c32a2d
dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
Packit c32a2d
dnl AC_DEFUN([AC_LIBTOOL_F77], [])
Packit c32a2d
dnl AC_DEFUN([AC_LIBTOOL_FC], [])
Packit c32a2d
dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
Packit c32a2d
dnl AC_DEFUN([AC_LIBTOOL_RC], [])
Packit c32a2d
Packit c32a2d
Packit c32a2d
# _LT_TAG_COMPILER
Packit c32a2d
# ----------------
Packit c32a2d
m4_defun([_LT_TAG_COMPILER],
Packit c32a2d
[AC_REQUIRE([AC_PROG_CC])dnl
Packit c32a2d
Packit c32a2d
_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
Packit c32a2d
_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
Packit c32a2d
_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
Packit c32a2d
_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
Packit c32a2d
Packit c32a2d
# If no C compiler was specified, use CC.
Packit c32a2d
LTCC=${LTCC-"$CC"}
Packit c32a2d
Packit c32a2d
# If no C compiler flags were specified, use CFLAGS.
Packit c32a2d
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
Packit c32a2d
Packit c32a2d
# Allow CC to be a program name with arguments.
Packit c32a2d
compiler=$CC
Packit c32a2d
])# _LT_TAG_COMPILER
Packit c32a2d
Packit c32a2d
Packit c32a2d
# _LT_COMPILER_BOILERPLATE
Packit c32a2d
# ------------------------
Packit c32a2d
# Check for compiler boilerplate output or warnings with
Packit c32a2d
# the simple compiler test code.
Packit c32a2d
m4_defun([_LT_COMPILER_BOILERPLATE],
Packit c32a2d
[m4_require([_LT_DECL_SED])dnl
Packit c32a2d
ac_outfile=conftest.$ac_objext
Packit c32a2d
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
Packit c32a2d
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
Packit c32a2d
_lt_compiler_boilerplate=`cat conftest.err`
Packit c32a2d
$RM conftest*
Packit c32a2d
])# _LT_COMPILER_BOILERPLATE
Packit c32a2d
Packit c32a2d
Packit c32a2d
# _LT_LINKER_BOILERPLATE
Packit c32a2d
# ----------------------
Packit c32a2d
# Check for linker boilerplate output or warnings with
Packit c32a2d
# the simple link test code.
Packit c32a2d
m4_defun([_LT_LINKER_BOILERPLATE],
Packit c32a2d
[m4_require([_LT_DECL_SED])dnl
Packit c32a2d
ac_outfile=conftest.$ac_objext
Packit c32a2d
echo "$lt_simple_link_test_code" >conftest.$ac_ext
Packit c32a2d
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
Packit c32a2d
_lt_linker_boilerplate=`cat conftest.err`
Packit c32a2d
$RM -r conftest*
Packit c32a2d
])# _LT_LINKER_BOILERPLATE
Packit c32a2d
Packit c32a2d
# _LT_REQUIRED_DARWIN_CHECKS
Packit c32a2d
# -------------------------
Packit c32a2d
m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
Packit c32a2d
  case $host_os in
Packit c32a2d
    rhapsody* | darwin*)
Packit c32a2d
    AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
Packit c32a2d
    AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
Packit c32a2d
    AC_CHECK_TOOL([LIPO], [lipo], [:])
Packit c32a2d
    AC_CHECK_TOOL([OTOOL], [otool], [:])
Packit c32a2d
    AC_CHECK_TOOL([OTOOL64], [otool64], [:])
Packit c32a2d
    _LT_DECL([], [DSYMUTIL], [1],
Packit c32a2d
      [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
Packit c32a2d
    _LT_DECL([], [NMEDIT], [1],
Packit c32a2d
      [Tool to change global to local symbols on Mac OS X])
Packit c32a2d
    _LT_DECL([], [LIPO], [1],
Packit c32a2d
      [Tool to manipulate fat objects and archives on Mac OS X])
Packit c32a2d
    _LT_DECL([], [OTOOL], [1],
Packit c32a2d
      [ldd/readelf like tool for Mach-O binaries on Mac OS X])
Packit c32a2d
    _LT_DECL([], [OTOOL64], [1],
Packit c32a2d
      [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
Packit c32a2d
Packit c32a2d
    AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
Packit c32a2d
      [lt_cv_apple_cc_single_mod=no
Packit c32a2d
      if test -z "$LT_MULTI_MODULE"; then
Packit c32a2d
	# By default we will add the -single_module flag. You can override
Packit c32a2d
	# by either setting the environment variable LT_MULTI_MODULE
Packit c32a2d
	# non-empty at configure time, or by adding -multi_module to the
Packit c32a2d
	# link flags.
Packit c32a2d
	rm -rf libconftest.dylib*
Packit c32a2d
	echo "int foo(void){return 1;}" > conftest.c
Packit c32a2d
	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
Packit c32a2d
-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
Packit c32a2d
	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
Packit c32a2d
	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
Packit c32a2d
        _lt_result=$?
Packit c32a2d
	# If there is a non-empty error log, and "single_module"
Packit c32a2d
	# appears in it, assume the flag caused a linker warning
Packit c32a2d
        if test -s conftest.err && $GREP single_module conftest.err; then
Packit c32a2d
	  cat conftest.err >&AS_MESSAGE_LOG_FD
Packit c32a2d
	# Otherwise, if the output was created with a 0 exit code from
Packit c32a2d
	# the compiler, it worked.
Packit c32a2d
	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
Packit c32a2d
	  lt_cv_apple_cc_single_mod=yes
Packit c32a2d
	else
Packit c32a2d
	  cat conftest.err >&AS_MESSAGE_LOG_FD
Packit c32a2d
	fi
Packit c32a2d
	rm -rf libconftest.dylib*
Packit c32a2d
	rm -f conftest.*
Packit c32a2d
      fi])
Packit c32a2d
Packit c32a2d
    AC_CACHE_CHECK([for -exported_symbols_list linker flag],
Packit c32a2d
      [lt_cv_ld_exported_symbols_list],
Packit c32a2d
      [lt_cv_ld_exported_symbols_list=no
Packit c32a2d
      save_LDFLAGS=$LDFLAGS
Packit c32a2d
      echo "_main" > conftest.sym
Packit c32a2d
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
Packit c32a2d
      AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
Packit c32a2d
	[lt_cv_ld_exported_symbols_list=yes],
Packit c32a2d
	[lt_cv_ld_exported_symbols_list=no])
Packit c32a2d
	LDFLAGS=$save_LDFLAGS
Packit c32a2d
    ])
Packit c32a2d
Packit c32a2d
    AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
Packit c32a2d
      [lt_cv_ld_force_load=no
Packit c32a2d
      cat > conftest.c << _LT_EOF
Packit c32a2d
int forced_loaded() { return 2;}
Packit c32a2d
_LT_EOF
Packit c32a2d
      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
Packit c32a2d
      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
Packit c32a2d
      echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
Packit c32a2d
      $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
Packit c32a2d
      echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
Packit c32a2d
      $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
Packit c32a2d
      cat > conftest.c << _LT_EOF
Packit c32a2d
int main() { return 0;}
Packit c32a2d
_LT_EOF
Packit c32a2d
      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
Packit c32a2d
      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
Packit c32a2d
      _lt_result=$?
Packit c32a2d
      if test -s conftest.err && $GREP force_load conftest.err; then
Packit c32a2d
	cat conftest.err >&AS_MESSAGE_LOG_FD
Packit c32a2d
      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
Packit c32a2d
	lt_cv_ld_force_load=yes
Packit c32a2d
      else
Packit c32a2d
	cat conftest.err >&AS_MESSAGE_LOG_FD
Packit c32a2d
      fi
Packit c32a2d
        rm -f conftest.err libconftest.a conftest conftest.c
Packit c32a2d
        rm -rf conftest.dSYM
Packit c32a2d
    ])
Packit c32a2d
    case $host_os in
Packit c32a2d
    rhapsody* | darwin1.[[012]])
Packit c32a2d
      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
Packit c32a2d
    darwin1.*)
Packit c32a2d
      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
Packit c32a2d
    darwin*) # darwin 5.x on
Packit c32a2d
      # if running on 10.5 or later, the deployment target defaults
Packit c32a2d
      # to the OS version, if on x86, and 10.4, the deployment
Packit c32a2d
      # target defaults to 10.4. Don't you love it?
Packit c32a2d
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
Packit c32a2d
	10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
Packit c32a2d
	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
Packit c32a2d
	10.[[012]][[,.]]*)
Packit c32a2d
	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
Packit c32a2d
	10.*)
Packit c32a2d
	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
Packit c32a2d
      esac
Packit c32a2d
    ;;
Packit c32a2d
  esac
Packit c32a2d
    if test yes = "$lt_cv_apple_cc_single_mod"; then
Packit c32a2d
      _lt_dar_single_mod='$single_module'
Packit c32a2d
    fi
Packit c32a2d
    if test yes = "$lt_cv_ld_exported_symbols_list"; then
Packit c32a2d
      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
Packit c32a2d
    else
Packit c32a2d
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
Packit c32a2d
    fi
Packit c32a2d
    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
Packit c32a2d
      _lt_dsymutil='~$DSYMUTIL $lib || :'
Packit c32a2d
    else
Packit c32a2d
      _lt_dsymutil=
Packit c32a2d
    fi
Packit c32a2d
    ;;
Packit c32a2d
  esac
Packit c32a2d
])
Packit c32a2d
Packit c32a2d
Packit c32a2d
# _LT_DARWIN_LINKER_FEATURES([TAG])
Packit c32a2d
# ---------------------------------
Packit c32a2d
# Checks for linker and compiler features on darwin
Packit c32a2d
m4_defun([_LT_DARWIN_LINKER_FEATURES],
Packit c32a2d
[
Packit c32a2d
  m4_require([_LT_REQUIRED_DARWIN_CHECKS])
Packit c32a2d
  _LT_TAGVAR(archive_cmds_need_lc, $1)=no
Packit c32a2d
  _LT_TAGVAR(hardcode_direct, $1)=no
Packit c32a2d
  _LT_TAGVAR(hardcode_automatic, $1)=yes
Packit c32a2d
  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
Packit c32a2d
  if test yes = "$lt_cv_ld_force_load"; then
Packit c32a2d
    _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 c32a2d
    m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes],
Packit c32a2d
                  [FC],  [_LT_TAGVAR(compiler_needs_object, $1)=yes])
Packit c32a2d
  else
Packit c32a2d
    _LT_TAGVAR(whole_archive_flag_spec, $1)=''
Packit c32a2d
  fi
Packit c32a2d
  _LT_TAGVAR(link_all_deplibs, $1)=yes
Packit c32a2d
  _LT_TAGVAR(allow_undefined_flag, $1)=$_lt_dar_allow_undefined
Packit c32a2d
  case $cc_basename in
Packit c32a2d
     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
Packit c32a2d
     *) _lt_dar_can_shared=$GCC ;;
Packit c32a2d
  esac
Packit c32a2d
  if test yes = "$_lt_dar_can_shared"; then
Packit c32a2d
    output_verbose_link_cmd=func_echo_all
Packit c32a2d
    _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 c32a2d
    _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
Packit c32a2d
    _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 c32a2d
    _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 c32a2d
    m4_if([$1], [CXX],
Packit c32a2d
[   if test yes != "$lt_cv_apple_cc_single_mod"; then
Packit c32a2d
      _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 c32a2d
      _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 c32a2d
    fi
Packit c32a2d
],[])
Packit c32a2d
  else
Packit c32a2d
  _LT_TAGVAR(ld_shlibs, $1)=no
Packit c32a2d
  fi
Packit c32a2d
])
Packit c32a2d
Packit c32a2d
# _LT_SYS_MODULE_PATH_AIX([TAGNAME])
Packit c32a2d
# ----------------------------------
Packit c32a2d
# Links a minimal program and checks the executable
Packit c32a2d
# for the system default hardcoded library path. In most cases,
Packit c32a2d
# this is /usr/lib:/lib, but when the MPI compilers are used
Packit c32a2d
# the location of the communication and MPI libs are included too.
Packit c32a2d
# If we don't find anything, use the default library path according
Packit c32a2d
# to the aix ld manual.
Packit c32a2d
# Store the results from the different compilers for each TAGNAME.
Packit c32a2d
# Allow to override them for all tags through lt_cv_aix_libpath.
Packit c32a2d
m4_defun([_LT_SYS_MODULE_PATH_AIX],
Packit c32a2d
[m4_require([_LT_DECL_SED])dnl
Packit c32a2d
if test set = "${lt_cv_aix_libpath+set}"; then
Packit c32a2d
  aix_libpath=$lt_cv_aix_libpath
Packit c32a2d
else
Packit c32a2d
  AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
Packit c32a2d
  [AC_LINK_IFELSE([AC_LANG_PROGRAM],[
Packit c32a2d
  lt_aix_libpath_sed='[
Packit c32a2d
      /Import File Strings/,/^$/ {
Packit c32a2d
	  /^0/ {
Packit c32a2d
	      s/^0  *\([^ ]*\) *$/\1/
Packit c32a2d
	      p
Packit c32a2d
	  }
Packit c32a2d
      }]'
Packit c32a2d
  _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
Packit c32a2d
  # Check for a 64-bit object if we didn't find anything.
Packit c32a2d
  if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
Packit c32a2d
    _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
Packit c32a2d
  fi],[])
Packit c32a2d
  if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
Packit c32a2d
    _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=/usr/lib:/lib
Packit c32a2d
  fi
Packit c32a2d
  ])
Packit c32a2d
  aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
Packit c32a2d
fi
Packit c32a2d
])# _LT_SYS_MODULE_PATH_AIX
Packit c32a2d
Packit c32a2d
Packit c32a2d
# _LT_SHELL_INIT(ARG)
Packit c32a2d
# -------------------
Packit c32a2d
m4_define([_LT_SHELL_INIT],
Packit c32a2d
[m4_divert_text([M4SH-INIT], [$1
Packit c32a2d
])])# _LT_SHELL_INIT
Packit c32a2d
Packit c32a2d
Packit c32a2d
Packit c32a2d
# _LT_PROG_ECHO_BACKSLASH
Packit c32a2d
# -----------------------
Packit c32a2d
# Find how we can fake an echo command that does not interpret backslash.
Packit c32a2d
# In particular, with Autoconf 2.60 or later we add some code to the start
Packit c32a2d
# of the generated configure script that will find a shell with a builtin
Packit c32a2d
# printf (that we can use as an echo command).
Packit c32a2d
m4_defun([_LT_PROG_ECHO_BACKSLASH],
Packit c32a2d
[ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
Packit c32a2d
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
Packit c32a2d
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
Packit c32a2d
Packit c32a2d
AC_MSG_CHECKING([how to print strings])
Packit c32a2d
# Test print first, because it will be a builtin if present.
Packit c32a2d
if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
Packit c32a2d
   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
Packit c32a2d
  ECHO='print -r --'
Packit c32a2d
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
Packit c32a2d
  ECHO='printf %s\n'
Packit c32a2d
else
Packit c32a2d
  # Use this function as a fallback that always works.
Packit c32a2d
  func_fallback_echo ()
Packit c32a2d
  {
Packit c32a2d
    eval 'cat <<_LTECHO_EOF
Packit c32a2d
$[]1
Packit c32a2d
_LTECHO_EOF'
Packit c32a2d
  }
Packit c32a2d
  ECHO='func_fallback_echo'
Packit c32a2d
fi
Packit c32a2d
Packit c32a2d
# func_echo_all arg...
Packit c32a2d
# Invoke $ECHO with all args, space-separated.
Packit c32a2d
func_echo_all ()
Packit c32a2d
{
Packit c32a2d
    $ECHO "$*"
Packit c32a2d
}
Packit c32a2d
Packit c32a2d
case $ECHO in
Packit c32a2d
  printf*) AC_MSG_RESULT([printf]) ;;
Packit c32a2d
  print*) AC_MSG_RESULT([print -r]) ;;
Packit c32a2d
  *) AC_MSG_RESULT([cat]) ;;
Packit c32a2d
esac
Packit c32a2d
Packit c32a2d
m4_ifdef([_AS_DETECT_SUGGESTED],
Packit c32a2d
[_AS_DETECT_SUGGESTED([
Packit c32a2d
  test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
Packit c32a2d
    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
Packit c32a2d
    ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
Packit c32a2d
    ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
Packit c32a2d
    PATH=/empty FPATH=/empty; export PATH FPATH
Packit c32a2d
    test "X`printf %s $ECHO`" = "X$ECHO" \
Packit c32a2d
      || test "X`print -r -- $ECHO`" = "X$ECHO" )])])
Packit c32a2d
Packit c32a2d
_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
Packit c32a2d
_LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
Packit c32a2d
])# _LT_PROG_ECHO_BACKSLASH
Packit c32a2d
Packit c32a2d
Packit c32a2d
# _LT_WITH_SYSROOT
Packit c32a2d
# ----------------
Packit c32a2d
AC_DEFUN([_LT_WITH_SYSROOT],
Packit c32a2d
[AC_MSG_CHECKING([for sysroot])
Packit c32a2d
AC_ARG_WITH([sysroot],
Packit c32a2d
[AS_HELP_STRING([--with-sysroot@<:@=DIR@:>@],
Packit c32a2d
  [Search for dependent libraries within DIR (or the compiler's sysroot
Packit c32a2d
   if not specified).])],
Packit c32a2d
[], [with_sysroot=no])
Packit c32a2d
Packit c32a2d
dnl lt_sysroot will always be passed unquoted.  We quote it here
Packit c32a2d
dnl in case the user passed a directory name.
Packit c32a2d
lt_sysroot=
Packit c32a2d
case $with_sysroot in #(
Packit c32a2d
 yes)
Packit c32a2d
   if test yes = "$GCC"; then
Packit c32a2d
     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
Packit c32a2d
   fi
Packit c32a2d
   ;; #(
Packit c32a2d
 /*)
Packit c32a2d
   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
Packit c32a2d
   ;; #(
Packit c32a2d
 no|'')
Packit c32a2d
   ;; #(
Packit c32a2d
 *)
Packit c32a2d
   AC_MSG_RESULT([$with_sysroot])
Packit c32a2d
   AC_MSG_ERROR([The sysroot must be an absolute path.])
Packit c32a2d
   ;;
Packit c32a2d
esac
Packit c32a2d
Packit c32a2d
 AC_MSG_RESULT([${lt_sysroot:-no}])
Packit c32a2d
_LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
Packit c32a2d
[dependent libraries, and where our libraries should be installed.])])
Packit c32a2d
Packit c32a2d
# _LT_ENABLE_LOCK
Packit c32a2d
# ---------------
Packit c32a2d
m4_defun([_LT_ENABLE_LOCK],
Packit c32a2d
[AC_ARG_ENABLE([libtool-lock],
Packit c32a2d
  [AS_HELP_STRING([--disable-libtool-lock],
Packit c32a2d
    [avoid locking (might break parallel builds)])])
Packit c32a2d
test no = "$enable_libtool_lock" || enable_libtool_lock=yes
Packit c32a2d
Packit c32a2d
# Some flags need to be propagated to the compiler or linker for good
Packit c32a2d
# libtool support.
Packit c32a2d
case $host in
Packit c32a2d
ia64-*-hpux*)
Packit c32a2d
  # Find out what ABI is being produced by ac_compile, and set mode
Packit c32a2d
  # options accordingly.
Packit c32a2d
  echo 'int i;' > conftest.$ac_ext
Packit c32a2d
  if AC_TRY_EVAL(ac_compile); then
Packit c32a2d
    case `/usr/bin/file conftest.$ac_objext` in
Packit c32a2d
      *ELF-32*)
Packit c32a2d
	HPUX_IA64_MODE=32
Packit c32a2d
	;;
Packit c32a2d
      *ELF-64*)
Packit c32a2d
	HPUX_IA64_MODE=64
Packit c32a2d
	;;
Packit c32a2d
    esac
Packit c32a2d
  fi
Packit c32a2d
  rm -rf conftest*
Packit c32a2d
  ;;
Packit c32a2d
*-*-irix6*)
Packit c32a2d
  # Find out what ABI is being produced by ac_compile, and set linker
Packit c32a2d
  # options accordingly.
Packit c32a2d
  echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
Packit c32a2d
  if AC_TRY_EVAL(ac_compile); then
Packit c32a2d
    if test yes = "$lt_cv_prog_gnu_ld"; then
Packit c32a2d
      case `/usr/bin/file conftest.$ac_objext` in
Packit c32a2d
	*32-bit*)
Packit c32a2d
	  LD="${LD-ld} -melf32bsmip"
Packit c32a2d
	  ;;
Packit c32a2d
	*N32*)
Packit c32a2d
	  LD="${LD-ld} -melf32bmipn32"
Packit c32a2d
	  ;;
Packit c32a2d
	*64-bit*)
Packit c32a2d
	  LD="${LD-ld} -melf64bmip"
Packit c32a2d
	;;
Packit c32a2d
      esac
Packit c32a2d
    else
Packit c32a2d
      case `/usr/bin/file conftest.$ac_objext` in
Packit c32a2d
	*32-bit*)
Packit c32a2d
	  LD="${LD-ld} -32"
Packit c32a2d
	  ;;
Packit c32a2d
	*N32*)
Packit c32a2d
	  LD="${LD-ld} -n32"
Packit c32a2d
	  ;;
Packit c32a2d
	*64-bit*)
Packit c32a2d
	  LD="${LD-ld} -64"
Packit c32a2d
	  ;;
Packit c32a2d
      esac
Packit c32a2d
    fi
Packit c32a2d
  fi
Packit c32a2d
  rm -rf conftest*
Packit c32a2d
  ;;
Packit c32a2d
Packit c32a2d
mips64*-*linux*)
Packit c32a2d
  # Find out what ABI is being produced by ac_compile, and set linker
Packit c32a2d
  # options accordingly.
Packit c32a2d
  echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
Packit c32a2d
  if AC_TRY_EVAL(ac_compile); then
Packit c32a2d
    emul=elf
Packit c32a2d
    case `/usr/bin/file conftest.$ac_objext` in
Packit c32a2d
      *32-bit*)
Packit c32a2d
	emul="${emul}32"
Packit c32a2d
	;;
Packit c32a2d
      *64-bit*)
Packit c32a2d
	emul="${emul}64"
Packit c32a2d
	;;
Packit c32a2d
    esac
Packit c32a2d
    case `/usr/bin/file conftest.$ac_objext` in
Packit c32a2d
      *MSB*)
Packit c32a2d
	emul="${emul}btsmip"
Packit c32a2d
	;;
Packit c32a2d
      *LSB*)
Packit c32a2d
	emul="${emul}ltsmip"
Packit c32a2d
	;;
Packit c32a2d
    esac
Packit c32a2d
    case `/usr/bin/file conftest.$ac_objext` in
Packit c32a2d
      *N32*)
Packit c32a2d
	emul="${emul}n32"
Packit c32a2d
	;;
Packit c32a2d
    esac
Packit c32a2d
    LD="${LD-ld} -m $emul"
Packit c32a2d
  fi
Packit c32a2d
  rm -rf conftest*
Packit c32a2d
  ;;
Packit c32a2d
Packit c32a2d
x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
Packit c32a2d
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
Packit c32a2d
  # Find out what ABI is being produced by ac_compile, and set linker
Packit c32a2d
  # options accordingly.  Note that the listed cases only cover the
Packit c32a2d
  # situations where additional linker options are needed (such as when
Packit c32a2d
  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
Packit c32a2d
  # vice versa); the common cases where no linker options are needed do
Packit c32a2d
  # not appear in the list.
Packit c32a2d
  echo 'int i;' > conftest.$ac_ext
Packit c32a2d
  if AC_TRY_EVAL(ac_compile); then
Packit c32a2d
    case `/usr/bin/file conftest.o` in
Packit c32a2d
      *32-bit*)
Packit c32a2d
	case $host in
Packit c32a2d
	  x86_64-*kfreebsd*-gnu)
Packit c32a2d
	    LD="${LD-ld} -m elf_i386_fbsd"
Packit c32a2d
	    ;;
Packit c32a2d
	  x86_64-*linux*)
Packit c32a2d
	    case `/usr/bin/file conftest.o` in
Packit c32a2d
	      *x86-64*)
Packit c32a2d
		LD="${LD-ld} -m elf32_x86_64"
Packit c32a2d
		;;
Packit c32a2d
	      *)
Packit c32a2d
		LD="${LD-ld} -m elf_i386"
Packit c32a2d
		;;
Packit c32a2d
	    esac
Packit c32a2d
	    ;;
Packit c32a2d
	  powerpc64le-*linux*)
Packit c32a2d
	    LD="${LD-ld} -m elf32lppclinux"
Packit c32a2d
	    ;;
Packit c32a2d
	  powerpc64-*linux*)
Packit c32a2d
	    LD="${LD-ld} -m elf32ppclinux"
Packit c32a2d
	    ;;
Packit c32a2d
	  s390x-*linux*)
Packit c32a2d
	    LD="${LD-ld} -m elf_s390"
Packit c32a2d
	    ;;
Packit c32a2d
	  sparc64-*linux*)
Packit c32a2d
	    LD="${LD-ld} -m elf32_sparc"
Packit c32a2d
	    ;;
Packit c32a2d
	esac
Packit c32a2d
	;;
Packit c32a2d
      *64-bit*)
Packit c32a2d
	case $host in
Packit c32a2d
	  x86_64-*kfreebsd*-gnu)
Packit c32a2d
	    LD="${LD-ld} -m elf_x86_64_fbsd"
Packit c32a2d
	    ;;
Packit c32a2d
	  x86_64-*linux*)
Packit c32a2d
	    LD="${LD-ld} -m elf_x86_64"
Packit c32a2d
	    ;;
Packit c32a2d
	  powerpcle-*linux*)
Packit c32a2d
	    LD="${LD-ld} -m elf64lppc"
Packit c32a2d
	    ;;
Packit c32a2d
	  powerpc-*linux*)
Packit c32a2d
	    LD="${LD-ld} -m elf64ppc"
Packit c32a2d
	    ;;
Packit c32a2d
	  s390*-*linux*|s390*-*tpf*)
Packit c32a2d
	    LD="${LD-ld} -m elf64_s390"
Packit c32a2d
	    ;;
Packit c32a2d
	  sparc*-*linux*)
Packit c32a2d
	    LD="${LD-ld} -m elf64_sparc"
Packit c32a2d
	    ;;
Packit c32a2d
	esac
Packit c32a2d
	;;
Packit c32a2d
    esac
Packit c32a2d
  fi
Packit c32a2d
  rm -rf conftest*
Packit c32a2d
  ;;
Packit c32a2d
Packit c32a2d
*-*-sco3.2v5*)
Packit c32a2d
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
Packit c32a2d
  SAVE_CFLAGS=$CFLAGS
Packit c32a2d
  CFLAGS="$CFLAGS -belf"
Packit c32a2d
  AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
Packit c32a2d
    [AC_LANG_PUSH(C)
Packit c32a2d
     AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
Packit c32a2d
     AC_LANG_POP])
Packit c32a2d
  if test yes != "$lt_cv_cc_needs_belf"; then
Packit c32a2d
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
Packit c32a2d
    CFLAGS=$SAVE_CFLAGS
Packit c32a2d
  fi
Packit c32a2d
  ;;
Packit c32a2d
*-*solaris*)
Packit c32a2d
  # Find out what ABI is being produced by ac_compile, and set linker
Packit c32a2d
  # options accordingly.
Packit c32a2d
  echo 'int i;' > conftest.$ac_ext
Packit c32a2d
  if AC_TRY_EVAL(ac_compile); then
Packit c32a2d
    case `/usr/bin/file conftest.o` in
Packit c32a2d
    *64-bit*)
Packit c32a2d
      case $lt_cv_prog_gnu_ld in
Packit c32a2d
      yes*)
Packit c32a2d
        case $host in
Packit c32a2d
        i?86-*-solaris*|x86_64-*-solaris*)
Packit c32a2d
          LD="${LD-ld} -m elf_x86_64"
Packit c32a2d
          ;;
Packit c32a2d
        sparc*-*-solaris*)
Packit c32a2d
          LD="${LD-ld} -m elf64_sparc"
Packit c32a2d
          ;;
Packit c32a2d
        esac
Packit c32a2d
        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
Packit c32a2d
        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
Packit c32a2d
          LD=${LD-ld}_sol2
Packit c32a2d
        fi
Packit c32a2d
        ;;
Packit c32a2d
      *)
Packit c32a2d
	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
Packit c32a2d
	  LD="${LD-ld} -64"
Packit c32a2d
	fi
Packit c32a2d
	;;
Packit c32a2d
      esac
Packit c32a2d
      ;;
Packit c32a2d
    esac
Packit c32a2d
  fi
Packit c32a2d
  rm -rf conftest*
Packit c32a2d
  ;;
Packit c32a2d
esac
Packit c32a2d
Packit c32a2d
need_locks=$enable_libtool_lock
Packit c32a2d
])# _LT_ENABLE_LOCK
Packit c32a2d
Packit c32a2d
Packit c32a2d
# _LT_PROG_AR
Packit c32a2d
# -----------
Packit c32a2d
m4_defun([_LT_PROG_AR],
Packit c32a2d
[AC_CHECK_TOOLS(AR, [ar], false)
Packit c32a2d
: ${AR=ar}
Packit c32a2d
: ${AR_FLAGS=cru}
Packit c32a2d
_LT_DECL([], [AR], [1], [The archiver])
Packit c32a2d
_LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive])
Packit c32a2d
Packit c32a2d
AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file],
Packit c32a2d
  [lt_cv_ar_at_file=no
Packit c32a2d
   AC_COMPILE_IFELSE([AC_LANG_PROGRAM],
Packit c32a2d
     [echo conftest.$ac_objext > conftest.lst
Packit c32a2d
      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD'
Packit c32a2d
      AC_TRY_EVAL([lt_ar_try])
Packit c32a2d
      if test 0 -eq "$ac_status"; then
Packit c32a2d
	# Ensure the archiver fails upon bogus file names.
Packit c32a2d
	rm -f conftest.$ac_objext libconftest.a
Packit c32a2d
	AC_TRY_EVAL([lt_ar_try])
Packit c32a2d
	if test 0 -ne "$ac_status"; then
Packit c32a2d
          lt_cv_ar_at_file=@
Packit c32a2d
        fi
Packit c32a2d
      fi
Packit c32a2d
      rm -f conftest.* libconftest.a
Packit c32a2d
     ])
Packit c32a2d
  ])
Packit c32a2d
Packit c32a2d
if test no = "$lt_cv_ar_at_file"; then
Packit c32a2d
  archiver_list_spec=
Packit c32a2d
else
Packit c32a2d
  archiver_list_spec=$lt_cv_ar_at_file
Packit c32a2d
fi
Packit c32a2d
_LT_DECL([], [archiver_list_spec], [1],
Packit c32a2d
  [How to feed a file listing to the archiver])
Packit c32a2d
])# _LT_PROG_AR
Packit c32a2d
Packit c32a2d
Packit c32a2d
# _LT_CMD_OLD_ARCHIVE
Packit c32a2d
# -------------------
Packit c32a2d
m4_defun([_LT_CMD_OLD_ARCHIVE],
Packit c32a2d
[_LT_PROG_AR
Packit c32a2d
Packit c32a2d
AC_CHECK_TOOL(STRIP, strip, :)
Packit c32a2d
test -z "$STRIP" && STRIP=:
Packit c32a2d
_LT_DECL([], [STRIP], [1], [A symbol stripping program])
Packit c32a2d
Packit c32a2d
AC_CHECK_TOOL(RANLIB, ranlib, :)
Packit c32a2d
test -z "$RANLIB" && RANLIB=:
Packit c32a2d
_LT_DECL([], [RANLIB], [1],
Packit c32a2d
    [Commands used to install an old-style archive])
Packit c32a2d
Packit c32a2d
# Determine commands to create old-style static archives.
Packit c32a2d
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
Packit c32a2d
old_postinstall_cmds='chmod 644 $oldlib'
Packit c32a2d
old_postuninstall_cmds=
Packit c32a2d
Packit c32a2d
if test -n "$RANLIB"; then
Packit c32a2d
  case $host_os in
Packit c32a2d
  bitrig* | openbsd*)
Packit c32a2d
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
Packit c32a2d
    ;;
Packit c32a2d
  *)
Packit c32a2d
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
Packit c32a2d
    ;;
Packit c32a2d
  esac
Packit c32a2d
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
Packit c32a2d
fi
Packit c32a2d
Packit c32a2d
case $host_os in
Packit c32a2d
  darwin*)
Packit c32a2d
    lock_old_archive_extraction=yes ;;
Packit c32a2d
  *)
Packit c32a2d
    lock_old_archive_extraction=no ;;
Packit c32a2d
esac
Packit c32a2d
_LT_DECL([], [old_postinstall_cmds], [2])
Packit c32a2d
_LT_DECL([], [old_postuninstall_cmds], [2])
Packit c32a2d
_LT_TAGDECL([], [old_archive_cmds], [2],
Packit c32a2d
    [Commands used to build an old-style archive])
Packit c32a2d
_LT_DECL([], [lock_old_archive_extraction], [0],
Packit c32a2d
    [Whether to use a lock for old archive extraction])
Packit c32a2d
])# _LT_CMD_OLD_ARCHIVE
Packit c32a2d
Packit c32a2d
Packit c32a2d
# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
Packit c32a2d
#		[OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
Packit c32a2d
# ----------------------------------------------------------------
Packit c32a2d
# Check whether the given compiler option works
Packit c32a2d
AC_DEFUN([_LT_COMPILER_OPTION],
Packit c32a2d
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
Packit c32a2d
m4_require([_LT_DECL_SED])dnl
Packit c32a2d
AC_CACHE_CHECK([$1], [$2],
Packit c32a2d
  [$2=no
Packit c32a2d
   m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
Packit c32a2d
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Packit c32a2d
   lt_compiler_flag="$3"  ## exclude from sc_useless_quotes_in_assignment
Packit c32a2d
   # Insert the option either (1) after the last *FLAGS variable, or
Packit c32a2d
   # (2) before a word containing "conftest.", or (3) at the end.
Packit c32a2d
   # Note that $ac_compile itself does not contain backslashes and begins
Packit c32a2d
   # with a dollar sign (not a hyphen), so the echo should work correctly.
Packit c32a2d
   # The option is referenced via a variable to avoid confusing sed.
Packit c32a2d
   lt_compile=`echo "$ac_compile" | $SED \
Packit c32a2d
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
Packit c32a2d
   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
Packit c32a2d
   -e 's:$: $lt_compiler_flag:'`
Packit c32a2d
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
Packit c32a2d
   (eval "$lt_compile" 2>conftest.err)
Packit c32a2d
   ac_status=$?
Packit c32a2d
   cat conftest.err >&AS_MESSAGE_LOG_FD
Packit c32a2d
   echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
Packit c32a2d
   if (exit $ac_status) && test -s "$ac_outfile"; then
Packit c32a2d
     # The compiler can only warn and ignore the option if not recognized
Packit c32a2d
     # So say no if there are warnings other than the usual output.
Packit c32a2d
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
Packit c32a2d
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
Packit c32a2d
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
Packit c32a2d
       $2=yes
Packit c32a2d
     fi
Packit c32a2d
   fi
Packit c32a2d
   $RM conftest*
Packit c32a2d
])
Packit c32a2d
Packit c32a2d
if test yes = "[$]$2"; then
Packit c32a2d
    m4_if([$5], , :, [$5])
Packit c32a2d
else
Packit c32a2d
    m4_if([$6], , :, [$6])
Packit c32a2d
fi
Packit c32a2d
])# _LT_COMPILER_OPTION
Packit c32a2d
Packit c32a2d
# Old name:
Packit c32a2d
AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
Packit c32a2d
dnl aclocal-1.4 backwards compatibility:
Packit c32a2d
dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
Packit c32a2d
Packit c32a2d
Packit c32a2d
# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
Packit c32a2d
#                  [ACTION-SUCCESS], [ACTION-FAILURE])
Packit c32a2d
# ----------------------------------------------------
Packit c32a2d
# Check whether the given linker option works
Packit c32a2d
AC_DEFUN([_LT_LINKER_OPTION],
Packit c32a2d
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
Packit c32a2d
m4_require([_LT_DECL_SED])dnl
Packit c32a2d
AC_CACHE_CHECK([$1], [$2],
Packit c32a2d
  [$2=no
Packit c32a2d
   save_LDFLAGS=$LDFLAGS
Packit c32a2d
   LDFLAGS="$LDFLAGS $3"
Packit c32a2d
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
Packit c32a2d
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
Packit c32a2d
     # The linker can only warn and ignore the option if not recognized
Packit c32a2d
     # So say no if there are warnings
Packit c32a2d
     if test -s conftest.err; then
Packit c32a2d
       # Append any errors to the config.log.
Packit c32a2d
       cat conftest.err 1>&AS_MESSAGE_LOG_FD
Packit c32a2d
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
Packit c32a2d
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
Packit c32a2d
       if diff conftest.exp conftest.er2 >/dev/null; then
Packit c32a2d
         $2=yes
Packit c32a2d
       fi
Packit c32a2d
     else
Packit c32a2d
       $2=yes
Packit c32a2d
     fi
Packit c32a2d
   fi
Packit c32a2d
   $RM -r conftest*
Packit c32a2d
   LDFLAGS=$save_LDFLAGS
Packit c32a2d
])
Packit c32a2d
Packit c32a2d
if test yes = "[$]$2"; then
Packit c32a2d
    m4_if([$4], , :, [$4])
Packit c32a2d
else
Packit c32a2d
    m4_if([$5], , :, [$5])
Packit c32a2d
fi
Packit c32a2d
])# _LT_LINKER_OPTION
Packit c32a2d
Packit c32a2d
# Old name:
Packit c32a2d
AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
Packit c32a2d
dnl aclocal-1.4 backwards compatibility:
Packit c32a2d
dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
Packit c32a2d
Packit c32a2d
Packit c32a2d
# LT_CMD_MAX_LEN
Packit c32a2d
#---------------
Packit c32a2d
AC_DEFUN([LT_CMD_MAX_LEN],
Packit c32a2d
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
Packit c32a2d
# find the maximum length of command line arguments
Packit c32a2d
AC_MSG_CHECKING([the maximum length of command line arguments])
Packit c32a2d
AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
Packit c32a2d
  i=0
Packit c32a2d
  teststring=ABCD
Packit c32a2d
Packit c32a2d
  case $build_os in
Packit c32a2d
  msdosdjgpp*)
Packit c32a2d
    # On DJGPP, this test can blow up pretty badly due to problems in libc
Packit c32a2d
    # (any single argument exceeding 2000 bytes causes a buffer overrun
Packit c32a2d
    # during glob expansion).  Even if it were fixed, the result of this
Packit c32a2d
    # check would be larger than it should be.
Packit c32a2d
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
Packit c32a2d
    ;;
Packit c32a2d
Packit c32a2d
  gnu*)
Packit c32a2d
    # Under GNU Hurd, this test is not required because there is
Packit c32a2d
    # no limit to the length of command line arguments.
Packit c32a2d
    # Libtool will interpret -1 as no limit whatsoever
Packit c32a2d
    lt_cv_sys_max_cmd_len=-1;
Packit c32a2d
    ;;
Packit c32a2d
Packit c32a2d
  cygwin* | mingw* | cegcc*)
Packit c32a2d
    # On Win9x/ME, this test blows up -- it succeeds, but takes
Packit c32a2d
    # about 5 minutes as the teststring grows exponentially.
Packit c32a2d
    # Worse, since 9x/ME are not pre-emptively multitasking,
Packit c32a2d
    # you end up with a "frozen" computer, even though with patience
Packit c32a2d
    # the test eventually succeeds (with a max line length of 256k).
Packit c32a2d
    # Instead, let's just punt: use the minimum linelength reported by
Packit c32a2d
    # all of the supported platforms: 8192 (on NT/2K/XP).
Packit c32a2d
    lt_cv_sys_max_cmd_len=8192;
Packit c32a2d
    ;;
Packit c32a2d
Packit c32a2d
  mint*)
Packit c32a2d
    # On MiNT this can take a long time and run out of memory.
Packit c32a2d
    lt_cv_sys_max_cmd_len=8192;
Packit c32a2d
    ;;
Packit c32a2d
Packit c32a2d
  amigaos*)
Packit c32a2d
    # On AmigaOS with pdksh, this test takes hours, literally.
Packit c32a2d
    # So we just punt and use a minimum line length of 8192.
Packit c32a2d
    lt_cv_sys_max_cmd_len=8192;
Packit c32a2d
    ;;
Packit c32a2d
Packit c32a2d
  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
Packit c32a2d
    # This has been around since 386BSD, at least.  Likely further.
Packit c32a2d
    if test -x /sbin/sysctl; then
Packit c32a2d
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
Packit c32a2d
    elif test -x /usr/sbin/sysctl; then
Packit c32a2d
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
Packit c32a2d
    else
Packit c32a2d
      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
Packit c32a2d
    fi
Packit c32a2d
    # And add a safety zone
Packit c32a2d
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
Packit c32a2d
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
Packit c32a2d
    ;;
Packit c32a2d
Packit c32a2d
  interix*)
Packit c32a2d
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
Packit c32a2d
    lt_cv_sys_max_cmd_len=196608
Packit c32a2d
    ;;
Packit c32a2d
Packit c32a2d
  os2*)
Packit c32a2d
    # The test takes a long time on OS/2.
Packit c32a2d
    lt_cv_sys_max_cmd_len=8192
Packit c32a2d
    ;;
Packit c32a2d
Packit c32a2d
  osf*)
Packit c32a2d
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
Packit c32a2d
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
Packit c32a2d
    # nice to cause kernel panics so lets avoid the loop below.
Packit c32a2d
    # First set a reasonable default.
Packit c32a2d
    lt_cv_sys_max_cmd_len=16384
Packit c32a2d
    #
Packit c32a2d
    if test -x /sbin/sysconfig; then
Packit c32a2d
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
Packit c32a2d
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
Packit c32a2d
      esac
Packit c32a2d
    fi
Packit c32a2d
    ;;
Packit c32a2d
  sco3.2v5*)
Packit c32a2d
    lt_cv_sys_max_cmd_len=102400
Packit c32a2d
    ;;
Packit c32a2d
  sysv5* | sco5v6* | sysv4.2uw2*)
Packit c32a2d
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
Packit c32a2d
    if test -n "$kargmax"; then
Packit c32a2d
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[	 ]]//'`
Packit c32a2d
    else
Packit c32a2d
      lt_cv_sys_max_cmd_len=32768
Packit c32a2d
    fi
Packit c32a2d
    ;;
Packit c32a2d
  *)
Packit c32a2d
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
Packit c32a2d
    if test -n "$lt_cv_sys_max_cmd_len" && \
Packit c32a2d
       test undefined != "$lt_cv_sys_max_cmd_len"; then
Packit c32a2d
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
Packit c32a2d
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
Packit c32a2d
    else
Packit c32a2d
      # Make teststring a little bigger before we do anything with it.
Packit c32a2d
      # a 1K string should be a reasonable start.
Packit c32a2d
      for i in 1 2 3 4 5 6 7 8; do
Packit c32a2d
        teststring=$teststring$teststring
Packit c32a2d
      done
Packit c32a2d
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
Packit c32a2d
      # If test is not a shell built-in, we'll probably end up computing a
Packit c32a2d
      # maximum length that is only half of the actual maximum length, but
Packit c32a2d
      # we can't tell.
Packit c32a2d
      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
Packit c32a2d
	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
Packit c32a2d
	      test 17 != "$i" # 1/2 MB should be enough
Packit c32a2d
      do
Packit c32a2d
        i=`expr $i + 1`
Packit c32a2d
        teststring=$teststring$teststring
Packit c32a2d
      done
Packit c32a2d
      # Only check the string length outside the loop.
Packit c32a2d
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
Packit c32a2d
      teststring=
Packit c32a2d
      # Add a significant safety factor because C++ compilers can tack on
Packit c32a2d
      # massive amounts of additional arguments before passing them to the
Packit c32a2d
      # linker.  It appears as though 1/2 is a usable value.
Packit c32a2d
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
Packit c32a2d
    fi
Packit c32a2d
    ;;
Packit c32a2d
  esac
Packit c32a2d
])
Packit c32a2d
if test -n "$lt_cv_sys_max_cmd_len"; then
Packit c32a2d
  AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
Packit c32a2d
else
Packit c32a2d
  AC_MSG_RESULT(none)
Packit c32a2d
fi
Packit c32a2d
max_cmd_len=$lt_cv_sys_max_cmd_len
Packit c32a2d
_LT_DECL([], [max_cmd_len], [0],
Packit c32a2d
    [What is the maximum length of a command?])
Packit c32a2d
])# LT_CMD_MAX_LEN
Packit c32a2d
Packit c32a2d
# Old name:
Packit c32a2d
AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
Packit c32a2d
dnl aclocal-1.4 backwards compatibility:
Packit c32a2d
dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
Packit c32a2d
Packit c32a2d
Packit c32a2d
# _LT_HEADER_DLFCN
Packit c32a2d
# ----------------
Packit c32a2d
m4_defun([_LT_HEADER_DLFCN],
Packit c32a2d
[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
Packit c32a2d
])# _LT_HEADER_DLFCN
Packit c32a2d
Packit c32a2d
Packit c32a2d
# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
Packit c32a2d
#                      ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
Packit c32a2d
# ----------------------------------------------------------------
Packit c32a2d
m4_defun([_LT_TRY_DLOPEN_SELF],
Packit c32a2d
[m4_require([_LT_HEADER_DLFCN])dnl
Packit c32a2d
if test yes = "$cross_compiling"; then :
Packit c32a2d
  [$4]
Packit c32a2d
else
Packit c32a2d
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
Packit c32a2d
  lt_status=$lt_dlunknown
Packit c32a2d
  cat > conftest.$ac_ext <<_LT_EOF
Packit c32a2d
[#line $LINENO "configure"
Packit c32a2d
#include "confdefs.h"
Packit c32a2d
Packit c32a2d
#if HAVE_DLFCN_H
Packit c32a2d
#include <dlfcn.h>
Packit c32a2d
#endif
Packit c32a2d
Packit c32a2d
#include <stdio.h>
Packit c32a2d
Packit c32a2d
#ifdef RTLD_GLOBAL
Packit c32a2d
#  define LT_DLGLOBAL		RTLD_GLOBAL
Packit c32a2d
#else
Packit c32a2d
#  ifdef DL_GLOBAL
Packit c32a2d
#    define LT_DLGLOBAL		DL_GLOBAL
Packit c32a2d
#  else
Packit c32a2d
#    define LT_DLGLOBAL		0
Packit c32a2d
#  endif
Packit c32a2d
#endif
Packit c32a2d
Packit c32a2d
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
Packit c32a2d
   find out it does not work in some platform. */
Packit c32a2d
#ifndef LT_DLLAZY_OR_NOW
Packit c32a2d
#  ifdef RTLD_LAZY
Packit c32a2d
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
Packit c32a2d
#  else
Packit c32a2d
#    ifdef DL_LAZY
Packit c32a2d
#      define LT_DLLAZY_OR_NOW		DL_LAZY
Packit c32a2d
#    else
Packit c32a2d
#      ifdef RTLD_NOW
Packit c32a2d
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
Packit c32a2d
#      else
Packit c32a2d
#        ifdef DL_NOW
Packit c32a2d
#          define LT_DLLAZY_OR_NOW	DL_NOW
Packit c32a2d
#        else
Packit c32a2d
#          define LT_DLLAZY_OR_NOW	0
Packit c32a2d
#        endif
Packit c32a2d
#      endif
Packit c32a2d
#    endif
Packit c32a2d
#  endif
Packit c32a2d
#endif
Packit c32a2d
Packit c32a2d
/* When -fvisibility=hidden is used, assume the code has been annotated
Packit c32a2d
   correspondingly for the symbols needed.  */
Packit c32a2d
#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
Packit c32a2d
int fnord () __attribute__((visibility("default")));
Packit c32a2d
#endif
Packit c32a2d
Packit c32a2d
int fnord () { return 42; }
Packit c32a2d
int main ()
Packit c32a2d
{
Packit c32a2d
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
Packit c32a2d
  int status = $lt_dlunknown;
Packit c32a2d
Packit c32a2d
  if (self)
Packit c32a2d
    {
Packit c32a2d
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
Packit c32a2d
      else
Packit c32a2d
        {
Packit c32a2d
	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
Packit c32a2d
          else puts (dlerror ());
Packit c32a2d
	}
Packit c32a2d
      /* dlclose (self); */
Packit c32a2d
    }
Packit c32a2d
  else
Packit c32a2d
    puts (dlerror ());
Packit c32a2d
Packit c32a2d
  return status;
Packit c32a2d
}]
Packit c32a2d
_LT_EOF
Packit c32a2d
  if AC_TRY_EVAL(ac_link) && test -s "conftest$ac_exeext" 2>/dev/null; then
Packit c32a2d
    (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
Packit c32a2d
    lt_status=$?
Packit c32a2d
    case x$lt_status in
Packit c32a2d
      x$lt_dlno_uscore) $1 ;;
Packit c32a2d
      x$lt_dlneed_uscore) $2 ;;
Packit c32a2d
      x$lt_dlunknown|x*) $3 ;;
Packit c32a2d
    esac
Packit c32a2d
  else :
Packit c32a2d
    # compilation failed
Packit c32a2d
    $3
Packit c32a2d
  fi
Packit c32a2d
fi
Packit c32a2d
rm -fr conftest*
Packit c32a2d
])# _LT_TRY_DLOPEN_SELF
Packit c32a2d
Packit c32a2d
Packit c32a2d
# LT_SYS_DLOPEN_SELF
Packit c32a2d
# ------------------
Packit c32a2d
AC_DEFUN([LT_SYS_DLOPEN_SELF],
Packit c32a2d
[m4_require([_LT_HEADER_DLFCN])dnl
Packit c32a2d
if test yes != "$enable_dlopen"; then
Packit c32a2d
  enable_dlopen=unknown
Packit c32a2d
  enable_dlopen_self=unknown
Packit c32a2d
  enable_dlopen_self_static=unknown
Packit c32a2d
else
Packit c32a2d
  lt_cv_dlopen=no
Packit c32a2d
  lt_cv_dlopen_libs=
Packit c32a2d
Packit c32a2d
  case $host_os in
Packit c32a2d
  beos*)
Packit c32a2d
    lt_cv_dlopen=load_add_on
Packit c32a2d
    lt_cv_dlopen_libs=
Packit c32a2d
    lt_cv_dlopen_self=yes
Packit c32a2d
    ;;
Packit c32a2d
Packit c32a2d
  mingw* | pw32* | cegcc*)
Packit c32a2d
    lt_cv_dlopen=LoadLibrary
Packit c32a2d
    lt_cv_dlopen_libs=
Packit c32a2d
    ;;
Packit c32a2d
Packit c32a2d
  cygwin*)
Packit c32a2d
    lt_cv_dlopen=dlopen
Packit c32a2d
    lt_cv_dlopen_libs=
Packit c32a2d
    ;;
Packit c32a2d
Packit c32a2d
  darwin*)
Packit c32a2d
    # if libdl is installed we need to link against it
Packit c32a2d
    AC_CHECK_LIB([dl], [dlopen],
Packit c32a2d
		[lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl],[
Packit c32a2d
    lt_cv_dlopen=dyld
Packit c32a2d
    lt_cv_dlopen_libs=
Packit c32a2d
    lt_cv_dlopen_self=yes
Packit c32a2d
    ])
Packit c32a2d
    ;;
Packit c32a2d
Packit c32a2d
  tpf*)
Packit c32a2d
    # Don't try to run any link tests for TPF.  We know it's impossible
Packit c32a2d
    # because TPF is a cross-compiler, and we know how we open DSOs.
Packit c32a2d
    lt_cv_dlopen=dlopen
Packit c32a2d
    lt_cv_dlopen_libs=
Packit c32a2d
    lt_cv_dlopen_self=no
Packit c32a2d
    ;;
Packit c32a2d
Packit c32a2d
  *)
Packit c32a2d
    AC_CHECK_FUNC([shl_load],
Packit c32a2d
	  [lt_cv_dlopen=shl_load],
Packit c32a2d
      [AC_CHECK_LIB([dld], [shl_load],
Packit c32a2d
	    [lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld],
Packit c32a2d
	[AC_CHECK_FUNC([dlopen],
Packit c32a2d
	      [lt_cv_dlopen=dlopen],
Packit c32a2d
	  [AC_CHECK_LIB([dl], [dlopen],
Packit c32a2d
		[lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl],
Packit c32a2d
	    [AC_CHECK_LIB([svld], [dlopen],
Packit c32a2d
		  [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld],
Packit c32a2d
	      [AC_CHECK_LIB([dld], [dld_link],
Packit c32a2d
		    [lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld])
Packit c32a2d
	      ])
Packit c32a2d
	    ])
Packit c32a2d
	  ])
Packit c32a2d
	])
Packit c32a2d
      ])
Packit c32a2d
    ;;
Packit c32a2d
  esac
Packit c32a2d
Packit c32a2d
  if test no = "$lt_cv_dlopen"; then
Packit c32a2d
    enable_dlopen=no
Packit c32a2d
  else
Packit c32a2d
    enable_dlopen=yes
Packit c32a2d
  fi
Packit c32a2d
Packit c32a2d
  case $lt_cv_dlopen in
Packit c32a2d
  dlopen)
Packit c32a2d
    save_CPPFLAGS=$CPPFLAGS
Packit c32a2d
    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
Packit c32a2d
Packit c32a2d
    save_LDFLAGS=$LDFLAGS
Packit c32a2d
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
Packit c32a2d
Packit c32a2d
    save_LIBS=$LIBS
Packit c32a2d
    LIBS="$lt_cv_dlopen_libs $LIBS"
Packit c32a2d
Packit c32a2d
    AC_CACHE_CHECK([whether a program can dlopen itself],
Packit c32a2d
	  lt_cv_dlopen_self, [dnl
Packit c32a2d
	  _LT_TRY_DLOPEN_SELF(
Packit c32a2d
	    lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
Packit c32a2d
	    lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
Packit c32a2d
    ])
Packit c32a2d
Packit c32a2d
    if test yes = "$lt_cv_dlopen_self"; then
Packit c32a2d
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
Packit c32a2d
      AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
Packit c32a2d
	  lt_cv_dlopen_self_static, [dnl
Packit c32a2d
	  _LT_TRY_DLOPEN_SELF(
Packit c32a2d
	    lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
Packit c32a2d
	    lt_cv_dlopen_self_static=no,  lt_cv_dlopen_self_static=cross)
Packit c32a2d
      ])
Packit c32a2d
    fi
Packit c32a2d
Packit c32a2d
    CPPFLAGS=$save_CPPFLAGS
Packit c32a2d
    LDFLAGS=$save_LDFLAGS
Packit c32a2d
    LIBS=$save_LIBS
Packit c32a2d
    ;;
Packit c32a2d
  esac
Packit c32a2d
Packit c32a2d
  case $lt_cv_dlopen_self in
Packit c32a2d
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
Packit c32a2d
  *) enable_dlopen_self=unknown ;;
Packit c32a2d
  esac
Packit c32a2d
Packit c32a2d
  case $lt_cv_dlopen_self_static in
Packit c32a2d
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
Packit c32a2d
  *) enable_dlopen_self_static=unknown ;;
Packit c32a2d
  esac
Packit c32a2d
fi
Packit c32a2d
_LT_DECL([dlopen_support], [enable_dlopen], [0],
Packit c32a2d
	 [Whether dlopen is supported])
Packit c32a2d
_LT_DECL([dlopen_self], [enable_dlopen_self], [0],
Packit c32a2d
	 [Whether dlopen of programs is supported])
Packit c32a2d
_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
Packit c32a2d
	 [Whether dlopen of statically linked programs is supported])
Packit c32a2d
])# LT_SYS_DLOPEN_SELF
Packit c32a2d
Packit c32a2d
# Old name:
Packit c32a2d
AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
Packit c32a2d
dnl aclocal-1.4 backwards compatibility:
Packit c32a2d
dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
Packit c32a2d
Packit c32a2d
Packit c32a2d
# _LT_COMPILER_C_O([TAGNAME])
Packit c32a2d
# ---------------------------
Packit c32a2d
# Check to see if options -c and -o are simultaneously supported by compiler.
Packit c32a2d
# This macro does not hard code the compiler like AC_PROG_CC_C_O.
Packit c32a2d
m4_defun([_LT_COMPILER_C_O],
Packit c32a2d
[m4_require([_LT_DECL_SED])dnl
Packit c32a2d
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
Packit c32a2d
m4_require([_LT_TAG_COMPILER])dnl
Packit c32a2d
AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
Packit c32a2d
  [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
Packit c32a2d
  [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
Packit c32a2d
   $RM -r conftest 2>/dev/null
Packit c32a2d
   mkdir conftest
Packit c32a2d
   cd conftest
Packit c32a2d
   mkdir out
Packit c32a2d
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Packit c32a2d
Packit c32a2d
   lt_compiler_flag="-o out/conftest2.$ac_objext"
Packit c32a2d
   # Insert the option either (1) after the last *FLAGS variable, or
Packit c32a2d
   # (2) before a word containing "conftest.", or (3) at the end.
Packit c32a2d
   # Note that $ac_compile itself does not contain backslashes and begins
Packit c32a2d
   # with a dollar sign (not a hyphen), so the echo should work correctly.
Packit c32a2d
   lt_compile=`echo "$ac_compile" | $SED \
Packit c32a2d
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
Packit c32a2d
   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
Packit c32a2d
   -e 's:$: $lt_compiler_flag:'`
Packit c32a2d
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
Packit c32a2d
   (eval "$lt_compile" 2>out/conftest.err)
Packit c32a2d
   ac_status=$?
Packit c32a2d
   cat out/conftest.err >&AS_MESSAGE_LOG_FD
Packit c32a2d
   echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
Packit c32a2d
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
Packit c32a2d
   then
Packit c32a2d
     # The compiler can only warn and ignore the option if not recognized
Packit c32a2d
     # So say no if there are warnings
Packit c32a2d
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
Packit c32a2d
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
Packit c32a2d
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
Packit c32a2d
       _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
Packit c32a2d
     fi
Packit c32a2d
   fi
Packit c32a2d
   chmod u+w . 2>&AS_MESSAGE_LOG_FD
Packit c32a2d
   $RM conftest*
Packit c32a2d
   # SGI C++ compiler will create directory out/ii_files/ for
Packit c32a2d
   # template instantiation
Packit c32a2d
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
Packit c32a2d
   $RM out/* && rmdir out
Packit c32a2d
   cd ..
Packit c32a2d
   $RM -r conftest
Packit c32a2d
   $RM conftest*
Packit c32a2d
])
Packit c32a2d
_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
Packit c32a2d
	[Does compiler simultaneously support -c and -o options?])
Packit c32a2d
])# _LT_COMPILER_C_O
Packit c32a2d
Packit c32a2d
Packit c32a2d
# _LT_COMPILER_FILE_LOCKS([TAGNAME])
Packit c32a2d
# ----------------------------------
Packit c32a2d
# Check to see if we can do hard links to lock some files if needed
Packit c32a2d
m4_defun([_LT_COMPILER_FILE_LOCKS],
Packit c32a2d
[m4_require([_LT_ENABLE_LOCK])dnl
Packit c32a2d
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
Packit c32a2d
_LT_COMPILER_C_O([$1])
Packit c32a2d
Packit c32a2d
hard_links=nottested
Packit c32a2d
if test no = "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" && test no != "$need_locks"; then
Packit c32a2d
  # do not overwrite the value of need_locks provided by the user
Packit c32a2d
  AC_MSG_CHECKING([if we can lock with hard links])
Packit c32a2d
  hard_links=yes
Packit c32a2d
  $RM conftest*
Packit c32a2d
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
Packit c32a2d
  touch conftest.a
Packit c32a2d
  ln conftest.a conftest.b 2>&5 || hard_links=no
Packit c32a2d
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
Packit c32a2d
  AC_MSG_RESULT([$hard_links])
Packit c32a2d
  if test no = "$hard_links"; then
Packit c32a2d
    AC_MSG_WARN(['$CC' does not support '-c -o', so 'make -j' may be unsafe])
Packit c32a2d
    need_locks=warn
Packit c32a2d
  fi
Packit c32a2d
else
Packit c32a2d
  need_locks=no
Packit c32a2d
fi
Packit c32a2d
_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
Packit c32a2d
])# _LT_COMPILER_FILE_LOCKS
Packit c32a2d
Packit c32a2d
Packit c32a2d
# _LT_CHECK_OBJDIR
Packit c32a2d
# ----------------
Packit c32a2d
m4_defun([_LT_CHECK_OBJDIR],
Packit c32a2d
[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
Packit c32a2d
[rm -f .libs 2>/dev/null
Packit c32a2d
mkdir .libs 2>/dev/null
Packit c32a2d
if test -d .libs; then
Packit c32a2d
  lt_cv_objdir=.libs
Packit c32a2d
else
Packit c32a2d
  # MS-DOS does not allow filenames that begin with a dot.
Packit c32a2d
  lt_cv_objdir=_libs
Packit c32a2d
fi
Packit c32a2d
rmdir .libs 2>/dev/null])
Packit c32a2d
objdir=$lt_cv_objdir
Packit c32a2d
_LT_DECL([], [objdir], [0],
Packit c32a2d
         [The name of the directory that contains temporary libtool files])dnl
Packit c32a2d
m4_pattern_allow([LT_OBJDIR])dnl
Packit c32a2d
AC_DEFINE_UNQUOTED([LT_OBJDIR], "$lt_cv_objdir/",
Packit c32a2d
  [Define to the sub-directory where libtool stores uninstalled libraries.])
Packit c32a2d
])# _LT_CHECK_OBJDIR
Packit c32a2d
Packit c32a2d
Packit c32a2d
# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
Packit c32a2d
# --------------------------------------
Packit c32a2d
# Check hardcoding attributes.
Packit c32a2d
m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
Packit c32a2d
[AC_MSG_CHECKING([how to hardcode library paths into programs])
Packit c32a2d
_LT_TAGVAR(hardcode_action, $1)=
Packit c32a2d
if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
Packit c32a2d
   test -n "$_LT_TAGVAR(runpath_var, $1)" ||
Packit c32a2d
   test yes = "$_LT_TAGVAR(hardcode_automatic, $1)"; then
Packit c32a2d
Packit c32a2d
  # We can hardcode non-existent directories.
Packit c32a2d
  if test no != "$_LT_TAGVAR(hardcode_direct, $1)" &&
Packit c32a2d
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
Packit c32a2d
     # have to relink, otherwise we might link with an installed library
Packit c32a2d
     # when we should be linking with a yet-to-be-installed one
Packit c32a2d
     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" &&
Packit c32a2d
     test no != "$_LT_TAGVAR(hardcode_minus_L, $1)"; then
Packit c32a2d
    # Linking always hardcodes the temporary library directory.
Packit c32a2d
    _LT_TAGVAR(hardcode_action, $1)=relink
Packit c32a2d
  else
Packit c32a2d
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
Packit c32a2d
    _LT_TAGVAR(hardcode_action, $1)=immediate
Packit c32a2d
  fi
Packit c32a2d
else
Packit c32a2d
  # We cannot hardcode anything, or else we can only hardcode existing
Packit c32a2d
  # directories.
Packit c32a2d
  _LT_TAGVAR(hardcode_action, $1)=unsupported
Packit c32a2d
fi
Packit c32a2d
AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
Packit c32a2d
Packit c32a2d
if test relink = "$_LT_TAGVAR(hardcode_action, $1)" ||
Packit c32a2d
   test yes = "$_LT_TAGVAR(inherit_rpath, $1)"; then
Packit c32a2d
  # Fast installation is not supported
Packit c32a2d
  enable_fast_install=no
Packit c32a2d
elif test yes = "$shlibpath_overrides_runpath" ||
Packit c32a2d
     test no = "$enable_shared"; then
Packit c32a2d
  # Fast installation is not necessary
Packit c32a2d
  enable_fast_install=needless
Packit c32a2d
fi
Packit c32a2d
_LT_TAGDECL([], [hardcode_action], [0],
Packit c32a2d
    [How to hardcode a shared library path into an executable])
Packit c32a2d
])# _LT_LINKER_HARDCODE_LIBPATH
Packit c32a2d
Packit c32a2d
Packit c32a2d
# _LT_CMD_STRIPLIB
Packit c32a2d
# ----------------
Packit c32a2d
m4_defun([_LT_CMD_STRIPLIB],
Packit c32a2d
[m4_require([_LT_DECL_EGREP])
Packit c32a2d
striplib=
Packit c32a2d
old_striplib=
Packit c32a2d
AC_MSG_CHECKING([whether stripping libraries is possible])
Packit c32a2d
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
Packit c32a2d
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
Packit c32a2d
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
Packit c32a2d
  AC_MSG_RESULT([yes])
Packit c32a2d
else
Packit c32a2d
# FIXME - insert some real tests, host_os isn't really good enough
Packit c32a2d
  case $host_os in
Packit c32a2d
  darwin*)
Packit c32a2d
    if test -n "$STRIP"; then
Packit c32a2d
      striplib="$STRIP -x"
Packit c32a2d
      old_striplib="$STRIP -S"
Packit c32a2d
      AC_MSG_RESULT([yes])
Packit c32a2d
    else
Packit c32a2d
      AC_MSG_RESULT([no])
Packit c32a2d
    fi
Packit c32a2d
    ;;
Packit c32a2d
  *)
Packit c32a2d
    AC_MSG_RESULT([no])
Packit c32a2d
    ;;
Packit c32a2d
  esac
Packit c32a2d
fi
Packit c32a2d
_LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
Packit c32a2d
_LT_DECL([], [striplib], [1])
Packit c32a2d
])# _LT_CMD_STRIPLIB
Packit c32a2d
Packit c32a2d
Packit c32a2d
# _LT_PREPARE_MUNGE_PATH_LIST
Packit c32a2d
# ---------------------------
Packit c32a2d
# Make sure func_munge_path_list() is defined correctly.
Packit c32a2d
m4_defun([_LT_PREPARE_MUNGE_PATH_LIST],
Packit c32a2d
[[# func_munge_path_list VARIABLE PATH
Packit c32a2d
# -----------------------------------
Packit c32a2d
# VARIABLE is name of variable containing _space_ separated list of
Packit c32a2d
# directories to be munged by the contents of PATH, which is string
Packit c32a2d
# having a format:
Packit c32a2d
# "DIR[:DIR]:"
Packit c32a2d
#       string "DIR[ DIR]" will be prepended to VARIABLE
Packit c32a2d
# ":DIR[:DIR]"
Packit c32a2d
#       string "DIR[ DIR]" will be appended to VARIABLE
Packit c32a2d
# "DIRP[:DIRP]::[DIRA:]DIRA"
Packit c32a2d
#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
Packit c32a2d
#       "DIRA[ DIRA]" will be appended to VARIABLE
Packit c32a2d
# "DIR[:DIR]"
Packit c32a2d
#       VARIABLE will be replaced by "DIR[ DIR]"
Packit c32a2d
func_munge_path_list ()
Packit c32a2d
{
Packit c32a2d
    case x@S|@2 in
Packit c32a2d
    x)
Packit c32a2d
        ;;
Packit c32a2d
    *:)
Packit c32a2d
        eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'` \@S|@@S|@1\"
Packit c32a2d
        ;;
Packit c32a2d
    x:*)
Packit c32a2d
        eval @S|@1=\"\@S|@@S|@1 `$ECHO @S|@2 | $SED 's/:/ /g'`\"
Packit c32a2d
        ;;
Packit c32a2d
    *::*)
Packit c32a2d
        eval @S|@1=\"\@S|@@S|@1\ `$ECHO @S|@2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
Packit c32a2d
        eval @S|@1=\"`$ECHO @S|@2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \@S|@@S|@1\"
Packit c32a2d
        ;;
Packit c32a2d
    *)
Packit c32a2d
        eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'`\"
Packit c32a2d
        ;;
Packit c32a2d
    esac
Packit c32a2d
}
Packit c32a2d
]])# _LT_PREPARE_PATH_LIST
Packit c32a2d
Packit c32a2d
Packit c32a2d
# _LT_SYS_DYNAMIC_LINKER([TAG])
Packit c32a2d
# -----------------------------
Packit c32a2d
# PORTME Fill in your ld.so characteristics
Packit c32a2d
m4_defun([_LT_SYS_DYNAMIC_LINKER],
Packit c32a2d
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
Packit c32a2d
m4_require([_LT_DECL_EGREP])dnl
Packit c32a2d
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
Packit c32a2d
m4_require([_LT_DECL_OBJDUMP])dnl
Packit c32a2d
m4_require([_LT_DECL_SED])dnl
Packit c32a2d
m4_require([_LT_CHECK_SHELL_FEATURES])dnl
Packit c32a2d
m4_require([_LT_PREPARE_MUNGE_PATH_LIST])dnl
Packit c32a2d
AC_MSG_CHECKING([dynamic linker characteristics])
Packit c32a2d
m4_if([$1],
Packit c32a2d
	[], [
Packit c32a2d
if test yes = "$GCC"; then
Packit c32a2d
  case $host_os in
Packit c32a2d
    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
Packit c32a2d
    *) lt_awk_arg='/^libraries:/' ;;
Packit c32a2d
  esac
Packit c32a2d
  case $host_os in
Packit c32a2d
    mingw* | cegcc*) lt_sed_strip_eq='s|=\([[A-Za-z]]:\)|\1|g' ;;
Packit c32a2d
    *) lt_sed_strip_eq='s|=/|/|g' ;;
Packit c32a2d
  esac
Packit c32a2d
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
Packit c32a2d
  case $lt_search_path_spec in
Packit c32a2d
  *\;*)
Packit c32a2d
    # if the path contains ";" then we assume it to be the separator
Packit c32a2d
    # otherwise default to the standard path separator (i.e. ":") - it is
Packit c32a2d
    # assumed that no part of a normal pathname contains ";" but that should
Packit c32a2d
    # okay in the real world where ";" in dirpaths is itself problematic.
Packit c32a2d
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
Packit c32a2d
    ;;
Packit c32a2d
  *)
Packit c32a2d
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
Packit c32a2d
    ;;
Packit c32a2d
  esac
Packit c32a2d
  # Ok, now we have the path, separated by spaces, we can step through it
Packit c32a2d
  # and add multilib dir if necessary...
Packit c32a2d
  lt_tmp_lt_search_path_spec=
Packit c32a2d
  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
Packit c32a2d
  # ...but if some path component already ends with the multilib dir we assume
Packit c32a2d
  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
Packit c32a2d
  case "$lt_multi_os_dir; $lt_search_path_spec " in
Packit c32a2d
  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
Packit c32a2d
    lt_multi_os_dir=
Packit c32a2d
    ;;
Packit c32a2d
  esac
Packit c32a2d
  for lt_sys_path in $lt_search_path_spec; do
Packit c32a2d
    if test -d "$lt_sys_path$lt_multi_os_dir"; then
Packit c32a2d
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
Packit c32a2d
    elif test -n "$lt_multi_os_dir"; then
Packit c32a2d
      test -d "$lt_sys_path" && \
Packit c32a2d
	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
Packit c32a2d
    fi
Packit c32a2d
  done
Packit c32a2d
  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
Packit c32a2d
BEGIN {RS = " "; FS = "/|\n";} {
Packit c32a2d
  lt_foo = "";
Packit c32a2d
  lt_count = 0;
Packit c32a2d
  for (lt_i = NF; lt_i > 0; lt_i--) {
Packit c32a2d
    if ($lt_i != "" && $lt_i != ".") {
Packit c32a2d
      if ($lt_i == "..") {
Packit c32a2d
        lt_count++;
Packit c32a2d
      } else {
Packit c32a2d
        if (lt_count == 0) {
Packit c32a2d
          lt_foo = "/" $lt_i lt_foo;
Packit c32a2d
        } else {
Packit c32a2d
          lt_count--;
Packit c32a2d
        }
Packit c32a2d
      }
Packit c32a2d
    }
Packit c32a2d
  }
Packit c32a2d
  if (lt_foo != "") { lt_freq[[lt_foo]]++; }
Packit c32a2d
  if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
Packit c32a2d
}'`
Packit c32a2d
  # AWK program above erroneously prepends '/' to C:/dos/paths
Packit c32a2d
  # for these hosts.
Packit c32a2d
  case $host_os in
Packit c32a2d
    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
Packit c32a2d
      $SED 's|/\([[A-Za-z]]:\)|\1|g'` ;;
Packit c32a2d
  esac
Packit c32a2d
  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
Packit c32a2d
else
Packit c32a2d
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
Packit c32a2d
fi])
Packit c32a2d
library_names_spec=
Packit c32a2d
libname_spec='lib$name'
Packit c32a2d
soname_spec=
Packit c32a2d
shrext_cmds=.so
Packit c32a2d
postinstall_cmds=
Packit c32a2d
postuninstall_cmds=
Packit c32a2d
finish_cmds=
Packit c32a2d
finish_eval=
Packit c32a2d
shlibpath_var=
Packit c32a2d
shlibpath_overrides_runpath=unknown
Packit c32a2d
version_type=none
Packit c32a2d
dynamic_linker="$host_os ld.so"
Packit c32a2d
sys_lib_dlsearch_path_spec="/lib /usr/lib"
Packit c32a2d
need_lib_prefix=unknown
Packit c32a2d
hardcode_into_libs=no
Packit c32a2d
Packit c32a2d
# when you set need_version to no, make sure it does not cause -set_version
Packit c32a2d
# flags to be left without arguments
Packit c32a2d
need_version=unknown
Packit c32a2d
Packit c32a2d
AC_ARG_VAR([LT_SYS_LIBRARY_PATH],
Packit c32a2d
[User-defined run-time library search path.])
Packit c32a2d
Packit c32a2d
case $host_os in
Packit c32a2d
aix3*)
Packit c32a2d
  version_type=linux # correct to gnu/linux during the next big refactor
Packit c32a2d
  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
Packit c32a2d
  shlibpath_var=LIBPATH
Packit c32a2d
Packit c32a2d
  # AIX 3 has no versioning support, so we append a major version to the name.
Packit c32a2d
  soname_spec='$libname$release$shared_ext$major'
Packit c32a2d
  ;;
Packit c32a2d
Packit c32a2d
aix[[4-9]]*)
Packit c32a2d
  version_type=linux # correct to gnu/linux during the next big refactor
Packit c32a2d
  need_lib_prefix=no
Packit c32a2d
  need_version=no
Packit c32a2d
  hardcode_into_libs=yes
Packit c32a2d
  if test ia64 = "$host_cpu"; then
Packit c32a2d
    # AIX 5 supports IA64
Packit c32a2d
    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
Packit c32a2d
    shlibpath_var=LD_LIBRARY_PATH
Packit c32a2d
  else
Packit c32a2d
    # With GCC up to 2.95.x, collect2 would create an import file
Packit c32a2d
    # for dependence libraries.  The import file would start with
Packit c32a2d
    # the line '#! .'.  This would cause the generated library to
Packit c32a2d
    # depend on '.', always an invalid library.  This was fixed in
Packit c32a2d
    # development snapshots of GCC prior to 3.0.
Packit c32a2d
    case $host_os in
Packit c32a2d
      aix4 | aix4.[[01]] | aix4.[[01]].*)
Packit c32a2d
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
Packit c32a2d
	   echo ' yes '
Packit c32a2d
	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
Packit c32a2d
	:
Packit c32a2d
      else
Packit c32a2d
	can_build_shared=no
Packit c32a2d
      fi
Packit c32a2d
      ;;
Packit c32a2d
    esac
Packit c32a2d
    # Using Import Files as archive members, it is possible to support
Packit c32a2d
    # filename-based versioning of shared library archives on AIX. While
Packit c32a2d
    # this would work for both with and without runtime linking, it will
Packit c32a2d
    # prevent static linking of such archives. So we do filename-based
Packit c32a2d
    # shared library versioning with .so extension only, which is used
Packit c32a2d
    # when both runtime linking and shared linking is enabled.
Packit c32a2d
    # Unfortunately, runtime linking may impact performance, so we do
Packit c32a2d
    # not want this to be the default eventually. Also, we use the
Packit c32a2d
    # versioned .so libs for executables only if there is the -brtl
Packit c32a2d
    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
Packit c32a2d
    # To allow for filename-based versioning support, we need to create
Packit c32a2d
    # libNAME.so.V as an archive file, containing:
Packit c32a2d
    # *) an Import File, referring to the versioned filename of the
Packit c32a2d
    #    archive as well as the shared archive member, telling the
Packit c32a2d
    #    bitwidth (32 or 64) of that shared object, and providing the
Packit c32a2d
    #    list of exported symbols of that shared object, eventually
Packit c32a2d
    #    decorated with the 'weak' keyword
Packit c32a2d
    # *) the shared object with the F_LOADONLY flag set, to really avoid
Packit c32a2d
    #    it being seen by the linker.
Packit c32a2d
    # At run time we better use the real file rather than another symlink,
Packit c32a2d
    # but for link time we create the symlink libNAME.so -> libNAME.so.V
Packit c32a2d
Packit c32a2d
    case $with_aix_soname,$aix_use_runtimelinking in
Packit c32a2d
    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
Packit c32a2d
    # soname into executable. Probably we can add versioning support to
Packit c32a2d
    # collect2, so additional links can be useful in future.
Packit c32a2d
    aix,yes) # traditional libtool
Packit c32a2d
      dynamic_linker='AIX unversionable lib.so'
Packit c32a2d
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
Packit c32a2d
      # instead of lib<name>.a to let people know that these are not
Packit c32a2d
      # typical AIX shared libraries.
Packit c32a2d
      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Packit c32a2d
      ;;
Packit c32a2d
    aix,no) # traditional AIX only
Packit c32a2d
      dynamic_linker='AIX lib.a[(]lib.so.V[)]'
Packit c32a2d
      # We preserve .a as extension for shared libraries through AIX4.2
Packit c32a2d
      # and later when we are not doing run time linking.
Packit c32a2d
      library_names_spec='$libname$release.a $libname.a'
Packit c32a2d
      soname_spec='$libname$release$shared_ext$major'
Packit c32a2d
      ;;
Packit c32a2d
    svr4,*) # full svr4 only
Packit c32a2d
      dynamic_linker="AIX lib.so.V[(]$shared_archive_member_spec.o[)]"
Packit c32a2d
      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
Packit c32a2d
      # We do not specify a path in Import Files, so LIBPATH fires.
Packit c32a2d
      shlibpath_overrides_runpath=yes
Packit c32a2d
      ;;
Packit c32a2d
    *,yes) # both, prefer svr4
Packit c32a2d
      dynamic_linker="AIX lib.so.V[(]$shared_archive_member_spec.o[)], lib.a[(]lib.so.V[)]"
Packit c32a2d
      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
Packit c32a2d
      # unpreferred sharedlib libNAME.a needs extra handling
Packit c32a2d
      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
Packit c32a2d
      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
Packit c32a2d
      # We do not specify a path in Import Files, so LIBPATH fires.
Packit c32a2d
      shlibpath_overrides_runpath=yes
Packit c32a2d
      ;;
Packit c32a2d
    *,no) # both, prefer aix
Packit c32a2d
      dynamic_linker="AIX lib.a[(]lib.so.V[)], lib.so.V[(]$shared_archive_member_spec.o[)]"
Packit c32a2d
      library_names_spec='$libname$release.a $libname.a'
Packit c32a2d
      soname_spec='$libname$release$shared_ext$major'
Packit c32a2d
      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
Packit c32a2d
      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
Packit c32a2d
      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
Packit c32a2d
      ;;
Packit c32a2d
    esac
Packit c32a2d
    shlibpath_var=LIBPATH
Packit c32a2d
  fi
Packit c32a2d
  ;;
Packit c32a2d
Packit c32a2d
amigaos*)
Packit c32a2d
  case $host_cpu in
Packit c32a2d
  powerpc)
Packit c32a2d
    # Since July 2007 AmigaOS4 officially supports .so libraries.
Packit c32a2d
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
Packit c32a2d
    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Packit c32a2d
    ;;
Packit c32a2d
  m68k)
Packit c32a2d
    library_names_spec='$libname.ixlibrary $libname.a'
Packit c32a2d
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
Packit c32a2d
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
Packit c32a2d
    ;;
Packit c32a2d
  esac
Packit c32a2d
  ;;
Packit c32a2d
Packit c32a2d
beos*)
Packit c32a2d
  library_names_spec='$libname$shared_ext'
Packit c32a2d
  dynamic_linker="$host_os ld.so"
Packit c32a2d
  shlibpath_var=LIBRARY_PATH
Packit c32a2d
  ;;
Packit c32a2d
Packit c32a2d
bsdi[[45]]*)
Packit c32a2d
  version_type=linux # correct to gnu/linux during the next big refactor
Packit c32a2d
  need_version=no
Packit c32a2d
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Packit c32a2d
  soname_spec='$libname$release$shared_ext$major'
Packit c32a2d
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
Packit c32a2d
  shlibpath_var=LD_LIBRARY_PATH
Packit c32a2d
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
Packit c32a2d
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
Packit c32a2d
  # the default ld.so.conf also contains /usr/contrib/lib and
Packit c32a2d
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
Packit c32a2d
  # libtool to hard-code these into programs
Packit c32a2d
  ;;
Packit c32a2d
Packit c32a2d
cygwin* | mingw* | pw32* | cegcc*)
Packit c32a2d
  version_type=windows
Packit c32a2d
  shrext_cmds=.dll
Packit c32a2d
  need_version=no
Packit c32a2d
  need_lib_prefix=no
Packit c32a2d
Packit c32a2d
  case $GCC,$cc_basename in
Packit c32a2d
  yes,*)
Packit c32a2d
    # gcc
Packit c32a2d
    library_names_spec='$libname.dll.a'
Packit c32a2d
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
Packit c32a2d
    postinstall_cmds='base_file=`basename \$file`~
Packit c32a2d
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
Packit c32a2d
      dldir=$destdir/`dirname \$dlpath`~
Packit c32a2d
      test -d \$dldir || mkdir -p \$dldir~
Packit c32a2d
      $install_prog $dir/$dlname \$dldir/$dlname~
Packit c32a2d
      chmod a+x \$dldir/$dlname~
Packit c32a2d
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
Packit c32a2d
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
Packit c32a2d
      fi'
Packit c32a2d
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
Packit c32a2d
      dlpath=$dir/\$dldll~
Packit c32a2d
       $RM \$dlpath'
Packit c32a2d
    shlibpath_overrides_runpath=yes
Packit c32a2d
Packit c32a2d
    case $host_os in
Packit c32a2d
    cygwin*)
Packit c32a2d
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
Packit c32a2d
      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
Packit c32a2d
m4_if([$1], [],[
Packit c32a2d
      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
Packit c32a2d
      ;;
Packit c32a2d
    mingw* | cegcc*)
Packit c32a2d
      # MinGW DLLs use traditional 'lib' prefix
Packit c32a2d
      soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
Packit c32a2d
      ;;
Packit c32a2d
    pw32*)
Packit c32a2d
      # pw32 DLLs use 'pw' prefix rather than 'lib'
Packit c32a2d
      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
Packit c32a2d
      ;;
Packit c32a2d
    esac
Packit c32a2d
    dynamic_linker='Win32 ld.exe'
Packit c32a2d
    ;;
Packit c32a2d
Packit c32a2d
  *,cl*)
Packit c32a2d
    # Native MSVC
Packit c32a2d
    libname_spec='$name'
Packit c32a2d
    soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
Packit c32a2d
    library_names_spec='$libname.dll.lib'
Packit c32a2d
Packit c32a2d
    case $build_os in
Packit c32a2d
    mingw*)
Packit c32a2d
      sys_lib_search_path_spec=
Packit c32a2d
      lt_save_ifs=$IFS
Packit c32a2d
      IFS=';'
Packit c32a2d
      for lt_path in $LIB
Packit c32a2d
      do
Packit c32a2d
        IFS=$lt_save_ifs
Packit c32a2d
        # Let DOS variable expansion print the short 8.3 style file name.
Packit c32a2d
        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
Packit c32a2d
        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
Packit c32a2d
      done
Packit c32a2d
      IFS=$lt_save_ifs
Packit c32a2d
      # Convert to MSYS style.
Packit c32a2d
      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 c32a2d
      ;;
Packit c32a2d
    cygwin*)
Packit c32a2d
      # Convert to unix form, then to dos form, then back to unix form
Packit c32a2d
      # but this time dos style (no spaces!) so that the unix form looks
Packit c32a2d
      # like /cygdrive/c/PROGRA~1:/cygdr...
Packit c32a2d
      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
Packit c32a2d
      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
Packit c32a2d
      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
Packit c32a2d
      ;;
Packit c32a2d
    *)
Packit c32a2d
      sys_lib_search_path_spec=$LIB
Packit c32a2d
      if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
Packit c32a2d
        # It is most probably a Windows format PATH.
Packit c32a2d
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
Packit c32a2d
      else
Packit c32a2d
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
Packit c32a2d
      fi
Packit c32a2d
      # FIXME: find the short name or the path components, as spaces are
Packit c32a2d
      # common. (e.g. "Program Files" -> "PROGRA~1")
Packit c32a2d
      ;;
Packit c32a2d
    esac
Packit c32a2d
Packit c32a2d
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
Packit c32a2d
    postinstall_cmds='base_file=`basename \$file`~
Packit c32a2d
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
Packit c32a2d
      dldir=$destdir/`dirname \$dlpath`~
Packit c32a2d
      test -d \$dldir || mkdir -p \$dldir~
Packit c32a2d
      $install_prog $dir/$dlname \$dldir/$dlname'
Packit c32a2d
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
Packit c32a2d
      dlpath=$dir/\$dldll~
Packit c32a2d
       $RM \$dlpath'
Packit c32a2d
    shlibpath_overrides_runpath=yes
Packit c32a2d
    dynamic_linker='Win32 link.exe'
Packit c32a2d
    ;;
Packit c32a2d
Packit c32a2d
  *)
Packit c32a2d
    # Assume MSVC wrapper
Packit c32a2d
    library_names_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext $libname.lib'
Packit c32a2d
    dynamic_linker='Win32 ld.exe'
Packit c32a2d
    ;;
Packit c32a2d
  esac
Packit c32a2d
  # FIXME: first we should search . and the directory the executable is in
Packit c32a2d
  shlibpath_var=PATH
Packit c32a2d
  ;;
Packit c32a2d
Packit c32a2d
darwin* | rhapsody*)
Packit c32a2d
  dynamic_linker="$host_os dyld"
Packit c32a2d
  version_type=darwin
Packit c32a2d
  need_lib_prefix=no
Packit c32a2d
  need_version=no
Packit c32a2d
  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
Packit c32a2d
  soname_spec='$libname$release$major$shared_ext'
Packit c32a2d
  shlibpath_overrides_runpath=yes
Packit c32a2d
  shlibpath_var=DYLD_LIBRARY_PATH
Packit c32a2d
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
Packit c32a2d
m4_if([$1], [],[
Packit c32a2d
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
Packit c32a2d
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
Packit c32a2d
  ;;
Packit c32a2d
Packit c32a2d
dgux*)
Packit c32a2d
  version_type=linux # correct to gnu/linux during the next big refactor
Packit c32a2d
  need_lib_prefix=no
Packit c32a2d
  need_version=no
Packit c32a2d
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Packit c32a2d
  soname_spec='$libname$release$shared_ext$major'
Packit c32a2d
  shlibpath_var=LD_LIBRARY_PATH
Packit c32a2d
  ;;
Packit c32a2d
Packit c32a2d
freebsd* | dragonfly*)
Packit c32a2d
  # DragonFly does not have aout.  When/if they implement a new
Packit c32a2d
  # versioning mechanism, adjust this.
Packit c32a2d
  if test -x /usr/bin/objformat; then
Packit c32a2d
    objformat=`/usr/bin/objformat`
Packit c32a2d
  else
Packit c32a2d
    case $host_os in
Packit c32a2d
    freebsd[[23]].*) objformat=aout ;;
Packit c32a2d
    *) objformat=elf ;;
Packit c32a2d
    esac
Packit c32a2d
  fi
Packit c32a2d
  version_type=freebsd-$objformat
Packit c32a2d
  case $version_type in
Packit c32a2d
    freebsd-elf*)
Packit c32a2d
      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Packit c32a2d
      soname_spec='$libname$release$shared_ext$major'
Packit c32a2d
      need_version=no
Packit c32a2d
      need_lib_prefix=no
Packit c32a2d
      ;;
Packit c32a2d
    freebsd-*)
Packit c32a2d
      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
Packit c32a2d
      need_version=yes
Packit c32a2d
      ;;
Packit c32a2d
  esac
Packit c32a2d
  shlibpath_var=LD_LIBRARY_PATH
Packit c32a2d
  case $host_os in
Packit c32a2d
  freebsd2.*)
Packit c32a2d
    shlibpath_overrides_runpath=yes
Packit c32a2d
    ;;
Packit c32a2d
  freebsd3.[[01]]* | freebsdelf3.[[01]]*)
Packit c32a2d
    shlibpath_overrides_runpath=yes
Packit c32a2d
    hardcode_into_libs=yes
Packit c32a2d
    ;;
Packit c32a2d
  freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
Packit c32a2d
  freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
Packit c32a2d
    shlibpath_overrides_runpath=no
Packit c32a2d
    hardcode_into_libs=yes
Packit c32a2d
    ;;
Packit c32a2d
  *) # from 4.6 on, and DragonFly
Packit c32a2d
    shlibpath_overrides_runpath=yes
Packit c32a2d
    hardcode_into_libs=yes
Packit c32a2d
    ;;
Packit c32a2d
  esac
Packit c32a2d
  ;;
Packit c32a2d
Packit c32a2d
haiku*)
Packit c32a2d
  version_type=linux # correct to gnu/linux during the next big refactor
Packit c32a2d
  need_lib_prefix=no
Packit c32a2d
  need_version=no
Packit c32a2d
  dynamic_linker="$host_os runtime_loader"
Packit c32a2d
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Packit c32a2d
  soname_spec='$libname$release$shared_ext$major'
Packit c32a2d
  shlibpath_var=LIBRARY_PATH
Packit c32a2d
  shlibpath_overrides_runpath=no
Packit c32a2d
  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
Packit c32a2d
  hardcode_into_libs=yes
Packit c32a2d
  ;;
Packit c32a2d
Packit c32a2d
hpux9* | hpux10* | hpux11*)
Packit c32a2d
  # Give a soname corresponding to the major version so that dld.sl refuses to
Packit c32a2d
  # link against other versions.
Packit c32a2d
  version_type=sunos
Packit c32a2d
  need_lib_prefix=no
Packit c32a2d
  need_version=no
Packit c32a2d
  case $host_cpu in
Packit c32a2d
  ia64*)
Packit c32a2d
    shrext_cmds='.so'
Packit c32a2d
    hardcode_into_libs=yes
Packit c32a2d
    dynamic_linker="$host_os dld.so"
Packit c32a2d
    shlibpath_var=LD_LIBRARY_PATH
Packit c32a2d
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
Packit c32a2d
    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Packit c32a2d
    soname_spec='$libname$release$shared_ext$major'
Packit c32a2d
    if test 32 = "$HPUX_IA64_MODE"; then
Packit c32a2d
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
Packit c32a2d
      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
Packit c32a2d
    else
Packit c32a2d
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
Packit c32a2d
      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
Packit c32a2d
    fi
Packit c32a2d
    ;;
Packit c32a2d
  hppa*64*)
Packit c32a2d
    shrext_cmds='.sl'
Packit c32a2d
    hardcode_into_libs=yes
Packit c32a2d
    dynamic_linker="$host_os dld.sl"
Packit c32a2d
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
Packit c32a2d
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
Packit c32a2d
    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Packit c32a2d
    soname_spec='$libname$release$shared_ext$major'
Packit c32a2d
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
Packit c32a2d
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
Packit c32a2d
    ;;
Packit c32a2d
  *)
Packit c32a2d
    shrext_cmds='.sl'
Packit c32a2d
    dynamic_linker="$host_os dld.sl"
Packit c32a2d
    shlibpath_var=SHLIB_PATH
Packit c32a2d
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
Packit c32a2d
    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Packit c32a2d
    soname_spec='$libname$release$shared_ext$major'
Packit c32a2d
    ;;
Packit c32a2d
  esac
Packit c32a2d
  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
Packit c32a2d
  postinstall_cmds='chmod 555 $lib'
Packit c32a2d
  # or fails outright, so override atomically:
Packit c32a2d
  install_override_mode=555
Packit c32a2d
  ;;
Packit c32a2d
Packit c32a2d
interix[[3-9]]*)
Packit c32a2d
  version_type=linux # correct to gnu/linux during the next big refactor
Packit c32a2d
  need_lib_prefix=no
Packit c32a2d
  need_version=no
Packit c32a2d
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Packit c32a2d
  soname_spec='$libname$release$shared_ext$major'
Packit c32a2d
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
Packit c32a2d
  shlibpath_var=LD_LIBRARY_PATH
Packit c32a2d
  shlibpath_overrides_runpath=no
Packit c32a2d
  hardcode_into_libs=yes
Packit c32a2d
  ;;
Packit c32a2d
Packit c32a2d
irix5* | irix6* | nonstopux*)
Packit c32a2d
  case $host_os in
Packit c32a2d
    nonstopux*) version_type=nonstopux ;;
Packit c32a2d
    *)
Packit c32a2d
	if test yes = "$lt_cv_prog_gnu_ld"; then
Packit c32a2d
		version_type=linux # correct to gnu/linux during the next big refactor
Packit c32a2d
	else
Packit c32a2d
		version_type=irix
Packit c32a2d
	fi ;;
Packit c32a2d
  esac
Packit c32a2d
  need_lib_prefix=no
Packit c32a2d
  need_version=no
Packit c32a2d
  soname_spec='$libname$release$shared_ext$major'
Packit c32a2d
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
Packit c32a2d
  case $host_os in
Packit c32a2d
  irix5* | nonstopux*)
Packit c32a2d
    libsuff= shlibsuff=
Packit c32a2d
    ;;
Packit c32a2d
  *)
Packit c32a2d
    case $LD in # libtool.m4 will add one of these switches to LD
Packit c32a2d
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
Packit c32a2d
      libsuff= shlibsuff= libmagic=32-bit;;
Packit c32a2d
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
Packit c32a2d
      libsuff=32 shlibsuff=N32 libmagic=N32;;
Packit c32a2d
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
Packit c32a2d
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
Packit c32a2d
    *) libsuff= shlibsuff= libmagic=never-match;;
Packit c32a2d
    esac
Packit c32a2d
    ;;
Packit c32a2d
  esac
Packit c32a2d
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
Packit c32a2d
  shlibpath_overrides_runpath=no
Packit c32a2d
  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
Packit c32a2d
  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
Packit c32a2d
  hardcode_into_libs=yes
Packit c32a2d
  ;;
Packit c32a2d
Packit c32a2d
# No shared lib support for Linux oldld, aout, or coff.
Packit c32a2d
linux*oldld* | linux*aout* | linux*coff*)
Packit c32a2d
  dynamic_linker=no
Packit c32a2d
  ;;
Packit c32a2d
Packit c32a2d
linux*android*)
Packit c32a2d
  version_type=none # Android doesn't support versioned libraries.
Packit c32a2d
  need_lib_prefix=no
Packit c32a2d
  need_version=no
Packit c32a2d
  library_names_spec='$libname$release$shared_ext'
Packit c32a2d
  soname_spec='$libname$release$shared_ext'
Packit c32a2d
  finish_cmds=
Packit c32a2d
  shlibpath_var=LD_LIBRARY_PATH
Packit c32a2d
  shlibpath_overrides_runpath=yes
Packit c32a2d
Packit c32a2d
  # This implies no fast_install, which is unacceptable.
Packit c32a2d
  # Some rework will be needed to allow for fast_install
Packit c32a2d
  # before this can be enabled.
Packit c32a2d
  hardcode_into_libs=yes
Packit c32a2d
Packit c32a2d
  dynamic_linker='Android linker'
Packit c32a2d
  # Don't embed -rpath directories since the linker doesn't support them.
Packit c32a2d
  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
Packit c32a2d
  ;;
Packit c32a2d
Packit c32a2d
# This must be glibc/ELF.
Packit c32a2d
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
Packit c32a2d
  version_type=linux # correct to gnu/linux during the next big refactor
Packit c32a2d
  need_lib_prefix=no
Packit c32a2d
  need_version=no
Packit c32a2d
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Packit c32a2d
  soname_spec='$libname$release$shared_ext$major'
Packit c32a2d
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
Packit c32a2d
  shlibpath_var=LD_LIBRARY_PATH
Packit c32a2d
  shlibpath_overrides_runpath=no
Packit c32a2d
Packit c32a2d
  # Some binutils ld are patched to set DT_RUNPATH
Packit c32a2d
  AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath],
Packit c32a2d
    [lt_cv_shlibpath_overrides_runpath=no
Packit c32a2d
    save_LDFLAGS=$LDFLAGS
Packit c32a2d
    save_libdir=$libdir
Packit c32a2d
    eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
Packit c32a2d
	 LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
Packit c32a2d
    AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
Packit c32a2d
      [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
Packit c32a2d
	 [lt_cv_shlibpath_overrides_runpath=yes])])
Packit c32a2d
    LDFLAGS=$save_LDFLAGS
Packit c32a2d
    libdir=$save_libdir
Packit c32a2d
    ])
Packit c32a2d
  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
Packit c32a2d
Packit c32a2d
  # This implies no fast_install, which is unacceptable.
Packit c32a2d
  # Some rework will be needed to allow for fast_install
Packit c32a2d
  # before this can be enabled.
Packit c32a2d
  hardcode_into_libs=yes
Packit c32a2d
Packit c32a2d
  # Ideally, we could use ldconfig to report *all* directores which are
Packit c32a2d
  # searched for libraries, however this is still not possible.  Aside from not
Packit c32a2d
  # being certain /sbin/ldconfig is available, command
Packit c32a2d
  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
Packit c32a2d
  # even though it is searched at run-time.  Try to do the best guess by
Packit c32a2d
  # appending ld.so.conf contents (and includes) to the search path.
Packit c32a2d
  if test -f /etc/ld.so.conf; then
Packit c32a2d
    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 c32a2d
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
Packit c32a2d
  fi
Packit c32a2d
Packit c32a2d
  # We used to test for /lib/ld.so.1 and disable shared libraries on
Packit c32a2d
  # powerpc, because MkLinux only supported shared libraries with the
Packit c32a2d
  # GNU dynamic linker.  Since this was broken with cross compilers,
Packit c32a2d
  # most powerpc-linux boxes support dynamic linking these days and
Packit c32a2d
  # people can always --disable-shared, the test was removed, and we
Packit c32a2d
  # assume the GNU/Linux dynamic linker is in use.
Packit c32a2d
  dynamic_linker='GNU/Linux ld.so'
Packit c32a2d
  ;;
Packit c32a2d
Packit c32a2d
netbsd*)
Packit c32a2d
  version_type=sunos
Packit c32a2d
  need_lib_prefix=no
Packit c32a2d
  need_version=no
Packit c32a2d
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
Packit c32a2d
    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
Packit c32a2d
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
Packit c32a2d
    dynamic_linker='NetBSD (a.out) ld.so'
Packit c32a2d
  else
Packit c32a2d
    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Packit c32a2d
    soname_spec='$libname$release$shared_ext$major'
Packit c32a2d
    dynamic_linker='NetBSD ld.elf_so'
Packit c32a2d
  fi
Packit c32a2d
  shlibpath_var=LD_LIBRARY_PATH
Packit c32a2d
  shlibpath_overrides_runpath=yes
Packit c32a2d
  hardcode_into_libs=yes
Packit c32a2d
  ;;
Packit c32a2d
Packit c32a2d
newsos6)
Packit c32a2d
  version_type=linux # correct to gnu/linux during the next big refactor
Packit c32a2d
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Packit c32a2d
  shlibpath_var=LD_LIBRARY_PATH
Packit c32a2d
  shlibpath_overrides_runpath=yes
Packit c32a2d
  ;;
Packit c32a2d
Packit c32a2d
*nto* | *qnx*)
Packit c32a2d
  version_type=qnx
Packit c32a2d
  need_lib_prefix=no
Packit c32a2d
  need_version=no
Packit c32a2d
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Packit c32a2d
  soname_spec='$libname$release$shared_ext$major'
Packit c32a2d
  shlibpath_var=LD_LIBRARY_PATH
Packit c32a2d
  shlibpath_overrides_runpath=no
Packit c32a2d
  hardcode_into_libs=yes
Packit c32a2d
  dynamic_linker='ldqnx.so'
Packit c32a2d
  ;;
Packit c32a2d
Packit c32a2d
openbsd* | bitrig*)
Packit c32a2d
  version_type=sunos
Packit c32a2d
  sys_lib_dlsearch_path_spec=/usr/lib
Packit c32a2d
  need_lib_prefix=no
Packit c32a2d
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
Packit c32a2d
    need_version=no
Packit c32a2d
  else
Packit c32a2d
    need_version=yes
Packit c32a2d
  fi
Packit c32a2d
  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
Packit c32a2d
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
Packit c32a2d
  shlibpath_var=LD_LIBRARY_PATH
Packit c32a2d
  shlibpath_overrides_runpath=yes
Packit c32a2d
  ;;
Packit c32a2d
Packit c32a2d
os2*)
Packit c32a2d
  libname_spec='$name'
Packit c32a2d
  version_type=windows
Packit c32a2d
  shrext_cmds=.dll
Packit c32a2d
  need_version=no
Packit c32a2d
  need_lib_prefix=no
Packit c32a2d
  # OS/2 can only load a DLL with a base name of 8 characters or less.
Packit c32a2d
  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
Packit c32a2d
    v=$($ECHO $release$versuffix | tr -d .-);
Packit c32a2d
    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
Packit c32a2d
    $ECHO $n$v`$shared_ext'
Packit c32a2d
  library_names_spec='${libname}_dll.$libext'
Packit c32a2d
  dynamic_linker='OS/2 ld.exe'
Packit c32a2d
  shlibpath_var=BEGINLIBPATH
Packit c32a2d
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
Packit c32a2d
  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
Packit c32a2d
  postinstall_cmds='base_file=`basename \$file`~
Packit c32a2d
    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
Packit c32a2d
    dldir=$destdir/`dirname \$dlpath`~
Packit c32a2d
    test -d \$dldir || mkdir -p \$dldir~
Packit c32a2d
    $install_prog $dir/$dlname \$dldir/$dlname~
Packit c32a2d
    chmod a+x \$dldir/$dlname~
Packit c32a2d
    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
Packit c32a2d
      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
Packit c32a2d
    fi'
Packit c32a2d
  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
Packit c32a2d
    dlpath=$dir/\$dldll~
Packit c32a2d
    $RM \$dlpath'
Packit c32a2d
  ;;
Packit c32a2d
Packit c32a2d
osf3* | osf4* | osf5*)
Packit c32a2d
  version_type=osf
Packit c32a2d
  need_lib_prefix=no
Packit c32a2d
  need_version=no
Packit c32a2d
  soname_spec='$libname$release$shared_ext$major'
Packit c32a2d
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Packit c32a2d
  shlibpath_var=LD_LIBRARY_PATH
Packit c32a2d
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
Packit c32a2d
  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
Packit c32a2d
  ;;
Packit c32a2d
Packit c32a2d
rdos*)
Packit c32a2d
  dynamic_linker=no
Packit c32a2d
  ;;
Packit c32a2d
Packit c32a2d
solaris*)
Packit c32a2d
  version_type=linux # correct to gnu/linux during the next big refactor
Packit c32a2d
  need_lib_prefix=no
Packit c32a2d
  need_version=no
Packit c32a2d
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Packit c32a2d
  soname_spec='$libname$release$shared_ext$major'
Packit c32a2d
  shlibpath_var=LD_LIBRARY_PATH
Packit c32a2d
  shlibpath_overrides_runpath=yes
Packit c32a2d
  hardcode_into_libs=yes
Packit c32a2d
  # ldd complains unless libraries are executable
Packit c32a2d
  postinstall_cmds='chmod +x $lib'
Packit c32a2d
  ;;
Packit c32a2d
Packit c32a2d
sunos4*)
Packit c32a2d
  version_type=sunos
Packit c32a2d
  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
Packit c32a2d
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
Packit c32a2d
  shlibpath_var=LD_LIBRARY_PATH
Packit c32a2d
  shlibpath_overrides_runpath=yes
Packit c32a2d
  if test yes = "$with_gnu_ld"; then
Packit c32a2d
    need_lib_prefix=no
Packit c32a2d
  fi
Packit c32a2d
  need_version=yes
Packit c32a2d
  ;;
Packit c32a2d
Packit c32a2d
sysv4 | sysv4.3*)
Packit c32a2d
  version_type=linux # correct to gnu/linux during the next big refactor
Packit c32a2d
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Packit c32a2d
  soname_spec='$libname$release$shared_ext$major'
Packit c32a2d
  shlibpath_var=LD_LIBRARY_PATH
Packit c32a2d
  case $host_vendor in
Packit c32a2d
    sni)
Packit c32a2d
      shlibpath_overrides_runpath=no
Packit c32a2d
      need_lib_prefix=no
Packit c32a2d
      runpath_var=LD_RUN_PATH
Packit c32a2d
      ;;
Packit c32a2d
    siemens)
Packit c32a2d
      need_lib_prefix=no
Packit c32a2d
      ;;
Packit c32a2d
    motorola)
Packit c32a2d
      need_lib_prefix=no
Packit c32a2d
      need_version=no
Packit c32a2d
      shlibpath_overrides_runpath=no
Packit c32a2d
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
Packit c32a2d
      ;;
Packit c32a2d
  esac
Packit c32a2d
  ;;
Packit c32a2d
Packit c32a2d
sysv4*MP*)
Packit c32a2d
  if test -d /usr/nec; then
Packit c32a2d
    version_type=linux # correct to gnu/linux during the next big refactor
Packit c32a2d
    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
Packit c32a2d
    soname_spec='$libname$shared_ext.$major'
Packit c32a2d
    shlibpath_var=LD_LIBRARY_PATH
Packit c32a2d
  fi
Packit c32a2d
  ;;
Packit c32a2d
Packit c32a2d
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
Packit c32a2d
  version_type=sco
Packit c32a2d
  need_lib_prefix=no
Packit c32a2d
  need_version=no
Packit c32a2d
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
Packit c32a2d
  soname_spec='$libname$release$shared_ext$major'
Packit c32a2d
  shlibpath_var=LD_LIBRARY_PATH
Packit c32a2d
  shlibpath_overrides_runpath=yes
Packit c32a2d
  hardcode_into_libs=yes
Packit c32a2d
  if test yes = "$with_gnu_ld"; then
Packit c32a2d
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
Packit c32a2d
  else
Packit c32a2d
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
Packit c32a2d
    case $host_os in
Packit c32a2d
      sco3.2v5*)
Packit c32a2d
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
Packit c32a2d
	;;
Packit c32a2d
    esac
Packit c32a2d
  fi
Packit c32a2d
  sys_lib_dlsearch_path_spec='/usr/lib'
Packit c32a2d
  ;;
Packit c32a2d
Packit c32a2d
tpf*)
Packit c32a2d
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
Packit c32a2d
  version_type=linux # correct to gnu/linux during the next big refactor
Packit c32a2d
  need_lib_prefix=no
Packit c32a2d
  need_version=no
Packit c32a2d
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Packit c32a2d
  shlibpath_var=LD_LIBRARY_PATH
Packit c32a2d
  shlibpath_overrides_runpath=no
Packit c32a2d
  hardcode_into_libs=yes
Packit c32a2d
  ;;
Packit c32a2d
Packit c32a2d
uts4*)
Packit c32a2d
  version_type=linux # correct to gnu/linux during the next big refactor
Packit c32a2d
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Packit c32a2d
  soname_spec='$libname$release$shared_ext$major'
Packit c32a2d
  shlibpath_var=LD_LIBRARY_PATH
Packit c32a2d
  ;;
Packit c32a2d
Packit c32a2d
*)
Packit c32a2d
  dynamic_linker=no
Packit c32a2d
  ;;
Packit c32a2d
esac
Packit c32a2d
AC_MSG_RESULT([$dynamic_linker])
Packit c32a2d
test no = "$dynamic_linker" && can_build_shared=no
Packit c32a2d
Packit c32a2d
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
Packit c32a2d
if test yes = "$GCC"; then
Packit c32a2d
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
Packit c32a2d
fi
Packit c32a2d
Packit c32a2d
if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
Packit c32a2d
  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
Packit c32a2d
fi
Packit c32a2d
Packit c32a2d
if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
Packit c32a2d
  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
Packit c32a2d
fi
Packit c32a2d
Packit c32a2d
# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
Packit c32a2d
configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
Packit c32a2d
Packit c32a2d
# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
Packit c32a2d
func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
Packit c32a2d
Packit c32a2d
# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
Packit c32a2d
configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
Packit c32a2d
Packit c32a2d
_LT_DECL([], [variables_saved_for_relink], [1],
Packit c32a2d
    [Variables whose values should be saved in libtool wrapper scripts and
Packit c32a2d
    restored at link time])
Packit c32a2d
_LT_DECL([], [need_lib_prefix], [0],
Packit c32a2d
    [Do we need the "lib" prefix for modules?])
Packit c32a2d
_LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
Packit c32a2d
_LT_DECL([], [version_type], [0], [Library versioning type])
Packit c32a2d
_LT_DECL([], [runpath_var], [0],  [Shared library runtime path variable])
Packit c32a2d
_LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
Packit c32a2d
_LT_DECL([], [shlibpath_overrides_runpath], [0],
Packit c32a2d
    [Is shlibpath searched before the hard-coded library search path?])
Packit c32a2d
_LT_DECL([], [libname_spec], [1], [Format of library name prefix])
Packit c32a2d
_LT_DECL([], [library_names_spec], [1],
Packit c32a2d
    [[List of archive names.  First name is the real one, the rest are links.
Packit c32a2d
    The last name is the one that the linker finds with -lNAME]])
Packit c32a2d
_LT_DECL([], [soname_spec], [1],
Packit c32a2d
    [[The coded name of the library, if different from the real name]])
Packit c32a2d
_LT_DECL([], [install_override_mode], [1],
Packit c32a2d
    [Permission mode override for installation of shared libraries])
Packit c32a2d
_LT_DECL([], [postinstall_cmds], [2],
Packit c32a2d
    [Command to use after installation of a shared archive])
Packit c32a2d
_LT_DECL([], [postuninstall_cmds], [2],
Packit c32a2d
    [Command to use after uninstallation of a shared archive])
Packit c32a2d
_LT_DECL([], [finish_cmds], [2],
Packit c32a2d
    [Commands used to finish a libtool library installation in a directory])
Packit c32a2d
_LT_DECL([], [finish_eval], [1],
Packit c32a2d
    [[As "finish_cmds", except a single script fragment to be evaled but
Packit c32a2d
    not shown]])
Packit c32a2d
_LT_DECL([], [hardcode_into_libs], [0],
Packit c32a2d
    [Whether we should hardcode library paths into libraries])
Packit c32a2d
_LT_DECL([], [sys_lib_search_path_spec], [2],
Packit c32a2d
    [Compile-time system search path for libraries])
Packit c32a2d
_LT_DECL([sys_lib_dlsearch_path_spec], [configure_time_dlsearch_path], [2],
Packit c32a2d
    [Detected run-time system search path for libraries])
Packit c32a2d
_LT_DECL([], [configure_time_lt_sys_library_path], [2],
Packit c32a2d
    [Explicit LT_SYS_LIBRARY_PATH set during ./configure time])
Packit c32a2d
])# _LT_SYS_DYNAMIC_LINKER
Packit c32a2d
Packit c32a2d
Packit c32a2d
# _LT_PATH_TOOL_PREFIX(TOOL)
Packit c32a2d
# --------------------------
Packit c32a2d
# find a file program that can recognize shared library
Packit c32a2d
AC_DEFUN([_LT_PATH_TOOL_PREFIX],
Packit c32a2d
[m4_require([_LT_DECL_EGREP])dnl
Packit c32a2d
AC_MSG_CHECKING([for $1])
Packit c32a2d
AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
Packit c32a2d
[case $MAGIC_CMD in
Packit c32a2d
[[\\/*] |  ?:[\\/]*])
Packit c32a2d
  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
Packit c32a2d
  ;;
Packit c32a2d
*)
Packit c32a2d
  lt_save_MAGIC_CMD=$MAGIC_CMD
Packit c32a2d
  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
Packit c32a2d
dnl $ac_dummy forces splitting on constant user-supplied paths.
Packit c32a2d
dnl POSIX.2 word splitting is done only on the output of word expansions,
Packit c32a2d
dnl not every word.  This closes a longstanding sh security hole.
Packit c32a2d
  ac_dummy="m4_if([$2], , $PATH, [$2])"
Packit c32a2d
  for ac_dir in $ac_dummy; do
Packit c32a2d
    IFS=$lt_save_ifs
Packit c32a2d
    test -z "$ac_dir" && ac_dir=.
Packit c32a2d
    if test -f "$ac_dir/$1"; then
Packit c32a2d
      lt_cv_path_MAGIC_CMD=$ac_dir/"$1"
Packit c32a2d
      if test -n "$file_magic_test_file"; then
Packit c32a2d
	case $deplibs_check_method in
Packit c32a2d
	"file_magic "*)
Packit c32a2d
	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
Packit c32a2d
	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
Packit c32a2d
	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
Packit c32a2d
	    $EGREP "$file_magic_regex" > /dev/null; then
Packit c32a2d
	    :
Packit c32a2d
	  else
Packit c32a2d
	    cat <<_LT_EOF 1>&2
Packit c32a2d
Packit c32a2d
*** Warning: the command libtool uses to detect shared libraries,
Packit c32a2d
*** $file_magic_cmd, produces output that libtool cannot recognize.
Packit c32a2d
*** The result is that libtool may fail to recognize shared libraries
Packit c32a2d
*** as such.  This will affect the creation of libtool libraries that
Packit c32a2d
*** depend on shared libraries, but programs linked with such libtool
Packit c32a2d
*** libraries will work regardless of this problem.  Nevertheless, you
Packit c32a2d
*** may want to report the problem to your system manager and/or to
Packit c32a2d
*** bug-libtool@gnu.org
Packit c32a2d
Packit c32a2d
_LT_EOF
Packit c32a2d
	  fi ;;
Packit c32a2d
	esac
Packit c32a2d
      fi
Packit c32a2d
      break
Packit c32a2d
    fi
Packit c32a2d
  done
Packit c32a2d
  IFS=$lt_save_ifs
Packit c32a2d
  MAGIC_CMD=$lt_save_MAGIC_CMD
Packit c32a2d
  ;;
Packit c32a2d
esac])
Packit c32a2d
MAGIC_CMD=$lt_cv_path_MAGIC_CMD
Packit c32a2d
if test -n "$MAGIC_CMD"; then
Packit c32a2d
  AC_MSG_RESULT($MAGIC_CMD)
Packit c32a2d
else
Packit c32a2d
  AC_MSG_RESULT(no)
Packit c32a2d
fi
Packit c32a2d
_LT_DECL([], [MAGIC_CMD], [0],
Packit c32a2d
	 [Used to examine libraries when file_magic_cmd begins with "file"])dnl
Packit c32a2d
])# _LT_PATH_TOOL_PREFIX
Packit c32a2d
Packit c32a2d
# Old name:
Packit c32a2d
AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
Packit c32a2d
dnl aclocal-1.4 backwards compatibility:
Packit c32a2d
dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
Packit c32a2d
Packit c32a2d
Packit c32a2d
# _LT_PATH_MAGIC
Packit c32a2d
# --------------
Packit c32a2d
# find a file program that can recognize a shared library
Packit c32a2d
m4_defun([_LT_PATH_MAGIC],
Packit c32a2d
[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
Packit c32a2d
if test -z "$lt_cv_path_MAGIC_CMD"; then
Packit c32a2d
  if test -n "$ac_tool_prefix"; then
Packit c32a2d
    _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
Packit c32a2d
  else
Packit c32a2d
    MAGIC_CMD=:
Packit c32a2d
  fi
Packit c32a2d
fi
Packit c32a2d
])# _LT_PATH_MAGIC
Packit c32a2d
Packit c32a2d
Packit c32a2d
# LT_PATH_LD
Packit c32a2d
# ----------
Packit c32a2d
# find the pathname to the GNU or non-GNU linker
Packit c32a2d
AC_DEFUN([LT_PATH_LD],
Packit c32a2d
[AC_REQUIRE([AC_PROG_CC])dnl
Packit c32a2d
AC_REQUIRE([AC_CANONICAL_HOST])dnl
Packit c32a2d
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
Packit c32a2d
m4_require([_LT_DECL_SED])dnl
Packit c32a2d
m4_require([_LT_DECL_EGREP])dnl
Packit c32a2d
m4_require([_LT_PROG_ECHO_BACKSLASH])dnl
Packit c32a2d
Packit c32a2d
AC_ARG_WITH([gnu-ld],
Packit c32a2d
    [AS_HELP_STRING([--with-gnu-ld],
Packit c32a2d
	[assume the C compiler uses GNU ld @<:@default=no@:>@])],
Packit c32a2d
    [test no = "$withval" || with_gnu_ld=yes],
Packit c32a2d
    [with_gnu_ld=no])dnl
Packit c32a2d
Packit c32a2d
ac_prog=ld
Packit c32a2d
if test yes = "$GCC"; then
Packit c32a2d
  # Check if gcc -print-prog-name=ld gives a path.
Packit c32a2d
  AC_MSG_CHECKING([for ld used by $CC])
Packit c32a2d
  case $host in
Packit c32a2d
  *-*-mingw*)
Packit c32a2d
    # gcc leaves a trailing carriage return, which upsets mingw
Packit c32a2d
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
Packit c32a2d
  *)
Packit c32a2d
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
Packit c32a2d
  esac
Packit c32a2d
  case $ac_prog in
Packit c32a2d
    # Accept absolute paths.
Packit c32a2d
    [[\\/]]* | ?:[[\\/]]*)
Packit c32a2d
      re_direlt='/[[^/]][[^/]]*/\.\./'
Packit c32a2d
      # Canonicalize the pathname of ld
Packit c32a2d
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
Packit c32a2d
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
Packit c32a2d
	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
Packit c32a2d
      done
Packit c32a2d
      test -z "$LD" && LD=$ac_prog
Packit c32a2d
      ;;
Packit c32a2d
  "")
Packit c32a2d
    # If it fails, then pretend we aren't using GCC.
Packit c32a2d
    ac_prog=ld
Packit c32a2d
    ;;
Packit c32a2d
  *)
Packit c32a2d
    # If it is relative, then search for the first ld in PATH.
Packit c32a2d
    with_gnu_ld=unknown
Packit c32a2d
    ;;
Packit c32a2d
  esac
Packit c32a2d
elif test yes = "$with_gnu_ld"; then
Packit c32a2d
  AC_MSG_CHECKING([for GNU ld])
Packit c32a2d
else
Packit c32a2d
  AC_MSG_CHECKING([for non-GNU ld])
Packit c32a2d
fi
Packit c32a2d
AC_CACHE_VAL(lt_cv_path_LD,
Packit c32a2d
[if test -z "$LD"; then
Packit c32a2d
  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
Packit c32a2d
  for ac_dir in $PATH; do
Packit c32a2d
    IFS=$lt_save_ifs
Packit c32a2d
    test -z "$ac_dir" && ac_dir=.
Packit c32a2d
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
Packit c32a2d
      lt_cv_path_LD=$ac_dir/$ac_prog
Packit c32a2d
      # Check to see if the program is GNU ld.  I'd rather use --version,
Packit c32a2d
      # but apparently some variants of GNU ld only accept -v.
Packit c32a2d
      # Break only if it was the GNU/non-GNU ld that we prefer.
Packit c32a2d
      case `"$lt_cv_path_LD" -v 2>&1 
Packit c32a2d
      *GNU* | *'with BFD'*)
Packit c32a2d
	test no != "$with_gnu_ld" && break
Packit c32a2d
	;;
Packit c32a2d
      *)
Packit c32a2d
	test yes != "$with_gnu_ld" && break
Packit c32a2d
	;;
Packit c32a2d
      esac
Packit c32a2d
    fi
Packit c32a2d
  done
Packit c32a2d
  IFS=$lt_save_ifs
Packit c32a2d
else
Packit c32a2d
  lt_cv_path_LD=$LD # Let the user override the test with a path.
Packit c32a2d
fi])
Packit c32a2d
LD=$lt_cv_path_LD
Packit c32a2d
if test -n "$LD"; then
Packit c32a2d
  AC_MSG_RESULT($LD)
Packit c32a2d
else
Packit c32a2d
  AC_MSG_RESULT(no)
Packit c32a2d
fi
Packit c32a2d
test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
Packit c32a2d
_LT_PATH_LD_GNU
Packit c32a2d
AC_SUBST([LD])
Packit c32a2d
Packit c32a2d
_LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
Packit c32a2d
])# LT_PATH_LD
Packit c32a2d
Packit c32a2d
# Old names:
Packit c32a2d
AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
Packit c32a2d
AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
Packit c32a2d
dnl aclocal-1.4 backwards compatibility:
Packit c32a2d
dnl AC_DEFUN([AM_PROG_LD], [])
Packit c32a2d
dnl AC_DEFUN([AC_PROG_LD], [])
Packit c32a2d
Packit c32a2d
Packit c32a2d
# _LT_PATH_LD_GNU
Packit c32a2d
#- --------------
Packit c32a2d
m4_defun([_LT_PATH_LD_GNU],
Packit c32a2d
[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
Packit c32a2d
[# I'd rather use --version here, but apparently some GNU lds only accept -v.
Packit c32a2d
case `$LD -v 2>&1 
Packit c32a2d
*GNU* | *'with BFD'*)
Packit c32a2d
  lt_cv_prog_gnu_ld=yes
Packit c32a2d
  ;;
Packit c32a2d
*)
Packit c32a2d
  lt_cv_prog_gnu_ld=no
Packit c32a2d
  ;;
Packit c32a2d
esac])
Packit c32a2d
with_gnu_ld=$lt_cv_prog_gnu_ld
Packit c32a2d
])# _LT_PATH_LD_GNU
Packit c32a2d
Packit c32a2d
Packit c32a2d
# _LT_CMD_RELOAD
Packit c32a2d
# --------------
Packit c32a2d
# find reload flag for linker
Packit c32a2d
#   -- PORTME Some linkers may need a different reload flag.
Packit c32a2d
m4_defun([_LT_CMD_RELOAD],
Packit c32a2d
[AC_CACHE_CHECK([for $LD option to reload object files],
Packit c32a2d
  lt_cv_ld_reload_flag,
Packit c32a2d
  [lt_cv_ld_reload_flag='-r'])
Packit c32a2d
reload_flag=$lt_cv_ld_reload_flag
Packit c32a2d
case $reload_flag in
Packit c32a2d
"" | " "*) ;;
Packit c32a2d
*) reload_flag=" $reload_flag" ;;
Packit c32a2d
esac
Packit c32a2d
reload_cmds='$LD$reload_flag -o $output$reload_objs'
Packit c32a2d
case $host_os in
Packit c32a2d
  cygwin* | mingw* | pw32* | cegcc*)
Packit c32a2d
    if test yes != "$GCC"; then
Packit c32a2d
      reload_cmds=false
Packit c32a2d
    fi
Packit c32a2d
    ;;
Packit c32a2d
  darwin*)
Packit c32a2d
    if test yes = "$GCC"; then
Packit c32a2d
      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
Packit c32a2d
    else
Packit c32a2d
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
Packit c32a2d
    fi
Packit c32a2d
    ;;
Packit c32a2d
esac
Packit c32a2d
_LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl
Packit c32a2d
_LT_TAGDECL([], [reload_cmds], [2])dnl
Packit c32a2d
])# _LT_CMD_RELOAD
Packit c32a2d
Packit c32a2d
Packit c32a2d
# _LT_PATH_DD
Packit c32a2d
# -----------
Packit c32a2d
# find a working dd
Packit c32a2d
m4_defun([_LT_PATH_DD],
Packit c32a2d
[AC_CACHE_CHECK([for a working dd], [ac_cv_path_lt_DD],
Packit c32a2d
[printf 0123456789abcdef0123456789abcdef >conftest.i
Packit c32a2d
cat conftest.i conftest.i >conftest2.i
Packit c32a2d
: ${lt_DD:=$DD}
Packit c32a2d
AC_PATH_PROGS_FEATURE_CHECK([lt_DD], [dd],
Packit c32a2d
[if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
Packit c32a2d
  cmp -s conftest.i conftest.out \
Packit c32a2d
  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
Packit c32a2d
fi])
Packit c32a2d
rm -f conftest.i conftest2.i conftest.out])
Packit c32a2d
])# _LT_PATH_DD
Packit c32a2d
Packit c32a2d
Packit c32a2d
# _LT_CMD_TRUNCATE
Packit c32a2d
# ----------------
Packit c32a2d
# find command to truncate a binary pipe
Packit c32a2d
m4_defun([_LT_CMD_TRUNCATE],
Packit c32a2d
[m4_require([_LT_PATH_DD])
Packit c32a2d
AC_CACHE_CHECK([how to truncate binary pipes], [lt_cv_truncate_bin],
Packit c32a2d
[printf 0123456789abcdef0123456789abcdef >conftest.i
Packit c32a2d
cat conftest.i conftest.i >conftest2.i
Packit c32a2d
lt_cv_truncate_bin=
Packit c32a2d
if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
Packit c32a2d
  cmp -s conftest.i conftest.out \
Packit c32a2d
  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
Packit c32a2d
fi
Packit c32a2d
rm -f conftest.i conftest2.i conftest.out
Packit c32a2d
test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"])
Packit c32a2d
_LT_DECL([lt_truncate_bin], [lt_cv_truncate_bin], [1],
Packit c32a2d
  [Command to truncate a binary pipe])
Packit c32a2d
])# _LT_CMD_TRUNCATE
Packit c32a2d
Packit c32a2d
Packit c32a2d
# _LT_CHECK_MAGIC_METHOD
Packit c32a2d
# ----------------------
Packit c32a2d
# how to check for library dependencies
Packit c32a2d
#  -- PORTME fill in with the dynamic library characteristics
Packit c32a2d
m4_defun([_LT_CHECK_MAGIC_METHOD],
Packit c32a2d
[m4_require([_LT_DECL_EGREP])
Packit c32a2d
m4_require([_LT_DECL_OBJDUMP])
Packit c32a2d
AC_CACHE_CHECK([how to recognize dependent libraries],
Packit c32a2d
lt_cv_deplibs_check_method,
Packit c32a2d
[lt_cv_file_magic_cmd='$MAGIC_CMD'
Packit c32a2d
lt_cv_file_magic_test_file=
Packit c32a2d
lt_cv_deplibs_check_method='unknown'
Packit c32a2d
# Need to set the preceding variable on all platforms that support
Packit c32a2d
# interlibrary dependencies.
Packit c32a2d
# 'none' -- dependencies not supported.
Packit c32a2d
# 'unknown' -- same as none, but documents that we really don't know.
Packit c32a2d
# 'pass_all' -- all dependencies passed with no checks.
Packit c32a2d
# 'test_compile' -- check by making test program.
Packit c32a2d
# 'file_magic [[regex]]' -- check by looking for files in library path
Packit c32a2d
# that responds to the $file_magic_cmd with a given extended regex.
Packit c32a2d
# If you have 'file' or equivalent on your system and you're not sure
Packit c32a2d
# whether 'pass_all' will *always* work, you probably want this one.
Packit c32a2d
Packit c32a2d
case $host_os in
Packit c32a2d
aix[[4-9]]*)
Packit c32a2d
  lt_cv_deplibs_check_method=pass_all
Packit c32a2d
  ;;
Packit c32a2d
Packit c32a2d
beos*)
Packit c32a2d
  lt_cv_deplibs_check_method=pass_all
Packit c32a2d
  ;;
Packit c32a2d
Packit c32a2d
bsdi[[45]]*)
Packit c32a2d
  lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
Packit c32a2d
  lt_cv_file_magic_cmd='/usr/bin/file -L'
Packit c32a2d
  lt_cv_file_magic_test_file=/shlib/libc.so
Packit c32a2d
  ;;
Packit c32a2d
Packit c32a2d
cygwin*)
Packit c32a2d
  # func_win32_libid is a shell function defined in ltmain.sh
Packit c32a2d
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
Packit c32a2d
  lt_cv_file_magic_cmd='func_win32_libid'
Packit c32a2d
  ;;
Packit c32a2d
Packit c32a2d
mingw* | pw32*)
Packit c32a2d
  # Base MSYS/MinGW do not provide the 'file' command needed by
Packit c32a2d
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
Packit c32a2d
  # unless we find 'file', for example because we are cross-compiling.
Packit c32a2d
  if ( file / ) >/dev/null 2>&1; then
Packit c32a2d
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
Packit c32a2d
    lt_cv_file_magic_cmd='func_win32_libid'
Packit c32a2d
  else
Packit c32a2d
    # Keep this pattern in sync with the one in func_win32_libid.
Packit c32a2d
    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
Packit c32a2d
    lt_cv_file_magic_cmd='$OBJDUMP -f'
Packit c32a2d
  fi
Packit c32a2d
  ;;
Packit c32a2d
Packit c32a2d
cegcc*)
Packit c32a2d
  # use the weaker test based on 'objdump'. See mingw*.
Packit c32a2d
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
Packit c32a2d
  lt_cv_file_magic_cmd='$OBJDUMP -f'
Packit c32a2d
  ;;
Packit c32a2d
Packit c32a2d
darwin* | rhapsody*)
Packit c32a2d
  lt_cv_deplibs_check_method=pass_all
Packit c32a2d
  ;;
Packit c32a2d
Packit c32a2d
freebsd* | dragonfly*)
Packit c32a2d
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
Packit c32a2d
    case $host_cpu in
Packit c32a2d
    i*86 )
Packit c32a2d
      # Not sure whether the presence of OpenBSD here was a mistake.
Packit c32a2d
      # Let's accept both of them until this is cleared up.
Packit c32a2d
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
Packit c32a2d
      lt_cv_file_magic_cmd=/usr/bin/file
Packit c32a2d
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
Packit c32a2d
      ;;
Packit c32a2d
    esac
Packit c32a2d
  else
Packit c32a2d
    lt_cv_deplibs_check_method=pass_all
Packit c32a2d
  fi
Packit c32a2d
  ;;
Packit c32a2d
Packit c32a2d
haiku*)
Packit c32a2d
  lt_cv_deplibs_check_method=pass_all
Packit c32a2d
  ;;
Packit c32a2d
Packit c32a2d
hpux10.20* | hpux11*)
Packit c32a2d
  lt_cv_file_magic_cmd=/usr/bin/file
Packit c32a2d
  case $host_cpu in
Packit c32a2d
  ia64*)
Packit c32a2d
    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
Packit c32a2d
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
Packit c32a2d
    ;;
Packit c32a2d
  hppa*64*)
Packit c32a2d
    [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 c32a2d
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
Packit c32a2d
    ;;
Packit c32a2d
  *)
Packit c32a2d
    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library'
Packit c32a2d
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
Packit c32a2d
    ;;
Packit c32a2d
  esac
Packit c32a2d
  ;;
Packit c32a2d
Packit c32a2d
interix[[3-9]]*)
Packit c32a2d
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
Packit c32a2d
  lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
Packit c32a2d
  ;;
Packit c32a2d
Packit c32a2d
irix5* | irix6* | nonstopux*)
Packit c32a2d
  case $LD in
Packit c32a2d
  *-32|*"-32 ") libmagic=32-bit;;
Packit c32a2d
  *-n32|*"-n32 ") libmagic=N32;;
Packit c32a2d
  *-64|*"-64 ") libmagic=64-bit;;
Packit c32a2d
  *) libmagic=never-match;;
Packit c32a2d
  esac
Packit c32a2d
  lt_cv_deplibs_check_method=pass_all
Packit c32a2d
  ;;
Packit c32a2d
Packit c32a2d
# This must be glibc/ELF.
Packit c32a2d
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
Packit c32a2d
  lt_cv_deplibs_check_method=pass_all
Packit c32a2d
  ;;
Packit c32a2d
Packit c32a2d
netbsd*)
Packit c32a2d
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
Packit c32a2d
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
Packit c32a2d
  else
Packit c32a2d
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
Packit c32a2d
  fi
Packit c32a2d
  ;;
Packit c32a2d
Packit c32a2d
newos6*)
Packit c32a2d
  lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
Packit c32a2d
  lt_cv_file_magic_cmd=/usr/bin/file
Packit c32a2d
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
Packit c32a2d
  ;;
Packit c32a2d
Packit c32a2d
*nto* | *qnx*)
Packit c32a2d
  lt_cv_deplibs_check_method=pass_all
Packit c32a2d
  ;;
Packit c32a2d
Packit c32a2d
openbsd* | bitrig*)
Packit c32a2d
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
Packit c32a2d
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
Packit c32a2d
  else
Packit c32a2d
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
Packit c32a2d
  fi
Packit c32a2d
  ;;
Packit c32a2d
Packit c32a2d
osf3* | osf4* | osf5*)
Packit c32a2d
  lt_cv_deplibs_check_method=pass_all
Packit c32a2d
  ;;
Packit c32a2d
Packit c32a2d
rdos*)
Packit c32a2d
  lt_cv_deplibs_check_method=pass_all
Packit c32a2d
  ;;
Packit c32a2d
Packit c32a2d
solaris*)
Packit c32a2d
  lt_cv_deplibs_check_method=pass_all
Packit c32a2d
  ;;
Packit c32a2d
Packit c32a2d
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
Packit c32a2d
  lt_cv_deplibs_check_method=pass_all
Packit c32a2d
  ;;
Packit c32a2d
Packit c32a2d
sysv4 | sysv4.3*)
Packit c32a2d
  case $host_vendor in
Packit c32a2d
  motorola)
Packit c32a2d
    lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]'
Packit c32a2d
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
Packit c32a2d
    ;;
Packit c32a2d
  ncr)
Packit c32a2d
    lt_cv_deplibs_check_method=pass_all
Packit c32a2d
    ;;
Packit c32a2d
  sequent)
Packit c32a2d
    lt_cv_file_magic_cmd='/bin/file'
Packit c32a2d
    lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
Packit c32a2d
    ;;
Packit c32a2d
  sni)
Packit c32a2d
    lt_cv_file_magic_cmd='/bin/file'
Packit c32a2d
    lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
Packit c32a2d
    lt_cv_file_magic_test_file=/lib/libc.so
Packit c32a2d
    ;;
Packit c32a2d
  siemens)
Packit c32a2d
    lt_cv_deplibs_check_method=pass_all
Packit c32a2d
    ;;
Packit c32a2d
  pc)
Packit c32a2d
    lt_cv_deplibs_check_method=pass_all
Packit c32a2d
    ;;
Packit c32a2d
  esac
Packit c32a2d
  ;;
Packit c32a2d
Packit c32a2d
tpf*)
Packit c32a2d
  lt_cv_deplibs_check_method=pass_all
Packit c32a2d
  ;;
Packit c32a2d
os2*)
Packit c32a2d
  lt_cv_deplibs_check_method=pass_all
Packit c32a2d
  ;;
Packit c32a2d
esac
Packit c32a2d
])
Packit c32a2d
Packit c32a2d
file_magic_glob=
Packit c32a2d
want_nocaseglob=no
Packit c32a2d
if test "$build" = "$host"; then
Packit c32a2d
  case $host_os in
Packit c32a2d
  mingw* | pw32*)
Packit c32a2d
    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
Packit c32a2d
      want_nocaseglob=yes
Packit c32a2d
    else
Packit c32a2d
      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"`
Packit c32a2d
    fi
Packit c32a2d
    ;;
Packit c32a2d
  esac
Packit c32a2d
fi
Packit c32a2d
Packit c32a2d
file_magic_cmd=$lt_cv_file_magic_cmd
Packit c32a2d
deplibs_check_method=$lt_cv_deplibs_check_method
Packit c32a2d
test -z "$deplibs_check_method" && deplibs_check_method=unknown
Packit c32a2d
Packit c32a2d
_LT_DECL([], [deplibs_check_method], [1],
Packit c32a2d
    [Method to check whether dependent libraries are shared objects])
Packit c32a2d
_LT_DECL([], [file_magic_cmd], [1],
Packit c32a2d
    [Command to use when deplibs_check_method = "file_magic"])
Packit c32a2d
_LT_DECL([], [file_magic_glob], [1],
Packit c32a2d
    [How to find potential files when deplibs_check_method = "file_magic"])
Packit c32a2d
_LT_DECL([], [want_nocaseglob], [1],
Packit c32a2d
    [Find potential files using nocaseglob when deplibs_check_method = "file_magic"])
Packit c32a2d
])# _LT_CHECK_MAGIC_METHOD
Packit c32a2d
Packit c32a2d
Packit c32a2d
# LT_PATH_NM
Packit c32a2d
# ----------
Packit c32a2d
# find the pathname to a BSD- or MS-compatible name lister
Packit c32a2d
AC_DEFUN([LT_PATH_NM],
Packit c32a2d
[AC_REQUIRE([AC_PROG_CC])dnl
Packit c32a2d
AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
Packit c32a2d
[if test -n "$NM"; then
Packit c32a2d
  # Let the user override the test.
Packit c32a2d
  lt_cv_path_NM=$NM
Packit c32a2d
else
Packit c32a2d
  lt_nm_to_check=${ac_tool_prefix}nm
Packit c32a2d
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
Packit c32a2d
    lt_nm_to_check="$lt_nm_to_check nm"
Packit c32a2d
  fi
Packit c32a2d
  for lt_tmp_nm in $lt_nm_to_check; do
Packit c32a2d
    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
Packit c32a2d
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
Packit c32a2d
      IFS=$lt_save_ifs
Packit c32a2d
      test -z "$ac_dir" && ac_dir=.
Packit c32a2d
      tmp_nm=$ac_dir/$lt_tmp_nm
Packit c32a2d
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
Packit c32a2d
	# Check to see if the nm accepts a BSD-compat flag.
Packit c32a2d
	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
Packit c32a2d
	#   nm: unknown option "B" ignored
Packit c32a2d
	# Tru64's nm complains that /dev/null is an invalid object file
Packit c32a2d
	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
Packit c32a2d
	case $build_os in
Packit c32a2d
	mingw*) lt_bad_file=conftest.nm/nofile ;;
Packit c32a2d
	*) lt_bad_file=/dev/null ;;
Packit c32a2d
	esac
Packit c32a2d
	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
Packit c32a2d
	*$lt_bad_file* | *'Invalid file or object type'*)
Packit c32a2d
	  lt_cv_path_NM="$tmp_nm -B"
Packit c32a2d
	  break 2
Packit c32a2d
	  ;;
Packit c32a2d
	*)
Packit c32a2d
	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
Packit c32a2d
	  */dev/null*)
Packit c32a2d
	    lt_cv_path_NM="$tmp_nm -p"
Packit c32a2d
	    break 2
Packit c32a2d
	    ;;
Packit c32a2d
	  *)
Packit c32a2d
	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
Packit c32a2d
	    continue # so that we can try to find one that supports BSD flags
Packit c32a2d
	    ;;
Packit c32a2d
	  esac
Packit c32a2d
	  ;;
Packit c32a2d
	esac
Packit c32a2d
      fi
Packit c32a2d
    done
Packit c32a2d
    IFS=$lt_save_ifs
Packit c32a2d
  done
Packit c32a2d
  : ${lt_cv_path_NM=no}
Packit c32a2d
fi])
Packit c32a2d
if test no != "$lt_cv_path_NM"; then
Packit c32a2d
  NM=$lt_cv_path_NM
Packit c32a2d
else
Packit c32a2d
  # Didn't find any BSD compatible name lister, look for dumpbin.
Packit c32a2d
  if test -n "$DUMPBIN"; then :
Packit c32a2d
    # Let the user override the test.
Packit c32a2d
  else
Packit c32a2d
    AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
Packit c32a2d
    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
Packit c32a2d
    *COFF*)
Packit c32a2d
      DUMPBIN="$DUMPBIN -symbols -headers"
Packit c32a2d
      ;;
Packit c32a2d
    *)
Packit c32a2d
      DUMPBIN=:
Packit c32a2d
      ;;
Packit c32a2d
    esac
Packit c32a2d
  fi
Packit c32a2d
  AC_SUBST([DUMPBIN])
Packit c32a2d
  if test : != "$DUMPBIN"; then
Packit c32a2d
    NM=$DUMPBIN
Packit c32a2d
  fi
Packit c32a2d
fi
Packit c32a2d
test -z "$NM" && NM=nm
Packit c32a2d
AC_SUBST([NM])
Packit c32a2d
_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
Packit c32a2d
Packit c32a2d
AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
Packit c32a2d
  [lt_cv_nm_interface="BSD nm"
Packit c32a2d
  echo "int some_variable = 0;" > conftest.$ac_ext
Packit c32a2d
  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
Packit c32a2d
  (eval "$ac_compile" 2>conftest.err)
Packit c32a2d
  cat conftest.err >&AS_MESSAGE_LOG_FD
Packit c32a2d
  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
Packit c32a2d
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
Packit c32a2d
  cat conftest.err >&AS_MESSAGE_LOG_FD
Packit c32a2d
  (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD)
Packit c32a2d
  cat conftest.out >&AS_MESSAGE_LOG_FD
Packit c32a2d
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
Packit c32a2d
    lt_cv_nm_interface="MS dumpbin"
Packit c32a2d
  fi
Packit c32a2d
  rm -f conftest*])
Packit c32a2d
])# LT_PATH_NM
Packit c32a2d
Packit c32a2d
# Old names:
Packit c32a2d
AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
Packit c32a2d
AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
Packit c32a2d
dnl aclocal-1.4 backwards compatibility:
Packit c32a2d
dnl AC_DEFUN([AM_PROG_NM], [])
Packit c32a2d
dnl AC_DEFUN([AC_PROG_NM], [])
Packit c32a2d
Packit c32a2d
# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
Packit c32a2d
# --------------------------------
Packit c32a2d
# how to determine the name of the shared library
Packit c32a2d
# associated with a specific link library.
Packit c32a2d
#  -- PORTME fill in with the dynamic library characteristics
Packit c32a2d
m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB],
Packit c32a2d
[m4_require([_LT_DECL_EGREP])
Packit c32a2d
m4_require([_LT_DECL_OBJDUMP])
Packit c32a2d
m4_require([_LT_DECL_DLLTOOL])
Packit c32a2d
AC_CACHE_CHECK([how to associate runtime and link libraries],
Packit c32a2d
lt_cv_sharedlib_from_linklib_cmd,
Packit c32a2d
[lt_cv_sharedlib_from_linklib_cmd='unknown'
Packit c32a2d
Packit c32a2d
case $host_os in
Packit c32a2d
cygwin* | mingw* | pw32* | cegcc*)
Packit c32a2d
  # two different shell functions defined in ltmain.sh;
Packit c32a2d
  # decide which one to use based on capabilities of $DLLTOOL
Packit c32a2d
  case `$DLLTOOL --help 2>&1` in
Packit c32a2d
  *--identify-strict*)
Packit c32a2d
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
Packit c32a2d
    ;;
Packit c32a2d
  *)
Packit c32a2d
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
Packit c32a2d
    ;;
Packit c32a2d
  esac
Packit c32a2d
  ;;
Packit c32a2d
*)
Packit c32a2d
  # fallback: assume linklib IS sharedlib
Packit c32a2d
  lt_cv_sharedlib_from_linklib_cmd=$ECHO
Packit c32a2d
  ;;
Packit c32a2d
esac
Packit c32a2d
])
Packit c32a2d
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
Packit c32a2d
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
Packit c32a2d
Packit c32a2d
_LT_DECL([], [sharedlib_from_linklib_cmd], [1],
Packit c32a2d
    [Command to associate shared and link libraries])
Packit c32a2d
])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
Packit c32a2d
Packit c32a2d
Packit c32a2d
# _LT_PATH_MANIFEST_TOOL
Packit c32a2d
# ----------------------
Packit c32a2d
# locate the manifest tool
Packit c32a2d
m4_defun([_LT_PATH_MANIFEST_TOOL],
Packit c32a2d
[AC_CHECK_TOOL(MANIFEST_TOOL, mt, :)
Packit c32a2d
test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
Packit c32a2d
AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool],
Packit c32a2d
  [lt_cv_path_mainfest_tool=no
Packit c32a2d
  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
Packit c32a2d
  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
Packit c32a2d
  cat conftest.err >&AS_MESSAGE_LOG_FD
Packit c32a2d
  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
Packit c32a2d
    lt_cv_path_mainfest_tool=yes
Packit c32a2d
  fi
Packit c32a2d
  rm -f conftest*])
Packit c32a2d
if test yes != "$lt_cv_path_mainfest_tool"; then
Packit c32a2d
  MANIFEST_TOOL=:
Packit c32a2d
fi
Packit c32a2d
_LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
Packit c32a2d
])# _LT_PATH_MANIFEST_TOOL
Packit c32a2d
Packit c32a2d
Packit c32a2d
# _LT_DLL_DEF_P([FILE])
Packit c32a2d
# ---------------------
Packit c32a2d
# True iff FILE is a Windows DLL '.def' file.
Packit c32a2d
# Keep in sync with func_dll_def_p in the libtool script
Packit c32a2d
AC_DEFUN([_LT_DLL_DEF_P],
Packit c32a2d
[dnl
Packit c32a2d
  test DEF = "`$SED -n dnl
Packit c32a2d
    -e '\''s/^[[	 ]]*//'\'' dnl Strip leading whitespace
Packit c32a2d
    -e '\''/^\(;.*\)*$/d'\'' dnl      Delete empty lines and comments
Packit c32a2d
    -e '\''s/^\(EXPORTS\|LIBRARY\)\([[	 ]].*\)*$/DEF/p'\'' dnl
Packit c32a2d
    -e q dnl                          Only consider the first "real" line
Packit c32a2d
    $1`" dnl
Packit c32a2d
])# _LT_DLL_DEF_P
Packit c32a2d
Packit c32a2d
Packit c32a2d
# LT_LIB_M
Packit c32a2d
# --------
Packit c32a2d
# check for math library
Packit c32a2d
AC_DEFUN([LT_LIB_M],
Packit c32a2d
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
Packit c32a2d
LIBM=
Packit c32a2d
case $host in
Packit c32a2d
*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
Packit c32a2d
  # These system don't have libm, or don't need it
Packit c32a2d
  ;;
Packit c32a2d
*-ncr-sysv4.3*)
Packit c32a2d
  AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM=-lmw)
Packit c32a2d
  AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
Packit c32a2d
  ;;
Packit c32a2d
*)
Packit c32a2d
  AC_CHECK_LIB(m, cos, LIBM=-lm)
Packit c32a2d
  ;;
Packit c32a2d
esac
Packit c32a2d
AC_SUBST([LIBM])
Packit c32a2d
])# LT_LIB_M
Packit c32a2d
Packit c32a2d
# Old name:
Packit c32a2d
AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
Packit c32a2d
dnl aclocal-1.4 backwards compatibility:
Packit c32a2d
dnl AC_DEFUN([AC_CHECK_LIBM], [])
Packit c32a2d
Packit c32a2d
Packit c32a2d
# _LT_COMPILER_NO_RTTI([TAGNAME])
Packit c32a2d
# -------------------------------
Packit c32a2d
m4_defun([_LT_COMPILER_NO_RTTI],
Packit c32a2d
[m4_require([_LT_TAG_COMPILER])dnl
Packit c32a2d
Packit c32a2d
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
Packit c32a2d
Packit c32a2d
if test yes = "$GCC"; then
Packit c32a2d
  case $cc_basename in
Packit c32a2d
  nvcc*)
Packit c32a2d
    _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
Packit c32a2d
  *)
Packit c32a2d
    _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;;
Packit c32a2d
  esac
Packit c32a2d
Packit c32a2d
  _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
Packit c32a2d
    lt_cv_prog_compiler_rtti_exceptions,
Packit c32a2d
    [-fno-rtti -fno-exceptions], [],
Packit c32a2d
    [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
Packit c32a2d
fi
Packit c32a2d
_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
Packit c32a2d
	[Compiler flag to turn off builtin functions])
Packit c32a2d
])# _LT_COMPILER_NO_RTTI
Packit c32a2d
Packit c32a2d
Packit c32a2d
# _LT_CMD_GLOBAL_SYMBOLS
Packit c32a2d
# ----------------------
Packit c32a2d
m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
Packit c32a2d
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
Packit c32a2d
AC_REQUIRE([AC_PROG_CC])dnl
Packit c32a2d
AC_REQUIRE([AC_PROG_AWK])dnl
Packit c32a2d
AC_REQUIRE([LT_PATH_NM])dnl
Packit c32a2d
AC_REQUIRE([LT_PATH_LD])dnl
Packit c32a2d
m4_require([_LT_DECL_SED])dnl
Packit c32a2d
m4_require([_LT_DECL_EGREP])dnl
Packit c32a2d
m4_require([_LT_TAG_COMPILER])dnl
Packit c32a2d
Packit c32a2d
# Check for command to grab the raw symbol name followed by C symbol from nm.
Packit c32a2d
AC_MSG_CHECKING([command to parse $NM output from $compiler object])
Packit c32a2d
AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
Packit c32a2d
[
Packit c32a2d
# These are sane defaults that work on at least a few old systems.
Packit c32a2d
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
Packit c32a2d
Packit c32a2d
# Character class describing NM global symbol codes.
Packit c32a2d
symcode='[[BCDEGRST]]'
Packit c32a2d
Packit c32a2d
# Regexp to match symbols that can be accessed directly from C.
Packit c32a2d
sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
Packit c32a2d
Packit c32a2d
# Define system-specific variables.
Packit c32a2d
case $host_os in
Packit c32a2d
aix*)
Packit c32a2d
  symcode='[[BCDT]]'
Packit c32a2d
  ;;
Packit c32a2d
cygwin* | mingw* | pw32* | cegcc*)
Packit c32a2d
  symcode='[[ABCDGISTW]]'
Packit c32a2d
  ;;
Packit c32a2d
hpux*)
Packit c32a2d
  if test ia64 = "$host_cpu"; then
Packit c32a2d
    symcode='[[ABCDEGRST]]'
Packit c32a2d
  fi
Packit c32a2d
  ;;
Packit c32a2d
irix* | nonstopux*)
Packit c32a2d
  symcode='[[BCDEGRST]]'
Packit c32a2d
  ;;
Packit c32a2d
osf*)
Packit c32a2d
  symcode='[[BCDEGQRST]]'
Packit c32a2d
  ;;
Packit c32a2d
solaris*)
Packit c32a2d
  symcode='[[BDRT]]'
Packit c32a2d
  ;;
Packit c32a2d
sco3.2v5*)
Packit c32a2d
  symcode='[[DT]]'
Packit c32a2d
  ;;
Packit c32a2d
sysv4.2uw2*)
Packit c32a2d
  symcode='[[DT]]'
Packit c32a2d
  ;;
Packit c32a2d
sysv5* | sco5v6* | unixware* | OpenUNIX*)
Packit c32a2d
  symcode='[[ABDT]]'
Packit c32a2d
  ;;
Packit c32a2d
sysv4)
Packit c32a2d
  symcode='[[DFNSTU]]'
Packit c32a2d
  ;;
Packit c32a2d
esac
Packit c32a2d
Packit c32a2d
# If we're using GNU nm, then use its standard symbol codes.
Packit c32a2d
case `$NM -V 2>&1` in
Packit c32a2d
*GNU* | *'with BFD'*)
Packit c32a2d
  symcode='[[ABCDGIRSTW]]' ;;
Packit c32a2d
esac
Packit c32a2d
Packit c32a2d
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
Packit c32a2d
  # Gets list of data symbols to import.
Packit c32a2d
  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
Packit c32a2d
  # Adjust the below global symbol transforms to fixup imported variables.
Packit c32a2d
  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
Packit c32a2d
  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
Packit c32a2d
  lt_c_name_lib_hook="\
Packit c32a2d
  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
Packit c32a2d
  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
Packit c32a2d
else
Packit c32a2d
  # Disable hooks by default.
Packit c32a2d
  lt_cv_sys_global_symbol_to_import=
Packit c32a2d
  lt_cdecl_hook=
Packit c32a2d
  lt_c_name_hook=
Packit c32a2d
  lt_c_name_lib_hook=
Packit c32a2d
fi
Packit c32a2d
Packit c32a2d
# Transform an extracted symbol line into a proper C declaration.
Packit c32a2d
# Some systems (esp. on ia64) link data and code symbols differently,
Packit c32a2d
# so use this general approach.
Packit c32a2d
lt_cv_sys_global_symbol_to_cdecl="sed -n"\
Packit c32a2d
$lt_cdecl_hook\
Packit c32a2d
" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
Packit c32a2d
" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
Packit c32a2d
Packit c32a2d
# Transform an extracted symbol line into symbol name and symbol address
Packit c32a2d
lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
Packit c32a2d
$lt_c_name_hook\
Packit c32a2d
" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
Packit c32a2d
" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
Packit c32a2d
Packit c32a2d
# Transform an extracted symbol line into symbol name with lib prefix and
Packit c32a2d
# symbol address.
Packit c32a2d
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
Packit c32a2d
$lt_c_name_lib_hook\
Packit c32a2d
" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
Packit c32a2d
" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
Packit c32a2d
" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
Packit c32a2d
Packit c32a2d
# Handle CRLF in mingw tool chain
Packit c32a2d
opt_cr=
Packit c32a2d
case $build_os in
Packit c32a2d
mingw*)
Packit c32a2d
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
Packit c32a2d
  ;;
Packit c32a2d
esac
Packit c32a2d
Packit c32a2d
# Try without a prefix underscore, then with it.
Packit c32a2d
for ac_symprfx in "" "_"; do
Packit c32a2d
Packit c32a2d
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
Packit c32a2d
  symxfrm="\\1 $ac_symprfx\\2 \\2"
Packit c32a2d
Packit c32a2d
  # Write the raw and C identifiers.
Packit c32a2d
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
Packit c32a2d
    # Fake it for dumpbin and say T for any non-static function,
Packit c32a2d
    # D for any global variable and I for any imported variable.
Packit c32a2d
    # Also find C++ and __fastcall symbols from MSVC++,
Packit c32a2d
    # which start with @ or ?.
Packit c32a2d
    lt_cv_sys_global_symbol_pipe="$AWK ['"\
Packit c32a2d
"     {last_section=section; section=\$ 3};"\
Packit c32a2d
"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
Packit c32a2d
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
Packit c32a2d
"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
Packit c32a2d
"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
Packit c32a2d
"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
Packit c32a2d
"     \$ 0!~/External *\|/{next};"\
Packit c32a2d
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
Packit c32a2d
"     {if(hide[section]) next};"\
Packit c32a2d
"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
Packit c32a2d
"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
Packit c32a2d
"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
Packit c32a2d
"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
Packit c32a2d
"     ' prfx=^$ac_symprfx]"
Packit c32a2d
  else
Packit c32a2d
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[	 ]]\($symcode$symcode*\)[[	 ]][[	 ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
Packit c32a2d
  fi
Packit c32a2d
  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
Packit c32a2d
Packit c32a2d
  # Check to see that the pipe works correctly.
Packit c32a2d
  pipe_works=no
Packit c32a2d
Packit c32a2d
  rm -f conftest*
Packit c32a2d
  cat > conftest.$ac_ext <<_LT_EOF
Packit c32a2d
#ifdef __cplusplus
Packit c32a2d
extern "C" {
Packit c32a2d
#endif
Packit c32a2d
char nm_test_var;
Packit c32a2d
void nm_test_func(void);
Packit c32a2d
void nm_test_func(void){}
Packit c32a2d
#ifdef __cplusplus
Packit c32a2d
}
Packit c32a2d
#endif
Packit c32a2d
int main(){nm_test_var='a';nm_test_func();return(0);}
Packit c32a2d
_LT_EOF
Packit c32a2d
Packit c32a2d
  if AC_TRY_EVAL(ac_compile); then
Packit c32a2d
    # Now try to grab the symbols.
Packit c32a2d
    nlist=conftest.nm
Packit c32a2d
    if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then
Packit c32a2d
      # Try sorting and uniquifying the output.
Packit c32a2d
      if sort "$nlist" | uniq > "$nlist"T; then
Packit c32a2d
	mv -f "$nlist"T "$nlist"
Packit c32a2d
      else
Packit c32a2d
	rm -f "$nlist"T
Packit c32a2d
      fi
Packit c32a2d
Packit c32a2d
      # Make sure that we snagged all the symbols we need.
Packit c32a2d
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
Packit c32a2d
	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
Packit c32a2d
	  cat <<_LT_EOF > conftest.$ac_ext
Packit c32a2d
/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
Packit c32a2d
#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
Packit c32a2d
/* DATA imports from DLLs on WIN32 can't be const, because runtime
Packit c32a2d
   relocations are performed -- see ld's documentation on pseudo-relocs.  */
Packit c32a2d
# define LT@&t@_DLSYM_CONST
Packit c32a2d
#elif defined __osf__
Packit c32a2d
/* This system does not cope well with relocations in const data.  */
Packit c32a2d
# define LT@&t@_DLSYM_CONST
Packit c32a2d
#else
Packit c32a2d
# define LT@&t@_DLSYM_CONST const
Packit c32a2d
#endif
Packit c32a2d
Packit c32a2d
#ifdef __cplusplus
Packit c32a2d
extern "C" {
Packit c32a2d
#endif
Packit c32a2d
Packit c32a2d
_LT_EOF
Packit c32a2d
	  # Now generate the symbol file.
Packit c32a2d
	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
Packit c32a2d
Packit c32a2d
	  cat <<_LT_EOF >> conftest.$ac_ext
Packit c32a2d
Packit c32a2d
/* The mapping between symbol names and symbols.  */
Packit c32a2d
LT@&t@_DLSYM_CONST struct {
Packit c32a2d
  const char *name;
Packit c32a2d
  void       *address;
Packit c32a2d
}
Packit c32a2d
lt__PROGRAM__LTX_preloaded_symbols[[]] =
Packit c32a2d
{
Packit c32a2d
  { "@PROGRAM@", (void *) 0 },
Packit c32a2d
_LT_EOF
Packit c32a2d
	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
Packit c32a2d
	  cat <<\_LT_EOF >> conftest.$ac_ext
Packit c32a2d
  {0, (void *) 0}
Packit c32a2d
};
Packit c32a2d
Packit c32a2d
/* This works around a problem in FreeBSD linker */
Packit c32a2d
#ifdef FREEBSD_WORKAROUND
Packit c32a2d
static const void *lt_preloaded_setup() {
Packit c32a2d
  return lt__PROGRAM__LTX_preloaded_symbols;
Packit c32a2d
}
Packit c32a2d
#endif
Packit c32a2d
Packit c32a2d
#ifdef __cplusplus
Packit c32a2d
}
Packit c32a2d
#endif
Packit c32a2d
_LT_EOF
Packit c32a2d
	  # Now try linking the two files.
Packit c32a2d
	  mv conftest.$ac_objext conftstm.$ac_objext
Packit c32a2d
	  lt_globsym_save_LIBS=$LIBS
Packit c32a2d
	  lt_globsym_save_CFLAGS=$CFLAGS
Packit c32a2d
	  LIBS=conftstm.$ac_objext
Packit c32a2d
	  CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
Packit c32a2d
	  if AC_TRY_EVAL(ac_link) && test -s conftest$ac_exeext; then
Packit c32a2d
	    pipe_works=yes
Packit c32a2d
	  fi
Packit c32a2d
	  LIBS=$lt_globsym_save_LIBS
Packit c32a2d
	  CFLAGS=$lt_globsym_save_CFLAGS
Packit c32a2d
	else
Packit c32a2d
	  echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
Packit c32a2d
	fi
Packit c32a2d
      else
Packit c32a2d
	echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
Packit c32a2d
      fi
Packit c32a2d
    else
Packit c32a2d
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
Packit c32a2d
    fi
Packit c32a2d
  else
Packit c32a2d
    echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
Packit c32a2d
    cat conftest.$ac_ext >&5
Packit c32a2d
  fi
Packit c32a2d
  rm -rf conftest* conftst*
Packit c32a2d
Packit c32a2d
  # Do not use the global_symbol_pipe unless it works.
Packit c32a2d
  if test yes = "$pipe_works"; then
Packit c32a2d
    break
Packit c32a2d
  else
Packit c32a2d
    lt_cv_sys_global_symbol_pipe=
Packit c32a2d
  fi
Packit c32a2d
done
Packit c32a2d
])
Packit c32a2d
if test -z "$lt_cv_sys_global_symbol_pipe"; then
Packit c32a2d
  lt_cv_sys_global_symbol_to_cdecl=
Packit c32a2d
fi
Packit c32a2d
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Packit c32a2d
  AC_MSG_RESULT(failed)
Packit c32a2d
else
Packit c32a2d
  AC_MSG_RESULT(ok)
Packit c32a2d
fi
Packit c32a2d
Packit c32a2d
# Response file support.
Packit c32a2d
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
Packit c32a2d
  nm_file_list_spec='@'
Packit c32a2d
elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then
Packit c32a2d
  nm_file_list_spec='@'
Packit c32a2d
fi
Packit c32a2d
Packit c32a2d
_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
Packit c32a2d
    [Take the output of nm and produce a listing of raw symbols and C names])
Packit c32a2d
_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
Packit c32a2d
    [Transform the output of nm in a proper C declaration])
Packit c32a2d
_LT_DECL([global_symbol_to_import], [lt_cv_sys_global_symbol_to_import], [1],
Packit c32a2d
    [Transform the output of nm into a list of symbols to manually relocate])
Packit c32a2d
_LT_DECL([global_symbol_to_c_name_address],
Packit c32a2d
    [lt_cv_sys_global_symbol_to_c_name_address], [1],
Packit c32a2d
    [Transform the output of nm in a C name address pair])
Packit c32a2d
_LT_DECL([global_symbol_to_c_name_address_lib_prefix],
Packit c32a2d
    [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
Packit c32a2d
    [Transform the output of nm in a C name address pair when lib prefix is needed])
Packit c32a2d
_LT_DECL([nm_interface], [lt_cv_nm_interface], [1],
Packit c32a2d
    [The name lister interface])
Packit c32a2d
_LT_DECL([], [nm_file_list_spec], [1],
Packit c32a2d
    [Specify filename containing input files for $NM])
Packit c32a2d
]) # _LT_CMD_GLOBAL_SYMBOLS
Packit c32a2d
Packit c32a2d
Packit c32a2d
# _LT_COMPILER_PIC([TAGNAME])
Packit c32a2d
# ---------------------------
Packit c32a2d
m4_defun([_LT_COMPILER_PIC],
Packit c32a2d
[m4_require([_LT_TAG_COMPILER])dnl
Packit c32a2d
_LT_TAGVAR(lt_prog_compiler_wl, $1)=
Packit c32a2d
_LT_TAGVAR(lt_prog_compiler_pic, $1)=
Packit c32a2d
_LT_TAGVAR(lt_prog_compiler_static, $1)=
Packit c32a2d
Packit c32a2d
m4_if([$1], [CXX], [
Packit c32a2d
  # C++ specific cases for pic, static, wl, etc.
Packit c32a2d
  if test yes = "$GXX"; then
Packit c32a2d
    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
Packit c32a2d
    _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
Packit c32a2d
Packit c32a2d
    case $host_os in
Packit c32a2d
    aix*)
Packit c32a2d
      # All AIX code is PIC.
Packit c32a2d
      if test ia64 = "$host_cpu"; then
Packit c32a2d
	# AIX 5 now supports IA64 processor
Packit c32a2d
	_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
Packit c32a2d
      fi
Packit c32a2d
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
Packit c32a2d
      ;;
Packit c32a2d
Packit c32a2d
    amigaos*)
Packit c32a2d
      case $host_cpu in
Packit c32a2d
      powerpc)
Packit c32a2d
            # see comment about AmigaOS4 .so support
Packit c32a2d
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
Packit c32a2d
        ;;
Packit c32a2d
      m68k)
Packit c32a2d
            # FIXME: we need at least 68020 code to build shared libraries, but
Packit c32a2d
            # adding the '-m68020' flag to GCC prevents building anything better,
Packit c32a2d
            # like '-m68040'.
Packit c32a2d
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
Packit c32a2d
        ;;
Packit c32a2d
      esac
Packit c32a2d
      ;;
Packit c32a2d
Packit c32a2d
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
Packit c32a2d
      # PIC is the default for these OSes.
Packit c32a2d
      ;;
Packit c32a2d
    mingw* | cygwin* | os2* | pw32* | cegcc*)
Packit c32a2d
      # This hack is so that the source file can tell whether it is being
Packit c32a2d
      # built for inclusion in a dll (and should export symbols for example).
Packit c32a2d
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
Packit c32a2d
      # (--disable-auto-import) libraries
Packit c32a2d
      m4_if([$1], [GCJ], [],
Packit c32a2d
	[_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
Packit c32a2d
      case $host_os in
Packit c32a2d
      os2*)
Packit c32a2d
	_LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static'
Packit c32a2d
	;;
Packit c32a2d
      esac
Packit c32a2d
      ;;
Packit c32a2d
    darwin* | rhapsody*)
Packit c32a2d
      # PIC is the default on this platform
Packit c32a2d
      # Common symbols not allowed in MH_DYLIB files
Packit c32a2d
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
Packit c32a2d
      ;;
Packit c32a2d
    *djgpp*)
Packit c32a2d
      # DJGPP does not support shared libraries at all
Packit c32a2d
      _LT_TAGVAR(lt_prog_compiler_pic, $1)=
Packit c32a2d
      ;;
Packit c32a2d
    haiku*)
Packit c32a2d
      # PIC is the default for Haiku.
Packit c32a2d
      # The "-static" flag exists, but is broken.
Packit c32a2d
      _LT_TAGVAR(lt_prog_compiler_static, $1)=
Packit c32a2d
      ;;
Packit c32a2d
    interix[[3-9]]*)
Packit c32a2d
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
Packit c32a2d
      # Instead, we relocate shared libraries at runtime.
Packit c32a2d
      ;;
Packit c32a2d
    sysv4*MP*)
Packit c32a2d
      if test -d /usr/nec; then
Packit c32a2d
	_LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
Packit c32a2d
      fi
Packit c32a2d
      ;;
Packit c32a2d
    hpux*)
Packit c32a2d
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
Packit c32a2d
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
Packit c32a2d
      # sets the default TLS model and affects inlining.
Packit c32a2d
      case $host_cpu in
Packit c32a2d
      hppa*64*)
Packit c32a2d
	;;
Packit c32a2d
      *)
Packit c32a2d
	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
Packit c32a2d
	;;
Packit c32a2d
      esac
Packit c32a2d
      ;;
Packit c32a2d
    *qnx* | *nto*)
Packit c32a2d
      # QNX uses GNU C++, but need to define -shared option too, otherwise
Packit c32a2d
      # it will coredump.
Packit c32a2d
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
Packit c32a2d
      ;;
Packit c32a2d
    *)
Packit c32a2d
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
Packit c32a2d
      ;;
Packit c32a2d
    esac
Packit c32a2d
  else
Packit c32a2d
    case $host_os in
Packit c32a2d
      aix[[4-9]]*)
Packit c32a2d
	# All AIX code is PIC.
Packit c32a2d
	if test ia64 = "$host_cpu"; then
Packit c32a2d
	  # AIX 5 now supports IA64 processor
Packit c32a2d
	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
Packit c32a2d
	else
Packit c32a2d
	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
Packit c32a2d
	fi
Packit c32a2d
	;;
Packit c32a2d
      chorus*)
Packit c32a2d
	case $cc_basename in
Packit c32a2d
	cxch68*)
Packit c32a2d
	  # Green Hills C++ Compiler
Packit c32a2d
	  # _LT_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
Packit c32a2d
	  ;;
Packit c32a2d
	esac
Packit c32a2d
	;;
Packit c32a2d
      mingw* | cygwin* | os2* | pw32* | cegcc*)
Packit c32a2d
	# This hack is so that the source file can tell whether it is being
Packit c32a2d
	# built for inclusion in a dll (and should export symbols for example).
Packit c32a2d
	m4_if([$1], [GCJ], [],
Packit c32a2d
	  [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
Packit c32a2d
	;;
Packit c32a2d
      dgux*)
Packit c32a2d
	case $cc_basename in
Packit c32a2d
	  ec++*)
Packit c32a2d
	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
Packit c32a2d
	    ;;
Packit c32a2d
	  ghcx*)
Packit c32a2d
	    # Green Hills C++ Compiler
Packit c32a2d
	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
Packit c32a2d
	    ;;
Packit c32a2d
	  *)
Packit c32a2d
	    ;;
Packit c32a2d
	esac
Packit c32a2d
	;;
Packit c32a2d
      freebsd* | dragonfly*)
Packit c32a2d
	# FreeBSD uses GNU C++
Packit c32a2d
	;;
Packit c32a2d
      hpux9* | hpux10* | hpux11*)
Packit c32a2d
	case $cc_basename in
Packit c32a2d
	  CC*)
Packit c32a2d
	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
Packit c32a2d
	    _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive'
Packit c32a2d
	    if test ia64 != "$host_cpu"; then
Packit c32a2d
	      _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
Packit c32a2d
	    fi
Packit c32a2d
	    ;;
Packit c32a2d
	  aCC*)
Packit c32a2d
	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
Packit c32a2d
	    _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive'
Packit c32a2d
	    case $host_cpu in
Packit c32a2d
	    hppa*64*|ia64*)
Packit c32a2d
	      # +Z the default
Packit c32a2d
	      ;;
Packit c32a2d
	    *)
Packit c32a2d
	      _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
Packit c32a2d
	      ;;
Packit c32a2d
	    esac
Packit c32a2d
	    ;;
Packit c32a2d
	  *)
Packit c32a2d
	    ;;
Packit c32a2d
	esac
Packit c32a2d
	;;
Packit c32a2d
      interix*)
Packit c32a2d
	# This is c89, which is MS Visual C++ (no shared libs)
Packit c32a2d
	# Anyone wants to do a port?
Packit c32a2d
	;;
Packit c32a2d
      irix5* | irix6* | nonstopux*)
Packit c32a2d
	case $cc_basename in
Packit c32a2d
	  CC*)
Packit c32a2d
	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
Packit c32a2d
	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
Packit c32a2d
	    # CC pic flag -KPIC is the default.
Packit c32a2d
	    ;;
Packit c32a2d
	  *)
Packit c32a2d
	    ;;
Packit c32a2d
	esac
Packit c32a2d
	;;
Packit c32a2d
      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
Packit c32a2d
	case $cc_basename in
Packit c32a2d
	  KCC*)
Packit c32a2d
	    # KAI C++ Compiler
Packit c32a2d
	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
Packit c32a2d
	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
Packit c32a2d
	    ;;
Packit c32a2d
	  ecpc* )
Packit c32a2d
	    # old Intel C++ for x86_64, which still supported -KPIC.
Packit c32a2d
	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
Packit c32a2d
	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
Packit c32a2d
	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
Packit c32a2d
	    ;;
Packit c32a2d
	  icpc* )
Packit c32a2d
	    # Intel C++, used to be incompatible with GCC.
Packit c32a2d
	    # ICC 10 doesn't accept -KPIC any more.
Packit c32a2d
	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
Packit c32a2d
	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
Packit c32a2d
	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
Packit c32a2d
	    ;;
Packit c32a2d
	  pgCC* | pgcpp*)
Packit c32a2d
	    # Portland Group C++ compiler
Packit c32a2d
	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
Packit c32a2d
	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
Packit c32a2d
	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
Packit c32a2d
	    ;;
Packit c32a2d
	  cxx*)
Packit c32a2d
	    # Compaq C++
Packit c32a2d
	    # Make sure the PIC flag is empty.  It appears that all Alpha
Packit c32a2d
	    # Linux and Compaq Tru64 Unix objects are PIC.
Packit c32a2d
	    _LT_TAGVAR(lt_prog_compiler_pic, $1)=
Packit c32a2d
	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
Packit c32a2d
	    ;;
Packit c32a2d
	  xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*)
Packit c32a2d
	    # IBM XL 8.0, 9.0 on PPC and BlueGene
Packit c32a2d
	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
Packit c32a2d
	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
Packit c32a2d
	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
Packit c32a2d
	    ;;
Packit c32a2d
	  *)
Packit c32a2d
	    case `$CC -V 2>&1 | sed 5q` in
Packit c32a2d
	    *Sun\ C*)
Packit c32a2d
	      # Sun C++ 5.9
Packit c32a2d
	      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
Packit c32a2d
	      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
Packit c32a2d
	      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
Packit c32a2d
	      ;;
Packit c32a2d
	    esac
Packit c32a2d
	    ;;
Packit c32a2d
	esac
Packit c32a2d
	;;
Packit c32a2d
      lynxos*)
Packit c32a2d
	;;
Packit c32a2d
      m88k*)
Packit c32a2d
	;;
Packit c32a2d
      mvs*)
Packit c32a2d
	case $cc_basename in
Packit c32a2d
	  cxx*)
Packit c32a2d
	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
Packit c32a2d
	    ;;
Packit c32a2d
	  *)
Packit c32a2d
	    ;;
Packit c32a2d
	esac
Packit c32a2d
	;;
Packit c32a2d
      netbsd*)
Packit c32a2d
	;;
Packit c32a2d
      *qnx* | *nto*)
Packit c32a2d
        # QNX uses GNU C++, but need to define -shared option too, otherwise
Packit c32a2d
        # it will coredump.
Packit c32a2d
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
Packit c32a2d
        ;;
Packit c32a2d
      osf3* | osf4* | osf5*)
Packit c32a2d
	case $cc_basename in
Packit c32a2d
	  KCC*)
Packit c32a2d
	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
Packit c32a2d
	    ;;
Packit c32a2d
	  RCC*)
Packit c32a2d
	    # Rational C++ 2.4.1
Packit c32a2d
	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
Packit c32a2d
	    ;;
Packit c32a2d
	  cxx*)
Packit c32a2d
	    # Digital/Compaq C++
Packit c32a2d
	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
Packit c32a2d
	    # Make sure the PIC flag is empty.  It appears that all Alpha
Packit c32a2d
	    # Linux and Compaq Tru64 Unix objects are PIC.
Packit c32a2d
	    _LT_TAGVAR(lt_prog_compiler_pic, $1)=
Packit c32a2d
	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
Packit c32a2d
	    ;;
Packit c32a2d
	  *)
Packit c32a2d
	    ;;
Packit c32a2d
	esac
Packit c32a2d
	;;
Packit c32a2d
      psos*)
Packit c32a2d
	;;
Packit c32a2d
      solaris*)
Packit c32a2d
	case $cc_basename in
Packit c32a2d
	  CC* | sunCC*)
Packit c32a2d
	    # Sun C++ 4.2, 5.x and Centerline C++
Packit c32a2d
	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
Packit c32a2d
	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
Packit c32a2d
	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
Packit c32a2d
	    ;;
Packit c32a2d
	  gcx*)
Packit c32a2d
	    # Green Hills C++ Compiler
Packit c32a2d
	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
Packit c32a2d
	    ;;
Packit c32a2d
	  *)
Packit c32a2d
	    ;;
Packit c32a2d
	esac
Packit c32a2d
	;;
Packit c32a2d
      sunos4*)
Packit c32a2d
	case $cc_basename in
Packit c32a2d
	  CC*)
Packit c32a2d
	    # Sun C++ 4.x
Packit c32a2d
	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
Packit c32a2d
	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
Packit c32a2d
	    ;;
Packit c32a2d
	  lcc*)
Packit c32a2d
	    # Lucid
Packit c32a2d
	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
Packit c32a2d
	    ;;
Packit c32a2d
	  *)
Packit c32a2d
	    ;;
Packit c32a2d
	esac
Packit c32a2d
	;;
Packit c32a2d
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
Packit c32a2d
	case $cc_basename in
Packit c32a2d
	  CC*)
Packit c32a2d
	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
Packit c32a2d
	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
Packit c32a2d
	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
Packit c32a2d
	    ;;
Packit c32a2d
	esac
Packit c32a2d
	;;
Packit c32a2d
      tandem*)
Packit c32a2d
	case $cc_basename in
Packit c32a2d
	  NCC*)
Packit c32a2d
	    # NonStop-UX NCC 3.20
Packit c32a2d
	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
Packit c32a2d
	    ;;
Packit c32a2d
	  *)
Packit c32a2d
	    ;;
Packit c32a2d
	esac
Packit c32a2d
	;;
Packit c32a2d
      vxworks*)
Packit c32a2d
	;;
Packit c32a2d
      *)
Packit c32a2d
	_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
Packit c32a2d
	;;
Packit c32a2d
    esac
Packit c32a2d
  fi
Packit c32a2d
],
Packit c32a2d
[
Packit c32a2d
  if test yes = "$GCC"; then
Packit c32a2d
    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
Packit c32a2d
    _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
Packit c32a2d
Packit c32a2d
    case $host_os in
Packit c32a2d
      aix*)
Packit c32a2d
      # All AIX code is PIC.
Packit c32a2d
      if test ia64 = "$host_cpu"; then
Packit c32a2d
	# AIX 5 now supports IA64 processor
Packit c32a2d
	_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
Packit c32a2d
      fi
Packit c32a2d
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
Packit c32a2d
      ;;
Packit c32a2d
Packit c32a2d
    amigaos*)
Packit c32a2d
      case $host_cpu in
Packit c32a2d
      powerpc)
Packit c32a2d
            # see comment about AmigaOS4 .so support
Packit c32a2d
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
Packit c32a2d
        ;;
Packit c32a2d
      m68k)
Packit c32a2d
            # FIXME: we need at least 68020 code to build shared libraries, but
Packit c32a2d
            # adding the '-m68020' flag to GCC prevents building anything better,
Packit c32a2d
            # like '-m68040'.
Packit c32a2d
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
Packit c32a2d
        ;;
Packit c32a2d
      esac
Packit c32a2d
      ;;
Packit c32a2d
Packit c32a2d
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
Packit c32a2d
      # PIC is the default for these OSes.
Packit c32a2d
      ;;
Packit c32a2d
Packit c32a2d
    mingw* | cygwin* | pw32* | os2* | cegcc*)
Packit c32a2d
      # This hack is so that the source file can tell whether it is being
Packit c32a2d
      # built for inclusion in a dll (and should export symbols for example).
Packit c32a2d
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
Packit c32a2d
      # (--disable-auto-import) libraries
Packit c32a2d
      m4_if([$1], [GCJ], [],
Packit c32a2d
	[_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
Packit c32a2d
      case $host_os in
Packit c32a2d
      os2*)
Packit c32a2d
	_LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static'
Packit c32a2d
	;;
Packit c32a2d
      esac
Packit c32a2d
      ;;
Packit c32a2d
Packit c32a2d
    darwin* | rhapsody*)
Packit c32a2d
      # PIC is the default on this platform
Packit c32a2d
      # Common symbols not allowed in MH_DYLIB files
Packit c32a2d
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
Packit c32a2d
      ;;
Packit c32a2d
Packit c32a2d
    haiku*)
Packit c32a2d
      # PIC is the default for Haiku.
Packit c32a2d
      # The "-static" flag exists, but is broken.
Packit c32a2d
      _LT_TAGVAR(lt_prog_compiler_static, $1)=
Packit c32a2d
      ;;
Packit c32a2d
Packit c32a2d
    hpux*)
Packit c32a2d
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
Packit c32a2d
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
Packit c32a2d
      # sets the default TLS model and affects inlining.
Packit c32a2d
      case $host_cpu in
Packit c32a2d
      hppa*64*)
Packit c32a2d
	# +Z the default
Packit c32a2d
	;;
Packit c32a2d
      *)
Packit c32a2d
	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
Packit c32a2d
	;;
Packit c32a2d
      esac
Packit c32a2d
      ;;
Packit c32a2d
Packit c32a2d
    interix[[3-9]]*)
Packit c32a2d
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
Packit c32a2d
      # Instead, we relocate shared libraries at runtime.
Packit c32a2d
      ;;
Packit c32a2d
Packit c32a2d
    msdosdjgpp*)
Packit c32a2d
      # Just because we use GCC doesn't mean we suddenly get shared libraries
Packit c32a2d
      # on systems that don't support them.
Packit c32a2d
      _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
Packit c32a2d
      enable_shared=no
Packit c32a2d
      ;;
Packit c32a2d
Packit c32a2d
    *nto* | *qnx*)
Packit c32a2d
      # QNX uses GNU C++, but need to define -shared option too, otherwise
Packit c32a2d
      # it will coredump.
Packit c32a2d
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
Packit c32a2d
      ;;
Packit c32a2d
Packit c32a2d
    sysv4*MP*)
Packit c32a2d
      if test -d /usr/nec; then
Packit c32a2d
	_LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
Packit c32a2d
      fi
Packit c32a2d
      ;;
Packit c32a2d
Packit c32a2d
    *)
Packit c32a2d
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
Packit c32a2d
      ;;
Packit c32a2d
    esac
Packit c32a2d
Packit c32a2d
    case $cc_basename in
Packit c32a2d
    nvcc*) # Cuda Compiler Driver 2.2
Packit c32a2d
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
Packit c32a2d
      if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
Packit c32a2d
        _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)"
Packit c32a2d
      fi
Packit c32a2d
      ;;
Packit c32a2d
    esac
Packit c32a2d
  else
Packit c32a2d
    # PORTME Check for flag to pass linker flags through the system compiler.
Packit c32a2d
    case $host_os in
Packit c32a2d
    aix*)
Packit c32a2d
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
Packit c32a2d
      if test ia64 = "$host_cpu"; then
Packit c32a2d
	# AIX 5 now supports IA64 processor
Packit c32a2d
	_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
Packit c32a2d
      else
Packit c32a2d
	_LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
Packit c32a2d
      fi
Packit c32a2d
      ;;
Packit c32a2d
Packit c32a2d
    darwin* | rhapsody*)
Packit c32a2d
      # PIC is the default on this platform
Packit c32a2d
      # Common symbols not allowed in MH_DYLIB files
Packit c32a2d
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
Packit c32a2d
      case $cc_basename in
Packit c32a2d
      nagfor*)
Packit c32a2d
        # NAG Fortran compiler
Packit c32a2d
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
Packit c32a2d
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
Packit c32a2d
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
Packit c32a2d
        ;;
Packit c32a2d
      esac
Packit c32a2d
      ;;
Packit c32a2d
Packit c32a2d
    mingw* | cygwin* | pw32* | os2* | cegcc*)
Packit c32a2d
      # This hack is so that the source file can tell whether it is being
Packit c32a2d
      # built for inclusion in a dll (and should export symbols for example).
Packit c32a2d
      m4_if([$1], [GCJ], [],
Packit c32a2d
	[_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
Packit c32a2d
      case $host_os in
Packit c32a2d
      os2*)
Packit c32a2d
	_LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static'
Packit c32a2d
	;;
Packit c32a2d
      esac
Packit c32a2d
      ;;
Packit c32a2d
Packit c32a2d
    hpux9* | hpux10* | hpux11*)
Packit c32a2d
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
Packit c32a2d
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
Packit c32a2d
      # not for PA HP-UX.
Packit c32a2d
      case $host_cpu in
Packit c32a2d
      hppa*64*|ia64*)
Packit c32a2d
	# +Z the default
Packit c32a2d
	;;
Packit c32a2d
      *)
Packit c32a2d
	_LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
Packit c32a2d
	;;
Packit c32a2d
      esac
Packit c32a2d
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
Packit c32a2d
      _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive'
Packit c32a2d
      ;;
Packit c32a2d
Packit c32a2d
    irix5* | irix6* | nonstopux*)
Packit c32a2d
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
Packit c32a2d
      # PIC (with -KPIC) is the default.
Packit c32a2d
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
Packit c32a2d
      ;;
Packit c32a2d
Packit c32a2d
    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
Packit c32a2d
      case $cc_basename in
Packit c32a2d
      # old Intel for x86_64, which still supported -KPIC.
Packit c32a2d
      ecc*)
Packit c32a2d
	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
Packit c32a2d
	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
Packit c32a2d
	_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
Packit c32a2d
        ;;
Packit c32a2d
      # icc used to be incompatible with GCC.
Packit c32a2d
      # ICC 10 doesn't accept -KPIC any more.
Packit c32a2d
      icc* | ifort*)
Packit c32a2d
	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
Packit c32a2d
	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
Packit c32a2d
	_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
Packit c32a2d
        ;;
Packit c32a2d
      # Lahey Fortran 8.1.
Packit c32a2d
      lf95*)
Packit c32a2d
	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
Packit c32a2d
	_LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
Packit c32a2d
	_LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
Packit c32a2d
	;;
Packit c32a2d
      nagfor*)
Packit c32a2d
	# NAG Fortran compiler
Packit c32a2d
	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
Packit c32a2d
	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
Packit c32a2d
	_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
Packit c32a2d
	;;
Packit c32a2d
      tcc*)
Packit c32a2d
	# Fabrice Bellard et al's Tiny C Compiler
Packit c32a2d
	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
Packit c32a2d
	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
Packit c32a2d
	_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
Packit c32a2d
	;;
Packit c32a2d
      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
Packit c32a2d
        # Portland Group compilers (*not* the Pentium gcc compiler,
Packit c32a2d
	# which looks to be a dead project)
Packit c32a2d
	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
Packit c32a2d
	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
Packit c32a2d
	_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
Packit c32a2d
        ;;
Packit c32a2d
      ccc*)
Packit c32a2d
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
Packit c32a2d
        # All Alpha code is PIC.
Packit c32a2d
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
Packit c32a2d
        ;;
Packit c32a2d
      xl* | bgxl* | bgf* | mpixl*)
Packit c32a2d
	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
Packit c32a2d
	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
Packit c32a2d
	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
Packit c32a2d
	_LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
Packit c32a2d
	;;
Packit c32a2d
      *)
Packit c32a2d
	case `$CC -V 2>&1 | sed 5q` in
Packit c32a2d
	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*)
Packit c32a2d
	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
Packit c32a2d
	  _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
Packit c32a2d
	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
Packit c32a2d
	  _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
Packit c32a2d
	  ;;
Packit c32a2d
	*Sun\ F* | *Sun*Fortran*)
Packit c32a2d
	  _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
Packit c32a2d
	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
Packit c32a2d
	  _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
Packit c32a2d
	  ;;
Packit c32a2d
	*Sun\ C*)
Packit c32a2d
	  # Sun C 5.9
Packit c32a2d
	  _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
Packit c32a2d
	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
Packit c32a2d
	  _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
Packit c32a2d
	  ;;
Packit c32a2d
        *Intel*\ [[CF]]*Compiler*)
Packit c32a2d
	  _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
Packit c32a2d
	  _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
Packit c32a2d
	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
Packit c32a2d
	  ;;
Packit c32a2d
	*Portland\ Group*)
Packit c32a2d
	  _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
Packit c32a2d
	  _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
Packit c32a2d
	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
Packit c32a2d
	  ;;
Packit c32a2d
	esac
Packit c32a2d
	;;
Packit c32a2d
      esac
Packit c32a2d
      ;;
Packit c32a2d
Packit c32a2d
    newsos6)
Packit c32a2d
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
Packit c32a2d
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
Packit c32a2d
      ;;
Packit c32a2d
Packit c32a2d
    *nto* | *qnx*)
Packit c32a2d
      # QNX uses GNU C++, but need to define -shared option too, otherwise
Packit c32a2d
      # it will coredump.
Packit c32a2d
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
Packit c32a2d
      ;;
Packit c32a2d
Packit c32a2d
    osf3* | osf4* | osf5*)
Packit c32a2d
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
Packit c32a2d
      # All OSF/1 code is PIC.
Packit c32a2d
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
Packit c32a2d
      ;;
Packit c32a2d
Packit c32a2d
    rdos*)
Packit c32a2d
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
Packit c32a2d
      ;;
Packit c32a2d
Packit c32a2d
    solaris*)
Packit c32a2d
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
Packit c32a2d
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
Packit c32a2d
      case $cc_basename in
Packit c32a2d
      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
Packit c32a2d
	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
Packit c32a2d
      *)
Packit c32a2d
	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
Packit c32a2d
      esac
Packit c32a2d
      ;;
Packit c32a2d
Packit c32a2d
    sunos4*)
Packit c32a2d
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
Packit c32a2d
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
Packit c32a2d
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
Packit c32a2d
      ;;
Packit c32a2d
Packit c32a2d
    sysv4 | sysv4.2uw2* | sysv4.3*)
Packit c32a2d
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
Packit c32a2d
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
Packit c32a2d
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
Packit c32a2d
      ;;
Packit c32a2d
Packit c32a2d
    sysv4*MP*)
Packit c32a2d
      if test -d /usr/nec; then
Packit c32a2d
	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
Packit c32a2d
	_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
Packit c32a2d
      fi
Packit c32a2d
      ;;
Packit c32a2d
Packit c32a2d
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
Packit c32a2d
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
Packit c32a2d
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
Packit c32a2d
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
Packit c32a2d
      ;;
Packit c32a2d
Packit c32a2d
    unicos*)
Packit c32a2d
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
Packit c32a2d
      _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
Packit c32a2d
      ;;
Packit c32a2d
Packit c32a2d
    uts4*)
Packit c32a2d
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
Packit c32a2d
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
Packit c32a2d
      ;;
Packit c32a2d
Packit c32a2d
    *)
Packit c32a2d
      _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
Packit c32a2d
      ;;
Packit c32a2d
    esac
Packit c32a2d
  fi
Packit c32a2d
])
Packit c32a2d
case $host_os in
Packit c32a2d
  # For platforms that do not support PIC, -DPIC is meaningless:
Packit c32a2d
  *djgpp*)
Packit c32a2d
    _LT_TAGVAR(lt_prog_compiler_pic, $1)=
Packit c32a2d
    ;;
Packit c32a2d
  *)
Packit c32a2d
    _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
Packit c32a2d
    ;;
Packit c32a2d
esac
Packit c32a2d
Packit c32a2d
AC_CACHE_CHECK([for $compiler option to produce PIC],
Packit c32a2d
  [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)],
Packit c32a2d
  [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
Packit c32a2d
_LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)
Packit c32a2d
Packit c32a2d
#
Packit c32a2d
# Check to make sure the PIC flag actually works.
Packit c32a2d
#
Packit c32a2d
if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
Packit c32a2d
  _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
Packit c32a2d
    [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
Packit c32a2d
    [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
Packit c32a2d
    [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
Packit c32a2d
     "" | " "*) ;;
Packit c32a2d
     *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
Packit c32a2d
     esac],
Packit c32a2d
    [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
Packit c32a2d
     _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
Packit c32a2d
fi
Packit c32a2d
_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
Packit c32a2d
	[Additional compiler flags for building library objects])
Packit c32a2d
Packit c32a2d
_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
Packit c32a2d
	[How to pass a linker flag through the compiler])
Packit c32a2d
#
Packit c32a2d
# Check to make sure the static flag actually works.
Packit c32a2d
#
Packit c32a2d
wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
Packit c32a2d
_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
Packit c32a2d
  _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
Packit c32a2d
  $lt_tmp_static_flag,
Packit c32a2d
  [],
Packit c32a2d
  [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
Packit c32a2d
_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
Packit c32a2d
	[Compiler flag to prevent dynamic linking])
Packit c32a2d
])# _LT_COMPILER_PIC
Packit c32a2d
Packit c32a2d
Packit c32a2d
# _LT_LINKER_SHLIBS([TAGNAME])
Packit c32a2d
# ----------------------------
Packit c32a2d
# See if the linker supports building shared libraries.
Packit c32a2d
m4_defun([_LT_LINKER_SHLIBS],
Packit c32a2d
[AC_REQUIRE([LT_PATH_LD])dnl
Packit c32a2d
AC_REQUIRE([LT_PATH_NM])dnl
Packit c32a2d
m4_require([_LT_PATH_MANIFEST_TOOL])dnl
Packit c32a2d
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
Packit c32a2d
m4_require([_LT_DECL_EGREP])dnl
Packit c32a2d
m4_require([_LT_DECL_SED])dnl
Packit c32a2d
m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
Packit c32a2d
m4_require([_LT_TAG_COMPILER])dnl
Packit c32a2d
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
Packit c32a2d
m4_if([$1], [CXX], [
Packit c32a2d
  _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
Packit c32a2d
  _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
Packit c32a2d
  case $host_os in
Packit c32a2d
  aix[[4-9]]*)
Packit c32a2d
    # If we're using GNU nm, then we don't want the "-C" option.
Packit c32a2d
    # -C means demangle to GNU nm, but means don't demangle to AIX nm.
Packit c32a2d
    # Without the "-l" option, or with the "-B" option, AIX nm treats
Packit c32a2d
    # weak defined symbols like other global defined symbols, whereas
Packit c32a2d
    # GNU nm marks them as "W".
Packit c32a2d
    # While the 'weak' keyword is ignored in the Export File, we need
Packit c32a2d
    # it in the Import File for the 'aix-soname' feature, so we have
Packit c32a2d
    # to replace the "-B" option with "-P" for AIX nm.
Packit c32a2d
    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
Packit c32a2d
      _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
Packit c32a2d
    else
Packit c32a2d
      _LT_TAGVAR(export_symbols_cmds, $1)='`func_echo_all $NM | $SED -e '\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && ([substr](\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
Packit c32a2d
    fi
Packit c32a2d
    ;;
Packit c32a2d
  pw32*)
Packit c32a2d
    _LT_TAGVAR(export_symbols_cmds, $1)=$ltdll_cmds
Packit c32a2d
    ;;
Packit c32a2d
  cygwin* | mingw* | cegcc*)
Packit c32a2d
    case $cc_basename in
Packit c32a2d
    cl*)
Packit c32a2d
      _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
Packit c32a2d
      ;;
Packit c32a2d
    *)
Packit c32a2d
      _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
Packit c32a2d
      _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
Packit c32a2d
      ;;
Packit c32a2d
    esac
Packit c32a2d
    ;;
Packit c32a2d
  *)
Packit c32a2d
    _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
Packit c32a2d
    ;;
Packit c32a2d
  esac
Packit c32a2d
], [
Packit c32a2d
  runpath_var=
Packit c32a2d
  _LT_TAGVAR(allow_undefined_flag, $1)=
Packit c32a2d
  _LT_TAGVAR(always_export_symbols, $1)=no
Packit c32a2d
  _LT_TAGVAR(archive_cmds, $1)=
Packit c32a2d
  _LT_TAGVAR(archive_expsym_cmds, $1)=
Packit c32a2d
  _LT_TAGVAR(compiler_needs_object, $1)=no
Packit c32a2d
  _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
Packit c32a2d
  _LT_TAGVAR(export_dynamic_flag_spec, $1)=
Packit c32a2d
  _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
Packit c32a2d
  _LT_TAGVAR(hardcode_automatic, $1)=no
Packit c32a2d
  _LT_TAGVAR(hardcode_direct, $1)=no
Packit c32a2d
  _LT_TAGVAR(hardcode_direct_absolute, $1)=no
Packit c32a2d
  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
Packit c32a2d
  _LT_TAGVAR(hardcode_libdir_separator, $1)=
Packit c32a2d
  _LT_TAGVAR(hardcode_minus_L, $1)=no
Packit c32a2d
  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
Packit c32a2d
  _LT_TAGVAR(inherit_rpath, $1)=no
Packit c32a2d
  _LT_TAGVAR(link_all_deplibs, $1)=unknown
Packit c32a2d
  _LT_TAGVAR(module_cmds, $1)=
Packit c32a2d
  _LT_TAGVAR(module_expsym_cmds, $1)=
Packit c32a2d
  _LT_TAGVAR(old_archive_from_new_cmds, $1)=
Packit c32a2d
  _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
Packit c32a2d
  _LT_TAGVAR(thread_safe_flag_spec, $1)=
Packit c32a2d
  _LT_TAGVAR(whole_archive_flag_spec, $1)=
Packit c32a2d
  # include_expsyms should be a list of space-separated symbols to be *always*
Packit c32a2d
  # included in the symbol list
Packit c32a2d
  _LT_TAGVAR(include_expsyms, $1)=
Packit c32a2d
  # exclude_expsyms can be an extended regexp of symbols to exclude
Packit c32a2d
  # it will be wrapped by ' (' and ')$', so one must not match beginning or
Packit c32a2d
  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
Packit c32a2d
  # as well as any symbol that contains 'd'.
Packit c32a2d
  _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
Packit c32a2d
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
Packit c32a2d
  # platforms (ab)use it in PIC code, but their linkers get confused if
Packit c32a2d
  # the symbol is explicitly referenced.  Since portable code cannot
Packit c32a2d
  # rely on this symbol name, it's probably fine to never include it in
Packit c32a2d
  # preloaded symbol tables.
Packit c32a2d
  # Exclude shared library initialization/finalization symbols.
Packit c32a2d
dnl Note also adjust exclude_expsyms for C++ above.
Packit c32a2d
  extract_expsyms_cmds=
Packit c32a2d
Packit c32a2d
  case $host_os in
Packit c32a2d
  cygwin* | mingw* | pw32* | cegcc*)
Packit c32a2d
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
Packit c32a2d
    # When not using gcc, we currently assume that we are using
Packit c32a2d
    # Microsoft Visual C++.
Packit c32a2d
    if test yes != "$GCC"; then
Packit c32a2d
      with_gnu_ld=no
Packit c32a2d
    fi
Packit c32a2d
    ;;
Packit c32a2d
  interix*)
Packit c32a2d
    # we just hope/assume this is gcc and not c89 (= MSVC++)
Packit c32a2d
    with_gnu_ld=yes
Packit c32a2d
    ;;
Packit c32a2d
  openbsd* | bitrig*)
Packit c32a2d
    with_gnu_ld=no
Packit c32a2d
    ;;
Packit c32a2d
  esac
Packit c32a2d
Packit c32a2d
  _LT_TAGVAR(ld_shlibs, $1)=yes
Packit c32a2d
Packit c32a2d
  # On some targets, GNU ld is compatible enough with the native linker
Packit c32a2d
  # that we're better off using the native interface for both.
Packit c32a2d
  lt_use_gnu_ld_interface=no
Packit c32a2d
  if test yes = "$with_gnu_ld"; then
Packit c32a2d
    case $host_os in
Packit c32a2d
      aix*)
Packit c32a2d
	# The AIX port of GNU ld has always aspired to compatibility
Packit c32a2d
	# with the native linker.  However, as the warning in the GNU ld
Packit c32a2d
	# block says, versions before 2.19.5* couldn't really create working
Packit c32a2d
	# shared libraries, regardless of the interface used.
Packit c32a2d
	case `$LD -v 2>&1` in
Packit c32a2d
	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
Packit c32a2d
	  *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;;
Packit c32a2d
	  *\ \(GNU\ Binutils\)\ [[3-9]]*) ;;
Packit c32a2d
	  *)
Packit c32a2d
	    lt_use_gnu_ld_interface=yes
Packit c32a2d
	    ;;
Packit c32a2d
	esac
Packit c32a2d
	;;
Packit c32a2d
      *)
Packit c32a2d
	lt_use_gnu_ld_interface=yes
Packit c32a2d
	;;
Packit c32a2d
    esac
Packit c32a2d
  fi
Packit c32a2d
Packit c32a2d
  if test yes = "$lt_use_gnu_ld_interface"; then
Packit c32a2d
    # If archive_cmds runs LD, not CC, wlarc should be empty
Packit c32a2d
    wlarc='$wl'
Packit c32a2d
Packit c32a2d
    # Set some defaults for GNU ld with shared library support. These
Packit c32a2d
    # are reset later if shared libraries are not supported. Putting them
Packit c32a2d
    # here allows them to be overridden if necessary.
Packit c32a2d
    runpath_var=LD_RUN_PATH
Packit c32a2d
    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
Packit c32a2d
    _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
Packit c32a2d
    # ancient GNU ld didn't support --whole-archive et. al.
Packit c32a2d
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
Packit c32a2d
      _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
Packit c32a2d
    else
Packit c32a2d
      _LT_TAGVAR(whole_archive_flag_spec, $1)=
Packit c32a2d
    fi
Packit c32a2d
    supports_anon_versioning=no
Packit c32a2d
    case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
Packit c32a2d
      *GNU\ gold*) supports_anon_versioning=yes ;;
Packit c32a2d
      *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
Packit c32a2d
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
Packit c32a2d
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
Packit c32a2d
      *\ 2.11.*) ;; # other 2.11 versions
Packit c32a2d
      *) supports_anon_versioning=yes ;;
Packit c32a2d
    esac
Packit c32a2d
Packit c32a2d
    # See if GNU ld supports shared libraries.
Packit c32a2d
    case $host_os in
Packit c32a2d
    aix[[3-9]]*)
Packit c32a2d
      # On AIX/PPC, the GNU linker is very broken
Packit c32a2d
      if test ia64 != "$host_cpu"; then
Packit c32a2d
	_LT_TAGVAR(ld_shlibs, $1)=no
Packit c32a2d
	cat <<_LT_EOF 1>&2
Packit c32a2d
Packit c32a2d
*** Warning: the GNU linker, at least up to release 2.19, is reported
Packit c32a2d
*** to be unable to reliably create shared libraries on AIX.
Packit c32a2d
*** Therefore, libtool is disabling shared libraries support.  If you
Packit c32a2d
*** really care for shared libraries, you may want to install binutils
Packit c32a2d
*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
Packit c32a2d
*** You will then need to restart the configuration process.
Packit c32a2d
Packit c32a2d
_LT_EOF
Packit c32a2d
      fi
Packit c32a2d
      ;;
Packit c32a2d
Packit c32a2d
    amigaos*)
Packit c32a2d
      case $host_cpu in
Packit c32a2d
      powerpc)
Packit c32a2d
            # see comment about AmigaOS4 .so support
Packit c32a2d
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
Packit c32a2d
            _LT_TAGVAR(archive_expsym_cmds, $1)=''
Packit c32a2d
        ;;
Packit c32a2d
      m68k)
Packit c32a2d
            _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
Packit c32a2d
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
Packit c32a2d
            _LT_TAGVAR(hardcode_minus_L, $1)=yes
Packit c32a2d
        ;;
Packit c32a2d
      esac
Packit c32a2d
      ;;
Packit c32a2d
Packit c32a2d
    beos*)
Packit c32a2d
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Packit c32a2d
	_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
Packit c32a2d
	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
Packit c32a2d
	# support --undefined.  This deserves some investigation.  FIXME
Packit c32a2d
	_LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
Packit c32a2d
      else
Packit c32a2d
	_LT_TAGVAR(ld_shlibs, $1)=no
Packit c32a2d
      fi
Packit c32a2d
      ;;
Packit c32a2d
Packit c32a2d
    cygwin* | mingw* | pw32* | cegcc*)
Packit c32a2d
      # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
Packit c32a2d
      # as there is no search path for DLLs.
Packit c32a2d
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
Packit c32a2d
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols'
Packit c32a2d
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
Packit c32a2d
      _LT_TAGVAR(always_export_symbols, $1)=no
Packit c32a2d
      _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
Packit c32a2d
      _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
Packit c32a2d
      _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
Packit c32a2d
Packit c32a2d
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
Packit c32a2d
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
Packit c32a2d
	# If the export-symbols file already is a .def file, use it as
Packit c32a2d
	# is; otherwise, prepend EXPORTS...
Packit c32a2d
	_LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
Packit c32a2d
          cp $export_symbols $output_objdir/$soname.def;
Packit c32a2d
        else
Packit c32a2d
          echo EXPORTS > $output_objdir/$soname.def;
Packit c32a2d
          cat $export_symbols >> $output_objdir/$soname.def;
Packit c32a2d
        fi~
Packit c32a2d
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
Packit c32a2d
      else
Packit c32a2d
	_LT_TAGVAR(ld_shlibs, $1)=no
Packit c32a2d
      fi
Packit c32a2d
      ;;
Packit c32a2d
Packit c32a2d
    haiku*)
Packit c32a2d
      _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
Packit c32a2d
      _LT_TAGVAR(link_all_deplibs, $1)=yes
Packit c32a2d
      ;;
Packit c32a2d
Packit c32a2d
    os2*)
Packit c32a2d
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
Packit c32a2d
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
Packit c32a2d
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
Packit c32a2d
      shrext_cmds=.dll
Packit c32a2d
      _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
Packit c32a2d
	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
Packit c32a2d
	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
Packit c32a2d
	$ECHO EXPORTS >> $output_objdir/$libname.def~
Packit c32a2d
	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
Packit c32a2d
	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
Packit c32a2d
	emximp -o $lib $output_objdir/$libname.def'
Packit c32a2d
      _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
Packit c32a2d
	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
Packit c32a2d
	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
Packit c32a2d
	$ECHO EXPORTS >> $output_objdir/$libname.def~
Packit c32a2d
	prefix_cmds="$SED"~
Packit c32a2d
	if test EXPORTS = "`$SED 1q $export_symbols`"; then
Packit c32a2d
	  prefix_cmds="$prefix_cmds -e 1d";
Packit c32a2d
	fi~
Packit c32a2d
	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
Packit c32a2d
	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
Packit c32a2d
	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
Packit c32a2d
	emximp -o $lib $output_objdir/$libname.def'
Packit c32a2d
      _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
Packit c32a2d
      _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
Packit c32a2d
      ;;
Packit c32a2d
Packit c32a2d
    interix[[3-9]]*)
Packit c32a2d
      _LT_TAGVAR(hardcode_direct, $1)=no
Packit c32a2d
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
Packit c32a2d
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
Packit c32a2d
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
Packit c32a2d
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
Packit c32a2d
      # Instead, shared libraries are loaded at an image base (0x10000000 by
Packit c32a2d
      # default) and relocated if they conflict, which is a slow very memory
Packit c32a2d
      # consuming and fragmenting process.  To avoid this, we pick a random,
Packit c32a2d
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
Packit c32a2d
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
Packit c32a2d
      _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
Packit c32a2d
      _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
Packit c32a2d
      ;;
Packit c32a2d
Packit c32a2d
    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
Packit c32a2d
      tmp_diet=no
Packit c32a2d
      if test linux-dietlibc = "$host_os"; then
Packit c32a2d
	case $cc_basename in
Packit c32a2d
	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
Packit c32a2d
	esac
Packit c32a2d
      fi
Packit c32a2d
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
Packit c32a2d
	 && test no = "$tmp_diet"
Packit c32a2d
      then
Packit c32a2d
	tmp_addflag=' $pic_flag'
Packit c32a2d
	tmp_sharedflag='-shared'
Packit c32a2d
	case $cc_basename,$host_cpu in
Packit c32a2d
        pgcc*)				# Portland Group C compiler
Packit c32a2d
	  _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
Packit c32a2d
	  tmp_addflag=' $pic_flag'
Packit c32a2d
	  ;;
Packit c32a2d
	pgf77* | pgf90* | pgf95* | pgfortran*)
Packit c32a2d
					# Portland Group f77 and f90 compilers
Packit c32a2d
	  _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
Packit c32a2d
	  tmp_addflag=' $pic_flag -Mnomain' ;;
Packit c32a2d
	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
Packit c32a2d
	  tmp_addflag=' -i_dynamic' ;;
Packit c32a2d
	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
Packit c32a2d
	  tmp_addflag=' -i_dynamic -nofor_main' ;;
Packit c32a2d
	ifc* | ifort*)			# Intel Fortran compiler
Packit c32a2d
	  tmp_addflag=' -nofor_main' ;;
Packit c32a2d
	lf95*)				# Lahey Fortran 8.1
Packit c32a2d
	  _LT_TAGVAR(whole_archive_flag_spec, $1)=
Packit c32a2d
	  tmp_sharedflag='--shared' ;;
Packit c32a2d
        nagfor*)                        # NAGFOR 5.3
Packit c32a2d
          tmp_sharedflag='-Wl,-shared' ;;
Packit c32a2d
	xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
Packit c32a2d
	  tmp_sharedflag='-qmkshrobj'
Packit c32a2d
	  tmp_addflag= ;;
Packit c32a2d
	nvcc*)	# Cuda Compiler Driver 2.2
Packit c32a2d
	  _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
Packit c32a2d
	  _LT_TAGVAR(compiler_needs_object, $1)=yes
Packit c32a2d
	  ;;
Packit c32a2d
	esac
Packit c32a2d
	case `$CC -V 2>&1 | sed 5q` in
Packit c32a2d
	*Sun\ C*)			# Sun C 5.9
Packit c32a2d
	  _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
Packit c32a2d
	  _LT_TAGVAR(compiler_needs_object, $1)=yes
Packit c32a2d
	  tmp_sharedflag='-G' ;;
Packit c32a2d
	*Sun\ F*)			# Sun Fortran 8.3
Packit c32a2d
	  tmp_sharedflag='-G' ;;
Packit c32a2d
	esac
Packit c32a2d
	_LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
Packit c32a2d
Packit c32a2d
        if test yes = "$supports_anon_versioning"; then
Packit c32a2d
          _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
Packit c32a2d
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
Packit c32a2d
            echo "local: *; };" >> $output_objdir/$libname.ver~
Packit c32a2d
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
Packit c32a2d
        fi
Packit c32a2d
Packit c32a2d
	case $cc_basename in
Packit c32a2d
	tcc*)
Packit c32a2d
	  _LT_TAGVAR(export_dynamic_flag_spec, $1)='-rdynamic'
Packit c32a2d
	  ;;
Packit c32a2d
	xlf* | bgf* | bgxlf* | mpixlf*)
Packit c32a2d
	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
Packit c32a2d
	  _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
Packit c32a2d
	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
Packit c32a2d
	  _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
Packit c32a2d
	  if test yes = "$supports_anon_versioning"; then
Packit c32a2d
	    _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
Packit c32a2d
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
Packit c32a2d
              echo "local: *; };" >> $output_objdir/$libname.ver~
Packit c32a2d
              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
Packit c32a2d
	  fi
Packit c32a2d
	  ;;
Packit c32a2d
	esac
Packit c32a2d
      else
Packit c32a2d
        _LT_TAGVAR(ld_shlibs, $1)=no
Packit c32a2d
      fi
Packit c32a2d
      ;;
Packit c32a2d
Packit c32a2d
    netbsd*)
Packit c32a2d
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
Packit c32a2d
	_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
Packit c32a2d
	wlarc=
Packit c32a2d
      else
Packit c32a2d
	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
Packit c32a2d
	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
Packit c32a2d
      fi
Packit c32a2d
      ;;
Packit c32a2d
Packit c32a2d
    solaris*)
Packit c32a2d
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
Packit c32a2d
	_LT_TAGVAR(ld_shlibs, $1)=no
Packit c32a2d
	cat <<_LT_EOF 1>&2
Packit c32a2d
Packit c32a2d
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
Packit c32a2d
*** create shared libraries on Solaris systems.  Therefore, libtool
Packit c32a2d
*** is disabling shared libraries support.  We urge you to upgrade GNU
Packit c32a2d
*** binutils to release 2.9.1 or newer.  Another option is to modify
Packit c32a2d
*** your PATH or compiler configuration so that the native linker is
Packit c32a2d
*** used, and then restart.
Packit c32a2d
Packit c32a2d
_LT_EOF
Packit c32a2d
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Packit c32a2d
	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
Packit c32a2d
	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
Packit c32a2d
      else
Packit c32a2d
	_LT_TAGVAR(ld_shlibs, $1)=no
Packit c32a2d
      fi
Packit c32a2d
      ;;
Packit c32a2d
Packit c32a2d
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
Packit c32a2d
      case `$LD -v 2>&1` in
Packit c32a2d
        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
Packit c32a2d
	_LT_TAGVAR(ld_shlibs, $1)=no
Packit c32a2d
	cat <<_LT_EOF 1>&2
Packit c32a2d
Packit c32a2d
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
Packit c32a2d
*** reliably create shared libraries on SCO systems.  Therefore, libtool
Packit c32a2d
*** is disabling shared libraries support.  We urge you to upgrade GNU
Packit c32a2d
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
Packit c32a2d
*** your PATH or compiler configuration so that the native linker is
Packit c32a2d
*** used, and then restart.
Packit c32a2d
Packit c32a2d
_LT_EOF
Packit c32a2d
	;;
Packit c32a2d
	*)
Packit c32a2d
	  # For security reasons, it is highly recommended that you always
Packit c32a2d
	  # use absolute paths for naming shared libraries, and exclude the
Packit c32a2d
	  # DT_RUNPATH tag from executables and libraries.  But doing so
Packit c32a2d
	  # requires that you compile everything twice, which is a pain.
Packit c32a2d
	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Packit c32a2d
	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
Packit c32a2d
	    _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
Packit c32a2d
	    _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
Packit c32a2d
	  else
Packit c32a2d
	    _LT_TAGVAR(ld_shlibs, $1)=no
Packit c32a2d
	  fi
Packit c32a2d
	;;
Packit c32a2d
      esac
Packit c32a2d
      ;;
Packit c32a2d
Packit c32a2d
    sunos4*)
Packit c32a2d
      _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
Packit c32a2d
      wlarc=
Packit c32a2d
      _LT_TAGVAR(hardcode_direct, $1)=yes
Packit c32a2d
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
Packit c32a2d
      ;;
Packit c32a2d
Packit c32a2d
    *)
Packit c32a2d
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Packit c32a2d
	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
Packit c32a2d
	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
Packit c32a2d
      else
Packit c32a2d
	_LT_TAGVAR(ld_shlibs, $1)=no
Packit c32a2d
      fi
Packit c32a2d
      ;;
Packit c32a2d
    esac
Packit c32a2d
Packit c32a2d
    if test no = "$_LT_TAGVAR(ld_shlibs, $1)"; then
Packit c32a2d
      runpath_var=
Packit c32a2d
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
Packit c32a2d
      _LT_TAGVAR(export_dynamic_flag_spec, $1)=
Packit c32a2d
      _LT_TAGVAR(whole_archive_flag_spec, $1)=
Packit c32a2d
    fi
Packit c32a2d
  else
Packit c32a2d
    # PORTME fill in a description of your system's linker (not GNU ld)
Packit c32a2d
    case $host_os in
Packit c32a2d
    aix3*)
Packit c32a2d
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
Packit c32a2d
      _LT_TAGVAR(always_export_symbols, $1)=yes
Packit c32a2d
      _LT_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
Packit c32a2d
      # Note: this linker hardcodes the directories in LIBPATH if there
Packit c32a2d
      # are no directories specified by -L.
Packit c32a2d
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
Packit c32a2d
      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
Packit c32a2d
	# Neither direct hardcoding nor static linking is supported with a
Packit c32a2d
	# broken collect2.
Packit c32a2d
	_LT_TAGVAR(hardcode_direct, $1)=unsupported
Packit c32a2d
      fi
Packit c32a2d
      ;;
Packit c32a2d
Packit c32a2d
    aix[[4-9]]*)
Packit c32a2d
      if test ia64 = "$host_cpu"; then
Packit c32a2d
	# On IA64, the linker does run time linking by default, so we don't
Packit c32a2d
	# have to do anything special.
Packit c32a2d
	aix_use_runtimelinking=no
Packit c32a2d
	exp_sym_flag='-Bexport'
Packit c32a2d
	no_entry_flag=
Packit c32a2d
      else
Packit c32a2d
	# If we're using GNU nm, then we don't want the "-C" option.
Packit c32a2d
	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
Packit c32a2d
	# Without the "-l" option, or with the "-B" option, AIX nm treats
Packit c32a2d
	# weak defined symbols like other global defined symbols, whereas
Packit c32a2d
	# GNU nm marks them as "W".
Packit c32a2d
	# While the 'weak' keyword is ignored in the Export File, we need
Packit c32a2d
	# it in the Import File for the 'aix-soname' feature, so we have
Packit c32a2d
	# to replace the "-B" option with "-P" for AIX nm.
Packit c32a2d
	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
Packit c32a2d
	  _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
Packit c32a2d
	else
Packit c32a2d
	  _LT_TAGVAR(export_symbols_cmds, $1)='`func_echo_all $NM | $SED -e '\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && ([substr](\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
Packit c32a2d
	fi
Packit c32a2d
	aix_use_runtimelinking=no
Packit c32a2d
Packit c32a2d
	# Test if we are trying to use run time linking or normal
Packit c32a2d
	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
Packit c32a2d
	# have runtime linking enabled, and use it for executables.
Packit c32a2d
	# For shared libraries, we enable/disable runtime linking
Packit c32a2d
	# depending on the kind of the shared library created -
Packit c32a2d
	# when "with_aix_soname,aix_use_runtimelinking" is:
Packit c32a2d
	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
Packit c32a2d
	# "aix,yes"  lib.so          shared, rtl:yes, for executables
Packit c32a2d
	#            lib.a           static archive
Packit c32a2d
	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
Packit c32a2d
	#            lib.a(lib.so.V) shared, rtl:no,  for executables
Packit c32a2d
	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
Packit c32a2d
	#            lib.a(lib.so.V) shared, rtl:no
Packit c32a2d
	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
Packit c32a2d
	#            lib.a           static archive
Packit c32a2d
	case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
Packit c32a2d
	  for ld_flag in $LDFLAGS; do
Packit c32a2d
	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
Packit c32a2d
	    aix_use_runtimelinking=yes
Packit c32a2d
	    break
Packit c32a2d
	  fi
Packit c32a2d
	  done
Packit c32a2d
	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
Packit c32a2d
	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
Packit c32a2d
	    # so we don't have lib.a shared libs to link our executables.
Packit c32a2d
	    # We have to force runtime linking in this case.
Packit c32a2d
	    aix_use_runtimelinking=yes
Packit c32a2d
	    LDFLAGS="$LDFLAGS -Wl,-brtl"
Packit c32a2d
	  fi
Packit c32a2d
	  ;;
Packit c32a2d
	esac
Packit c32a2d
Packit c32a2d
	exp_sym_flag='-bexport'
Packit c32a2d
	no_entry_flag='-bnoentry'
Packit c32a2d
      fi
Packit c32a2d
Packit c32a2d
      # When large executables or shared objects are built, AIX ld can
Packit c32a2d
      # have problems creating the table of contents.  If linking a library
Packit c32a2d
      # or program results in "error TOC overflow" add -mminimal-toc to
Packit c32a2d
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
Packit c32a2d
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
Packit c32a2d
Packit c32a2d
      _LT_TAGVAR(archive_cmds, $1)=''
Packit c32a2d
      _LT_TAGVAR(hardcode_direct, $1)=yes
Packit c32a2d
      _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
Packit c32a2d
      _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
Packit c32a2d
      _LT_TAGVAR(link_all_deplibs, $1)=yes
Packit c32a2d
      _LT_TAGVAR(file_list_spec, $1)='$wl-f,'
Packit c32a2d
      case $with_aix_soname,$aix_use_runtimelinking in
Packit c32a2d
      aix,*) ;; # traditional, no import file
Packit c32a2d
      svr4,* | *,yes) # use import file
Packit c32a2d
	# The Import File defines what to hardcode.
Packit c32a2d
	_LT_TAGVAR(hardcode_direct, $1)=no
Packit c32a2d
	_LT_TAGVAR(hardcode_direct_absolute, $1)=no
Packit c32a2d
	;;
Packit c32a2d
      esac
Packit c32a2d
Packit c32a2d
      if test yes = "$GCC"; then
Packit c32a2d
	case $host_os in aix4.[[012]]|aix4.[[012]].*)
Packit c32a2d
	# We only want to do this on AIX 4.2 and lower, the check
Packit c32a2d
	# below for broken collect2 doesn't work under 4.3+
Packit c32a2d
	  collect2name=`$CC -print-prog-name=collect2`
Packit c32a2d
	  if test -f "$collect2name" &&
Packit c32a2d
	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
Packit c32a2d
	  then
Packit c32a2d
	  # We have reworked collect2
Packit c32a2d
	  :
Packit c32a2d
	  else
Packit c32a2d
	  # We have old collect2
Packit c32a2d
	  _LT_TAGVAR(hardcode_direct, $1)=unsupported
Packit c32a2d
	  # It fails to find uninstalled libraries when the uninstalled
Packit c32a2d
	  # path is not listed in the libpath.  Setting hardcode_minus_L
Packit c32a2d
	  # to unsupported forces relinking
Packit c32a2d
	  _LT_TAGVAR(hardcode_minus_L, $1)=yes
Packit c32a2d
	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
Packit c32a2d
	  _LT_TAGVAR(hardcode_libdir_separator, $1)=
Packit c32a2d
	  fi
Packit c32a2d
	  ;;
Packit c32a2d
	esac
Packit c32a2d
	shared_flag='-shared'
Packit c32a2d
	if test yes = "$aix_use_runtimelinking"; then
Packit c32a2d
	  shared_flag="$shared_flag "'$wl-G'
Packit c32a2d
	fi
Packit c32a2d
	# Need to ensure runtime linking is disabled for the traditional
Packit c32a2d
	# shared library, or the linker may eventually find shared libraries
Packit c32a2d
	# /with/ Import File - we do not want to mix them.
Packit c32a2d
	shared_flag_aix='-shared'
Packit c32a2d
	shared_flag_svr4='-shared $wl-G'
Packit c32a2d
      else
Packit c32a2d
	# not using gcc
Packit c32a2d
	if test ia64 = "$host_cpu"; then
Packit c32a2d
	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
Packit c32a2d
	# chokes on -Wl,-G. The following line is correct:
Packit c32a2d
	  shared_flag='-G'
Packit c32a2d
	else
Packit c32a2d
	  if test yes = "$aix_use_runtimelinking"; then
Packit c32a2d
	    shared_flag='$wl-G'
Packit c32a2d
	  else
Packit c32a2d
	    shared_flag='$wl-bM:SRE'
Packit c32a2d
	  fi
Packit c32a2d
	  shared_flag_aix='$wl-bM:SRE'
Packit c32a2d
	  shared_flag_svr4='$wl-G'
Packit c32a2d
	fi
Packit c32a2d
      fi
Packit c32a2d
Packit c32a2d
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall'
Packit c32a2d
      # It seems that -bexpall does not export symbols beginning with
Packit c32a2d
      # underscore (_), so it is better to generate a list of symbols to export.
Packit c32a2d
      _LT_TAGVAR(always_export_symbols, $1)=yes
Packit c32a2d
      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
Packit c32a2d
	# Warning - without using the other runtime loading flags (-brtl),
Packit c32a2d
	# -berok will link without error, but may produce a broken library.
Packit c32a2d
	_LT_TAGVAR(allow_undefined_flag, $1)='-berok'
Packit c32a2d
        # Determine the default libpath from the value encoded in an
Packit c32a2d
        # empty executable.
Packit c32a2d
        _LT_SYS_MODULE_PATH_AIX([$1])
Packit c32a2d
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
Packit c32a2d
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
Packit c32a2d
      else
Packit c32a2d
	if test ia64 = "$host_cpu"; then
Packit c32a2d
	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib'
Packit c32a2d
	  _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
Packit c32a2d
	  _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
Packit c32a2d
	else
Packit c32a2d
	 # Determine the default libpath from the value encoded in an
Packit c32a2d
	 # empty executable.
Packit c32a2d
	 _LT_SYS_MODULE_PATH_AIX([$1])
Packit c32a2d
	 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
Packit c32a2d
	  # Warning - without using the other run time loading flags,
Packit c32a2d
	  # -berok will link without error, but may produce a broken library.
Packit c32a2d
	  _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok'
Packit c32a2d
	  _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok'
Packit c32a2d
	  if test yes = "$with_gnu_ld"; then
Packit c32a2d
	    # We only use this code for GNU lds that support --whole-archive.
Packit c32a2d
	    _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive'
Packit c32a2d
	  else
Packit c32a2d
	    # Exported symbols can be pulled into shared objects from archives
Packit c32a2d
	    _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
Packit c32a2d
	  fi
Packit c32a2d
	  _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
Packit c32a2d
	  _LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
Packit c32a2d
	  # -brtl affects multiple linker settings, -berok does not and is overridden later
Packit c32a2d
	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([[, ]]\\)%-berok\\1%g"`'
Packit c32a2d
	  if test svr4 != "$with_aix_soname"; then
Packit c32a2d
	    # This is similar to how AIX traditionally builds its shared libraries.
Packit c32a2d
	    _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
Packit c32a2d
	  fi
Packit c32a2d
	  if test aix != "$with_aix_soname"; then
Packit c32a2d
	    _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
Packit c32a2d
	  else
Packit c32a2d
	    # used by -dlpreopen to get the symbols
Packit c32a2d
	    _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
Packit c32a2d
	  fi
Packit c32a2d
	  _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$RM -r $output_objdir/$realname.d'
Packit c32a2d
	fi
Packit c32a2d
      fi
Packit c32a2d
      ;;
Packit c32a2d
Packit c32a2d
    amigaos*)
Packit c32a2d
      case $host_cpu in
Packit c32a2d
      powerpc)
Packit c32a2d
            # see comment about AmigaOS4 .so support
Packit c32a2d
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
Packit c32a2d
            _LT_TAGVAR(archive_expsym_cmds, $1)=''
Packit c32a2d
        ;;
Packit c32a2d
      m68k)
Packit c32a2d
            _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
Packit c32a2d
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
Packit c32a2d
            _LT_TAGVAR(hardcode_minus_L, $1)=yes
Packit c32a2d
        ;;
Packit c32a2d
      esac
Packit c32a2d
      ;;
Packit c32a2d
Packit c32a2d
    bsdi[[45]]*)
Packit c32a2d
      _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
Packit c32a2d
      ;;
Packit c32a2d
Packit c32a2d
    cygwin* | mingw* | pw32* | cegcc*)
Packit c32a2d
      # When not using gcc, we currently assume that we are using
Packit c32a2d
      # Microsoft Visual C++.
Packit c32a2d
      # hardcode_libdir_flag_spec is actually meaningless, as there is
Packit c32a2d
      # no search path for DLLs.
Packit c32a2d
      case $cc_basename in
Packit c32a2d
      cl*)
Packit c32a2d
	# Native MSVC
Packit c32a2d
	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
Packit c32a2d
	_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
Packit c32a2d
	_LT_TAGVAR(always_export_symbols, $1)=yes
Packit c32a2d
	_LT_TAGVAR(file_list_spec, $1)='@'
Packit c32a2d
	# Tell ltmain to make .lib files, not .a files.
Packit c32a2d
	libext=lib
Packit c32a2d
	# Tell ltmain to make .dll files, not .so files.
Packit c32a2d
	shrext_cmds=.dll
Packit c32a2d
	# FIXME: Setting linknames here is a bad hack.
Packit c32a2d
	_LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
Packit c32a2d
	_LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
Packit c32a2d
            cp "$export_symbols" "$output_objdir/$soname.def";
Packit c32a2d
            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
Packit c32a2d
          else
Packit c32a2d
            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
Packit c32a2d
          fi~
Packit c32a2d
          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
Packit c32a2d
          linknames='
Packit c32a2d
	# The linker will not automatically build a static lib if we build a DLL.
Packit c32a2d
	# _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
Packit c32a2d
	_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
Packit c32a2d
	_LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
Packit c32a2d
	_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1,DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
Packit c32a2d
	# Don't use ranlib
Packit c32a2d
	_LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
Packit c32a2d
	_LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
Packit c32a2d
          lt_tool_outputfile="@TOOL_OUTPUT@"~
Packit c32a2d
          case $lt_outputfile in
Packit c32a2d
            *.exe|*.EXE) ;;
Packit c32a2d
            *)
Packit c32a2d
              lt_outputfile=$lt_outputfile.exe
Packit c32a2d
              lt_tool_outputfile=$lt_tool_outputfile.exe
Packit c32a2d
              ;;
Packit c32a2d
          esac~
Packit c32a2d
          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
Packit c32a2d
            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
Packit c32a2d
            $RM "$lt_outputfile.manifest";
Packit c32a2d
          fi'
Packit c32a2d
	;;
Packit c32a2d
      *)
Packit c32a2d
	# Assume MSVC wrapper
Packit c32a2d
	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
Packit c32a2d
	_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
Packit c32a2d
	# Tell ltmain to make .lib files, not .a files.
Packit c32a2d
	libext=lib
Packit c32a2d
	# Tell ltmain to make .dll files, not .so files.
Packit c32a2d
	shrext_cmds=.dll
Packit c32a2d
	# FIXME: Setting linknames here is a bad hack.
Packit c32a2d
	_LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
Packit c32a2d
	# The linker will automatically build a .lib file if we build a DLL.
Packit c32a2d
	_LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
Packit c32a2d
	# FIXME: Should let the user specify the lib program.
Packit c32a2d
	_LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
Packit c32a2d
	_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
Packit c32a2d
	;;
Packit c32a2d
      esac
Packit c32a2d
      ;;
Packit c32a2d
Packit c32a2d
    darwin* | rhapsody*)
Packit c32a2d
      _LT_DARWIN_LINKER_FEATURES($1)
Packit c32a2d
      ;;
Packit c32a2d
Packit c32a2d
    dgux*)
Packit c32a2d
      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
Packit c32a2d
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
Packit c32a2d
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
Packit c32a2d
      ;;
Packit c32a2d
Packit c32a2d
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
Packit c32a2d
    # support.  Future versions do this automatically, but an explicit c++rt0.o
Packit c32a2d
    # does not break anything, and helps significantly (at the cost of a little
Packit c32a2d
    # extra space).
Packit c32a2d
    freebsd2.2*)
Packit c32a2d
      _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
Packit c32a2d
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
Packit c32a2d
      _LT_TAGVAR(hardcode_direct, $1)=yes
Packit c32a2d
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
Packit c32a2d
      ;;
Packit c32a2d
Packit c32a2d
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
Packit c32a2d
    freebsd2.*)
Packit c32a2d
      _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
Packit c32a2d
      _LT_TAGVAR(hardcode_direct, $1)=yes
Packit c32a2d
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
Packit c32a2d
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
Packit c32a2d
      ;;
Packit c32a2d
Packit c32a2d
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Packit c32a2d
    freebsd* | dragonfly*)
Packit c32a2d
      _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Packit c32a2d
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
Packit c32a2d
      _LT_TAGVAR(hardcode_direct, $1)=yes
Packit c32a2d
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
Packit c32a2d
      ;;
Packit c32a2d
Packit c32a2d
    hpux9*)
Packit c32a2d
      if test yes = "$GCC"; then
Packit c32a2d
	_LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
Packit c32a2d
      else
Packit c32a2d
	_LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
Packit c32a2d
      fi
Packit c32a2d
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
Packit c32a2d
      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
Packit c32a2d
      _LT_TAGVAR(hardcode_direct, $1)=yes
Packit c32a2d
Packit c32a2d
      # hardcode_minus_L: Not really in the search PATH,
Packit c32a2d
      # but as the default location of the library.
Packit c32a2d
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
Packit c32a2d
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
Packit c32a2d
      ;;
Packit c32a2d
Packit c32a2d
    hpux10*)
Packit c32a2d
      if test yes,no = "$GCC,$with_gnu_ld"; then
Packit c32a2d
	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
Packit c32a2d
      else
Packit c32a2d
	_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
Packit c32a2d
      fi
Packit c32a2d
      if test no = "$with_gnu_ld"; then
Packit c32a2d
	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
Packit c32a2d
	_LT_TAGVAR(hardcode_libdir_separator, $1)=:
Packit c32a2d
	_LT_TAGVAR(hardcode_direct, $1)=yes
Packit c32a2d
	_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
Packit c32a2d
	_LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
Packit c32a2d
	# hardcode_minus_L: Not really in the search PATH,
Packit c32a2d
	# but as the default location of the library.
Packit c32a2d
	_LT_TAGVAR(hardcode_minus_L, $1)=yes
Packit c32a2d
      fi
Packit c32a2d
      ;;
Packit c32a2d
Packit c32a2d
    hpux11*)
Packit c32a2d
      if test yes,no = "$GCC,$with_gnu_ld"; then
Packit c32a2d
	case $host_cpu in
Packit c32a2d
	hppa*64*)
Packit c32a2d
	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
Packit c32a2d
	  ;;
Packit c32a2d
	ia64*)
Packit c32a2d
	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
Packit c32a2d
	  ;;
Packit c32a2d
	*)
Packit c32a2d
	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
Packit c32a2d
	  ;;
Packit c32a2d
	esac
Packit c32a2d
      else
Packit c32a2d
	case $host_cpu in
Packit c32a2d
	hppa*64*)
Packit c32a2d
	  _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
Packit c32a2d
	  ;;
Packit c32a2d
	ia64*)
Packit c32a2d
	  _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
Packit c32a2d
	  ;;
Packit c32a2d
	*)
Packit c32a2d
	m4_if($1, [], [
Packit c32a2d
	  # Older versions of the 11.00 compiler do not understand -b yet
Packit c32a2d
	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
Packit c32a2d
	  _LT_LINKER_OPTION([if $CC understands -b],
Packit c32a2d
	    _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b],
Packit c32a2d
	    [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
Packit c32a2d
	    [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])],
Packit c32a2d
	  [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])
Packit c32a2d
	  ;;
Packit c32a2d
	esac
Packit c32a2d
      fi
Packit c32a2d
      if test no = "$with_gnu_ld"; then
Packit c32a2d
	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
Packit c32a2d
	_LT_TAGVAR(hardcode_libdir_separator, $1)=:
Packit c32a2d
Packit c32a2d
	case $host_cpu in
Packit c32a2d
	hppa*64*|ia64*)
Packit c32a2d
	  _LT_TAGVAR(hardcode_direct, $1)=no
Packit c32a2d
	  _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
Packit c32a2d
	  ;;
Packit c32a2d
	*)
Packit c32a2d
	  _LT_TAGVAR(hardcode_direct, $1)=yes
Packit c32a2d
	  _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
Packit c32a2d
	  _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
Packit c32a2d
Packit c32a2d
	  # hardcode_minus_L: Not really in the search PATH,
Packit c32a2d
	  # but as the default location of the library.
Packit c32a2d
	  _LT_TAGVAR(hardcode_minus_L, $1)=yes
Packit c32a2d
	  ;;
Packit c32a2d
	esac
Packit c32a2d
      fi
Packit c32a2d
      ;;
Packit c32a2d
Packit c32a2d
    irix5* | irix6* | nonstopux*)
Packit c32a2d
      if test yes = "$GCC"; then
Packit c32a2d
	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
Packit c32a2d
	# Try to use the -exported_symbol ld option, if it does not
Packit c32a2d
	# work, assume that -exports_file does not work either and
Packit c32a2d
	# implicitly export all symbols.
Packit c32a2d
	# This should be the same for all languages, so no per-tag cache variable.
Packit c32a2d
	AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
Packit c32a2d
	  [lt_cv_irix_exported_symbol],
Packit c32a2d
	  [save_LDFLAGS=$LDFLAGS
Packit c32a2d
	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
Packit c32a2d
	   AC_LINK_IFELSE(
Packit c32a2d
	     [AC_LANG_SOURCE(
Packit c32a2d
	        [AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
Packit c32a2d
			      [C++], [[int foo (void) { return 0; }]],
Packit c32a2d
			      [Fortran 77], [[
Packit c32a2d
      subroutine foo
Packit c32a2d
      end]],
Packit c32a2d
			      [Fortran], [[
Packit c32a2d
      subroutine foo
Packit c32a2d
      end]])])],
Packit c32a2d
	      [lt_cv_irix_exported_symbol=yes],
Packit c32a2d
	      [lt_cv_irix_exported_symbol=no])
Packit c32a2d
           LDFLAGS=$save_LDFLAGS])
Packit c32a2d
	if test yes = "$lt_cv_irix_exported_symbol"; then
Packit c32a2d
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
Packit c32a2d
	fi
Packit c32a2d
      else
Packit c32a2d
	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
Packit c32a2d
	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
Packit c32a2d
      fi
Packit c32a2d
      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
Packit c32a2d
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
Packit c32a2d
      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
Packit c32a2d
      _LT_TAGVAR(inherit_rpath, $1)=yes
Packit c32a2d
      _LT_TAGVAR(link_all_deplibs, $1)=yes
Packit c32a2d
      ;;
Packit c32a2d
Packit c32a2d
    linux*)
Packit c32a2d
      case $cc_basename in
Packit c32a2d
      tcc*)
Packit c32a2d
	# Fabrice Bellard et al's Tiny C Compiler
Packit c32a2d
	_LT_TAGVAR(ld_shlibs, $1)=yes
Packit c32a2d
	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Packit c32a2d
	;;
Packit c32a2d
      esac
Packit c32a2d
      ;;
Packit c32a2d
Packit c32a2d
    netbsd*)
Packit c32a2d
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
Packit c32a2d
	_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
Packit c32a2d
      else
Packit c32a2d
	_LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
Packit c32a2d
      fi
Packit c32a2d
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
Packit c32a2d
      _LT_TAGVAR(hardcode_direct, $1)=yes
Packit c32a2d
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
Packit c32a2d
      ;;
Packit c32a2d
Packit c32a2d
    newsos6)
Packit c32a2d
      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
Packit c32a2d
      _LT_TAGVAR(hardcode_direct, $1)=yes
Packit c32a2d
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
Packit c32a2d
      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
Packit c32a2d
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
Packit c32a2d
      ;;
Packit c32a2d
Packit c32a2d
    *nto* | *qnx*)
Packit c32a2d
      ;;
Packit c32a2d
Packit c32a2d
    openbsd* | bitrig*)
Packit c32a2d
      if test -f /usr/libexec/ld.so; then
Packit c32a2d
	_LT_TAGVAR(hardcode_direct, $1)=yes
Packit c32a2d
	_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
Packit c32a2d
	_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
Packit c32a2d
	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
Packit c32a2d
	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Packit c32a2d
	  _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
Packit c32a2d
	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
Packit c32a2d
	  _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
Packit c32a2d
	else
Packit c32a2d
	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Packit c32a2d
	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
Packit c32a2d
	fi
Packit c32a2d
      else
Packit c32a2d
	_LT_TAGVAR(ld_shlibs, $1)=no
Packit c32a2d
      fi
Packit c32a2d
      ;;
Packit c32a2d
Packit c32a2d
    os2*)
Packit c32a2d
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
Packit c32a2d
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
Packit c32a2d
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
Packit c32a2d
      shrext_cmds=.dll
Packit c32a2d
      _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
Packit c32a2d
	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
Packit c32a2d
	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
Packit c32a2d
	$ECHO EXPORTS >> $output_objdir/$libname.def~
Packit c32a2d
	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
Packit c32a2d
	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
Packit c32a2d
	emximp -o $lib $output_objdir/$libname.def'
Packit c32a2d
      _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
Packit c32a2d
	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
Packit c32a2d
	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
Packit c32a2d
	$ECHO EXPORTS >> $output_objdir/$libname.def~
Packit c32a2d
	prefix_cmds="$SED"~
Packit c32a2d
	if test EXPORTS = "`$SED 1q $export_symbols`"; then
Packit c32a2d
	  prefix_cmds="$prefix_cmds -e 1d";
Packit c32a2d
	fi~
Packit c32a2d
	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
Packit c32a2d
	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
Packit c32a2d
	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
Packit c32a2d
	emximp -o $lib $output_objdir/$libname.def'
Packit c32a2d
      _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
Packit c32a2d
      _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
Packit c32a2d
      ;;
Packit c32a2d
Packit c32a2d
    osf3*)
Packit c32a2d
      if test yes = "$GCC"; then
Packit c32a2d
	_LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
Packit c32a2d
	_LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
Packit c32a2d
      else
Packit c32a2d
	_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
Packit c32a2d
	_LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
Packit c32a2d
      fi
Packit c32a2d
      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
Packit c32a2d
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
Packit c32a2d
      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
Packit c32a2d
      ;;
Packit c32a2d
Packit c32a2d
    osf4* | osf5*)	# as osf3* with the addition of -msym flag
Packit c32a2d
      if test yes = "$GCC"; then
Packit c32a2d
	_LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
Packit c32a2d
	_LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
Packit c32a2d
	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
Packit c32a2d
      else
Packit c32a2d
	_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
Packit c32a2d
	_LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
Packit c32a2d
	_LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
Packit c32a2d
          $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
Packit c32a2d
Packit c32a2d
	# Both c and cxx compiler support -rpath directly
Packit c32a2d
	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
Packit c32a2d
      fi
Packit c32a2d
      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
Packit c32a2d
      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
Packit c32a2d
      ;;
Packit c32a2d
Packit c32a2d
    solaris*)
Packit c32a2d
      _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
Packit c32a2d
      if test yes = "$GCC"; then
Packit c32a2d
	wlarc='$wl'
Packit c32a2d
	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
Packit c32a2d
	_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
Packit c32a2d
          $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
Packit c32a2d
      else
Packit c32a2d
	case `$CC -V 2>&1` in
Packit c32a2d
	*"Compilers 5.0"*)
Packit c32a2d
	  wlarc=''
Packit c32a2d
	  _LT_TAGVAR(archive_cmds, $1)='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
Packit c32a2d
	  _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
Packit c32a2d
            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
Packit c32a2d
	  ;;
Packit c32a2d
	*)
Packit c32a2d
	  wlarc='$wl'
Packit c32a2d
	  _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
Packit c32a2d
	  _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
Packit c32a2d
            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
Packit c32a2d
	  ;;
Packit c32a2d
	esac
Packit c32a2d
      fi
Packit c32a2d
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
Packit c32a2d
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
Packit c32a2d
      case $host_os in
Packit c32a2d
      solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
Packit c32a2d
      *)
Packit c32a2d
	# The compiler driver will combine and reorder linker options,
Packit c32a2d
	# but understands '-z linker_flag'.  GCC discards it without '$wl',
Packit c32a2d
	# but is careful enough not to reorder.
Packit c32a2d
	# Supported since Solaris 2.6 (maybe 2.5.1?)
Packit c32a2d
	if test yes = "$GCC"; then
Packit c32a2d
	  _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
Packit c32a2d
	else
Packit c32a2d
	  _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
Packit c32a2d
	fi
Packit c32a2d
	;;
Packit c32a2d
      esac
Packit c32a2d
      _LT_TAGVAR(link_all_deplibs, $1)=yes
Packit c32a2d
      ;;
Packit c32a2d
Packit c32a2d
    sunos4*)
Packit c32a2d
      if test sequent = "$host_vendor"; then
Packit c32a2d
	# Use $CC to link under sequent, because it throws in some extra .o
Packit c32a2d
	# files that make .init and .fini sections work.
Packit c32a2d
	_LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
Packit c32a2d
      else
Packit c32a2d
	_LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
Packit c32a2d
      fi
Packit c32a2d
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
Packit c32a2d
      _LT_TAGVAR(hardcode_direct, $1)=yes
Packit c32a2d
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
Packit c32a2d
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
Packit c32a2d
      ;;
Packit c32a2d
Packit c32a2d
    sysv4)
Packit c32a2d
      case $host_vendor in
Packit c32a2d
	sni)
Packit c32a2d
	  _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
Packit c32a2d
	  _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
Packit c32a2d
	;;
Packit c32a2d
	siemens)
Packit c32a2d
	  ## LD is ld it makes a PLAMLIB
Packit c32a2d
	  ## CC just makes a GrossModule.
Packit c32a2d
	  _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
Packit c32a2d
	  _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
Packit c32a2d
	  _LT_TAGVAR(hardcode_direct, $1)=no
Packit c32a2d
        ;;
Packit c32a2d
	motorola)
Packit c32a2d
	  _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
Packit c32a2d
	  _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
Packit c32a2d
	;;
Packit c32a2d
      esac
Packit c32a2d
      runpath_var='LD_RUN_PATH'
Packit c32a2d
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
Packit c32a2d
      ;;
Packit c32a2d
Packit c32a2d
    sysv4.3*)
Packit c32a2d
      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
Packit c32a2d
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
Packit c32a2d
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
Packit c32a2d
      ;;
Packit c32a2d
Packit c32a2d
    sysv4*MP*)
Packit c32a2d
      if test -d /usr/nec; then
Packit c32a2d
	_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
Packit c32a2d
	_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
Packit c32a2d
	runpath_var=LD_RUN_PATH
Packit c32a2d
	hardcode_runpath_var=yes
Packit c32a2d
	_LT_TAGVAR(ld_shlibs, $1)=yes
Packit c32a2d
      fi
Packit c32a2d
      ;;
Packit c32a2d
Packit c32a2d
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
Packit c32a2d
      _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
Packit c32a2d
      _LT_TAGVAR(archive_cmds_need_lc, $1)=no
Packit c32a2d
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
Packit c32a2d
      runpath_var='LD_RUN_PATH'
Packit c32a2d
Packit c32a2d
      if test yes = "$GCC"; then
Packit c32a2d
	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Packit c32a2d
	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Packit c32a2d
      else
Packit c32a2d
	_LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Packit c32a2d
	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Packit c32a2d
      fi
Packit c32a2d
      ;;
Packit c32a2d
Packit c32a2d
    sysv5* | sco3.2v5* | sco5v6*)
Packit c32a2d
      # Note: We CANNOT use -z defs as we might desire, because we do not
Packit c32a2d
      # link with -lc, and that would cause any symbols used from libc to
Packit c32a2d
      # always be unresolved, which means just about no library would
Packit c32a2d
      # ever link correctly.  If we're not using GNU ld we use -z text
Packit c32a2d
      # though, which does catch some bad symbols but isn't as heavy-handed
Packit c32a2d
      # as -z defs.
Packit c32a2d
      _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
Packit c32a2d
      _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs'
Packit c32a2d
      _LT_TAGVAR(archive_cmds_need_lc, $1)=no
Packit c32a2d
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
Packit c32a2d
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir'
Packit c32a2d
      _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
Packit c32a2d
      _LT_TAGVAR(link_all_deplibs, $1)=yes
Packit c32a2d
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport'
Packit c32a2d
      runpath_var='LD_RUN_PATH'
Packit c32a2d
Packit c32a2d
      if test yes = "$GCC"; then
Packit c32a2d
	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Packit c32a2d
	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Packit c32a2d
      else
Packit c32a2d
	_LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Packit c32a2d
	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Packit c32a2d
      fi
Packit c32a2d
      ;;
Packit c32a2d
Packit c32a2d
    uts4*)
Packit c32a2d
      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
Packit c32a2d
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
Packit c32a2d
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
Packit c32a2d
      ;;
Packit c32a2d
Packit c32a2d
    *)
Packit c32a2d
      _LT_TAGVAR(ld_shlibs, $1)=no
Packit c32a2d
      ;;
Packit c32a2d
    esac
Packit c32a2d
Packit c32a2d
    if test sni = "$host_vendor"; then
Packit c32a2d
      case $host in
Packit c32a2d
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
Packit c32a2d
	_LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Blargedynsym'
Packit c32a2d
	;;
Packit c32a2d
      esac
Packit c32a2d
    fi
Packit c32a2d
  fi
Packit c32a2d
])
Packit c32a2d
AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
Packit c32a2d
test no = "$_LT_TAGVAR(ld_shlibs, $1)" && can_build_shared=no
Packit c32a2d
Packit c32a2d
_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
Packit c32a2d
Packit c32a2d
_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
Packit c32a2d
_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
Packit c32a2d
_LT_DECL([], [extract_expsyms_cmds], [2],
Packit c32a2d
    [The commands to extract the exported symbol list from a shared archive])
Packit c32a2d
Packit c32a2d
#
Packit c32a2d
# Do we need to explicitly link libc?
Packit c32a2d
#
Packit c32a2d
case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
Packit c32a2d
x|xyes)
Packit c32a2d
  # Assume -lc should be added
Packit c32a2d
  _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
Packit c32a2d
Packit c32a2d
  if test yes,yes = "$GCC,$enable_shared"; then
Packit c32a2d
    case $_LT_TAGVAR(archive_cmds, $1) in
Packit c32a2d
    *'~'*)
Packit c32a2d
      # FIXME: we may have to deal with multi-command sequences.
Packit c32a2d
      ;;
Packit c32a2d
    '$CC '*)
Packit c32a2d
      # Test whether the compiler implicitly links with -lc since on some
Packit c32a2d
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
Packit c32a2d
      # to ld, don't add -lc before -lgcc.
Packit c32a2d
      AC_CACHE_CHECK([whether -lc should be explicitly linked in],
Packit c32a2d
	[lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1),
Packit c32a2d
	[$RM conftest*
Packit c32a2d
	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Packit c32a2d
Packit c32a2d
	if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
Packit c32a2d
	  soname=conftest
Packit c32a2d
	  lib=conftest
Packit c32a2d
	  libobjs=conftest.$ac_objext
Packit c32a2d
	  deplibs=
Packit c32a2d
	  wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
Packit c32a2d
	  pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
Packit c32a2d
	  compiler_flags=-v
Packit c32a2d
	  linker_flags=-v
Packit c32a2d
	  verstring=
Packit c32a2d
	  output_objdir=.
Packit c32a2d
	  libname=conftest
Packit c32a2d
	  lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
Packit c32a2d
	  _LT_TAGVAR(allow_undefined_flag, $1)=
Packit c32a2d
	  if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
Packit c32a2d
	  then
Packit c32a2d
	    lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no
Packit c32a2d
	  else
Packit c32a2d
	    lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
Packit c32a2d
	  fi
Packit c32a2d
	  _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
Packit c32a2d
	else
Packit c32a2d
	  cat conftest.err 1>&5
Packit c32a2d
	fi
Packit c32a2d
	$RM conftest*
Packit c32a2d
	])
Packit c32a2d
      _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)
Packit c32a2d
      ;;
Packit c32a2d
    esac
Packit c32a2d
  fi
Packit c32a2d
  ;;
Packit c32a2d
esac
Packit c32a2d
Packit c32a2d
_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
Packit c32a2d
    [Whether or not to add -lc for building shared libraries])
Packit c32a2d
_LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
Packit c32a2d
    [enable_shared_with_static_runtimes], [0],
Packit c32a2d
    [Whether or not to disallow shared libs when runtime libs are static])
Packit c32a2d
_LT_TAGDECL([], [export_dynamic_flag_spec], [1],
Packit c32a2d
    [Compiler flag to allow reflexive dlopens])
Packit c32a2d
_LT_TAGDECL([], [whole_archive_flag_spec], [1],
Packit c32a2d
    [Compiler flag to generate shared objects directly from archives])
Packit c32a2d
_LT_TAGDECL([], [compiler_needs_object], [1],
Packit c32a2d
    [Whether the compiler copes with passing no objects directly])
Packit c32a2d
_LT_TAGDECL([], [old_archive_from_new_cmds], [2],
Packit c32a2d
    [Create an old-style archive from a shared archive])
Packit c32a2d
_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
Packit c32a2d
    [Create a temporary old-style archive to link instead of a shared archive])
Packit c32a2d
_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
Packit c32a2d
_LT_TAGDECL([], [archive_expsym_cmds], [2])
Packit c32a2d
_LT_TAGDECL([], [module_cmds], [2],
Packit c32a2d
    [Commands used to build a loadable module if different from building
Packit c32a2d
    a shared archive.])
Packit c32a2d
_LT_TAGDECL([], [module_expsym_cmds], [2])
Packit c32a2d
_LT_TAGDECL([], [with_gnu_ld], [1],
Packit c32a2d
    [Whether we are building with GNU ld or not])
Packit c32a2d
_LT_TAGDECL([], [allow_undefined_flag], [1],
Packit c32a2d
    [Flag that allows shared libraries with undefined symbols to be built])
Packit c32a2d
_LT_TAGDECL([], [no_undefined_flag], [1],
Packit c32a2d
    [Flag that enforces no undefined symbols])
Packit c32a2d
_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
Packit c32a2d
    [Flag to hardcode $libdir into a binary during linking.
Packit c32a2d
    This must work even if $libdir does not exist])
Packit c32a2d
_LT_TAGDECL([], [hardcode_libdir_separator], [1],
Packit c32a2d
    [Whether we need a single "-rpath" flag with a separated argument])
Packit c32a2d
_LT_TAGDECL([], [hardcode_direct], [0],
Packit c32a2d
    [Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes
Packit c32a2d
    DIR into the resulting binary])
Packit c32a2d
_LT_TAGDECL([], [hardcode_direct_absolute], [0],
Packit c32a2d
    [Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes
Packit c32a2d
    DIR into the resulting binary and the resulting library dependency is
Packit c32a2d
    "absolute", i.e impossible to change by setting $shlibpath_var if the
Packit c32a2d
    library is relocated])
Packit c32a2d
_LT_TAGDECL([], [hardcode_minus_L], [0],
Packit c32a2d
    [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
Packit c32a2d
    into the resulting binary])
Packit c32a2d
_LT_TAGDECL([], [hardcode_shlibpath_var], [0],
Packit c32a2d
    [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
Packit c32a2d
    into the resulting binary])
Packit c32a2d
_LT_TAGDECL([], [hardcode_automatic], [0],
Packit c32a2d
    [Set to "yes" if building a shared library automatically hardcodes DIR
Packit c32a2d
    into the library and all subsequent libraries and executables linked
Packit c32a2d
    against it])
Packit c32a2d
_LT_TAGDECL([], [inherit_rpath], [0],
Packit c32a2d
    [Set to yes if linker adds runtime paths of dependent libraries
Packit c32a2d
    to runtime path list])
Packit c32a2d
_LT_TAGDECL([], [link_all_deplibs], [0],
Packit c32a2d
    [Whether libtool must link a program against all its dependency libraries])
Packit c32a2d
_LT_TAGDECL([], [always_export_symbols], [0],
Packit c32a2d
    [Set to "yes" if exported symbols are required])
Packit c32a2d
_LT_TAGDECL([], [export_symbols_cmds], [2],
Packit c32a2d
    [The commands to list exported symbols])
Packit c32a2d
_LT_TAGDECL([], [exclude_expsyms], [1],
Packit c32a2d
    [Symbols that should not be listed in the preloaded symbols])
Packit c32a2d
_LT_TAGDECL([], [include_expsyms], [1],
Packit c32a2d
    [Symbols that must always be exported])
Packit c32a2d
_LT_TAGDECL([], [prelink_cmds], [2],
Packit c32a2d
    [Commands necessary for linking programs (against libraries) with templates])
Packit c32a2d
_LT_TAGDECL([], [postlink_cmds], [2],
Packit c32a2d
    [Commands necessary for finishing linking programs])
Packit c32a2d
_LT_TAGDECL([], [file_list_spec], [1],
Packit c32a2d
    [Specify filename containing input files])
Packit c32a2d
dnl FIXME: Not yet implemented
Packit c32a2d
dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
Packit c32a2d
dnl    [Compiler flag to generate thread safe objects])
Packit c32a2d
])# _LT_LINKER_SHLIBS
Packit c32a2d
Packit c32a2d
Packit c32a2d
# _LT_LANG_C_CONFIG([TAG])
Packit c32a2d
# ------------------------
Packit c32a2d
# Ensure that the configuration variables for a C compiler are suitably
Packit c32a2d
# defined.  These variables are subsequently used by _LT_CONFIG to write
Packit c32a2d
# the compiler configuration to 'libtool'.
Packit c32a2d
m4_defun([_LT_LANG_C_CONFIG],
Packit c32a2d
[m4_require([_LT_DECL_EGREP])dnl
Packit c32a2d
lt_save_CC=$CC
Packit c32a2d
AC_LANG_PUSH(C)
Packit c32a2d
Packit c32a2d
# Source file extension for C test sources.
Packit c32a2d
ac_ext=c
Packit c32a2d
Packit c32a2d
# Object file extension for compiled C test sources.
Packit c32a2d
objext=o
Packit c32a2d
_LT_TAGVAR(objext, $1)=$objext
Packit c32a2d
Packit c32a2d
# Code to be used in simple compile tests
Packit c32a2d
lt_simple_compile_test_code="int some_variable = 0;"
Packit c32a2d
Packit c32a2d
# Code to be used in simple link tests
Packit c32a2d
lt_simple_link_test_code='int main(){return(0);}'
Packit c32a2d
Packit c32a2d
_LT_TAG_COMPILER
Packit c32a2d
# Save the default compiler, since it gets overwritten when the other
Packit c32a2d
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
Packit c32a2d
compiler_DEFAULT=$CC
Packit c32a2d
Packit c32a2d
# save warnings/boilerplate of simple test code
Packit c32a2d
_LT_COMPILER_BOILERPLATE
Packit c32a2d
_LT_LINKER_BOILERPLATE
Packit c32a2d
Packit c32a2d
## CAVEAT EMPTOR:
Packit c32a2d
## There is no encapsulation within the following macros, do not change
Packit c32a2d
## the running order or otherwise move them around unless you know exactly
Packit c32a2d
## what you are doing...
Packit c32a2d
if test -n "$compiler"; then
Packit c32a2d
  _LT_COMPILER_NO_RTTI($1)
Packit c32a2d
  _LT_COMPILER_PIC($1)
Packit c32a2d
  _LT_COMPILER_C_O($1)
Packit c32a2d
  _LT_COMPILER_FILE_LOCKS($1)
Packit c32a2d
  _LT_LINKER_SHLIBS($1)
Packit c32a2d
  _LT_SYS_DYNAMIC_LINKER($1)
Packit c32a2d
  _LT_LINKER_HARDCODE_LIBPATH($1)
Packit c32a2d
  LT_SYS_DLOPEN_SELF
Packit c32a2d
  _LT_CMD_STRIPLIB
Packit c32a2d
Packit c32a2d
  # Report what library types will actually be built
Packit c32a2d
  AC_MSG_CHECKING([if libtool supports shared libraries])
Packit c32a2d
  AC_MSG_RESULT([$can_build_shared])
Packit c32a2d
Packit c32a2d
  AC_MSG_CHECKING([whether to build shared libraries])
Packit c32a2d
  test no = "$can_build_shared" && enable_shared=no
Packit c32a2d
Packit c32a2d
  # On AIX, shared libraries and static libraries use the same namespace, and
Packit c32a2d
  # are all built from PIC.
Packit c32a2d
  case $host_os in
Packit c32a2d
  aix3*)
Packit c32a2d
    test yes = "$enable_shared" && enable_static=no
Packit c32a2d
    if test -n "$RANLIB"; then
Packit c32a2d
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
Packit c32a2d
      postinstall_cmds='$RANLIB $lib'
Packit c32a2d
    fi
Packit c32a2d
    ;;
Packit c32a2d
Packit c32a2d
  aix[[4-9]]*)
Packit c32a2d
    if test ia64 != "$host_cpu"; then
Packit c32a2d
      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
Packit c32a2d
      yes,aix,yes) ;;			# shared object as lib.so file only
Packit c32a2d
      yes,svr4,*) ;;			# shared object as lib.so archive member only
Packit c32a2d
      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
Packit c32a2d
      esac
Packit c32a2d
    fi
Packit c32a2d
    ;;
Packit c32a2d
  esac
Packit c32a2d
  AC_MSG_RESULT([$enable_shared])
Packit c32a2d
Packit c32a2d
  AC_MSG_CHECKING([whether to build static libraries])
Packit c32a2d
  # Make sure either enable_shared or enable_static is yes.
Packit c32a2d
  test yes = "$enable_shared" || enable_static=yes
Packit c32a2d
  AC_MSG_RESULT([$enable_static])
Packit c32a2d
Packit c32a2d
  _LT_CONFIG($1)
Packit c32a2d
fi
Packit c32a2d
AC_LANG_POP
Packit c32a2d
CC=$lt_save_CC
Packit c32a2d
])# _LT_LANG_C_CONFIG
Packit c32a2d
Packit c32a2d
Packit c32a2d
# _LT_LANG_CXX_CONFIG([TAG])
Packit c32a2d
# --------------------------
Packit c32a2d
# Ensure that the configuration variables for a C++ compiler are suitably
Packit c32a2d
# defined.  These variables are subsequently used by _LT_CONFIG to write
Packit c32a2d
# the compiler configuration to 'libtool'.
Packit c32a2d
m4_defun([_LT_LANG_CXX_CONFIG],
Packit c32a2d
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
Packit c32a2d
m4_require([_LT_DECL_EGREP])dnl
Packit c32a2d
m4_require([_LT_PATH_MANIFEST_TOOL])dnl
Packit c32a2d
if test -n "$CXX" && ( test no != "$CXX" &&
Packit c32a2d
    ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
Packit c32a2d
    (test g++ != "$CXX"))); then
Packit c32a2d
  AC_PROG_CXXCPP
Packit c32a2d
else
Packit c32a2d
  _lt_caught_CXX_error=yes
Packit c32a2d
fi
Packit c32a2d
Packit c32a2d
AC_LANG_PUSH(C++)
Packit c32a2d
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
Packit c32a2d
_LT_TAGVAR(allow_undefined_flag, $1)=
Packit c32a2d
_LT_TAGVAR(always_export_symbols, $1)=no
Packit c32a2d
_LT_TAGVAR(archive_expsym_cmds, $1)=
Packit c32a2d
_LT_TAGVAR(compiler_needs_object, $1)=no
Packit c32a2d
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
Packit c32a2d
_LT_TAGVAR(hardcode_direct, $1)=no
Packit c32a2d
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
Packit c32a2d
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
Packit c32a2d
_LT_TAGVAR(hardcode_libdir_separator, $1)=
Packit c32a2d
_LT_TAGVAR(hardcode_minus_L, $1)=no
Packit c32a2d
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
Packit c32a2d
_LT_TAGVAR(hardcode_automatic, $1)=no
Packit c32a2d
_LT_TAGVAR(inherit_rpath, $1)=no
Packit c32a2d
_LT_TAGVAR(module_cmds, $1)=
Packit c32a2d
_LT_TAGVAR(module_expsym_cmds, $1)=
Packit c32a2d
_LT_TAGVAR(link_all_deplibs, $1)=unknown
Packit c32a2d
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
Packit c32a2d
_LT_TAGVAR(reload_flag, $1)=$reload_flag
Packit c32a2d
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
Packit c32a2d
_LT_TAGVAR(no_undefined_flag, $1)=
Packit c32a2d
_LT_TAGVAR(whole_archive_flag_spec, $1)=
Packit c32a2d
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
Packit c32a2d
Packit c32a2d
# Source file extension for C++ test sources.
Packit c32a2d
ac_ext=cpp
Packit c32a2d
Packit c32a2d
# Object file extension for compiled C++ test sources.
Packit c32a2d
objext=o
Packit c32a2d
_LT_TAGVAR(objext, $1)=$objext
Packit c32a2d
Packit c32a2d
# No sense in running all these tests if we already determined that
Packit c32a2d
# the CXX compiler isn't working.  Some variables (like enable_shared)
Packit c32a2d
# are currently assumed to apply to all compilers on this platform,
Packit c32a2d
# and will be corrupted by setting them based on a non-working compiler.
Packit c32a2d
if test yes != "$_lt_caught_CXX_error"; then
Packit c32a2d
  # Code to be used in simple compile tests
Packit c32a2d
  lt_simple_compile_test_code="int some_variable = 0;"
Packit c32a2d
Packit c32a2d
  # Code to be used in simple link tests
Packit c32a2d
  lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
Packit c32a2d
Packit c32a2d
  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
Packit c32a2d
  _LT_TAG_COMPILER
Packit c32a2d
Packit c32a2d
  # save warnings/boilerplate of simple test code
Packit c32a2d
  _LT_COMPILER_BOILERPLATE
Packit c32a2d
  _LT_LINKER_BOILERPLATE
Packit c32a2d
Packit c32a2d
  # Allow CC to be a program name with arguments.
Packit c32a2d
  lt_save_CC=$CC
Packit c32a2d
  lt_save_CFLAGS=$CFLAGS
Packit c32a2d
  lt_save_LD=$LD
Packit c32a2d
  lt_save_GCC=$GCC
Packit c32a2d
  GCC=$GXX
Packit c32a2d
  lt_save_with_gnu_ld=$with_gnu_ld
Packit c32a2d
  lt_save_path_LD=$lt_cv_path_LD
Packit c32a2d
  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
Packit c32a2d
    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
Packit c32a2d
  else
Packit c32a2d
    $as_unset lt_cv_prog_gnu_ld
Packit c32a2d
  fi
Packit c32a2d
  if test -n "${lt_cv_path_LDCXX+set}"; then
Packit c32a2d
    lt_cv_path_LD=$lt_cv_path_LDCXX
Packit c32a2d
  else
Packit c32a2d
    $as_unset lt_cv_path_LD
Packit c32a2d
  fi
Packit c32a2d
  test -z "${LDCXX+set}" || LD=$LDCXX
Packit c32a2d
  CC=${CXX-"c++"}
Packit c32a2d
  CFLAGS=$CXXFLAGS
Packit c32a2d
  compiler=$CC
Packit c32a2d
  _LT_TAGVAR(compiler, $1)=$CC
Packit c32a2d
  _LT_CC_BASENAME([$compiler])
Packit c32a2d
Packit c32a2d
  if test -n "$compiler"; then
Packit c32a2d
    # We don't want -fno-exception when compiling C++ code, so set the
Packit c32a2d
    # no_builtin_flag separately
Packit c32a2d
    if test yes = "$GXX"; then
Packit c32a2d
      _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
Packit c32a2d
    else
Packit c32a2d
      _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
Packit c32a2d
    fi
Packit c32a2d
Packit c32a2d
    if test yes = "$GXX"; then
Packit c32a2d
      # Set up default GNU C++ configuration
Packit c32a2d
Packit c32a2d
      LT_PATH_LD
Packit c32a2d
Packit c32a2d
      # Check if GNU C++ uses GNU ld as the underlying linker, since the
Packit c32a2d
      # archiving commands below assume that GNU ld is being used.
Packit c32a2d
      if test yes = "$with_gnu_ld"; then
Packit c32a2d
        _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
Packit c32a2d
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
Packit c32a2d
Packit c32a2d
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
Packit c32a2d
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
Packit c32a2d
Packit c32a2d
        # If archive_cmds runs LD, not CC, wlarc should be empty
Packit c32a2d
        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
Packit c32a2d
        #     investigate it a little bit more. (MM)
Packit c32a2d
        wlarc='$wl'
Packit c32a2d
Packit c32a2d
        # ancient GNU ld didn't support --whole-archive et. al.
Packit c32a2d
        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
Packit c32a2d
	  $GREP 'no-whole-archive' > /dev/null; then
Packit c32a2d
          _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
Packit c32a2d
        else
Packit c32a2d
          _LT_TAGVAR(whole_archive_flag_spec, $1)=
Packit c32a2d
        fi
Packit c32a2d
      else
Packit c32a2d
        with_gnu_ld=no
Packit c32a2d
        wlarc=
Packit c32a2d
Packit c32a2d
        # A generic and very simple default shared library creation
Packit c32a2d
        # command for GNU C++ for the case where it uses the native
Packit c32a2d
        # linker, instead of GNU ld.  If possible, this setting should
Packit c32a2d
        # overridden to take advantage of the native linker features on
Packit c32a2d
        # the platform it is being used on.
Packit c32a2d
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
Packit c32a2d
      fi
Packit c32a2d
Packit c32a2d
      # Commands to make compiler produce verbose output that lists
Packit c32a2d
      # what "hidden" libraries, object files and flags are used when
Packit c32a2d
      # linking a shared library.
Packit c32a2d
      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
Packit c32a2d
Packit c32a2d
    else
Packit c32a2d
      GXX=no
Packit c32a2d
      with_gnu_ld=no
Packit c32a2d
      wlarc=
Packit c32a2d
    fi
Packit c32a2d
Packit c32a2d
    # PORTME: fill in a description of your system's C++ link characteristics
Packit c32a2d
    AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
Packit c32a2d
    _LT_TAGVAR(ld_shlibs, $1)=yes
Packit c32a2d
    case $host_os in
Packit c32a2d
      aix3*)
Packit c32a2d
        # FIXME: insert proper C++ library support
Packit c32a2d
        _LT_TAGVAR(ld_shlibs, $1)=no
Packit c32a2d
        ;;
Packit c32a2d
      aix[[4-9]]*)
Packit c32a2d
        if test ia64 = "$host_cpu"; then
Packit c32a2d
          # On IA64, the linker does run time linking by default, so we don't
Packit c32a2d
          # have to do anything special.
Packit c32a2d
          aix_use_runtimelinking=no
Packit c32a2d
          exp_sym_flag='-Bexport'
Packit c32a2d
          no_entry_flag=
Packit c32a2d
        else
Packit c32a2d
          aix_use_runtimelinking=no
Packit c32a2d
Packit c32a2d
          # Test if we are trying to use run time linking or normal
Packit c32a2d
          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
Packit c32a2d
          # have runtime linking enabled, and use it for executables.
Packit c32a2d
          # For shared libraries, we enable/disable runtime linking
Packit c32a2d
          # depending on the kind of the shared library created -
Packit c32a2d
          # when "with_aix_soname,aix_use_runtimelinking" is:
Packit c32a2d
          # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
Packit c32a2d
          # "aix,yes"  lib.so          shared, rtl:yes, for executables
Packit c32a2d
          #            lib.a           static archive
Packit c32a2d
          # "both,no"  lib.so.V(shr.o) shared, rtl:yes
Packit c32a2d
          #            lib.a(lib.so.V) shared, rtl:no,  for executables
Packit c32a2d
          # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
Packit c32a2d
          #            lib.a(lib.so.V) shared, rtl:no
Packit c32a2d
          # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
Packit c32a2d
          #            lib.a           static archive
Packit c32a2d
          case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
Packit c32a2d
	    for ld_flag in $LDFLAGS; do
Packit c32a2d
	      case $ld_flag in
Packit c32a2d
	      *-brtl*)
Packit c32a2d
	        aix_use_runtimelinking=yes
Packit c32a2d
	        break
Packit c32a2d
	        ;;
Packit c32a2d
	      esac
Packit c32a2d
	    done
Packit c32a2d
	    if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
Packit c32a2d
	      # With aix-soname=svr4, we create the lib.so.V shared archives only,
Packit c32a2d
	      # so we don't have lib.a shared libs to link our executables.
Packit c32a2d
	      # We have to force runtime linking in this case.
Packit c32a2d
	      aix_use_runtimelinking=yes
Packit c32a2d
	      LDFLAGS="$LDFLAGS -Wl,-brtl"
Packit c32a2d
	    fi
Packit c32a2d
	    ;;
Packit c32a2d
          esac
Packit c32a2d
Packit c32a2d
          exp_sym_flag='-bexport'
Packit c32a2d
          no_entry_flag='-bnoentry'
Packit c32a2d
        fi
Packit c32a2d
Packit c32a2d
        # When large executables or shared objects are built, AIX ld can
Packit c32a2d
        # have problems creating the table of contents.  If linking a library
Packit c32a2d
        # or program results in "error TOC overflow" add -mminimal-toc to
Packit c32a2d
        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
Packit c32a2d
        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
Packit c32a2d
Packit c32a2d
        _LT_TAGVAR(archive_cmds, $1)=''
Packit c32a2d
        _LT_TAGVAR(hardcode_direct, $1)=yes
Packit c32a2d
        _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
Packit c32a2d
        _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
Packit c32a2d
        _LT_TAGVAR(link_all_deplibs, $1)=yes
Packit c32a2d
        _LT_TAGVAR(file_list_spec, $1)='$wl-f,'
Packit c32a2d
        case $with_aix_soname,$aix_use_runtimelinking in
Packit c32a2d
        aix,*) ;;	# no import file
Packit c32a2d
        svr4,* | *,yes) # use import file
Packit c32a2d
          # The Import File defines what to hardcode.
Packit c32a2d
          _LT_TAGVAR(hardcode_direct, $1)=no
Packit c32a2d
          _LT_TAGVAR(hardcode_direct_absolute, $1)=no
Packit c32a2d
          ;;
Packit c32a2d
        esac
Packit c32a2d
Packit c32a2d
        if test yes = "$GXX"; then
Packit c32a2d
          case $host_os in aix4.[[012]]|aix4.[[012]].*)
Packit c32a2d
          # We only want to do this on AIX 4.2 and lower, the check
Packit c32a2d
          # below for broken collect2 doesn't work under 4.3+
Packit c32a2d
	  collect2name=`$CC -print-prog-name=collect2`
Packit c32a2d
	  if test -f "$collect2name" &&
Packit c32a2d
	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
Packit c32a2d
	  then
Packit c32a2d
	    # We have reworked collect2
Packit c32a2d
	    :
Packit c32a2d
	  else
Packit c32a2d
	    # We have old collect2
Packit c32a2d
	    _LT_TAGVAR(hardcode_direct, $1)=unsupported
Packit c32a2d
	    # It fails to find uninstalled libraries when the uninstalled
Packit c32a2d
	    # path is not listed in the libpath.  Setting hardcode_minus_L
Packit c32a2d
	    # to unsupported forces relinking
Packit c32a2d
	    _LT_TAGVAR(hardcode_minus_L, $1)=yes
Packit c32a2d
	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
Packit c32a2d
	    _LT_TAGVAR(hardcode_libdir_separator, $1)=
Packit c32a2d
	  fi
Packit c32a2d
          esac
Packit c32a2d
          shared_flag='-shared'
Packit c32a2d
	  if test yes = "$aix_use_runtimelinking"; then
Packit c32a2d
	    shared_flag=$shared_flag' $wl-G'
Packit c32a2d
	  fi
Packit c32a2d
	  # Need to ensure runtime linking is disabled for the traditional
Packit c32a2d
	  # shared library, or the linker may eventually find shared libraries
Packit c32a2d
	  # /with/ Import File - we do not want to mix them.
Packit c32a2d
	  shared_flag_aix='-shared'
Packit c32a2d
	  shared_flag_svr4='-shared $wl-G'
Packit c32a2d
        else
Packit c32a2d
          # not using gcc
Packit c32a2d
          if test ia64 = "$host_cpu"; then
Packit c32a2d
	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
Packit c32a2d
	  # chokes on -Wl,-G. The following line is correct:
Packit c32a2d
	  shared_flag='-G'
Packit c32a2d
          else
Packit c32a2d
	    if test yes = "$aix_use_runtimelinking"; then
Packit c32a2d
	      shared_flag='$wl-G'
Packit c32a2d
	    else
Packit c32a2d
	      shared_flag='$wl-bM:SRE'
Packit c32a2d
	    fi
Packit c32a2d
	    shared_flag_aix='$wl-bM:SRE'
Packit c32a2d
	    shared_flag_svr4='$wl-G'
Packit c32a2d
          fi
Packit c32a2d
        fi
Packit c32a2d
Packit c32a2d
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall'
Packit c32a2d
        # It seems that -bexpall does not export symbols beginning with
Packit c32a2d
        # underscore (_), so it is better to generate a list of symbols to
Packit c32a2d
	# export.
Packit c32a2d
        _LT_TAGVAR(always_export_symbols, $1)=yes
Packit c32a2d
	if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
Packit c32a2d
          # Warning - without using the other runtime loading flags (-brtl),
Packit c32a2d
          # -berok will link without error, but may produce a broken library.
Packit c32a2d
          # The "-G" linker flag allows undefined symbols.
Packit c32a2d
          _LT_TAGVAR(no_undefined_flag, $1)='-bernotok'
Packit c32a2d
          # Determine the default libpath from the value encoded in an empty
Packit c32a2d
          # executable.
Packit c32a2d
          _LT_SYS_MODULE_PATH_AIX([$1])
Packit c32a2d
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
Packit c32a2d
Packit c32a2d
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
Packit c32a2d
        else
Packit c32a2d
          if test ia64 = "$host_cpu"; then
Packit c32a2d
	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib'
Packit c32a2d
	    _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
Packit c32a2d
	    _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
Packit c32a2d
          else
Packit c32a2d
	    # Determine the default libpath from the value encoded in an
Packit c32a2d
	    # empty executable.
Packit c32a2d
	    _LT_SYS_MODULE_PATH_AIX([$1])
Packit c32a2d
	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
Packit c32a2d
	    # Warning - without using the other run time loading flags,
Packit c32a2d
	    # -berok will link without error, but may produce a broken library.
Packit c32a2d
	    _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok'
Packit c32a2d
	    _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok'
Packit c32a2d
	    if test yes = "$with_gnu_ld"; then
Packit c32a2d
	      # We only use this code for GNU lds that support --whole-archive.
Packit c32a2d
	      _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive'
Packit c32a2d
	    else
Packit c32a2d
	      # Exported symbols can be pulled into shared objects from archives
Packit c32a2d
	      _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
Packit c32a2d
	    fi
Packit c32a2d
	    _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
Packit c32a2d
	    _LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
Packit c32a2d
	    # -brtl affects multiple linker settings, -berok does not and is overridden later
Packit c32a2d
	    compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([[, ]]\\)%-berok\\1%g"`'
Packit c32a2d
	    if test svr4 != "$with_aix_soname"; then
Packit c32a2d
	      # This is similar to how AIX traditionally builds its shared
Packit c32a2d
	      # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
Packit c32a2d
	      _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
Packit c32a2d
	    fi
Packit c32a2d
	    if test aix != "$with_aix_soname"; then
Packit c32a2d
	      _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
Packit c32a2d
	    else
Packit c32a2d
	      # used by -dlpreopen to get the symbols
Packit c32a2d
	      _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
Packit c32a2d
	    fi
Packit c32a2d
	    _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$RM -r $output_objdir/$realname.d'
Packit c32a2d
          fi
Packit c32a2d
        fi
Packit c32a2d
        ;;
Packit c32a2d
Packit c32a2d
      beos*)
Packit c32a2d
	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Packit c32a2d
	  _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
Packit c32a2d
	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
Packit c32a2d
	  # support --undefined.  This deserves some investigation.  FIXME
Packit c32a2d
	  _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
Packit c32a2d
	else
Packit c32a2d
	  _LT_TAGVAR(ld_shlibs, $1)=no
Packit c32a2d
	fi
Packit c32a2d
	;;
Packit c32a2d
Packit c32a2d
      chorus*)
Packit c32a2d
        case $cc_basename in
Packit c32a2d
          *)
Packit c32a2d
	  # FIXME: insert proper C++ library support
Packit c32a2d
	  _LT_TAGVAR(ld_shlibs, $1)=no
Packit c32a2d
	  ;;
Packit c32a2d
        esac
Packit c32a2d
        ;;
Packit c32a2d
Packit c32a2d
      cygwin* | mingw* | pw32* | cegcc*)
Packit c32a2d
	case $GXX,$cc_basename in
Packit c32a2d
	,cl* | no,cl*)
Packit c32a2d
	  # Native MSVC
Packit c32a2d
	  # hardcode_libdir_flag_spec is actually meaningless, as there is
Packit c32a2d
	  # no search path for DLLs.
Packit c32a2d
	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
Packit c32a2d
	  _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
Packit c32a2d
	  _LT_TAGVAR(always_export_symbols, $1)=yes
Packit c32a2d
	  _LT_TAGVAR(file_list_spec, $1)='@'
Packit c32a2d
	  # Tell ltmain to make .lib files, not .a files.
Packit c32a2d
	  libext=lib
Packit c32a2d
	  # Tell ltmain to make .dll files, not .so files.
Packit c32a2d
	  shrext_cmds=.dll
Packit c32a2d
	  # FIXME: Setting linknames here is a bad hack.
Packit c32a2d
	  _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
Packit c32a2d
	  _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
Packit c32a2d
              cp "$export_symbols" "$output_objdir/$soname.def";
Packit c32a2d
              echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
Packit c32a2d
            else
Packit c32a2d
              $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
Packit c32a2d
            fi~
Packit c32a2d
            $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
Packit c32a2d
            linknames='
Packit c32a2d
	  # The linker will not automatically build a static lib if we build a DLL.
Packit c32a2d
	  # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
Packit c32a2d
	  _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
Packit c32a2d
	  # Don't use ranlib
Packit c32a2d
	  _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
Packit c32a2d
	  _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
Packit c32a2d
            lt_tool_outputfile="@TOOL_OUTPUT@"~
Packit c32a2d
            case $lt_outputfile in
Packit c32a2d
              *.exe|*.EXE) ;;
Packit c32a2d
              *)
Packit c32a2d
                lt_outputfile=$lt_outputfile.exe
Packit c32a2d
                lt_tool_outputfile=$lt_tool_outputfile.exe
Packit c32a2d
                ;;
Packit c32a2d
            esac~
Packit c32a2d
            func_to_tool_file "$lt_outputfile"~
Packit c32a2d
            if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
Packit c32a2d
              $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
Packit c32a2d
              $RM "$lt_outputfile.manifest";
Packit c32a2d
            fi'
Packit c32a2d
	  ;;
Packit c32a2d
	*)
Packit c32a2d
	  # g++
Packit c32a2d
	  # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
Packit c32a2d
	  # as there is no search path for DLLs.
Packit c32a2d
	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
Packit c32a2d
	  _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols'
Packit c32a2d
	  _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
Packit c32a2d
	  _LT_TAGVAR(always_export_symbols, $1)=no
Packit c32a2d
	  _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
Packit c32a2d
Packit c32a2d
	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
Packit c32a2d
	    _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
Packit c32a2d
	    # If the export-symbols file already is a .def file, use it as
Packit c32a2d
	    # is; otherwise, prepend EXPORTS...
Packit c32a2d
	    _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
Packit c32a2d
              cp $export_symbols $output_objdir/$soname.def;
Packit c32a2d
            else
Packit c32a2d
              echo EXPORTS > $output_objdir/$soname.def;
Packit c32a2d
              cat $export_symbols >> $output_objdir/$soname.def;
Packit c32a2d
            fi~
Packit c32a2d
            $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
Packit c32a2d
	  else
Packit c32a2d
	    _LT_TAGVAR(ld_shlibs, $1)=no
Packit c32a2d
	  fi
Packit c32a2d
	  ;;
Packit c32a2d
	esac
Packit c32a2d
	;;
Packit c32a2d
      darwin* | rhapsody*)
Packit c32a2d
        _LT_DARWIN_LINKER_FEATURES($1)
Packit c32a2d
	;;
Packit c32a2d
Packit c32a2d
      os2*)
Packit c32a2d
	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
Packit c32a2d
	_LT_TAGVAR(hardcode_minus_L, $1)=yes
Packit c32a2d
	_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
Packit c32a2d
	shrext_cmds=.dll
Packit c32a2d
	_LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
Packit c32a2d
	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
Packit c32a2d
	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
Packit c32a2d
	  $ECHO EXPORTS >> $output_objdir/$libname.def~
Packit c32a2d
	  emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
Packit c32a2d
	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
Packit c32a2d
	  emximp -o $lib $output_objdir/$libname.def'
Packit c32a2d
	_LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
Packit c32a2d
	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
Packit c32a2d
	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
Packit c32a2d
	  $ECHO EXPORTS >> $output_objdir/$libname.def~
Packit c32a2d
	  prefix_cmds="$SED"~
Packit c32a2d
	  if test EXPORTS = "`$SED 1q $export_symbols`"; then
Packit c32a2d
	    prefix_cmds="$prefix_cmds -e 1d";
Packit c32a2d
	  fi~
Packit c32a2d
	  prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
Packit c32a2d
	  cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
Packit c32a2d
	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
Packit c32a2d
	  emximp -o $lib $output_objdir/$libname.def'
Packit c32a2d
	_LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
Packit c32a2d
	_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
Packit c32a2d
	;;
Packit c32a2d
Packit c32a2d
      dgux*)
Packit c32a2d
        case $cc_basename in
Packit c32a2d
          ec++*)
Packit c32a2d
	    # FIXME: insert proper C++ library support
Packit c32a2d
	    _LT_TAGVAR(ld_shlibs, $1)=no
Packit c32a2d
	    ;;
Packit c32a2d
          ghcx*)
Packit c32a2d
	    # Green Hills C++ Compiler
Packit c32a2d
	    # FIXME: insert proper C++ library support
Packit c32a2d
	    _LT_TAGVAR(ld_shlibs, $1)=no
Packit c32a2d
	    ;;
Packit c32a2d
          *)
Packit c32a2d
	    # FIXME: insert proper C++ library support
Packit c32a2d
	    _LT_TAGVAR(ld_shlibs, $1)=no
Packit c32a2d
	    ;;
Packit c32a2d
        esac
Packit c32a2d
        ;;
Packit c32a2d
Packit c32a2d
      freebsd2.*)
Packit c32a2d
        # C++ shared libraries reported to be fairly broken before
Packit c32a2d
	# switch to ELF
Packit c32a2d
        _LT_TAGVAR(ld_shlibs, $1)=no
Packit c32a2d
        ;;
Packit c32a2d
Packit c32a2d
      freebsd-elf*)
Packit c32a2d
        _LT_TAGVAR(archive_cmds_need_lc, $1)=no
Packit c32a2d
        ;;
Packit c32a2d
Packit c32a2d
      freebsd* | dragonfly*)
Packit c32a2d
        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
Packit c32a2d
        # conventions
Packit c32a2d
        _LT_TAGVAR(ld_shlibs, $1)=yes
Packit c32a2d
        ;;
Packit c32a2d
Packit c32a2d
      haiku*)
Packit c32a2d
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
Packit c32a2d
        _LT_TAGVAR(link_all_deplibs, $1)=yes
Packit c32a2d
        ;;
Packit c32a2d
Packit c32a2d
      hpux9*)
Packit c32a2d
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
Packit c32a2d
        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
Packit c32a2d
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
Packit c32a2d
        _LT_TAGVAR(hardcode_direct, $1)=yes
Packit c32a2d
        _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
Packit c32a2d
				             # but as the default
Packit c32a2d
				             # location of the library.
Packit c32a2d
Packit c32a2d
        case $cc_basename in
Packit c32a2d
          CC*)
Packit c32a2d
            # FIXME: insert proper C++ library support
Packit c32a2d
            _LT_TAGVAR(ld_shlibs, $1)=no
Packit c32a2d
            ;;
Packit c32a2d
          aCC*)
Packit c32a2d
            _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
Packit c32a2d
            # Commands to make compiler produce verbose output that lists
Packit c32a2d
            # what "hidden" libraries, object files and flags are used when
Packit c32a2d
            # linking a shared library.
Packit c32a2d
            #
Packit c32a2d
            # There doesn't appear to be a way to prevent this compiler from
Packit c32a2d
            # explicitly linking system object files so we need to strip them
Packit c32a2d
            # from the output so that they don't get included in the library
Packit c32a2d
            # dependencies.
Packit c32a2d
            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
Packit c32a2d
            ;;
Packit c32a2d
          *)
Packit c32a2d
            if test yes = "$GXX"; then
Packit c32a2d
              _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
Packit c32a2d
            else
Packit c32a2d
              # FIXME: insert proper C++ library support
Packit c32a2d
              _LT_TAGVAR(ld_shlibs, $1)=no
Packit c32a2d
            fi
Packit c32a2d
            ;;
Packit c32a2d
        esac
Packit c32a2d
        ;;
Packit c32a2d
Packit c32a2d
      hpux10*|hpux11*)
Packit c32a2d
        if test no = "$with_gnu_ld"; then
Packit c32a2d
	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
Packit c32a2d
	  _LT_TAGVAR(hardcode_libdir_separator, $1)=:
Packit c32a2d
Packit c32a2d
          case $host_cpu in
Packit c32a2d
            hppa*64*|ia64*)
Packit c32a2d
              ;;
Packit c32a2d
            *)
Packit c32a2d
	      _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
Packit c32a2d
              ;;
Packit c32a2d
          esac
Packit c32a2d
        fi
Packit c32a2d
        case $host_cpu in
Packit c32a2d
          hppa*64*|ia64*)
Packit c32a2d
            _LT_TAGVAR(hardcode_direct, $1)=no
Packit c32a2d
            _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
Packit c32a2d
            ;;
Packit c32a2d
          *)
Packit c32a2d
            _LT_TAGVAR(hardcode_direct, $1)=yes
Packit c32a2d
            _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
Packit c32a2d
            _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
Packit c32a2d
					         # but as the default
Packit c32a2d
					         # location of the library.
Packit c32a2d
            ;;
Packit c32a2d
        esac
Packit c32a2d
Packit c32a2d
        case $cc_basename in
Packit c32a2d
          CC*)
Packit c32a2d
	    # FIXME: insert proper C++ library support
Packit c32a2d
	    _LT_TAGVAR(ld_shlibs, $1)=no
Packit c32a2d
	    ;;
Packit c32a2d
          aCC*)
Packit c32a2d
	    case $host_cpu in
Packit c32a2d
	      hppa*64*)
Packit c32a2d
	        _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
Packit c32a2d
	        ;;
Packit c32a2d
	      ia64*)
Packit c32a2d
	        _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
Packit c32a2d
	        ;;
Packit c32a2d
	      *)
Packit c32a2d
	        _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
Packit c32a2d
	        ;;
Packit c32a2d
	    esac
Packit c32a2d
	    # Commands to make compiler produce verbose output that lists
Packit c32a2d
	    # what "hidden" libraries, object files and flags are used when
Packit c32a2d
	    # linking a shared library.
Packit c32a2d
	    #
Packit c32a2d
	    # There doesn't appear to be a way to prevent this compiler from
Packit c32a2d
	    # explicitly linking system object files so we need to strip them
Packit c32a2d
	    # from the output so that they don't get included in the library
Packit c32a2d
	    # dependencies.
Packit c32a2d
	    output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
Packit c32a2d
	    ;;
Packit c32a2d
          *)
Packit c32a2d
	    if test yes = "$GXX"; then
Packit c32a2d
	      if test no = "$with_gnu_ld"; then
Packit c32a2d
	        case $host_cpu in
Packit c32a2d
	          hppa*64*)
Packit c32a2d
	            _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
Packit c32a2d
	            ;;
Packit c32a2d
	          ia64*)
Packit c32a2d
	            _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
Packit c32a2d
	            ;;
Packit c32a2d
	          *)
Packit c32a2d
	            _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
Packit c32a2d
	            ;;
Packit c32a2d
	        esac
Packit c32a2d
	      fi
Packit c32a2d
	    else
Packit c32a2d
	      # FIXME: insert proper C++ library support
Packit c32a2d
	      _LT_TAGVAR(ld_shlibs, $1)=no
Packit c32a2d
	    fi
Packit c32a2d
	    ;;
Packit c32a2d
        esac
Packit c32a2d
        ;;
Packit c32a2d
Packit c32a2d
      interix[[3-9]]*)
Packit c32a2d
	_LT_TAGVAR(hardcode_direct, $1)=no
Packit c32a2d
	_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
Packit c32a2d
	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
Packit c32a2d
	_LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
Packit c32a2d
	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
Packit c32a2d
	# Instead, shared libraries are loaded at an image base (0x10000000 by
Packit c32a2d
	# default) and relocated if they conflict, which is a slow very memory
Packit c32a2d
	# consuming and fragmenting process.  To avoid this, we pick a random,
Packit c32a2d
	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
Packit c32a2d
	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
Packit c32a2d
	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
Packit c32a2d
	_LT_TAGVAR(archive_expsym_cmds, $1)='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
Packit c32a2d
	;;
Packit c32a2d
      irix5* | irix6*)
Packit c32a2d
        case $cc_basename in
Packit c32a2d
          CC*)
Packit c32a2d
	    # SGI C++
Packit c32a2d
	    _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
Packit c32a2d
Packit c32a2d
	    # Archives containing C++ object files must be created using
Packit c32a2d
	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
Packit c32a2d
	    # necessary to make sure instantiated templates are included
Packit c32a2d
	    # in the archive.
Packit c32a2d
	    _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
Packit c32a2d
	    ;;
Packit c32a2d
          *)
Packit c32a2d
	    if test yes = "$GXX"; then
Packit c32a2d
	      if test no = "$with_gnu_ld"; then
Packit c32a2d
	        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
Packit c32a2d
	      else
Packit c32a2d
	        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib'
Packit c32a2d
	      fi
Packit c32a2d
	    fi
Packit c32a2d
	    _LT_TAGVAR(link_all_deplibs, $1)=yes
Packit c32a2d
	    ;;
Packit c32a2d
        esac
Packit c32a2d
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
Packit c32a2d
        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
Packit c32a2d
        _LT_TAGVAR(inherit_rpath, $1)=yes
Packit c32a2d
        ;;
Packit c32a2d
Packit c32a2d
      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
Packit c32a2d
        case $cc_basename in
Packit c32a2d
          KCC*)
Packit c32a2d
	    # Kuck and Associates, Inc. (KAI) C++ Compiler
Packit c32a2d
Packit c32a2d
	    # KCC will only create a shared library if the output file
Packit c32a2d
	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
Packit c32a2d
	    # to its proper name (with version) after linking.
Packit c32a2d
	    _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
Packit c32a2d
	    _LT_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib'
Packit c32a2d
	    # Commands to make compiler produce verbose output that lists
Packit c32a2d
	    # what "hidden" libraries, object files and flags are used when
Packit c32a2d
	    # linking a shared library.
Packit c32a2d
	    #
Packit c32a2d
	    # There doesn't appear to be a way to prevent this compiler from
Packit c32a2d
	    # explicitly linking system object files so we need to strip them
Packit c32a2d
	    # from the output so that they don't get included in the library
Packit c32a2d
	    # dependencies.
Packit c32a2d
	    output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
Packit c32a2d
Packit c32a2d
	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
Packit c32a2d
	    _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
Packit c32a2d
Packit c32a2d
	    # Archives containing C++ object files must be created using
Packit c32a2d
	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
Packit c32a2d
	    _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
Packit c32a2d
	    ;;
Packit c32a2d
	  icpc* | ecpc* )
Packit c32a2d
	    # Intel C++
Packit c32a2d
	    with_gnu_ld=yes
Packit c32a2d
	    # version 8.0 and above of icpc choke on multiply defined symbols
Packit c32a2d
	    # if we add $predep_objects and $postdep_objects, however 7.1 and
Packit c32a2d
	    # earlier do not add the objects themselves.
Packit c32a2d
	    case `$CC -V 2>&1` in
Packit c32a2d
	      *"Version 7."*)
Packit c32a2d
	        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
Packit c32a2d
		_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
Packit c32a2d
		;;
Packit c32a2d
	      *)  # Version 8.0 or newer
Packit c32a2d
	        tmp_idyn=
Packit c32a2d
	        case $host_cpu in
Packit c32a2d
		  ia64*) tmp_idyn=' -i_dynamic';;
Packit c32a2d
		esac
Packit c32a2d
	        _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
Packit c32a2d
		_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
Packit c32a2d
		;;
Packit c32a2d
	    esac
Packit c32a2d
	    _LT_TAGVAR(archive_cmds_need_lc, $1)=no
Packit c32a2d
	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
Packit c32a2d
	    _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
Packit c32a2d
	    _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive'
Packit c32a2d
	    ;;
Packit c32a2d
          pgCC* | pgcpp*)
Packit c32a2d
            # Portland Group C++ compiler
Packit c32a2d
	    case `$CC -V` in
Packit c32a2d
	    *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
Packit c32a2d
	      _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
Packit c32a2d
               rm -rf $tpldir~
Packit c32a2d
               $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
Packit c32a2d
               compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
Packit c32a2d
	      _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
Packit c32a2d
                rm -rf $tpldir~
Packit c32a2d
                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
Packit c32a2d
                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
Packit c32a2d
                $RANLIB $oldlib'
Packit c32a2d
	      _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
Packit c32a2d
                rm -rf $tpldir~
Packit c32a2d
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
Packit c32a2d
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
Packit c32a2d
	      _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
Packit c32a2d
                rm -rf $tpldir~
Packit c32a2d
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
Packit c32a2d
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
Packit c32a2d
	      ;;
Packit c32a2d
	    *) # Version 6 and above use weak symbols
Packit c32a2d
	      _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
Packit c32a2d
	      _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
Packit c32a2d
	      ;;
Packit c32a2d
	    esac
Packit c32a2d
Packit c32a2d
	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl--rpath $wl$libdir'
Packit c32a2d
	    _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
Packit c32a2d
	    _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
Packit c32a2d
            ;;
Packit c32a2d
	  cxx*)
Packit c32a2d
	    # Compaq C++
Packit c32a2d
	    _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
Packit c32a2d
	    _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname  -o $lib $wl-retain-symbols-file $wl$export_symbols'
Packit c32a2d
Packit c32a2d
	    runpath_var=LD_RUN_PATH
Packit c32a2d
	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
Packit c32a2d
	    _LT_TAGVAR(hardcode_libdir_separator, $1)=:
Packit c32a2d
Packit c32a2d
	    # Commands to make compiler produce verbose output that lists
Packit c32a2d
	    # what "hidden" libraries, object files and flags are used when
Packit c32a2d
	    # linking a shared library.
Packit c32a2d
	    #
Packit c32a2d
	    # There doesn't appear to be a way to prevent this compiler from
Packit c32a2d
	    # explicitly linking system object files so we need to strip them
Packit c32a2d
	    # from the output so that they don't get included in the library
Packit c32a2d
	    # dependencies.
Packit c32a2d
	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
Packit c32a2d
	    ;;
Packit c32a2d
	  xl* | mpixl* | bgxl*)
Packit c32a2d
	    # IBM XL 8.0 on PPC, with GNU ld
Packit c32a2d
	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
Packit c32a2d
	    _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
Packit c32a2d
	    _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
Packit c32a2d
	    if test yes = "$supports_anon_versioning"; then
Packit c32a2d
	      _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
Packit c32a2d
                cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
Packit c32a2d
                echo "local: *; };" >> $output_objdir/$libname.ver~
Packit c32a2d
                $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
Packit c32a2d
	    fi
Packit c32a2d
	    ;;
Packit c32a2d
	  *)
Packit c32a2d
	    case `$CC -V 2>&1 | sed 5q` in
Packit c32a2d
	    *Sun\ C*)
Packit c32a2d
	      # Sun C++ 5.9
Packit c32a2d
	      _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
Packit c32a2d
	      _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
Packit c32a2d
	      _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols'
Packit c32a2d
	      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
Packit c32a2d
	      _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
Packit c32a2d
	      _LT_TAGVAR(compiler_needs_object, $1)=yes
Packit c32a2d
Packit c32a2d
	      # Not sure whether something based on
Packit c32a2d
	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
Packit c32a2d
	      # would be better.
Packit c32a2d
	      output_verbose_link_cmd='func_echo_all'
Packit c32a2d
Packit c32a2d
	      # Archives containing C++ object files must be created using
Packit c32a2d
	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
Packit c32a2d
	      # necessary to make sure instantiated templates are included
Packit c32a2d
	      # in the archive.
Packit c32a2d
	      _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
Packit c32a2d
	      ;;
Packit c32a2d
	    esac
Packit c32a2d
	    ;;
Packit c32a2d
	esac
Packit c32a2d
	;;
Packit c32a2d
Packit c32a2d
      lynxos*)
Packit c32a2d
        # FIXME: insert proper C++ library support
Packit c32a2d
	_LT_TAGVAR(ld_shlibs, $1)=no
Packit c32a2d
	;;
Packit c32a2d
Packit c32a2d
      m88k*)
Packit c32a2d
        # FIXME: insert proper C++ library support
Packit c32a2d
        _LT_TAGVAR(ld_shlibs, $1)=no
Packit c32a2d
	;;
Packit c32a2d
Packit c32a2d
      mvs*)
Packit c32a2d
        case $cc_basename in
Packit c32a2d
          cxx*)
Packit c32a2d
	    # FIXME: insert proper C++ library support
Packit c32a2d
	    _LT_TAGVAR(ld_shlibs, $1)=no
Packit c32a2d
	    ;;
Packit c32a2d
	  *)
Packit c32a2d
	    # FIXME: insert proper C++ library support
Packit c32a2d
	    _LT_TAGVAR(ld_shlibs, $1)=no
Packit c32a2d
	    ;;
Packit c32a2d
	esac
Packit c32a2d
	;;
Packit c32a2d
Packit c32a2d
      netbsd*)
Packit c32a2d
        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
Packit c32a2d
	  _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
Packit c32a2d
	  wlarc=
Packit c32a2d
	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
Packit c32a2d
	  _LT_TAGVAR(hardcode_direct, $1)=yes
Packit c32a2d
	  _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
Packit c32a2d
	fi
Packit c32a2d
	# Workaround some broken pre-1.5 toolchains
Packit c32a2d
	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
Packit c32a2d
	;;
Packit c32a2d
Packit c32a2d
      *nto* | *qnx*)
Packit c32a2d
        _LT_TAGVAR(ld_shlibs, $1)=yes
Packit c32a2d
	;;
Packit c32a2d
Packit c32a2d
      openbsd* | bitrig*)
Packit c32a2d
	if test -f /usr/libexec/ld.so; then
Packit c32a2d
	  _LT_TAGVAR(hardcode_direct, $1)=yes
Packit c32a2d
	  _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
Packit c32a2d
	  _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
Packit c32a2d
	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
Packit c32a2d
	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
Packit c32a2d
	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
Packit c32a2d
	    _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
Packit c32a2d
	    _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
Packit c32a2d
	    _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
Packit c32a2d
	  fi
Packit c32a2d
	  output_verbose_link_cmd=func_echo_all
Packit c32a2d
	else
Packit c32a2d
	  _LT_TAGVAR(ld_shlibs, $1)=no
Packit c32a2d
	fi
Packit c32a2d
	;;
Packit c32a2d
Packit c32a2d
      osf3* | osf4* | osf5*)
Packit c32a2d
        case $cc_basename in
Packit c32a2d
          KCC*)
Packit c32a2d
	    # Kuck and Associates, Inc. (KAI) C++ Compiler
Packit c32a2d
Packit c32a2d
	    # KCC will only create a shared library if the output file
Packit c32a2d
	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
Packit c32a2d
	    # to its proper name (with version) after linking.
Packit c32a2d
	    _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
Packit c32a2d
Packit c32a2d
	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
Packit c32a2d
	    _LT_TAGVAR(hardcode_libdir_separator, $1)=:
Packit c32a2d
Packit c32a2d
	    # Archives containing C++ object files must be created using
Packit c32a2d
	    # the KAI C++ compiler.
Packit c32a2d
	    case $host in
Packit c32a2d
	      osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
Packit c32a2d
	      *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
Packit c32a2d
	    esac
Packit c32a2d
	    ;;
Packit c32a2d
          RCC*)
Packit c32a2d
	    # Rational C++ 2.4.1
Packit c32a2d
	    # FIXME: insert proper C++ library support
Packit c32a2d
	    _LT_TAGVAR(ld_shlibs, $1)=no
Packit c32a2d
	    ;;
Packit c32a2d
          cxx*)
Packit c32a2d
	    case $host in
Packit c32a2d
	      osf3*)
Packit c32a2d
	        _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
Packit c32a2d
	        _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
Packit c32a2d
	        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
Packit c32a2d
		;;
Packit c32a2d
	      *)
Packit c32a2d
	        _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
Packit c32a2d
	        _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
Packit c32a2d
	        _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
Packit c32a2d
                  echo "-hidden">> $lib.exp~
Packit c32a2d
                  $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp  `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~
Packit c32a2d
                  $RM $lib.exp'
Packit c32a2d
	        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
Packit c32a2d
		;;
Packit c32a2d
	    esac
Packit c32a2d
Packit c32a2d
	    _LT_TAGVAR(hardcode_libdir_separator, $1)=:
Packit c32a2d
Packit c32a2d
	    # Commands to make compiler produce verbose output that lists
Packit c32a2d
	    # what "hidden" libraries, object files and flags are used when
Packit c32a2d
	    # linking a shared library.
Packit c32a2d
	    #
Packit c32a2d
	    # There doesn't appear to be a way to prevent this compiler from
Packit c32a2d
	    # explicitly linking system object files so we need to strip them
Packit c32a2d
	    # from the output so that they don't get included in the library
Packit c32a2d
	    # dependencies.
Packit c32a2d
	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
Packit c32a2d
	    ;;
Packit c32a2d
	  *)
Packit c32a2d
	    if test yes,no = "$GXX,$with_gnu_ld"; then
Packit c32a2d
	      _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
Packit c32a2d
	      case $host in
Packit c32a2d
	        osf3*)
Packit c32a2d
	          _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
Packit c32a2d
		  ;;
Packit c32a2d
	        *)
Packit c32a2d
	          _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
Packit c32a2d
		  ;;
Packit c32a2d
	      esac
Packit c32a2d
Packit c32a2d
	      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
Packit c32a2d
	      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
Packit c32a2d
Packit c32a2d
	      # Commands to make compiler produce verbose output that lists
Packit c32a2d
	      # what "hidden" libraries, object files and flags are used when
Packit c32a2d
	      # linking a shared library.
Packit c32a2d
	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
Packit c32a2d
Packit c32a2d
	    else
Packit c32a2d
	      # FIXME: insert proper C++ library support
Packit c32a2d
	      _LT_TAGVAR(ld_shlibs, $1)=no
Packit c32a2d
	    fi
Packit c32a2d
	    ;;
Packit c32a2d
        esac
Packit c32a2d
        ;;
Packit c32a2d
Packit c32a2d
      psos*)
Packit c32a2d
        # FIXME: insert proper C++ library support
Packit c32a2d
        _LT_TAGVAR(ld_shlibs, $1)=no
Packit c32a2d
        ;;
Packit c32a2d
Packit c32a2d
      sunos4*)
Packit c32a2d
        case $cc_basename in
Packit c32a2d
          CC*)
Packit c32a2d
	    # Sun C++ 4.x
Packit c32a2d
	    # FIXME: insert proper C++ library support
Packit c32a2d
	    _LT_TAGVAR(ld_shlibs, $1)=no
Packit c32a2d
	    ;;
Packit c32a2d
          lcc*)
Packit c32a2d
	    # Lucid
Packit c32a2d
	    # FIXME: insert proper C++ library support
Packit c32a2d
	    _LT_TAGVAR(ld_shlibs, $1)=no
Packit c32a2d
	    ;;
Packit c32a2d
          *)
Packit c32a2d
	    # FIXME: insert proper C++ library support
Packit c32a2d
	    _LT_TAGVAR(ld_shlibs, $1)=no
Packit c32a2d
	    ;;
Packit c32a2d
        esac
Packit c32a2d
        ;;
Packit c32a2d
Packit c32a2d
      solaris*)
Packit c32a2d
        case $cc_basename in
Packit c32a2d
          CC* | sunCC*)
Packit c32a2d
	    # Sun C++ 4.2, 5.x and Centerline C++
Packit c32a2d
            _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
Packit c32a2d
	    _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
Packit c32a2d
	    _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
Packit c32a2d
	    _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
Packit c32a2d
              $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
Packit c32a2d
Packit c32a2d
	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
Packit c32a2d
	    _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
Packit c32a2d
	    case $host_os in
Packit c32a2d
	      solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
Packit c32a2d
	      *)
Packit c32a2d
		# The compiler driver will combine and reorder linker options,
Packit c32a2d
		# but understands '-z linker_flag'.
Packit c32a2d
	        # Supported since Solaris 2.6 (maybe 2.5.1?)
Packit c32a2d
		_LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
Packit c32a2d
	        ;;
Packit c32a2d
	    esac
Packit c32a2d
	    _LT_TAGVAR(link_all_deplibs, $1)=yes
Packit c32a2d
Packit c32a2d
	    output_verbose_link_cmd='func_echo_all'
Packit c32a2d
Packit c32a2d
	    # Archives containing C++ object files must be created using
Packit c32a2d
	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
Packit c32a2d
	    # necessary to make sure instantiated templates are included
Packit c32a2d
	    # in the archive.
Packit c32a2d
	    _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
Packit c32a2d
	    ;;
Packit c32a2d
          gcx*)
Packit c32a2d
	    # Green Hills C++ Compiler
Packit c32a2d
	    _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
Packit c32a2d
Packit c32a2d
	    # The C++ compiler must be used to create the archive.
Packit c32a2d
	    _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
Packit c32a2d
	    ;;
Packit c32a2d
          *)
Packit c32a2d
	    # GNU C++ compiler with Solaris linker
Packit c32a2d
	    if test yes,no = "$GXX,$with_gnu_ld"; then
Packit c32a2d
	      _LT_TAGVAR(no_undefined_flag, $1)=' $wl-z ${wl}defs'
Packit c32a2d
	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
Packit c32a2d
	        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
Packit c32a2d
	        _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
Packit c32a2d
                  $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
Packit c32a2d
Packit c32a2d
	        # Commands to make compiler produce verbose output that lists
Packit c32a2d
	        # what "hidden" libraries, object files and flags are used when
Packit c32a2d
	        # linking a shared library.
Packit c32a2d
	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
Packit c32a2d
	      else
Packit c32a2d
	        # g++ 2.7 appears to require '-G' NOT '-shared' on this
Packit c32a2d
	        # platform.
Packit c32a2d
	        _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
Packit c32a2d
	        _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
Packit c32a2d
                  $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
Packit c32a2d
Packit c32a2d
	        # Commands to make compiler produce verbose output that lists
Packit c32a2d
	        # what "hidden" libraries, object files and flags are used when
Packit c32a2d
	        # linking a shared library.
Packit c32a2d
	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
Packit c32a2d
	      fi
Packit c32a2d
Packit c32a2d
	      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $wl$libdir'
Packit c32a2d
	      case $host_os in
Packit c32a2d
		solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
Packit c32a2d
		*)
Packit c32a2d
		  _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
Packit c32a2d
		  ;;
Packit c32a2d
	      esac
Packit c32a2d
	    fi
Packit c32a2d
	    ;;
Packit c32a2d
        esac
Packit c32a2d
        ;;
Packit c32a2d
Packit c32a2d
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
Packit c32a2d
      _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
Packit c32a2d
      _LT_TAGVAR(archive_cmds_need_lc, $1)=no
Packit c32a2d
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
Packit c32a2d
      runpath_var='LD_RUN_PATH'
Packit c32a2d
Packit c32a2d
      case $cc_basename in
Packit c32a2d
        CC*)
Packit c32a2d
	  _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Packit c32a2d
	  _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Packit c32a2d
	  ;;
Packit c32a2d
	*)
Packit c32a2d
	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Packit c32a2d
	  _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Packit c32a2d
	  ;;
Packit c32a2d
      esac
Packit c32a2d
      ;;
Packit c32a2d
Packit c32a2d
      sysv5* | sco3.2v5* | sco5v6*)
Packit c32a2d
	# Note: We CANNOT use -z defs as we might desire, because we do not
Packit c32a2d
	# link with -lc, and that would cause any symbols used from libc to
Packit c32a2d
	# always be unresolved, which means just about no library would
Packit c32a2d
	# ever link correctly.  If we're not using GNU ld we use -z text
Packit c32a2d
	# though, which does catch some bad symbols but isn't as heavy-handed
Packit c32a2d
	# as -z defs.
Packit c32a2d
	_LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
Packit c32a2d
	_LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs'
Packit c32a2d
	_LT_TAGVAR(archive_cmds_need_lc, $1)=no
Packit c32a2d
	_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
Packit c32a2d
	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir'
Packit c32a2d
	_LT_TAGVAR(hardcode_libdir_separator, $1)=':'
Packit c32a2d
	_LT_TAGVAR(link_all_deplibs, $1)=yes
Packit c32a2d
	_LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport'
Packit c32a2d
	runpath_var='LD_RUN_PATH'
Packit c32a2d
Packit c32a2d
	case $cc_basename in
Packit c32a2d
          CC*)
Packit c32a2d
	    _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Packit c32a2d
	    _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Packit c32a2d
	    _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~
Packit c32a2d
              '"$_LT_TAGVAR(old_archive_cmds, $1)"
Packit c32a2d
	    _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
Packit c32a2d
              '"$_LT_TAGVAR(reload_cmds, $1)"
Packit c32a2d
	    ;;
Packit c32a2d
	  *)
Packit c32a2d
	    _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Packit c32a2d
	    _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Packit c32a2d
	    ;;
Packit c32a2d
	esac
Packit c32a2d
      ;;
Packit c32a2d
Packit c32a2d
      tandem*)
Packit c32a2d
        case $cc_basename in
Packit c32a2d
          NCC*)
Packit c32a2d
	    # NonStop-UX NCC 3.20
Packit c32a2d
	    # FIXME: insert proper C++ library support
Packit c32a2d
	    _LT_TAGVAR(ld_shlibs, $1)=no
Packit c32a2d
	    ;;
Packit c32a2d
          *)
Packit c32a2d
	    # FIXME: insert proper C++ library support
Packit c32a2d
	    _LT_TAGVAR(ld_shlibs, $1)=no
Packit c32a2d
	    ;;
Packit c32a2d
        esac
Packit c32a2d
        ;;
Packit c32a2d
Packit c32a2d
      vxworks*)
Packit c32a2d
        # FIXME: insert proper C++ library support
Packit c32a2d
        _LT_TAGVAR(ld_shlibs, $1)=no
Packit c32a2d
        ;;
Packit c32a2d
Packit c32a2d
      *)
Packit c32a2d
        # FIXME: insert proper C++ library support
Packit c32a2d
        _LT_TAGVAR(ld_shlibs, $1)=no
Packit c32a2d
        ;;
Packit c32a2d
    esac
Packit c32a2d
Packit c32a2d
    AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
Packit c32a2d
    test no = "$_LT_TAGVAR(ld_shlibs, $1)" && can_build_shared=no
Packit c32a2d
Packit c32a2d
    _LT_TAGVAR(GCC, $1)=$GXX
Packit c32a2d
    _LT_TAGVAR(LD, $1)=$LD
Packit c32a2d
Packit c32a2d
    ## CAVEAT EMPTOR:
Packit c32a2d
    ## There is no encapsulation within the following macros, do not change
Packit c32a2d
    ## the running order or otherwise move them around unless you know exactly
Packit c32a2d
    ## what you are doing...
Packit c32a2d
    _LT_SYS_HIDDEN_LIBDEPS($1)
Packit c32a2d
    _LT_COMPILER_PIC($1)
Packit c32a2d
    _LT_COMPILER_C_O($1)
Packit c32a2d
    _LT_COMPILER_FILE_LOCKS($1)
Packit c32a2d
    _LT_LINKER_SHLIBS($1)
Packit c32a2d
    _LT_SYS_DYNAMIC_LINKER($1)
Packit c32a2d
    _LT_LINKER_HARDCODE_LIBPATH($1)
Packit c32a2d
Packit c32a2d
    _LT_CONFIG($1)
Packit c32a2d
  fi # test -n "$compiler"
Packit c32a2d
Packit c32a2d
  CC=$lt_save_CC
Packit c32a2d
  CFLAGS=$lt_save_CFLAGS
Packit c32a2d
  LDCXX=$LD
Packit c32a2d
  LD=$lt_save_LD
Packit c32a2d
  GCC=$lt_save_GCC
Packit c32a2d
  with_gnu_ld=$lt_save_with_gnu_ld
Packit c32a2d
  lt_cv_path_LDCXX=$lt_cv_path_LD
Packit c32a2d
  lt_cv_path_LD=$lt_save_path_LD
Packit c32a2d
  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
Packit c32a2d
  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
Packit c32a2d
fi # test yes != "$_lt_caught_CXX_error"
Packit c32a2d
Packit c32a2d
AC_LANG_POP
Packit c32a2d
])# _LT_LANG_CXX_CONFIG
Packit c32a2d
Packit c32a2d
Packit c32a2d
# _LT_FUNC_STRIPNAME_CNF
Packit c32a2d
# ----------------------
Packit c32a2d
# func_stripname_cnf prefix suffix name
Packit c32a2d
# strip PREFIX and SUFFIX off of NAME.
Packit c32a2d
# PREFIX and SUFFIX must not contain globbing or regex special
Packit c32a2d
# characters, hashes, percent signs, but SUFFIX may contain a leading
Packit c32a2d
# dot (in which case that matches only a dot).
Packit c32a2d
#
Packit c32a2d
# This function is identical to the (non-XSI) version of func_stripname,
Packit c32a2d
# except this one can be used by m4 code that may be executed by configure,
Packit c32a2d
# rather than the libtool script.
Packit c32a2d
m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl
Packit c32a2d
AC_REQUIRE([_LT_DECL_SED])
Packit c32a2d
AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])
Packit c32a2d
func_stripname_cnf ()
Packit c32a2d
{
Packit c32a2d
  case @S|@2 in
Packit c32a2d
  .*) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%\\\\@S|@2\$%%"`;;
Packit c32a2d
  *)  func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%@S|@2\$%%"`;;
Packit c32a2d
  esac
Packit c32a2d
} # func_stripname_cnf
Packit c32a2d
])# _LT_FUNC_STRIPNAME_CNF
Packit c32a2d
Packit c32a2d
Packit c32a2d
# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
Packit c32a2d
# ---------------------------------
Packit c32a2d
# Figure out "hidden" library dependencies from verbose
Packit c32a2d
# compiler output when linking a shared library.
Packit c32a2d
# Parse the compiler output and extract the necessary
Packit c32a2d
# objects, libraries and library flags.
Packit c32a2d
m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
Packit c32a2d
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
Packit c32a2d
AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl
Packit c32a2d
# Dependencies to place before and after the object being linked:
Packit c32a2d
_LT_TAGVAR(predep_objects, $1)=
Packit c32a2d
_LT_TAGVAR(postdep_objects, $1)=
Packit c32a2d
_LT_TAGVAR(predeps, $1)=
Packit c32a2d
_LT_TAGVAR(postdeps, $1)=
Packit c32a2d
_LT_TAGVAR(compiler_lib_search_path, $1)=
Packit c32a2d
Packit c32a2d
dnl we can't use the lt_simple_compile_test_code here,
Packit c32a2d
dnl because it contains code intended for an executable,
Packit c32a2d
dnl not a library.  It's possible we should let each
Packit c32a2d
dnl tag define a new lt_????_link_test_code variable,
Packit c32a2d
dnl but it's only used here...
Packit c32a2d
m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
Packit c32a2d
int a;
Packit c32a2d
void foo (void) { a = 0; }
Packit c32a2d
_LT_EOF
Packit c32a2d
], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
Packit c32a2d
class Foo
Packit c32a2d
{
Packit c32a2d
public:
Packit c32a2d
  Foo (void) { a = 0; }
Packit c32a2d
private:
Packit c32a2d
  int a;
Packit c32a2d
};
Packit c32a2d
_LT_EOF
Packit c32a2d
], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
Packit c32a2d
      subroutine foo
Packit c32a2d
      implicit none
Packit c32a2d
      integer*4 a
Packit c32a2d
      a=0
Packit c32a2d
      return
Packit c32a2d
      end
Packit c32a2d
_LT_EOF
Packit c32a2d
], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
Packit c32a2d
      subroutine foo
Packit c32a2d
      implicit none
Packit c32a2d
      integer a
Packit c32a2d
      a=0
Packit c32a2d
      return
Packit c32a2d
      end
Packit c32a2d
_LT_EOF
Packit c32a2d
], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
Packit c32a2d
public class foo {
Packit c32a2d
  private int a;
Packit c32a2d
  public void bar (void) {
Packit c32a2d
    a = 0;
Packit c32a2d
  }
Packit c32a2d
};
Packit c32a2d
_LT_EOF
Packit c32a2d
], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF
Packit c32a2d
package foo
Packit c32a2d
func foo() {
Packit c32a2d
}
Packit c32a2d
_LT_EOF
Packit c32a2d
])
Packit c32a2d
Packit c32a2d
_lt_libdeps_save_CFLAGS=$CFLAGS
Packit c32a2d
case "$CC $CFLAGS " in #(
Packit c32a2d
*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
Packit c32a2d
*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
Packit c32a2d
*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
Packit c32a2d
esac
Packit c32a2d
Packit c32a2d
dnl Parse the compiler output and extract the necessary
Packit c32a2d
dnl objects, libraries and library flags.
Packit c32a2d
if AC_TRY_EVAL(ac_compile); then
Packit c32a2d
  # Parse the compiler output and extract the necessary
Packit c32a2d
  # objects, libraries and library flags.
Packit c32a2d
Packit c32a2d
  # Sentinel used to keep track of whether or not we are before
Packit c32a2d
  # the conftest object file.
Packit c32a2d
  pre_test_object_deps_done=no
Packit c32a2d
Packit c32a2d
  for p in `eval "$output_verbose_link_cmd"`; do
Packit c32a2d
    case $prev$p in
Packit c32a2d
Packit c32a2d
    -L* | -R* | -l*)
Packit c32a2d
       # Some compilers place space between "-{L,R}" and the path.
Packit c32a2d
       # Remove the space.
Packit c32a2d
       if test x-L = "$p" ||
Packit c32a2d
          test x-R = "$p"; then
Packit c32a2d
	 prev=$p
Packit c32a2d
	 continue
Packit c32a2d
       fi
Packit c32a2d
Packit c32a2d
       # Expand the sysroot to ease extracting the directories later.
Packit c32a2d
       if test -z "$prev"; then
Packit c32a2d
         case $p in
Packit c32a2d
         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
Packit c32a2d
         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
Packit c32a2d
         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
Packit c32a2d
         esac
Packit c32a2d
       fi
Packit c32a2d
       case $p in
Packit c32a2d
       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
Packit c32a2d
       esac
Packit c32a2d
       if test no = "$pre_test_object_deps_done"; then
Packit c32a2d
	 case $prev in
Packit c32a2d
	 -L | -R)
Packit c32a2d
	   # Internal compiler library paths should come after those
Packit c32a2d
	   # provided the user.  The postdeps already come after the
Packit c32a2d
	   # user supplied libs so there is no need to process them.
Packit c32a2d
	   if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
Packit c32a2d
	     _LT_TAGVAR(compiler_lib_search_path, $1)=$prev$p
Packit c32a2d
	   else
Packit c32a2d
	     _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} $prev$p"
Packit c32a2d
	   fi
Packit c32a2d
	   ;;
Packit c32a2d
	 # The "-l" case would never come before the object being
Packit c32a2d
	 # linked, so don't bother handling this case.
Packit c32a2d
	 esac
Packit c32a2d
       else
Packit c32a2d
	 if test -z "$_LT_TAGVAR(postdeps, $1)"; then
Packit c32a2d
	   _LT_TAGVAR(postdeps, $1)=$prev$p
Packit c32a2d
	 else
Packit c32a2d
	   _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} $prev$p"
Packit c32a2d
	 fi
Packit c32a2d
       fi
Packit c32a2d
       prev=
Packit c32a2d
       ;;
Packit c32a2d
Packit c32a2d
    *.lto.$objext) ;; # Ignore GCC LTO objects
Packit c32a2d
    *.$objext)
Packit c32a2d
       # This assumes that the test object file only shows up
Packit c32a2d
       # once in the compiler output.
Packit c32a2d
       if test "$p" = "conftest.$objext"; then
Packit c32a2d
	 pre_test_object_deps_done=yes
Packit c32a2d
	 continue
Packit c32a2d
       fi
Packit c32a2d
Packit c32a2d
       if test no = "$pre_test_object_deps_done"; then
Packit c32a2d
	 if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
Packit c32a2d
	   _LT_TAGVAR(predep_objects, $1)=$p
Packit c32a2d
	 else
Packit c32a2d
	   _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
Packit c32a2d
	 fi
Packit c32a2d
       else
Packit c32a2d
	 if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
Packit c32a2d
	   _LT_TAGVAR(postdep_objects, $1)=$p
Packit c32a2d
	 else
Packit c32a2d
	   _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
Packit c32a2d
	 fi
Packit c32a2d
       fi
Packit c32a2d
       ;;
Packit c32a2d
Packit c32a2d
    *) ;; # Ignore the rest.
Packit c32a2d
Packit c32a2d
    esac
Packit c32a2d
  done
Packit c32a2d
Packit c32a2d
  # Clean up.
Packit c32a2d
  rm -f a.out a.exe
Packit c32a2d
else
Packit c32a2d
  echo "libtool.m4: error: problem compiling $1 test program"
Packit c32a2d
fi
Packit c32a2d
Packit c32a2d
$RM -f confest.$objext
Packit c32a2d
CFLAGS=$_lt_libdeps_save_CFLAGS
Packit c32a2d
Packit c32a2d
# PORTME: override above test on systems where it is broken
Packit c32a2d
m4_if([$1], [CXX],
Packit c32a2d
[case $host_os in
Packit c32a2d
interix[[3-9]]*)
Packit c32a2d
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
Packit c32a2d
  # hack all around it, let's just trust "g++" to DTRT.
Packit c32a2d
  _LT_TAGVAR(predep_objects,$1)=
Packit c32a2d
  _LT_TAGVAR(postdep_objects,$1)=
Packit c32a2d
  _LT_TAGVAR(postdeps,$1)=
Packit c32a2d
  ;;
Packit c32a2d
esac
Packit c32a2d
])
Packit c32a2d
Packit c32a2d
case " $_LT_TAGVAR(postdeps, $1) " in
Packit c32a2d
*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
Packit c32a2d
esac
Packit c32a2d
 _LT_TAGVAR(compiler_lib_search_dirs, $1)=
Packit c32a2d
if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
Packit c32a2d
 _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | $SED -e 's! -L! !g' -e 's!^ !!'`
Packit c32a2d
fi
Packit c32a2d
_LT_TAGDECL([], [compiler_lib_search_dirs], [1],
Packit c32a2d
    [The directories searched by this compiler when creating a shared library])
Packit c32a2d
_LT_TAGDECL([], [predep_objects], [1],
Packit c32a2d
    [Dependencies to place before and after the objects being linked to
Packit c32a2d
    create a shared library])
Packit c32a2d
_LT_TAGDECL([], [postdep_objects], [1])
Packit c32a2d
_LT_TAGDECL([], [predeps], [1])
Packit c32a2d
_LT_TAGDECL([], [postdeps], [1])
Packit c32a2d
_LT_TAGDECL([], [compiler_lib_search_path], [1],
Packit c32a2d
    [The library search path used internally by the compiler when linking
Packit c32a2d
    a shared library])
Packit c32a2d
])# _LT_SYS_HIDDEN_LIBDEPS
Packit c32a2d
Packit c32a2d
Packit c32a2d
# _LT_LANG_F77_CONFIG([TAG])
Packit c32a2d
# --------------------------
Packit c32a2d
# Ensure that the configuration variables for a Fortran 77 compiler are
Packit c32a2d
# suitably defined.  These variables are subsequently used by _LT_CONFIG
Packit c32a2d
# to write the compiler configuration to 'libtool'.
Packit c32a2d
m4_defun([_LT_LANG_F77_CONFIG],
Packit c32a2d
[AC_LANG_PUSH(Fortran 77)
Packit c32a2d
if test -z "$F77" || test no = "$F77"; then
Packit c32a2d
  _lt_disable_F77=yes
Packit c32a2d
fi
Packit c32a2d
Packit c32a2d
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
Packit c32a2d
_LT_TAGVAR(allow_undefined_flag, $1)=
Packit c32a2d
_LT_TAGVAR(always_export_symbols, $1)=no
Packit c32a2d
_LT_TAGVAR(archive_expsym_cmds, $1)=
Packit c32a2d
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
Packit c32a2d
_LT_TAGVAR(hardcode_direct, $1)=no
Packit c32a2d
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
Packit c32a2d
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
Packit c32a2d
_LT_TAGVAR(hardcode_libdir_separator, $1)=
Packit c32a2d
_LT_TAGVAR(hardcode_minus_L, $1)=no
Packit c32a2d
_LT_TAGVAR(hardcode_automatic, $1)=no
Packit c32a2d
_LT_TAGVAR(inherit_rpath, $1)=no
Packit c32a2d
_LT_TAGVAR(module_cmds, $1)=
Packit c32a2d
_LT_TAGVAR(module_expsym_cmds, $1)=
Packit c32a2d
_LT_TAGVAR(link_all_deplibs, $1)=unknown
Packit c32a2d
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
Packit c32a2d
_LT_TAGVAR(reload_flag, $1)=$reload_flag
Packit c32a2d
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
Packit c32a2d
_LT_TAGVAR(no_undefined_flag, $1)=
Packit c32a2d
_LT_TAGVAR(whole_archive_flag_spec, $1)=
Packit c32a2d
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
Packit c32a2d
Packit c32a2d
# Source file extension for f77 test sources.
Packit c32a2d
ac_ext=f
Packit c32a2d
Packit c32a2d
# Object file extension for compiled f77 test sources.
Packit c32a2d
objext=o
Packit c32a2d
_LT_TAGVAR(objext, $1)=$objext
Packit c32a2d
Packit c32a2d
# No sense in running all these tests if we already determined that
Packit c32a2d
# the F77 compiler isn't working.  Some variables (like enable_shared)
Packit c32a2d
# are currently assumed to apply to all compilers on this platform,
Packit c32a2d
# and will be corrupted by setting them based on a non-working compiler.
Packit c32a2d
if test yes != "$_lt_disable_F77"; then
Packit c32a2d
  # Code to be used in simple compile tests
Packit c32a2d
  lt_simple_compile_test_code="\
Packit c32a2d
      subroutine t
Packit c32a2d
      return
Packit c32a2d
      end
Packit c32a2d
"
Packit c32a2d
Packit c32a2d
  # Code to be used in simple link tests
Packit c32a2d
  lt_simple_link_test_code="\
Packit c32a2d
      program t
Packit c32a2d
      end
Packit c32a2d
"
Packit c32a2d
Packit c32a2d
  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
Packit c32a2d
  _LT_TAG_COMPILER
Packit c32a2d
Packit c32a2d
  # save warnings/boilerplate of simple test code
Packit c32a2d
  _LT_COMPILER_BOILERPLATE
Packit c32a2d
  _LT_LINKER_BOILERPLATE
Packit c32a2d
Packit c32a2d
  # Allow CC to be a program name with arguments.
Packit c32a2d
  lt_save_CC=$CC
Packit c32a2d
  lt_save_GCC=$GCC
Packit c32a2d
  lt_save_CFLAGS=$CFLAGS
Packit c32a2d
  CC=${F77-"f77"}
Packit c32a2d
  CFLAGS=$FFLAGS
Packit c32a2d
  compiler=$CC
Packit c32a2d
  _LT_TAGVAR(compiler, $1)=$CC
Packit c32a2d
  _LT_CC_BASENAME([$compiler])
Packit c32a2d
  GCC=$G77
Packit c32a2d
  if test -n "$compiler"; then
Packit c32a2d
    AC_MSG_CHECKING([if libtool supports shared libraries])
Packit c32a2d
    AC_MSG_RESULT([$can_build_shared])
Packit c32a2d
Packit c32a2d
    AC_MSG_CHECKING([whether to build shared libraries])
Packit c32a2d
    test no = "$can_build_shared" && enable_shared=no
Packit c32a2d
Packit c32a2d
    # On AIX, shared libraries and static libraries use the same namespace, and
Packit c32a2d
    # are all built from PIC.
Packit c32a2d
    case $host_os in
Packit c32a2d
      aix3*)
Packit c32a2d
        test yes = "$enable_shared" && enable_static=no
Packit c32a2d
        if test -n "$RANLIB"; then
Packit c32a2d
          archive_cmds="$archive_cmds~\$RANLIB \$lib"
Packit c32a2d
          postinstall_cmds='$RANLIB $lib'
Packit c32a2d
        fi
Packit c32a2d
        ;;
Packit c32a2d
      aix[[4-9]]*)
Packit c32a2d
	if test ia64 != "$host_cpu"; then
Packit c32a2d
	  case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
Packit c32a2d
	  yes,aix,yes) ;;		# shared object as lib.so file only
Packit c32a2d
	  yes,svr4,*) ;;		# shared object as lib.so archive member only
Packit c32a2d
	  yes,*) enable_static=no ;;	# shared object in lib.a archive as well
Packit c32a2d
	  esac
Packit c32a2d
	fi
Packit c32a2d
        ;;
Packit c32a2d
    esac
Packit c32a2d
    AC_MSG_RESULT([$enable_shared])
Packit c32a2d
Packit c32a2d
    AC_MSG_CHECKING([whether to build static libraries])
Packit c32a2d
    # Make sure either enable_shared or enable_static is yes.
Packit c32a2d
    test yes = "$enable_shared" || enable_static=yes
Packit c32a2d
    AC_MSG_RESULT([$enable_static])
Packit c32a2d
Packit c32a2d
    _LT_TAGVAR(GCC, $1)=$G77
Packit c32a2d
    _LT_TAGVAR(LD, $1)=$LD
Packit c32a2d
Packit c32a2d
    ## CAVEAT EMPTOR:
Packit c32a2d
    ## There is no encapsulation within the following macros, do not change
Packit c32a2d
    ## the running order or otherwise move them around unless you know exactly
Packit c32a2d
    ## what you are doing...
Packit c32a2d
    _LT_COMPILER_PIC($1)
Packit c32a2d
    _LT_COMPILER_C_O($1)
Packit c32a2d
    _LT_COMPILER_FILE_LOCKS($1)
Packit c32a2d
    _LT_LINKER_SHLIBS($1)
Packit c32a2d
    _LT_SYS_DYNAMIC_LINKER($1)
Packit c32a2d
    _LT_LINKER_HARDCODE_LIBPATH($1)
Packit c32a2d
Packit c32a2d
    _LT_CONFIG($1)
Packit c32a2d
  fi # test -n "$compiler"
Packit c32a2d
Packit c32a2d
  GCC=$lt_save_GCC
Packit c32a2d
  CC=$lt_save_CC
Packit c32a2d
  CFLAGS=$lt_save_CFLAGS
Packit c32a2d
fi # test yes != "$_lt_disable_F77"
Packit c32a2d
Packit c32a2d
AC_LANG_POP
Packit c32a2d
])# _LT_LANG_F77_CONFIG
Packit c32a2d
Packit c32a2d
Packit c32a2d
# _LT_LANG_FC_CONFIG([TAG])
Packit c32a2d
# -------------------------
Packit c32a2d
# Ensure that the configuration variables for a Fortran compiler are
Packit c32a2d
# suitably defined.  These variables are subsequently used by _LT_CONFIG
Packit c32a2d
# to write the compiler configuration to 'libtool'.
Packit c32a2d
m4_defun([_LT_LANG_FC_CONFIG],
Packit c32a2d
[AC_LANG_PUSH(Fortran)
Packit c32a2d
Packit c32a2d
if test -z "$FC" || test no = "$FC"; then
Packit c32a2d
  _lt_disable_FC=yes
Packit c32a2d
fi
Packit c32a2d
Packit c32a2d
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
Packit c32a2d
_LT_TAGVAR(allow_undefined_flag, $1)=
Packit c32a2d
_LT_TAGVAR(always_export_symbols, $1)=no
Packit c32a2d
_LT_TAGVAR(archive_expsym_cmds, $1)=
Packit c32a2d
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
Packit c32a2d
_LT_TAGVAR(hardcode_direct, $1)=no
Packit c32a2d
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
Packit c32a2d
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
Packit c32a2d
_LT_TAGVAR(hardcode_libdir_separator, $1)=
Packit c32a2d
_LT_TAGVAR(hardcode_minus_L, $1)=no
Packit c32a2d
_LT_TAGVAR(hardcode_automatic, $1)=no
Packit c32a2d
_LT_TAGVAR(inherit_rpath, $1)=no
Packit c32a2d
_LT_TAGVAR(module_cmds, $1)=
Packit c32a2d
_LT_TAGVAR(module_expsym_cmds, $1)=
Packit c32a2d
_LT_TAGVAR(link_all_deplibs, $1)=unknown
Packit c32a2d
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
Packit c32a2d
_LT_TAGVAR(reload_flag, $1)=$reload_flag
Packit c32a2d
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
Packit c32a2d
_LT_TAGVAR(no_undefined_flag, $1)=
Packit c32a2d
_LT_TAGVAR(whole_archive_flag_spec, $1)=
Packit c32a2d
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
Packit c32a2d
Packit c32a2d
# Source file extension for fc test sources.
Packit c32a2d
ac_ext=${ac_fc_srcext-f}
Packit c32a2d
Packit c32a2d
# Object file extension for compiled fc test sources.
Packit c32a2d
objext=o
Packit c32a2d
_LT_TAGVAR(objext, $1)=$objext
Packit c32a2d
Packit c32a2d
# No sense in running all these tests if we already determined that
Packit c32a2d
# the FC compiler isn't working.  Some variables (like enable_shared)
Packit c32a2d
# are currently assumed to apply to all compilers on this platform,
Packit c32a2d
# and will be corrupted by setting them based on a non-working compiler.
Packit c32a2d
if test yes != "$_lt_disable_FC"; then
Packit c32a2d
  # Code to be used in simple compile tests
Packit c32a2d
  lt_simple_compile_test_code="\
Packit c32a2d
      subroutine t
Packit c32a2d
      return
Packit c32a2d
      end
Packit c32a2d
"
Packit c32a2d
Packit c32a2d
  # Code to be used in simple link tests
Packit c32a2d
  lt_simple_link_test_code="\
Packit c32a2d
      program t
Packit c32a2d
      end
Packit c32a2d
"
Packit c32a2d
Packit c32a2d
  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
Packit c32a2d
  _LT_TAG_COMPILER
Packit c32a2d
Packit c32a2d
  # save warnings/boilerplate of simple test code
Packit c32a2d
  _LT_COMPILER_BOILERPLATE
Packit c32a2d
  _LT_LINKER_BOILERPLATE
Packit c32a2d
Packit c32a2d
  # Allow CC to be a program name with arguments.
Packit c32a2d
  lt_save_CC=$CC
Packit c32a2d
  lt_save_GCC=$GCC
Packit c32a2d
  lt_save_CFLAGS=$CFLAGS
Packit c32a2d
  CC=${FC-"f95"}
Packit c32a2d
  CFLAGS=$FCFLAGS
Packit c32a2d
  compiler=$CC
Packit c32a2d
  GCC=$ac_cv_fc_compiler_gnu
Packit c32a2d
Packit c32a2d
  _LT_TAGVAR(compiler, $1)=$CC
Packit c32a2d
  _LT_CC_BASENAME([$compiler])
Packit c32a2d
Packit c32a2d
  if test -n "$compiler"; then
Packit c32a2d
    AC_MSG_CHECKING([if libtool supports shared libraries])
Packit c32a2d
    AC_MSG_RESULT([$can_build_shared])
Packit c32a2d
Packit c32a2d
    AC_MSG_CHECKING([whether to build shared libraries])
Packit c32a2d
    test no = "$can_build_shared" && enable_shared=no
Packit c32a2d
Packit c32a2d
    # On AIX, shared libraries and static libraries use the same namespace, and
Packit c32a2d
    # are all built from PIC.
Packit c32a2d
    case $host_os in
Packit c32a2d
      aix3*)
Packit c32a2d
        test yes = "$enable_shared" && enable_static=no
Packit c32a2d
        if test -n "$RANLIB"; then
Packit c32a2d
          archive_cmds="$archive_cmds~\$RANLIB \$lib"
Packit c32a2d
          postinstall_cmds='$RANLIB $lib'
Packit c32a2d
        fi
Packit c32a2d
        ;;
Packit c32a2d
      aix[[4-9]]*)
Packit c32a2d
	if test ia64 != "$host_cpu"; then
Packit c32a2d
	  case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
Packit c32a2d
	  yes,aix,yes) ;;		# shared object as lib.so file only
Packit c32a2d
	  yes,svr4,*) ;;		# shared object as lib.so archive member only
Packit c32a2d
	  yes,*) enable_static=no ;;	# shared object in lib.a archive as well
Packit c32a2d
	  esac
Packit c32a2d
	fi
Packit c32a2d
        ;;
Packit c32a2d
    esac
Packit c32a2d
    AC_MSG_RESULT([$enable_shared])
Packit c32a2d
Packit c32a2d
    AC_MSG_CHECKING([whether to build static libraries])
Packit c32a2d
    # Make sure either enable_shared or enable_static is yes.
Packit c32a2d
    test yes = "$enable_shared" || enable_static=yes
Packit c32a2d
    AC_MSG_RESULT([$enable_static])
Packit c32a2d
Packit c32a2d
    _LT_TAGVAR(GCC, $1)=$ac_cv_fc_compiler_gnu
Packit c32a2d
    _LT_TAGVAR(LD, $1)=$LD
Packit c32a2d
Packit c32a2d
    ## CAVEAT EMPTOR:
Packit c32a2d
    ## There is no encapsulation within the following macros, do not change
Packit c32a2d
    ## the running order or otherwise move them around unless you know exactly
Packit c32a2d
    ## what you are doing...
Packit c32a2d
    _LT_SYS_HIDDEN_LIBDEPS($1)
Packit c32a2d
    _LT_COMPILER_PIC($1)
Packit c32a2d
    _LT_COMPILER_C_O($1)
Packit c32a2d
    _LT_COMPILER_FILE_LOCKS($1)
Packit c32a2d
    _LT_LINKER_SHLIBS($1)
Packit c32a2d
    _LT_SYS_DYNAMIC_LINKER($1)
Packit c32a2d
    _LT_LINKER_HARDCODE_LIBPATH($1)
Packit c32a2d
Packit c32a2d
    _LT_CONFIG($1)
Packit c32a2d
  fi # test -n "$compiler"
Packit c32a2d
Packit c32a2d
  GCC=$lt_save_GCC
Packit c32a2d
  CC=$lt_save_CC
Packit c32a2d
  CFLAGS=$lt_save_CFLAGS
Packit c32a2d
fi # test yes != "$_lt_disable_FC"
Packit c32a2d
Packit c32a2d
AC_LANG_POP
Packit c32a2d
])# _LT_LANG_FC_CONFIG
Packit c32a2d
Packit c32a2d
Packit c32a2d
# _LT_LANG_GCJ_CONFIG([TAG])
Packit c32a2d
# --------------------------
Packit c32a2d
# Ensure that the configuration variables for the GNU Java Compiler compiler
Packit c32a2d
# are suitably defined.  These variables are subsequently used by _LT_CONFIG
Packit c32a2d
# to write the compiler configuration to 'libtool'.
Packit c32a2d
m4_defun([_LT_LANG_GCJ_CONFIG],
Packit c32a2d
[AC_REQUIRE([LT_PROG_GCJ])dnl
Packit c32a2d
AC_LANG_SAVE
Packit c32a2d
Packit c32a2d
# Source file extension for Java test sources.
Packit c32a2d
ac_ext=java
Packit c32a2d
Packit c32a2d
# Object file extension for compiled Java test sources.
Packit c32a2d
objext=o
Packit c32a2d
_LT_TAGVAR(objext, $1)=$objext
Packit c32a2d
Packit c32a2d
# Code to be used in simple compile tests
Packit c32a2d
lt_simple_compile_test_code="class foo {}"
Packit c32a2d
Packit c32a2d
# Code to be used in simple link tests
Packit c32a2d
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
Packit c32a2d
Packit c32a2d
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
Packit c32a2d
_LT_TAG_COMPILER
Packit c32a2d
Packit c32a2d
# save warnings/boilerplate of simple test code
Packit c32a2d
_LT_COMPILER_BOILERPLATE
Packit c32a2d
_LT_LINKER_BOILERPLATE
Packit c32a2d
Packit c32a2d
# Allow CC to be a program name with arguments.
Packit c32a2d
lt_save_CC=$CC
Packit c32a2d
lt_save_CFLAGS=$CFLAGS
Packit c32a2d
lt_save_GCC=$GCC
Packit c32a2d
GCC=yes
Packit c32a2d
CC=${GCJ-"gcj"}
Packit c32a2d
CFLAGS=$GCJFLAGS
Packit c32a2d
compiler=$CC
Packit c32a2d
_LT_TAGVAR(compiler, $1)=$CC
Packit c32a2d
_LT_TAGVAR(LD, $1)=$LD
Packit c32a2d
_LT_CC_BASENAME([$compiler])
Packit c32a2d
Packit c32a2d
# GCJ did not exist at the time GCC didn't implicitly link libc in.
Packit c32a2d
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
Packit c32a2d
Packit c32a2d
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
Packit c32a2d
_LT_TAGVAR(reload_flag, $1)=$reload_flag
Packit c32a2d
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
Packit c32a2d
Packit c32a2d
## CAVEAT EMPTOR:
Packit c32a2d
## There is no encapsulation within the following macros, do not change
Packit c32a2d
## the running order or otherwise move them around unless you know exactly
Packit c32a2d
## what you are doing...
Packit c32a2d
if test -n "$compiler"; then
Packit c32a2d
  _LT_COMPILER_NO_RTTI($1)
Packit c32a2d
  _LT_COMPILER_PIC($1)
Packit c32a2d
  _LT_COMPILER_C_O($1)
Packit c32a2d
  _LT_COMPILER_FILE_LOCKS($1)
Packit c32a2d
  _LT_LINKER_SHLIBS($1)
Packit c32a2d
  _LT_LINKER_HARDCODE_LIBPATH($1)
Packit c32a2d
Packit c32a2d
  _LT_CONFIG($1)
Packit c32a2d
fi
Packit c32a2d
Packit c32a2d
AC_LANG_RESTORE
Packit c32a2d
Packit c32a2d
GCC=$lt_save_GCC
Packit c32a2d
CC=$lt_save_CC
Packit c32a2d
CFLAGS=$lt_save_CFLAGS
Packit c32a2d
])# _LT_LANG_GCJ_CONFIG
Packit c32a2d
Packit c32a2d
Packit c32a2d
# _LT_LANG_GO_CONFIG([TAG])
Packit c32a2d
# --------------------------
Packit c32a2d
# Ensure that the configuration variables for the GNU Go compiler
Packit c32a2d
# are suitably defined.  These variables are subsequently used by _LT_CONFIG
Packit c32a2d
# to write the compiler configuration to 'libtool'.
Packit c32a2d
m4_defun([_LT_LANG_GO_CONFIG],
Packit c32a2d
[AC_REQUIRE([LT_PROG_GO])dnl
Packit c32a2d
AC_LANG_SAVE
Packit c32a2d
Packit c32a2d
# Source file extension for Go test sources.
Packit c32a2d
ac_ext=go
Packit c32a2d
Packit c32a2d
# Object file extension for compiled Go test sources.
Packit c32a2d
objext=o
Packit c32a2d
_LT_TAGVAR(objext, $1)=$objext
Packit c32a2d
Packit c32a2d
# Code to be used in simple compile tests
Packit c32a2d
lt_simple_compile_test_code="package main; func main() { }"
Packit c32a2d
Packit c32a2d
# Code to be used in simple link tests
Packit c32a2d
lt_simple_link_test_code='package main; func main() { }'
Packit c32a2d
Packit c32a2d
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
Packit c32a2d
_LT_TAG_COMPILER
Packit c32a2d
Packit c32a2d
# save warnings/boilerplate of simple test code
Packit c32a2d
_LT_COMPILER_BOILERPLATE
Packit c32a2d
_LT_LINKER_BOILERPLATE
Packit c32a2d
Packit c32a2d
# Allow CC to be a program name with arguments.
Packit c32a2d
lt_save_CC=$CC
Packit c32a2d
lt_save_CFLAGS=$CFLAGS
Packit c32a2d
lt_save_GCC=$GCC
Packit c32a2d
GCC=yes
Packit c32a2d
CC=${GOC-"gccgo"}
Packit c32a2d
CFLAGS=$GOFLAGS
Packit c32a2d
compiler=$CC
Packit c32a2d
_LT_TAGVAR(compiler, $1)=$CC
Packit c32a2d
_LT_TAGVAR(LD, $1)=$LD
Packit c32a2d
_LT_CC_BASENAME([$compiler])
Packit c32a2d
Packit c32a2d
# Go did not exist at the time GCC didn't implicitly link libc in.
Packit c32a2d
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
Packit c32a2d
Packit c32a2d
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
Packit c32a2d
_LT_TAGVAR(reload_flag, $1)=$reload_flag
Packit c32a2d
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
Packit c32a2d
Packit c32a2d
## CAVEAT EMPTOR:
Packit c32a2d
## There is no encapsulation within the following macros, do not change
Packit c32a2d
## the running order or otherwise move them around unless you know exactly
Packit c32a2d
## what you are doing...
Packit c32a2d
if test -n "$compiler"; then
Packit c32a2d
  _LT_COMPILER_NO_RTTI($1)
Packit c32a2d
  _LT_COMPILER_PIC($1)
Packit c32a2d
  _LT_COMPILER_C_O($1)
Packit c32a2d
  _LT_COMPILER_FILE_LOCKS($1)
Packit c32a2d
  _LT_LINKER_SHLIBS($1)
Packit c32a2d
  _LT_LINKER_HARDCODE_LIBPATH($1)
Packit c32a2d
Packit c32a2d
  _LT_CONFIG($1)
Packit c32a2d
fi
Packit c32a2d
Packit c32a2d
AC_LANG_RESTORE
Packit c32a2d
Packit c32a2d
GCC=$lt_save_GCC
Packit c32a2d
CC=$lt_save_CC
Packit c32a2d
CFLAGS=$lt_save_CFLAGS
Packit c32a2d
])# _LT_LANG_GO_CONFIG
Packit c32a2d
Packit c32a2d
Packit c32a2d
# _LT_LANG_RC_CONFIG([TAG])
Packit c32a2d
# -------------------------
Packit c32a2d
# Ensure that the configuration variables for the Windows resource compiler
Packit c32a2d
# are suitably defined.  These variables are subsequently used by _LT_CONFIG
Packit c32a2d
# to write the compiler configuration to 'libtool'.
Packit c32a2d
m4_defun([_LT_LANG_RC_CONFIG],
Packit c32a2d
[AC_REQUIRE([LT_PROG_RC])dnl
Packit c32a2d
AC_LANG_SAVE
Packit c32a2d
Packit c32a2d
# Source file extension for RC test sources.
Packit c32a2d
ac_ext=rc
Packit c32a2d
Packit c32a2d
# Object file extension for compiled RC test sources.
Packit c32a2d
objext=o
Packit c32a2d
_LT_TAGVAR(objext, $1)=$objext
Packit c32a2d
Packit c32a2d
# Code to be used in simple compile tests
Packit c32a2d
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
Packit c32a2d
Packit c32a2d
# Code to be used in simple link tests
Packit c32a2d
lt_simple_link_test_code=$lt_simple_compile_test_code
Packit c32a2d
Packit c32a2d
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
Packit c32a2d
_LT_TAG_COMPILER
Packit c32a2d
Packit c32a2d
# save warnings/boilerplate of simple test code
Packit c32a2d
_LT_COMPILER_BOILERPLATE
Packit c32a2d
_LT_LINKER_BOILERPLATE
Packit c32a2d
Packit c32a2d
# Allow CC to be a program name with arguments.
Packit c32a2d
lt_save_CC=$CC
Packit c32a2d
lt_save_CFLAGS=$CFLAGS
Packit c32a2d
lt_save_GCC=$GCC
Packit c32a2d
GCC=
Packit c32a2d
CC=${RC-"windres"}
Packit c32a2d
CFLAGS=
Packit c32a2d
compiler=$CC
Packit c32a2d
_LT_TAGVAR(compiler, $1)=$CC
Packit c32a2d
_LT_CC_BASENAME([$compiler])
Packit c32a2d
_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
Packit c32a2d
Packit c32a2d
if test -n "$compiler"; then
Packit c32a2d
  :
Packit c32a2d
  _LT_CONFIG($1)
Packit c32a2d
fi
Packit c32a2d
Packit c32a2d
GCC=$lt_save_GCC
Packit c32a2d
AC_LANG_RESTORE
Packit c32a2d
CC=$lt_save_CC
Packit c32a2d
CFLAGS=$lt_save_CFLAGS
Packit c32a2d
])# _LT_LANG_RC_CONFIG
Packit c32a2d
Packit c32a2d
Packit c32a2d
# LT_PROG_GCJ
Packit c32a2d
# -----------
Packit c32a2d
AC_DEFUN([LT_PROG_GCJ],
Packit c32a2d
[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
Packit c32a2d
  [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
Packit c32a2d
    [AC_CHECK_TOOL(GCJ, gcj,)
Packit c32a2d
      test set = "${GCJFLAGS+set}" || GCJFLAGS="-g -O2"
Packit c32a2d
      AC_SUBST(GCJFLAGS)])])[]dnl
Packit c32a2d
])
Packit c32a2d
Packit c32a2d
# Old name:
Packit c32a2d
AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
Packit c32a2d
dnl aclocal-1.4 backwards compatibility:
Packit c32a2d
dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
Packit c32a2d
Packit c32a2d
Packit c32a2d
# LT_PROG_GO
Packit c32a2d
# ----------
Packit c32a2d
AC_DEFUN([LT_PROG_GO],
Packit c32a2d
[AC_CHECK_TOOL(GOC, gccgo,)
Packit c32a2d
])
Packit c32a2d
Packit c32a2d
Packit c32a2d
# LT_PROG_RC
Packit c32a2d
# ----------
Packit c32a2d
AC_DEFUN([LT_PROG_RC],
Packit c32a2d
[AC_CHECK_TOOL(RC, windres,)
Packit c32a2d
])
Packit c32a2d
Packit c32a2d
# Old name:
Packit c32a2d
AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
Packit c32a2d
dnl aclocal-1.4 backwards compatibility:
Packit c32a2d
dnl AC_DEFUN([LT_AC_PROG_RC], [])
Packit c32a2d
Packit c32a2d
Packit c32a2d
# _LT_DECL_EGREP
Packit c32a2d
# --------------
Packit c32a2d
# If we don't have a new enough Autoconf to choose the best grep
Packit c32a2d
# available, choose the one first in the user's PATH.
Packit c32a2d
m4_defun([_LT_DECL_EGREP],
Packit c32a2d
[AC_REQUIRE([AC_PROG_EGREP])dnl
Packit c32a2d
AC_REQUIRE([AC_PROG_FGREP])dnl
Packit c32a2d
test -z "$GREP" && GREP=grep
Packit c32a2d
_LT_DECL([], [GREP], [1], [A grep program that handles long lines])
Packit c32a2d
_LT_DECL([], [EGREP], [1], [An ERE matcher])
Packit c32a2d
_LT_DECL([], [FGREP], [1], [A literal string matcher])
Packit c32a2d
dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
Packit c32a2d
AC_SUBST([GREP])
Packit c32a2d
])
Packit c32a2d
Packit c32a2d
Packit c32a2d
# _LT_DECL_OBJDUMP
Packit c32a2d
# --------------
Packit c32a2d
# If we don't have a new enough Autoconf to choose the best objdump
Packit c32a2d
# available, choose the one first in the user's PATH.
Packit c32a2d
m4_defun([_LT_DECL_OBJDUMP],
Packit c32a2d
[AC_CHECK_TOOL(OBJDUMP, objdump, false)
Packit c32a2d
test -z "$OBJDUMP" && OBJDUMP=objdump
Packit c32a2d
_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
Packit c32a2d
AC_SUBST([OBJDUMP])
Packit c32a2d
])
Packit c32a2d
Packit c32a2d
# _LT_DECL_DLLTOOL
Packit c32a2d
# ----------------
Packit c32a2d
# Ensure DLLTOOL variable is set.
Packit c32a2d
m4_defun([_LT_DECL_DLLTOOL],
Packit c32a2d
[AC_CHECK_TOOL(DLLTOOL, dlltool, false)
Packit c32a2d
test -z "$DLLTOOL" && DLLTOOL=dlltool
Packit c32a2d
_LT_DECL([], [DLLTOOL], [1], [DLL creation program])
Packit c32a2d
AC_SUBST([DLLTOOL])
Packit c32a2d
])
Packit c32a2d
Packit c32a2d
# _LT_DECL_SED
Packit c32a2d
# ------------
Packit c32a2d
# Check for a fully-functional sed program, that truncates
Packit c32a2d
# as few characters as possible.  Prefer GNU sed if found.
Packit c32a2d
m4_defun([_LT_DECL_SED],
Packit c32a2d
[AC_PROG_SED
Packit c32a2d
test -z "$SED" && SED=sed
Packit c32a2d
Xsed="$SED -e 1s/^X//"
Packit c32a2d
_LT_DECL([], [SED], [1], [A sed program that does not truncate output])
Packit c32a2d
_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
Packit c32a2d
    [Sed that helps us avoid accidentally triggering echo(1) options like -n])
Packit c32a2d
])# _LT_DECL_SED
Packit c32a2d
Packit c32a2d
m4_ifndef([AC_PROG_SED], [
Packit c32a2d
############################################################
Packit c32a2d
# NOTE: This macro has been submitted for inclusion into   #
Packit c32a2d
#  GNU Autoconf as AC_PROG_SED.  When it is available in   #
Packit c32a2d
#  a released version of Autoconf we should remove this    #
Packit c32a2d
#  macro and use it instead.                               #
Packit c32a2d
############################################################
Packit c32a2d
Packit c32a2d
m4_defun([AC_PROG_SED],
Packit c32a2d
[AC_MSG_CHECKING([for a sed that does not truncate output])
Packit c32a2d
AC_CACHE_VAL(lt_cv_path_SED,
Packit c32a2d
[# Loop through the user's path and test for sed and gsed.
Packit c32a2d
# Then use that list of sed's as ones to test for truncation.
Packit c32a2d
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Packit c32a2d
for as_dir in $PATH
Packit c32a2d
do
Packit c32a2d
  IFS=$as_save_IFS
Packit c32a2d
  test -z "$as_dir" && as_dir=.
Packit c32a2d
  for lt_ac_prog in sed gsed; do
Packit c32a2d
    for ac_exec_ext in '' $ac_executable_extensions; do
Packit c32a2d
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
Packit c32a2d
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
Packit c32a2d
      fi
Packit c32a2d
    done
Packit c32a2d
  done
Packit c32a2d
done
Packit c32a2d
IFS=$as_save_IFS
Packit c32a2d
lt_ac_max=0
Packit c32a2d
lt_ac_count=0
Packit c32a2d
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
Packit c32a2d
# along with /bin/sed that truncates output.
Packit c32a2d
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
Packit c32a2d
  test ! -f "$lt_ac_sed" && continue
Packit c32a2d
  cat /dev/null > conftest.in
Packit c32a2d
  lt_ac_count=0
Packit c32a2d
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
Packit c32a2d
  # Check for GNU sed and select it if it is found.
Packit c32a2d
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
Packit c32a2d
    lt_cv_path_SED=$lt_ac_sed
Packit c32a2d
    break
Packit c32a2d
  fi
Packit c32a2d
  while true; do
Packit c32a2d
    cat conftest.in conftest.in >conftest.tmp
Packit c32a2d
    mv conftest.tmp conftest.in
Packit c32a2d
    cp conftest.in conftest.nl
Packit c32a2d
    echo >>conftest.nl
Packit c32a2d
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
Packit c32a2d
    cmp -s conftest.out conftest.nl || break
Packit c32a2d
    # 10000 chars as input seems more than enough
Packit c32a2d
    test 10 -lt "$lt_ac_count" && break
Packit c32a2d
    lt_ac_count=`expr $lt_ac_count + 1`
Packit c32a2d
    if test "$lt_ac_count" -gt "$lt_ac_max"; then
Packit c32a2d
      lt_ac_max=$lt_ac_count
Packit c32a2d
      lt_cv_path_SED=$lt_ac_sed
Packit c32a2d
    fi
Packit c32a2d
  done
Packit c32a2d
done
Packit c32a2d
])
Packit c32a2d
SED=$lt_cv_path_SED
Packit c32a2d
AC_SUBST([SED])
Packit c32a2d
AC_MSG_RESULT([$SED])
Packit c32a2d
])#AC_PROG_SED
Packit c32a2d
])#m4_ifndef
Packit c32a2d
Packit c32a2d
# Old name:
Packit c32a2d
AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
Packit c32a2d
dnl aclocal-1.4 backwards compatibility:
Packit c32a2d
dnl AC_DEFUN([LT_AC_PROG_SED], [])
Packit c32a2d
Packit c32a2d
Packit c32a2d
# _LT_CHECK_SHELL_FEATURES
Packit c32a2d
# ------------------------
Packit c32a2d
# Find out whether the shell is Bourne or XSI compatible,
Packit c32a2d
# or has some other useful features.
Packit c32a2d
m4_defun([_LT_CHECK_SHELL_FEATURES],
Packit c32a2d
[if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
Packit c32a2d
  lt_unset=unset
Packit c32a2d
else
Packit c32a2d
  lt_unset=false
Packit c32a2d
fi
Packit c32a2d
_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
Packit c32a2d
Packit c32a2d
# test EBCDIC or ASCII
Packit c32a2d
case `echo X|tr X '\101'` in
Packit c32a2d
 A) # ASCII based system
Packit c32a2d
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
Packit c32a2d
  lt_SP2NL='tr \040 \012'
Packit c32a2d
  lt_NL2SP='tr \015\012 \040\040'
Packit c32a2d
  ;;
Packit c32a2d
 *) # EBCDIC based system
Packit c32a2d
  lt_SP2NL='tr \100 \n'
Packit c32a2d
  lt_NL2SP='tr \r\n \100\100'
Packit c32a2d
  ;;
Packit c32a2d
esac
Packit c32a2d
_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
Packit c32a2d
_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
Packit c32a2d
])# _LT_CHECK_SHELL_FEATURES
Packit c32a2d
Packit c32a2d
Packit c32a2d
# _LT_PATH_CONVERSION_FUNCTIONS
Packit c32a2d
# -----------------------------
Packit c32a2d
# Determine what file name conversion functions should be used by
Packit c32a2d
# func_to_host_file (and, implicitly, by func_to_host_path).  These are needed
Packit c32a2d
# for certain cross-compile configurations and native mingw.
Packit c32a2d
m4_defun([_LT_PATH_CONVERSION_FUNCTIONS],
Packit c32a2d
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
Packit c32a2d
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
Packit c32a2d
AC_MSG_CHECKING([how to convert $build file names to $host format])
Packit c32a2d
AC_CACHE_VAL(lt_cv_to_host_file_cmd,
Packit c32a2d
[case $host in
Packit c32a2d
  *-*-mingw* )
Packit c32a2d
    case $build in
Packit c32a2d
      *-*-mingw* ) # actually msys
Packit c32a2d
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
Packit c32a2d
        ;;
Packit c32a2d
      *-*-cygwin* )
Packit c32a2d
        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
Packit c32a2d
        ;;
Packit c32a2d
      * ) # otherwise, assume *nix
Packit c32a2d
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
Packit c32a2d
        ;;
Packit c32a2d
    esac
Packit c32a2d
    ;;
Packit c32a2d
  *-*-cygwin* )
Packit c32a2d
    case $build in
Packit c32a2d
      *-*-mingw* ) # actually msys
Packit c32a2d
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
Packit c32a2d
        ;;
Packit c32a2d
      *-*-cygwin* )
Packit c32a2d
        lt_cv_to_host_file_cmd=func_convert_file_noop
Packit c32a2d
        ;;
Packit c32a2d
      * ) # otherwise, assume *nix
Packit c32a2d
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
Packit c32a2d
        ;;
Packit c32a2d
    esac
Packit c32a2d
    ;;
Packit c32a2d
  * ) # unhandled hosts (and "normal" native builds)
Packit c32a2d
    lt_cv_to_host_file_cmd=func_convert_file_noop
Packit c32a2d
    ;;
Packit c32a2d
esac
Packit c32a2d
])
Packit c32a2d
to_host_file_cmd=$lt_cv_to_host_file_cmd
Packit c32a2d
AC_MSG_RESULT([$lt_cv_to_host_file_cmd])
Packit c32a2d
_LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd],
Packit c32a2d
         [0], [convert $build file names to $host format])dnl
Packit c32a2d
Packit c32a2d
AC_MSG_CHECKING([how to convert $build file names to toolchain format])
Packit c32a2d
AC_CACHE_VAL(lt_cv_to_tool_file_cmd,
Packit c32a2d
[#assume ordinary cross tools, or native build.
Packit c32a2d
lt_cv_to_tool_file_cmd=func_convert_file_noop
Packit c32a2d
case $host in
Packit c32a2d
  *-*-mingw* )
Packit c32a2d
    case $build in
Packit c32a2d
      *-*-mingw* ) # actually msys
Packit c32a2d
        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
Packit c32a2d
        ;;
Packit c32a2d
    esac
Packit c32a2d
    ;;
Packit c32a2d
esac
Packit c32a2d
])
Packit c32a2d
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
Packit c32a2d
AC_MSG_RESULT([$lt_cv_to_tool_file_cmd])
Packit c32a2d
_LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd],
Packit c32a2d
         [0], [convert $build files to toolchain format])dnl
Packit c32a2d
])# _LT_PATH_CONVERSION_FUNCTIONS