aclocal.m4 revision 66c2ea32
172313efbSmrg# generated automatically by aclocal 1.10.2 -*- Autoconf -*- 2bdcaa8d0Smrg 3bdcaa8d0Smrg# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 472313efbSmrg# 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 5bdcaa8d0Smrg# This file is free software; the Free Software Foundation 6bdcaa8d0Smrg# gives unlimited permission to copy and/or distribute it, 7bdcaa8d0Smrg# with or without modifications, as long as this notice is preserved. 8bdcaa8d0Smrg 9bdcaa8d0Smrg# This program is distributed in the hope that it will be useful, 10bdcaa8d0Smrg# but WITHOUT ANY WARRANTY, to the extent permitted by law; without 11bdcaa8d0Smrg# even the implied warranty of MERCHANTABILITY or FITNESS FOR A 12bdcaa8d0Smrg# PARTICULAR PURPOSE. 13bdcaa8d0Smrg 1472313efbSmrgm4_ifndef([AC_AUTOCONF_VERSION], 1572313efbSmrg [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl 1672313efbSmrgm4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.63],, 1772313efbSmrg[m4_warning([this file was generated for autoconf 2.63. 1872313efbSmrgYou have another version of autoconf. It may work, but is not guaranteed to. 1972313efbSmrgIf you have problems, you may need to regenerate the build system entirely. 2072313efbSmrgTo do so, use the procedure documented by the package, typically `autoreconf'.])]) 2172313efbSmrg 22bdcaa8d0Smrg# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- 2372313efbSmrg# 2472313efbSmrg# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2572313efbSmrg# 2006, 2007, 2008 Free Software Foundation, Inc. 2672313efbSmrg# Written by Gordon Matzigkeit, 1996 2772313efbSmrg# 2872313efbSmrg# This file is free software; the Free Software Foundation gives 2972313efbSmrg# unlimited permission to copy and/or distribute it, with or without 3072313efbSmrg# modifications, as long as this notice is preserved. 3172313efbSmrg 3272313efbSmrgm4_define([_LT_COPYING], [dnl 3372313efbSmrg# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 3472313efbSmrg# 2006, 2007, 2008 Free Software Foundation, Inc. 3572313efbSmrg# Written by Gordon Matzigkeit, 1996 3672313efbSmrg# 3772313efbSmrg# This file is part of GNU Libtool. 3872313efbSmrg# 3972313efbSmrg# GNU Libtool is free software; you can redistribute it and/or 4072313efbSmrg# modify it under the terms of the GNU General Public License as 4172313efbSmrg# published by the Free Software Foundation; either version 2 of 4272313efbSmrg# the License, or (at your option) any later version. 4372313efbSmrg# 4472313efbSmrg# As a special exception to the GNU General Public License, 4572313efbSmrg# if you distribute this file as part of a program or library that 4672313efbSmrg# is built using GNU Libtool, you may include this file under the 4772313efbSmrg# same distribution terms that you use for the rest of that program. 4872313efbSmrg# 4972313efbSmrg# GNU Libtool is distributed in the hope that it will be useful, 5072313efbSmrg# but WITHOUT ANY WARRANTY; without even the implied warranty of 5172313efbSmrg# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 5272313efbSmrg# GNU General Public License for more details. 5372313efbSmrg# 5472313efbSmrg# You should have received a copy of the GNU General Public License 5572313efbSmrg# along with GNU Libtool; see the file COPYING. If not, a copy 5672313efbSmrg# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 5772313efbSmrg# obtained by writing to the Free Software Foundation, Inc., 5872313efbSmrg# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 5972313efbSmrg]) 60bdcaa8d0Smrg 6172313efbSmrg# serial 56 LT_INIT 62bdcaa8d0Smrg 63bdcaa8d0Smrg 6472313efbSmrg# LT_PREREQ(VERSION) 6572313efbSmrg# ------------------ 6672313efbSmrg# Complain and exit if this libtool version is less that VERSION. 6772313efbSmrgm4_defun([LT_PREREQ], 6872313efbSmrg[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1, 6972313efbSmrg [m4_default([$3], 7072313efbSmrg [m4_fatal([Libtool version $1 or higher is required], 7172313efbSmrg 63)])], 7272313efbSmrg [$2])]) 73bdcaa8d0Smrg 74bdcaa8d0Smrg 7572313efbSmrg# _LT_CHECK_BUILDDIR 7672313efbSmrg# ------------------ 7772313efbSmrg# Complain if the absolute build directory name contains unusual characters 7872313efbSmrgm4_defun([_LT_CHECK_BUILDDIR], 7972313efbSmrg[case `pwd` in 8072313efbSmrg *\ * | *\ *) 8172313efbSmrg AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;; 8272313efbSmrgesac 8372313efbSmrg]) 8472313efbSmrg 8572313efbSmrg 8672313efbSmrg# LT_INIT([OPTIONS]) 8772313efbSmrg# ------------------ 8872313efbSmrgAC_DEFUN([LT_INIT], 8972313efbSmrg[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT 9072313efbSmrgAC_BEFORE([$0], [LT_LANG])dnl 9172313efbSmrgAC_BEFORE([$0], [LT_OUTPUT])dnl 9272313efbSmrgAC_BEFORE([$0], [LTDL_INIT])dnl 9372313efbSmrgm4_require([_LT_CHECK_BUILDDIR])dnl 9472313efbSmrg 9572313efbSmrgdnl Autoconf doesn't catch unexpanded LT_ macros by default: 9672313efbSmrgm4_pattern_forbid([^_?LT_[A-Z_]+$])dnl 9772313efbSmrgm4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl 9872313efbSmrgdnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4 9972313efbSmrgdnl unless we require an AC_DEFUNed macro: 10072313efbSmrgAC_REQUIRE([LTOPTIONS_VERSION])dnl 10172313efbSmrgAC_REQUIRE([LTSUGAR_VERSION])dnl 10272313efbSmrgAC_REQUIRE([LTVERSION_VERSION])dnl 10372313efbSmrgAC_REQUIRE([LTOBSOLETE_VERSION])dnl 10472313efbSmrgm4_require([_LT_PROG_LTMAIN])dnl 10572313efbSmrg 10672313efbSmrgdnl Parse OPTIONS 10772313efbSmrg_LT_SET_OPTIONS([$0], [$1]) 108bdcaa8d0Smrg 109bdcaa8d0Smrg# This can be used to rebuild libtool when needed 11072313efbSmrgLIBTOOL_DEPS="$ltmain" 111bdcaa8d0Smrg 112bdcaa8d0Smrg# Always use our own libtool. 113bdcaa8d0SmrgLIBTOOL='$(SHELL) $(top_builddir)/libtool' 114bdcaa8d0SmrgAC_SUBST(LIBTOOL)dnl 115bdcaa8d0Smrg 11672313efbSmrg_LT_SETUP 117bdcaa8d0Smrg 11872313efbSmrg# Only expand once: 11972313efbSmrgm4_define([LT_INIT]) 12072313efbSmrg])# LT_INIT 121bdcaa8d0Smrg 12272313efbSmrg# Old names: 12372313efbSmrgAU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT]) 12472313efbSmrgAU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT]) 12572313efbSmrgdnl aclocal-1.4 backwards compatibility: 12672313efbSmrgdnl AC_DEFUN([AC_PROG_LIBTOOL], []) 12772313efbSmrgdnl AC_DEFUN([AM_PROG_LIBTOOL], []) 12872313efbSmrg 12972313efbSmrg 13072313efbSmrg# _LT_CC_BASENAME(CC) 13172313efbSmrg# ------------------- 13272313efbSmrg# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 13372313efbSmrgm4_defun([_LT_CC_BASENAME], 13472313efbSmrg[for cc_temp in $1""; do 13572313efbSmrg case $cc_temp in 13672313efbSmrg compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; 13772313efbSmrg distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; 13872313efbSmrg \-*) ;; 13972313efbSmrg *) break;; 14072313efbSmrg esac 14172313efbSmrgdone 14272313efbSmrgcc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14372313efbSmrg]) 14472313efbSmrg 14572313efbSmrg 14672313efbSmrg# _LT_FILEUTILS_DEFAULTS 14772313efbSmrg# ---------------------- 14872313efbSmrg# It is okay to use these file commands and assume they have been set 14972313efbSmrg# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'. 15072313efbSmrgm4_defun([_LT_FILEUTILS_DEFAULTS], 15172313efbSmrg[: ${CP="cp -f"} 15272313efbSmrg: ${MV="mv -f"} 15372313efbSmrg: ${RM="rm -f"} 15472313efbSmrg])# _LT_FILEUTILS_DEFAULTS 15572313efbSmrg 15672313efbSmrg 15772313efbSmrg# _LT_SETUP 15872313efbSmrg# --------- 15972313efbSmrgm4_defun([_LT_SETUP], 16072313efbSmrg[AC_REQUIRE([AC_CANONICAL_HOST])dnl 161bdcaa8d0SmrgAC_REQUIRE([AC_CANONICAL_BUILD])dnl 16272313efbSmrg_LT_DECL([], [host_alias], [0], [The host system])dnl 16372313efbSmrg_LT_DECL([], [host], [0])dnl 16472313efbSmrg_LT_DECL([], [host_os], [0])dnl 16572313efbSmrgdnl 16672313efbSmrg_LT_DECL([], [build_alias], [0], [The build system])dnl 16772313efbSmrg_LT_DECL([], [build], [0])dnl 16872313efbSmrg_LT_DECL([], [build_os], [0])dnl 16972313efbSmrgdnl 170bdcaa8d0SmrgAC_REQUIRE([AC_PROG_CC])dnl 17172313efbSmrgAC_REQUIRE([LT_PATH_LD])dnl 17272313efbSmrgAC_REQUIRE([LT_PATH_NM])dnl 17372313efbSmrgdnl 174bdcaa8d0SmrgAC_REQUIRE([AC_PROG_LN_S])dnl 17572313efbSmrgtest -z "$LN_S" && LN_S="ln -s" 17672313efbSmrg_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl 177bdcaa8d0Smrgdnl 17872313efbSmrgAC_REQUIRE([LT_CMD_MAX_LEN])dnl 17972313efbSmrg_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl 18072313efbSmrg_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl 18172313efbSmrgdnl 18272313efbSmrgm4_require([_LT_FILEUTILS_DEFAULTS])dnl 18372313efbSmrgm4_require([_LT_CHECK_SHELL_FEATURES])dnl 18472313efbSmrgm4_require([_LT_CMD_RELOAD])dnl 18572313efbSmrgm4_require([_LT_CHECK_MAGIC_METHOD])dnl 18672313efbSmrgm4_require([_LT_CMD_OLD_ARCHIVE])dnl 18772313efbSmrgm4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl 18872313efbSmrg 18972313efbSmrg_LT_CONFIG_LIBTOOL_INIT([ 19072313efbSmrg# See if we are running on zsh, and set the options which allow our 19172313efbSmrg# commands through without removal of \ escapes INIT. 19272313efbSmrgif test -n "\${ZSH_VERSION+set}" ; then 19372313efbSmrg setopt NO_GLOB_SUBST 19472313efbSmrgfi 19572313efbSmrg]) 19672313efbSmrgif test -n "${ZSH_VERSION+set}" ; then 19772313efbSmrg setopt NO_GLOB_SUBST 19872313efbSmrgfi 199bdcaa8d0Smrg 20072313efbSmrg_LT_CHECK_OBJDIR 201bdcaa8d0Smrg 20272313efbSmrgm4_require([_LT_TAG_COMPILER])dnl 20372313efbSmrg_LT_PROG_ECHO_BACKSLASH 204bdcaa8d0Smrg 205bdcaa8d0Smrgcase $host_os in 206bdcaa8d0Smrgaix3*) 207bdcaa8d0Smrg # AIX sometimes has problems with the GCC collect2 program. For some 208bdcaa8d0Smrg # reason, if we set the COLLECT_NAMES environment variable, the problems 209bdcaa8d0Smrg # vanish in a puff of smoke. 210bdcaa8d0Smrg if test "X${COLLECT_NAMES+set}" != Xset; then 211bdcaa8d0Smrg COLLECT_NAMES= 212bdcaa8d0Smrg export COLLECT_NAMES 213bdcaa8d0Smrg fi 214bdcaa8d0Smrg ;; 215bdcaa8d0Smrgesac 216bdcaa8d0Smrg 217bdcaa8d0Smrg# Sed substitution that helps us do robust quoting. It backslashifies 218bdcaa8d0Smrg# metacharacters that are still active within double-quoted strings. 21972313efbSmrgsed_quote_subst='s/\([["`$\\]]\)/\\\1/g' 220bdcaa8d0Smrg 221bdcaa8d0Smrg# Same as above, but do not quote variable references. 22272313efbSmrgdouble_quote_subst='s/\([["`\\]]\)/\\\1/g' 223bdcaa8d0Smrg 224bdcaa8d0Smrg# Sed substitution to delay expansion of an escaped shell variable in a 225bdcaa8d0Smrg# double_quote_subst'ed string. 226bdcaa8d0Smrgdelay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 227bdcaa8d0Smrg 22872313efbSmrg# Sed substitution to delay expansion of an escaped single quote. 22972313efbSmrgdelay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 23072313efbSmrg 231bdcaa8d0Smrg# Sed substitution to avoid accidental globbing in evaled expressions 232bdcaa8d0Smrgno_glob_subst='s/\*/\\\*/g' 233bdcaa8d0Smrg 234bdcaa8d0Smrg# Global variables: 23572313efbSmrgofile=libtool 236bdcaa8d0Smrgcan_build_shared=yes 237bdcaa8d0Smrg 238bdcaa8d0Smrg# All known linkers require a `.a' archive for static linking (except MSVC, 239bdcaa8d0Smrg# which needs '.lib'). 240bdcaa8d0Smrglibext=a 241bdcaa8d0Smrg 24272313efbSmrgwith_gnu_ld="$lt_cv_prog_gnu_ld" 243bdcaa8d0Smrg 244bdcaa8d0Smrgold_CC="$CC" 245bdcaa8d0Smrgold_CFLAGS="$CFLAGS" 246bdcaa8d0Smrg 247bdcaa8d0Smrg# Set sane defaults for various variables 248bdcaa8d0Smrgtest -z "$CC" && CC=cc 249bdcaa8d0Smrgtest -z "$LTCC" && LTCC=$CC 250bdcaa8d0Smrgtest -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 251bdcaa8d0Smrgtest -z "$LD" && LD=ld 252bdcaa8d0Smrgtest -z "$ac_objext" && ac_objext=o 253bdcaa8d0Smrg 254bdcaa8d0Smrg_LT_CC_BASENAME([$compiler]) 255bdcaa8d0Smrg 256bdcaa8d0Smrg# Only perform the check for file, if the check method requires it 25772313efbSmrgtest -z "$MAGIC_CMD" && MAGIC_CMD=file 258bdcaa8d0Smrgcase $deplibs_check_method in 259bdcaa8d0Smrgfile_magic*) 260bdcaa8d0Smrg if test "$file_magic_cmd" = '$MAGIC_CMD'; then 26172313efbSmrg _LT_PATH_MAGIC 262bdcaa8d0Smrg fi 263bdcaa8d0Smrg ;; 264bdcaa8d0Smrgesac 265bdcaa8d0Smrg 26672313efbSmrg# Use C for the default configuration in the libtool script 26772313efbSmrgLT_SUPPORTED_TAG([CC]) 26872313efbSmrg_LT_LANG_C_CONFIG 26972313efbSmrg_LT_LANG_DEFAULT_CONFIG 27072313efbSmrg_LT_CONFIG_COMMANDS 27172313efbSmrg])# _LT_SETUP 272bdcaa8d0Smrg 273bdcaa8d0Smrg 27472313efbSmrg# _LT_PROG_LTMAIN 27572313efbSmrg# --------------- 27672313efbSmrg# Note that this code is called both from `configure', and `config.status' 27772313efbSmrg# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably, 27872313efbSmrg# `config.status' has no value for ac_aux_dir unless we are using Automake, 27972313efbSmrg# so we pass a copy along to make sure it has a sensible value anyway. 28072313efbSmrgm4_defun([_LT_PROG_LTMAIN], 28172313efbSmrg[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl 28272313efbSmrg_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir']) 28372313efbSmrgltmain="$ac_aux_dir/ltmain.sh" 28472313efbSmrg])# _LT_PROG_LTMAIN 285bdcaa8d0Smrg 286bdcaa8d0Smrg 287bdcaa8d0Smrg 28872313efbSmrg# So that we can recreate a full libtool script including additional 28972313efbSmrg# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS 29072313efbSmrg# in macros and then make a single call at the end using the `libtool' 29172313efbSmrg# label. 292bdcaa8d0Smrg 293bdcaa8d0Smrg 29472313efbSmrg# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS]) 29572313efbSmrg# ---------------------------------------- 29672313efbSmrg# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later. 29772313efbSmrgm4_define([_LT_CONFIG_LIBTOOL_INIT], 29872313efbSmrg[m4_ifval([$1], 29972313efbSmrg [m4_append([_LT_OUTPUT_LIBTOOL_INIT], 30072313efbSmrg [$1 30172313efbSmrg])])]) 302bdcaa8d0Smrg 30372313efbSmrg# Initialize. 30472313efbSmrgm4_define([_LT_OUTPUT_LIBTOOL_INIT]) 305bdcaa8d0Smrg 306bdcaa8d0Smrg 30772313efbSmrg# _LT_CONFIG_LIBTOOL([COMMANDS]) 30872313efbSmrg# ------------------------------ 30972313efbSmrg# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later. 31072313efbSmrgm4_define([_LT_CONFIG_LIBTOOL], 31172313efbSmrg[m4_ifval([$1], 31272313efbSmrg [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS], 31372313efbSmrg [$1 31472313efbSmrg])])]) 31572313efbSmrg 31672313efbSmrg# Initialize. 31772313efbSmrgm4_define([_LT_OUTPUT_LIBTOOL_COMMANDS]) 31872313efbSmrg 31972313efbSmrg 32072313efbSmrg# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS]) 32172313efbSmrg# ----------------------------------------------------- 32272313efbSmrgm4_defun([_LT_CONFIG_SAVE_COMMANDS], 32372313efbSmrg[_LT_CONFIG_LIBTOOL([$1]) 32472313efbSmrg_LT_CONFIG_LIBTOOL_INIT([$2]) 325bdcaa8d0Smrg]) 326bdcaa8d0Smrg 327bdcaa8d0Smrg 32872313efbSmrg# _LT_FORMAT_COMMENT([COMMENT]) 32972313efbSmrg# ----------------------------- 33072313efbSmrg# Add leading comment marks to the start of each line, and a trailing 33172313efbSmrg# full-stop to the whole comment if one is not present already. 33272313efbSmrgm4_define([_LT_FORMAT_COMMENT], 33372313efbSmrg[m4_ifval([$1], [ 33472313efbSmrgm4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])], 33572313efbSmrg [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.]) 33672313efbSmrg)]) 33772313efbSmrg 33872313efbSmrg 33972313efbSmrg 34072313efbSmrg 34172313efbSmrg 34272313efbSmrg# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?]) 34372313efbSmrg# ------------------------------------------------------------------- 34472313efbSmrg# CONFIGNAME is the name given to the value in the libtool script. 34572313efbSmrg# VARNAME is the (base) name used in the configure script. 34672313efbSmrg# VALUE may be 0, 1 or 2 for a computed quote escaped value based on 34772313efbSmrg# VARNAME. Any other value will be used directly. 34872313efbSmrgm4_define([_LT_DECL], 34972313efbSmrg[lt_if_append_uniq([lt_decl_varnames], [$2], [, ], 35072313efbSmrg [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name], 35172313efbSmrg [m4_ifval([$1], [$1], [$2])]) 35272313efbSmrg lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3]) 35372313efbSmrg m4_ifval([$4], 35472313efbSmrg [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])]) 35572313efbSmrg lt_dict_add_subkey([lt_decl_dict], [$2], 35672313efbSmrg [tagged?], [m4_ifval([$5], [yes], [no])])]) 35772313efbSmrg]) 358bdcaa8d0Smrg 359bdcaa8d0Smrg 36072313efbSmrg# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION]) 36172313efbSmrg# -------------------------------------------------------- 36272313efbSmrgm4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])]) 363bdcaa8d0Smrg 364bdcaa8d0Smrg 36572313efbSmrg# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...]) 36672313efbSmrg# ------------------------------------------------ 36772313efbSmrgm4_define([lt_decl_tag_varnames], 36872313efbSmrg[_lt_decl_filter([tagged?], [yes], $@)]) 369bdcaa8d0Smrg 370bdcaa8d0Smrg 37172313efbSmrg# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..]) 37272313efbSmrg# --------------------------------------------------------- 37372313efbSmrgm4_define([_lt_decl_filter], 37472313efbSmrg[m4_case([$#], 37572313efbSmrg [0], [m4_fatal([$0: too few arguments: $#])], 37672313efbSmrg [1], [m4_fatal([$0: too few arguments: $#: $1])], 37772313efbSmrg [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)], 37872313efbSmrg [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)], 37972313efbSmrg [lt_dict_filter([lt_decl_dict], $@)])[]dnl 38072313efbSmrg]) 381bdcaa8d0Smrg 382bdcaa8d0Smrg 38372313efbSmrg# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...]) 38472313efbSmrg# -------------------------------------------------- 38572313efbSmrgm4_define([lt_decl_quote_varnames], 38672313efbSmrg[_lt_decl_filter([value], [1], $@)]) 387bdcaa8d0Smrg 388bdcaa8d0Smrg 38972313efbSmrg# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...]) 39072313efbSmrg# --------------------------------------------------- 39172313efbSmrgm4_define([lt_decl_dquote_varnames], 39272313efbSmrg[_lt_decl_filter([value], [2], $@)]) 393bdcaa8d0Smrg 394bdcaa8d0Smrg 39572313efbSmrg# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...]) 39672313efbSmrg# --------------------------------------------------- 39772313efbSmrgm4_define([lt_decl_varnames_tagged], 39872313efbSmrg[m4_assert([$# <= 2])dnl 39972313efbSmrg_$0(m4_quote(m4_default([$1], [[, ]])), 40072313efbSmrg m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]), 40172313efbSmrg m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))]) 40272313efbSmrgm4_define([_lt_decl_varnames_tagged], 40372313efbSmrg[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])]) 404bdcaa8d0Smrg 405bdcaa8d0Smrg 40672313efbSmrg# lt_decl_all_varnames([SEPARATOR], [VARNAME1...]) 40772313efbSmrg# ------------------------------------------------ 40872313efbSmrgm4_define([lt_decl_all_varnames], 40972313efbSmrg[_$0(m4_quote(m4_default([$1], [[, ]])), 41072313efbSmrg m4_if([$2], [], 41172313efbSmrg m4_quote(lt_decl_varnames), 41272313efbSmrg m4_quote(m4_shift($@))))[]dnl 41372313efbSmrg]) 41472313efbSmrgm4_define([_lt_decl_all_varnames], 41572313efbSmrg[lt_join($@, lt_decl_varnames_tagged([$1], 41672313efbSmrg lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl 41772313efbSmrg]) 418bdcaa8d0Smrg 419bdcaa8d0Smrg 42072313efbSmrg# _LT_CONFIG_STATUS_DECLARE([VARNAME]) 42172313efbSmrg# ------------------------------------ 42272313efbSmrg# Quote a variable value, and forward it to `config.status' so that its 42372313efbSmrg# declaration there will have the same value as in `configure'. VARNAME 42472313efbSmrg# must have a single quote delimited value for this to work. 42572313efbSmrgm4_define([_LT_CONFIG_STATUS_DECLARE], 42672313efbSmrg[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`']) 427bdcaa8d0Smrg 428bdcaa8d0Smrg 42972313efbSmrg# _LT_CONFIG_STATUS_DECLARATIONS 43072313efbSmrg# ------------------------------ 43172313efbSmrg# We delimit libtool config variables with single quotes, so when 43272313efbSmrg# we write them to config.status, we have to be sure to quote all 43372313efbSmrg# embedded single quotes properly. In configure, this macro expands 43472313efbSmrg# each variable declared with _LT_DECL (and _LT_TAGDECL) into: 43572313efbSmrg# 43672313efbSmrg# <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`' 43772313efbSmrgm4_defun([_LT_CONFIG_STATUS_DECLARATIONS], 43872313efbSmrg[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames), 43972313efbSmrg [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])]) 440bdcaa8d0Smrg 441bdcaa8d0Smrg 44272313efbSmrg# _LT_LIBTOOL_TAGS 44372313efbSmrg# ---------------- 44472313efbSmrg# Output comment and list of tags supported by the script 44572313efbSmrgm4_defun([_LT_LIBTOOL_TAGS], 44672313efbSmrg[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl 44772313efbSmrgavailable_tags="_LT_TAGS"dnl 44872313efbSmrg]) 449bdcaa8d0Smrg 450bdcaa8d0Smrg 45172313efbSmrg# _LT_LIBTOOL_DECLARE(VARNAME, [TAG]) 45272313efbSmrg# ----------------------------------- 45372313efbSmrg# Extract the dictionary values for VARNAME (optionally with TAG) and 45472313efbSmrg# expand to a commented shell variable setting: 45572313efbSmrg# 45672313efbSmrg# # Some comment about what VAR is for. 45772313efbSmrg# visible_name=$lt_internal_name 45872313efbSmrgm4_define([_LT_LIBTOOL_DECLARE], 45972313efbSmrg[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], 46072313efbSmrg [description])))[]dnl 46172313efbSmrgm4_pushdef([_libtool_name], 46272313efbSmrg m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl 46372313efbSmrgm4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])), 46472313efbSmrg [0], [_libtool_name=[$]$1], 46572313efbSmrg [1], [_libtool_name=$lt_[]$1], 46672313efbSmrg [2], [_libtool_name=$lt_[]$1], 46772313efbSmrg [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl 46872313efbSmrgm4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl 46972313efbSmrg]) 470bdcaa8d0Smrg 47172313efbSmrg 47272313efbSmrg# _LT_LIBTOOL_CONFIG_VARS 47372313efbSmrg# ----------------------- 47472313efbSmrg# Produce commented declarations of non-tagged libtool config variables 47572313efbSmrg# suitable for insertion in the LIBTOOL CONFIG section of the `libtool' 47672313efbSmrg# script. Tagged libtool config variables (even for the LIBTOOL CONFIG 47772313efbSmrg# section) are produced by _LT_LIBTOOL_TAG_VARS. 47872313efbSmrgm4_defun([_LT_LIBTOOL_CONFIG_VARS], 47972313efbSmrg[m4_foreach([_lt_var], 48072313efbSmrg m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)), 48172313efbSmrg [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])]) 48272313efbSmrg 48372313efbSmrg 48472313efbSmrg# _LT_LIBTOOL_TAG_VARS(TAG) 48572313efbSmrg# ------------------------- 48672313efbSmrgm4_define([_LT_LIBTOOL_TAG_VARS], 48772313efbSmrg[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames), 48872313efbSmrg [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])]) 48972313efbSmrg 49072313efbSmrg 49172313efbSmrg# _LT_TAGVAR(VARNAME, [TAGNAME]) 49272313efbSmrg# ------------------------------ 49372313efbSmrgm4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])]) 49472313efbSmrg 49572313efbSmrg 49672313efbSmrg# _LT_CONFIG_COMMANDS 49772313efbSmrg# ------------------- 49872313efbSmrg# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of 49972313efbSmrg# variables for single and double quote escaping we saved from calls 50072313efbSmrg# to _LT_DECL, we can put quote escaped variables declarations 50172313efbSmrg# into `config.status', and then the shell code to quote escape them in 50272313efbSmrg# for loops in `config.status'. Finally, any additional code accumulated 50372313efbSmrg# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded. 50472313efbSmrgm4_defun([_LT_CONFIG_COMMANDS], 50572313efbSmrg[AC_PROVIDE_IFELSE([LT_OUTPUT], 50672313efbSmrg dnl If the libtool generation code has been placed in $CONFIG_LT, 50772313efbSmrg dnl instead of duplicating it all over again into config.status, 50872313efbSmrg dnl then we will have config.status run $CONFIG_LT later, so it 50972313efbSmrg dnl needs to know what name is stored there: 51072313efbSmrg [AC_CONFIG_COMMANDS([libtool], 51172313efbSmrg [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])], 51272313efbSmrg dnl If the libtool generation code is destined for config.status, 51372313efbSmrg dnl expand the accumulated commands and init code now: 51472313efbSmrg [AC_CONFIG_COMMANDS([libtool], 51572313efbSmrg [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])]) 51672313efbSmrg])#_LT_CONFIG_COMMANDS 51772313efbSmrg 51872313efbSmrg 51972313efbSmrg# Initialize. 52072313efbSmrgm4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT], 52172313efbSmrg[ 52272313efbSmrg 52372313efbSmrg# The HP-UX ksh and POSIX shell print the target directory to stdout 52472313efbSmrg# if CDPATH is set. 52572313efbSmrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 52672313efbSmrg 52772313efbSmrgsed_quote_subst='$sed_quote_subst' 52872313efbSmrgdouble_quote_subst='$double_quote_subst' 52972313efbSmrgdelay_variable_subst='$delay_variable_subst' 53072313efbSmrg_LT_CONFIG_STATUS_DECLARATIONS 53172313efbSmrgLTCC='$LTCC' 53272313efbSmrgLTCFLAGS='$LTCFLAGS' 53372313efbSmrgcompiler='$compiler_DEFAULT' 53472313efbSmrg 53572313efbSmrg# Quote evaled strings. 53672313efbSmrgfor var in lt_decl_all_varnames([[ \ 53772313efbSmrg]], lt_decl_quote_varnames); do 53872313efbSmrg case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 53972313efbSmrg *[[\\\\\\\`\\"\\\$]]*) 54072313efbSmrg eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 541bdcaa8d0Smrg ;; 54272313efbSmrg *) 54372313efbSmrg eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 544bdcaa8d0Smrg ;; 545bdcaa8d0Smrg esac 54672313efbSmrgdone 54772313efbSmrg 54872313efbSmrg# Double-quote double-evaled strings. 54972313efbSmrgfor var in lt_decl_all_varnames([[ \ 55072313efbSmrg]], lt_decl_dquote_varnames); do 55172313efbSmrg case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 55272313efbSmrg *[[\\\\\\\`\\"\\\$]]*) 55372313efbSmrg eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 554bdcaa8d0Smrg ;; 55572313efbSmrg *) 55672313efbSmrg eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 557bdcaa8d0Smrg ;; 558bdcaa8d0Smrg esac 55972313efbSmrgdone 560bdcaa8d0Smrg 56172313efbSmrg# Fix-up fallback echo if it was mangled by the above quoting rules. 56272313efbSmrgcase \$lt_ECHO in 56372313efbSmrg*'\\\[$]0 --fallback-echo"')dnl " 56472313efbSmrg lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\` 565bdcaa8d0Smrg ;; 56672313efbSmrgesac 567bdcaa8d0Smrg 56872313efbSmrg_LT_OUTPUT_LIBTOOL_INIT 56972313efbSmrg]) 570bdcaa8d0Smrg 571bdcaa8d0Smrg 57272313efbSmrg# LT_OUTPUT 57372313efbSmrg# --------- 57472313efbSmrg# This macro allows early generation of the libtool script (before 57572313efbSmrg# AC_OUTPUT is called), incase it is used in configure for compilation 57672313efbSmrg# tests. 57772313efbSmrgAC_DEFUN([LT_OUTPUT], 57872313efbSmrg[: ${CONFIG_LT=./config.lt} 57972313efbSmrgAC_MSG_NOTICE([creating $CONFIG_LT]) 58072313efbSmrgcat >"$CONFIG_LT" <<_LTEOF 58172313efbSmrg#! $SHELL 58272313efbSmrg# Generated by $as_me. 58372313efbSmrg# Run this file to recreate a libtool stub with the current configuration. 58472313efbSmrg 58572313efbSmrglt_cl_silent=false 58672313efbSmrgSHELL=\${CONFIG_SHELL-$SHELL} 58772313efbSmrg_LTEOF 58872313efbSmrg 58972313efbSmrgcat >>"$CONFIG_LT" <<\_LTEOF 59072313efbSmrgAS_SHELL_SANITIZE 59172313efbSmrg_AS_PREPARE 59272313efbSmrg 59372313efbSmrgexec AS_MESSAGE_FD>&1 59472313efbSmrgexec AS_MESSAGE_LOG_FD>>config.log 59572313efbSmrg{ 59672313efbSmrg echo 59772313efbSmrg AS_BOX([Running $as_me.]) 59872313efbSmrg} >&AS_MESSAGE_LOG_FD 599bdcaa8d0Smrg 60072313efbSmrglt_cl_help="\ 60172313efbSmrg\`$as_me' creates a local libtool stub from the current configuration, 60272313efbSmrgfor use in further configure time tests before the real libtool is 60372313efbSmrggenerated. 604bdcaa8d0Smrg 60572313efbSmrgUsage: $[0] [[OPTIONS]] 606bdcaa8d0Smrg 60772313efbSmrg -h, --help print this help, then exit 60872313efbSmrg -V, --version print version number, then exit 60972313efbSmrg -q, --quiet do not print progress messages 61072313efbSmrg -d, --debug don't remove temporary files 611bdcaa8d0Smrg 61272313efbSmrgReport bugs to <bug-libtool@gnu.org>." 613bdcaa8d0Smrg 61472313efbSmrglt_cl_version="\ 61572313efbSmrgm4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl 61672313efbSmrgm4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION]) 61772313efbSmrgconfigured by $[0], generated by m4_PACKAGE_STRING. 618bdcaa8d0Smrg 61972313efbSmrgCopyright (C) 2008 Free Software Foundation, Inc. 62072313efbSmrgThis config.lt script is free software; the Free Software Foundation 62172313efbSmrggives unlimited permision to copy, distribute and modify it." 622bdcaa8d0Smrg 62372313efbSmrgwhile test $[#] != 0 62472313efbSmrgdo 62572313efbSmrg case $[1] in 62672313efbSmrg --version | --v* | -V ) 62772313efbSmrg echo "$lt_cl_version"; exit 0 ;; 62872313efbSmrg --help | --h* | -h ) 62972313efbSmrg echo "$lt_cl_help"; exit 0 ;; 63072313efbSmrg --debug | --d* | -d ) 63172313efbSmrg debug=: ;; 63272313efbSmrg --quiet | --q* | --silent | --s* | -q ) 63372313efbSmrg lt_cl_silent=: ;; 63472313efbSmrg 63572313efbSmrg -*) AC_MSG_ERROR([unrecognized option: $[1] 63672313efbSmrgTry \`$[0] --help' for more information.]) ;; 63772313efbSmrg 63872313efbSmrg *) AC_MSG_ERROR([unrecognized argument: $[1] 63972313efbSmrgTry \`$[0] --help' for more information.]) ;; 64072313efbSmrg esac 64172313efbSmrg shift 64272313efbSmrgdone 643bdcaa8d0Smrg 64472313efbSmrgif $lt_cl_silent; then 64572313efbSmrg exec AS_MESSAGE_FD>/dev/null 64672313efbSmrgfi 64772313efbSmrg_LTEOF 64872313efbSmrg 64972313efbSmrgcat >>"$CONFIG_LT" <<_LTEOF 65072313efbSmrg_LT_OUTPUT_LIBTOOL_COMMANDS_INIT 65172313efbSmrg_LTEOF 65272313efbSmrg 65372313efbSmrgcat >>"$CONFIG_LT" <<\_LTEOF 65472313efbSmrgAC_MSG_NOTICE([creating $ofile]) 65572313efbSmrg_LT_OUTPUT_LIBTOOL_COMMANDS 65672313efbSmrgAS_EXIT(0) 65772313efbSmrg_LTEOF 65872313efbSmrgchmod +x "$CONFIG_LT" 65972313efbSmrg 66072313efbSmrg# configure is writing to config.log, but config.lt does its own redirection, 66172313efbSmrg# appending to config.log, which fails on DOS, as config.log is still kept 66272313efbSmrg# open by configure. Here we exec the FD to /dev/null, effectively closing 66372313efbSmrg# config.log, so it can be properly (re)opened and appended to by config.lt. 66472313efbSmrgif test "$no_create" != yes; then 66572313efbSmrg lt_cl_success=: 66672313efbSmrg test "$silent" = yes && 66772313efbSmrg lt_config_lt_args="$lt_config_lt_args --quiet" 66872313efbSmrg exec AS_MESSAGE_LOG_FD>/dev/null 66972313efbSmrg $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false 67072313efbSmrg exec AS_MESSAGE_LOG_FD>>config.log 67172313efbSmrg $lt_cl_success || AS_EXIT(1) 67272313efbSmrgfi 67372313efbSmrg])# LT_OUTPUT 674bdcaa8d0Smrg 675bdcaa8d0Smrg 67672313efbSmrg# _LT_CONFIG(TAG) 67772313efbSmrg# --------------- 67872313efbSmrg# If TAG is the built-in tag, create an initial libtool script with a 67972313efbSmrg# default configuration from the untagged config vars. Otherwise add code 68072313efbSmrg# to config.status for appending the configuration named by TAG from the 68172313efbSmrg# matching tagged config vars. 68272313efbSmrgm4_defun([_LT_CONFIG], 68372313efbSmrg[m4_require([_LT_FILEUTILS_DEFAULTS])dnl 68472313efbSmrg_LT_CONFIG_SAVE_COMMANDS([ 68572313efbSmrg m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl 68672313efbSmrg m4_if(_LT_TAG, [C], [ 68772313efbSmrg # See if we are running on zsh, and set the options which allow our 68872313efbSmrg # commands through without removal of \ escapes. 68972313efbSmrg if test -n "${ZSH_VERSION+set}" ; then 69072313efbSmrg setopt NO_GLOB_SUBST 69172313efbSmrg fi 692bdcaa8d0Smrg 69372313efbSmrg cfgfile="${ofile}T" 69472313efbSmrg trap "$RM \"$cfgfile\"; exit 1" 1 2 15 69572313efbSmrg $RM "$cfgfile" 696bdcaa8d0Smrg 69772313efbSmrg cat <<_LT_EOF >> "$cfgfile" 69872313efbSmrg#! $SHELL 699bdcaa8d0Smrg 70072313efbSmrg# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 70172313efbSmrg# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 70272313efbSmrg# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 70372313efbSmrg# NOTE: Changes made to this file will be lost: look at ltmain.sh. 70472313efbSmrg# 70572313efbSmrg_LT_COPYING 70672313efbSmrg_LT_LIBTOOL_TAGS 707bdcaa8d0Smrg 70872313efbSmrg# ### BEGIN LIBTOOL CONFIG 70972313efbSmrg_LT_LIBTOOL_CONFIG_VARS 71072313efbSmrg_LT_LIBTOOL_TAG_VARS 71172313efbSmrg# ### END LIBTOOL CONFIG 712bdcaa8d0Smrg 71372313efbSmrg_LT_EOF 714bdcaa8d0Smrg 71572313efbSmrg case $host_os in 71672313efbSmrg aix3*) 71772313efbSmrg cat <<\_LT_EOF >> "$cfgfile" 71872313efbSmrg# AIX sometimes has problems with the GCC collect2 program. For some 71972313efbSmrg# reason, if we set the COLLECT_NAMES environment variable, the problems 72072313efbSmrg# vanish in a puff of smoke. 72172313efbSmrgif test "X${COLLECT_NAMES+set}" != Xset; then 72272313efbSmrg COLLECT_NAMES= 72372313efbSmrg export COLLECT_NAMES 72472313efbSmrgfi 72572313efbSmrg_LT_EOF 726bdcaa8d0Smrg ;; 727bdcaa8d0Smrg esac 728bdcaa8d0Smrg 72972313efbSmrg _LT_PROG_LTMAIN 730bdcaa8d0Smrg 73172313efbSmrg # We use sed instead of cat because bash on DJGPP gets confused if 73272313efbSmrg # if finds mixed CR/LF and LF-only lines. Since sed operates in 73372313efbSmrg # text mode, it properly converts lines to CR/LF. This bash problem 73472313efbSmrg # is reportedly fixed, but why not run on old versions too? 73572313efbSmrg sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 73672313efbSmrg || (rm -f "$cfgfile"; exit 1) 737bdcaa8d0Smrg 73872313efbSmrg _LT_PROG_XSI_SHELLFNS 739bdcaa8d0Smrg 74072313efbSmrg sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 74172313efbSmrg || (rm -f "$cfgfile"; exit 1) 742bdcaa8d0Smrg 74372313efbSmrg mv -f "$cfgfile" "$ofile" || 74472313efbSmrg (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 74572313efbSmrg chmod +x "$ofile" 74672313efbSmrg], 74772313efbSmrg[cat <<_LT_EOF >> "$ofile" 748bdcaa8d0Smrg 74972313efbSmrgdnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded 75072313efbSmrgdnl in a comment (ie after a #). 75172313efbSmrg# ### BEGIN LIBTOOL TAG CONFIG: $1 75272313efbSmrg_LT_LIBTOOL_TAG_VARS(_LT_TAG) 75372313efbSmrg# ### END LIBTOOL TAG CONFIG: $1 75472313efbSmrg_LT_EOF 75572313efbSmrg])dnl /m4_if 75672313efbSmrg], 75772313efbSmrg[m4_if([$1], [], [ 75872313efbSmrg PACKAGE='$PACKAGE' 75972313efbSmrg VERSION='$VERSION' 76072313efbSmrg TIMESTAMP='$TIMESTAMP' 76172313efbSmrg RM='$RM' 76272313efbSmrg ofile='$ofile'], []) 76372313efbSmrg])dnl /_LT_CONFIG_SAVE_COMMANDS 76472313efbSmrg])# _LT_CONFIG 765bdcaa8d0Smrg 766bdcaa8d0Smrg 76772313efbSmrg# LT_SUPPORTED_TAG(TAG) 76872313efbSmrg# --------------------- 76972313efbSmrg# Trace this macro to discover what tags are supported by the libtool 77072313efbSmrg# --tag option, using: 77172313efbSmrg# autoconf --trace 'LT_SUPPORTED_TAG:$1' 77272313efbSmrgAC_DEFUN([LT_SUPPORTED_TAG], []) 773bdcaa8d0Smrg 774bdcaa8d0Smrg 77572313efbSmrg# C support is built-in for now 77672313efbSmrgm4_define([_LT_LANG_C_enabled], []) 77772313efbSmrgm4_define([_LT_TAGS], []) 778bdcaa8d0Smrg 779bdcaa8d0Smrg 78072313efbSmrg# LT_LANG(LANG) 78172313efbSmrg# ------------- 78272313efbSmrg# Enable libtool support for the given language if not already enabled. 78372313efbSmrgAC_DEFUN([LT_LANG], 78472313efbSmrg[AC_BEFORE([$0], [LT_OUTPUT])dnl 78572313efbSmrgm4_case([$1], 78672313efbSmrg [C], [_LT_LANG(C)], 78772313efbSmrg [C++], [_LT_LANG(CXX)], 78872313efbSmrg [Java], [_LT_LANG(GCJ)], 78972313efbSmrg [Fortran 77], [_LT_LANG(F77)], 79072313efbSmrg [Fortran], [_LT_LANG(FC)], 79172313efbSmrg [Windows Resource], [_LT_LANG(RC)], 79272313efbSmrg [m4_ifdef([_LT_LANG_]$1[_CONFIG], 79372313efbSmrg [_LT_LANG($1)], 79472313efbSmrg [m4_fatal([$0: unsupported language: "$1"])])])dnl 79572313efbSmrg])# LT_LANG 79672313efbSmrg 79772313efbSmrg 79872313efbSmrg# _LT_LANG(LANGNAME) 79972313efbSmrg# ------------------ 80072313efbSmrgm4_defun([_LT_LANG], 80172313efbSmrg[m4_ifdef([_LT_LANG_]$1[_enabled], [], 80272313efbSmrg [LT_SUPPORTED_TAG([$1])dnl 80372313efbSmrg m4_append([_LT_TAGS], [$1 ])dnl 80472313efbSmrg m4_define([_LT_LANG_]$1[_enabled], [])dnl 80572313efbSmrg _LT_LANG_$1_CONFIG($1)])dnl 80672313efbSmrg])# _LT_LANG 807bdcaa8d0Smrg 808bdcaa8d0Smrg 80972313efbSmrg# _LT_LANG_DEFAULT_CONFIG 81072313efbSmrg# ----------------------- 81172313efbSmrgm4_defun([_LT_LANG_DEFAULT_CONFIG], 81272313efbSmrg[AC_PROVIDE_IFELSE([AC_PROG_CXX], 81372313efbSmrg [LT_LANG(CXX)], 81472313efbSmrg [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])]) 81572313efbSmrg 81672313efbSmrgAC_PROVIDE_IFELSE([AC_PROG_F77], 81772313efbSmrg [LT_LANG(F77)], 81872313efbSmrg [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])]) 81972313efbSmrg 82072313efbSmrgAC_PROVIDE_IFELSE([AC_PROG_FC], 82172313efbSmrg [LT_LANG(FC)], 82272313efbSmrg [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])]) 82372313efbSmrg 82472313efbSmrgdnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal 82572313efbSmrgdnl pulling things in needlessly. 82672313efbSmrgAC_PROVIDE_IFELSE([AC_PROG_GCJ], 82772313efbSmrg [LT_LANG(GCJ)], 82872313efbSmrg [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], 82972313efbSmrg [LT_LANG(GCJ)], 83072313efbSmrg [AC_PROVIDE_IFELSE([LT_PROG_GCJ], 83172313efbSmrg [LT_LANG(GCJ)], 83272313efbSmrg [m4_ifdef([AC_PROG_GCJ], 83372313efbSmrg [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])]) 83472313efbSmrg m4_ifdef([A][M_PROG_GCJ], 83572313efbSmrg [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])]) 83672313efbSmrg m4_ifdef([LT_PROG_GCJ], 83772313efbSmrg [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])]) 83872313efbSmrg 83972313efbSmrgAC_PROVIDE_IFELSE([LT_PROG_RC], 84072313efbSmrg [LT_LANG(RC)], 84172313efbSmrg [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])]) 84272313efbSmrg])# _LT_LANG_DEFAULT_CONFIG 84372313efbSmrg 84472313efbSmrg# Obsolete macros: 84572313efbSmrgAU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)]) 84672313efbSmrgAU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)]) 84772313efbSmrgAU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)]) 84872313efbSmrgAU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)]) 84972313efbSmrgdnl aclocal-1.4 backwards compatibility: 85072313efbSmrgdnl AC_DEFUN([AC_LIBTOOL_CXX], []) 85172313efbSmrgdnl AC_DEFUN([AC_LIBTOOL_F77], []) 85272313efbSmrgdnl AC_DEFUN([AC_LIBTOOL_FC], []) 85372313efbSmrgdnl AC_DEFUN([AC_LIBTOOL_GCJ], []) 85472313efbSmrg 85572313efbSmrg 85672313efbSmrg# _LT_TAG_COMPILER 85772313efbSmrg# ---------------- 85872313efbSmrgm4_defun([_LT_TAG_COMPILER], 85972313efbSmrg[AC_REQUIRE([AC_PROG_CC])dnl 860bdcaa8d0Smrg 86172313efbSmrg_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl 86272313efbSmrg_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl 86372313efbSmrg_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl 86472313efbSmrg_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl 865bdcaa8d0Smrg 86672313efbSmrg# If no C compiler was specified, use CC. 86772313efbSmrgLTCC=${LTCC-"$CC"} 868bdcaa8d0Smrg 86972313efbSmrg# If no C compiler flags were specified, use CFLAGS. 87072313efbSmrgLTCFLAGS=${LTCFLAGS-"$CFLAGS"} 871bdcaa8d0Smrg 87272313efbSmrg# Allow CC to be a program name with arguments. 87372313efbSmrgcompiler=$CC 87472313efbSmrg])# _LT_TAG_COMPILER 875bdcaa8d0Smrg 876bdcaa8d0Smrg 87772313efbSmrg# _LT_COMPILER_BOILERPLATE 87872313efbSmrg# ------------------------ 87972313efbSmrg# Check for compiler boilerplate output or warnings with 88072313efbSmrg# the simple compiler test code. 88172313efbSmrgm4_defun([_LT_COMPILER_BOILERPLATE], 88272313efbSmrg[m4_require([_LT_DECL_SED])dnl 88372313efbSmrgac_outfile=conftest.$ac_objext 88472313efbSmrgecho "$lt_simple_compile_test_code" >conftest.$ac_ext 88572313efbSmrgeval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 88672313efbSmrg_lt_compiler_boilerplate=`cat conftest.err` 88772313efbSmrg$RM conftest* 88872313efbSmrg])# _LT_COMPILER_BOILERPLATE 889bdcaa8d0Smrg 890bdcaa8d0Smrg 89172313efbSmrg# _LT_LINKER_BOILERPLATE 89272313efbSmrg# ---------------------- 89372313efbSmrg# Check for linker boilerplate output or warnings with 89472313efbSmrg# the simple link test code. 89572313efbSmrgm4_defun([_LT_LINKER_BOILERPLATE], 89672313efbSmrg[m4_require([_LT_DECL_SED])dnl 89772313efbSmrgac_outfile=conftest.$ac_objext 89872313efbSmrgecho "$lt_simple_link_test_code" >conftest.$ac_ext 89972313efbSmrgeval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 90072313efbSmrg_lt_linker_boilerplate=`cat conftest.err` 90172313efbSmrg$RM -r conftest* 90272313efbSmrg])# _LT_LINKER_BOILERPLATE 903bdcaa8d0Smrg 90472313efbSmrg# _LT_REQUIRED_DARWIN_CHECKS 90572313efbSmrg# ------------------------- 90672313efbSmrgm4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[ 90772313efbSmrg case $host_os in 90872313efbSmrg rhapsody* | darwin*) 90972313efbSmrg AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:]) 91072313efbSmrg AC_CHECK_TOOL([NMEDIT], [nmedit], [:]) 91172313efbSmrg AC_CHECK_TOOL([LIPO], [lipo], [:]) 91272313efbSmrg AC_CHECK_TOOL([OTOOL], [otool], [:]) 91372313efbSmrg AC_CHECK_TOOL([OTOOL64], [otool64], [:]) 91472313efbSmrg _LT_DECL([], [DSYMUTIL], [1], 91572313efbSmrg [Tool to manipulate archived DWARF debug symbol files on Mac OS X]) 91672313efbSmrg _LT_DECL([], [NMEDIT], [1], 91772313efbSmrg [Tool to change global to local symbols on Mac OS X]) 91872313efbSmrg _LT_DECL([], [LIPO], [1], 91972313efbSmrg [Tool to manipulate fat objects and archives on Mac OS X]) 92072313efbSmrg _LT_DECL([], [OTOOL], [1], 92172313efbSmrg [ldd/readelf like tool for Mach-O binaries on Mac OS X]) 92272313efbSmrg _LT_DECL([], [OTOOL64], [1], 92372313efbSmrg [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4]) 92472313efbSmrg 92572313efbSmrg AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod], 92672313efbSmrg [lt_cv_apple_cc_single_mod=no 92772313efbSmrg if test -z "${LT_MULTI_MODULE}"; then 92872313efbSmrg # By default we will add the -single_module flag. You can override 92972313efbSmrg # by either setting the environment variable LT_MULTI_MODULE 93072313efbSmrg # non-empty at configure time, or by adding -multi_module to the 93172313efbSmrg # link flags. 93272313efbSmrg rm -rf libconftest.dylib* 93372313efbSmrg echo "int foo(void){return 1;}" > conftest.c 93472313efbSmrg echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 93572313efbSmrg-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD 93672313efbSmrg $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 93772313efbSmrg -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 93872313efbSmrg _lt_result=$? 93972313efbSmrg if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 94072313efbSmrg lt_cv_apple_cc_single_mod=yes 94172313efbSmrg else 94272313efbSmrg cat conftest.err >&AS_MESSAGE_LOG_FD 94372313efbSmrg fi 94472313efbSmrg rm -rf libconftest.dylib* 94572313efbSmrg rm -f conftest.* 94672313efbSmrg fi]) 94772313efbSmrg AC_CACHE_CHECK([for -exported_symbols_list linker flag], 94872313efbSmrg [lt_cv_ld_exported_symbols_list], 94972313efbSmrg [lt_cv_ld_exported_symbols_list=no 95072313efbSmrg save_LDFLAGS=$LDFLAGS 95172313efbSmrg echo "_main" > conftest.sym 95272313efbSmrg LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 95372313efbSmrg AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], 95472313efbSmrg [lt_cv_ld_exported_symbols_list=yes], 95572313efbSmrg [lt_cv_ld_exported_symbols_list=no]) 95672313efbSmrg LDFLAGS="$save_LDFLAGS" 957bdcaa8d0Smrg ]) 95872313efbSmrg case $host_os in 95972313efbSmrg rhapsody* | darwin1.[[012]]) 96072313efbSmrg _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 96172313efbSmrg darwin1.*) 96272313efbSmrg _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 96372313efbSmrg darwin*) # darwin 5.x on 96472313efbSmrg # if running on 10.5 or later, the deployment target defaults 96572313efbSmrg # to the OS version, if on x86, and 10.4, the deployment 96672313efbSmrg # target defaults to 10.4. Don't you love it? 96772313efbSmrg case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 96872313efbSmrg 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*) 96972313efbSmrg _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 97072313efbSmrg 10.[[012]]*) 97172313efbSmrg _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 97272313efbSmrg 10.*) 97372313efbSmrg _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 97472313efbSmrg esac 97572313efbSmrg ;; 97672313efbSmrg esac 97772313efbSmrg if test "$lt_cv_apple_cc_single_mod" = "yes"; then 97872313efbSmrg _lt_dar_single_mod='$single_module' 97972313efbSmrg fi 98072313efbSmrg if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 98172313efbSmrg _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 98272313efbSmrg else 98372313efbSmrg _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 98472313efbSmrg fi 98572313efbSmrg if test "$DSYMUTIL" != ":"; then 98672313efbSmrg _lt_dsymutil='~$DSYMUTIL $lib || :' 98772313efbSmrg else 98872313efbSmrg _lt_dsymutil= 989bdcaa8d0Smrg fi 990bdcaa8d0Smrg ;; 991bdcaa8d0Smrg esac 99272313efbSmrg]) 993bdcaa8d0Smrg 994bdcaa8d0Smrg 99572313efbSmrg# _LT_DARWIN_LINKER_FEATURES 99672313efbSmrg# -------------------------- 99772313efbSmrg# Checks for linker and compiler features on darwin 99872313efbSmrgm4_defun([_LT_DARWIN_LINKER_FEATURES], 99972313efbSmrg[ 100072313efbSmrg m4_require([_LT_REQUIRED_DARWIN_CHECKS]) 100172313efbSmrg _LT_TAGVAR(archive_cmds_need_lc, $1)=no 100272313efbSmrg _LT_TAGVAR(hardcode_direct, $1)=no 100372313efbSmrg _LT_TAGVAR(hardcode_automatic, $1)=yes 100472313efbSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 100572313efbSmrg _LT_TAGVAR(whole_archive_flag_spec, $1)='' 100672313efbSmrg _LT_TAGVAR(link_all_deplibs, $1)=yes 100772313efbSmrg _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined" 100872313efbSmrg case $cc_basename in 100972313efbSmrg ifort*) _lt_dar_can_shared=yes ;; 101072313efbSmrg *) _lt_dar_can_shared=$GCC ;; 1011bdcaa8d0Smrg esac 101272313efbSmrg if test "$_lt_dar_can_shared" = "yes"; then 101372313efbSmrg output_verbose_link_cmd=echo 101472313efbSmrg _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}" 101572313efbSmrg _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 101672313efbSmrg _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}" 101772313efbSmrg _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}" 101872313efbSmrg m4_if([$1], [CXX], 101972313efbSmrg[ if test "$lt_cv_apple_cc_single_mod" != "yes"; then 102072313efbSmrg _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}" 102172313efbSmrg _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}" 102272313efbSmrg fi 102372313efbSmrg],[]) 102472313efbSmrg else 102572313efbSmrg _LT_TAGVAR(ld_shlibs, $1)=no 102672313efbSmrg fi 102772313efbSmrg]) 1028bdcaa8d0Smrg 102972313efbSmrg# _LT_SYS_MODULE_PATH_AIX 103072313efbSmrg# ----------------------- 103172313efbSmrg# Links a minimal program and checks the executable 103272313efbSmrg# for the system default hardcoded library path. In most cases, 103372313efbSmrg# this is /usr/lib:/lib, but when the MPI compilers are used 103472313efbSmrg# the location of the communication and MPI libs are included too. 103572313efbSmrg# If we don't find anything, use the default library path according 103672313efbSmrg# to the aix ld manual. 103772313efbSmrgm4_defun([_LT_SYS_MODULE_PATH_AIX], 103872313efbSmrg[m4_require([_LT_DECL_SED])dnl 103972313efbSmrgAC_LINK_IFELSE(AC_LANG_PROGRAM,[ 104072313efbSmrglt_aix_libpath_sed=' 104172313efbSmrg /Import File Strings/,/^$/ { 104272313efbSmrg /^0/ { 104372313efbSmrg s/^0 *\(.*\)$/\1/ 104472313efbSmrg p 104572313efbSmrg } 104672313efbSmrg }' 104772313efbSmrgaix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 104872313efbSmrg# Check for a 64-bit object if we didn't find anything. 104972313efbSmrgif test -z "$aix_libpath"; then 105072313efbSmrg aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 105172313efbSmrgfi],[]) 105272313efbSmrgif test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 105372313efbSmrg])# _LT_SYS_MODULE_PATH_AIX 1054bdcaa8d0Smrg 1055bdcaa8d0Smrg 105672313efbSmrg# _LT_SHELL_INIT(ARG) 105772313efbSmrg# ------------------- 105872313efbSmrgm4_define([_LT_SHELL_INIT], 105972313efbSmrg[ifdef([AC_DIVERSION_NOTICE], 106072313efbSmrg [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)], 106172313efbSmrg [AC_DIVERT_PUSH(NOTICE)]) 106272313efbSmrg$1 106372313efbSmrgAC_DIVERT_POP 106472313efbSmrg])# _LT_SHELL_INIT 1065bdcaa8d0Smrg 1066bdcaa8d0Smrg 106772313efbSmrg# _LT_PROG_ECHO_BACKSLASH 106872313efbSmrg# ----------------------- 106972313efbSmrg# Add some code to the start of the generated configure script which 107072313efbSmrg# will find an echo command which doesn't interpret backslashes. 107172313efbSmrgm4_defun([_LT_PROG_ECHO_BACKSLASH], 107272313efbSmrg[_LT_SHELL_INIT([ 107372313efbSmrg# Check that we are running under the correct shell. 107472313efbSmrgSHELL=${CONFIG_SHELL-/bin/sh} 1075bdcaa8d0Smrg 107672313efbSmrgcase X$lt_ECHO in 107772313efbSmrgX*--fallback-echo) 107872313efbSmrg # Remove one level of quotation (which was required for Make). 107972313efbSmrg ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','` 108072313efbSmrg ;; 108172313efbSmrgesac 108272313efbSmrg 108372313efbSmrgECHO=${lt_ECHO-echo} 108472313efbSmrgif test "X[$]1" = X--no-reexec; then 108572313efbSmrg # Discard the --no-reexec flag, and continue. 108672313efbSmrg shift 108772313efbSmrgelif test "X[$]1" = X--fallback-echo; then 108872313efbSmrg # Avoid inline document here, it may be left over 108972313efbSmrg : 109072313efbSmrgelif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then 109172313efbSmrg # Yippee, $ECHO works! 109272313efbSmrg : 1093bdcaa8d0Smrgelse 109472313efbSmrg # Restart under the correct shell. 109572313efbSmrg exec $SHELL "[$]0" --no-reexec ${1+"[$]@"} 1096bdcaa8d0Smrgfi 1097bdcaa8d0Smrg 109872313efbSmrgif test "X[$]1" = X--fallback-echo; then 109972313efbSmrg # used as fallback echo 110072313efbSmrg shift 110172313efbSmrg cat <<_LT_EOF 110272313efbSmrg[$]* 110372313efbSmrg_LT_EOF 110472313efbSmrg exit 0 1105bdcaa8d0Smrgfi 1106bdcaa8d0Smrg 110772313efbSmrg# The HP-UX ksh and POSIX shell print the target directory to stdout 110872313efbSmrg# if CDPATH is set. 110972313efbSmrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 1110bdcaa8d0Smrg 111172313efbSmrgif test -z "$lt_ECHO"; then 111272313efbSmrg if test "X${echo_test_string+set}" != Xset; then 111372313efbSmrg # find a string as large as possible, as long as the shell can cope with it 111472313efbSmrg for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do 111572313efbSmrg # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 111672313efbSmrg if { echo_test_string=`eval $cmd`; } 2>/dev/null && 111772313efbSmrg { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null 111872313efbSmrg then 111972313efbSmrg break 112072313efbSmrg fi 112172313efbSmrg done 1122bdcaa8d0Smrg fi 1123bdcaa8d0Smrg 112472313efbSmrg if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 112572313efbSmrg echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 112672313efbSmrg test "X$echo_testing_string" = "X$echo_test_string"; then 112772313efbSmrg : 112872313efbSmrg else 112972313efbSmrg # The Solaris, AIX, and Digital Unix default echo programs unquote 113072313efbSmrg # backslashes. This makes it impossible to quote backslashes using 113172313efbSmrg # echo "$something" | sed 's/\\/\\\\/g' 113272313efbSmrg # 113372313efbSmrg # So, first we look for a working echo in the user's PATH. 1134bdcaa8d0Smrg 113572313efbSmrg lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 113672313efbSmrg for dir in $PATH /usr/ucb; do 113772313efbSmrg IFS="$lt_save_ifs" 113872313efbSmrg if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 113972313efbSmrg test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 114072313efbSmrg echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 114172313efbSmrg test "X$echo_testing_string" = "X$echo_test_string"; then 114272313efbSmrg ECHO="$dir/echo" 114372313efbSmrg break 114472313efbSmrg fi 114572313efbSmrg done 114672313efbSmrg IFS="$lt_save_ifs" 1147bdcaa8d0Smrg 114872313efbSmrg if test "X$ECHO" = Xecho; then 114972313efbSmrg # We didn't find a better echo, so look for alternatives. 115072313efbSmrg if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && 115172313efbSmrg echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && 115272313efbSmrg test "X$echo_testing_string" = "X$echo_test_string"; then 115372313efbSmrg # This shell has a builtin print -r that does the trick. 115472313efbSmrg ECHO='print -r' 115572313efbSmrg elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && 115672313efbSmrg test "X$CONFIG_SHELL" != X/bin/ksh; then 115772313efbSmrg # If we have ksh, try running configure again with it. 115872313efbSmrg ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 115972313efbSmrg export ORIGINAL_CONFIG_SHELL 116072313efbSmrg CONFIG_SHELL=/bin/ksh 116172313efbSmrg export CONFIG_SHELL 116272313efbSmrg exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"} 116372313efbSmrg else 116472313efbSmrg # Try using printf. 116572313efbSmrg ECHO='printf %s\n' 116672313efbSmrg if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 116772313efbSmrg echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 116872313efbSmrg test "X$echo_testing_string" = "X$echo_test_string"; then 116972313efbSmrg # Cool, printf works 117072313efbSmrg : 117172313efbSmrg elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && 117272313efbSmrg test "X$echo_testing_string" = 'X\t' && 117372313efbSmrg echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && 117472313efbSmrg test "X$echo_testing_string" = "X$echo_test_string"; then 117572313efbSmrg CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 117672313efbSmrg export CONFIG_SHELL 117772313efbSmrg SHELL="$CONFIG_SHELL" 117872313efbSmrg export SHELL 117972313efbSmrg ECHO="$CONFIG_SHELL [$]0 --fallback-echo" 118072313efbSmrg elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && 118172313efbSmrg test "X$echo_testing_string" = 'X\t' && 118272313efbSmrg echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && 118372313efbSmrg test "X$echo_testing_string" = "X$echo_test_string"; then 118472313efbSmrg ECHO="$CONFIG_SHELL [$]0 --fallback-echo" 118572313efbSmrg else 118672313efbSmrg # maybe with a smaller string... 118772313efbSmrg prev=: 1188bdcaa8d0Smrg 118972313efbSmrg for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do 119072313efbSmrg if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null 119172313efbSmrg then 119272313efbSmrg break 119372313efbSmrg fi 119472313efbSmrg prev="$cmd" 119572313efbSmrg done 1196bdcaa8d0Smrg 119772313efbSmrg if test "$prev" != 'sed 50q "[$]0"'; then 119872313efbSmrg echo_test_string=`eval $prev` 119972313efbSmrg export echo_test_string 120072313efbSmrg exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"} 120172313efbSmrg else 120272313efbSmrg # Oops. We lost completely, so just stick with echo. 120372313efbSmrg ECHO=echo 120472313efbSmrg fi 120572313efbSmrg fi 120672313efbSmrg fi 120772313efbSmrg fi 1208bdcaa8d0Smrg fi 1209bdcaa8d0Smrgfi 1210bdcaa8d0Smrg 121172313efbSmrg# Copy echo and quote the copy suitably for passing to libtool from 121272313efbSmrg# the Makefile, instead of quoting the original, which is used later. 121372313efbSmrglt_ECHO=$ECHO 121472313efbSmrgif test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then 121572313efbSmrg lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo" 121672313efbSmrgfi 1217bdcaa8d0Smrg 121872313efbSmrgAC_SUBST(lt_ECHO) 121972313efbSmrg]) 122072313efbSmrg_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts]) 122172313efbSmrg_LT_DECL([], [ECHO], [1], 122272313efbSmrg [An echo program that does not interpret backslashes]) 122372313efbSmrg])# _LT_PROG_ECHO_BACKSLASH 1224bdcaa8d0Smrg 1225bdcaa8d0Smrg 122672313efbSmrg# _LT_ENABLE_LOCK 122772313efbSmrg# --------------- 122872313efbSmrgm4_defun([_LT_ENABLE_LOCK], 122972313efbSmrg[AC_ARG_ENABLE([libtool-lock], 123072313efbSmrg [AS_HELP_STRING([--disable-libtool-lock], 123172313efbSmrg [avoid locking (might break parallel builds)])]) 123272313efbSmrgtest "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 123372313efbSmrg 123472313efbSmrg# Some flags need to be propagated to the compiler or linker for good 123572313efbSmrg# libtool support. 123672313efbSmrgcase $host in 123772313efbSmrgia64-*-hpux*) 123872313efbSmrg # Find out which ABI we are using. 123972313efbSmrg echo 'int i;' > conftest.$ac_ext 124072313efbSmrg if AC_TRY_EVAL(ac_compile); then 124172313efbSmrg case `/usr/bin/file conftest.$ac_objext` in 124272313efbSmrg *ELF-32*) 124372313efbSmrg HPUX_IA64_MODE="32" 124472313efbSmrg ;; 124572313efbSmrg *ELF-64*) 124672313efbSmrg HPUX_IA64_MODE="64" 124772313efbSmrg ;; 1248bdcaa8d0Smrg esac 124972313efbSmrg fi 125072313efbSmrg rm -rf conftest* 125172313efbSmrg ;; 125272313efbSmrg*-*-irix6*) 125372313efbSmrg # Find out which ABI we are using. 125472313efbSmrg echo '[#]line __oline__ "configure"' > conftest.$ac_ext 125572313efbSmrg if AC_TRY_EVAL(ac_compile); then 125672313efbSmrg if test "$lt_cv_prog_gnu_ld" = yes; then 125772313efbSmrg case `/usr/bin/file conftest.$ac_objext` in 125872313efbSmrg *32-bit*) 125972313efbSmrg LD="${LD-ld} -melf32bsmip" 126072313efbSmrg ;; 126172313efbSmrg *N32*) 126272313efbSmrg LD="${LD-ld} -melf32bmipn32" 126372313efbSmrg ;; 126472313efbSmrg *64-bit*) 126572313efbSmrg LD="${LD-ld} -melf64bmip" 126672313efbSmrg ;; 126772313efbSmrg esac 1268bdcaa8d0Smrg else 126972313efbSmrg case `/usr/bin/file conftest.$ac_objext` in 127072313efbSmrg *32-bit*) 127172313efbSmrg LD="${LD-ld} -32" 127272313efbSmrg ;; 127372313efbSmrg *N32*) 127472313efbSmrg LD="${LD-ld} -n32" 127572313efbSmrg ;; 127672313efbSmrg *64-bit*) 127772313efbSmrg LD="${LD-ld} -64" 127872313efbSmrg ;; 127972313efbSmrg esac 1280bdcaa8d0Smrg fi 1281bdcaa8d0Smrg fi 128272313efbSmrg rm -rf conftest* 1283bdcaa8d0Smrg ;; 1284bdcaa8d0Smrg 128572313efbSmrgx86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 128672313efbSmrgs390*-*linux*|s390*-*tpf*|sparc*-*linux*) 128772313efbSmrg # Find out which ABI we are using. 128872313efbSmrg echo 'int i;' > conftest.$ac_ext 128972313efbSmrg if AC_TRY_EVAL(ac_compile); then 129072313efbSmrg case `/usr/bin/file conftest.o` in 129172313efbSmrg *32-bit*) 129272313efbSmrg case $host in 129372313efbSmrg x86_64-*kfreebsd*-gnu) 129472313efbSmrg LD="${LD-ld} -m elf_i386_fbsd" 129572313efbSmrg ;; 129672313efbSmrg x86_64-*linux*) 129772313efbSmrg LD="${LD-ld} -m elf_i386" 129872313efbSmrg ;; 129972313efbSmrg ppc64-*linux*|powerpc64-*linux*) 130072313efbSmrg LD="${LD-ld} -m elf32ppclinux" 130172313efbSmrg ;; 130272313efbSmrg s390x-*linux*) 130372313efbSmrg LD="${LD-ld} -m elf_s390" 130472313efbSmrg ;; 130572313efbSmrg sparc64-*linux*) 130672313efbSmrg LD="${LD-ld} -m elf32_sparc" 130772313efbSmrg ;; 130872313efbSmrg esac 130972313efbSmrg ;; 131072313efbSmrg *64-bit*) 131172313efbSmrg case $host in 131272313efbSmrg x86_64-*kfreebsd*-gnu) 131372313efbSmrg LD="${LD-ld} -m elf_x86_64_fbsd" 131472313efbSmrg ;; 131572313efbSmrg x86_64-*linux*) 131672313efbSmrg LD="${LD-ld} -m elf_x86_64" 131772313efbSmrg ;; 131872313efbSmrg ppc*-*linux*|powerpc*-*linux*) 131972313efbSmrg LD="${LD-ld} -m elf64ppc" 132072313efbSmrg ;; 132172313efbSmrg s390*-*linux*|s390*-*tpf*) 132272313efbSmrg LD="${LD-ld} -m elf64_s390" 132372313efbSmrg ;; 132472313efbSmrg sparc*-*linux*) 132572313efbSmrg LD="${LD-ld} -m elf64_sparc" 132672313efbSmrg ;; 132772313efbSmrg esac 132872313efbSmrg ;; 132972313efbSmrg esac 133072313efbSmrg fi 133172313efbSmrg rm -rf conftest* 1332bdcaa8d0Smrg ;; 1333bdcaa8d0Smrg 133472313efbSmrg*-*-sco3.2v5*) 133572313efbSmrg # On SCO OpenServer 5, we need -belf to get full-featured binaries. 133672313efbSmrg SAVE_CFLAGS="$CFLAGS" 133772313efbSmrg CFLAGS="$CFLAGS -belf" 133872313efbSmrg AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, 133972313efbSmrg [AC_LANG_PUSH(C) 134072313efbSmrg AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) 134172313efbSmrg AC_LANG_POP]) 134272313efbSmrg if test x"$lt_cv_cc_needs_belf" != x"yes"; then 134372313efbSmrg # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 134472313efbSmrg CFLAGS="$SAVE_CFLAGS" 134572313efbSmrg fi 1346bdcaa8d0Smrg ;; 134772313efbSmrgsparc*-*solaris*) 134872313efbSmrg # Find out which ABI we are using. 134972313efbSmrg echo 'int i;' > conftest.$ac_ext 135072313efbSmrg if AC_TRY_EVAL(ac_compile); then 135172313efbSmrg case `/usr/bin/file conftest.o` in 135272313efbSmrg *64-bit*) 135372313efbSmrg case $lt_cv_prog_gnu_ld in 135472313efbSmrg yes*) LD="${LD-ld} -m elf64_sparc" ;; 135572313efbSmrg *) 135672313efbSmrg if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 135772313efbSmrg LD="${LD-ld} -64" 135872313efbSmrg fi 135972313efbSmrg ;; 136072313efbSmrg esac 136172313efbSmrg ;; 136272313efbSmrg esac 136372313efbSmrg fi 136472313efbSmrg rm -rf conftest* 1365bdcaa8d0Smrg ;; 136672313efbSmrgesac 1367bdcaa8d0Smrg 136872313efbSmrgneed_locks="$enable_libtool_lock" 136972313efbSmrg])# _LT_ENABLE_LOCK 1370bdcaa8d0Smrg 1371bdcaa8d0Smrg 137272313efbSmrg# _LT_CMD_OLD_ARCHIVE 137372313efbSmrg# ------------------- 137472313efbSmrgm4_defun([_LT_CMD_OLD_ARCHIVE], 137572313efbSmrg[AC_CHECK_TOOL(AR, ar, false) 137672313efbSmrgtest -z "$AR" && AR=ar 137772313efbSmrgtest -z "$AR_FLAGS" && AR_FLAGS=cru 137872313efbSmrg_LT_DECL([], [AR], [1], [The archiver]) 137972313efbSmrg_LT_DECL([], [AR_FLAGS], [1]) 138072313efbSmrg 138172313efbSmrgAC_CHECK_TOOL(STRIP, strip, :) 138272313efbSmrgtest -z "$STRIP" && STRIP=: 138372313efbSmrg_LT_DECL([], [STRIP], [1], [A symbol stripping program]) 138472313efbSmrg 138572313efbSmrgAC_CHECK_TOOL(RANLIB, ranlib, :) 138672313efbSmrgtest -z "$RANLIB" && RANLIB=: 138772313efbSmrg_LT_DECL([], [RANLIB], [1], 138872313efbSmrg [Commands used to install an old-style archive]) 138972313efbSmrg 139072313efbSmrg# Determine commands to create old-style static archives. 139172313efbSmrgold_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 139272313efbSmrgold_postinstall_cmds='chmod 644 $oldlib' 139372313efbSmrgold_postuninstall_cmds= 1394bdcaa8d0Smrg 139572313efbSmrgif test -n "$RANLIB"; then 139672313efbSmrg case $host_os in 139772313efbSmrg openbsd*) 139872313efbSmrg old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 139972313efbSmrg ;; 1400bdcaa8d0Smrg *) 140172313efbSmrg old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 1402bdcaa8d0Smrg ;; 1403bdcaa8d0Smrg esac 140472313efbSmrg old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 140572313efbSmrgfi 140672313efbSmrg_LT_DECL([], [old_postinstall_cmds], [2]) 140772313efbSmrg_LT_DECL([], [old_postuninstall_cmds], [2]) 140872313efbSmrg_LT_TAGDECL([], [old_archive_cmds], [2], 140972313efbSmrg [Commands used to build an old-style archive]) 141072313efbSmrg])# _LT_CMD_OLD_ARCHIVE 1411bdcaa8d0Smrg 1412bdcaa8d0Smrg 141372313efbSmrg# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, 141472313efbSmrg# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) 141572313efbSmrg# ---------------------------------------------------------------- 141672313efbSmrg# Check whether the given compiler option works 141772313efbSmrgAC_DEFUN([_LT_COMPILER_OPTION], 141872313efbSmrg[m4_require([_LT_FILEUTILS_DEFAULTS])dnl 141972313efbSmrgm4_require([_LT_DECL_SED])dnl 142072313efbSmrgAC_CACHE_CHECK([$1], [$2], 142172313efbSmrg [$2=no 142272313efbSmrg m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) 142372313efbSmrg echo "$lt_simple_compile_test_code" > conftest.$ac_ext 142472313efbSmrg lt_compiler_flag="$3" 142572313efbSmrg # Insert the option either (1) after the last *FLAGS variable, or 142672313efbSmrg # (2) before a word containing "conftest.", or (3) at the end. 142772313efbSmrg # Note that $ac_compile itself does not contain backslashes and begins 142872313efbSmrg # with a dollar sign (not a hyphen), so the echo should work correctly. 142972313efbSmrg # The option is referenced via a variable to avoid confusing sed. 143072313efbSmrg lt_compile=`echo "$ac_compile" | $SED \ 143172313efbSmrg -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 143272313efbSmrg -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ 143372313efbSmrg -e 's:$: $lt_compiler_flag:'` 143472313efbSmrg (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) 143572313efbSmrg (eval "$lt_compile" 2>conftest.err) 143672313efbSmrg ac_status=$? 143772313efbSmrg cat conftest.err >&AS_MESSAGE_LOG_FD 143872313efbSmrg echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD 143972313efbSmrg if (exit $ac_status) && test -s "$ac_outfile"; then 144072313efbSmrg # The compiler can only warn and ignore the option if not recognized 144172313efbSmrg # So say no if there are warnings other than the usual output. 144272313efbSmrg $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 144372313efbSmrg $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 144472313efbSmrg if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 144572313efbSmrg $2=yes 144672313efbSmrg fi 144772313efbSmrg fi 144872313efbSmrg $RM conftest* 144972313efbSmrg]) 1450bdcaa8d0Smrg 145172313efbSmrgif test x"[$]$2" = xyes; then 145272313efbSmrg m4_if([$5], , :, [$5]) 145372313efbSmrgelse 145472313efbSmrg m4_if([$6], , :, [$6]) 145572313efbSmrgfi 145672313efbSmrg])# _LT_COMPILER_OPTION 1457bdcaa8d0Smrg 145872313efbSmrg# Old name: 145972313efbSmrgAU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION]) 146072313efbSmrgdnl aclocal-1.4 backwards compatibility: 146172313efbSmrgdnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], []) 146272313efbSmrg 146372313efbSmrg 146472313efbSmrg# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, 146572313efbSmrg# [ACTION-SUCCESS], [ACTION-FAILURE]) 146672313efbSmrg# ---------------------------------------------------- 146772313efbSmrg# Check whether the given linker option works 146872313efbSmrgAC_DEFUN([_LT_LINKER_OPTION], 146972313efbSmrg[m4_require([_LT_FILEUTILS_DEFAULTS])dnl 147072313efbSmrgm4_require([_LT_DECL_SED])dnl 147172313efbSmrgAC_CACHE_CHECK([$1], [$2], 147272313efbSmrg [$2=no 147372313efbSmrg save_LDFLAGS="$LDFLAGS" 147472313efbSmrg LDFLAGS="$LDFLAGS $3" 147572313efbSmrg echo "$lt_simple_link_test_code" > conftest.$ac_ext 147672313efbSmrg if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 147772313efbSmrg # The linker can only warn and ignore the option if not recognized 147872313efbSmrg # So say no if there are warnings 147972313efbSmrg if test -s conftest.err; then 148072313efbSmrg # Append any errors to the config.log. 148172313efbSmrg cat conftest.err 1>&AS_MESSAGE_LOG_FD 148272313efbSmrg $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 148372313efbSmrg $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 148472313efbSmrg if diff conftest.exp conftest.er2 >/dev/null; then 148572313efbSmrg $2=yes 148672313efbSmrg fi 148772313efbSmrg else 148872313efbSmrg $2=yes 148972313efbSmrg fi 149072313efbSmrg fi 149172313efbSmrg $RM -r conftest* 149272313efbSmrg LDFLAGS="$save_LDFLAGS" 149372313efbSmrg]) 149472313efbSmrg 149572313efbSmrgif test x"[$]$2" = xyes; then 149672313efbSmrg m4_if([$4], , :, [$4]) 149772313efbSmrgelse 149872313efbSmrg m4_if([$5], , :, [$5]) 149972313efbSmrgfi 150072313efbSmrg])# _LT_LINKER_OPTION 150172313efbSmrg 150272313efbSmrg# Old name: 150372313efbSmrgAU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION]) 150472313efbSmrgdnl aclocal-1.4 backwards compatibility: 150572313efbSmrgdnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], []) 150672313efbSmrg 150772313efbSmrg 150872313efbSmrg# LT_CMD_MAX_LEN 150972313efbSmrg#--------------- 151072313efbSmrgAC_DEFUN([LT_CMD_MAX_LEN], 151172313efbSmrg[AC_REQUIRE([AC_CANONICAL_HOST])dnl 151272313efbSmrg# find the maximum length of command line arguments 151372313efbSmrgAC_MSG_CHECKING([the maximum length of command line arguments]) 151472313efbSmrgAC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl 151572313efbSmrg i=0 151672313efbSmrg teststring="ABCD" 151772313efbSmrg 151872313efbSmrg case $build_os in 151972313efbSmrg msdosdjgpp*) 152072313efbSmrg # On DJGPP, this test can blow up pretty badly due to problems in libc 152172313efbSmrg # (any single argument exceeding 2000 bytes causes a buffer overrun 152272313efbSmrg # during glob expansion). Even if it were fixed, the result of this 152372313efbSmrg # check would be larger than it should be. 152472313efbSmrg lt_cv_sys_max_cmd_len=12288; # 12K is about right 1525bdcaa8d0Smrg ;; 152672313efbSmrg 152772313efbSmrg gnu*) 152872313efbSmrg # Under GNU Hurd, this test is not required because there is 152972313efbSmrg # no limit to the length of command line arguments. 153072313efbSmrg # Libtool will interpret -1 as no limit whatsoever 153172313efbSmrg lt_cv_sys_max_cmd_len=-1; 1532bdcaa8d0Smrg ;; 153372313efbSmrg 153472313efbSmrg cygwin* | mingw* | cegcc*) 153572313efbSmrg # On Win9x/ME, this test blows up -- it succeeds, but takes 153672313efbSmrg # about 5 minutes as the teststring grows exponentially. 153772313efbSmrg # Worse, since 9x/ME are not pre-emptively multitasking, 153872313efbSmrg # you end up with a "frozen" computer, even though with patience 153972313efbSmrg # the test eventually succeeds (with a max line length of 256k). 154072313efbSmrg # Instead, let's just punt: use the minimum linelength reported by 154172313efbSmrg # all of the supported platforms: 8192 (on NT/2K/XP). 154272313efbSmrg lt_cv_sys_max_cmd_len=8192; 1543bdcaa8d0Smrg ;; 1544bdcaa8d0Smrg 154572313efbSmrg amigaos*) 154672313efbSmrg # On AmigaOS with pdksh, this test takes hours, literally. 154772313efbSmrg # So we just punt and use a minimum line length of 8192. 154872313efbSmrg lt_cv_sys_max_cmd_len=8192; 154972313efbSmrg ;; 1550bdcaa8d0Smrg 155172313efbSmrg netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 155272313efbSmrg # This has been around since 386BSD, at least. Likely further. 155372313efbSmrg if test -x /sbin/sysctl; then 155472313efbSmrg lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 155572313efbSmrg elif test -x /usr/sbin/sysctl; then 155672313efbSmrg lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 1557bdcaa8d0Smrg else 155872313efbSmrg lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 1559bdcaa8d0Smrg fi 156072313efbSmrg # And add a safety zone 156172313efbSmrg lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 156272313efbSmrg lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 1563bdcaa8d0Smrg ;; 1564bdcaa8d0Smrg 156572313efbSmrg interix*) 156672313efbSmrg # We know the value 262144 and hardcode it with a safety zone (like BSD) 156772313efbSmrg lt_cv_sys_max_cmd_len=196608 156872313efbSmrg ;; 1569bdcaa8d0Smrg 157072313efbSmrg osf*) 157172313efbSmrg # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 157272313efbSmrg # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 157372313efbSmrg # nice to cause kernel panics so lets avoid the loop below. 157472313efbSmrg # First set a reasonable default. 157572313efbSmrg lt_cv_sys_max_cmd_len=16384 157672313efbSmrg # 157772313efbSmrg if test -x /sbin/sysconfig; then 157872313efbSmrg case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 157972313efbSmrg *1*) lt_cv_sys_max_cmd_len=-1 ;; 158072313efbSmrg esac 158172313efbSmrg fi 158272313efbSmrg ;; 158372313efbSmrg sco3.2v5*) 158472313efbSmrg lt_cv_sys_max_cmd_len=102400 158572313efbSmrg ;; 158672313efbSmrg sysv5* | sco5v6* | sysv4.2uw2*) 158772313efbSmrg kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 158872313efbSmrg if test -n "$kargmax"; then 158972313efbSmrg lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'` 159072313efbSmrg else 159172313efbSmrg lt_cv_sys_max_cmd_len=32768 159272313efbSmrg fi 1593bdcaa8d0Smrg ;; 1594bdcaa8d0Smrg *) 159572313efbSmrg lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 159672313efbSmrg if test -n "$lt_cv_sys_max_cmd_len"; then 159772313efbSmrg lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 159872313efbSmrg lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 159972313efbSmrg else 160072313efbSmrg # Make teststring a little bigger before we do anything with it. 160172313efbSmrg # a 1K string should be a reasonable start. 160272313efbSmrg for i in 1 2 3 4 5 6 7 8 ; do 160372313efbSmrg teststring=$teststring$teststring 160472313efbSmrg done 160572313efbSmrg SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 160672313efbSmrg # If test is not a shell built-in, we'll probably end up computing a 160772313efbSmrg # maximum length that is only half of the actual maximum length, but 160872313efbSmrg # we can't tell. 160972313efbSmrg while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ 161072313efbSmrg = "XX$teststring$teststring"; } >/dev/null 2>&1 && 161172313efbSmrg test $i != 17 # 1/2 MB should be enough 161272313efbSmrg do 161372313efbSmrg i=`expr $i + 1` 161472313efbSmrg teststring=$teststring$teststring 161572313efbSmrg done 161672313efbSmrg # Only check the string length outside the loop. 161772313efbSmrg lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 161872313efbSmrg teststring= 161972313efbSmrg # Add a significant safety factor because C++ compilers can tack on 162072313efbSmrg # massive amounts of additional arguments before passing them to the 162172313efbSmrg # linker. It appears as though 1/2 is a usable value. 162272313efbSmrg lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 162372313efbSmrg fi 1624bdcaa8d0Smrg ;; 1625bdcaa8d0Smrg esac 162672313efbSmrg]) 162772313efbSmrgif test -n $lt_cv_sys_max_cmd_len ; then 162872313efbSmrg AC_MSG_RESULT($lt_cv_sys_max_cmd_len) 162972313efbSmrgelse 163072313efbSmrg AC_MSG_RESULT(none) 163172313efbSmrgfi 163272313efbSmrgmax_cmd_len=$lt_cv_sys_max_cmd_len 163372313efbSmrg_LT_DECL([], [max_cmd_len], [0], 163472313efbSmrg [What is the maximum length of a command?]) 163572313efbSmrg])# LT_CMD_MAX_LEN 1636bdcaa8d0Smrg 163772313efbSmrg# Old name: 163872313efbSmrgAU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN]) 163972313efbSmrgdnl aclocal-1.4 backwards compatibility: 164072313efbSmrgdnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], []) 1641bdcaa8d0Smrg 1642bdcaa8d0Smrg 164372313efbSmrg# _LT_HEADER_DLFCN 164472313efbSmrg# ---------------- 164572313efbSmrgm4_defun([_LT_HEADER_DLFCN], 164672313efbSmrg[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl 164772313efbSmrg])# _LT_HEADER_DLFCN 1648bdcaa8d0Smrg 1649bdcaa8d0Smrg 165072313efbSmrg# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, 165172313efbSmrg# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) 165272313efbSmrg# ---------------------------------------------------------------- 165372313efbSmrgm4_defun([_LT_TRY_DLOPEN_SELF], 165472313efbSmrg[m4_require([_LT_HEADER_DLFCN])dnl 165572313efbSmrgif test "$cross_compiling" = yes; then : 165672313efbSmrg [$4] 165772313efbSmrgelse 165872313efbSmrg lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 165972313efbSmrg lt_status=$lt_dlunknown 166072313efbSmrg cat > conftest.$ac_ext <<_LT_EOF 166172313efbSmrg[#line __oline__ "configure" 166272313efbSmrg#include "confdefs.h" 1663bdcaa8d0Smrg 166472313efbSmrg#if HAVE_DLFCN_H 166572313efbSmrg#include <dlfcn.h> 166672313efbSmrg#endif 1667bdcaa8d0Smrg 166872313efbSmrg#include <stdio.h> 1669bdcaa8d0Smrg 167072313efbSmrg#ifdef RTLD_GLOBAL 167172313efbSmrg# define LT_DLGLOBAL RTLD_GLOBAL 167272313efbSmrg#else 167372313efbSmrg# ifdef DL_GLOBAL 167472313efbSmrg# define LT_DLGLOBAL DL_GLOBAL 167572313efbSmrg# else 167672313efbSmrg# define LT_DLGLOBAL 0 167772313efbSmrg# endif 167872313efbSmrg#endif 1679bdcaa8d0Smrg 168072313efbSmrg/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 168172313efbSmrg find out it does not work in some platform. */ 168272313efbSmrg#ifndef LT_DLLAZY_OR_NOW 168372313efbSmrg# ifdef RTLD_LAZY 168472313efbSmrg# define LT_DLLAZY_OR_NOW RTLD_LAZY 168572313efbSmrg# else 168672313efbSmrg# ifdef DL_LAZY 168772313efbSmrg# define LT_DLLAZY_OR_NOW DL_LAZY 168872313efbSmrg# else 168972313efbSmrg# ifdef RTLD_NOW 169072313efbSmrg# define LT_DLLAZY_OR_NOW RTLD_NOW 169172313efbSmrg# else 169272313efbSmrg# ifdef DL_NOW 169372313efbSmrg# define LT_DLLAZY_OR_NOW DL_NOW 169472313efbSmrg# else 169572313efbSmrg# define LT_DLLAZY_OR_NOW 0 169672313efbSmrg# endif 169772313efbSmrg# endif 169872313efbSmrg# endif 169972313efbSmrg# endif 170072313efbSmrg#endif 170172313efbSmrg 170272313efbSmrgvoid fnord() { int i=42;} 170372313efbSmrgint main () 170472313efbSmrg{ 170572313efbSmrg void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 170672313efbSmrg int status = $lt_dlunknown; 170772313efbSmrg 170872313efbSmrg if (self) 170972313efbSmrg { 171072313efbSmrg if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 171172313efbSmrg else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 171272313efbSmrg /* dlclose (self); */ 171372313efbSmrg } 1714bdcaa8d0Smrg else 171572313efbSmrg puts (dlerror ()); 171672313efbSmrg 171772313efbSmrg return status; 171872313efbSmrg}] 171972313efbSmrg_LT_EOF 172072313efbSmrg if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then 172172313efbSmrg (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null 172272313efbSmrg lt_status=$? 172372313efbSmrg case x$lt_status in 172472313efbSmrg x$lt_dlno_uscore) $1 ;; 172572313efbSmrg x$lt_dlneed_uscore) $2 ;; 172672313efbSmrg x$lt_dlunknown|x*) $3 ;; 172772313efbSmrg esac 172872313efbSmrg else : 172972313efbSmrg # compilation failed 173072313efbSmrg $3 1731bdcaa8d0Smrg fi 173272313efbSmrgfi 173372313efbSmrgrm -fr conftest* 173472313efbSmrg])# _LT_TRY_DLOPEN_SELF 1735bdcaa8d0Smrg 1736bdcaa8d0Smrg 173772313efbSmrg# LT_SYS_DLOPEN_SELF 173872313efbSmrg# ------------------ 173972313efbSmrgAC_DEFUN([LT_SYS_DLOPEN_SELF], 174072313efbSmrg[m4_require([_LT_HEADER_DLFCN])dnl 174172313efbSmrgif test "x$enable_dlopen" != xyes; then 174272313efbSmrg enable_dlopen=unknown 174372313efbSmrg enable_dlopen_self=unknown 174472313efbSmrg enable_dlopen_self_static=unknown 174572313efbSmrgelse 174672313efbSmrg lt_cv_dlopen=no 174772313efbSmrg lt_cv_dlopen_libs= 1748bdcaa8d0Smrg 174972313efbSmrg case $host_os in 175072313efbSmrg beos*) 175172313efbSmrg lt_cv_dlopen="load_add_on" 175272313efbSmrg lt_cv_dlopen_libs= 175372313efbSmrg lt_cv_dlopen_self=yes 175472313efbSmrg ;; 1755bdcaa8d0Smrg 175672313efbSmrg mingw* | pw32* | cegcc*) 175772313efbSmrg lt_cv_dlopen="LoadLibrary" 175872313efbSmrg lt_cv_dlopen_libs= 175972313efbSmrg ;; 1760bdcaa8d0Smrg 176172313efbSmrg cygwin*) 176272313efbSmrg lt_cv_dlopen="dlopen" 176372313efbSmrg lt_cv_dlopen_libs= 176472313efbSmrg ;; 1765bdcaa8d0Smrg 176672313efbSmrg darwin*) 176772313efbSmrg # if libdl is installed we need to link against it 176872313efbSmrg AC_CHECK_LIB([dl], [dlopen], 176972313efbSmrg [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[ 177072313efbSmrg lt_cv_dlopen="dyld" 177172313efbSmrg lt_cv_dlopen_libs= 177272313efbSmrg lt_cv_dlopen_self=yes 177372313efbSmrg ]) 177472313efbSmrg ;; 1775bdcaa8d0Smrg 177672313efbSmrg *) 177772313efbSmrg AC_CHECK_FUNC([shl_load], 177872313efbSmrg [lt_cv_dlopen="shl_load"], 177972313efbSmrg [AC_CHECK_LIB([dld], [shl_load], 178072313efbSmrg [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"], 178172313efbSmrg [AC_CHECK_FUNC([dlopen], 178272313efbSmrg [lt_cv_dlopen="dlopen"], 178372313efbSmrg [AC_CHECK_LIB([dl], [dlopen], 178472313efbSmrg [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], 178572313efbSmrg [AC_CHECK_LIB([svld], [dlopen], 178672313efbSmrg [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], 178772313efbSmrg [AC_CHECK_LIB([dld], [dld_link], 178872313efbSmrg [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"]) 178972313efbSmrg ]) 179072313efbSmrg ]) 179172313efbSmrg ]) 179272313efbSmrg ]) 179372313efbSmrg ]) 179472313efbSmrg ;; 179572313efbSmrg esac 179672313efbSmrg 179772313efbSmrg if test "x$lt_cv_dlopen" != xno; then 179872313efbSmrg enable_dlopen=yes 1799bdcaa8d0Smrg else 180072313efbSmrg enable_dlopen=no 1801bdcaa8d0Smrg fi 1802bdcaa8d0Smrg 180372313efbSmrg case $lt_cv_dlopen in 180472313efbSmrg dlopen) 180572313efbSmrg save_CPPFLAGS="$CPPFLAGS" 180672313efbSmrg test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 1807bdcaa8d0Smrg 180872313efbSmrg save_LDFLAGS="$LDFLAGS" 180972313efbSmrg wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 1810bdcaa8d0Smrg 181172313efbSmrg save_LIBS="$LIBS" 181272313efbSmrg LIBS="$lt_cv_dlopen_libs $LIBS" 1813bdcaa8d0Smrg 181472313efbSmrg AC_CACHE_CHECK([whether a program can dlopen itself], 181572313efbSmrg lt_cv_dlopen_self, [dnl 181672313efbSmrg _LT_TRY_DLOPEN_SELF( 181772313efbSmrg lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, 181872313efbSmrg lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) 181972313efbSmrg ]) 1820bdcaa8d0Smrg 182172313efbSmrg if test "x$lt_cv_dlopen_self" = xyes; then 182272313efbSmrg wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 182372313efbSmrg AC_CACHE_CHECK([whether a statically linked program can dlopen itself], 182472313efbSmrg lt_cv_dlopen_self_static, [dnl 182572313efbSmrg _LT_TRY_DLOPEN_SELF( 182672313efbSmrg lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, 182772313efbSmrg lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) 182872313efbSmrg ]) 1829bdcaa8d0Smrg fi 1830bdcaa8d0Smrg 183172313efbSmrg CPPFLAGS="$save_CPPFLAGS" 183272313efbSmrg LDFLAGS="$save_LDFLAGS" 183372313efbSmrg LIBS="$save_LIBS" 183472313efbSmrg ;; 183572313efbSmrg esac 1836bdcaa8d0Smrg 183772313efbSmrg case $lt_cv_dlopen_self in 183872313efbSmrg yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 183972313efbSmrg *) enable_dlopen_self=unknown ;; 184072313efbSmrg esac 1841bdcaa8d0Smrg 184272313efbSmrg case $lt_cv_dlopen_self_static in 184372313efbSmrg yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 184472313efbSmrg *) enable_dlopen_self_static=unknown ;; 184572313efbSmrg esac 1846bdcaa8d0Smrgfi 184772313efbSmrg_LT_DECL([dlopen_support], [enable_dlopen], [0], 184872313efbSmrg [Whether dlopen is supported]) 184972313efbSmrg_LT_DECL([dlopen_self], [enable_dlopen_self], [0], 185072313efbSmrg [Whether dlopen of programs is supported]) 185172313efbSmrg_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0], 185272313efbSmrg [Whether dlopen of statically linked programs is supported]) 185372313efbSmrg])# LT_SYS_DLOPEN_SELF 1854bdcaa8d0Smrg 185572313efbSmrg# Old name: 185672313efbSmrgAU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF]) 185772313efbSmrgdnl aclocal-1.4 backwards compatibility: 185872313efbSmrgdnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], []) 1859bdcaa8d0Smrg 1860bdcaa8d0Smrg 186172313efbSmrg# _LT_COMPILER_C_O([TAGNAME]) 186272313efbSmrg# --------------------------- 186372313efbSmrg# Check to see if options -c and -o are simultaneously supported by compiler. 186472313efbSmrg# This macro does not hard code the compiler like AC_PROG_CC_C_O. 186572313efbSmrgm4_defun([_LT_COMPILER_C_O], 186672313efbSmrg[m4_require([_LT_DECL_SED])dnl 186772313efbSmrgm4_require([_LT_FILEUTILS_DEFAULTS])dnl 186872313efbSmrgm4_require([_LT_TAG_COMPILER])dnl 186972313efbSmrgAC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], 187072313efbSmrg [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)], 187172313efbSmrg [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no 187272313efbSmrg $RM -r conftest 2>/dev/null 187372313efbSmrg mkdir conftest 187472313efbSmrg cd conftest 187572313efbSmrg mkdir out 187672313efbSmrg echo "$lt_simple_compile_test_code" > conftest.$ac_ext 1877bdcaa8d0Smrg 187872313efbSmrg lt_compiler_flag="-o out/conftest2.$ac_objext" 187972313efbSmrg # Insert the option either (1) after the last *FLAGS variable, or 188072313efbSmrg # (2) before a word containing "conftest.", or (3) at the end. 188172313efbSmrg # Note that $ac_compile itself does not contain backslashes and begins 188272313efbSmrg # with a dollar sign (not a hyphen), so the echo should work correctly. 188372313efbSmrg lt_compile=`echo "$ac_compile" | $SED \ 188472313efbSmrg -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 188572313efbSmrg -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ 188672313efbSmrg -e 's:$: $lt_compiler_flag:'` 188772313efbSmrg (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) 188872313efbSmrg (eval "$lt_compile" 2>out/conftest.err) 188972313efbSmrg ac_status=$? 189072313efbSmrg cat out/conftest.err >&AS_MESSAGE_LOG_FD 189172313efbSmrg echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD 189272313efbSmrg if (exit $ac_status) && test -s out/conftest2.$ac_objext 189372313efbSmrg then 189472313efbSmrg # The compiler can only warn and ignore the option if not recognized 189572313efbSmrg # So say no if there are warnings 189672313efbSmrg $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 189772313efbSmrg $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 189872313efbSmrg if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 189972313efbSmrg _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes 190072313efbSmrg fi 190172313efbSmrg fi 190272313efbSmrg chmod u+w . 2>&AS_MESSAGE_LOG_FD 190372313efbSmrg $RM conftest* 190472313efbSmrg # SGI C++ compiler will create directory out/ii_files/ for 190572313efbSmrg # template instantiation 190672313efbSmrg test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 190772313efbSmrg $RM out/* && rmdir out 190872313efbSmrg cd .. 190972313efbSmrg $RM -r conftest 191072313efbSmrg $RM conftest* 191172313efbSmrg]) 191272313efbSmrg_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1], 191372313efbSmrg [Does compiler simultaneously support -c and -o options?]) 191472313efbSmrg])# _LT_COMPILER_C_O 1915bdcaa8d0Smrg 1916bdcaa8d0Smrg 191772313efbSmrg# _LT_COMPILER_FILE_LOCKS([TAGNAME]) 191872313efbSmrg# ---------------------------------- 191972313efbSmrg# Check to see if we can do hard links to lock some files if needed 192072313efbSmrgm4_defun([_LT_COMPILER_FILE_LOCKS], 192172313efbSmrg[m4_require([_LT_ENABLE_LOCK])dnl 192272313efbSmrgm4_require([_LT_FILEUTILS_DEFAULTS])dnl 192372313efbSmrg_LT_COMPILER_C_O([$1]) 1924bdcaa8d0Smrg 192572313efbSmrghard_links="nottested" 192672313efbSmrgif test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then 192772313efbSmrg # do not overwrite the value of need_locks provided by the user 192872313efbSmrg AC_MSG_CHECKING([if we can lock with hard links]) 192972313efbSmrg hard_links=yes 193072313efbSmrg $RM conftest* 193172313efbSmrg ln conftest.a conftest.b 2>/dev/null && hard_links=no 193272313efbSmrg touch conftest.a 193372313efbSmrg ln conftest.a conftest.b 2>&5 || hard_links=no 193472313efbSmrg ln conftest.a conftest.b 2>/dev/null && hard_links=no 193572313efbSmrg AC_MSG_RESULT([$hard_links]) 193672313efbSmrg if test "$hard_links" = no; then 193772313efbSmrg AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe]) 193872313efbSmrg need_locks=warn 193972313efbSmrg fi 194072313efbSmrgelse 194172313efbSmrg need_locks=no 194272313efbSmrgfi 194372313efbSmrg_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?]) 194472313efbSmrg])# _LT_COMPILER_FILE_LOCKS 1945bdcaa8d0Smrg 1946bdcaa8d0Smrg 194772313efbSmrg# _LT_CHECK_OBJDIR 194872313efbSmrg# ---------------- 194972313efbSmrgm4_defun([_LT_CHECK_OBJDIR], 195072313efbSmrg[AC_CACHE_CHECK([for objdir], [lt_cv_objdir], 195172313efbSmrg[rm -f .libs 2>/dev/null 195272313efbSmrgmkdir .libs 2>/dev/null 195372313efbSmrgif test -d .libs; then 195472313efbSmrg lt_cv_objdir=.libs 195572313efbSmrgelse 195672313efbSmrg # MS-DOS does not allow filenames that begin with a dot. 195772313efbSmrg lt_cv_objdir=_libs 195872313efbSmrgfi 195972313efbSmrgrmdir .libs 2>/dev/null]) 196072313efbSmrgobjdir=$lt_cv_objdir 196172313efbSmrg_LT_DECL([], [objdir], [0], 196272313efbSmrg [The name of the directory that contains temporary libtool files])dnl 196372313efbSmrgm4_pattern_allow([LT_OBJDIR])dnl 196472313efbSmrgAC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/", 196572313efbSmrg [Define to the sub-directory in which libtool stores uninstalled libraries.]) 196672313efbSmrg])# _LT_CHECK_OBJDIR 1967bdcaa8d0Smrg 1968bdcaa8d0Smrg 196972313efbSmrg# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME]) 197072313efbSmrg# -------------------------------------- 197172313efbSmrg# Check hardcoding attributes. 197272313efbSmrgm4_defun([_LT_LINKER_HARDCODE_LIBPATH], 197372313efbSmrg[AC_MSG_CHECKING([how to hardcode library paths into programs]) 197472313efbSmrg_LT_TAGVAR(hardcode_action, $1)= 197572313efbSmrgif test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" || 197672313efbSmrg test -n "$_LT_TAGVAR(runpath_var, $1)" || 197772313efbSmrg test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then 1978bdcaa8d0Smrg 197972313efbSmrg # We can hardcode non-existent directories. 198072313efbSmrg if test "$_LT_TAGVAR(hardcode_direct, $1)" != no && 198172313efbSmrg # If the only mechanism to avoid hardcoding is shlibpath_var, we 198272313efbSmrg # have to relink, otherwise we might link with an installed library 198372313efbSmrg # when we should be linking with a yet-to-be-installed one 198472313efbSmrg ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no && 198572313efbSmrg test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then 198672313efbSmrg # Linking always hardcodes the temporary library directory. 198772313efbSmrg _LT_TAGVAR(hardcode_action, $1)=relink 198872313efbSmrg else 198972313efbSmrg # We can link without hardcoding, and we can hardcode nonexisting dirs. 199072313efbSmrg _LT_TAGVAR(hardcode_action, $1)=immediate 199172313efbSmrg fi 199272313efbSmrgelse 199372313efbSmrg # We cannot hardcode anything, or else we can only hardcode existing 199472313efbSmrg # directories. 199572313efbSmrg _LT_TAGVAR(hardcode_action, $1)=unsupported 199672313efbSmrgfi 199772313efbSmrgAC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)]) 1998bdcaa8d0Smrg 199972313efbSmrgif test "$_LT_TAGVAR(hardcode_action, $1)" = relink || 200072313efbSmrg test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then 200172313efbSmrg # Fast installation is not supported 200272313efbSmrg enable_fast_install=no 200372313efbSmrgelif test "$shlibpath_overrides_runpath" = yes || 200472313efbSmrg test "$enable_shared" = no; then 200572313efbSmrg # Fast installation is not necessary 200672313efbSmrg enable_fast_install=needless 200772313efbSmrgfi 200872313efbSmrg_LT_TAGDECL([], [hardcode_action], [0], 200972313efbSmrg [How to hardcode a shared library path into an executable]) 201072313efbSmrg])# _LT_LINKER_HARDCODE_LIBPATH 2011bdcaa8d0Smrg 2012bdcaa8d0Smrg 201372313efbSmrg# _LT_CMD_STRIPLIB 201472313efbSmrg# ---------------- 201572313efbSmrgm4_defun([_LT_CMD_STRIPLIB], 201672313efbSmrg[m4_require([_LT_DECL_EGREP]) 201772313efbSmrgstriplib= 201872313efbSmrgold_striplib= 201972313efbSmrgAC_MSG_CHECKING([whether stripping libraries is possible]) 202072313efbSmrgif test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 202172313efbSmrg test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 202272313efbSmrg test -z "$striplib" && striplib="$STRIP --strip-unneeded" 202372313efbSmrg AC_MSG_RESULT([yes]) 202472313efbSmrgelse 202572313efbSmrg# FIXME - insert some real tests, host_os isn't really good enough 202672313efbSmrg case $host_os in 202772313efbSmrg darwin*) 202872313efbSmrg if test -n "$STRIP" ; then 202972313efbSmrg striplib="$STRIP -x" 203072313efbSmrg old_striplib="$STRIP -S" 203172313efbSmrg AC_MSG_RESULT([yes]) 203272313efbSmrg else 203372313efbSmrg AC_MSG_RESULT([no]) 203472313efbSmrg fi 203572313efbSmrg ;; 203672313efbSmrg *) 203772313efbSmrg AC_MSG_RESULT([no]) 203872313efbSmrg ;; 203972313efbSmrg esac 204072313efbSmrgfi 204172313efbSmrg_LT_DECL([], [old_striplib], [1], [Commands to strip libraries]) 204272313efbSmrg_LT_DECL([], [striplib], [1]) 204372313efbSmrg])# _LT_CMD_STRIPLIB 2044bdcaa8d0Smrg 2045bdcaa8d0Smrg 204672313efbSmrg# _LT_SYS_DYNAMIC_LINKER([TAG]) 204772313efbSmrg# ----------------------------- 204872313efbSmrg# PORTME Fill in your ld.so characteristics 204972313efbSmrgm4_defun([_LT_SYS_DYNAMIC_LINKER], 205072313efbSmrg[AC_REQUIRE([AC_CANONICAL_HOST])dnl 205172313efbSmrgm4_require([_LT_DECL_EGREP])dnl 205272313efbSmrgm4_require([_LT_FILEUTILS_DEFAULTS])dnl 205372313efbSmrgm4_require([_LT_DECL_OBJDUMP])dnl 205472313efbSmrgm4_require([_LT_DECL_SED])dnl 205572313efbSmrgAC_MSG_CHECKING([dynamic linker characteristics]) 205672313efbSmrgm4_if([$1], 205772313efbSmrg [], [ 205872313efbSmrgif test "$GCC" = yes; then 205972313efbSmrg case $host_os in 206072313efbSmrg darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 206172313efbSmrg *) lt_awk_arg="/^libraries:/" ;; 206272313efbSmrg esac 206372313efbSmrg lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 206472313efbSmrg if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then 206572313efbSmrg # if the path contains ";" then we assume it to be the separator 206672313efbSmrg # otherwise default to the standard path separator (i.e. ":") - it is 206772313efbSmrg # assumed that no part of a normal pathname contains ";" but that should 206872313efbSmrg # okay in the real world where ";" in dirpaths is itself problematic. 206972313efbSmrg lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` 207072313efbSmrg else 207172313efbSmrg lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 207272313efbSmrg fi 207372313efbSmrg # Ok, now we have the path, separated by spaces, we can step through it 207472313efbSmrg # and add multilib dir if necessary. 207572313efbSmrg lt_tmp_lt_search_path_spec= 207672313efbSmrg lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 207772313efbSmrg for lt_sys_path in $lt_search_path_spec; do 207872313efbSmrg if test -d "$lt_sys_path/$lt_multi_os_dir"; then 207972313efbSmrg lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 208072313efbSmrg else 208172313efbSmrg test -d "$lt_sys_path" && \ 208272313efbSmrg lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 2083bdcaa8d0Smrg fi 2084bdcaa8d0Smrg done 208572313efbSmrg lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' 208672313efbSmrgBEGIN {RS=" "; FS="/|\n";} { 208772313efbSmrg lt_foo=""; 208872313efbSmrg lt_count=0; 208972313efbSmrg for (lt_i = NF; lt_i > 0; lt_i--) { 209072313efbSmrg if ($lt_i != "" && $lt_i != ".") { 209172313efbSmrg if ($lt_i == "..") { 209272313efbSmrg lt_count++; 209372313efbSmrg } else { 209472313efbSmrg if (lt_count == 0) { 209572313efbSmrg lt_foo="/" $lt_i lt_foo; 209672313efbSmrg } else { 209772313efbSmrg lt_count--; 209872313efbSmrg } 209972313efbSmrg } 210072313efbSmrg } 210172313efbSmrg } 210272313efbSmrg if (lt_foo != "") { lt_freq[[lt_foo]]++; } 210372313efbSmrg if (lt_freq[[lt_foo]] == 1) { print lt_foo; } 210472313efbSmrg}'` 210572313efbSmrg sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` 2106bdcaa8d0Smrgelse 210772313efbSmrg sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 210872313efbSmrgfi]) 210972313efbSmrglibrary_names_spec= 211072313efbSmrglibname_spec='lib$name' 211172313efbSmrgsoname_spec= 211272313efbSmrgshrext_cmds=".so" 211372313efbSmrgpostinstall_cmds= 211472313efbSmrgpostuninstall_cmds= 211572313efbSmrgfinish_cmds= 211672313efbSmrgfinish_eval= 211772313efbSmrgshlibpath_var= 211872313efbSmrgshlibpath_overrides_runpath=unknown 211972313efbSmrgversion_type=none 212072313efbSmrgdynamic_linker="$host_os ld.so" 212172313efbSmrgsys_lib_dlsearch_path_spec="/lib /usr/lib" 212272313efbSmrgneed_lib_prefix=unknown 212372313efbSmrghardcode_into_libs=no 2124bdcaa8d0Smrg 212572313efbSmrg# when you set need_version to no, make sure it does not cause -set_version 212672313efbSmrg# flags to be left without arguments 212772313efbSmrgneed_version=unknown 2128bdcaa8d0Smrg 212972313efbSmrgcase $host_os in 213072313efbSmrgaix3*) 213172313efbSmrg version_type=linux 213272313efbSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 213372313efbSmrg shlibpath_var=LIBPATH 2134bdcaa8d0Smrg 213572313efbSmrg # AIX 3 has no versioning support, so we append a major version to the name. 213672313efbSmrg soname_spec='${libname}${release}${shared_ext}$major' 213772313efbSmrg ;; 2138bdcaa8d0Smrg 213972313efbSmrgaix[[4-9]]*) 214072313efbSmrg version_type=linux 214172313efbSmrg need_lib_prefix=no 214272313efbSmrg need_version=no 214372313efbSmrg hardcode_into_libs=yes 214472313efbSmrg if test "$host_cpu" = ia64; then 214572313efbSmrg # AIX 5 supports IA64 214672313efbSmrg library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 214772313efbSmrg shlibpath_var=LD_LIBRARY_PATH 214872313efbSmrg else 214972313efbSmrg # With GCC up to 2.95.x, collect2 would create an import file 215072313efbSmrg # for dependence libraries. The import file would start with 215172313efbSmrg # the line `#! .'. This would cause the generated library to 215272313efbSmrg # depend on `.', always an invalid library. This was fixed in 215372313efbSmrg # development snapshots of GCC prior to 3.0. 215472313efbSmrg case $host_os in 215572313efbSmrg aix4 | aix4.[[01]] | aix4.[[01]].*) 215672313efbSmrg if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 215772313efbSmrg echo ' yes ' 215872313efbSmrg echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 215972313efbSmrg : 216072313efbSmrg else 216172313efbSmrg can_build_shared=no 216272313efbSmrg fi 2163bdcaa8d0Smrg ;; 216472313efbSmrg esac 216572313efbSmrg # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 216672313efbSmrg # soname into executable. Probably we can add versioning support to 216772313efbSmrg # collect2, so additional links can be useful in future. 216872313efbSmrg if test "$aix_use_runtimelinking" = yes; then 216972313efbSmrg # If using run time linking (on AIX 4.2 or later) use lib<name>.so 217072313efbSmrg # instead of lib<name>.a to let people know that these are not 217172313efbSmrg # typical AIX shared libraries. 217272313efbSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 217372313efbSmrg else 217472313efbSmrg # We preserve .a as extension for shared libraries through AIX4.2 217572313efbSmrg # and later when we are not doing run time linking. 217672313efbSmrg library_names_spec='${libname}${release}.a $libname.a' 217772313efbSmrg soname_spec='${libname}${release}${shared_ext}$major' 2178bdcaa8d0Smrg fi 217972313efbSmrg shlibpath_var=LIBPATH 218072313efbSmrg fi 2181bdcaa8d0Smrg ;; 2182bdcaa8d0Smrg 218372313efbSmrgamigaos*) 218472313efbSmrg case $host_cpu in 218572313efbSmrg powerpc) 218672313efbSmrg # Since July 2007 AmigaOS4 officially supports .so libraries. 218772313efbSmrg # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 218872313efbSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 2189bdcaa8d0Smrg ;; 219072313efbSmrg m68k) 219172313efbSmrg library_names_spec='$libname.ixlibrary $libname.a' 219272313efbSmrg # Create ${libname}_ixlibrary.a entries in /sys/libs. 219372313efbSmrg finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 219472313efbSmrg ;; 219572313efbSmrg esac 2196bdcaa8d0Smrg ;; 2197bdcaa8d0Smrg 2198bdcaa8d0Smrgbeos*) 219972313efbSmrg library_names_spec='${libname}${shared_ext}' 220072313efbSmrg dynamic_linker="$host_os ld.so" 220172313efbSmrg shlibpath_var=LIBRARY_PATH 2202bdcaa8d0Smrg ;; 2203bdcaa8d0Smrg 2204bdcaa8d0Smrgbsdi[[45]]*) 220572313efbSmrg version_type=linux 220672313efbSmrg need_version=no 220772313efbSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 220872313efbSmrg soname_spec='${libname}${release}${shared_ext}$major' 220972313efbSmrg finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 221072313efbSmrg shlibpath_var=LD_LIBRARY_PATH 221172313efbSmrg sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 221272313efbSmrg sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 221372313efbSmrg # the default ld.so.conf also contains /usr/contrib/lib and 221472313efbSmrg # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 221572313efbSmrg # libtool to hard-code these into programs 2216bdcaa8d0Smrg ;; 2217bdcaa8d0Smrg 221872313efbSmrgcygwin* | mingw* | pw32* | cegcc*) 221972313efbSmrg version_type=windows 222072313efbSmrg shrext_cmds=".dll" 222172313efbSmrg need_version=no 222272313efbSmrg need_lib_prefix=no 2223bdcaa8d0Smrg 222472313efbSmrg case $GCC,$host_os in 222572313efbSmrg yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 222672313efbSmrg library_names_spec='$libname.dll.a' 222772313efbSmrg # DLL is installed to $(libdir)/../bin by postinstall_cmds 222872313efbSmrg postinstall_cmds='base_file=`basename \${file}`~ 222972313efbSmrg dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 223072313efbSmrg dldir=$destdir/`dirname \$dlpath`~ 223172313efbSmrg test -d \$dldir || mkdir -p \$dldir~ 223272313efbSmrg $install_prog $dir/$dlname \$dldir/$dlname~ 223372313efbSmrg chmod a+x \$dldir/$dlname~ 223472313efbSmrg if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 223572313efbSmrg eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 223672313efbSmrg fi' 223772313efbSmrg postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 223872313efbSmrg dlpath=$dir/\$dldll~ 223972313efbSmrg $RM \$dlpath' 224072313efbSmrg shlibpath_overrides_runpath=yes 2241bdcaa8d0Smrg 224272313efbSmrg case $host_os in 224372313efbSmrg cygwin*) 224472313efbSmrg # Cygwin DLLs use 'cyg' prefix rather than 'lib' 224572313efbSmrg soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 224672313efbSmrg sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 224772313efbSmrg ;; 224872313efbSmrg mingw* | cegcc*) 224972313efbSmrg # MinGW DLLs use traditional 'lib' prefix 225072313efbSmrg soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 225172313efbSmrg sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 225272313efbSmrg if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then 225372313efbSmrg # It is most probably a Windows format PATH printed by 225472313efbSmrg # mingw gcc, but we are running on Cygwin. Gcc prints its search 225572313efbSmrg # path with ; separators, and with drive letters. We can handle the 225672313efbSmrg # drive letters (cygwin fileutils understands them), so leave them, 225772313efbSmrg # especially as we might pass files found there to a mingw objdump, 225872313efbSmrg # which wouldn't understand a cygwinified path. Ahh. 225972313efbSmrg sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 226072313efbSmrg else 226172313efbSmrg sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 226272313efbSmrg fi 226372313efbSmrg ;; 226472313efbSmrg pw32*) 226572313efbSmrg # pw32 DLLs use 'pw' prefix rather than 'lib' 226672313efbSmrg library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 2267bdcaa8d0Smrg ;; 2268bdcaa8d0Smrg esac 2269bdcaa8d0Smrg ;; 227072313efbSmrg 2271bdcaa8d0Smrg *) 227272313efbSmrg library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib' 2273bdcaa8d0Smrg ;; 2274bdcaa8d0Smrg esac 227572313efbSmrg dynamic_linker='Win32 ld.exe' 227672313efbSmrg # FIXME: first we should search . and the directory the executable is in 227772313efbSmrg shlibpath_var=PATH 2278bdcaa8d0Smrg ;; 2279bdcaa8d0Smrg 228072313efbSmrgdarwin* | rhapsody*) 228172313efbSmrg dynamic_linker="$host_os dyld" 228272313efbSmrg version_type=darwin 228372313efbSmrg need_lib_prefix=no 228472313efbSmrg need_version=no 228572313efbSmrg library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 228672313efbSmrg soname_spec='${libname}${release}${major}$shared_ext' 228772313efbSmrg shlibpath_overrides_runpath=yes 228872313efbSmrg shlibpath_var=DYLD_LIBRARY_PATH 228972313efbSmrg shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 229072313efbSmrgm4_if([$1], [],[ 229172313efbSmrg sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) 229272313efbSmrg sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 2293bdcaa8d0Smrg ;; 2294bdcaa8d0Smrg 229572313efbSmrgdgux*) 229672313efbSmrg version_type=linux 229772313efbSmrg need_lib_prefix=no 229872313efbSmrg need_version=no 229972313efbSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 230072313efbSmrg soname_spec='${libname}${release}${shared_ext}$major' 230172313efbSmrg shlibpath_var=LD_LIBRARY_PATH 2302bdcaa8d0Smrg ;; 2303bdcaa8d0Smrg 230472313efbSmrgfreebsd1*) 230572313efbSmrg dynamic_linker=no 2306bdcaa8d0Smrg ;; 2307bdcaa8d0Smrg 230872313efbSmrgfreebsd* | dragonfly*) 230972313efbSmrg # DragonFly does not have aout. When/if they implement a new 231072313efbSmrg # versioning mechanism, adjust this. 231172313efbSmrg if test -x /usr/bin/objformat; then 231272313efbSmrg objformat=`/usr/bin/objformat` 2313bdcaa8d0Smrg else 231472313efbSmrg case $host_os in 231572313efbSmrg freebsd[[123]]*) objformat=aout ;; 231672313efbSmrg *) objformat=elf ;; 231772313efbSmrg esac 2318bdcaa8d0Smrg fi 231972313efbSmrg version_type=freebsd-$objformat 232072313efbSmrg case $version_type in 232172313efbSmrg freebsd-elf*) 232272313efbSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 232372313efbSmrg need_version=no 232472313efbSmrg need_lib_prefix=no 232572313efbSmrg ;; 232672313efbSmrg freebsd-*) 232772313efbSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 232872313efbSmrg need_version=yes 232972313efbSmrg ;; 233072313efbSmrg esac 233172313efbSmrg shlibpath_var=LD_LIBRARY_PATH 233272313efbSmrg case $host_os in 233372313efbSmrg freebsd2*) 233472313efbSmrg shlibpath_overrides_runpath=yes 233572313efbSmrg ;; 233672313efbSmrg freebsd3.[[01]]* | freebsdelf3.[[01]]*) 233772313efbSmrg shlibpath_overrides_runpath=yes 233872313efbSmrg hardcode_into_libs=yes 233972313efbSmrg ;; 234072313efbSmrg freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ 234172313efbSmrg freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) 234272313efbSmrg shlibpath_overrides_runpath=no 234372313efbSmrg hardcode_into_libs=yes 234472313efbSmrg ;; 234572313efbSmrg *) # from 4.6 on, and DragonFly 234672313efbSmrg shlibpath_overrides_runpath=yes 234772313efbSmrg hardcode_into_libs=yes 234872313efbSmrg ;; 234972313efbSmrg esac 2350bdcaa8d0Smrg ;; 2351bdcaa8d0Smrg 235272313efbSmrggnu*) 235372313efbSmrg version_type=linux 235472313efbSmrg need_lib_prefix=no 235572313efbSmrg need_version=no 235672313efbSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 235772313efbSmrg soname_spec='${libname}${release}${shared_ext}$major' 235872313efbSmrg shlibpath_var=LD_LIBRARY_PATH 235972313efbSmrg hardcode_into_libs=yes 2360bdcaa8d0Smrg ;; 2361bdcaa8d0Smrg 236272313efbSmrghpux9* | hpux10* | hpux11*) 236372313efbSmrg # Give a soname corresponding to the major version so that dld.sl refuses to 236472313efbSmrg # link against other versions. 236572313efbSmrg version_type=sunos 236672313efbSmrg need_lib_prefix=no 236772313efbSmrg need_version=no 236872313efbSmrg case $host_cpu in 236972313efbSmrg ia64*) 237072313efbSmrg shrext_cmds='.so' 237172313efbSmrg hardcode_into_libs=yes 237272313efbSmrg dynamic_linker="$host_os dld.so" 237372313efbSmrg shlibpath_var=LD_LIBRARY_PATH 237472313efbSmrg shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 237572313efbSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 237672313efbSmrg soname_spec='${libname}${release}${shared_ext}$major' 237772313efbSmrg if test "X$HPUX_IA64_MODE" = X32; then 237872313efbSmrg sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 237972313efbSmrg else 238072313efbSmrg sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 238172313efbSmrg fi 238272313efbSmrg sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 2383bdcaa8d0Smrg ;; 238472313efbSmrg hppa*64*) 238572313efbSmrg shrext_cmds='.sl' 238672313efbSmrg hardcode_into_libs=yes 238772313efbSmrg dynamic_linker="$host_os dld.sl" 238872313efbSmrg shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 238972313efbSmrg shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 239072313efbSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 239172313efbSmrg soname_spec='${libname}${release}${shared_ext}$major' 239272313efbSmrg sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 239372313efbSmrg sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 2394bdcaa8d0Smrg ;; 239572313efbSmrg *) 239672313efbSmrg shrext_cmds='.sl' 239772313efbSmrg dynamic_linker="$host_os dld.sl" 239872313efbSmrg shlibpath_var=SHLIB_PATH 239972313efbSmrg shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 240072313efbSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 240172313efbSmrg soname_spec='${libname}${release}${shared_ext}$major' 2402bdcaa8d0Smrg ;; 240372313efbSmrg esac 240472313efbSmrg # HP-UX runs *really* slowly unless shared libraries are mode 555. 240572313efbSmrg postinstall_cmds='chmod 555 $lib' 240672313efbSmrg ;; 240772313efbSmrg 240872313efbSmrginterix[[3-9]]*) 240972313efbSmrg version_type=linux 241072313efbSmrg need_lib_prefix=no 241172313efbSmrg need_version=no 241272313efbSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 241372313efbSmrg soname_spec='${libname}${release}${shared_ext}$major' 241472313efbSmrg dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 241572313efbSmrg shlibpath_var=LD_LIBRARY_PATH 241672313efbSmrg shlibpath_overrides_runpath=no 241772313efbSmrg hardcode_into_libs=yes 241872313efbSmrg ;; 241972313efbSmrg 242072313efbSmrgirix5* | irix6* | nonstopux*) 242172313efbSmrg case $host_os in 242272313efbSmrg nonstopux*) version_type=nonstopux ;; 242372313efbSmrg *) 242472313efbSmrg if test "$lt_cv_prog_gnu_ld" = yes; then 242572313efbSmrg version_type=linux 242672313efbSmrg else 242772313efbSmrg version_type=irix 242872313efbSmrg fi ;; 242972313efbSmrg esac 243072313efbSmrg need_lib_prefix=no 243172313efbSmrg need_version=no 243272313efbSmrg soname_spec='${libname}${release}${shared_ext}$major' 243372313efbSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 243472313efbSmrg case $host_os in 243572313efbSmrg irix5* | nonstopux*) 243672313efbSmrg libsuff= shlibsuff= 2437bdcaa8d0Smrg ;; 243872313efbSmrg *) 243972313efbSmrg case $LD in # libtool.m4 will add one of these switches to LD 244072313efbSmrg *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 244172313efbSmrg libsuff= shlibsuff= libmagic=32-bit;; 244272313efbSmrg *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 244372313efbSmrg libsuff=32 shlibsuff=N32 libmagic=N32;; 244472313efbSmrg *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 244572313efbSmrg libsuff=64 shlibsuff=64 libmagic=64-bit;; 244672313efbSmrg *) libsuff= shlibsuff= libmagic=never-match;; 244772313efbSmrg esac 2448bdcaa8d0Smrg ;; 2449bdcaa8d0Smrg esac 245072313efbSmrg shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 245172313efbSmrg shlibpath_overrides_runpath=no 245272313efbSmrg sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 245372313efbSmrg sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 245472313efbSmrg hardcode_into_libs=yes 2455bdcaa8d0Smrg ;; 2456bdcaa8d0Smrg 245772313efbSmrg# No shared lib support for Linux oldld, aout, or coff. 245872313efbSmrglinux*oldld* | linux*aout* | linux*coff*) 245972313efbSmrg dynamic_linker=no 2460bdcaa8d0Smrg ;; 2461bdcaa8d0Smrg 246272313efbSmrg# This must be Linux ELF. 246372313efbSmrglinux* | k*bsd*-gnu) 246472313efbSmrg version_type=linux 246572313efbSmrg need_lib_prefix=no 246672313efbSmrg need_version=no 246772313efbSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 246872313efbSmrg soname_spec='${libname}${release}${shared_ext}$major' 246972313efbSmrg finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 247072313efbSmrg shlibpath_var=LD_LIBRARY_PATH 247172313efbSmrg shlibpath_overrides_runpath=no 247272313efbSmrg # Some binutils ld are patched to set DT_RUNPATH 247372313efbSmrg save_LDFLAGS=$LDFLAGS 247472313efbSmrg save_libdir=$libdir 247572313efbSmrg eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \ 247672313efbSmrg LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\"" 247772313efbSmrg AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], 247872313efbSmrg [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null], 247972313efbSmrg [shlibpath_overrides_runpath=yes])]) 248072313efbSmrg LDFLAGS=$save_LDFLAGS 248172313efbSmrg libdir=$save_libdir 2482bdcaa8d0Smrg 248372313efbSmrg # This implies no fast_install, which is unacceptable. 248472313efbSmrg # Some rework will be needed to allow for fast_install 248572313efbSmrg # before this can be enabled. 248672313efbSmrg hardcode_into_libs=yes 248772313efbSmrg 248866c2ea32Smrg # Add ABI-specific directories to the system library path. 248966c2ea32Smrg sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 249066c2ea32Smrg 249172313efbSmrg # Append ld.so.conf contents to the search path 249272313efbSmrg if test -f /etc/ld.so.conf; then 249372313efbSmrg lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 249466c2ea32Smrg sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 2495bdcaa8d0Smrg fi 2496bdcaa8d0Smrg 249772313efbSmrg # We used to test for /lib/ld.so.1 and disable shared libraries on 249872313efbSmrg # powerpc, because MkLinux only supported shared libraries with the 249972313efbSmrg # GNU dynamic linker. Since this was broken with cross compilers, 250072313efbSmrg # most powerpc-linux boxes support dynamic linking these days and 250172313efbSmrg # people can always --disable-shared, the test was removed, and we 250272313efbSmrg # assume the GNU/Linux dynamic linker is in use. 250372313efbSmrg dynamic_linker='GNU/Linux ld.so' 2504bdcaa8d0Smrg ;; 250572313efbSmrg 250672313efbSmrgnetbsd*) 250772313efbSmrg version_type=sunos 250872313efbSmrg need_lib_prefix=no 250972313efbSmrg need_version=no 251072313efbSmrg if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 251172313efbSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 251272313efbSmrg finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 251372313efbSmrg dynamic_linker='NetBSD (a.out) ld.so' 251472313efbSmrg else 251572313efbSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 251672313efbSmrg soname_spec='${libname}${release}${shared_ext}$major' 251772313efbSmrg dynamic_linker='NetBSD ld.elf_so' 251872313efbSmrg fi 251972313efbSmrg shlibpath_var=LD_LIBRARY_PATH 252072313efbSmrg shlibpath_overrides_runpath=yes 252172313efbSmrg hardcode_into_libs=yes 2522bdcaa8d0Smrg ;; 252372313efbSmrg 252472313efbSmrgnewsos6) 252572313efbSmrg version_type=linux 252672313efbSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 252772313efbSmrg shlibpath_var=LD_LIBRARY_PATH 252872313efbSmrg shlibpath_overrides_runpath=yes 2529bdcaa8d0Smrg ;; 2530bdcaa8d0Smrg 253172313efbSmrg*nto* | *qnx*) 253272313efbSmrg version_type=qnx 253372313efbSmrg need_lib_prefix=no 253472313efbSmrg need_version=no 253572313efbSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 253672313efbSmrg soname_spec='${libname}${release}${shared_ext}$major' 253772313efbSmrg shlibpath_var=LD_LIBRARY_PATH 253872313efbSmrg shlibpath_overrides_runpath=no 253972313efbSmrg hardcode_into_libs=yes 254072313efbSmrg dynamic_linker='ldqnx.so' 254172313efbSmrg ;; 2542bdcaa8d0Smrg 254372313efbSmrgopenbsd*) 254472313efbSmrg version_type=sunos 254572313efbSmrg sys_lib_dlsearch_path_spec="/usr/lib" 254672313efbSmrg need_lib_prefix=no 254772313efbSmrg # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 254872313efbSmrg case $host_os in 254972313efbSmrg openbsd3.3 | openbsd3.3.*) need_version=yes ;; 255072313efbSmrg *) need_version=no ;; 2551bdcaa8d0Smrg esac 255272313efbSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 255372313efbSmrg finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 255472313efbSmrg shlibpath_var=LD_LIBRARY_PATH 255572313efbSmrg if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 255672313efbSmrg case $host_os in 255772313efbSmrg openbsd2.[[89]] | openbsd2.[[89]].*) 255872313efbSmrg shlibpath_overrides_runpath=no 255972313efbSmrg ;; 256072313efbSmrg *) 256172313efbSmrg shlibpath_overrides_runpath=yes 256272313efbSmrg ;; 256372313efbSmrg esac 2564bdcaa8d0Smrg else 256572313efbSmrg shlibpath_overrides_runpath=yes 2566bdcaa8d0Smrg fi 256772313efbSmrg ;; 2568bdcaa8d0Smrg 256972313efbSmrgos2*) 257072313efbSmrg libname_spec='$name' 257172313efbSmrg shrext_cmds=".dll" 257272313efbSmrg need_lib_prefix=no 257372313efbSmrg library_names_spec='$libname${shared_ext} $libname.a' 257472313efbSmrg dynamic_linker='OS/2 ld.exe' 257572313efbSmrg shlibpath_var=LIBPATH 257672313efbSmrg ;; 2577bdcaa8d0Smrg 257872313efbSmrgosf3* | osf4* | osf5*) 257972313efbSmrg version_type=osf 258072313efbSmrg need_lib_prefix=no 258172313efbSmrg need_version=no 258272313efbSmrg soname_spec='${libname}${release}${shared_ext}$major' 258372313efbSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 258472313efbSmrg shlibpath_var=LD_LIBRARY_PATH 258572313efbSmrg sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 258672313efbSmrg sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 258772313efbSmrg ;; 2588bdcaa8d0Smrg 258972313efbSmrgrdos*) 259072313efbSmrg dynamic_linker=no 259172313efbSmrg ;; 2592bdcaa8d0Smrg 259372313efbSmrgsolaris*) 259472313efbSmrg version_type=linux 259572313efbSmrg need_lib_prefix=no 259672313efbSmrg need_version=no 259772313efbSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 259872313efbSmrg soname_spec='${libname}${release}${shared_ext}$major' 259972313efbSmrg shlibpath_var=LD_LIBRARY_PATH 260072313efbSmrg shlibpath_overrides_runpath=yes 260172313efbSmrg hardcode_into_libs=yes 260272313efbSmrg # ldd complains unless libraries are executable 260372313efbSmrg postinstall_cmds='chmod +x $lib' 260472313efbSmrg ;; 2605bdcaa8d0Smrg 260672313efbSmrgsunos4*) 260772313efbSmrg version_type=sunos 260872313efbSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 260972313efbSmrg finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 261072313efbSmrg shlibpath_var=LD_LIBRARY_PATH 261172313efbSmrg shlibpath_overrides_runpath=yes 261272313efbSmrg if test "$with_gnu_ld" = yes; then 261372313efbSmrg need_lib_prefix=no 261472313efbSmrg fi 261572313efbSmrg need_version=yes 261672313efbSmrg ;; 2617bdcaa8d0Smrg 261872313efbSmrgsysv4 | sysv4.3*) 261972313efbSmrg version_type=linux 262072313efbSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 262172313efbSmrg soname_spec='${libname}${release}${shared_ext}$major' 262272313efbSmrg shlibpath_var=LD_LIBRARY_PATH 262372313efbSmrg case $host_vendor in 262472313efbSmrg sni) 262572313efbSmrg shlibpath_overrides_runpath=no 262672313efbSmrg need_lib_prefix=no 262772313efbSmrg runpath_var=LD_RUN_PATH 262872313efbSmrg ;; 262972313efbSmrg siemens) 263072313efbSmrg need_lib_prefix=no 263172313efbSmrg ;; 263272313efbSmrg motorola) 263372313efbSmrg need_lib_prefix=no 263472313efbSmrg need_version=no 263572313efbSmrg shlibpath_overrides_runpath=no 263672313efbSmrg sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 263772313efbSmrg ;; 263872313efbSmrg esac 263972313efbSmrg ;; 2640bdcaa8d0Smrg 264172313efbSmrgsysv4*MP*) 264272313efbSmrg if test -d /usr/nec ;then 264372313efbSmrg version_type=linux 264472313efbSmrg library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 264572313efbSmrg soname_spec='$libname${shared_ext}.$major' 264672313efbSmrg shlibpath_var=LD_LIBRARY_PATH 2647bdcaa8d0Smrg fi 2648bdcaa8d0Smrg ;; 2649bdcaa8d0Smrg 265072313efbSmrgsysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 265172313efbSmrg version_type=freebsd-elf 265272313efbSmrg need_lib_prefix=no 265372313efbSmrg need_version=no 265472313efbSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 265572313efbSmrg soname_spec='${libname}${release}${shared_ext}$major' 265672313efbSmrg shlibpath_var=LD_LIBRARY_PATH 265772313efbSmrg shlibpath_overrides_runpath=yes 265872313efbSmrg hardcode_into_libs=yes 265972313efbSmrg if test "$with_gnu_ld" = yes; then 266072313efbSmrg sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 266172313efbSmrg else 266272313efbSmrg sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 266372313efbSmrg case $host_os in 266472313efbSmrg sco3.2v5*) 266572313efbSmrg sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 266672313efbSmrg ;; 266772313efbSmrg esac 2668bdcaa8d0Smrg fi 266972313efbSmrg sys_lib_dlsearch_path_spec='/usr/lib' 267072313efbSmrg ;; 2671bdcaa8d0Smrg 267272313efbSmrgtpf*) 267372313efbSmrg # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 267472313efbSmrg version_type=linux 267572313efbSmrg need_lib_prefix=no 267672313efbSmrg need_version=no 267772313efbSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 267872313efbSmrg shlibpath_var=LD_LIBRARY_PATH 267972313efbSmrg shlibpath_overrides_runpath=no 268072313efbSmrg hardcode_into_libs=yes 268172313efbSmrg ;; 2682bdcaa8d0Smrg 268372313efbSmrguts4*) 268472313efbSmrg version_type=linux 268572313efbSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 268672313efbSmrg soname_spec='${libname}${release}${shared_ext}$major' 268772313efbSmrg shlibpath_var=LD_LIBRARY_PATH 268872313efbSmrg ;; 2689bdcaa8d0Smrg 269072313efbSmrg*) 269172313efbSmrg dynamic_linker=no 269272313efbSmrg ;; 269372313efbSmrgesac 269472313efbSmrgAC_MSG_RESULT([$dynamic_linker]) 269572313efbSmrgtest "$dynamic_linker" = no && can_build_shared=no 2696bdcaa8d0Smrg 269772313efbSmrgvariables_saved_for_relink="PATH $shlibpath_var $runpath_var" 269872313efbSmrgif test "$GCC" = yes; then 269972313efbSmrg variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 270072313efbSmrgfi 2701bdcaa8d0Smrg 270272313efbSmrgif test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 270372313efbSmrg sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 270472313efbSmrgfi 270572313efbSmrgif test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 270672313efbSmrg sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 270772313efbSmrgfi 2708bdcaa8d0Smrg 270972313efbSmrg_LT_DECL([], [variables_saved_for_relink], [1], 271072313efbSmrg [Variables whose values should be saved in libtool wrapper scripts and 271172313efbSmrg restored at link time]) 271272313efbSmrg_LT_DECL([], [need_lib_prefix], [0], 271372313efbSmrg [Do we need the "lib" prefix for modules?]) 271472313efbSmrg_LT_DECL([], [need_version], [0], [Do we need a version for libraries?]) 271572313efbSmrg_LT_DECL([], [version_type], [0], [Library versioning type]) 271672313efbSmrg_LT_DECL([], [runpath_var], [0], [Shared library runtime path variable]) 271772313efbSmrg_LT_DECL([], [shlibpath_var], [0],[Shared library path variable]) 271872313efbSmrg_LT_DECL([], [shlibpath_overrides_runpath], [0], 271972313efbSmrg [Is shlibpath searched before the hard-coded library search path?]) 272072313efbSmrg_LT_DECL([], [libname_spec], [1], [Format of library name prefix]) 272172313efbSmrg_LT_DECL([], [library_names_spec], [1], 272272313efbSmrg [[List of archive names. First name is the real one, the rest are links. 272372313efbSmrg The last name is the one that the linker finds with -lNAME]]) 272472313efbSmrg_LT_DECL([], [soname_spec], [1], 272572313efbSmrg [[The coded name of the library, if different from the real name]]) 272672313efbSmrg_LT_DECL([], [postinstall_cmds], [2], 272772313efbSmrg [Command to use after installation of a shared archive]) 272872313efbSmrg_LT_DECL([], [postuninstall_cmds], [2], 272972313efbSmrg [Command to use after uninstallation of a shared archive]) 273072313efbSmrg_LT_DECL([], [finish_cmds], [2], 273172313efbSmrg [Commands used to finish a libtool library installation in a directory]) 273272313efbSmrg_LT_DECL([], [finish_eval], [1], 273372313efbSmrg [[As "finish_cmds", except a single script fragment to be evaled but 273472313efbSmrg not shown]]) 273572313efbSmrg_LT_DECL([], [hardcode_into_libs], [0], 273672313efbSmrg [Whether we should hardcode library paths into libraries]) 273772313efbSmrg_LT_DECL([], [sys_lib_search_path_spec], [2], 273872313efbSmrg [Compile-time system search path for libraries]) 273972313efbSmrg_LT_DECL([], [sys_lib_dlsearch_path_spec], [2], 274072313efbSmrg [Run-time system search path for libraries]) 274172313efbSmrg])# _LT_SYS_DYNAMIC_LINKER 274272313efbSmrg 274372313efbSmrg 274472313efbSmrg# _LT_PATH_TOOL_PREFIX(TOOL) 274572313efbSmrg# -------------------------- 274672313efbSmrg# find a file program which can recognize shared library 274772313efbSmrgAC_DEFUN([_LT_PATH_TOOL_PREFIX], 274872313efbSmrg[m4_require([_LT_DECL_EGREP])dnl 274972313efbSmrgAC_MSG_CHECKING([for $1]) 275072313efbSmrgAC_CACHE_VAL(lt_cv_path_MAGIC_CMD, 275172313efbSmrg[case $MAGIC_CMD in 275272313efbSmrg[[\\/*] | ?:[\\/]*]) 275372313efbSmrg lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 275472313efbSmrg ;; 275572313efbSmrg*) 275672313efbSmrg lt_save_MAGIC_CMD="$MAGIC_CMD" 275772313efbSmrg lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 275872313efbSmrgdnl $ac_dummy forces splitting on constant user-supplied paths. 275972313efbSmrgdnl POSIX.2 word splitting is done only on the output of word expansions, 276072313efbSmrgdnl not every word. This closes a longstanding sh security hole. 276172313efbSmrg ac_dummy="m4_if([$2], , $PATH, [$2])" 276272313efbSmrg for ac_dir in $ac_dummy; do 276372313efbSmrg IFS="$lt_save_ifs" 276472313efbSmrg test -z "$ac_dir" && ac_dir=. 276572313efbSmrg if test -f $ac_dir/$1; then 276672313efbSmrg lt_cv_path_MAGIC_CMD="$ac_dir/$1" 276772313efbSmrg if test -n "$file_magic_test_file"; then 276872313efbSmrg case $deplibs_check_method in 276972313efbSmrg "file_magic "*) 277072313efbSmrg file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 277172313efbSmrg MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 277272313efbSmrg if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 277372313efbSmrg $EGREP "$file_magic_regex" > /dev/null; then 277472313efbSmrg : 277572313efbSmrg else 277672313efbSmrg cat <<_LT_EOF 1>&2 2777bdcaa8d0Smrg 277872313efbSmrg*** Warning: the command libtool uses to detect shared libraries, 277972313efbSmrg*** $file_magic_cmd, produces output that libtool cannot recognize. 278072313efbSmrg*** The result is that libtool may fail to recognize shared libraries 278172313efbSmrg*** as such. This will affect the creation of libtool libraries that 278272313efbSmrg*** depend on shared libraries, but programs linked with such libtool 278372313efbSmrg*** libraries will work regardless of this problem. Nevertheless, you 278472313efbSmrg*** may want to report the problem to your system manager and/or to 278572313efbSmrg*** bug-libtool@gnu.org 2786bdcaa8d0Smrg 278772313efbSmrg_LT_EOF 278872313efbSmrg fi ;; 278972313efbSmrg esac 279072313efbSmrg fi 279172313efbSmrg break 279272313efbSmrg fi 279372313efbSmrg done 279472313efbSmrg IFS="$lt_save_ifs" 279572313efbSmrg MAGIC_CMD="$lt_save_MAGIC_CMD" 279672313efbSmrg ;; 279772313efbSmrgesac]) 279872313efbSmrgMAGIC_CMD="$lt_cv_path_MAGIC_CMD" 279972313efbSmrgif test -n "$MAGIC_CMD"; then 280072313efbSmrg AC_MSG_RESULT($MAGIC_CMD) 280172313efbSmrgelse 280272313efbSmrg AC_MSG_RESULT(no) 280372313efbSmrgfi 280472313efbSmrg_LT_DECL([], [MAGIC_CMD], [0], 280572313efbSmrg [Used to examine libraries when file_magic_cmd begins with "file"])dnl 280672313efbSmrg])# _LT_PATH_TOOL_PREFIX 2807bdcaa8d0Smrg 280872313efbSmrg# Old name: 280972313efbSmrgAU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX]) 281072313efbSmrgdnl aclocal-1.4 backwards compatibility: 281172313efbSmrgdnl AC_DEFUN([AC_PATH_TOOL_PREFIX], []) 2812bdcaa8d0Smrg 2813bdcaa8d0Smrg 281472313efbSmrg# _LT_PATH_MAGIC 281572313efbSmrg# -------------- 281672313efbSmrg# find a file program which can recognize a shared library 281772313efbSmrgm4_defun([_LT_PATH_MAGIC], 281872313efbSmrg[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) 281972313efbSmrgif test -z "$lt_cv_path_MAGIC_CMD"; then 282072313efbSmrg if test -n "$ac_tool_prefix"; then 282172313efbSmrg _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) 282272313efbSmrg else 282372313efbSmrg MAGIC_CMD=: 282472313efbSmrg fi 282572313efbSmrgfi 282672313efbSmrg])# _LT_PATH_MAGIC 2827bdcaa8d0Smrg 282872313efbSmrg 282972313efbSmrg# LT_PATH_LD 283072313efbSmrg# ---------- 283172313efbSmrg# find the pathname to the GNU or non-GNU linker 283272313efbSmrgAC_DEFUN([LT_PATH_LD], 283372313efbSmrg[AC_REQUIRE([AC_PROG_CC])dnl 283472313efbSmrgAC_REQUIRE([AC_CANONICAL_HOST])dnl 283572313efbSmrgAC_REQUIRE([AC_CANONICAL_BUILD])dnl 283672313efbSmrgm4_require([_LT_DECL_SED])dnl 283772313efbSmrgm4_require([_LT_DECL_EGREP])dnl 283872313efbSmrg 283972313efbSmrgAC_ARG_WITH([gnu-ld], 284072313efbSmrg [AS_HELP_STRING([--with-gnu-ld], 284172313efbSmrg [assume the C compiler uses GNU ld @<:@default=no@:>@])], 284272313efbSmrg [test "$withval" = no || with_gnu_ld=yes], 284372313efbSmrg [with_gnu_ld=no])dnl 284472313efbSmrg 284572313efbSmrgac_prog=ld 284672313efbSmrgif test "$GCC" = yes; then 284772313efbSmrg # Check if gcc -print-prog-name=ld gives a path. 284872313efbSmrg AC_MSG_CHECKING([for ld used by $CC]) 284972313efbSmrg case $host in 285072313efbSmrg *-*-mingw*) 285172313efbSmrg # gcc leaves a trailing carriage return which upsets mingw 285272313efbSmrg ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 285372313efbSmrg *) 285472313efbSmrg ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 285572313efbSmrg esac 285672313efbSmrg case $ac_prog in 285772313efbSmrg # Accept absolute paths. 285872313efbSmrg [[\\/]]* | ?:[[\\/]]*) 285972313efbSmrg re_direlt='/[[^/]][[^/]]*/\.\./' 286072313efbSmrg # Canonicalize the pathname of ld 286172313efbSmrg ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 286272313efbSmrg while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 286372313efbSmrg ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 286472313efbSmrg done 286572313efbSmrg test -z "$LD" && LD="$ac_prog" 286672313efbSmrg ;; 286772313efbSmrg "") 286872313efbSmrg # If it fails, then pretend we aren't using GCC. 286972313efbSmrg ac_prog=ld 287072313efbSmrg ;; 287172313efbSmrg *) 287272313efbSmrg # If it is relative, then search for the first ld in PATH. 287372313efbSmrg with_gnu_ld=unknown 287472313efbSmrg ;; 287572313efbSmrg esac 287672313efbSmrgelif test "$with_gnu_ld" = yes; then 287772313efbSmrg AC_MSG_CHECKING([for GNU ld]) 2878bdcaa8d0Smrgelse 287972313efbSmrg AC_MSG_CHECKING([for non-GNU ld]) 2880bdcaa8d0Smrgfi 288172313efbSmrgAC_CACHE_VAL(lt_cv_path_LD, 288272313efbSmrg[if test -z "$LD"; then 288372313efbSmrg lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 288472313efbSmrg for ac_dir in $PATH; do 288572313efbSmrg IFS="$lt_save_ifs" 288672313efbSmrg test -z "$ac_dir" && ac_dir=. 288772313efbSmrg if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 288872313efbSmrg lt_cv_path_LD="$ac_dir/$ac_prog" 288972313efbSmrg # Check to see if the program is GNU ld. I'd rather use --version, 289072313efbSmrg # but apparently some variants of GNU ld only accept -v. 289172313efbSmrg # Break only if it was the GNU/non-GNU ld that we prefer. 289272313efbSmrg case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 289372313efbSmrg *GNU* | *'with BFD'*) 289472313efbSmrg test "$with_gnu_ld" != no && break 289572313efbSmrg ;; 289672313efbSmrg *) 289772313efbSmrg test "$with_gnu_ld" != yes && break 289872313efbSmrg ;; 289972313efbSmrg esac 290072313efbSmrg fi 290172313efbSmrg done 290272313efbSmrg IFS="$lt_save_ifs" 2903bdcaa8d0Smrgelse 290472313efbSmrg lt_cv_path_LD="$LD" # Let the user override the test with a path. 290572313efbSmrgfi]) 290672313efbSmrgLD="$lt_cv_path_LD" 290772313efbSmrgif test -n "$LD"; then 290872313efbSmrg AC_MSG_RESULT($LD) 2909bdcaa8d0Smrgelse 291072313efbSmrg AC_MSG_RESULT(no) 2911bdcaa8d0Smrgfi 291272313efbSmrgtest -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) 291372313efbSmrg_LT_PATH_LD_GNU 291472313efbSmrgAC_SUBST([LD]) 2915bdcaa8d0Smrg 291672313efbSmrg_LT_TAGDECL([], [LD], [1], [The linker used to build libraries]) 291772313efbSmrg])# LT_PATH_LD 2918bdcaa8d0Smrg 291972313efbSmrg# Old names: 292072313efbSmrgAU_ALIAS([AM_PROG_LD], [LT_PATH_LD]) 292172313efbSmrgAU_ALIAS([AC_PROG_LD], [LT_PATH_LD]) 292272313efbSmrgdnl aclocal-1.4 backwards compatibility: 292372313efbSmrgdnl AC_DEFUN([AM_PROG_LD], []) 292472313efbSmrgdnl AC_DEFUN([AC_PROG_LD], []) 2925bdcaa8d0Smrg 2926bdcaa8d0Smrg 292772313efbSmrg# _LT_PATH_LD_GNU 292872313efbSmrg#- -------------- 292972313efbSmrgm4_defun([_LT_PATH_LD_GNU], 293072313efbSmrg[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld, 293172313efbSmrg[# I'd rather use --version here, but apparently some GNU lds only accept -v. 293272313efbSmrgcase `$LD -v 2>&1 </dev/null` in 293372313efbSmrg*GNU* | *'with BFD'*) 293472313efbSmrg lt_cv_prog_gnu_ld=yes 293572313efbSmrg ;; 293672313efbSmrg*) 293772313efbSmrg lt_cv_prog_gnu_ld=no 293872313efbSmrg ;; 293972313efbSmrgesac]) 294072313efbSmrgwith_gnu_ld=$lt_cv_prog_gnu_ld 294172313efbSmrg])# _LT_PATH_LD_GNU 2942bdcaa8d0Smrg 2943bdcaa8d0Smrg 294472313efbSmrg# _LT_CMD_RELOAD 294572313efbSmrg# -------------- 294672313efbSmrg# find reload flag for linker 294772313efbSmrg# -- PORTME Some linkers may need a different reload flag. 294872313efbSmrgm4_defun([_LT_CMD_RELOAD], 294972313efbSmrg[AC_CACHE_CHECK([for $LD option to reload object files], 295072313efbSmrg lt_cv_ld_reload_flag, 295172313efbSmrg [lt_cv_ld_reload_flag='-r']) 295272313efbSmrgreload_flag=$lt_cv_ld_reload_flag 295372313efbSmrgcase $reload_flag in 295472313efbSmrg"" | " "*) ;; 295572313efbSmrg*) reload_flag=" $reload_flag" ;; 295672313efbSmrgesac 295772313efbSmrgreload_cmds='$LD$reload_flag -o $output$reload_objs' 295872313efbSmrgcase $host_os in 295972313efbSmrg darwin*) 296072313efbSmrg if test "$GCC" = yes; then 296172313efbSmrg reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 2962bdcaa8d0Smrg else 296372313efbSmrg reload_cmds='$LD$reload_flag -o $output$reload_objs' 2964bdcaa8d0Smrg fi 296572313efbSmrg ;; 296672313efbSmrgesac 296772313efbSmrg_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl 296872313efbSmrg_LT_DECL([], [reload_cmds], [2])dnl 296972313efbSmrg])# _LT_CMD_RELOAD 2970bdcaa8d0Smrg 2971bdcaa8d0Smrg 297272313efbSmrg# _LT_CHECK_MAGIC_METHOD 297372313efbSmrg# ---------------------- 297472313efbSmrg# how to check for library dependencies 297572313efbSmrg# -- PORTME fill in with the dynamic library characteristics 297672313efbSmrgm4_defun([_LT_CHECK_MAGIC_METHOD], 297772313efbSmrg[m4_require([_LT_DECL_EGREP]) 297872313efbSmrgm4_require([_LT_DECL_OBJDUMP]) 297972313efbSmrgAC_CACHE_CHECK([how to recognize dependent libraries], 298072313efbSmrglt_cv_deplibs_check_method, 298172313efbSmrg[lt_cv_file_magic_cmd='$MAGIC_CMD' 298272313efbSmrglt_cv_file_magic_test_file= 298372313efbSmrglt_cv_deplibs_check_method='unknown' 298472313efbSmrg# Need to set the preceding variable on all platforms that support 298572313efbSmrg# interlibrary dependencies. 298672313efbSmrg# 'none' -- dependencies not supported. 298772313efbSmrg# `unknown' -- same as none, but documents that we really don't know. 298872313efbSmrg# 'pass_all' -- all dependencies passed with no checks. 298972313efbSmrg# 'test_compile' -- check by making test program. 299072313efbSmrg# 'file_magic [[regex]]' -- check by looking for files in library path 299172313efbSmrg# which responds to the $file_magic_cmd with a given extended regex. 299272313efbSmrg# If you have `file' or equivalent on your system and you're not sure 299372313efbSmrg# whether `pass_all' will *always* work, you probably want this one. 2994bdcaa8d0Smrg 2995bdcaa8d0Smrgcase $host_os in 299672313efbSmrgaix[[4-9]]*) 299772313efbSmrg lt_cv_deplibs_check_method=pass_all 299872313efbSmrg ;; 2999bdcaa8d0Smrg 300072313efbSmrgbeos*) 300172313efbSmrg lt_cv_deplibs_check_method=pass_all 300272313efbSmrg ;; 3003bdcaa8d0Smrg 300472313efbSmrgbsdi[[45]]*) 300572313efbSmrg lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)' 300672313efbSmrg lt_cv_file_magic_cmd='/usr/bin/file -L' 300772313efbSmrg lt_cv_file_magic_test_file=/shlib/libc.so 300872313efbSmrg ;; 3009bdcaa8d0Smrg 301072313efbSmrgcygwin*) 301172313efbSmrg # func_win32_libid is a shell function defined in ltmain.sh 301272313efbSmrg lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 301372313efbSmrg lt_cv_file_magic_cmd='func_win32_libid' 301472313efbSmrg ;; 3015bdcaa8d0Smrg 301672313efbSmrgmingw* | pw32*) 301772313efbSmrg # Base MSYS/MinGW do not provide the 'file' command needed by 301872313efbSmrg # func_win32_libid shell function, so use a weaker test based on 'objdump', 301972313efbSmrg # unless we find 'file', for example because we are cross-compiling. 302072313efbSmrg if ( file / ) >/dev/null 2>&1; then 302172313efbSmrg lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 302272313efbSmrg lt_cv_file_magic_cmd='func_win32_libid' 302372313efbSmrg else 302472313efbSmrg lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 302572313efbSmrg lt_cv_file_magic_cmd='$OBJDUMP -f' 302672313efbSmrg fi 302772313efbSmrg ;; 3028bdcaa8d0Smrg 302972313efbSmrgcegcc) 303072313efbSmrg # use the weaker test based on 'objdump'. See mingw*. 303172313efbSmrg lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 303272313efbSmrg lt_cv_file_magic_cmd='$OBJDUMP -f' 3033bdcaa8d0Smrg ;; 3034bdcaa8d0Smrg 303572313efbSmrgdarwin* | rhapsody*) 303672313efbSmrg lt_cv_deplibs_check_method=pass_all 303772313efbSmrg ;; 3038bdcaa8d0Smrg 303972313efbSmrgfreebsd* | dragonfly*) 304072313efbSmrg if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 3041bdcaa8d0Smrg case $host_cpu in 304272313efbSmrg i*86 ) 304372313efbSmrg # Not sure whether the presence of OpenBSD here was a mistake. 304472313efbSmrg # Let's accept both of them until this is cleared up. 304572313efbSmrg lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' 304672313efbSmrg lt_cv_file_magic_cmd=/usr/bin/file 304772313efbSmrg lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 3048bdcaa8d0Smrg ;; 3049bdcaa8d0Smrg esac 305072313efbSmrg else 305172313efbSmrg lt_cv_deplibs_check_method=pass_all 305272313efbSmrg fi 305372313efbSmrg ;; 3054bdcaa8d0Smrg 305572313efbSmrggnu*) 305672313efbSmrg lt_cv_deplibs_check_method=pass_all 305772313efbSmrg ;; 3058bdcaa8d0Smrg 305972313efbSmrghpux10.20* | hpux11*) 306072313efbSmrg lt_cv_file_magic_cmd=/usr/bin/file 306172313efbSmrg case $host_cpu in 306272313efbSmrg ia64*) 306372313efbSmrg lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' 306472313efbSmrg lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 3065bdcaa8d0Smrg ;; 306672313efbSmrg hppa*64*) 306772313efbSmrg [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'] 306872313efbSmrg lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 3069bdcaa8d0Smrg ;; 307072313efbSmrg *) 307172313efbSmrg lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library' 307272313efbSmrg lt_cv_file_magic_test_file=/usr/lib/libc.sl 3073bdcaa8d0Smrg ;; 307472313efbSmrg esac 307572313efbSmrg ;; 3076bdcaa8d0Smrg 307772313efbSmrginterix[[3-9]]*) 307872313efbSmrg # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 307972313efbSmrg lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' 308072313efbSmrg ;; 3081bdcaa8d0Smrg 308272313efbSmrgirix5* | irix6* | nonstopux*) 308372313efbSmrg case $LD in 308472313efbSmrg *-32|*"-32 ") libmagic=32-bit;; 308572313efbSmrg *-n32|*"-n32 ") libmagic=N32;; 308672313efbSmrg *-64|*"-64 ") libmagic=64-bit;; 308772313efbSmrg *) libmagic=never-match;; 308872313efbSmrg esac 308972313efbSmrg lt_cv_deplibs_check_method=pass_all 309072313efbSmrg ;; 3091bdcaa8d0Smrg 309272313efbSmrg# This must be Linux ELF. 309372313efbSmrglinux* | k*bsd*-gnu) 309472313efbSmrg lt_cv_deplibs_check_method=pass_all 309572313efbSmrg ;; 3096bdcaa8d0Smrg 309772313efbSmrgnetbsd*) 309872313efbSmrg if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 309972313efbSmrg lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' 310072313efbSmrg else 310172313efbSmrg lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' 310272313efbSmrg fi 310372313efbSmrg ;; 3104bdcaa8d0Smrg 310572313efbSmrgnewos6*) 310672313efbSmrg lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' 310772313efbSmrg lt_cv_file_magic_cmd=/usr/bin/file 310872313efbSmrg lt_cv_file_magic_test_file=/usr/lib/libnls.so 310972313efbSmrg ;; 3110bdcaa8d0Smrg 311172313efbSmrg*nto* | *qnx*) 311272313efbSmrg lt_cv_deplibs_check_method=pass_all 311372313efbSmrg ;; 3114bdcaa8d0Smrg 311572313efbSmrgopenbsd*) 311672313efbSmrg if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 311772313efbSmrg lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' 311872313efbSmrg else 311972313efbSmrg lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' 312072313efbSmrg fi 312172313efbSmrg ;; 3122bdcaa8d0Smrg 312372313efbSmrgosf3* | osf4* | osf5*) 312472313efbSmrg lt_cv_deplibs_check_method=pass_all 312572313efbSmrg ;; 3126bdcaa8d0Smrg 312772313efbSmrgrdos*) 312872313efbSmrg lt_cv_deplibs_check_method=pass_all 312972313efbSmrg ;; 3130bdcaa8d0Smrg 313172313efbSmrgsolaris*) 313272313efbSmrg lt_cv_deplibs_check_method=pass_all 313372313efbSmrg ;; 313472313efbSmrg 313572313efbSmrgsysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 313672313efbSmrg lt_cv_deplibs_check_method=pass_all 313772313efbSmrg ;; 313872313efbSmrg 313972313efbSmrgsysv4 | sysv4.3*) 314072313efbSmrg case $host_vendor in 314172313efbSmrg motorola) 314272313efbSmrg 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]]' 314372313efbSmrg lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 314472313efbSmrg ;; 314572313efbSmrg ncr) 314672313efbSmrg lt_cv_deplibs_check_method=pass_all 3147bdcaa8d0Smrg ;; 314872313efbSmrg sequent) 314972313efbSmrg lt_cv_file_magic_cmd='/bin/file' 315072313efbSmrg lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' 3151bdcaa8d0Smrg ;; 315272313efbSmrg sni) 315372313efbSmrg lt_cv_file_magic_cmd='/bin/file' 315472313efbSmrg lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" 315572313efbSmrg lt_cv_file_magic_test_file=/lib/libc.so 3156bdcaa8d0Smrg ;; 315772313efbSmrg siemens) 315872313efbSmrg lt_cv_deplibs_check_method=pass_all 315972313efbSmrg ;; 316072313efbSmrg pc) 316172313efbSmrg lt_cv_deplibs_check_method=pass_all 316272313efbSmrg ;; 316372313efbSmrg esac 316472313efbSmrg ;; 3165bdcaa8d0Smrg 316672313efbSmrgtpf*) 316772313efbSmrg lt_cv_deplibs_check_method=pass_all 316872313efbSmrg ;; 316972313efbSmrgesac 317072313efbSmrg]) 317172313efbSmrgfile_magic_cmd=$lt_cv_file_magic_cmd 317272313efbSmrgdeplibs_check_method=$lt_cv_deplibs_check_method 317372313efbSmrgtest -z "$deplibs_check_method" && deplibs_check_method=unknown 3174bdcaa8d0Smrg 317572313efbSmrg_LT_DECL([], [deplibs_check_method], [1], 317672313efbSmrg [Method to check whether dependent libraries are shared objects]) 317772313efbSmrg_LT_DECL([], [file_magic_cmd], [1], 317872313efbSmrg [Command to use when deplibs_check_method == "file_magic"]) 317972313efbSmrg])# _LT_CHECK_MAGIC_METHOD 3180bdcaa8d0Smrg 3181bdcaa8d0Smrg 318272313efbSmrg# LT_PATH_NM 318372313efbSmrg# ---------- 318472313efbSmrg# find the pathname to a BSD- or MS-compatible name lister 318572313efbSmrgAC_DEFUN([LT_PATH_NM], 318672313efbSmrg[AC_REQUIRE([AC_PROG_CC])dnl 318772313efbSmrgAC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM, 318872313efbSmrg[if test -n "$NM"; then 318972313efbSmrg # Let the user override the test. 319072313efbSmrg lt_cv_path_NM="$NM" 319172313efbSmrgelse 319272313efbSmrg lt_nm_to_check="${ac_tool_prefix}nm" 319372313efbSmrg if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 319472313efbSmrg lt_nm_to_check="$lt_nm_to_check nm" 319572313efbSmrg fi 319672313efbSmrg for lt_tmp_nm in $lt_nm_to_check; do 319772313efbSmrg lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 319872313efbSmrg for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 319972313efbSmrg IFS="$lt_save_ifs" 320072313efbSmrg test -z "$ac_dir" && ac_dir=. 320172313efbSmrg tmp_nm="$ac_dir/$lt_tmp_nm" 320272313efbSmrg if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 320372313efbSmrg # Check to see if the nm accepts a BSD-compat flag. 320472313efbSmrg # Adding the `sed 1q' prevents false positives on HP-UX, which says: 320572313efbSmrg # nm: unknown option "B" ignored 320672313efbSmrg # Tru64's nm complains that /dev/null is an invalid object file 320772313efbSmrg case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 320872313efbSmrg */dev/null* | *'Invalid file or object type'*) 320972313efbSmrg lt_cv_path_NM="$tmp_nm -B" 321072313efbSmrg break 321172313efbSmrg ;; 321272313efbSmrg *) 321372313efbSmrg case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 321472313efbSmrg */dev/null*) 321572313efbSmrg lt_cv_path_NM="$tmp_nm -p" 321672313efbSmrg break 321772313efbSmrg ;; 321872313efbSmrg *) 321972313efbSmrg lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 322072313efbSmrg continue # so that we can try to find one that supports BSD flags 322172313efbSmrg ;; 322272313efbSmrg esac 322372313efbSmrg ;; 322472313efbSmrg esac 322572313efbSmrg fi 322672313efbSmrg done 322772313efbSmrg IFS="$lt_save_ifs" 3228bdcaa8d0Smrg done 322972313efbSmrg : ${lt_cv_path_NM=no} 323072313efbSmrgfi]) 323172313efbSmrgif test "$lt_cv_path_NM" != "no"; then 323272313efbSmrg NM="$lt_cv_path_NM" 3233bdcaa8d0Smrgelse 323472313efbSmrg # Didn't find any BSD compatible name lister, look for dumpbin. 323572313efbSmrg AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :) 323672313efbSmrg AC_SUBST([DUMPBIN]) 323772313efbSmrg if test "$DUMPBIN" != ":"; then 323872313efbSmrg NM="$DUMPBIN" 323972313efbSmrg fi 3240bdcaa8d0Smrgfi 324172313efbSmrgtest -z "$NM" && NM=nm 324272313efbSmrgAC_SUBST([NM]) 324372313efbSmrg_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl 324472313efbSmrg 324572313efbSmrgAC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface], 324672313efbSmrg [lt_cv_nm_interface="BSD nm" 324772313efbSmrg echo "int some_variable = 0;" > conftest.$ac_ext 324872313efbSmrg (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD) 324972313efbSmrg (eval "$ac_compile" 2>conftest.err) 325072313efbSmrg cat conftest.err >&AS_MESSAGE_LOG_FD 325172313efbSmrg (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD) 325272313efbSmrg (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 325372313efbSmrg cat conftest.err >&AS_MESSAGE_LOG_FD 325472313efbSmrg (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD) 325572313efbSmrg cat conftest.out >&AS_MESSAGE_LOG_FD 325672313efbSmrg if $GREP 'External.*some_variable' conftest.out > /dev/null; then 325772313efbSmrg lt_cv_nm_interface="MS dumpbin" 325872313efbSmrg fi 325972313efbSmrg rm -f conftest*]) 326072313efbSmrg])# LT_PATH_NM 3261bdcaa8d0Smrg 326272313efbSmrg# Old names: 326372313efbSmrgAU_ALIAS([AM_PROG_NM], [LT_PATH_NM]) 326472313efbSmrgAU_ALIAS([AC_PROG_NM], [LT_PATH_NM]) 326572313efbSmrgdnl aclocal-1.4 backwards compatibility: 326672313efbSmrgdnl AC_DEFUN([AM_PROG_NM], []) 326772313efbSmrgdnl AC_DEFUN([AC_PROG_NM], []) 3268bdcaa8d0Smrg 3269bdcaa8d0Smrg 327072313efbSmrg# LT_LIB_M 327172313efbSmrg# -------- 327272313efbSmrg# check for math library 327372313efbSmrgAC_DEFUN([LT_LIB_M], 327472313efbSmrg[AC_REQUIRE([AC_CANONICAL_HOST])dnl 327572313efbSmrgLIBM= 327672313efbSmrgcase $host in 327772313efbSmrg*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*) 327872313efbSmrg # These system don't have libm, or don't need it 327972313efbSmrg ;; 328072313efbSmrg*-ncr-sysv4.3*) 328172313efbSmrg AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw") 328272313efbSmrg AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") 328372313efbSmrg ;; 328472313efbSmrg*) 328572313efbSmrg AC_CHECK_LIB(m, cos, LIBM="-lm") 3286bdcaa8d0Smrg ;; 3287bdcaa8d0Smrgesac 328872313efbSmrgAC_SUBST([LIBM]) 328972313efbSmrg])# LT_LIB_M 3290bdcaa8d0Smrg 329172313efbSmrg# Old name: 329272313efbSmrgAU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M]) 329372313efbSmrgdnl aclocal-1.4 backwards compatibility: 329472313efbSmrgdnl AC_DEFUN([AC_CHECK_LIBM], []) 3295bdcaa8d0Smrg 3296bdcaa8d0Smrg 329772313efbSmrg# _LT_COMPILER_NO_RTTI([TAGNAME]) 329872313efbSmrg# ------------------------------- 329972313efbSmrgm4_defun([_LT_COMPILER_NO_RTTI], 330072313efbSmrg[m4_require([_LT_TAG_COMPILER])dnl 3301bdcaa8d0Smrg 330272313efbSmrg_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= 3303bdcaa8d0Smrg 330472313efbSmrgif test "$GCC" = yes; then 330572313efbSmrg _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' 3306bdcaa8d0Smrg 330772313efbSmrg _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], 330872313efbSmrg lt_cv_prog_compiler_rtti_exceptions, 330972313efbSmrg [-fno-rtti -fno-exceptions], [], 331072313efbSmrg [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) 331172313efbSmrgfi 331272313efbSmrg_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1], 331372313efbSmrg [Compiler flag to turn off builtin functions]) 331472313efbSmrg])# _LT_COMPILER_NO_RTTI 3315bdcaa8d0Smrg 3316bdcaa8d0Smrg 331772313efbSmrg# _LT_CMD_GLOBAL_SYMBOLS 331872313efbSmrg# ---------------------- 331972313efbSmrgm4_defun([_LT_CMD_GLOBAL_SYMBOLS], 332072313efbSmrg[AC_REQUIRE([AC_CANONICAL_HOST])dnl 332172313efbSmrgAC_REQUIRE([AC_PROG_CC])dnl 332272313efbSmrgAC_REQUIRE([LT_PATH_NM])dnl 332372313efbSmrgAC_REQUIRE([LT_PATH_LD])dnl 332472313efbSmrgm4_require([_LT_DECL_SED])dnl 332572313efbSmrgm4_require([_LT_DECL_EGREP])dnl 332672313efbSmrgm4_require([_LT_TAG_COMPILER])dnl 3327bdcaa8d0Smrg 332872313efbSmrg# Check for command to grab the raw symbol name followed by C symbol from nm. 332972313efbSmrgAC_MSG_CHECKING([command to parse $NM output from $compiler object]) 333072313efbSmrgAC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], 333172313efbSmrg[ 333272313efbSmrg# These are sane defaults that work on at least a few old systems. 333372313efbSmrg# [They come from Ultrix. What could be older than Ultrix?!! ;)] 3334bdcaa8d0Smrg 333572313efbSmrg# Character class describing NM global symbol codes. 333672313efbSmrgsymcode='[[BCDEGRST]]' 3337bdcaa8d0Smrg 333872313efbSmrg# Regexp to match symbols that can be accessed directly from C. 333972313efbSmrgsympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' 3340bdcaa8d0Smrg 334172313efbSmrg# Define system-specific variables. 3342bdcaa8d0Smrgcase $host_os in 334372313efbSmrgaix*) 334472313efbSmrg symcode='[[BCDT]]' 3345bdcaa8d0Smrg ;; 334672313efbSmrgcygwin* | mingw* | pw32* | cegcc*) 334772313efbSmrg symcode='[[ABCDGISTW]]' 334872313efbSmrg ;; 334972313efbSmrghpux*) 335072313efbSmrg if test "$host_cpu" = ia64; then 335172313efbSmrg symcode='[[ABCDEGRST]]' 3352bdcaa8d0Smrg fi 3353bdcaa8d0Smrg ;; 335472313efbSmrgirix* | nonstopux*) 335572313efbSmrg symcode='[[BCDEGRST]]' 335672313efbSmrg ;; 335772313efbSmrgosf*) 335872313efbSmrg symcode='[[BCDEGQRST]]' 335972313efbSmrg ;; 336072313efbSmrgsolaris*) 336172313efbSmrg symcode='[[BDRT]]' 336272313efbSmrg ;; 336372313efbSmrgsco3.2v5*) 336472313efbSmrg symcode='[[DT]]' 336572313efbSmrg ;; 336672313efbSmrgsysv4.2uw2*) 336772313efbSmrg symcode='[[DT]]' 336872313efbSmrg ;; 336972313efbSmrgsysv5* | sco5v6* | unixware* | OpenUNIX*) 337072313efbSmrg symcode='[[ABDT]]' 337172313efbSmrg ;; 337272313efbSmrgsysv4) 337372313efbSmrg symcode='[[DFNSTU]]' 337472313efbSmrg ;; 3375bdcaa8d0Smrgesac 3376bdcaa8d0Smrg 337772313efbSmrg# If we're using GNU nm, then use its standard symbol codes. 337872313efbSmrgcase `$NM -V 2>&1` in 337972313efbSmrg*GNU* | *'with BFD'*) 338072313efbSmrg symcode='[[ABCDGIRSTW]]' ;; 338172313efbSmrgesac 3382bdcaa8d0Smrg 338372313efbSmrg# Transform an extracted symbol line into a proper C declaration. 338472313efbSmrg# Some systems (esp. on ia64) link data and code symbols differently, 338572313efbSmrg# so use this general approach. 338672313efbSmrglt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 3387bdcaa8d0Smrg 338872313efbSmrg# Transform an extracted symbol line into symbol name and symbol address 338972313efbSmrglt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'" 339072313efbSmrglt_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'" 3391bdcaa8d0Smrg 339272313efbSmrg# Handle CRLF in mingw tool chain 339372313efbSmrgopt_cr= 339472313efbSmrgcase $build_os in 339572313efbSmrgmingw*) 339672313efbSmrg opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 339772313efbSmrg ;; 339872313efbSmrgesac 3399bdcaa8d0Smrg 340072313efbSmrg# Try without a prefix underscore, then with it. 340172313efbSmrgfor ac_symprfx in "" "_"; do 3402bdcaa8d0Smrg 340372313efbSmrg # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 340472313efbSmrg symxfrm="\\1 $ac_symprfx\\2 \\2" 3405bdcaa8d0Smrg 340672313efbSmrg # Write the raw and C identifiers. 340772313efbSmrg if test "$lt_cv_nm_interface" = "MS dumpbin"; then 340872313efbSmrg # Fake it for dumpbin and say T for any non-static function 340972313efbSmrg # and D for any global variable. 341072313efbSmrg # Also find C++ and __fastcall symbols from MSVC++, 341172313efbSmrg # which start with @ or ?. 341272313efbSmrg lt_cv_sys_global_symbol_pipe="$AWK ['"\ 341372313efbSmrg" {last_section=section; section=\$ 3};"\ 341472313efbSmrg" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 341572313efbSmrg" \$ 0!~/External *\|/{next};"\ 341672313efbSmrg" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 341772313efbSmrg" {if(hide[section]) next};"\ 341872313efbSmrg" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 341972313efbSmrg" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 342072313efbSmrg" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 342172313efbSmrg" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 342272313efbSmrg" ' prfx=^$ac_symprfx]" 342372313efbSmrg else 342472313efbSmrg lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 342572313efbSmrg fi 3426bdcaa8d0Smrg 342772313efbSmrg # Check to see that the pipe works correctly. 342872313efbSmrg pipe_works=no 3429bdcaa8d0Smrg 343072313efbSmrg rm -f conftest* 343172313efbSmrg cat > conftest.$ac_ext <<_LT_EOF 343272313efbSmrg#ifdef __cplusplus 343372313efbSmrgextern "C" { 343472313efbSmrg#endif 343572313efbSmrgchar nm_test_var; 343672313efbSmrgvoid nm_test_func(void); 343772313efbSmrgvoid nm_test_func(void){} 343872313efbSmrg#ifdef __cplusplus 343972313efbSmrg} 344072313efbSmrg#endif 344172313efbSmrgint main(){nm_test_var='a';nm_test_func();return(0);} 344272313efbSmrg_LT_EOF 3443bdcaa8d0Smrg 344472313efbSmrg if AC_TRY_EVAL(ac_compile); then 344572313efbSmrg # Now try to grab the symbols. 344672313efbSmrg nlist=conftest.nm 344772313efbSmrg if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then 344872313efbSmrg # Try sorting and uniquifying the output. 344972313efbSmrg if sort "$nlist" | uniq > "$nlist"T; then 345072313efbSmrg mv -f "$nlist"T "$nlist" 345172313efbSmrg else 345272313efbSmrg rm -f "$nlist"T 345372313efbSmrg fi 3454bdcaa8d0Smrg 345572313efbSmrg # Make sure that we snagged all the symbols we need. 345672313efbSmrg if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 345772313efbSmrg if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 345872313efbSmrg cat <<_LT_EOF > conftest.$ac_ext 345972313efbSmrg#ifdef __cplusplus 346072313efbSmrgextern "C" { 346172313efbSmrg#endif 3462bdcaa8d0Smrg 346372313efbSmrg_LT_EOF 346472313efbSmrg # Now generate the symbol file. 346572313efbSmrg eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 3466bdcaa8d0Smrg 346772313efbSmrg cat <<_LT_EOF >> conftest.$ac_ext 3468bdcaa8d0Smrg 346972313efbSmrg/* The mapping between symbol names and symbols. */ 347072313efbSmrgconst struct { 347172313efbSmrg const char *name; 347272313efbSmrg void *address; 347372313efbSmrg} 347472313efbSmrglt__PROGRAM__LTX_preloaded_symbols[[]] = 347572313efbSmrg{ 347672313efbSmrg { "@PROGRAM@", (void *) 0 }, 347772313efbSmrg_LT_EOF 347872313efbSmrg $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 347972313efbSmrg cat <<\_LT_EOF >> conftest.$ac_ext 348072313efbSmrg {0, (void *) 0} 348172313efbSmrg}; 3482bdcaa8d0Smrg 348372313efbSmrg/* This works around a problem in FreeBSD linker */ 348472313efbSmrg#ifdef FREEBSD_WORKAROUND 348572313efbSmrgstatic const void *lt_preloaded_setup() { 348672313efbSmrg return lt__PROGRAM__LTX_preloaded_symbols; 348772313efbSmrg} 348872313efbSmrg#endif 3489bdcaa8d0Smrg 349072313efbSmrg#ifdef __cplusplus 349172313efbSmrg} 349272313efbSmrg#endif 349372313efbSmrg_LT_EOF 349472313efbSmrg # Now try linking the two files. 349572313efbSmrg mv conftest.$ac_objext conftstm.$ac_objext 349672313efbSmrg lt_save_LIBS="$LIBS" 349772313efbSmrg lt_save_CFLAGS="$CFLAGS" 349872313efbSmrg LIBS="conftstm.$ac_objext" 349972313efbSmrg CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" 350072313efbSmrg if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then 350172313efbSmrg pipe_works=yes 350272313efbSmrg fi 350372313efbSmrg LIBS="$lt_save_LIBS" 350472313efbSmrg CFLAGS="$lt_save_CFLAGS" 350572313efbSmrg else 350672313efbSmrg echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD 350772313efbSmrg fi 350872313efbSmrg else 350972313efbSmrg echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD 351072313efbSmrg fi 351172313efbSmrg else 351272313efbSmrg echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD 351372313efbSmrg fi 351472313efbSmrg else 351572313efbSmrg echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD 351672313efbSmrg cat conftest.$ac_ext >&5 351772313efbSmrg fi 351872313efbSmrg rm -rf conftest* conftst* 3519bdcaa8d0Smrg 352072313efbSmrg # Do not use the global_symbol_pipe unless it works. 352172313efbSmrg if test "$pipe_works" = yes; then 352272313efbSmrg break 352372313efbSmrg else 352472313efbSmrg lt_cv_sys_global_symbol_pipe= 352572313efbSmrg fi 352672313efbSmrgdone 352772313efbSmrg]) 352872313efbSmrgif test -z "$lt_cv_sys_global_symbol_pipe"; then 352972313efbSmrg lt_cv_sys_global_symbol_to_cdecl= 353072313efbSmrgfi 353172313efbSmrgif test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 353272313efbSmrg AC_MSG_RESULT(failed) 353372313efbSmrgelse 353472313efbSmrg AC_MSG_RESULT(ok) 353572313efbSmrgfi 3536bdcaa8d0Smrg 353772313efbSmrg_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1], 353872313efbSmrg [Take the output of nm and produce a listing of raw symbols and C names]) 353972313efbSmrg_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1], 354072313efbSmrg [Transform the output of nm in a proper C declaration]) 354172313efbSmrg_LT_DECL([global_symbol_to_c_name_address], 354272313efbSmrg [lt_cv_sys_global_symbol_to_c_name_address], [1], 354372313efbSmrg [Transform the output of nm in a C name address pair]) 354472313efbSmrg_LT_DECL([global_symbol_to_c_name_address_lib_prefix], 354572313efbSmrg [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1], 354672313efbSmrg [Transform the output of nm in a C name address pair when lib prefix is needed]) 354772313efbSmrg]) # _LT_CMD_GLOBAL_SYMBOLS 3548bdcaa8d0Smrg 3549bdcaa8d0Smrg 355072313efbSmrg# _LT_COMPILER_PIC([TAGNAME]) 355172313efbSmrg# --------------------------- 355272313efbSmrgm4_defun([_LT_COMPILER_PIC], 355372313efbSmrg[m4_require([_LT_TAG_COMPILER])dnl 355472313efbSmrg_LT_TAGVAR(lt_prog_compiler_wl, $1)= 355572313efbSmrg_LT_TAGVAR(lt_prog_compiler_pic, $1)= 355672313efbSmrg_LT_TAGVAR(lt_prog_compiler_static, $1)= 3557bdcaa8d0Smrg 355872313efbSmrgAC_MSG_CHECKING([for $compiler option to produce PIC]) 355972313efbSmrgm4_if([$1], [CXX], [ 356072313efbSmrg # C++ specific cases for pic, static, wl, etc. 356172313efbSmrg if test "$GXX" = yes; then 356272313efbSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 356372313efbSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 3564bdcaa8d0Smrg 356572313efbSmrg case $host_os in 356672313efbSmrg aix*) 356772313efbSmrg # All AIX code is PIC. 356872313efbSmrg if test "$host_cpu" = ia64; then 356972313efbSmrg # AIX 5 now supports IA64 processor 357072313efbSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 357172313efbSmrg fi 357272313efbSmrg ;; 3573bdcaa8d0Smrg 357472313efbSmrg amigaos*) 357572313efbSmrg case $host_cpu in 357672313efbSmrg powerpc) 357772313efbSmrg # see comment about AmigaOS4 .so support 357872313efbSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 357972313efbSmrg ;; 358072313efbSmrg m68k) 358172313efbSmrg # FIXME: we need at least 68020 code to build shared libraries, but 358272313efbSmrg # adding the `-m68020' flag to GCC prevents building anything better, 358372313efbSmrg # like `-m68040'. 358472313efbSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' 358572313efbSmrg ;; 358672313efbSmrg esac 358772313efbSmrg ;; 3588bdcaa8d0Smrg 358972313efbSmrg beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 359072313efbSmrg # PIC is the default for these OSes. 359172313efbSmrg ;; 359272313efbSmrg mingw* | cygwin* | os2* | pw32* | cegcc*) 359372313efbSmrg # This hack is so that the source file can tell whether it is being 359472313efbSmrg # built for inclusion in a dll (and should export symbols for example). 359572313efbSmrg # Although the cygwin gcc ignores -fPIC, still need this for old-style 359672313efbSmrg # (--disable-auto-import) libraries 359772313efbSmrg m4_if([$1], [GCJ], [], 359872313efbSmrg [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) 359972313efbSmrg ;; 360072313efbSmrg darwin* | rhapsody*) 360172313efbSmrg # PIC is the default on this platform 360272313efbSmrg # Common symbols not allowed in MH_DYLIB files 360372313efbSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' 360472313efbSmrg ;; 360572313efbSmrg *djgpp*) 360672313efbSmrg # DJGPP does not support shared libraries at all 360772313efbSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)= 360872313efbSmrg ;; 360972313efbSmrg interix[[3-9]]*) 361072313efbSmrg # Interix 3.x gcc -fpic/-fPIC options generate broken code. 361172313efbSmrg # Instead, we relocate shared libraries at runtime. 361272313efbSmrg ;; 361372313efbSmrg sysv4*MP*) 361472313efbSmrg if test -d /usr/nec; then 361572313efbSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic 361672313efbSmrg fi 361772313efbSmrg ;; 361872313efbSmrg hpux*) 361972313efbSmrg # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 362072313efbSmrg # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 362172313efbSmrg # sets the default TLS model and affects inlining. 362272313efbSmrg case $host_cpu in 362372313efbSmrg hppa*64*) 362472313efbSmrg ;; 362572313efbSmrg *) 362672313efbSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 362772313efbSmrg ;; 362872313efbSmrg esac 362972313efbSmrg ;; 363072313efbSmrg *qnx* | *nto*) 363172313efbSmrg # QNX uses GNU C++, but need to define -shared option too, otherwise 363272313efbSmrg # it will coredump. 363372313efbSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' 3634bdcaa8d0Smrg ;; 3635bdcaa8d0Smrg *) 363672313efbSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 3637bdcaa8d0Smrg ;; 3638bdcaa8d0Smrg esac 363972313efbSmrg else 364072313efbSmrg case $host_os in 364172313efbSmrg aix[[4-9]]*) 364272313efbSmrg # All AIX code is PIC. 364372313efbSmrg if test "$host_cpu" = ia64; then 364472313efbSmrg # AIX 5 now supports IA64 processor 364572313efbSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 364672313efbSmrg else 364772313efbSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' 364872313efbSmrg fi 364972313efbSmrg ;; 365072313efbSmrg chorus*) 365172313efbSmrg case $cc_basename in 365272313efbSmrg cxch68*) 365372313efbSmrg # Green Hills C++ Compiler 365472313efbSmrg # _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" 365572313efbSmrg ;; 365672313efbSmrg esac 365772313efbSmrg ;; 365872313efbSmrg dgux*) 365972313efbSmrg case $cc_basename in 366072313efbSmrg ec++*) 366172313efbSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 366272313efbSmrg ;; 366372313efbSmrg ghcx*) 366472313efbSmrg # Green Hills C++ Compiler 366572313efbSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 366672313efbSmrg ;; 366772313efbSmrg *) 366872313efbSmrg ;; 366972313efbSmrg esac 367072313efbSmrg ;; 367172313efbSmrg freebsd* | dragonfly*) 367272313efbSmrg # FreeBSD uses GNU C++ 367372313efbSmrg ;; 367472313efbSmrg hpux9* | hpux10* | hpux11*) 367572313efbSmrg case $cc_basename in 367672313efbSmrg CC*) 367772313efbSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 367872313efbSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' 367972313efbSmrg if test "$host_cpu" != ia64; then 368072313efbSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 368172313efbSmrg fi 368272313efbSmrg ;; 368372313efbSmrg aCC*) 368472313efbSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 368572313efbSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' 368672313efbSmrg case $host_cpu in 368772313efbSmrg hppa*64*|ia64*) 368872313efbSmrg # +Z the default 368972313efbSmrg ;; 369072313efbSmrg *) 369172313efbSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 369272313efbSmrg ;; 369372313efbSmrg esac 369472313efbSmrg ;; 369572313efbSmrg *) 369672313efbSmrg ;; 369772313efbSmrg esac 369872313efbSmrg ;; 369972313efbSmrg interix*) 370072313efbSmrg # This is c89, which is MS Visual C++ (no shared libs) 370172313efbSmrg # Anyone wants to do a port? 370272313efbSmrg ;; 370372313efbSmrg irix5* | irix6* | nonstopux*) 370472313efbSmrg case $cc_basename in 370572313efbSmrg CC*) 370672313efbSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 370772313efbSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 370872313efbSmrg # CC pic flag -KPIC is the default. 370972313efbSmrg ;; 371072313efbSmrg *) 371172313efbSmrg ;; 371272313efbSmrg esac 371372313efbSmrg ;; 371472313efbSmrg linux* | k*bsd*-gnu) 371572313efbSmrg case $cc_basename in 371672313efbSmrg KCC*) 371772313efbSmrg # KAI C++ Compiler 371872313efbSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' 371972313efbSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 372072313efbSmrg ;; 372172313efbSmrg ecpc* ) 372272313efbSmrg # old Intel C++ for x86_64 which still supported -KPIC. 372372313efbSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 372472313efbSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 372572313efbSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 372672313efbSmrg ;; 372772313efbSmrg icpc* ) 372872313efbSmrg # Intel C++, used to be incompatible with GCC. 372972313efbSmrg # ICC 10 doesn't accept -KPIC any more. 373072313efbSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 373172313efbSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 373272313efbSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 373372313efbSmrg ;; 373472313efbSmrg pgCC* | pgcpp*) 373572313efbSmrg # Portland Group C++ compiler 373672313efbSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 373772313efbSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' 373872313efbSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 373972313efbSmrg ;; 374072313efbSmrg cxx*) 374172313efbSmrg # Compaq C++ 374272313efbSmrg # Make sure the PIC flag is empty. It appears that all Alpha 374372313efbSmrg # Linux and Compaq Tru64 Unix objects are PIC. 374472313efbSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)= 374572313efbSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 374672313efbSmrg ;; 374772313efbSmrg xlc* | xlC*) 374872313efbSmrg # IBM XL 8.0 on PPC 374972313efbSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 375072313efbSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' 375172313efbSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' 375272313efbSmrg ;; 375372313efbSmrg *) 375472313efbSmrg case `$CC -V 2>&1 | sed 5q` in 375572313efbSmrg *Sun\ C*) 375672313efbSmrg # Sun C++ 5.9 375772313efbSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 375872313efbSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 375972313efbSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 376072313efbSmrg ;; 376172313efbSmrg esac 376272313efbSmrg ;; 376372313efbSmrg esac 376472313efbSmrg ;; 376572313efbSmrg lynxos*) 376672313efbSmrg ;; 376772313efbSmrg m88k*) 376872313efbSmrg ;; 376972313efbSmrg mvs*) 377072313efbSmrg case $cc_basename in 377172313efbSmrg cxx*) 377272313efbSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' 377372313efbSmrg ;; 377472313efbSmrg *) 377572313efbSmrg ;; 377672313efbSmrg esac 377772313efbSmrg ;; 377872313efbSmrg netbsd*) 377972313efbSmrg ;; 378072313efbSmrg *qnx* | *nto*) 378172313efbSmrg # QNX uses GNU C++, but need to define -shared option too, otherwise 378272313efbSmrg # it will coredump. 378372313efbSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' 378472313efbSmrg ;; 378572313efbSmrg osf3* | osf4* | osf5*) 378672313efbSmrg case $cc_basename in 378772313efbSmrg KCC*) 378872313efbSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' 378972313efbSmrg ;; 379072313efbSmrg RCC*) 379172313efbSmrg # Rational C++ 2.4.1 379272313efbSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 379372313efbSmrg ;; 379472313efbSmrg cxx*) 379572313efbSmrg # Digital/Compaq C++ 379672313efbSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 379772313efbSmrg # Make sure the PIC flag is empty. It appears that all Alpha 379872313efbSmrg # Linux and Compaq Tru64 Unix objects are PIC. 379972313efbSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)= 380072313efbSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 380172313efbSmrg ;; 380272313efbSmrg *) 380372313efbSmrg ;; 380472313efbSmrg esac 380572313efbSmrg ;; 380672313efbSmrg psos*) 380772313efbSmrg ;; 380872313efbSmrg solaris*) 380972313efbSmrg case $cc_basename in 381072313efbSmrg CC*) 381172313efbSmrg # Sun C++ 4.2, 5.x and Centerline C++ 381272313efbSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 381372313efbSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 381472313efbSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 381572313efbSmrg ;; 381672313efbSmrg gcx*) 381772313efbSmrg # Green Hills C++ Compiler 381872313efbSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' 381972313efbSmrg ;; 382072313efbSmrg *) 382172313efbSmrg ;; 382272313efbSmrg esac 382372313efbSmrg ;; 382472313efbSmrg sunos4*) 382572313efbSmrg case $cc_basename in 382672313efbSmrg CC*) 382772313efbSmrg # Sun C++ 4.x 382872313efbSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 382972313efbSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 383072313efbSmrg ;; 383172313efbSmrg lcc*) 383272313efbSmrg # Lucid 383372313efbSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 383472313efbSmrg ;; 383572313efbSmrg *) 383672313efbSmrg ;; 383772313efbSmrg esac 383872313efbSmrg ;; 383972313efbSmrg sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 384072313efbSmrg case $cc_basename in 384172313efbSmrg CC*) 384272313efbSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 384372313efbSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 384472313efbSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 384572313efbSmrg ;; 384672313efbSmrg esac 384772313efbSmrg ;; 384872313efbSmrg tandem*) 384972313efbSmrg case $cc_basename in 385072313efbSmrg NCC*) 385172313efbSmrg # NonStop-UX NCC 3.20 385272313efbSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 385372313efbSmrg ;; 385472313efbSmrg *) 385572313efbSmrg ;; 385672313efbSmrg esac 385772313efbSmrg ;; 385872313efbSmrg vxworks*) 385972313efbSmrg ;; 386072313efbSmrg *) 386172313efbSmrg _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 386272313efbSmrg ;; 386372313efbSmrg esac 386472313efbSmrg fi 386572313efbSmrg], 386672313efbSmrg[ 386772313efbSmrg if test "$GCC" = yes; then 386872313efbSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 386972313efbSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 3870bdcaa8d0Smrg 387172313efbSmrg case $host_os in 387272313efbSmrg aix*) 387372313efbSmrg # All AIX code is PIC. 387472313efbSmrg if test "$host_cpu" = ia64; then 387572313efbSmrg # AIX 5 now supports IA64 processor 387672313efbSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 387772313efbSmrg fi 387872313efbSmrg ;; 3879bdcaa8d0Smrg 388072313efbSmrg amigaos*) 388172313efbSmrg case $host_cpu in 388272313efbSmrg powerpc) 388372313efbSmrg # see comment about AmigaOS4 .so support 388472313efbSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 388572313efbSmrg ;; 388672313efbSmrg m68k) 388772313efbSmrg # FIXME: we need at least 68020 code to build shared libraries, but 388872313efbSmrg # adding the `-m68020' flag to GCC prevents building anything better, 388972313efbSmrg # like `-m68040'. 389072313efbSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' 389172313efbSmrg ;; 389272313efbSmrg esac 389372313efbSmrg ;; 3894bdcaa8d0Smrg 389572313efbSmrg beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 389672313efbSmrg # PIC is the default for these OSes. 389772313efbSmrg ;; 3898bdcaa8d0Smrg 389972313efbSmrg mingw* | cygwin* | pw32* | os2* | cegcc*) 390072313efbSmrg # This hack is so that the source file can tell whether it is being 390172313efbSmrg # built for inclusion in a dll (and should export symbols for example). 390272313efbSmrg # Although the cygwin gcc ignores -fPIC, still need this for old-style 390372313efbSmrg # (--disable-auto-import) libraries 390472313efbSmrg m4_if([$1], [GCJ], [], 390572313efbSmrg [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) 390672313efbSmrg ;; 3907bdcaa8d0Smrg 390872313efbSmrg darwin* | rhapsody*) 390972313efbSmrg # PIC is the default on this platform 391072313efbSmrg # Common symbols not allowed in MH_DYLIB files 391172313efbSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' 391272313efbSmrg ;; 3913bdcaa8d0Smrg 391472313efbSmrg hpux*) 391572313efbSmrg # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 391672313efbSmrg # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 391772313efbSmrg # sets the default TLS model and affects inlining. 391872313efbSmrg case $host_cpu in 391972313efbSmrg hppa*64*) 392072313efbSmrg # +Z the default 392172313efbSmrg ;; 392272313efbSmrg *) 392372313efbSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 392472313efbSmrg ;; 392572313efbSmrg esac 392672313efbSmrg ;; 3927bdcaa8d0Smrg 392872313efbSmrg interix[[3-9]]*) 392972313efbSmrg # Interix 3.x gcc -fpic/-fPIC options generate broken code. 393072313efbSmrg # Instead, we relocate shared libraries at runtime. 393172313efbSmrg ;; 3932bdcaa8d0Smrg 393372313efbSmrg msdosdjgpp*) 393472313efbSmrg # Just because we use GCC doesn't mean we suddenly get shared libraries 393572313efbSmrg # on systems that don't support them. 393672313efbSmrg _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 393772313efbSmrg enable_shared=no 393872313efbSmrg ;; 3939bdcaa8d0Smrg 394072313efbSmrg *nto* | *qnx*) 394172313efbSmrg # QNX uses GNU C++, but need to define -shared option too, otherwise 394272313efbSmrg # it will coredump. 394372313efbSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' 394472313efbSmrg ;; 3945bdcaa8d0Smrg 394672313efbSmrg sysv4*MP*) 394772313efbSmrg if test -d /usr/nec; then 394872313efbSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic 394972313efbSmrg fi 395072313efbSmrg ;; 3951bdcaa8d0Smrg 395272313efbSmrg *) 395372313efbSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 395472313efbSmrg ;; 395572313efbSmrg esac 395672313efbSmrg else 395772313efbSmrg # PORTME Check for flag to pass linker flags through the system compiler. 395872313efbSmrg case $host_os in 395972313efbSmrg aix*) 396072313efbSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 396172313efbSmrg if test "$host_cpu" = ia64; then 396272313efbSmrg # AIX 5 now supports IA64 processor 396372313efbSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 396472313efbSmrg else 396572313efbSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' 396672313efbSmrg fi 396772313efbSmrg ;; 3968bdcaa8d0Smrg 396972313efbSmrg mingw* | cygwin* | pw32* | os2* | cegcc*) 397072313efbSmrg # This hack is so that the source file can tell whether it is being 397172313efbSmrg # built for inclusion in a dll (and should export symbols for example). 397272313efbSmrg m4_if([$1], [GCJ], [], 397372313efbSmrg [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) 397472313efbSmrg ;; 3975bdcaa8d0Smrg 397672313efbSmrg hpux9* | hpux10* | hpux11*) 397772313efbSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 397872313efbSmrg # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 397972313efbSmrg # not for PA HP-UX. 398072313efbSmrg case $host_cpu in 398172313efbSmrg hppa*64*|ia64*) 398272313efbSmrg # +Z the default 398372313efbSmrg ;; 398472313efbSmrg *) 398572313efbSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 398672313efbSmrg ;; 398772313efbSmrg esac 398872313efbSmrg # Is there a better lt_prog_compiler_static that works with the bundled CC? 398972313efbSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' 399072313efbSmrg ;; 3991bdcaa8d0Smrg 399272313efbSmrg irix5* | irix6* | nonstopux*) 399372313efbSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 399472313efbSmrg # PIC (with -KPIC) is the default. 399572313efbSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 399672313efbSmrg ;; 3997bdcaa8d0Smrg 399872313efbSmrg linux* | k*bsd*-gnu) 399972313efbSmrg case $cc_basename in 400072313efbSmrg # old Intel for x86_64 which still supported -KPIC. 400172313efbSmrg ecc*) 400272313efbSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 400372313efbSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 400472313efbSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 400572313efbSmrg ;; 400672313efbSmrg # icc used to be incompatible with GCC. 400772313efbSmrg # ICC 10 doesn't accept -KPIC any more. 400872313efbSmrg icc* | ifort*) 400972313efbSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 401072313efbSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 401172313efbSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 401272313efbSmrg ;; 401372313efbSmrg # Lahey Fortran 8.1. 401472313efbSmrg lf95*) 401572313efbSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 401672313efbSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared' 401772313efbSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='--static' 401872313efbSmrg ;; 401972313efbSmrg pgcc* | pgf77* | pgf90* | pgf95*) 402072313efbSmrg # Portland Group compilers (*not* the Pentium gcc compiler, 402172313efbSmrg # which looks to be a dead project) 402272313efbSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 402372313efbSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' 402472313efbSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 402572313efbSmrg ;; 402672313efbSmrg ccc*) 402772313efbSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 402872313efbSmrg # All Alpha code is PIC. 402972313efbSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 403072313efbSmrg ;; 403172313efbSmrg xl*) 403272313efbSmrg # IBM XL C 8.0/Fortran 10.1 on PPC 403372313efbSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 403472313efbSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' 403572313efbSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' 403672313efbSmrg ;; 403772313efbSmrg *) 403872313efbSmrg case `$CC -V 2>&1 | sed 5q` in 403972313efbSmrg *Sun\ C*) 404072313efbSmrg # Sun C 5.9 404172313efbSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 404272313efbSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 404372313efbSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 404472313efbSmrg ;; 404572313efbSmrg *Sun\ F*) 404672313efbSmrg # Sun Fortran 8.3 passes all unrecognized flags to the linker 404772313efbSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 404872313efbSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 404972313efbSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='' 405072313efbSmrg ;; 405172313efbSmrg esac 405272313efbSmrg ;; 405372313efbSmrg esac 405472313efbSmrg ;; 4055bdcaa8d0Smrg 405672313efbSmrg newsos6) 405772313efbSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 405872313efbSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 405972313efbSmrg ;; 4060bdcaa8d0Smrg 406172313efbSmrg *nto* | *qnx*) 406272313efbSmrg # QNX uses GNU C++, but need to define -shared option too, otherwise 406372313efbSmrg # it will coredump. 406472313efbSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' 406572313efbSmrg ;; 4066bdcaa8d0Smrg 406772313efbSmrg osf3* | osf4* | osf5*) 406872313efbSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 406972313efbSmrg # All OSF/1 code is PIC. 407072313efbSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 407172313efbSmrg ;; 4072bdcaa8d0Smrg 407372313efbSmrg rdos*) 407472313efbSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 407572313efbSmrg ;; 4076bdcaa8d0Smrg 407772313efbSmrg solaris*) 407872313efbSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 407972313efbSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 408072313efbSmrg case $cc_basename in 408172313efbSmrg f77* | f90* | f95*) 408272313efbSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; 408372313efbSmrg *) 408472313efbSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; 408572313efbSmrg esac 408672313efbSmrg ;; 4087bdcaa8d0Smrg 408872313efbSmrg sunos4*) 408972313efbSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 409072313efbSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' 409172313efbSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 409272313efbSmrg ;; 4093bdcaa8d0Smrg 409472313efbSmrg sysv4 | sysv4.2uw2* | sysv4.3*) 409572313efbSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 409672313efbSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 409772313efbSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 409872313efbSmrg ;; 4099bdcaa8d0Smrg 410072313efbSmrg sysv4*MP*) 410172313efbSmrg if test -d /usr/nec ;then 410272313efbSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' 410372313efbSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 410472313efbSmrg fi 410572313efbSmrg ;; 4106bdcaa8d0Smrg 410772313efbSmrg sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 410872313efbSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 410972313efbSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 411072313efbSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 411172313efbSmrg ;; 4112bdcaa8d0Smrg 411372313efbSmrg unicos*) 411472313efbSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 411572313efbSmrg _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 411672313efbSmrg ;; 4117bdcaa8d0Smrg 411872313efbSmrg uts4*) 411972313efbSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 412072313efbSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 412172313efbSmrg ;; 4122bdcaa8d0Smrg 412372313efbSmrg *) 412472313efbSmrg _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 412572313efbSmrg ;; 412672313efbSmrg esac 412772313efbSmrg fi 412872313efbSmrg]) 412972313efbSmrgcase $host_os in 413072313efbSmrg # For platforms which do not support PIC, -DPIC is meaningless: 413172313efbSmrg *djgpp*) 413272313efbSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)= 413372313efbSmrg ;; 413472313efbSmrg *) 413572313efbSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])" 413672313efbSmrg ;; 413772313efbSmrgesac 413872313efbSmrgAC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)]) 413972313efbSmrg_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1], 414072313efbSmrg [How to pass a linker flag through the compiler]) 4141bdcaa8d0Smrg 414272313efbSmrg# 414372313efbSmrg# Check to make sure the PIC flag actually works. 414472313efbSmrg# 414572313efbSmrgif test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then 414672313efbSmrg _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works], 414772313efbSmrg [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)], 414872313efbSmrg [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [], 414972313efbSmrg [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in 415072313efbSmrg "" | " "*) ;; 415172313efbSmrg *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;; 415272313efbSmrg esac], 415372313efbSmrg [_LT_TAGVAR(lt_prog_compiler_pic, $1)= 415472313efbSmrg _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) 415572313efbSmrgfi 415672313efbSmrg_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1], 415772313efbSmrg [Additional compiler flags for building library objects]) 4158bdcaa8d0Smrg 415972313efbSmrg# 416072313efbSmrg# Check to make sure the static flag actually works. 416172313efbSmrg# 416272313efbSmrgwl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\" 416372313efbSmrg_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], 416472313efbSmrg _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1), 416572313efbSmrg $lt_tmp_static_flag, 416672313efbSmrg [], 416772313efbSmrg [_LT_TAGVAR(lt_prog_compiler_static, $1)=]) 416872313efbSmrg_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1], 416972313efbSmrg [Compiler flag to prevent dynamic linking]) 417072313efbSmrg])# _LT_COMPILER_PIC 4171bdcaa8d0Smrg 4172bdcaa8d0Smrg 417372313efbSmrg# _LT_LINKER_SHLIBS([TAGNAME]) 417472313efbSmrg# ---------------------------- 417572313efbSmrg# See if the linker supports building shared libraries. 417672313efbSmrgm4_defun([_LT_LINKER_SHLIBS], 417772313efbSmrg[AC_REQUIRE([LT_PATH_LD])dnl 417872313efbSmrgAC_REQUIRE([LT_PATH_NM])dnl 417972313efbSmrgm4_require([_LT_FILEUTILS_DEFAULTS])dnl 418072313efbSmrgm4_require([_LT_DECL_EGREP])dnl 418172313efbSmrgm4_require([_LT_DECL_SED])dnl 418272313efbSmrgm4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl 418372313efbSmrgm4_require([_LT_TAG_COMPILER])dnl 418472313efbSmrgAC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) 418572313efbSmrgm4_if([$1], [CXX], [ 418672313efbSmrg _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 418772313efbSmrg case $host_os in 418872313efbSmrg aix[[4-9]]*) 418972313efbSmrg # If we're using GNU nm, then we don't want the "-C" option. 419072313efbSmrg # -C means demangle to AIX nm, but means don't demangle with GNU nm 419172313efbSmrg if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 419272313efbSmrg _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 419372313efbSmrg else 419472313efbSmrg _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' 419572313efbSmrg fi 419672313efbSmrg ;; 419772313efbSmrg pw32*) 419872313efbSmrg _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" 419972313efbSmrg ;; 420072313efbSmrg cygwin* | mingw* | cegcc*) 420172313efbSmrg _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols' 420272313efbSmrg ;; 420372313efbSmrg *) 420472313efbSmrg _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 420572313efbSmrg ;; 420672313efbSmrg esac 420772313efbSmrg _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] 420872313efbSmrg], [ 420972313efbSmrg runpath_var= 421072313efbSmrg _LT_TAGVAR(allow_undefined_flag, $1)= 421172313efbSmrg _LT_TAGVAR(always_export_symbols, $1)=no 421272313efbSmrg _LT_TAGVAR(archive_cmds, $1)= 421372313efbSmrg _LT_TAGVAR(archive_expsym_cmds, $1)= 421472313efbSmrg _LT_TAGVAR(compiler_needs_object, $1)=no 421572313efbSmrg _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no 421672313efbSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)= 421772313efbSmrg _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 421872313efbSmrg _LT_TAGVAR(hardcode_automatic, $1)=no 421972313efbSmrg _LT_TAGVAR(hardcode_direct, $1)=no 422072313efbSmrg _LT_TAGVAR(hardcode_direct_absolute, $1)=no 422172313efbSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 422272313efbSmrg _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= 422372313efbSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)= 422472313efbSmrg _LT_TAGVAR(hardcode_minus_L, $1)=no 422572313efbSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 422672313efbSmrg _LT_TAGVAR(inherit_rpath, $1)=no 422772313efbSmrg _LT_TAGVAR(link_all_deplibs, $1)=unknown 422872313efbSmrg _LT_TAGVAR(module_cmds, $1)= 422972313efbSmrg _LT_TAGVAR(module_expsym_cmds, $1)= 423072313efbSmrg _LT_TAGVAR(old_archive_from_new_cmds, $1)= 423172313efbSmrg _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)= 423272313efbSmrg _LT_TAGVAR(thread_safe_flag_spec, $1)= 423372313efbSmrg _LT_TAGVAR(whole_archive_flag_spec, $1)= 423472313efbSmrg # include_expsyms should be a list of space-separated symbols to be *always* 423572313efbSmrg # included in the symbol list 423672313efbSmrg _LT_TAGVAR(include_expsyms, $1)= 423772313efbSmrg # exclude_expsyms can be an extended regexp of symbols to exclude 423872313efbSmrg # it will be wrapped by ` (' and `)$', so one must not match beginning or 423972313efbSmrg # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 424072313efbSmrg # as well as any symbol that contains `d'. 424172313efbSmrg _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] 424272313efbSmrg # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 424372313efbSmrg # platforms (ab)use it in PIC code, but their linkers get confused if 424472313efbSmrg # the symbol is explicitly referenced. Since portable code cannot 424572313efbSmrg # rely on this symbol name, it's probably fine to never include it in 424672313efbSmrg # preloaded symbol tables. 424772313efbSmrg # Exclude shared library initialization/finalization symbols. 424872313efbSmrgdnl Note also adjust exclude_expsyms for C++ above. 424972313efbSmrg extract_expsyms_cmds= 4250bdcaa8d0Smrg 425172313efbSmrg case $host_os in 425272313efbSmrg cygwin* | mingw* | pw32* | cegcc*) 425372313efbSmrg # FIXME: the MSVC++ port hasn't been tested in a loooong time 425472313efbSmrg # When not using gcc, we currently assume that we are using 425572313efbSmrg # Microsoft Visual C++. 425672313efbSmrg if test "$GCC" != yes; then 425772313efbSmrg with_gnu_ld=no 425872313efbSmrg fi 425972313efbSmrg ;; 426072313efbSmrg interix*) 426172313efbSmrg # we just hope/assume this is gcc and not c89 (= MSVC++) 426272313efbSmrg with_gnu_ld=yes 426372313efbSmrg ;; 426472313efbSmrg openbsd*) 426572313efbSmrg with_gnu_ld=no 426672313efbSmrg ;; 426772313efbSmrg esac 4268bdcaa8d0Smrg 426972313efbSmrg _LT_TAGVAR(ld_shlibs, $1)=yes 427072313efbSmrg if test "$with_gnu_ld" = yes; then 427172313efbSmrg # If archive_cmds runs LD, not CC, wlarc should be empty 427272313efbSmrg wlarc='${wl}' 4273bdcaa8d0Smrg 427472313efbSmrg # Set some defaults for GNU ld with shared library support. These 427572313efbSmrg # are reset later if shared libraries are not supported. Putting them 427672313efbSmrg # here allows them to be overridden if necessary. 427772313efbSmrg runpath_var=LD_RUN_PATH 427872313efbSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 427972313efbSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 428072313efbSmrg # ancient GNU ld didn't support --whole-archive et. al. 428172313efbSmrg if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 428272313efbSmrg _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 428372313efbSmrg else 428472313efbSmrg _LT_TAGVAR(whole_archive_flag_spec, $1)= 428572313efbSmrg fi 428672313efbSmrg supports_anon_versioning=no 428772313efbSmrg case `$LD -v 2>&1` in 428872313efbSmrg *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 428972313efbSmrg *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 429072313efbSmrg *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 429172313efbSmrg *\ 2.11.*) ;; # other 2.11 versions 429272313efbSmrg *) supports_anon_versioning=yes ;; 429372313efbSmrg esac 4294bdcaa8d0Smrg 429572313efbSmrg # See if GNU ld supports shared libraries. 429672313efbSmrg case $host_os in 429772313efbSmrg aix[[3-9]]*) 429872313efbSmrg # On AIX/PPC, the GNU linker is very broken 429972313efbSmrg if test "$host_cpu" != ia64; then 430072313efbSmrg _LT_TAGVAR(ld_shlibs, $1)=no 430172313efbSmrg cat <<_LT_EOF 1>&2 4302bdcaa8d0Smrg 430372313efbSmrg*** Warning: the GNU linker, at least up to release 2.9.1, is reported 430472313efbSmrg*** to be unable to reliably create shared libraries on AIX. 430572313efbSmrg*** Therefore, libtool is disabling shared libraries support. If you 430672313efbSmrg*** really care for shared libraries, you may want to modify your PATH 430772313efbSmrg*** so that a non-GNU linker is found, and then restart. 4308bdcaa8d0Smrg 430972313efbSmrg_LT_EOF 431072313efbSmrg fi 431172313efbSmrg ;; 4312bdcaa8d0Smrg 431372313efbSmrg amigaos*) 431472313efbSmrg case $host_cpu in 431572313efbSmrg powerpc) 431672313efbSmrg # see comment about AmigaOS4 .so support 431772313efbSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 431872313efbSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='' 431972313efbSmrg ;; 432072313efbSmrg m68k) 432172313efbSmrg _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)' 432272313efbSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 432372313efbSmrg _LT_TAGVAR(hardcode_minus_L, $1)=yes 432472313efbSmrg ;; 432572313efbSmrg esac 432672313efbSmrg ;; 4327bdcaa8d0Smrg 432872313efbSmrg beos*) 432972313efbSmrg if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 433072313efbSmrg _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 433172313efbSmrg # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 433272313efbSmrg # support --undefined. This deserves some investigation. FIXME 433372313efbSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 433472313efbSmrg else 433572313efbSmrg _LT_TAGVAR(ld_shlibs, $1)=no 433672313efbSmrg fi 433772313efbSmrg ;; 4338bdcaa8d0Smrg 433972313efbSmrg cygwin* | mingw* | pw32* | cegcc*) 434072313efbSmrg # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, 434172313efbSmrg # as there is no search path for DLLs. 434272313efbSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 434372313efbSmrg _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 434472313efbSmrg _LT_TAGVAR(always_export_symbols, $1)=no 434572313efbSmrg _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 434672313efbSmrg _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' 434772313efbSmrg 434872313efbSmrg if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 434972313efbSmrg _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' 435072313efbSmrg # If the export-symbols file already is a .def file (1st line 435172313efbSmrg # is EXPORTS), use it as is; otherwise, prepend... 435272313efbSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 435372313efbSmrg cp $export_symbols $output_objdir/$soname.def; 435472313efbSmrg else 435572313efbSmrg echo EXPORTS > $output_objdir/$soname.def; 435672313efbSmrg cat $export_symbols >> $output_objdir/$soname.def; 435772313efbSmrg fi~ 435872313efbSmrg $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 435972313efbSmrg else 436072313efbSmrg _LT_TAGVAR(ld_shlibs, $1)=no 436172313efbSmrg fi 436272313efbSmrg ;; 4363bdcaa8d0Smrg 436472313efbSmrg interix[[3-9]]*) 436572313efbSmrg _LT_TAGVAR(hardcode_direct, $1)=no 436672313efbSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 436772313efbSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 436872313efbSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 436972313efbSmrg # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 437072313efbSmrg # Instead, shared libraries are loaded at an image base (0x10000000 by 437172313efbSmrg # default) and relocated if they conflict, which is a slow very memory 437272313efbSmrg # consuming and fragmenting process. To avoid this, we pick a random, 437372313efbSmrg # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 437472313efbSmrg # time. Moving up from 0x10000000 also allows more sbrk(2) space. 437572313efbSmrg _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' 437672313efbSmrg _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' 437772313efbSmrg ;; 4378bdcaa8d0Smrg 437972313efbSmrg gnu* | linux* | tpf* | k*bsd*-gnu) 438072313efbSmrg tmp_diet=no 438172313efbSmrg if test "$host_os" = linux-dietlibc; then 438272313efbSmrg case $cc_basename in 438372313efbSmrg diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 438472313efbSmrg esac 438572313efbSmrg fi 438672313efbSmrg if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 438772313efbSmrg && test "$tmp_diet" = no 438872313efbSmrg then 438972313efbSmrg tmp_addflag= 439072313efbSmrg tmp_sharedflag='-shared' 439172313efbSmrg case $cc_basename,$host_cpu in 439272313efbSmrg pgcc*) # Portland Group C compiler 439372313efbSmrg _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' 439472313efbSmrg tmp_addflag=' $pic_flag' 439572313efbSmrg ;; 439672313efbSmrg pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 439772313efbSmrg _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' 439872313efbSmrg tmp_addflag=' $pic_flag -Mnomain' ;; 439972313efbSmrg ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 440072313efbSmrg tmp_addflag=' -i_dynamic' ;; 440172313efbSmrg efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 440272313efbSmrg tmp_addflag=' -i_dynamic -nofor_main' ;; 440372313efbSmrg ifc* | ifort*) # Intel Fortran compiler 440472313efbSmrg tmp_addflag=' -nofor_main' ;; 440572313efbSmrg lf95*) # Lahey Fortran 8.1 440672313efbSmrg _LT_TAGVAR(whole_archive_flag_spec, $1)= 440772313efbSmrg tmp_sharedflag='--shared' ;; 440872313efbSmrg xl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below) 440972313efbSmrg tmp_sharedflag='-qmkshrobj' 441072313efbSmrg tmp_addflag= ;; 441172313efbSmrg esac 441272313efbSmrg case `$CC -V 2>&1 | sed 5q` in 441372313efbSmrg *Sun\ C*) # Sun C 5.9 441472313efbSmrg _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; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' 441572313efbSmrg _LT_TAGVAR(compiler_needs_object, $1)=yes 441672313efbSmrg tmp_sharedflag='-G' ;; 441772313efbSmrg *Sun\ F*) # Sun Fortran 8.3 441872313efbSmrg tmp_sharedflag='-G' ;; 441972313efbSmrg esac 442072313efbSmrg _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 4421bdcaa8d0Smrg 442272313efbSmrg if test "x$supports_anon_versioning" = xyes; then 442372313efbSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ 442472313efbSmrg cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 442572313efbSmrg echo "local: *; };" >> $output_objdir/$libname.ver~ 442672313efbSmrg $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 442772313efbSmrg fi 4428bdcaa8d0Smrg 442972313efbSmrg case $cc_basename in 443072313efbSmrg xlf*) 443172313efbSmrg # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 443272313efbSmrg _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive' 443372313efbSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 443472313efbSmrg _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir' 443572313efbSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 443672313efbSmrg if test "x$supports_anon_versioning" = xyes; then 443772313efbSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ 443872313efbSmrg cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 443972313efbSmrg echo "local: *; };" >> $output_objdir/$libname.ver~ 444072313efbSmrg $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 444172313efbSmrg fi 444272313efbSmrg ;; 444372313efbSmrg esac 444472313efbSmrg else 444572313efbSmrg _LT_TAGVAR(ld_shlibs, $1)=no 444672313efbSmrg fi 444772313efbSmrg ;; 4448bdcaa8d0Smrg 444972313efbSmrg netbsd*) 445072313efbSmrg if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 445172313efbSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 445272313efbSmrg wlarc= 445372313efbSmrg else 445472313efbSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 445572313efbSmrg _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' 445672313efbSmrg fi 445772313efbSmrg ;; 4458bdcaa8d0Smrg 445972313efbSmrg solaris*) 446072313efbSmrg if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 446172313efbSmrg _LT_TAGVAR(ld_shlibs, $1)=no 446272313efbSmrg cat <<_LT_EOF 1>&2 4463bdcaa8d0Smrg 446472313efbSmrg*** Warning: The releases 2.8.* of the GNU linker cannot reliably 446572313efbSmrg*** create shared libraries on Solaris systems. Therefore, libtool 446672313efbSmrg*** is disabling shared libraries support. We urge you to upgrade GNU 446772313efbSmrg*** binutils to release 2.9.1 or newer. Another option is to modify 446872313efbSmrg*** your PATH or compiler configuration so that the native linker is 446972313efbSmrg*** used, and then restart. 4470bdcaa8d0Smrg 447172313efbSmrg_LT_EOF 447272313efbSmrg elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 447372313efbSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 447472313efbSmrg _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' 447572313efbSmrg else 447672313efbSmrg _LT_TAGVAR(ld_shlibs, $1)=no 447772313efbSmrg fi 447872313efbSmrg ;; 4479bdcaa8d0Smrg 448072313efbSmrg sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 448172313efbSmrg case `$LD -v 2>&1` in 448272313efbSmrg *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) 448372313efbSmrg _LT_TAGVAR(ld_shlibs, $1)=no 448472313efbSmrg cat <<_LT_EOF 1>&2 4485bdcaa8d0Smrg 448672313efbSmrg*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 448772313efbSmrg*** reliably create shared libraries on SCO systems. Therefore, libtool 448872313efbSmrg*** is disabling shared libraries support. We urge you to upgrade GNU 448972313efbSmrg*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 449072313efbSmrg*** your PATH or compiler configuration so that the native linker is 449172313efbSmrg*** used, and then restart. 4492bdcaa8d0Smrg 449372313efbSmrg_LT_EOF 449472313efbSmrg ;; 449572313efbSmrg *) 449672313efbSmrg # For security reasons, it is highly recommended that you always 449772313efbSmrg # use absolute paths for naming shared libraries, and exclude the 449872313efbSmrg # DT_RUNPATH tag from executables and libraries. But doing so 449972313efbSmrg # requires that you compile everything twice, which is a pain. 450072313efbSmrg if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 450172313efbSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 450272313efbSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 450372313efbSmrg _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' 450472313efbSmrg else 450572313efbSmrg _LT_TAGVAR(ld_shlibs, $1)=no 450672313efbSmrg fi 450772313efbSmrg ;; 450872313efbSmrg esac 450972313efbSmrg ;; 4510bdcaa8d0Smrg 451172313efbSmrg sunos4*) 451272313efbSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 451372313efbSmrg wlarc= 451472313efbSmrg _LT_TAGVAR(hardcode_direct, $1)=yes 451572313efbSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 451672313efbSmrg ;; 4517bdcaa8d0Smrg 451872313efbSmrg *) 451972313efbSmrg if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 452072313efbSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 452172313efbSmrg _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' 452272313efbSmrg else 452372313efbSmrg _LT_TAGVAR(ld_shlibs, $1)=no 452472313efbSmrg fi 452572313efbSmrg ;; 452672313efbSmrg esac 4527bdcaa8d0Smrg 452872313efbSmrg if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then 452972313efbSmrg runpath_var= 453072313efbSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 453172313efbSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)= 453272313efbSmrg _LT_TAGVAR(whole_archive_flag_spec, $1)= 453372313efbSmrg fi 453472313efbSmrg else 453572313efbSmrg # PORTME fill in a description of your system's linker (not GNU ld) 453672313efbSmrg case $host_os in 453772313efbSmrg aix3*) 453872313efbSmrg _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 453972313efbSmrg _LT_TAGVAR(always_export_symbols, $1)=yes 454072313efbSmrg _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' 454172313efbSmrg # Note: this linker hardcodes the directories in LIBPATH if there 454272313efbSmrg # are no directories specified by -L. 454372313efbSmrg _LT_TAGVAR(hardcode_minus_L, $1)=yes 454472313efbSmrg if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 454572313efbSmrg # Neither direct hardcoding nor static linking is supported with a 454672313efbSmrg # broken collect2. 454772313efbSmrg _LT_TAGVAR(hardcode_direct, $1)=unsupported 454872313efbSmrg fi 454972313efbSmrg ;; 4550bdcaa8d0Smrg 455172313efbSmrg aix[[4-9]]*) 455272313efbSmrg if test "$host_cpu" = ia64; then 455372313efbSmrg # On IA64, the linker does run time linking by default, so we don't 455472313efbSmrg # have to do anything special. 455572313efbSmrg aix_use_runtimelinking=no 455672313efbSmrg exp_sym_flag='-Bexport' 455772313efbSmrg no_entry_flag="" 455872313efbSmrg else 455972313efbSmrg # If we're using GNU nm, then we don't want the "-C" option. 456072313efbSmrg # -C means demangle to AIX nm, but means don't demangle with GNU nm 456172313efbSmrg if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 456272313efbSmrg _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 456372313efbSmrg else 456472313efbSmrg _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' 456572313efbSmrg fi 456672313efbSmrg aix_use_runtimelinking=no 4567bdcaa8d0Smrg 456872313efbSmrg # Test if we are trying to use run time linking or normal 456972313efbSmrg # AIX style linking. If -brtl is somewhere in LDFLAGS, we 457072313efbSmrg # need to do runtime linking. 457172313efbSmrg case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) 457272313efbSmrg for ld_flag in $LDFLAGS; do 457372313efbSmrg if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 457472313efbSmrg aix_use_runtimelinking=yes 457572313efbSmrg break 457672313efbSmrg fi 457772313efbSmrg done 457872313efbSmrg ;; 457972313efbSmrg esac 4580bdcaa8d0Smrg 458172313efbSmrg exp_sym_flag='-bexport' 458272313efbSmrg no_entry_flag='-bnoentry' 458372313efbSmrg fi 4584bdcaa8d0Smrg 458572313efbSmrg # When large executables or shared objects are built, AIX ld can 458672313efbSmrg # have problems creating the table of contents. If linking a library 458772313efbSmrg # or program results in "error TOC overflow" add -mminimal-toc to 458872313efbSmrg # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 458972313efbSmrg # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 4590bdcaa8d0Smrg 459172313efbSmrg _LT_TAGVAR(archive_cmds, $1)='' 459272313efbSmrg _LT_TAGVAR(hardcode_direct, $1)=yes 459372313efbSmrg _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 459472313efbSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 459572313efbSmrg _LT_TAGVAR(link_all_deplibs, $1)=yes 459672313efbSmrg _LT_TAGVAR(file_list_spec, $1)='${wl}-f,' 4597bdcaa8d0Smrg 459872313efbSmrg if test "$GCC" = yes; then 459972313efbSmrg case $host_os in aix4.[[012]]|aix4.[[012]].*) 460072313efbSmrg # We only want to do this on AIX 4.2 and lower, the check 460172313efbSmrg # below for broken collect2 doesn't work under 4.3+ 460272313efbSmrg collect2name=`${CC} -print-prog-name=collect2` 460372313efbSmrg if test -f "$collect2name" && 460472313efbSmrg strings "$collect2name" | $GREP resolve_lib_name >/dev/null 460572313efbSmrg then 460672313efbSmrg # We have reworked collect2 460772313efbSmrg : 460872313efbSmrg else 460972313efbSmrg # We have old collect2 461072313efbSmrg _LT_TAGVAR(hardcode_direct, $1)=unsupported 461172313efbSmrg # It fails to find uninstalled libraries when the uninstalled 461272313efbSmrg # path is not listed in the libpath. Setting hardcode_minus_L 461372313efbSmrg # to unsupported forces relinking 461472313efbSmrg _LT_TAGVAR(hardcode_minus_L, $1)=yes 461572313efbSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 461672313efbSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)= 461772313efbSmrg fi 461872313efbSmrg ;; 461972313efbSmrg esac 462072313efbSmrg shared_flag='-shared' 462172313efbSmrg if test "$aix_use_runtimelinking" = yes; then 462272313efbSmrg shared_flag="$shared_flag "'${wl}-G' 462372313efbSmrg fi 462472313efbSmrg else 462572313efbSmrg # not using gcc 462672313efbSmrg if test "$host_cpu" = ia64; then 462772313efbSmrg # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 462872313efbSmrg # chokes on -Wl,-G. The following line is correct: 462972313efbSmrg shared_flag='-G' 463072313efbSmrg else 463172313efbSmrg if test "$aix_use_runtimelinking" = yes; then 463272313efbSmrg shared_flag='${wl}-G' 463372313efbSmrg else 463472313efbSmrg shared_flag='${wl}-bM:SRE' 463572313efbSmrg fi 463672313efbSmrg fi 463772313efbSmrg fi 4638bdcaa8d0Smrg 463972313efbSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall' 464072313efbSmrg # It seems that -bexpall does not export symbols beginning with 464172313efbSmrg # underscore (_), so it is better to generate a list of symbols to export. 464272313efbSmrg _LT_TAGVAR(always_export_symbols, $1)=yes 464372313efbSmrg if test "$aix_use_runtimelinking" = yes; then 464472313efbSmrg # Warning - without using the other runtime loading flags (-brtl), 464572313efbSmrg # -berok will link without error, but may produce a broken library. 464672313efbSmrg _LT_TAGVAR(allow_undefined_flag, $1)='-berok' 464772313efbSmrg # Determine the default libpath from the value encoded in an 464872313efbSmrg # empty executable. 464972313efbSmrg _LT_SYS_MODULE_PATH_AIX 465072313efbSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 465172313efbSmrg _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 $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 465272313efbSmrg else 465372313efbSmrg if test "$host_cpu" = ia64; then 465472313efbSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' 465572313efbSmrg _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" 465672313efbSmrg _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" 465772313efbSmrg else 465872313efbSmrg # Determine the default libpath from the value encoded in an 465972313efbSmrg # empty executable. 466072313efbSmrg _LT_SYS_MODULE_PATH_AIX 466172313efbSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 466272313efbSmrg # Warning - without using the other run time loading flags, 466372313efbSmrg # -berok will link without error, but may produce a broken library. 466472313efbSmrg _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' 466572313efbSmrg _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' 466672313efbSmrg # Exported symbols can be pulled into shared objects from archives 466772313efbSmrg _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' 466872313efbSmrg _LT_TAGVAR(archive_cmds_need_lc, $1)=yes 466972313efbSmrg # This is similar to how AIX traditionally builds its shared libraries. 467072313efbSmrg _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' 467172313efbSmrg fi 467272313efbSmrg fi 467372313efbSmrg ;; 4674bdcaa8d0Smrg 467572313efbSmrg amigaos*) 467672313efbSmrg case $host_cpu in 467772313efbSmrg powerpc) 467872313efbSmrg # see comment about AmigaOS4 .so support 467972313efbSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 468072313efbSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='' 468172313efbSmrg ;; 468272313efbSmrg m68k) 468372313efbSmrg _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)' 468472313efbSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 468572313efbSmrg _LT_TAGVAR(hardcode_minus_L, $1)=yes 468672313efbSmrg ;; 468772313efbSmrg esac 468872313efbSmrg ;; 4689bdcaa8d0Smrg 469072313efbSmrg bsdi[[45]]*) 469172313efbSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic 469272313efbSmrg ;; 4693bdcaa8d0Smrg 469472313efbSmrg cygwin* | mingw* | pw32* | cegcc*) 469572313efbSmrg # When not using gcc, we currently assume that we are using 469672313efbSmrg # Microsoft Visual C++. 469772313efbSmrg # hardcode_libdir_flag_spec is actually meaningless, as there is 469872313efbSmrg # no search path for DLLs. 469972313efbSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' 470072313efbSmrg _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 470172313efbSmrg # Tell ltmain to make .lib files, not .a files. 470272313efbSmrg libext=lib 470372313efbSmrg # Tell ltmain to make .dll files, not .so files. 470472313efbSmrg shrext_cmds=".dll" 470572313efbSmrg # FIXME: Setting linknames here is a bad hack. 470672313efbSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' 470772313efbSmrg # The linker will automatically build a .lib file if we build a DLL. 470872313efbSmrg _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' 470972313efbSmrg # FIXME: Should let the user specify the lib program. 471072313efbSmrg _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs' 471172313efbSmrg _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`' 471272313efbSmrg _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 471372313efbSmrg ;; 4714bdcaa8d0Smrg 471572313efbSmrg darwin* | rhapsody*) 471672313efbSmrg _LT_DARWIN_LINKER_FEATURES($1) 471772313efbSmrg ;; 4718bdcaa8d0Smrg 471972313efbSmrg dgux*) 472072313efbSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 472172313efbSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 472272313efbSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 472372313efbSmrg ;; 4724bdcaa8d0Smrg 472572313efbSmrg freebsd1*) 472672313efbSmrg _LT_TAGVAR(ld_shlibs, $1)=no 472772313efbSmrg ;; 4728bdcaa8d0Smrg 472972313efbSmrg # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 473072313efbSmrg # support. Future versions do this automatically, but an explicit c++rt0.o 473172313efbSmrg # does not break anything, and helps significantly (at the cost of a little 473272313efbSmrg # extra space). 473372313efbSmrg freebsd2.2*) 473472313efbSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 473572313efbSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 473672313efbSmrg _LT_TAGVAR(hardcode_direct, $1)=yes 473772313efbSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 473872313efbSmrg ;; 4739bdcaa8d0Smrg 474072313efbSmrg # Unfortunately, older versions of FreeBSD 2 do not have this feature. 474172313efbSmrg freebsd2*) 474272313efbSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 474372313efbSmrg _LT_TAGVAR(hardcode_direct, $1)=yes 474472313efbSmrg _LT_TAGVAR(hardcode_minus_L, $1)=yes 474572313efbSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 474672313efbSmrg ;; 4747bdcaa8d0Smrg 474872313efbSmrg # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 474972313efbSmrg freebsd* | dragonfly*) 475072313efbSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 475172313efbSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 475272313efbSmrg _LT_TAGVAR(hardcode_direct, $1)=yes 475372313efbSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 475472313efbSmrg ;; 4755bdcaa8d0Smrg 475672313efbSmrg hpux9*) 475772313efbSmrg if test "$GCC" = yes; then 475872313efbSmrg _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 475972313efbSmrg else 476072313efbSmrg _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' 476172313efbSmrg fi 476272313efbSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 476372313efbSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)=: 476472313efbSmrg _LT_TAGVAR(hardcode_direct, $1)=yes 4765bdcaa8d0Smrg 476672313efbSmrg # hardcode_minus_L: Not really in the search PATH, 476772313efbSmrg # but as the default location of the library. 476872313efbSmrg _LT_TAGVAR(hardcode_minus_L, $1)=yes 476972313efbSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 477072313efbSmrg ;; 4771bdcaa8d0Smrg 477272313efbSmrg hpux10*) 477372313efbSmrg if test "$GCC" = yes -a "$with_gnu_ld" = no; then 477472313efbSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 477572313efbSmrg else 477672313efbSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 477772313efbSmrg fi 477872313efbSmrg if test "$with_gnu_ld" = no; then 477972313efbSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 478072313efbSmrg _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' 478172313efbSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)=: 478272313efbSmrg _LT_TAGVAR(hardcode_direct, $1)=yes 478372313efbSmrg _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 478472313efbSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 478572313efbSmrg # hardcode_minus_L: Not really in the search PATH, 478672313efbSmrg # but as the default location of the library. 478772313efbSmrg _LT_TAGVAR(hardcode_minus_L, $1)=yes 478872313efbSmrg fi 478972313efbSmrg ;; 4790bdcaa8d0Smrg 479172313efbSmrg hpux11*) 479272313efbSmrg if test "$GCC" = yes -a "$with_gnu_ld" = no; then 479372313efbSmrg case $host_cpu in 479472313efbSmrg hppa*64*) 479572313efbSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 479672313efbSmrg ;; 479772313efbSmrg ia64*) 479872313efbSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 479972313efbSmrg ;; 480072313efbSmrg *) 480172313efbSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 480272313efbSmrg ;; 480372313efbSmrg esac 480472313efbSmrg else 480572313efbSmrg case $host_cpu in 480672313efbSmrg hppa*64*) 480772313efbSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 480872313efbSmrg ;; 480972313efbSmrg ia64*) 481072313efbSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 481172313efbSmrg ;; 481272313efbSmrg *) 481372313efbSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 481472313efbSmrg ;; 481572313efbSmrg esac 481672313efbSmrg fi 481772313efbSmrg if test "$with_gnu_ld" = no; then 481872313efbSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 481972313efbSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)=: 4820bdcaa8d0Smrg 482172313efbSmrg case $host_cpu in 482272313efbSmrg hppa*64*|ia64*) 482372313efbSmrg _LT_TAGVAR(hardcode_direct, $1)=no 482472313efbSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 482572313efbSmrg ;; 482672313efbSmrg *) 482772313efbSmrg _LT_TAGVAR(hardcode_direct, $1)=yes 482872313efbSmrg _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 482972313efbSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 4830bdcaa8d0Smrg 483172313efbSmrg # hardcode_minus_L: Not really in the search PATH, 483272313efbSmrg # but as the default location of the library. 483372313efbSmrg _LT_TAGVAR(hardcode_minus_L, $1)=yes 483472313efbSmrg ;; 483572313efbSmrg esac 483672313efbSmrg fi 483772313efbSmrg ;; 4838bdcaa8d0Smrg 483972313efbSmrg irix5* | irix6* | nonstopux*) 484072313efbSmrg if test "$GCC" = yes; then 484172313efbSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 484272313efbSmrg # Try to use the -exported_symbol ld option, if it does not 484372313efbSmrg # work, assume that -exports_file does not work either and 484472313efbSmrg # implicitly export all symbols. 484572313efbSmrg save_LDFLAGS="$LDFLAGS" 484672313efbSmrg LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 484772313efbSmrg AC_LINK_IFELSE(int foo(void) {}, 484872313efbSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' 484972313efbSmrg ) 485072313efbSmrg LDFLAGS="$save_LDFLAGS" 485172313efbSmrg else 485272313efbSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 485372313efbSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' 485472313efbSmrg fi 485572313efbSmrg _LT_TAGVAR(archive_cmds_need_lc, $1)='no' 485672313efbSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 485772313efbSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)=: 485872313efbSmrg _LT_TAGVAR(inherit_rpath, $1)=yes 485972313efbSmrg _LT_TAGVAR(link_all_deplibs, $1)=yes 486072313efbSmrg ;; 4861bdcaa8d0Smrg 486272313efbSmrg netbsd*) 486372313efbSmrg if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 486472313efbSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 486572313efbSmrg else 486672313efbSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 486772313efbSmrg fi 486872313efbSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 486972313efbSmrg _LT_TAGVAR(hardcode_direct, $1)=yes 487072313efbSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 487172313efbSmrg ;; 4872bdcaa8d0Smrg 487372313efbSmrg newsos6) 487472313efbSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 487572313efbSmrg _LT_TAGVAR(hardcode_direct, $1)=yes 487672313efbSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 487772313efbSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)=: 487872313efbSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 487972313efbSmrg ;; 4880bdcaa8d0Smrg 488172313efbSmrg *nto* | *qnx*) 488272313efbSmrg ;; 4883bdcaa8d0Smrg 488472313efbSmrg openbsd*) 488572313efbSmrg if test -f /usr/libexec/ld.so; then 488672313efbSmrg _LT_TAGVAR(hardcode_direct, $1)=yes 488772313efbSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 488872313efbSmrg _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 488972313efbSmrg if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 489072313efbSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 489172313efbSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 489272313efbSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 489372313efbSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 489472313efbSmrg else 489572313efbSmrg case $host_os in 489672313efbSmrg openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*) 489772313efbSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 489872313efbSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 489972313efbSmrg ;; 490072313efbSmrg *) 490172313efbSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 490272313efbSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 490372313efbSmrg ;; 490472313efbSmrg esac 490572313efbSmrg fi 490672313efbSmrg else 490772313efbSmrg _LT_TAGVAR(ld_shlibs, $1)=no 490872313efbSmrg fi 490972313efbSmrg ;; 4910bdcaa8d0Smrg 491172313efbSmrg os2*) 491272313efbSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 491372313efbSmrg _LT_TAGVAR(hardcode_minus_L, $1)=yes 491472313efbSmrg _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 491572313efbSmrg _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' 491672313efbSmrg _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 491772313efbSmrg ;; 4918bdcaa8d0Smrg 491972313efbSmrg osf3*) 492072313efbSmrg if test "$GCC" = yes; then 492172313efbSmrg _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 492272313efbSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 492372313efbSmrg else 492472313efbSmrg _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 492572313efbSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 492672313efbSmrg fi 492772313efbSmrg _LT_TAGVAR(archive_cmds_need_lc, $1)='no' 492872313efbSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 492972313efbSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)=: 493072313efbSmrg ;; 4931bdcaa8d0Smrg 493272313efbSmrg osf4* | osf5*) # as osf3* with the addition of -msym flag 493372313efbSmrg if test "$GCC" = yes; then 493472313efbSmrg _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 493572313efbSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 493672313efbSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 493772313efbSmrg else 493872313efbSmrg _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 493972313efbSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 494072313efbSmrg _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~ 494172313efbSmrg $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' 4942bdcaa8d0Smrg 494372313efbSmrg # Both c and cxx compiler support -rpath directly 494472313efbSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 494572313efbSmrg fi 494672313efbSmrg _LT_TAGVAR(archive_cmds_need_lc, $1)='no' 494772313efbSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)=: 494872313efbSmrg ;; 4949bdcaa8d0Smrg 495072313efbSmrg solaris*) 495172313efbSmrg _LT_TAGVAR(no_undefined_flag, $1)=' -z defs' 495272313efbSmrg if test "$GCC" = yes; then 495372313efbSmrg wlarc='${wl}' 495472313efbSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 495572313efbSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 495672313efbSmrg $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 495772313efbSmrg else 495872313efbSmrg case `$CC -V 2>&1` in 495972313efbSmrg *"Compilers 5.0"*) 496072313efbSmrg wlarc='' 496172313efbSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 496272313efbSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 496372313efbSmrg $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 496472313efbSmrg ;; 496572313efbSmrg *) 496672313efbSmrg wlarc='${wl}' 496772313efbSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 496872313efbSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 496972313efbSmrg $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 497072313efbSmrg ;; 497172313efbSmrg esac 497272313efbSmrg fi 497372313efbSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 497472313efbSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 497572313efbSmrg case $host_os in 497672313efbSmrg solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 497772313efbSmrg *) 497872313efbSmrg # The compiler driver will combine and reorder linker options, 497972313efbSmrg # but understands `-z linker_flag'. GCC discards it without `$wl', 498072313efbSmrg # but is careful enough not to reorder. 498172313efbSmrg # Supported since Solaris 2.6 (maybe 2.5.1?) 498272313efbSmrg if test "$GCC" = yes; then 498372313efbSmrg _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 498472313efbSmrg else 498572313efbSmrg _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' 498672313efbSmrg fi 498772313efbSmrg ;; 498872313efbSmrg esac 498972313efbSmrg _LT_TAGVAR(link_all_deplibs, $1)=yes 499072313efbSmrg ;; 4991bdcaa8d0Smrg 499272313efbSmrg sunos4*) 499372313efbSmrg if test "x$host_vendor" = xsequent; then 499472313efbSmrg # Use $CC to link under sequent, because it throws in some extra .o 499572313efbSmrg # files that make .init and .fini sections work. 499672313efbSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 499772313efbSmrg else 499872313efbSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 499972313efbSmrg fi 500072313efbSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 500172313efbSmrg _LT_TAGVAR(hardcode_direct, $1)=yes 500272313efbSmrg _LT_TAGVAR(hardcode_minus_L, $1)=yes 500372313efbSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 500472313efbSmrg ;; 5005bdcaa8d0Smrg 500672313efbSmrg sysv4) 500772313efbSmrg case $host_vendor in 500872313efbSmrg sni) 500972313efbSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 501072313efbSmrg _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true??? 501172313efbSmrg ;; 501272313efbSmrg siemens) 501372313efbSmrg ## LD is ld it makes a PLAMLIB 501472313efbSmrg ## CC just makes a GrossModule. 501572313efbSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' 501672313efbSmrg _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs' 501772313efbSmrg _LT_TAGVAR(hardcode_direct, $1)=no 501872313efbSmrg ;; 501972313efbSmrg motorola) 502072313efbSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 502172313efbSmrg _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie 502272313efbSmrg ;; 502372313efbSmrg esac 502472313efbSmrg runpath_var='LD_RUN_PATH' 502572313efbSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 502672313efbSmrg ;; 5027bdcaa8d0Smrg 502872313efbSmrg sysv4.3*) 502972313efbSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 503072313efbSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 503172313efbSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport' 503272313efbSmrg ;; 5033bdcaa8d0Smrg 503472313efbSmrg sysv4*MP*) 503572313efbSmrg if test -d /usr/nec; then 503672313efbSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 503772313efbSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 503872313efbSmrg runpath_var=LD_RUN_PATH 503972313efbSmrg hardcode_runpath_var=yes 504072313efbSmrg _LT_TAGVAR(ld_shlibs, $1)=yes 504172313efbSmrg fi 504272313efbSmrg ;; 5043bdcaa8d0Smrg 504472313efbSmrg sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) 504572313efbSmrg _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' 504672313efbSmrg _LT_TAGVAR(archive_cmds_need_lc, $1)=no 504772313efbSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 504872313efbSmrg runpath_var='LD_RUN_PATH' 5049bdcaa8d0Smrg 505072313efbSmrg if test "$GCC" = yes; then 505172313efbSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 505272313efbSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 505372313efbSmrg else 505472313efbSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 505572313efbSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 505672313efbSmrg fi 505772313efbSmrg ;; 5058bdcaa8d0Smrg 505972313efbSmrg sysv5* | sco3.2v5* | sco5v6*) 506072313efbSmrg # Note: We can NOT use -z defs as we might desire, because we do not 506172313efbSmrg # link with -lc, and that would cause any symbols used from libc to 506272313efbSmrg # always be unresolved, which means just about no library would 506372313efbSmrg # ever link correctly. If we're not using GNU ld we use -z text 506472313efbSmrg # though, which does catch some bad symbols but isn't as heavy-handed 506572313efbSmrg # as -z defs. 506672313efbSmrg _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' 506772313efbSmrg _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' 506872313efbSmrg _LT_TAGVAR(archive_cmds_need_lc, $1)=no 506972313efbSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 507072313efbSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir' 507172313efbSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 507272313efbSmrg _LT_TAGVAR(link_all_deplibs, $1)=yes 507372313efbSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' 507472313efbSmrg runpath_var='LD_RUN_PATH' 5075bdcaa8d0Smrg 507672313efbSmrg if test "$GCC" = yes; then 507772313efbSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 507872313efbSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 507972313efbSmrg else 508072313efbSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 508172313efbSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 508272313efbSmrg fi 508372313efbSmrg ;; 5084bdcaa8d0Smrg 508572313efbSmrg uts4*) 508672313efbSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 508772313efbSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 508872313efbSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 508972313efbSmrg ;; 5090bdcaa8d0Smrg 509172313efbSmrg *) 509272313efbSmrg _LT_TAGVAR(ld_shlibs, $1)=no 509372313efbSmrg ;; 509472313efbSmrg esac 5095bdcaa8d0Smrg 509672313efbSmrg if test x$host_vendor = xsni; then 509772313efbSmrg case $host in 509872313efbSmrg sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 509972313efbSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym' 510072313efbSmrg ;; 510172313efbSmrg esac 510272313efbSmrg fi 510372313efbSmrg fi 510472313efbSmrg]) 510572313efbSmrgAC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) 510672313efbSmrgtest "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no 5107bdcaa8d0Smrg 510872313efbSmrg_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld 5109bdcaa8d0Smrg 511072313efbSmrg_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl 511172313efbSmrg_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl 511272313efbSmrg_LT_DECL([], [extract_expsyms_cmds], [2], 511372313efbSmrg [The commands to extract the exported symbol list from a shared archive]) 5114bdcaa8d0Smrg 511572313efbSmrg# 511672313efbSmrg# Do we need to explicitly link libc? 511772313efbSmrg# 511872313efbSmrgcase "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in 511972313efbSmrgx|xyes) 512072313efbSmrg # Assume -lc should be added 512172313efbSmrg _LT_TAGVAR(archive_cmds_need_lc, $1)=yes 5122bdcaa8d0Smrg 512372313efbSmrg if test "$enable_shared" = yes && test "$GCC" = yes; then 512472313efbSmrg case $_LT_TAGVAR(archive_cmds, $1) in 512572313efbSmrg *'~'*) 512672313efbSmrg # FIXME: we may have to deal with multi-command sequences. 512772313efbSmrg ;; 512872313efbSmrg '$CC '*) 512972313efbSmrg # Test whether the compiler implicitly links with -lc since on some 513072313efbSmrg # systems, -lgcc has to come before -lc. If gcc already passes -lc 513172313efbSmrg # to ld, don't add -lc before -lgcc. 513272313efbSmrg AC_MSG_CHECKING([whether -lc should be explicitly linked in]) 513372313efbSmrg $RM conftest* 513472313efbSmrg echo "$lt_simple_compile_test_code" > conftest.$ac_ext 513572313efbSmrg 513672313efbSmrg if AC_TRY_EVAL(ac_compile) 2>conftest.err; then 513772313efbSmrg soname=conftest 513872313efbSmrg lib=conftest 513972313efbSmrg libobjs=conftest.$ac_objext 514072313efbSmrg deplibs= 514172313efbSmrg wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) 514272313efbSmrg pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1) 514372313efbSmrg compiler_flags=-v 514472313efbSmrg linker_flags=-v 514572313efbSmrg verstring= 514672313efbSmrg output_objdir=. 514772313efbSmrg libname=conftest 514872313efbSmrg lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1) 514972313efbSmrg _LT_TAGVAR(allow_undefined_flag, $1)= 515072313efbSmrg if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 515172313efbSmrg then 515272313efbSmrg _LT_TAGVAR(archive_cmds_need_lc, $1)=no 515372313efbSmrg else 515472313efbSmrg _LT_TAGVAR(archive_cmds_need_lc, $1)=yes 515572313efbSmrg fi 515672313efbSmrg _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag 515772313efbSmrg else 515872313efbSmrg cat conftest.err 1>&5 515972313efbSmrg fi 516072313efbSmrg $RM conftest* 516172313efbSmrg AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)]) 516272313efbSmrg ;; 516372313efbSmrg esac 5164bdcaa8d0Smrg fi 5165bdcaa8d0Smrg ;; 5166bdcaa8d0Smrgesac 5167bdcaa8d0Smrg 516872313efbSmrg_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0], 516972313efbSmrg [Whether or not to add -lc for building shared libraries]) 517072313efbSmrg_LT_TAGDECL([allow_libtool_libs_with_static_runtimes], 517172313efbSmrg [enable_shared_with_static_runtimes], [0], 517272313efbSmrg [Whether or not to disallow shared libs when runtime libs are static]) 517372313efbSmrg_LT_TAGDECL([], [export_dynamic_flag_spec], [1], 517472313efbSmrg [Compiler flag to allow reflexive dlopens]) 517572313efbSmrg_LT_TAGDECL([], [whole_archive_flag_spec], [1], 517672313efbSmrg [Compiler flag to generate shared objects directly from archives]) 517772313efbSmrg_LT_TAGDECL([], [compiler_needs_object], [1], 517872313efbSmrg [Whether the compiler copes with passing no objects directly]) 517972313efbSmrg_LT_TAGDECL([], [old_archive_from_new_cmds], [2], 518072313efbSmrg [Create an old-style archive from a shared archive]) 518172313efbSmrg_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2], 518272313efbSmrg [Create a temporary old-style archive to link instead of a shared archive]) 518372313efbSmrg_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive]) 518472313efbSmrg_LT_TAGDECL([], [archive_expsym_cmds], [2]) 518572313efbSmrg_LT_TAGDECL([], [module_cmds], [2], 518672313efbSmrg [Commands used to build a loadable module if different from building 518772313efbSmrg a shared archive.]) 518872313efbSmrg_LT_TAGDECL([], [module_expsym_cmds], [2]) 518972313efbSmrg_LT_TAGDECL([], [with_gnu_ld], [1], 519072313efbSmrg [Whether we are building with GNU ld or not]) 519172313efbSmrg_LT_TAGDECL([], [allow_undefined_flag], [1], 519272313efbSmrg [Flag that allows shared libraries with undefined symbols to be built]) 519372313efbSmrg_LT_TAGDECL([], [no_undefined_flag], [1], 519472313efbSmrg [Flag that enforces no undefined symbols]) 519572313efbSmrg_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1], 519672313efbSmrg [Flag to hardcode $libdir into a binary during linking. 519772313efbSmrg This must work even if $libdir does not exist]) 519872313efbSmrg_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1], 519972313efbSmrg [[If ld is used when linking, flag to hardcode $libdir into a binary 520072313efbSmrg during linking. This must work even if $libdir does not exist]]) 520172313efbSmrg_LT_TAGDECL([], [hardcode_libdir_separator], [1], 520272313efbSmrg [Whether we need a single "-rpath" flag with a separated argument]) 520372313efbSmrg_LT_TAGDECL([], [hardcode_direct], [0], 520472313efbSmrg [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes 520572313efbSmrg DIR into the resulting binary]) 520672313efbSmrg_LT_TAGDECL([], [hardcode_direct_absolute], [0], 520772313efbSmrg [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes 520872313efbSmrg DIR into the resulting binary and the resulting library dependency is 520972313efbSmrg "absolute", i.e impossible to change by setting ${shlibpath_var} if the 521072313efbSmrg library is relocated]) 521172313efbSmrg_LT_TAGDECL([], [hardcode_minus_L], [0], 521272313efbSmrg [Set to "yes" if using the -LDIR flag during linking hardcodes DIR 521372313efbSmrg into the resulting binary]) 521472313efbSmrg_LT_TAGDECL([], [hardcode_shlibpath_var], [0], 521572313efbSmrg [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 521672313efbSmrg into the resulting binary]) 521772313efbSmrg_LT_TAGDECL([], [hardcode_automatic], [0], 521872313efbSmrg [Set to "yes" if building a shared library automatically hardcodes DIR 521972313efbSmrg into the library and all subsequent libraries and executables linked 522072313efbSmrg against it]) 522172313efbSmrg_LT_TAGDECL([], [inherit_rpath], [0], 522272313efbSmrg [Set to yes if linker adds runtime paths of dependent libraries 522372313efbSmrg to runtime path list]) 522472313efbSmrg_LT_TAGDECL([], [link_all_deplibs], [0], 522572313efbSmrg [Whether libtool must link a program against all its dependency libraries]) 522672313efbSmrg_LT_TAGDECL([], [fix_srcfile_path], [1], 522772313efbSmrg [Fix the shell variable $srcfile for the compiler]) 522872313efbSmrg_LT_TAGDECL([], [always_export_symbols], [0], 522972313efbSmrg [Set to "yes" if exported symbols are required]) 523072313efbSmrg_LT_TAGDECL([], [export_symbols_cmds], [2], 523172313efbSmrg [The commands to list exported symbols]) 523272313efbSmrg_LT_TAGDECL([], [exclude_expsyms], [1], 523372313efbSmrg [Symbols that should not be listed in the preloaded symbols]) 523472313efbSmrg_LT_TAGDECL([], [include_expsyms], [1], 523572313efbSmrg [Symbols that must always be exported]) 523672313efbSmrg_LT_TAGDECL([], [prelink_cmds], [2], 523772313efbSmrg [Commands necessary for linking programs (against libraries) with templates]) 523872313efbSmrg_LT_TAGDECL([], [file_list_spec], [1], 523972313efbSmrg [Specify filename containing input files]) 524072313efbSmrgdnl FIXME: Not yet implemented 524172313efbSmrgdnl _LT_TAGDECL([], [thread_safe_flag_spec], [1], 524272313efbSmrgdnl [Compiler flag to generate thread safe objects]) 524372313efbSmrg])# _LT_LINKER_SHLIBS 524472313efbSmrg 524572313efbSmrg 524672313efbSmrg# _LT_LANG_C_CONFIG([TAG]) 524772313efbSmrg# ------------------------ 524872313efbSmrg# Ensure that the configuration variables for a C compiler are suitably 524972313efbSmrg# defined. These variables are subsequently used by _LT_CONFIG to write 525072313efbSmrg# the compiler configuration to `libtool'. 525172313efbSmrgm4_defun([_LT_LANG_C_CONFIG], 525272313efbSmrg[m4_require([_LT_DECL_EGREP])dnl 525372313efbSmrglt_save_CC="$CC" 525472313efbSmrgAC_LANG_PUSH(C) 5255bdcaa8d0Smrg 525672313efbSmrg# Source file extension for C test sources. 525772313efbSmrgac_ext=c 5258bdcaa8d0Smrg 525972313efbSmrg# Object file extension for compiled C test sources. 526072313efbSmrgobjext=o 526172313efbSmrg_LT_TAGVAR(objext, $1)=$objext 5262bdcaa8d0Smrg 526372313efbSmrg# Code to be used in simple compile tests 526472313efbSmrglt_simple_compile_test_code="int some_variable = 0;" 5265bdcaa8d0Smrg 526672313efbSmrg# Code to be used in simple link tests 526772313efbSmrglt_simple_link_test_code='int main(){return(0);}' 5268bdcaa8d0Smrg 526972313efbSmrg_LT_TAG_COMPILER 527072313efbSmrg# Save the default compiler, since it gets overwritten when the other 527172313efbSmrg# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 527272313efbSmrgcompiler_DEFAULT=$CC 5273bdcaa8d0Smrg 527472313efbSmrg# save warnings/boilerplate of simple test code 527572313efbSmrg_LT_COMPILER_BOILERPLATE 527672313efbSmrg_LT_LINKER_BOILERPLATE 5277bdcaa8d0Smrg 527872313efbSmrgif test -n "$compiler"; then 527972313efbSmrg _LT_COMPILER_NO_RTTI($1) 528072313efbSmrg _LT_COMPILER_PIC($1) 528172313efbSmrg _LT_COMPILER_C_O($1) 528272313efbSmrg _LT_COMPILER_FILE_LOCKS($1) 528372313efbSmrg _LT_LINKER_SHLIBS($1) 528472313efbSmrg _LT_SYS_DYNAMIC_LINKER($1) 528572313efbSmrg _LT_LINKER_HARDCODE_LIBPATH($1) 528672313efbSmrg LT_SYS_DLOPEN_SELF 528772313efbSmrg _LT_CMD_STRIPLIB 528872313efbSmrg 528972313efbSmrg # Report which library types will actually be built 529072313efbSmrg AC_MSG_CHECKING([if libtool supports shared libraries]) 529172313efbSmrg AC_MSG_RESULT([$can_build_shared]) 529272313efbSmrg 529372313efbSmrg AC_MSG_CHECKING([whether to build shared libraries]) 529472313efbSmrg test "$can_build_shared" = "no" && enable_shared=no 529572313efbSmrg 529672313efbSmrg # On AIX, shared libraries and static libraries use the same namespace, and 529772313efbSmrg # are all built from PIC. 529872313efbSmrg case $host_os in 529972313efbSmrg aix3*) 530072313efbSmrg test "$enable_shared" = yes && enable_static=no 530172313efbSmrg if test -n "$RANLIB"; then 530272313efbSmrg archive_cmds="$archive_cmds~\$RANLIB \$lib" 530372313efbSmrg postinstall_cmds='$RANLIB $lib' 530472313efbSmrg fi 530572313efbSmrg ;; 5306bdcaa8d0Smrg 530772313efbSmrg aix[[4-9]]*) 530872313efbSmrg if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 530972313efbSmrg test "$enable_shared" = yes && enable_static=no 531072313efbSmrg fi 531172313efbSmrg ;; 531272313efbSmrg esac 531372313efbSmrg AC_MSG_RESULT([$enable_shared]) 5314bdcaa8d0Smrg 531572313efbSmrg AC_MSG_CHECKING([whether to build static libraries]) 531672313efbSmrg # Make sure either enable_shared or enable_static is yes. 531772313efbSmrg test "$enable_shared" = yes || enable_static=yes 531872313efbSmrg AC_MSG_RESULT([$enable_static]) 5319bdcaa8d0Smrg 532072313efbSmrg _LT_CONFIG($1) 532172313efbSmrgfi 532272313efbSmrgAC_LANG_POP 532372313efbSmrgCC="$lt_save_CC" 532472313efbSmrg])# _LT_LANG_C_CONFIG 5325bdcaa8d0Smrg 5326bdcaa8d0Smrg 532772313efbSmrg# _LT_PROG_CXX 532872313efbSmrg# ------------ 532972313efbSmrg# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++ 533072313efbSmrg# compiler, we have our own version here. 533172313efbSmrgm4_defun([_LT_PROG_CXX], 533272313efbSmrg[ 533372313efbSmrgpushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes]) 533472313efbSmrgAC_PROG_CXX 533572313efbSmrgif test -n "$CXX" && ( test "X$CXX" != "Xno" && 533672313efbSmrg ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 533772313efbSmrg (test "X$CXX" != "Xg++"))) ; then 533872313efbSmrg AC_PROG_CXXCPP 533972313efbSmrgelse 534072313efbSmrg _lt_caught_CXX_error=yes 534172313efbSmrgfi 534272313efbSmrgpopdef([AC_MSG_ERROR]) 534372313efbSmrg])# _LT_PROG_CXX 534472313efbSmrg 534572313efbSmrgdnl aclocal-1.4 backwards compatibility: 534672313efbSmrgdnl AC_DEFUN([_LT_PROG_CXX], []) 534772313efbSmrg 534872313efbSmrg 534972313efbSmrg# _LT_LANG_CXX_CONFIG([TAG]) 535072313efbSmrg# -------------------------- 535172313efbSmrg# Ensure that the configuration variables for a C++ compiler are suitably 535272313efbSmrg# defined. These variables are subsequently used by _LT_CONFIG to write 535372313efbSmrg# the compiler configuration to `libtool'. 535472313efbSmrgm4_defun([_LT_LANG_CXX_CONFIG], 535572313efbSmrg[AC_REQUIRE([_LT_PROG_CXX])dnl 535672313efbSmrgm4_require([_LT_FILEUTILS_DEFAULTS])dnl 535772313efbSmrgm4_require([_LT_DECL_EGREP])dnl 535872313efbSmrg 535972313efbSmrgAC_LANG_PUSH(C++) 536072313efbSmrg_LT_TAGVAR(archive_cmds_need_lc, $1)=no 536172313efbSmrg_LT_TAGVAR(allow_undefined_flag, $1)= 536272313efbSmrg_LT_TAGVAR(always_export_symbols, $1)=no 536372313efbSmrg_LT_TAGVAR(archive_expsym_cmds, $1)= 536472313efbSmrg_LT_TAGVAR(compiler_needs_object, $1)=no 536572313efbSmrg_LT_TAGVAR(export_dynamic_flag_spec, $1)= 536672313efbSmrg_LT_TAGVAR(hardcode_direct, $1)=no 536772313efbSmrg_LT_TAGVAR(hardcode_direct_absolute, $1)=no 536872313efbSmrg_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 536972313efbSmrg_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= 537072313efbSmrg_LT_TAGVAR(hardcode_libdir_separator, $1)= 537172313efbSmrg_LT_TAGVAR(hardcode_minus_L, $1)=no 537272313efbSmrg_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 537372313efbSmrg_LT_TAGVAR(hardcode_automatic, $1)=no 537472313efbSmrg_LT_TAGVAR(inherit_rpath, $1)=no 537572313efbSmrg_LT_TAGVAR(module_cmds, $1)= 537672313efbSmrg_LT_TAGVAR(module_expsym_cmds, $1)= 537772313efbSmrg_LT_TAGVAR(link_all_deplibs, $1)=unknown 537872313efbSmrg_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 537972313efbSmrg_LT_TAGVAR(no_undefined_flag, $1)= 538072313efbSmrg_LT_TAGVAR(whole_archive_flag_spec, $1)= 538172313efbSmrg_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no 538272313efbSmrg 538372313efbSmrg# Source file extension for C++ test sources. 538472313efbSmrgac_ext=cpp 538572313efbSmrg 538672313efbSmrg# Object file extension for compiled C++ test sources. 538772313efbSmrgobjext=o 538872313efbSmrg_LT_TAGVAR(objext, $1)=$objext 538972313efbSmrg 539072313efbSmrg# No sense in running all these tests if we already determined that 539172313efbSmrg# the CXX compiler isn't working. Some variables (like enable_shared) 539272313efbSmrg# are currently assumed to apply to all compilers on this platform, 539372313efbSmrg# and will be corrupted by setting them based on a non-working compiler. 539472313efbSmrgif test "$_lt_caught_CXX_error" != yes; then 539572313efbSmrg # Code to be used in simple compile tests 539672313efbSmrg lt_simple_compile_test_code="int some_variable = 0;" 539772313efbSmrg 539872313efbSmrg # Code to be used in simple link tests 539972313efbSmrg lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }' 540072313efbSmrg 540172313efbSmrg # ltmain only uses $CC for tagged configurations so make sure $CC is set. 540272313efbSmrg _LT_TAG_COMPILER 540372313efbSmrg 540472313efbSmrg # save warnings/boilerplate of simple test code 540572313efbSmrg _LT_COMPILER_BOILERPLATE 540672313efbSmrg _LT_LINKER_BOILERPLATE 540772313efbSmrg 540872313efbSmrg # Allow CC to be a program name with arguments. 540972313efbSmrg lt_save_CC=$CC 541072313efbSmrg lt_save_LD=$LD 541172313efbSmrg lt_save_GCC=$GCC 541272313efbSmrg GCC=$GXX 541372313efbSmrg lt_save_with_gnu_ld=$with_gnu_ld 541472313efbSmrg lt_save_path_LD=$lt_cv_path_LD 541572313efbSmrg if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 541672313efbSmrg lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 5417bdcaa8d0Smrg else 541872313efbSmrg $as_unset lt_cv_prog_gnu_ld 5419bdcaa8d0Smrg fi 542072313efbSmrg if test -n "${lt_cv_path_LDCXX+set}"; then 542172313efbSmrg lt_cv_path_LD=$lt_cv_path_LDCXX 5422bdcaa8d0Smrg else 542372313efbSmrg $as_unset lt_cv_path_LD 5424bdcaa8d0Smrg fi 542572313efbSmrg test -z "${LDCXX+set}" || LD=$LDCXX 542672313efbSmrg CC=${CXX-"c++"} 542772313efbSmrg compiler=$CC 542872313efbSmrg _LT_TAGVAR(compiler, $1)=$CC 542972313efbSmrg _LT_CC_BASENAME([$compiler]) 5430bdcaa8d0Smrg 543172313efbSmrg if test -n "$compiler"; then 543272313efbSmrg # We don't want -fno-exception when compiling C++ code, so set the 543372313efbSmrg # no_builtin_flag separately 543472313efbSmrg if test "$GXX" = yes; then 543572313efbSmrg _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' 543672313efbSmrg else 543772313efbSmrg _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= 543872313efbSmrg fi 5439bdcaa8d0Smrg 544072313efbSmrg if test "$GXX" = yes; then 544172313efbSmrg # Set up default GNU C++ configuration 5442bdcaa8d0Smrg 544372313efbSmrg LT_PATH_LD 5444bdcaa8d0Smrg 544572313efbSmrg # Check if GNU C++ uses GNU ld as the underlying linker, since the 544672313efbSmrg # archiving commands below assume that GNU ld is being used. 544772313efbSmrg if test "$with_gnu_ld" = yes; then 544872313efbSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 544972313efbSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 545072313efbSmrg 545172313efbSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 545272313efbSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 545372313efbSmrg 545472313efbSmrg # If archive_cmds runs LD, not CC, wlarc should be empty 545572313efbSmrg # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 545672313efbSmrg # investigate it a little bit more. (MM) 545772313efbSmrg wlarc='${wl}' 545872313efbSmrg 545972313efbSmrg # ancient GNU ld didn't support --whole-archive et. al. 546072313efbSmrg if eval "`$CC -print-prog-name=ld` --help 2>&1" | 546172313efbSmrg $GREP 'no-whole-archive' > /dev/null; then 546272313efbSmrg _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 546372313efbSmrg else 546472313efbSmrg _LT_TAGVAR(whole_archive_flag_spec, $1)= 546572313efbSmrg fi 546672313efbSmrg else 546772313efbSmrg with_gnu_ld=no 546872313efbSmrg wlarc= 546972313efbSmrg 547072313efbSmrg # A generic and very simple default shared library creation 547172313efbSmrg # command for GNU C++ for the case where it uses the native 547272313efbSmrg # linker, instead of GNU ld. If possible, this setting should 547372313efbSmrg # overridden to take advantage of the native linker features on 547472313efbSmrg # the platform it is being used on. 547572313efbSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 5476bdcaa8d0Smrg fi 547772313efbSmrg 547872313efbSmrg # Commands to make compiler produce verbose output that lists 547972313efbSmrg # what "hidden" libraries, object files and flags are used when 548072313efbSmrg # linking a shared library. 548172313efbSmrg output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' 548272313efbSmrg 548372313efbSmrg else 548472313efbSmrg GXX=no 548572313efbSmrg with_gnu_ld=no 548672313efbSmrg wlarc= 548772313efbSmrg fi 548872313efbSmrg 548972313efbSmrg # PORTME: fill in a description of your system's C++ link characteristics 549072313efbSmrg AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) 549172313efbSmrg _LT_TAGVAR(ld_shlibs, $1)=yes 5492bdcaa8d0Smrg case $host_os in 549372313efbSmrg aix3*) 549472313efbSmrg # FIXME: insert proper C++ library support 549572313efbSmrg _LT_TAGVAR(ld_shlibs, $1)=no 549672313efbSmrg ;; 549772313efbSmrg aix[[4-9]]*) 549872313efbSmrg if test "$host_cpu" = ia64; then 549972313efbSmrg # On IA64, the linker does run time linking by default, so we don't 550072313efbSmrg # have to do anything special. 550172313efbSmrg aix_use_runtimelinking=no 550272313efbSmrg exp_sym_flag='-Bexport' 550372313efbSmrg no_entry_flag="" 550472313efbSmrg else 550572313efbSmrg aix_use_runtimelinking=no 550672313efbSmrg 550772313efbSmrg # Test if we are trying to use run time linking or normal 550872313efbSmrg # AIX style linking. If -brtl is somewhere in LDFLAGS, we 550972313efbSmrg # need to do runtime linking. 551072313efbSmrg case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) 551172313efbSmrg for ld_flag in $LDFLAGS; do 551272313efbSmrg case $ld_flag in 551372313efbSmrg *-brtl*) 551472313efbSmrg aix_use_runtimelinking=yes 551572313efbSmrg break 551672313efbSmrg ;; 551772313efbSmrg esac 551872313efbSmrg done 551972313efbSmrg ;; 552072313efbSmrg esac 552172313efbSmrg 552272313efbSmrg exp_sym_flag='-bexport' 552372313efbSmrg no_entry_flag='-bnoentry' 552472313efbSmrg fi 552572313efbSmrg 552672313efbSmrg # When large executables or shared objects are built, AIX ld can 552772313efbSmrg # have problems creating the table of contents. If linking a library 552872313efbSmrg # or program results in "error TOC overflow" add -mminimal-toc to 552972313efbSmrg # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 553072313efbSmrg # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 553172313efbSmrg 553272313efbSmrg _LT_TAGVAR(archive_cmds, $1)='' 553372313efbSmrg _LT_TAGVAR(hardcode_direct, $1)=yes 553472313efbSmrg _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 553572313efbSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 553672313efbSmrg _LT_TAGVAR(link_all_deplibs, $1)=yes 553772313efbSmrg _LT_TAGVAR(file_list_spec, $1)='${wl}-f,' 553872313efbSmrg 553972313efbSmrg if test "$GXX" = yes; then 554072313efbSmrg case $host_os in aix4.[[012]]|aix4.[[012]].*) 554172313efbSmrg # We only want to do this on AIX 4.2 and lower, the check 554272313efbSmrg # below for broken collect2 doesn't work under 4.3+ 554372313efbSmrg collect2name=`${CC} -print-prog-name=collect2` 554472313efbSmrg if test -f "$collect2name" && 554572313efbSmrg strings "$collect2name" | $GREP resolve_lib_name >/dev/null 554672313efbSmrg then 554772313efbSmrg # We have reworked collect2 554872313efbSmrg : 554972313efbSmrg else 555072313efbSmrg # We have old collect2 555172313efbSmrg _LT_TAGVAR(hardcode_direct, $1)=unsupported 555272313efbSmrg # It fails to find uninstalled libraries when the uninstalled 555372313efbSmrg # path is not listed in the libpath. Setting hardcode_minus_L 555472313efbSmrg # to unsupported forces relinking 555572313efbSmrg _LT_TAGVAR(hardcode_minus_L, $1)=yes 555672313efbSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 555772313efbSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)= 555872313efbSmrg fi 555972313efbSmrg esac 556072313efbSmrg shared_flag='-shared' 556172313efbSmrg if test "$aix_use_runtimelinking" = yes; then 556272313efbSmrg shared_flag="$shared_flag "'${wl}-G' 556372313efbSmrg fi 556472313efbSmrg else 556572313efbSmrg # not using gcc 556672313efbSmrg if test "$host_cpu" = ia64; then 556772313efbSmrg # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 556872313efbSmrg # chokes on -Wl,-G. The following line is correct: 556972313efbSmrg shared_flag='-G' 557072313efbSmrg else 557172313efbSmrg if test "$aix_use_runtimelinking" = yes; then 557272313efbSmrg shared_flag='${wl}-G' 557372313efbSmrg else 557472313efbSmrg shared_flag='${wl}-bM:SRE' 557572313efbSmrg fi 557672313efbSmrg fi 557772313efbSmrg fi 557872313efbSmrg 557972313efbSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall' 558072313efbSmrg # It seems that -bexpall does not export symbols beginning with 558172313efbSmrg # underscore (_), so it is better to generate a list of symbols to 558272313efbSmrg # export. 558372313efbSmrg _LT_TAGVAR(always_export_symbols, $1)=yes 558472313efbSmrg if test "$aix_use_runtimelinking" = yes; then 558572313efbSmrg # Warning - without using the other runtime loading flags (-brtl), 558672313efbSmrg # -berok will link without error, but may produce a broken library. 558772313efbSmrg _LT_TAGVAR(allow_undefined_flag, $1)='-berok' 558872313efbSmrg # Determine the default libpath from the value encoded in an empty 558972313efbSmrg # executable. 559072313efbSmrg _LT_SYS_MODULE_PATH_AIX 559172313efbSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 559272313efbSmrg 559372313efbSmrg _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 $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 559472313efbSmrg else 559572313efbSmrg if test "$host_cpu" = ia64; then 559672313efbSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' 559772313efbSmrg _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" 559872313efbSmrg _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" 559972313efbSmrg else 560072313efbSmrg # Determine the default libpath from the value encoded in an 560172313efbSmrg # empty executable. 560272313efbSmrg _LT_SYS_MODULE_PATH_AIX 560372313efbSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 560472313efbSmrg # Warning - without using the other run time loading flags, 560572313efbSmrg # -berok will link without error, but may produce a broken library. 560672313efbSmrg _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' 560772313efbSmrg _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' 560872313efbSmrg # Exported symbols can be pulled into shared objects from archives 560972313efbSmrg _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' 561072313efbSmrg _LT_TAGVAR(archive_cmds_need_lc, $1)=yes 561172313efbSmrg # This is similar to how AIX traditionally builds its shared 561272313efbSmrg # libraries. 561372313efbSmrg _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' 561472313efbSmrg fi 561572313efbSmrg fi 561672313efbSmrg ;; 561772313efbSmrg 561872313efbSmrg beos*) 561972313efbSmrg if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 562072313efbSmrg _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 562172313efbSmrg # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 562272313efbSmrg # support --undefined. This deserves some investigation. FIXME 562372313efbSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 5624bdcaa8d0Smrg else 562572313efbSmrg _LT_TAGVAR(ld_shlibs, $1)=no 5626bdcaa8d0Smrg fi 5627bdcaa8d0Smrg ;; 562872313efbSmrg 5629bdcaa8d0Smrg chorus*) 563072313efbSmrg case $cc_basename in 563172313efbSmrg *) 563272313efbSmrg # FIXME: insert proper C++ library support 563372313efbSmrg _LT_TAGVAR(ld_shlibs, $1)=no 5634bdcaa8d0Smrg ;; 563572313efbSmrg esac 563672313efbSmrg ;; 563772313efbSmrg 563872313efbSmrg cygwin* | mingw* | pw32* | cegcc*) 563972313efbSmrg # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, 564072313efbSmrg # as there is no search path for DLLs. 564172313efbSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 564272313efbSmrg _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 564372313efbSmrg _LT_TAGVAR(always_export_symbols, $1)=no 564472313efbSmrg _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 564572313efbSmrg 564672313efbSmrg if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 564772313efbSmrg _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' 564872313efbSmrg # If the export-symbols file already is a .def file (1st line 564972313efbSmrg # is EXPORTS), use it as is; otherwise, prepend... 565072313efbSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 565172313efbSmrg cp $export_symbols $output_objdir/$soname.def; 565272313efbSmrg else 565372313efbSmrg echo EXPORTS > $output_objdir/$soname.def; 565472313efbSmrg cat $export_symbols >> $output_objdir/$soname.def; 565572313efbSmrg fi~ 565672313efbSmrg $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' 565772313efbSmrg else 565872313efbSmrg _LT_TAGVAR(ld_shlibs, $1)=no 565972313efbSmrg fi 566072313efbSmrg ;; 566172313efbSmrg darwin* | rhapsody*) 566272313efbSmrg _LT_DARWIN_LINKER_FEATURES($1) 5663bdcaa8d0Smrg ;; 566472313efbSmrg 5665bdcaa8d0Smrg dgux*) 566672313efbSmrg case $cc_basename in 566772313efbSmrg ec++*) 566872313efbSmrg # FIXME: insert proper C++ library support 566972313efbSmrg _LT_TAGVAR(ld_shlibs, $1)=no 5670bdcaa8d0Smrg ;; 567172313efbSmrg ghcx*) 5672bdcaa8d0Smrg # Green Hills C++ Compiler 567372313efbSmrg # FIXME: insert proper C++ library support 567472313efbSmrg _LT_TAGVAR(ld_shlibs, $1)=no 5675bdcaa8d0Smrg ;; 567672313efbSmrg *) 567772313efbSmrg # FIXME: insert proper C++ library support 567872313efbSmrg _LT_TAGVAR(ld_shlibs, $1)=no 5679bdcaa8d0Smrg ;; 568072313efbSmrg esac 568172313efbSmrg ;; 568272313efbSmrg 568372313efbSmrg freebsd[[12]]*) 568472313efbSmrg # C++ shared libraries reported to be fairly broken before 568572313efbSmrg # switch to ELF 568672313efbSmrg _LT_TAGVAR(ld_shlibs, $1)=no 568772313efbSmrg ;; 568872313efbSmrg 568972313efbSmrg freebsd-elf*) 569072313efbSmrg _LT_TAGVAR(archive_cmds_need_lc, $1)=no 569172313efbSmrg ;; 569272313efbSmrg 5693bdcaa8d0Smrg freebsd* | dragonfly*) 569472313efbSmrg # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 569572313efbSmrg # conventions 569672313efbSmrg _LT_TAGVAR(ld_shlibs, $1)=yes 569772313efbSmrg ;; 569872313efbSmrg 569972313efbSmrg gnu*) 570072313efbSmrg ;; 570172313efbSmrg 570272313efbSmrg hpux9*) 570372313efbSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 570472313efbSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)=: 570572313efbSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 570672313efbSmrg _LT_TAGVAR(hardcode_direct, $1)=yes 570772313efbSmrg _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, 570872313efbSmrg # but as the default 570972313efbSmrg # location of the library. 571072313efbSmrg 571172313efbSmrg case $cc_basename in 571272313efbSmrg CC*) 571372313efbSmrg # FIXME: insert proper C++ library support 571472313efbSmrg _LT_TAGVAR(ld_shlibs, $1)=no 571572313efbSmrg ;; 571672313efbSmrg aCC*) 571772313efbSmrg _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' 571872313efbSmrg # Commands to make compiler produce verbose output that lists 571972313efbSmrg # what "hidden" libraries, object files and flags are used when 572072313efbSmrg # linking a shared library. 572172313efbSmrg # 572272313efbSmrg # There doesn't appear to be a way to prevent this compiler from 572372313efbSmrg # explicitly linking system object files so we need to strip them 572472313efbSmrg # from the output so that they don't get included in the library 572572313efbSmrg # dependencies. 572672313efbSmrg 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; $ECHO "X$list" | $Xsed' 572772313efbSmrg ;; 572872313efbSmrg *) 572972313efbSmrg if test "$GXX" = yes; then 573072313efbSmrg _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${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' 573172313efbSmrg else 573272313efbSmrg # FIXME: insert proper C++ library support 573372313efbSmrg _LT_TAGVAR(ld_shlibs, $1)=no 573472313efbSmrg fi 573572313efbSmrg ;; 573672313efbSmrg esac 573772313efbSmrg ;; 573872313efbSmrg 573972313efbSmrg hpux10*|hpux11*) 574072313efbSmrg if test $with_gnu_ld = no; then 574172313efbSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 574272313efbSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)=: 574372313efbSmrg 574472313efbSmrg case $host_cpu in 574572313efbSmrg hppa*64*|ia64*) 574672313efbSmrg ;; 574772313efbSmrg *) 574872313efbSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 574972313efbSmrg ;; 575072313efbSmrg esac 575172313efbSmrg fi 575272313efbSmrg case $host_cpu in 575372313efbSmrg hppa*64*|ia64*) 575472313efbSmrg _LT_TAGVAR(hardcode_direct, $1)=no 575572313efbSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 575672313efbSmrg ;; 575772313efbSmrg *) 575872313efbSmrg _LT_TAGVAR(hardcode_direct, $1)=yes 575972313efbSmrg _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 576072313efbSmrg _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, 576172313efbSmrg # but as the default 576272313efbSmrg # location of the library. 576372313efbSmrg ;; 576472313efbSmrg esac 576572313efbSmrg 576672313efbSmrg case $cc_basename in 576772313efbSmrg CC*) 576872313efbSmrg # FIXME: insert proper C++ library support 576972313efbSmrg _LT_TAGVAR(ld_shlibs, $1)=no 5770bdcaa8d0Smrg ;; 577172313efbSmrg aCC*) 5772bdcaa8d0Smrg case $host_cpu in 577372313efbSmrg hppa*64*) 577472313efbSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 577572313efbSmrg ;; 577672313efbSmrg ia64*) 577772313efbSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 577872313efbSmrg ;; 577972313efbSmrg *) 578072313efbSmrg _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' 578172313efbSmrg ;; 5782bdcaa8d0Smrg esac 578372313efbSmrg # Commands to make compiler produce verbose output that lists 578472313efbSmrg # what "hidden" libraries, object files and flags are used when 578572313efbSmrg # linking a shared library. 578672313efbSmrg # 578772313efbSmrg # There doesn't appear to be a way to prevent this compiler from 578872313efbSmrg # explicitly linking system object files so we need to strip them 578972313efbSmrg # from the output so that they don't get included in the library 579072313efbSmrg # dependencies. 579172313efbSmrg 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; $ECHO "X$list" | $Xsed' 5792bdcaa8d0Smrg ;; 579372313efbSmrg *) 579472313efbSmrg if test "$GXX" = yes; then 579572313efbSmrg if test $with_gnu_ld = no; then 579672313efbSmrg case $host_cpu in 579772313efbSmrg hppa*64*) 579872313efbSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 579972313efbSmrg ;; 580072313efbSmrg ia64*) 580172313efbSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 580272313efbSmrg ;; 580372313efbSmrg *) 580472313efbSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 580572313efbSmrg ;; 580672313efbSmrg esac 580772313efbSmrg fi 580872313efbSmrg else 580972313efbSmrg # FIXME: insert proper C++ library support 581072313efbSmrg _LT_TAGVAR(ld_shlibs, $1)=no 581172313efbSmrg fi 5812bdcaa8d0Smrg ;; 581372313efbSmrg esac 581472313efbSmrg ;; 581572313efbSmrg 581672313efbSmrg interix[[3-9]]*) 581772313efbSmrg _LT_TAGVAR(hardcode_direct, $1)=no 581872313efbSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 581972313efbSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 582072313efbSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 582172313efbSmrg # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 582272313efbSmrg # Instead, shared libraries are loaded at an image base (0x10000000 by 582372313efbSmrg # default) and relocated if they conflict, which is a slow very memory 582472313efbSmrg # consuming and fragmenting process. To avoid this, we pick a random, 582572313efbSmrg # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 582672313efbSmrg # time. Moving up from 0x10000000 also allows more sbrk(2) space. 582772313efbSmrg _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' 582872313efbSmrg _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' 5829bdcaa8d0Smrg ;; 583072313efbSmrg irix5* | irix6*) 583172313efbSmrg case $cc_basename in 583272313efbSmrg CC*) 583372313efbSmrg # SGI C++ 583472313efbSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 583572313efbSmrg 583672313efbSmrg # Archives containing C++ object files must be created using 583772313efbSmrg # "CC -ar", where "CC" is the IRIX C++ compiler. This is 583872313efbSmrg # necessary to make sure instantiated templates are included 583972313efbSmrg # in the archive. 584072313efbSmrg _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' 5841bdcaa8d0Smrg ;; 584272313efbSmrg *) 584372313efbSmrg if test "$GXX" = yes; then 584472313efbSmrg if test "$with_gnu_ld" = no; then 584572313efbSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 584672313efbSmrg else 584772313efbSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib' 584872313efbSmrg fi 584972313efbSmrg fi 585072313efbSmrg _LT_TAGVAR(link_all_deplibs, $1)=yes 5851bdcaa8d0Smrg ;; 585272313efbSmrg esac 585372313efbSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 585472313efbSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)=: 585572313efbSmrg _LT_TAGVAR(inherit_rpath, $1)=yes 585672313efbSmrg ;; 585772313efbSmrg 5858bdcaa8d0Smrg linux* | k*bsd*-gnu) 585972313efbSmrg case $cc_basename in 586072313efbSmrg KCC*) 586172313efbSmrg # Kuck and Associates, Inc. (KAI) C++ Compiler 586272313efbSmrg 586372313efbSmrg # KCC will only create a shared library if the output file 586472313efbSmrg # ends with ".so" (or ".sl" for HP-UX), so rename the library 586572313efbSmrg # to its proper name (with version) after linking. 586672313efbSmrg _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' 586772313efbSmrg _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' 586872313efbSmrg # Commands to make compiler produce verbose output that lists 586972313efbSmrg # what "hidden" libraries, object files and flags are used when 587072313efbSmrg # linking a shared library. 587172313efbSmrg # 587272313efbSmrg # There doesn't appear to be a way to prevent this compiler from 587372313efbSmrg # explicitly linking system object files so we need to strip them 587472313efbSmrg # from the output so that they don't get included in the library 587572313efbSmrg # dependencies. 587672313efbSmrg 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; $ECHO "X$list" | $Xsed' 587772313efbSmrg 587872313efbSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 587972313efbSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 588072313efbSmrg 588172313efbSmrg # Archives containing C++ object files must be created using 588272313efbSmrg # "CC -Bstatic", where "CC" is the KAI C++ compiler. 588372313efbSmrg _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' 5884bdcaa8d0Smrg ;; 588572313efbSmrg icpc* | ecpc* ) 5886bdcaa8d0Smrg # Intel C++ 588772313efbSmrg with_gnu_ld=yes 588872313efbSmrg # version 8.0 and above of icpc choke on multiply defined symbols 588972313efbSmrg # if we add $predep_objects and $postdep_objects, however 7.1 and 589072313efbSmrg # earlier do not add the objects themselves. 589172313efbSmrg case `$CC -V 2>&1` in 589272313efbSmrg *"Version 7."*) 589372313efbSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 589472313efbSmrg _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' 589572313efbSmrg ;; 589672313efbSmrg *) # Version 8.0 or newer 589772313efbSmrg tmp_idyn= 589872313efbSmrg case $host_cpu in 589972313efbSmrg ia64*) tmp_idyn=' -i_dynamic';; 590072313efbSmrg esac 590172313efbSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 590272313efbSmrg _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' 590372313efbSmrg ;; 590472313efbSmrg esac 590572313efbSmrg _LT_TAGVAR(archive_cmds_need_lc, $1)=no 590672313efbSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 590772313efbSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 590872313efbSmrg _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 5909bdcaa8d0Smrg ;; 591072313efbSmrg pgCC* | pgcpp*) 591172313efbSmrg # Portland Group C++ compiler 591272313efbSmrg case `$CC -V` in 591372313efbSmrg *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*) 591472313efbSmrg _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~ 591572313efbSmrg rm -rf $tpldir~ 591672313efbSmrg $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 591772313efbSmrg compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"' 591872313efbSmrg _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~ 591972313efbSmrg rm -rf $tpldir~ 592072313efbSmrg $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 592172313efbSmrg $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~ 592272313efbSmrg $RANLIB $oldlib' 592372313efbSmrg _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~ 592472313efbSmrg rm -rf $tpldir~ 592572313efbSmrg $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 592672313efbSmrg $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 592772313efbSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~ 592872313efbSmrg rm -rf $tpldir~ 592972313efbSmrg $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 593072313efbSmrg $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' 593172313efbSmrg ;; 593272313efbSmrg *) # Version 6 will use weak symbols 593372313efbSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 593472313efbSmrg _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' 593572313efbSmrg ;; 593672313efbSmrg esac 593772313efbSmrg 593872313efbSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' 593972313efbSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 594072313efbSmrg _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' 594172313efbSmrg ;; 5942bdcaa8d0Smrg cxx*) 5943bdcaa8d0Smrg # Compaq C++ 594472313efbSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 594572313efbSmrg _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' 594672313efbSmrg 594772313efbSmrg runpath_var=LD_RUN_PATH 594872313efbSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 594972313efbSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)=: 595072313efbSmrg 595172313efbSmrg # Commands to make compiler produce verbose output that lists 595272313efbSmrg # what "hidden" libraries, object files and flags are used when 595372313efbSmrg # linking a shared library. 595472313efbSmrg # 595572313efbSmrg # There doesn't appear to be a way to prevent this compiler from 595672313efbSmrg # explicitly linking system object files so we need to strip them 595772313efbSmrg # from the output so that they don't get included in the library 595872313efbSmrg # dependencies. 595972313efbSmrg output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' 596072313efbSmrg ;; 596172313efbSmrg xl*) 596272313efbSmrg # IBM XL 8.0 on PPC, with GNU ld 596372313efbSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 596472313efbSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 596572313efbSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 596672313efbSmrg if test "x$supports_anon_versioning" = xyes; then 596772313efbSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ 596872313efbSmrg cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 596972313efbSmrg echo "local: *; };" >> $output_objdir/$libname.ver~ 597072313efbSmrg $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 597172313efbSmrg fi 5972bdcaa8d0Smrg ;; 5973bdcaa8d0Smrg *) 597472313efbSmrg case `$CC -V 2>&1 | sed 5q` in 597572313efbSmrg *Sun\ C*) 597672313efbSmrg # Sun C++ 5.9 597772313efbSmrg _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' 597872313efbSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 597972313efbSmrg _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' 598072313efbSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 598172313efbSmrg _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; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' 598272313efbSmrg _LT_TAGVAR(compiler_needs_object, $1)=yes 598372313efbSmrg 598472313efbSmrg # Not sure whether something based on 598572313efbSmrg # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 598672313efbSmrg # would be better. 598772313efbSmrg output_verbose_link_cmd='echo' 598872313efbSmrg 598972313efbSmrg # Archives containing C++ object files must be created using 599072313efbSmrg # "CC -xar", where "CC" is the Sun C++ compiler. This is 599172313efbSmrg # necessary to make sure instantiated templates are included 599272313efbSmrg # in the archive. 599372313efbSmrg _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' 599472313efbSmrg ;; 599572313efbSmrg esac 5996bdcaa8d0Smrg ;; 5997bdcaa8d0Smrg esac 5998bdcaa8d0Smrg ;; 599972313efbSmrg 6000bdcaa8d0Smrg lynxos*) 600172313efbSmrg # FIXME: insert proper C++ library support 600272313efbSmrg _LT_TAGVAR(ld_shlibs, $1)=no 6003bdcaa8d0Smrg ;; 600472313efbSmrg 6005bdcaa8d0Smrg m88k*) 600672313efbSmrg # FIXME: insert proper C++ library support 600772313efbSmrg _LT_TAGVAR(ld_shlibs, $1)=no 6008bdcaa8d0Smrg ;; 600972313efbSmrg 6010bdcaa8d0Smrg mvs*) 601172313efbSmrg case $cc_basename in 601272313efbSmrg cxx*) 601372313efbSmrg # FIXME: insert proper C++ library support 601472313efbSmrg _LT_TAGVAR(ld_shlibs, $1)=no 6015bdcaa8d0Smrg ;; 6016bdcaa8d0Smrg *) 601772313efbSmrg # FIXME: insert proper C++ library support 601872313efbSmrg _LT_TAGVAR(ld_shlibs, $1)=no 6019bdcaa8d0Smrg ;; 6020bdcaa8d0Smrg esac 6021bdcaa8d0Smrg ;; 602272313efbSmrg 602372313efbSmrg netbsd*) 602472313efbSmrg if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 602572313efbSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 602672313efbSmrg wlarc= 602772313efbSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 602872313efbSmrg _LT_TAGVAR(hardcode_direct, $1)=yes 602972313efbSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 603072313efbSmrg fi 603172313efbSmrg # Workaround some broken pre-1.5 toolchains 603272313efbSmrg output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 603372313efbSmrg ;; 603472313efbSmrg 603572313efbSmrg *nto* | *qnx*) 603672313efbSmrg _LT_TAGVAR(ld_shlibs, $1)=yes 603772313efbSmrg ;; 603872313efbSmrg 603972313efbSmrg openbsd2*) 604072313efbSmrg # C++ shared libraries are fairly broken 604172313efbSmrg _LT_TAGVAR(ld_shlibs, $1)=no 604272313efbSmrg ;; 604372313efbSmrg 604472313efbSmrg openbsd*) 604572313efbSmrg if test -f /usr/libexec/ld.so; then 604672313efbSmrg _LT_TAGVAR(hardcode_direct, $1)=yes 604772313efbSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 604872313efbSmrg _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 604972313efbSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 605072313efbSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 605172313efbSmrg if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 605272313efbSmrg _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' 605372313efbSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 605472313efbSmrg _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 605572313efbSmrg fi 605672313efbSmrg output_verbose_link_cmd=echo 605772313efbSmrg else 605872313efbSmrg _LT_TAGVAR(ld_shlibs, $1)=no 605972313efbSmrg fi 6060bdcaa8d0Smrg ;; 606172313efbSmrg 6062bdcaa8d0Smrg osf3* | osf4* | osf5*) 606372313efbSmrg case $cc_basename in 606472313efbSmrg KCC*) 606572313efbSmrg # Kuck and Associates, Inc. (KAI) C++ Compiler 606672313efbSmrg 606772313efbSmrg # KCC will only create a shared library if the output file 606872313efbSmrg # ends with ".so" (or ".sl" for HP-UX), so rename the library 606972313efbSmrg # to its proper name (with version) after linking. 607072313efbSmrg _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' 607172313efbSmrg 607272313efbSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 607372313efbSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)=: 607472313efbSmrg 607572313efbSmrg # Archives containing C++ object files must be created using 607672313efbSmrg # the KAI C++ compiler. 607772313efbSmrg case $host in 607872313efbSmrg osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;; 607972313efbSmrg *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;; 608072313efbSmrg esac 6081bdcaa8d0Smrg ;; 608272313efbSmrg RCC*) 6083bdcaa8d0Smrg # Rational C++ 2.4.1 608472313efbSmrg # FIXME: insert proper C++ library support 608572313efbSmrg _LT_TAGVAR(ld_shlibs, $1)=no 6086bdcaa8d0Smrg ;; 608772313efbSmrg cxx*) 608872313efbSmrg case $host in 608972313efbSmrg osf3*) 609072313efbSmrg _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 609172313efbSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 609272313efbSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 609372313efbSmrg ;; 609472313efbSmrg *) 609572313efbSmrg _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 609672313efbSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 609772313efbSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 609872313efbSmrg echo "-hidden">> $lib.exp~ 609972313efbSmrg $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~ 610072313efbSmrg $RM $lib.exp' 610172313efbSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 610272313efbSmrg ;; 610372313efbSmrg esac 610472313efbSmrg 610572313efbSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)=: 610672313efbSmrg 610772313efbSmrg # Commands to make compiler produce verbose output that lists 610872313efbSmrg # what "hidden" libraries, object files and flags are used when 610972313efbSmrg # linking a shared library. 611072313efbSmrg # 611172313efbSmrg # There doesn't appear to be a way to prevent this compiler from 611272313efbSmrg # explicitly linking system object files so we need to strip them 611372313efbSmrg # from the output so that they don't get included in the library 611472313efbSmrg # dependencies. 611572313efbSmrg output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' 6116bdcaa8d0Smrg ;; 6117bdcaa8d0Smrg *) 611872313efbSmrg if test "$GXX" = yes && test "$with_gnu_ld" = no; then 611972313efbSmrg _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 612072313efbSmrg case $host in 612172313efbSmrg osf3*) 612272313efbSmrg _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" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 612372313efbSmrg ;; 612472313efbSmrg *) 612572313efbSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 612672313efbSmrg ;; 612772313efbSmrg esac 612872313efbSmrg 612972313efbSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 613072313efbSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)=: 613172313efbSmrg 613272313efbSmrg # Commands to make compiler produce verbose output that lists 613372313efbSmrg # what "hidden" libraries, object files and flags are used when 613472313efbSmrg # linking a shared library. 613572313efbSmrg output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' 613672313efbSmrg 613772313efbSmrg else 613872313efbSmrg # FIXME: insert proper C++ library support 613972313efbSmrg _LT_TAGVAR(ld_shlibs, $1)=no 614072313efbSmrg fi 6141bdcaa8d0Smrg ;; 614272313efbSmrg esac 614372313efbSmrg ;; 614472313efbSmrg 6145bdcaa8d0Smrg psos*) 614672313efbSmrg # FIXME: insert proper C++ library support 614772313efbSmrg _LT_TAGVAR(ld_shlibs, $1)=no 614872313efbSmrg ;; 614972313efbSmrg 615072313efbSmrg sunos4*) 615172313efbSmrg case $cc_basename in 615272313efbSmrg CC*) 615372313efbSmrg # Sun C++ 4.x 615472313efbSmrg # FIXME: insert proper C++ library support 615572313efbSmrg _LT_TAGVAR(ld_shlibs, $1)=no 615672313efbSmrg ;; 615772313efbSmrg lcc*) 615872313efbSmrg # Lucid 615972313efbSmrg # FIXME: insert proper C++ library support 616072313efbSmrg _LT_TAGVAR(ld_shlibs, $1)=no 616172313efbSmrg ;; 616272313efbSmrg *) 616372313efbSmrg # FIXME: insert proper C++ library support 616472313efbSmrg _LT_TAGVAR(ld_shlibs, $1)=no 616572313efbSmrg ;; 616672313efbSmrg esac 616772313efbSmrg ;; 616872313efbSmrg 6169bdcaa8d0Smrg solaris*) 617072313efbSmrg case $cc_basename in 617172313efbSmrg CC*) 6172bdcaa8d0Smrg # Sun C++ 4.2, 5.x and Centerline C++ 617372313efbSmrg _LT_TAGVAR(archive_cmds_need_lc,$1)=yes 617472313efbSmrg _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' 617572313efbSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 617672313efbSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 617772313efbSmrg $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' 617872313efbSmrg 617972313efbSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 618072313efbSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 618172313efbSmrg case $host_os in 618272313efbSmrg solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 618372313efbSmrg *) 618472313efbSmrg # The compiler driver will combine and reorder linker options, 618572313efbSmrg # but understands `-z linker_flag'. 618672313efbSmrg # Supported since Solaris 2.6 (maybe 2.5.1?) 618772313efbSmrg _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' 618872313efbSmrg ;; 618972313efbSmrg esac 619072313efbSmrg _LT_TAGVAR(link_all_deplibs, $1)=yes 619172313efbSmrg 619272313efbSmrg output_verbose_link_cmd='echo' 619372313efbSmrg 619472313efbSmrg # Archives containing C++ object files must be created using 619572313efbSmrg # "CC -xar", where "CC" is the Sun C++ compiler. This is 619672313efbSmrg # necessary to make sure instantiated templates are included 619772313efbSmrg # in the archive. 619872313efbSmrg _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' 6199bdcaa8d0Smrg ;; 620072313efbSmrg gcx*) 6201bdcaa8d0Smrg # Green Hills C++ Compiler 620272313efbSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 620372313efbSmrg 620472313efbSmrg # The C++ compiler must be used to create the archive. 620572313efbSmrg _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 6206bdcaa8d0Smrg ;; 620772313efbSmrg *) 620872313efbSmrg # GNU C++ compiler with Solaris linker 620972313efbSmrg if test "$GXX" = yes && test "$with_gnu_ld" = no; then 621072313efbSmrg _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs' 621172313efbSmrg if $CC --version | $GREP -v '^2\.7' > /dev/null; then 621272313efbSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 621372313efbSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 621472313efbSmrg $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 621572313efbSmrg 621672313efbSmrg # Commands to make compiler produce verbose output that lists 621772313efbSmrg # what "hidden" libraries, object files and flags are used when 621872313efbSmrg # linking a shared library. 621972313efbSmrg output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' 622072313efbSmrg else 622172313efbSmrg # g++ 2.7 appears to require `-G' NOT `-shared' on this 622272313efbSmrg # platform. 622372313efbSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 622472313efbSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 622572313efbSmrg $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 622672313efbSmrg 622772313efbSmrg # Commands to make compiler produce verbose output that lists 622872313efbSmrg # what "hidden" libraries, object files and flags are used when 622972313efbSmrg # linking a shared library. 623072313efbSmrg output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' 623172313efbSmrg fi 623272313efbSmrg 623372313efbSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' 623472313efbSmrg case $host_os in 623572313efbSmrg solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 623672313efbSmrg *) 623772313efbSmrg _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 623872313efbSmrg ;; 623972313efbSmrg esac 624072313efbSmrg fi 6241bdcaa8d0Smrg ;; 624272313efbSmrg esac 624372313efbSmrg ;; 624472313efbSmrg 624572313efbSmrg sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) 624672313efbSmrg _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' 624772313efbSmrg _LT_TAGVAR(archive_cmds_need_lc, $1)=no 624872313efbSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 624972313efbSmrg runpath_var='LD_RUN_PATH' 625072313efbSmrg 625172313efbSmrg case $cc_basename in 625272313efbSmrg CC*) 625372313efbSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 625472313efbSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 625572313efbSmrg ;; 625672313efbSmrg *) 625772313efbSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 625872313efbSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 625972313efbSmrg ;; 626072313efbSmrg esac 626172313efbSmrg ;; 626272313efbSmrg 626372313efbSmrg sysv5* | sco3.2v5* | sco5v6*) 626472313efbSmrg # Note: We can NOT use -z defs as we might desire, because we do not 626572313efbSmrg # link with -lc, and that would cause any symbols used from libc to 626672313efbSmrg # always be unresolved, which means just about no library would 626772313efbSmrg # ever link correctly. If we're not using GNU ld we use -z text 626872313efbSmrg # though, which does catch some bad symbols but isn't as heavy-handed 626972313efbSmrg # as -z defs. 627072313efbSmrg _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' 627172313efbSmrg _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' 627272313efbSmrg _LT_TAGVAR(archive_cmds_need_lc, $1)=no 627372313efbSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 627472313efbSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir' 627572313efbSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 627672313efbSmrg _LT_TAGVAR(link_all_deplibs, $1)=yes 627772313efbSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' 627872313efbSmrg runpath_var='LD_RUN_PATH' 627972313efbSmrg 6280bdcaa8d0Smrg case $cc_basename in 628172313efbSmrg CC*) 628272313efbSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 628372313efbSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6284bdcaa8d0Smrg ;; 6285bdcaa8d0Smrg *) 628672313efbSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 628772313efbSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6288bdcaa8d0Smrg ;; 6289bdcaa8d0Smrg esac 629072313efbSmrg ;; 629172313efbSmrg 6292bdcaa8d0Smrg tandem*) 629372313efbSmrg case $cc_basename in 629472313efbSmrg NCC*) 6295bdcaa8d0Smrg # NonStop-UX NCC 3.20 629672313efbSmrg # FIXME: insert proper C++ library support 629772313efbSmrg _LT_TAGVAR(ld_shlibs, $1)=no 6298bdcaa8d0Smrg ;; 629972313efbSmrg *) 630072313efbSmrg # FIXME: insert proper C++ library support 630172313efbSmrg _LT_TAGVAR(ld_shlibs, $1)=no 6302bdcaa8d0Smrg ;; 630372313efbSmrg esac 630472313efbSmrg ;; 630572313efbSmrg 6306bdcaa8d0Smrg vxworks*) 630772313efbSmrg # FIXME: insert proper C++ library support 630872313efbSmrg _LT_TAGVAR(ld_shlibs, $1)=no 630972313efbSmrg ;; 631072313efbSmrg 6311bdcaa8d0Smrg *) 631272313efbSmrg # FIXME: insert proper C++ library support 631372313efbSmrg _LT_TAGVAR(ld_shlibs, $1)=no 631472313efbSmrg ;; 6315bdcaa8d0Smrg esac 6316bdcaa8d0Smrg 631772313efbSmrg AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) 631872313efbSmrg test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no 631972313efbSmrg 632072313efbSmrg _LT_TAGVAR(GCC, $1)="$GXX" 632172313efbSmrg _LT_TAGVAR(LD, $1)="$LD" 632272313efbSmrg 632372313efbSmrg ## CAVEAT EMPTOR: 632472313efbSmrg ## There is no encapsulation within the following macros, do not change 632572313efbSmrg ## the running order or otherwise move them around unless you know exactly 632672313efbSmrg ## what you are doing... 632772313efbSmrg _LT_SYS_HIDDEN_LIBDEPS($1) 632872313efbSmrg _LT_COMPILER_PIC($1) 632972313efbSmrg _LT_COMPILER_C_O($1) 633072313efbSmrg _LT_COMPILER_FILE_LOCKS($1) 633172313efbSmrg _LT_LINKER_SHLIBS($1) 633272313efbSmrg _LT_SYS_DYNAMIC_LINKER($1) 633372313efbSmrg _LT_LINKER_HARDCODE_LIBPATH($1) 633472313efbSmrg 633572313efbSmrg _LT_CONFIG($1) 633672313efbSmrg fi # test -n "$compiler" 633772313efbSmrg 633872313efbSmrg CC=$lt_save_CC 633972313efbSmrg LDCXX=$LD 634072313efbSmrg LD=$lt_save_LD 634172313efbSmrg GCC=$lt_save_GCC 634272313efbSmrg with_gnu_ld=$lt_save_with_gnu_ld 634372313efbSmrg lt_cv_path_LDCXX=$lt_cv_path_LD 634472313efbSmrg lt_cv_path_LD=$lt_save_path_LD 634572313efbSmrg lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 634672313efbSmrg lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 634772313efbSmrgfi # test "$_lt_caught_CXX_error" != yes 6348bdcaa8d0Smrg 634972313efbSmrgAC_LANG_POP 635072313efbSmrg])# _LT_LANG_CXX_CONFIG 6351bdcaa8d0Smrg 6352bdcaa8d0Smrg 635372313efbSmrg# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME]) 635472313efbSmrg# --------------------------------- 635572313efbSmrg# Figure out "hidden" library dependencies from verbose 635672313efbSmrg# compiler output when linking a shared library. 635772313efbSmrg# Parse the compiler output and extract the necessary 635872313efbSmrg# objects, libraries and library flags. 635972313efbSmrgm4_defun([_LT_SYS_HIDDEN_LIBDEPS], 636072313efbSmrg[m4_require([_LT_FILEUTILS_DEFAULTS])dnl 636172313efbSmrg# Dependencies to place before and after the object being linked: 636272313efbSmrg_LT_TAGVAR(predep_objects, $1)= 636372313efbSmrg_LT_TAGVAR(postdep_objects, $1)= 636472313efbSmrg_LT_TAGVAR(predeps, $1)= 636572313efbSmrg_LT_TAGVAR(postdeps, $1)= 636672313efbSmrg_LT_TAGVAR(compiler_lib_search_path, $1)= 6367bdcaa8d0Smrg 636872313efbSmrgdnl we can't use the lt_simple_compile_test_code here, 636972313efbSmrgdnl because it contains code intended for an executable, 637072313efbSmrgdnl not a library. It's possible we should let each 637172313efbSmrgdnl tag define a new lt_????_link_test_code variable, 637272313efbSmrgdnl but it's only used here... 637372313efbSmrgm4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF 637472313efbSmrgint a; 637572313efbSmrgvoid foo (void) { a = 0; } 637672313efbSmrg_LT_EOF 637772313efbSmrg], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF 637872313efbSmrgclass Foo 637972313efbSmrg{ 638072313efbSmrgpublic: 638172313efbSmrg Foo (void) { a = 0; } 638272313efbSmrgprivate: 638372313efbSmrg int a; 638472313efbSmrg}; 638572313efbSmrg_LT_EOF 638672313efbSmrg], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF 638772313efbSmrg subroutine foo 638872313efbSmrg implicit none 638972313efbSmrg integer*4 a 639072313efbSmrg a=0 639172313efbSmrg return 639272313efbSmrg end 639372313efbSmrg_LT_EOF 639472313efbSmrg], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF 639572313efbSmrg subroutine foo 639672313efbSmrg implicit none 639772313efbSmrg integer a 639872313efbSmrg a=0 639972313efbSmrg return 640072313efbSmrg end 640172313efbSmrg_LT_EOF 640272313efbSmrg], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF 640372313efbSmrgpublic class foo { 640472313efbSmrg private int a; 640572313efbSmrg public void bar (void) { 640672313efbSmrg a = 0; 640772313efbSmrg } 640872313efbSmrg}; 640972313efbSmrg_LT_EOF 641072313efbSmrg]) 641172313efbSmrgdnl Parse the compiler output and extract the necessary 641272313efbSmrgdnl objects, libraries and library flags. 641372313efbSmrgif AC_TRY_EVAL(ac_compile); then 641472313efbSmrg # Parse the compiler output and extract the necessary 641572313efbSmrg # objects, libraries and library flags. 6416bdcaa8d0Smrg 641772313efbSmrg # Sentinel used to keep track of whether or not we are before 641872313efbSmrg # the conftest object file. 641972313efbSmrg pre_test_object_deps_done=no 6420bdcaa8d0Smrg 642172313efbSmrg for p in `eval "$output_verbose_link_cmd"`; do 642272313efbSmrg case $p in 6423bdcaa8d0Smrg 642472313efbSmrg -L* | -R* | -l*) 642572313efbSmrg # Some compilers place space between "-{L,R}" and the path. 642672313efbSmrg # Remove the space. 642772313efbSmrg if test $p = "-L" || 642872313efbSmrg test $p = "-R"; then 642972313efbSmrg prev=$p 643072313efbSmrg continue 643172313efbSmrg else 643272313efbSmrg prev= 643372313efbSmrg fi 6434bdcaa8d0Smrg 643572313efbSmrg if test "$pre_test_object_deps_done" = no; then 643672313efbSmrg case $p in 643772313efbSmrg -L* | -R*) 643872313efbSmrg # Internal compiler library paths should come after those 643972313efbSmrg # provided the user. The postdeps already come after the 644072313efbSmrg # user supplied libs so there is no need to process them. 644172313efbSmrg if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then 644272313efbSmrg _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}" 644372313efbSmrg else 644472313efbSmrg _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}" 644572313efbSmrg fi 644672313efbSmrg ;; 644772313efbSmrg # The "-l" case would never come before the object being 644872313efbSmrg # linked, so don't bother handling this case. 644972313efbSmrg esac 645072313efbSmrg else 645172313efbSmrg if test -z "$_LT_TAGVAR(postdeps, $1)"; then 645272313efbSmrg _LT_TAGVAR(postdeps, $1)="${prev}${p}" 645372313efbSmrg else 645472313efbSmrg _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}" 645572313efbSmrg fi 645672313efbSmrg fi 645772313efbSmrg ;; 645872313efbSmrg 645972313efbSmrg *.$objext) 646072313efbSmrg # This assumes that the test object file only shows up 646172313efbSmrg # once in the compiler output. 646272313efbSmrg if test "$p" = "conftest.$objext"; then 646372313efbSmrg pre_test_object_deps_done=yes 646472313efbSmrg continue 646572313efbSmrg fi 646672313efbSmrg 646772313efbSmrg if test "$pre_test_object_deps_done" = no; then 646872313efbSmrg if test -z "$_LT_TAGVAR(predep_objects, $1)"; then 646972313efbSmrg _LT_TAGVAR(predep_objects, $1)="$p" 647072313efbSmrg else 647172313efbSmrg _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p" 647272313efbSmrg fi 647372313efbSmrg else 647472313efbSmrg if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then 647572313efbSmrg _LT_TAGVAR(postdep_objects, $1)="$p" 647672313efbSmrg else 647772313efbSmrg _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p" 647872313efbSmrg fi 647972313efbSmrg fi 648072313efbSmrg ;; 648172313efbSmrg 648272313efbSmrg *) ;; # Ignore the rest. 648372313efbSmrg 648472313efbSmrg esac 648572313efbSmrg done 648672313efbSmrg 648772313efbSmrg # Clean up. 648872313efbSmrg rm -f a.out a.exe 648972313efbSmrgelse 649072313efbSmrg echo "libtool.m4: error: problem compiling $1 test program" 649172313efbSmrgfi 649272313efbSmrg 649372313efbSmrg$RM -f confest.$objext 649472313efbSmrg 649572313efbSmrg# PORTME: override above test on systems where it is broken 649672313efbSmrgm4_if([$1], [CXX], 649772313efbSmrg[case $host_os in 649872313efbSmrginterix[[3-9]]*) 649972313efbSmrg # Interix 3.5 installs completely hosed .la files for C++, so rather than 650072313efbSmrg # hack all around it, let's just trust "g++" to DTRT. 650172313efbSmrg _LT_TAGVAR(predep_objects,$1)= 650272313efbSmrg _LT_TAGVAR(postdep_objects,$1)= 650372313efbSmrg _LT_TAGVAR(postdeps,$1)= 650472313efbSmrg ;; 650572313efbSmrg 650672313efbSmrglinux*) 650772313efbSmrg case `$CC -V 2>&1 | sed 5q` in 650872313efbSmrg *Sun\ C*) 650972313efbSmrg # Sun C++ 5.9 651072313efbSmrg 651172313efbSmrg # The more standards-conforming stlport4 library is 651272313efbSmrg # incompatible with the Cstd library. Avoid specifying 651372313efbSmrg # it if it's in CXXFLAGS. Ignore libCrun as 651472313efbSmrg # -library=stlport4 depends on it. 651572313efbSmrg case " $CXX $CXXFLAGS " in 651672313efbSmrg *" -library=stlport4 "*) 651772313efbSmrg solaris_use_stlport4=yes 6518bdcaa8d0Smrg ;; 651972313efbSmrg esac 6520bdcaa8d0Smrg 652172313efbSmrg if test "$solaris_use_stlport4" != yes; then 652272313efbSmrg _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' 652372313efbSmrg fi 652472313efbSmrg ;; 652572313efbSmrg esac 652672313efbSmrg ;; 652772313efbSmrg 652872313efbSmrgsolaris*) 652972313efbSmrg case $cc_basename in 653072313efbSmrg CC*) 653172313efbSmrg # The more standards-conforming stlport4 library is 653272313efbSmrg # incompatible with the Cstd library. Avoid specifying 653372313efbSmrg # it if it's in CXXFLAGS. Ignore libCrun as 653472313efbSmrg # -library=stlport4 depends on it. 653572313efbSmrg case " $CXX $CXXFLAGS " in 653672313efbSmrg *" -library=stlport4 "*) 653772313efbSmrg solaris_use_stlport4=yes 6538bdcaa8d0Smrg ;; 6539bdcaa8d0Smrg esac 654072313efbSmrg 654172313efbSmrg # Adding this requires a known-good setup of shared libraries for 654272313efbSmrg # Sun compiler versions before 5.6, else PIC objects from an old 654372313efbSmrg # archive will be linked into the output, leading to subtle bugs. 654472313efbSmrg if test "$solaris_use_stlport4" != yes; then 654572313efbSmrg _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' 654672313efbSmrg fi 654772313efbSmrg ;; 654872313efbSmrg esac 654972313efbSmrg ;; 655072313efbSmrgesac 655172313efbSmrg]) 655272313efbSmrg 655372313efbSmrgcase " $_LT_TAGVAR(postdeps, $1) " in 655472313efbSmrg*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;; 655572313efbSmrgesac 655672313efbSmrg _LT_TAGVAR(compiler_lib_search_dirs, $1)= 655772313efbSmrgif test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then 655872313efbSmrg _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 655972313efbSmrgfi 656072313efbSmrg_LT_TAGDECL([], [compiler_lib_search_dirs], [1], 656172313efbSmrg [The directories searched by this compiler when creating a shared library]) 656272313efbSmrg_LT_TAGDECL([], [predep_objects], [1], 656372313efbSmrg [Dependencies to place before and after the objects being linked to 656472313efbSmrg create a shared library]) 656572313efbSmrg_LT_TAGDECL([], [postdep_objects], [1]) 656672313efbSmrg_LT_TAGDECL([], [predeps], [1]) 656772313efbSmrg_LT_TAGDECL([], [postdeps], [1]) 656872313efbSmrg_LT_TAGDECL([], [compiler_lib_search_path], [1], 656972313efbSmrg [The library search path used internally by the compiler when linking 657072313efbSmrg a shared library]) 657172313efbSmrg])# _LT_SYS_HIDDEN_LIBDEPS 657272313efbSmrg 657372313efbSmrg 657472313efbSmrg# _LT_PROG_F77 657572313efbSmrg# ------------ 657672313efbSmrg# Since AC_PROG_F77 is broken, in that it returns the empty string 657772313efbSmrg# if there is no fortran compiler, we have our own version here. 657872313efbSmrgm4_defun([_LT_PROG_F77], 657972313efbSmrg[ 658072313efbSmrgpushdef([AC_MSG_ERROR], [_lt_disable_F77=yes]) 658172313efbSmrgAC_PROG_F77 658272313efbSmrgif test -z "$F77" || test "X$F77" = "Xno"; then 658372313efbSmrg _lt_disable_F77=yes 658472313efbSmrgfi 658572313efbSmrgpopdef([AC_MSG_ERROR]) 658672313efbSmrg])# _LT_PROG_F77 658772313efbSmrg 658872313efbSmrgdnl aclocal-1.4 backwards compatibility: 658972313efbSmrgdnl AC_DEFUN([_LT_PROG_F77], []) 659072313efbSmrg 659172313efbSmrg 659272313efbSmrg# _LT_LANG_F77_CONFIG([TAG]) 659372313efbSmrg# -------------------------- 659472313efbSmrg# Ensure that the configuration variables for a Fortran 77 compiler are 659572313efbSmrg# suitably defined. These variables are subsequently used by _LT_CONFIG 659672313efbSmrg# to write the compiler configuration to `libtool'. 659772313efbSmrgm4_defun([_LT_LANG_F77_CONFIG], 659872313efbSmrg[AC_REQUIRE([_LT_PROG_F77])dnl 659972313efbSmrgAC_LANG_PUSH(Fortran 77) 660072313efbSmrg 660172313efbSmrg_LT_TAGVAR(archive_cmds_need_lc, $1)=no 660272313efbSmrg_LT_TAGVAR(allow_undefined_flag, $1)= 660372313efbSmrg_LT_TAGVAR(always_export_symbols, $1)=no 660472313efbSmrg_LT_TAGVAR(archive_expsym_cmds, $1)= 660572313efbSmrg_LT_TAGVAR(export_dynamic_flag_spec, $1)= 660672313efbSmrg_LT_TAGVAR(hardcode_direct, $1)=no 660772313efbSmrg_LT_TAGVAR(hardcode_direct_absolute, $1)=no 660872313efbSmrg_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 660972313efbSmrg_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= 661072313efbSmrg_LT_TAGVAR(hardcode_libdir_separator, $1)= 661172313efbSmrg_LT_TAGVAR(hardcode_minus_L, $1)=no 661272313efbSmrg_LT_TAGVAR(hardcode_automatic, $1)=no 661372313efbSmrg_LT_TAGVAR(inherit_rpath, $1)=no 661472313efbSmrg_LT_TAGVAR(module_cmds, $1)= 661572313efbSmrg_LT_TAGVAR(module_expsym_cmds, $1)= 661672313efbSmrg_LT_TAGVAR(link_all_deplibs, $1)=unknown 661772313efbSmrg_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 661872313efbSmrg_LT_TAGVAR(no_undefined_flag, $1)= 661972313efbSmrg_LT_TAGVAR(whole_archive_flag_spec, $1)= 662072313efbSmrg_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no 662172313efbSmrg 662272313efbSmrg# Source file extension for f77 test sources. 662372313efbSmrgac_ext=f 662472313efbSmrg 662572313efbSmrg# Object file extension for compiled f77 test sources. 662672313efbSmrgobjext=o 662772313efbSmrg_LT_TAGVAR(objext, $1)=$objext 662872313efbSmrg 662972313efbSmrg# No sense in running all these tests if we already determined that 663072313efbSmrg# the F77 compiler isn't working. Some variables (like enable_shared) 663172313efbSmrg# are currently assumed to apply to all compilers on this platform, 663272313efbSmrg# and will be corrupted by setting them based on a non-working compiler. 663372313efbSmrgif test "$_lt_disable_F77" != yes; then 663472313efbSmrg # Code to be used in simple compile tests 663572313efbSmrg lt_simple_compile_test_code="\ 663672313efbSmrg subroutine t 663772313efbSmrg return 663872313efbSmrg end 663972313efbSmrg" 664072313efbSmrg 664172313efbSmrg # Code to be used in simple link tests 664272313efbSmrg lt_simple_link_test_code="\ 664372313efbSmrg program t 664472313efbSmrg end 664572313efbSmrg" 664672313efbSmrg 664772313efbSmrg # ltmain only uses $CC for tagged configurations so make sure $CC is set. 664872313efbSmrg _LT_TAG_COMPILER 664972313efbSmrg 665072313efbSmrg # save warnings/boilerplate of simple test code 665172313efbSmrg _LT_COMPILER_BOILERPLATE 665272313efbSmrg _LT_LINKER_BOILERPLATE 665372313efbSmrg 665472313efbSmrg # Allow CC to be a program name with arguments. 665572313efbSmrg lt_save_CC="$CC" 665672313efbSmrg lt_save_GCC=$GCC 665772313efbSmrg CC=${F77-"f77"} 665872313efbSmrg compiler=$CC 665972313efbSmrg _LT_TAGVAR(compiler, $1)=$CC 666072313efbSmrg _LT_CC_BASENAME([$compiler]) 666172313efbSmrg GCC=$G77 666272313efbSmrg if test -n "$compiler"; then 666372313efbSmrg AC_MSG_CHECKING([if libtool supports shared libraries]) 666472313efbSmrg AC_MSG_RESULT([$can_build_shared]) 666572313efbSmrg 666672313efbSmrg AC_MSG_CHECKING([whether to build shared libraries]) 666772313efbSmrg test "$can_build_shared" = "no" && enable_shared=no 666872313efbSmrg 666972313efbSmrg # On AIX, shared libraries and static libraries use the same namespace, and 667072313efbSmrg # are all built from PIC. 6671bdcaa8d0Smrg case $host_os in 667272313efbSmrg aix3*) 667372313efbSmrg test "$enable_shared" = yes && enable_static=no 667472313efbSmrg if test -n "$RANLIB"; then 667572313efbSmrg archive_cmds="$archive_cmds~\$RANLIB \$lib" 667672313efbSmrg postinstall_cmds='$RANLIB $lib' 667772313efbSmrg fi 667872313efbSmrg ;; 667972313efbSmrg aix[[4-9]]*) 668072313efbSmrg if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 668172313efbSmrg test "$enable_shared" = yes && enable_static=no 668272313efbSmrg fi 668372313efbSmrg ;; 668472313efbSmrg esac 668572313efbSmrg AC_MSG_RESULT([$enable_shared]) 668672313efbSmrg 668772313efbSmrg AC_MSG_CHECKING([whether to build static libraries]) 668872313efbSmrg # Make sure either enable_shared or enable_static is yes. 668972313efbSmrg test "$enable_shared" = yes || enable_static=yes 669072313efbSmrg AC_MSG_RESULT([$enable_static]) 669172313efbSmrg 669272313efbSmrg _LT_TAGVAR(GCC, $1)="$G77" 669372313efbSmrg _LT_TAGVAR(LD, $1)="$LD" 669472313efbSmrg 669572313efbSmrg ## CAVEAT EMPTOR: 669672313efbSmrg ## There is no encapsulation within the following macros, do not change 669772313efbSmrg ## the running order or otherwise move them around unless you know exactly 669872313efbSmrg ## what you are doing... 669972313efbSmrg _LT_COMPILER_PIC($1) 670072313efbSmrg _LT_COMPILER_C_O($1) 670172313efbSmrg _LT_COMPILER_FILE_LOCKS($1) 670272313efbSmrg _LT_LINKER_SHLIBS($1) 670372313efbSmrg _LT_SYS_DYNAMIC_LINKER($1) 670472313efbSmrg _LT_LINKER_HARDCODE_LIBPATH($1) 670572313efbSmrg 670672313efbSmrg _LT_CONFIG($1) 670772313efbSmrg fi # test -n "$compiler" 670872313efbSmrg 670972313efbSmrg GCC=$lt_save_GCC 671072313efbSmrg CC="$lt_save_CC" 671172313efbSmrgfi # test "$_lt_disable_F77" != yes 671272313efbSmrg 671372313efbSmrgAC_LANG_POP 671472313efbSmrg])# _LT_LANG_F77_CONFIG 671572313efbSmrg 671672313efbSmrg 671772313efbSmrg# _LT_PROG_FC 671872313efbSmrg# ----------- 671972313efbSmrg# Since AC_PROG_FC is broken, in that it returns the empty string 672072313efbSmrg# if there is no fortran compiler, we have our own version here. 672172313efbSmrgm4_defun([_LT_PROG_FC], 672272313efbSmrg[ 672372313efbSmrgpushdef([AC_MSG_ERROR], [_lt_disable_FC=yes]) 672472313efbSmrgAC_PROG_FC 672572313efbSmrgif test -z "$FC" || test "X$FC" = "Xno"; then 672672313efbSmrg _lt_disable_FC=yes 672772313efbSmrgfi 672872313efbSmrgpopdef([AC_MSG_ERROR]) 672972313efbSmrg])# _LT_PROG_FC 673072313efbSmrg 673172313efbSmrgdnl aclocal-1.4 backwards compatibility: 673272313efbSmrgdnl AC_DEFUN([_LT_PROG_FC], []) 673372313efbSmrg 673472313efbSmrg 673572313efbSmrg# _LT_LANG_FC_CONFIG([TAG]) 673672313efbSmrg# ------------------------- 673772313efbSmrg# Ensure that the configuration variables for a Fortran compiler are 673872313efbSmrg# suitably defined. These variables are subsequently used by _LT_CONFIG 673972313efbSmrg# to write the compiler configuration to `libtool'. 674072313efbSmrgm4_defun([_LT_LANG_FC_CONFIG], 674172313efbSmrg[AC_REQUIRE([_LT_PROG_FC])dnl 674272313efbSmrgAC_LANG_PUSH(Fortran) 674372313efbSmrg 674472313efbSmrg_LT_TAGVAR(archive_cmds_need_lc, $1)=no 674572313efbSmrg_LT_TAGVAR(allow_undefined_flag, $1)= 674672313efbSmrg_LT_TAGVAR(always_export_symbols, $1)=no 674772313efbSmrg_LT_TAGVAR(archive_expsym_cmds, $1)= 674872313efbSmrg_LT_TAGVAR(export_dynamic_flag_spec, $1)= 674972313efbSmrg_LT_TAGVAR(hardcode_direct, $1)=no 675072313efbSmrg_LT_TAGVAR(hardcode_direct_absolute, $1)=no 675172313efbSmrg_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 675272313efbSmrg_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= 675372313efbSmrg_LT_TAGVAR(hardcode_libdir_separator, $1)= 675472313efbSmrg_LT_TAGVAR(hardcode_minus_L, $1)=no 675572313efbSmrg_LT_TAGVAR(hardcode_automatic, $1)=no 675672313efbSmrg_LT_TAGVAR(inherit_rpath, $1)=no 675772313efbSmrg_LT_TAGVAR(module_cmds, $1)= 675872313efbSmrg_LT_TAGVAR(module_expsym_cmds, $1)= 675972313efbSmrg_LT_TAGVAR(link_all_deplibs, $1)=unknown 676072313efbSmrg_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 676172313efbSmrg_LT_TAGVAR(no_undefined_flag, $1)= 676272313efbSmrg_LT_TAGVAR(whole_archive_flag_spec, $1)= 676372313efbSmrg_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no 676472313efbSmrg 676572313efbSmrg# Source file extension for fc test sources. 676672313efbSmrgac_ext=${ac_fc_srcext-f} 676772313efbSmrg 676872313efbSmrg# Object file extension for compiled fc test sources. 676972313efbSmrgobjext=o 677072313efbSmrg_LT_TAGVAR(objext, $1)=$objext 677172313efbSmrg 677272313efbSmrg# No sense in running all these tests if we already determined that 677372313efbSmrg# the FC compiler isn't working. Some variables (like enable_shared) 677472313efbSmrg# are currently assumed to apply to all compilers on this platform, 677572313efbSmrg# and will be corrupted by setting them based on a non-working compiler. 677672313efbSmrgif test "$_lt_disable_FC" != yes; then 677772313efbSmrg # Code to be used in simple compile tests 677872313efbSmrg lt_simple_compile_test_code="\ 677972313efbSmrg subroutine t 678072313efbSmrg return 678172313efbSmrg end 678272313efbSmrg" 678372313efbSmrg 678472313efbSmrg # Code to be used in simple link tests 678572313efbSmrg lt_simple_link_test_code="\ 678672313efbSmrg program t 678772313efbSmrg end 678872313efbSmrg" 678972313efbSmrg 679072313efbSmrg # ltmain only uses $CC for tagged configurations so make sure $CC is set. 679172313efbSmrg _LT_TAG_COMPILER 679272313efbSmrg 679372313efbSmrg # save warnings/boilerplate of simple test code 679472313efbSmrg _LT_COMPILER_BOILERPLATE 679572313efbSmrg _LT_LINKER_BOILERPLATE 679672313efbSmrg 679772313efbSmrg # Allow CC to be a program name with arguments. 679872313efbSmrg lt_save_CC="$CC" 679972313efbSmrg lt_save_GCC=$GCC 680072313efbSmrg CC=${FC-"f95"} 680172313efbSmrg compiler=$CC 680272313efbSmrg GCC=$ac_cv_fc_compiler_gnu 680372313efbSmrg 680472313efbSmrg _LT_TAGVAR(compiler, $1)=$CC 680572313efbSmrg _LT_CC_BASENAME([$compiler]) 680672313efbSmrg 680772313efbSmrg if test -n "$compiler"; then 680872313efbSmrg AC_MSG_CHECKING([if libtool supports shared libraries]) 680972313efbSmrg AC_MSG_RESULT([$can_build_shared]) 681072313efbSmrg 681172313efbSmrg AC_MSG_CHECKING([whether to build shared libraries]) 681272313efbSmrg test "$can_build_shared" = "no" && enable_shared=no 681372313efbSmrg 681472313efbSmrg # On AIX, shared libraries and static libraries use the same namespace, and 681572313efbSmrg # are all built from PIC. 681672313efbSmrg case $host_os in 681772313efbSmrg aix3*) 681872313efbSmrg test "$enable_shared" = yes && enable_static=no 681972313efbSmrg if test -n "$RANLIB"; then 682072313efbSmrg archive_cmds="$archive_cmds~\$RANLIB \$lib" 682172313efbSmrg postinstall_cmds='$RANLIB $lib' 682272313efbSmrg fi 682372313efbSmrg ;; 682472313efbSmrg aix[[4-9]]*) 682572313efbSmrg if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 682672313efbSmrg test "$enable_shared" = yes && enable_static=no 682772313efbSmrg fi 682872313efbSmrg ;; 682972313efbSmrg esac 683072313efbSmrg AC_MSG_RESULT([$enable_shared]) 683172313efbSmrg 683272313efbSmrg AC_MSG_CHECKING([whether to build static libraries]) 683372313efbSmrg # Make sure either enable_shared or enable_static is yes. 683472313efbSmrg test "$enable_shared" = yes || enable_static=yes 683572313efbSmrg AC_MSG_RESULT([$enable_static]) 683672313efbSmrg 683772313efbSmrg _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu" 683872313efbSmrg _LT_TAGVAR(LD, $1)="$LD" 683972313efbSmrg 684072313efbSmrg ## CAVEAT EMPTOR: 684172313efbSmrg ## There is no encapsulation within the following macros, do not change 684272313efbSmrg ## the running order or otherwise move them around unless you know exactly 684372313efbSmrg ## what you are doing... 684472313efbSmrg _LT_SYS_HIDDEN_LIBDEPS($1) 684572313efbSmrg _LT_COMPILER_PIC($1) 684672313efbSmrg _LT_COMPILER_C_O($1) 684772313efbSmrg _LT_COMPILER_FILE_LOCKS($1) 684872313efbSmrg _LT_LINKER_SHLIBS($1) 684972313efbSmrg _LT_SYS_DYNAMIC_LINKER($1) 685072313efbSmrg _LT_LINKER_HARDCODE_LIBPATH($1) 685172313efbSmrg 685272313efbSmrg _LT_CONFIG($1) 685372313efbSmrg fi # test -n "$compiler" 685472313efbSmrg 685572313efbSmrg GCC=$lt_save_GCC 685672313efbSmrg CC="$lt_save_CC" 685772313efbSmrgfi # test "$_lt_disable_FC" != yes 685872313efbSmrg 685972313efbSmrgAC_LANG_POP 686072313efbSmrg])# _LT_LANG_FC_CONFIG 686172313efbSmrg 686272313efbSmrg 686372313efbSmrg# _LT_LANG_GCJ_CONFIG([TAG]) 686472313efbSmrg# -------------------------- 686572313efbSmrg# Ensure that the configuration variables for the GNU Java Compiler compiler 686672313efbSmrg# are suitably defined. These variables are subsequently used by _LT_CONFIG 686772313efbSmrg# to write the compiler configuration to `libtool'. 686872313efbSmrgm4_defun([_LT_LANG_GCJ_CONFIG], 686972313efbSmrg[AC_REQUIRE([LT_PROG_GCJ])dnl 687072313efbSmrgAC_LANG_SAVE 687172313efbSmrg 687272313efbSmrg# Source file extension for Java test sources. 687372313efbSmrgac_ext=java 687472313efbSmrg 687572313efbSmrg# Object file extension for compiled Java test sources. 687672313efbSmrgobjext=o 687772313efbSmrg_LT_TAGVAR(objext, $1)=$objext 687872313efbSmrg 687972313efbSmrg# Code to be used in simple compile tests 688072313efbSmrglt_simple_compile_test_code="class foo {}" 688172313efbSmrg 688272313efbSmrg# Code to be used in simple link tests 688372313efbSmrglt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }' 688472313efbSmrg 688572313efbSmrg# ltmain only uses $CC for tagged configurations so make sure $CC is set. 688672313efbSmrg_LT_TAG_COMPILER 688772313efbSmrg 688872313efbSmrg# save warnings/boilerplate of simple test code 688972313efbSmrg_LT_COMPILER_BOILERPLATE 689072313efbSmrg_LT_LINKER_BOILERPLATE 689172313efbSmrg 689272313efbSmrg# Allow CC to be a program name with arguments. 689372313efbSmrglt_save_CC="$CC" 689472313efbSmrglt_save_GCC=$GCC 689572313efbSmrgGCC=yes 689672313efbSmrgCC=${GCJ-"gcj"} 689772313efbSmrgcompiler=$CC 689872313efbSmrg_LT_TAGVAR(compiler, $1)=$CC 689972313efbSmrg_LT_TAGVAR(LD, $1)="$LD" 690072313efbSmrg_LT_CC_BASENAME([$compiler]) 690172313efbSmrg 690272313efbSmrg# GCJ did not exist at the time GCC didn't implicitly link libc in. 690372313efbSmrg_LT_TAGVAR(archive_cmds_need_lc, $1)=no 690472313efbSmrg 690572313efbSmrg_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 690672313efbSmrg 690772313efbSmrgif test -n "$compiler"; then 690872313efbSmrg _LT_COMPILER_NO_RTTI($1) 690972313efbSmrg _LT_COMPILER_PIC($1) 691072313efbSmrg _LT_COMPILER_C_O($1) 691172313efbSmrg _LT_COMPILER_FILE_LOCKS($1) 691272313efbSmrg _LT_LINKER_SHLIBS($1) 691372313efbSmrg _LT_LINKER_HARDCODE_LIBPATH($1) 691472313efbSmrg 691572313efbSmrg _LT_CONFIG($1) 691672313efbSmrgfi 691772313efbSmrg 691872313efbSmrgAC_LANG_RESTORE 691972313efbSmrg 692072313efbSmrgGCC=$lt_save_GCC 692172313efbSmrgCC="$lt_save_CC" 692272313efbSmrg])# _LT_LANG_GCJ_CONFIG 692372313efbSmrg 692472313efbSmrg 692572313efbSmrg# _LT_LANG_RC_CONFIG([TAG]) 692672313efbSmrg# ------------------------- 692772313efbSmrg# Ensure that the configuration variables for the Windows resource compiler 692872313efbSmrg# are suitably defined. These variables are subsequently used by _LT_CONFIG 692972313efbSmrg# to write the compiler configuration to `libtool'. 693072313efbSmrgm4_defun([_LT_LANG_RC_CONFIG], 693172313efbSmrg[AC_REQUIRE([LT_PROG_RC])dnl 693272313efbSmrgAC_LANG_SAVE 693372313efbSmrg 693472313efbSmrg# Source file extension for RC test sources. 693572313efbSmrgac_ext=rc 693672313efbSmrg 693772313efbSmrg# Object file extension for compiled RC test sources. 693872313efbSmrgobjext=o 693972313efbSmrg_LT_TAGVAR(objext, $1)=$objext 694072313efbSmrg 694172313efbSmrg# Code to be used in simple compile tests 694272313efbSmrglt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' 694372313efbSmrg 694472313efbSmrg# Code to be used in simple link tests 694572313efbSmrglt_simple_link_test_code="$lt_simple_compile_test_code" 694672313efbSmrg 694772313efbSmrg# ltmain only uses $CC for tagged configurations so make sure $CC is set. 694872313efbSmrg_LT_TAG_COMPILER 694972313efbSmrg 695072313efbSmrg# save warnings/boilerplate of simple test code 695172313efbSmrg_LT_COMPILER_BOILERPLATE 695272313efbSmrg_LT_LINKER_BOILERPLATE 695372313efbSmrg 695472313efbSmrg# Allow CC to be a program name with arguments. 695572313efbSmrglt_save_CC="$CC" 695672313efbSmrglt_save_GCC=$GCC 695772313efbSmrgGCC= 695872313efbSmrgCC=${RC-"windres"} 695972313efbSmrgcompiler=$CC 696072313efbSmrg_LT_TAGVAR(compiler, $1)=$CC 696172313efbSmrg_LT_CC_BASENAME([$compiler]) 696272313efbSmrg_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes 6963bdcaa8d0Smrg 696472313efbSmrgif test -n "$compiler"; then 696572313efbSmrg : 696672313efbSmrg _LT_CONFIG($1) 696772313efbSmrgfi 6968bdcaa8d0Smrg 696972313efbSmrgGCC=$lt_save_GCC 697072313efbSmrgAC_LANG_RESTORE 697172313efbSmrgCC="$lt_save_CC" 697272313efbSmrg])# _LT_LANG_RC_CONFIG 6973bdcaa8d0Smrg 6974bdcaa8d0Smrg 697572313efbSmrg# LT_PROG_GCJ 697672313efbSmrg# ----------- 697772313efbSmrgAC_DEFUN([LT_PROG_GCJ], 697872313efbSmrg[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ], 697972313efbSmrg [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ], 698072313efbSmrg [AC_CHECK_TOOL(GCJ, gcj,) 698172313efbSmrg test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2" 698272313efbSmrg AC_SUBST(GCJFLAGS)])])[]dnl 698372313efbSmrg]) 6984bdcaa8d0Smrg 698572313efbSmrg# Old name: 698672313efbSmrgAU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ]) 698772313efbSmrgdnl aclocal-1.4 backwards compatibility: 698872313efbSmrgdnl AC_DEFUN([LT_AC_PROG_GCJ], []) 6989bdcaa8d0Smrg 6990bdcaa8d0Smrg 699172313efbSmrg# LT_PROG_RC 699272313efbSmrg# ---------- 699372313efbSmrgAC_DEFUN([LT_PROG_RC], 699472313efbSmrg[AC_CHECK_TOOL(RC, windres,) 699572313efbSmrg]) 6996bdcaa8d0Smrg 699772313efbSmrg# Old name: 699872313efbSmrgAU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC]) 699972313efbSmrgdnl aclocal-1.4 backwards compatibility: 700072313efbSmrgdnl AC_DEFUN([LT_AC_PROG_RC], []) 7001bdcaa8d0Smrg 7002bdcaa8d0Smrg 700372313efbSmrg# _LT_DECL_EGREP 700472313efbSmrg# -------------- 700572313efbSmrg# If we don't have a new enough Autoconf to choose the best grep 700672313efbSmrg# available, choose the one first in the user's PATH. 700772313efbSmrgm4_defun([_LT_DECL_EGREP], 700872313efbSmrg[AC_REQUIRE([AC_PROG_EGREP])dnl 700972313efbSmrgAC_REQUIRE([AC_PROG_FGREP])dnl 701072313efbSmrgtest -z "$GREP" && GREP=grep 701172313efbSmrg_LT_DECL([], [GREP], [1], [A grep program that handles long lines]) 701272313efbSmrg_LT_DECL([], [EGREP], [1], [An ERE matcher]) 701372313efbSmrg_LT_DECL([], [FGREP], [1], [A literal string matcher]) 701472313efbSmrgdnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too 701572313efbSmrgAC_SUBST([GREP]) 701672313efbSmrg]) 7017bdcaa8d0Smrg 7018bdcaa8d0Smrg 701972313efbSmrg# _LT_DECL_OBJDUMP 702072313efbSmrg# -------------- 702172313efbSmrg# If we don't have a new enough Autoconf to choose the best objdump 702272313efbSmrg# available, choose the one first in the user's PATH. 702372313efbSmrgm4_defun([_LT_DECL_OBJDUMP], 702472313efbSmrg[AC_CHECK_TOOL(OBJDUMP, objdump, false) 702572313efbSmrgtest -z "$OBJDUMP" && OBJDUMP=objdump 702672313efbSmrg_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper]) 702772313efbSmrgAC_SUBST([OBJDUMP]) 702872313efbSmrg]) 7029bdcaa8d0Smrg 7030bdcaa8d0Smrg 703172313efbSmrg# _LT_DECL_SED 703272313efbSmrg# ------------ 703372313efbSmrg# Check for a fully-functional sed program, that truncates 703472313efbSmrg# as few characters as possible. Prefer GNU sed if found. 703572313efbSmrgm4_defun([_LT_DECL_SED], 703672313efbSmrg[AC_PROG_SED 703772313efbSmrgtest -z "$SED" && SED=sed 703872313efbSmrgXsed="$SED -e 1s/^X//" 703972313efbSmrg_LT_DECL([], [SED], [1], [A sed program that does not truncate output]) 704072313efbSmrg_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"], 704172313efbSmrg [Sed that helps us avoid accidentally triggering echo(1) options like -n]) 704272313efbSmrg])# _LT_DECL_SED 704372313efbSmrg 704472313efbSmrgm4_ifndef([AC_PROG_SED], [ 704572313efbSmrg# NOTE: This macro has been submitted for inclusion into # 704672313efbSmrg# GNU Autoconf as AC_PROG_SED. When it is available in # 704772313efbSmrg# a released version of Autoconf we should remove this # 704872313efbSmrg# macro and use it instead. # 704972313efbSmrg 705072313efbSmrgm4_defun([AC_PROG_SED], 705172313efbSmrg[AC_MSG_CHECKING([for a sed that does not truncate output]) 705272313efbSmrgAC_CACHE_VAL(lt_cv_path_SED, 705372313efbSmrg[# Loop through the user's path and test for sed and gsed. 705472313efbSmrg# Then use that list of sed's as ones to test for truncation. 705572313efbSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 705672313efbSmrgfor as_dir in $PATH 705772313efbSmrgdo 705872313efbSmrg IFS=$as_save_IFS 705972313efbSmrg test -z "$as_dir" && as_dir=. 706072313efbSmrg for lt_ac_prog in sed gsed; do 706172313efbSmrg for ac_exec_ext in '' $ac_executable_extensions; do 706272313efbSmrg if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 706372313efbSmrg lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 706472313efbSmrg fi 706572313efbSmrg done 706672313efbSmrg done 706772313efbSmrgdone 706872313efbSmrgIFS=$as_save_IFS 706972313efbSmrglt_ac_max=0 707072313efbSmrglt_ac_count=0 707172313efbSmrg# Add /usr/xpg4/bin/sed as it is typically found on Solaris 707272313efbSmrg# along with /bin/sed that truncates output. 707372313efbSmrgfor lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 707472313efbSmrg test ! -f $lt_ac_sed && continue 707572313efbSmrg cat /dev/null > conftest.in 707672313efbSmrg lt_ac_count=0 707772313efbSmrg echo $ECHO_N "0123456789$ECHO_C" >conftest.in 707872313efbSmrg # Check for GNU sed and select it if it is found. 707972313efbSmrg if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 708072313efbSmrg lt_cv_path_SED=$lt_ac_sed 708172313efbSmrg break 7082bdcaa8d0Smrg fi 708372313efbSmrg while true; do 708472313efbSmrg cat conftest.in conftest.in >conftest.tmp 708572313efbSmrg mv conftest.tmp conftest.in 708672313efbSmrg cp conftest.in conftest.nl 708772313efbSmrg echo >>conftest.nl 708872313efbSmrg $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 708972313efbSmrg cmp -s conftest.out conftest.nl || break 709072313efbSmrg # 10000 chars as input seems more than enough 709172313efbSmrg test $lt_ac_count -gt 10 && break 709272313efbSmrg lt_ac_count=`expr $lt_ac_count + 1` 709372313efbSmrg if test $lt_ac_count -gt $lt_ac_max; then 709472313efbSmrg lt_ac_max=$lt_ac_count 709572313efbSmrg lt_cv_path_SED=$lt_ac_sed 709672313efbSmrg fi 709772313efbSmrg done 709872313efbSmrgdone 7099bdcaa8d0Smrg]) 710072313efbSmrgSED=$lt_cv_path_SED 710172313efbSmrgAC_SUBST([SED]) 710272313efbSmrgAC_MSG_RESULT([$SED]) 710372313efbSmrg])#AC_PROG_SED 710472313efbSmrg])#m4_ifndef 7105bdcaa8d0Smrg 710672313efbSmrg# Old name: 710772313efbSmrgAU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED]) 710872313efbSmrgdnl aclocal-1.4 backwards compatibility: 710972313efbSmrgdnl AC_DEFUN([LT_AC_PROG_SED], []) 711072313efbSmrg 711172313efbSmrg 711272313efbSmrg# _LT_CHECK_SHELL_FEATURES 711372313efbSmrg# ------------------------ 711472313efbSmrg# Find out whether the shell is Bourne or XSI compatible, 711572313efbSmrg# or has some other useful features. 711672313efbSmrgm4_defun([_LT_CHECK_SHELL_FEATURES], 711772313efbSmrg[AC_MSG_CHECKING([whether the shell understands some XSI constructs]) 711872313efbSmrg# Try some XSI features 711972313efbSmrgxsi_shell=no 712072313efbSmrg( _lt_dummy="a/b/c" 712172313efbSmrg test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 712272313efbSmrg = c,a/b,, \ 712372313efbSmrg && eval 'test $(( 1 + 1 )) -eq 2 \ 712472313efbSmrg && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 712572313efbSmrg && xsi_shell=yes 712672313efbSmrgAC_MSG_RESULT([$xsi_shell]) 712772313efbSmrg_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell']) 712872313efbSmrg 712972313efbSmrgAC_MSG_CHECKING([whether the shell understands "+="]) 713072313efbSmrglt_shell_append=no 713172313efbSmrg( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \ 713272313efbSmrg >/dev/null 2>&1 \ 713372313efbSmrg && lt_shell_append=yes 713472313efbSmrgAC_MSG_RESULT([$lt_shell_append]) 713572313efbSmrg_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append']) 713672313efbSmrg 713772313efbSmrgif ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 713872313efbSmrg lt_unset=unset 713972313efbSmrgelse 714072313efbSmrg lt_unset=false 7141bdcaa8d0Smrgfi 714272313efbSmrg_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl 714372313efbSmrg 714472313efbSmrg# test EBCDIC or ASCII 714572313efbSmrgcase `echo X|tr X '\101'` in 714672313efbSmrg A) # ASCII based system 714772313efbSmrg # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 714872313efbSmrg lt_SP2NL='tr \040 \012' 714972313efbSmrg lt_NL2SP='tr \015\012 \040\040' 715072313efbSmrg ;; 715172313efbSmrg *) # EBCDIC based system 715272313efbSmrg lt_SP2NL='tr \100 \n' 715372313efbSmrg lt_NL2SP='tr \r\n \100\100' 715472313efbSmrg ;; 7155bdcaa8d0Smrgesac 715672313efbSmrg_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl 715772313efbSmrg_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl 715872313efbSmrg])# _LT_CHECK_SHELL_FEATURES 7159bdcaa8d0Smrg 7160bdcaa8d0Smrg 716172313efbSmrg# _LT_PROG_XSI_SHELLFNS 716272313efbSmrg# --------------------- 716372313efbSmrg# Bourne and XSI compatible variants of some useful shell functions. 716472313efbSmrgm4_defun([_LT_PROG_XSI_SHELLFNS], 716572313efbSmrg[case $xsi_shell in 716672313efbSmrg yes) 716772313efbSmrg cat << \_LT_EOF >> "$cfgfile" 716872313efbSmrg 716972313efbSmrg# func_dirname file append nondir_replacement 717072313efbSmrg# Compute the dirname of FILE. If nonempty, add APPEND to the result, 717172313efbSmrg# otherwise set result to NONDIR_REPLACEMENT. 717272313efbSmrgfunc_dirname () 717372313efbSmrg{ 717472313efbSmrg case ${1} in 717572313efbSmrg */*) func_dirname_result="${1%/*}${2}" ;; 717672313efbSmrg * ) func_dirname_result="${3}" ;; 717772313efbSmrg esac 717872313efbSmrg} 717972313efbSmrg 718072313efbSmrg# func_basename file 718172313efbSmrgfunc_basename () 718272313efbSmrg{ 718372313efbSmrg func_basename_result="${1##*/}" 718472313efbSmrg} 7185bdcaa8d0Smrg 718672313efbSmrg# func_dirname_and_basename file append nondir_replacement 718772313efbSmrg# perform func_basename and func_dirname in a single function 718872313efbSmrg# call: 718972313efbSmrg# dirname: Compute the dirname of FILE. If nonempty, 719072313efbSmrg# add APPEND to the result, otherwise set result 719172313efbSmrg# to NONDIR_REPLACEMENT. 719272313efbSmrg# value returned in "$func_dirname_result" 719372313efbSmrg# basename: Compute filename of FILE. 719472313efbSmrg# value retuned in "$func_basename_result" 719572313efbSmrg# Implementation must be kept synchronized with func_dirname 719672313efbSmrg# and func_basename. For efficiency, we do not delegate to 719772313efbSmrg# those functions but instead duplicate the functionality here. 719872313efbSmrgfunc_dirname_and_basename () 719972313efbSmrg{ 720072313efbSmrg case ${1} in 720172313efbSmrg */*) func_dirname_result="${1%/*}${2}" ;; 720272313efbSmrg * ) func_dirname_result="${3}" ;; 7203bdcaa8d0Smrg esac 720472313efbSmrg func_basename_result="${1##*/}" 720572313efbSmrg} 720672313efbSmrg 720772313efbSmrg# func_stripname prefix suffix name 720872313efbSmrg# strip PREFIX and SUFFIX off of NAME. 720972313efbSmrg# PREFIX and SUFFIX must not contain globbing or regex special 721072313efbSmrg# characters, hashes, percent signs, but SUFFIX may contain a leading 721172313efbSmrg# dot (in which case that matches only a dot). 721272313efbSmrgfunc_stripname () 721372313efbSmrg{ 721472313efbSmrg # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 721572313efbSmrg # positional parameters, so assign one to ordinary parameter first. 721672313efbSmrg func_stripname_result=${3} 721772313efbSmrg func_stripname_result=${func_stripname_result#"${1}"} 721872313efbSmrg func_stripname_result=${func_stripname_result%"${2}"} 721972313efbSmrg} 722072313efbSmrg 722172313efbSmrg# func_opt_split 722272313efbSmrgfunc_opt_split () 722372313efbSmrg{ 722472313efbSmrg func_opt_split_opt=${1%%=*} 722572313efbSmrg func_opt_split_arg=${1#*=} 722672313efbSmrg} 722772313efbSmrg 722872313efbSmrg# func_lo2o object 722972313efbSmrgfunc_lo2o () 723072313efbSmrg{ 723172313efbSmrg case ${1} in 723272313efbSmrg *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 723372313efbSmrg *) func_lo2o_result=${1} ;; 7234bdcaa8d0Smrg esac 723572313efbSmrg} 7236bdcaa8d0Smrg 723772313efbSmrg# func_xform libobj-or-source 723872313efbSmrgfunc_xform () 723972313efbSmrg{ 724072313efbSmrg func_xform_result=${1%.*}.lo 724172313efbSmrg} 7242bdcaa8d0Smrg 724372313efbSmrg# func_arith arithmetic-term... 724472313efbSmrgfunc_arith () 724572313efbSmrg{ 724672313efbSmrg func_arith_result=$(( $[*] )) 724772313efbSmrg} 724872313efbSmrg 724972313efbSmrg# func_len string 725072313efbSmrg# STRING may not start with a hyphen. 725172313efbSmrgfunc_len () 725272313efbSmrg{ 725372313efbSmrg func_len_result=${#1} 725472313efbSmrg} 725572313efbSmrg 725672313efbSmrg_LT_EOF 725772313efbSmrg ;; 725872313efbSmrg *) # Bourne compatible functions. 725972313efbSmrg cat << \_LT_EOF >> "$cfgfile" 726072313efbSmrg 726172313efbSmrg# func_dirname file append nondir_replacement 726272313efbSmrg# Compute the dirname of FILE. If nonempty, add APPEND to the result, 726372313efbSmrg# otherwise set result to NONDIR_REPLACEMENT. 726472313efbSmrgfunc_dirname () 726572313efbSmrg{ 726672313efbSmrg # Extract subdirectory from the argument. 726772313efbSmrg func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` 726872313efbSmrg if test "X$func_dirname_result" = "X${1}"; then 726972313efbSmrg func_dirname_result="${3}" 727072313efbSmrg else 727172313efbSmrg func_dirname_result="$func_dirname_result${2}" 727272313efbSmrg fi 727372313efbSmrg} 727472313efbSmrg 727572313efbSmrg# func_basename file 727672313efbSmrgfunc_basename () 727772313efbSmrg{ 727872313efbSmrg func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` 727972313efbSmrg} 728072313efbSmrg 728172313efbSmrgdnl func_dirname_and_basename 728272313efbSmrgdnl A portable version of this function is already defined in general.m4sh 728372313efbSmrgdnl so there is no need for it here. 728472313efbSmrg 728572313efbSmrg# func_stripname prefix suffix name 728672313efbSmrg# strip PREFIX and SUFFIX off of NAME. 728772313efbSmrg# PREFIX and SUFFIX must not contain globbing or regex special 728872313efbSmrg# characters, hashes, percent signs, but SUFFIX may contain a leading 728972313efbSmrg# dot (in which case that matches only a dot). 729072313efbSmrg# func_strip_suffix prefix name 729172313efbSmrgfunc_stripname () 729272313efbSmrg{ 729372313efbSmrg case ${2} in 729472313efbSmrg .*) func_stripname_result=`$ECHO "X${3}" \ 729572313efbSmrg | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; 729672313efbSmrg *) func_stripname_result=`$ECHO "X${3}" \ 729772313efbSmrg | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; 729872313efbSmrg esac 729972313efbSmrg} 7300bdcaa8d0Smrg 730172313efbSmrg# sed scripts: 730272313efbSmrgmy_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q' 730372313efbSmrgmy_sed_long_arg='1s/^-[[^=]]*=//' 7304bdcaa8d0Smrg 730572313efbSmrg# func_opt_split 730672313efbSmrgfunc_opt_split () 730772313efbSmrg{ 730872313efbSmrg func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` 730972313efbSmrg func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` 731072313efbSmrg} 7311bdcaa8d0Smrg 731272313efbSmrg# func_lo2o object 731372313efbSmrgfunc_lo2o () 731472313efbSmrg{ 731572313efbSmrg func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` 731672313efbSmrg} 7317bdcaa8d0Smrg 731872313efbSmrg# func_xform libobj-or-source 731972313efbSmrgfunc_xform () 732072313efbSmrg{ 732172313efbSmrg func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'` 732272313efbSmrg} 7323bdcaa8d0Smrg 732472313efbSmrg# func_arith arithmetic-term... 732572313efbSmrgfunc_arith () 732672313efbSmrg{ 732772313efbSmrg func_arith_result=`expr "$[@]"` 732872313efbSmrg} 7329bdcaa8d0Smrg 733072313efbSmrg# func_len string 733172313efbSmrg# STRING may not start with a hyphen. 733272313efbSmrgfunc_len () 733372313efbSmrg{ 733472313efbSmrg func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len` 733572313efbSmrg} 7336bdcaa8d0Smrg 733772313efbSmrg_LT_EOF 733872313efbSmrgesac 7339bdcaa8d0Smrg 734072313efbSmrgcase $lt_shell_append in 734172313efbSmrg yes) 734272313efbSmrg cat << \_LT_EOF >> "$cfgfile" 7343bdcaa8d0Smrg 734472313efbSmrg# func_append var value 734572313efbSmrg# Append VALUE to the end of shell variable VAR. 734672313efbSmrgfunc_append () 734772313efbSmrg{ 734872313efbSmrg eval "$[1]+=\$[2]" 734972313efbSmrg} 735072313efbSmrg_LT_EOF 735172313efbSmrg ;; 735272313efbSmrg *) 735372313efbSmrg cat << \_LT_EOF >> "$cfgfile" 7354bdcaa8d0Smrg 735572313efbSmrg# func_append var value 735672313efbSmrg# Append VALUE to the end of shell variable VAR. 735772313efbSmrgfunc_append () 735872313efbSmrg{ 735972313efbSmrg eval "$[1]=\$$[1]\$[2]" 736072313efbSmrg} 7361bdcaa8d0Smrg 736272313efbSmrg_LT_EOF 736372313efbSmrg ;; 736472313efbSmrg esac 736572313efbSmrg]) 7366bdcaa8d0Smrg 736772313efbSmrg# Helper functions for option handling. -*- Autoconf -*- 736872313efbSmrg# 736972313efbSmrg# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc. 737072313efbSmrg# Written by Gary V. Vaughan, 2004 737172313efbSmrg# 737272313efbSmrg# This file is free software; the Free Software Foundation gives 737372313efbSmrg# unlimited permission to copy and/or distribute it, with or without 737472313efbSmrg# modifications, as long as this notice is preserved. 7375bdcaa8d0Smrg 737672313efbSmrg# serial 6 ltoptions.m4 7377bdcaa8d0Smrg 737872313efbSmrg# This is to help aclocal find these macros, as it can't see m4_define. 737972313efbSmrgAC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])]) 7380bdcaa8d0Smrg 7381bdcaa8d0Smrg 738272313efbSmrg# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME) 738372313efbSmrg# ------------------------------------------ 738472313efbSmrgm4_define([_LT_MANGLE_OPTION], 738572313efbSmrg[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])]) 7386bdcaa8d0Smrg 7387bdcaa8d0Smrg 738872313efbSmrg# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME) 738972313efbSmrg# --------------------------------------- 739072313efbSmrg# Set option OPTION-NAME for macro MACRO-NAME, and if there is a 739172313efbSmrg# matching handler defined, dispatch to it. Other OPTION-NAMEs are 739272313efbSmrg# saved as a flag. 739372313efbSmrgm4_define([_LT_SET_OPTION], 739472313efbSmrg[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl 739572313efbSmrgm4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]), 739672313efbSmrg _LT_MANGLE_DEFUN([$1], [$2]), 739772313efbSmrg [m4_warning([Unknown $1 option `$2'])])[]dnl 739872313efbSmrg]) 7399bdcaa8d0Smrg 7400bdcaa8d0Smrg 740172313efbSmrg# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET]) 740272313efbSmrg# ------------------------------------------------------------ 740372313efbSmrg# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. 740472313efbSmrgm4_define([_LT_IF_OPTION], 740572313efbSmrg[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])]) 740672313efbSmrg 740772313efbSmrg 740872313efbSmrg# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET) 740972313efbSmrg# ------------------------------------------------------- 741072313efbSmrg# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME 741172313efbSmrg# are set. 741272313efbSmrgm4_define([_LT_UNLESS_OPTIONS], 741372313efbSmrg[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])), 741472313efbSmrg [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option), 741572313efbSmrg [m4_define([$0_found])])])[]dnl 741672313efbSmrgm4_ifdef([$0_found], [m4_undefine([$0_found])], [$3 741772313efbSmrg])[]dnl 741872313efbSmrg]) 7419bdcaa8d0Smrg 7420bdcaa8d0Smrg 742172313efbSmrg# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST) 742272313efbSmrg# ---------------------------------------- 742372313efbSmrg# OPTION-LIST is a space-separated list of Libtool options associated 742472313efbSmrg# with MACRO-NAME. If any OPTION has a matching handler declared with 742572313efbSmrg# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about 742672313efbSmrg# the unknown option and exit. 742772313efbSmrgm4_defun([_LT_SET_OPTIONS], 742872313efbSmrg[# Set options 742972313efbSmrgm4_foreach([_LT_Option], m4_split(m4_normalize([$2])), 743072313efbSmrg [_LT_SET_OPTION([$1], _LT_Option)]) 743172313efbSmrg 743272313efbSmrgm4_if([$1],[LT_INIT],[ 743372313efbSmrg dnl 743472313efbSmrg dnl Simply set some default values (i.e off) if boolean options were not 743572313efbSmrg dnl specified: 743672313efbSmrg _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no 743772313efbSmrg ]) 743872313efbSmrg _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no 743972313efbSmrg ]) 744072313efbSmrg dnl 744172313efbSmrg dnl If no reference was made to various pairs of opposing options, then 744272313efbSmrg dnl we run the default mode handler for the pair. For example, if neither 744372313efbSmrg dnl `shared' nor `disable-shared' was passed, we enable building of shared 744472313efbSmrg dnl archives by default: 744572313efbSmrg _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED]) 744672313efbSmrg _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC]) 744772313efbSmrg _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC]) 744872313efbSmrg _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install], 744972313efbSmrg [_LT_ENABLE_FAST_INSTALL]) 745072313efbSmrg ]) 745172313efbSmrg])# _LT_SET_OPTIONS 7452bdcaa8d0Smrg 7453bdcaa8d0Smrg 7454bdcaa8d0Smrg 745572313efbSmrg# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME) 745672313efbSmrg# ----------------------------------------- 745772313efbSmrgm4_define([_LT_MANGLE_DEFUN], 745872313efbSmrg[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])]) 7459bdcaa8d0Smrg 7460bdcaa8d0Smrg 746172313efbSmrg# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE) 746272313efbSmrg# ----------------------------------------------- 746372313efbSmrgm4_define([LT_OPTION_DEFINE], 746472313efbSmrg[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl 746572313efbSmrg])# LT_OPTION_DEFINE 7466bdcaa8d0Smrg 7467bdcaa8d0Smrg 746872313efbSmrg# dlopen 746972313efbSmrg# ------ 747072313efbSmrgLT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes 747172313efbSmrg]) 7472bdcaa8d0Smrg 747372313efbSmrgAU_DEFUN([AC_LIBTOOL_DLOPEN], 747472313efbSmrg[_LT_SET_OPTION([LT_INIT], [dlopen]) 747572313efbSmrgAC_DIAGNOSE([obsolete], 747672313efbSmrg[$0: Remove this warning and the call to _LT_SET_OPTION when you 747772313efbSmrgput the `dlopen' option into LT_INIT's first parameter.]) 747872313efbSmrg]) 7479bdcaa8d0Smrg 748072313efbSmrgdnl aclocal-1.4 backwards compatibility: 748172313efbSmrgdnl AC_DEFUN([AC_LIBTOOL_DLOPEN], []) 7482bdcaa8d0Smrg 7483bdcaa8d0Smrg 748472313efbSmrg# win32-dll 748572313efbSmrg# --------- 748672313efbSmrg# Declare package support for building win32 dll's. 748772313efbSmrgLT_OPTION_DEFINE([LT_INIT], [win32-dll], 748872313efbSmrg[enable_win32_dll=yes 748972313efbSmrg 749072313efbSmrgcase $host in 749172313efbSmrg*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*) 749272313efbSmrg AC_CHECK_TOOL(AS, as, false) 749372313efbSmrg AC_CHECK_TOOL(DLLTOOL, dlltool, false) 749472313efbSmrg AC_CHECK_TOOL(OBJDUMP, objdump, false) 749572313efbSmrg ;; 749672313efbSmrgesac 7497bdcaa8d0Smrg 749872313efbSmrgtest -z "$AS" && AS=as 749972313efbSmrg_LT_DECL([], [AS], [0], [Assembler program])dnl 7500bdcaa8d0Smrg 750172313efbSmrgtest -z "$DLLTOOL" && DLLTOOL=dlltool 750272313efbSmrg_LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl 7503bdcaa8d0Smrg 750472313efbSmrgtest -z "$OBJDUMP" && OBJDUMP=objdump 750572313efbSmrg_LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl 750672313efbSmrg])# win32-dll 7507bdcaa8d0Smrg 750872313efbSmrgAU_DEFUN([AC_LIBTOOL_WIN32_DLL], 750972313efbSmrg[AC_REQUIRE([AC_CANONICAL_HOST])dnl 751072313efbSmrg_LT_SET_OPTION([LT_INIT], [win32-dll]) 751172313efbSmrgAC_DIAGNOSE([obsolete], 751272313efbSmrg[$0: Remove this warning and the call to _LT_SET_OPTION when you 751372313efbSmrgput the `win32-dll' option into LT_INIT's first parameter.]) 751472313efbSmrg]) 7515bdcaa8d0Smrg 751672313efbSmrgdnl aclocal-1.4 backwards compatibility: 751772313efbSmrgdnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], []) 7518bdcaa8d0Smrg 7519bdcaa8d0Smrg 752072313efbSmrg# _LT_ENABLE_SHARED([DEFAULT]) 752172313efbSmrg# ---------------------------- 752272313efbSmrg# implement the --enable-shared flag, and supports the `shared' and 752372313efbSmrg# `disable-shared' LT_INIT options. 752472313efbSmrg# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. 752572313efbSmrgm4_define([_LT_ENABLE_SHARED], 752672313efbSmrg[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl 752772313efbSmrgAC_ARG_ENABLE([shared], 752872313efbSmrg [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@], 752972313efbSmrg [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])], 753072313efbSmrg [p=${PACKAGE-default} 753172313efbSmrg case $enableval in 753272313efbSmrg yes) enable_shared=yes ;; 753372313efbSmrg no) enable_shared=no ;; 753472313efbSmrg *) 753572313efbSmrg enable_shared=no 753672313efbSmrg # Look at the argument we got. We use all the common list separators. 753772313efbSmrg lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 753872313efbSmrg for pkg in $enableval; do 753972313efbSmrg IFS="$lt_save_ifs" 754072313efbSmrg if test "X$pkg" = "X$p"; then 754172313efbSmrg enable_shared=yes 754272313efbSmrg fi 754372313efbSmrg done 754472313efbSmrg IFS="$lt_save_ifs" 7545bdcaa8d0Smrg ;; 754672313efbSmrg esac], 754772313efbSmrg [enable_shared=]_LT_ENABLE_SHARED_DEFAULT) 7548bdcaa8d0Smrg 754972313efbSmrg _LT_DECL([build_libtool_libs], [enable_shared], [0], 755072313efbSmrg [Whether or not to build shared libraries]) 755172313efbSmrg])# _LT_ENABLE_SHARED 7552bdcaa8d0Smrg 755372313efbSmrgLT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])]) 755472313efbSmrgLT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])]) 7555bdcaa8d0Smrg 755672313efbSmrg# Old names: 755772313efbSmrgAC_DEFUN([AC_ENABLE_SHARED], 755872313efbSmrg[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared]) 755972313efbSmrg]) 7560bdcaa8d0Smrg 756172313efbSmrgAC_DEFUN([AC_DISABLE_SHARED], 756272313efbSmrg[_LT_SET_OPTION([LT_INIT], [disable-shared]) 756372313efbSmrg]) 7564bdcaa8d0Smrg 756572313efbSmrgAU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) 756672313efbSmrgAU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) 7567bdcaa8d0Smrg 756872313efbSmrgdnl aclocal-1.4 backwards compatibility: 756972313efbSmrgdnl AC_DEFUN([AM_ENABLE_SHARED], []) 757072313efbSmrgdnl AC_DEFUN([AM_DISABLE_SHARED], []) 7571bdcaa8d0Smrg 7572bdcaa8d0Smrg 7573bdcaa8d0Smrg 757472313efbSmrg# _LT_ENABLE_STATIC([DEFAULT]) 757572313efbSmrg# ---------------------------- 757672313efbSmrg# implement the --enable-static flag, and support the `static' and 757772313efbSmrg# `disable-static' LT_INIT options. 757872313efbSmrg# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. 757972313efbSmrgm4_define([_LT_ENABLE_STATIC], 758072313efbSmrg[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl 758172313efbSmrgAC_ARG_ENABLE([static], 758272313efbSmrg [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@], 758372313efbSmrg [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])], 758472313efbSmrg [p=${PACKAGE-default} 758572313efbSmrg case $enableval in 758672313efbSmrg yes) enable_static=yes ;; 758772313efbSmrg no) enable_static=no ;; 758872313efbSmrg *) 758972313efbSmrg enable_static=no 759072313efbSmrg # Look at the argument we got. We use all the common list separators. 759172313efbSmrg lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 759272313efbSmrg for pkg in $enableval; do 759372313efbSmrg IFS="$lt_save_ifs" 759472313efbSmrg if test "X$pkg" = "X$p"; then 759572313efbSmrg enable_static=yes 759672313efbSmrg fi 759772313efbSmrg done 759872313efbSmrg IFS="$lt_save_ifs" 7599bdcaa8d0Smrg ;; 760072313efbSmrg esac], 760172313efbSmrg [enable_static=]_LT_ENABLE_STATIC_DEFAULT) 7602bdcaa8d0Smrg 760372313efbSmrg _LT_DECL([build_old_libs], [enable_static], [0], 760472313efbSmrg [Whether or not to build static libraries]) 760572313efbSmrg])# _LT_ENABLE_STATIC 7606bdcaa8d0Smrg 760772313efbSmrgLT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])]) 760872313efbSmrgLT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])]) 7609bdcaa8d0Smrg 761072313efbSmrg# Old names: 761172313efbSmrgAC_DEFUN([AC_ENABLE_STATIC], 761272313efbSmrg[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static]) 761372313efbSmrg]) 7614bdcaa8d0Smrg 761572313efbSmrgAC_DEFUN([AC_DISABLE_STATIC], 761672313efbSmrg[_LT_SET_OPTION([LT_INIT], [disable-static]) 761772313efbSmrg]) 7618bdcaa8d0Smrg 761972313efbSmrgAU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) 762072313efbSmrgAU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) 7621bdcaa8d0Smrg 762272313efbSmrgdnl aclocal-1.4 backwards compatibility: 762372313efbSmrgdnl AC_DEFUN([AM_ENABLE_STATIC], []) 762472313efbSmrgdnl AC_DEFUN([AM_DISABLE_STATIC], []) 7625bdcaa8d0Smrg 7626bdcaa8d0Smrg 7627bdcaa8d0Smrg 762872313efbSmrg# _LT_ENABLE_FAST_INSTALL([DEFAULT]) 762972313efbSmrg# ---------------------------------- 763072313efbSmrg# implement the --enable-fast-install flag, and support the `fast-install' 763172313efbSmrg# and `disable-fast-install' LT_INIT options. 763272313efbSmrg# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. 763372313efbSmrgm4_define([_LT_ENABLE_FAST_INSTALL], 763472313efbSmrg[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl 763572313efbSmrgAC_ARG_ENABLE([fast-install], 763672313efbSmrg [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@], 763772313efbSmrg [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])], 763872313efbSmrg [p=${PACKAGE-default} 763972313efbSmrg case $enableval in 764072313efbSmrg yes) enable_fast_install=yes ;; 764172313efbSmrg no) enable_fast_install=no ;; 764272313efbSmrg *) 764372313efbSmrg enable_fast_install=no 764472313efbSmrg # Look at the argument we got. We use all the common list separators. 764572313efbSmrg lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 764672313efbSmrg for pkg in $enableval; do 764772313efbSmrg IFS="$lt_save_ifs" 764872313efbSmrg if test "X$pkg" = "X$p"; then 764972313efbSmrg enable_fast_install=yes 765072313efbSmrg fi 765172313efbSmrg done 765272313efbSmrg IFS="$lt_save_ifs" 7653bdcaa8d0Smrg ;; 765472313efbSmrg esac], 765572313efbSmrg [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT) 7656bdcaa8d0Smrg 765772313efbSmrg_LT_DECL([fast_install], [enable_fast_install], [0], 765872313efbSmrg [Whether or not to optimize for fast installation])dnl 765972313efbSmrg])# _LT_ENABLE_FAST_INSTALL 7660bdcaa8d0Smrg 766172313efbSmrgLT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])]) 766272313efbSmrgLT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])]) 7663bdcaa8d0Smrg 766472313efbSmrg# Old names: 766572313efbSmrgAU_DEFUN([AC_ENABLE_FAST_INSTALL], 766672313efbSmrg[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install]) 766772313efbSmrgAC_DIAGNOSE([obsolete], 766872313efbSmrg[$0: Remove this warning and the call to _LT_SET_OPTION when you put 766972313efbSmrgthe `fast-install' option into LT_INIT's first parameter.]) 767072313efbSmrg]) 7671bdcaa8d0Smrg 767272313efbSmrgAU_DEFUN([AC_DISABLE_FAST_INSTALL], 767372313efbSmrg[_LT_SET_OPTION([LT_INIT], [disable-fast-install]) 767472313efbSmrgAC_DIAGNOSE([obsolete], 767572313efbSmrg[$0: Remove this warning and the call to _LT_SET_OPTION when you put 767672313efbSmrgthe `disable-fast-install' option into LT_INIT's first parameter.]) 7677bdcaa8d0Smrg]) 7678bdcaa8d0Smrg 767972313efbSmrgdnl aclocal-1.4 backwards compatibility: 768072313efbSmrgdnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], []) 768172313efbSmrgdnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], []) 7682bdcaa8d0Smrg 7683bdcaa8d0Smrg 768472313efbSmrg# _LT_WITH_PIC([MODE]) 768572313efbSmrg# -------------------- 768672313efbSmrg# implement the --with-pic flag, and support the `pic-only' and `no-pic' 768772313efbSmrg# LT_INIT options. 768872313efbSmrg# MODE is either `yes' or `no'. If omitted, it defaults to `both'. 768972313efbSmrgm4_define([_LT_WITH_PIC], 769072313efbSmrg[AC_ARG_WITH([pic], 769172313efbSmrg [AS_HELP_STRING([--with-pic], 769272313efbSmrg [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], 769372313efbSmrg [pic_mode="$withval"], 769472313efbSmrg [pic_mode=default]) 769572313efbSmrg 769672313efbSmrgtest -z "$pic_mode" && pic_mode=m4_default([$1], [default]) 769772313efbSmrg 769872313efbSmrg_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl 769972313efbSmrg])# _LT_WITH_PIC 770072313efbSmrg 770172313efbSmrgLT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])]) 770272313efbSmrgLT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])]) 770372313efbSmrg 770472313efbSmrg# Old name: 770572313efbSmrgAU_DEFUN([AC_LIBTOOL_PICMODE], 770672313efbSmrg[_LT_SET_OPTION([LT_INIT], [pic-only]) 770772313efbSmrgAC_DIAGNOSE([obsolete], 770872313efbSmrg[$0: Remove this warning and the call to _LT_SET_OPTION when you 770972313efbSmrgput the `pic-only' option into LT_INIT's first parameter.]) 771072313efbSmrg]) 7711bdcaa8d0Smrg 771272313efbSmrgdnl aclocal-1.4 backwards compatibility: 771372313efbSmrgdnl AC_DEFUN([AC_LIBTOOL_PICMODE], []) 7714bdcaa8d0Smrg 771572313efbSmrg 771672313efbSmrgm4_define([_LTDL_MODE], []) 771772313efbSmrgLT_OPTION_DEFINE([LTDL_INIT], [nonrecursive], 771872313efbSmrg [m4_define([_LTDL_MODE], [nonrecursive])]) 771972313efbSmrgLT_OPTION_DEFINE([LTDL_INIT], [recursive], 772072313efbSmrg [m4_define([_LTDL_MODE], [recursive])]) 772172313efbSmrgLT_OPTION_DEFINE([LTDL_INIT], [subproject], 772272313efbSmrg [m4_define([_LTDL_MODE], [subproject])]) 772372313efbSmrg 772472313efbSmrgm4_define([_LTDL_TYPE], []) 772572313efbSmrgLT_OPTION_DEFINE([LTDL_INIT], [installable], 772672313efbSmrg [m4_define([_LTDL_TYPE], [installable])]) 772772313efbSmrgLT_OPTION_DEFINE([LTDL_INIT], [convenience], 772872313efbSmrg [m4_define([_LTDL_TYPE], [convenience])]) 772972313efbSmrg 773072313efbSmrg# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*- 7731bdcaa8d0Smrg# 773272313efbSmrg# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc. 773372313efbSmrg# Written by Gary V. Vaughan, 2004 7734bdcaa8d0Smrg# 773572313efbSmrg# This file is free software; the Free Software Foundation gives 773672313efbSmrg# unlimited permission to copy and/or distribute it, with or without 773772313efbSmrg# modifications, as long as this notice is preserved. 773872313efbSmrg 773972313efbSmrg# serial 6 ltsugar.m4 774072313efbSmrg 774172313efbSmrg# This is to help aclocal find these macros, as it can't see m4_define. 774272313efbSmrgAC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])]) 774372313efbSmrg 774472313efbSmrg 774572313efbSmrg# lt_join(SEP, ARG1, [ARG2...]) 774672313efbSmrg# ----------------------------- 774772313efbSmrg# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their 774872313efbSmrg# associated separator. 774972313efbSmrg# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier 775072313efbSmrg# versions in m4sugar had bugs. 775172313efbSmrgm4_define([lt_join], 775272313efbSmrg[m4_if([$#], [1], [], 775372313efbSmrg [$#], [2], [[$2]], 775472313efbSmrg [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])]) 775572313efbSmrgm4_define([_lt_join], 775672313efbSmrg[m4_if([$#$2], [2], [], 775772313efbSmrg [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])]) 775872313efbSmrg 775972313efbSmrg 776072313efbSmrg# lt_car(LIST) 776172313efbSmrg# lt_cdr(LIST) 776272313efbSmrg# ------------ 776372313efbSmrg# Manipulate m4 lists. 776472313efbSmrg# These macros are necessary as long as will still need to support 776572313efbSmrg# Autoconf-2.59 which quotes differently. 776672313efbSmrgm4_define([lt_car], [[$1]]) 776772313efbSmrgm4_define([lt_cdr], 776872313efbSmrg[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])], 776972313efbSmrg [$#], 1, [], 777072313efbSmrg [m4_dquote(m4_shift($@))])]) 777172313efbSmrgm4_define([lt_unquote], $1) 777272313efbSmrg 777372313efbSmrg 777472313efbSmrg# lt_append(MACRO-NAME, STRING, [SEPARATOR]) 777572313efbSmrg# ------------------------------------------ 777672313efbSmrg# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'. 777772313efbSmrg# Note that neither SEPARATOR nor STRING are expanded; they are appended 777872313efbSmrg# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked). 777972313efbSmrg# No SEPARATOR is output if MACRO-NAME was previously undefined (different 778072313efbSmrg# than defined and empty). 7781bdcaa8d0Smrg# 778272313efbSmrg# This macro is needed until we can rely on Autoconf 2.62, since earlier 778372313efbSmrg# versions of m4sugar mistakenly expanded SEPARATOR but not STRING. 778472313efbSmrgm4_define([lt_append], 778572313efbSmrg[m4_define([$1], 778672313efbSmrg m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])]) 778772313efbSmrg 778872313efbSmrg 778972313efbSmrg 779072313efbSmrg# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...]) 779172313efbSmrg# ---------------------------------------------------------- 779272313efbSmrg# Produce a SEP delimited list of all paired combinations of elements of 779372313efbSmrg# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list 779472313efbSmrg# has the form PREFIXmINFIXSUFFIXn. 779572313efbSmrg# Needed until we can rely on m4_combine added in Autoconf 2.62. 779672313efbSmrgm4_define([lt_combine], 779772313efbSmrg[m4_if(m4_eval([$# > 3]), [1], 779872313efbSmrg [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl 779972313efbSmrg[[m4_foreach([_Lt_prefix], [$2], 780072313efbSmrg [m4_foreach([_Lt_suffix], 780172313efbSmrg ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[, 780272313efbSmrg [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])]) 780372313efbSmrg 780472313efbSmrg 780572313efbSmrg# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ]) 780672313efbSmrg# ----------------------------------------------------------------------- 780772313efbSmrg# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited 780872313efbSmrg# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ. 780972313efbSmrgm4_define([lt_if_append_uniq], 781072313efbSmrg[m4_ifdef([$1], 781172313efbSmrg [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1], 781272313efbSmrg [lt_append([$1], [$2], [$3])$4], 781372313efbSmrg [$5])], 781472313efbSmrg [lt_append([$1], [$2], [$3])$4])]) 781572313efbSmrg 781672313efbSmrg 781772313efbSmrg# lt_dict_add(DICT, KEY, VALUE) 781872313efbSmrg# ----------------------------- 781972313efbSmrgm4_define([lt_dict_add], 782072313efbSmrg[m4_define([$1($2)], [$3])]) 7821bdcaa8d0Smrg 7822bdcaa8d0Smrg 782372313efbSmrg# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE) 782472313efbSmrg# -------------------------------------------- 782572313efbSmrgm4_define([lt_dict_add_subkey], 782672313efbSmrg[m4_define([$1($2:$3)], [$4])]) 7827bdcaa8d0Smrg 7828bdcaa8d0Smrg 782972313efbSmrg# lt_dict_fetch(DICT, KEY, [SUBKEY]) 783072313efbSmrg# ---------------------------------- 783172313efbSmrgm4_define([lt_dict_fetch], 783272313efbSmrg[m4_ifval([$3], 783372313efbSmrg m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]), 783472313efbSmrg m4_ifdef([$1($2)], [m4_defn([$1($2)])]))]) 7835bdcaa8d0Smrg 7836bdcaa8d0Smrg 783772313efbSmrg# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE]) 783872313efbSmrg# ----------------------------------------------------------------- 783972313efbSmrgm4_define([lt_if_dict_fetch], 784072313efbSmrg[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4], 784172313efbSmrg [$5], 784272313efbSmrg [$6])]) 7843bdcaa8d0Smrg 7844bdcaa8d0Smrg 784572313efbSmrg# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...]) 784672313efbSmrg# -------------------------------------------------------------- 784772313efbSmrgm4_define([lt_dict_filter], 784872313efbSmrg[m4_if([$5], [], [], 784972313efbSmrg [lt_join(m4_quote(m4_default([$4], [[, ]])), 785072313efbSmrg lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]), 785172313efbSmrg [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl 7852bdcaa8d0Smrg]) 785372313efbSmrg 785472313efbSmrg# ltversion.m4 -- version numbers -*- Autoconf -*- 785572313efbSmrg# 785672313efbSmrg# Copyright (C) 2004 Free Software Foundation, Inc. 785772313efbSmrg# Written by Scott James Remnant, 2004 785872313efbSmrg# 785972313efbSmrg# This file is free software; the Free Software Foundation gives 786072313efbSmrg# unlimited permission to copy and/or distribute it, with or without 786172313efbSmrg# modifications, as long as this notice is preserved. 786272313efbSmrg 786372313efbSmrg# Generated from ltversion.in. 786472313efbSmrg 786572313efbSmrg# serial 3012 ltversion.m4 786672313efbSmrg# This file is part of GNU Libtool 786772313efbSmrg 786872313efbSmrgm4_define([LT_PACKAGE_VERSION], [2.2.6]) 786972313efbSmrgm4_define([LT_PACKAGE_REVISION], [1.3012]) 787072313efbSmrg 787172313efbSmrgAC_DEFUN([LTVERSION_VERSION], 787272313efbSmrg[macro_version='2.2.6' 787372313efbSmrgmacro_revision='1.3012' 787472313efbSmrg_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?]) 787572313efbSmrg_LT_DECL(, macro_revision, 0) 7876bdcaa8d0Smrg]) 7877bdcaa8d0Smrg 787872313efbSmrg# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*- 787972313efbSmrg# 788072313efbSmrg# Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc. 788172313efbSmrg# Written by Scott James Remnant, 2004. 788272313efbSmrg# 788372313efbSmrg# This file is free software; the Free Software Foundation gives 788472313efbSmrg# unlimited permission to copy and/or distribute it, with or without 788572313efbSmrg# modifications, as long as this notice is preserved. 788672313efbSmrg 788772313efbSmrg# serial 4 lt~obsolete.m4 788872313efbSmrg 788972313efbSmrg# These exist entirely to fool aclocal when bootstrapping libtool. 789072313efbSmrg# 789172313efbSmrg# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN) 789272313efbSmrg# which have later been changed to m4_define as they aren't part of the 789372313efbSmrg# exported API, or moved to Autoconf or Automake where they belong. 789472313efbSmrg# 789572313efbSmrg# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN 789672313efbSmrg# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us 789772313efbSmrg# using a macro with the same name in our local m4/libtool.m4 it'll 789872313efbSmrg# pull the old libtool.m4 in (it doesn't see our shiny new m4_define 789972313efbSmrg# and doesn't know about Autoconf macros at all.) 790072313efbSmrg# 790172313efbSmrg# So we provide this file, which has a silly filename so it's always 790272313efbSmrg# included after everything else. This provides aclocal with the 790372313efbSmrg# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything 790472313efbSmrg# because those macros already exist, or will be overwritten later. 790572313efbSmrg# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6. 790672313efbSmrg# 790772313efbSmrg# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here. 790872313efbSmrg# Yes, that means every name once taken will need to remain here until 790972313efbSmrg# we give up compatibility with versions before 1.7, at which point 791072313efbSmrg# we need to keep only those names which we still refer to. 791172313efbSmrg 791272313efbSmrg# This is to help aclocal find these macros, as it can't see m4_define. 791372313efbSmrgAC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])]) 791472313efbSmrg 791572313efbSmrgm4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])]) 791672313efbSmrgm4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])]) 791772313efbSmrgm4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])]) 791872313efbSmrgm4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])]) 791972313efbSmrgm4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])]) 792072313efbSmrgm4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])]) 792172313efbSmrgm4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])]) 792272313efbSmrgm4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])]) 792372313efbSmrgm4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])]) 792472313efbSmrgm4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])]) 792572313efbSmrgm4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])]) 792672313efbSmrgm4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])]) 792772313efbSmrgm4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])]) 792872313efbSmrgm4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])]) 792972313efbSmrgm4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])]) 793072313efbSmrgm4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])]) 793172313efbSmrgm4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])]) 793272313efbSmrgm4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])]) 793372313efbSmrgm4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])]) 793472313efbSmrgm4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])]) 793572313efbSmrgm4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])]) 793672313efbSmrgm4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])]) 793772313efbSmrgm4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])]) 793872313efbSmrgm4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])]) 793972313efbSmrgm4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])]) 794072313efbSmrgm4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])]) 794172313efbSmrgm4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])]) 794272313efbSmrgm4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])]) 794372313efbSmrgm4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])]) 794472313efbSmrgm4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])]) 794572313efbSmrgm4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])]) 794672313efbSmrgm4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])]) 794772313efbSmrgm4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])]) 794872313efbSmrgm4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])]) 794972313efbSmrgm4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])]) 795072313efbSmrgm4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])]) 795172313efbSmrgm4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])]) 795272313efbSmrgm4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])]) 795372313efbSmrgm4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])]) 795472313efbSmrgm4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])]) 795572313efbSmrgm4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])]) 795672313efbSmrgm4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])]) 795772313efbSmrgm4_ifndef([AC_LIBTOOL_RC], [AC_DEFUN([AC_LIBTOOL_RC])]) 795872313efbSmrgm4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])]) 795972313efbSmrgm4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])]) 796072313efbSmrgm4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])]) 796172313efbSmrgm4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])]) 796272313efbSmrgm4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])]) 796372313efbSmrgm4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])]) 796472313efbSmrgm4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])]) 796572313efbSmrgm4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])]) 796672313efbSmrgm4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])]) 796772313efbSmrgm4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])]) 796872313efbSmrgm4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])]) 796972313efbSmrgm4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])]) 797072313efbSmrg 7971bdcaa8d0Smrg# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- 7972bdcaa8d0Smrg# 7973bdcaa8d0Smrg# Copyright © 2004 Scott James Remnant <scott@netsplit.com>. 7974bdcaa8d0Smrg# 7975bdcaa8d0Smrg# This program is free software; you can redistribute it and/or modify 7976bdcaa8d0Smrg# it under the terms of the GNU General Public License as published by 7977bdcaa8d0Smrg# the Free Software Foundation; either version 2 of the License, or 7978bdcaa8d0Smrg# (at your option) any later version. 7979bdcaa8d0Smrg# 7980bdcaa8d0Smrg# This program is distributed in the hope that it will be useful, but 7981bdcaa8d0Smrg# WITHOUT ANY WARRANTY; without even the implied warranty of 7982bdcaa8d0Smrg# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 7983bdcaa8d0Smrg# General Public License for more details. 7984bdcaa8d0Smrg# 7985bdcaa8d0Smrg# You should have received a copy of the GNU General Public License 7986bdcaa8d0Smrg# along with this program; if not, write to the Free Software 7987bdcaa8d0Smrg# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 7988bdcaa8d0Smrg# 7989bdcaa8d0Smrg# As a special exception to the GNU General Public License, if you 7990bdcaa8d0Smrg# distribute this file as part of a program that contains a 7991bdcaa8d0Smrg# configuration script generated by Autoconf, you may include it under 7992bdcaa8d0Smrg# the same distribution terms that you use for the rest of that program. 7993bdcaa8d0Smrg 7994bdcaa8d0Smrg# PKG_PROG_PKG_CONFIG([MIN-VERSION]) 7995bdcaa8d0Smrg# ---------------------------------- 7996bdcaa8d0SmrgAC_DEFUN([PKG_PROG_PKG_CONFIG], 7997bdcaa8d0Smrg[m4_pattern_forbid([^_?PKG_[A-Z_]+$]) 7998bdcaa8d0Smrgm4_pattern_allow([^PKG_CONFIG(_PATH)?$]) 7999bdcaa8d0SmrgAC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl 8000bdcaa8d0Smrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 8001bdcaa8d0Smrg AC_PATH_TOOL([PKG_CONFIG], [pkg-config]) 8002bdcaa8d0Smrgfi 8003bdcaa8d0Smrgif test -n "$PKG_CONFIG"; then 8004bdcaa8d0Smrg _pkg_min_version=m4_default([$1], [0.9.0]) 8005bdcaa8d0Smrg AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version]) 8006bdcaa8d0Smrg if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 8007bdcaa8d0Smrg AC_MSG_RESULT([yes]) 8008bdcaa8d0Smrg else 8009bdcaa8d0Smrg AC_MSG_RESULT([no]) 8010bdcaa8d0Smrg PKG_CONFIG="" 8011bdcaa8d0Smrg fi 8012bdcaa8d0Smrg 8013bdcaa8d0Smrgfi[]dnl 8014bdcaa8d0Smrg])# PKG_PROG_PKG_CONFIG 8015bdcaa8d0Smrg 8016bdcaa8d0Smrg# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) 8017bdcaa8d0Smrg# 8018bdcaa8d0Smrg# Check to see whether a particular set of modules exists. Similar 8019bdcaa8d0Smrg# to PKG_CHECK_MODULES(), but does not set variables or print errors. 8020bdcaa8d0Smrg# 8021bdcaa8d0Smrg# 8022bdcaa8d0Smrg# Similar to PKG_CHECK_MODULES, make sure that the first instance of 8023bdcaa8d0Smrg# this or PKG_CHECK_MODULES is called, or make sure to call 8024bdcaa8d0Smrg# PKG_CHECK_EXISTS manually 8025bdcaa8d0Smrg# -------------------------------------------------------------- 8026bdcaa8d0SmrgAC_DEFUN([PKG_CHECK_EXISTS], 8027bdcaa8d0Smrg[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl 8028bdcaa8d0Smrgif test -n "$PKG_CONFIG" && \ 8029bdcaa8d0Smrg AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then 8030bdcaa8d0Smrg m4_ifval([$2], [$2], [:]) 8031bdcaa8d0Smrgm4_ifvaln([$3], [else 8032bdcaa8d0Smrg $3])dnl 8033bdcaa8d0Smrgfi]) 8034bdcaa8d0Smrg 8035bdcaa8d0Smrg 8036bdcaa8d0Smrg# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) 8037bdcaa8d0Smrg# --------------------------------------------- 8038bdcaa8d0Smrgm4_define([_PKG_CONFIG], 803972313efbSmrg[if test -n "$$1"; then 804072313efbSmrg pkg_cv_[]$1="$$1" 804172313efbSmrg elif test -n "$PKG_CONFIG"; then 804272313efbSmrg PKG_CHECK_EXISTS([$3], 804372313efbSmrg [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`], 804472313efbSmrg [pkg_failed=yes]) 804572313efbSmrg else 804672313efbSmrg pkg_failed=untried 8047bdcaa8d0Smrgfi[]dnl 8048bdcaa8d0Smrg])# _PKG_CONFIG 8049bdcaa8d0Smrg 8050bdcaa8d0Smrg# _PKG_SHORT_ERRORS_SUPPORTED 8051bdcaa8d0Smrg# ----------------------------- 8052bdcaa8d0SmrgAC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED], 8053bdcaa8d0Smrg[AC_REQUIRE([PKG_PROG_PKG_CONFIG]) 8054bdcaa8d0Smrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 8055bdcaa8d0Smrg _pkg_short_errors_supported=yes 8056bdcaa8d0Smrgelse 8057bdcaa8d0Smrg _pkg_short_errors_supported=no 8058bdcaa8d0Smrgfi[]dnl 8059bdcaa8d0Smrg])# _PKG_SHORT_ERRORS_SUPPORTED 8060bdcaa8d0Smrg 8061bdcaa8d0Smrg 8062bdcaa8d0Smrg# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], 8063bdcaa8d0Smrg# [ACTION-IF-NOT-FOUND]) 8064bdcaa8d0Smrg# 8065bdcaa8d0Smrg# 8066bdcaa8d0Smrg# Note that if there is a possibility the first call to 8067bdcaa8d0Smrg# PKG_CHECK_MODULES might not happen, you should be sure to include an 8068bdcaa8d0Smrg# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac 8069bdcaa8d0Smrg# 8070bdcaa8d0Smrg# 8071bdcaa8d0Smrg# -------------------------------------------------------------- 8072bdcaa8d0SmrgAC_DEFUN([PKG_CHECK_MODULES], 8073bdcaa8d0Smrg[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl 8074bdcaa8d0SmrgAC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl 8075bdcaa8d0SmrgAC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl 8076bdcaa8d0Smrg 8077bdcaa8d0Smrgpkg_failed=no 8078bdcaa8d0SmrgAC_MSG_CHECKING([for $1]) 8079bdcaa8d0Smrg 8080bdcaa8d0Smrg_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2]) 8081bdcaa8d0Smrg_PKG_CONFIG([$1][_LIBS], [libs], [$2]) 8082bdcaa8d0Smrg 8083bdcaa8d0Smrgm4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS 8084bdcaa8d0Smrgand $1[]_LIBS to avoid the need to call pkg-config. 8085bdcaa8d0SmrgSee the pkg-config man page for more details.]) 8086bdcaa8d0Smrg 8087bdcaa8d0Smrgif test $pkg_failed = yes; then 8088bdcaa8d0Smrg _PKG_SHORT_ERRORS_SUPPORTED 8089bdcaa8d0Smrg if test $_pkg_short_errors_supported = yes; then 809072313efbSmrg $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1` 8091bdcaa8d0Smrg else 809272313efbSmrg $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1` 8093bdcaa8d0Smrg fi 8094bdcaa8d0Smrg # Put the nasty error message in config.log where it belongs 8095bdcaa8d0Smrg echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD 8096bdcaa8d0Smrg 8097bdcaa8d0Smrg ifelse([$4], , [AC_MSG_ERROR(dnl 8098bdcaa8d0Smrg[Package requirements ($2) were not met: 8099bdcaa8d0Smrg 8100bdcaa8d0Smrg$$1_PKG_ERRORS 8101bdcaa8d0Smrg 8102bdcaa8d0SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you 8103bdcaa8d0Smrginstalled software in a non-standard prefix. 8104bdcaa8d0Smrg 8105bdcaa8d0Smrg_PKG_TEXT 8106bdcaa8d0Smrg])], 810772313efbSmrg [AC_MSG_RESULT([no]) 810872313efbSmrg $4]) 8109bdcaa8d0Smrgelif test $pkg_failed = untried; then 8110bdcaa8d0Smrg ifelse([$4], , [AC_MSG_FAILURE(dnl 8111bdcaa8d0Smrg[The pkg-config script could not be found or is too old. Make sure it 8112bdcaa8d0Smrgis in your PATH or set the PKG_CONFIG environment variable to the full 8113bdcaa8d0Smrgpath to pkg-config. 8114bdcaa8d0Smrg 8115bdcaa8d0Smrg_PKG_TEXT 8116bdcaa8d0Smrg 811772313efbSmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>.])], 8118bdcaa8d0Smrg [$4]) 8119bdcaa8d0Smrgelse 8120bdcaa8d0Smrg $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS 8121bdcaa8d0Smrg $1[]_LIBS=$pkg_cv_[]$1[]_LIBS 8122bdcaa8d0Smrg AC_MSG_RESULT([yes]) 8123bdcaa8d0Smrg ifelse([$3], , :, [$3]) 8124bdcaa8d0Smrgfi[]dnl 8125bdcaa8d0Smrg])# PKG_CHECK_MODULES 8126bdcaa8d0Smrg 812772313efbSmrgdnl xorg-macros.m4. Generated from xorg-macros.m4.in xorgversion.m4 by configure. 8128bdcaa8d0Smrgdnl 8129bdcaa8d0Smrgdnl Copyright 2005-2006 Sun Microsystems, Inc. All rights reserved. 8130bdcaa8d0Smrgdnl 8131bdcaa8d0Smrgdnl Permission is hereby granted, free of charge, to any person obtaining a 8132bdcaa8d0Smrgdnl copy of this software and associated documentation files (the 8133bdcaa8d0Smrgdnl "Software"), to deal in the Software without restriction, including 8134bdcaa8d0Smrgdnl without limitation the rights to use, copy, modify, merge, publish, 8135bdcaa8d0Smrgdnl distribute, and/or sell copies of the Software, and to permit persons 8136bdcaa8d0Smrgdnl to whom the Software is furnished to do so, provided that the above 8137bdcaa8d0Smrgdnl copyright notice(s) and this permission notice appear in all copies of 8138bdcaa8d0Smrgdnl the Software and that both the above copyright notice(s) and this 8139bdcaa8d0Smrgdnl permission notice appear in supporting documentation. 8140bdcaa8d0Smrgdnl 8141bdcaa8d0Smrgdnl THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 8142bdcaa8d0Smrgdnl OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 8143bdcaa8d0Smrgdnl MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT 8144bdcaa8d0Smrgdnl OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 8145bdcaa8d0Smrgdnl HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL 8146bdcaa8d0Smrgdnl INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING 8147bdcaa8d0Smrgdnl FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, 8148bdcaa8d0Smrgdnl NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION 8149bdcaa8d0Smrgdnl WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 8150bdcaa8d0Smrgdnl 8151bdcaa8d0Smrgdnl Except as contained in this notice, the name of a copyright holder 8152bdcaa8d0Smrgdnl shall not be used in advertising or otherwise to promote the sale, use 8153bdcaa8d0Smrgdnl or other dealings in this Software without prior written authorization 8154bdcaa8d0Smrgdnl of the copyright holder. 8155bdcaa8d0Smrg 8156bdcaa8d0Smrg# XORG_MACROS_VERSION(required-version) 8157bdcaa8d0Smrg# ------------------------------------- 8158bdcaa8d0Smrg# Minimum version: 1.1.0 8159bdcaa8d0Smrg# 8160bdcaa8d0Smrg# If you're using a macro added in Version 1.1 or newer, include this in 8161bdcaa8d0Smrg# your configure.ac with the minimum required version, such as: 8162bdcaa8d0Smrg# XORG_MACROS_VERSION(1.1) 8163bdcaa8d0Smrg# 8164bdcaa8d0Smrg# To force at least a version with this macro defined, also add: 8165bdcaa8d0Smrg# m4_ifndef([XORG_MACROS_VERSION], [AC_FATAL([must install xorg-macros 1.1 or later before running autoconf/autogen])]) 8166bdcaa8d0Smrg# 8167bdcaa8d0Smrg# 8168bdcaa8d0Smrg# See the "minimum version" comment for each macro you use to see what 8169bdcaa8d0Smrg# version you require. 8170bdcaa8d0SmrgAC_DEFUN([XORG_MACROS_VERSION],[ 8171bdcaa8d0Smrg [XORG_MACROS_needed_version=$1 8172bdcaa8d0Smrg XORG_MACROS_needed_major=`echo $XORG_MACROS_needed_version | sed 's/\..*$//'` 8173bdcaa8d0Smrg XORG_MACROS_needed_minor=`echo $XORG_MACROS_needed_version | sed -e 's/^[0-9]*\.//' -e 's/\..*$//'`] 8174bdcaa8d0Smrg AC_MSG_CHECKING([if xorg-macros used to generate configure is at least ${XORG_MACROS_needed_major}.${XORG_MACROS_needed_minor}]) 817572313efbSmrg [XORG_MACROS_version=1.2.1 8176bdcaa8d0Smrg XORG_MACROS_major=`echo $XORG_MACROS_version | sed 's/\..*$//'` 8177bdcaa8d0Smrg XORG_MACROS_minor=`echo $XORG_MACROS_version | sed -e 's/^[0-9]*\.//' -e 's/\..*$//'`] 8178bdcaa8d0Smrg if test $XORG_MACROS_major -ne $XORG_MACROS_needed_major ; then 8179bdcaa8d0Smrg AC_MSG_ERROR([configure built with incompatible version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.x]) 8180bdcaa8d0Smrg fi 8181bdcaa8d0Smrg if test $XORG_MACROS_minor -lt $XORG_MACROS_needed_minor ; then 8182bdcaa8d0Smrg AC_MSG_ERROR([configure built with too old of a version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.${XORG_MACROS_minor}.0 or newer]) 8183bdcaa8d0Smrg fi 8184bdcaa8d0Smrg AC_MSG_RESULT([yes, $XORG_MACROS_version]) 8185bdcaa8d0Smrg]) # XORG_MACROS_VERSION 8186bdcaa8d0Smrg 8187bdcaa8d0Smrg# XORG_PROG_RAWCPP() 8188bdcaa8d0Smrg# ------------------ 8189bdcaa8d0Smrg# Minimum version: 1.0.0 8190bdcaa8d0Smrg# 8191bdcaa8d0Smrg# Find cpp program and necessary flags for use in pre-processing text files 8192bdcaa8d0Smrg# such as man pages and config files 8193bdcaa8d0SmrgAC_DEFUN([XORG_PROG_RAWCPP],[ 8194bdcaa8d0SmrgAC_REQUIRE([AC_PROG_CPP]) 8195bdcaa8d0SmrgAC_PATH_PROGS(RAWCPP, [cpp], [${CPP}], 8196bdcaa8d0Smrg [$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib]) 8197bdcaa8d0Smrg 8198bdcaa8d0Smrg# Check for flag to avoid builtin definitions - assumes unix is predefined, 8199bdcaa8d0Smrg# which is not the best choice for supporting other OS'es, but covers most 8200bdcaa8d0Smrg# of the ones we need for now. 8201bdcaa8d0SmrgAC_MSG_CHECKING([if $RAWCPP requires -undef]) 8202bdcaa8d0SmrgAC_LANG_CONFTEST([Does cpp redefine unix ?]) 8203bdcaa8d0Smrgif test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 8204bdcaa8d0Smrg AC_MSG_RESULT([no]) 8205bdcaa8d0Smrgelse 8206bdcaa8d0Smrg if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 8207bdcaa8d0Smrg RAWCPPFLAGS=-undef 8208bdcaa8d0Smrg AC_MSG_RESULT([yes]) 820972313efbSmrg # under Cygwin unix is still defined even with -undef 821072313efbSmrg elif test `${RAWCPP} -undef -ansi < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 821172313efbSmrg RAWCPPFLAGS="-undef -ansi" 821272313efbSmrg AC_MSG_RESULT([yes, with -ansi]) 8213bdcaa8d0Smrg else 8214bdcaa8d0Smrg AC_MSG_ERROR([${RAWCPP} defines unix with or without -undef. I don't know what to do.]) 8215bdcaa8d0Smrg fi 8216bdcaa8d0Smrgfi 8217bdcaa8d0Smrgrm -f conftest.$ac_ext 8218bdcaa8d0Smrg 8219bdcaa8d0SmrgAC_MSG_CHECKING([if $RAWCPP requires -traditional]) 8220bdcaa8d0SmrgAC_LANG_CONFTEST([Does cpp preserve "whitespace"?]) 8221bdcaa8d0Smrgif test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then 8222bdcaa8d0Smrg AC_MSG_RESULT([no]) 8223bdcaa8d0Smrgelse 8224bdcaa8d0Smrg if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then 8225bdcaa8d0Smrg RAWCPPFLAGS="${RAWCPPFLAGS} -traditional" 8226bdcaa8d0Smrg AC_MSG_RESULT([yes]) 8227bdcaa8d0Smrg else 8228bdcaa8d0Smrg AC_MSG_ERROR([${RAWCPP} does not preserve whitespace with or without -traditional. I don't know what to do.]) 8229bdcaa8d0Smrg fi 8230bdcaa8d0Smrgfi 8231bdcaa8d0Smrgrm -f conftest.$ac_ext 8232bdcaa8d0SmrgAC_SUBST(RAWCPPFLAGS) 8233bdcaa8d0Smrg]) # XORG_PROG_RAWCPP 8234bdcaa8d0Smrg 8235bdcaa8d0Smrg# XORG_MANPAGE_SECTIONS() 8236bdcaa8d0Smrg# ----------------------- 8237bdcaa8d0Smrg# Minimum version: 1.0.0 8238bdcaa8d0Smrg# 8239bdcaa8d0Smrg# Determine which sections man pages go in for the different man page types 8240bdcaa8d0Smrg# on this OS - replaces *ManSuffix settings in old Imake *.cf per-os files. 8241bdcaa8d0Smrg# Not sure if there's any better way than just hardcoding by OS name. 8242bdcaa8d0Smrg# Override default settings by setting environment variables 8243bdcaa8d0Smrg 8244bdcaa8d0SmrgAC_DEFUN([XORG_MANPAGE_SECTIONS],[ 8245bdcaa8d0SmrgAC_REQUIRE([AC_CANONICAL_HOST]) 8246bdcaa8d0Smrg 8247bdcaa8d0Smrgif test x$APP_MAN_SUFFIX = x ; then 8248bdcaa8d0Smrg APP_MAN_SUFFIX=1 8249bdcaa8d0Smrgfi 8250bdcaa8d0Smrgif test x$APP_MAN_DIR = x ; then 8251bdcaa8d0Smrg APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 8252bdcaa8d0Smrgfi 8253bdcaa8d0Smrg 8254bdcaa8d0Smrgif test x$LIB_MAN_SUFFIX = x ; then 8255bdcaa8d0Smrg LIB_MAN_SUFFIX=3 8256bdcaa8d0Smrgfi 8257bdcaa8d0Smrgif test x$LIB_MAN_DIR = x ; then 8258bdcaa8d0Smrg LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 8259bdcaa8d0Smrgfi 8260bdcaa8d0Smrg 8261bdcaa8d0Smrgif test x$FILE_MAN_SUFFIX = x ; then 8262bdcaa8d0Smrg case $host_os in 8263bdcaa8d0Smrg solaris*) FILE_MAN_SUFFIX=4 ;; 8264bdcaa8d0Smrg *) FILE_MAN_SUFFIX=5 ;; 8265bdcaa8d0Smrg esac 8266bdcaa8d0Smrgfi 8267bdcaa8d0Smrgif test x$FILE_MAN_DIR = x ; then 8268bdcaa8d0Smrg FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 8269bdcaa8d0Smrgfi 8270bdcaa8d0Smrg 8271bdcaa8d0Smrgif test x$MISC_MAN_SUFFIX = x ; then 8272bdcaa8d0Smrg case $host_os in 8273bdcaa8d0Smrg solaris*) MISC_MAN_SUFFIX=5 ;; 8274bdcaa8d0Smrg *) MISC_MAN_SUFFIX=7 ;; 8275bdcaa8d0Smrg esac 8276bdcaa8d0Smrgfi 8277bdcaa8d0Smrgif test x$MISC_MAN_DIR = x ; then 8278bdcaa8d0Smrg MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 8279bdcaa8d0Smrgfi 8280bdcaa8d0Smrg 8281bdcaa8d0Smrgif test x$DRIVER_MAN_SUFFIX = x ; then 8282bdcaa8d0Smrg case $host_os in 8283bdcaa8d0Smrg solaris*) DRIVER_MAN_SUFFIX=7 ;; 8284bdcaa8d0Smrg *) DRIVER_MAN_SUFFIX=4 ;; 8285bdcaa8d0Smrg esac 8286bdcaa8d0Smrgfi 8287bdcaa8d0Smrgif test x$DRIVER_MAN_DIR = x ; then 8288bdcaa8d0Smrg DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 8289bdcaa8d0Smrgfi 8290bdcaa8d0Smrg 8291bdcaa8d0Smrgif test x$ADMIN_MAN_SUFFIX = x ; then 8292bdcaa8d0Smrg case $host_os in 8293bdcaa8d0Smrg solaris*) ADMIN_MAN_SUFFIX=1m ;; 8294bdcaa8d0Smrg *) ADMIN_MAN_SUFFIX=8 ;; 8295bdcaa8d0Smrg esac 8296bdcaa8d0Smrgfi 8297bdcaa8d0Smrgif test x$ADMIN_MAN_DIR = x ; then 8298bdcaa8d0Smrg ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 8299bdcaa8d0Smrgfi 8300bdcaa8d0Smrg 8301bdcaa8d0Smrg 8302bdcaa8d0SmrgAC_SUBST([APP_MAN_SUFFIX]) 8303bdcaa8d0SmrgAC_SUBST([LIB_MAN_SUFFIX]) 8304bdcaa8d0SmrgAC_SUBST([FILE_MAN_SUFFIX]) 8305bdcaa8d0SmrgAC_SUBST([MISC_MAN_SUFFIX]) 8306bdcaa8d0SmrgAC_SUBST([DRIVER_MAN_SUFFIX]) 8307bdcaa8d0SmrgAC_SUBST([ADMIN_MAN_SUFFIX]) 8308bdcaa8d0SmrgAC_SUBST([APP_MAN_DIR]) 8309bdcaa8d0SmrgAC_SUBST([LIB_MAN_DIR]) 8310bdcaa8d0SmrgAC_SUBST([FILE_MAN_DIR]) 8311bdcaa8d0SmrgAC_SUBST([MISC_MAN_DIR]) 8312bdcaa8d0SmrgAC_SUBST([DRIVER_MAN_DIR]) 8313bdcaa8d0SmrgAC_SUBST([ADMIN_MAN_DIR]) 8314bdcaa8d0Smrg]) # XORG_MANPAGE_SECTIONS 8315bdcaa8d0Smrg 8316bdcaa8d0Smrg# XORG_CHECK_LINUXDOC 8317bdcaa8d0Smrg# ------------------- 8318bdcaa8d0Smrg# Minimum version: 1.0.0 8319bdcaa8d0Smrg# 8320bdcaa8d0Smrg# Defines the variable MAKE_TEXT if the necessary tools and 8321bdcaa8d0Smrg# files are found. $(MAKE_TEXT) blah.sgml will then produce blah.txt. 8322bdcaa8d0Smrg# Whether or not the necessary tools and files are found can be checked 8323bdcaa8d0Smrg# with the AM_CONDITIONAL "BUILD_LINUXDOC" 8324bdcaa8d0SmrgAC_DEFUN([XORG_CHECK_LINUXDOC],[ 832572313efbSmrgif test x$XORG_SGML_PATH = x ; then 832672313efbSmrg XORG_SGML_PATH=$prefix/share/sgml 832772313efbSmrgfi 8328bdcaa8d0SmrgHAVE_DEFS_ENT= 8329bdcaa8d0Smrg 833072313efbSmrgif test x"$cross_compiling" = x"yes" ; then 833172313efbSmrg HAVE_DEFS_ENT=no 833272313efbSmrgelse 833372313efbSmrg AC_CHECK_FILE([$XORG_SGML_PATH/X11/defs.ent], [HAVE_DEFS_ENT=yes]) 833472313efbSmrgfi 8335bdcaa8d0Smrg 8336bdcaa8d0SmrgAC_PATH_PROG(LINUXDOC, linuxdoc) 8337bdcaa8d0SmrgAC_PATH_PROG(PS2PDF, ps2pdf) 8338bdcaa8d0Smrg 8339bdcaa8d0SmrgAC_MSG_CHECKING([Whether to build documentation]) 8340bdcaa8d0Smrg 8341bdcaa8d0Smrgif test x$HAVE_DEFS_ENT != x && test x$LINUXDOC != x ; then 8342bdcaa8d0Smrg BUILDDOC=yes 8343bdcaa8d0Smrgelse 8344bdcaa8d0Smrg BUILDDOC=no 8345bdcaa8d0Smrgfi 8346bdcaa8d0Smrg 8347bdcaa8d0SmrgAM_CONDITIONAL(BUILD_LINUXDOC, [test x$BUILDDOC = xyes]) 8348bdcaa8d0Smrg 8349bdcaa8d0SmrgAC_MSG_RESULT([$BUILDDOC]) 8350bdcaa8d0Smrg 8351bdcaa8d0SmrgAC_MSG_CHECKING([Whether to build pdf documentation]) 8352bdcaa8d0Smrg 8353bdcaa8d0Smrgif test x$PS2PDF != x && test x$BUILD_PDFDOC != xno; then 8354bdcaa8d0Smrg BUILDPDFDOC=yes 8355bdcaa8d0Smrgelse 8356bdcaa8d0Smrg BUILDPDFDOC=no 8357bdcaa8d0Smrgfi 8358bdcaa8d0Smrg 8359bdcaa8d0SmrgAM_CONDITIONAL(BUILD_PDFDOC, [test x$BUILDPDFDOC = xyes]) 8360bdcaa8d0Smrg 8361bdcaa8d0SmrgAC_MSG_RESULT([$BUILDPDFDOC]) 8362bdcaa8d0Smrg 8363bdcaa8d0SmrgMAKE_TEXT="SGML_SEARCH_PATH=$XORG_SGML_PATH GROFF_NO_SGR=y $LINUXDOC -B txt" 8364bdcaa8d0SmrgMAKE_PS="SGML_SEARCH_PATH=$XORG_SGML_PATH $LINUXDOC -B latex --papersize=letter --output=ps" 8365bdcaa8d0SmrgMAKE_PDF="$PS2PDF" 8366bdcaa8d0SmrgMAKE_HTML="SGML_SEARCH_PATH=$XORG_SGML_PATH $LINUXDOC -B html --split=0" 8367bdcaa8d0Smrg 8368bdcaa8d0SmrgAC_SUBST(MAKE_TEXT) 8369bdcaa8d0SmrgAC_SUBST(MAKE_PS) 8370bdcaa8d0SmrgAC_SUBST(MAKE_PDF) 8371bdcaa8d0SmrgAC_SUBST(MAKE_HTML) 8372bdcaa8d0Smrg]) # XORG_CHECK_LINUXDOC 8373bdcaa8d0Smrg 8374bdcaa8d0Smrg# XORG_CHECK_DOCBOOK 8375bdcaa8d0Smrg# ------------------- 8376bdcaa8d0Smrg# Minimum version: 1.0.0 8377bdcaa8d0Smrg# 8378bdcaa8d0Smrg# Checks for the ability to build output formats from SGML DocBook source. 8379bdcaa8d0Smrg# For XXX in {TXT, PDF, PS, HTML}, the AM_CONDITIONAL "BUILD_XXXDOC" 8380bdcaa8d0Smrg# indicates whether the necessary tools and files are found and, if set, 8381bdcaa8d0Smrg# $(MAKE_XXX) blah.sgml will produce blah.xxx. 8382bdcaa8d0SmrgAC_DEFUN([XORG_CHECK_DOCBOOK],[ 838372313efbSmrgif test x$XORG_SGML_PATH = x ; then 838472313efbSmrg XORG_SGML_PATH=$prefix/share/sgml 838572313efbSmrgfi 8386bdcaa8d0SmrgHAVE_DEFS_ENT= 8387bdcaa8d0SmrgBUILDTXTDOC=no 8388bdcaa8d0SmrgBUILDPDFDOC=no 8389bdcaa8d0SmrgBUILDPSDOC=no 8390bdcaa8d0SmrgBUILDHTMLDOC=no 8391bdcaa8d0Smrg 8392bdcaa8d0SmrgAC_CHECK_FILE([$XORG_SGML_PATH/X11/defs.ent], [HAVE_DEFS_ENT=yes]) 8393bdcaa8d0Smrg 8394bdcaa8d0SmrgAC_PATH_PROG(DOCBOOKPS, docbook2ps) 8395bdcaa8d0SmrgAC_PATH_PROG(DOCBOOKPDF, docbook2pdf) 8396bdcaa8d0SmrgAC_PATH_PROG(DOCBOOKHTML, docbook2html) 8397bdcaa8d0SmrgAC_PATH_PROG(DOCBOOKTXT, docbook2txt) 8398bdcaa8d0Smrg 8399bdcaa8d0SmrgAC_MSG_CHECKING([Whether to build text documentation]) 8400bdcaa8d0Smrgif test x$HAVE_DEFS_ENT != x && test x$DOCBOOKTXT != x && 8401bdcaa8d0Smrg test x$BUILD_TXTDOC != xno; then 8402bdcaa8d0Smrg BUILDTXTDOC=yes 8403bdcaa8d0Smrgfi 8404bdcaa8d0SmrgAM_CONDITIONAL(BUILD_TXTDOC, [test x$BUILDTXTDOC = xyes]) 8405bdcaa8d0SmrgAC_MSG_RESULT([$BUILDTXTDOC]) 8406bdcaa8d0Smrg 8407bdcaa8d0SmrgAC_MSG_CHECKING([Whether to build PDF documentation]) 8408bdcaa8d0Smrgif test x$HAVE_DEFS_ENT != x && test x$DOCBOOKPDF != x && 8409bdcaa8d0Smrg test x$BUILD_PDFDOC != xno; then 8410bdcaa8d0Smrg BUILDPDFDOC=yes 8411bdcaa8d0Smrgfi 8412bdcaa8d0SmrgAM_CONDITIONAL(BUILD_PDFDOC, [test x$BUILDPDFDOC = xyes]) 8413bdcaa8d0SmrgAC_MSG_RESULT([$BUILDPDFDOC]) 8414bdcaa8d0Smrg 8415bdcaa8d0SmrgAC_MSG_CHECKING([Whether to build PostScript documentation]) 8416bdcaa8d0Smrgif test x$HAVE_DEFS_ENT != x && test x$DOCBOOKPS != x && 8417bdcaa8d0Smrg test x$BUILD_PSDOC != xno; then 8418bdcaa8d0Smrg BUILDPSDOC=yes 8419bdcaa8d0Smrgfi 8420bdcaa8d0SmrgAM_CONDITIONAL(BUILD_PSDOC, [test x$BUILDPSDOC = xyes]) 8421bdcaa8d0SmrgAC_MSG_RESULT([$BUILDPSDOC]) 8422bdcaa8d0Smrg 8423bdcaa8d0SmrgAC_MSG_CHECKING([Whether to build HTML documentation]) 8424bdcaa8d0Smrgif test x$HAVE_DEFS_ENT != x && test x$DOCBOOKHTML != x && 8425bdcaa8d0Smrg test x$BUILD_HTMLDOC != xno; then 8426bdcaa8d0Smrg BUILDHTMLDOC=yes 8427bdcaa8d0Smrgfi 8428bdcaa8d0SmrgAM_CONDITIONAL(BUILD_HTMLDOC, [test x$BUILDHTMLDOC = xyes]) 8429bdcaa8d0SmrgAC_MSG_RESULT([$BUILDHTMLDOC]) 8430bdcaa8d0Smrg 8431bdcaa8d0SmrgMAKE_TEXT="SGML_SEARCH_PATH=$XORG_SGML_PATH $DOCBOOKTXT" 8432bdcaa8d0SmrgMAKE_PS="SGML_SEARCH_PATH=$XORG_SGML_PATH $DOCBOOKPS" 8433bdcaa8d0SmrgMAKE_PDF="SGML_SEARCH_PATH=$XORG_SGML_PATH $DOCBOOKPDF" 8434bdcaa8d0SmrgMAKE_HTML="SGML_SEARCH_PATH=$XORG_SGML_PATH $DOCBOOKHTML" 8435bdcaa8d0Smrg 8436bdcaa8d0SmrgAC_SUBST(MAKE_TEXT) 8437bdcaa8d0SmrgAC_SUBST(MAKE_PS) 8438bdcaa8d0SmrgAC_SUBST(MAKE_PDF) 8439bdcaa8d0SmrgAC_SUBST(MAKE_HTML) 8440bdcaa8d0Smrg]) # XORG_CHECK_DOCBOOK 8441bdcaa8d0Smrg 8442bdcaa8d0Smrg# XORG_CHECK_MALLOC_ZERO 8443bdcaa8d0Smrg# ---------------------- 8444bdcaa8d0Smrg# Minimum version: 1.0.0 8445bdcaa8d0Smrg# 8446bdcaa8d0Smrg# Defines {MALLOC,XMALLOC,XTMALLOC}_ZERO_CFLAGS appropriately if 8447bdcaa8d0Smrg# malloc(0) returns NULL. Packages should add one of these cflags to 8448bdcaa8d0Smrg# their AM_CFLAGS (or other appropriate *_CFLAGS) to use them. 8449bdcaa8d0SmrgAC_DEFUN([XORG_CHECK_MALLOC_ZERO],[ 8450bdcaa8d0SmrgAC_ARG_ENABLE(malloc0returnsnull, 8451bdcaa8d0Smrg AC_HELP_STRING([--enable-malloc0returnsnull], 8452bdcaa8d0Smrg [malloc(0) returns NULL (default: auto)]), 8453bdcaa8d0Smrg [MALLOC_ZERO_RETURNS_NULL=$enableval], 8454bdcaa8d0Smrg [MALLOC_ZERO_RETURNS_NULL=auto]) 8455bdcaa8d0Smrg 8456bdcaa8d0SmrgAC_MSG_CHECKING([whether malloc(0) returns NULL]) 8457bdcaa8d0Smrgif test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then 8458bdcaa8d0Smrg AC_RUN_IFELSE([ 8459bdcaa8d0Smrgchar *malloc(); 8460bdcaa8d0Smrgchar *realloc(); 8461bdcaa8d0Smrgchar *calloc(); 8462bdcaa8d0Smrgmain() { 8463bdcaa8d0Smrg char *m0, *r0, *c0, *p; 8464bdcaa8d0Smrg m0 = malloc(0); 8465bdcaa8d0Smrg p = malloc(10); 8466bdcaa8d0Smrg r0 = realloc(p,0); 8467bdcaa8d0Smrg c0 = calloc(0); 8468bdcaa8d0Smrg exit(m0 == 0 || r0 == 0 || c0 == 0 ? 0 : 1); 8469bdcaa8d0Smrg}], 8470bdcaa8d0Smrg [MALLOC_ZERO_RETURNS_NULL=yes], 8471bdcaa8d0Smrg [MALLOC_ZERO_RETURNS_NULL=no]) 8472bdcaa8d0Smrgfi 8473bdcaa8d0SmrgAC_MSG_RESULT([$MALLOC_ZERO_RETURNS_NULL]) 8474bdcaa8d0Smrg 8475bdcaa8d0Smrgif test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then 8476bdcaa8d0Smrg MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL" 8477bdcaa8d0Smrg XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS 8478bdcaa8d0Smrg XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC" 8479bdcaa8d0Smrgelse 8480bdcaa8d0Smrg MALLOC_ZERO_CFLAGS="" 8481bdcaa8d0Smrg XMALLOC_ZERO_CFLAGS="" 8482bdcaa8d0Smrg XTMALLOC_ZERO_CFLAGS="" 8483bdcaa8d0Smrgfi 8484bdcaa8d0Smrg 8485bdcaa8d0SmrgAC_SUBST([MALLOC_ZERO_CFLAGS]) 8486bdcaa8d0SmrgAC_SUBST([XMALLOC_ZERO_CFLAGS]) 8487bdcaa8d0SmrgAC_SUBST([XTMALLOC_ZERO_CFLAGS]) 8488bdcaa8d0Smrg]) # XORG_CHECK_MALLOC_ZERO 8489bdcaa8d0Smrg 8490bdcaa8d0Smrg# XORG_WITH_LINT() 8491bdcaa8d0Smrg# ---------------- 8492bdcaa8d0Smrg# Minimum version: 1.1.0 8493bdcaa8d0Smrg# 8494bdcaa8d0Smrg# Sets up flags for source checkers such as lint and sparse if --with-lint 8495bdcaa8d0Smrg# is specified. (Use --with-lint=sparse for sparse.) 8496bdcaa8d0Smrg# Sets $LINT to name of source checker passed with --with-lint (default: lint) 8497bdcaa8d0Smrg# Sets $LINT_FLAGS to flags to pass to source checker 8498bdcaa8d0Smrg# Sets LINT automake conditional if enabled (default: disabled) 8499bdcaa8d0Smrg# 8500bdcaa8d0SmrgAC_DEFUN([XORG_WITH_LINT],[ 8501bdcaa8d0Smrg 8502bdcaa8d0Smrg# Allow checking code with lint, sparse, etc. 8503bdcaa8d0SmrgAC_ARG_WITH(lint, [AC_HELP_STRING([--with-lint], 8504bdcaa8d0Smrg [Use a lint-style source code checker (default: disabled)])], 8505bdcaa8d0Smrg [use_lint=$withval], [use_lint=no]) 8506bdcaa8d0Smrgif test "x$use_lint" = "xyes" ; then 8507bdcaa8d0Smrg LINT="lint" 8508bdcaa8d0Smrgelse 8509bdcaa8d0Smrg LINT="$use_lint" 8510bdcaa8d0Smrgfi 8511bdcaa8d0Smrgif test "x$LINT_FLAGS" = "x" -a "x$LINT" != "xno" ; then 8512bdcaa8d0Smrg case $LINT in 8513bdcaa8d0Smrg lint|*/lint) 8514bdcaa8d0Smrg case $host_os in 8515bdcaa8d0Smrg solaris*) 8516bdcaa8d0Smrg LINT_FLAGS="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2" 8517bdcaa8d0Smrg ;; 8518bdcaa8d0Smrg esac 8519bdcaa8d0Smrg ;; 8520bdcaa8d0Smrg esac 8521bdcaa8d0Smrgfi 8522bdcaa8d0Smrg 8523bdcaa8d0SmrgAC_SUBST(LINT) 8524bdcaa8d0SmrgAC_SUBST(LINT_FLAGS) 8525bdcaa8d0SmrgAM_CONDITIONAL(LINT, [test x$LINT != xno]) 8526bdcaa8d0Smrg 8527bdcaa8d0Smrg]) # XORG_WITH_LINT 8528bdcaa8d0Smrg 8529bdcaa8d0Smrg# XORG_LINT_LIBRARY(LIBNAME) 8530bdcaa8d0Smrg# -------------------------- 8531bdcaa8d0Smrg# Minimum version: 1.1.0 8532bdcaa8d0Smrg# 8533bdcaa8d0Smrg# Sets up flags for building lint libraries for checking programs that call 8534bdcaa8d0Smrg# functions in the library. 8535bdcaa8d0Smrg# Disabled by default, enable with --enable-lint-library 8536bdcaa8d0Smrg# Sets: 8537bdcaa8d0Smrg# @LINTLIB@ - name of lint library file to make 8538bdcaa8d0Smrg# MAKE_LINT_LIB - automake conditional 8539bdcaa8d0Smrg# 8540bdcaa8d0Smrg 8541bdcaa8d0SmrgAC_DEFUN([XORG_LINT_LIBRARY],[ 8542bdcaa8d0SmrgAC_REQUIRE([XORG_WITH_LINT]) 8543bdcaa8d0Smrg# Build lint "library" for more indepth checks of programs calling this library 8544bdcaa8d0SmrgAC_ARG_ENABLE(lint-library, [AC_HELP_STRING([--enable-lint-library], 8545bdcaa8d0Smrg [Create lint library (default: disabled)])], 8546bdcaa8d0Smrg [make_lint_lib=$enableval], [make_lint_lib=no]) 8547bdcaa8d0Smrgif test "x$make_lint_lib" != "xno" ; then 8548bdcaa8d0Smrg if test "x$LINT" = "xno" ; then 8549bdcaa8d0Smrg AC_MSG_ERROR([Cannot make lint library without --with-lint]) 8550bdcaa8d0Smrg fi 8551bdcaa8d0Smrg if test "x$make_lint_lib" = "xyes" ; then 8552bdcaa8d0Smrg LINTLIB=llib-l$1.ln 8553bdcaa8d0Smrg else 8554bdcaa8d0Smrg LINTLIB=$make_lint_lib 8555bdcaa8d0Smrg fi 8556bdcaa8d0Smrgfi 8557bdcaa8d0SmrgAC_SUBST(LINTLIB) 8558bdcaa8d0SmrgAM_CONDITIONAL(MAKE_LINT_LIB, [test x$make_lint_lib != xno]) 8559bdcaa8d0Smrg 8560bdcaa8d0Smrg]) # XORG_LINT_LIBRARY 8561bdcaa8d0Smrg 856272313efbSmrg# XORG_CWARNFLAGS 856372313efbSmrg# --------------- 856472313efbSmrg# Minimum version: 1.2.0 856572313efbSmrg# 856672313efbSmrg# Defines CWARNFLAGS to enable C compiler warnings. 856772313efbSmrg# 856872313efbSmrgAC_DEFUN([XORG_CWARNFLAGS], [ 856972313efbSmrgAC_REQUIRE([AC_PROG_CC]) 857072313efbSmrgif test "x$GCC" = xyes ; then 857172313efbSmrg CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \ 857272313efbSmrg-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \ 857372313efbSmrg-Wbad-function-cast" 857472313efbSmrg case `gcc -dumpversion` in 857572313efbSmrg 3.4.* | 4.*) 857672313efbSmrg CWARNFLAGS+=" -Wold-style-definition -Wdeclaration-after-statement" 857772313efbSmrg ;; 857872313efbSmrg esac 857972313efbSmrgelse 858072313efbSmrg AC_CHECK_DECL([__SUNPRO_C], [SUNCC="yes"], [SUNCC="no"]) 858172313efbSmrg if test "x$SUNCC" = "xyes"; then 858272313efbSmrg CWARNFLAGS="-v" 858372313efbSmrg fi 858472313efbSmrgfi 858572313efbSmrgAC_SUBST(CWARNFLAGS) 858672313efbSmrg]) # XORG_CWARNFLAGS 8587bdcaa8d0Smrgdnl Copyright 2005 Red Hat, Inc 8588bdcaa8d0Smrgdnl 8589bdcaa8d0Smrgdnl Permission to use, copy, modify, distribute, and sell this software and its 8590bdcaa8d0Smrgdnl documentation for any purpose is hereby granted without fee, provided that 8591bdcaa8d0Smrgdnl the above copyright notice appear in all copies and that both that 8592bdcaa8d0Smrgdnl copyright notice and this permission notice appear in supporting 8593bdcaa8d0Smrgdnl documentation. 8594bdcaa8d0Smrgdnl 8595bdcaa8d0Smrgdnl The above copyright notice and this permission notice shall be included 8596bdcaa8d0Smrgdnl in all copies or substantial portions of the Software. 8597bdcaa8d0Smrgdnl 8598bdcaa8d0Smrgdnl THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 8599bdcaa8d0Smrgdnl OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 8600bdcaa8d0Smrgdnl MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 8601bdcaa8d0Smrgdnl IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR 8602bdcaa8d0Smrgdnl OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 8603bdcaa8d0Smrgdnl ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 8604bdcaa8d0Smrgdnl OTHER DEALINGS IN THE SOFTWARE. 8605bdcaa8d0Smrgdnl 8606bdcaa8d0Smrgdnl Except as contained in this notice, the name of the copyright holders shall 8607bdcaa8d0Smrgdnl not be used in advertising or otherwise to promote the sale, use or 8608bdcaa8d0Smrgdnl other dealings in this Software without prior written authorization 8609bdcaa8d0Smrgdnl from the copyright holders. 8610bdcaa8d0Smrgdnl 8611bdcaa8d0Smrg 8612bdcaa8d0Smrg# XORG_RELEASE_VERSION 8613bdcaa8d0Smrg# -------------------- 8614bdcaa8d0Smrg# Adds --with/without-release-string and changes the PACKAGE and 8615bdcaa8d0Smrg# PACKAGE_TARNAME to use "$PACKAGE{_TARNAME}-$RELEASE_VERSION". If 8616bdcaa8d0Smrg# no option is given, PACKAGE and PACKAGE_TARNAME are unchanged. Also 8617bdcaa8d0Smrg# defines PACKAGE_VERSION_{MAJOR,MINOR,PATCHLEVEL} for modules to use. 8618bdcaa8d0Smrg 8619bdcaa8d0SmrgAC_DEFUN([XORG_RELEASE_VERSION],[ 8620bdcaa8d0Smrg AC_ARG_WITH(release-version, 8621bdcaa8d0Smrg AC_HELP_STRING([--with-release-version=STRING], 8622bdcaa8d0Smrg [Use release version string in package name]), 8623bdcaa8d0Smrg [RELEASE_VERSION="$withval"], 8624bdcaa8d0Smrg [RELEASE_VERSION=""]) 8625bdcaa8d0Smrg if test "x$RELEASE_VERSION" != "x"; then 8626bdcaa8d0Smrg PACKAGE="$PACKAGE-$RELEASE_VERSION" 8627bdcaa8d0Smrg PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION" 8628bdcaa8d0Smrg AC_MSG_NOTICE([Building with package name set to $PACKAGE]) 8629bdcaa8d0Smrg fi 8630bdcaa8d0Smrg AC_DEFINE_UNQUOTED([PACKAGE_VERSION_MAJOR], 863172313efbSmrg [`echo $PACKAGE_VERSION | cut -d . -f 1`], 8632bdcaa8d0Smrg [Major version of this package]) 863372313efbSmrg PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 8634bdcaa8d0Smrg if test "x$PVM" = "x"; then 8635bdcaa8d0Smrg PVM="0" 8636bdcaa8d0Smrg fi 8637bdcaa8d0Smrg AC_DEFINE_UNQUOTED([PACKAGE_VERSION_MINOR], 8638bdcaa8d0Smrg [$PVM], 8639bdcaa8d0Smrg [Minor version of this package]) 864072313efbSmrg PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 8641bdcaa8d0Smrg if test "x$PVP" = "x"; then 8642bdcaa8d0Smrg PVP="0" 8643bdcaa8d0Smrg fi 8644bdcaa8d0Smrg AC_DEFINE_UNQUOTED([PACKAGE_VERSION_PATCHLEVEL], 8645bdcaa8d0Smrg [$PVP], 8646bdcaa8d0Smrg [Patch version of this package]) 8647bdcaa8d0Smrg]) 8648bdcaa8d0Smrg 864972313efbSmrg# XORG_CHANGELOG() 865072313efbSmrg# ---------------- 865172313efbSmrg# Minimum version: 1.2.0 865272313efbSmrg# 865372313efbSmrg# Defines the variable CHANGELOG_CMD as the command to generate 865472313efbSmrg# ChangeLog from git. 865572313efbSmrg# 865672313efbSmrg# Arrange that distcleancheck ignores ChangeLog left over by distclean. 865772313efbSmrg# 865872313efbSmrgAC_DEFUN([XORG_CHANGELOG], [ 865972313efbSmrgCHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > .changelog.tmp && \ 866072313efbSmrgmv .changelog.tmp ChangeLog) || (rm -f .changelog.tmp; touch ChangeLog; \ 866172313efbSmrgecho 'git directory not found: installing possibly empty changelog.' >&2)" 866272313efbSmrgAC_SUBST([CHANGELOG_CMD]) 866372313efbSmrgAC_SUBST([distcleancheck_listfiles], ['find . -type f ! -name ChangeLog -print']) 866472313efbSmrg]) # XORG_CHANGELOG 866572313efbSmrg 866672313efbSmrgdnl Copyright 2005 Red Hat, Inc 866772313efbSmrgdnl 866872313efbSmrgdnl Permission to use, copy, modify, distribute, and sell this software and its 866972313efbSmrgdnl documentation for any purpose is hereby granted without fee, provided that 867072313efbSmrgdnl the above copyright notice appear in all copies and that both that 867172313efbSmrgdnl copyright notice and this permission notice appear in supporting 867272313efbSmrgdnl documentation. 867372313efbSmrgdnl 867472313efbSmrgdnl The above copyright notice and this permission notice shall be included 867572313efbSmrgdnl in all copies or substantial portions of the Software. 867672313efbSmrgdnl 867772313efbSmrgdnl THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 867872313efbSmrgdnl OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 867972313efbSmrgdnl MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 868072313efbSmrgdnl IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR 868172313efbSmrgdnl OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 868272313efbSmrgdnl ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 868372313efbSmrgdnl OTHER DEALINGS IN THE SOFTWARE. 868472313efbSmrgdnl 868572313efbSmrgdnl Except as contained in this notice, the name of the copyright holders shall 868672313efbSmrgdnl not be used in advertising or otherwise to promote the sale, use or 868772313efbSmrgdnl other dealings in this Software without prior written authorization 868872313efbSmrgdnl from the copyright holders. 868972313efbSmrgdnl 869072313efbSmrg 869172313efbSmrg# XORG_DRIVER_CHECK_EXT() 869272313efbSmrg# -------------------------- 869372313efbSmrg# Checks for the $1 define in xorg-server.h (from the sdk). If it 869472313efbSmrg# is defined, then add $1 to $REQUIRED_MODULES. 869572313efbSmrg 869672313efbSmrgAC_DEFUN([XORG_DRIVER_CHECK_EXT],[ 869772313efbSmrg SAVE_CFLAGS="$CFLAGS" 869872313efbSmrg CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`" 869972313efbSmrg AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ 870072313efbSmrg#include "xorg-server.h" 870172313efbSmrg#if !defined $1 870272313efbSmrg#error $1 not defined 870372313efbSmrg#endif 870472313efbSmrg ]])], 870572313efbSmrg [_EXT_CHECK=yes], 870672313efbSmrg [_EXT_CHECK=no]) 870772313efbSmrg CFLAGS="$SAVE_CFLAGS" 870872313efbSmrg AC_MSG_CHECKING([if $1 is defined]) 870972313efbSmrg AC_MSG_RESULT([$_EXT_CHECK]) 871072313efbSmrg if test "$_EXT_CHECK" != no; then 871172313efbSmrg REQUIRED_MODULES="$REQUIRED_MODULES $2" 871272313efbSmrg fi 871372313efbSmrg]) 871472313efbSmrg 871572313efbSmrg# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 8716bdcaa8d0Smrg# 8717bdcaa8d0Smrg# This file is free software; the Free Software Foundation 8718bdcaa8d0Smrg# gives unlimited permission to copy and/or distribute it, 8719bdcaa8d0Smrg# with or without modifications, as long as this notice is preserved. 8720bdcaa8d0Smrg 8721bdcaa8d0Smrg# AM_AUTOMAKE_VERSION(VERSION) 8722bdcaa8d0Smrg# ---------------------------- 8723bdcaa8d0Smrg# Automake X.Y traces this macro to ensure aclocal.m4 has been 8724bdcaa8d0Smrg# generated from the m4 files accompanying Automake X.Y. 872572313efbSmrg# (This private macro should not be called outside this file.) 872672313efbSmrgAC_DEFUN([AM_AUTOMAKE_VERSION], 872772313efbSmrg[am__api_version='1.10' 872872313efbSmrgdnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to 872972313efbSmrgdnl require some minimum version. Point them to the right macro. 873072313efbSmrgm4_if([$1], [1.10.2], [], 873172313efbSmrg [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl 873272313efbSmrg]) 873372313efbSmrg 873472313efbSmrg# _AM_AUTOCONF_VERSION(VERSION) 873572313efbSmrg# ----------------------------- 873672313efbSmrg# aclocal traces this macro to find the Autoconf version. 873772313efbSmrg# This is a private macro too. Using m4_define simplifies 873872313efbSmrg# the logic in aclocal, which can simply ignore this definition. 873972313efbSmrgm4_define([_AM_AUTOCONF_VERSION], []) 8740bdcaa8d0Smrg 8741bdcaa8d0Smrg# AM_SET_CURRENT_AUTOMAKE_VERSION 8742bdcaa8d0Smrg# ------------------------------- 874372313efbSmrg# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. 874472313efbSmrg# This function is AC_REQUIREd by AM_INIT_AUTOMAKE. 8745bdcaa8d0SmrgAC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], 874672313efbSmrg[AM_AUTOMAKE_VERSION([1.10.2])dnl 874772313efbSmrgm4_ifndef([AC_AUTOCONF_VERSION], 874872313efbSmrg [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl 874972313efbSmrg_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) 8750bdcaa8d0Smrg 8751bdcaa8d0Smrg# AM_AUX_DIR_EXPAND -*- Autoconf -*- 8752bdcaa8d0Smrg 8753bdcaa8d0Smrg# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. 8754bdcaa8d0Smrg# 8755bdcaa8d0Smrg# This file is free software; the Free Software Foundation 8756bdcaa8d0Smrg# gives unlimited permission to copy and/or distribute it, 8757bdcaa8d0Smrg# with or without modifications, as long as this notice is preserved. 8758bdcaa8d0Smrg 8759bdcaa8d0Smrg# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets 8760bdcaa8d0Smrg# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to 8761bdcaa8d0Smrg# `$srcdir', `$srcdir/..', or `$srcdir/../..'. 8762bdcaa8d0Smrg# 8763bdcaa8d0Smrg# Of course, Automake must honor this variable whenever it calls a 8764bdcaa8d0Smrg# tool from the auxiliary directory. The problem is that $srcdir (and 8765bdcaa8d0Smrg# therefore $ac_aux_dir as well) can be either absolute or relative, 8766bdcaa8d0Smrg# depending on how configure is run. This is pretty annoying, since 8767bdcaa8d0Smrg# it makes $ac_aux_dir quite unusable in subdirectories: in the top 8768bdcaa8d0Smrg# source directory, any form will work fine, but in subdirectories a 8769bdcaa8d0Smrg# relative path needs to be adjusted first. 8770bdcaa8d0Smrg# 8771bdcaa8d0Smrg# $ac_aux_dir/missing 8772bdcaa8d0Smrg# fails when called from a subdirectory if $ac_aux_dir is relative 8773bdcaa8d0Smrg# $top_srcdir/$ac_aux_dir/missing 8774bdcaa8d0Smrg# fails if $ac_aux_dir is absolute, 8775bdcaa8d0Smrg# fails when called from a subdirectory in a VPATH build with 8776bdcaa8d0Smrg# a relative $ac_aux_dir 8777bdcaa8d0Smrg# 8778bdcaa8d0Smrg# The reason of the latter failure is that $top_srcdir and $ac_aux_dir 8779bdcaa8d0Smrg# are both prefixed by $srcdir. In an in-source build this is usually 8780bdcaa8d0Smrg# harmless because $srcdir is `.', but things will broke when you 8781bdcaa8d0Smrg# start a VPATH build or use an absolute $srcdir. 8782bdcaa8d0Smrg# 8783bdcaa8d0Smrg# So we could use something similar to $top_srcdir/$ac_aux_dir/missing, 8784bdcaa8d0Smrg# iff we strip the leading $srcdir from $ac_aux_dir. That would be: 8785bdcaa8d0Smrg# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` 8786bdcaa8d0Smrg# and then we would define $MISSING as 8787bdcaa8d0Smrg# MISSING="\${SHELL} $am_aux_dir/missing" 8788bdcaa8d0Smrg# This will work as long as MISSING is not called from configure, because 8789bdcaa8d0Smrg# unfortunately $(top_srcdir) has no meaning in configure. 8790bdcaa8d0Smrg# However there are other variables, like CC, which are often used in 8791bdcaa8d0Smrg# configure, and could therefore not use this "fixed" $ac_aux_dir. 8792bdcaa8d0Smrg# 8793bdcaa8d0Smrg# Another solution, used here, is to always expand $ac_aux_dir to an 8794bdcaa8d0Smrg# absolute PATH. The drawback is that using absolute paths prevent a 8795bdcaa8d0Smrg# configured tree to be moved without reconfiguration. 8796bdcaa8d0Smrg 8797bdcaa8d0SmrgAC_DEFUN([AM_AUX_DIR_EXPAND], 8798bdcaa8d0Smrg[dnl Rely on autoconf to set up CDPATH properly. 8799bdcaa8d0SmrgAC_PREREQ([2.50])dnl 8800bdcaa8d0Smrg# expand $ac_aux_dir to an absolute path 8801bdcaa8d0Smrgam_aux_dir=`cd $ac_aux_dir && pwd` 8802bdcaa8d0Smrg]) 8803bdcaa8d0Smrg 8804bdcaa8d0Smrg# AM_CONDITIONAL -*- Autoconf -*- 8805bdcaa8d0Smrg 880672313efbSmrg# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006 8807bdcaa8d0Smrg# Free Software Foundation, Inc. 8808bdcaa8d0Smrg# 8809bdcaa8d0Smrg# This file is free software; the Free Software Foundation 8810bdcaa8d0Smrg# gives unlimited permission to copy and/or distribute it, 8811bdcaa8d0Smrg# with or without modifications, as long as this notice is preserved. 8812bdcaa8d0Smrg 881372313efbSmrg# serial 8 8814bdcaa8d0Smrg 8815bdcaa8d0Smrg# AM_CONDITIONAL(NAME, SHELL-CONDITION) 8816bdcaa8d0Smrg# ------------------------------------- 8817bdcaa8d0Smrg# Define a conditional. 8818bdcaa8d0SmrgAC_DEFUN([AM_CONDITIONAL], 8819bdcaa8d0Smrg[AC_PREREQ(2.52)dnl 8820bdcaa8d0Smrg ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], 8821bdcaa8d0Smrg [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl 882272313efbSmrgAC_SUBST([$1_TRUE])dnl 882372313efbSmrgAC_SUBST([$1_FALSE])dnl 882472313efbSmrg_AM_SUBST_NOTMAKE([$1_TRUE])dnl 882572313efbSmrg_AM_SUBST_NOTMAKE([$1_FALSE])dnl 8826bdcaa8d0Smrgif $2; then 8827bdcaa8d0Smrg $1_TRUE= 8828bdcaa8d0Smrg $1_FALSE='#' 8829bdcaa8d0Smrgelse 8830bdcaa8d0Smrg $1_TRUE='#' 8831bdcaa8d0Smrg $1_FALSE= 8832bdcaa8d0Smrgfi 8833bdcaa8d0SmrgAC_CONFIG_COMMANDS_PRE( 8834bdcaa8d0Smrg[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then 8835bdcaa8d0Smrg AC_MSG_ERROR([[conditional "$1" was never defined. 8836bdcaa8d0SmrgUsually this means the macro was only invoked conditionally.]]) 8837bdcaa8d0Smrgfi])]) 8838bdcaa8d0Smrg 883972313efbSmrg# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 8840bdcaa8d0Smrg# Free Software Foundation, Inc. 8841bdcaa8d0Smrg# 8842bdcaa8d0Smrg# This file is free software; the Free Software Foundation 8843bdcaa8d0Smrg# gives unlimited permission to copy and/or distribute it, 8844bdcaa8d0Smrg# with or without modifications, as long as this notice is preserved. 8845bdcaa8d0Smrg 884672313efbSmrg# serial 9 8847bdcaa8d0Smrg 8848bdcaa8d0Smrg# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be 8849bdcaa8d0Smrg# written in clear, in which case automake, when reading aclocal.m4, 8850bdcaa8d0Smrg# will think it sees a *use*, and therefore will trigger all it's 8851bdcaa8d0Smrg# C support machinery. Also note that it means that autoscan, seeing 8852bdcaa8d0Smrg# CC etc. in the Makefile, will ask for an AC_PROG_CC use... 8853bdcaa8d0Smrg 8854bdcaa8d0Smrg 8855bdcaa8d0Smrg# _AM_DEPENDENCIES(NAME) 8856bdcaa8d0Smrg# ---------------------- 8857bdcaa8d0Smrg# See how the compiler implements dependency checking. 8858bdcaa8d0Smrg# NAME is "CC", "CXX", "GCJ", or "OBJC". 8859bdcaa8d0Smrg# We try a few techniques and use that to set a single cache variable. 8860bdcaa8d0Smrg# 8861bdcaa8d0Smrg# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was 8862bdcaa8d0Smrg# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular 8863bdcaa8d0Smrg# dependency, and given that the user is not expected to run this macro, 8864bdcaa8d0Smrg# just rely on AC_PROG_CC. 8865bdcaa8d0SmrgAC_DEFUN([_AM_DEPENDENCIES], 8866bdcaa8d0Smrg[AC_REQUIRE([AM_SET_DEPDIR])dnl 8867bdcaa8d0SmrgAC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl 8868bdcaa8d0SmrgAC_REQUIRE([AM_MAKE_INCLUDE])dnl 8869bdcaa8d0SmrgAC_REQUIRE([AM_DEP_TRACK])dnl 8870bdcaa8d0Smrg 8871bdcaa8d0Smrgifelse([$1], CC, [depcc="$CC" am_compiler_list=], 8872bdcaa8d0Smrg [$1], CXX, [depcc="$CXX" am_compiler_list=], 8873bdcaa8d0Smrg [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], 887472313efbSmrg [$1], UPC, [depcc="$UPC" am_compiler_list=], 8875bdcaa8d0Smrg [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], 8876bdcaa8d0Smrg [depcc="$$1" am_compiler_list=]) 8877bdcaa8d0Smrg 8878bdcaa8d0SmrgAC_CACHE_CHECK([dependency style of $depcc], 8879bdcaa8d0Smrg [am_cv_$1_dependencies_compiler_type], 8880bdcaa8d0Smrg[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 8881bdcaa8d0Smrg # We make a subdir and do the tests there. Otherwise we can end up 8882bdcaa8d0Smrg # making bogus files that we don't know about and never remove. For 8883bdcaa8d0Smrg # instance it was reported that on HP-UX the gcc test will end up 8884bdcaa8d0Smrg # making a dummy file named `D' -- because `-MD' means `put the output 8885bdcaa8d0Smrg # in D'. 8886bdcaa8d0Smrg mkdir conftest.dir 8887bdcaa8d0Smrg # Copy depcomp to subdir because otherwise we won't find it if we're 8888bdcaa8d0Smrg # using a relative directory. 8889bdcaa8d0Smrg cp "$am_depcomp" conftest.dir 8890bdcaa8d0Smrg cd conftest.dir 8891bdcaa8d0Smrg # We will build objects and dependencies in a subdirectory because 8892bdcaa8d0Smrg # it helps to detect inapplicable dependency modes. For instance 8893bdcaa8d0Smrg # both Tru64's cc and ICC support -MD to output dependencies as a 8894bdcaa8d0Smrg # side effect of compilation, but ICC will put the dependencies in 8895bdcaa8d0Smrg # the current directory while Tru64 will put them in the object 8896bdcaa8d0Smrg # directory. 8897bdcaa8d0Smrg mkdir sub 8898bdcaa8d0Smrg 8899bdcaa8d0Smrg am_cv_$1_dependencies_compiler_type=none 8900bdcaa8d0Smrg if test "$am_compiler_list" = ""; then 8901bdcaa8d0Smrg am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` 8902bdcaa8d0Smrg fi 8903bdcaa8d0Smrg for depmode in $am_compiler_list; do 8904bdcaa8d0Smrg # Setup a source with many dependencies, because some compilers 8905bdcaa8d0Smrg # like to wrap large dependency lists on column 80 (with \), and 8906bdcaa8d0Smrg # we should not choose a depcomp mode which is confused by this. 8907bdcaa8d0Smrg # 8908bdcaa8d0Smrg # We need to recreate these files for each test, as the compiler may 8909bdcaa8d0Smrg # overwrite some of them when testing with obscure command lines. 8910bdcaa8d0Smrg # This happens at least with the AIX C compiler. 8911bdcaa8d0Smrg : > sub/conftest.c 8912bdcaa8d0Smrg for i in 1 2 3 4 5 6; do 8913bdcaa8d0Smrg echo '#include "conftst'$i'.h"' >> sub/conftest.c 8914bdcaa8d0Smrg # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 8915bdcaa8d0Smrg # Solaris 8's {/usr,}/bin/sh. 8916bdcaa8d0Smrg touch sub/conftst$i.h 8917bdcaa8d0Smrg done 8918bdcaa8d0Smrg echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 8919bdcaa8d0Smrg 8920bdcaa8d0Smrg case $depmode in 8921bdcaa8d0Smrg nosideeffect) 8922bdcaa8d0Smrg # after this tag, mechanisms are not by side-effect, so they'll 8923bdcaa8d0Smrg # only be used when explicitly requested 8924bdcaa8d0Smrg if test "x$enable_dependency_tracking" = xyes; then 8925bdcaa8d0Smrg continue 8926bdcaa8d0Smrg else 8927bdcaa8d0Smrg break 8928bdcaa8d0Smrg fi 8929bdcaa8d0Smrg ;; 8930bdcaa8d0Smrg none) break ;; 8931bdcaa8d0Smrg esac 8932bdcaa8d0Smrg # We check with `-c' and `-o' for the sake of the "dashmstdout" 8933bdcaa8d0Smrg # mode. It turns out that the SunPro C++ compiler does not properly 8934bdcaa8d0Smrg # handle `-M -o', and we need to detect this. 8935bdcaa8d0Smrg if depmode=$depmode \ 8936bdcaa8d0Smrg source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 8937bdcaa8d0Smrg depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 8938bdcaa8d0Smrg $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 8939bdcaa8d0Smrg >/dev/null 2>conftest.err && 894072313efbSmrg grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 8941bdcaa8d0Smrg grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 8942bdcaa8d0Smrg grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 8943bdcaa8d0Smrg ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 8944bdcaa8d0Smrg # icc doesn't choke on unknown options, it will just issue warnings 8945bdcaa8d0Smrg # or remarks (even with -Werror). So we grep stderr for any message 8946bdcaa8d0Smrg # that says an option was ignored or not supported. 8947bdcaa8d0Smrg # When given -MP, icc 7.0 and 7.1 complain thusly: 8948bdcaa8d0Smrg # icc: Command line warning: ignoring option '-M'; no argument required 8949bdcaa8d0Smrg # The diagnosis changed in icc 8.0: 8950bdcaa8d0Smrg # icc: Command line remark: option '-MP' not supported 8951bdcaa8d0Smrg if (grep 'ignoring option' conftest.err || 8952bdcaa8d0Smrg grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 8953bdcaa8d0Smrg am_cv_$1_dependencies_compiler_type=$depmode 8954bdcaa8d0Smrg break 8955bdcaa8d0Smrg fi 8956bdcaa8d0Smrg fi 8957bdcaa8d0Smrg done 8958bdcaa8d0Smrg 8959bdcaa8d0Smrg cd .. 8960bdcaa8d0Smrg rm -rf conftest.dir 8961bdcaa8d0Smrgelse 8962bdcaa8d0Smrg am_cv_$1_dependencies_compiler_type=none 8963bdcaa8d0Smrgfi 8964bdcaa8d0Smrg]) 8965bdcaa8d0SmrgAC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) 8966bdcaa8d0SmrgAM_CONDITIONAL([am__fastdep$1], [ 8967bdcaa8d0Smrg test "x$enable_dependency_tracking" != xno \ 8968bdcaa8d0Smrg && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) 8969bdcaa8d0Smrg]) 8970bdcaa8d0Smrg 8971bdcaa8d0Smrg 8972bdcaa8d0Smrg# AM_SET_DEPDIR 8973bdcaa8d0Smrg# ------------- 8974bdcaa8d0Smrg# Choose a directory name for dependency files. 8975bdcaa8d0Smrg# This macro is AC_REQUIREd in _AM_DEPENDENCIES 8976bdcaa8d0SmrgAC_DEFUN([AM_SET_DEPDIR], 8977bdcaa8d0Smrg[AC_REQUIRE([AM_SET_LEADING_DOT])dnl 8978bdcaa8d0SmrgAC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl 8979bdcaa8d0Smrg]) 8980bdcaa8d0Smrg 8981bdcaa8d0Smrg 8982bdcaa8d0Smrg# AM_DEP_TRACK 8983bdcaa8d0Smrg# ------------ 8984bdcaa8d0SmrgAC_DEFUN([AM_DEP_TRACK], 8985bdcaa8d0Smrg[AC_ARG_ENABLE(dependency-tracking, 8986bdcaa8d0Smrg[ --disable-dependency-tracking speeds up one-time build 8987bdcaa8d0Smrg --enable-dependency-tracking do not reject slow dependency extractors]) 8988bdcaa8d0Smrgif test "x$enable_dependency_tracking" != xno; then 8989bdcaa8d0Smrg am_depcomp="$ac_aux_dir/depcomp" 8990bdcaa8d0Smrg AMDEPBACKSLASH='\' 8991bdcaa8d0Smrgfi 8992bdcaa8d0SmrgAM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) 899372313efbSmrgAC_SUBST([AMDEPBACKSLASH])dnl 899472313efbSmrg_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl 8995bdcaa8d0Smrg]) 8996bdcaa8d0Smrg 8997bdcaa8d0Smrg# Generate code to set up dependency tracking. -*- Autoconf -*- 8998bdcaa8d0Smrg 899972313efbSmrg# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008 9000bdcaa8d0Smrg# Free Software Foundation, Inc. 9001bdcaa8d0Smrg# 9002bdcaa8d0Smrg# This file is free software; the Free Software Foundation 9003bdcaa8d0Smrg# gives unlimited permission to copy and/or distribute it, 9004bdcaa8d0Smrg# with or without modifications, as long as this notice is preserved. 9005bdcaa8d0Smrg 900672313efbSmrg#serial 4 9007bdcaa8d0Smrg 9008bdcaa8d0Smrg# _AM_OUTPUT_DEPENDENCY_COMMANDS 9009bdcaa8d0Smrg# ------------------------------ 9010bdcaa8d0SmrgAC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], 901172313efbSmrg[# Autoconf 2.62 quotes --file arguments for eval, but not when files 901272313efbSmrg# are listed without --file. Let's play safe and only enable the eval 901372313efbSmrg# if we detect the quoting. 901472313efbSmrgcase $CONFIG_FILES in 901572313efbSmrg*\'*) eval set x "$CONFIG_FILES" ;; 901672313efbSmrg*) set x $CONFIG_FILES ;; 901772313efbSmrgesac 901872313efbSmrgshift 901972313efbSmrgfor mf 902072313efbSmrgdo 9021bdcaa8d0Smrg # Strip MF so we end up with the name of the file. 9022bdcaa8d0Smrg mf=`echo "$mf" | sed -e 's/:.*$//'` 9023bdcaa8d0Smrg # Check whether this is an Automake generated Makefile or not. 9024bdcaa8d0Smrg # We used to match only the files named `Makefile.in', but 9025bdcaa8d0Smrg # some people rename them; so instead we look at the file content. 9026bdcaa8d0Smrg # Grep'ing the first line is not enough: some people post-process 9027bdcaa8d0Smrg # each Makefile.in and add a new line on top of each file to say so. 902872313efbSmrg # Grep'ing the whole file is not good either: AIX grep has a line 902972313efbSmrg # limit of 2048, but all sed's we know have understand at least 4000. 903072313efbSmrg if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 9031bdcaa8d0Smrg dirpart=`AS_DIRNAME("$mf")` 9032bdcaa8d0Smrg else 9033bdcaa8d0Smrg continue 9034bdcaa8d0Smrg fi 9035bdcaa8d0Smrg # Extract the definition of DEPDIR, am__include, and am__quote 9036bdcaa8d0Smrg # from the Makefile without running `make'. 9037bdcaa8d0Smrg DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 9038bdcaa8d0Smrg test -z "$DEPDIR" && continue 9039bdcaa8d0Smrg am__include=`sed -n 's/^am__include = //p' < "$mf"` 9040bdcaa8d0Smrg test -z "am__include" && continue 9041bdcaa8d0Smrg am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 9042bdcaa8d0Smrg # When using ansi2knr, U may be empty or an underscore; expand it 9043bdcaa8d0Smrg U=`sed -n 's/^U = //p' < "$mf"` 9044bdcaa8d0Smrg # Find all dependency output files, they are included files with 9045bdcaa8d0Smrg # $(DEPDIR) in their names. We invoke sed twice because it is the 9046bdcaa8d0Smrg # simplest approach to changing $(DEPDIR) to its actual value in the 9047bdcaa8d0Smrg # expansion. 9048bdcaa8d0Smrg for file in `sed -n " 9049bdcaa8d0Smrg s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 9050bdcaa8d0Smrg sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 9051bdcaa8d0Smrg # Make sure the directory exists. 9052bdcaa8d0Smrg test -f "$dirpart/$file" && continue 9053bdcaa8d0Smrg fdir=`AS_DIRNAME(["$file"])` 9054bdcaa8d0Smrg AS_MKDIR_P([$dirpart/$fdir]) 9055bdcaa8d0Smrg # echo "creating $dirpart/$file" 9056bdcaa8d0Smrg echo '# dummy' > "$dirpart/$file" 9057bdcaa8d0Smrg done 9058bdcaa8d0Smrgdone 9059bdcaa8d0Smrg])# _AM_OUTPUT_DEPENDENCY_COMMANDS 9060bdcaa8d0Smrg 9061bdcaa8d0Smrg 9062bdcaa8d0Smrg# AM_OUTPUT_DEPENDENCY_COMMANDS 9063bdcaa8d0Smrg# ----------------------------- 9064bdcaa8d0Smrg# This macro should only be invoked once -- use via AC_REQUIRE. 9065bdcaa8d0Smrg# 9066bdcaa8d0Smrg# This code is only required when automatic dependency tracking 9067bdcaa8d0Smrg# is enabled. FIXME. This creates each `.P' file that we will 9068bdcaa8d0Smrg# need in order to bootstrap the dependency handling code. 9069bdcaa8d0SmrgAC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], 9070bdcaa8d0Smrg[AC_CONFIG_COMMANDS([depfiles], 9071bdcaa8d0Smrg [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], 9072bdcaa8d0Smrg [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) 9073bdcaa8d0Smrg]) 9074bdcaa8d0Smrg 9075bdcaa8d0Smrg# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 9076bdcaa8d0Smrg# Free Software Foundation, Inc. 9077bdcaa8d0Smrg# 9078bdcaa8d0Smrg# This file is free software; the Free Software Foundation 9079bdcaa8d0Smrg# gives unlimited permission to copy and/or distribute it, 9080bdcaa8d0Smrg# with or without modifications, as long as this notice is preserved. 9081bdcaa8d0Smrg 9082bdcaa8d0Smrg# serial 8 9083bdcaa8d0Smrg 9084bdcaa8d0Smrg# AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS. 9085bdcaa8d0SmrgAU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)]) 9086bdcaa8d0Smrg 9087bdcaa8d0Smrg# Do all the work for Automake. -*- Autoconf -*- 9088bdcaa8d0Smrg 908972313efbSmrg# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 909072313efbSmrg# 2005, 2006, 2008 Free Software Foundation, Inc. 9091bdcaa8d0Smrg# 9092bdcaa8d0Smrg# This file is free software; the Free Software Foundation 9093bdcaa8d0Smrg# gives unlimited permission to copy and/or distribute it, 9094bdcaa8d0Smrg# with or without modifications, as long as this notice is preserved. 9095bdcaa8d0Smrg 909672313efbSmrg# serial 13 9097bdcaa8d0Smrg 9098bdcaa8d0Smrg# This macro actually does too much. Some checks are only needed if 9099bdcaa8d0Smrg# your package does certain things. But this isn't really a big deal. 9100bdcaa8d0Smrg 9101bdcaa8d0Smrg# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) 9102bdcaa8d0Smrg# AM_INIT_AUTOMAKE([OPTIONS]) 9103bdcaa8d0Smrg# ----------------------------------------------- 9104bdcaa8d0Smrg# The call with PACKAGE and VERSION arguments is the old style 9105bdcaa8d0Smrg# call (pre autoconf-2.50), which is being phased out. PACKAGE 9106bdcaa8d0Smrg# and VERSION should now be passed to AC_INIT and removed from 9107bdcaa8d0Smrg# the call to AM_INIT_AUTOMAKE. 9108bdcaa8d0Smrg# We support both call styles for the transition. After 9109bdcaa8d0Smrg# the next Automake release, Autoconf can make the AC_INIT 9110bdcaa8d0Smrg# arguments mandatory, and then we can depend on a new Autoconf 9111bdcaa8d0Smrg# release and drop the old call support. 9112bdcaa8d0SmrgAC_DEFUN([AM_INIT_AUTOMAKE], 911372313efbSmrg[AC_PREREQ([2.60])dnl 9114bdcaa8d0Smrgdnl Autoconf wants to disallow AM_ names. We explicitly allow 9115bdcaa8d0Smrgdnl the ones we care about. 9116bdcaa8d0Smrgm4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl 9117bdcaa8d0SmrgAC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl 9118bdcaa8d0SmrgAC_REQUIRE([AC_PROG_INSTALL])dnl 911972313efbSmrgif test "`cd $srcdir && pwd`" != "`pwd`"; then 912072313efbSmrg # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 912172313efbSmrg # is not polluted with repeated "-I." 912272313efbSmrg AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl 912372313efbSmrg # test to see if srcdir already configured 912472313efbSmrg if test -f $srcdir/config.status; then 912572313efbSmrg AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) 912672313efbSmrg fi 9127bdcaa8d0Smrgfi 9128bdcaa8d0Smrg 9129bdcaa8d0Smrg# test whether we have cygpath 9130bdcaa8d0Smrgif test -z "$CYGPATH_W"; then 9131bdcaa8d0Smrg if (cygpath --version) >/dev/null 2>/dev/null; then 9132bdcaa8d0Smrg CYGPATH_W='cygpath -w' 9133bdcaa8d0Smrg else 9134bdcaa8d0Smrg CYGPATH_W=echo 9135bdcaa8d0Smrg fi 9136bdcaa8d0Smrgfi 9137bdcaa8d0SmrgAC_SUBST([CYGPATH_W]) 9138bdcaa8d0Smrg 9139bdcaa8d0Smrg# Define the identity of the package. 9140bdcaa8d0Smrgdnl Distinguish between old-style and new-style calls. 9141bdcaa8d0Smrgm4_ifval([$2], 9142bdcaa8d0Smrg[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl 9143bdcaa8d0Smrg AC_SUBST([PACKAGE], [$1])dnl 9144bdcaa8d0Smrg AC_SUBST([VERSION], [$2])], 9145bdcaa8d0Smrg[_AM_SET_OPTIONS([$1])dnl 914672313efbSmrgdnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. 914772313efbSmrgm4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,, 914872313efbSmrg [m4_fatal([AC_INIT should be called with package and version arguments])])dnl 9149bdcaa8d0Smrg AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl 9150bdcaa8d0Smrg AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl 9151bdcaa8d0Smrg 9152bdcaa8d0Smrg_AM_IF_OPTION([no-define],, 9153bdcaa8d0Smrg[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) 9154bdcaa8d0Smrg AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl 9155bdcaa8d0Smrg 9156bdcaa8d0Smrg# Some tools Automake needs. 9157bdcaa8d0SmrgAC_REQUIRE([AM_SANITY_CHECK])dnl 9158bdcaa8d0SmrgAC_REQUIRE([AC_ARG_PROGRAM])dnl 9159bdcaa8d0SmrgAM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) 9160bdcaa8d0SmrgAM_MISSING_PROG(AUTOCONF, autoconf) 9161bdcaa8d0SmrgAM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) 9162bdcaa8d0SmrgAM_MISSING_PROG(AUTOHEADER, autoheader) 9163bdcaa8d0SmrgAM_MISSING_PROG(MAKEINFO, makeinfo) 9164bdcaa8d0SmrgAM_PROG_INSTALL_SH 9165bdcaa8d0SmrgAM_PROG_INSTALL_STRIP 9166bdcaa8d0SmrgAC_REQUIRE([AM_PROG_MKDIR_P])dnl 9167bdcaa8d0Smrg# We need awk for the "check" target. The system "awk" is bad on 9168bdcaa8d0Smrg# some platforms. 9169bdcaa8d0SmrgAC_REQUIRE([AC_PROG_AWK])dnl 9170bdcaa8d0SmrgAC_REQUIRE([AC_PROG_MAKE_SET])dnl 9171bdcaa8d0SmrgAC_REQUIRE([AM_SET_LEADING_DOT])dnl 9172bdcaa8d0Smrg_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], 9173bdcaa8d0Smrg [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], 9174bdcaa8d0Smrg [_AM_PROG_TAR([v7])])]) 9175bdcaa8d0Smrg_AM_IF_OPTION([no-dependencies],, 9176bdcaa8d0Smrg[AC_PROVIDE_IFELSE([AC_PROG_CC], 9177bdcaa8d0Smrg [_AM_DEPENDENCIES(CC)], 9178bdcaa8d0Smrg [define([AC_PROG_CC], 9179bdcaa8d0Smrg defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl 9180bdcaa8d0SmrgAC_PROVIDE_IFELSE([AC_PROG_CXX], 9181bdcaa8d0Smrg [_AM_DEPENDENCIES(CXX)], 9182bdcaa8d0Smrg [define([AC_PROG_CXX], 9183bdcaa8d0Smrg defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl 918472313efbSmrgAC_PROVIDE_IFELSE([AC_PROG_OBJC], 918572313efbSmrg [_AM_DEPENDENCIES(OBJC)], 918672313efbSmrg [define([AC_PROG_OBJC], 918772313efbSmrg defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl 9188bdcaa8d0Smrg]) 9189bdcaa8d0Smrg]) 9190bdcaa8d0Smrg 9191bdcaa8d0Smrg 9192bdcaa8d0Smrg# When config.status generates a header, we must update the stamp-h file. 9193bdcaa8d0Smrg# This file resides in the same directory as the config header 9194bdcaa8d0Smrg# that is generated. The stamp files are numbered to have different names. 9195bdcaa8d0Smrg 9196bdcaa8d0Smrg# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the 9197bdcaa8d0Smrg# loop where config.status creates the headers, so we can generate 9198bdcaa8d0Smrg# our stamp files there. 9199bdcaa8d0SmrgAC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], 9200bdcaa8d0Smrg[# Compute $1's index in $config_headers. 920172313efbSmrg_am_arg=$1 9202bdcaa8d0Smrg_am_stamp_count=1 9203bdcaa8d0Smrgfor _am_header in $config_headers :; do 9204bdcaa8d0Smrg case $_am_header in 920572313efbSmrg $_am_arg | $_am_arg:* ) 9206bdcaa8d0Smrg break ;; 9207bdcaa8d0Smrg * ) 9208bdcaa8d0Smrg _am_stamp_count=`expr $_am_stamp_count + 1` ;; 9209bdcaa8d0Smrg esac 9210bdcaa8d0Smrgdone 921172313efbSmrgecho "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) 9212bdcaa8d0Smrg 9213bdcaa8d0Smrg# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. 9214bdcaa8d0Smrg# 9215bdcaa8d0Smrg# This file is free software; the Free Software Foundation 9216bdcaa8d0Smrg# gives unlimited permission to copy and/or distribute it, 9217bdcaa8d0Smrg# with or without modifications, as long as this notice is preserved. 9218bdcaa8d0Smrg 9219bdcaa8d0Smrg# AM_PROG_INSTALL_SH 9220bdcaa8d0Smrg# ------------------ 9221bdcaa8d0Smrg# Define $install_sh. 9222bdcaa8d0SmrgAC_DEFUN([AM_PROG_INSTALL_SH], 9223bdcaa8d0Smrg[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 922472313efbSmrginstall_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} 9225bdcaa8d0SmrgAC_SUBST(install_sh)]) 9226bdcaa8d0Smrg 9227bdcaa8d0Smrg# Copyright (C) 2003, 2005 Free Software Foundation, Inc. 9228bdcaa8d0Smrg# 9229bdcaa8d0Smrg# This file is free software; the Free Software Foundation 9230bdcaa8d0Smrg# gives unlimited permission to copy and/or distribute it, 9231bdcaa8d0Smrg# with or without modifications, as long as this notice is preserved. 9232bdcaa8d0Smrg 9233bdcaa8d0Smrg# serial 2 9234bdcaa8d0Smrg 9235bdcaa8d0Smrg# Check whether the underlying file-system supports filenames 9236bdcaa8d0Smrg# with a leading dot. For instance MS-DOS doesn't. 9237bdcaa8d0SmrgAC_DEFUN([AM_SET_LEADING_DOT], 9238bdcaa8d0Smrg[rm -rf .tst 2>/dev/null 9239bdcaa8d0Smrgmkdir .tst 2>/dev/null 9240bdcaa8d0Smrgif test -d .tst; then 9241bdcaa8d0Smrg am__leading_dot=. 9242bdcaa8d0Smrgelse 9243bdcaa8d0Smrg am__leading_dot=_ 9244bdcaa8d0Smrgfi 9245bdcaa8d0Smrgrmdir .tst 2>/dev/null 9246bdcaa8d0SmrgAC_SUBST([am__leading_dot])]) 9247bdcaa8d0Smrg 9248bdcaa8d0Smrg# Add --enable-maintainer-mode option to configure. -*- Autoconf -*- 9249bdcaa8d0Smrg# From Jim Meyering 9250bdcaa8d0Smrg 9251bdcaa8d0Smrg# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005 9252bdcaa8d0Smrg# Free Software Foundation, Inc. 9253bdcaa8d0Smrg# 9254bdcaa8d0Smrg# This file is free software; the Free Software Foundation 9255bdcaa8d0Smrg# gives unlimited permission to copy and/or distribute it, 9256bdcaa8d0Smrg# with or without modifications, as long as this notice is preserved. 9257bdcaa8d0Smrg 9258bdcaa8d0Smrg# serial 4 9259bdcaa8d0Smrg 9260bdcaa8d0SmrgAC_DEFUN([AM_MAINTAINER_MODE], 9261bdcaa8d0Smrg[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles]) 9262bdcaa8d0Smrg dnl maintainer-mode is disabled by default 9263bdcaa8d0Smrg AC_ARG_ENABLE(maintainer-mode, 9264bdcaa8d0Smrg[ --enable-maintainer-mode enable make rules and dependencies not useful 9265bdcaa8d0Smrg (and sometimes confusing) to the casual installer], 9266bdcaa8d0Smrg USE_MAINTAINER_MODE=$enableval, 9267bdcaa8d0Smrg USE_MAINTAINER_MODE=no) 9268bdcaa8d0Smrg AC_MSG_RESULT([$USE_MAINTAINER_MODE]) 9269bdcaa8d0Smrg AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes]) 9270bdcaa8d0Smrg MAINT=$MAINTAINER_MODE_TRUE 9271bdcaa8d0Smrg AC_SUBST(MAINT)dnl 9272bdcaa8d0Smrg] 9273bdcaa8d0Smrg) 9274bdcaa8d0Smrg 9275bdcaa8d0SmrgAU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE]) 9276bdcaa8d0Smrg 9277bdcaa8d0Smrg# Check to see how 'make' treats includes. -*- Autoconf -*- 9278bdcaa8d0Smrg 9279bdcaa8d0Smrg# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. 9280bdcaa8d0Smrg# 9281bdcaa8d0Smrg# This file is free software; the Free Software Foundation 9282bdcaa8d0Smrg# gives unlimited permission to copy and/or distribute it, 9283bdcaa8d0Smrg# with or without modifications, as long as this notice is preserved. 9284bdcaa8d0Smrg 9285bdcaa8d0Smrg# serial 3 9286bdcaa8d0Smrg 9287bdcaa8d0Smrg# AM_MAKE_INCLUDE() 9288bdcaa8d0Smrg# ----------------- 9289bdcaa8d0Smrg# Check to see how make treats includes. 9290bdcaa8d0SmrgAC_DEFUN([AM_MAKE_INCLUDE], 9291bdcaa8d0Smrg[am_make=${MAKE-make} 9292bdcaa8d0Smrgcat > confinc << 'END' 9293bdcaa8d0Smrgam__doit: 9294bdcaa8d0Smrg @echo done 9295bdcaa8d0Smrg.PHONY: am__doit 9296bdcaa8d0SmrgEND 9297bdcaa8d0Smrg# If we don't find an include directive, just comment out the code. 9298bdcaa8d0SmrgAC_MSG_CHECKING([for style of include used by $am_make]) 9299bdcaa8d0Smrgam__include="#" 9300bdcaa8d0Smrgam__quote= 9301bdcaa8d0Smrg_am_result=none 9302bdcaa8d0Smrg# First try GNU make style include. 9303bdcaa8d0Smrgecho "include confinc" > confmf 9304bdcaa8d0Smrg# We grep out `Entering directory' and `Leaving directory' 9305bdcaa8d0Smrg# messages which can occur if `w' ends up in MAKEFLAGS. 9306bdcaa8d0Smrg# In particular we don't look at `^make:' because GNU make might 9307bdcaa8d0Smrg# be invoked under some other name (usually "gmake"), in which 9308bdcaa8d0Smrg# case it prints its new name instead of `make'. 9309bdcaa8d0Smrgif test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 9310bdcaa8d0Smrg am__include=include 9311bdcaa8d0Smrg am__quote= 9312bdcaa8d0Smrg _am_result=GNU 9313bdcaa8d0Smrgfi 9314bdcaa8d0Smrg# Now try BSD make style include. 9315bdcaa8d0Smrgif test "$am__include" = "#"; then 9316bdcaa8d0Smrg echo '.include "confinc"' > confmf 9317bdcaa8d0Smrg if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 9318bdcaa8d0Smrg am__include=.include 9319bdcaa8d0Smrg am__quote="\"" 9320bdcaa8d0Smrg _am_result=BSD 9321bdcaa8d0Smrg fi 9322bdcaa8d0Smrgfi 9323bdcaa8d0SmrgAC_SUBST([am__include]) 9324bdcaa8d0SmrgAC_SUBST([am__quote]) 9325bdcaa8d0SmrgAC_MSG_RESULT([$_am_result]) 9326bdcaa8d0Smrgrm -f confinc confmf 9327bdcaa8d0Smrg]) 9328bdcaa8d0Smrg 9329bdcaa8d0Smrg# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- 9330bdcaa8d0Smrg 933172313efbSmrg# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005 9332bdcaa8d0Smrg# Free Software Foundation, Inc. 9333bdcaa8d0Smrg# 9334bdcaa8d0Smrg# This file is free software; the Free Software Foundation 9335bdcaa8d0Smrg# gives unlimited permission to copy and/or distribute it, 9336bdcaa8d0Smrg# with or without modifications, as long as this notice is preserved. 9337bdcaa8d0Smrg 933872313efbSmrg# serial 5 9339bdcaa8d0Smrg 9340bdcaa8d0Smrg# AM_MISSING_PROG(NAME, PROGRAM) 9341bdcaa8d0Smrg# ------------------------------ 9342bdcaa8d0SmrgAC_DEFUN([AM_MISSING_PROG], 9343bdcaa8d0Smrg[AC_REQUIRE([AM_MISSING_HAS_RUN]) 9344bdcaa8d0Smrg$1=${$1-"${am_missing_run}$2"} 9345bdcaa8d0SmrgAC_SUBST($1)]) 9346bdcaa8d0Smrg 9347bdcaa8d0Smrg 9348bdcaa8d0Smrg# AM_MISSING_HAS_RUN 9349bdcaa8d0Smrg# ------------------ 9350bdcaa8d0Smrg# Define MISSING if not defined so far and test if it supports --run. 9351bdcaa8d0Smrg# If it does, set am_missing_run to use it, otherwise, to nothing. 9352bdcaa8d0SmrgAC_DEFUN([AM_MISSING_HAS_RUN], 9353bdcaa8d0Smrg[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 935472313efbSmrgAC_REQUIRE_AUX_FILE([missing])dnl 9355bdcaa8d0Smrgtest x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 9356bdcaa8d0Smrg# Use eval to expand $SHELL 9357bdcaa8d0Smrgif eval "$MISSING --run true"; then 9358bdcaa8d0Smrg am_missing_run="$MISSING --run " 9359bdcaa8d0Smrgelse 9360bdcaa8d0Smrg am_missing_run= 9361bdcaa8d0Smrg AC_MSG_WARN([`missing' script is too old or missing]) 9362bdcaa8d0Smrgfi 9363bdcaa8d0Smrg]) 9364bdcaa8d0Smrg 936572313efbSmrg# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 9366bdcaa8d0Smrg# 9367bdcaa8d0Smrg# This file is free software; the Free Software Foundation 9368bdcaa8d0Smrg# gives unlimited permission to copy and/or distribute it, 9369bdcaa8d0Smrg# with or without modifications, as long as this notice is preserved. 9370bdcaa8d0Smrg 9371bdcaa8d0Smrg# AM_PROG_MKDIR_P 9372bdcaa8d0Smrg# --------------- 937372313efbSmrg# Check for `mkdir -p'. 9374bdcaa8d0SmrgAC_DEFUN([AM_PROG_MKDIR_P], 937572313efbSmrg[AC_PREREQ([2.60])dnl 937672313efbSmrgAC_REQUIRE([AC_PROG_MKDIR_P])dnl 937772313efbSmrgdnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P, 937872313efbSmrgdnl while keeping a definition of mkdir_p for backward compatibility. 937972313efbSmrgdnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile. 938072313efbSmrgdnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of 938172313efbSmrgdnl Makefile.ins that do not define MKDIR_P, so we do our own 938272313efbSmrgdnl adjustment using top_builddir (which is defined more often than 938372313efbSmrgdnl MKDIR_P). 938472313efbSmrgAC_SUBST([mkdir_p], ["$MKDIR_P"])dnl 938572313efbSmrgcase $mkdir_p in 938672313efbSmrg [[\\/$]]* | ?:[[\\/]]*) ;; 938772313efbSmrg */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 938872313efbSmrgesac 938972313efbSmrg]) 9390bdcaa8d0Smrg 9391bdcaa8d0Smrg# Helper functions for option handling. -*- Autoconf -*- 9392bdcaa8d0Smrg 939372313efbSmrg# Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc. 9394bdcaa8d0Smrg# 9395bdcaa8d0Smrg# This file is free software; the Free Software Foundation 9396bdcaa8d0Smrg# gives unlimited permission to copy and/or distribute it, 9397bdcaa8d0Smrg# with or without modifications, as long as this notice is preserved. 9398bdcaa8d0Smrg 939972313efbSmrg# serial 4 9400bdcaa8d0Smrg 9401bdcaa8d0Smrg# _AM_MANGLE_OPTION(NAME) 9402bdcaa8d0Smrg# ----------------------- 9403bdcaa8d0SmrgAC_DEFUN([_AM_MANGLE_OPTION], 9404bdcaa8d0Smrg[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) 9405bdcaa8d0Smrg 9406bdcaa8d0Smrg# _AM_SET_OPTION(NAME) 9407bdcaa8d0Smrg# ------------------------------ 9408bdcaa8d0Smrg# Set option NAME. Presently that only means defining a flag for this option. 9409bdcaa8d0SmrgAC_DEFUN([_AM_SET_OPTION], 9410bdcaa8d0Smrg[m4_define(_AM_MANGLE_OPTION([$1]), 1)]) 9411bdcaa8d0Smrg 9412bdcaa8d0Smrg# _AM_SET_OPTIONS(OPTIONS) 9413bdcaa8d0Smrg# ---------------------------------- 9414bdcaa8d0Smrg# OPTIONS is a space-separated list of Automake options. 9415bdcaa8d0SmrgAC_DEFUN([_AM_SET_OPTIONS], 941672313efbSmrg[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) 9417bdcaa8d0Smrg 9418bdcaa8d0Smrg# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) 9419bdcaa8d0Smrg# ------------------------------------------- 9420bdcaa8d0Smrg# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. 9421bdcaa8d0SmrgAC_DEFUN([_AM_IF_OPTION], 9422bdcaa8d0Smrg[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) 9423bdcaa8d0Smrg 9424bdcaa8d0Smrg# Check to make sure that the build environment is sane. -*- Autoconf -*- 9425bdcaa8d0Smrg 9426bdcaa8d0Smrg# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 9427bdcaa8d0Smrg# Free Software Foundation, Inc. 9428bdcaa8d0Smrg# 9429bdcaa8d0Smrg# This file is free software; the Free Software Foundation 9430bdcaa8d0Smrg# gives unlimited permission to copy and/or distribute it, 9431bdcaa8d0Smrg# with or without modifications, as long as this notice is preserved. 9432bdcaa8d0Smrg 9433bdcaa8d0Smrg# serial 4 9434bdcaa8d0Smrg 9435bdcaa8d0Smrg# AM_SANITY_CHECK 9436bdcaa8d0Smrg# --------------- 9437bdcaa8d0SmrgAC_DEFUN([AM_SANITY_CHECK], 9438bdcaa8d0Smrg[AC_MSG_CHECKING([whether build environment is sane]) 9439bdcaa8d0Smrg# Just in case 9440bdcaa8d0Smrgsleep 1 9441bdcaa8d0Smrgecho timestamp > conftest.file 9442bdcaa8d0Smrg# Do `set' in a subshell so we don't clobber the current shell's 9443bdcaa8d0Smrg# arguments. Must try -L first in case configure is actually a 9444bdcaa8d0Smrg# symlink; some systems play weird games with the mod time of symlinks 9445bdcaa8d0Smrg# (eg FreeBSD returns the mod time of the symlink's containing 9446bdcaa8d0Smrg# directory). 9447bdcaa8d0Smrgif ( 9448bdcaa8d0Smrg set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 9449bdcaa8d0Smrg if test "$[*]" = "X"; then 9450bdcaa8d0Smrg # -L didn't work. 9451bdcaa8d0Smrg set X `ls -t $srcdir/configure conftest.file` 9452bdcaa8d0Smrg fi 9453bdcaa8d0Smrg rm -f conftest.file 9454bdcaa8d0Smrg if test "$[*]" != "X $srcdir/configure conftest.file" \ 9455bdcaa8d0Smrg && test "$[*]" != "X conftest.file $srcdir/configure"; then 9456bdcaa8d0Smrg 9457bdcaa8d0Smrg # If neither matched, then we have a broken ls. This can happen 9458bdcaa8d0Smrg # if, for instance, CONFIG_SHELL is bash and it inherits a 9459bdcaa8d0Smrg # broken ls alias from the environment. This has actually 9460bdcaa8d0Smrg # happened. Such a system could not be considered "sane". 9461bdcaa8d0Smrg AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken 9462bdcaa8d0Smrgalias in your environment]) 9463bdcaa8d0Smrg fi 9464bdcaa8d0Smrg 9465bdcaa8d0Smrg test "$[2]" = conftest.file 9466bdcaa8d0Smrg ) 9467bdcaa8d0Smrgthen 9468bdcaa8d0Smrg # Ok. 9469bdcaa8d0Smrg : 9470bdcaa8d0Smrgelse 9471bdcaa8d0Smrg AC_MSG_ERROR([newly created file is older than distributed files! 9472bdcaa8d0SmrgCheck your system clock]) 9473bdcaa8d0Smrgfi 9474bdcaa8d0SmrgAC_MSG_RESULT(yes)]) 9475bdcaa8d0Smrg 9476bdcaa8d0Smrg# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. 9477bdcaa8d0Smrg# 9478bdcaa8d0Smrg# This file is free software; the Free Software Foundation 9479bdcaa8d0Smrg# gives unlimited permission to copy and/or distribute it, 9480bdcaa8d0Smrg# with or without modifications, as long as this notice is preserved. 9481bdcaa8d0Smrg 9482bdcaa8d0Smrg# AM_PROG_INSTALL_STRIP 9483bdcaa8d0Smrg# --------------------- 9484bdcaa8d0Smrg# One issue with vendor `install' (even GNU) is that you can't 9485bdcaa8d0Smrg# specify the program used to strip binaries. This is especially 9486bdcaa8d0Smrg# annoying in cross-compiling environments, where the build's strip 9487bdcaa8d0Smrg# is unlikely to handle the host's binaries. 9488bdcaa8d0Smrg# Fortunately install-sh will honor a STRIPPROG variable, so we 9489bdcaa8d0Smrg# always use install-sh in `make install-strip', and initialize 9490bdcaa8d0Smrg# STRIPPROG with the value of the STRIP variable (set by the user). 9491bdcaa8d0SmrgAC_DEFUN([AM_PROG_INSTALL_STRIP], 9492bdcaa8d0Smrg[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl 9493bdcaa8d0Smrg# Installed binaries are usually stripped using `strip' when the user 9494bdcaa8d0Smrg# run `make install-strip'. However `strip' might not be the right 9495bdcaa8d0Smrg# tool to use in cross-compilation environments, therefore Automake 9496bdcaa8d0Smrg# will honor the `STRIP' environment variable to overrule this program. 9497bdcaa8d0Smrgdnl Don't test for $cross_compiling = yes, because it might be `maybe'. 9498bdcaa8d0Smrgif test "$cross_compiling" != no; then 9499bdcaa8d0Smrg AC_CHECK_TOOL([STRIP], [strip], :) 9500bdcaa8d0Smrgfi 950172313efbSmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 9502bdcaa8d0SmrgAC_SUBST([INSTALL_STRIP_PROGRAM])]) 9503bdcaa8d0Smrg 950472313efbSmrg# Copyright (C) 2006 Free Software Foundation, Inc. 950572313efbSmrg# 950672313efbSmrg# This file is free software; the Free Software Foundation 950772313efbSmrg# gives unlimited permission to copy and/or distribute it, 950872313efbSmrg# with or without modifications, as long as this notice is preserved. 950972313efbSmrg 951072313efbSmrg# _AM_SUBST_NOTMAKE(VARIABLE) 951172313efbSmrg# --------------------------- 951272313efbSmrg# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. 951372313efbSmrg# This macro is traced by Automake. 951472313efbSmrgAC_DEFUN([_AM_SUBST_NOTMAKE]) 951572313efbSmrg 9516bdcaa8d0Smrg# Check how to create a tarball. -*- Autoconf -*- 9517bdcaa8d0Smrg 9518bdcaa8d0Smrg# Copyright (C) 2004, 2005 Free Software Foundation, Inc. 9519bdcaa8d0Smrg# 9520bdcaa8d0Smrg# This file is free software; the Free Software Foundation 9521bdcaa8d0Smrg# gives unlimited permission to copy and/or distribute it, 9522bdcaa8d0Smrg# with or without modifications, as long as this notice is preserved. 9523bdcaa8d0Smrg 9524bdcaa8d0Smrg# serial 2 9525bdcaa8d0Smrg 9526bdcaa8d0Smrg# _AM_PROG_TAR(FORMAT) 9527bdcaa8d0Smrg# -------------------- 9528bdcaa8d0Smrg# Check how to create a tarball in format FORMAT. 9529bdcaa8d0Smrg# FORMAT should be one of `v7', `ustar', or `pax'. 9530bdcaa8d0Smrg# 9531bdcaa8d0Smrg# Substitute a variable $(am__tar) that is a command 9532bdcaa8d0Smrg# writing to stdout a FORMAT-tarball containing the directory 9533bdcaa8d0Smrg# $tardir. 9534bdcaa8d0Smrg# tardir=directory && $(am__tar) > result.tar 9535bdcaa8d0Smrg# 9536bdcaa8d0Smrg# Substitute a variable $(am__untar) that extract such 9537bdcaa8d0Smrg# a tarball read from stdin. 9538bdcaa8d0Smrg# $(am__untar) < result.tar 9539bdcaa8d0SmrgAC_DEFUN([_AM_PROG_TAR], 9540bdcaa8d0Smrg[# Always define AMTAR for backward compatibility. 9541bdcaa8d0SmrgAM_MISSING_PROG([AMTAR], [tar]) 9542bdcaa8d0Smrgm4_if([$1], [v7], 9543bdcaa8d0Smrg [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'], 9544bdcaa8d0Smrg [m4_case([$1], [ustar],, [pax],, 9545bdcaa8d0Smrg [m4_fatal([Unknown tar format])]) 9546bdcaa8d0SmrgAC_MSG_CHECKING([how to create a $1 tar archive]) 9547bdcaa8d0Smrg# Loop over all known methods to create a tar archive until one works. 9548bdcaa8d0Smrg_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' 9549bdcaa8d0Smrg_am_tools=${am_cv_prog_tar_$1-$_am_tools} 9550bdcaa8d0Smrg# Do not fold the above two line into one, because Tru64 sh and 9551bdcaa8d0Smrg# Solaris sh will not grok spaces in the rhs of `-'. 9552bdcaa8d0Smrgfor _am_tool in $_am_tools 9553bdcaa8d0Smrgdo 9554bdcaa8d0Smrg case $_am_tool in 9555bdcaa8d0Smrg gnutar) 9556bdcaa8d0Smrg for _am_tar in tar gnutar gtar; 9557bdcaa8d0Smrg do 9558bdcaa8d0Smrg AM_RUN_LOG([$_am_tar --version]) && break 9559bdcaa8d0Smrg done 9560bdcaa8d0Smrg am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' 9561bdcaa8d0Smrg am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' 9562bdcaa8d0Smrg am__untar="$_am_tar -xf -" 9563bdcaa8d0Smrg ;; 9564bdcaa8d0Smrg plaintar) 9565bdcaa8d0Smrg # Must skip GNU tar: if it does not support --format= it doesn't create 9566bdcaa8d0Smrg # ustar tarball either. 9567bdcaa8d0Smrg (tar --version) >/dev/null 2>&1 && continue 9568bdcaa8d0Smrg am__tar='tar chf - "$$tardir"' 9569bdcaa8d0Smrg am__tar_='tar chf - "$tardir"' 9570bdcaa8d0Smrg am__untar='tar xf -' 9571bdcaa8d0Smrg ;; 9572bdcaa8d0Smrg pax) 9573bdcaa8d0Smrg am__tar='pax -L -x $1 -w "$$tardir"' 9574bdcaa8d0Smrg am__tar_='pax -L -x $1 -w "$tardir"' 9575bdcaa8d0Smrg am__untar='pax -r' 9576bdcaa8d0Smrg ;; 9577bdcaa8d0Smrg cpio) 9578bdcaa8d0Smrg am__tar='find "$$tardir" -print | cpio -o -H $1 -L' 9579bdcaa8d0Smrg am__tar_='find "$tardir" -print | cpio -o -H $1 -L' 9580bdcaa8d0Smrg am__untar='cpio -i -H $1 -d' 9581bdcaa8d0Smrg ;; 9582bdcaa8d0Smrg none) 9583bdcaa8d0Smrg am__tar=false 9584bdcaa8d0Smrg am__tar_=false 9585bdcaa8d0Smrg am__untar=false 9586bdcaa8d0Smrg ;; 9587bdcaa8d0Smrg esac 9588bdcaa8d0Smrg 9589bdcaa8d0Smrg # If the value was cached, stop now. We just wanted to have am__tar 9590bdcaa8d0Smrg # and am__untar set. 9591bdcaa8d0Smrg test -n "${am_cv_prog_tar_$1}" && break 9592bdcaa8d0Smrg 9593bdcaa8d0Smrg # tar/untar a dummy directory, and stop if the command works 9594bdcaa8d0Smrg rm -rf conftest.dir 9595bdcaa8d0Smrg mkdir conftest.dir 9596bdcaa8d0Smrg echo GrepMe > conftest.dir/file 9597bdcaa8d0Smrg AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) 9598bdcaa8d0Smrg rm -rf conftest.dir 9599bdcaa8d0Smrg if test -s conftest.tar; then 9600bdcaa8d0Smrg AM_RUN_LOG([$am__untar <conftest.tar]) 9601bdcaa8d0Smrg grep GrepMe conftest.dir/file >/dev/null 2>&1 && break 9602bdcaa8d0Smrg fi 9603bdcaa8d0Smrgdone 9604bdcaa8d0Smrgrm -rf conftest.dir 9605bdcaa8d0Smrg 9606bdcaa8d0SmrgAC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) 9607bdcaa8d0SmrgAC_MSG_RESULT([$am_cv_prog_tar_$1])]) 9608bdcaa8d0SmrgAC_SUBST([am__tar]) 9609bdcaa8d0SmrgAC_SUBST([am__untar]) 9610bdcaa8d0Smrg]) # _AM_PROG_TAR 9611bdcaa8d0Smrg 9612