libtool.m4 revision 7f419768
104007ebaSmrg# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- 204007ebaSmrg# 304007ebaSmrg# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 404007ebaSmrg# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 504007ebaSmrg# Foundation, Inc. 604007ebaSmrg# Written by Gordon Matzigkeit, 1996 704007ebaSmrg# 804007ebaSmrg# This file is free software; the Free Software Foundation gives 904007ebaSmrg# unlimited permission to copy and/or distribute it, with or without 1004007ebaSmrg# modifications, as long as this notice is preserved. 1104007ebaSmrg 1204007ebaSmrgm4_define([_LT_COPYING], [dnl 1304007ebaSmrg# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 1404007ebaSmrg# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 1504007ebaSmrg# Foundation, Inc. 1604007ebaSmrg# Written by Gordon Matzigkeit, 1996 1704007ebaSmrg# 1804007ebaSmrg# This file is part of GNU Libtool. 1904007ebaSmrg# 2004007ebaSmrg# GNU Libtool is free software; you can redistribute it and/or 2104007ebaSmrg# modify it under the terms of the GNU General Public License as 2204007ebaSmrg# published by the Free Software Foundation; either version 2 of 2304007ebaSmrg# the License, or (at your option) any later version. 2404007ebaSmrg# 2504007ebaSmrg# As a special exception to the GNU General Public License, 2604007ebaSmrg# if you distribute this file as part of a program or library that 2704007ebaSmrg# is built using GNU Libtool, you may include this file under the 2804007ebaSmrg# same distribution terms that you use for the rest of that program. 2904007ebaSmrg# 3004007ebaSmrg# GNU Libtool is distributed in the hope that it will be useful, 3104007ebaSmrg# but WITHOUT ANY WARRANTY; without even the implied warranty of 3204007ebaSmrg# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 3304007ebaSmrg# GNU General Public License for more details. 3404007ebaSmrg# 3504007ebaSmrg# You should have received a copy of the GNU General Public License 3604007ebaSmrg# along with GNU Libtool; see the file COPYING. If not, a copy 3704007ebaSmrg# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 3804007ebaSmrg# obtained by writing to the Free Software Foundation, Inc., 3904007ebaSmrg# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 4004007ebaSmrg]) 4104007ebaSmrg 4204007ebaSmrg# serial 57 LT_INIT 4304007ebaSmrg 4404007ebaSmrg 4504007ebaSmrg# LT_PREREQ(VERSION) 4604007ebaSmrg# ------------------ 4704007ebaSmrg# Complain and exit if this libtool version is less that VERSION. 4804007ebaSmrgm4_defun([LT_PREREQ], 4904007ebaSmrg[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1, 5004007ebaSmrg [m4_default([$3], 5104007ebaSmrg [m4_fatal([Libtool version $1 or higher is required], 5204007ebaSmrg 63)])], 5304007ebaSmrg [$2])]) 5404007ebaSmrg 5504007ebaSmrg 5604007ebaSmrg# _LT_CHECK_BUILDDIR 5704007ebaSmrg# ------------------ 5804007ebaSmrg# Complain if the absolute build directory name contains unusual characters 5904007ebaSmrgm4_defun([_LT_CHECK_BUILDDIR], 6004007ebaSmrg[case `pwd` in 6104007ebaSmrg *\ * | *\ *) 6204007ebaSmrg AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;; 6304007ebaSmrgesac 6404007ebaSmrg]) 6504007ebaSmrg 6604007ebaSmrg 6704007ebaSmrg# LT_INIT([OPTIONS]) 6804007ebaSmrg# ------------------ 6904007ebaSmrgAC_DEFUN([LT_INIT], 7004007ebaSmrg[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT 7104007ebaSmrgAC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl 7204007ebaSmrgAC_BEFORE([$0], [LT_LANG])dnl 7304007ebaSmrgAC_BEFORE([$0], [LT_OUTPUT])dnl 7404007ebaSmrgAC_BEFORE([$0], [LTDL_INIT])dnl 7504007ebaSmrgm4_require([_LT_CHECK_BUILDDIR])dnl 7604007ebaSmrg 7704007ebaSmrgdnl Autoconf doesn't catch unexpanded LT_ macros by default: 7804007ebaSmrgm4_pattern_forbid([^_?LT_[A-Z_]+$])dnl 7904007ebaSmrgm4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl 8004007ebaSmrgdnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4 8104007ebaSmrgdnl unless we require an AC_DEFUNed macro: 8204007ebaSmrgAC_REQUIRE([LTOPTIONS_VERSION])dnl 8304007ebaSmrgAC_REQUIRE([LTSUGAR_VERSION])dnl 8404007ebaSmrgAC_REQUIRE([LTVERSION_VERSION])dnl 8504007ebaSmrgAC_REQUIRE([LTOBSOLETE_VERSION])dnl 8604007ebaSmrgm4_require([_LT_PROG_LTMAIN])dnl 8704007ebaSmrg 8804007ebaSmrg_LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}]) 8904007ebaSmrg 9004007ebaSmrgdnl Parse OPTIONS 9104007ebaSmrg_LT_SET_OPTIONS([$0], [$1]) 9204007ebaSmrg 9304007ebaSmrg# This can be used to rebuild libtool when needed 9404007ebaSmrgLIBTOOL_DEPS="$ltmain" 9504007ebaSmrg 9604007ebaSmrg# Always use our own libtool. 9704007ebaSmrgLIBTOOL='$(SHELL) $(top_builddir)/libtool' 9804007ebaSmrgAC_SUBST(LIBTOOL)dnl 9904007ebaSmrg 10004007ebaSmrg_LT_SETUP 10104007ebaSmrg 10204007ebaSmrg# Only expand once: 10304007ebaSmrgm4_define([LT_INIT]) 10404007ebaSmrg])# LT_INIT 10504007ebaSmrg 10604007ebaSmrg# Old names: 10704007ebaSmrgAU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT]) 10804007ebaSmrgAU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT]) 10904007ebaSmrgdnl aclocal-1.4 backwards compatibility: 11004007ebaSmrgdnl AC_DEFUN([AC_PROG_LIBTOOL], []) 11104007ebaSmrgdnl AC_DEFUN([AM_PROG_LIBTOOL], []) 11204007ebaSmrg 11304007ebaSmrg 11404007ebaSmrg# _LT_CC_BASENAME(CC) 11504007ebaSmrg# ------------------- 11604007ebaSmrg# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 11704007ebaSmrgm4_defun([_LT_CC_BASENAME], 11804007ebaSmrg[for cc_temp in $1""; do 11904007ebaSmrg case $cc_temp in 12004007ebaSmrg compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; 12104007ebaSmrg distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; 12204007ebaSmrg \-*) ;; 12304007ebaSmrg *) break;; 12404007ebaSmrg esac 12504007ebaSmrgdone 12604007ebaSmrgcc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 12704007ebaSmrg]) 12804007ebaSmrg 12904007ebaSmrg 13004007ebaSmrg# _LT_FILEUTILS_DEFAULTS 13104007ebaSmrg# ---------------------- 13204007ebaSmrg# It is okay to use these file commands and assume they have been set 13304007ebaSmrg# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'. 13404007ebaSmrgm4_defun([_LT_FILEUTILS_DEFAULTS], 13504007ebaSmrg[: ${CP="cp -f"} 13604007ebaSmrg: ${MV="mv -f"} 13704007ebaSmrg: ${RM="rm -f"} 13804007ebaSmrg])# _LT_FILEUTILS_DEFAULTS 13904007ebaSmrg 14004007ebaSmrg 14104007ebaSmrg# _LT_SETUP 14204007ebaSmrg# --------- 14304007ebaSmrgm4_defun([_LT_SETUP], 14404007ebaSmrg[AC_REQUIRE([AC_CANONICAL_HOST])dnl 14504007ebaSmrgAC_REQUIRE([AC_CANONICAL_BUILD])dnl 14604007ebaSmrgAC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl 14704007ebaSmrgAC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl 14804007ebaSmrg 14904007ebaSmrg_LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl 15004007ebaSmrgdnl 15104007ebaSmrg_LT_DECL([], [host_alias], [0], [The host system])dnl 15204007ebaSmrg_LT_DECL([], [host], [0])dnl 15304007ebaSmrg_LT_DECL([], [host_os], [0])dnl 15404007ebaSmrgdnl 15504007ebaSmrg_LT_DECL([], [build_alias], [0], [The build system])dnl 15604007ebaSmrg_LT_DECL([], [build], [0])dnl 15704007ebaSmrg_LT_DECL([], [build_os], [0])dnl 15804007ebaSmrgdnl 15904007ebaSmrgAC_REQUIRE([AC_PROG_CC])dnl 16004007ebaSmrgAC_REQUIRE([LT_PATH_LD])dnl 16104007ebaSmrgAC_REQUIRE([LT_PATH_NM])dnl 16204007ebaSmrgdnl 16304007ebaSmrgAC_REQUIRE([AC_PROG_LN_S])dnl 16404007ebaSmrgtest -z "$LN_S" && LN_S="ln -s" 16504007ebaSmrg_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl 16604007ebaSmrgdnl 16704007ebaSmrgAC_REQUIRE([LT_CMD_MAX_LEN])dnl 16804007ebaSmrg_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl 16904007ebaSmrg_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl 17004007ebaSmrgdnl 17104007ebaSmrgm4_require([_LT_FILEUTILS_DEFAULTS])dnl 17204007ebaSmrgm4_require([_LT_CHECK_SHELL_FEATURES])dnl 17304007ebaSmrgm4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl 17404007ebaSmrgm4_require([_LT_CMD_RELOAD])dnl 17504007ebaSmrgm4_require([_LT_CHECK_MAGIC_METHOD])dnl 17604007ebaSmrgm4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl 17704007ebaSmrgm4_require([_LT_CMD_OLD_ARCHIVE])dnl 17804007ebaSmrgm4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl 17904007ebaSmrgm4_require([_LT_WITH_SYSROOT])dnl 18004007ebaSmrg 18104007ebaSmrg_LT_CONFIG_LIBTOOL_INIT([ 18204007ebaSmrg# See if we are running on zsh, and set the options which allow our 18304007ebaSmrg# commands through without removal of \ escapes INIT. 18404007ebaSmrgif test -n "\${ZSH_VERSION+set}" ; then 18504007ebaSmrg setopt NO_GLOB_SUBST 18604007ebaSmrgfi 18704007ebaSmrg]) 18804007ebaSmrgif test -n "${ZSH_VERSION+set}" ; then 18904007ebaSmrg setopt NO_GLOB_SUBST 19004007ebaSmrgfi 19104007ebaSmrg 19204007ebaSmrg_LT_CHECK_OBJDIR 19304007ebaSmrg 19404007ebaSmrgm4_require([_LT_TAG_COMPILER])dnl 19504007ebaSmrg 19604007ebaSmrgcase $host_os in 19704007ebaSmrgaix3*) 19804007ebaSmrg # AIX sometimes has problems with the GCC collect2 program. For some 19904007ebaSmrg # reason, if we set the COLLECT_NAMES environment variable, the problems 20004007ebaSmrg # vanish in a puff of smoke. 20104007ebaSmrg if test "X${COLLECT_NAMES+set}" != Xset; then 20204007ebaSmrg COLLECT_NAMES= 20304007ebaSmrg export COLLECT_NAMES 20404007ebaSmrg fi 20504007ebaSmrg ;; 20604007ebaSmrgesac 20704007ebaSmrg 20804007ebaSmrg# Global variables: 20904007ebaSmrgofile=libtool 21004007ebaSmrgcan_build_shared=yes 21104007ebaSmrg 21204007ebaSmrg# All known linkers require a `.a' archive for static linking (except MSVC, 21304007ebaSmrg# which needs '.lib'). 21404007ebaSmrglibext=a 21504007ebaSmrg 21604007ebaSmrgwith_gnu_ld="$lt_cv_prog_gnu_ld" 21704007ebaSmrg 21804007ebaSmrgold_CC="$CC" 21904007ebaSmrgold_CFLAGS="$CFLAGS" 22004007ebaSmrg 22104007ebaSmrg# Set sane defaults for various variables 22204007ebaSmrgtest -z "$CC" && CC=cc 22304007ebaSmrgtest -z "$LTCC" && LTCC=$CC 22404007ebaSmrgtest -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 22504007ebaSmrgtest -z "$LD" && LD=ld 22604007ebaSmrgtest -z "$ac_objext" && ac_objext=o 22704007ebaSmrg 22804007ebaSmrg_LT_CC_BASENAME([$compiler]) 22904007ebaSmrg 23004007ebaSmrg# Only perform the check for file, if the check method requires it 23104007ebaSmrgtest -z "$MAGIC_CMD" && MAGIC_CMD=file 23204007ebaSmrgcase $deplibs_check_method in 23304007ebaSmrgfile_magic*) 23404007ebaSmrg if test "$file_magic_cmd" = '$MAGIC_CMD'; then 23504007ebaSmrg _LT_PATH_MAGIC 23604007ebaSmrg fi 23704007ebaSmrg ;; 23804007ebaSmrgesac 23904007ebaSmrg 24004007ebaSmrg# Use C for the default configuration in the libtool script 24104007ebaSmrgLT_SUPPORTED_TAG([CC]) 24204007ebaSmrg_LT_LANG_C_CONFIG 24304007ebaSmrg_LT_LANG_DEFAULT_CONFIG 24404007ebaSmrg_LT_CONFIG_COMMANDS 24504007ebaSmrg])# _LT_SETUP 24604007ebaSmrg 24704007ebaSmrg 24804007ebaSmrg# _LT_PREPARE_SED_QUOTE_VARS 24904007ebaSmrg# -------------------------- 25004007ebaSmrg# Define a few sed substitution that help us do robust quoting. 25104007ebaSmrgm4_defun([_LT_PREPARE_SED_QUOTE_VARS], 25204007ebaSmrg[# Backslashify metacharacters that are still active within 25304007ebaSmrg# double-quoted strings. 25404007ebaSmrgsed_quote_subst='s/\([["`$\\]]\)/\\\1/g' 25504007ebaSmrg 25604007ebaSmrg# Same as above, but do not quote variable references. 25704007ebaSmrgdouble_quote_subst='s/\([["`\\]]\)/\\\1/g' 25804007ebaSmrg 25904007ebaSmrg# Sed substitution to delay expansion of an escaped shell variable in a 26004007ebaSmrg# double_quote_subst'ed string. 26104007ebaSmrgdelay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 26204007ebaSmrg 26304007ebaSmrg# Sed substitution to delay expansion of an escaped single quote. 26404007ebaSmrgdelay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 26504007ebaSmrg 26604007ebaSmrg# Sed substitution to avoid accidental globbing in evaled expressions 26704007ebaSmrgno_glob_subst='s/\*/\\\*/g' 26804007ebaSmrg]) 26904007ebaSmrg 27004007ebaSmrg# _LT_PROG_LTMAIN 27104007ebaSmrg# --------------- 27204007ebaSmrg# Note that this code is called both from `configure', and `config.status' 27304007ebaSmrg# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably, 27404007ebaSmrg# `config.status' has no value for ac_aux_dir unless we are using Automake, 27504007ebaSmrg# so we pass a copy along to make sure it has a sensible value anyway. 27604007ebaSmrgm4_defun([_LT_PROG_LTMAIN], 27704007ebaSmrg[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl 27804007ebaSmrg_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir']) 27904007ebaSmrgltmain="$ac_aux_dir/ltmain.sh" 28004007ebaSmrg])# _LT_PROG_LTMAIN 28104007ebaSmrg 28204007ebaSmrg 28304007ebaSmrg## ------------------------------------- ## 28404007ebaSmrg## Accumulate code for creating libtool. ## 28504007ebaSmrg## ------------------------------------- ## 28604007ebaSmrg 28704007ebaSmrg# So that we can recreate a full libtool script including additional 28804007ebaSmrg# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS 28904007ebaSmrg# in macros and then make a single call at the end using the `libtool' 29004007ebaSmrg# label. 29104007ebaSmrg 29204007ebaSmrg 29304007ebaSmrg# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS]) 29404007ebaSmrg# ---------------------------------------- 29504007ebaSmrg# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later. 29604007ebaSmrgm4_define([_LT_CONFIG_LIBTOOL_INIT], 29704007ebaSmrg[m4_ifval([$1], 29804007ebaSmrg [m4_append([_LT_OUTPUT_LIBTOOL_INIT], 29904007ebaSmrg [$1 30004007ebaSmrg])])]) 30104007ebaSmrg 30204007ebaSmrg# Initialize. 30304007ebaSmrgm4_define([_LT_OUTPUT_LIBTOOL_INIT]) 30404007ebaSmrg 30504007ebaSmrg 30604007ebaSmrg# _LT_CONFIG_LIBTOOL([COMMANDS]) 30704007ebaSmrg# ------------------------------ 30804007ebaSmrg# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later. 30904007ebaSmrgm4_define([_LT_CONFIG_LIBTOOL], 31004007ebaSmrg[m4_ifval([$1], 31104007ebaSmrg [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS], 31204007ebaSmrg [$1 31304007ebaSmrg])])]) 31404007ebaSmrg 31504007ebaSmrg# Initialize. 31604007ebaSmrgm4_define([_LT_OUTPUT_LIBTOOL_COMMANDS]) 31704007ebaSmrg 31804007ebaSmrg 31904007ebaSmrg# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS]) 32004007ebaSmrg# ----------------------------------------------------- 32104007ebaSmrgm4_defun([_LT_CONFIG_SAVE_COMMANDS], 32204007ebaSmrg[_LT_CONFIG_LIBTOOL([$1]) 32304007ebaSmrg_LT_CONFIG_LIBTOOL_INIT([$2]) 32404007ebaSmrg]) 32504007ebaSmrg 32604007ebaSmrg 32704007ebaSmrg# _LT_FORMAT_COMMENT([COMMENT]) 32804007ebaSmrg# ----------------------------- 32904007ebaSmrg# Add leading comment marks to the start of each line, and a trailing 33004007ebaSmrg# full-stop to the whole comment if one is not present already. 33104007ebaSmrgm4_define([_LT_FORMAT_COMMENT], 33204007ebaSmrg[m4_ifval([$1], [ 33304007ebaSmrgm4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])], 33404007ebaSmrg [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.]) 33504007ebaSmrg)]) 33604007ebaSmrg 33704007ebaSmrg 33804007ebaSmrg 33904007ebaSmrg## ------------------------ ## 34004007ebaSmrg## FIXME: Eliminate VARNAME ## 34104007ebaSmrg## ------------------------ ## 34204007ebaSmrg 34304007ebaSmrg 34404007ebaSmrg# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?]) 34504007ebaSmrg# ------------------------------------------------------------------- 34604007ebaSmrg# CONFIGNAME is the name given to the value in the libtool script. 34704007ebaSmrg# VARNAME is the (base) name used in the configure script. 34804007ebaSmrg# VALUE may be 0, 1 or 2 for a computed quote escaped value based on 34904007ebaSmrg# VARNAME. Any other value will be used directly. 35004007ebaSmrgm4_define([_LT_DECL], 35104007ebaSmrg[lt_if_append_uniq([lt_decl_varnames], [$2], [, ], 35204007ebaSmrg [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name], 35304007ebaSmrg [m4_ifval([$1], [$1], [$2])]) 35404007ebaSmrg lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3]) 35504007ebaSmrg m4_ifval([$4], 35604007ebaSmrg [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])]) 35704007ebaSmrg lt_dict_add_subkey([lt_decl_dict], [$2], 35804007ebaSmrg [tagged?], [m4_ifval([$5], [yes], [no])])]) 35904007ebaSmrg]) 36004007ebaSmrg 36104007ebaSmrg 36204007ebaSmrg# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION]) 36304007ebaSmrg# -------------------------------------------------------- 36404007ebaSmrgm4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])]) 36504007ebaSmrg 36604007ebaSmrg 36704007ebaSmrg# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...]) 36804007ebaSmrg# ------------------------------------------------ 36904007ebaSmrgm4_define([lt_decl_tag_varnames], 37004007ebaSmrg[_lt_decl_filter([tagged?], [yes], $@)]) 37104007ebaSmrg 37204007ebaSmrg 37304007ebaSmrg# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..]) 37404007ebaSmrg# --------------------------------------------------------- 37504007ebaSmrgm4_define([_lt_decl_filter], 37604007ebaSmrg[m4_case([$#], 37704007ebaSmrg [0], [m4_fatal([$0: too few arguments: $#])], 37804007ebaSmrg [1], [m4_fatal([$0: too few arguments: $#: $1])], 37904007ebaSmrg [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)], 38004007ebaSmrg [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)], 38104007ebaSmrg [lt_dict_filter([lt_decl_dict], $@)])[]dnl 38204007ebaSmrg]) 38304007ebaSmrg 38404007ebaSmrg 38504007ebaSmrg# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...]) 38604007ebaSmrg# -------------------------------------------------- 38704007ebaSmrgm4_define([lt_decl_quote_varnames], 38804007ebaSmrg[_lt_decl_filter([value], [1], $@)]) 38904007ebaSmrg 39004007ebaSmrg 39104007ebaSmrg# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...]) 39204007ebaSmrg# --------------------------------------------------- 39304007ebaSmrgm4_define([lt_decl_dquote_varnames], 39404007ebaSmrg[_lt_decl_filter([value], [2], $@)]) 39504007ebaSmrg 39604007ebaSmrg 39704007ebaSmrg# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...]) 39804007ebaSmrg# --------------------------------------------------- 39904007ebaSmrgm4_define([lt_decl_varnames_tagged], 40004007ebaSmrg[m4_assert([$# <= 2])dnl 40104007ebaSmrg_$0(m4_quote(m4_default([$1], [[, ]])), 40204007ebaSmrg m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]), 40304007ebaSmrg m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))]) 40404007ebaSmrgm4_define([_lt_decl_varnames_tagged], 40504007ebaSmrg[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])]) 40604007ebaSmrg 40704007ebaSmrg 40804007ebaSmrg# lt_decl_all_varnames([SEPARATOR], [VARNAME1...]) 40904007ebaSmrg# ------------------------------------------------ 41004007ebaSmrgm4_define([lt_decl_all_varnames], 41104007ebaSmrg[_$0(m4_quote(m4_default([$1], [[, ]])), 41204007ebaSmrg m4_if([$2], [], 41304007ebaSmrg m4_quote(lt_decl_varnames), 41404007ebaSmrg m4_quote(m4_shift($@))))[]dnl 41504007ebaSmrg]) 41604007ebaSmrgm4_define([_lt_decl_all_varnames], 41704007ebaSmrg[lt_join($@, lt_decl_varnames_tagged([$1], 41804007ebaSmrg lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl 41904007ebaSmrg]) 42004007ebaSmrg 42104007ebaSmrg 42204007ebaSmrg# _LT_CONFIG_STATUS_DECLARE([VARNAME]) 42304007ebaSmrg# ------------------------------------ 42404007ebaSmrg# Quote a variable value, and forward it to `config.status' so that its 42504007ebaSmrg# declaration there will have the same value as in `configure'. VARNAME 42604007ebaSmrg# must have a single quote delimited value for this to work. 42704007ebaSmrgm4_define([_LT_CONFIG_STATUS_DECLARE], 42804007ebaSmrg[$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`']) 42904007ebaSmrg 43004007ebaSmrg 43104007ebaSmrg# _LT_CONFIG_STATUS_DECLARATIONS 43204007ebaSmrg# ------------------------------ 43304007ebaSmrg# We delimit libtool config variables with single quotes, so when 43404007ebaSmrg# we write them to config.status, we have to be sure to quote all 43504007ebaSmrg# embedded single quotes properly. In configure, this macro expands 43604007ebaSmrg# each variable declared with _LT_DECL (and _LT_TAGDECL) into: 43704007ebaSmrg# 43804007ebaSmrg# <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`' 43904007ebaSmrgm4_defun([_LT_CONFIG_STATUS_DECLARATIONS], 44004007ebaSmrg[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames), 44104007ebaSmrg [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])]) 44204007ebaSmrg 44304007ebaSmrg 44404007ebaSmrg# _LT_LIBTOOL_TAGS 44504007ebaSmrg# ---------------- 44604007ebaSmrg# Output comment and list of tags supported by the script 44704007ebaSmrgm4_defun([_LT_LIBTOOL_TAGS], 44804007ebaSmrg[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl 44904007ebaSmrgavailable_tags="_LT_TAGS"dnl 45004007ebaSmrg]) 45104007ebaSmrg 45204007ebaSmrg 45304007ebaSmrg# _LT_LIBTOOL_DECLARE(VARNAME, [TAG]) 45404007ebaSmrg# ----------------------------------- 45504007ebaSmrg# Extract the dictionary values for VARNAME (optionally with TAG) and 45604007ebaSmrg# expand to a commented shell variable setting: 45704007ebaSmrg# 45804007ebaSmrg# # Some comment about what VAR is for. 45904007ebaSmrg# visible_name=$lt_internal_name 46004007ebaSmrgm4_define([_LT_LIBTOOL_DECLARE], 46104007ebaSmrg[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], 46204007ebaSmrg [description])))[]dnl 46304007ebaSmrgm4_pushdef([_libtool_name], 46404007ebaSmrg m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl 46504007ebaSmrgm4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])), 46604007ebaSmrg [0], [_libtool_name=[$]$1], 46704007ebaSmrg [1], [_libtool_name=$lt_[]$1], 46804007ebaSmrg [2], [_libtool_name=$lt_[]$1], 46904007ebaSmrg [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl 47004007ebaSmrgm4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl 47104007ebaSmrg]) 47204007ebaSmrg 47304007ebaSmrg 47404007ebaSmrg# _LT_LIBTOOL_CONFIG_VARS 47504007ebaSmrg# ----------------------- 47604007ebaSmrg# Produce commented declarations of non-tagged libtool config variables 47704007ebaSmrg# suitable for insertion in the LIBTOOL CONFIG section of the `libtool' 47804007ebaSmrg# script. Tagged libtool config variables (even for the LIBTOOL CONFIG 47904007ebaSmrg# section) are produced by _LT_LIBTOOL_TAG_VARS. 48004007ebaSmrgm4_defun([_LT_LIBTOOL_CONFIG_VARS], 48104007ebaSmrg[m4_foreach([_lt_var], 48204007ebaSmrg m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)), 48304007ebaSmrg [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])]) 48404007ebaSmrg 48504007ebaSmrg 48604007ebaSmrg# _LT_LIBTOOL_TAG_VARS(TAG) 48704007ebaSmrg# ------------------------- 48804007ebaSmrgm4_define([_LT_LIBTOOL_TAG_VARS], 48904007ebaSmrg[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames), 49004007ebaSmrg [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])]) 49104007ebaSmrg 49204007ebaSmrg 49304007ebaSmrg# _LT_TAGVAR(VARNAME, [TAGNAME]) 49404007ebaSmrg# ------------------------------ 49504007ebaSmrgm4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])]) 49604007ebaSmrg 49704007ebaSmrg 49804007ebaSmrg# _LT_CONFIG_COMMANDS 49904007ebaSmrg# ------------------- 50004007ebaSmrg# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of 50104007ebaSmrg# variables for single and double quote escaping we saved from calls 50204007ebaSmrg# to _LT_DECL, we can put quote escaped variables declarations 50304007ebaSmrg# into `config.status', and then the shell code to quote escape them in 50404007ebaSmrg# for loops in `config.status'. Finally, any additional code accumulated 50504007ebaSmrg# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded. 50604007ebaSmrgm4_defun([_LT_CONFIG_COMMANDS], 50704007ebaSmrg[AC_PROVIDE_IFELSE([LT_OUTPUT], 50804007ebaSmrg dnl If the libtool generation code has been placed in $CONFIG_LT, 50904007ebaSmrg dnl instead of duplicating it all over again into config.status, 51004007ebaSmrg dnl then we will have config.status run $CONFIG_LT later, so it 51104007ebaSmrg dnl needs to know what name is stored there: 51204007ebaSmrg [AC_CONFIG_COMMANDS([libtool], 51304007ebaSmrg [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])], 51404007ebaSmrg dnl If the libtool generation code is destined for config.status, 51504007ebaSmrg dnl expand the accumulated commands and init code now: 51604007ebaSmrg [AC_CONFIG_COMMANDS([libtool], 51704007ebaSmrg [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])]) 51804007ebaSmrg])#_LT_CONFIG_COMMANDS 51904007ebaSmrg 52004007ebaSmrg 52104007ebaSmrg# Initialize. 52204007ebaSmrgm4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT], 52304007ebaSmrg[ 52404007ebaSmrg 52504007ebaSmrg# The HP-UX ksh and POSIX shell print the target directory to stdout 52604007ebaSmrg# if CDPATH is set. 52704007ebaSmrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 52804007ebaSmrg 52904007ebaSmrgsed_quote_subst='$sed_quote_subst' 53004007ebaSmrgdouble_quote_subst='$double_quote_subst' 53104007ebaSmrgdelay_variable_subst='$delay_variable_subst' 53204007ebaSmrg_LT_CONFIG_STATUS_DECLARATIONS 53304007ebaSmrgLTCC='$LTCC' 53404007ebaSmrgLTCFLAGS='$LTCFLAGS' 53504007ebaSmrgcompiler='$compiler_DEFAULT' 53604007ebaSmrg 53704007ebaSmrg# A function that is used when there is no print builtin or printf. 53804007ebaSmrgfunc_fallback_echo () 53904007ebaSmrg{ 54004007ebaSmrg eval 'cat <<_LTECHO_EOF 54104007ebaSmrg\$[]1 54204007ebaSmrg_LTECHO_EOF' 54304007ebaSmrg} 54404007ebaSmrg 54504007ebaSmrg# Quote evaled strings. 54604007ebaSmrgfor var in lt_decl_all_varnames([[ \ 54704007ebaSmrg]], lt_decl_quote_varnames); do 54804007ebaSmrg case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 54904007ebaSmrg *[[\\\\\\\`\\"\\\$]]*) 55004007ebaSmrg eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 55104007ebaSmrg ;; 55204007ebaSmrg *) 55304007ebaSmrg eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 55404007ebaSmrg ;; 55504007ebaSmrg esac 55604007ebaSmrgdone 55704007ebaSmrg 55804007ebaSmrg# Double-quote double-evaled strings. 55904007ebaSmrgfor var in lt_decl_all_varnames([[ \ 56004007ebaSmrg]], lt_decl_dquote_varnames); do 56104007ebaSmrg case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 56204007ebaSmrg *[[\\\\\\\`\\"\\\$]]*) 56304007ebaSmrg eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 56404007ebaSmrg ;; 56504007ebaSmrg *) 56604007ebaSmrg eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 56704007ebaSmrg ;; 56804007ebaSmrg esac 56904007ebaSmrgdone 57004007ebaSmrg 57104007ebaSmrg_LT_OUTPUT_LIBTOOL_INIT 57204007ebaSmrg]) 57304007ebaSmrg 57404007ebaSmrg# _LT_GENERATED_FILE_INIT(FILE, [COMMENT]) 57504007ebaSmrg# ------------------------------------ 57604007ebaSmrg# Generate a child script FILE with all initialization necessary to 57704007ebaSmrg# reuse the environment learned by the parent script, and make the 57804007ebaSmrg# file executable. If COMMENT is supplied, it is inserted after the 57904007ebaSmrg# `#!' sequence but before initialization text begins. After this 58004007ebaSmrg# macro, additional text can be appended to FILE to form the body of 58104007ebaSmrg# the child script. The macro ends with non-zero status if the 58204007ebaSmrg# file could not be fully written (such as if the disk is full). 58304007ebaSmrgm4_ifdef([AS_INIT_GENERATED], 58404007ebaSmrg[m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])], 58504007ebaSmrg[m4_defun([_LT_GENERATED_FILE_INIT], 58604007ebaSmrg[m4_require([AS_PREPARE])]dnl 58704007ebaSmrg[m4_pushdef([AS_MESSAGE_LOG_FD])]dnl 58804007ebaSmrg[lt_write_fail=0 58904007ebaSmrgcat >$1 <<_ASEOF || lt_write_fail=1 59004007ebaSmrg#! $SHELL 59104007ebaSmrg# Generated by $as_me. 59204007ebaSmrg$2 59304007ebaSmrgSHELL=\${CONFIG_SHELL-$SHELL} 59404007ebaSmrgexport SHELL 59504007ebaSmrg_ASEOF 59604007ebaSmrgcat >>$1 <<\_ASEOF || lt_write_fail=1 59704007ebaSmrgAS_SHELL_SANITIZE 59804007ebaSmrg_AS_PREPARE 59904007ebaSmrgexec AS_MESSAGE_FD>&1 60004007ebaSmrg_ASEOF 60104007ebaSmrgtest $lt_write_fail = 0 && chmod +x $1[]dnl 60204007ebaSmrgm4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT 60304007ebaSmrg 60404007ebaSmrg# LT_OUTPUT 60504007ebaSmrg# --------- 60604007ebaSmrg# This macro allows early generation of the libtool script (before 60704007ebaSmrg# AC_OUTPUT is called), incase it is used in configure for compilation 60804007ebaSmrg# tests. 60904007ebaSmrgAC_DEFUN([LT_OUTPUT], 61004007ebaSmrg[: ${CONFIG_LT=./config.lt} 61104007ebaSmrgAC_MSG_NOTICE([creating $CONFIG_LT]) 61204007ebaSmrg_LT_GENERATED_FILE_INIT(["$CONFIG_LT"], 61304007ebaSmrg[# Run this file to recreate a libtool stub with the current configuration.]) 61404007ebaSmrg 61504007ebaSmrgcat >>"$CONFIG_LT" <<\_LTEOF 61604007ebaSmrglt_cl_silent=false 61704007ebaSmrgexec AS_MESSAGE_LOG_FD>>config.log 61804007ebaSmrg{ 61904007ebaSmrg echo 62004007ebaSmrg AS_BOX([Running $as_me.]) 62104007ebaSmrg} >&AS_MESSAGE_LOG_FD 62204007ebaSmrg 62304007ebaSmrglt_cl_help="\ 62404007ebaSmrg\`$as_me' creates a local libtool stub from the current configuration, 62504007ebaSmrgfor use in further configure time tests before the real libtool is 62604007ebaSmrggenerated. 62704007ebaSmrg 62804007ebaSmrgUsage: $[0] [[OPTIONS]] 62904007ebaSmrg 63004007ebaSmrg -h, --help print this help, then exit 63104007ebaSmrg -V, --version print version number, then exit 63204007ebaSmrg -q, --quiet do not print progress messages 63304007ebaSmrg -d, --debug don't remove temporary files 63404007ebaSmrg 63504007ebaSmrgReport bugs to <bug-libtool@gnu.org>." 63604007ebaSmrg 63704007ebaSmrglt_cl_version="\ 63804007ebaSmrgm4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl 63904007ebaSmrgm4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION]) 64004007ebaSmrgconfigured by $[0], generated by m4_PACKAGE_STRING. 64104007ebaSmrg 64204007ebaSmrgCopyright (C) 2011 Free Software Foundation, Inc. 64304007ebaSmrgThis config.lt script is free software; the Free Software Foundation 64404007ebaSmrggives unlimited permision to copy, distribute and modify it." 64504007ebaSmrg 64604007ebaSmrgwhile test $[#] != 0 64704007ebaSmrgdo 64804007ebaSmrg case $[1] in 64904007ebaSmrg --version | --v* | -V ) 65004007ebaSmrg echo "$lt_cl_version"; exit 0 ;; 65104007ebaSmrg --help | --h* | -h ) 65204007ebaSmrg echo "$lt_cl_help"; exit 0 ;; 65304007ebaSmrg --debug | --d* | -d ) 65404007ebaSmrg debug=: ;; 65504007ebaSmrg --quiet | --q* | --silent | --s* | -q ) 65604007ebaSmrg lt_cl_silent=: ;; 65704007ebaSmrg 65804007ebaSmrg -*) AC_MSG_ERROR([unrecognized option: $[1] 65904007ebaSmrgTry \`$[0] --help' for more information.]) ;; 66004007ebaSmrg 66104007ebaSmrg *) AC_MSG_ERROR([unrecognized argument: $[1] 66204007ebaSmrgTry \`$[0] --help' for more information.]) ;; 66304007ebaSmrg esac 66404007ebaSmrg shift 66504007ebaSmrgdone 66604007ebaSmrg 66704007ebaSmrgif $lt_cl_silent; then 66804007ebaSmrg exec AS_MESSAGE_FD>/dev/null 66904007ebaSmrgfi 67004007ebaSmrg_LTEOF 67104007ebaSmrg 67204007ebaSmrgcat >>"$CONFIG_LT" <<_LTEOF 67304007ebaSmrg_LT_OUTPUT_LIBTOOL_COMMANDS_INIT 67404007ebaSmrg_LTEOF 67504007ebaSmrg 67604007ebaSmrgcat >>"$CONFIG_LT" <<\_LTEOF 67704007ebaSmrgAC_MSG_NOTICE([creating $ofile]) 67804007ebaSmrg_LT_OUTPUT_LIBTOOL_COMMANDS 67904007ebaSmrgAS_EXIT(0) 68004007ebaSmrg_LTEOF 68104007ebaSmrgchmod +x "$CONFIG_LT" 68204007ebaSmrg 68304007ebaSmrg# configure is writing to config.log, but config.lt does its own redirection, 68404007ebaSmrg# appending to config.log, which fails on DOS, as config.log is still kept 68504007ebaSmrg# open by configure. Here we exec the FD to /dev/null, effectively closing 68604007ebaSmrg# config.log, so it can be properly (re)opened and appended to by config.lt. 68704007ebaSmrglt_cl_success=: 68804007ebaSmrgtest "$silent" = yes && 68904007ebaSmrg lt_config_lt_args="$lt_config_lt_args --quiet" 69004007ebaSmrgexec AS_MESSAGE_LOG_FD>/dev/null 69104007ebaSmrg$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false 69204007ebaSmrgexec AS_MESSAGE_LOG_FD>>config.log 69304007ebaSmrg$lt_cl_success || AS_EXIT(1) 69404007ebaSmrg])# LT_OUTPUT 69504007ebaSmrg 69604007ebaSmrg 69704007ebaSmrg# _LT_CONFIG(TAG) 69804007ebaSmrg# --------------- 69904007ebaSmrg# If TAG is the built-in tag, create an initial libtool script with a 70004007ebaSmrg# default configuration from the untagged config vars. Otherwise add code 70104007ebaSmrg# to config.status for appending the configuration named by TAG from the 70204007ebaSmrg# matching tagged config vars. 70304007ebaSmrgm4_defun([_LT_CONFIG], 70404007ebaSmrg[m4_require([_LT_FILEUTILS_DEFAULTS])dnl 70504007ebaSmrg_LT_CONFIG_SAVE_COMMANDS([ 70604007ebaSmrg m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl 70704007ebaSmrg m4_if(_LT_TAG, [C], [ 70804007ebaSmrg # See if we are running on zsh, and set the options which allow our 70904007ebaSmrg # commands through without removal of \ escapes. 71004007ebaSmrg if test -n "${ZSH_VERSION+set}" ; then 71104007ebaSmrg setopt NO_GLOB_SUBST 71204007ebaSmrg fi 71304007ebaSmrg 71404007ebaSmrg cfgfile="${ofile}T" 71504007ebaSmrg trap "$RM \"$cfgfile\"; exit 1" 1 2 15 71604007ebaSmrg $RM "$cfgfile" 71704007ebaSmrg 71804007ebaSmrg cat <<_LT_EOF >> "$cfgfile" 71904007ebaSmrg#! $SHELL 72004007ebaSmrg 72104007ebaSmrg# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 72204007ebaSmrg# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 72304007ebaSmrg# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 72404007ebaSmrg# NOTE: Changes made to this file will be lost: look at ltmain.sh. 72504007ebaSmrg# 72604007ebaSmrg_LT_COPYING 72704007ebaSmrg_LT_LIBTOOL_TAGS 72804007ebaSmrg 72904007ebaSmrg# ### BEGIN LIBTOOL CONFIG 73004007ebaSmrg_LT_LIBTOOL_CONFIG_VARS 73104007ebaSmrg_LT_LIBTOOL_TAG_VARS 73204007ebaSmrg# ### END LIBTOOL CONFIG 73304007ebaSmrg 73404007ebaSmrg_LT_EOF 73504007ebaSmrg 73604007ebaSmrg case $host_os in 73704007ebaSmrg aix3*) 73804007ebaSmrg cat <<\_LT_EOF >> "$cfgfile" 73904007ebaSmrg# AIX sometimes has problems with the GCC collect2 program. For some 74004007ebaSmrg# reason, if we set the COLLECT_NAMES environment variable, the problems 74104007ebaSmrg# vanish in a puff of smoke. 74204007ebaSmrgif test "X${COLLECT_NAMES+set}" != Xset; then 74304007ebaSmrg COLLECT_NAMES= 74404007ebaSmrg export COLLECT_NAMES 74504007ebaSmrgfi 74604007ebaSmrg_LT_EOF 74704007ebaSmrg ;; 74804007ebaSmrg esac 74904007ebaSmrg 75004007ebaSmrg _LT_PROG_LTMAIN 75104007ebaSmrg 75204007ebaSmrg # We use sed instead of cat because bash on DJGPP gets confused if 75304007ebaSmrg # if finds mixed CR/LF and LF-only lines. Since sed operates in 75404007ebaSmrg # text mode, it properly converts lines to CR/LF. This bash problem 75504007ebaSmrg # is reportedly fixed, but why not run on old versions too? 75604007ebaSmrg sed '$q' "$ltmain" >> "$cfgfile" \ 75704007ebaSmrg || (rm -f "$cfgfile"; exit 1) 75804007ebaSmrg 75904007ebaSmrg _LT_PROG_REPLACE_SHELLFNS 76004007ebaSmrg 76104007ebaSmrg mv -f "$cfgfile" "$ofile" || 76204007ebaSmrg (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 76304007ebaSmrg chmod +x "$ofile" 76404007ebaSmrg], 76504007ebaSmrg[cat <<_LT_EOF >> "$ofile" 76604007ebaSmrg 76704007ebaSmrgdnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded 76804007ebaSmrgdnl in a comment (ie after a #). 76904007ebaSmrg# ### BEGIN LIBTOOL TAG CONFIG: $1 77004007ebaSmrg_LT_LIBTOOL_TAG_VARS(_LT_TAG) 77104007ebaSmrg# ### END LIBTOOL TAG CONFIG: $1 77204007ebaSmrg_LT_EOF 77304007ebaSmrg])dnl /m4_if 77404007ebaSmrg], 77504007ebaSmrg[m4_if([$1], [], [ 77604007ebaSmrg PACKAGE='$PACKAGE' 77704007ebaSmrg VERSION='$VERSION' 77804007ebaSmrg TIMESTAMP='$TIMESTAMP' 77904007ebaSmrg RM='$RM' 78004007ebaSmrg ofile='$ofile'], []) 78104007ebaSmrg])dnl /_LT_CONFIG_SAVE_COMMANDS 78204007ebaSmrg])# _LT_CONFIG 78304007ebaSmrg 78404007ebaSmrg 78504007ebaSmrg# LT_SUPPORTED_TAG(TAG) 78604007ebaSmrg# --------------------- 78704007ebaSmrg# Trace this macro to discover what tags are supported by the libtool 78804007ebaSmrg# --tag option, using: 78904007ebaSmrg# autoconf --trace 'LT_SUPPORTED_TAG:$1' 79004007ebaSmrgAC_DEFUN([LT_SUPPORTED_TAG], []) 79104007ebaSmrg 79204007ebaSmrg 79304007ebaSmrg# C support is built-in for now 79404007ebaSmrgm4_define([_LT_LANG_C_enabled], []) 79504007ebaSmrgm4_define([_LT_TAGS], []) 79604007ebaSmrg 79704007ebaSmrg 79804007ebaSmrg# LT_LANG(LANG) 79904007ebaSmrg# ------------- 80004007ebaSmrg# Enable libtool support for the given language if not already enabled. 80104007ebaSmrgAC_DEFUN([LT_LANG], 80204007ebaSmrg[AC_BEFORE([$0], [LT_OUTPUT])dnl 80304007ebaSmrgm4_case([$1], 80404007ebaSmrg [C], [_LT_LANG(C)], 80504007ebaSmrg [C++], [_LT_LANG(CXX)], 80604007ebaSmrg [Go], [_LT_LANG(GO)], 80704007ebaSmrg [Java], [_LT_LANG(GCJ)], 80804007ebaSmrg [Fortran 77], [_LT_LANG(F77)], 80904007ebaSmrg [Fortran], [_LT_LANG(FC)], 81004007ebaSmrg [Windows Resource], [_LT_LANG(RC)], 81104007ebaSmrg [m4_ifdef([_LT_LANG_]$1[_CONFIG], 81204007ebaSmrg [_LT_LANG($1)], 81304007ebaSmrg [m4_fatal([$0: unsupported language: "$1"])])])dnl 81404007ebaSmrg])# LT_LANG 81504007ebaSmrg 81604007ebaSmrg 81704007ebaSmrg# _LT_LANG(LANGNAME) 81804007ebaSmrg# ------------------ 81904007ebaSmrgm4_defun([_LT_LANG], 82004007ebaSmrg[m4_ifdef([_LT_LANG_]$1[_enabled], [], 82104007ebaSmrg [LT_SUPPORTED_TAG([$1])dnl 82204007ebaSmrg m4_append([_LT_TAGS], [$1 ])dnl 82304007ebaSmrg m4_define([_LT_LANG_]$1[_enabled], [])dnl 82404007ebaSmrg _LT_LANG_$1_CONFIG($1)])dnl 82504007ebaSmrg])# _LT_LANG 82604007ebaSmrg 82704007ebaSmrg 82804007ebaSmrgm4_ifndef([AC_PROG_GO], [ 82904007ebaSmrg############################################################ 83004007ebaSmrg# NOTE: This macro has been submitted for inclusion into # 83104007ebaSmrg# GNU Autoconf as AC_PROG_GO. When it is available in # 83204007ebaSmrg# a released version of Autoconf we should remove this # 83304007ebaSmrg# macro and use it instead. # 83404007ebaSmrg############################################################ 83504007ebaSmrgm4_defun([AC_PROG_GO], 83604007ebaSmrg[AC_LANG_PUSH(Go)dnl 83704007ebaSmrgAC_ARG_VAR([GOC], [Go compiler command])dnl 83804007ebaSmrgAC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl 83904007ebaSmrg_AC_ARG_VAR_LDFLAGS()dnl 84004007ebaSmrgAC_CHECK_TOOL(GOC, gccgo) 84104007ebaSmrgif test -z "$GOC"; then 84204007ebaSmrg if test -n "$ac_tool_prefix"; then 84304007ebaSmrg AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo]) 84404007ebaSmrg fi 84504007ebaSmrgfi 84604007ebaSmrgif test -z "$GOC"; then 84704007ebaSmrg AC_CHECK_PROG(GOC, gccgo, gccgo, false) 84804007ebaSmrgfi 84904007ebaSmrg])#m4_defun 85004007ebaSmrg])#m4_ifndef 85104007ebaSmrg 85204007ebaSmrg 85304007ebaSmrg# _LT_LANG_DEFAULT_CONFIG 85404007ebaSmrg# ----------------------- 85504007ebaSmrgm4_defun([_LT_LANG_DEFAULT_CONFIG], 85604007ebaSmrg[AC_PROVIDE_IFELSE([AC_PROG_CXX], 85704007ebaSmrg [LT_LANG(CXX)], 85804007ebaSmrg [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])]) 85904007ebaSmrg 86004007ebaSmrgAC_PROVIDE_IFELSE([AC_PROG_F77], 86104007ebaSmrg [LT_LANG(F77)], 86204007ebaSmrg [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])]) 86304007ebaSmrg 86404007ebaSmrgAC_PROVIDE_IFELSE([AC_PROG_FC], 86504007ebaSmrg [LT_LANG(FC)], 86604007ebaSmrg [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])]) 86704007ebaSmrg 86804007ebaSmrgdnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal 86904007ebaSmrgdnl pulling things in needlessly. 87004007ebaSmrgAC_PROVIDE_IFELSE([AC_PROG_GCJ], 87104007ebaSmrg [LT_LANG(GCJ)], 87204007ebaSmrg [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], 87304007ebaSmrg [LT_LANG(GCJ)], 87404007ebaSmrg [AC_PROVIDE_IFELSE([LT_PROG_GCJ], 87504007ebaSmrg [LT_LANG(GCJ)], 87604007ebaSmrg [m4_ifdef([AC_PROG_GCJ], 87704007ebaSmrg [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])]) 87804007ebaSmrg m4_ifdef([A][M_PROG_GCJ], 87904007ebaSmrg [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])]) 88004007ebaSmrg m4_ifdef([LT_PROG_GCJ], 88104007ebaSmrg [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])]) 88204007ebaSmrg 88304007ebaSmrgAC_PROVIDE_IFELSE([AC_PROG_GO], 88404007ebaSmrg [LT_LANG(GO)], 88504007ebaSmrg [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])]) 88604007ebaSmrg 88704007ebaSmrgAC_PROVIDE_IFELSE([LT_PROG_RC], 88804007ebaSmrg [LT_LANG(RC)], 88904007ebaSmrg [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])]) 89004007ebaSmrg])# _LT_LANG_DEFAULT_CONFIG 89104007ebaSmrg 89204007ebaSmrg# Obsolete macros: 89304007ebaSmrgAU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)]) 89404007ebaSmrgAU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)]) 89504007ebaSmrgAU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)]) 89604007ebaSmrgAU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)]) 89704007ebaSmrgAU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)]) 89804007ebaSmrgdnl aclocal-1.4 backwards compatibility: 89904007ebaSmrgdnl AC_DEFUN([AC_LIBTOOL_CXX], []) 90004007ebaSmrgdnl AC_DEFUN([AC_LIBTOOL_F77], []) 90104007ebaSmrgdnl AC_DEFUN([AC_LIBTOOL_FC], []) 90204007ebaSmrgdnl AC_DEFUN([AC_LIBTOOL_GCJ], []) 90304007ebaSmrgdnl AC_DEFUN([AC_LIBTOOL_RC], []) 90404007ebaSmrg 90504007ebaSmrg 90604007ebaSmrg# _LT_TAG_COMPILER 90704007ebaSmrg# ---------------- 90804007ebaSmrgm4_defun([_LT_TAG_COMPILER], 90904007ebaSmrg[AC_REQUIRE([AC_PROG_CC])dnl 91004007ebaSmrg 91104007ebaSmrg_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl 91204007ebaSmrg_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl 91304007ebaSmrg_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl 91404007ebaSmrg_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl 91504007ebaSmrg 91604007ebaSmrg# If no C compiler was specified, use CC. 91704007ebaSmrgLTCC=${LTCC-"$CC"} 91804007ebaSmrg 91904007ebaSmrg# If no C compiler flags were specified, use CFLAGS. 92004007ebaSmrgLTCFLAGS=${LTCFLAGS-"$CFLAGS"} 92104007ebaSmrg 92204007ebaSmrg# Allow CC to be a program name with arguments. 92304007ebaSmrgcompiler=$CC 92404007ebaSmrg])# _LT_TAG_COMPILER 92504007ebaSmrg 92604007ebaSmrg 92704007ebaSmrg# _LT_COMPILER_BOILERPLATE 92804007ebaSmrg# ------------------------ 92904007ebaSmrg# Check for compiler boilerplate output or warnings with 93004007ebaSmrg# the simple compiler test code. 93104007ebaSmrgm4_defun([_LT_COMPILER_BOILERPLATE], 93204007ebaSmrg[m4_require([_LT_DECL_SED])dnl 93304007ebaSmrgac_outfile=conftest.$ac_objext 93404007ebaSmrgecho "$lt_simple_compile_test_code" >conftest.$ac_ext 93504007ebaSmrgeval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 93604007ebaSmrg_lt_compiler_boilerplate=`cat conftest.err` 93704007ebaSmrg$RM conftest* 93804007ebaSmrg])# _LT_COMPILER_BOILERPLATE 93904007ebaSmrg 94004007ebaSmrg 94104007ebaSmrg# _LT_LINKER_BOILERPLATE 94204007ebaSmrg# ---------------------- 94304007ebaSmrg# Check for linker boilerplate output or warnings with 94404007ebaSmrg# the simple link test code. 94504007ebaSmrgm4_defun([_LT_LINKER_BOILERPLATE], 94604007ebaSmrg[m4_require([_LT_DECL_SED])dnl 94704007ebaSmrgac_outfile=conftest.$ac_objext 94804007ebaSmrgecho "$lt_simple_link_test_code" >conftest.$ac_ext 94904007ebaSmrgeval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 95004007ebaSmrg_lt_linker_boilerplate=`cat conftest.err` 95104007ebaSmrg$RM -r conftest* 95204007ebaSmrg])# _LT_LINKER_BOILERPLATE 95304007ebaSmrg 95404007ebaSmrg# _LT_REQUIRED_DARWIN_CHECKS 95504007ebaSmrg# ------------------------- 95604007ebaSmrgm4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[ 95704007ebaSmrg case $host_os in 95804007ebaSmrg rhapsody* | darwin*) 95904007ebaSmrg AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:]) 96004007ebaSmrg AC_CHECK_TOOL([NMEDIT], [nmedit], [:]) 96104007ebaSmrg AC_CHECK_TOOL([LIPO], [lipo], [:]) 96204007ebaSmrg AC_CHECK_TOOL([OTOOL], [otool], [:]) 96304007ebaSmrg AC_CHECK_TOOL([OTOOL64], [otool64], [:]) 96404007ebaSmrg _LT_DECL([], [DSYMUTIL], [1], 96504007ebaSmrg [Tool to manipulate archived DWARF debug symbol files on Mac OS X]) 96604007ebaSmrg _LT_DECL([], [NMEDIT], [1], 96704007ebaSmrg [Tool to change global to local symbols on Mac OS X]) 96804007ebaSmrg _LT_DECL([], [LIPO], [1], 96904007ebaSmrg [Tool to manipulate fat objects and archives on Mac OS X]) 97004007ebaSmrg _LT_DECL([], [OTOOL], [1], 97104007ebaSmrg [ldd/readelf like tool for Mach-O binaries on Mac OS X]) 97204007ebaSmrg _LT_DECL([], [OTOOL64], [1], 97304007ebaSmrg [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4]) 97404007ebaSmrg 97504007ebaSmrg AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod], 97604007ebaSmrg [lt_cv_apple_cc_single_mod=no 97704007ebaSmrg if test -z "${LT_MULTI_MODULE}"; then 97804007ebaSmrg # By default we will add the -single_module flag. You can override 97904007ebaSmrg # by either setting the environment variable LT_MULTI_MODULE 98004007ebaSmrg # non-empty at configure time, or by adding -multi_module to the 98104007ebaSmrg # link flags. 98204007ebaSmrg rm -rf libconftest.dylib* 98304007ebaSmrg echo "int foo(void){return 1;}" > conftest.c 98404007ebaSmrg echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 98504007ebaSmrg-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD 98604007ebaSmrg $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 98704007ebaSmrg -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 98804007ebaSmrg _lt_result=$? 98904007ebaSmrg # If there is a non-empty error log, and "single_module" 99004007ebaSmrg # appears in it, assume the flag caused a linker warning 99104007ebaSmrg if test -s conftest.err && $GREP single_module conftest.err; then 99204007ebaSmrg cat conftest.err >&AS_MESSAGE_LOG_FD 99304007ebaSmrg # Otherwise, if the output was created with a 0 exit code from 99404007ebaSmrg # the compiler, it worked. 99504007ebaSmrg elif test -f libconftest.dylib && test $_lt_result -eq 0; then 99604007ebaSmrg lt_cv_apple_cc_single_mod=yes 99704007ebaSmrg else 99804007ebaSmrg cat conftest.err >&AS_MESSAGE_LOG_FD 99904007ebaSmrg fi 100004007ebaSmrg rm -rf libconftest.dylib* 100104007ebaSmrg rm -f conftest.* 100204007ebaSmrg fi]) 100304007ebaSmrg 100404007ebaSmrg AC_CACHE_CHECK([for -exported_symbols_list linker flag], 100504007ebaSmrg [lt_cv_ld_exported_symbols_list], 100604007ebaSmrg [lt_cv_ld_exported_symbols_list=no 100704007ebaSmrg save_LDFLAGS=$LDFLAGS 100804007ebaSmrg echo "_main" > conftest.sym 100904007ebaSmrg LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 101004007ebaSmrg AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], 101104007ebaSmrg [lt_cv_ld_exported_symbols_list=yes], 101204007ebaSmrg [lt_cv_ld_exported_symbols_list=no]) 101304007ebaSmrg LDFLAGS="$save_LDFLAGS" 101404007ebaSmrg ]) 101504007ebaSmrg 101604007ebaSmrg AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load], 101704007ebaSmrg [lt_cv_ld_force_load=no 101804007ebaSmrg cat > conftest.c << _LT_EOF 101904007ebaSmrgint forced_loaded() { return 2;} 102004007ebaSmrg_LT_EOF 102104007ebaSmrg echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD 102204007ebaSmrg $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD 102304007ebaSmrg echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD 102404007ebaSmrg $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD 102504007ebaSmrg echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD 102604007ebaSmrg $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD 102704007ebaSmrg cat > conftest.c << _LT_EOF 102804007ebaSmrgint main() { return 0;} 102904007ebaSmrg_LT_EOF 103004007ebaSmrg echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD 103104007ebaSmrg $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 103204007ebaSmrg _lt_result=$? 103304007ebaSmrg if test -s conftest.err && $GREP force_load conftest.err; then 103404007ebaSmrg cat conftest.err >&AS_MESSAGE_LOG_FD 103504007ebaSmrg elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 103604007ebaSmrg lt_cv_ld_force_load=yes 103704007ebaSmrg else 103804007ebaSmrg cat conftest.err >&AS_MESSAGE_LOG_FD 103904007ebaSmrg fi 104004007ebaSmrg rm -f conftest.err libconftest.a conftest conftest.c 104104007ebaSmrg rm -rf conftest.dSYM 104204007ebaSmrg ]) 104304007ebaSmrg case $host_os in 104404007ebaSmrg rhapsody* | darwin1.[[012]]) 104504007ebaSmrg _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 104604007ebaSmrg darwin1.*) 104704007ebaSmrg _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 104804007ebaSmrg darwin*) # darwin 5.x on 104904007ebaSmrg # if running on 10.5 or later, the deployment target defaults 105004007ebaSmrg # to the OS version, if on x86, and 10.4, the deployment 105104007ebaSmrg # target defaults to 10.4. Don't you love it? 105204007ebaSmrg case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 105304007ebaSmrg 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*) 105404007ebaSmrg _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 105504007ebaSmrg 10.[[012]]*) 105604007ebaSmrg _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 105704007ebaSmrg 10.*) 105804007ebaSmrg _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 105904007ebaSmrg esac 106004007ebaSmrg ;; 106104007ebaSmrg esac 106204007ebaSmrg if test "$lt_cv_apple_cc_single_mod" = "yes"; then 106304007ebaSmrg _lt_dar_single_mod='$single_module' 106404007ebaSmrg fi 106504007ebaSmrg if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 106604007ebaSmrg _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 106704007ebaSmrg else 106804007ebaSmrg _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 106904007ebaSmrg fi 107004007ebaSmrg if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 107104007ebaSmrg _lt_dsymutil='~$DSYMUTIL $lib || :' 107204007ebaSmrg else 107304007ebaSmrg _lt_dsymutil= 107404007ebaSmrg fi 107504007ebaSmrg ;; 107604007ebaSmrg esac 107704007ebaSmrg]) 107804007ebaSmrg 107904007ebaSmrg 108004007ebaSmrg# _LT_DARWIN_LINKER_FEATURES([TAG]) 108104007ebaSmrg# --------------------------------- 108204007ebaSmrg# Checks for linker and compiler features on darwin 108304007ebaSmrgm4_defun([_LT_DARWIN_LINKER_FEATURES], 108404007ebaSmrg[ 108504007ebaSmrg m4_require([_LT_REQUIRED_DARWIN_CHECKS]) 108604007ebaSmrg _LT_TAGVAR(archive_cmds_need_lc, $1)=no 108704007ebaSmrg _LT_TAGVAR(hardcode_direct, $1)=no 108804007ebaSmrg _LT_TAGVAR(hardcode_automatic, $1)=yes 108904007ebaSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 109004007ebaSmrg if test "$lt_cv_ld_force_load" = "yes"; then 109104007ebaSmrg _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\"`' 109204007ebaSmrg m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes], 109304007ebaSmrg [FC], [_LT_TAGVAR(compiler_needs_object, $1)=yes]) 109404007ebaSmrg else 109504007ebaSmrg _LT_TAGVAR(whole_archive_flag_spec, $1)='' 109604007ebaSmrg fi 109704007ebaSmrg _LT_TAGVAR(link_all_deplibs, $1)=yes 109804007ebaSmrg _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined" 109904007ebaSmrg case $cc_basename in 110004007ebaSmrg ifort*) _lt_dar_can_shared=yes ;; 110104007ebaSmrg *) _lt_dar_can_shared=$GCC ;; 110204007ebaSmrg esac 110304007ebaSmrg if test "$_lt_dar_can_shared" = "yes"; then 110404007ebaSmrg output_verbose_link_cmd=func_echo_all 110504007ebaSmrg _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}" 110604007ebaSmrg _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 110704007ebaSmrg _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}" 110804007ebaSmrg _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}" 110904007ebaSmrg m4_if([$1], [CXX], 111004007ebaSmrg[ if test "$lt_cv_apple_cc_single_mod" != "yes"; then 111104007ebaSmrg _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}" 111204007ebaSmrg _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}" 111304007ebaSmrg fi 111404007ebaSmrg],[]) 111504007ebaSmrg else 111604007ebaSmrg _LT_TAGVAR(ld_shlibs, $1)=no 111704007ebaSmrg fi 111804007ebaSmrg]) 111904007ebaSmrg 112004007ebaSmrg# _LT_SYS_MODULE_PATH_AIX([TAGNAME]) 112104007ebaSmrg# ---------------------------------- 112204007ebaSmrg# Links a minimal program and checks the executable 112304007ebaSmrg# for the system default hardcoded library path. In most cases, 112404007ebaSmrg# this is /usr/lib:/lib, but when the MPI compilers are used 112504007ebaSmrg# the location of the communication and MPI libs are included too. 112604007ebaSmrg# If we don't find anything, use the default library path according 112704007ebaSmrg# to the aix ld manual. 112804007ebaSmrg# Store the results from the different compilers for each TAGNAME. 112904007ebaSmrg# Allow to override them for all tags through lt_cv_aix_libpath. 113004007ebaSmrgm4_defun([_LT_SYS_MODULE_PATH_AIX], 113104007ebaSmrg[m4_require([_LT_DECL_SED])dnl 113204007ebaSmrgif test "${lt_cv_aix_libpath+set}" = set; then 113304007ebaSmrg aix_libpath=$lt_cv_aix_libpath 113404007ebaSmrgelse 113504007ebaSmrg AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])], 113604007ebaSmrg [AC_LINK_IFELSE([AC_LANG_PROGRAM],[ 113704007ebaSmrg lt_aix_libpath_sed='[ 113804007ebaSmrg /Import File Strings/,/^$/ { 113904007ebaSmrg /^0/ { 114004007ebaSmrg s/^0 *\([^ ]*\) *$/\1/ 114104007ebaSmrg p 114204007ebaSmrg } 114304007ebaSmrg }]' 114404007ebaSmrg _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 114504007ebaSmrg # Check for a 64-bit object if we didn't find anything. 114604007ebaSmrg if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then 114704007ebaSmrg _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 114804007ebaSmrg fi],[]) 114904007ebaSmrg if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then 115004007ebaSmrg _LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib" 115104007ebaSmrg fi 115204007ebaSmrg ]) 115304007ebaSmrg aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1]) 115404007ebaSmrgfi 115504007ebaSmrg])# _LT_SYS_MODULE_PATH_AIX 115604007ebaSmrg 115704007ebaSmrg 115804007ebaSmrg# _LT_SHELL_INIT(ARG) 115904007ebaSmrg# ------------------- 116004007ebaSmrgm4_define([_LT_SHELL_INIT], 116104007ebaSmrg[m4_divert_text([M4SH-INIT], [$1 116204007ebaSmrg])])# _LT_SHELL_INIT 116304007ebaSmrg 116404007ebaSmrg 116504007ebaSmrg 116604007ebaSmrg# _LT_PROG_ECHO_BACKSLASH 116704007ebaSmrg# ----------------------- 116804007ebaSmrg# Find how we can fake an echo command that does not interpret backslash. 116904007ebaSmrg# In particular, with Autoconf 2.60 or later we add some code to the start 117004007ebaSmrg# of the generated configure script which will find a shell with a builtin 117104007ebaSmrg# printf (which we can use as an echo command). 117204007ebaSmrgm4_defun([_LT_PROG_ECHO_BACKSLASH], 117304007ebaSmrg[ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 117404007ebaSmrgECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 117504007ebaSmrgECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 117604007ebaSmrg 117704007ebaSmrgAC_MSG_CHECKING([how to print strings]) 117804007ebaSmrg# Test print first, because it will be a builtin if present. 117904007ebaSmrgif test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 118004007ebaSmrg test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 118104007ebaSmrg ECHO='print -r --' 118204007ebaSmrgelif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 118304007ebaSmrg ECHO='printf %s\n' 118404007ebaSmrgelse 118504007ebaSmrg # Use this function as a fallback that always works. 118604007ebaSmrg func_fallback_echo () 118704007ebaSmrg { 118804007ebaSmrg eval 'cat <<_LTECHO_EOF 118904007ebaSmrg$[]1 119004007ebaSmrg_LTECHO_EOF' 119104007ebaSmrg } 119204007ebaSmrg ECHO='func_fallback_echo' 119304007ebaSmrgfi 119404007ebaSmrg 119504007ebaSmrg# func_echo_all arg... 119604007ebaSmrg# Invoke $ECHO with all args, space-separated. 119704007ebaSmrgfunc_echo_all () 119804007ebaSmrg{ 119904007ebaSmrg $ECHO "$*" 120004007ebaSmrg} 120104007ebaSmrg 120204007ebaSmrgcase "$ECHO" in 120304007ebaSmrg printf*) AC_MSG_RESULT([printf]) ;; 120404007ebaSmrg print*) AC_MSG_RESULT([print -r]) ;; 120504007ebaSmrg *) AC_MSG_RESULT([cat]) ;; 120604007ebaSmrgesac 120704007ebaSmrg 120804007ebaSmrgm4_ifdef([_AS_DETECT_SUGGESTED], 120904007ebaSmrg[_AS_DETECT_SUGGESTED([ 121004007ebaSmrg test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || ( 121104007ebaSmrg ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 121204007ebaSmrg ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 121304007ebaSmrg ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 121404007ebaSmrg PATH=/empty FPATH=/empty; export PATH FPATH 121504007ebaSmrg test "X`printf %s $ECHO`" = "X$ECHO" \ 121604007ebaSmrg || test "X`print -r -- $ECHO`" = "X$ECHO" )])]) 121704007ebaSmrg 121804007ebaSmrg_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts]) 121904007ebaSmrg_LT_DECL([], [ECHO], [1], [An echo program that protects backslashes]) 122004007ebaSmrg])# _LT_PROG_ECHO_BACKSLASH 122104007ebaSmrg 122204007ebaSmrg 122304007ebaSmrg# _LT_WITH_SYSROOT 122404007ebaSmrg# ---------------- 122504007ebaSmrgAC_DEFUN([_LT_WITH_SYSROOT], 122604007ebaSmrg[AC_MSG_CHECKING([for sysroot]) 122704007ebaSmrgAC_ARG_WITH([sysroot], 122804007ebaSmrg[ --with-sysroot[=DIR] Search for dependent libraries within DIR 122904007ebaSmrg (or the compiler's sysroot if not specified).], 123004007ebaSmrg[], [with_sysroot=no]) 123104007ebaSmrg 123204007ebaSmrgdnl lt_sysroot will always be passed unquoted. We quote it here 123304007ebaSmrgdnl in case the user passed a directory name. 123404007ebaSmrglt_sysroot= 123504007ebaSmrgcase ${with_sysroot} in #( 123604007ebaSmrg yes) 123704007ebaSmrg if test "$GCC" = yes; then 123804007ebaSmrg lt_sysroot=`$CC --print-sysroot 2>/dev/null` 123904007ebaSmrg fi 124004007ebaSmrg ;; #( 124104007ebaSmrg /*) 124204007ebaSmrg lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 124304007ebaSmrg ;; #( 124404007ebaSmrg no|'') 124504007ebaSmrg ;; #( 124604007ebaSmrg *) 124704007ebaSmrg AC_MSG_RESULT([${with_sysroot}]) 124804007ebaSmrg AC_MSG_ERROR([The sysroot must be an absolute path.]) 124904007ebaSmrg ;; 125004007ebaSmrgesac 125104007ebaSmrg 125204007ebaSmrg AC_MSG_RESULT([${lt_sysroot:-no}]) 125304007ebaSmrg_LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl 125404007ebaSmrg[dependent libraries, and in which our libraries should be installed.])]) 125504007ebaSmrg 125604007ebaSmrg# _LT_ENABLE_LOCK 125704007ebaSmrg# --------------- 125804007ebaSmrgm4_defun([_LT_ENABLE_LOCK], 125904007ebaSmrg[AC_ARG_ENABLE([libtool-lock], 126004007ebaSmrg [AS_HELP_STRING([--disable-libtool-lock], 126104007ebaSmrg [avoid locking (might break parallel builds)])]) 126204007ebaSmrgtest "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 126304007ebaSmrg 126404007ebaSmrg# Some flags need to be propagated to the compiler or linker for good 126504007ebaSmrg# libtool support. 126604007ebaSmrgcase $host in 126704007ebaSmrgia64-*-hpux*) 126804007ebaSmrg # Find out which ABI we are using. 126904007ebaSmrg echo 'int i;' > conftest.$ac_ext 127004007ebaSmrg if AC_TRY_EVAL(ac_compile); then 127104007ebaSmrg case `/usr/bin/file conftest.$ac_objext` in 127204007ebaSmrg *ELF-32*) 127304007ebaSmrg HPUX_IA64_MODE="32" 127404007ebaSmrg ;; 127504007ebaSmrg *ELF-64*) 127604007ebaSmrg HPUX_IA64_MODE="64" 127704007ebaSmrg ;; 127804007ebaSmrg esac 127904007ebaSmrg fi 128004007ebaSmrg rm -rf conftest* 128104007ebaSmrg ;; 128204007ebaSmrg*-*-irix6*) 128304007ebaSmrg # Find out which ABI we are using. 128404007ebaSmrg echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext 128504007ebaSmrg if AC_TRY_EVAL(ac_compile); then 128604007ebaSmrg if test "$lt_cv_prog_gnu_ld" = yes; then 128704007ebaSmrg case `/usr/bin/file conftest.$ac_objext` in 128804007ebaSmrg *32-bit*) 128904007ebaSmrg LD="${LD-ld} -melf32bsmip" 129004007ebaSmrg ;; 129104007ebaSmrg *N32*) 129204007ebaSmrg LD="${LD-ld} -melf32bmipn32" 129304007ebaSmrg ;; 129404007ebaSmrg *64-bit*) 129504007ebaSmrg LD="${LD-ld} -melf64bmip" 129604007ebaSmrg ;; 129704007ebaSmrg esac 129804007ebaSmrg else 129904007ebaSmrg case `/usr/bin/file conftest.$ac_objext` in 130004007ebaSmrg *32-bit*) 130104007ebaSmrg LD="${LD-ld} -32" 130204007ebaSmrg ;; 130304007ebaSmrg *N32*) 130404007ebaSmrg LD="${LD-ld} -n32" 130504007ebaSmrg ;; 130604007ebaSmrg *64-bit*) 130704007ebaSmrg LD="${LD-ld} -64" 130804007ebaSmrg ;; 130904007ebaSmrg esac 131004007ebaSmrg fi 131104007ebaSmrg fi 131204007ebaSmrg rm -rf conftest* 131304007ebaSmrg ;; 131404007ebaSmrg 13157f419768Smrgx86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 131604007ebaSmrgs390*-*linux*|s390*-*tpf*|sparc*-*linux*) 131704007ebaSmrg # Find out which ABI we are using. 131804007ebaSmrg echo 'int i;' > conftest.$ac_ext 131904007ebaSmrg if AC_TRY_EVAL(ac_compile); then 132004007ebaSmrg case `/usr/bin/file conftest.o` in 132104007ebaSmrg *32-bit*) 132204007ebaSmrg case $host in 132304007ebaSmrg x86_64-*kfreebsd*-gnu) 132404007ebaSmrg LD="${LD-ld} -m elf_i386_fbsd" 132504007ebaSmrg ;; 132604007ebaSmrg x86_64-*linux*) 132704007ebaSmrg case `/usr/bin/file conftest.o` in 132804007ebaSmrg *x86-64*) 132904007ebaSmrg LD="${LD-ld} -m elf32_x86_64" 133004007ebaSmrg ;; 133104007ebaSmrg *) 133204007ebaSmrg LD="${LD-ld} -m elf_i386" 133304007ebaSmrg ;; 133404007ebaSmrg esac 133504007ebaSmrg ;; 13367f419768Smrg powerpc64le-*) 13377f419768Smrg LD="${LD-ld} -m elf32lppclinux" 13387f419768Smrg ;; 13397f419768Smrg powerpc64-*) 134004007ebaSmrg LD="${LD-ld} -m elf32ppclinux" 134104007ebaSmrg ;; 134204007ebaSmrg s390x-*linux*) 134304007ebaSmrg LD="${LD-ld} -m elf_s390" 134404007ebaSmrg ;; 134504007ebaSmrg sparc64-*linux*) 134604007ebaSmrg LD="${LD-ld} -m elf32_sparc" 134704007ebaSmrg ;; 134804007ebaSmrg esac 134904007ebaSmrg ;; 135004007ebaSmrg *64-bit*) 135104007ebaSmrg case $host in 135204007ebaSmrg x86_64-*kfreebsd*-gnu) 135304007ebaSmrg LD="${LD-ld} -m elf_x86_64_fbsd" 135404007ebaSmrg ;; 135504007ebaSmrg x86_64-*linux*) 135604007ebaSmrg LD="${LD-ld} -m elf_x86_64" 135704007ebaSmrg ;; 13587f419768Smrg powerpcle-*) 13597f419768Smrg LD="${LD-ld} -m elf64lppc" 13607f419768Smrg ;; 13617f419768Smrg powerpc-*) 136204007ebaSmrg LD="${LD-ld} -m elf64ppc" 136304007ebaSmrg ;; 136404007ebaSmrg s390*-*linux*|s390*-*tpf*) 136504007ebaSmrg LD="${LD-ld} -m elf64_s390" 136604007ebaSmrg ;; 136704007ebaSmrg sparc*-*linux*) 136804007ebaSmrg LD="${LD-ld} -m elf64_sparc" 136904007ebaSmrg ;; 137004007ebaSmrg esac 137104007ebaSmrg ;; 137204007ebaSmrg esac 137304007ebaSmrg fi 137404007ebaSmrg rm -rf conftest* 137504007ebaSmrg ;; 137604007ebaSmrg 137704007ebaSmrg*-*-sco3.2v5*) 137804007ebaSmrg # On SCO OpenServer 5, we need -belf to get full-featured binaries. 137904007ebaSmrg SAVE_CFLAGS="$CFLAGS" 138004007ebaSmrg CFLAGS="$CFLAGS -belf" 138104007ebaSmrg AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, 138204007ebaSmrg [AC_LANG_PUSH(C) 138304007ebaSmrg AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) 138404007ebaSmrg AC_LANG_POP]) 138504007ebaSmrg if test x"$lt_cv_cc_needs_belf" != x"yes"; then 138604007ebaSmrg # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 138704007ebaSmrg CFLAGS="$SAVE_CFLAGS" 138804007ebaSmrg fi 138904007ebaSmrg ;; 139004007ebaSmrg*-*solaris*) 139104007ebaSmrg # Find out which ABI we are using. 139204007ebaSmrg echo 'int i;' > conftest.$ac_ext 139304007ebaSmrg if AC_TRY_EVAL(ac_compile); then 139404007ebaSmrg case `/usr/bin/file conftest.o` in 139504007ebaSmrg *64-bit*) 139604007ebaSmrg case $lt_cv_prog_gnu_ld in 139704007ebaSmrg yes*) 139804007ebaSmrg case $host in 139904007ebaSmrg i?86-*-solaris*) 140004007ebaSmrg LD="${LD-ld} -m elf_x86_64" 140104007ebaSmrg ;; 140204007ebaSmrg sparc*-*-solaris*) 140304007ebaSmrg LD="${LD-ld} -m elf64_sparc" 140404007ebaSmrg ;; 140504007ebaSmrg esac 140604007ebaSmrg # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 140704007ebaSmrg if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 140804007ebaSmrg LD="${LD-ld}_sol2" 140904007ebaSmrg fi 141004007ebaSmrg ;; 141104007ebaSmrg *) 141204007ebaSmrg if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 141304007ebaSmrg LD="${LD-ld} -64" 141404007ebaSmrg fi 141504007ebaSmrg ;; 141604007ebaSmrg esac 141704007ebaSmrg ;; 141804007ebaSmrg esac 141904007ebaSmrg fi 142004007ebaSmrg rm -rf conftest* 142104007ebaSmrg ;; 142204007ebaSmrgesac 142304007ebaSmrg 142404007ebaSmrgneed_locks="$enable_libtool_lock" 142504007ebaSmrg])# _LT_ENABLE_LOCK 142604007ebaSmrg 142704007ebaSmrg 142804007ebaSmrg# _LT_PROG_AR 142904007ebaSmrg# ----------- 143004007ebaSmrgm4_defun([_LT_PROG_AR], 143104007ebaSmrg[AC_CHECK_TOOLS(AR, [ar], false) 143204007ebaSmrg: ${AR=ar} 143304007ebaSmrg: ${AR_FLAGS=cru} 143404007ebaSmrg_LT_DECL([], [AR], [1], [The archiver]) 143504007ebaSmrg_LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive]) 143604007ebaSmrg 143704007ebaSmrgAC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file], 143804007ebaSmrg [lt_cv_ar_at_file=no 143904007ebaSmrg AC_COMPILE_IFELSE([AC_LANG_PROGRAM], 144004007ebaSmrg [echo conftest.$ac_objext > conftest.lst 144104007ebaSmrg lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD' 144204007ebaSmrg AC_TRY_EVAL([lt_ar_try]) 144304007ebaSmrg if test "$ac_status" -eq 0; then 144404007ebaSmrg # Ensure the archiver fails upon bogus file names. 144504007ebaSmrg rm -f conftest.$ac_objext libconftest.a 144604007ebaSmrg AC_TRY_EVAL([lt_ar_try]) 144704007ebaSmrg if test "$ac_status" -ne 0; then 144804007ebaSmrg lt_cv_ar_at_file=@ 144904007ebaSmrg fi 145004007ebaSmrg fi 145104007ebaSmrg rm -f conftest.* libconftest.a 145204007ebaSmrg ]) 145304007ebaSmrg ]) 145404007ebaSmrg 145504007ebaSmrgif test "x$lt_cv_ar_at_file" = xno; then 145604007ebaSmrg archiver_list_spec= 145704007ebaSmrgelse 145804007ebaSmrg archiver_list_spec=$lt_cv_ar_at_file 145904007ebaSmrgfi 146004007ebaSmrg_LT_DECL([], [archiver_list_spec], [1], 146104007ebaSmrg [How to feed a file listing to the archiver]) 146204007ebaSmrg])# _LT_PROG_AR 146304007ebaSmrg 146404007ebaSmrg 146504007ebaSmrg# _LT_CMD_OLD_ARCHIVE 146604007ebaSmrg# ------------------- 146704007ebaSmrgm4_defun([_LT_CMD_OLD_ARCHIVE], 146804007ebaSmrg[_LT_PROG_AR 146904007ebaSmrg 147004007ebaSmrgAC_CHECK_TOOL(STRIP, strip, :) 147104007ebaSmrgtest -z "$STRIP" && STRIP=: 147204007ebaSmrg_LT_DECL([], [STRIP], [1], [A symbol stripping program]) 147304007ebaSmrg 147404007ebaSmrgAC_CHECK_TOOL(RANLIB, ranlib, :) 147504007ebaSmrgtest -z "$RANLIB" && RANLIB=: 147604007ebaSmrg_LT_DECL([], [RANLIB], [1], 147704007ebaSmrg [Commands used to install an old-style archive]) 147804007ebaSmrg 147904007ebaSmrg# Determine commands to create old-style static archives. 148004007ebaSmrgold_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 148104007ebaSmrgold_postinstall_cmds='chmod 644 $oldlib' 148204007ebaSmrgold_postuninstall_cmds= 148304007ebaSmrg 148404007ebaSmrgif test -n "$RANLIB"; then 148504007ebaSmrg case $host_os in 148604007ebaSmrg openbsd*) 148704007ebaSmrg old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 148804007ebaSmrg ;; 148904007ebaSmrg *) 149004007ebaSmrg old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 149104007ebaSmrg ;; 149204007ebaSmrg esac 149304007ebaSmrg old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 149404007ebaSmrgfi 149504007ebaSmrg 149604007ebaSmrgcase $host_os in 149704007ebaSmrg darwin*) 149804007ebaSmrg lock_old_archive_extraction=yes ;; 149904007ebaSmrg *) 150004007ebaSmrg lock_old_archive_extraction=no ;; 150104007ebaSmrgesac 150204007ebaSmrg_LT_DECL([], [old_postinstall_cmds], [2]) 150304007ebaSmrg_LT_DECL([], [old_postuninstall_cmds], [2]) 150404007ebaSmrg_LT_TAGDECL([], [old_archive_cmds], [2], 150504007ebaSmrg [Commands used to build an old-style archive]) 150604007ebaSmrg_LT_DECL([], [lock_old_archive_extraction], [0], 150704007ebaSmrg [Whether to use a lock for old archive extraction]) 150804007ebaSmrg])# _LT_CMD_OLD_ARCHIVE 150904007ebaSmrg 151004007ebaSmrg 151104007ebaSmrg# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, 151204007ebaSmrg# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) 151304007ebaSmrg# ---------------------------------------------------------------- 151404007ebaSmrg# Check whether the given compiler option works 151504007ebaSmrgAC_DEFUN([_LT_COMPILER_OPTION], 151604007ebaSmrg[m4_require([_LT_FILEUTILS_DEFAULTS])dnl 151704007ebaSmrgm4_require([_LT_DECL_SED])dnl 151804007ebaSmrgAC_CACHE_CHECK([$1], [$2], 151904007ebaSmrg [$2=no 152004007ebaSmrg m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) 152104007ebaSmrg echo "$lt_simple_compile_test_code" > conftest.$ac_ext 152204007ebaSmrg lt_compiler_flag="$3" 152304007ebaSmrg # Insert the option either (1) after the last *FLAGS variable, or 152404007ebaSmrg # (2) before a word containing "conftest.", or (3) at the end. 152504007ebaSmrg # Note that $ac_compile itself does not contain backslashes and begins 152604007ebaSmrg # with a dollar sign (not a hyphen), so the echo should work correctly. 152704007ebaSmrg # The option is referenced via a variable to avoid confusing sed. 152804007ebaSmrg lt_compile=`echo "$ac_compile" | $SED \ 152904007ebaSmrg -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 153004007ebaSmrg -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ 153104007ebaSmrg -e 's:$: $lt_compiler_flag:'` 153204007ebaSmrg (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD) 153304007ebaSmrg (eval "$lt_compile" 2>conftest.err) 153404007ebaSmrg ac_status=$? 153504007ebaSmrg cat conftest.err >&AS_MESSAGE_LOG_FD 153604007ebaSmrg echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD 153704007ebaSmrg if (exit $ac_status) && test -s "$ac_outfile"; then 153804007ebaSmrg # The compiler can only warn and ignore the option if not recognized 153904007ebaSmrg # So say no if there are warnings other than the usual output. 154004007ebaSmrg $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 154104007ebaSmrg $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 154204007ebaSmrg if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 154304007ebaSmrg $2=yes 154404007ebaSmrg fi 154504007ebaSmrg fi 154604007ebaSmrg $RM conftest* 154704007ebaSmrg]) 154804007ebaSmrg 154904007ebaSmrgif test x"[$]$2" = xyes; then 155004007ebaSmrg m4_if([$5], , :, [$5]) 155104007ebaSmrgelse 155204007ebaSmrg m4_if([$6], , :, [$6]) 155304007ebaSmrgfi 155404007ebaSmrg])# _LT_COMPILER_OPTION 155504007ebaSmrg 155604007ebaSmrg# Old name: 155704007ebaSmrgAU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION]) 155804007ebaSmrgdnl aclocal-1.4 backwards compatibility: 155904007ebaSmrgdnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], []) 156004007ebaSmrg 156104007ebaSmrg 156204007ebaSmrg# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, 156304007ebaSmrg# [ACTION-SUCCESS], [ACTION-FAILURE]) 156404007ebaSmrg# ---------------------------------------------------- 156504007ebaSmrg# Check whether the given linker option works 156604007ebaSmrgAC_DEFUN([_LT_LINKER_OPTION], 156704007ebaSmrg[m4_require([_LT_FILEUTILS_DEFAULTS])dnl 156804007ebaSmrgm4_require([_LT_DECL_SED])dnl 156904007ebaSmrgAC_CACHE_CHECK([$1], [$2], 157004007ebaSmrg [$2=no 157104007ebaSmrg save_LDFLAGS="$LDFLAGS" 157204007ebaSmrg LDFLAGS="$LDFLAGS $3" 157304007ebaSmrg echo "$lt_simple_link_test_code" > conftest.$ac_ext 157404007ebaSmrg if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 157504007ebaSmrg # The linker can only warn and ignore the option if not recognized 157604007ebaSmrg # So say no if there are warnings 157704007ebaSmrg if test -s conftest.err; then 157804007ebaSmrg # Append any errors to the config.log. 157904007ebaSmrg cat conftest.err 1>&AS_MESSAGE_LOG_FD 158004007ebaSmrg $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 158104007ebaSmrg $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 158204007ebaSmrg if diff conftest.exp conftest.er2 >/dev/null; then 158304007ebaSmrg $2=yes 158404007ebaSmrg fi 158504007ebaSmrg else 158604007ebaSmrg $2=yes 158704007ebaSmrg fi 158804007ebaSmrg fi 158904007ebaSmrg $RM -r conftest* 159004007ebaSmrg LDFLAGS="$save_LDFLAGS" 159104007ebaSmrg]) 159204007ebaSmrg 159304007ebaSmrgif test x"[$]$2" = xyes; then 159404007ebaSmrg m4_if([$4], , :, [$4]) 159504007ebaSmrgelse 159604007ebaSmrg m4_if([$5], , :, [$5]) 159704007ebaSmrgfi 159804007ebaSmrg])# _LT_LINKER_OPTION 159904007ebaSmrg 160004007ebaSmrg# Old name: 160104007ebaSmrgAU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION]) 160204007ebaSmrgdnl aclocal-1.4 backwards compatibility: 160304007ebaSmrgdnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], []) 160404007ebaSmrg 160504007ebaSmrg 160604007ebaSmrg# LT_CMD_MAX_LEN 160704007ebaSmrg#--------------- 160804007ebaSmrgAC_DEFUN([LT_CMD_MAX_LEN], 160904007ebaSmrg[AC_REQUIRE([AC_CANONICAL_HOST])dnl 161004007ebaSmrg# find the maximum length of command line arguments 161104007ebaSmrgAC_MSG_CHECKING([the maximum length of command line arguments]) 161204007ebaSmrgAC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl 161304007ebaSmrg i=0 161404007ebaSmrg teststring="ABCD" 161504007ebaSmrg 161604007ebaSmrg case $build_os in 161704007ebaSmrg msdosdjgpp*) 161804007ebaSmrg # On DJGPP, this test can blow up pretty badly due to problems in libc 161904007ebaSmrg # (any single argument exceeding 2000 bytes causes a buffer overrun 162004007ebaSmrg # during glob expansion). Even if it were fixed, the result of this 162104007ebaSmrg # check would be larger than it should be. 162204007ebaSmrg lt_cv_sys_max_cmd_len=12288; # 12K is about right 162304007ebaSmrg ;; 162404007ebaSmrg 162504007ebaSmrg gnu*) 162604007ebaSmrg # Under GNU Hurd, this test is not required because there is 162704007ebaSmrg # no limit to the length of command line arguments. 162804007ebaSmrg # Libtool will interpret -1 as no limit whatsoever 162904007ebaSmrg lt_cv_sys_max_cmd_len=-1; 163004007ebaSmrg ;; 163104007ebaSmrg 163204007ebaSmrg cygwin* | mingw* | cegcc*) 163304007ebaSmrg # On Win9x/ME, this test blows up -- it succeeds, but takes 163404007ebaSmrg # about 5 minutes as the teststring grows exponentially. 163504007ebaSmrg # Worse, since 9x/ME are not pre-emptively multitasking, 163604007ebaSmrg # you end up with a "frozen" computer, even though with patience 163704007ebaSmrg # the test eventually succeeds (with a max line length of 256k). 163804007ebaSmrg # Instead, let's just punt: use the minimum linelength reported by 163904007ebaSmrg # all of the supported platforms: 8192 (on NT/2K/XP). 164004007ebaSmrg lt_cv_sys_max_cmd_len=8192; 164104007ebaSmrg ;; 164204007ebaSmrg 164304007ebaSmrg mint*) 164404007ebaSmrg # On MiNT this can take a long time and run out of memory. 164504007ebaSmrg lt_cv_sys_max_cmd_len=8192; 164604007ebaSmrg ;; 164704007ebaSmrg 164804007ebaSmrg amigaos*) 164904007ebaSmrg # On AmigaOS with pdksh, this test takes hours, literally. 165004007ebaSmrg # So we just punt and use a minimum line length of 8192. 165104007ebaSmrg lt_cv_sys_max_cmd_len=8192; 165204007ebaSmrg ;; 165304007ebaSmrg 165404007ebaSmrg netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 165504007ebaSmrg # This has been around since 386BSD, at least. Likely further. 165604007ebaSmrg if test -x /sbin/sysctl; then 165704007ebaSmrg lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 165804007ebaSmrg elif test -x /usr/sbin/sysctl; then 165904007ebaSmrg lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 166004007ebaSmrg else 166104007ebaSmrg lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 166204007ebaSmrg fi 166304007ebaSmrg # And add a safety zone 166404007ebaSmrg lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 166504007ebaSmrg lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 166604007ebaSmrg ;; 166704007ebaSmrg 166804007ebaSmrg interix*) 166904007ebaSmrg # We know the value 262144 and hardcode it with a safety zone (like BSD) 167004007ebaSmrg lt_cv_sys_max_cmd_len=196608 167104007ebaSmrg ;; 167204007ebaSmrg 167304007ebaSmrg os2*) 167404007ebaSmrg # The test takes a long time on OS/2. 167504007ebaSmrg lt_cv_sys_max_cmd_len=8192 167604007ebaSmrg ;; 167704007ebaSmrg 167804007ebaSmrg osf*) 167904007ebaSmrg # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 168004007ebaSmrg # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 168104007ebaSmrg # nice to cause kernel panics so lets avoid the loop below. 168204007ebaSmrg # First set a reasonable default. 168304007ebaSmrg lt_cv_sys_max_cmd_len=16384 168404007ebaSmrg # 168504007ebaSmrg if test -x /sbin/sysconfig; then 168604007ebaSmrg case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 168704007ebaSmrg *1*) lt_cv_sys_max_cmd_len=-1 ;; 168804007ebaSmrg esac 168904007ebaSmrg fi 169004007ebaSmrg ;; 169104007ebaSmrg sco3.2v5*) 169204007ebaSmrg lt_cv_sys_max_cmd_len=102400 169304007ebaSmrg ;; 169404007ebaSmrg sysv5* | sco5v6* | sysv4.2uw2*) 169504007ebaSmrg kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 169604007ebaSmrg if test -n "$kargmax"; then 169704007ebaSmrg lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'` 169804007ebaSmrg else 169904007ebaSmrg lt_cv_sys_max_cmd_len=32768 170004007ebaSmrg fi 170104007ebaSmrg ;; 170204007ebaSmrg *) 170304007ebaSmrg lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 170404007ebaSmrg if test -n "$lt_cv_sys_max_cmd_len" && \ 170504007ebaSmrg test undefined != "$lt_cv_sys_max_cmd_len"; then 170604007ebaSmrg lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 170704007ebaSmrg lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 170804007ebaSmrg else 170904007ebaSmrg # Make teststring a little bigger before we do anything with it. 171004007ebaSmrg # a 1K string should be a reasonable start. 171104007ebaSmrg for i in 1 2 3 4 5 6 7 8 ; do 171204007ebaSmrg teststring=$teststring$teststring 171304007ebaSmrg done 171404007ebaSmrg SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 171504007ebaSmrg # If test is not a shell built-in, we'll probably end up computing a 171604007ebaSmrg # maximum length that is only half of the actual maximum length, but 171704007ebaSmrg # we can't tell. 171804007ebaSmrg while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 171904007ebaSmrg = "X$teststring$teststring"; } >/dev/null 2>&1 && 172004007ebaSmrg test $i != 17 # 1/2 MB should be enough 172104007ebaSmrg do 172204007ebaSmrg i=`expr $i + 1` 172304007ebaSmrg teststring=$teststring$teststring 172404007ebaSmrg done 172504007ebaSmrg # Only check the string length outside the loop. 172604007ebaSmrg lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 172704007ebaSmrg teststring= 172804007ebaSmrg # Add a significant safety factor because C++ compilers can tack on 172904007ebaSmrg # massive amounts of additional arguments before passing them to the 173004007ebaSmrg # linker. It appears as though 1/2 is a usable value. 173104007ebaSmrg lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 173204007ebaSmrg fi 173304007ebaSmrg ;; 173404007ebaSmrg esac 173504007ebaSmrg]) 173604007ebaSmrgif test -n $lt_cv_sys_max_cmd_len ; then 173704007ebaSmrg AC_MSG_RESULT($lt_cv_sys_max_cmd_len) 173804007ebaSmrgelse 173904007ebaSmrg AC_MSG_RESULT(none) 174004007ebaSmrgfi 174104007ebaSmrgmax_cmd_len=$lt_cv_sys_max_cmd_len 174204007ebaSmrg_LT_DECL([], [max_cmd_len], [0], 174304007ebaSmrg [What is the maximum length of a command?]) 174404007ebaSmrg])# LT_CMD_MAX_LEN 174504007ebaSmrg 174604007ebaSmrg# Old name: 174704007ebaSmrgAU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN]) 174804007ebaSmrgdnl aclocal-1.4 backwards compatibility: 174904007ebaSmrgdnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], []) 175004007ebaSmrg 175104007ebaSmrg 175204007ebaSmrg# _LT_HEADER_DLFCN 175304007ebaSmrg# ---------------- 175404007ebaSmrgm4_defun([_LT_HEADER_DLFCN], 175504007ebaSmrg[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl 175604007ebaSmrg])# _LT_HEADER_DLFCN 175704007ebaSmrg 175804007ebaSmrg 175904007ebaSmrg# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, 176004007ebaSmrg# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) 176104007ebaSmrg# ---------------------------------------------------------------- 176204007ebaSmrgm4_defun([_LT_TRY_DLOPEN_SELF], 176304007ebaSmrg[m4_require([_LT_HEADER_DLFCN])dnl 176404007ebaSmrgif test "$cross_compiling" = yes; then : 176504007ebaSmrg [$4] 176604007ebaSmrgelse 176704007ebaSmrg lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 176804007ebaSmrg lt_status=$lt_dlunknown 176904007ebaSmrg cat > conftest.$ac_ext <<_LT_EOF 177004007ebaSmrg[#line $LINENO "configure" 177104007ebaSmrg#include "confdefs.h" 177204007ebaSmrg 177304007ebaSmrg#if HAVE_DLFCN_H 177404007ebaSmrg#include <dlfcn.h> 177504007ebaSmrg#endif 177604007ebaSmrg 177704007ebaSmrg#include <stdio.h> 177804007ebaSmrg 177904007ebaSmrg#ifdef RTLD_GLOBAL 178004007ebaSmrg# define LT_DLGLOBAL RTLD_GLOBAL 178104007ebaSmrg#else 178204007ebaSmrg# ifdef DL_GLOBAL 178304007ebaSmrg# define LT_DLGLOBAL DL_GLOBAL 178404007ebaSmrg# else 178504007ebaSmrg# define LT_DLGLOBAL 0 178604007ebaSmrg# endif 178704007ebaSmrg#endif 178804007ebaSmrg 178904007ebaSmrg/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 179004007ebaSmrg find out it does not work in some platform. */ 179104007ebaSmrg#ifndef LT_DLLAZY_OR_NOW 179204007ebaSmrg# ifdef RTLD_LAZY 179304007ebaSmrg# define LT_DLLAZY_OR_NOW RTLD_LAZY 179404007ebaSmrg# else 179504007ebaSmrg# ifdef DL_LAZY 179604007ebaSmrg# define LT_DLLAZY_OR_NOW DL_LAZY 179704007ebaSmrg# else 179804007ebaSmrg# ifdef RTLD_NOW 179904007ebaSmrg# define LT_DLLAZY_OR_NOW RTLD_NOW 180004007ebaSmrg# else 180104007ebaSmrg# ifdef DL_NOW 180204007ebaSmrg# define LT_DLLAZY_OR_NOW DL_NOW 180304007ebaSmrg# else 180404007ebaSmrg# define LT_DLLAZY_OR_NOW 0 180504007ebaSmrg# endif 180604007ebaSmrg# endif 180704007ebaSmrg# endif 180804007ebaSmrg# endif 180904007ebaSmrg#endif 181004007ebaSmrg 181104007ebaSmrg/* When -fvisbility=hidden is used, assume the code has been annotated 181204007ebaSmrg correspondingly for the symbols needed. */ 181304007ebaSmrg#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 181404007ebaSmrgint fnord () __attribute__((visibility("default"))); 181504007ebaSmrg#endif 181604007ebaSmrg 181704007ebaSmrgint fnord () { return 42; } 181804007ebaSmrgint main () 181904007ebaSmrg{ 182004007ebaSmrg void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 182104007ebaSmrg int status = $lt_dlunknown; 182204007ebaSmrg 182304007ebaSmrg if (self) 182404007ebaSmrg { 182504007ebaSmrg if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 182604007ebaSmrg else 182704007ebaSmrg { 182804007ebaSmrg if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 182904007ebaSmrg else puts (dlerror ()); 183004007ebaSmrg } 183104007ebaSmrg /* dlclose (self); */ 183204007ebaSmrg } 183304007ebaSmrg else 183404007ebaSmrg puts (dlerror ()); 183504007ebaSmrg 183604007ebaSmrg return status; 183704007ebaSmrg}] 183804007ebaSmrg_LT_EOF 183904007ebaSmrg if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then 184004007ebaSmrg (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null 184104007ebaSmrg lt_status=$? 184204007ebaSmrg case x$lt_status in 184304007ebaSmrg x$lt_dlno_uscore) $1 ;; 184404007ebaSmrg x$lt_dlneed_uscore) $2 ;; 184504007ebaSmrg x$lt_dlunknown|x*) $3 ;; 184604007ebaSmrg esac 184704007ebaSmrg else : 184804007ebaSmrg # compilation failed 184904007ebaSmrg $3 185004007ebaSmrg fi 185104007ebaSmrgfi 185204007ebaSmrgrm -fr conftest* 185304007ebaSmrg])# _LT_TRY_DLOPEN_SELF 185404007ebaSmrg 185504007ebaSmrg 185604007ebaSmrg# LT_SYS_DLOPEN_SELF 185704007ebaSmrg# ------------------ 185804007ebaSmrgAC_DEFUN([LT_SYS_DLOPEN_SELF], 185904007ebaSmrg[m4_require([_LT_HEADER_DLFCN])dnl 186004007ebaSmrgif test "x$enable_dlopen" != xyes; then 186104007ebaSmrg enable_dlopen=unknown 186204007ebaSmrg enable_dlopen_self=unknown 186304007ebaSmrg enable_dlopen_self_static=unknown 186404007ebaSmrgelse 186504007ebaSmrg lt_cv_dlopen=no 186604007ebaSmrg lt_cv_dlopen_libs= 186704007ebaSmrg 186804007ebaSmrg case $host_os in 186904007ebaSmrg beos*) 187004007ebaSmrg lt_cv_dlopen="load_add_on" 187104007ebaSmrg lt_cv_dlopen_libs= 187204007ebaSmrg lt_cv_dlopen_self=yes 187304007ebaSmrg ;; 187404007ebaSmrg 187504007ebaSmrg mingw* | pw32* | cegcc*) 187604007ebaSmrg lt_cv_dlopen="LoadLibrary" 187704007ebaSmrg lt_cv_dlopen_libs= 187804007ebaSmrg ;; 187904007ebaSmrg 188004007ebaSmrg cygwin*) 188104007ebaSmrg lt_cv_dlopen="dlopen" 188204007ebaSmrg lt_cv_dlopen_libs= 188304007ebaSmrg ;; 188404007ebaSmrg 188504007ebaSmrg darwin*) 188604007ebaSmrg # if libdl is installed we need to link against it 188704007ebaSmrg AC_CHECK_LIB([dl], [dlopen], 188804007ebaSmrg [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[ 188904007ebaSmrg lt_cv_dlopen="dyld" 189004007ebaSmrg lt_cv_dlopen_libs= 189104007ebaSmrg lt_cv_dlopen_self=yes 189204007ebaSmrg ]) 189304007ebaSmrg ;; 189404007ebaSmrg 189504007ebaSmrg *) 189604007ebaSmrg AC_CHECK_FUNC([shl_load], 189704007ebaSmrg [lt_cv_dlopen="shl_load"], 189804007ebaSmrg [AC_CHECK_LIB([dld], [shl_load], 189904007ebaSmrg [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"], 190004007ebaSmrg [AC_CHECK_FUNC([dlopen], 190104007ebaSmrg [lt_cv_dlopen="dlopen"], 190204007ebaSmrg [AC_CHECK_LIB([dl], [dlopen], 190304007ebaSmrg [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], 190404007ebaSmrg [AC_CHECK_LIB([svld], [dlopen], 190504007ebaSmrg [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], 190604007ebaSmrg [AC_CHECK_LIB([dld], [dld_link], 190704007ebaSmrg [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"]) 190804007ebaSmrg ]) 190904007ebaSmrg ]) 191004007ebaSmrg ]) 191104007ebaSmrg ]) 191204007ebaSmrg ]) 191304007ebaSmrg ;; 191404007ebaSmrg esac 191504007ebaSmrg 191604007ebaSmrg if test "x$lt_cv_dlopen" != xno; then 191704007ebaSmrg enable_dlopen=yes 191804007ebaSmrg else 191904007ebaSmrg enable_dlopen=no 192004007ebaSmrg fi 192104007ebaSmrg 192204007ebaSmrg case $lt_cv_dlopen in 192304007ebaSmrg dlopen) 192404007ebaSmrg save_CPPFLAGS="$CPPFLAGS" 192504007ebaSmrg test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 192604007ebaSmrg 192704007ebaSmrg save_LDFLAGS="$LDFLAGS" 192804007ebaSmrg wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 192904007ebaSmrg 193004007ebaSmrg save_LIBS="$LIBS" 193104007ebaSmrg LIBS="$lt_cv_dlopen_libs $LIBS" 193204007ebaSmrg 193304007ebaSmrg AC_CACHE_CHECK([whether a program can dlopen itself], 193404007ebaSmrg lt_cv_dlopen_self, [dnl 193504007ebaSmrg _LT_TRY_DLOPEN_SELF( 193604007ebaSmrg lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, 193704007ebaSmrg lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) 193804007ebaSmrg ]) 193904007ebaSmrg 194004007ebaSmrg if test "x$lt_cv_dlopen_self" = xyes; then 194104007ebaSmrg wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 194204007ebaSmrg AC_CACHE_CHECK([whether a statically linked program can dlopen itself], 194304007ebaSmrg lt_cv_dlopen_self_static, [dnl 194404007ebaSmrg _LT_TRY_DLOPEN_SELF( 194504007ebaSmrg lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, 194604007ebaSmrg lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) 194704007ebaSmrg ]) 194804007ebaSmrg fi 194904007ebaSmrg 195004007ebaSmrg CPPFLAGS="$save_CPPFLAGS" 195104007ebaSmrg LDFLAGS="$save_LDFLAGS" 195204007ebaSmrg LIBS="$save_LIBS" 195304007ebaSmrg ;; 195404007ebaSmrg esac 195504007ebaSmrg 195604007ebaSmrg case $lt_cv_dlopen_self in 195704007ebaSmrg yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 195804007ebaSmrg *) enable_dlopen_self=unknown ;; 195904007ebaSmrg esac 196004007ebaSmrg 196104007ebaSmrg case $lt_cv_dlopen_self_static in 196204007ebaSmrg yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 196304007ebaSmrg *) enable_dlopen_self_static=unknown ;; 196404007ebaSmrg esac 196504007ebaSmrgfi 196604007ebaSmrg_LT_DECL([dlopen_support], [enable_dlopen], [0], 196704007ebaSmrg [Whether dlopen is supported]) 196804007ebaSmrg_LT_DECL([dlopen_self], [enable_dlopen_self], [0], 196904007ebaSmrg [Whether dlopen of programs is supported]) 197004007ebaSmrg_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0], 197104007ebaSmrg [Whether dlopen of statically linked programs is supported]) 197204007ebaSmrg])# LT_SYS_DLOPEN_SELF 197304007ebaSmrg 197404007ebaSmrg# Old name: 197504007ebaSmrgAU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF]) 197604007ebaSmrgdnl aclocal-1.4 backwards compatibility: 197704007ebaSmrgdnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], []) 197804007ebaSmrg 197904007ebaSmrg 198004007ebaSmrg# _LT_COMPILER_C_O([TAGNAME]) 198104007ebaSmrg# --------------------------- 198204007ebaSmrg# Check to see if options -c and -o are simultaneously supported by compiler. 198304007ebaSmrg# This macro does not hard code the compiler like AC_PROG_CC_C_O. 198404007ebaSmrgm4_defun([_LT_COMPILER_C_O], 198504007ebaSmrg[m4_require([_LT_DECL_SED])dnl 198604007ebaSmrgm4_require([_LT_FILEUTILS_DEFAULTS])dnl 198704007ebaSmrgm4_require([_LT_TAG_COMPILER])dnl 198804007ebaSmrgAC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], 198904007ebaSmrg [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)], 199004007ebaSmrg [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no 199104007ebaSmrg $RM -r conftest 2>/dev/null 199204007ebaSmrg mkdir conftest 199304007ebaSmrg cd conftest 199404007ebaSmrg mkdir out 199504007ebaSmrg echo "$lt_simple_compile_test_code" > conftest.$ac_ext 199604007ebaSmrg 199704007ebaSmrg lt_compiler_flag="-o out/conftest2.$ac_objext" 199804007ebaSmrg # Insert the option either (1) after the last *FLAGS variable, or 199904007ebaSmrg # (2) before a word containing "conftest.", or (3) at the end. 200004007ebaSmrg # Note that $ac_compile itself does not contain backslashes and begins 200104007ebaSmrg # with a dollar sign (not a hyphen), so the echo should work correctly. 200204007ebaSmrg lt_compile=`echo "$ac_compile" | $SED \ 200304007ebaSmrg -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 200404007ebaSmrg -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ 200504007ebaSmrg -e 's:$: $lt_compiler_flag:'` 200604007ebaSmrg (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD) 200704007ebaSmrg (eval "$lt_compile" 2>out/conftest.err) 200804007ebaSmrg ac_status=$? 200904007ebaSmrg cat out/conftest.err >&AS_MESSAGE_LOG_FD 201004007ebaSmrg echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD 201104007ebaSmrg if (exit $ac_status) && test -s out/conftest2.$ac_objext 201204007ebaSmrg then 201304007ebaSmrg # The compiler can only warn and ignore the option if not recognized 201404007ebaSmrg # So say no if there are warnings 201504007ebaSmrg $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 201604007ebaSmrg $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 201704007ebaSmrg if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 201804007ebaSmrg _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes 201904007ebaSmrg fi 202004007ebaSmrg fi 202104007ebaSmrg chmod u+w . 2>&AS_MESSAGE_LOG_FD 202204007ebaSmrg $RM conftest* 202304007ebaSmrg # SGI C++ compiler will create directory out/ii_files/ for 202404007ebaSmrg # template instantiation 202504007ebaSmrg test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 202604007ebaSmrg $RM out/* && rmdir out 202704007ebaSmrg cd .. 202804007ebaSmrg $RM -r conftest 202904007ebaSmrg $RM conftest* 203004007ebaSmrg]) 203104007ebaSmrg_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1], 203204007ebaSmrg [Does compiler simultaneously support -c and -o options?]) 203304007ebaSmrg])# _LT_COMPILER_C_O 203404007ebaSmrg 203504007ebaSmrg 203604007ebaSmrg# _LT_COMPILER_FILE_LOCKS([TAGNAME]) 203704007ebaSmrg# ---------------------------------- 203804007ebaSmrg# Check to see if we can do hard links to lock some files if needed 203904007ebaSmrgm4_defun([_LT_COMPILER_FILE_LOCKS], 204004007ebaSmrg[m4_require([_LT_ENABLE_LOCK])dnl 204104007ebaSmrgm4_require([_LT_FILEUTILS_DEFAULTS])dnl 204204007ebaSmrg_LT_COMPILER_C_O([$1]) 204304007ebaSmrg 204404007ebaSmrghard_links="nottested" 204504007ebaSmrgif test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then 204604007ebaSmrg # do not overwrite the value of need_locks provided by the user 204704007ebaSmrg AC_MSG_CHECKING([if we can lock with hard links]) 204804007ebaSmrg hard_links=yes 204904007ebaSmrg $RM conftest* 205004007ebaSmrg ln conftest.a conftest.b 2>/dev/null && hard_links=no 205104007ebaSmrg touch conftest.a 205204007ebaSmrg ln conftest.a conftest.b 2>&5 || hard_links=no 205304007ebaSmrg ln conftest.a conftest.b 2>/dev/null && hard_links=no 205404007ebaSmrg AC_MSG_RESULT([$hard_links]) 205504007ebaSmrg if test "$hard_links" = no; then 205604007ebaSmrg AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe]) 205704007ebaSmrg need_locks=warn 205804007ebaSmrg fi 205904007ebaSmrgelse 206004007ebaSmrg need_locks=no 206104007ebaSmrgfi 206204007ebaSmrg_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?]) 206304007ebaSmrg])# _LT_COMPILER_FILE_LOCKS 206404007ebaSmrg 206504007ebaSmrg 206604007ebaSmrg# _LT_CHECK_OBJDIR 206704007ebaSmrg# ---------------- 206804007ebaSmrgm4_defun([_LT_CHECK_OBJDIR], 206904007ebaSmrg[AC_CACHE_CHECK([for objdir], [lt_cv_objdir], 207004007ebaSmrg[rm -f .libs 2>/dev/null 207104007ebaSmrgmkdir .libs 2>/dev/null 207204007ebaSmrgif test -d .libs; then 207304007ebaSmrg lt_cv_objdir=.libs 207404007ebaSmrgelse 207504007ebaSmrg # MS-DOS does not allow filenames that begin with a dot. 207604007ebaSmrg lt_cv_objdir=_libs 207704007ebaSmrgfi 207804007ebaSmrgrmdir .libs 2>/dev/null]) 207904007ebaSmrgobjdir=$lt_cv_objdir 208004007ebaSmrg_LT_DECL([], [objdir], [0], 208104007ebaSmrg [The name of the directory that contains temporary libtool files])dnl 208204007ebaSmrgm4_pattern_allow([LT_OBJDIR])dnl 208304007ebaSmrgAC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/", 208404007ebaSmrg [Define to the sub-directory in which libtool stores uninstalled libraries.]) 208504007ebaSmrg])# _LT_CHECK_OBJDIR 208604007ebaSmrg 208704007ebaSmrg 208804007ebaSmrg# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME]) 208904007ebaSmrg# -------------------------------------- 209004007ebaSmrg# Check hardcoding attributes. 209104007ebaSmrgm4_defun([_LT_LINKER_HARDCODE_LIBPATH], 209204007ebaSmrg[AC_MSG_CHECKING([how to hardcode library paths into programs]) 209304007ebaSmrg_LT_TAGVAR(hardcode_action, $1)= 209404007ebaSmrgif test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" || 209504007ebaSmrg test -n "$_LT_TAGVAR(runpath_var, $1)" || 209604007ebaSmrg test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then 209704007ebaSmrg 209804007ebaSmrg # We can hardcode non-existent directories. 209904007ebaSmrg if test "$_LT_TAGVAR(hardcode_direct, $1)" != no && 210004007ebaSmrg # If the only mechanism to avoid hardcoding is shlibpath_var, we 210104007ebaSmrg # have to relink, otherwise we might link with an installed library 210204007ebaSmrg # when we should be linking with a yet-to-be-installed one 210304007ebaSmrg ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no && 210404007ebaSmrg test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then 210504007ebaSmrg # Linking always hardcodes the temporary library directory. 210604007ebaSmrg _LT_TAGVAR(hardcode_action, $1)=relink 210704007ebaSmrg else 210804007ebaSmrg # We can link without hardcoding, and we can hardcode nonexisting dirs. 210904007ebaSmrg _LT_TAGVAR(hardcode_action, $1)=immediate 211004007ebaSmrg fi 211104007ebaSmrgelse 211204007ebaSmrg # We cannot hardcode anything, or else we can only hardcode existing 211304007ebaSmrg # directories. 211404007ebaSmrg _LT_TAGVAR(hardcode_action, $1)=unsupported 211504007ebaSmrgfi 211604007ebaSmrgAC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)]) 211704007ebaSmrg 211804007ebaSmrgif test "$_LT_TAGVAR(hardcode_action, $1)" = relink || 211904007ebaSmrg test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then 212004007ebaSmrg # Fast installation is not supported 212104007ebaSmrg enable_fast_install=no 212204007ebaSmrgelif test "$shlibpath_overrides_runpath" = yes || 212304007ebaSmrg test "$enable_shared" = no; then 212404007ebaSmrg # Fast installation is not necessary 212504007ebaSmrg enable_fast_install=needless 212604007ebaSmrgfi 212704007ebaSmrg_LT_TAGDECL([], [hardcode_action], [0], 212804007ebaSmrg [How to hardcode a shared library path into an executable]) 212904007ebaSmrg])# _LT_LINKER_HARDCODE_LIBPATH 213004007ebaSmrg 213104007ebaSmrg 213204007ebaSmrg# _LT_CMD_STRIPLIB 213304007ebaSmrg# ---------------- 213404007ebaSmrgm4_defun([_LT_CMD_STRIPLIB], 213504007ebaSmrg[m4_require([_LT_DECL_EGREP]) 213604007ebaSmrgstriplib= 213704007ebaSmrgold_striplib= 213804007ebaSmrgAC_MSG_CHECKING([whether stripping libraries is possible]) 213904007ebaSmrgif test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 214004007ebaSmrg test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 214104007ebaSmrg test -z "$striplib" && striplib="$STRIP --strip-unneeded" 214204007ebaSmrg AC_MSG_RESULT([yes]) 214304007ebaSmrgelse 214404007ebaSmrg# FIXME - insert some real tests, host_os isn't really good enough 214504007ebaSmrg case $host_os in 214604007ebaSmrg darwin*) 214704007ebaSmrg if test -n "$STRIP" ; then 214804007ebaSmrg striplib="$STRIP -x" 214904007ebaSmrg old_striplib="$STRIP -S" 215004007ebaSmrg AC_MSG_RESULT([yes]) 215104007ebaSmrg else 215204007ebaSmrg AC_MSG_RESULT([no]) 215304007ebaSmrg fi 215404007ebaSmrg ;; 215504007ebaSmrg *) 215604007ebaSmrg AC_MSG_RESULT([no]) 215704007ebaSmrg ;; 215804007ebaSmrg esac 215904007ebaSmrgfi 216004007ebaSmrg_LT_DECL([], [old_striplib], [1], [Commands to strip libraries]) 216104007ebaSmrg_LT_DECL([], [striplib], [1]) 216204007ebaSmrg])# _LT_CMD_STRIPLIB 216304007ebaSmrg 216404007ebaSmrg 216504007ebaSmrg# _LT_SYS_DYNAMIC_LINKER([TAG]) 216604007ebaSmrg# ----------------------------- 216704007ebaSmrg# PORTME Fill in your ld.so characteristics 216804007ebaSmrgm4_defun([_LT_SYS_DYNAMIC_LINKER], 216904007ebaSmrg[AC_REQUIRE([AC_CANONICAL_HOST])dnl 217004007ebaSmrgm4_require([_LT_DECL_EGREP])dnl 217104007ebaSmrgm4_require([_LT_FILEUTILS_DEFAULTS])dnl 217204007ebaSmrgm4_require([_LT_DECL_OBJDUMP])dnl 217304007ebaSmrgm4_require([_LT_DECL_SED])dnl 217404007ebaSmrgm4_require([_LT_CHECK_SHELL_FEATURES])dnl 217504007ebaSmrgAC_MSG_CHECKING([dynamic linker characteristics]) 217604007ebaSmrgm4_if([$1], 217704007ebaSmrg [], [ 217804007ebaSmrgif test "$GCC" = yes; then 217904007ebaSmrg case $host_os in 218004007ebaSmrg darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 218104007ebaSmrg *) lt_awk_arg="/^libraries:/" ;; 218204007ebaSmrg esac 218304007ebaSmrg case $host_os in 218404007ebaSmrg mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;; 218504007ebaSmrg *) lt_sed_strip_eq="s,=/,/,g" ;; 218604007ebaSmrg esac 218704007ebaSmrg lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 218804007ebaSmrg case $lt_search_path_spec in 218904007ebaSmrg *\;*) 219004007ebaSmrg # if the path contains ";" then we assume it to be the separator 219104007ebaSmrg # otherwise default to the standard path separator (i.e. ":") - it is 219204007ebaSmrg # assumed that no part of a normal pathname contains ";" but that should 219304007ebaSmrg # okay in the real world where ";" in dirpaths is itself problematic. 219404007ebaSmrg lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 219504007ebaSmrg ;; 219604007ebaSmrg *) 219704007ebaSmrg lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 219804007ebaSmrg ;; 219904007ebaSmrg esac 220004007ebaSmrg # Ok, now we have the path, separated by spaces, we can step through it 220104007ebaSmrg # and add multilib dir if necessary. 220204007ebaSmrg lt_tmp_lt_search_path_spec= 220304007ebaSmrg lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 220404007ebaSmrg for lt_sys_path in $lt_search_path_spec; do 220504007ebaSmrg if test -d "$lt_sys_path/$lt_multi_os_dir"; then 220604007ebaSmrg lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 220704007ebaSmrg else 220804007ebaSmrg test -d "$lt_sys_path" && \ 220904007ebaSmrg lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 221004007ebaSmrg fi 221104007ebaSmrg done 221204007ebaSmrg lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 221304007ebaSmrgBEGIN {RS=" "; FS="/|\n";} { 221404007ebaSmrg lt_foo=""; 221504007ebaSmrg lt_count=0; 221604007ebaSmrg for (lt_i = NF; lt_i > 0; lt_i--) { 221704007ebaSmrg if ($lt_i != "" && $lt_i != ".") { 221804007ebaSmrg if ($lt_i == "..") { 221904007ebaSmrg lt_count++; 222004007ebaSmrg } else { 222104007ebaSmrg if (lt_count == 0) { 222204007ebaSmrg lt_foo="/" $lt_i lt_foo; 222304007ebaSmrg } else { 222404007ebaSmrg lt_count--; 222504007ebaSmrg } 222604007ebaSmrg } 222704007ebaSmrg } 222804007ebaSmrg } 222904007ebaSmrg if (lt_foo != "") { lt_freq[[lt_foo]]++; } 223004007ebaSmrg if (lt_freq[[lt_foo]] == 1) { print lt_foo; } 223104007ebaSmrg}'` 223204007ebaSmrg # AWK program above erroneously prepends '/' to C:/dos/paths 223304007ebaSmrg # for these hosts. 223404007ebaSmrg case $host_os in 223504007ebaSmrg mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 223604007ebaSmrg $SED 's,/\([[A-Za-z]]:\),\1,g'` ;; 223704007ebaSmrg esac 223804007ebaSmrg sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 223904007ebaSmrgelse 224004007ebaSmrg sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 224104007ebaSmrgfi]) 224204007ebaSmrglibrary_names_spec= 224304007ebaSmrglibname_spec='lib$name' 224404007ebaSmrgsoname_spec= 224504007ebaSmrgshrext_cmds=".so" 224604007ebaSmrgpostinstall_cmds= 224704007ebaSmrgpostuninstall_cmds= 224804007ebaSmrgfinish_cmds= 224904007ebaSmrgfinish_eval= 225004007ebaSmrgshlibpath_var= 225104007ebaSmrgshlibpath_overrides_runpath=unknown 225204007ebaSmrgversion_type=none 225304007ebaSmrgdynamic_linker="$host_os ld.so" 225404007ebaSmrgsys_lib_dlsearch_path_spec="/lib /usr/lib" 225504007ebaSmrgneed_lib_prefix=unknown 225604007ebaSmrghardcode_into_libs=no 225704007ebaSmrg 225804007ebaSmrg# when you set need_version to no, make sure it does not cause -set_version 225904007ebaSmrg# flags to be left without arguments 226004007ebaSmrgneed_version=unknown 226104007ebaSmrg 226204007ebaSmrgcase $host_os in 226304007ebaSmrgaix3*) 226404007ebaSmrg version_type=linux # correct to gnu/linux during the next big refactor 226504007ebaSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 226604007ebaSmrg shlibpath_var=LIBPATH 226704007ebaSmrg 226804007ebaSmrg # AIX 3 has no versioning support, so we append a major version to the name. 226904007ebaSmrg soname_spec='${libname}${release}${shared_ext}$major' 227004007ebaSmrg ;; 227104007ebaSmrg 227204007ebaSmrgaix[[4-9]]*) 227304007ebaSmrg version_type=linux # correct to gnu/linux during the next big refactor 227404007ebaSmrg need_lib_prefix=no 227504007ebaSmrg need_version=no 227604007ebaSmrg hardcode_into_libs=yes 227704007ebaSmrg if test "$host_cpu" = ia64; then 227804007ebaSmrg # AIX 5 supports IA64 227904007ebaSmrg library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 228004007ebaSmrg shlibpath_var=LD_LIBRARY_PATH 228104007ebaSmrg else 228204007ebaSmrg # With GCC up to 2.95.x, collect2 would create an import file 228304007ebaSmrg # for dependence libraries. The import file would start with 228404007ebaSmrg # the line `#! .'. This would cause the generated library to 228504007ebaSmrg # depend on `.', always an invalid library. This was fixed in 228604007ebaSmrg # development snapshots of GCC prior to 3.0. 228704007ebaSmrg case $host_os in 228804007ebaSmrg aix4 | aix4.[[01]] | aix4.[[01]].*) 228904007ebaSmrg if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 229004007ebaSmrg echo ' yes ' 229104007ebaSmrg echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 229204007ebaSmrg : 229304007ebaSmrg else 229404007ebaSmrg can_build_shared=no 229504007ebaSmrg fi 229604007ebaSmrg ;; 229704007ebaSmrg esac 229804007ebaSmrg # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 229904007ebaSmrg # soname into executable. Probably we can add versioning support to 230004007ebaSmrg # collect2, so additional links can be useful in future. 230104007ebaSmrg if test "$aix_use_runtimelinking" = yes; then 230204007ebaSmrg # If using run time linking (on AIX 4.2 or later) use lib<name>.so 230304007ebaSmrg # instead of lib<name>.a to let people know that these are not 230404007ebaSmrg # typical AIX shared libraries. 230504007ebaSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 230604007ebaSmrg else 230704007ebaSmrg # We preserve .a as extension for shared libraries through AIX4.2 230804007ebaSmrg # and later when we are not doing run time linking. 230904007ebaSmrg library_names_spec='${libname}${release}.a $libname.a' 231004007ebaSmrg soname_spec='${libname}${release}${shared_ext}$major' 231104007ebaSmrg fi 231204007ebaSmrg shlibpath_var=LIBPATH 231304007ebaSmrg fi 231404007ebaSmrg ;; 231504007ebaSmrg 231604007ebaSmrgamigaos*) 231704007ebaSmrg case $host_cpu in 231804007ebaSmrg powerpc) 231904007ebaSmrg # Since July 2007 AmigaOS4 officially supports .so libraries. 232004007ebaSmrg # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 232104007ebaSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 232204007ebaSmrg ;; 232304007ebaSmrg m68k) 232404007ebaSmrg library_names_spec='$libname.ixlibrary $libname.a' 232504007ebaSmrg # Create ${libname}_ixlibrary.a entries in /sys/libs. 232604007ebaSmrg finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 232704007ebaSmrg ;; 232804007ebaSmrg esac 232904007ebaSmrg ;; 233004007ebaSmrg 233104007ebaSmrgbeos*) 233204007ebaSmrg library_names_spec='${libname}${shared_ext}' 233304007ebaSmrg dynamic_linker="$host_os ld.so" 233404007ebaSmrg shlibpath_var=LIBRARY_PATH 233504007ebaSmrg ;; 233604007ebaSmrg 233704007ebaSmrgbsdi[[45]]*) 233804007ebaSmrg version_type=linux # correct to gnu/linux during the next big refactor 233904007ebaSmrg need_version=no 234004007ebaSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 234104007ebaSmrg soname_spec='${libname}${release}${shared_ext}$major' 234204007ebaSmrg finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 234304007ebaSmrg shlibpath_var=LD_LIBRARY_PATH 234404007ebaSmrg sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 234504007ebaSmrg sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 234604007ebaSmrg # the default ld.so.conf also contains /usr/contrib/lib and 234704007ebaSmrg # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 234804007ebaSmrg # libtool to hard-code these into programs 234904007ebaSmrg ;; 235004007ebaSmrg 235104007ebaSmrgcygwin* | mingw* | pw32* | cegcc*) 235204007ebaSmrg version_type=windows 235304007ebaSmrg shrext_cmds=".dll" 235404007ebaSmrg need_version=no 235504007ebaSmrg need_lib_prefix=no 235604007ebaSmrg 235704007ebaSmrg case $GCC,$cc_basename in 235804007ebaSmrg yes,*) 235904007ebaSmrg # gcc 236004007ebaSmrg library_names_spec='$libname.dll.a' 236104007ebaSmrg # DLL is installed to $(libdir)/../bin by postinstall_cmds 236204007ebaSmrg postinstall_cmds='base_file=`basename \${file}`~ 236304007ebaSmrg dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 236404007ebaSmrg dldir=$destdir/`dirname \$dlpath`~ 236504007ebaSmrg test -d \$dldir || mkdir -p \$dldir~ 236604007ebaSmrg $install_prog $dir/$dlname \$dldir/$dlname~ 236704007ebaSmrg chmod a+x \$dldir/$dlname~ 236804007ebaSmrg if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 236904007ebaSmrg eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 237004007ebaSmrg fi' 237104007ebaSmrg postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 237204007ebaSmrg dlpath=$dir/\$dldll~ 237304007ebaSmrg $RM \$dlpath' 237404007ebaSmrg shlibpath_overrides_runpath=yes 237504007ebaSmrg 237604007ebaSmrg case $host_os in 237704007ebaSmrg cygwin*) 237804007ebaSmrg # Cygwin DLLs use 'cyg' prefix rather than 'lib' 237904007ebaSmrg soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 238004007ebaSmrgm4_if([$1], [],[ 238104007ebaSmrg sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"]) 238204007ebaSmrg ;; 238304007ebaSmrg mingw* | cegcc*) 238404007ebaSmrg # MinGW DLLs use traditional 'lib' prefix 238504007ebaSmrg soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 238604007ebaSmrg ;; 238704007ebaSmrg pw32*) 238804007ebaSmrg # pw32 DLLs use 'pw' prefix rather than 'lib' 238904007ebaSmrg library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 239004007ebaSmrg ;; 239104007ebaSmrg esac 239204007ebaSmrg dynamic_linker='Win32 ld.exe' 239304007ebaSmrg ;; 239404007ebaSmrg 239504007ebaSmrg *,cl*) 239604007ebaSmrg # Native MSVC 239704007ebaSmrg libname_spec='$name' 239804007ebaSmrg soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 239904007ebaSmrg library_names_spec='${libname}.dll.lib' 240004007ebaSmrg 240104007ebaSmrg case $build_os in 240204007ebaSmrg mingw*) 240304007ebaSmrg sys_lib_search_path_spec= 240404007ebaSmrg lt_save_ifs=$IFS 240504007ebaSmrg IFS=';' 240604007ebaSmrg for lt_path in $LIB 240704007ebaSmrg do 240804007ebaSmrg IFS=$lt_save_ifs 240904007ebaSmrg # Let DOS variable expansion print the short 8.3 style file name. 241004007ebaSmrg lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 241104007ebaSmrg sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 241204007ebaSmrg done 241304007ebaSmrg IFS=$lt_save_ifs 241404007ebaSmrg # Convert to MSYS style. 241504007ebaSmrg sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'` 241604007ebaSmrg ;; 241704007ebaSmrg cygwin*) 241804007ebaSmrg # Convert to unix form, then to dos form, then back to unix form 241904007ebaSmrg # but this time dos style (no spaces!) so that the unix form looks 242004007ebaSmrg # like /cygdrive/c/PROGRA~1:/cygdr... 242104007ebaSmrg sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 242204007ebaSmrg sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 242304007ebaSmrg sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 242404007ebaSmrg ;; 242504007ebaSmrg *) 242604007ebaSmrg sys_lib_search_path_spec="$LIB" 242704007ebaSmrg if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then 242804007ebaSmrg # It is most probably a Windows format PATH. 242904007ebaSmrg sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 243004007ebaSmrg else 243104007ebaSmrg sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 243204007ebaSmrg fi 243304007ebaSmrg # FIXME: find the short name or the path components, as spaces are 243404007ebaSmrg # common. (e.g. "Program Files" -> "PROGRA~1") 243504007ebaSmrg ;; 243604007ebaSmrg esac 243704007ebaSmrg 243804007ebaSmrg # DLL is installed to $(libdir)/../bin by postinstall_cmds 243904007ebaSmrg postinstall_cmds='base_file=`basename \${file}`~ 244004007ebaSmrg dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 244104007ebaSmrg dldir=$destdir/`dirname \$dlpath`~ 244204007ebaSmrg test -d \$dldir || mkdir -p \$dldir~ 244304007ebaSmrg $install_prog $dir/$dlname \$dldir/$dlname' 244404007ebaSmrg postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 244504007ebaSmrg dlpath=$dir/\$dldll~ 244604007ebaSmrg $RM \$dlpath' 244704007ebaSmrg shlibpath_overrides_runpath=yes 244804007ebaSmrg dynamic_linker='Win32 link.exe' 244904007ebaSmrg ;; 245004007ebaSmrg 245104007ebaSmrg *) 245204007ebaSmrg # Assume MSVC wrapper 245304007ebaSmrg library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib' 245404007ebaSmrg dynamic_linker='Win32 ld.exe' 245504007ebaSmrg ;; 245604007ebaSmrg esac 245704007ebaSmrg # FIXME: first we should search . and the directory the executable is in 245804007ebaSmrg shlibpath_var=PATH 245904007ebaSmrg ;; 246004007ebaSmrg 246104007ebaSmrgdarwin* | rhapsody*) 246204007ebaSmrg dynamic_linker="$host_os dyld" 246304007ebaSmrg version_type=darwin 246404007ebaSmrg need_lib_prefix=no 246504007ebaSmrg need_version=no 246604007ebaSmrg library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 246704007ebaSmrg soname_spec='${libname}${release}${major}$shared_ext' 246804007ebaSmrg shlibpath_overrides_runpath=yes 246904007ebaSmrg shlibpath_var=DYLD_LIBRARY_PATH 247004007ebaSmrg shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 247104007ebaSmrgm4_if([$1], [],[ 247204007ebaSmrg sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) 247304007ebaSmrg sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 247404007ebaSmrg ;; 247504007ebaSmrg 247604007ebaSmrgdgux*) 247704007ebaSmrg version_type=linux # correct to gnu/linux during the next big refactor 247804007ebaSmrg need_lib_prefix=no 247904007ebaSmrg need_version=no 248004007ebaSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 248104007ebaSmrg soname_spec='${libname}${release}${shared_ext}$major' 248204007ebaSmrg shlibpath_var=LD_LIBRARY_PATH 248304007ebaSmrg ;; 248404007ebaSmrg 248504007ebaSmrgfreebsd* | dragonfly*) 248604007ebaSmrg # DragonFly does not have aout. When/if they implement a new 248704007ebaSmrg # versioning mechanism, adjust this. 248804007ebaSmrg if test -x /usr/bin/objformat; then 248904007ebaSmrg objformat=`/usr/bin/objformat` 249004007ebaSmrg else 249104007ebaSmrg case $host_os in 249204007ebaSmrg freebsd[[23]].*) objformat=aout ;; 249304007ebaSmrg *) objformat=elf ;; 249404007ebaSmrg esac 249504007ebaSmrg fi 249604007ebaSmrg version_type=freebsd-$objformat 249704007ebaSmrg case $version_type in 249804007ebaSmrg freebsd-elf*) 249904007ebaSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 250004007ebaSmrg need_version=no 250104007ebaSmrg need_lib_prefix=no 250204007ebaSmrg ;; 250304007ebaSmrg freebsd-*) 250404007ebaSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 250504007ebaSmrg need_version=yes 250604007ebaSmrg ;; 250704007ebaSmrg esac 250804007ebaSmrg shlibpath_var=LD_LIBRARY_PATH 250904007ebaSmrg case $host_os in 251004007ebaSmrg freebsd2.*) 251104007ebaSmrg shlibpath_overrides_runpath=yes 251204007ebaSmrg ;; 251304007ebaSmrg freebsd3.[[01]]* | freebsdelf3.[[01]]*) 251404007ebaSmrg shlibpath_overrides_runpath=yes 251504007ebaSmrg hardcode_into_libs=yes 251604007ebaSmrg ;; 251704007ebaSmrg freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ 251804007ebaSmrg freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) 251904007ebaSmrg shlibpath_overrides_runpath=no 252004007ebaSmrg hardcode_into_libs=yes 252104007ebaSmrg ;; 252204007ebaSmrg *) # from 4.6 on, and DragonFly 252304007ebaSmrg shlibpath_overrides_runpath=yes 252404007ebaSmrg hardcode_into_libs=yes 252504007ebaSmrg ;; 252604007ebaSmrg esac 252704007ebaSmrg ;; 252804007ebaSmrg 252904007ebaSmrghaiku*) 253004007ebaSmrg version_type=linux # correct to gnu/linux during the next big refactor 253104007ebaSmrg need_lib_prefix=no 253204007ebaSmrg need_version=no 253304007ebaSmrg dynamic_linker="$host_os runtime_loader" 253404007ebaSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 253504007ebaSmrg soname_spec='${libname}${release}${shared_ext}$major' 253604007ebaSmrg shlibpath_var=LIBRARY_PATH 253704007ebaSmrg shlibpath_overrides_runpath=yes 253804007ebaSmrg sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 253904007ebaSmrg hardcode_into_libs=yes 254004007ebaSmrg ;; 254104007ebaSmrg 254204007ebaSmrghpux9* | hpux10* | hpux11*) 254304007ebaSmrg # Give a soname corresponding to the major version so that dld.sl refuses to 254404007ebaSmrg # link against other versions. 254504007ebaSmrg version_type=sunos 254604007ebaSmrg need_lib_prefix=no 254704007ebaSmrg need_version=no 254804007ebaSmrg case $host_cpu in 254904007ebaSmrg ia64*) 255004007ebaSmrg shrext_cmds='.so' 255104007ebaSmrg hardcode_into_libs=yes 255204007ebaSmrg dynamic_linker="$host_os dld.so" 255304007ebaSmrg shlibpath_var=LD_LIBRARY_PATH 255404007ebaSmrg shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 255504007ebaSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 255604007ebaSmrg soname_spec='${libname}${release}${shared_ext}$major' 255704007ebaSmrg if test "X$HPUX_IA64_MODE" = X32; then 255804007ebaSmrg sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 255904007ebaSmrg else 256004007ebaSmrg sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 256104007ebaSmrg fi 256204007ebaSmrg sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 256304007ebaSmrg ;; 256404007ebaSmrg hppa*64*) 256504007ebaSmrg shrext_cmds='.sl' 256604007ebaSmrg hardcode_into_libs=yes 256704007ebaSmrg dynamic_linker="$host_os dld.sl" 256804007ebaSmrg shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 256904007ebaSmrg shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 257004007ebaSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 257104007ebaSmrg soname_spec='${libname}${release}${shared_ext}$major' 257204007ebaSmrg sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 257304007ebaSmrg sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 257404007ebaSmrg ;; 257504007ebaSmrg *) 257604007ebaSmrg shrext_cmds='.sl' 257704007ebaSmrg dynamic_linker="$host_os dld.sl" 257804007ebaSmrg shlibpath_var=SHLIB_PATH 257904007ebaSmrg shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 258004007ebaSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 258104007ebaSmrg soname_spec='${libname}${release}${shared_ext}$major' 258204007ebaSmrg ;; 258304007ebaSmrg esac 258404007ebaSmrg # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 258504007ebaSmrg postinstall_cmds='chmod 555 $lib' 258604007ebaSmrg # or fails outright, so override atomically: 258704007ebaSmrg install_override_mode=555 258804007ebaSmrg ;; 258904007ebaSmrg 259004007ebaSmrginterix[[3-9]]*) 259104007ebaSmrg version_type=linux # correct to gnu/linux during the next big refactor 259204007ebaSmrg need_lib_prefix=no 259304007ebaSmrg need_version=no 259404007ebaSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 259504007ebaSmrg soname_spec='${libname}${release}${shared_ext}$major' 259604007ebaSmrg dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 259704007ebaSmrg shlibpath_var=LD_LIBRARY_PATH 259804007ebaSmrg shlibpath_overrides_runpath=no 259904007ebaSmrg hardcode_into_libs=yes 260004007ebaSmrg ;; 260104007ebaSmrg 260204007ebaSmrgirix5* | irix6* | nonstopux*) 260304007ebaSmrg case $host_os in 260404007ebaSmrg nonstopux*) version_type=nonstopux ;; 260504007ebaSmrg *) 260604007ebaSmrg if test "$lt_cv_prog_gnu_ld" = yes; then 260704007ebaSmrg version_type=linux # correct to gnu/linux during the next big refactor 260804007ebaSmrg else 260904007ebaSmrg version_type=irix 261004007ebaSmrg fi ;; 261104007ebaSmrg esac 261204007ebaSmrg need_lib_prefix=no 261304007ebaSmrg need_version=no 261404007ebaSmrg soname_spec='${libname}${release}${shared_ext}$major' 261504007ebaSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 261604007ebaSmrg case $host_os in 261704007ebaSmrg irix5* | nonstopux*) 261804007ebaSmrg libsuff= shlibsuff= 261904007ebaSmrg ;; 262004007ebaSmrg *) 262104007ebaSmrg case $LD in # libtool.m4 will add one of these switches to LD 262204007ebaSmrg *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 262304007ebaSmrg libsuff= shlibsuff= libmagic=32-bit;; 262404007ebaSmrg *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 262504007ebaSmrg libsuff=32 shlibsuff=N32 libmagic=N32;; 262604007ebaSmrg *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 262704007ebaSmrg libsuff=64 shlibsuff=64 libmagic=64-bit;; 262804007ebaSmrg *) libsuff= shlibsuff= libmagic=never-match;; 262904007ebaSmrg esac 263004007ebaSmrg ;; 263104007ebaSmrg esac 263204007ebaSmrg shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 263304007ebaSmrg shlibpath_overrides_runpath=no 263404007ebaSmrg sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 263504007ebaSmrg sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 263604007ebaSmrg hardcode_into_libs=yes 263704007ebaSmrg ;; 263804007ebaSmrg 263904007ebaSmrg# No shared lib support for Linux oldld, aout, or coff. 264004007ebaSmrglinux*oldld* | linux*aout* | linux*coff*) 264104007ebaSmrg dynamic_linker=no 264204007ebaSmrg ;; 264304007ebaSmrg 264404007ebaSmrg# This must be glibc/ELF. 264504007ebaSmrglinux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 264604007ebaSmrg version_type=linux # correct to gnu/linux during the next big refactor 264704007ebaSmrg need_lib_prefix=no 264804007ebaSmrg need_version=no 264904007ebaSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 265004007ebaSmrg soname_spec='${libname}${release}${shared_ext}$major' 265104007ebaSmrg finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 265204007ebaSmrg shlibpath_var=LD_LIBRARY_PATH 265304007ebaSmrg shlibpath_overrides_runpath=no 265404007ebaSmrg 265504007ebaSmrg # Some binutils ld are patched to set DT_RUNPATH 265604007ebaSmrg AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath], 265704007ebaSmrg [lt_cv_shlibpath_overrides_runpath=no 265804007ebaSmrg save_LDFLAGS=$LDFLAGS 265904007ebaSmrg save_libdir=$libdir 266004007ebaSmrg eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \ 266104007ebaSmrg LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\"" 266204007ebaSmrg AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], 266304007ebaSmrg [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null], 266404007ebaSmrg [lt_cv_shlibpath_overrides_runpath=yes])]) 266504007ebaSmrg LDFLAGS=$save_LDFLAGS 266604007ebaSmrg libdir=$save_libdir 266704007ebaSmrg ]) 266804007ebaSmrg shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 266904007ebaSmrg 267004007ebaSmrg # This implies no fast_install, which is unacceptable. 267104007ebaSmrg # Some rework will be needed to allow for fast_install 267204007ebaSmrg # before this can be enabled. 267304007ebaSmrg hardcode_into_libs=yes 267404007ebaSmrg 267504007ebaSmrg # Append ld.so.conf contents to the search path 267604007ebaSmrg if test -f /etc/ld.so.conf; then 267704007ebaSmrg 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' ' '` 267804007ebaSmrg sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 267904007ebaSmrg fi 268004007ebaSmrg 268104007ebaSmrg # We used to test for /lib/ld.so.1 and disable shared libraries on 268204007ebaSmrg # powerpc, because MkLinux only supported shared libraries with the 268304007ebaSmrg # GNU dynamic linker. Since this was broken with cross compilers, 268404007ebaSmrg # most powerpc-linux boxes support dynamic linking these days and 268504007ebaSmrg # people can always --disable-shared, the test was removed, and we 268604007ebaSmrg # assume the GNU/Linux dynamic linker is in use. 268704007ebaSmrg dynamic_linker='GNU/Linux ld.so' 268804007ebaSmrg ;; 268904007ebaSmrg 269004007ebaSmrgnetbsdelf*-gnu) 269104007ebaSmrg version_type=linux 269204007ebaSmrg need_lib_prefix=no 269304007ebaSmrg need_version=no 269404007ebaSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 269504007ebaSmrg soname_spec='${libname}${release}${shared_ext}$major' 269604007ebaSmrg shlibpath_var=LD_LIBRARY_PATH 269704007ebaSmrg shlibpath_overrides_runpath=no 269804007ebaSmrg hardcode_into_libs=yes 269904007ebaSmrg dynamic_linker='NetBSD ld.elf_so' 270004007ebaSmrg ;; 270104007ebaSmrg 270204007ebaSmrgnetbsd*) 270304007ebaSmrg version_type=sunos 270404007ebaSmrg need_lib_prefix=no 270504007ebaSmrg need_version=no 270604007ebaSmrg if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 270704007ebaSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 270804007ebaSmrg finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 270904007ebaSmrg dynamic_linker='NetBSD (a.out) ld.so' 271004007ebaSmrg else 271104007ebaSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 271204007ebaSmrg soname_spec='${libname}${release}${shared_ext}$major' 271304007ebaSmrg dynamic_linker='NetBSD ld.elf_so' 271404007ebaSmrg fi 271504007ebaSmrg shlibpath_var=LD_LIBRARY_PATH 271604007ebaSmrg shlibpath_overrides_runpath=yes 271704007ebaSmrg hardcode_into_libs=yes 271804007ebaSmrg ;; 271904007ebaSmrg 272004007ebaSmrgnewsos6) 272104007ebaSmrg version_type=linux # correct to gnu/linux during the next big refactor 272204007ebaSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 272304007ebaSmrg shlibpath_var=LD_LIBRARY_PATH 272404007ebaSmrg shlibpath_overrides_runpath=yes 272504007ebaSmrg ;; 272604007ebaSmrg 272704007ebaSmrg*nto* | *qnx*) 272804007ebaSmrg version_type=qnx 272904007ebaSmrg need_lib_prefix=no 273004007ebaSmrg need_version=no 273104007ebaSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 273204007ebaSmrg soname_spec='${libname}${release}${shared_ext}$major' 273304007ebaSmrg shlibpath_var=LD_LIBRARY_PATH 273404007ebaSmrg shlibpath_overrides_runpath=no 273504007ebaSmrg hardcode_into_libs=yes 273604007ebaSmrg dynamic_linker='ldqnx.so' 273704007ebaSmrg ;; 273804007ebaSmrg 273904007ebaSmrgopenbsd*) 274004007ebaSmrg version_type=sunos 274104007ebaSmrg sys_lib_dlsearch_path_spec="/usr/lib" 274204007ebaSmrg need_lib_prefix=no 274304007ebaSmrg # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 274404007ebaSmrg case $host_os in 274504007ebaSmrg openbsd3.3 | openbsd3.3.*) need_version=yes ;; 274604007ebaSmrg *) need_version=no ;; 274704007ebaSmrg esac 274804007ebaSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 274904007ebaSmrg finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 275004007ebaSmrg shlibpath_var=LD_LIBRARY_PATH 275104007ebaSmrg if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 275204007ebaSmrg case $host_os in 275304007ebaSmrg openbsd2.[[89]] | openbsd2.[[89]].*) 275404007ebaSmrg shlibpath_overrides_runpath=no 275504007ebaSmrg ;; 275604007ebaSmrg *) 275704007ebaSmrg shlibpath_overrides_runpath=yes 275804007ebaSmrg ;; 275904007ebaSmrg esac 276004007ebaSmrg else 276104007ebaSmrg shlibpath_overrides_runpath=yes 276204007ebaSmrg fi 276304007ebaSmrg ;; 276404007ebaSmrg 276504007ebaSmrgos2*) 276604007ebaSmrg libname_spec='$name' 276704007ebaSmrg shrext_cmds=".dll" 276804007ebaSmrg need_lib_prefix=no 276904007ebaSmrg library_names_spec='$libname${shared_ext} $libname.a' 277004007ebaSmrg dynamic_linker='OS/2 ld.exe' 277104007ebaSmrg shlibpath_var=LIBPATH 277204007ebaSmrg ;; 277304007ebaSmrg 277404007ebaSmrgosf3* | osf4* | osf5*) 277504007ebaSmrg version_type=osf 277604007ebaSmrg need_lib_prefix=no 277704007ebaSmrg need_version=no 277804007ebaSmrg soname_spec='${libname}${release}${shared_ext}$major' 277904007ebaSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 278004007ebaSmrg shlibpath_var=LD_LIBRARY_PATH 278104007ebaSmrg sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 278204007ebaSmrg sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 278304007ebaSmrg ;; 278404007ebaSmrg 278504007ebaSmrgrdos*) 278604007ebaSmrg dynamic_linker=no 278704007ebaSmrg ;; 278804007ebaSmrg 278904007ebaSmrgsolaris*) 279004007ebaSmrg version_type=linux # correct to gnu/linux during the next big refactor 279104007ebaSmrg need_lib_prefix=no 279204007ebaSmrg need_version=no 279304007ebaSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 279404007ebaSmrg soname_spec='${libname}${release}${shared_ext}$major' 279504007ebaSmrg shlibpath_var=LD_LIBRARY_PATH 279604007ebaSmrg shlibpath_overrides_runpath=yes 279704007ebaSmrg hardcode_into_libs=yes 279804007ebaSmrg # ldd complains unless libraries are executable 279904007ebaSmrg postinstall_cmds='chmod +x $lib' 280004007ebaSmrg ;; 280104007ebaSmrg 280204007ebaSmrgsunos4*) 280304007ebaSmrg version_type=sunos 280404007ebaSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 280504007ebaSmrg finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 280604007ebaSmrg shlibpath_var=LD_LIBRARY_PATH 280704007ebaSmrg shlibpath_overrides_runpath=yes 280804007ebaSmrg if test "$with_gnu_ld" = yes; then 280904007ebaSmrg need_lib_prefix=no 281004007ebaSmrg fi 281104007ebaSmrg need_version=yes 281204007ebaSmrg ;; 281304007ebaSmrg 281404007ebaSmrgsysv4 | sysv4.3*) 281504007ebaSmrg version_type=linux # correct to gnu/linux during the next big refactor 281604007ebaSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 281704007ebaSmrg soname_spec='${libname}${release}${shared_ext}$major' 281804007ebaSmrg shlibpath_var=LD_LIBRARY_PATH 281904007ebaSmrg case $host_vendor in 282004007ebaSmrg sni) 282104007ebaSmrg shlibpath_overrides_runpath=no 282204007ebaSmrg need_lib_prefix=no 282304007ebaSmrg runpath_var=LD_RUN_PATH 282404007ebaSmrg ;; 282504007ebaSmrg siemens) 282604007ebaSmrg need_lib_prefix=no 282704007ebaSmrg ;; 282804007ebaSmrg motorola) 282904007ebaSmrg need_lib_prefix=no 283004007ebaSmrg need_version=no 283104007ebaSmrg shlibpath_overrides_runpath=no 283204007ebaSmrg sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 283304007ebaSmrg ;; 283404007ebaSmrg esac 283504007ebaSmrg ;; 283604007ebaSmrg 283704007ebaSmrgsysv4*MP*) 283804007ebaSmrg if test -d /usr/nec ;then 283904007ebaSmrg version_type=linux # correct to gnu/linux during the next big refactor 284004007ebaSmrg library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 284104007ebaSmrg soname_spec='$libname${shared_ext}.$major' 284204007ebaSmrg shlibpath_var=LD_LIBRARY_PATH 284304007ebaSmrg fi 284404007ebaSmrg ;; 284504007ebaSmrg 284604007ebaSmrgsysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 284704007ebaSmrg version_type=freebsd-elf 284804007ebaSmrg need_lib_prefix=no 284904007ebaSmrg need_version=no 285004007ebaSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 285104007ebaSmrg soname_spec='${libname}${release}${shared_ext}$major' 285204007ebaSmrg shlibpath_var=LD_LIBRARY_PATH 285304007ebaSmrg shlibpath_overrides_runpath=yes 285404007ebaSmrg hardcode_into_libs=yes 285504007ebaSmrg if test "$with_gnu_ld" = yes; then 285604007ebaSmrg sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 285704007ebaSmrg else 285804007ebaSmrg sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 285904007ebaSmrg case $host_os in 286004007ebaSmrg sco3.2v5*) 286104007ebaSmrg sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 286204007ebaSmrg ;; 286304007ebaSmrg esac 286404007ebaSmrg fi 286504007ebaSmrg sys_lib_dlsearch_path_spec='/usr/lib' 286604007ebaSmrg ;; 286704007ebaSmrg 286804007ebaSmrgtpf*) 286904007ebaSmrg # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 287004007ebaSmrg version_type=linux # correct to gnu/linux during the next big refactor 287104007ebaSmrg need_lib_prefix=no 287204007ebaSmrg need_version=no 287304007ebaSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 287404007ebaSmrg shlibpath_var=LD_LIBRARY_PATH 287504007ebaSmrg shlibpath_overrides_runpath=no 287604007ebaSmrg hardcode_into_libs=yes 287704007ebaSmrg ;; 287804007ebaSmrg 287904007ebaSmrguts4*) 288004007ebaSmrg version_type=linux # correct to gnu/linux during the next big refactor 288104007ebaSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 288204007ebaSmrg soname_spec='${libname}${release}${shared_ext}$major' 288304007ebaSmrg shlibpath_var=LD_LIBRARY_PATH 288404007ebaSmrg ;; 288504007ebaSmrg 288604007ebaSmrg*) 288704007ebaSmrg dynamic_linker=no 288804007ebaSmrg ;; 288904007ebaSmrgesac 289004007ebaSmrgAC_MSG_RESULT([$dynamic_linker]) 289104007ebaSmrgtest "$dynamic_linker" = no && can_build_shared=no 289204007ebaSmrg 289304007ebaSmrgvariables_saved_for_relink="PATH $shlibpath_var $runpath_var" 289404007ebaSmrgif test "$GCC" = yes; then 289504007ebaSmrg variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 289604007ebaSmrgfi 289704007ebaSmrg 289804007ebaSmrgif test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 289904007ebaSmrg sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 290004007ebaSmrgfi 290104007ebaSmrgif test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 290204007ebaSmrg sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 290304007ebaSmrgfi 290404007ebaSmrg 290504007ebaSmrg_LT_DECL([], [variables_saved_for_relink], [1], 290604007ebaSmrg [Variables whose values should be saved in libtool wrapper scripts and 290704007ebaSmrg restored at link time]) 290804007ebaSmrg_LT_DECL([], [need_lib_prefix], [0], 290904007ebaSmrg [Do we need the "lib" prefix for modules?]) 291004007ebaSmrg_LT_DECL([], [need_version], [0], [Do we need a version for libraries?]) 291104007ebaSmrg_LT_DECL([], [version_type], [0], [Library versioning type]) 291204007ebaSmrg_LT_DECL([], [runpath_var], [0], [Shared library runtime path variable]) 291304007ebaSmrg_LT_DECL([], [shlibpath_var], [0],[Shared library path variable]) 291404007ebaSmrg_LT_DECL([], [shlibpath_overrides_runpath], [0], 291504007ebaSmrg [Is shlibpath searched before the hard-coded library search path?]) 291604007ebaSmrg_LT_DECL([], [libname_spec], [1], [Format of library name prefix]) 291704007ebaSmrg_LT_DECL([], [library_names_spec], [1], 291804007ebaSmrg [[List of archive names. First name is the real one, the rest are links. 291904007ebaSmrg The last name is the one that the linker finds with -lNAME]]) 292004007ebaSmrg_LT_DECL([], [soname_spec], [1], 292104007ebaSmrg [[The coded name of the library, if different from the real name]]) 292204007ebaSmrg_LT_DECL([], [install_override_mode], [1], 292304007ebaSmrg [Permission mode override for installation of shared libraries]) 292404007ebaSmrg_LT_DECL([], [postinstall_cmds], [2], 292504007ebaSmrg [Command to use after installation of a shared archive]) 292604007ebaSmrg_LT_DECL([], [postuninstall_cmds], [2], 292704007ebaSmrg [Command to use after uninstallation of a shared archive]) 292804007ebaSmrg_LT_DECL([], [finish_cmds], [2], 292904007ebaSmrg [Commands used to finish a libtool library installation in a directory]) 293004007ebaSmrg_LT_DECL([], [finish_eval], [1], 293104007ebaSmrg [[As "finish_cmds", except a single script fragment to be evaled but 293204007ebaSmrg not shown]]) 293304007ebaSmrg_LT_DECL([], [hardcode_into_libs], [0], 293404007ebaSmrg [Whether we should hardcode library paths into libraries]) 293504007ebaSmrg_LT_DECL([], [sys_lib_search_path_spec], [2], 293604007ebaSmrg [Compile-time system search path for libraries]) 293704007ebaSmrg_LT_DECL([], [sys_lib_dlsearch_path_spec], [2], 293804007ebaSmrg [Run-time system search path for libraries]) 293904007ebaSmrg])# _LT_SYS_DYNAMIC_LINKER 294004007ebaSmrg 294104007ebaSmrg 294204007ebaSmrg# _LT_PATH_TOOL_PREFIX(TOOL) 294304007ebaSmrg# -------------------------- 294404007ebaSmrg# find a file program which can recognize shared library 294504007ebaSmrgAC_DEFUN([_LT_PATH_TOOL_PREFIX], 294604007ebaSmrg[m4_require([_LT_DECL_EGREP])dnl 294704007ebaSmrgAC_MSG_CHECKING([for $1]) 294804007ebaSmrgAC_CACHE_VAL(lt_cv_path_MAGIC_CMD, 294904007ebaSmrg[case $MAGIC_CMD in 295004007ebaSmrg[[\\/*] | ?:[\\/]*]) 295104007ebaSmrg lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 295204007ebaSmrg ;; 295304007ebaSmrg*) 295404007ebaSmrg lt_save_MAGIC_CMD="$MAGIC_CMD" 295504007ebaSmrg lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 295604007ebaSmrgdnl $ac_dummy forces splitting on constant user-supplied paths. 295704007ebaSmrgdnl POSIX.2 word splitting is done only on the output of word expansions, 295804007ebaSmrgdnl not every word. This closes a longstanding sh security hole. 295904007ebaSmrg ac_dummy="m4_if([$2], , $PATH, [$2])" 296004007ebaSmrg for ac_dir in $ac_dummy; do 296104007ebaSmrg IFS="$lt_save_ifs" 296204007ebaSmrg test -z "$ac_dir" && ac_dir=. 296304007ebaSmrg if test -f $ac_dir/$1; then 296404007ebaSmrg lt_cv_path_MAGIC_CMD="$ac_dir/$1" 296504007ebaSmrg if test -n "$file_magic_test_file"; then 296604007ebaSmrg case $deplibs_check_method in 296704007ebaSmrg "file_magic "*) 296804007ebaSmrg file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 296904007ebaSmrg MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 297004007ebaSmrg if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 297104007ebaSmrg $EGREP "$file_magic_regex" > /dev/null; then 297204007ebaSmrg : 297304007ebaSmrg else 297404007ebaSmrg cat <<_LT_EOF 1>&2 297504007ebaSmrg 297604007ebaSmrg*** Warning: the command libtool uses to detect shared libraries, 297704007ebaSmrg*** $file_magic_cmd, produces output that libtool cannot recognize. 297804007ebaSmrg*** The result is that libtool may fail to recognize shared libraries 297904007ebaSmrg*** as such. This will affect the creation of libtool libraries that 298004007ebaSmrg*** depend on shared libraries, but programs linked with such libtool 298104007ebaSmrg*** libraries will work regardless of this problem. Nevertheless, you 298204007ebaSmrg*** may want to report the problem to your system manager and/or to 298304007ebaSmrg*** bug-libtool@gnu.org 298404007ebaSmrg 298504007ebaSmrg_LT_EOF 298604007ebaSmrg fi ;; 298704007ebaSmrg esac 298804007ebaSmrg fi 298904007ebaSmrg break 299004007ebaSmrg fi 299104007ebaSmrg done 299204007ebaSmrg IFS="$lt_save_ifs" 299304007ebaSmrg MAGIC_CMD="$lt_save_MAGIC_CMD" 299404007ebaSmrg ;; 299504007ebaSmrgesac]) 299604007ebaSmrgMAGIC_CMD="$lt_cv_path_MAGIC_CMD" 299704007ebaSmrgif test -n "$MAGIC_CMD"; then 299804007ebaSmrg AC_MSG_RESULT($MAGIC_CMD) 299904007ebaSmrgelse 300004007ebaSmrg AC_MSG_RESULT(no) 300104007ebaSmrgfi 300204007ebaSmrg_LT_DECL([], [MAGIC_CMD], [0], 300304007ebaSmrg [Used to examine libraries when file_magic_cmd begins with "file"])dnl 300404007ebaSmrg])# _LT_PATH_TOOL_PREFIX 300504007ebaSmrg 300604007ebaSmrg# Old name: 300704007ebaSmrgAU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX]) 300804007ebaSmrgdnl aclocal-1.4 backwards compatibility: 300904007ebaSmrgdnl AC_DEFUN([AC_PATH_TOOL_PREFIX], []) 301004007ebaSmrg 301104007ebaSmrg 301204007ebaSmrg# _LT_PATH_MAGIC 301304007ebaSmrg# -------------- 301404007ebaSmrg# find a file program which can recognize a shared library 301504007ebaSmrgm4_defun([_LT_PATH_MAGIC], 301604007ebaSmrg[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) 301704007ebaSmrgif test -z "$lt_cv_path_MAGIC_CMD"; then 301804007ebaSmrg if test -n "$ac_tool_prefix"; then 301904007ebaSmrg _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) 302004007ebaSmrg else 302104007ebaSmrg MAGIC_CMD=: 302204007ebaSmrg fi 302304007ebaSmrgfi 302404007ebaSmrg])# _LT_PATH_MAGIC 302504007ebaSmrg 302604007ebaSmrg 302704007ebaSmrg# LT_PATH_LD 302804007ebaSmrg# ---------- 302904007ebaSmrg# find the pathname to the GNU or non-GNU linker 303004007ebaSmrgAC_DEFUN([LT_PATH_LD], 303104007ebaSmrg[AC_REQUIRE([AC_PROG_CC])dnl 303204007ebaSmrgAC_REQUIRE([AC_CANONICAL_HOST])dnl 303304007ebaSmrgAC_REQUIRE([AC_CANONICAL_BUILD])dnl 303404007ebaSmrgm4_require([_LT_DECL_SED])dnl 303504007ebaSmrgm4_require([_LT_DECL_EGREP])dnl 303604007ebaSmrgm4_require([_LT_PROG_ECHO_BACKSLASH])dnl 303704007ebaSmrg 303804007ebaSmrgAC_ARG_WITH([gnu-ld], 303904007ebaSmrg [AS_HELP_STRING([--with-gnu-ld], 304004007ebaSmrg [assume the C compiler uses GNU ld @<:@default=no@:>@])], 304104007ebaSmrg [test "$withval" = no || with_gnu_ld=yes], 304204007ebaSmrg [with_gnu_ld=no])dnl 304304007ebaSmrg 304404007ebaSmrgac_prog=ld 304504007ebaSmrgif test "$GCC" = yes; then 304604007ebaSmrg # Check if gcc -print-prog-name=ld gives a path. 304704007ebaSmrg AC_MSG_CHECKING([for ld used by $CC]) 304804007ebaSmrg case $host in 304904007ebaSmrg *-*-mingw*) 305004007ebaSmrg # gcc leaves a trailing carriage return which upsets mingw 305104007ebaSmrg ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 305204007ebaSmrg *) 305304007ebaSmrg ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 305404007ebaSmrg esac 305504007ebaSmrg case $ac_prog in 305604007ebaSmrg # Accept absolute paths. 305704007ebaSmrg [[\\/]]* | ?:[[\\/]]*) 305804007ebaSmrg re_direlt='/[[^/]][[^/]]*/\.\./' 305904007ebaSmrg # Canonicalize the pathname of ld 306004007ebaSmrg ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 306104007ebaSmrg while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 306204007ebaSmrg ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 306304007ebaSmrg done 306404007ebaSmrg test -z "$LD" && LD="$ac_prog" 306504007ebaSmrg ;; 306604007ebaSmrg "") 306704007ebaSmrg # If it fails, then pretend we aren't using GCC. 306804007ebaSmrg ac_prog=ld 306904007ebaSmrg ;; 307004007ebaSmrg *) 307104007ebaSmrg # If it is relative, then search for the first ld in PATH. 307204007ebaSmrg with_gnu_ld=unknown 307304007ebaSmrg ;; 307404007ebaSmrg esac 307504007ebaSmrgelif test "$with_gnu_ld" = yes; then 307604007ebaSmrg AC_MSG_CHECKING([for GNU ld]) 307704007ebaSmrgelse 307804007ebaSmrg AC_MSG_CHECKING([for non-GNU ld]) 307904007ebaSmrgfi 308004007ebaSmrgAC_CACHE_VAL(lt_cv_path_LD, 308104007ebaSmrg[if test -z "$LD"; then 308204007ebaSmrg lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 308304007ebaSmrg for ac_dir in $PATH; do 308404007ebaSmrg IFS="$lt_save_ifs" 308504007ebaSmrg test -z "$ac_dir" && ac_dir=. 308604007ebaSmrg if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 308704007ebaSmrg lt_cv_path_LD="$ac_dir/$ac_prog" 308804007ebaSmrg # Check to see if the program is GNU ld. I'd rather use --version, 308904007ebaSmrg # but apparently some variants of GNU ld only accept -v. 309004007ebaSmrg # Break only if it was the GNU/non-GNU ld that we prefer. 309104007ebaSmrg case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 309204007ebaSmrg *GNU* | *'with BFD'*) 309304007ebaSmrg test "$with_gnu_ld" != no && break 309404007ebaSmrg ;; 309504007ebaSmrg *) 309604007ebaSmrg test "$with_gnu_ld" != yes && break 309704007ebaSmrg ;; 309804007ebaSmrg esac 309904007ebaSmrg fi 310004007ebaSmrg done 310104007ebaSmrg IFS="$lt_save_ifs" 310204007ebaSmrgelse 310304007ebaSmrg lt_cv_path_LD="$LD" # Let the user override the test with a path. 310404007ebaSmrgfi]) 310504007ebaSmrgLD="$lt_cv_path_LD" 310604007ebaSmrgif test -n "$LD"; then 310704007ebaSmrg AC_MSG_RESULT($LD) 310804007ebaSmrgelse 310904007ebaSmrg AC_MSG_RESULT(no) 311004007ebaSmrgfi 311104007ebaSmrgtest -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) 311204007ebaSmrg_LT_PATH_LD_GNU 311304007ebaSmrgAC_SUBST([LD]) 311404007ebaSmrg 311504007ebaSmrg_LT_TAGDECL([], [LD], [1], [The linker used to build libraries]) 311604007ebaSmrg])# LT_PATH_LD 311704007ebaSmrg 311804007ebaSmrg# Old names: 311904007ebaSmrgAU_ALIAS([AM_PROG_LD], [LT_PATH_LD]) 312004007ebaSmrgAU_ALIAS([AC_PROG_LD], [LT_PATH_LD]) 312104007ebaSmrgdnl aclocal-1.4 backwards compatibility: 312204007ebaSmrgdnl AC_DEFUN([AM_PROG_LD], []) 312304007ebaSmrgdnl AC_DEFUN([AC_PROG_LD], []) 312404007ebaSmrg 312504007ebaSmrg 312604007ebaSmrg# _LT_PATH_LD_GNU 312704007ebaSmrg#- -------------- 312804007ebaSmrgm4_defun([_LT_PATH_LD_GNU], 312904007ebaSmrg[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld, 313004007ebaSmrg[# I'd rather use --version here, but apparently some GNU lds only accept -v. 313104007ebaSmrgcase `$LD -v 2>&1 </dev/null` in 313204007ebaSmrg*GNU* | *'with BFD'*) 313304007ebaSmrg lt_cv_prog_gnu_ld=yes 313404007ebaSmrg ;; 313504007ebaSmrg*) 313604007ebaSmrg lt_cv_prog_gnu_ld=no 313704007ebaSmrg ;; 313804007ebaSmrgesac]) 313904007ebaSmrgwith_gnu_ld=$lt_cv_prog_gnu_ld 314004007ebaSmrg])# _LT_PATH_LD_GNU 314104007ebaSmrg 314204007ebaSmrg 314304007ebaSmrg# _LT_CMD_RELOAD 314404007ebaSmrg# -------------- 314504007ebaSmrg# find reload flag for linker 314604007ebaSmrg# -- PORTME Some linkers may need a different reload flag. 314704007ebaSmrgm4_defun([_LT_CMD_RELOAD], 314804007ebaSmrg[AC_CACHE_CHECK([for $LD option to reload object files], 314904007ebaSmrg lt_cv_ld_reload_flag, 315004007ebaSmrg [lt_cv_ld_reload_flag='-r']) 315104007ebaSmrgreload_flag=$lt_cv_ld_reload_flag 315204007ebaSmrgcase $reload_flag in 315304007ebaSmrg"" | " "*) ;; 315404007ebaSmrg*) reload_flag=" $reload_flag" ;; 315504007ebaSmrgesac 315604007ebaSmrgreload_cmds='$LD$reload_flag -o $output$reload_objs' 315704007ebaSmrgcase $host_os in 315804007ebaSmrg cygwin* | mingw* | pw32* | cegcc*) 315904007ebaSmrg if test "$GCC" != yes; then 316004007ebaSmrg reload_cmds=false 316104007ebaSmrg fi 316204007ebaSmrg ;; 316304007ebaSmrg darwin*) 316404007ebaSmrg if test "$GCC" = yes; then 316504007ebaSmrg reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 316604007ebaSmrg else 316704007ebaSmrg reload_cmds='$LD$reload_flag -o $output$reload_objs' 316804007ebaSmrg fi 316904007ebaSmrg ;; 317004007ebaSmrgesac 317104007ebaSmrg_LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl 317204007ebaSmrg_LT_TAGDECL([], [reload_cmds], [2])dnl 317304007ebaSmrg])# _LT_CMD_RELOAD 317404007ebaSmrg 317504007ebaSmrg 317604007ebaSmrg# _LT_CHECK_MAGIC_METHOD 317704007ebaSmrg# ---------------------- 317804007ebaSmrg# how to check for library dependencies 317904007ebaSmrg# -- PORTME fill in with the dynamic library characteristics 318004007ebaSmrgm4_defun([_LT_CHECK_MAGIC_METHOD], 318104007ebaSmrg[m4_require([_LT_DECL_EGREP]) 318204007ebaSmrgm4_require([_LT_DECL_OBJDUMP]) 318304007ebaSmrgAC_CACHE_CHECK([how to recognize dependent libraries], 318404007ebaSmrglt_cv_deplibs_check_method, 318504007ebaSmrg[lt_cv_file_magic_cmd='$MAGIC_CMD' 318604007ebaSmrglt_cv_file_magic_test_file= 318704007ebaSmrglt_cv_deplibs_check_method='unknown' 318804007ebaSmrg# Need to set the preceding variable on all platforms that support 318904007ebaSmrg# interlibrary dependencies. 319004007ebaSmrg# 'none' -- dependencies not supported. 319104007ebaSmrg# `unknown' -- same as none, but documents that we really don't know. 319204007ebaSmrg# 'pass_all' -- all dependencies passed with no checks. 319304007ebaSmrg# 'test_compile' -- check by making test program. 319404007ebaSmrg# 'file_magic [[regex]]' -- check by looking for files in library path 319504007ebaSmrg# which responds to the $file_magic_cmd with a given extended regex. 319604007ebaSmrg# If you have `file' or equivalent on your system and you're not sure 319704007ebaSmrg# whether `pass_all' will *always* work, you probably want this one. 319804007ebaSmrg 319904007ebaSmrgcase $host_os in 320004007ebaSmrgaix[[4-9]]*) 320104007ebaSmrg lt_cv_deplibs_check_method=pass_all 320204007ebaSmrg ;; 320304007ebaSmrg 320404007ebaSmrgbeos*) 320504007ebaSmrg lt_cv_deplibs_check_method=pass_all 320604007ebaSmrg ;; 320704007ebaSmrg 320804007ebaSmrgbsdi[[45]]*) 320904007ebaSmrg lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)' 321004007ebaSmrg lt_cv_file_magic_cmd='/usr/bin/file -L' 321104007ebaSmrg lt_cv_file_magic_test_file=/shlib/libc.so 321204007ebaSmrg ;; 321304007ebaSmrg 321404007ebaSmrgcygwin*) 321504007ebaSmrg # func_win32_libid is a shell function defined in ltmain.sh 321604007ebaSmrg lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 321704007ebaSmrg lt_cv_file_magic_cmd='func_win32_libid' 321804007ebaSmrg ;; 321904007ebaSmrg 322004007ebaSmrgmingw* | pw32*) 322104007ebaSmrg # Base MSYS/MinGW do not provide the 'file' command needed by 322204007ebaSmrg # func_win32_libid shell function, so use a weaker test based on 'objdump', 322304007ebaSmrg # unless we find 'file', for example because we are cross-compiling. 322404007ebaSmrg # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 322504007ebaSmrg if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 322604007ebaSmrg lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 322704007ebaSmrg lt_cv_file_magic_cmd='func_win32_libid' 322804007ebaSmrg else 322904007ebaSmrg # Keep this pattern in sync with the one in func_win32_libid. 323004007ebaSmrg lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 323104007ebaSmrg lt_cv_file_magic_cmd='$OBJDUMP -f' 323204007ebaSmrg fi 323304007ebaSmrg ;; 323404007ebaSmrg 323504007ebaSmrgcegcc*) 323604007ebaSmrg # use the weaker test based on 'objdump'. See mingw*. 323704007ebaSmrg lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 323804007ebaSmrg lt_cv_file_magic_cmd='$OBJDUMP -f' 323904007ebaSmrg ;; 324004007ebaSmrg 324104007ebaSmrgdarwin* | rhapsody*) 324204007ebaSmrg lt_cv_deplibs_check_method=pass_all 324304007ebaSmrg ;; 324404007ebaSmrg 324504007ebaSmrgfreebsd* | dragonfly*) 324604007ebaSmrg if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 324704007ebaSmrg case $host_cpu in 324804007ebaSmrg i*86 ) 324904007ebaSmrg # Not sure whether the presence of OpenBSD here was a mistake. 325004007ebaSmrg # Let's accept both of them until this is cleared up. 325104007ebaSmrg lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' 325204007ebaSmrg lt_cv_file_magic_cmd=/usr/bin/file 325304007ebaSmrg lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 325404007ebaSmrg ;; 325504007ebaSmrg esac 325604007ebaSmrg else 325704007ebaSmrg lt_cv_deplibs_check_method=pass_all 325804007ebaSmrg fi 325904007ebaSmrg ;; 326004007ebaSmrg 326104007ebaSmrghaiku*) 326204007ebaSmrg lt_cv_deplibs_check_method=pass_all 326304007ebaSmrg ;; 326404007ebaSmrg 326504007ebaSmrghpux10.20* | hpux11*) 326604007ebaSmrg lt_cv_file_magic_cmd=/usr/bin/file 326704007ebaSmrg case $host_cpu in 326804007ebaSmrg ia64*) 326904007ebaSmrg lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' 327004007ebaSmrg lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 327104007ebaSmrg ;; 327204007ebaSmrg hppa*64*) 327304007ebaSmrg [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]'] 327404007ebaSmrg lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 327504007ebaSmrg ;; 327604007ebaSmrg *) 327704007ebaSmrg lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library' 327804007ebaSmrg lt_cv_file_magic_test_file=/usr/lib/libc.sl 327904007ebaSmrg ;; 328004007ebaSmrg esac 328104007ebaSmrg ;; 328204007ebaSmrg 328304007ebaSmrginterix[[3-9]]*) 328404007ebaSmrg # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 328504007ebaSmrg lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' 328604007ebaSmrg ;; 328704007ebaSmrg 328804007ebaSmrgirix5* | irix6* | nonstopux*) 328904007ebaSmrg case $LD in 329004007ebaSmrg *-32|*"-32 ") libmagic=32-bit;; 329104007ebaSmrg *-n32|*"-n32 ") libmagic=N32;; 329204007ebaSmrg *-64|*"-64 ") libmagic=64-bit;; 329304007ebaSmrg *) libmagic=never-match;; 329404007ebaSmrg esac 329504007ebaSmrg lt_cv_deplibs_check_method=pass_all 329604007ebaSmrg ;; 329704007ebaSmrg 329804007ebaSmrg# This must be glibc/ELF. 329904007ebaSmrglinux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 330004007ebaSmrg lt_cv_deplibs_check_method=pass_all 330104007ebaSmrg ;; 330204007ebaSmrg 330304007ebaSmrgnetbsd* | netbsdelf*-gnu) 330404007ebaSmrg if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 330504007ebaSmrg lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' 330604007ebaSmrg else 330704007ebaSmrg lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' 330804007ebaSmrg fi 330904007ebaSmrg ;; 331004007ebaSmrg 331104007ebaSmrgnewos6*) 331204007ebaSmrg lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' 331304007ebaSmrg lt_cv_file_magic_cmd=/usr/bin/file 331404007ebaSmrg lt_cv_file_magic_test_file=/usr/lib/libnls.so 331504007ebaSmrg ;; 331604007ebaSmrg 331704007ebaSmrg*nto* | *qnx*) 331804007ebaSmrg lt_cv_deplibs_check_method=pass_all 331904007ebaSmrg ;; 332004007ebaSmrg 332104007ebaSmrgopenbsd*) 332204007ebaSmrg if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 332304007ebaSmrg lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' 332404007ebaSmrg else 332504007ebaSmrg lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' 332604007ebaSmrg fi 332704007ebaSmrg ;; 332804007ebaSmrg 332904007ebaSmrgosf3* | osf4* | osf5*) 333004007ebaSmrg lt_cv_deplibs_check_method=pass_all 333104007ebaSmrg ;; 333204007ebaSmrg 333304007ebaSmrgrdos*) 333404007ebaSmrg lt_cv_deplibs_check_method=pass_all 333504007ebaSmrg ;; 333604007ebaSmrg 333704007ebaSmrgsolaris*) 333804007ebaSmrg lt_cv_deplibs_check_method=pass_all 333904007ebaSmrg ;; 334004007ebaSmrg 334104007ebaSmrgsysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 334204007ebaSmrg lt_cv_deplibs_check_method=pass_all 334304007ebaSmrg ;; 334404007ebaSmrg 334504007ebaSmrgsysv4 | sysv4.3*) 334604007ebaSmrg case $host_vendor in 334704007ebaSmrg motorola) 334804007ebaSmrg 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]]' 334904007ebaSmrg lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 335004007ebaSmrg ;; 335104007ebaSmrg ncr) 335204007ebaSmrg lt_cv_deplibs_check_method=pass_all 335304007ebaSmrg ;; 335404007ebaSmrg sequent) 335504007ebaSmrg lt_cv_file_magic_cmd='/bin/file' 335604007ebaSmrg lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' 335704007ebaSmrg ;; 335804007ebaSmrg sni) 335904007ebaSmrg lt_cv_file_magic_cmd='/bin/file' 336004007ebaSmrg lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" 336104007ebaSmrg lt_cv_file_magic_test_file=/lib/libc.so 336204007ebaSmrg ;; 336304007ebaSmrg siemens) 336404007ebaSmrg lt_cv_deplibs_check_method=pass_all 336504007ebaSmrg ;; 336604007ebaSmrg pc) 336704007ebaSmrg lt_cv_deplibs_check_method=pass_all 336804007ebaSmrg ;; 336904007ebaSmrg esac 337004007ebaSmrg ;; 337104007ebaSmrg 337204007ebaSmrgtpf*) 337304007ebaSmrg lt_cv_deplibs_check_method=pass_all 337404007ebaSmrg ;; 337504007ebaSmrgesac 337604007ebaSmrg]) 337704007ebaSmrg 337804007ebaSmrgfile_magic_glob= 337904007ebaSmrgwant_nocaseglob=no 338004007ebaSmrgif test "$build" = "$host"; then 338104007ebaSmrg case $host_os in 338204007ebaSmrg mingw* | pw32*) 338304007ebaSmrg if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 338404007ebaSmrg want_nocaseglob=yes 338504007ebaSmrg else 338604007ebaSmrg file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"` 338704007ebaSmrg fi 338804007ebaSmrg ;; 338904007ebaSmrg esac 339004007ebaSmrgfi 339104007ebaSmrg 339204007ebaSmrgfile_magic_cmd=$lt_cv_file_magic_cmd 339304007ebaSmrgdeplibs_check_method=$lt_cv_deplibs_check_method 339404007ebaSmrgtest -z "$deplibs_check_method" && deplibs_check_method=unknown 339504007ebaSmrg 339604007ebaSmrg_LT_DECL([], [deplibs_check_method], [1], 339704007ebaSmrg [Method to check whether dependent libraries are shared objects]) 339804007ebaSmrg_LT_DECL([], [file_magic_cmd], [1], 339904007ebaSmrg [Command to use when deplibs_check_method = "file_magic"]) 340004007ebaSmrg_LT_DECL([], [file_magic_glob], [1], 340104007ebaSmrg [How to find potential files when deplibs_check_method = "file_magic"]) 340204007ebaSmrg_LT_DECL([], [want_nocaseglob], [1], 340304007ebaSmrg [Find potential files using nocaseglob when deplibs_check_method = "file_magic"]) 340404007ebaSmrg])# _LT_CHECK_MAGIC_METHOD 340504007ebaSmrg 340604007ebaSmrg 340704007ebaSmrg# LT_PATH_NM 340804007ebaSmrg# ---------- 340904007ebaSmrg# find the pathname to a BSD- or MS-compatible name lister 341004007ebaSmrgAC_DEFUN([LT_PATH_NM], 341104007ebaSmrg[AC_REQUIRE([AC_PROG_CC])dnl 341204007ebaSmrgAC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM, 341304007ebaSmrg[if test -n "$NM"; then 341404007ebaSmrg # Let the user override the test. 341504007ebaSmrg lt_cv_path_NM="$NM" 341604007ebaSmrgelse 341704007ebaSmrg lt_nm_to_check="${ac_tool_prefix}nm" 341804007ebaSmrg if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 341904007ebaSmrg lt_nm_to_check="$lt_nm_to_check nm" 342004007ebaSmrg fi 342104007ebaSmrg for lt_tmp_nm in $lt_nm_to_check; do 342204007ebaSmrg lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 342304007ebaSmrg for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 342404007ebaSmrg IFS="$lt_save_ifs" 342504007ebaSmrg test -z "$ac_dir" && ac_dir=. 342604007ebaSmrg tmp_nm="$ac_dir/$lt_tmp_nm" 342704007ebaSmrg if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 342804007ebaSmrg # Check to see if the nm accepts a BSD-compat flag. 342904007ebaSmrg # Adding the `sed 1q' prevents false positives on HP-UX, which says: 343004007ebaSmrg # nm: unknown option "B" ignored 343104007ebaSmrg # Tru64's nm complains that /dev/null is an invalid object file 343204007ebaSmrg case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 343304007ebaSmrg */dev/null* | *'Invalid file or object type'*) 343404007ebaSmrg lt_cv_path_NM="$tmp_nm -B" 343504007ebaSmrg break 343604007ebaSmrg ;; 343704007ebaSmrg *) 343804007ebaSmrg case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 343904007ebaSmrg */dev/null*) 344004007ebaSmrg lt_cv_path_NM="$tmp_nm -p" 344104007ebaSmrg break 344204007ebaSmrg ;; 344304007ebaSmrg *) 344404007ebaSmrg lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 344504007ebaSmrg continue # so that we can try to find one that supports BSD flags 344604007ebaSmrg ;; 344704007ebaSmrg esac 344804007ebaSmrg ;; 344904007ebaSmrg esac 345004007ebaSmrg fi 345104007ebaSmrg done 345204007ebaSmrg IFS="$lt_save_ifs" 345304007ebaSmrg done 345404007ebaSmrg : ${lt_cv_path_NM=no} 345504007ebaSmrgfi]) 345604007ebaSmrgif test "$lt_cv_path_NM" != "no"; then 345704007ebaSmrg NM="$lt_cv_path_NM" 345804007ebaSmrgelse 345904007ebaSmrg # Didn't find any BSD compatible name lister, look for dumpbin. 346004007ebaSmrg if test -n "$DUMPBIN"; then : 346104007ebaSmrg # Let the user override the test. 346204007ebaSmrg else 346304007ebaSmrg AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :) 346404007ebaSmrg case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 346504007ebaSmrg *COFF*) 346604007ebaSmrg DUMPBIN="$DUMPBIN -symbols" 346704007ebaSmrg ;; 346804007ebaSmrg *) 346904007ebaSmrg DUMPBIN=: 347004007ebaSmrg ;; 347104007ebaSmrg esac 347204007ebaSmrg fi 347304007ebaSmrg AC_SUBST([DUMPBIN]) 347404007ebaSmrg if test "$DUMPBIN" != ":"; then 347504007ebaSmrg NM="$DUMPBIN" 347604007ebaSmrg fi 347704007ebaSmrgfi 347804007ebaSmrgtest -z "$NM" && NM=nm 347904007ebaSmrgAC_SUBST([NM]) 348004007ebaSmrg_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl 348104007ebaSmrg 348204007ebaSmrgAC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface], 348304007ebaSmrg [lt_cv_nm_interface="BSD nm" 348404007ebaSmrg echo "int some_variable = 0;" > conftest.$ac_ext 348504007ebaSmrg (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD) 348604007ebaSmrg (eval "$ac_compile" 2>conftest.err) 348704007ebaSmrg cat conftest.err >&AS_MESSAGE_LOG_FD 348804007ebaSmrg (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD) 348904007ebaSmrg (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 349004007ebaSmrg cat conftest.err >&AS_MESSAGE_LOG_FD 349104007ebaSmrg (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD) 349204007ebaSmrg cat conftest.out >&AS_MESSAGE_LOG_FD 349304007ebaSmrg if $GREP 'External.*some_variable' conftest.out > /dev/null; then 349404007ebaSmrg lt_cv_nm_interface="MS dumpbin" 349504007ebaSmrg fi 349604007ebaSmrg rm -f conftest*]) 349704007ebaSmrg])# LT_PATH_NM 349804007ebaSmrg 349904007ebaSmrg# Old names: 350004007ebaSmrgAU_ALIAS([AM_PROG_NM], [LT_PATH_NM]) 350104007ebaSmrgAU_ALIAS([AC_PROG_NM], [LT_PATH_NM]) 350204007ebaSmrgdnl aclocal-1.4 backwards compatibility: 350304007ebaSmrgdnl AC_DEFUN([AM_PROG_NM], []) 350404007ebaSmrgdnl AC_DEFUN([AC_PROG_NM], []) 350504007ebaSmrg 350604007ebaSmrg# _LT_CHECK_SHAREDLIB_FROM_LINKLIB 350704007ebaSmrg# -------------------------------- 350804007ebaSmrg# how to determine the name of the shared library 350904007ebaSmrg# associated with a specific link library. 351004007ebaSmrg# -- PORTME fill in with the dynamic library characteristics 351104007ebaSmrgm4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB], 351204007ebaSmrg[m4_require([_LT_DECL_EGREP]) 351304007ebaSmrgm4_require([_LT_DECL_OBJDUMP]) 351404007ebaSmrgm4_require([_LT_DECL_DLLTOOL]) 351504007ebaSmrgAC_CACHE_CHECK([how to associate runtime and link libraries], 351604007ebaSmrglt_cv_sharedlib_from_linklib_cmd, 351704007ebaSmrg[lt_cv_sharedlib_from_linklib_cmd='unknown' 351804007ebaSmrg 351904007ebaSmrgcase $host_os in 352004007ebaSmrgcygwin* | mingw* | pw32* | cegcc*) 352104007ebaSmrg # two different shell functions defined in ltmain.sh 352204007ebaSmrg # decide which to use based on capabilities of $DLLTOOL 352304007ebaSmrg case `$DLLTOOL --help 2>&1` in 352404007ebaSmrg *--identify-strict*) 352504007ebaSmrg lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 352604007ebaSmrg ;; 352704007ebaSmrg *) 352804007ebaSmrg lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 352904007ebaSmrg ;; 353004007ebaSmrg esac 353104007ebaSmrg ;; 353204007ebaSmrg*) 353304007ebaSmrg # fallback: assume linklib IS sharedlib 353404007ebaSmrg lt_cv_sharedlib_from_linklib_cmd="$ECHO" 353504007ebaSmrg ;; 353604007ebaSmrgesac 353704007ebaSmrg]) 353804007ebaSmrgsharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 353904007ebaSmrgtest -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 354004007ebaSmrg 354104007ebaSmrg_LT_DECL([], [sharedlib_from_linklib_cmd], [1], 354204007ebaSmrg [Command to associate shared and link libraries]) 354304007ebaSmrg])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB 354404007ebaSmrg 354504007ebaSmrg 354604007ebaSmrg# _LT_PATH_MANIFEST_TOOL 354704007ebaSmrg# ---------------------- 354804007ebaSmrg# locate the manifest tool 354904007ebaSmrgm4_defun([_LT_PATH_MANIFEST_TOOL], 355004007ebaSmrg[AC_CHECK_TOOL(MANIFEST_TOOL, mt, :) 355104007ebaSmrgtest -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 355204007ebaSmrgAC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool], 355304007ebaSmrg [lt_cv_path_mainfest_tool=no 355404007ebaSmrg echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD 355504007ebaSmrg $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 355604007ebaSmrg cat conftest.err >&AS_MESSAGE_LOG_FD 355704007ebaSmrg if $GREP 'Manifest Tool' conftest.out > /dev/null; then 355804007ebaSmrg lt_cv_path_mainfest_tool=yes 355904007ebaSmrg fi 356004007ebaSmrg rm -f conftest*]) 356104007ebaSmrgif test "x$lt_cv_path_mainfest_tool" != xyes; then 356204007ebaSmrg MANIFEST_TOOL=: 356304007ebaSmrgfi 356404007ebaSmrg_LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl 356504007ebaSmrg])# _LT_PATH_MANIFEST_TOOL 356604007ebaSmrg 356704007ebaSmrg 356804007ebaSmrg# LT_LIB_M 356904007ebaSmrg# -------- 357004007ebaSmrg# check for math library 357104007ebaSmrgAC_DEFUN([LT_LIB_M], 357204007ebaSmrg[AC_REQUIRE([AC_CANONICAL_HOST])dnl 357304007ebaSmrgLIBM= 357404007ebaSmrgcase $host in 357504007ebaSmrg*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*) 357604007ebaSmrg # These system don't have libm, or don't need it 357704007ebaSmrg ;; 357804007ebaSmrg*-ncr-sysv4.3*) 357904007ebaSmrg AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw") 358004007ebaSmrg AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") 358104007ebaSmrg ;; 358204007ebaSmrg*) 358304007ebaSmrg AC_CHECK_LIB(m, cos, LIBM="-lm") 358404007ebaSmrg ;; 358504007ebaSmrgesac 358604007ebaSmrgAC_SUBST([LIBM]) 358704007ebaSmrg])# LT_LIB_M 358804007ebaSmrg 358904007ebaSmrg# Old name: 359004007ebaSmrgAU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M]) 359104007ebaSmrgdnl aclocal-1.4 backwards compatibility: 359204007ebaSmrgdnl AC_DEFUN([AC_CHECK_LIBM], []) 359304007ebaSmrg 359404007ebaSmrg 359504007ebaSmrg# _LT_COMPILER_NO_RTTI([TAGNAME]) 359604007ebaSmrg# ------------------------------- 359704007ebaSmrgm4_defun([_LT_COMPILER_NO_RTTI], 359804007ebaSmrg[m4_require([_LT_TAG_COMPILER])dnl 359904007ebaSmrg 360004007ebaSmrg_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= 360104007ebaSmrg 360204007ebaSmrgif test "$GCC" = yes; then 360304007ebaSmrg case $cc_basename in 360404007ebaSmrg nvcc*) 360504007ebaSmrg _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;; 360604007ebaSmrg *) 360704007ebaSmrg _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;; 360804007ebaSmrg esac 360904007ebaSmrg 361004007ebaSmrg _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], 361104007ebaSmrg lt_cv_prog_compiler_rtti_exceptions, 361204007ebaSmrg [-fno-rtti -fno-exceptions], [], 361304007ebaSmrg [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) 361404007ebaSmrgfi 361504007ebaSmrg_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1], 361604007ebaSmrg [Compiler flag to turn off builtin functions]) 361704007ebaSmrg])# _LT_COMPILER_NO_RTTI 361804007ebaSmrg 361904007ebaSmrg 362004007ebaSmrg# _LT_CMD_GLOBAL_SYMBOLS 362104007ebaSmrg# ---------------------- 362204007ebaSmrgm4_defun([_LT_CMD_GLOBAL_SYMBOLS], 362304007ebaSmrg[AC_REQUIRE([AC_CANONICAL_HOST])dnl 362404007ebaSmrgAC_REQUIRE([AC_PROG_CC])dnl 362504007ebaSmrgAC_REQUIRE([AC_PROG_AWK])dnl 362604007ebaSmrgAC_REQUIRE([LT_PATH_NM])dnl 362704007ebaSmrgAC_REQUIRE([LT_PATH_LD])dnl 362804007ebaSmrgm4_require([_LT_DECL_SED])dnl 362904007ebaSmrgm4_require([_LT_DECL_EGREP])dnl 363004007ebaSmrgm4_require([_LT_TAG_COMPILER])dnl 363104007ebaSmrg 363204007ebaSmrg# Check for command to grab the raw symbol name followed by C symbol from nm. 363304007ebaSmrgAC_MSG_CHECKING([command to parse $NM output from $compiler object]) 363404007ebaSmrgAC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], 363504007ebaSmrg[ 363604007ebaSmrg# These are sane defaults that work on at least a few old systems. 363704007ebaSmrg# [They come from Ultrix. What could be older than Ultrix?!! ;)] 363804007ebaSmrg 363904007ebaSmrg# Character class describing NM global symbol codes. 364004007ebaSmrgsymcode='[[BCDEGRST]]' 364104007ebaSmrg 364204007ebaSmrg# Regexp to match symbols that can be accessed directly from C. 364304007ebaSmrgsympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' 364404007ebaSmrg 364504007ebaSmrg# Define system-specific variables. 364604007ebaSmrgcase $host_os in 364704007ebaSmrgaix*) 364804007ebaSmrg symcode='[[BCDT]]' 364904007ebaSmrg ;; 365004007ebaSmrgcygwin* | mingw* | pw32* | cegcc*) 365104007ebaSmrg symcode='[[ABCDGISTW]]' 365204007ebaSmrg ;; 365304007ebaSmrghpux*) 365404007ebaSmrg if test "$host_cpu" = ia64; then 365504007ebaSmrg symcode='[[ABCDEGRST]]' 365604007ebaSmrg fi 365704007ebaSmrg ;; 365804007ebaSmrgirix* | nonstopux*) 365904007ebaSmrg symcode='[[BCDEGRST]]' 366004007ebaSmrg ;; 366104007ebaSmrgosf*) 366204007ebaSmrg symcode='[[BCDEGQRST]]' 366304007ebaSmrg ;; 366404007ebaSmrgsolaris*) 366504007ebaSmrg symcode='[[BDRT]]' 366604007ebaSmrg ;; 366704007ebaSmrgsco3.2v5*) 366804007ebaSmrg symcode='[[DT]]' 366904007ebaSmrg ;; 367004007ebaSmrgsysv4.2uw2*) 367104007ebaSmrg symcode='[[DT]]' 367204007ebaSmrg ;; 367304007ebaSmrgsysv5* | sco5v6* | unixware* | OpenUNIX*) 367404007ebaSmrg symcode='[[ABDT]]' 367504007ebaSmrg ;; 367604007ebaSmrgsysv4) 367704007ebaSmrg symcode='[[DFNSTU]]' 367804007ebaSmrg ;; 367904007ebaSmrgesac 368004007ebaSmrg 368104007ebaSmrg# If we're using GNU nm, then use its standard symbol codes. 368204007ebaSmrgcase `$NM -V 2>&1` in 368304007ebaSmrg*GNU* | *'with BFD'*) 368404007ebaSmrg symcode='[[ABCDGIRSTW]]' ;; 368504007ebaSmrgesac 368604007ebaSmrg 368704007ebaSmrg# Transform an extracted symbol line into a proper C declaration. 368804007ebaSmrg# Some systems (esp. on ia64) link data and code symbols differently, 368904007ebaSmrg# so use this general approach. 369004007ebaSmrglt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 369104007ebaSmrg 369204007ebaSmrg# Transform an extracted symbol line into symbol name and symbol address 369304007ebaSmrglt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'" 369404007ebaSmrglt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 369504007ebaSmrg 369604007ebaSmrg# Handle CRLF in mingw tool chain 369704007ebaSmrgopt_cr= 369804007ebaSmrgcase $build_os in 369904007ebaSmrgmingw*) 370004007ebaSmrg opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 370104007ebaSmrg ;; 370204007ebaSmrgesac 370304007ebaSmrg 370404007ebaSmrg# Try without a prefix underscore, then with it. 370504007ebaSmrgfor ac_symprfx in "" "_"; do 370604007ebaSmrg 370704007ebaSmrg # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 370804007ebaSmrg symxfrm="\\1 $ac_symprfx\\2 \\2" 370904007ebaSmrg 371004007ebaSmrg # Write the raw and C identifiers. 371104007ebaSmrg if test "$lt_cv_nm_interface" = "MS dumpbin"; then 371204007ebaSmrg # Fake it for dumpbin and say T for any non-static function 371304007ebaSmrg # and D for any global variable. 371404007ebaSmrg # Also find C++ and __fastcall symbols from MSVC++, 371504007ebaSmrg # which start with @ or ?. 371604007ebaSmrg lt_cv_sys_global_symbol_pipe="$AWK ['"\ 371704007ebaSmrg" {last_section=section; section=\$ 3};"\ 371804007ebaSmrg" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 371904007ebaSmrg" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 372004007ebaSmrg" \$ 0!~/External *\|/{next};"\ 372104007ebaSmrg" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 372204007ebaSmrg" {if(hide[section]) next};"\ 372304007ebaSmrg" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 372404007ebaSmrg" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 372504007ebaSmrg" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 372604007ebaSmrg" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 372704007ebaSmrg" ' prfx=^$ac_symprfx]" 372804007ebaSmrg else 372904007ebaSmrg lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 373004007ebaSmrg fi 373104007ebaSmrg lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 373204007ebaSmrg 373304007ebaSmrg # Check to see that the pipe works correctly. 373404007ebaSmrg pipe_works=no 373504007ebaSmrg 373604007ebaSmrg rm -f conftest* 373704007ebaSmrg cat > conftest.$ac_ext <<_LT_EOF 373804007ebaSmrg#ifdef __cplusplus 373904007ebaSmrgextern "C" { 374004007ebaSmrg#endif 374104007ebaSmrgchar nm_test_var; 374204007ebaSmrgvoid nm_test_func(void); 374304007ebaSmrgvoid nm_test_func(void){} 374404007ebaSmrg#ifdef __cplusplus 374504007ebaSmrg} 374604007ebaSmrg#endif 374704007ebaSmrgint main(){nm_test_var='a';nm_test_func();return(0);} 374804007ebaSmrg_LT_EOF 374904007ebaSmrg 375004007ebaSmrg if AC_TRY_EVAL(ac_compile); then 375104007ebaSmrg # Now try to grab the symbols. 375204007ebaSmrg nlist=conftest.nm 375304007ebaSmrg if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then 375404007ebaSmrg # Try sorting and uniquifying the output. 375504007ebaSmrg if sort "$nlist" | uniq > "$nlist"T; then 375604007ebaSmrg mv -f "$nlist"T "$nlist" 375704007ebaSmrg else 375804007ebaSmrg rm -f "$nlist"T 375904007ebaSmrg fi 376004007ebaSmrg 376104007ebaSmrg # Make sure that we snagged all the symbols we need. 376204007ebaSmrg if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 376304007ebaSmrg if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 376404007ebaSmrg cat <<_LT_EOF > conftest.$ac_ext 376504007ebaSmrg/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 376604007ebaSmrg#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 376704007ebaSmrg/* DATA imports from DLLs on WIN32 con't be const, because runtime 376804007ebaSmrg relocations are performed -- see ld's documentation on pseudo-relocs. */ 376904007ebaSmrg# define LT@&t@_DLSYM_CONST 377004007ebaSmrg#elif defined(__osf__) 377104007ebaSmrg/* This system does not cope well with relocations in const data. */ 377204007ebaSmrg# define LT@&t@_DLSYM_CONST 377304007ebaSmrg#else 377404007ebaSmrg# define LT@&t@_DLSYM_CONST const 377504007ebaSmrg#endif 377604007ebaSmrg 377704007ebaSmrg#ifdef __cplusplus 377804007ebaSmrgextern "C" { 377904007ebaSmrg#endif 378004007ebaSmrg 378104007ebaSmrg_LT_EOF 378204007ebaSmrg # Now generate the symbol file. 378304007ebaSmrg eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 378404007ebaSmrg 378504007ebaSmrg cat <<_LT_EOF >> conftest.$ac_ext 378604007ebaSmrg 378704007ebaSmrg/* The mapping between symbol names and symbols. */ 378804007ebaSmrgLT@&t@_DLSYM_CONST struct { 378904007ebaSmrg const char *name; 379004007ebaSmrg void *address; 379104007ebaSmrg} 379204007ebaSmrglt__PROGRAM__LTX_preloaded_symbols[[]] = 379304007ebaSmrg{ 379404007ebaSmrg { "@PROGRAM@", (void *) 0 }, 379504007ebaSmrg_LT_EOF 379604007ebaSmrg $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 379704007ebaSmrg cat <<\_LT_EOF >> conftest.$ac_ext 379804007ebaSmrg {0, (void *) 0} 379904007ebaSmrg}; 380004007ebaSmrg 380104007ebaSmrg/* This works around a problem in FreeBSD linker */ 380204007ebaSmrg#ifdef FREEBSD_WORKAROUND 380304007ebaSmrgstatic const void *lt_preloaded_setup() { 380404007ebaSmrg return lt__PROGRAM__LTX_preloaded_symbols; 380504007ebaSmrg} 380604007ebaSmrg#endif 380704007ebaSmrg 380804007ebaSmrg#ifdef __cplusplus 380904007ebaSmrg} 381004007ebaSmrg#endif 381104007ebaSmrg_LT_EOF 381204007ebaSmrg # Now try linking the two files. 381304007ebaSmrg mv conftest.$ac_objext conftstm.$ac_objext 381404007ebaSmrg lt_globsym_save_LIBS=$LIBS 381504007ebaSmrg lt_globsym_save_CFLAGS=$CFLAGS 381604007ebaSmrg LIBS="conftstm.$ac_objext" 381704007ebaSmrg CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" 381804007ebaSmrg if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then 381904007ebaSmrg pipe_works=yes 382004007ebaSmrg fi 382104007ebaSmrg LIBS=$lt_globsym_save_LIBS 382204007ebaSmrg CFLAGS=$lt_globsym_save_CFLAGS 382304007ebaSmrg else 382404007ebaSmrg echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD 382504007ebaSmrg fi 382604007ebaSmrg else 382704007ebaSmrg echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD 382804007ebaSmrg fi 382904007ebaSmrg else 383004007ebaSmrg echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD 383104007ebaSmrg fi 383204007ebaSmrg else 383304007ebaSmrg echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD 383404007ebaSmrg cat conftest.$ac_ext >&5 383504007ebaSmrg fi 383604007ebaSmrg rm -rf conftest* conftst* 383704007ebaSmrg 383804007ebaSmrg # Do not use the global_symbol_pipe unless it works. 383904007ebaSmrg if test "$pipe_works" = yes; then 384004007ebaSmrg break 384104007ebaSmrg else 384204007ebaSmrg lt_cv_sys_global_symbol_pipe= 384304007ebaSmrg fi 384404007ebaSmrgdone 384504007ebaSmrg]) 384604007ebaSmrgif test -z "$lt_cv_sys_global_symbol_pipe"; then 384704007ebaSmrg lt_cv_sys_global_symbol_to_cdecl= 384804007ebaSmrgfi 384904007ebaSmrgif test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 385004007ebaSmrg AC_MSG_RESULT(failed) 385104007ebaSmrgelse 385204007ebaSmrg AC_MSG_RESULT(ok) 385304007ebaSmrgfi 385404007ebaSmrg 385504007ebaSmrg# Response file support. 385604007ebaSmrgif test "$lt_cv_nm_interface" = "MS dumpbin"; then 385704007ebaSmrg nm_file_list_spec='@' 385804007ebaSmrgelif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then 385904007ebaSmrg nm_file_list_spec='@' 386004007ebaSmrgfi 386104007ebaSmrg 386204007ebaSmrg_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1], 386304007ebaSmrg [Take the output of nm and produce a listing of raw symbols and C names]) 386404007ebaSmrg_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1], 386504007ebaSmrg [Transform the output of nm in a proper C declaration]) 386604007ebaSmrg_LT_DECL([global_symbol_to_c_name_address], 386704007ebaSmrg [lt_cv_sys_global_symbol_to_c_name_address], [1], 386804007ebaSmrg [Transform the output of nm in a C name address pair]) 386904007ebaSmrg_LT_DECL([global_symbol_to_c_name_address_lib_prefix], 387004007ebaSmrg [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1], 387104007ebaSmrg [Transform the output of nm in a C name address pair when lib prefix is needed]) 387204007ebaSmrg_LT_DECL([], [nm_file_list_spec], [1], 387304007ebaSmrg [Specify filename containing input files for $NM]) 387404007ebaSmrg]) # _LT_CMD_GLOBAL_SYMBOLS 387504007ebaSmrg 387604007ebaSmrg 387704007ebaSmrg# _LT_COMPILER_PIC([TAGNAME]) 387804007ebaSmrg# --------------------------- 387904007ebaSmrgm4_defun([_LT_COMPILER_PIC], 388004007ebaSmrg[m4_require([_LT_TAG_COMPILER])dnl 388104007ebaSmrg_LT_TAGVAR(lt_prog_compiler_wl, $1)= 388204007ebaSmrg_LT_TAGVAR(lt_prog_compiler_pic, $1)= 388304007ebaSmrg_LT_TAGVAR(lt_prog_compiler_static, $1)= 388404007ebaSmrg 388504007ebaSmrgm4_if([$1], [CXX], [ 388604007ebaSmrg # C++ specific cases for pic, static, wl, etc. 388704007ebaSmrg if test "$GXX" = yes; then 388804007ebaSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 388904007ebaSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 389004007ebaSmrg 389104007ebaSmrg case $host_os in 389204007ebaSmrg aix*) 389304007ebaSmrg # All AIX code is PIC. 389404007ebaSmrg if test "$host_cpu" = ia64; then 389504007ebaSmrg # AIX 5 now supports IA64 processor 389604007ebaSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 389704007ebaSmrg fi 389804007ebaSmrg ;; 389904007ebaSmrg 390004007ebaSmrg amigaos*) 390104007ebaSmrg case $host_cpu in 390204007ebaSmrg powerpc) 390304007ebaSmrg # see comment about AmigaOS4 .so support 390404007ebaSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 390504007ebaSmrg ;; 390604007ebaSmrg m68k) 390704007ebaSmrg # FIXME: we need at least 68020 code to build shared libraries, but 390804007ebaSmrg # adding the `-m68020' flag to GCC prevents building anything better, 390904007ebaSmrg # like `-m68040'. 391004007ebaSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' 391104007ebaSmrg ;; 391204007ebaSmrg esac 391304007ebaSmrg ;; 391404007ebaSmrg 391504007ebaSmrg beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 391604007ebaSmrg # PIC is the default for these OSes. 391704007ebaSmrg ;; 391804007ebaSmrg mingw* | cygwin* | os2* | pw32* | cegcc*) 391904007ebaSmrg # This hack is so that the source file can tell whether it is being 392004007ebaSmrg # built for inclusion in a dll (and should export symbols for example). 392104007ebaSmrg # Although the cygwin gcc ignores -fPIC, still need this for old-style 392204007ebaSmrg # (--disable-auto-import) libraries 392304007ebaSmrg m4_if([$1], [GCJ], [], 392404007ebaSmrg [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) 392504007ebaSmrg ;; 392604007ebaSmrg darwin* | rhapsody*) 392704007ebaSmrg # PIC is the default on this platform 392804007ebaSmrg # Common symbols not allowed in MH_DYLIB files 392904007ebaSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' 393004007ebaSmrg ;; 393104007ebaSmrg *djgpp*) 393204007ebaSmrg # DJGPP does not support shared libraries at all 393304007ebaSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)= 393404007ebaSmrg ;; 393504007ebaSmrg haiku*) 393604007ebaSmrg # PIC is the default for Haiku. 393704007ebaSmrg # The "-static" flag exists, but is broken. 393804007ebaSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)= 393904007ebaSmrg ;; 394004007ebaSmrg interix[[3-9]]*) 394104007ebaSmrg # Interix 3.x gcc -fpic/-fPIC options generate broken code. 394204007ebaSmrg # Instead, we relocate shared libraries at runtime. 394304007ebaSmrg ;; 394404007ebaSmrg sysv4*MP*) 394504007ebaSmrg if test -d /usr/nec; then 394604007ebaSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic 394704007ebaSmrg fi 394804007ebaSmrg ;; 394904007ebaSmrg hpux*) 395004007ebaSmrg # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 395104007ebaSmrg # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 395204007ebaSmrg # sets the default TLS model and affects inlining. 395304007ebaSmrg case $host_cpu in 395404007ebaSmrg hppa*64*) 395504007ebaSmrg ;; 395604007ebaSmrg *) 395704007ebaSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 395804007ebaSmrg ;; 395904007ebaSmrg esac 396004007ebaSmrg ;; 396104007ebaSmrg *qnx* | *nto*) 396204007ebaSmrg # QNX uses GNU C++, but need to define -shared option too, otherwise 396304007ebaSmrg # it will coredump. 396404007ebaSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' 396504007ebaSmrg ;; 396604007ebaSmrg *) 396704007ebaSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 396804007ebaSmrg ;; 396904007ebaSmrg esac 397004007ebaSmrg else 397104007ebaSmrg case $host_os in 397204007ebaSmrg aix[[4-9]]*) 397304007ebaSmrg # All AIX code is PIC. 397404007ebaSmrg if test "$host_cpu" = ia64; then 397504007ebaSmrg # AIX 5 now supports IA64 processor 397604007ebaSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 397704007ebaSmrg else 397804007ebaSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' 397904007ebaSmrg fi 398004007ebaSmrg ;; 398104007ebaSmrg chorus*) 398204007ebaSmrg case $cc_basename in 398304007ebaSmrg cxch68*) 398404007ebaSmrg # Green Hills C++ Compiler 398504007ebaSmrg # _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" 398604007ebaSmrg ;; 398704007ebaSmrg esac 398804007ebaSmrg ;; 398904007ebaSmrg mingw* | cygwin* | os2* | pw32* | cegcc*) 399004007ebaSmrg # This hack is so that the source file can tell whether it is being 399104007ebaSmrg # built for inclusion in a dll (and should export symbols for example). 399204007ebaSmrg m4_if([$1], [GCJ], [], 399304007ebaSmrg [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) 399404007ebaSmrg ;; 399504007ebaSmrg dgux*) 399604007ebaSmrg case $cc_basename in 399704007ebaSmrg ec++*) 399804007ebaSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 399904007ebaSmrg ;; 400004007ebaSmrg ghcx*) 400104007ebaSmrg # Green Hills C++ Compiler 400204007ebaSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 400304007ebaSmrg ;; 400404007ebaSmrg *) 400504007ebaSmrg ;; 400604007ebaSmrg esac 400704007ebaSmrg ;; 400804007ebaSmrg freebsd* | dragonfly*) 400904007ebaSmrg # FreeBSD uses GNU C++ 401004007ebaSmrg ;; 401104007ebaSmrg hpux9* | hpux10* | hpux11*) 401204007ebaSmrg case $cc_basename in 401304007ebaSmrg CC*) 401404007ebaSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 401504007ebaSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' 401604007ebaSmrg if test "$host_cpu" != ia64; then 401704007ebaSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 401804007ebaSmrg fi 401904007ebaSmrg ;; 402004007ebaSmrg aCC*) 402104007ebaSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 402204007ebaSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' 402304007ebaSmrg case $host_cpu in 402404007ebaSmrg hppa*64*|ia64*) 402504007ebaSmrg # +Z the default 402604007ebaSmrg ;; 402704007ebaSmrg *) 402804007ebaSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 402904007ebaSmrg ;; 403004007ebaSmrg esac 403104007ebaSmrg ;; 403204007ebaSmrg *) 403304007ebaSmrg ;; 403404007ebaSmrg esac 403504007ebaSmrg ;; 403604007ebaSmrg interix*) 403704007ebaSmrg # This is c89, which is MS Visual C++ (no shared libs) 403804007ebaSmrg # Anyone wants to do a port? 403904007ebaSmrg ;; 404004007ebaSmrg irix5* | irix6* | nonstopux*) 404104007ebaSmrg case $cc_basename in 404204007ebaSmrg CC*) 404304007ebaSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 404404007ebaSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 404504007ebaSmrg # CC pic flag -KPIC is the default. 404604007ebaSmrg ;; 404704007ebaSmrg *) 404804007ebaSmrg ;; 404904007ebaSmrg esac 405004007ebaSmrg ;; 405104007ebaSmrg linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 405204007ebaSmrg case $cc_basename in 405304007ebaSmrg KCC*) 405404007ebaSmrg # KAI C++ Compiler 405504007ebaSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' 405604007ebaSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 405704007ebaSmrg ;; 405804007ebaSmrg ecpc* ) 405904007ebaSmrg # old Intel C++ for x86_64 which still supported -KPIC. 406004007ebaSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 406104007ebaSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 406204007ebaSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 406304007ebaSmrg ;; 406404007ebaSmrg icpc* ) 406504007ebaSmrg # Intel C++, used to be incompatible with GCC. 406604007ebaSmrg # ICC 10 doesn't accept -KPIC any more. 406704007ebaSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 406804007ebaSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 406904007ebaSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 407004007ebaSmrg ;; 407104007ebaSmrg pgCC* | pgcpp*) 407204007ebaSmrg # Portland Group C++ compiler 407304007ebaSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 407404007ebaSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' 407504007ebaSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 407604007ebaSmrg ;; 407704007ebaSmrg cxx*) 407804007ebaSmrg # Compaq C++ 407904007ebaSmrg # Make sure the PIC flag is empty. It appears that all Alpha 408004007ebaSmrg # Linux and Compaq Tru64 Unix objects are PIC. 408104007ebaSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)= 408204007ebaSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 408304007ebaSmrg ;; 408404007ebaSmrg xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*) 408504007ebaSmrg # IBM XL 8.0, 9.0 on PPC and BlueGene 408604007ebaSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 408704007ebaSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' 408804007ebaSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' 408904007ebaSmrg ;; 409004007ebaSmrg *) 409104007ebaSmrg case `$CC -V 2>&1 | sed 5q` in 409204007ebaSmrg *Sun\ C*) 409304007ebaSmrg # Sun C++ 5.9 409404007ebaSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 409504007ebaSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 409604007ebaSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 409704007ebaSmrg ;; 409804007ebaSmrg esac 409904007ebaSmrg ;; 410004007ebaSmrg esac 410104007ebaSmrg ;; 410204007ebaSmrg lynxos*) 410304007ebaSmrg ;; 410404007ebaSmrg m88k*) 410504007ebaSmrg ;; 410604007ebaSmrg mvs*) 410704007ebaSmrg case $cc_basename in 410804007ebaSmrg cxx*) 410904007ebaSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' 411004007ebaSmrg ;; 411104007ebaSmrg *) 411204007ebaSmrg ;; 411304007ebaSmrg esac 411404007ebaSmrg ;; 411504007ebaSmrg netbsd* | netbsdelf*-gnu) 411604007ebaSmrg ;; 411704007ebaSmrg *qnx* | *nto*) 411804007ebaSmrg # QNX uses GNU C++, but need to define -shared option too, otherwise 411904007ebaSmrg # it will coredump. 412004007ebaSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' 412104007ebaSmrg ;; 412204007ebaSmrg osf3* | osf4* | osf5*) 412304007ebaSmrg case $cc_basename in 412404007ebaSmrg KCC*) 412504007ebaSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' 412604007ebaSmrg ;; 412704007ebaSmrg RCC*) 412804007ebaSmrg # Rational C++ 2.4.1 412904007ebaSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 413004007ebaSmrg ;; 413104007ebaSmrg cxx*) 413204007ebaSmrg # Digital/Compaq C++ 413304007ebaSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 413404007ebaSmrg # Make sure the PIC flag is empty. It appears that all Alpha 413504007ebaSmrg # Linux and Compaq Tru64 Unix objects are PIC. 413604007ebaSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)= 413704007ebaSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 413804007ebaSmrg ;; 413904007ebaSmrg *) 414004007ebaSmrg ;; 414104007ebaSmrg esac 414204007ebaSmrg ;; 414304007ebaSmrg psos*) 414404007ebaSmrg ;; 414504007ebaSmrg solaris*) 414604007ebaSmrg case $cc_basename in 414704007ebaSmrg CC* | sunCC*) 414804007ebaSmrg # Sun C++ 4.2, 5.x and Centerline C++ 414904007ebaSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 415004007ebaSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 415104007ebaSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 415204007ebaSmrg ;; 415304007ebaSmrg gcx*) 415404007ebaSmrg # Green Hills C++ Compiler 415504007ebaSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' 415604007ebaSmrg ;; 415704007ebaSmrg *) 415804007ebaSmrg ;; 415904007ebaSmrg esac 416004007ebaSmrg ;; 416104007ebaSmrg sunos4*) 416204007ebaSmrg case $cc_basename in 416304007ebaSmrg CC*) 416404007ebaSmrg # Sun C++ 4.x 416504007ebaSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 416604007ebaSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 416704007ebaSmrg ;; 416804007ebaSmrg lcc*) 416904007ebaSmrg # Lucid 417004007ebaSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 417104007ebaSmrg ;; 417204007ebaSmrg *) 417304007ebaSmrg ;; 417404007ebaSmrg esac 417504007ebaSmrg ;; 417604007ebaSmrg sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 417704007ebaSmrg case $cc_basename in 417804007ebaSmrg CC*) 417904007ebaSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 418004007ebaSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 418104007ebaSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 418204007ebaSmrg ;; 418304007ebaSmrg esac 418404007ebaSmrg ;; 418504007ebaSmrg tandem*) 418604007ebaSmrg case $cc_basename in 418704007ebaSmrg NCC*) 418804007ebaSmrg # NonStop-UX NCC 3.20 418904007ebaSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 419004007ebaSmrg ;; 419104007ebaSmrg *) 419204007ebaSmrg ;; 419304007ebaSmrg esac 419404007ebaSmrg ;; 419504007ebaSmrg vxworks*) 419604007ebaSmrg ;; 419704007ebaSmrg *) 419804007ebaSmrg _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 419904007ebaSmrg ;; 420004007ebaSmrg esac 420104007ebaSmrg fi 420204007ebaSmrg], 420304007ebaSmrg[ 420404007ebaSmrg if test "$GCC" = yes; then 420504007ebaSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 420604007ebaSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 420704007ebaSmrg 420804007ebaSmrg case $host_os in 420904007ebaSmrg aix*) 421004007ebaSmrg # All AIX code is PIC. 421104007ebaSmrg if test "$host_cpu" = ia64; then 421204007ebaSmrg # AIX 5 now supports IA64 processor 421304007ebaSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 421404007ebaSmrg fi 421504007ebaSmrg ;; 421604007ebaSmrg 421704007ebaSmrg amigaos*) 421804007ebaSmrg case $host_cpu in 421904007ebaSmrg powerpc) 422004007ebaSmrg # see comment about AmigaOS4 .so support 422104007ebaSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 422204007ebaSmrg ;; 422304007ebaSmrg m68k) 422404007ebaSmrg # FIXME: we need at least 68020 code to build shared libraries, but 422504007ebaSmrg # adding the `-m68020' flag to GCC prevents building anything better, 422604007ebaSmrg # like `-m68040'. 422704007ebaSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' 422804007ebaSmrg ;; 422904007ebaSmrg esac 423004007ebaSmrg ;; 423104007ebaSmrg 423204007ebaSmrg beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 423304007ebaSmrg # PIC is the default for these OSes. 423404007ebaSmrg ;; 423504007ebaSmrg 423604007ebaSmrg mingw* | cygwin* | pw32* | os2* | cegcc*) 423704007ebaSmrg # This hack is so that the source file can tell whether it is being 423804007ebaSmrg # built for inclusion in a dll (and should export symbols for example). 423904007ebaSmrg # Although the cygwin gcc ignores -fPIC, still need this for old-style 424004007ebaSmrg # (--disable-auto-import) libraries 424104007ebaSmrg m4_if([$1], [GCJ], [], 424204007ebaSmrg [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) 424304007ebaSmrg ;; 424404007ebaSmrg 424504007ebaSmrg darwin* | rhapsody*) 424604007ebaSmrg # PIC is the default on this platform 424704007ebaSmrg # Common symbols not allowed in MH_DYLIB files 424804007ebaSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' 424904007ebaSmrg ;; 425004007ebaSmrg 425104007ebaSmrg haiku*) 425204007ebaSmrg # PIC is the default for Haiku. 425304007ebaSmrg # The "-static" flag exists, but is broken. 425404007ebaSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)= 425504007ebaSmrg ;; 425604007ebaSmrg 425704007ebaSmrg hpux*) 425804007ebaSmrg # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 425904007ebaSmrg # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 426004007ebaSmrg # sets the default TLS model and affects inlining. 426104007ebaSmrg case $host_cpu in 426204007ebaSmrg hppa*64*) 426304007ebaSmrg # +Z the default 426404007ebaSmrg ;; 426504007ebaSmrg *) 426604007ebaSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 426704007ebaSmrg ;; 426804007ebaSmrg esac 426904007ebaSmrg ;; 427004007ebaSmrg 427104007ebaSmrg interix[[3-9]]*) 427204007ebaSmrg # Interix 3.x gcc -fpic/-fPIC options generate broken code. 427304007ebaSmrg # Instead, we relocate shared libraries at runtime. 427404007ebaSmrg ;; 427504007ebaSmrg 427604007ebaSmrg msdosdjgpp*) 427704007ebaSmrg # Just because we use GCC doesn't mean we suddenly get shared libraries 427804007ebaSmrg # on systems that don't support them. 427904007ebaSmrg _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 428004007ebaSmrg enable_shared=no 428104007ebaSmrg ;; 428204007ebaSmrg 428304007ebaSmrg *nto* | *qnx*) 428404007ebaSmrg # QNX uses GNU C++, but need to define -shared option too, otherwise 428504007ebaSmrg # it will coredump. 428604007ebaSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' 428704007ebaSmrg ;; 428804007ebaSmrg 428904007ebaSmrg sysv4*MP*) 429004007ebaSmrg if test -d /usr/nec; then 429104007ebaSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic 429204007ebaSmrg fi 429304007ebaSmrg ;; 429404007ebaSmrg 429504007ebaSmrg *) 429604007ebaSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 429704007ebaSmrg ;; 429804007ebaSmrg esac 429904007ebaSmrg 430004007ebaSmrg case $cc_basename in 430104007ebaSmrg nvcc*) # Cuda Compiler Driver 2.2 430204007ebaSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker ' 430304007ebaSmrg if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then 430404007ebaSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)" 430504007ebaSmrg fi 430604007ebaSmrg ;; 430704007ebaSmrg esac 430804007ebaSmrg else 430904007ebaSmrg # PORTME Check for flag to pass linker flags through the system compiler. 431004007ebaSmrg case $host_os in 431104007ebaSmrg aix*) 431204007ebaSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 431304007ebaSmrg if test "$host_cpu" = ia64; then 431404007ebaSmrg # AIX 5 now supports IA64 processor 431504007ebaSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 431604007ebaSmrg else 431704007ebaSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' 431804007ebaSmrg fi 431904007ebaSmrg ;; 432004007ebaSmrg 432104007ebaSmrg mingw* | cygwin* | pw32* | os2* | cegcc*) 432204007ebaSmrg # This hack is so that the source file can tell whether it is being 432304007ebaSmrg # built for inclusion in a dll (and should export symbols for example). 432404007ebaSmrg m4_if([$1], [GCJ], [], 432504007ebaSmrg [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) 432604007ebaSmrg ;; 432704007ebaSmrg 432804007ebaSmrg hpux9* | hpux10* | hpux11*) 432904007ebaSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 433004007ebaSmrg # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 433104007ebaSmrg # not for PA HP-UX. 433204007ebaSmrg case $host_cpu in 433304007ebaSmrg hppa*64*|ia64*) 433404007ebaSmrg # +Z the default 433504007ebaSmrg ;; 433604007ebaSmrg *) 433704007ebaSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 433804007ebaSmrg ;; 433904007ebaSmrg esac 434004007ebaSmrg # Is there a better lt_prog_compiler_static that works with the bundled CC? 434104007ebaSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' 434204007ebaSmrg ;; 434304007ebaSmrg 434404007ebaSmrg irix5* | irix6* | nonstopux*) 434504007ebaSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 434604007ebaSmrg # PIC (with -KPIC) is the default. 434704007ebaSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 434804007ebaSmrg ;; 434904007ebaSmrg 435004007ebaSmrg linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 435104007ebaSmrg case $cc_basename in 435204007ebaSmrg # old Intel for x86_64 which still supported -KPIC. 435304007ebaSmrg ecc*) 435404007ebaSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 435504007ebaSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 435604007ebaSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 435704007ebaSmrg ;; 435804007ebaSmrg # icc used to be incompatible with GCC. 435904007ebaSmrg # ICC 10 doesn't accept -KPIC any more. 436004007ebaSmrg icc* | ifort*) 436104007ebaSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 436204007ebaSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 436304007ebaSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 436404007ebaSmrg ;; 436504007ebaSmrg # Lahey Fortran 8.1. 436604007ebaSmrg lf95*) 436704007ebaSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 436804007ebaSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared' 436904007ebaSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='--static' 437004007ebaSmrg ;; 437104007ebaSmrg nagfor*) 437204007ebaSmrg # NAG Fortran compiler 437304007ebaSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,' 437404007ebaSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' 437504007ebaSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 437604007ebaSmrg ;; 437704007ebaSmrg pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 437804007ebaSmrg # Portland Group compilers (*not* the Pentium gcc compiler, 437904007ebaSmrg # which looks to be a dead project) 438004007ebaSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 438104007ebaSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' 438204007ebaSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 438304007ebaSmrg ;; 438404007ebaSmrg ccc*) 438504007ebaSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 438604007ebaSmrg # All Alpha code is PIC. 438704007ebaSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 438804007ebaSmrg ;; 438904007ebaSmrg xl* | bgxl* | bgf* | mpixl*) 439004007ebaSmrg # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 439104007ebaSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 439204007ebaSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' 439304007ebaSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' 439404007ebaSmrg ;; 439504007ebaSmrg *) 439604007ebaSmrg case `$CC -V 2>&1 | sed 5q` in 439704007ebaSmrg *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*) 439804007ebaSmrg # Sun Fortran 8.3 passes all unrecognized flags to the linker 439904007ebaSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 440004007ebaSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 440104007ebaSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='' 440204007ebaSmrg ;; 440304007ebaSmrg *Sun\ F* | *Sun*Fortran*) 440404007ebaSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 440504007ebaSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 440604007ebaSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 440704007ebaSmrg ;; 440804007ebaSmrg *Sun\ C*) 440904007ebaSmrg # Sun C 5.9 441004007ebaSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 441104007ebaSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 441204007ebaSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 441304007ebaSmrg ;; 441404007ebaSmrg *Intel*\ [[CF]]*Compiler*) 441504007ebaSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 441604007ebaSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 441704007ebaSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 441804007ebaSmrg ;; 441904007ebaSmrg *Portland\ Group*) 442004007ebaSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 442104007ebaSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' 442204007ebaSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 442304007ebaSmrg ;; 442404007ebaSmrg esac 442504007ebaSmrg ;; 442604007ebaSmrg esac 442704007ebaSmrg ;; 442804007ebaSmrg 442904007ebaSmrg newsos6) 443004007ebaSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 443104007ebaSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 443204007ebaSmrg ;; 443304007ebaSmrg 443404007ebaSmrg *nto* | *qnx*) 443504007ebaSmrg # QNX uses GNU C++, but need to define -shared option too, otherwise 443604007ebaSmrg # it will coredump. 443704007ebaSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' 443804007ebaSmrg ;; 443904007ebaSmrg 444004007ebaSmrg osf3* | osf4* | osf5*) 444104007ebaSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 444204007ebaSmrg # All OSF/1 code is PIC. 444304007ebaSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 444404007ebaSmrg ;; 444504007ebaSmrg 444604007ebaSmrg rdos*) 444704007ebaSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 444804007ebaSmrg ;; 444904007ebaSmrg 445004007ebaSmrg solaris*) 445104007ebaSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 445204007ebaSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 445304007ebaSmrg case $cc_basename in 445404007ebaSmrg f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 445504007ebaSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; 445604007ebaSmrg *) 445704007ebaSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; 445804007ebaSmrg esac 445904007ebaSmrg ;; 446004007ebaSmrg 446104007ebaSmrg sunos4*) 446204007ebaSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 446304007ebaSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' 446404007ebaSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 446504007ebaSmrg ;; 446604007ebaSmrg 446704007ebaSmrg sysv4 | sysv4.2uw2* | sysv4.3*) 446804007ebaSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 446904007ebaSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 447004007ebaSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 447104007ebaSmrg ;; 447204007ebaSmrg 447304007ebaSmrg sysv4*MP*) 447404007ebaSmrg if test -d /usr/nec ;then 447504007ebaSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' 447604007ebaSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 447704007ebaSmrg fi 447804007ebaSmrg ;; 447904007ebaSmrg 448004007ebaSmrg sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 448104007ebaSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 448204007ebaSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 448304007ebaSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 448404007ebaSmrg ;; 448504007ebaSmrg 448604007ebaSmrg unicos*) 448704007ebaSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 448804007ebaSmrg _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 448904007ebaSmrg ;; 449004007ebaSmrg 449104007ebaSmrg uts4*) 449204007ebaSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 449304007ebaSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 449404007ebaSmrg ;; 449504007ebaSmrg 449604007ebaSmrg *) 449704007ebaSmrg _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 449804007ebaSmrg ;; 449904007ebaSmrg esac 450004007ebaSmrg fi 450104007ebaSmrg]) 450204007ebaSmrgcase $host_os in 450304007ebaSmrg # For platforms which do not support PIC, -DPIC is meaningless: 450404007ebaSmrg *djgpp*) 450504007ebaSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)= 450604007ebaSmrg ;; 450704007ebaSmrg *) 450804007ebaSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])" 450904007ebaSmrg ;; 451004007ebaSmrgesac 451104007ebaSmrg 451204007ebaSmrgAC_CACHE_CHECK([for $compiler option to produce PIC], 451304007ebaSmrg [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)], 451404007ebaSmrg [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)]) 451504007ebaSmrg_LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1) 451604007ebaSmrg 451704007ebaSmrg# 451804007ebaSmrg# Check to make sure the PIC flag actually works. 451904007ebaSmrg# 452004007ebaSmrgif test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then 452104007ebaSmrg _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works], 452204007ebaSmrg [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)], 452304007ebaSmrg [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [], 452404007ebaSmrg [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in 452504007ebaSmrg "" | " "*) ;; 452604007ebaSmrg *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;; 452704007ebaSmrg esac], 452804007ebaSmrg [_LT_TAGVAR(lt_prog_compiler_pic, $1)= 452904007ebaSmrg _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) 453004007ebaSmrgfi 453104007ebaSmrg_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1], 453204007ebaSmrg [Additional compiler flags for building library objects]) 453304007ebaSmrg 453404007ebaSmrg_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1], 453504007ebaSmrg [How to pass a linker flag through the compiler]) 453604007ebaSmrg# 453704007ebaSmrg# Check to make sure the static flag actually works. 453804007ebaSmrg# 453904007ebaSmrgwl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\" 454004007ebaSmrg_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], 454104007ebaSmrg _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1), 454204007ebaSmrg $lt_tmp_static_flag, 454304007ebaSmrg [], 454404007ebaSmrg [_LT_TAGVAR(lt_prog_compiler_static, $1)=]) 454504007ebaSmrg_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1], 454604007ebaSmrg [Compiler flag to prevent dynamic linking]) 454704007ebaSmrg])# _LT_COMPILER_PIC 454804007ebaSmrg 454904007ebaSmrg 455004007ebaSmrg# _LT_LINKER_SHLIBS([TAGNAME]) 455104007ebaSmrg# ---------------------------- 455204007ebaSmrg# See if the linker supports building shared libraries. 455304007ebaSmrgm4_defun([_LT_LINKER_SHLIBS], 455404007ebaSmrg[AC_REQUIRE([LT_PATH_LD])dnl 455504007ebaSmrgAC_REQUIRE([LT_PATH_NM])dnl 455604007ebaSmrgm4_require([_LT_PATH_MANIFEST_TOOL])dnl 455704007ebaSmrgm4_require([_LT_FILEUTILS_DEFAULTS])dnl 455804007ebaSmrgm4_require([_LT_DECL_EGREP])dnl 455904007ebaSmrgm4_require([_LT_DECL_SED])dnl 456004007ebaSmrgm4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl 456104007ebaSmrgm4_require([_LT_TAG_COMPILER])dnl 456204007ebaSmrgAC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) 456304007ebaSmrgm4_if([$1], [CXX], [ 456404007ebaSmrg _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 456504007ebaSmrg _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] 456604007ebaSmrg case $host_os in 456704007ebaSmrg aix[[4-9]]*) 456804007ebaSmrg # If we're using GNU nm, then we don't want the "-C" option. 456904007ebaSmrg # -C means demangle to AIX nm, but means don't demangle with GNU nm 457004007ebaSmrg # Also, AIX nm treats weak defined symbols like other global defined 457104007ebaSmrg # symbols, whereas GNU nm marks them as "W". 457204007ebaSmrg if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 457304007ebaSmrg _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 457404007ebaSmrg else 457504007ebaSmrg _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 457604007ebaSmrg fi 457704007ebaSmrg ;; 457804007ebaSmrg pw32*) 457904007ebaSmrg _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" 458004007ebaSmrg ;; 458104007ebaSmrg cygwin* | mingw* | cegcc*) 458204007ebaSmrg case $cc_basename in 458304007ebaSmrg cl*) 458404007ebaSmrg _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 458504007ebaSmrg ;; 458604007ebaSmrg *) 458704007ebaSmrg _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' 458804007ebaSmrg _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'] 458904007ebaSmrg ;; 459004007ebaSmrg esac 459104007ebaSmrg ;; 459204007ebaSmrg linux* | k*bsd*-gnu | gnu*) 459304007ebaSmrg _LT_TAGVAR(link_all_deplibs, $1)=no 459404007ebaSmrg ;; 459504007ebaSmrg *) 459604007ebaSmrg _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 459704007ebaSmrg ;; 459804007ebaSmrg esac 459904007ebaSmrg], [ 460004007ebaSmrg runpath_var= 460104007ebaSmrg _LT_TAGVAR(allow_undefined_flag, $1)= 460204007ebaSmrg _LT_TAGVAR(always_export_symbols, $1)=no 460304007ebaSmrg _LT_TAGVAR(archive_cmds, $1)= 460404007ebaSmrg _LT_TAGVAR(archive_expsym_cmds, $1)= 460504007ebaSmrg _LT_TAGVAR(compiler_needs_object, $1)=no 460604007ebaSmrg _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no 460704007ebaSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)= 460804007ebaSmrg _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 460904007ebaSmrg _LT_TAGVAR(hardcode_automatic, $1)=no 461004007ebaSmrg _LT_TAGVAR(hardcode_direct, $1)=no 461104007ebaSmrg _LT_TAGVAR(hardcode_direct_absolute, $1)=no 461204007ebaSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 461304007ebaSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)= 461404007ebaSmrg _LT_TAGVAR(hardcode_minus_L, $1)=no 461504007ebaSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 461604007ebaSmrg _LT_TAGVAR(inherit_rpath, $1)=no 461704007ebaSmrg _LT_TAGVAR(link_all_deplibs, $1)=unknown 461804007ebaSmrg _LT_TAGVAR(module_cmds, $1)= 461904007ebaSmrg _LT_TAGVAR(module_expsym_cmds, $1)= 462004007ebaSmrg _LT_TAGVAR(old_archive_from_new_cmds, $1)= 462104007ebaSmrg _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)= 462204007ebaSmrg _LT_TAGVAR(thread_safe_flag_spec, $1)= 462304007ebaSmrg _LT_TAGVAR(whole_archive_flag_spec, $1)= 462404007ebaSmrg # include_expsyms should be a list of space-separated symbols to be *always* 462504007ebaSmrg # included in the symbol list 462604007ebaSmrg _LT_TAGVAR(include_expsyms, $1)= 462704007ebaSmrg # exclude_expsyms can be an extended regexp of symbols to exclude 462804007ebaSmrg # it will be wrapped by ` (' and `)$', so one must not match beginning or 462904007ebaSmrg # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 463004007ebaSmrg # as well as any symbol that contains `d'. 463104007ebaSmrg _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] 463204007ebaSmrg # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 463304007ebaSmrg # platforms (ab)use it in PIC code, but their linkers get confused if 463404007ebaSmrg # the symbol is explicitly referenced. Since portable code cannot 463504007ebaSmrg # rely on this symbol name, it's probably fine to never include it in 463604007ebaSmrg # preloaded symbol tables. 463704007ebaSmrg # Exclude shared library initialization/finalization symbols. 463804007ebaSmrgdnl Note also adjust exclude_expsyms for C++ above. 463904007ebaSmrg extract_expsyms_cmds= 464004007ebaSmrg 464104007ebaSmrg case $host_os in 464204007ebaSmrg cygwin* | mingw* | pw32* | cegcc*) 464304007ebaSmrg # FIXME: the MSVC++ port hasn't been tested in a loooong time 464404007ebaSmrg # When not using gcc, we currently assume that we are using 464504007ebaSmrg # Microsoft Visual C++. 464604007ebaSmrg if test "$GCC" != yes; then 464704007ebaSmrg with_gnu_ld=no 464804007ebaSmrg fi 464904007ebaSmrg ;; 465004007ebaSmrg interix*) 465104007ebaSmrg # we just hope/assume this is gcc and not c89 (= MSVC++) 465204007ebaSmrg with_gnu_ld=yes 465304007ebaSmrg ;; 465404007ebaSmrg openbsd*) 465504007ebaSmrg with_gnu_ld=no 465604007ebaSmrg ;; 465704007ebaSmrg linux* | k*bsd*-gnu | gnu*) 465804007ebaSmrg _LT_TAGVAR(link_all_deplibs, $1)=no 465904007ebaSmrg ;; 466004007ebaSmrg esac 466104007ebaSmrg 466204007ebaSmrg _LT_TAGVAR(ld_shlibs, $1)=yes 466304007ebaSmrg 466404007ebaSmrg # On some targets, GNU ld is compatible enough with the native linker 466504007ebaSmrg # that we're better off using the native interface for both. 466604007ebaSmrg lt_use_gnu_ld_interface=no 466704007ebaSmrg if test "$with_gnu_ld" = yes; then 466804007ebaSmrg case $host_os in 466904007ebaSmrg aix*) 467004007ebaSmrg # The AIX port of GNU ld has always aspired to compatibility 467104007ebaSmrg # with the native linker. However, as the warning in the GNU ld 467204007ebaSmrg # block says, versions before 2.19.5* couldn't really create working 467304007ebaSmrg # shared libraries, regardless of the interface used. 467404007ebaSmrg case `$LD -v 2>&1` in 467504007ebaSmrg *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 467604007ebaSmrg *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;; 467704007ebaSmrg *\ \(GNU\ Binutils\)\ [[3-9]]*) ;; 467804007ebaSmrg *) 467904007ebaSmrg lt_use_gnu_ld_interface=yes 468004007ebaSmrg ;; 468104007ebaSmrg esac 468204007ebaSmrg ;; 468304007ebaSmrg *) 468404007ebaSmrg lt_use_gnu_ld_interface=yes 468504007ebaSmrg ;; 468604007ebaSmrg esac 468704007ebaSmrg fi 468804007ebaSmrg 468904007ebaSmrg if test "$lt_use_gnu_ld_interface" = yes; then 469004007ebaSmrg # If archive_cmds runs LD, not CC, wlarc should be empty 469104007ebaSmrg wlarc='${wl}' 469204007ebaSmrg 469304007ebaSmrg # Set some defaults for GNU ld with shared library support. These 469404007ebaSmrg # are reset later if shared libraries are not supported. Putting them 469504007ebaSmrg # here allows them to be overridden if necessary. 469604007ebaSmrg runpath_var=LD_RUN_PATH 469704007ebaSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 469804007ebaSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 469904007ebaSmrg # ancient GNU ld didn't support --whole-archive et. al. 470004007ebaSmrg if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 470104007ebaSmrg _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 470204007ebaSmrg else 470304007ebaSmrg _LT_TAGVAR(whole_archive_flag_spec, $1)= 470404007ebaSmrg fi 470504007ebaSmrg supports_anon_versioning=no 470604007ebaSmrg case `$LD -v 2>&1` in 470704007ebaSmrg *GNU\ gold*) supports_anon_versioning=yes ;; 470804007ebaSmrg *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 470904007ebaSmrg *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 471004007ebaSmrg *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 471104007ebaSmrg *\ 2.11.*) ;; # other 2.11 versions 471204007ebaSmrg *) supports_anon_versioning=yes ;; 471304007ebaSmrg esac 471404007ebaSmrg 471504007ebaSmrg # See if GNU ld supports shared libraries. 471604007ebaSmrg case $host_os in 471704007ebaSmrg aix[[3-9]]*) 471804007ebaSmrg # On AIX/PPC, the GNU linker is very broken 471904007ebaSmrg if test "$host_cpu" != ia64; then 472004007ebaSmrg _LT_TAGVAR(ld_shlibs, $1)=no 472104007ebaSmrg cat <<_LT_EOF 1>&2 472204007ebaSmrg 472304007ebaSmrg*** Warning: the GNU linker, at least up to release 2.19, is reported 472404007ebaSmrg*** to be unable to reliably create shared libraries on AIX. 472504007ebaSmrg*** Therefore, libtool is disabling shared libraries support. If you 472604007ebaSmrg*** really care for shared libraries, you may want to install binutils 472704007ebaSmrg*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 472804007ebaSmrg*** You will then need to restart the configuration process. 472904007ebaSmrg 473004007ebaSmrg_LT_EOF 473104007ebaSmrg fi 473204007ebaSmrg ;; 473304007ebaSmrg 473404007ebaSmrg amigaos*) 473504007ebaSmrg case $host_cpu in 473604007ebaSmrg powerpc) 473704007ebaSmrg # see comment about AmigaOS4 .so support 473804007ebaSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 473904007ebaSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='' 474004007ebaSmrg ;; 474104007ebaSmrg m68k) 474204007ebaSmrg _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)' 474304007ebaSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 474404007ebaSmrg _LT_TAGVAR(hardcode_minus_L, $1)=yes 474504007ebaSmrg ;; 474604007ebaSmrg esac 474704007ebaSmrg ;; 474804007ebaSmrg 474904007ebaSmrg beos*) 475004007ebaSmrg if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 475104007ebaSmrg _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 475204007ebaSmrg # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 475304007ebaSmrg # support --undefined. This deserves some investigation. FIXME 475404007ebaSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 475504007ebaSmrg else 475604007ebaSmrg _LT_TAGVAR(ld_shlibs, $1)=no 475704007ebaSmrg fi 475804007ebaSmrg ;; 475904007ebaSmrg 476004007ebaSmrg cygwin* | mingw* | pw32* | cegcc*) 476104007ebaSmrg # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, 476204007ebaSmrg # as there is no search path for DLLs. 476304007ebaSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 476404007ebaSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols' 476504007ebaSmrg _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 476604007ebaSmrg _LT_TAGVAR(always_export_symbols, $1)=no 476704007ebaSmrg _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 476804007ebaSmrg _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' 476904007ebaSmrg _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'] 477004007ebaSmrg 477104007ebaSmrg if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 477204007ebaSmrg _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' 477304007ebaSmrg # If the export-symbols file already is a .def file (1st line 477404007ebaSmrg # is EXPORTS), use it as is; otherwise, prepend... 477504007ebaSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 477604007ebaSmrg cp $export_symbols $output_objdir/$soname.def; 477704007ebaSmrg else 477804007ebaSmrg echo EXPORTS > $output_objdir/$soname.def; 477904007ebaSmrg cat $export_symbols >> $output_objdir/$soname.def; 478004007ebaSmrg fi~ 478104007ebaSmrg $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 478204007ebaSmrg else 478304007ebaSmrg _LT_TAGVAR(ld_shlibs, $1)=no 478404007ebaSmrg fi 478504007ebaSmrg ;; 478604007ebaSmrg 478704007ebaSmrg haiku*) 478804007ebaSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 478904007ebaSmrg _LT_TAGVAR(link_all_deplibs, $1)=yes 479004007ebaSmrg ;; 479104007ebaSmrg 479204007ebaSmrg interix[[3-9]]*) 479304007ebaSmrg _LT_TAGVAR(hardcode_direct, $1)=no 479404007ebaSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 479504007ebaSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 479604007ebaSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 479704007ebaSmrg # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 479804007ebaSmrg # Instead, shared libraries are loaded at an image base (0x10000000 by 479904007ebaSmrg # default) and relocated if they conflict, which is a slow very memory 480004007ebaSmrg # consuming and fragmenting process. To avoid this, we pick a random, 480104007ebaSmrg # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 480204007ebaSmrg # time. Moving up from 0x10000000 also allows more sbrk(2) space. 480304007ebaSmrg _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' 480404007ebaSmrg _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' 480504007ebaSmrg ;; 480604007ebaSmrg 480704007ebaSmrg gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 480804007ebaSmrg tmp_diet=no 480904007ebaSmrg if test "$host_os" = linux-dietlibc; then 481004007ebaSmrg case $cc_basename in 481104007ebaSmrg diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 481204007ebaSmrg esac 481304007ebaSmrg fi 481404007ebaSmrg if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 481504007ebaSmrg && test "$tmp_diet" = no 481604007ebaSmrg then 481704007ebaSmrg tmp_addflag=' $pic_flag' 481804007ebaSmrg tmp_sharedflag='-shared' 481904007ebaSmrg case $cc_basename,$host_cpu in 482004007ebaSmrg pgcc*) # Portland Group C compiler 482104007ebaSmrg _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' 482204007ebaSmrg tmp_addflag=' $pic_flag' 482304007ebaSmrg ;; 482404007ebaSmrg pgf77* | pgf90* | pgf95* | pgfortran*) 482504007ebaSmrg # Portland Group f77 and f90 compilers 482604007ebaSmrg _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' 482704007ebaSmrg tmp_addflag=' $pic_flag -Mnomain' ;; 482804007ebaSmrg ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 482904007ebaSmrg tmp_addflag=' -i_dynamic' ;; 483004007ebaSmrg efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 483104007ebaSmrg tmp_addflag=' -i_dynamic -nofor_main' ;; 483204007ebaSmrg ifc* | ifort*) # Intel Fortran compiler 483304007ebaSmrg tmp_addflag=' -nofor_main' ;; 483404007ebaSmrg lf95*) # Lahey Fortran 8.1 483504007ebaSmrg _LT_TAGVAR(whole_archive_flag_spec, $1)= 483604007ebaSmrg tmp_sharedflag='--shared' ;; 483704007ebaSmrg xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below) 483804007ebaSmrg tmp_sharedflag='-qmkshrobj' 483904007ebaSmrg tmp_addflag= ;; 484004007ebaSmrg nvcc*) # Cuda Compiler Driver 2.2 484104007ebaSmrg _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' 484204007ebaSmrg _LT_TAGVAR(compiler_needs_object, $1)=yes 484304007ebaSmrg ;; 484404007ebaSmrg esac 484504007ebaSmrg case `$CC -V 2>&1 | sed 5q` in 484604007ebaSmrg *Sun\ C*) # Sun C 5.9 484704007ebaSmrg _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' 484804007ebaSmrg _LT_TAGVAR(compiler_needs_object, $1)=yes 484904007ebaSmrg tmp_sharedflag='-G' ;; 485004007ebaSmrg *Sun\ F*) # Sun Fortran 8.3 485104007ebaSmrg tmp_sharedflag='-G' ;; 485204007ebaSmrg esac 485304007ebaSmrg _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 485404007ebaSmrg 485504007ebaSmrg if test "x$supports_anon_versioning" = xyes; then 485604007ebaSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ 485704007ebaSmrg cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 485804007ebaSmrg echo "local: *; };" >> $output_objdir/$libname.ver~ 485904007ebaSmrg $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 486004007ebaSmrg fi 486104007ebaSmrg 486204007ebaSmrg case $cc_basename in 486304007ebaSmrg xlf* | bgf* | bgxlf* | mpixlf*) 486404007ebaSmrg # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 486504007ebaSmrg _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive' 486604007ebaSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 486704007ebaSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 486804007ebaSmrg if test "x$supports_anon_versioning" = xyes; then 486904007ebaSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ 487004007ebaSmrg cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 487104007ebaSmrg echo "local: *; };" >> $output_objdir/$libname.ver~ 487204007ebaSmrg $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 487304007ebaSmrg fi 487404007ebaSmrg ;; 487504007ebaSmrg esac 487604007ebaSmrg else 487704007ebaSmrg _LT_TAGVAR(ld_shlibs, $1)=no 487804007ebaSmrg fi 487904007ebaSmrg ;; 488004007ebaSmrg 488104007ebaSmrg netbsd* | netbsdelf*-gnu) 488204007ebaSmrg if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 488304007ebaSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 488404007ebaSmrg wlarc= 488504007ebaSmrg else 488604007ebaSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 488704007ebaSmrg _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' 488804007ebaSmrg fi 488904007ebaSmrg ;; 489004007ebaSmrg 489104007ebaSmrg solaris*) 489204007ebaSmrg if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 489304007ebaSmrg _LT_TAGVAR(ld_shlibs, $1)=no 489404007ebaSmrg cat <<_LT_EOF 1>&2 489504007ebaSmrg 489604007ebaSmrg*** Warning: The releases 2.8.* of the GNU linker cannot reliably 489704007ebaSmrg*** create shared libraries on Solaris systems. Therefore, libtool 489804007ebaSmrg*** is disabling shared libraries support. We urge you to upgrade GNU 489904007ebaSmrg*** binutils to release 2.9.1 or newer. Another option is to modify 490004007ebaSmrg*** your PATH or compiler configuration so that the native linker is 490104007ebaSmrg*** used, and then restart. 490204007ebaSmrg 490304007ebaSmrg_LT_EOF 490404007ebaSmrg elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 490504007ebaSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 490604007ebaSmrg _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' 490704007ebaSmrg else 490804007ebaSmrg _LT_TAGVAR(ld_shlibs, $1)=no 490904007ebaSmrg fi 491004007ebaSmrg ;; 491104007ebaSmrg 491204007ebaSmrg sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 491304007ebaSmrg case `$LD -v 2>&1` in 491404007ebaSmrg *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) 491504007ebaSmrg _LT_TAGVAR(ld_shlibs, $1)=no 491604007ebaSmrg cat <<_LT_EOF 1>&2 491704007ebaSmrg 491804007ebaSmrg*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 491904007ebaSmrg*** reliably create shared libraries on SCO systems. Therefore, libtool 492004007ebaSmrg*** is disabling shared libraries support. We urge you to upgrade GNU 492104007ebaSmrg*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 492204007ebaSmrg*** your PATH or compiler configuration so that the native linker is 492304007ebaSmrg*** used, and then restart. 492404007ebaSmrg 492504007ebaSmrg_LT_EOF 492604007ebaSmrg ;; 492704007ebaSmrg *) 492804007ebaSmrg # For security reasons, it is highly recommended that you always 492904007ebaSmrg # use absolute paths for naming shared libraries, and exclude the 493004007ebaSmrg # DT_RUNPATH tag from executables and libraries. But doing so 493104007ebaSmrg # requires that you compile everything twice, which is a pain. 493204007ebaSmrg if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 493304007ebaSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 493404007ebaSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 493504007ebaSmrg _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' 493604007ebaSmrg else 493704007ebaSmrg _LT_TAGVAR(ld_shlibs, $1)=no 493804007ebaSmrg fi 493904007ebaSmrg ;; 494004007ebaSmrg esac 494104007ebaSmrg ;; 494204007ebaSmrg 494304007ebaSmrg sunos4*) 494404007ebaSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 494504007ebaSmrg wlarc= 494604007ebaSmrg _LT_TAGVAR(hardcode_direct, $1)=yes 494704007ebaSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 494804007ebaSmrg ;; 494904007ebaSmrg 495004007ebaSmrg *) 495104007ebaSmrg if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 495204007ebaSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 495304007ebaSmrg _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' 495404007ebaSmrg else 495504007ebaSmrg _LT_TAGVAR(ld_shlibs, $1)=no 495604007ebaSmrg fi 495704007ebaSmrg ;; 495804007ebaSmrg esac 495904007ebaSmrg 496004007ebaSmrg if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then 496104007ebaSmrg runpath_var= 496204007ebaSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 496304007ebaSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)= 496404007ebaSmrg _LT_TAGVAR(whole_archive_flag_spec, $1)= 496504007ebaSmrg fi 496604007ebaSmrg else 496704007ebaSmrg # PORTME fill in a description of your system's linker (not GNU ld) 496804007ebaSmrg case $host_os in 496904007ebaSmrg aix3*) 497004007ebaSmrg _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 497104007ebaSmrg _LT_TAGVAR(always_export_symbols, $1)=yes 497204007ebaSmrg _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' 497304007ebaSmrg # Note: this linker hardcodes the directories in LIBPATH if there 497404007ebaSmrg # are no directories specified by -L. 497504007ebaSmrg _LT_TAGVAR(hardcode_minus_L, $1)=yes 497604007ebaSmrg if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 497704007ebaSmrg # Neither direct hardcoding nor static linking is supported with a 497804007ebaSmrg # broken collect2. 497904007ebaSmrg _LT_TAGVAR(hardcode_direct, $1)=unsupported 498004007ebaSmrg fi 498104007ebaSmrg ;; 498204007ebaSmrg 498304007ebaSmrg aix[[4-9]]*) 498404007ebaSmrg if test "$host_cpu" = ia64; then 498504007ebaSmrg # On IA64, the linker does run time linking by default, so we don't 498604007ebaSmrg # have to do anything special. 498704007ebaSmrg aix_use_runtimelinking=no 498804007ebaSmrg exp_sym_flag='-Bexport' 498904007ebaSmrg no_entry_flag="" 499004007ebaSmrg else 499104007ebaSmrg # If we're using GNU nm, then we don't want the "-C" option. 499204007ebaSmrg # -C means demangle to AIX nm, but means don't demangle with GNU nm 499304007ebaSmrg # Also, AIX nm treats weak defined symbols like other global 499404007ebaSmrg # defined symbols, whereas GNU nm marks them as "W". 499504007ebaSmrg if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 499604007ebaSmrg _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 499704007ebaSmrg else 499804007ebaSmrg _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 499904007ebaSmrg fi 500004007ebaSmrg aix_use_runtimelinking=no 500104007ebaSmrg 500204007ebaSmrg # Test if we are trying to use run time linking or normal 500304007ebaSmrg # AIX style linking. If -brtl is somewhere in LDFLAGS, we 500404007ebaSmrg # need to do runtime linking. 500504007ebaSmrg case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) 500604007ebaSmrg for ld_flag in $LDFLAGS; do 500704007ebaSmrg if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 500804007ebaSmrg aix_use_runtimelinking=yes 500904007ebaSmrg break 501004007ebaSmrg fi 501104007ebaSmrg done 501204007ebaSmrg ;; 501304007ebaSmrg esac 501404007ebaSmrg 501504007ebaSmrg exp_sym_flag='-bexport' 501604007ebaSmrg no_entry_flag='-bnoentry' 501704007ebaSmrg fi 501804007ebaSmrg 501904007ebaSmrg # When large executables or shared objects are built, AIX ld can 502004007ebaSmrg # have problems creating the table of contents. If linking a library 502104007ebaSmrg # or program results in "error TOC overflow" add -mminimal-toc to 502204007ebaSmrg # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 502304007ebaSmrg # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 502404007ebaSmrg 502504007ebaSmrg _LT_TAGVAR(archive_cmds, $1)='' 502604007ebaSmrg _LT_TAGVAR(hardcode_direct, $1)=yes 502704007ebaSmrg _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 502804007ebaSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 502904007ebaSmrg _LT_TAGVAR(link_all_deplibs, $1)=yes 503004007ebaSmrg _LT_TAGVAR(file_list_spec, $1)='${wl}-f,' 503104007ebaSmrg 503204007ebaSmrg if test "$GCC" = yes; then 503304007ebaSmrg case $host_os in aix4.[[012]]|aix4.[[012]].*) 503404007ebaSmrg # We only want to do this on AIX 4.2 and lower, the check 503504007ebaSmrg # below for broken collect2 doesn't work under 4.3+ 503604007ebaSmrg collect2name=`${CC} -print-prog-name=collect2` 503704007ebaSmrg if test -f "$collect2name" && 503804007ebaSmrg strings "$collect2name" | $GREP resolve_lib_name >/dev/null 503904007ebaSmrg then 504004007ebaSmrg # We have reworked collect2 504104007ebaSmrg : 504204007ebaSmrg else 504304007ebaSmrg # We have old collect2 504404007ebaSmrg _LT_TAGVAR(hardcode_direct, $1)=unsupported 504504007ebaSmrg # It fails to find uninstalled libraries when the uninstalled 504604007ebaSmrg # path is not listed in the libpath. Setting hardcode_minus_L 504704007ebaSmrg # to unsupported forces relinking 504804007ebaSmrg _LT_TAGVAR(hardcode_minus_L, $1)=yes 504904007ebaSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 505004007ebaSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)= 505104007ebaSmrg fi 505204007ebaSmrg ;; 505304007ebaSmrg esac 505404007ebaSmrg shared_flag='-shared' 505504007ebaSmrg if test "$aix_use_runtimelinking" = yes; then 505604007ebaSmrg shared_flag="$shared_flag "'${wl}-G' 505704007ebaSmrg fi 505804007ebaSmrg _LT_TAGVAR(link_all_deplibs, $1)=no 505904007ebaSmrg else 506004007ebaSmrg # not using gcc 506104007ebaSmrg if test "$host_cpu" = ia64; then 506204007ebaSmrg # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 506304007ebaSmrg # chokes on -Wl,-G. The following line is correct: 506404007ebaSmrg shared_flag='-G' 506504007ebaSmrg else 506604007ebaSmrg if test "$aix_use_runtimelinking" = yes; then 506704007ebaSmrg shared_flag='${wl}-G' 506804007ebaSmrg else 506904007ebaSmrg shared_flag='${wl}-bM:SRE' 507004007ebaSmrg fi 507104007ebaSmrg fi 507204007ebaSmrg fi 507304007ebaSmrg 507404007ebaSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall' 507504007ebaSmrg # It seems that -bexpall does not export symbols beginning with 507604007ebaSmrg # underscore (_), so it is better to generate a list of symbols to export. 507704007ebaSmrg _LT_TAGVAR(always_export_symbols, $1)=yes 507804007ebaSmrg if test "$aix_use_runtimelinking" = yes; then 507904007ebaSmrg # Warning - without using the other runtime loading flags (-brtl), 508004007ebaSmrg # -berok will link without error, but may produce a broken library. 508104007ebaSmrg _LT_TAGVAR(allow_undefined_flag, $1)='-berok' 508204007ebaSmrg # Determine the default libpath from the value encoded in an 508304007ebaSmrg # empty executable. 508404007ebaSmrg _LT_SYS_MODULE_PATH_AIX([$1]) 508504007ebaSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 508604007ebaSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 508704007ebaSmrg else 508804007ebaSmrg if test "$host_cpu" = ia64; then 508904007ebaSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' 509004007ebaSmrg _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" 509104007ebaSmrg _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" 509204007ebaSmrg else 509304007ebaSmrg # Determine the default libpath from the value encoded in an 509404007ebaSmrg # empty executable. 509504007ebaSmrg _LT_SYS_MODULE_PATH_AIX([$1]) 509604007ebaSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 509704007ebaSmrg # Warning - without using the other run time loading flags, 509804007ebaSmrg # -berok will link without error, but may produce a broken library. 509904007ebaSmrg _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' 510004007ebaSmrg _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' 510104007ebaSmrg if test "$with_gnu_ld" = yes; then 510204007ebaSmrg # We only use this code for GNU lds that support --whole-archive. 510304007ebaSmrg _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 510404007ebaSmrg else 510504007ebaSmrg # Exported symbols can be pulled into shared objects from archives 510604007ebaSmrg _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' 510704007ebaSmrg fi 510804007ebaSmrg _LT_TAGVAR(archive_cmds_need_lc, $1)=yes 510904007ebaSmrg # This is similar to how AIX traditionally builds its shared libraries. 511004007ebaSmrg _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 511104007ebaSmrg fi 511204007ebaSmrg fi 511304007ebaSmrg ;; 511404007ebaSmrg 511504007ebaSmrg amigaos*) 511604007ebaSmrg case $host_cpu in 511704007ebaSmrg powerpc) 511804007ebaSmrg # see comment about AmigaOS4 .so support 511904007ebaSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 512004007ebaSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='' 512104007ebaSmrg ;; 512204007ebaSmrg m68k) 512304007ebaSmrg _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)' 512404007ebaSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 512504007ebaSmrg _LT_TAGVAR(hardcode_minus_L, $1)=yes 512604007ebaSmrg ;; 512704007ebaSmrg esac 512804007ebaSmrg ;; 512904007ebaSmrg 513004007ebaSmrg bsdi[[45]]*) 513104007ebaSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic 513204007ebaSmrg ;; 513304007ebaSmrg 513404007ebaSmrg cygwin* | mingw* | pw32* | cegcc*) 513504007ebaSmrg # When not using gcc, we currently assume that we are using 513604007ebaSmrg # Microsoft Visual C++. 513704007ebaSmrg # hardcode_libdir_flag_spec is actually meaningless, as there is 513804007ebaSmrg # no search path for DLLs. 513904007ebaSmrg case $cc_basename in 514004007ebaSmrg cl*) 514104007ebaSmrg # Native MSVC 514204007ebaSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' 514304007ebaSmrg _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 514404007ebaSmrg _LT_TAGVAR(always_export_symbols, $1)=yes 514504007ebaSmrg _LT_TAGVAR(file_list_spec, $1)='@' 514604007ebaSmrg # Tell ltmain to make .lib files, not .a files. 514704007ebaSmrg libext=lib 514804007ebaSmrg # Tell ltmain to make .dll files, not .so files. 514904007ebaSmrg shrext_cmds=".dll" 515004007ebaSmrg # FIXME: Setting linknames here is a bad hack. 515104007ebaSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 515204007ebaSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 515304007ebaSmrg sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 515404007ebaSmrg else 515504007ebaSmrg sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 515604007ebaSmrg fi~ 515704007ebaSmrg $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 515804007ebaSmrg linknames=' 515904007ebaSmrg # The linker will not automatically build a static lib if we build a DLL. 516004007ebaSmrg # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' 516104007ebaSmrg _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 516204007ebaSmrg _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 516304007ebaSmrg _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' 516404007ebaSmrg # Don't use ranlib 516504007ebaSmrg _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib' 516604007ebaSmrg _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~ 516704007ebaSmrg lt_tool_outputfile="@TOOL_OUTPUT@"~ 516804007ebaSmrg case $lt_outputfile in 516904007ebaSmrg *.exe|*.EXE) ;; 517004007ebaSmrg *) 517104007ebaSmrg lt_outputfile="$lt_outputfile.exe" 517204007ebaSmrg lt_tool_outputfile="$lt_tool_outputfile.exe" 517304007ebaSmrg ;; 517404007ebaSmrg esac~ 517504007ebaSmrg if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 517604007ebaSmrg $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 517704007ebaSmrg $RM "$lt_outputfile.manifest"; 517804007ebaSmrg fi' 517904007ebaSmrg ;; 518004007ebaSmrg *) 518104007ebaSmrg # Assume MSVC wrapper 518204007ebaSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' 518304007ebaSmrg _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 518404007ebaSmrg # Tell ltmain to make .lib files, not .a files. 518504007ebaSmrg libext=lib 518604007ebaSmrg # Tell ltmain to make .dll files, not .so files. 518704007ebaSmrg shrext_cmds=".dll" 518804007ebaSmrg # FIXME: Setting linknames here is a bad hack. 518904007ebaSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 519004007ebaSmrg # The linker will automatically build a .lib file if we build a DLL. 519104007ebaSmrg _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' 519204007ebaSmrg # FIXME: Should let the user specify the lib program. 519304007ebaSmrg _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs' 519404007ebaSmrg _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 519504007ebaSmrg ;; 519604007ebaSmrg esac 519704007ebaSmrg ;; 519804007ebaSmrg 519904007ebaSmrg darwin* | rhapsody*) 520004007ebaSmrg _LT_DARWIN_LINKER_FEATURES($1) 520104007ebaSmrg ;; 520204007ebaSmrg 520304007ebaSmrg dgux*) 520404007ebaSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 520504007ebaSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 520604007ebaSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 520704007ebaSmrg ;; 520804007ebaSmrg 520904007ebaSmrg # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 521004007ebaSmrg # support. Future versions do this automatically, but an explicit c++rt0.o 521104007ebaSmrg # does not break anything, and helps significantly (at the cost of a little 521204007ebaSmrg # extra space). 521304007ebaSmrg freebsd2.2*) 521404007ebaSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 521504007ebaSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 521604007ebaSmrg _LT_TAGVAR(hardcode_direct, $1)=yes 521704007ebaSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 521804007ebaSmrg ;; 521904007ebaSmrg 522004007ebaSmrg # Unfortunately, older versions of FreeBSD 2 do not have this feature. 522104007ebaSmrg freebsd2.*) 522204007ebaSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 522304007ebaSmrg _LT_TAGVAR(hardcode_direct, $1)=yes 522404007ebaSmrg _LT_TAGVAR(hardcode_minus_L, $1)=yes 522504007ebaSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 522604007ebaSmrg ;; 522704007ebaSmrg 522804007ebaSmrg # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 522904007ebaSmrg freebsd* | dragonfly*) 523004007ebaSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 523104007ebaSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 523204007ebaSmrg _LT_TAGVAR(hardcode_direct, $1)=yes 523304007ebaSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 523404007ebaSmrg ;; 523504007ebaSmrg 523604007ebaSmrg hpux9*) 523704007ebaSmrg if test "$GCC" = yes; then 523804007ebaSmrg _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 $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 523904007ebaSmrg else 524004007ebaSmrg _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 524104007ebaSmrg fi 524204007ebaSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 524304007ebaSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)=: 524404007ebaSmrg _LT_TAGVAR(hardcode_direct, $1)=yes 524504007ebaSmrg 524604007ebaSmrg # hardcode_minus_L: Not really in the search PATH, 524704007ebaSmrg # but as the default location of the library. 524804007ebaSmrg _LT_TAGVAR(hardcode_minus_L, $1)=yes 524904007ebaSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 525004007ebaSmrg ;; 525104007ebaSmrg 525204007ebaSmrg hpux10*) 525304007ebaSmrg if test "$GCC" = yes && test "$with_gnu_ld" = no; then 525404007ebaSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 525504007ebaSmrg else 525604007ebaSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 525704007ebaSmrg fi 525804007ebaSmrg if test "$with_gnu_ld" = no; then 525904007ebaSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 526004007ebaSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)=: 526104007ebaSmrg _LT_TAGVAR(hardcode_direct, $1)=yes 526204007ebaSmrg _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 526304007ebaSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 526404007ebaSmrg # hardcode_minus_L: Not really in the search PATH, 526504007ebaSmrg # but as the default location of the library. 526604007ebaSmrg _LT_TAGVAR(hardcode_minus_L, $1)=yes 526704007ebaSmrg fi 526804007ebaSmrg ;; 526904007ebaSmrg 527004007ebaSmrg hpux11*) 527104007ebaSmrg if test "$GCC" = yes && test "$with_gnu_ld" = no; then 527204007ebaSmrg case $host_cpu in 527304007ebaSmrg hppa*64*) 527404007ebaSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 527504007ebaSmrg ;; 527604007ebaSmrg ia64*) 527704007ebaSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 527804007ebaSmrg ;; 527904007ebaSmrg *) 528004007ebaSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 528104007ebaSmrg ;; 528204007ebaSmrg esac 528304007ebaSmrg else 528404007ebaSmrg case $host_cpu in 528504007ebaSmrg hppa*64*) 528604007ebaSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 528704007ebaSmrg ;; 528804007ebaSmrg ia64*) 528904007ebaSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 529004007ebaSmrg ;; 529104007ebaSmrg *) 529204007ebaSmrg m4_if($1, [], [ 529304007ebaSmrg # Older versions of the 11.00 compiler do not understand -b yet 529404007ebaSmrg # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 529504007ebaSmrg _LT_LINKER_OPTION([if $CC understands -b], 529604007ebaSmrg _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b], 529704007ebaSmrg [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'], 529804007ebaSmrg [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])], 529904007ebaSmrg [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags']) 530004007ebaSmrg ;; 530104007ebaSmrg esac 530204007ebaSmrg fi 530304007ebaSmrg if test "$with_gnu_ld" = no; then 530404007ebaSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 530504007ebaSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)=: 530604007ebaSmrg 530704007ebaSmrg case $host_cpu in 530804007ebaSmrg hppa*64*|ia64*) 530904007ebaSmrg _LT_TAGVAR(hardcode_direct, $1)=no 531004007ebaSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 531104007ebaSmrg ;; 531204007ebaSmrg *) 531304007ebaSmrg _LT_TAGVAR(hardcode_direct, $1)=yes 531404007ebaSmrg _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 531504007ebaSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 531604007ebaSmrg 531704007ebaSmrg # hardcode_minus_L: Not really in the search PATH, 531804007ebaSmrg # but as the default location of the library. 531904007ebaSmrg _LT_TAGVAR(hardcode_minus_L, $1)=yes 532004007ebaSmrg ;; 532104007ebaSmrg esac 532204007ebaSmrg fi 532304007ebaSmrg ;; 532404007ebaSmrg 532504007ebaSmrg irix5* | irix6* | nonstopux*) 532604007ebaSmrg if test "$GCC" = yes; then 532704007ebaSmrg _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' 532804007ebaSmrg # Try to use the -exported_symbol ld option, if it does not 532904007ebaSmrg # work, assume that -exports_file does not work either and 533004007ebaSmrg # implicitly export all symbols. 533104007ebaSmrg # This should be the same for all languages, so no per-tag cache variable. 533204007ebaSmrg AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol], 533304007ebaSmrg [lt_cv_irix_exported_symbol], 533404007ebaSmrg [save_LDFLAGS="$LDFLAGS" 533504007ebaSmrg LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 533604007ebaSmrg AC_LINK_IFELSE( 533704007ebaSmrg [AC_LANG_SOURCE( 533804007ebaSmrg [AC_LANG_CASE([C], [[int foo (void) { return 0; }]], 533904007ebaSmrg [C++], [[int foo (void) { return 0; }]], 534004007ebaSmrg [Fortran 77], [[ 534104007ebaSmrg subroutine foo 534204007ebaSmrg end]], 534304007ebaSmrg [Fortran], [[ 534404007ebaSmrg subroutine foo 534504007ebaSmrg end]])])], 534604007ebaSmrg [lt_cv_irix_exported_symbol=yes], 534704007ebaSmrg [lt_cv_irix_exported_symbol=no]) 534804007ebaSmrg LDFLAGS="$save_LDFLAGS"]) 534904007ebaSmrg if test "$lt_cv_irix_exported_symbol" = yes; then 535004007ebaSmrg _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' 535104007ebaSmrg fi 535204007ebaSmrg else 535304007ebaSmrg _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' 535404007ebaSmrg _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' 535504007ebaSmrg fi 535604007ebaSmrg _LT_TAGVAR(archive_cmds_need_lc, $1)='no' 535704007ebaSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 535804007ebaSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)=: 535904007ebaSmrg _LT_TAGVAR(inherit_rpath, $1)=yes 536004007ebaSmrg _LT_TAGVAR(link_all_deplibs, $1)=yes 536104007ebaSmrg ;; 536204007ebaSmrg 536304007ebaSmrg netbsd* | netbsdelf*-gnu) 536404007ebaSmrg if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 536504007ebaSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 536604007ebaSmrg else 536704007ebaSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 536804007ebaSmrg fi 536904007ebaSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 537004007ebaSmrg _LT_TAGVAR(hardcode_direct, $1)=yes 537104007ebaSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 537204007ebaSmrg ;; 537304007ebaSmrg 537404007ebaSmrg newsos6) 537504007ebaSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 537604007ebaSmrg _LT_TAGVAR(hardcode_direct, $1)=yes 537704007ebaSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 537804007ebaSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)=: 537904007ebaSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 538004007ebaSmrg ;; 538104007ebaSmrg 538204007ebaSmrg *nto* | *qnx*) 538304007ebaSmrg ;; 538404007ebaSmrg 538504007ebaSmrg openbsd*) 538604007ebaSmrg if test -f /usr/libexec/ld.so; then 538704007ebaSmrg _LT_TAGVAR(hardcode_direct, $1)=yes 538804007ebaSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 538904007ebaSmrg _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 539004007ebaSmrg if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 539104007ebaSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 539204007ebaSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 539304007ebaSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 539404007ebaSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 539504007ebaSmrg else 539604007ebaSmrg case $host_os in 539704007ebaSmrg openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*) 539804007ebaSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 539904007ebaSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 540004007ebaSmrg ;; 540104007ebaSmrg *) 540204007ebaSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 540304007ebaSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 540404007ebaSmrg ;; 540504007ebaSmrg esac 540604007ebaSmrg fi 540704007ebaSmrg else 540804007ebaSmrg _LT_TAGVAR(ld_shlibs, $1)=no 540904007ebaSmrg fi 541004007ebaSmrg ;; 541104007ebaSmrg 541204007ebaSmrg os2*) 541304007ebaSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 541404007ebaSmrg _LT_TAGVAR(hardcode_minus_L, $1)=yes 541504007ebaSmrg _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 541604007ebaSmrg _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 541704007ebaSmrg _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 541804007ebaSmrg ;; 541904007ebaSmrg 542004007ebaSmrg osf3*) 542104007ebaSmrg if test "$GCC" = yes; then 542204007ebaSmrg _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 542304007ebaSmrg _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' 542404007ebaSmrg else 542504007ebaSmrg _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 542604007ebaSmrg _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' 542704007ebaSmrg fi 542804007ebaSmrg _LT_TAGVAR(archive_cmds_need_lc, $1)='no' 542904007ebaSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 543004007ebaSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)=: 543104007ebaSmrg ;; 543204007ebaSmrg 543304007ebaSmrg osf4* | osf5*) # as osf3* with the addition of -msym flag 543404007ebaSmrg if test "$GCC" = yes; then 543504007ebaSmrg _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 543604007ebaSmrg _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' 543704007ebaSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 543804007ebaSmrg else 543904007ebaSmrg _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 544004007ebaSmrg _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' 544104007ebaSmrg _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~ 544204007ebaSmrg $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' 544304007ebaSmrg 544404007ebaSmrg # Both c and cxx compiler support -rpath directly 544504007ebaSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 544604007ebaSmrg fi 544704007ebaSmrg _LT_TAGVAR(archive_cmds_need_lc, $1)='no' 544804007ebaSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)=: 544904007ebaSmrg ;; 545004007ebaSmrg 545104007ebaSmrg solaris*) 545204007ebaSmrg _LT_TAGVAR(no_undefined_flag, $1)=' -z defs' 545304007ebaSmrg if test "$GCC" = yes; then 545404007ebaSmrg wlarc='${wl}' 545504007ebaSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 545604007ebaSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 545704007ebaSmrg $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' 545804007ebaSmrg else 545904007ebaSmrg case `$CC -V 2>&1` in 546004007ebaSmrg *"Compilers 5.0"*) 546104007ebaSmrg wlarc='' 546204007ebaSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 546304007ebaSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 546404007ebaSmrg $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 546504007ebaSmrg ;; 546604007ebaSmrg *) 546704007ebaSmrg wlarc='${wl}' 546804007ebaSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 546904007ebaSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 547004007ebaSmrg $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 547104007ebaSmrg ;; 547204007ebaSmrg esac 547304007ebaSmrg fi 547404007ebaSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 547504007ebaSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 547604007ebaSmrg case $host_os in 547704007ebaSmrg solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 547804007ebaSmrg *) 547904007ebaSmrg # The compiler driver will combine and reorder linker options, 548004007ebaSmrg # but understands `-z linker_flag'. GCC discards it without `$wl', 548104007ebaSmrg # but is careful enough not to reorder. 548204007ebaSmrg # Supported since Solaris 2.6 (maybe 2.5.1?) 548304007ebaSmrg if test "$GCC" = yes; then 548404007ebaSmrg _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 548504007ebaSmrg else 548604007ebaSmrg _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' 548704007ebaSmrg fi 548804007ebaSmrg ;; 548904007ebaSmrg esac 549004007ebaSmrg _LT_TAGVAR(link_all_deplibs, $1)=yes 549104007ebaSmrg ;; 549204007ebaSmrg 549304007ebaSmrg sunos4*) 549404007ebaSmrg if test "x$host_vendor" = xsequent; then 549504007ebaSmrg # Use $CC to link under sequent, because it throws in some extra .o 549604007ebaSmrg # files that make .init and .fini sections work. 549704007ebaSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 549804007ebaSmrg else 549904007ebaSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 550004007ebaSmrg fi 550104007ebaSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 550204007ebaSmrg _LT_TAGVAR(hardcode_direct, $1)=yes 550304007ebaSmrg _LT_TAGVAR(hardcode_minus_L, $1)=yes 550404007ebaSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 550504007ebaSmrg ;; 550604007ebaSmrg 550704007ebaSmrg sysv4) 550804007ebaSmrg case $host_vendor in 550904007ebaSmrg sni) 551004007ebaSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 551104007ebaSmrg _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true??? 551204007ebaSmrg ;; 551304007ebaSmrg siemens) 551404007ebaSmrg ## LD is ld it makes a PLAMLIB 551504007ebaSmrg ## CC just makes a GrossModule. 551604007ebaSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' 551704007ebaSmrg _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs' 551804007ebaSmrg _LT_TAGVAR(hardcode_direct, $1)=no 551904007ebaSmrg ;; 552004007ebaSmrg motorola) 552104007ebaSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 552204007ebaSmrg _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie 552304007ebaSmrg ;; 552404007ebaSmrg esac 552504007ebaSmrg runpath_var='LD_RUN_PATH' 552604007ebaSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 552704007ebaSmrg ;; 552804007ebaSmrg 552904007ebaSmrg sysv4.3*) 553004007ebaSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 553104007ebaSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 553204007ebaSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport' 553304007ebaSmrg ;; 553404007ebaSmrg 553504007ebaSmrg sysv4*MP*) 553604007ebaSmrg if test -d /usr/nec; then 553704007ebaSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 553804007ebaSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 553904007ebaSmrg runpath_var=LD_RUN_PATH 554004007ebaSmrg hardcode_runpath_var=yes 554104007ebaSmrg _LT_TAGVAR(ld_shlibs, $1)=yes 554204007ebaSmrg fi 554304007ebaSmrg ;; 554404007ebaSmrg 554504007ebaSmrg sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) 554604007ebaSmrg _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' 554704007ebaSmrg _LT_TAGVAR(archive_cmds_need_lc, $1)=no 554804007ebaSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 554904007ebaSmrg runpath_var='LD_RUN_PATH' 555004007ebaSmrg 555104007ebaSmrg if test "$GCC" = yes; then 555204007ebaSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 555304007ebaSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 555404007ebaSmrg else 555504007ebaSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 555604007ebaSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 555704007ebaSmrg fi 555804007ebaSmrg ;; 555904007ebaSmrg 556004007ebaSmrg sysv5* | sco3.2v5* | sco5v6*) 556104007ebaSmrg # Note: We can NOT use -z defs as we might desire, because we do not 556204007ebaSmrg # link with -lc, and that would cause any symbols used from libc to 556304007ebaSmrg # always be unresolved, which means just about no library would 556404007ebaSmrg # ever link correctly. If we're not using GNU ld we use -z text 556504007ebaSmrg # though, which does catch some bad symbols but isn't as heavy-handed 556604007ebaSmrg # as -z defs. 556704007ebaSmrg _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' 556804007ebaSmrg _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' 556904007ebaSmrg _LT_TAGVAR(archive_cmds_need_lc, $1)=no 557004007ebaSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 557104007ebaSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir' 557204007ebaSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 557304007ebaSmrg _LT_TAGVAR(link_all_deplibs, $1)=yes 557404007ebaSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' 557504007ebaSmrg runpath_var='LD_RUN_PATH' 557604007ebaSmrg 557704007ebaSmrg if test "$GCC" = yes; then 557804007ebaSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 557904007ebaSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 558004007ebaSmrg else 558104007ebaSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 558204007ebaSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 558304007ebaSmrg fi 558404007ebaSmrg ;; 558504007ebaSmrg 558604007ebaSmrg uts4*) 558704007ebaSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 558804007ebaSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 558904007ebaSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 559004007ebaSmrg ;; 559104007ebaSmrg 559204007ebaSmrg *) 559304007ebaSmrg _LT_TAGVAR(ld_shlibs, $1)=no 559404007ebaSmrg ;; 559504007ebaSmrg esac 559604007ebaSmrg 559704007ebaSmrg if test x$host_vendor = xsni; then 559804007ebaSmrg case $host in 559904007ebaSmrg sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 560004007ebaSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym' 560104007ebaSmrg ;; 560204007ebaSmrg esac 560304007ebaSmrg fi 560404007ebaSmrg fi 560504007ebaSmrg]) 560604007ebaSmrgAC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) 560704007ebaSmrgtest "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no 560804007ebaSmrg 560904007ebaSmrg_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld 561004007ebaSmrg 561104007ebaSmrg_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl 561204007ebaSmrg_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl 561304007ebaSmrg_LT_DECL([], [extract_expsyms_cmds], [2], 561404007ebaSmrg [The commands to extract the exported symbol list from a shared archive]) 561504007ebaSmrg 561604007ebaSmrg# 561704007ebaSmrg# Do we need to explicitly link libc? 561804007ebaSmrg# 561904007ebaSmrgcase "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in 562004007ebaSmrgx|xyes) 562104007ebaSmrg # Assume -lc should be added 562204007ebaSmrg _LT_TAGVAR(archive_cmds_need_lc, $1)=yes 562304007ebaSmrg 562404007ebaSmrg if test "$enable_shared" = yes && test "$GCC" = yes; then 562504007ebaSmrg case $_LT_TAGVAR(archive_cmds, $1) in 562604007ebaSmrg *'~'*) 562704007ebaSmrg # FIXME: we may have to deal with multi-command sequences. 562804007ebaSmrg ;; 562904007ebaSmrg '$CC '*) 563004007ebaSmrg # Test whether the compiler implicitly links with -lc since on some 563104007ebaSmrg # systems, -lgcc has to come before -lc. If gcc already passes -lc 563204007ebaSmrg # to ld, don't add -lc before -lgcc. 563304007ebaSmrg AC_CACHE_CHECK([whether -lc should be explicitly linked in], 563404007ebaSmrg [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1), 563504007ebaSmrg [$RM conftest* 563604007ebaSmrg echo "$lt_simple_compile_test_code" > conftest.$ac_ext 563704007ebaSmrg 563804007ebaSmrg if AC_TRY_EVAL(ac_compile) 2>conftest.err; then 563904007ebaSmrg soname=conftest 564004007ebaSmrg lib=conftest 564104007ebaSmrg libobjs=conftest.$ac_objext 564204007ebaSmrg deplibs= 564304007ebaSmrg wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) 564404007ebaSmrg pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1) 564504007ebaSmrg compiler_flags=-v 564604007ebaSmrg linker_flags=-v 564704007ebaSmrg verstring= 564804007ebaSmrg output_objdir=. 564904007ebaSmrg libname=conftest 565004007ebaSmrg lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1) 565104007ebaSmrg _LT_TAGVAR(allow_undefined_flag, $1)= 565204007ebaSmrg if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 565304007ebaSmrg then 565404007ebaSmrg lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no 565504007ebaSmrg else 565604007ebaSmrg lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes 565704007ebaSmrg fi 565804007ebaSmrg _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag 565904007ebaSmrg else 566004007ebaSmrg cat conftest.err 1>&5 566104007ebaSmrg fi 566204007ebaSmrg $RM conftest* 566304007ebaSmrg ]) 566404007ebaSmrg _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1) 566504007ebaSmrg ;; 566604007ebaSmrg esac 566704007ebaSmrg fi 566804007ebaSmrg ;; 566904007ebaSmrgesac 567004007ebaSmrg 567104007ebaSmrg_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0], 567204007ebaSmrg [Whether or not to add -lc for building shared libraries]) 567304007ebaSmrg_LT_TAGDECL([allow_libtool_libs_with_static_runtimes], 567404007ebaSmrg [enable_shared_with_static_runtimes], [0], 567504007ebaSmrg [Whether or not to disallow shared libs when runtime libs are static]) 567604007ebaSmrg_LT_TAGDECL([], [export_dynamic_flag_spec], [1], 567704007ebaSmrg [Compiler flag to allow reflexive dlopens]) 567804007ebaSmrg_LT_TAGDECL([], [whole_archive_flag_spec], [1], 567904007ebaSmrg [Compiler flag to generate shared objects directly from archives]) 568004007ebaSmrg_LT_TAGDECL([], [compiler_needs_object], [1], 568104007ebaSmrg [Whether the compiler copes with passing no objects directly]) 568204007ebaSmrg_LT_TAGDECL([], [old_archive_from_new_cmds], [2], 568304007ebaSmrg [Create an old-style archive from a shared archive]) 568404007ebaSmrg_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2], 568504007ebaSmrg [Create a temporary old-style archive to link instead of a shared archive]) 568604007ebaSmrg_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive]) 568704007ebaSmrg_LT_TAGDECL([], [archive_expsym_cmds], [2]) 568804007ebaSmrg_LT_TAGDECL([], [module_cmds], [2], 568904007ebaSmrg [Commands used to build a loadable module if different from building 569004007ebaSmrg a shared archive.]) 569104007ebaSmrg_LT_TAGDECL([], [module_expsym_cmds], [2]) 569204007ebaSmrg_LT_TAGDECL([], [with_gnu_ld], [1], 569304007ebaSmrg [Whether we are building with GNU ld or not]) 569404007ebaSmrg_LT_TAGDECL([], [allow_undefined_flag], [1], 569504007ebaSmrg [Flag that allows shared libraries with undefined symbols to be built]) 569604007ebaSmrg_LT_TAGDECL([], [no_undefined_flag], [1], 569704007ebaSmrg [Flag that enforces no undefined symbols]) 569804007ebaSmrg_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1], 569904007ebaSmrg [Flag to hardcode $libdir into a binary during linking. 570004007ebaSmrg This must work even if $libdir does not exist]) 570104007ebaSmrg_LT_TAGDECL([], [hardcode_libdir_separator], [1], 570204007ebaSmrg [Whether we need a single "-rpath" flag with a separated argument]) 570304007ebaSmrg_LT_TAGDECL([], [hardcode_direct], [0], 570404007ebaSmrg [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes 570504007ebaSmrg DIR into the resulting binary]) 570604007ebaSmrg_LT_TAGDECL([], [hardcode_direct_absolute], [0], 570704007ebaSmrg [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes 570804007ebaSmrg DIR into the resulting binary and the resulting library dependency is 570904007ebaSmrg "absolute", i.e impossible to change by setting ${shlibpath_var} if the 571004007ebaSmrg library is relocated]) 571104007ebaSmrg_LT_TAGDECL([], [hardcode_minus_L], [0], 571204007ebaSmrg [Set to "yes" if using the -LDIR flag during linking hardcodes DIR 571304007ebaSmrg into the resulting binary]) 571404007ebaSmrg_LT_TAGDECL([], [hardcode_shlibpath_var], [0], 571504007ebaSmrg [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 571604007ebaSmrg into the resulting binary]) 571704007ebaSmrg_LT_TAGDECL([], [hardcode_automatic], [0], 571804007ebaSmrg [Set to "yes" if building a shared library automatically hardcodes DIR 571904007ebaSmrg into the library and all subsequent libraries and executables linked 572004007ebaSmrg against it]) 572104007ebaSmrg_LT_TAGDECL([], [inherit_rpath], [0], 572204007ebaSmrg [Set to yes if linker adds runtime paths of dependent libraries 572304007ebaSmrg to runtime path list]) 572404007ebaSmrg_LT_TAGDECL([], [link_all_deplibs], [0], 572504007ebaSmrg [Whether libtool must link a program against all its dependency libraries]) 572604007ebaSmrg_LT_TAGDECL([], [always_export_symbols], [0], 572704007ebaSmrg [Set to "yes" if exported symbols are required]) 572804007ebaSmrg_LT_TAGDECL([], [export_symbols_cmds], [2], 572904007ebaSmrg [The commands to list exported symbols]) 573004007ebaSmrg_LT_TAGDECL([], [exclude_expsyms], [1], 573104007ebaSmrg [Symbols that should not be listed in the preloaded symbols]) 573204007ebaSmrg_LT_TAGDECL([], [include_expsyms], [1], 573304007ebaSmrg [Symbols that must always be exported]) 573404007ebaSmrg_LT_TAGDECL([], [prelink_cmds], [2], 573504007ebaSmrg [Commands necessary for linking programs (against libraries) with templates]) 573604007ebaSmrg_LT_TAGDECL([], [postlink_cmds], [2], 573704007ebaSmrg [Commands necessary for finishing linking programs]) 573804007ebaSmrg_LT_TAGDECL([], [file_list_spec], [1], 573904007ebaSmrg [Specify filename containing input files]) 574004007ebaSmrgdnl FIXME: Not yet implemented 574104007ebaSmrgdnl _LT_TAGDECL([], [thread_safe_flag_spec], [1], 574204007ebaSmrgdnl [Compiler flag to generate thread safe objects]) 574304007ebaSmrg])# _LT_LINKER_SHLIBS 574404007ebaSmrg 574504007ebaSmrg 574604007ebaSmrg# _LT_LANG_C_CONFIG([TAG]) 574704007ebaSmrg# ------------------------ 574804007ebaSmrg# Ensure that the configuration variables for a C compiler are suitably 574904007ebaSmrg# defined. These variables are subsequently used by _LT_CONFIG to write 575004007ebaSmrg# the compiler configuration to `libtool'. 575104007ebaSmrgm4_defun([_LT_LANG_C_CONFIG], 575204007ebaSmrg[m4_require([_LT_DECL_EGREP])dnl 575304007ebaSmrglt_save_CC="$CC" 575404007ebaSmrgAC_LANG_PUSH(C) 575504007ebaSmrg 575604007ebaSmrg# Source file extension for C test sources. 575704007ebaSmrgac_ext=c 575804007ebaSmrg 575904007ebaSmrg# Object file extension for compiled C test sources. 576004007ebaSmrgobjext=o 576104007ebaSmrg_LT_TAGVAR(objext, $1)=$objext 576204007ebaSmrg 576304007ebaSmrg# Code to be used in simple compile tests 576404007ebaSmrglt_simple_compile_test_code="int some_variable = 0;" 576504007ebaSmrg 576604007ebaSmrg# Code to be used in simple link tests 576704007ebaSmrglt_simple_link_test_code='int main(){return(0);}' 576804007ebaSmrg 576904007ebaSmrg_LT_TAG_COMPILER 577004007ebaSmrg# Save the default compiler, since it gets overwritten when the other 577104007ebaSmrg# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 577204007ebaSmrgcompiler_DEFAULT=$CC 577304007ebaSmrg 577404007ebaSmrg# save warnings/boilerplate of simple test code 577504007ebaSmrg_LT_COMPILER_BOILERPLATE 577604007ebaSmrg_LT_LINKER_BOILERPLATE 577704007ebaSmrg 577804007ebaSmrg## CAVEAT EMPTOR: 577904007ebaSmrg## There is no encapsulation within the following macros, do not change 578004007ebaSmrg## the running order or otherwise move them around unless you know exactly 578104007ebaSmrg## what you are doing... 578204007ebaSmrgif test -n "$compiler"; then 578304007ebaSmrg _LT_COMPILER_NO_RTTI($1) 578404007ebaSmrg _LT_COMPILER_PIC($1) 578504007ebaSmrg _LT_COMPILER_C_O($1) 578604007ebaSmrg _LT_COMPILER_FILE_LOCKS($1) 578704007ebaSmrg _LT_LINKER_SHLIBS($1) 578804007ebaSmrg _LT_SYS_DYNAMIC_LINKER($1) 578904007ebaSmrg _LT_LINKER_HARDCODE_LIBPATH($1) 579004007ebaSmrg LT_SYS_DLOPEN_SELF 579104007ebaSmrg _LT_CMD_STRIPLIB 579204007ebaSmrg 579304007ebaSmrg # Report which library types will actually be built 579404007ebaSmrg AC_MSG_CHECKING([if libtool supports shared libraries]) 579504007ebaSmrg AC_MSG_RESULT([$can_build_shared]) 579604007ebaSmrg 579704007ebaSmrg AC_MSG_CHECKING([whether to build shared libraries]) 579804007ebaSmrg test "$can_build_shared" = "no" && enable_shared=no 579904007ebaSmrg 580004007ebaSmrg # On AIX, shared libraries and static libraries use the same namespace, and 580104007ebaSmrg # are all built from PIC. 580204007ebaSmrg case $host_os in 580304007ebaSmrg aix3*) 580404007ebaSmrg test "$enable_shared" = yes && enable_static=no 580504007ebaSmrg if test -n "$RANLIB"; then 580604007ebaSmrg archive_cmds="$archive_cmds~\$RANLIB \$lib" 580704007ebaSmrg postinstall_cmds='$RANLIB $lib' 580804007ebaSmrg fi 580904007ebaSmrg ;; 581004007ebaSmrg 581104007ebaSmrg aix[[4-9]]*) 581204007ebaSmrg if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 581304007ebaSmrg test "$enable_shared" = yes && enable_static=no 581404007ebaSmrg fi 581504007ebaSmrg ;; 581604007ebaSmrg esac 581704007ebaSmrg AC_MSG_RESULT([$enable_shared]) 581804007ebaSmrg 581904007ebaSmrg AC_MSG_CHECKING([whether to build static libraries]) 582004007ebaSmrg # Make sure either enable_shared or enable_static is yes. 582104007ebaSmrg test "$enable_shared" = yes || enable_static=yes 582204007ebaSmrg AC_MSG_RESULT([$enable_static]) 582304007ebaSmrg 582404007ebaSmrg _LT_CONFIG($1) 582504007ebaSmrgfi 582604007ebaSmrgAC_LANG_POP 582704007ebaSmrgCC="$lt_save_CC" 582804007ebaSmrg])# _LT_LANG_C_CONFIG 582904007ebaSmrg 583004007ebaSmrg 583104007ebaSmrg# _LT_LANG_CXX_CONFIG([TAG]) 583204007ebaSmrg# -------------------------- 583304007ebaSmrg# Ensure that the configuration variables for a C++ compiler are suitably 583404007ebaSmrg# defined. These variables are subsequently used by _LT_CONFIG to write 583504007ebaSmrg# the compiler configuration to `libtool'. 583604007ebaSmrgm4_defun([_LT_LANG_CXX_CONFIG], 583704007ebaSmrg[m4_require([_LT_FILEUTILS_DEFAULTS])dnl 583804007ebaSmrgm4_require([_LT_DECL_EGREP])dnl 583904007ebaSmrgm4_require([_LT_PATH_MANIFEST_TOOL])dnl 584004007ebaSmrgif test -n "$CXX" && ( test "X$CXX" != "Xno" && 584104007ebaSmrg ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 584204007ebaSmrg (test "X$CXX" != "Xg++"))) ; then 584304007ebaSmrg AC_PROG_CXXCPP 584404007ebaSmrgelse 584504007ebaSmrg _lt_caught_CXX_error=yes 584604007ebaSmrgfi 584704007ebaSmrg 584804007ebaSmrgAC_LANG_PUSH(C++) 584904007ebaSmrg_LT_TAGVAR(archive_cmds_need_lc, $1)=no 585004007ebaSmrg_LT_TAGVAR(allow_undefined_flag, $1)= 585104007ebaSmrg_LT_TAGVAR(always_export_symbols, $1)=no 585204007ebaSmrg_LT_TAGVAR(archive_expsym_cmds, $1)= 585304007ebaSmrg_LT_TAGVAR(compiler_needs_object, $1)=no 585404007ebaSmrg_LT_TAGVAR(export_dynamic_flag_spec, $1)= 585504007ebaSmrg_LT_TAGVAR(hardcode_direct, $1)=no 585604007ebaSmrg_LT_TAGVAR(hardcode_direct_absolute, $1)=no 585704007ebaSmrg_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 585804007ebaSmrg_LT_TAGVAR(hardcode_libdir_separator, $1)= 585904007ebaSmrg_LT_TAGVAR(hardcode_minus_L, $1)=no 586004007ebaSmrg_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 586104007ebaSmrg_LT_TAGVAR(hardcode_automatic, $1)=no 586204007ebaSmrg_LT_TAGVAR(inherit_rpath, $1)=no 586304007ebaSmrg_LT_TAGVAR(module_cmds, $1)= 586404007ebaSmrg_LT_TAGVAR(module_expsym_cmds, $1)= 586504007ebaSmrg_LT_TAGVAR(link_all_deplibs, $1)=unknown 586604007ebaSmrg_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 586704007ebaSmrg_LT_TAGVAR(reload_flag, $1)=$reload_flag 586804007ebaSmrg_LT_TAGVAR(reload_cmds, $1)=$reload_cmds 586904007ebaSmrg_LT_TAGVAR(no_undefined_flag, $1)= 587004007ebaSmrg_LT_TAGVAR(whole_archive_flag_spec, $1)= 587104007ebaSmrg_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no 587204007ebaSmrg 587304007ebaSmrg# Source file extension for C++ test sources. 587404007ebaSmrgac_ext=cpp 587504007ebaSmrg 587604007ebaSmrg# Object file extension for compiled C++ test sources. 587704007ebaSmrgobjext=o 587804007ebaSmrg_LT_TAGVAR(objext, $1)=$objext 587904007ebaSmrg 588004007ebaSmrg# No sense in running all these tests if we already determined that 588104007ebaSmrg# the CXX compiler isn't working. Some variables (like enable_shared) 588204007ebaSmrg# are currently assumed to apply to all compilers on this platform, 588304007ebaSmrg# and will be corrupted by setting them based on a non-working compiler. 588404007ebaSmrgif test "$_lt_caught_CXX_error" != yes; then 588504007ebaSmrg # Code to be used in simple compile tests 588604007ebaSmrg lt_simple_compile_test_code="int some_variable = 0;" 588704007ebaSmrg 588804007ebaSmrg # Code to be used in simple link tests 588904007ebaSmrg lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }' 589004007ebaSmrg 589104007ebaSmrg # ltmain only uses $CC for tagged configurations so make sure $CC is set. 589204007ebaSmrg _LT_TAG_COMPILER 589304007ebaSmrg 589404007ebaSmrg # save warnings/boilerplate of simple test code 589504007ebaSmrg _LT_COMPILER_BOILERPLATE 589604007ebaSmrg _LT_LINKER_BOILERPLATE 589704007ebaSmrg 589804007ebaSmrg # Allow CC to be a program name with arguments. 589904007ebaSmrg lt_save_CC=$CC 590004007ebaSmrg lt_save_CFLAGS=$CFLAGS 590104007ebaSmrg lt_save_LD=$LD 590204007ebaSmrg lt_save_GCC=$GCC 590304007ebaSmrg GCC=$GXX 590404007ebaSmrg lt_save_with_gnu_ld=$with_gnu_ld 590504007ebaSmrg lt_save_path_LD=$lt_cv_path_LD 590604007ebaSmrg if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 590704007ebaSmrg lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 590804007ebaSmrg else 590904007ebaSmrg $as_unset lt_cv_prog_gnu_ld 591004007ebaSmrg fi 591104007ebaSmrg if test -n "${lt_cv_path_LDCXX+set}"; then 591204007ebaSmrg lt_cv_path_LD=$lt_cv_path_LDCXX 591304007ebaSmrg else 591404007ebaSmrg $as_unset lt_cv_path_LD 591504007ebaSmrg fi 591604007ebaSmrg test -z "${LDCXX+set}" || LD=$LDCXX 591704007ebaSmrg CC=${CXX-"c++"} 591804007ebaSmrg CFLAGS=$CXXFLAGS 591904007ebaSmrg compiler=$CC 592004007ebaSmrg _LT_TAGVAR(compiler, $1)=$CC 592104007ebaSmrg _LT_CC_BASENAME([$compiler]) 592204007ebaSmrg 592304007ebaSmrg if test -n "$compiler"; then 592404007ebaSmrg # We don't want -fno-exception when compiling C++ code, so set the 592504007ebaSmrg # no_builtin_flag separately 592604007ebaSmrg if test "$GXX" = yes; then 592704007ebaSmrg _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' 592804007ebaSmrg else 592904007ebaSmrg _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= 593004007ebaSmrg fi 593104007ebaSmrg 593204007ebaSmrg if test "$GXX" = yes; then 593304007ebaSmrg # Set up default GNU C++ configuration 593404007ebaSmrg 593504007ebaSmrg LT_PATH_LD 593604007ebaSmrg 593704007ebaSmrg # Check if GNU C++ uses GNU ld as the underlying linker, since the 593804007ebaSmrg # archiving commands below assume that GNU ld is being used. 593904007ebaSmrg if test "$with_gnu_ld" = yes; then 594004007ebaSmrg _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 594104007ebaSmrg _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' 594204007ebaSmrg 594304007ebaSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 594404007ebaSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 594504007ebaSmrg 594604007ebaSmrg # If archive_cmds runs LD, not CC, wlarc should be empty 594704007ebaSmrg # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 594804007ebaSmrg # investigate it a little bit more. (MM) 594904007ebaSmrg wlarc='${wl}' 595004007ebaSmrg 595104007ebaSmrg # ancient GNU ld didn't support --whole-archive et. al. 595204007ebaSmrg if eval "`$CC -print-prog-name=ld` --help 2>&1" | 595304007ebaSmrg $GREP 'no-whole-archive' > /dev/null; then 595404007ebaSmrg _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 595504007ebaSmrg else 595604007ebaSmrg _LT_TAGVAR(whole_archive_flag_spec, $1)= 595704007ebaSmrg fi 595804007ebaSmrg else 595904007ebaSmrg with_gnu_ld=no 596004007ebaSmrg wlarc= 596104007ebaSmrg 596204007ebaSmrg # A generic and very simple default shared library creation 596304007ebaSmrg # command for GNU C++ for the case where it uses the native 596404007ebaSmrg # linker, instead of GNU ld. If possible, this setting should 596504007ebaSmrg # overridden to take advantage of the native linker features on 596604007ebaSmrg # the platform it is being used on. 596704007ebaSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 596804007ebaSmrg fi 596904007ebaSmrg 597004007ebaSmrg # Commands to make compiler produce verbose output that lists 597104007ebaSmrg # what "hidden" libraries, object files and flags are used when 597204007ebaSmrg # linking a shared library. 597304007ebaSmrg output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 597404007ebaSmrg 597504007ebaSmrg else 597604007ebaSmrg GXX=no 597704007ebaSmrg with_gnu_ld=no 597804007ebaSmrg wlarc= 597904007ebaSmrg fi 598004007ebaSmrg 598104007ebaSmrg # PORTME: fill in a description of your system's C++ link characteristics 598204007ebaSmrg AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) 598304007ebaSmrg _LT_TAGVAR(ld_shlibs, $1)=yes 598404007ebaSmrg case $host_os in 598504007ebaSmrg aix3*) 598604007ebaSmrg # FIXME: insert proper C++ library support 598704007ebaSmrg _LT_TAGVAR(ld_shlibs, $1)=no 598804007ebaSmrg ;; 598904007ebaSmrg aix[[4-9]]*) 599004007ebaSmrg if test "$host_cpu" = ia64; then 599104007ebaSmrg # On IA64, the linker does run time linking by default, so we don't 599204007ebaSmrg # have to do anything special. 599304007ebaSmrg aix_use_runtimelinking=no 599404007ebaSmrg exp_sym_flag='-Bexport' 599504007ebaSmrg no_entry_flag="" 599604007ebaSmrg else 599704007ebaSmrg aix_use_runtimelinking=no 599804007ebaSmrg 599904007ebaSmrg # Test if we are trying to use run time linking or normal 600004007ebaSmrg # AIX style linking. If -brtl is somewhere in LDFLAGS, we 600104007ebaSmrg # need to do runtime linking. 600204007ebaSmrg case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) 600304007ebaSmrg for ld_flag in $LDFLAGS; do 600404007ebaSmrg case $ld_flag in 600504007ebaSmrg *-brtl*) 600604007ebaSmrg aix_use_runtimelinking=yes 600704007ebaSmrg break 600804007ebaSmrg ;; 600904007ebaSmrg esac 601004007ebaSmrg done 601104007ebaSmrg ;; 601204007ebaSmrg esac 601304007ebaSmrg 601404007ebaSmrg exp_sym_flag='-bexport' 601504007ebaSmrg no_entry_flag='-bnoentry' 601604007ebaSmrg fi 601704007ebaSmrg 601804007ebaSmrg # When large executables or shared objects are built, AIX ld can 601904007ebaSmrg # have problems creating the table of contents. If linking a library 602004007ebaSmrg # or program results in "error TOC overflow" add -mminimal-toc to 602104007ebaSmrg # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 602204007ebaSmrg # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 602304007ebaSmrg 602404007ebaSmrg _LT_TAGVAR(archive_cmds, $1)='' 602504007ebaSmrg _LT_TAGVAR(hardcode_direct, $1)=yes 602604007ebaSmrg _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 602704007ebaSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 602804007ebaSmrg _LT_TAGVAR(link_all_deplibs, $1)=yes 602904007ebaSmrg _LT_TAGVAR(file_list_spec, $1)='${wl}-f,' 603004007ebaSmrg 603104007ebaSmrg if test "$GXX" = yes; then 603204007ebaSmrg case $host_os in aix4.[[012]]|aix4.[[012]].*) 603304007ebaSmrg # We only want to do this on AIX 4.2 and lower, the check 603404007ebaSmrg # below for broken collect2 doesn't work under 4.3+ 603504007ebaSmrg collect2name=`${CC} -print-prog-name=collect2` 603604007ebaSmrg if test -f "$collect2name" && 603704007ebaSmrg strings "$collect2name" | $GREP resolve_lib_name >/dev/null 603804007ebaSmrg then 603904007ebaSmrg # We have reworked collect2 604004007ebaSmrg : 604104007ebaSmrg else 604204007ebaSmrg # We have old collect2 604304007ebaSmrg _LT_TAGVAR(hardcode_direct, $1)=unsupported 604404007ebaSmrg # It fails to find uninstalled libraries when the uninstalled 604504007ebaSmrg # path is not listed in the libpath. Setting hardcode_minus_L 604604007ebaSmrg # to unsupported forces relinking 604704007ebaSmrg _LT_TAGVAR(hardcode_minus_L, $1)=yes 604804007ebaSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 604904007ebaSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)= 605004007ebaSmrg fi 605104007ebaSmrg esac 605204007ebaSmrg shared_flag='-shared' 605304007ebaSmrg if test "$aix_use_runtimelinking" = yes; then 605404007ebaSmrg shared_flag="$shared_flag "'${wl}-G' 605504007ebaSmrg fi 605604007ebaSmrg else 605704007ebaSmrg # not using gcc 605804007ebaSmrg if test "$host_cpu" = ia64; then 605904007ebaSmrg # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 606004007ebaSmrg # chokes on -Wl,-G. The following line is correct: 606104007ebaSmrg shared_flag='-G' 606204007ebaSmrg else 606304007ebaSmrg if test "$aix_use_runtimelinking" = yes; then 606404007ebaSmrg shared_flag='${wl}-G' 606504007ebaSmrg else 606604007ebaSmrg shared_flag='${wl}-bM:SRE' 606704007ebaSmrg fi 606804007ebaSmrg fi 606904007ebaSmrg fi 607004007ebaSmrg 607104007ebaSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall' 607204007ebaSmrg # It seems that -bexpall does not export symbols beginning with 607304007ebaSmrg # underscore (_), so it is better to generate a list of symbols to 607404007ebaSmrg # export. 607504007ebaSmrg _LT_TAGVAR(always_export_symbols, $1)=yes 607604007ebaSmrg if test "$aix_use_runtimelinking" = yes; then 607704007ebaSmrg # Warning - without using the other runtime loading flags (-brtl), 607804007ebaSmrg # -berok will link without error, but may produce a broken library. 607904007ebaSmrg _LT_TAGVAR(allow_undefined_flag, $1)='-berok' 608004007ebaSmrg # Determine the default libpath from the value encoded in an empty 608104007ebaSmrg # executable. 608204007ebaSmrg _LT_SYS_MODULE_PATH_AIX([$1]) 608304007ebaSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 608404007ebaSmrg 608504007ebaSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 608604007ebaSmrg else 608704007ebaSmrg if test "$host_cpu" = ia64; then 608804007ebaSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' 608904007ebaSmrg _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" 609004007ebaSmrg _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" 609104007ebaSmrg else 609204007ebaSmrg # Determine the default libpath from the value encoded in an 609304007ebaSmrg # empty executable. 609404007ebaSmrg _LT_SYS_MODULE_PATH_AIX([$1]) 609504007ebaSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 609604007ebaSmrg # Warning - without using the other run time loading flags, 609704007ebaSmrg # -berok will link without error, but may produce a broken library. 609804007ebaSmrg _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' 609904007ebaSmrg _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' 610004007ebaSmrg if test "$with_gnu_ld" = yes; then 610104007ebaSmrg # We only use this code for GNU lds that support --whole-archive. 610204007ebaSmrg _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 610304007ebaSmrg else 610404007ebaSmrg # Exported symbols can be pulled into shared objects from archives 610504007ebaSmrg _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' 610604007ebaSmrg fi 610704007ebaSmrg _LT_TAGVAR(archive_cmds_need_lc, $1)=yes 610804007ebaSmrg # This is similar to how AIX traditionally builds its shared 610904007ebaSmrg # libraries. 611004007ebaSmrg _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 611104007ebaSmrg fi 611204007ebaSmrg fi 611304007ebaSmrg ;; 611404007ebaSmrg 611504007ebaSmrg beos*) 611604007ebaSmrg if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 611704007ebaSmrg _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 611804007ebaSmrg # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 611904007ebaSmrg # support --undefined. This deserves some investigation. FIXME 612004007ebaSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 612104007ebaSmrg else 612204007ebaSmrg _LT_TAGVAR(ld_shlibs, $1)=no 612304007ebaSmrg fi 612404007ebaSmrg ;; 612504007ebaSmrg 612604007ebaSmrg chorus*) 612704007ebaSmrg case $cc_basename in 612804007ebaSmrg *) 612904007ebaSmrg # FIXME: insert proper C++ library support 613004007ebaSmrg _LT_TAGVAR(ld_shlibs, $1)=no 613104007ebaSmrg ;; 613204007ebaSmrg esac 613304007ebaSmrg ;; 613404007ebaSmrg 613504007ebaSmrg cygwin* | mingw* | pw32* | cegcc*) 613604007ebaSmrg case $GXX,$cc_basename in 613704007ebaSmrg ,cl* | no,cl*) 613804007ebaSmrg # Native MSVC 613904007ebaSmrg # hardcode_libdir_flag_spec is actually meaningless, as there is 614004007ebaSmrg # no search path for DLLs. 614104007ebaSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' 614204007ebaSmrg _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 614304007ebaSmrg _LT_TAGVAR(always_export_symbols, $1)=yes 614404007ebaSmrg _LT_TAGVAR(file_list_spec, $1)='@' 614504007ebaSmrg # Tell ltmain to make .lib files, not .a files. 614604007ebaSmrg libext=lib 614704007ebaSmrg # Tell ltmain to make .dll files, not .so files. 614804007ebaSmrg shrext_cmds=".dll" 614904007ebaSmrg # FIXME: Setting linknames here is a bad hack. 615004007ebaSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 615104007ebaSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 615204007ebaSmrg $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 615304007ebaSmrg else 615404007ebaSmrg $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 615504007ebaSmrg fi~ 615604007ebaSmrg $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 615704007ebaSmrg linknames=' 615804007ebaSmrg # The linker will not automatically build a static lib if we build a DLL. 615904007ebaSmrg # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' 616004007ebaSmrg _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 616104007ebaSmrg # Don't use ranlib 616204007ebaSmrg _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib' 616304007ebaSmrg _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~ 616404007ebaSmrg lt_tool_outputfile="@TOOL_OUTPUT@"~ 616504007ebaSmrg case $lt_outputfile in 616604007ebaSmrg *.exe|*.EXE) ;; 616704007ebaSmrg *) 616804007ebaSmrg lt_outputfile="$lt_outputfile.exe" 616904007ebaSmrg lt_tool_outputfile="$lt_tool_outputfile.exe" 617004007ebaSmrg ;; 617104007ebaSmrg esac~ 617204007ebaSmrg func_to_tool_file "$lt_outputfile"~ 617304007ebaSmrg if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 617404007ebaSmrg $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 617504007ebaSmrg $RM "$lt_outputfile.manifest"; 617604007ebaSmrg fi' 617704007ebaSmrg ;; 617804007ebaSmrg *) 617904007ebaSmrg # g++ 618004007ebaSmrg # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, 618104007ebaSmrg # as there is no search path for DLLs. 618204007ebaSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 618304007ebaSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols' 618404007ebaSmrg _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 618504007ebaSmrg _LT_TAGVAR(always_export_symbols, $1)=no 618604007ebaSmrg _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 618704007ebaSmrg 618804007ebaSmrg if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 618904007ebaSmrg _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' 619004007ebaSmrg # If the export-symbols file already is a .def file (1st line 619104007ebaSmrg # is EXPORTS), use it as is; otherwise, prepend... 619204007ebaSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 619304007ebaSmrg cp $export_symbols $output_objdir/$soname.def; 619404007ebaSmrg else 619504007ebaSmrg echo EXPORTS > $output_objdir/$soname.def; 619604007ebaSmrg cat $export_symbols >> $output_objdir/$soname.def; 619704007ebaSmrg fi~ 619804007ebaSmrg $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' 619904007ebaSmrg else 620004007ebaSmrg _LT_TAGVAR(ld_shlibs, $1)=no 620104007ebaSmrg fi 620204007ebaSmrg ;; 620304007ebaSmrg esac 620404007ebaSmrg ;; 620504007ebaSmrg darwin* | rhapsody*) 620604007ebaSmrg _LT_DARWIN_LINKER_FEATURES($1) 620704007ebaSmrg ;; 620804007ebaSmrg 620904007ebaSmrg dgux*) 621004007ebaSmrg case $cc_basename in 621104007ebaSmrg ec++*) 621204007ebaSmrg # FIXME: insert proper C++ library support 621304007ebaSmrg _LT_TAGVAR(ld_shlibs, $1)=no 621404007ebaSmrg ;; 621504007ebaSmrg ghcx*) 621604007ebaSmrg # Green Hills C++ Compiler 621704007ebaSmrg # FIXME: insert proper C++ library support 621804007ebaSmrg _LT_TAGVAR(ld_shlibs, $1)=no 621904007ebaSmrg ;; 622004007ebaSmrg *) 622104007ebaSmrg # FIXME: insert proper C++ library support 622204007ebaSmrg _LT_TAGVAR(ld_shlibs, $1)=no 622304007ebaSmrg ;; 622404007ebaSmrg esac 622504007ebaSmrg ;; 622604007ebaSmrg 622704007ebaSmrg freebsd2.*) 622804007ebaSmrg # C++ shared libraries reported to be fairly broken before 622904007ebaSmrg # switch to ELF 623004007ebaSmrg _LT_TAGVAR(ld_shlibs, $1)=no 623104007ebaSmrg ;; 623204007ebaSmrg 623304007ebaSmrg freebsd-elf*) 623404007ebaSmrg _LT_TAGVAR(archive_cmds_need_lc, $1)=no 623504007ebaSmrg ;; 623604007ebaSmrg 623704007ebaSmrg freebsd* | dragonfly*) 623804007ebaSmrg # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 623904007ebaSmrg # conventions 624004007ebaSmrg _LT_TAGVAR(ld_shlibs, $1)=yes 624104007ebaSmrg ;; 624204007ebaSmrg 624304007ebaSmrg haiku*) 624404007ebaSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 624504007ebaSmrg _LT_TAGVAR(link_all_deplibs, $1)=yes 624604007ebaSmrg ;; 624704007ebaSmrg 624804007ebaSmrg hpux9*) 624904007ebaSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 625004007ebaSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)=: 625104007ebaSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 625204007ebaSmrg _LT_TAGVAR(hardcode_direct, $1)=yes 625304007ebaSmrg _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, 625404007ebaSmrg # but as the default 625504007ebaSmrg # location of the library. 625604007ebaSmrg 625704007ebaSmrg case $cc_basename in 625804007ebaSmrg CC*) 625904007ebaSmrg # FIXME: insert proper C++ library support 626004007ebaSmrg _LT_TAGVAR(ld_shlibs, $1)=no 626104007ebaSmrg ;; 626204007ebaSmrg aCC*) 626304007ebaSmrg _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 626404007ebaSmrg # Commands to make compiler produce verbose output that lists 626504007ebaSmrg # what "hidden" libraries, object files and flags are used when 626604007ebaSmrg # linking a shared library. 626704007ebaSmrg # 626804007ebaSmrg # There doesn't appear to be a way to prevent this compiler from 626904007ebaSmrg # explicitly linking system object files so we need to strip them 627004007ebaSmrg # from the output so that they don't get included in the library 627104007ebaSmrg # dependencies. 627204007ebaSmrg 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"' 627304007ebaSmrg ;; 627404007ebaSmrg *) 627504007ebaSmrg if test "$GXX" = yes; then 627604007ebaSmrg _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 $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 627704007ebaSmrg else 627804007ebaSmrg # FIXME: insert proper C++ library support 627904007ebaSmrg _LT_TAGVAR(ld_shlibs, $1)=no 628004007ebaSmrg fi 628104007ebaSmrg ;; 628204007ebaSmrg esac 628304007ebaSmrg ;; 628404007ebaSmrg 628504007ebaSmrg hpux10*|hpux11*) 628604007ebaSmrg if test $with_gnu_ld = no; then 628704007ebaSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 628804007ebaSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)=: 628904007ebaSmrg 629004007ebaSmrg case $host_cpu in 629104007ebaSmrg hppa*64*|ia64*) 629204007ebaSmrg ;; 629304007ebaSmrg *) 629404007ebaSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 629504007ebaSmrg ;; 629604007ebaSmrg esac 629704007ebaSmrg fi 629804007ebaSmrg case $host_cpu in 629904007ebaSmrg hppa*64*|ia64*) 630004007ebaSmrg _LT_TAGVAR(hardcode_direct, $1)=no 630104007ebaSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 630204007ebaSmrg ;; 630304007ebaSmrg *) 630404007ebaSmrg _LT_TAGVAR(hardcode_direct, $1)=yes 630504007ebaSmrg _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 630604007ebaSmrg _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, 630704007ebaSmrg # but as the default 630804007ebaSmrg # location of the library. 630904007ebaSmrg ;; 631004007ebaSmrg esac 631104007ebaSmrg 631204007ebaSmrg case $cc_basename in 631304007ebaSmrg CC*) 631404007ebaSmrg # FIXME: insert proper C++ library support 631504007ebaSmrg _LT_TAGVAR(ld_shlibs, $1)=no 631604007ebaSmrg ;; 631704007ebaSmrg aCC*) 631804007ebaSmrg case $host_cpu in 631904007ebaSmrg hppa*64*) 632004007ebaSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 632104007ebaSmrg ;; 632204007ebaSmrg ia64*) 632304007ebaSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 632404007ebaSmrg ;; 632504007ebaSmrg *) 632604007ebaSmrg _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' 632704007ebaSmrg ;; 632804007ebaSmrg esac 632904007ebaSmrg # Commands to make compiler produce verbose output that lists 633004007ebaSmrg # what "hidden" libraries, object files and flags are used when 633104007ebaSmrg # linking a shared library. 633204007ebaSmrg # 633304007ebaSmrg # There doesn't appear to be a way to prevent this compiler from 633404007ebaSmrg # explicitly linking system object files so we need to strip them 633504007ebaSmrg # from the output so that they don't get included in the library 633604007ebaSmrg # dependencies. 633704007ebaSmrg 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"' 633804007ebaSmrg ;; 633904007ebaSmrg *) 634004007ebaSmrg if test "$GXX" = yes; then 634104007ebaSmrg if test $with_gnu_ld = no; then 634204007ebaSmrg case $host_cpu in 634304007ebaSmrg hppa*64*) 634404007ebaSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 634504007ebaSmrg ;; 634604007ebaSmrg ia64*) 634704007ebaSmrg _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' 634804007ebaSmrg ;; 634904007ebaSmrg *) 635004007ebaSmrg _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' 635104007ebaSmrg ;; 635204007ebaSmrg esac 635304007ebaSmrg fi 635404007ebaSmrg else 635504007ebaSmrg # FIXME: insert proper C++ library support 635604007ebaSmrg _LT_TAGVAR(ld_shlibs, $1)=no 635704007ebaSmrg fi 635804007ebaSmrg ;; 635904007ebaSmrg esac 636004007ebaSmrg ;; 636104007ebaSmrg 636204007ebaSmrg interix[[3-9]]*) 636304007ebaSmrg _LT_TAGVAR(hardcode_direct, $1)=no 636404007ebaSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 636504007ebaSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 636604007ebaSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 636704007ebaSmrg # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 636804007ebaSmrg # Instead, shared libraries are loaded at an image base (0x10000000 by 636904007ebaSmrg # default) and relocated if they conflict, which is a slow very memory 637004007ebaSmrg # consuming and fragmenting process. To avoid this, we pick a random, 637104007ebaSmrg # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 637204007ebaSmrg # time. Moving up from 0x10000000 also allows more sbrk(2) space. 637304007ebaSmrg _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' 637404007ebaSmrg _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' 637504007ebaSmrg ;; 637604007ebaSmrg irix5* | irix6*) 637704007ebaSmrg case $cc_basename in 637804007ebaSmrg CC*) 637904007ebaSmrg # SGI C++ 638004007ebaSmrg _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' 638104007ebaSmrg 638204007ebaSmrg # Archives containing C++ object files must be created using 638304007ebaSmrg # "CC -ar", where "CC" is the IRIX C++ compiler. This is 638404007ebaSmrg # necessary to make sure instantiated templates are included 638504007ebaSmrg # in the archive. 638604007ebaSmrg _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' 638704007ebaSmrg ;; 638804007ebaSmrg *) 638904007ebaSmrg if test "$GXX" = yes; then 639004007ebaSmrg if test "$with_gnu_ld" = no; then 639104007ebaSmrg _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' 639204007ebaSmrg else 639304007ebaSmrg _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' 639404007ebaSmrg fi 639504007ebaSmrg fi 639604007ebaSmrg _LT_TAGVAR(link_all_deplibs, $1)=yes 639704007ebaSmrg ;; 639804007ebaSmrg esac 639904007ebaSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 640004007ebaSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)=: 640104007ebaSmrg _LT_TAGVAR(inherit_rpath, $1)=yes 640204007ebaSmrg ;; 640304007ebaSmrg 640404007ebaSmrg linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 640504007ebaSmrg case $cc_basename in 640604007ebaSmrg KCC*) 640704007ebaSmrg # Kuck and Associates, Inc. (KAI) C++ Compiler 640804007ebaSmrg 640904007ebaSmrg # KCC will only create a shared library if the output file 641004007ebaSmrg # ends with ".so" (or ".sl" for HP-UX), so rename the library 641104007ebaSmrg # to its proper name (with version) after linking. 641204007ebaSmrg _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' 641304007ebaSmrg _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' 641404007ebaSmrg # Commands to make compiler produce verbose output that lists 641504007ebaSmrg # what "hidden" libraries, object files and flags are used when 641604007ebaSmrg # linking a shared library. 641704007ebaSmrg # 641804007ebaSmrg # There doesn't appear to be a way to prevent this compiler from 641904007ebaSmrg # explicitly linking system object files so we need to strip them 642004007ebaSmrg # from the output so that they don't get included in the library 642104007ebaSmrg # dependencies. 642204007ebaSmrg 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"' 642304007ebaSmrg 642404007ebaSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 642504007ebaSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 642604007ebaSmrg 642704007ebaSmrg # Archives containing C++ object files must be created using 642804007ebaSmrg # "CC -Bstatic", where "CC" is the KAI C++ compiler. 642904007ebaSmrg _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' 643004007ebaSmrg ;; 643104007ebaSmrg icpc* | ecpc* ) 643204007ebaSmrg # Intel C++ 643304007ebaSmrg with_gnu_ld=yes 643404007ebaSmrg # version 8.0 and above of icpc choke on multiply defined symbols 643504007ebaSmrg # if we add $predep_objects and $postdep_objects, however 7.1 and 643604007ebaSmrg # earlier do not add the objects themselves. 643704007ebaSmrg case `$CC -V 2>&1` in 643804007ebaSmrg *"Version 7."*) 643904007ebaSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 644004007ebaSmrg _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' 644104007ebaSmrg ;; 644204007ebaSmrg *) # Version 8.0 or newer 644304007ebaSmrg tmp_idyn= 644404007ebaSmrg case $host_cpu in 644504007ebaSmrg ia64*) tmp_idyn=' -i_dynamic';; 644604007ebaSmrg esac 644704007ebaSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 644804007ebaSmrg _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' 644904007ebaSmrg ;; 645004007ebaSmrg esac 645104007ebaSmrg _LT_TAGVAR(archive_cmds_need_lc, $1)=no 645204007ebaSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 645304007ebaSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 645404007ebaSmrg _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 645504007ebaSmrg ;; 645604007ebaSmrg pgCC* | pgcpp*) 645704007ebaSmrg # Portland Group C++ compiler 645804007ebaSmrg case `$CC -V` in 645904007ebaSmrg *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*) 646004007ebaSmrg _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~ 646104007ebaSmrg rm -rf $tpldir~ 646204007ebaSmrg $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 646304007ebaSmrg compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 646404007ebaSmrg _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~ 646504007ebaSmrg rm -rf $tpldir~ 646604007ebaSmrg $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 646704007ebaSmrg $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 646804007ebaSmrg $RANLIB $oldlib' 646904007ebaSmrg _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~ 647004007ebaSmrg rm -rf $tpldir~ 647104007ebaSmrg $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 647204007ebaSmrg $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 647304007ebaSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~ 647404007ebaSmrg rm -rf $tpldir~ 647504007ebaSmrg $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 647604007ebaSmrg $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' 647704007ebaSmrg ;; 647804007ebaSmrg *) # Version 6 and above use weak symbols 647904007ebaSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 648004007ebaSmrg _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' 648104007ebaSmrg ;; 648204007ebaSmrg esac 648304007ebaSmrg 648404007ebaSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' 648504007ebaSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 648604007ebaSmrg _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' 648704007ebaSmrg ;; 648804007ebaSmrg cxx*) 648904007ebaSmrg # Compaq C++ 649004007ebaSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 649104007ebaSmrg _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' 649204007ebaSmrg 649304007ebaSmrg runpath_var=LD_RUN_PATH 649404007ebaSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 649504007ebaSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)=: 649604007ebaSmrg 649704007ebaSmrg # Commands to make compiler produce verbose output that lists 649804007ebaSmrg # what "hidden" libraries, object files and flags are used when 649904007ebaSmrg # linking a shared library. 650004007ebaSmrg # 650104007ebaSmrg # There doesn't appear to be a way to prevent this compiler from 650204007ebaSmrg # explicitly linking system object files so we need to strip them 650304007ebaSmrg # from the output so that they don't get included in the library 650404007ebaSmrg # dependencies. 650504007ebaSmrg 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' 650604007ebaSmrg ;; 650704007ebaSmrg xl* | mpixl* | bgxl*) 650804007ebaSmrg # IBM XL 8.0 on PPC, with GNU ld 650904007ebaSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 651004007ebaSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 651104007ebaSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 651204007ebaSmrg if test "x$supports_anon_versioning" = xyes; then 651304007ebaSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ 651404007ebaSmrg cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 651504007ebaSmrg echo "local: *; };" >> $output_objdir/$libname.ver~ 651604007ebaSmrg $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 651704007ebaSmrg fi 651804007ebaSmrg ;; 651904007ebaSmrg *) 652004007ebaSmrg case `$CC -V 2>&1 | sed 5q` in 652104007ebaSmrg *Sun\ C*) 652204007ebaSmrg # Sun C++ 5.9 652304007ebaSmrg _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' 652404007ebaSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 652504007ebaSmrg _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' 652604007ebaSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 652704007ebaSmrg _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' 652804007ebaSmrg _LT_TAGVAR(compiler_needs_object, $1)=yes 652904007ebaSmrg 653004007ebaSmrg # Not sure whether something based on 653104007ebaSmrg # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 653204007ebaSmrg # would be better. 653304007ebaSmrg output_verbose_link_cmd='func_echo_all' 653404007ebaSmrg 653504007ebaSmrg # Archives containing C++ object files must be created using 653604007ebaSmrg # "CC -xar", where "CC" is the Sun C++ compiler. This is 653704007ebaSmrg # necessary to make sure instantiated templates are included 653804007ebaSmrg # in the archive. 653904007ebaSmrg _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' 654004007ebaSmrg ;; 654104007ebaSmrg esac 654204007ebaSmrg ;; 654304007ebaSmrg esac 654404007ebaSmrg ;; 654504007ebaSmrg 654604007ebaSmrg lynxos*) 654704007ebaSmrg # FIXME: insert proper C++ library support 654804007ebaSmrg _LT_TAGVAR(ld_shlibs, $1)=no 654904007ebaSmrg ;; 655004007ebaSmrg 655104007ebaSmrg m88k*) 655204007ebaSmrg # FIXME: insert proper C++ library support 655304007ebaSmrg _LT_TAGVAR(ld_shlibs, $1)=no 655404007ebaSmrg ;; 655504007ebaSmrg 655604007ebaSmrg mvs*) 655704007ebaSmrg case $cc_basename in 655804007ebaSmrg cxx*) 655904007ebaSmrg # FIXME: insert proper C++ library support 656004007ebaSmrg _LT_TAGVAR(ld_shlibs, $1)=no 656104007ebaSmrg ;; 656204007ebaSmrg *) 656304007ebaSmrg # FIXME: insert proper C++ library support 656404007ebaSmrg _LT_TAGVAR(ld_shlibs, $1)=no 656504007ebaSmrg ;; 656604007ebaSmrg esac 656704007ebaSmrg ;; 656804007ebaSmrg 656904007ebaSmrg netbsd*) 657004007ebaSmrg if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 657104007ebaSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 657204007ebaSmrg wlarc= 657304007ebaSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 657404007ebaSmrg _LT_TAGVAR(hardcode_direct, $1)=yes 657504007ebaSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 657604007ebaSmrg fi 657704007ebaSmrg # Workaround some broken pre-1.5 toolchains 657804007ebaSmrg output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 657904007ebaSmrg ;; 658004007ebaSmrg 658104007ebaSmrg *nto* | *qnx*) 658204007ebaSmrg _LT_TAGVAR(ld_shlibs, $1)=yes 658304007ebaSmrg ;; 658404007ebaSmrg 658504007ebaSmrg openbsd2*) 658604007ebaSmrg # C++ shared libraries are fairly broken 658704007ebaSmrg _LT_TAGVAR(ld_shlibs, $1)=no 658804007ebaSmrg ;; 658904007ebaSmrg 659004007ebaSmrg openbsd*) 659104007ebaSmrg if test -f /usr/libexec/ld.so; then 659204007ebaSmrg _LT_TAGVAR(hardcode_direct, $1)=yes 659304007ebaSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 659404007ebaSmrg _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 659504007ebaSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 659604007ebaSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 659704007ebaSmrg if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 659804007ebaSmrg _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' 659904007ebaSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 660004007ebaSmrg _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 660104007ebaSmrg fi 660204007ebaSmrg output_verbose_link_cmd=func_echo_all 660304007ebaSmrg else 660404007ebaSmrg _LT_TAGVAR(ld_shlibs, $1)=no 660504007ebaSmrg fi 660604007ebaSmrg ;; 660704007ebaSmrg 660804007ebaSmrg osf3* | osf4* | osf5*) 660904007ebaSmrg case $cc_basename in 661004007ebaSmrg KCC*) 661104007ebaSmrg # Kuck and Associates, Inc. (KAI) C++ Compiler 661204007ebaSmrg 661304007ebaSmrg # KCC will only create a shared library if the output file 661404007ebaSmrg # ends with ".so" (or ".sl" for HP-UX), so rename the library 661504007ebaSmrg # to its proper name (with version) after linking. 661604007ebaSmrg _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' 661704007ebaSmrg 661804007ebaSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 661904007ebaSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)=: 662004007ebaSmrg 662104007ebaSmrg # Archives containing C++ object files must be created using 662204007ebaSmrg # the KAI C++ compiler. 662304007ebaSmrg case $host in 662404007ebaSmrg osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;; 662504007ebaSmrg *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;; 662604007ebaSmrg esac 662704007ebaSmrg ;; 662804007ebaSmrg RCC*) 662904007ebaSmrg # Rational C++ 2.4.1 663004007ebaSmrg # FIXME: insert proper C++ library support 663104007ebaSmrg _LT_TAGVAR(ld_shlibs, $1)=no 663204007ebaSmrg ;; 663304007ebaSmrg cxx*) 663404007ebaSmrg case $host in 663504007ebaSmrg osf3*) 663604007ebaSmrg _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 663704007ebaSmrg _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' 663804007ebaSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 663904007ebaSmrg ;; 664004007ebaSmrg *) 664104007ebaSmrg _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 664204007ebaSmrg _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' 664304007ebaSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 664404007ebaSmrg echo "-hidden">> $lib.exp~ 664504007ebaSmrg $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~ 664604007ebaSmrg $RM $lib.exp' 664704007ebaSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 664804007ebaSmrg ;; 664904007ebaSmrg esac 665004007ebaSmrg 665104007ebaSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)=: 665204007ebaSmrg 665304007ebaSmrg # Commands to make compiler produce verbose output that lists 665404007ebaSmrg # what "hidden" libraries, object files and flags are used when 665504007ebaSmrg # linking a shared library. 665604007ebaSmrg # 665704007ebaSmrg # There doesn't appear to be a way to prevent this compiler from 665804007ebaSmrg # explicitly linking system object files so we need to strip them 665904007ebaSmrg # from the output so that they don't get included in the library 666004007ebaSmrg # dependencies. 666104007ebaSmrg 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"' 666204007ebaSmrg ;; 666304007ebaSmrg *) 666404007ebaSmrg if test "$GXX" = yes && test "$with_gnu_ld" = no; then 666504007ebaSmrg _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 666604007ebaSmrg case $host in 666704007ebaSmrg osf3*) 666804007ebaSmrg _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' 666904007ebaSmrg ;; 667004007ebaSmrg *) 667104007ebaSmrg _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' 667204007ebaSmrg ;; 667304007ebaSmrg esac 667404007ebaSmrg 667504007ebaSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 667604007ebaSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)=: 667704007ebaSmrg 667804007ebaSmrg # Commands to make compiler produce verbose output that lists 667904007ebaSmrg # what "hidden" libraries, object files and flags are used when 668004007ebaSmrg # linking a shared library. 668104007ebaSmrg output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 668204007ebaSmrg 668304007ebaSmrg else 668404007ebaSmrg # FIXME: insert proper C++ library support 668504007ebaSmrg _LT_TAGVAR(ld_shlibs, $1)=no 668604007ebaSmrg fi 668704007ebaSmrg ;; 668804007ebaSmrg esac 668904007ebaSmrg ;; 669004007ebaSmrg 669104007ebaSmrg psos*) 669204007ebaSmrg # FIXME: insert proper C++ library support 669304007ebaSmrg _LT_TAGVAR(ld_shlibs, $1)=no 669404007ebaSmrg ;; 669504007ebaSmrg 669604007ebaSmrg sunos4*) 669704007ebaSmrg case $cc_basename in 669804007ebaSmrg CC*) 669904007ebaSmrg # Sun C++ 4.x 670004007ebaSmrg # FIXME: insert proper C++ library support 670104007ebaSmrg _LT_TAGVAR(ld_shlibs, $1)=no 670204007ebaSmrg ;; 670304007ebaSmrg lcc*) 670404007ebaSmrg # Lucid 670504007ebaSmrg # FIXME: insert proper C++ library support 670604007ebaSmrg _LT_TAGVAR(ld_shlibs, $1)=no 670704007ebaSmrg ;; 670804007ebaSmrg *) 670904007ebaSmrg # FIXME: insert proper C++ library support 671004007ebaSmrg _LT_TAGVAR(ld_shlibs, $1)=no 671104007ebaSmrg ;; 671204007ebaSmrg esac 671304007ebaSmrg ;; 671404007ebaSmrg 671504007ebaSmrg solaris*) 671604007ebaSmrg case $cc_basename in 671704007ebaSmrg CC* | sunCC*) 671804007ebaSmrg # Sun C++ 4.2, 5.x and Centerline C++ 671904007ebaSmrg _LT_TAGVAR(archive_cmds_need_lc,$1)=yes 672004007ebaSmrg _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' 672104007ebaSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 672204007ebaSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 672304007ebaSmrg $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' 672404007ebaSmrg 672504007ebaSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 672604007ebaSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 672704007ebaSmrg case $host_os in 672804007ebaSmrg solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 672904007ebaSmrg *) 673004007ebaSmrg # The compiler driver will combine and reorder linker options, 673104007ebaSmrg # but understands `-z linker_flag'. 673204007ebaSmrg # Supported since Solaris 2.6 (maybe 2.5.1?) 673304007ebaSmrg _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' 673404007ebaSmrg ;; 673504007ebaSmrg esac 673604007ebaSmrg _LT_TAGVAR(link_all_deplibs, $1)=yes 673704007ebaSmrg 673804007ebaSmrg output_verbose_link_cmd='func_echo_all' 673904007ebaSmrg 674004007ebaSmrg # Archives containing C++ object files must be created using 674104007ebaSmrg # "CC -xar", where "CC" is the Sun C++ compiler. This is 674204007ebaSmrg # necessary to make sure instantiated templates are included 674304007ebaSmrg # in the archive. 674404007ebaSmrg _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' 674504007ebaSmrg ;; 674604007ebaSmrg gcx*) 674704007ebaSmrg # Green Hills C++ Compiler 674804007ebaSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 674904007ebaSmrg 675004007ebaSmrg # The C++ compiler must be used to create the archive. 675104007ebaSmrg _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 675204007ebaSmrg ;; 675304007ebaSmrg *) 675404007ebaSmrg # GNU C++ compiler with Solaris linker 675504007ebaSmrg if test "$GXX" = yes && test "$with_gnu_ld" = no; then 675604007ebaSmrg _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs' 675704007ebaSmrg if $CC --version | $GREP -v '^2\.7' > /dev/null; then 675804007ebaSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 675904007ebaSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 676004007ebaSmrg $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 676104007ebaSmrg 676204007ebaSmrg # Commands to make compiler produce verbose output that lists 676304007ebaSmrg # what "hidden" libraries, object files and flags are used when 676404007ebaSmrg # linking a shared library. 676504007ebaSmrg output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 676604007ebaSmrg else 676704007ebaSmrg # g++ 2.7 appears to require `-G' NOT `-shared' on this 676804007ebaSmrg # platform. 676904007ebaSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 677004007ebaSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 677104007ebaSmrg $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 677204007ebaSmrg 677304007ebaSmrg # Commands to make compiler produce verbose output that lists 677404007ebaSmrg # what "hidden" libraries, object files and flags are used when 677504007ebaSmrg # linking a shared library. 677604007ebaSmrg output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 677704007ebaSmrg fi 677804007ebaSmrg 677904007ebaSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' 678004007ebaSmrg case $host_os in 678104007ebaSmrg solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 678204007ebaSmrg *) 678304007ebaSmrg _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 678404007ebaSmrg ;; 678504007ebaSmrg esac 678604007ebaSmrg fi 678704007ebaSmrg ;; 678804007ebaSmrg esac 678904007ebaSmrg ;; 679004007ebaSmrg 679104007ebaSmrg sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) 679204007ebaSmrg _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' 679304007ebaSmrg _LT_TAGVAR(archive_cmds_need_lc, $1)=no 679404007ebaSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 679504007ebaSmrg runpath_var='LD_RUN_PATH' 679604007ebaSmrg 679704007ebaSmrg case $cc_basename in 679804007ebaSmrg CC*) 679904007ebaSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 680004007ebaSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 680104007ebaSmrg ;; 680204007ebaSmrg *) 680304007ebaSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 680404007ebaSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 680504007ebaSmrg ;; 680604007ebaSmrg esac 680704007ebaSmrg ;; 680804007ebaSmrg 680904007ebaSmrg sysv5* | sco3.2v5* | sco5v6*) 681004007ebaSmrg # Note: We can NOT use -z defs as we might desire, because we do not 681104007ebaSmrg # link with -lc, and that would cause any symbols used from libc to 681204007ebaSmrg # always be unresolved, which means just about no library would 681304007ebaSmrg # ever link correctly. If we're not using GNU ld we use -z text 681404007ebaSmrg # though, which does catch some bad symbols but isn't as heavy-handed 681504007ebaSmrg # as -z defs. 681604007ebaSmrg _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' 681704007ebaSmrg _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' 681804007ebaSmrg _LT_TAGVAR(archive_cmds_need_lc, $1)=no 681904007ebaSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 682004007ebaSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir' 682104007ebaSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 682204007ebaSmrg _LT_TAGVAR(link_all_deplibs, $1)=yes 682304007ebaSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' 682404007ebaSmrg runpath_var='LD_RUN_PATH' 682504007ebaSmrg 682604007ebaSmrg case $cc_basename in 682704007ebaSmrg CC*) 682804007ebaSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 682904007ebaSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 683004007ebaSmrg _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~ 683104007ebaSmrg '"$_LT_TAGVAR(old_archive_cmds, $1)" 683204007ebaSmrg _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~ 683304007ebaSmrg '"$_LT_TAGVAR(reload_cmds, $1)" 683404007ebaSmrg ;; 683504007ebaSmrg *) 683604007ebaSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 683704007ebaSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 683804007ebaSmrg ;; 683904007ebaSmrg esac 684004007ebaSmrg ;; 684104007ebaSmrg 684204007ebaSmrg tandem*) 684304007ebaSmrg case $cc_basename in 684404007ebaSmrg NCC*) 684504007ebaSmrg # NonStop-UX NCC 3.20 684604007ebaSmrg # FIXME: insert proper C++ library support 684704007ebaSmrg _LT_TAGVAR(ld_shlibs, $1)=no 684804007ebaSmrg ;; 684904007ebaSmrg *) 685004007ebaSmrg # FIXME: insert proper C++ library support 685104007ebaSmrg _LT_TAGVAR(ld_shlibs, $1)=no 685204007ebaSmrg ;; 685304007ebaSmrg esac 685404007ebaSmrg ;; 685504007ebaSmrg 685604007ebaSmrg vxworks*) 685704007ebaSmrg # FIXME: insert proper C++ library support 685804007ebaSmrg _LT_TAGVAR(ld_shlibs, $1)=no 685904007ebaSmrg ;; 686004007ebaSmrg 686104007ebaSmrg *) 686204007ebaSmrg # FIXME: insert proper C++ library support 686304007ebaSmrg _LT_TAGVAR(ld_shlibs, $1)=no 686404007ebaSmrg ;; 686504007ebaSmrg esac 686604007ebaSmrg 686704007ebaSmrg AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) 686804007ebaSmrg test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no 686904007ebaSmrg 687004007ebaSmrg _LT_TAGVAR(GCC, $1)="$GXX" 687104007ebaSmrg _LT_TAGVAR(LD, $1)="$LD" 687204007ebaSmrg 687304007ebaSmrg ## CAVEAT EMPTOR: 687404007ebaSmrg ## There is no encapsulation within the following macros, do not change 687504007ebaSmrg ## the running order or otherwise move them around unless you know exactly 687604007ebaSmrg ## what you are doing... 687704007ebaSmrg _LT_SYS_HIDDEN_LIBDEPS($1) 687804007ebaSmrg _LT_COMPILER_PIC($1) 687904007ebaSmrg _LT_COMPILER_C_O($1) 688004007ebaSmrg _LT_COMPILER_FILE_LOCKS($1) 688104007ebaSmrg _LT_LINKER_SHLIBS($1) 688204007ebaSmrg _LT_SYS_DYNAMIC_LINKER($1) 688304007ebaSmrg _LT_LINKER_HARDCODE_LIBPATH($1) 688404007ebaSmrg 688504007ebaSmrg _LT_CONFIG($1) 688604007ebaSmrg fi # test -n "$compiler" 688704007ebaSmrg 688804007ebaSmrg CC=$lt_save_CC 688904007ebaSmrg CFLAGS=$lt_save_CFLAGS 689004007ebaSmrg LDCXX=$LD 689104007ebaSmrg LD=$lt_save_LD 689204007ebaSmrg GCC=$lt_save_GCC 689304007ebaSmrg with_gnu_ld=$lt_save_with_gnu_ld 689404007ebaSmrg lt_cv_path_LDCXX=$lt_cv_path_LD 689504007ebaSmrg lt_cv_path_LD=$lt_save_path_LD 689604007ebaSmrg lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 689704007ebaSmrg lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 689804007ebaSmrgfi # test "$_lt_caught_CXX_error" != yes 689904007ebaSmrg 690004007ebaSmrgAC_LANG_POP 690104007ebaSmrg])# _LT_LANG_CXX_CONFIG 690204007ebaSmrg 690304007ebaSmrg 690404007ebaSmrg# _LT_FUNC_STRIPNAME_CNF 690504007ebaSmrg# ---------------------- 690604007ebaSmrg# func_stripname_cnf prefix suffix name 690704007ebaSmrg# strip PREFIX and SUFFIX off of NAME. 690804007ebaSmrg# PREFIX and SUFFIX must not contain globbing or regex special 690904007ebaSmrg# characters, hashes, percent signs, but SUFFIX may contain a leading 691004007ebaSmrg# dot (in which case that matches only a dot). 691104007ebaSmrg# 691204007ebaSmrg# This function is identical to the (non-XSI) version of func_stripname, 691304007ebaSmrg# except this one can be used by m4 code that may be executed by configure, 691404007ebaSmrg# rather than the libtool script. 691504007ebaSmrgm4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl 691604007ebaSmrgAC_REQUIRE([_LT_DECL_SED]) 691704007ebaSmrgAC_REQUIRE([_LT_PROG_ECHO_BACKSLASH]) 691804007ebaSmrgfunc_stripname_cnf () 691904007ebaSmrg{ 692004007ebaSmrg case ${2} in 692104007ebaSmrg .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; 692204007ebaSmrg *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; 692304007ebaSmrg esac 692404007ebaSmrg} # func_stripname_cnf 692504007ebaSmrg])# _LT_FUNC_STRIPNAME_CNF 692604007ebaSmrg 692704007ebaSmrg# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME]) 692804007ebaSmrg# --------------------------------- 692904007ebaSmrg# Figure out "hidden" library dependencies from verbose 693004007ebaSmrg# compiler output when linking a shared library. 693104007ebaSmrg# Parse the compiler output and extract the necessary 693204007ebaSmrg# objects, libraries and library flags. 693304007ebaSmrgm4_defun([_LT_SYS_HIDDEN_LIBDEPS], 693404007ebaSmrg[m4_require([_LT_FILEUTILS_DEFAULTS])dnl 693504007ebaSmrgAC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl 693604007ebaSmrg# Dependencies to place before and after the object being linked: 693704007ebaSmrg_LT_TAGVAR(predep_objects, $1)= 693804007ebaSmrg_LT_TAGVAR(postdep_objects, $1)= 693904007ebaSmrg_LT_TAGVAR(predeps, $1)= 694004007ebaSmrg_LT_TAGVAR(postdeps, $1)= 694104007ebaSmrg_LT_TAGVAR(compiler_lib_search_path, $1)= 694204007ebaSmrg 694304007ebaSmrgdnl we can't use the lt_simple_compile_test_code here, 694404007ebaSmrgdnl because it contains code intended for an executable, 694504007ebaSmrgdnl not a library. It's possible we should let each 694604007ebaSmrgdnl tag define a new lt_????_link_test_code variable, 694704007ebaSmrgdnl but it's only used here... 694804007ebaSmrgm4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF 694904007ebaSmrgint a; 695004007ebaSmrgvoid foo (void) { a = 0; } 695104007ebaSmrg_LT_EOF 695204007ebaSmrg], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF 695304007ebaSmrgclass Foo 695404007ebaSmrg{ 695504007ebaSmrgpublic: 695604007ebaSmrg Foo (void) { a = 0; } 695704007ebaSmrgprivate: 695804007ebaSmrg int a; 695904007ebaSmrg}; 696004007ebaSmrg_LT_EOF 696104007ebaSmrg], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF 696204007ebaSmrg subroutine foo 696304007ebaSmrg implicit none 696404007ebaSmrg integer*4 a 696504007ebaSmrg a=0 696604007ebaSmrg return 696704007ebaSmrg end 696804007ebaSmrg_LT_EOF 696904007ebaSmrg], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF 697004007ebaSmrg subroutine foo 697104007ebaSmrg implicit none 697204007ebaSmrg integer a 697304007ebaSmrg a=0 697404007ebaSmrg return 697504007ebaSmrg end 697604007ebaSmrg_LT_EOF 697704007ebaSmrg], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF 697804007ebaSmrgpublic class foo { 697904007ebaSmrg private int a; 698004007ebaSmrg public void bar (void) { 698104007ebaSmrg a = 0; 698204007ebaSmrg } 698304007ebaSmrg}; 698404007ebaSmrg_LT_EOF 698504007ebaSmrg], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF 698604007ebaSmrgpackage foo 698704007ebaSmrgfunc foo() { 698804007ebaSmrg} 698904007ebaSmrg_LT_EOF 699004007ebaSmrg]) 699104007ebaSmrg 699204007ebaSmrg_lt_libdeps_save_CFLAGS=$CFLAGS 699304007ebaSmrgcase "$CC $CFLAGS " in #( 699404007ebaSmrg*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 699504007ebaSmrg*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 699604007ebaSmrg*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; 699704007ebaSmrgesac 699804007ebaSmrg 699904007ebaSmrgdnl Parse the compiler output and extract the necessary 700004007ebaSmrgdnl objects, libraries and library flags. 700104007ebaSmrgif AC_TRY_EVAL(ac_compile); then 700204007ebaSmrg # Parse the compiler output and extract the necessary 700304007ebaSmrg # objects, libraries and library flags. 700404007ebaSmrg 700504007ebaSmrg # Sentinel used to keep track of whether or not we are before 700604007ebaSmrg # the conftest object file. 700704007ebaSmrg pre_test_object_deps_done=no 700804007ebaSmrg 700904007ebaSmrg for p in `eval "$output_verbose_link_cmd"`; do 701004007ebaSmrg case ${prev}${p} in 701104007ebaSmrg 701204007ebaSmrg -L* | -R* | -l*) 701304007ebaSmrg # Some compilers place space between "-{L,R}" and the path. 701404007ebaSmrg # Remove the space. 701504007ebaSmrg if test $p = "-L" || 701604007ebaSmrg test $p = "-R"; then 701704007ebaSmrg prev=$p 701804007ebaSmrg continue 701904007ebaSmrg fi 702004007ebaSmrg 702104007ebaSmrg # Expand the sysroot to ease extracting the directories later. 702204007ebaSmrg if test -z "$prev"; then 702304007ebaSmrg case $p in 702404007ebaSmrg -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 702504007ebaSmrg -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 702604007ebaSmrg -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 702704007ebaSmrg esac 702804007ebaSmrg fi 702904007ebaSmrg case $p in 703004007ebaSmrg =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 703104007ebaSmrg esac 703204007ebaSmrg if test "$pre_test_object_deps_done" = no; then 703304007ebaSmrg case ${prev} in 703404007ebaSmrg -L | -R) 703504007ebaSmrg # Internal compiler library paths should come after those 703604007ebaSmrg # provided the user. The postdeps already come after the 703704007ebaSmrg # user supplied libs so there is no need to process them. 703804007ebaSmrg if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then 703904007ebaSmrg _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}" 704004007ebaSmrg else 704104007ebaSmrg _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}" 704204007ebaSmrg fi 704304007ebaSmrg ;; 704404007ebaSmrg # The "-l" case would never come before the object being 704504007ebaSmrg # linked, so don't bother handling this case. 704604007ebaSmrg esac 704704007ebaSmrg else 704804007ebaSmrg if test -z "$_LT_TAGVAR(postdeps, $1)"; then 704904007ebaSmrg _LT_TAGVAR(postdeps, $1)="${prev}${p}" 705004007ebaSmrg else 705104007ebaSmrg _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}" 705204007ebaSmrg fi 705304007ebaSmrg fi 705404007ebaSmrg prev= 705504007ebaSmrg ;; 705604007ebaSmrg 705704007ebaSmrg *.lto.$objext) ;; # Ignore GCC LTO objects 705804007ebaSmrg *.$objext) 705904007ebaSmrg # This assumes that the test object file only shows up 706004007ebaSmrg # once in the compiler output. 706104007ebaSmrg if test "$p" = "conftest.$objext"; then 706204007ebaSmrg pre_test_object_deps_done=yes 706304007ebaSmrg continue 706404007ebaSmrg fi 706504007ebaSmrg 706604007ebaSmrg if test "$pre_test_object_deps_done" = no; then 706704007ebaSmrg if test -z "$_LT_TAGVAR(predep_objects, $1)"; then 706804007ebaSmrg _LT_TAGVAR(predep_objects, $1)="$p" 706904007ebaSmrg else 707004007ebaSmrg _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p" 707104007ebaSmrg fi 707204007ebaSmrg else 707304007ebaSmrg if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then 707404007ebaSmrg _LT_TAGVAR(postdep_objects, $1)="$p" 707504007ebaSmrg else 707604007ebaSmrg _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p" 707704007ebaSmrg fi 707804007ebaSmrg fi 707904007ebaSmrg ;; 708004007ebaSmrg 708104007ebaSmrg *) ;; # Ignore the rest. 708204007ebaSmrg 708304007ebaSmrg esac 708404007ebaSmrg done 708504007ebaSmrg 708604007ebaSmrg # Clean up. 708704007ebaSmrg rm -f a.out a.exe 708804007ebaSmrgelse 708904007ebaSmrg echo "libtool.m4: error: problem compiling $1 test program" 709004007ebaSmrgfi 709104007ebaSmrg 709204007ebaSmrg$RM -f confest.$objext 709304007ebaSmrgCFLAGS=$_lt_libdeps_save_CFLAGS 709404007ebaSmrg 709504007ebaSmrg# PORTME: override above test on systems where it is broken 709604007ebaSmrgm4_if([$1], [CXX], 709704007ebaSmrg[case $host_os in 709804007ebaSmrginterix[[3-9]]*) 709904007ebaSmrg # Interix 3.5 installs completely hosed .la files for C++, so rather than 710004007ebaSmrg # hack all around it, let's just trust "g++" to DTRT. 710104007ebaSmrg _LT_TAGVAR(predep_objects,$1)= 710204007ebaSmrg _LT_TAGVAR(postdep_objects,$1)= 710304007ebaSmrg _LT_TAGVAR(postdeps,$1)= 710404007ebaSmrg ;; 710504007ebaSmrg 710604007ebaSmrglinux*) 710704007ebaSmrg case `$CC -V 2>&1 | sed 5q` in 710804007ebaSmrg *Sun\ C*) 710904007ebaSmrg # Sun C++ 5.9 711004007ebaSmrg 711104007ebaSmrg # The more standards-conforming stlport4 library is 711204007ebaSmrg # incompatible with the Cstd library. Avoid specifying 711304007ebaSmrg # it if it's in CXXFLAGS. Ignore libCrun as 711404007ebaSmrg # -library=stlport4 depends on it. 711504007ebaSmrg case " $CXX $CXXFLAGS " in 711604007ebaSmrg *" -library=stlport4 "*) 711704007ebaSmrg solaris_use_stlport4=yes 711804007ebaSmrg ;; 711904007ebaSmrg esac 712004007ebaSmrg 712104007ebaSmrg if test "$solaris_use_stlport4" != yes; then 712204007ebaSmrg _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' 712304007ebaSmrg fi 712404007ebaSmrg ;; 712504007ebaSmrg esac 712604007ebaSmrg ;; 712704007ebaSmrg 712804007ebaSmrgsolaris*) 712904007ebaSmrg case $cc_basename in 713004007ebaSmrg CC* | sunCC*) 713104007ebaSmrg # The more standards-conforming stlport4 library is 713204007ebaSmrg # incompatible with the Cstd library. Avoid specifying 713304007ebaSmrg # it if it's in CXXFLAGS. Ignore libCrun as 713404007ebaSmrg # -library=stlport4 depends on it. 713504007ebaSmrg case " $CXX $CXXFLAGS " in 713604007ebaSmrg *" -library=stlport4 "*) 713704007ebaSmrg solaris_use_stlport4=yes 713804007ebaSmrg ;; 713904007ebaSmrg esac 714004007ebaSmrg 714104007ebaSmrg # Adding this requires a known-good setup of shared libraries for 714204007ebaSmrg # Sun compiler versions before 5.6, else PIC objects from an old 714304007ebaSmrg # archive will be linked into the output, leading to subtle bugs. 714404007ebaSmrg if test "$solaris_use_stlport4" != yes; then 714504007ebaSmrg _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' 714604007ebaSmrg fi 714704007ebaSmrg ;; 714804007ebaSmrg esac 714904007ebaSmrg ;; 715004007ebaSmrgesac 715104007ebaSmrg]) 715204007ebaSmrg 715304007ebaSmrgcase " $_LT_TAGVAR(postdeps, $1) " in 715404007ebaSmrg*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;; 715504007ebaSmrgesac 715604007ebaSmrg _LT_TAGVAR(compiler_lib_search_dirs, $1)= 715704007ebaSmrgif test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then 715804007ebaSmrg _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 715904007ebaSmrgfi 716004007ebaSmrg_LT_TAGDECL([], [compiler_lib_search_dirs], [1], 716104007ebaSmrg [The directories searched by this compiler when creating a shared library]) 716204007ebaSmrg_LT_TAGDECL([], [predep_objects], [1], 716304007ebaSmrg [Dependencies to place before and after the objects being linked to 716404007ebaSmrg create a shared library]) 716504007ebaSmrg_LT_TAGDECL([], [postdep_objects], [1]) 716604007ebaSmrg_LT_TAGDECL([], [predeps], [1]) 716704007ebaSmrg_LT_TAGDECL([], [postdeps], [1]) 716804007ebaSmrg_LT_TAGDECL([], [compiler_lib_search_path], [1], 716904007ebaSmrg [The library search path used internally by the compiler when linking 717004007ebaSmrg a shared library]) 717104007ebaSmrg])# _LT_SYS_HIDDEN_LIBDEPS 717204007ebaSmrg 717304007ebaSmrg 717404007ebaSmrg# _LT_LANG_F77_CONFIG([TAG]) 717504007ebaSmrg# -------------------------- 717604007ebaSmrg# Ensure that the configuration variables for a Fortran 77 compiler are 717704007ebaSmrg# suitably defined. These variables are subsequently used by _LT_CONFIG 717804007ebaSmrg# to write the compiler configuration to `libtool'. 717904007ebaSmrgm4_defun([_LT_LANG_F77_CONFIG], 718004007ebaSmrg[AC_LANG_PUSH(Fortran 77) 718104007ebaSmrgif test -z "$F77" || test "X$F77" = "Xno"; then 718204007ebaSmrg _lt_disable_F77=yes 718304007ebaSmrgfi 718404007ebaSmrg 718504007ebaSmrg_LT_TAGVAR(archive_cmds_need_lc, $1)=no 718604007ebaSmrg_LT_TAGVAR(allow_undefined_flag, $1)= 718704007ebaSmrg_LT_TAGVAR(always_export_symbols, $1)=no 718804007ebaSmrg_LT_TAGVAR(archive_expsym_cmds, $1)= 718904007ebaSmrg_LT_TAGVAR(export_dynamic_flag_spec, $1)= 719004007ebaSmrg_LT_TAGVAR(hardcode_direct, $1)=no 719104007ebaSmrg_LT_TAGVAR(hardcode_direct_absolute, $1)=no 719204007ebaSmrg_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 719304007ebaSmrg_LT_TAGVAR(hardcode_libdir_separator, $1)= 719404007ebaSmrg_LT_TAGVAR(hardcode_minus_L, $1)=no 719504007ebaSmrg_LT_TAGVAR(hardcode_automatic, $1)=no 719604007ebaSmrg_LT_TAGVAR(inherit_rpath, $1)=no 719704007ebaSmrg_LT_TAGVAR(module_cmds, $1)= 719804007ebaSmrg_LT_TAGVAR(module_expsym_cmds, $1)= 719904007ebaSmrg_LT_TAGVAR(link_all_deplibs, $1)=unknown 720004007ebaSmrg_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 720104007ebaSmrg_LT_TAGVAR(reload_flag, $1)=$reload_flag 720204007ebaSmrg_LT_TAGVAR(reload_cmds, $1)=$reload_cmds 720304007ebaSmrg_LT_TAGVAR(no_undefined_flag, $1)= 720404007ebaSmrg_LT_TAGVAR(whole_archive_flag_spec, $1)= 720504007ebaSmrg_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no 720604007ebaSmrg 720704007ebaSmrg# Source file extension for f77 test sources. 720804007ebaSmrgac_ext=f 720904007ebaSmrg 721004007ebaSmrg# Object file extension for compiled f77 test sources. 721104007ebaSmrgobjext=o 721204007ebaSmrg_LT_TAGVAR(objext, $1)=$objext 721304007ebaSmrg 721404007ebaSmrg# No sense in running all these tests if we already determined that 721504007ebaSmrg# the F77 compiler isn't working. Some variables (like enable_shared) 721604007ebaSmrg# are currently assumed to apply to all compilers on this platform, 721704007ebaSmrg# and will be corrupted by setting them based on a non-working compiler. 721804007ebaSmrgif test "$_lt_disable_F77" != yes; then 721904007ebaSmrg # Code to be used in simple compile tests 722004007ebaSmrg lt_simple_compile_test_code="\ 722104007ebaSmrg subroutine t 722204007ebaSmrg return 722304007ebaSmrg end 722404007ebaSmrg" 722504007ebaSmrg 722604007ebaSmrg # Code to be used in simple link tests 722704007ebaSmrg lt_simple_link_test_code="\ 722804007ebaSmrg program t 722904007ebaSmrg end 723004007ebaSmrg" 723104007ebaSmrg 723204007ebaSmrg # ltmain only uses $CC for tagged configurations so make sure $CC is set. 723304007ebaSmrg _LT_TAG_COMPILER 723404007ebaSmrg 723504007ebaSmrg # save warnings/boilerplate of simple test code 723604007ebaSmrg _LT_COMPILER_BOILERPLATE 723704007ebaSmrg _LT_LINKER_BOILERPLATE 723804007ebaSmrg 723904007ebaSmrg # Allow CC to be a program name with arguments. 724004007ebaSmrg lt_save_CC="$CC" 724104007ebaSmrg lt_save_GCC=$GCC 724204007ebaSmrg lt_save_CFLAGS=$CFLAGS 724304007ebaSmrg CC=${F77-"f77"} 724404007ebaSmrg CFLAGS=$FFLAGS 724504007ebaSmrg compiler=$CC 724604007ebaSmrg _LT_TAGVAR(compiler, $1)=$CC 724704007ebaSmrg _LT_CC_BASENAME([$compiler]) 724804007ebaSmrg GCC=$G77 724904007ebaSmrg if test -n "$compiler"; then 725004007ebaSmrg AC_MSG_CHECKING([if libtool supports shared libraries]) 725104007ebaSmrg AC_MSG_RESULT([$can_build_shared]) 725204007ebaSmrg 725304007ebaSmrg AC_MSG_CHECKING([whether to build shared libraries]) 725404007ebaSmrg test "$can_build_shared" = "no" && enable_shared=no 725504007ebaSmrg 725604007ebaSmrg # On AIX, shared libraries and static libraries use the same namespace, and 725704007ebaSmrg # are all built from PIC. 725804007ebaSmrg case $host_os in 725904007ebaSmrg aix3*) 726004007ebaSmrg test "$enable_shared" = yes && enable_static=no 726104007ebaSmrg if test -n "$RANLIB"; then 726204007ebaSmrg archive_cmds="$archive_cmds~\$RANLIB \$lib" 726304007ebaSmrg postinstall_cmds='$RANLIB $lib' 726404007ebaSmrg fi 726504007ebaSmrg ;; 726604007ebaSmrg aix[[4-9]]*) 726704007ebaSmrg if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 726804007ebaSmrg test "$enable_shared" = yes && enable_static=no 726904007ebaSmrg fi 727004007ebaSmrg ;; 727104007ebaSmrg esac 727204007ebaSmrg AC_MSG_RESULT([$enable_shared]) 727304007ebaSmrg 727404007ebaSmrg AC_MSG_CHECKING([whether to build static libraries]) 727504007ebaSmrg # Make sure either enable_shared or enable_static is yes. 727604007ebaSmrg test "$enable_shared" = yes || enable_static=yes 727704007ebaSmrg AC_MSG_RESULT([$enable_static]) 727804007ebaSmrg 727904007ebaSmrg _LT_TAGVAR(GCC, $1)="$G77" 728004007ebaSmrg _LT_TAGVAR(LD, $1)="$LD" 728104007ebaSmrg 728204007ebaSmrg ## CAVEAT EMPTOR: 728304007ebaSmrg ## There is no encapsulation within the following macros, do not change 728404007ebaSmrg ## the running order or otherwise move them around unless you know exactly 728504007ebaSmrg ## what you are doing... 728604007ebaSmrg _LT_COMPILER_PIC($1) 728704007ebaSmrg _LT_COMPILER_C_O($1) 728804007ebaSmrg _LT_COMPILER_FILE_LOCKS($1) 728904007ebaSmrg _LT_LINKER_SHLIBS($1) 729004007ebaSmrg _LT_SYS_DYNAMIC_LINKER($1) 729104007ebaSmrg _LT_LINKER_HARDCODE_LIBPATH($1) 729204007ebaSmrg 729304007ebaSmrg _LT_CONFIG($1) 729404007ebaSmrg fi # test -n "$compiler" 729504007ebaSmrg 729604007ebaSmrg GCC=$lt_save_GCC 729704007ebaSmrg CC="$lt_save_CC" 729804007ebaSmrg CFLAGS="$lt_save_CFLAGS" 729904007ebaSmrgfi # test "$_lt_disable_F77" != yes 730004007ebaSmrg 730104007ebaSmrgAC_LANG_POP 730204007ebaSmrg])# _LT_LANG_F77_CONFIG 730304007ebaSmrg 730404007ebaSmrg 730504007ebaSmrg# _LT_LANG_FC_CONFIG([TAG]) 730604007ebaSmrg# ------------------------- 730704007ebaSmrg# Ensure that the configuration variables for a Fortran compiler are 730804007ebaSmrg# suitably defined. These variables are subsequently used by _LT_CONFIG 730904007ebaSmrg# to write the compiler configuration to `libtool'. 731004007ebaSmrgm4_defun([_LT_LANG_FC_CONFIG], 731104007ebaSmrg[AC_LANG_PUSH(Fortran) 731204007ebaSmrg 731304007ebaSmrgif test -z "$FC" || test "X$FC" = "Xno"; then 731404007ebaSmrg _lt_disable_FC=yes 731504007ebaSmrgfi 731604007ebaSmrg 731704007ebaSmrg_LT_TAGVAR(archive_cmds_need_lc, $1)=no 731804007ebaSmrg_LT_TAGVAR(allow_undefined_flag, $1)= 731904007ebaSmrg_LT_TAGVAR(always_export_symbols, $1)=no 732004007ebaSmrg_LT_TAGVAR(archive_expsym_cmds, $1)= 732104007ebaSmrg_LT_TAGVAR(export_dynamic_flag_spec, $1)= 732204007ebaSmrg_LT_TAGVAR(hardcode_direct, $1)=no 732304007ebaSmrg_LT_TAGVAR(hardcode_direct_absolute, $1)=no 732404007ebaSmrg_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 732504007ebaSmrg_LT_TAGVAR(hardcode_libdir_separator, $1)= 732604007ebaSmrg_LT_TAGVAR(hardcode_minus_L, $1)=no 732704007ebaSmrg_LT_TAGVAR(hardcode_automatic, $1)=no 732804007ebaSmrg_LT_TAGVAR(inherit_rpath, $1)=no 732904007ebaSmrg_LT_TAGVAR(module_cmds, $1)= 733004007ebaSmrg_LT_TAGVAR(module_expsym_cmds, $1)= 733104007ebaSmrg_LT_TAGVAR(link_all_deplibs, $1)=unknown 733204007ebaSmrg_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 733304007ebaSmrg_LT_TAGVAR(reload_flag, $1)=$reload_flag 733404007ebaSmrg_LT_TAGVAR(reload_cmds, $1)=$reload_cmds 733504007ebaSmrg_LT_TAGVAR(no_undefined_flag, $1)= 733604007ebaSmrg_LT_TAGVAR(whole_archive_flag_spec, $1)= 733704007ebaSmrg_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no 733804007ebaSmrg 733904007ebaSmrg# Source file extension for fc test sources. 734004007ebaSmrgac_ext=${ac_fc_srcext-f} 734104007ebaSmrg 734204007ebaSmrg# Object file extension for compiled fc test sources. 734304007ebaSmrgobjext=o 734404007ebaSmrg_LT_TAGVAR(objext, $1)=$objext 734504007ebaSmrg 734604007ebaSmrg# No sense in running all these tests if we already determined that 734704007ebaSmrg# the FC compiler isn't working. Some variables (like enable_shared) 734804007ebaSmrg# are currently assumed to apply to all compilers on this platform, 734904007ebaSmrg# and will be corrupted by setting them based on a non-working compiler. 735004007ebaSmrgif test "$_lt_disable_FC" != yes; then 735104007ebaSmrg # Code to be used in simple compile tests 735204007ebaSmrg lt_simple_compile_test_code="\ 735304007ebaSmrg subroutine t 735404007ebaSmrg return 735504007ebaSmrg end 735604007ebaSmrg" 735704007ebaSmrg 735804007ebaSmrg # Code to be used in simple link tests 735904007ebaSmrg lt_simple_link_test_code="\ 736004007ebaSmrg program t 736104007ebaSmrg end 736204007ebaSmrg" 736304007ebaSmrg 736404007ebaSmrg # ltmain only uses $CC for tagged configurations so make sure $CC is set. 736504007ebaSmrg _LT_TAG_COMPILER 736604007ebaSmrg 736704007ebaSmrg # save warnings/boilerplate of simple test code 736804007ebaSmrg _LT_COMPILER_BOILERPLATE 736904007ebaSmrg _LT_LINKER_BOILERPLATE 737004007ebaSmrg 737104007ebaSmrg # Allow CC to be a program name with arguments. 737204007ebaSmrg lt_save_CC="$CC" 737304007ebaSmrg lt_save_GCC=$GCC 737404007ebaSmrg lt_save_CFLAGS=$CFLAGS 737504007ebaSmrg CC=${FC-"f95"} 737604007ebaSmrg CFLAGS=$FCFLAGS 737704007ebaSmrg compiler=$CC 737804007ebaSmrg GCC=$ac_cv_fc_compiler_gnu 737904007ebaSmrg 738004007ebaSmrg _LT_TAGVAR(compiler, $1)=$CC 738104007ebaSmrg _LT_CC_BASENAME([$compiler]) 738204007ebaSmrg 738304007ebaSmrg if test -n "$compiler"; then 738404007ebaSmrg AC_MSG_CHECKING([if libtool supports shared libraries]) 738504007ebaSmrg AC_MSG_RESULT([$can_build_shared]) 738604007ebaSmrg 738704007ebaSmrg AC_MSG_CHECKING([whether to build shared libraries]) 738804007ebaSmrg test "$can_build_shared" = "no" && enable_shared=no 738904007ebaSmrg 739004007ebaSmrg # On AIX, shared libraries and static libraries use the same namespace, and 739104007ebaSmrg # are all built from PIC. 739204007ebaSmrg case $host_os in 739304007ebaSmrg aix3*) 739404007ebaSmrg test "$enable_shared" = yes && enable_static=no 739504007ebaSmrg if test -n "$RANLIB"; then 739604007ebaSmrg archive_cmds="$archive_cmds~\$RANLIB \$lib" 739704007ebaSmrg postinstall_cmds='$RANLIB $lib' 739804007ebaSmrg fi 739904007ebaSmrg ;; 740004007ebaSmrg aix[[4-9]]*) 740104007ebaSmrg if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 740204007ebaSmrg test "$enable_shared" = yes && enable_static=no 740304007ebaSmrg fi 740404007ebaSmrg ;; 740504007ebaSmrg esac 740604007ebaSmrg AC_MSG_RESULT([$enable_shared]) 740704007ebaSmrg 740804007ebaSmrg AC_MSG_CHECKING([whether to build static libraries]) 740904007ebaSmrg # Make sure either enable_shared or enable_static is yes. 741004007ebaSmrg test "$enable_shared" = yes || enable_static=yes 741104007ebaSmrg AC_MSG_RESULT([$enable_static]) 741204007ebaSmrg 741304007ebaSmrg _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu" 741404007ebaSmrg _LT_TAGVAR(LD, $1)="$LD" 741504007ebaSmrg 741604007ebaSmrg ## CAVEAT EMPTOR: 741704007ebaSmrg ## There is no encapsulation within the following macros, do not change 741804007ebaSmrg ## the running order or otherwise move them around unless you know exactly 741904007ebaSmrg ## what you are doing... 742004007ebaSmrg _LT_SYS_HIDDEN_LIBDEPS($1) 742104007ebaSmrg _LT_COMPILER_PIC($1) 742204007ebaSmrg _LT_COMPILER_C_O($1) 742304007ebaSmrg _LT_COMPILER_FILE_LOCKS($1) 742404007ebaSmrg _LT_LINKER_SHLIBS($1) 742504007ebaSmrg _LT_SYS_DYNAMIC_LINKER($1) 742604007ebaSmrg _LT_LINKER_HARDCODE_LIBPATH($1) 742704007ebaSmrg 742804007ebaSmrg _LT_CONFIG($1) 742904007ebaSmrg fi # test -n "$compiler" 743004007ebaSmrg 743104007ebaSmrg GCC=$lt_save_GCC 743204007ebaSmrg CC=$lt_save_CC 743304007ebaSmrg CFLAGS=$lt_save_CFLAGS 743404007ebaSmrgfi # test "$_lt_disable_FC" != yes 743504007ebaSmrg 743604007ebaSmrgAC_LANG_POP 743704007ebaSmrg])# _LT_LANG_FC_CONFIG 743804007ebaSmrg 743904007ebaSmrg 744004007ebaSmrg# _LT_LANG_GCJ_CONFIG([TAG]) 744104007ebaSmrg# -------------------------- 744204007ebaSmrg# Ensure that the configuration variables for the GNU Java Compiler compiler 744304007ebaSmrg# are suitably defined. These variables are subsequently used by _LT_CONFIG 744404007ebaSmrg# to write the compiler configuration to `libtool'. 744504007ebaSmrgm4_defun([_LT_LANG_GCJ_CONFIG], 744604007ebaSmrg[AC_REQUIRE([LT_PROG_GCJ])dnl 744704007ebaSmrgAC_LANG_SAVE 744804007ebaSmrg 744904007ebaSmrg# Source file extension for Java test sources. 745004007ebaSmrgac_ext=java 745104007ebaSmrg 745204007ebaSmrg# Object file extension for compiled Java test sources. 745304007ebaSmrgobjext=o 745404007ebaSmrg_LT_TAGVAR(objext, $1)=$objext 745504007ebaSmrg 745604007ebaSmrg# Code to be used in simple compile tests 745704007ebaSmrglt_simple_compile_test_code="class foo {}" 745804007ebaSmrg 745904007ebaSmrg# Code to be used in simple link tests 746004007ebaSmrglt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }' 746104007ebaSmrg 746204007ebaSmrg# ltmain only uses $CC for tagged configurations so make sure $CC is set. 746304007ebaSmrg_LT_TAG_COMPILER 746404007ebaSmrg 746504007ebaSmrg# save warnings/boilerplate of simple test code 746604007ebaSmrg_LT_COMPILER_BOILERPLATE 746704007ebaSmrg_LT_LINKER_BOILERPLATE 746804007ebaSmrg 746904007ebaSmrg# Allow CC to be a program name with arguments. 747004007ebaSmrglt_save_CC=$CC 747104007ebaSmrglt_save_CFLAGS=$CFLAGS 747204007ebaSmrglt_save_GCC=$GCC 747304007ebaSmrgGCC=yes 747404007ebaSmrgCC=${GCJ-"gcj"} 747504007ebaSmrgCFLAGS=$GCJFLAGS 747604007ebaSmrgcompiler=$CC 747704007ebaSmrg_LT_TAGVAR(compiler, $1)=$CC 747804007ebaSmrg_LT_TAGVAR(LD, $1)="$LD" 747904007ebaSmrg_LT_CC_BASENAME([$compiler]) 748004007ebaSmrg 748104007ebaSmrg# GCJ did not exist at the time GCC didn't implicitly link libc in. 748204007ebaSmrg_LT_TAGVAR(archive_cmds_need_lc, $1)=no 748304007ebaSmrg 748404007ebaSmrg_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 748504007ebaSmrg_LT_TAGVAR(reload_flag, $1)=$reload_flag 748604007ebaSmrg_LT_TAGVAR(reload_cmds, $1)=$reload_cmds 748704007ebaSmrg 748804007ebaSmrg## CAVEAT EMPTOR: 748904007ebaSmrg## There is no encapsulation within the following macros, do not change 749004007ebaSmrg## the running order or otherwise move them around unless you know exactly 749104007ebaSmrg## what you are doing... 749204007ebaSmrgif test -n "$compiler"; then 749304007ebaSmrg _LT_COMPILER_NO_RTTI($1) 749404007ebaSmrg _LT_COMPILER_PIC($1) 749504007ebaSmrg _LT_COMPILER_C_O($1) 749604007ebaSmrg _LT_COMPILER_FILE_LOCKS($1) 749704007ebaSmrg _LT_LINKER_SHLIBS($1) 749804007ebaSmrg _LT_LINKER_HARDCODE_LIBPATH($1) 749904007ebaSmrg 750004007ebaSmrg _LT_CONFIG($1) 750104007ebaSmrgfi 750204007ebaSmrg 750304007ebaSmrgAC_LANG_RESTORE 750404007ebaSmrg 750504007ebaSmrgGCC=$lt_save_GCC 750604007ebaSmrgCC=$lt_save_CC 750704007ebaSmrgCFLAGS=$lt_save_CFLAGS 750804007ebaSmrg])# _LT_LANG_GCJ_CONFIG 750904007ebaSmrg 751004007ebaSmrg 751104007ebaSmrg# _LT_LANG_GO_CONFIG([TAG]) 751204007ebaSmrg# -------------------------- 751304007ebaSmrg# Ensure that the configuration variables for the GNU Go compiler 751404007ebaSmrg# are suitably defined. These variables are subsequently used by _LT_CONFIG 751504007ebaSmrg# to write the compiler configuration to `libtool'. 751604007ebaSmrgm4_defun([_LT_LANG_GO_CONFIG], 751704007ebaSmrg[AC_REQUIRE([LT_PROG_GO])dnl 751804007ebaSmrgAC_LANG_SAVE 751904007ebaSmrg 752004007ebaSmrg# Source file extension for Go test sources. 752104007ebaSmrgac_ext=go 752204007ebaSmrg 752304007ebaSmrg# Object file extension for compiled Go test sources. 752404007ebaSmrgobjext=o 752504007ebaSmrg_LT_TAGVAR(objext, $1)=$objext 752604007ebaSmrg 752704007ebaSmrg# Code to be used in simple compile tests 752804007ebaSmrglt_simple_compile_test_code="package main; func main() { }" 752904007ebaSmrg 753004007ebaSmrg# Code to be used in simple link tests 753104007ebaSmrglt_simple_link_test_code='package main; func main() { }' 753204007ebaSmrg 753304007ebaSmrg# ltmain only uses $CC for tagged configurations so make sure $CC is set. 753404007ebaSmrg_LT_TAG_COMPILER 753504007ebaSmrg 753604007ebaSmrg# save warnings/boilerplate of simple test code 753704007ebaSmrg_LT_COMPILER_BOILERPLATE 753804007ebaSmrg_LT_LINKER_BOILERPLATE 753904007ebaSmrg 754004007ebaSmrg# Allow CC to be a program name with arguments. 754104007ebaSmrglt_save_CC=$CC 754204007ebaSmrglt_save_CFLAGS=$CFLAGS 754304007ebaSmrglt_save_GCC=$GCC 754404007ebaSmrgGCC=yes 754504007ebaSmrgCC=${GOC-"gccgo"} 754604007ebaSmrgCFLAGS=$GOFLAGS 754704007ebaSmrgcompiler=$CC 754804007ebaSmrg_LT_TAGVAR(compiler, $1)=$CC 754904007ebaSmrg_LT_TAGVAR(LD, $1)="$LD" 755004007ebaSmrg_LT_CC_BASENAME([$compiler]) 755104007ebaSmrg 755204007ebaSmrg# Go did not exist at the time GCC didn't implicitly link libc in. 755304007ebaSmrg_LT_TAGVAR(archive_cmds_need_lc, $1)=no 755404007ebaSmrg 755504007ebaSmrg_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 755604007ebaSmrg_LT_TAGVAR(reload_flag, $1)=$reload_flag 755704007ebaSmrg_LT_TAGVAR(reload_cmds, $1)=$reload_cmds 755804007ebaSmrg 755904007ebaSmrg## CAVEAT EMPTOR: 756004007ebaSmrg## There is no encapsulation within the following macros, do not change 756104007ebaSmrg## the running order or otherwise move them around unless you know exactly 756204007ebaSmrg## what you are doing... 756304007ebaSmrgif test -n "$compiler"; then 756404007ebaSmrg _LT_COMPILER_NO_RTTI($1) 756504007ebaSmrg _LT_COMPILER_PIC($1) 756604007ebaSmrg _LT_COMPILER_C_O($1) 756704007ebaSmrg _LT_COMPILER_FILE_LOCKS($1) 756804007ebaSmrg _LT_LINKER_SHLIBS($1) 756904007ebaSmrg _LT_LINKER_HARDCODE_LIBPATH($1) 757004007ebaSmrg 757104007ebaSmrg _LT_CONFIG($1) 757204007ebaSmrgfi 757304007ebaSmrg 757404007ebaSmrgAC_LANG_RESTORE 757504007ebaSmrg 757604007ebaSmrgGCC=$lt_save_GCC 757704007ebaSmrgCC=$lt_save_CC 757804007ebaSmrgCFLAGS=$lt_save_CFLAGS 757904007ebaSmrg])# _LT_LANG_GO_CONFIG 758004007ebaSmrg 758104007ebaSmrg 758204007ebaSmrg# _LT_LANG_RC_CONFIG([TAG]) 758304007ebaSmrg# ------------------------- 758404007ebaSmrg# Ensure that the configuration variables for the Windows resource compiler 758504007ebaSmrg# are suitably defined. These variables are subsequently used by _LT_CONFIG 758604007ebaSmrg# to write the compiler configuration to `libtool'. 758704007ebaSmrgm4_defun([_LT_LANG_RC_CONFIG], 758804007ebaSmrg[AC_REQUIRE([LT_PROG_RC])dnl 758904007ebaSmrgAC_LANG_SAVE 759004007ebaSmrg 759104007ebaSmrg# Source file extension for RC test sources. 759204007ebaSmrgac_ext=rc 759304007ebaSmrg 759404007ebaSmrg# Object file extension for compiled RC test sources. 759504007ebaSmrgobjext=o 759604007ebaSmrg_LT_TAGVAR(objext, $1)=$objext 759704007ebaSmrg 759804007ebaSmrg# Code to be used in simple compile tests 759904007ebaSmrglt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' 760004007ebaSmrg 760104007ebaSmrg# Code to be used in simple link tests 760204007ebaSmrglt_simple_link_test_code="$lt_simple_compile_test_code" 760304007ebaSmrg 760404007ebaSmrg# ltmain only uses $CC for tagged configurations so make sure $CC is set. 760504007ebaSmrg_LT_TAG_COMPILER 760604007ebaSmrg 760704007ebaSmrg# save warnings/boilerplate of simple test code 760804007ebaSmrg_LT_COMPILER_BOILERPLATE 760904007ebaSmrg_LT_LINKER_BOILERPLATE 761004007ebaSmrg 761104007ebaSmrg# Allow CC to be a program name with arguments. 761204007ebaSmrglt_save_CC="$CC" 761304007ebaSmrglt_save_CFLAGS=$CFLAGS 761404007ebaSmrglt_save_GCC=$GCC 761504007ebaSmrgGCC= 761604007ebaSmrgCC=${RC-"windres"} 761704007ebaSmrgCFLAGS= 761804007ebaSmrgcompiler=$CC 761904007ebaSmrg_LT_TAGVAR(compiler, $1)=$CC 762004007ebaSmrg_LT_CC_BASENAME([$compiler]) 762104007ebaSmrg_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes 762204007ebaSmrg 762304007ebaSmrgif test -n "$compiler"; then 762404007ebaSmrg : 762504007ebaSmrg _LT_CONFIG($1) 762604007ebaSmrgfi 762704007ebaSmrg 762804007ebaSmrgGCC=$lt_save_GCC 762904007ebaSmrgAC_LANG_RESTORE 763004007ebaSmrgCC=$lt_save_CC 763104007ebaSmrgCFLAGS=$lt_save_CFLAGS 763204007ebaSmrg])# _LT_LANG_RC_CONFIG 763304007ebaSmrg 763404007ebaSmrg 763504007ebaSmrg# LT_PROG_GCJ 763604007ebaSmrg# ----------- 763704007ebaSmrgAC_DEFUN([LT_PROG_GCJ], 763804007ebaSmrg[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ], 763904007ebaSmrg [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ], 764004007ebaSmrg [AC_CHECK_TOOL(GCJ, gcj,) 764104007ebaSmrg test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2" 764204007ebaSmrg AC_SUBST(GCJFLAGS)])])[]dnl 764304007ebaSmrg]) 764404007ebaSmrg 764504007ebaSmrg# Old name: 764604007ebaSmrgAU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ]) 764704007ebaSmrgdnl aclocal-1.4 backwards compatibility: 764804007ebaSmrgdnl AC_DEFUN([LT_AC_PROG_GCJ], []) 764904007ebaSmrg 765004007ebaSmrg 765104007ebaSmrg# LT_PROG_GO 765204007ebaSmrg# ---------- 765304007ebaSmrgAC_DEFUN([LT_PROG_GO], 765404007ebaSmrg[AC_CHECK_TOOL(GOC, gccgo,) 765504007ebaSmrg]) 765604007ebaSmrg 765704007ebaSmrg 765804007ebaSmrg# LT_PROG_RC 765904007ebaSmrg# ---------- 766004007ebaSmrgAC_DEFUN([LT_PROG_RC], 766104007ebaSmrg[AC_CHECK_TOOL(RC, windres,) 766204007ebaSmrg]) 766304007ebaSmrg 766404007ebaSmrg# Old name: 766504007ebaSmrgAU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC]) 766604007ebaSmrgdnl aclocal-1.4 backwards compatibility: 766704007ebaSmrgdnl AC_DEFUN([LT_AC_PROG_RC], []) 766804007ebaSmrg 766904007ebaSmrg 767004007ebaSmrg# _LT_DECL_EGREP 767104007ebaSmrg# -------------- 767204007ebaSmrg# If we don't have a new enough Autoconf to choose the best grep 767304007ebaSmrg# available, choose the one first in the user's PATH. 767404007ebaSmrgm4_defun([_LT_DECL_EGREP], 767504007ebaSmrg[AC_REQUIRE([AC_PROG_EGREP])dnl 767604007ebaSmrgAC_REQUIRE([AC_PROG_FGREP])dnl 767704007ebaSmrgtest -z "$GREP" && GREP=grep 767804007ebaSmrg_LT_DECL([], [GREP], [1], [A grep program that handles long lines]) 767904007ebaSmrg_LT_DECL([], [EGREP], [1], [An ERE matcher]) 768004007ebaSmrg_LT_DECL([], [FGREP], [1], [A literal string matcher]) 768104007ebaSmrgdnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too 768204007ebaSmrgAC_SUBST([GREP]) 768304007ebaSmrg]) 768404007ebaSmrg 768504007ebaSmrg 768604007ebaSmrg# _LT_DECL_OBJDUMP 768704007ebaSmrg# -------------- 768804007ebaSmrg# If we don't have a new enough Autoconf to choose the best objdump 768904007ebaSmrg# available, choose the one first in the user's PATH. 769004007ebaSmrgm4_defun([_LT_DECL_OBJDUMP], 769104007ebaSmrg[AC_CHECK_TOOL(OBJDUMP, objdump, false) 769204007ebaSmrgtest -z "$OBJDUMP" && OBJDUMP=objdump 769304007ebaSmrg_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper]) 769404007ebaSmrgAC_SUBST([OBJDUMP]) 769504007ebaSmrg]) 769604007ebaSmrg 769704007ebaSmrg# _LT_DECL_DLLTOOL 769804007ebaSmrg# ---------------- 769904007ebaSmrg# Ensure DLLTOOL variable is set. 770004007ebaSmrgm4_defun([_LT_DECL_DLLTOOL], 770104007ebaSmrg[AC_CHECK_TOOL(DLLTOOL, dlltool, false) 770204007ebaSmrgtest -z "$DLLTOOL" && DLLTOOL=dlltool 770304007ebaSmrg_LT_DECL([], [DLLTOOL], [1], [DLL creation program]) 770404007ebaSmrgAC_SUBST([DLLTOOL]) 770504007ebaSmrg]) 770604007ebaSmrg 770704007ebaSmrg# _LT_DECL_SED 770804007ebaSmrg# ------------ 770904007ebaSmrg# Check for a fully-functional sed program, that truncates 771004007ebaSmrg# as few characters as possible. Prefer GNU sed if found. 771104007ebaSmrgm4_defun([_LT_DECL_SED], 771204007ebaSmrg[AC_PROG_SED 771304007ebaSmrgtest -z "$SED" && SED=sed 771404007ebaSmrgXsed="$SED -e 1s/^X//" 771504007ebaSmrg_LT_DECL([], [SED], [1], [A sed program that does not truncate output]) 771604007ebaSmrg_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"], 771704007ebaSmrg [Sed that helps us avoid accidentally triggering echo(1) options like -n]) 771804007ebaSmrg])# _LT_DECL_SED 771904007ebaSmrg 772004007ebaSmrgm4_ifndef([AC_PROG_SED], [ 772104007ebaSmrg############################################################ 772204007ebaSmrg# NOTE: This macro has been submitted for inclusion into # 772304007ebaSmrg# GNU Autoconf as AC_PROG_SED. When it is available in # 772404007ebaSmrg# a released version of Autoconf we should remove this # 772504007ebaSmrg# macro and use it instead. # 772604007ebaSmrg############################################################ 772704007ebaSmrg 772804007ebaSmrgm4_defun([AC_PROG_SED], 772904007ebaSmrg[AC_MSG_CHECKING([for a sed that does not truncate output]) 773004007ebaSmrgAC_CACHE_VAL(lt_cv_path_SED, 773104007ebaSmrg[# Loop through the user's path and test for sed and gsed. 773204007ebaSmrg# Then use that list of sed's as ones to test for truncation. 773304007ebaSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 773404007ebaSmrgfor as_dir in $PATH 773504007ebaSmrgdo 773604007ebaSmrg IFS=$as_save_IFS 773704007ebaSmrg test -z "$as_dir" && as_dir=. 773804007ebaSmrg for lt_ac_prog in sed gsed; do 773904007ebaSmrg for ac_exec_ext in '' $ac_executable_extensions; do 774004007ebaSmrg if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 774104007ebaSmrg lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 774204007ebaSmrg fi 774304007ebaSmrg done 774404007ebaSmrg done 774504007ebaSmrgdone 774604007ebaSmrgIFS=$as_save_IFS 774704007ebaSmrglt_ac_max=0 774804007ebaSmrglt_ac_count=0 774904007ebaSmrg# Add /usr/xpg4/bin/sed as it is typically found on Solaris 775004007ebaSmrg# along with /bin/sed that truncates output. 775104007ebaSmrgfor lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 775204007ebaSmrg test ! -f $lt_ac_sed && continue 775304007ebaSmrg cat /dev/null > conftest.in 775404007ebaSmrg lt_ac_count=0 775504007ebaSmrg echo $ECHO_N "0123456789$ECHO_C" >conftest.in 775604007ebaSmrg # Check for GNU sed and select it if it is found. 775704007ebaSmrg if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 775804007ebaSmrg lt_cv_path_SED=$lt_ac_sed 775904007ebaSmrg break 776004007ebaSmrg fi 776104007ebaSmrg while true; do 776204007ebaSmrg cat conftest.in conftest.in >conftest.tmp 776304007ebaSmrg mv conftest.tmp conftest.in 776404007ebaSmrg cp conftest.in conftest.nl 776504007ebaSmrg echo >>conftest.nl 776604007ebaSmrg $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 776704007ebaSmrg cmp -s conftest.out conftest.nl || break 776804007ebaSmrg # 10000 chars as input seems more than enough 776904007ebaSmrg test $lt_ac_count -gt 10 && break 777004007ebaSmrg lt_ac_count=`expr $lt_ac_count + 1` 777104007ebaSmrg if test $lt_ac_count -gt $lt_ac_max; then 777204007ebaSmrg lt_ac_max=$lt_ac_count 777304007ebaSmrg lt_cv_path_SED=$lt_ac_sed 777404007ebaSmrg fi 777504007ebaSmrg done 777604007ebaSmrgdone 777704007ebaSmrg]) 777804007ebaSmrgSED=$lt_cv_path_SED 777904007ebaSmrgAC_SUBST([SED]) 778004007ebaSmrgAC_MSG_RESULT([$SED]) 778104007ebaSmrg])#AC_PROG_SED 778204007ebaSmrg])#m4_ifndef 778304007ebaSmrg 778404007ebaSmrg# Old name: 778504007ebaSmrgAU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED]) 778604007ebaSmrgdnl aclocal-1.4 backwards compatibility: 778704007ebaSmrgdnl AC_DEFUN([LT_AC_PROG_SED], []) 778804007ebaSmrg 778904007ebaSmrg 779004007ebaSmrg# _LT_CHECK_SHELL_FEATURES 779104007ebaSmrg# ------------------------ 779204007ebaSmrg# Find out whether the shell is Bourne or XSI compatible, 779304007ebaSmrg# or has some other useful features. 779404007ebaSmrgm4_defun([_LT_CHECK_SHELL_FEATURES], 779504007ebaSmrg[AC_MSG_CHECKING([whether the shell understands some XSI constructs]) 779604007ebaSmrg# Try some XSI features 779704007ebaSmrgxsi_shell=no 779804007ebaSmrg( _lt_dummy="a/b/c" 779904007ebaSmrg test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 780004007ebaSmrg = c,a/b,b/c, \ 780104007ebaSmrg && eval 'test $(( 1 + 1 )) -eq 2 \ 780204007ebaSmrg && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 780304007ebaSmrg && xsi_shell=yes 780404007ebaSmrgAC_MSG_RESULT([$xsi_shell]) 780504007ebaSmrg_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell']) 780604007ebaSmrg 780704007ebaSmrgAC_MSG_CHECKING([whether the shell understands "+="]) 780804007ebaSmrglt_shell_append=no 780904007ebaSmrg( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \ 781004007ebaSmrg >/dev/null 2>&1 \ 781104007ebaSmrg && lt_shell_append=yes 781204007ebaSmrgAC_MSG_RESULT([$lt_shell_append]) 781304007ebaSmrg_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append']) 781404007ebaSmrg 781504007ebaSmrgif ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 781604007ebaSmrg lt_unset=unset 781704007ebaSmrgelse 781804007ebaSmrg lt_unset=false 781904007ebaSmrgfi 782004007ebaSmrg_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl 782104007ebaSmrg 782204007ebaSmrg# test EBCDIC or ASCII 782304007ebaSmrgcase `echo X|tr X '\101'` in 782404007ebaSmrg A) # ASCII based system 782504007ebaSmrg # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 782604007ebaSmrg lt_SP2NL='tr \040 \012' 782704007ebaSmrg lt_NL2SP='tr \015\012 \040\040' 782804007ebaSmrg ;; 782904007ebaSmrg *) # EBCDIC based system 783004007ebaSmrg lt_SP2NL='tr \100 \n' 783104007ebaSmrg lt_NL2SP='tr \r\n \100\100' 783204007ebaSmrg ;; 783304007ebaSmrgesac 783404007ebaSmrg_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl 783504007ebaSmrg_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl 783604007ebaSmrg])# _LT_CHECK_SHELL_FEATURES 783704007ebaSmrg 783804007ebaSmrg 783904007ebaSmrg# _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY) 784004007ebaSmrg# ------------------------------------------------------ 784104007ebaSmrg# In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and 784204007ebaSmrg# '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY. 784304007ebaSmrgm4_defun([_LT_PROG_FUNCTION_REPLACE], 784404007ebaSmrg[dnl { 784504007ebaSmrgsed -e '/^$1 ()$/,/^} # $1 /c\ 784604007ebaSmrg$1 ()\ 784704007ebaSmrg{\ 784804007ebaSmrgm4_bpatsubsts([$2], [$], [\\], [^\([ ]\)], [\\\1]) 784904007ebaSmrg} # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \ 785004007ebaSmrg && mv -f "$cfgfile.tmp" "$cfgfile" \ 785104007ebaSmrg || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 785204007ebaSmrgtest 0 -eq $? || _lt_function_replace_fail=: 785304007ebaSmrg]) 785404007ebaSmrg 785504007ebaSmrg 785604007ebaSmrg# _LT_PROG_REPLACE_SHELLFNS 785704007ebaSmrg# ------------------------- 785804007ebaSmrg# Replace existing portable implementations of several shell functions with 785904007ebaSmrg# equivalent extended shell implementations where those features are available.. 786004007ebaSmrgm4_defun([_LT_PROG_REPLACE_SHELLFNS], 786104007ebaSmrg[if test x"$xsi_shell" = xyes; then 786204007ebaSmrg _LT_PROG_FUNCTION_REPLACE([func_dirname], [dnl 786304007ebaSmrg case ${1} in 786404007ebaSmrg */*) func_dirname_result="${1%/*}${2}" ;; 786504007ebaSmrg * ) func_dirname_result="${3}" ;; 786604007ebaSmrg esac]) 786704007ebaSmrg 786804007ebaSmrg _LT_PROG_FUNCTION_REPLACE([func_basename], [dnl 786904007ebaSmrg func_basename_result="${1##*/}"]) 787004007ebaSmrg 787104007ebaSmrg _LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl 787204007ebaSmrg case ${1} in 787304007ebaSmrg */*) func_dirname_result="${1%/*}${2}" ;; 787404007ebaSmrg * ) func_dirname_result="${3}" ;; 787504007ebaSmrg esac 787604007ebaSmrg func_basename_result="${1##*/}"]) 787704007ebaSmrg 787804007ebaSmrg _LT_PROG_FUNCTION_REPLACE([func_stripname], [dnl 787904007ebaSmrg # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 788004007ebaSmrg # positional parameters, so assign one to ordinary parameter first. 788104007ebaSmrg func_stripname_result=${3} 788204007ebaSmrg func_stripname_result=${func_stripname_result#"${1}"} 788304007ebaSmrg func_stripname_result=${func_stripname_result%"${2}"}]) 788404007ebaSmrg 788504007ebaSmrg _LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl 788604007ebaSmrg func_split_long_opt_name=${1%%=*} 788704007ebaSmrg func_split_long_opt_arg=${1#*=}]) 788804007ebaSmrg 788904007ebaSmrg _LT_PROG_FUNCTION_REPLACE([func_split_short_opt], [dnl 789004007ebaSmrg func_split_short_opt_arg=${1#??} 789104007ebaSmrg func_split_short_opt_name=${1%"$func_split_short_opt_arg"}]) 789204007ebaSmrg 789304007ebaSmrg _LT_PROG_FUNCTION_REPLACE([func_lo2o], [dnl 789404007ebaSmrg case ${1} in 789504007ebaSmrg *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 789604007ebaSmrg *) func_lo2o_result=${1} ;; 789704007ebaSmrg esac]) 789804007ebaSmrg 789904007ebaSmrg _LT_PROG_FUNCTION_REPLACE([func_xform], [ func_xform_result=${1%.*}.lo]) 790004007ebaSmrg 790104007ebaSmrg _LT_PROG_FUNCTION_REPLACE([func_arith], [ func_arith_result=$(( $[*] ))]) 790204007ebaSmrg 790304007ebaSmrg _LT_PROG_FUNCTION_REPLACE([func_len], [ func_len_result=${#1}]) 790404007ebaSmrgfi 790504007ebaSmrg 790604007ebaSmrgif test x"$lt_shell_append" = xyes; then 790704007ebaSmrg _LT_PROG_FUNCTION_REPLACE([func_append], [ eval "${1}+=\\${2}"]) 790804007ebaSmrg 790904007ebaSmrg _LT_PROG_FUNCTION_REPLACE([func_append_quoted], [dnl 791004007ebaSmrg func_quote_for_eval "${2}" 791104007ebaSmrgdnl m4 expansion turns \\\\ into \\, and then the shell eval turns that into \ 791204007ebaSmrg eval "${1}+=\\\\ \\$func_quote_for_eval_result"]) 791304007ebaSmrg 791404007ebaSmrg # Save a `func_append' function call where possible by direct use of '+=' 791504007ebaSmrg sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 791604007ebaSmrg && mv -f "$cfgfile.tmp" "$cfgfile" \ 791704007ebaSmrg || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 791804007ebaSmrg test 0 -eq $? || _lt_function_replace_fail=: 791904007ebaSmrgelse 792004007ebaSmrg # Save a `func_append' function call even when '+=' is not available 792104007ebaSmrg sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 792204007ebaSmrg && mv -f "$cfgfile.tmp" "$cfgfile" \ 792304007ebaSmrg || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 792404007ebaSmrg test 0 -eq $? || _lt_function_replace_fail=: 792504007ebaSmrgfi 792604007ebaSmrg 792704007ebaSmrgif test x"$_lt_function_replace_fail" = x":"; then 792804007ebaSmrg AC_MSG_WARN([Unable to substitute extended shell functions in $ofile]) 792904007ebaSmrgfi 793004007ebaSmrg]) 793104007ebaSmrg 793204007ebaSmrg# _LT_PATH_CONVERSION_FUNCTIONS 793304007ebaSmrg# ----------------------------- 793404007ebaSmrg# Determine which file name conversion functions should be used by 793504007ebaSmrg# func_to_host_file (and, implicitly, by func_to_host_path). These are needed 793604007ebaSmrg# for certain cross-compile configurations and native mingw. 793704007ebaSmrgm4_defun([_LT_PATH_CONVERSION_FUNCTIONS], 793804007ebaSmrg[AC_REQUIRE([AC_CANONICAL_HOST])dnl 793904007ebaSmrgAC_REQUIRE([AC_CANONICAL_BUILD])dnl 794004007ebaSmrgAC_MSG_CHECKING([how to convert $build file names to $host format]) 794104007ebaSmrgAC_CACHE_VAL(lt_cv_to_host_file_cmd, 794204007ebaSmrg[case $host in 794304007ebaSmrg *-*-mingw* ) 794404007ebaSmrg case $build in 794504007ebaSmrg *-*-mingw* ) # actually msys 794604007ebaSmrg lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 794704007ebaSmrg ;; 794804007ebaSmrg *-*-cygwin* ) 794904007ebaSmrg lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 795004007ebaSmrg ;; 795104007ebaSmrg * ) # otherwise, assume *nix 795204007ebaSmrg lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 795304007ebaSmrg ;; 795404007ebaSmrg esac 795504007ebaSmrg ;; 795604007ebaSmrg *-*-cygwin* ) 795704007ebaSmrg case $build in 795804007ebaSmrg *-*-mingw* ) # actually msys 795904007ebaSmrg lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 796004007ebaSmrg ;; 796104007ebaSmrg *-*-cygwin* ) 796204007ebaSmrg lt_cv_to_host_file_cmd=func_convert_file_noop 796304007ebaSmrg ;; 796404007ebaSmrg * ) # otherwise, assume *nix 796504007ebaSmrg lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 796604007ebaSmrg ;; 796704007ebaSmrg esac 796804007ebaSmrg ;; 796904007ebaSmrg * ) # unhandled hosts (and "normal" native builds) 797004007ebaSmrg lt_cv_to_host_file_cmd=func_convert_file_noop 797104007ebaSmrg ;; 797204007ebaSmrgesac 797304007ebaSmrg]) 797404007ebaSmrgto_host_file_cmd=$lt_cv_to_host_file_cmd 797504007ebaSmrgAC_MSG_RESULT([$lt_cv_to_host_file_cmd]) 797604007ebaSmrg_LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd], 797704007ebaSmrg [0], [convert $build file names to $host format])dnl 797804007ebaSmrg 797904007ebaSmrgAC_MSG_CHECKING([how to convert $build file names to toolchain format]) 798004007ebaSmrgAC_CACHE_VAL(lt_cv_to_tool_file_cmd, 798104007ebaSmrg[#assume ordinary cross tools, or native build. 798204007ebaSmrglt_cv_to_tool_file_cmd=func_convert_file_noop 798304007ebaSmrgcase $host in 798404007ebaSmrg *-*-mingw* ) 798504007ebaSmrg case $build in 798604007ebaSmrg *-*-mingw* ) # actually msys 798704007ebaSmrg lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 798804007ebaSmrg ;; 798904007ebaSmrg esac 799004007ebaSmrg ;; 799104007ebaSmrgesac 799204007ebaSmrg]) 799304007ebaSmrgto_tool_file_cmd=$lt_cv_to_tool_file_cmd 799404007ebaSmrgAC_MSG_RESULT([$lt_cv_to_tool_file_cmd]) 799504007ebaSmrg_LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd], 799604007ebaSmrg [0], [convert $build files to toolchain format])dnl 799704007ebaSmrg])# _LT_PATH_CONVERSION_FUNCTIONS 7998