aclocal.m4 revision 9418810d
19418810dSmrg# generated automatically by aclocal 1.11.1 -*- Autoconf -*- 29bd41f2cSmrg 39bd41f2cSmrg# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 49418810dSmrg# 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. 59bd41f2cSmrg# This file is free software; the Free Software Foundation 69bd41f2cSmrg# gives unlimited permission to copy and/or distribute it, 79bd41f2cSmrg# with or without modifications, as long as this notice is preserved. 89bd41f2cSmrg 99bd41f2cSmrg# This program is distributed in the hope that it will be useful, 109bd41f2cSmrg# but WITHOUT ANY WARRANTY, to the extent permitted by law; without 119bd41f2cSmrg# even the implied warranty of MERCHANTABILITY or FITNESS FOR A 129bd41f2cSmrg# PARTICULAR PURPOSE. 139bd41f2cSmrg 14d075918cSmrgm4_ifndef([AC_AUTOCONF_VERSION], 15d075918cSmrg [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl 169418810dSmrgm4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.63],, 17d075918cSmrg[m4_warning([this file was generated for autoconf 2.63. 18d075918cSmrgYou have another version of autoconf. It may work, but is not guaranteed to. 19d075918cSmrgIf you have problems, you may need to regenerate the build system entirely. 20d075918cSmrgTo do so, use the procedure documented by the package, typically `autoreconf'.])]) 219bd41f2cSmrg 229bd41f2cSmrg# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- 239418810dSmrg# 249418810dSmrg# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 259418810dSmrg# 2006, 2007, 2008 Free Software Foundation, Inc. 269418810dSmrg# Written by Gordon Matzigkeit, 1996 279418810dSmrg# 289418810dSmrg# This file is free software; the Free Software Foundation gives 299418810dSmrg# unlimited permission to copy and/or distribute it, with or without 309418810dSmrg# modifications, as long as this notice is preserved. 319418810dSmrg 329418810dSmrgm4_define([_LT_COPYING], [dnl 339418810dSmrg# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 349418810dSmrg# 2006, 2007, 2008 Free Software Foundation, Inc. 359418810dSmrg# Written by Gordon Matzigkeit, 1996 369418810dSmrg# 379418810dSmrg# This file is part of GNU Libtool. 389418810dSmrg# 399418810dSmrg# GNU Libtool is free software; you can redistribute it and/or 409418810dSmrg# modify it under the terms of the GNU General Public License as 419418810dSmrg# published by the Free Software Foundation; either version 2 of 429418810dSmrg# the License, or (at your option) any later version. 439418810dSmrg# 449418810dSmrg# As a special exception to the GNU General Public License, 459418810dSmrg# if you distribute this file as part of a program or library that 469418810dSmrg# is built using GNU Libtool, you may include this file under the 479418810dSmrg# same distribution terms that you use for the rest of that program. 489418810dSmrg# 499418810dSmrg# GNU Libtool is distributed in the hope that it will be useful, 509418810dSmrg# but WITHOUT ANY WARRANTY; without even the implied warranty of 519418810dSmrg# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 529418810dSmrg# GNU General Public License for more details. 539418810dSmrg# 549418810dSmrg# You should have received a copy of the GNU General Public License 559418810dSmrg# along with GNU Libtool; see the file COPYING. If not, a copy 569418810dSmrg# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 579418810dSmrg# obtained by writing to the Free Software Foundation, Inc., 589418810dSmrg# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 599418810dSmrg]) 609bd41f2cSmrg 619418810dSmrg# serial 56 LT_INIT 629bd41f2cSmrg 639bd41f2cSmrg 649418810dSmrg# LT_PREREQ(VERSION) 659418810dSmrg# ------------------ 669418810dSmrg# Complain and exit if this libtool version is less that VERSION. 679418810dSmrgm4_defun([LT_PREREQ], 689418810dSmrg[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1, 699418810dSmrg [m4_default([$3], 709418810dSmrg [m4_fatal([Libtool version $1 or higher is required], 719418810dSmrg 63)])], 729418810dSmrg [$2])]) 739bd41f2cSmrg 749bd41f2cSmrg 759418810dSmrg# _LT_CHECK_BUILDDIR 769418810dSmrg# ------------------ 779418810dSmrg# Complain if the absolute build directory name contains unusual characters 789418810dSmrgm4_defun([_LT_CHECK_BUILDDIR], 799418810dSmrg[case `pwd` in 809418810dSmrg *\ * | *\ *) 819418810dSmrg AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;; 829418810dSmrgesac 839418810dSmrg]) 849418810dSmrg 859418810dSmrg 869418810dSmrg# LT_INIT([OPTIONS]) 879418810dSmrg# ------------------ 889418810dSmrgAC_DEFUN([LT_INIT], 899418810dSmrg[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT 909418810dSmrgAC_BEFORE([$0], [LT_LANG])dnl 919418810dSmrgAC_BEFORE([$0], [LT_OUTPUT])dnl 929418810dSmrgAC_BEFORE([$0], [LTDL_INIT])dnl 939418810dSmrgm4_require([_LT_CHECK_BUILDDIR])dnl 949418810dSmrg 959418810dSmrgdnl Autoconf doesn't catch unexpanded LT_ macros by default: 969418810dSmrgm4_pattern_forbid([^_?LT_[A-Z_]+$])dnl 979418810dSmrgm4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl 989418810dSmrgdnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4 999418810dSmrgdnl unless we require an AC_DEFUNed macro: 1009418810dSmrgAC_REQUIRE([LTOPTIONS_VERSION])dnl 1019418810dSmrgAC_REQUIRE([LTSUGAR_VERSION])dnl 1029418810dSmrgAC_REQUIRE([LTVERSION_VERSION])dnl 1039418810dSmrgAC_REQUIRE([LTOBSOLETE_VERSION])dnl 1049418810dSmrgm4_require([_LT_PROG_LTMAIN])dnl 1059418810dSmrg 1069418810dSmrgdnl Parse OPTIONS 1079418810dSmrg_LT_SET_OPTIONS([$0], [$1]) 1089bd41f2cSmrg 1099bd41f2cSmrg# This can be used to rebuild libtool when needed 1109418810dSmrgLIBTOOL_DEPS="$ltmain" 1119bd41f2cSmrg 1129bd41f2cSmrg# Always use our own libtool. 1139bd41f2cSmrgLIBTOOL='$(SHELL) $(top_builddir)/libtool' 1149bd41f2cSmrgAC_SUBST(LIBTOOL)dnl 1159bd41f2cSmrg 1169418810dSmrg_LT_SETUP 1179bd41f2cSmrg 1189418810dSmrg# Only expand once: 1199418810dSmrgm4_define([LT_INIT]) 1209418810dSmrg])# LT_INIT 1219bd41f2cSmrg 1229418810dSmrg# Old names: 1239418810dSmrgAU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT]) 1249418810dSmrgAU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT]) 1259418810dSmrgdnl aclocal-1.4 backwards compatibility: 1269418810dSmrgdnl AC_DEFUN([AC_PROG_LIBTOOL], []) 1279418810dSmrgdnl AC_DEFUN([AM_PROG_LIBTOOL], []) 1289418810dSmrg 1299418810dSmrg 1309418810dSmrg# _LT_CC_BASENAME(CC) 1319418810dSmrg# ------------------- 1329418810dSmrg# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 1339418810dSmrgm4_defun([_LT_CC_BASENAME], 1349418810dSmrg[for cc_temp in $1""; do 1359418810dSmrg case $cc_temp in 1369418810dSmrg compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; 1379418810dSmrg distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; 1389418810dSmrg \-*) ;; 1399418810dSmrg *) break;; 1409418810dSmrg esac 1419418810dSmrgdone 1429418810dSmrgcc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 1439418810dSmrg]) 1449418810dSmrg 1459418810dSmrg 1469418810dSmrg# _LT_FILEUTILS_DEFAULTS 1479418810dSmrg# ---------------------- 1489418810dSmrg# It is okay to use these file commands and assume they have been set 1499418810dSmrg# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'. 1509418810dSmrgm4_defun([_LT_FILEUTILS_DEFAULTS], 1519418810dSmrg[: ${CP="cp -f"} 1529418810dSmrg: ${MV="mv -f"} 1539418810dSmrg: ${RM="rm -f"} 1549418810dSmrg])# _LT_FILEUTILS_DEFAULTS 1559418810dSmrg 1569418810dSmrg 1579418810dSmrg# _LT_SETUP 1589418810dSmrg# --------- 1599418810dSmrgm4_defun([_LT_SETUP], 1609418810dSmrg[AC_REQUIRE([AC_CANONICAL_HOST])dnl 1619bd41f2cSmrgAC_REQUIRE([AC_CANONICAL_BUILD])dnl 1629418810dSmrg_LT_DECL([], [host_alias], [0], [The host system])dnl 1639418810dSmrg_LT_DECL([], [host], [0])dnl 1649418810dSmrg_LT_DECL([], [host_os], [0])dnl 1659418810dSmrgdnl 1669418810dSmrg_LT_DECL([], [build_alias], [0], [The build system])dnl 1679418810dSmrg_LT_DECL([], [build], [0])dnl 1689418810dSmrg_LT_DECL([], [build_os], [0])dnl 1699418810dSmrgdnl 1709bd41f2cSmrgAC_REQUIRE([AC_PROG_CC])dnl 1719418810dSmrgAC_REQUIRE([LT_PATH_LD])dnl 1729418810dSmrgAC_REQUIRE([LT_PATH_NM])dnl 1739418810dSmrgdnl 1749bd41f2cSmrgAC_REQUIRE([AC_PROG_LN_S])dnl 1759418810dSmrgtest -z "$LN_S" && LN_S="ln -s" 1769418810dSmrg_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl 1779418810dSmrgdnl 1789418810dSmrgAC_REQUIRE([LT_CMD_MAX_LEN])dnl 1799418810dSmrg_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl 1809418810dSmrg_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl 1819bd41f2cSmrgdnl 1829418810dSmrgm4_require([_LT_FILEUTILS_DEFAULTS])dnl 1839418810dSmrgm4_require([_LT_CHECK_SHELL_FEATURES])dnl 1849418810dSmrgm4_require([_LT_CMD_RELOAD])dnl 1859418810dSmrgm4_require([_LT_CHECK_MAGIC_METHOD])dnl 1869418810dSmrgm4_require([_LT_CMD_OLD_ARCHIVE])dnl 1879418810dSmrgm4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl 1889418810dSmrg 1899418810dSmrg_LT_CONFIG_LIBTOOL_INIT([ 1909418810dSmrg# See if we are running on zsh, and set the options which allow our 1919418810dSmrg# commands through without removal of \ escapes INIT. 1929418810dSmrgif test -n "\${ZSH_VERSION+set}" ; then 1939418810dSmrg setopt NO_GLOB_SUBST 1949418810dSmrgfi 1959418810dSmrg]) 1969418810dSmrgif test -n "${ZSH_VERSION+set}" ; then 1979418810dSmrg setopt NO_GLOB_SUBST 1989418810dSmrgfi 1999418810dSmrg 2009418810dSmrg_LT_CHECK_OBJDIR 2019bd41f2cSmrg 2029418810dSmrgm4_require([_LT_TAG_COMPILER])dnl 2039418810dSmrg_LT_PROG_ECHO_BACKSLASH 2049bd41f2cSmrg 2059bd41f2cSmrgcase $host_os in 2069bd41f2cSmrgaix3*) 2079bd41f2cSmrg # AIX sometimes has problems with the GCC collect2 program. For some 2089bd41f2cSmrg # reason, if we set the COLLECT_NAMES environment variable, the problems 2099bd41f2cSmrg # vanish in a puff of smoke. 2109bd41f2cSmrg if test "X${COLLECT_NAMES+set}" != Xset; then 2119bd41f2cSmrg COLLECT_NAMES= 2129bd41f2cSmrg export COLLECT_NAMES 2139bd41f2cSmrg fi 2149bd41f2cSmrg ;; 2159bd41f2cSmrgesac 2169bd41f2cSmrg 2179bd41f2cSmrg# Sed substitution that helps us do robust quoting. It backslashifies 2189bd41f2cSmrg# metacharacters that are still active within double-quoted strings. 2199418810dSmrgsed_quote_subst='s/\([["`$\\]]\)/\\\1/g' 2209bd41f2cSmrg 2219bd41f2cSmrg# Same as above, but do not quote variable references. 2229418810dSmrgdouble_quote_subst='s/\([["`\\]]\)/\\\1/g' 2239bd41f2cSmrg 2249bd41f2cSmrg# Sed substitution to delay expansion of an escaped shell variable in a 2259bd41f2cSmrg# double_quote_subst'ed string. 2269bd41f2cSmrgdelay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 2279bd41f2cSmrg 2289418810dSmrg# Sed substitution to delay expansion of an escaped single quote. 2299418810dSmrgdelay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 2309418810dSmrg 2319bd41f2cSmrg# Sed substitution to avoid accidental globbing in evaled expressions 2329bd41f2cSmrgno_glob_subst='s/\*/\\\*/g' 2339bd41f2cSmrg 2349bd41f2cSmrg# Global variables: 2359418810dSmrgofile=libtool 2369bd41f2cSmrgcan_build_shared=yes 2379bd41f2cSmrg 2389bd41f2cSmrg# All known linkers require a `.a' archive for static linking (except MSVC, 2399bd41f2cSmrg# which needs '.lib'). 2409bd41f2cSmrglibext=a 2419bd41f2cSmrg 2429418810dSmrgwith_gnu_ld="$lt_cv_prog_gnu_ld" 2439bd41f2cSmrg 2449bd41f2cSmrgold_CC="$CC" 2459bd41f2cSmrgold_CFLAGS="$CFLAGS" 2469bd41f2cSmrg 2479bd41f2cSmrg# Set sane defaults for various variables 2489bd41f2cSmrgtest -z "$CC" && CC=cc 2499bd41f2cSmrgtest -z "$LTCC" && LTCC=$CC 2509bd41f2cSmrgtest -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 2519bd41f2cSmrgtest -z "$LD" && LD=ld 2529bd41f2cSmrgtest -z "$ac_objext" && ac_objext=o 2539bd41f2cSmrg 2549bd41f2cSmrg_LT_CC_BASENAME([$compiler]) 2559bd41f2cSmrg 2569bd41f2cSmrg# Only perform the check for file, if the check method requires it 2579418810dSmrgtest -z "$MAGIC_CMD" && MAGIC_CMD=file 2589bd41f2cSmrgcase $deplibs_check_method in 2599bd41f2cSmrgfile_magic*) 2609bd41f2cSmrg if test "$file_magic_cmd" = '$MAGIC_CMD'; then 2619418810dSmrg _LT_PATH_MAGIC 2629bd41f2cSmrg fi 2639bd41f2cSmrg ;; 2649bd41f2cSmrgesac 2659bd41f2cSmrg 2669418810dSmrg# Use C for the default configuration in the libtool script 2679418810dSmrgLT_SUPPORTED_TAG([CC]) 2689418810dSmrg_LT_LANG_C_CONFIG 2699418810dSmrg_LT_LANG_DEFAULT_CONFIG 2709418810dSmrg_LT_CONFIG_COMMANDS 2719418810dSmrg])# _LT_SETUP 272d075918cSmrg 2739bd41f2cSmrg 2749418810dSmrg# _LT_PROG_LTMAIN 2759418810dSmrg# --------------- 2769418810dSmrg# Note that this code is called both from `configure', and `config.status' 2779418810dSmrg# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably, 2789418810dSmrg# `config.status' has no value for ac_aux_dir unless we are using Automake, 2799418810dSmrg# so we pass a copy along to make sure it has a sensible value anyway. 2809418810dSmrgm4_defun([_LT_PROG_LTMAIN], 2819418810dSmrg[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl 2829418810dSmrg_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir']) 2839418810dSmrgltmain="$ac_aux_dir/ltmain.sh" 2849418810dSmrg])# _LT_PROG_LTMAIN 2859bd41f2cSmrg 2869bd41f2cSmrg 2879418810dSmrg 2889418810dSmrg# So that we can recreate a full libtool script including additional 2899418810dSmrg# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS 2909418810dSmrg# in macros and then make a single call at the end using the `libtool' 2919418810dSmrg# label. 2929418810dSmrg 2939418810dSmrg 2949418810dSmrg# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS]) 2959418810dSmrg# ---------------------------------------- 2969418810dSmrg# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later. 2979418810dSmrgm4_define([_LT_CONFIG_LIBTOOL_INIT], 2989418810dSmrg[m4_ifval([$1], 2999418810dSmrg [m4_append([_LT_OUTPUT_LIBTOOL_INIT], 3009418810dSmrg [$1 3019418810dSmrg])])]) 3029418810dSmrg 3039418810dSmrg# Initialize. 3049418810dSmrgm4_define([_LT_OUTPUT_LIBTOOL_INIT]) 3059418810dSmrg 3069418810dSmrg 3079418810dSmrg# _LT_CONFIG_LIBTOOL([COMMANDS]) 3089418810dSmrg# ------------------------------ 3099418810dSmrg# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later. 3109418810dSmrgm4_define([_LT_CONFIG_LIBTOOL], 3119418810dSmrg[m4_ifval([$1], 3129418810dSmrg [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS], 3139418810dSmrg [$1 3149418810dSmrg])])]) 3159418810dSmrg 3169418810dSmrg# Initialize. 3179418810dSmrgm4_define([_LT_OUTPUT_LIBTOOL_COMMANDS]) 3189418810dSmrg 3199418810dSmrg 3209418810dSmrg# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS]) 3219418810dSmrg# ----------------------------------------------------- 3229418810dSmrgm4_defun([_LT_CONFIG_SAVE_COMMANDS], 3239418810dSmrg[_LT_CONFIG_LIBTOOL([$1]) 3249418810dSmrg_LT_CONFIG_LIBTOOL_INIT([$2]) 3259418810dSmrg]) 3269418810dSmrg 3279418810dSmrg 3289418810dSmrg# _LT_FORMAT_COMMENT([COMMENT]) 3299418810dSmrg# ----------------------------- 3309418810dSmrg# Add leading comment marks to the start of each line, and a trailing 3319418810dSmrg# full-stop to the whole comment if one is not present already. 3329418810dSmrgm4_define([_LT_FORMAT_COMMENT], 3339418810dSmrg[m4_ifval([$1], [ 3349418810dSmrgm4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])], 3359418810dSmrg [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.]) 3369418810dSmrg)]) 3379418810dSmrg 3389418810dSmrg 3399418810dSmrg 3409418810dSmrg 3419418810dSmrg 3429418810dSmrg# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?]) 3439418810dSmrg# ------------------------------------------------------------------- 3449418810dSmrg# CONFIGNAME is the name given to the value in the libtool script. 3459418810dSmrg# VARNAME is the (base) name used in the configure script. 3469418810dSmrg# VALUE may be 0, 1 or 2 for a computed quote escaped value based on 3479418810dSmrg# VARNAME. Any other value will be used directly. 3489418810dSmrgm4_define([_LT_DECL], 3499418810dSmrg[lt_if_append_uniq([lt_decl_varnames], [$2], [, ], 3509418810dSmrg [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name], 3519418810dSmrg [m4_ifval([$1], [$1], [$2])]) 3529418810dSmrg lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3]) 3539418810dSmrg m4_ifval([$4], 3549418810dSmrg [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])]) 3559418810dSmrg lt_dict_add_subkey([lt_decl_dict], [$2], 3569418810dSmrg [tagged?], [m4_ifval([$5], [yes], [no])])]) 3579418810dSmrg]) 3589418810dSmrg 3599418810dSmrg 3609418810dSmrg# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION]) 3619418810dSmrg# -------------------------------------------------------- 3629418810dSmrgm4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])]) 3639418810dSmrg 3649418810dSmrg 3659418810dSmrg# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...]) 3669418810dSmrg# ------------------------------------------------ 3679418810dSmrgm4_define([lt_decl_tag_varnames], 3689418810dSmrg[_lt_decl_filter([tagged?], [yes], $@)]) 3699418810dSmrg 3709418810dSmrg 3719418810dSmrg# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..]) 3729418810dSmrg# --------------------------------------------------------- 3739418810dSmrgm4_define([_lt_decl_filter], 3749418810dSmrg[m4_case([$#], 3759418810dSmrg [0], [m4_fatal([$0: too few arguments: $#])], 3769418810dSmrg [1], [m4_fatal([$0: too few arguments: $#: $1])], 3779418810dSmrg [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)], 3789418810dSmrg [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)], 3799418810dSmrg [lt_dict_filter([lt_decl_dict], $@)])[]dnl 3809418810dSmrg]) 3819418810dSmrg 3829418810dSmrg 3839418810dSmrg# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...]) 3849418810dSmrg# -------------------------------------------------- 3859418810dSmrgm4_define([lt_decl_quote_varnames], 3869418810dSmrg[_lt_decl_filter([value], [1], $@)]) 3879418810dSmrg 3889418810dSmrg 3899418810dSmrg# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...]) 3909418810dSmrg# --------------------------------------------------- 3919418810dSmrgm4_define([lt_decl_dquote_varnames], 3929418810dSmrg[_lt_decl_filter([value], [2], $@)]) 3939418810dSmrg 3949418810dSmrg 3959418810dSmrg# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...]) 3969418810dSmrg# --------------------------------------------------- 3979418810dSmrgm4_define([lt_decl_varnames_tagged], 3989418810dSmrg[m4_assert([$# <= 2])dnl 3999418810dSmrg_$0(m4_quote(m4_default([$1], [[, ]])), 4009418810dSmrg m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]), 4019418810dSmrg m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))]) 4029418810dSmrgm4_define([_lt_decl_varnames_tagged], 4039418810dSmrg[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])]) 4049418810dSmrg 4059418810dSmrg 4069418810dSmrg# lt_decl_all_varnames([SEPARATOR], [VARNAME1...]) 4079418810dSmrg# ------------------------------------------------ 4089418810dSmrgm4_define([lt_decl_all_varnames], 4099418810dSmrg[_$0(m4_quote(m4_default([$1], [[, ]])), 4109418810dSmrg m4_if([$2], [], 4119418810dSmrg m4_quote(lt_decl_varnames), 4129418810dSmrg m4_quote(m4_shift($@))))[]dnl 4139418810dSmrg]) 4149418810dSmrgm4_define([_lt_decl_all_varnames], 4159418810dSmrg[lt_join($@, lt_decl_varnames_tagged([$1], 4169418810dSmrg lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl 4179418810dSmrg]) 4189418810dSmrg 4199418810dSmrg 4209418810dSmrg# _LT_CONFIG_STATUS_DECLARE([VARNAME]) 4219418810dSmrg# ------------------------------------ 4229418810dSmrg# Quote a variable value, and forward it to `config.status' so that its 4239418810dSmrg# declaration there will have the same value as in `configure'. VARNAME 4249418810dSmrg# must have a single quote delimited value for this to work. 4259418810dSmrgm4_define([_LT_CONFIG_STATUS_DECLARE], 4269418810dSmrg[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`']) 4279418810dSmrg 4289418810dSmrg 4299418810dSmrg# _LT_CONFIG_STATUS_DECLARATIONS 4309418810dSmrg# ------------------------------ 4319418810dSmrg# We delimit libtool config variables with single quotes, so when 4329418810dSmrg# we write them to config.status, we have to be sure to quote all 4339418810dSmrg# embedded single quotes properly. In configure, this macro expands 4349418810dSmrg# each variable declared with _LT_DECL (and _LT_TAGDECL) into: 4359418810dSmrg# 4369418810dSmrg# <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`' 4379418810dSmrgm4_defun([_LT_CONFIG_STATUS_DECLARATIONS], 4389418810dSmrg[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames), 4399418810dSmrg [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])]) 4409bd41f2cSmrg 4419bd41f2cSmrg 4429418810dSmrg# _LT_LIBTOOL_TAGS 4439418810dSmrg# ---------------- 4449418810dSmrg# Output comment and list of tags supported by the script 4459418810dSmrgm4_defun([_LT_LIBTOOL_TAGS], 4469418810dSmrg[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl 4479418810dSmrgavailable_tags="_LT_TAGS"dnl 4489418810dSmrg]) 4499418810dSmrg 4509418810dSmrg 4519418810dSmrg# _LT_LIBTOOL_DECLARE(VARNAME, [TAG]) 4529418810dSmrg# ----------------------------------- 4539418810dSmrg# Extract the dictionary values for VARNAME (optionally with TAG) and 4549418810dSmrg# expand to a commented shell variable setting: 4559418810dSmrg# 4569418810dSmrg# # Some comment about what VAR is for. 4579418810dSmrg# visible_name=$lt_internal_name 4589418810dSmrgm4_define([_LT_LIBTOOL_DECLARE], 4599418810dSmrg[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], 4609418810dSmrg [description])))[]dnl 4619418810dSmrgm4_pushdef([_libtool_name], 4629418810dSmrg m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl 4639418810dSmrgm4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])), 4649418810dSmrg [0], [_libtool_name=[$]$1], 4659418810dSmrg [1], [_libtool_name=$lt_[]$1], 4669418810dSmrg [2], [_libtool_name=$lt_[]$1], 4679418810dSmrg [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl 4689418810dSmrgm4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl 4699418810dSmrg]) 4709418810dSmrg 4719418810dSmrg 4729418810dSmrg# _LT_LIBTOOL_CONFIG_VARS 4739418810dSmrg# ----------------------- 4749418810dSmrg# Produce commented declarations of non-tagged libtool config variables 4759418810dSmrg# suitable for insertion in the LIBTOOL CONFIG section of the `libtool' 4769418810dSmrg# script. Tagged libtool config variables (even for the LIBTOOL CONFIG 4779418810dSmrg# section) are produced by _LT_LIBTOOL_TAG_VARS. 4789418810dSmrgm4_defun([_LT_LIBTOOL_CONFIG_VARS], 4799418810dSmrg[m4_foreach([_lt_var], 4809418810dSmrg m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)), 4819418810dSmrg [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])]) 4829418810dSmrg 4839418810dSmrg 4849418810dSmrg# _LT_LIBTOOL_TAG_VARS(TAG) 4859418810dSmrg# ------------------------- 4869418810dSmrgm4_define([_LT_LIBTOOL_TAG_VARS], 4879418810dSmrg[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames), 4889418810dSmrg [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])]) 4899418810dSmrg 4909418810dSmrg 4919418810dSmrg# _LT_TAGVAR(VARNAME, [TAGNAME]) 4929418810dSmrg# ------------------------------ 4939418810dSmrgm4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])]) 4949418810dSmrg 4959418810dSmrg 4969418810dSmrg# _LT_CONFIG_COMMANDS 4979bd41f2cSmrg# ------------------- 4989418810dSmrg# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of 4999418810dSmrg# variables for single and double quote escaping we saved from calls 5009418810dSmrg# to _LT_DECL, we can put quote escaped variables declarations 5019418810dSmrg# into `config.status', and then the shell code to quote escape them in 5029418810dSmrg# for loops in `config.status'. Finally, any additional code accumulated 5039418810dSmrg# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded. 5049418810dSmrgm4_defun([_LT_CONFIG_COMMANDS], 5059418810dSmrg[AC_PROVIDE_IFELSE([LT_OUTPUT], 5069418810dSmrg dnl If the libtool generation code has been placed in $CONFIG_LT, 5079418810dSmrg dnl instead of duplicating it all over again into config.status, 5089418810dSmrg dnl then we will have config.status run $CONFIG_LT later, so it 5099418810dSmrg dnl needs to know what name is stored there: 5109418810dSmrg [AC_CONFIG_COMMANDS([libtool], 5119418810dSmrg [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])], 5129418810dSmrg dnl If the libtool generation code is destined for config.status, 5139418810dSmrg dnl expand the accumulated commands and init code now: 5149418810dSmrg [AC_CONFIG_COMMANDS([libtool], 5159418810dSmrg [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])]) 5169418810dSmrg])#_LT_CONFIG_COMMANDS 5179418810dSmrg 5189418810dSmrg 5199418810dSmrg# Initialize. 5209418810dSmrgm4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT], 5219418810dSmrg[ 5229418810dSmrg 5239418810dSmrg# The HP-UX ksh and POSIX shell print the target directory to stdout 5249418810dSmrg# if CDPATH is set. 5259418810dSmrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 5269418810dSmrg 5279418810dSmrgsed_quote_subst='$sed_quote_subst' 5289418810dSmrgdouble_quote_subst='$double_quote_subst' 5299418810dSmrgdelay_variable_subst='$delay_variable_subst' 5309418810dSmrg_LT_CONFIG_STATUS_DECLARATIONS 5319418810dSmrgLTCC='$LTCC' 5329418810dSmrgLTCFLAGS='$LTCFLAGS' 5339418810dSmrgcompiler='$compiler_DEFAULT' 5349418810dSmrg 5359418810dSmrg# Quote evaled strings. 5369418810dSmrgfor var in lt_decl_all_varnames([[ \ 5379418810dSmrg]], lt_decl_quote_varnames); do 5389418810dSmrg case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 5399418810dSmrg *[[\\\\\\\`\\"\\\$]]*) 5409418810dSmrg eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 5419418810dSmrg ;; 5429418810dSmrg *) 5439418810dSmrg eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 5449418810dSmrg ;; 5459418810dSmrg esac 5469418810dSmrgdone 5479418810dSmrg 5489418810dSmrg# Double-quote double-evaled strings. 5499418810dSmrgfor var in lt_decl_all_varnames([[ \ 5509418810dSmrg]], lt_decl_dquote_varnames); do 5519418810dSmrg case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 5529418810dSmrg *[[\\\\\\\`\\"\\\$]]*) 5539418810dSmrg eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 5549418810dSmrg ;; 5559418810dSmrg *) 5569418810dSmrg eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 5579418810dSmrg ;; 5589418810dSmrg esac 5599418810dSmrgdone 5609418810dSmrg 5619418810dSmrg# Fix-up fallback echo if it was mangled by the above quoting rules. 5629418810dSmrgcase \$lt_ECHO in 5639418810dSmrg*'\\\[$]0 --fallback-echo"')dnl " 5649418810dSmrg lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\` 5659418810dSmrg ;; 5669418810dSmrgesac 5679418810dSmrg 5689418810dSmrg_LT_OUTPUT_LIBTOOL_INIT 5699418810dSmrg]) 5709418810dSmrg 5719418810dSmrg 5729418810dSmrg# LT_OUTPUT 5739418810dSmrg# --------- 5749418810dSmrg# This macro allows early generation of the libtool script (before 5759418810dSmrg# AC_OUTPUT is called), incase it is used in configure for compilation 5769418810dSmrg# tests. 5779418810dSmrgAC_DEFUN([LT_OUTPUT], 5789418810dSmrg[: ${CONFIG_LT=./config.lt} 5799418810dSmrgAC_MSG_NOTICE([creating $CONFIG_LT]) 5809418810dSmrgcat >"$CONFIG_LT" <<_LTEOF 5819418810dSmrg#! $SHELL 5829418810dSmrg# Generated by $as_me. 5839418810dSmrg# Run this file to recreate a libtool stub with the current configuration. 5849418810dSmrg 5859418810dSmrglt_cl_silent=false 5869418810dSmrgSHELL=\${CONFIG_SHELL-$SHELL} 5879418810dSmrg_LTEOF 5889418810dSmrg 5899418810dSmrgcat >>"$CONFIG_LT" <<\_LTEOF 5909418810dSmrgAS_SHELL_SANITIZE 5919418810dSmrg_AS_PREPARE 5929418810dSmrg 5939418810dSmrgexec AS_MESSAGE_FD>&1 5949418810dSmrgexec AS_MESSAGE_LOG_FD>>config.log 5959418810dSmrg{ 5969418810dSmrg echo 5979418810dSmrg AS_BOX([Running $as_me.]) 5989418810dSmrg} >&AS_MESSAGE_LOG_FD 5999418810dSmrg 6009418810dSmrglt_cl_help="\ 6019418810dSmrg\`$as_me' creates a local libtool stub from the current configuration, 6029418810dSmrgfor use in further configure time tests before the real libtool is 6039418810dSmrggenerated. 6049418810dSmrg 6059418810dSmrgUsage: $[0] [[OPTIONS]] 6069418810dSmrg 6079418810dSmrg -h, --help print this help, then exit 6089418810dSmrg -V, --version print version number, then exit 6099418810dSmrg -q, --quiet do not print progress messages 6109418810dSmrg -d, --debug don't remove temporary files 6119418810dSmrg 6129418810dSmrgReport bugs to <bug-libtool@gnu.org>." 6139418810dSmrg 6149418810dSmrglt_cl_version="\ 6159418810dSmrgm4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl 6169418810dSmrgm4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION]) 6179418810dSmrgconfigured by $[0], generated by m4_PACKAGE_STRING. 6189418810dSmrg 6199418810dSmrgCopyright (C) 2008 Free Software Foundation, Inc. 6209418810dSmrgThis config.lt script is free software; the Free Software Foundation 6219418810dSmrggives unlimited permision to copy, distribute and modify it." 6229418810dSmrg 6239418810dSmrgwhile test $[#] != 0 6249418810dSmrgdo 6259418810dSmrg case $[1] in 6269418810dSmrg --version | --v* | -V ) 6279418810dSmrg echo "$lt_cl_version"; exit 0 ;; 6289418810dSmrg --help | --h* | -h ) 6299418810dSmrg echo "$lt_cl_help"; exit 0 ;; 6309418810dSmrg --debug | --d* | -d ) 6319418810dSmrg debug=: ;; 6329418810dSmrg --quiet | --q* | --silent | --s* | -q ) 6339418810dSmrg lt_cl_silent=: ;; 6349418810dSmrg 6359418810dSmrg -*) AC_MSG_ERROR([unrecognized option: $[1] 6369418810dSmrgTry \`$[0] --help' for more information.]) ;; 6379418810dSmrg 6389418810dSmrg *) AC_MSG_ERROR([unrecognized argument: $[1] 6399418810dSmrgTry \`$[0] --help' for more information.]) ;; 6409418810dSmrg esac 6419418810dSmrg shift 6429418810dSmrgdone 6439418810dSmrg 6449418810dSmrgif $lt_cl_silent; then 6459418810dSmrg exec AS_MESSAGE_FD>/dev/null 6469418810dSmrgfi 6479418810dSmrg_LTEOF 6489418810dSmrg 6499418810dSmrgcat >>"$CONFIG_LT" <<_LTEOF 6509418810dSmrg_LT_OUTPUT_LIBTOOL_COMMANDS_INIT 6519418810dSmrg_LTEOF 6529418810dSmrg 6539418810dSmrgcat >>"$CONFIG_LT" <<\_LTEOF 6549418810dSmrgAC_MSG_NOTICE([creating $ofile]) 6559418810dSmrg_LT_OUTPUT_LIBTOOL_COMMANDS 6569418810dSmrgAS_EXIT(0) 6579418810dSmrg_LTEOF 6589418810dSmrgchmod +x "$CONFIG_LT" 6599418810dSmrg 6609418810dSmrg# configure is writing to config.log, but config.lt does its own redirection, 6619418810dSmrg# appending to config.log, which fails on DOS, as config.log is still kept 6629418810dSmrg# open by configure. Here we exec the FD to /dev/null, effectively closing 6639418810dSmrg# config.log, so it can be properly (re)opened and appended to by config.lt. 6649418810dSmrgif test "$no_create" != yes; then 6659418810dSmrg lt_cl_success=: 6669418810dSmrg test "$silent" = yes && 6679418810dSmrg lt_config_lt_args="$lt_config_lt_args --quiet" 6689418810dSmrg exec AS_MESSAGE_LOG_FD>/dev/null 6699418810dSmrg $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false 6709418810dSmrg exec AS_MESSAGE_LOG_FD>>config.log 6719418810dSmrg $lt_cl_success || AS_EXIT(1) 6729418810dSmrgfi 6739418810dSmrg])# LT_OUTPUT 6749418810dSmrg 6759418810dSmrg 6769418810dSmrg# _LT_CONFIG(TAG) 6779418810dSmrg# --------------- 6789418810dSmrg# If TAG is the built-in tag, create an initial libtool script with a 6799418810dSmrg# default configuration from the untagged config vars. Otherwise add code 6809418810dSmrg# to config.status for appending the configuration named by TAG from the 6819418810dSmrg# matching tagged config vars. 6829418810dSmrgm4_defun([_LT_CONFIG], 6839418810dSmrg[m4_require([_LT_FILEUTILS_DEFAULTS])dnl 6849418810dSmrg_LT_CONFIG_SAVE_COMMANDS([ 6859418810dSmrg m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl 6869418810dSmrg m4_if(_LT_TAG, [C], [ 6879418810dSmrg # See if we are running on zsh, and set the options which allow our 6889418810dSmrg # commands through without removal of \ escapes. 6899418810dSmrg if test -n "${ZSH_VERSION+set}" ; then 6909418810dSmrg setopt NO_GLOB_SUBST 6919418810dSmrg fi 6929418810dSmrg 6939418810dSmrg cfgfile="${ofile}T" 6949418810dSmrg trap "$RM \"$cfgfile\"; exit 1" 1 2 15 6959418810dSmrg $RM "$cfgfile" 6969418810dSmrg 6979418810dSmrg cat <<_LT_EOF >> "$cfgfile" 6989418810dSmrg#! $SHELL 6999418810dSmrg 7009418810dSmrg# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 7019418810dSmrg# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 7029418810dSmrg# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 7039418810dSmrg# NOTE: Changes made to this file will be lost: look at ltmain.sh. 7049418810dSmrg# 7059418810dSmrg_LT_COPYING 7069418810dSmrg_LT_LIBTOOL_TAGS 7079418810dSmrg 7089418810dSmrg# ### BEGIN LIBTOOL CONFIG 7099418810dSmrg_LT_LIBTOOL_CONFIG_VARS 7109418810dSmrg_LT_LIBTOOL_TAG_VARS 7119418810dSmrg# ### END LIBTOOL CONFIG 7129418810dSmrg 7139418810dSmrg_LT_EOF 7149418810dSmrg 7159418810dSmrg case $host_os in 7169418810dSmrg aix3*) 7179418810dSmrg cat <<\_LT_EOF >> "$cfgfile" 7189418810dSmrg# AIX sometimes has problems with the GCC collect2 program. For some 7199418810dSmrg# reason, if we set the COLLECT_NAMES environment variable, the problems 7209418810dSmrg# vanish in a puff of smoke. 7219418810dSmrgif test "X${COLLECT_NAMES+set}" != Xset; then 7229418810dSmrg COLLECT_NAMES= 7239418810dSmrg export COLLECT_NAMES 7249418810dSmrgfi 7259418810dSmrg_LT_EOF 7269418810dSmrg ;; 7279418810dSmrg esac 7289418810dSmrg 7299418810dSmrg _LT_PROG_LTMAIN 7309418810dSmrg 7319418810dSmrg # We use sed instead of cat because bash on DJGPP gets confused if 7329418810dSmrg # if finds mixed CR/LF and LF-only lines. Since sed operates in 7339418810dSmrg # text mode, it properly converts lines to CR/LF. This bash problem 7349418810dSmrg # is reportedly fixed, but why not run on old versions too? 7359418810dSmrg sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 7369418810dSmrg || (rm -f "$cfgfile"; exit 1) 7379418810dSmrg 7389418810dSmrg _LT_PROG_XSI_SHELLFNS 7399418810dSmrg 7409418810dSmrg sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 7419418810dSmrg || (rm -f "$cfgfile"; exit 1) 7429418810dSmrg 7439418810dSmrg mv -f "$cfgfile" "$ofile" || 7449418810dSmrg (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 7459418810dSmrg chmod +x "$ofile" 7469418810dSmrg], 7479418810dSmrg[cat <<_LT_EOF >> "$ofile" 7489418810dSmrg 7499418810dSmrgdnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded 7509418810dSmrgdnl in a comment (ie after a #). 7519418810dSmrg# ### BEGIN LIBTOOL TAG CONFIG: $1 7529418810dSmrg_LT_LIBTOOL_TAG_VARS(_LT_TAG) 7539418810dSmrg# ### END LIBTOOL TAG CONFIG: $1 7549418810dSmrg_LT_EOF 7559418810dSmrg])dnl /m4_if 7569418810dSmrg], 7579418810dSmrg[m4_if([$1], [], [ 7589418810dSmrg PACKAGE='$PACKAGE' 7599418810dSmrg VERSION='$VERSION' 7609418810dSmrg TIMESTAMP='$TIMESTAMP' 7619418810dSmrg RM='$RM' 7629418810dSmrg ofile='$ofile'], []) 7639418810dSmrg])dnl /_LT_CONFIG_SAVE_COMMANDS 7649418810dSmrg])# _LT_CONFIG 7659418810dSmrg 7669418810dSmrg 7679418810dSmrg# LT_SUPPORTED_TAG(TAG) 7689418810dSmrg# --------------------- 7699418810dSmrg# Trace this macro to discover what tags are supported by the libtool 7709418810dSmrg# --tag option, using: 7719418810dSmrg# autoconf --trace 'LT_SUPPORTED_TAG:$1' 7729418810dSmrgAC_DEFUN([LT_SUPPORTED_TAG], []) 7739418810dSmrg 7749418810dSmrg 7759418810dSmrg# C support is built-in for now 7769418810dSmrgm4_define([_LT_LANG_C_enabled], []) 7779418810dSmrgm4_define([_LT_TAGS], []) 7789418810dSmrg 7799418810dSmrg 7809418810dSmrg# LT_LANG(LANG) 7819418810dSmrg# ------------- 7829418810dSmrg# Enable libtool support for the given language if not already enabled. 7839418810dSmrgAC_DEFUN([LT_LANG], 7849418810dSmrg[AC_BEFORE([$0], [LT_OUTPUT])dnl 7859418810dSmrgm4_case([$1], 7869418810dSmrg [C], [_LT_LANG(C)], 7879418810dSmrg [C++], [_LT_LANG(CXX)], 7889418810dSmrg [Java], [_LT_LANG(GCJ)], 7899418810dSmrg [Fortran 77], [_LT_LANG(F77)], 7909418810dSmrg [Fortran], [_LT_LANG(FC)], 7919418810dSmrg [Windows Resource], [_LT_LANG(RC)], 7929418810dSmrg [m4_ifdef([_LT_LANG_]$1[_CONFIG], 7939418810dSmrg [_LT_LANG($1)], 7949418810dSmrg [m4_fatal([$0: unsupported language: "$1"])])])dnl 7959418810dSmrg])# LT_LANG 7969418810dSmrg 7979418810dSmrg 7989418810dSmrg# _LT_LANG(LANGNAME) 7999418810dSmrg# ------------------ 8009418810dSmrgm4_defun([_LT_LANG], 8019418810dSmrg[m4_ifdef([_LT_LANG_]$1[_enabled], [], 8029418810dSmrg [LT_SUPPORTED_TAG([$1])dnl 8039418810dSmrg m4_append([_LT_TAGS], [$1 ])dnl 8049418810dSmrg m4_define([_LT_LANG_]$1[_enabled], [])dnl 8059418810dSmrg _LT_LANG_$1_CONFIG($1)])dnl 8069418810dSmrg])# _LT_LANG 8079418810dSmrg 8089418810dSmrg 8099418810dSmrg# _LT_LANG_DEFAULT_CONFIG 8109418810dSmrg# ----------------------- 8119418810dSmrgm4_defun([_LT_LANG_DEFAULT_CONFIG], 8129418810dSmrg[AC_PROVIDE_IFELSE([AC_PROG_CXX], 8139418810dSmrg [LT_LANG(CXX)], 8149418810dSmrg [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])]) 8159418810dSmrg 8169418810dSmrgAC_PROVIDE_IFELSE([AC_PROG_F77], 8179418810dSmrg [LT_LANG(F77)], 8189418810dSmrg [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])]) 8199418810dSmrg 8209418810dSmrgAC_PROVIDE_IFELSE([AC_PROG_FC], 8219418810dSmrg [LT_LANG(FC)], 8229418810dSmrg [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])]) 8239418810dSmrg 8249418810dSmrgdnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal 8259418810dSmrgdnl pulling things in needlessly. 8269418810dSmrgAC_PROVIDE_IFELSE([AC_PROG_GCJ], 8279418810dSmrg [LT_LANG(GCJ)], 8289418810dSmrg [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], 8299418810dSmrg [LT_LANG(GCJ)], 8309418810dSmrg [AC_PROVIDE_IFELSE([LT_PROG_GCJ], 8319418810dSmrg [LT_LANG(GCJ)], 8329418810dSmrg [m4_ifdef([AC_PROG_GCJ], 8339418810dSmrg [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])]) 8349418810dSmrg m4_ifdef([A][M_PROG_GCJ], 8359418810dSmrg [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])]) 8369418810dSmrg m4_ifdef([LT_PROG_GCJ], 8379418810dSmrg [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])]) 8389418810dSmrg 8399418810dSmrgAC_PROVIDE_IFELSE([LT_PROG_RC], 8409418810dSmrg [LT_LANG(RC)], 8419418810dSmrg [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])]) 8429418810dSmrg])# _LT_LANG_DEFAULT_CONFIG 8439418810dSmrg 8449418810dSmrg# Obsolete macros: 8459418810dSmrgAU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)]) 8469418810dSmrgAU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)]) 8479418810dSmrgAU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)]) 8489418810dSmrgAU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)]) 8499418810dSmrgdnl aclocal-1.4 backwards compatibility: 8509418810dSmrgdnl AC_DEFUN([AC_LIBTOOL_CXX], []) 8519418810dSmrgdnl AC_DEFUN([AC_LIBTOOL_F77], []) 8529418810dSmrgdnl AC_DEFUN([AC_LIBTOOL_FC], []) 8539418810dSmrgdnl AC_DEFUN([AC_LIBTOOL_GCJ], []) 8549418810dSmrg 8559418810dSmrg 8569418810dSmrg# _LT_TAG_COMPILER 8579418810dSmrg# ---------------- 8589418810dSmrgm4_defun([_LT_TAG_COMPILER], 8599bd41f2cSmrg[AC_REQUIRE([AC_PROG_CC])dnl 8609bd41f2cSmrg 8619418810dSmrg_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl 8629418810dSmrg_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl 8639418810dSmrg_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl 8649418810dSmrg_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl 8659418810dSmrg 8669bd41f2cSmrg# If no C compiler was specified, use CC. 8679bd41f2cSmrgLTCC=${LTCC-"$CC"} 8689bd41f2cSmrg 8699bd41f2cSmrg# If no C compiler flags were specified, use CFLAGS. 8709bd41f2cSmrgLTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8719bd41f2cSmrg 8729bd41f2cSmrg# Allow CC to be a program name with arguments. 8739bd41f2cSmrgcompiler=$CC 8749418810dSmrg])# _LT_TAG_COMPILER 8759bd41f2cSmrg 8769bd41f2cSmrg 8779bd41f2cSmrg# _LT_COMPILER_BOILERPLATE 8789bd41f2cSmrg# ------------------------ 8799bd41f2cSmrg# Check for compiler boilerplate output or warnings with 8809bd41f2cSmrg# the simple compiler test code. 8819418810dSmrgm4_defun([_LT_COMPILER_BOILERPLATE], 8829418810dSmrg[m4_require([_LT_DECL_SED])dnl 8839bd41f2cSmrgac_outfile=conftest.$ac_objext 8849bd41f2cSmrgecho "$lt_simple_compile_test_code" >conftest.$ac_ext 8859bd41f2cSmrgeval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8869bd41f2cSmrg_lt_compiler_boilerplate=`cat conftest.err` 8879418810dSmrg$RM conftest* 8889bd41f2cSmrg])# _LT_COMPILER_BOILERPLATE 8899bd41f2cSmrg 8909bd41f2cSmrg 8919bd41f2cSmrg# _LT_LINKER_BOILERPLATE 8929bd41f2cSmrg# ---------------------- 8939bd41f2cSmrg# Check for linker boilerplate output or warnings with 8949bd41f2cSmrg# the simple link test code. 8959418810dSmrgm4_defun([_LT_LINKER_BOILERPLATE], 8969418810dSmrg[m4_require([_LT_DECL_SED])dnl 8979bd41f2cSmrgac_outfile=conftest.$ac_objext 8989bd41f2cSmrgecho "$lt_simple_link_test_code" >conftest.$ac_ext 8999bd41f2cSmrgeval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9009bd41f2cSmrg_lt_linker_boilerplate=`cat conftest.err` 9019418810dSmrg$RM -r conftest* 9029bd41f2cSmrg])# _LT_LINKER_BOILERPLATE 9039bd41f2cSmrg 904d075918cSmrg# _LT_REQUIRED_DARWIN_CHECKS 9059418810dSmrg# ------------------------- 9069418810dSmrgm4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[ 907d075918cSmrg case $host_os in 908d075918cSmrg rhapsody* | darwin*) 909d075918cSmrg AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:]) 910d075918cSmrg AC_CHECK_TOOL([NMEDIT], [nmedit], [:]) 9119418810dSmrg AC_CHECK_TOOL([LIPO], [lipo], [:]) 9129418810dSmrg AC_CHECK_TOOL([OTOOL], [otool], [:]) 9139418810dSmrg AC_CHECK_TOOL([OTOOL64], [otool64], [:]) 9149418810dSmrg _LT_DECL([], [DSYMUTIL], [1], 9159418810dSmrg [Tool to manipulate archived DWARF debug symbol files on Mac OS X]) 9169418810dSmrg _LT_DECL([], [NMEDIT], [1], 9179418810dSmrg [Tool to change global to local symbols on Mac OS X]) 9189418810dSmrg _LT_DECL([], [LIPO], [1], 9199418810dSmrg [Tool to manipulate fat objects and archives on Mac OS X]) 9209418810dSmrg _LT_DECL([], [OTOOL], [1], 9219418810dSmrg [ldd/readelf like tool for Mach-O binaries on Mac OS X]) 9229418810dSmrg _LT_DECL([], [OTOOL64], [1], 9239418810dSmrg [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4]) 924d075918cSmrg 925d075918cSmrg AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod], 926d075918cSmrg [lt_cv_apple_cc_single_mod=no 927d075918cSmrg if test -z "${LT_MULTI_MODULE}"; then 9289418810dSmrg # By default we will add the -single_module flag. You can override 9299418810dSmrg # by either setting the environment variable LT_MULTI_MODULE 9309418810dSmrg # non-empty at configure time, or by adding -multi_module to the 9319418810dSmrg # link flags. 9329418810dSmrg rm -rf libconftest.dylib* 9339418810dSmrg echo "int foo(void){return 1;}" > conftest.c 9349418810dSmrg echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 9359418810dSmrg-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD 9369418810dSmrg $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 9379418810dSmrg -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 9389418810dSmrg _lt_result=$? 9399418810dSmrg if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 9409418810dSmrg lt_cv_apple_cc_single_mod=yes 9419418810dSmrg else 9429418810dSmrg cat conftest.err >&AS_MESSAGE_LOG_FD 9439418810dSmrg fi 9449418810dSmrg rm -rf libconftest.dylib* 9459418810dSmrg rm -f conftest.* 946d075918cSmrg fi]) 947d075918cSmrg AC_CACHE_CHECK([for -exported_symbols_list linker flag], 948d075918cSmrg [lt_cv_ld_exported_symbols_list], 949d075918cSmrg [lt_cv_ld_exported_symbols_list=no 950d075918cSmrg save_LDFLAGS=$LDFLAGS 951d075918cSmrg echo "_main" > conftest.sym 952d075918cSmrg LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 953d075918cSmrg AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], 9549418810dSmrg [lt_cv_ld_exported_symbols_list=yes], 9559418810dSmrg [lt_cv_ld_exported_symbols_list=no]) 9569418810dSmrg LDFLAGS="$save_LDFLAGS" 957d075918cSmrg ]) 958d075918cSmrg case $host_os in 9599418810dSmrg rhapsody* | darwin1.[[012]]) 960d075918cSmrg _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 961d075918cSmrg darwin1.*) 9629418810dSmrg _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 9639418810dSmrg darwin*) # darwin 5.x on 964d075918cSmrg # if running on 10.5 or later, the deployment target defaults 965d075918cSmrg # to the OS version, if on x86, and 10.4, the deployment 966d075918cSmrg # target defaults to 10.4. Don't you love it? 967d075918cSmrg case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 9689418810dSmrg 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*) 9699418810dSmrg _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 9709418810dSmrg 10.[[012]]*) 9719418810dSmrg _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 9729418810dSmrg 10.*) 9739418810dSmrg _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 974d075918cSmrg esac 975d075918cSmrg ;; 976d075918cSmrg esac 977d075918cSmrg if test "$lt_cv_apple_cc_single_mod" = "yes"; then 978d075918cSmrg _lt_dar_single_mod='$single_module' 979d075918cSmrg fi 980d075918cSmrg if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 981d075918cSmrg _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 982d075918cSmrg else 9839418810dSmrg _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 984d075918cSmrg fi 985d075918cSmrg if test "$DSYMUTIL" != ":"; then 9869418810dSmrg _lt_dsymutil='~$DSYMUTIL $lib || :' 987d075918cSmrg else 988d075918cSmrg _lt_dsymutil= 989d075918cSmrg fi 990d075918cSmrg ;; 991d075918cSmrg esac 992d075918cSmrg]) 9939bd41f2cSmrg 9949418810dSmrg 9959418810dSmrg# _LT_DARWIN_LINKER_FEATURES 9969418810dSmrg# -------------------------- 9979418810dSmrg# Checks for linker and compiler features on darwin 9989418810dSmrgm4_defun([_LT_DARWIN_LINKER_FEATURES], 9999418810dSmrg[ 10009418810dSmrg m4_require([_LT_REQUIRED_DARWIN_CHECKS]) 10019418810dSmrg _LT_TAGVAR(archive_cmds_need_lc, $1)=no 10029418810dSmrg _LT_TAGVAR(hardcode_direct, $1)=no 10039418810dSmrg _LT_TAGVAR(hardcode_automatic, $1)=yes 10049418810dSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 10059418810dSmrg _LT_TAGVAR(whole_archive_flag_spec, $1)='' 10069418810dSmrg _LT_TAGVAR(link_all_deplibs, $1)=yes 10079418810dSmrg _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined" 10089418810dSmrg case $cc_basename in 10099418810dSmrg ifort*) _lt_dar_can_shared=yes ;; 10109418810dSmrg *) _lt_dar_can_shared=$GCC ;; 10119418810dSmrg esac 10129418810dSmrg if test "$_lt_dar_can_shared" = "yes"; then 10139418810dSmrg output_verbose_link_cmd=echo 10149418810dSmrg _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}" 10159418810dSmrg _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 10169418810dSmrg _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}" 10179418810dSmrg _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}" 10189418810dSmrg m4_if([$1], [CXX], 10199418810dSmrg[ if test "$lt_cv_apple_cc_single_mod" != "yes"; then 10209418810dSmrg _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}" 10219418810dSmrg _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}" 10229418810dSmrg fi 10239418810dSmrg],[]) 10249418810dSmrg else 10259418810dSmrg _LT_TAGVAR(ld_shlibs, $1)=no 10269418810dSmrg fi 10279418810dSmrg]) 10289418810dSmrg 10299418810dSmrg# _LT_SYS_MODULE_PATH_AIX 10309418810dSmrg# ----------------------- 10319bd41f2cSmrg# Links a minimal program and checks the executable 10329bd41f2cSmrg# for the system default hardcoded library path. In most cases, 10339bd41f2cSmrg# this is /usr/lib:/lib, but when the MPI compilers are used 10349bd41f2cSmrg# the location of the communication and MPI libs are included too. 10359bd41f2cSmrg# If we don't find anything, use the default library path according 10369bd41f2cSmrg# to the aix ld manual. 10379418810dSmrgm4_defun([_LT_SYS_MODULE_PATH_AIX], 10389418810dSmrg[m4_require([_LT_DECL_SED])dnl 10399bd41f2cSmrgAC_LINK_IFELSE(AC_LANG_PROGRAM,[ 10409bd41f2cSmrglt_aix_libpath_sed=' 10419bd41f2cSmrg /Import File Strings/,/^$/ { 10429bd41f2cSmrg /^0/ { 10439bd41f2cSmrg s/^0 *\(.*\)$/\1/ 10449bd41f2cSmrg p 10459bd41f2cSmrg } 10469bd41f2cSmrg }' 10479bd41f2cSmrgaix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10489bd41f2cSmrg# Check for a 64-bit object if we didn't find anything. 10499bd41f2cSmrgif test -z "$aix_libpath"; then 10509bd41f2cSmrg aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10519bd41f2cSmrgfi],[]) 10529bd41f2cSmrgif test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 10539418810dSmrg])# _LT_SYS_MODULE_PATH_AIX 10549bd41f2cSmrg 10559bd41f2cSmrg 10569418810dSmrg# _LT_SHELL_INIT(ARG) 10579418810dSmrg# ------------------- 10589418810dSmrgm4_define([_LT_SHELL_INIT], 10599bd41f2cSmrg[ifdef([AC_DIVERSION_NOTICE], 10609bd41f2cSmrg [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)], 10619bd41f2cSmrg [AC_DIVERT_PUSH(NOTICE)]) 10629bd41f2cSmrg$1 10639bd41f2cSmrgAC_DIVERT_POP 10649418810dSmrg])# _LT_SHELL_INIT 10659bd41f2cSmrg 10669bd41f2cSmrg 10679418810dSmrg# _LT_PROG_ECHO_BACKSLASH 10689418810dSmrg# ----------------------- 10699bd41f2cSmrg# Add some code to the start of the generated configure script which 10709bd41f2cSmrg# will find an echo command which doesn't interpret backslashes. 10719418810dSmrgm4_defun([_LT_PROG_ECHO_BACKSLASH], 10729418810dSmrg[_LT_SHELL_INIT([ 10739bd41f2cSmrg# Check that we are running under the correct shell. 10749bd41f2cSmrgSHELL=${CONFIG_SHELL-/bin/sh} 10759bd41f2cSmrg 10769418810dSmrgcase X$lt_ECHO in 10779bd41f2cSmrgX*--fallback-echo) 10789bd41f2cSmrg # Remove one level of quotation (which was required for Make). 10799418810dSmrg ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','` 10809bd41f2cSmrg ;; 10819bd41f2cSmrgesac 10829bd41f2cSmrg 10839418810dSmrgECHO=${lt_ECHO-echo} 10849bd41f2cSmrgif test "X[$]1" = X--no-reexec; then 10859bd41f2cSmrg # Discard the --no-reexec flag, and continue. 10869bd41f2cSmrg shift 10879bd41f2cSmrgelif test "X[$]1" = X--fallback-echo; then 10889bd41f2cSmrg # Avoid inline document here, it may be left over 10899bd41f2cSmrg : 10909418810dSmrgelif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then 10919418810dSmrg # Yippee, $ECHO works! 10929bd41f2cSmrg : 10939bd41f2cSmrgelse 10949bd41f2cSmrg # Restart under the correct shell. 10959bd41f2cSmrg exec $SHELL "[$]0" --no-reexec ${1+"[$]@"} 10969bd41f2cSmrgfi 10979bd41f2cSmrg 10989bd41f2cSmrgif test "X[$]1" = X--fallback-echo; then 10999bd41f2cSmrg # used as fallback echo 11009bd41f2cSmrg shift 11019418810dSmrg cat <<_LT_EOF 11029bd41f2cSmrg[$]* 11039418810dSmrg_LT_EOF 11049bd41f2cSmrg exit 0 11059bd41f2cSmrgfi 11069bd41f2cSmrg 11079bd41f2cSmrg# The HP-UX ksh and POSIX shell print the target directory to stdout 11089bd41f2cSmrg# if CDPATH is set. 11099bd41f2cSmrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 11109bd41f2cSmrg 11119418810dSmrgif test -z "$lt_ECHO"; then 11129418810dSmrg if test "X${echo_test_string+set}" != Xset; then 11139418810dSmrg # find a string as large as possible, as long as the shell can cope with it 11149418810dSmrg for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do 11159418810dSmrg # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 11169418810dSmrg if { echo_test_string=`eval $cmd`; } 2>/dev/null && 11179418810dSmrg { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null 11189418810dSmrg then 11199418810dSmrg break 11209418810dSmrg fi 11219418810dSmrg done 11229418810dSmrg fi 11239bd41f2cSmrg 11249418810dSmrg if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 11259418810dSmrg echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 11269418810dSmrg test "X$echo_testing_string" = "X$echo_test_string"; then 11279418810dSmrg : 11289418810dSmrg else 11299418810dSmrg # The Solaris, AIX, and Digital Unix default echo programs unquote 11309418810dSmrg # backslashes. This makes it impossible to quote backslashes using 11319418810dSmrg # echo "$something" | sed 's/\\/\\\\/g' 11329418810dSmrg # 11339418810dSmrg # So, first we look for a working echo in the user's PATH. 11349bd41f2cSmrg 11359418810dSmrg lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 11369418810dSmrg for dir in $PATH /usr/ucb; do 11379418810dSmrg IFS="$lt_save_ifs" 11389418810dSmrg if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 11399418810dSmrg test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 11409418810dSmrg echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 11419418810dSmrg test "X$echo_testing_string" = "X$echo_test_string"; then 11429418810dSmrg ECHO="$dir/echo" 11439418810dSmrg break 11449418810dSmrg fi 11459418810dSmrg done 11469bd41f2cSmrg IFS="$lt_save_ifs" 11479bd41f2cSmrg 11489418810dSmrg if test "X$ECHO" = Xecho; then 11499418810dSmrg # We didn't find a better echo, so look for alternatives. 11509418810dSmrg if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && 11519418810dSmrg echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && 11529418810dSmrg test "X$echo_testing_string" = "X$echo_test_string"; then 11539418810dSmrg # This shell has a builtin print -r that does the trick. 11549418810dSmrg ECHO='print -r' 11559418810dSmrg elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && 11569418810dSmrg test "X$CONFIG_SHELL" != X/bin/ksh; then 11579418810dSmrg # If we have ksh, try running configure again with it. 11589418810dSmrg ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 11599418810dSmrg export ORIGINAL_CONFIG_SHELL 11609418810dSmrg CONFIG_SHELL=/bin/ksh 11619418810dSmrg export CONFIG_SHELL 11629418810dSmrg exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"} 11639bd41f2cSmrg else 11649418810dSmrg # Try using printf. 11659418810dSmrg ECHO='printf %s\n' 11669418810dSmrg if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 11679418810dSmrg echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 11689418810dSmrg test "X$echo_testing_string" = "X$echo_test_string"; then 11699418810dSmrg # Cool, printf works 11709418810dSmrg : 11719418810dSmrg elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && 11729418810dSmrg test "X$echo_testing_string" = 'X\t' && 11739418810dSmrg echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && 11749418810dSmrg test "X$echo_testing_string" = "X$echo_test_string"; then 11759418810dSmrg CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 11769418810dSmrg export CONFIG_SHELL 11779418810dSmrg SHELL="$CONFIG_SHELL" 11789418810dSmrg export SHELL 11799418810dSmrg ECHO="$CONFIG_SHELL [$]0 --fallback-echo" 11809418810dSmrg elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && 11819418810dSmrg test "X$echo_testing_string" = 'X\t' && 11829418810dSmrg echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && 11839418810dSmrg test "X$echo_testing_string" = "X$echo_test_string"; then 11849418810dSmrg ECHO="$CONFIG_SHELL [$]0 --fallback-echo" 11859418810dSmrg else 11869418810dSmrg # maybe with a smaller string... 11879418810dSmrg prev=: 11889bd41f2cSmrg 11899418810dSmrg for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do 11909418810dSmrg if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null 11919418810dSmrg then 11929418810dSmrg break 11939418810dSmrg fi 11949418810dSmrg prev="$cmd" 11959418810dSmrg done 11969bd41f2cSmrg 11979418810dSmrg if test "$prev" != 'sed 50q "[$]0"'; then 11989418810dSmrg echo_test_string=`eval $prev` 11999418810dSmrg export echo_test_string 12009418810dSmrg exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"} 12019418810dSmrg else 12029418810dSmrg # Oops. We lost completely, so just stick with echo. 12039418810dSmrg ECHO=echo 12049418810dSmrg fi 12059418810dSmrg fi 12069bd41f2cSmrg fi 12079bd41f2cSmrg fi 12089bd41f2cSmrg fi 12099bd41f2cSmrgfi 12109bd41f2cSmrg 12119bd41f2cSmrg# Copy echo and quote the copy suitably for passing to libtool from 12129bd41f2cSmrg# the Makefile, instead of quoting the original, which is used later. 12139418810dSmrglt_ECHO=$ECHO 12149418810dSmrgif test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then 12159418810dSmrg lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo" 12169bd41f2cSmrgfi 12179bd41f2cSmrg 12189418810dSmrgAC_SUBST(lt_ECHO) 12199418810dSmrg]) 12209418810dSmrg_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts]) 12219418810dSmrg_LT_DECL([], [ECHO], [1], 12229418810dSmrg [An echo program that does not interpret backslashes]) 12239418810dSmrg])# _LT_PROG_ECHO_BACKSLASH 12249bd41f2cSmrg 12259bd41f2cSmrg 12269418810dSmrg# _LT_ENABLE_LOCK 12279418810dSmrg# --------------- 12289418810dSmrgm4_defun([_LT_ENABLE_LOCK], 12299bd41f2cSmrg[AC_ARG_ENABLE([libtool-lock], 12309418810dSmrg [AS_HELP_STRING([--disable-libtool-lock], 12319418810dSmrg [avoid locking (might break parallel builds)])]) 12329bd41f2cSmrgtest "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 12339bd41f2cSmrg 12349bd41f2cSmrg# Some flags need to be propagated to the compiler or linker for good 12359bd41f2cSmrg# libtool support. 12369bd41f2cSmrgcase $host in 12379bd41f2cSmrgia64-*-hpux*) 12389bd41f2cSmrg # Find out which ABI we are using. 12399bd41f2cSmrg echo 'int i;' > conftest.$ac_ext 12409bd41f2cSmrg if AC_TRY_EVAL(ac_compile); then 12419bd41f2cSmrg case `/usr/bin/file conftest.$ac_objext` in 12429418810dSmrg *ELF-32*) 12439418810dSmrg HPUX_IA64_MODE="32" 12449418810dSmrg ;; 12459418810dSmrg *ELF-64*) 12469418810dSmrg HPUX_IA64_MODE="64" 12479418810dSmrg ;; 12489bd41f2cSmrg esac 12499bd41f2cSmrg fi 12509bd41f2cSmrg rm -rf conftest* 12519bd41f2cSmrg ;; 12529bd41f2cSmrg*-*-irix6*) 12539bd41f2cSmrg # Find out which ABI we are using. 12549bd41f2cSmrg echo '[#]line __oline__ "configure"' > conftest.$ac_ext 12559bd41f2cSmrg if AC_TRY_EVAL(ac_compile); then 12569418810dSmrg if test "$lt_cv_prog_gnu_ld" = yes; then 12579418810dSmrg case `/usr/bin/file conftest.$ac_objext` in 12589418810dSmrg *32-bit*) 12599418810dSmrg LD="${LD-ld} -melf32bsmip" 12609418810dSmrg ;; 12619418810dSmrg *N32*) 12629418810dSmrg LD="${LD-ld} -melf32bmipn32" 12639418810dSmrg ;; 12649418810dSmrg *64-bit*) 12659418810dSmrg LD="${LD-ld} -melf64bmip" 12669418810dSmrg ;; 12679418810dSmrg esac 12689418810dSmrg else 12699418810dSmrg case `/usr/bin/file conftest.$ac_objext` in 12709418810dSmrg *32-bit*) 12719418810dSmrg LD="${LD-ld} -32" 12729418810dSmrg ;; 12739418810dSmrg *N32*) 12749418810dSmrg LD="${LD-ld} -n32" 12759418810dSmrg ;; 12769418810dSmrg *64-bit*) 12779418810dSmrg LD="${LD-ld} -64" 12789418810dSmrg ;; 12799418810dSmrg esac 12809418810dSmrg fi 12819bd41f2cSmrg fi 12829bd41f2cSmrg rm -rf conftest* 12839bd41f2cSmrg ;; 12849bd41f2cSmrg 12859bd41f2cSmrgx86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 12869418810dSmrgs390*-*linux*|s390*-*tpf*|sparc*-*linux*) 12879bd41f2cSmrg # Find out which ABI we are using. 12889bd41f2cSmrg echo 'int i;' > conftest.$ac_ext 12899bd41f2cSmrg if AC_TRY_EVAL(ac_compile); then 12909bd41f2cSmrg case `/usr/bin/file conftest.o` in 12919418810dSmrg *32-bit*) 12929418810dSmrg case $host in 12939418810dSmrg x86_64-*kfreebsd*-gnu) 12949418810dSmrg LD="${LD-ld} -m elf_i386_fbsd" 12959418810dSmrg ;; 12969418810dSmrg x86_64-*linux*) 12979418810dSmrg LD="${LD-ld} -m elf_i386" 12989418810dSmrg ;; 12999418810dSmrg ppc64-*linux*|powerpc64-*linux*) 13009418810dSmrg LD="${LD-ld} -m elf32ppclinux" 13019418810dSmrg ;; 13029418810dSmrg s390x-*linux*) 13039418810dSmrg LD="${LD-ld} -m elf_s390" 13049418810dSmrg ;; 13059418810dSmrg sparc64-*linux*) 13069418810dSmrg LD="${LD-ld} -m elf32_sparc" 13079418810dSmrg ;; 13089418810dSmrg esac 13099418810dSmrg ;; 13109418810dSmrg *64-bit*) 13119418810dSmrg case $host in 13129418810dSmrg x86_64-*kfreebsd*-gnu) 13139418810dSmrg LD="${LD-ld} -m elf_x86_64_fbsd" 13149418810dSmrg ;; 13159418810dSmrg x86_64-*linux*) 13169418810dSmrg LD="${LD-ld} -m elf_x86_64" 13179418810dSmrg ;; 13189418810dSmrg ppc*-*linux*|powerpc*-*linux*) 13199418810dSmrg LD="${LD-ld} -m elf64ppc" 13209418810dSmrg ;; 13219418810dSmrg s390*-*linux*|s390*-*tpf*) 13229418810dSmrg LD="${LD-ld} -m elf64_s390" 13239418810dSmrg ;; 13249418810dSmrg sparc*-*linux*) 13259418810dSmrg LD="${LD-ld} -m elf64_sparc" 13269418810dSmrg ;; 13279418810dSmrg esac 13289418810dSmrg ;; 13299bd41f2cSmrg esac 13309bd41f2cSmrg fi 13319bd41f2cSmrg rm -rf conftest* 13329bd41f2cSmrg ;; 13339bd41f2cSmrg 13349bd41f2cSmrg*-*-sco3.2v5*) 13359bd41f2cSmrg # On SCO OpenServer 5, we need -belf to get full-featured binaries. 13369bd41f2cSmrg SAVE_CFLAGS="$CFLAGS" 13379bd41f2cSmrg CFLAGS="$CFLAGS -belf" 13389bd41f2cSmrg AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, 13399bd41f2cSmrg [AC_LANG_PUSH(C) 13409418810dSmrg AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) 13419bd41f2cSmrg AC_LANG_POP]) 13429bd41f2cSmrg if test x"$lt_cv_cc_needs_belf" != x"yes"; then 13439bd41f2cSmrg # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 13449bd41f2cSmrg CFLAGS="$SAVE_CFLAGS" 13459bd41f2cSmrg fi 13469bd41f2cSmrg ;; 13479bd41f2cSmrgsparc*-*solaris*) 13489bd41f2cSmrg # Find out which ABI we are using. 13499bd41f2cSmrg echo 'int i;' > conftest.$ac_ext 13509bd41f2cSmrg if AC_TRY_EVAL(ac_compile); then 13519bd41f2cSmrg case `/usr/bin/file conftest.o` in 13529bd41f2cSmrg *64-bit*) 13539bd41f2cSmrg case $lt_cv_prog_gnu_ld in 13549bd41f2cSmrg yes*) LD="${LD-ld} -m elf64_sparc" ;; 1355d075918cSmrg *) 13569418810dSmrg if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 1357d075918cSmrg LD="${LD-ld} -64" 1358d075918cSmrg fi 1359d075918cSmrg ;; 13609bd41f2cSmrg esac 13619bd41f2cSmrg ;; 13629bd41f2cSmrg esac 13639bd41f2cSmrg fi 13649bd41f2cSmrg rm -rf conftest* 13659bd41f2cSmrg ;; 13669bd41f2cSmrgesac 13679bd41f2cSmrg 13689bd41f2cSmrgneed_locks="$enable_libtool_lock" 13699418810dSmrg])# _LT_ENABLE_LOCK 13709418810dSmrg 13719418810dSmrg 13729418810dSmrg# _LT_CMD_OLD_ARCHIVE 13739418810dSmrg# ------------------- 13749418810dSmrgm4_defun([_LT_CMD_OLD_ARCHIVE], 13759418810dSmrg[AC_CHECK_TOOL(AR, ar, false) 13769418810dSmrgtest -z "$AR" && AR=ar 13779418810dSmrgtest -z "$AR_FLAGS" && AR_FLAGS=cru 13789418810dSmrg_LT_DECL([], [AR], [1], [The archiver]) 13799418810dSmrg_LT_DECL([], [AR_FLAGS], [1]) 13809418810dSmrg 13819418810dSmrgAC_CHECK_TOOL(STRIP, strip, :) 13829418810dSmrgtest -z "$STRIP" && STRIP=: 13839418810dSmrg_LT_DECL([], [STRIP], [1], [A symbol stripping program]) 13849bd41f2cSmrg 13859418810dSmrgAC_CHECK_TOOL(RANLIB, ranlib, :) 13869418810dSmrgtest -z "$RANLIB" && RANLIB=: 13879418810dSmrg_LT_DECL([], [RANLIB], [1], 13889418810dSmrg [Commands used to install an old-style archive]) 13899418810dSmrg 13909418810dSmrg# Determine commands to create old-style static archives. 13919418810dSmrgold_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 13929418810dSmrgold_postinstall_cmds='chmod 644 $oldlib' 13939418810dSmrgold_postuninstall_cmds= 13949418810dSmrg 13959418810dSmrgif test -n "$RANLIB"; then 13969418810dSmrg case $host_os in 13979418810dSmrg openbsd*) 13989418810dSmrg old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 13999418810dSmrg ;; 14009418810dSmrg *) 14019418810dSmrg old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 14029418810dSmrg ;; 14039418810dSmrg esac 14049418810dSmrg old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 14059418810dSmrgfi 14069418810dSmrg_LT_DECL([], [old_postinstall_cmds], [2]) 14079418810dSmrg_LT_DECL([], [old_postuninstall_cmds], [2]) 14089418810dSmrg_LT_TAGDECL([], [old_archive_cmds], [2], 14099418810dSmrg [Commands used to build an old-style archive]) 14109418810dSmrg])# _LT_CMD_OLD_ARCHIVE 14119bd41f2cSmrg 14129bd41f2cSmrg 14139418810dSmrg# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, 14149bd41f2cSmrg# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) 14159bd41f2cSmrg# ---------------------------------------------------------------- 14169bd41f2cSmrg# Check whether the given compiler option works 14179418810dSmrgAC_DEFUN([_LT_COMPILER_OPTION], 14189418810dSmrg[m4_require([_LT_FILEUTILS_DEFAULTS])dnl 14199418810dSmrgm4_require([_LT_DECL_SED])dnl 14209bd41f2cSmrgAC_CACHE_CHECK([$1], [$2], 14219bd41f2cSmrg [$2=no 14229418810dSmrg m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) 14239bd41f2cSmrg echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14249bd41f2cSmrg lt_compiler_flag="$3" 14259bd41f2cSmrg # Insert the option either (1) after the last *FLAGS variable, or 14269bd41f2cSmrg # (2) before a word containing "conftest.", or (3) at the end. 14279bd41f2cSmrg # Note that $ac_compile itself does not contain backslashes and begins 14289bd41f2cSmrg # with a dollar sign (not a hyphen), so the echo should work correctly. 14299bd41f2cSmrg # The option is referenced via a variable to avoid confusing sed. 14309bd41f2cSmrg lt_compile=`echo "$ac_compile" | $SED \ 14319bd41f2cSmrg -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14329bd41f2cSmrg -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ 14339bd41f2cSmrg -e 's:$: $lt_compiler_flag:'` 14349bd41f2cSmrg (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) 14359bd41f2cSmrg (eval "$lt_compile" 2>conftest.err) 14369bd41f2cSmrg ac_status=$? 14379bd41f2cSmrg cat conftest.err >&AS_MESSAGE_LOG_FD 14389bd41f2cSmrg echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD 14399bd41f2cSmrg if (exit $ac_status) && test -s "$ac_outfile"; then 14409bd41f2cSmrg # The compiler can only warn and ignore the option if not recognized 14419bd41f2cSmrg # So say no if there are warnings other than the usual output. 14429418810dSmrg $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 14439bd41f2cSmrg $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14449bd41f2cSmrg if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14459bd41f2cSmrg $2=yes 14469bd41f2cSmrg fi 14479bd41f2cSmrg fi 14489418810dSmrg $RM conftest* 14499bd41f2cSmrg]) 14509bd41f2cSmrg 14519bd41f2cSmrgif test x"[$]$2" = xyes; then 14529418810dSmrg m4_if([$5], , :, [$5]) 14539bd41f2cSmrgelse 14549418810dSmrg m4_if([$6], , :, [$6]) 14559bd41f2cSmrgfi 14569418810dSmrg])# _LT_COMPILER_OPTION 14579bd41f2cSmrg 14589418810dSmrg# Old name: 14599418810dSmrgAU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION]) 14609418810dSmrgdnl aclocal-1.4 backwards compatibility: 14619418810dSmrgdnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], []) 14629bd41f2cSmrg 14639418810dSmrg 14649418810dSmrg# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, 14659418810dSmrg# [ACTION-SUCCESS], [ACTION-FAILURE]) 14669418810dSmrg# ---------------------------------------------------- 14679418810dSmrg# Check whether the given linker option works 14689418810dSmrgAC_DEFUN([_LT_LINKER_OPTION], 14699418810dSmrg[m4_require([_LT_FILEUTILS_DEFAULTS])dnl 14709418810dSmrgm4_require([_LT_DECL_SED])dnl 14719bd41f2cSmrgAC_CACHE_CHECK([$1], [$2], 14729bd41f2cSmrg [$2=no 14739bd41f2cSmrg save_LDFLAGS="$LDFLAGS" 14749bd41f2cSmrg LDFLAGS="$LDFLAGS $3" 14759bd41f2cSmrg echo "$lt_simple_link_test_code" > conftest.$ac_ext 14769bd41f2cSmrg if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14779bd41f2cSmrg # The linker can only warn and ignore the option if not recognized 14789bd41f2cSmrg # So say no if there are warnings 14799bd41f2cSmrg if test -s conftest.err; then 14809bd41f2cSmrg # Append any errors to the config.log. 14819bd41f2cSmrg cat conftest.err 1>&AS_MESSAGE_LOG_FD 14829418810dSmrg $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 14839bd41f2cSmrg $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14849bd41f2cSmrg if diff conftest.exp conftest.er2 >/dev/null; then 14859bd41f2cSmrg $2=yes 14869bd41f2cSmrg fi 14879bd41f2cSmrg else 14889bd41f2cSmrg $2=yes 14899bd41f2cSmrg fi 14909bd41f2cSmrg fi 14919418810dSmrg $RM -r conftest* 14929bd41f2cSmrg LDFLAGS="$save_LDFLAGS" 14939bd41f2cSmrg]) 14949bd41f2cSmrg 14959bd41f2cSmrgif test x"[$]$2" = xyes; then 14969418810dSmrg m4_if([$4], , :, [$4]) 14979bd41f2cSmrgelse 14989418810dSmrg m4_if([$5], , :, [$5]) 14999bd41f2cSmrgfi 15009418810dSmrg])# _LT_LINKER_OPTION 15019bd41f2cSmrg 15029418810dSmrg# Old name: 15039418810dSmrgAU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION]) 15049418810dSmrgdnl aclocal-1.4 backwards compatibility: 15059418810dSmrgdnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], []) 15069bd41f2cSmrg 15079418810dSmrg 15089418810dSmrg# LT_CMD_MAX_LEN 15099418810dSmrg#--------------- 15109418810dSmrgAC_DEFUN([LT_CMD_MAX_LEN], 15119418810dSmrg[AC_REQUIRE([AC_CANONICAL_HOST])dnl 15129418810dSmrg# find the maximum length of command line arguments 15139bd41f2cSmrgAC_MSG_CHECKING([the maximum length of command line arguments]) 15149bd41f2cSmrgAC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl 15159bd41f2cSmrg i=0 15169bd41f2cSmrg teststring="ABCD" 15179bd41f2cSmrg 15189bd41f2cSmrg case $build_os in 15199bd41f2cSmrg msdosdjgpp*) 15209bd41f2cSmrg # On DJGPP, this test can blow up pretty badly due to problems in libc 15219bd41f2cSmrg # (any single argument exceeding 2000 bytes causes a buffer overrun 15229bd41f2cSmrg # during glob expansion). Even if it were fixed, the result of this 15239bd41f2cSmrg # check would be larger than it should be. 15249bd41f2cSmrg lt_cv_sys_max_cmd_len=12288; # 12K is about right 15259bd41f2cSmrg ;; 15269bd41f2cSmrg 15279bd41f2cSmrg gnu*) 15289bd41f2cSmrg # Under GNU Hurd, this test is not required because there is 15299bd41f2cSmrg # no limit to the length of command line arguments. 15309bd41f2cSmrg # Libtool will interpret -1 as no limit whatsoever 15319bd41f2cSmrg lt_cv_sys_max_cmd_len=-1; 15329bd41f2cSmrg ;; 15339bd41f2cSmrg 15349418810dSmrg cygwin* | mingw* | cegcc*) 15359bd41f2cSmrg # On Win9x/ME, this test blows up -- it succeeds, but takes 15369bd41f2cSmrg # about 5 minutes as the teststring grows exponentially. 15379bd41f2cSmrg # Worse, since 9x/ME are not pre-emptively multitasking, 15389bd41f2cSmrg # you end up with a "frozen" computer, even though with patience 15399bd41f2cSmrg # the test eventually succeeds (with a max line length of 256k). 15409bd41f2cSmrg # Instead, let's just punt: use the minimum linelength reported by 15419bd41f2cSmrg # all of the supported platforms: 8192 (on NT/2K/XP). 15429bd41f2cSmrg lt_cv_sys_max_cmd_len=8192; 15439bd41f2cSmrg ;; 15449bd41f2cSmrg 15459bd41f2cSmrg amigaos*) 15469bd41f2cSmrg # On AmigaOS with pdksh, this test takes hours, literally. 15479bd41f2cSmrg # So we just punt and use a minimum line length of 8192. 15489bd41f2cSmrg lt_cv_sys_max_cmd_len=8192; 15499bd41f2cSmrg ;; 15509bd41f2cSmrg 15519bd41f2cSmrg netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 15529bd41f2cSmrg # This has been around since 386BSD, at least. Likely further. 15539bd41f2cSmrg if test -x /sbin/sysctl; then 15549bd41f2cSmrg lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 15559bd41f2cSmrg elif test -x /usr/sbin/sysctl; then 15569bd41f2cSmrg lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 15579bd41f2cSmrg else 15589bd41f2cSmrg lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 15599bd41f2cSmrg fi 15609bd41f2cSmrg # And add a safety zone 15619bd41f2cSmrg lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 15629bd41f2cSmrg lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 15639bd41f2cSmrg ;; 15649bd41f2cSmrg 15659bd41f2cSmrg interix*) 15669bd41f2cSmrg # We know the value 262144 and hardcode it with a safety zone (like BSD) 15679bd41f2cSmrg lt_cv_sys_max_cmd_len=196608 15689bd41f2cSmrg ;; 15699bd41f2cSmrg 15709bd41f2cSmrg osf*) 15719bd41f2cSmrg # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 15729bd41f2cSmrg # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 15739bd41f2cSmrg # nice to cause kernel panics so lets avoid the loop below. 15749bd41f2cSmrg # First set a reasonable default. 15759bd41f2cSmrg lt_cv_sys_max_cmd_len=16384 15769bd41f2cSmrg # 15779bd41f2cSmrg if test -x /sbin/sysconfig; then 15789bd41f2cSmrg case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 15799bd41f2cSmrg *1*) lt_cv_sys_max_cmd_len=-1 ;; 15809bd41f2cSmrg esac 15819bd41f2cSmrg fi 15829bd41f2cSmrg ;; 15839bd41f2cSmrg sco3.2v5*) 15849bd41f2cSmrg lt_cv_sys_max_cmd_len=102400 15859bd41f2cSmrg ;; 15869bd41f2cSmrg sysv5* | sco5v6* | sysv4.2uw2*) 15879bd41f2cSmrg kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 15889bd41f2cSmrg if test -n "$kargmax"; then 15899418810dSmrg lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'` 15909bd41f2cSmrg else 15919bd41f2cSmrg lt_cv_sys_max_cmd_len=32768 15929bd41f2cSmrg fi 15939bd41f2cSmrg ;; 15949bd41f2cSmrg *) 15959bd41f2cSmrg lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 15969bd41f2cSmrg if test -n "$lt_cv_sys_max_cmd_len"; then 15979bd41f2cSmrg lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 15989bd41f2cSmrg lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 15999bd41f2cSmrg else 16009418810dSmrg # Make teststring a little bigger before we do anything with it. 16019418810dSmrg # a 1K string should be a reasonable start. 16029418810dSmrg for i in 1 2 3 4 5 6 7 8 ; do 16039418810dSmrg teststring=$teststring$teststring 16049418810dSmrg done 16059bd41f2cSmrg SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 16069418810dSmrg # If test is not a shell built-in, we'll probably end up computing a 16079418810dSmrg # maximum length that is only half of the actual maximum length, but 16089418810dSmrg # we can't tell. 16099418810dSmrg while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ 16109418810dSmrg = "XX$teststring$teststring"; } >/dev/null 2>&1 && 16119bd41f2cSmrg test $i != 17 # 1/2 MB should be enough 16129bd41f2cSmrg do 16139bd41f2cSmrg i=`expr $i + 1` 16149bd41f2cSmrg teststring=$teststring$teststring 16159bd41f2cSmrg done 16169418810dSmrg # Only check the string length outside the loop. 16179418810dSmrg lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 16189bd41f2cSmrg teststring= 16199418810dSmrg # Add a significant safety factor because C++ compilers can tack on 16209418810dSmrg # massive amounts of additional arguments before passing them to the 16219418810dSmrg # linker. It appears as though 1/2 is a usable value. 16229bd41f2cSmrg lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 16239bd41f2cSmrg fi 16249bd41f2cSmrg ;; 16259bd41f2cSmrg esac 16269bd41f2cSmrg]) 16279bd41f2cSmrgif test -n $lt_cv_sys_max_cmd_len ; then 16289bd41f2cSmrg AC_MSG_RESULT($lt_cv_sys_max_cmd_len) 16299bd41f2cSmrgelse 16309bd41f2cSmrg AC_MSG_RESULT(none) 16319bd41f2cSmrgfi 16329418810dSmrgmax_cmd_len=$lt_cv_sys_max_cmd_len 16339418810dSmrg_LT_DECL([], [max_cmd_len], [0], 16349418810dSmrg [What is the maximum length of a command?]) 16359418810dSmrg])# LT_CMD_MAX_LEN 16369bd41f2cSmrg 16379418810dSmrg# Old name: 16389418810dSmrgAU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN]) 16399418810dSmrgdnl aclocal-1.4 backwards compatibility: 16409418810dSmrgdnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], []) 16419bd41f2cSmrg 16429418810dSmrg 16439418810dSmrg# _LT_HEADER_DLFCN 16449418810dSmrg# ---------------- 16459418810dSmrgm4_defun([_LT_HEADER_DLFCN], 16469418810dSmrg[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl 16479418810dSmrg])# _LT_HEADER_DLFCN 16489bd41f2cSmrg 16499bd41f2cSmrg 16509418810dSmrg# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, 16519418810dSmrg# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) 16529418810dSmrg# ---------------------------------------------------------------- 16539418810dSmrgm4_defun([_LT_TRY_DLOPEN_SELF], 16549418810dSmrg[m4_require([_LT_HEADER_DLFCN])dnl 16559bd41f2cSmrgif test "$cross_compiling" = yes; then : 16569bd41f2cSmrg [$4] 16579bd41f2cSmrgelse 16589bd41f2cSmrg lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 16599bd41f2cSmrg lt_status=$lt_dlunknown 16609418810dSmrg cat > conftest.$ac_ext <<_LT_EOF 16619bd41f2cSmrg[#line __oline__ "configure" 16629bd41f2cSmrg#include "confdefs.h" 16639bd41f2cSmrg 16649bd41f2cSmrg#if HAVE_DLFCN_H 16659bd41f2cSmrg#include <dlfcn.h> 16669bd41f2cSmrg#endif 16679bd41f2cSmrg 16689bd41f2cSmrg#include <stdio.h> 16699bd41f2cSmrg 16709bd41f2cSmrg#ifdef RTLD_GLOBAL 16719bd41f2cSmrg# define LT_DLGLOBAL RTLD_GLOBAL 16729bd41f2cSmrg#else 16739bd41f2cSmrg# ifdef DL_GLOBAL 16749bd41f2cSmrg# define LT_DLGLOBAL DL_GLOBAL 16759bd41f2cSmrg# else 16769bd41f2cSmrg# define LT_DLGLOBAL 0 16779bd41f2cSmrg# endif 16789bd41f2cSmrg#endif 16799bd41f2cSmrg 16809bd41f2cSmrg/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 16819bd41f2cSmrg find out it does not work in some platform. */ 16829bd41f2cSmrg#ifndef LT_DLLAZY_OR_NOW 16839bd41f2cSmrg# ifdef RTLD_LAZY 16849bd41f2cSmrg# define LT_DLLAZY_OR_NOW RTLD_LAZY 16859bd41f2cSmrg# else 16869bd41f2cSmrg# ifdef DL_LAZY 16879bd41f2cSmrg# define LT_DLLAZY_OR_NOW DL_LAZY 16889bd41f2cSmrg# else 16899bd41f2cSmrg# ifdef RTLD_NOW 16909bd41f2cSmrg# define LT_DLLAZY_OR_NOW RTLD_NOW 16919bd41f2cSmrg# else 16929bd41f2cSmrg# ifdef DL_NOW 16939bd41f2cSmrg# define LT_DLLAZY_OR_NOW DL_NOW 16949bd41f2cSmrg# else 16959bd41f2cSmrg# define LT_DLLAZY_OR_NOW 0 16969bd41f2cSmrg# endif 16979bd41f2cSmrg# endif 16989bd41f2cSmrg# endif 16999bd41f2cSmrg# endif 17009bd41f2cSmrg#endif 17019bd41f2cSmrg 17029bd41f2cSmrgvoid fnord() { int i=42;} 17039bd41f2cSmrgint main () 17049bd41f2cSmrg{ 17059bd41f2cSmrg void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 17069bd41f2cSmrg int status = $lt_dlunknown; 17079bd41f2cSmrg 17089bd41f2cSmrg if (self) 17099bd41f2cSmrg { 17109bd41f2cSmrg if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 17119bd41f2cSmrg else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 17129bd41f2cSmrg /* dlclose (self); */ 17139bd41f2cSmrg } 17149bd41f2cSmrg else 17159bd41f2cSmrg puts (dlerror ()); 17169bd41f2cSmrg 17179418810dSmrg return status; 17189bd41f2cSmrg}] 17199418810dSmrg_LT_EOF 17209bd41f2cSmrg if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then 17219bd41f2cSmrg (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null 17229bd41f2cSmrg lt_status=$? 17239bd41f2cSmrg case x$lt_status in 17249bd41f2cSmrg x$lt_dlno_uscore) $1 ;; 17259bd41f2cSmrg x$lt_dlneed_uscore) $2 ;; 17269bd41f2cSmrg x$lt_dlunknown|x*) $3 ;; 17279bd41f2cSmrg esac 17289bd41f2cSmrg else : 17299bd41f2cSmrg # compilation failed 17309bd41f2cSmrg $3 17319bd41f2cSmrg fi 17329bd41f2cSmrgfi 17339bd41f2cSmrgrm -fr conftest* 17349418810dSmrg])# _LT_TRY_DLOPEN_SELF 17359bd41f2cSmrg 17369bd41f2cSmrg 17379418810dSmrg# LT_SYS_DLOPEN_SELF 17389418810dSmrg# ------------------ 17399418810dSmrgAC_DEFUN([LT_SYS_DLOPEN_SELF], 17409418810dSmrg[m4_require([_LT_HEADER_DLFCN])dnl 17419bd41f2cSmrgif test "x$enable_dlopen" != xyes; then 17429bd41f2cSmrg enable_dlopen=unknown 17439bd41f2cSmrg enable_dlopen_self=unknown 17449bd41f2cSmrg enable_dlopen_self_static=unknown 17459bd41f2cSmrgelse 17469bd41f2cSmrg lt_cv_dlopen=no 17479bd41f2cSmrg lt_cv_dlopen_libs= 17489bd41f2cSmrg 17499bd41f2cSmrg case $host_os in 17509bd41f2cSmrg beos*) 17519bd41f2cSmrg lt_cv_dlopen="load_add_on" 17529bd41f2cSmrg lt_cv_dlopen_libs= 17539bd41f2cSmrg lt_cv_dlopen_self=yes 17549bd41f2cSmrg ;; 17559bd41f2cSmrg 17569418810dSmrg mingw* | pw32* | cegcc*) 17579bd41f2cSmrg lt_cv_dlopen="LoadLibrary" 17589bd41f2cSmrg lt_cv_dlopen_libs= 17599418810dSmrg ;; 17609bd41f2cSmrg 17619bd41f2cSmrg cygwin*) 17629bd41f2cSmrg lt_cv_dlopen="dlopen" 17639bd41f2cSmrg lt_cv_dlopen_libs= 17649418810dSmrg ;; 17659bd41f2cSmrg 17669bd41f2cSmrg darwin*) 17679bd41f2cSmrg # if libdl is installed we need to link against it 17689bd41f2cSmrg AC_CHECK_LIB([dl], [dlopen], 17699bd41f2cSmrg [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[ 17709bd41f2cSmrg lt_cv_dlopen="dyld" 17719bd41f2cSmrg lt_cv_dlopen_libs= 17729bd41f2cSmrg lt_cv_dlopen_self=yes 17739bd41f2cSmrg ]) 17749418810dSmrg ;; 17759bd41f2cSmrg 17769bd41f2cSmrg *) 17779bd41f2cSmrg AC_CHECK_FUNC([shl_load], 17789bd41f2cSmrg [lt_cv_dlopen="shl_load"], 17799bd41f2cSmrg [AC_CHECK_LIB([dld], [shl_load], 1780d075918cSmrg [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"], 17819bd41f2cSmrg [AC_CHECK_FUNC([dlopen], 17829bd41f2cSmrg [lt_cv_dlopen="dlopen"], 17839bd41f2cSmrg [AC_CHECK_LIB([dl], [dlopen], 17849bd41f2cSmrg [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], 17859bd41f2cSmrg [AC_CHECK_LIB([svld], [dlopen], 17869bd41f2cSmrg [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], 17879bd41f2cSmrg [AC_CHECK_LIB([dld], [dld_link], 1788d075918cSmrg [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"]) 17899bd41f2cSmrg ]) 17909bd41f2cSmrg ]) 17919bd41f2cSmrg ]) 17929bd41f2cSmrg ]) 17939bd41f2cSmrg ]) 17949bd41f2cSmrg ;; 17959bd41f2cSmrg esac 17969bd41f2cSmrg 17979bd41f2cSmrg if test "x$lt_cv_dlopen" != xno; then 17989bd41f2cSmrg enable_dlopen=yes 17999bd41f2cSmrg else 18009bd41f2cSmrg enable_dlopen=no 18019bd41f2cSmrg fi 18029bd41f2cSmrg 18039bd41f2cSmrg case $lt_cv_dlopen in 18049bd41f2cSmrg dlopen) 18059bd41f2cSmrg save_CPPFLAGS="$CPPFLAGS" 18069bd41f2cSmrg test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 18079bd41f2cSmrg 18089bd41f2cSmrg save_LDFLAGS="$LDFLAGS" 18099bd41f2cSmrg wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 18109bd41f2cSmrg 18119bd41f2cSmrg save_LIBS="$LIBS" 18129bd41f2cSmrg LIBS="$lt_cv_dlopen_libs $LIBS" 18139bd41f2cSmrg 18149bd41f2cSmrg AC_CACHE_CHECK([whether a program can dlopen itself], 18159bd41f2cSmrg lt_cv_dlopen_self, [dnl 18169418810dSmrg _LT_TRY_DLOPEN_SELF( 18179bd41f2cSmrg lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, 18189bd41f2cSmrg lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) 18199bd41f2cSmrg ]) 18209bd41f2cSmrg 18219bd41f2cSmrg if test "x$lt_cv_dlopen_self" = xyes; then 18229bd41f2cSmrg wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 18239bd41f2cSmrg AC_CACHE_CHECK([whether a statically linked program can dlopen itself], 18249418810dSmrg lt_cv_dlopen_self_static, [dnl 18259418810dSmrg _LT_TRY_DLOPEN_SELF( 18269bd41f2cSmrg lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, 18279bd41f2cSmrg lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) 18289bd41f2cSmrg ]) 18299bd41f2cSmrg fi 18309bd41f2cSmrg 18319bd41f2cSmrg CPPFLAGS="$save_CPPFLAGS" 18329bd41f2cSmrg LDFLAGS="$save_LDFLAGS" 18339bd41f2cSmrg LIBS="$save_LIBS" 18349bd41f2cSmrg ;; 18359bd41f2cSmrg esac 18369bd41f2cSmrg 18379bd41f2cSmrg case $lt_cv_dlopen_self in 18389bd41f2cSmrg yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 18399bd41f2cSmrg *) enable_dlopen_self=unknown ;; 18409bd41f2cSmrg esac 18419bd41f2cSmrg 18429bd41f2cSmrg case $lt_cv_dlopen_self_static in 18439bd41f2cSmrg yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 18449bd41f2cSmrg *) enable_dlopen_self_static=unknown ;; 18459bd41f2cSmrg esac 18469bd41f2cSmrgfi 18479418810dSmrg_LT_DECL([dlopen_support], [enable_dlopen], [0], 18489418810dSmrg [Whether dlopen is supported]) 18499418810dSmrg_LT_DECL([dlopen_self], [enable_dlopen_self], [0], 18509418810dSmrg [Whether dlopen of programs is supported]) 18519418810dSmrg_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0], 18529418810dSmrg [Whether dlopen of statically linked programs is supported]) 18539418810dSmrg])# LT_SYS_DLOPEN_SELF 18549bd41f2cSmrg 18559418810dSmrg# Old name: 18569418810dSmrgAU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF]) 18579418810dSmrgdnl aclocal-1.4 backwards compatibility: 18589418810dSmrgdnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], []) 18599bd41f2cSmrg 18609418810dSmrg 18619418810dSmrg# _LT_COMPILER_C_O([TAGNAME]) 18629418810dSmrg# --------------------------- 18639418810dSmrg# Check to see if options -c and -o are simultaneously supported by compiler. 18649418810dSmrg# This macro does not hard code the compiler like AC_PROG_CC_C_O. 18659418810dSmrgm4_defun([_LT_COMPILER_C_O], 18669418810dSmrg[m4_require([_LT_DECL_SED])dnl 18679418810dSmrgm4_require([_LT_FILEUTILS_DEFAULTS])dnl 18689418810dSmrgm4_require([_LT_TAG_COMPILER])dnl 18699bd41f2cSmrgAC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], 18709418810dSmrg [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)], 18719418810dSmrg [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no 18729418810dSmrg $RM -r conftest 2>/dev/null 18739bd41f2cSmrg mkdir conftest 18749bd41f2cSmrg cd conftest 18759bd41f2cSmrg mkdir out 18769bd41f2cSmrg echo "$lt_simple_compile_test_code" > conftest.$ac_ext 18779bd41f2cSmrg 18789bd41f2cSmrg lt_compiler_flag="-o out/conftest2.$ac_objext" 18799bd41f2cSmrg # Insert the option either (1) after the last *FLAGS variable, or 18809bd41f2cSmrg # (2) before a word containing "conftest.", or (3) at the end. 18819bd41f2cSmrg # Note that $ac_compile itself does not contain backslashes and begins 18829bd41f2cSmrg # with a dollar sign (not a hyphen), so the echo should work correctly. 18839bd41f2cSmrg lt_compile=`echo "$ac_compile" | $SED \ 18849bd41f2cSmrg -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 18859bd41f2cSmrg -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ 18869bd41f2cSmrg -e 's:$: $lt_compiler_flag:'` 18879bd41f2cSmrg (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) 18889bd41f2cSmrg (eval "$lt_compile" 2>out/conftest.err) 18899bd41f2cSmrg ac_status=$? 18909bd41f2cSmrg cat out/conftest.err >&AS_MESSAGE_LOG_FD 18919bd41f2cSmrg echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD 18929bd41f2cSmrg if (exit $ac_status) && test -s out/conftest2.$ac_objext 18939bd41f2cSmrg then 18949bd41f2cSmrg # The compiler can only warn and ignore the option if not recognized 18959bd41f2cSmrg # So say no if there are warnings 18969418810dSmrg $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 18979bd41f2cSmrg $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 18989bd41f2cSmrg if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 18999418810dSmrg _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes 19009bd41f2cSmrg fi 19019bd41f2cSmrg fi 19029bd41f2cSmrg chmod u+w . 2>&AS_MESSAGE_LOG_FD 19039418810dSmrg $RM conftest* 19049bd41f2cSmrg # SGI C++ compiler will create directory out/ii_files/ for 19059bd41f2cSmrg # template instantiation 19069418810dSmrg test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 19079418810dSmrg $RM out/* && rmdir out 19089bd41f2cSmrg cd .. 19099418810dSmrg $RM -r conftest 19109418810dSmrg $RM conftest* 19119bd41f2cSmrg]) 19129418810dSmrg_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1], 19139418810dSmrg [Does compiler simultaneously support -c and -o options?]) 19149418810dSmrg])# _LT_COMPILER_C_O 19159bd41f2cSmrg 19169bd41f2cSmrg 19179418810dSmrg# _LT_COMPILER_FILE_LOCKS([TAGNAME]) 19189418810dSmrg# ---------------------------------- 19199bd41f2cSmrg# Check to see if we can do hard links to lock some files if needed 19209418810dSmrgm4_defun([_LT_COMPILER_FILE_LOCKS], 19219418810dSmrg[m4_require([_LT_ENABLE_LOCK])dnl 19229418810dSmrgm4_require([_LT_FILEUTILS_DEFAULTS])dnl 19239418810dSmrg_LT_COMPILER_C_O([$1]) 19249bd41f2cSmrg 19259bd41f2cSmrghard_links="nottested" 19269418810dSmrgif test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then 19279bd41f2cSmrg # do not overwrite the value of need_locks provided by the user 19289bd41f2cSmrg AC_MSG_CHECKING([if we can lock with hard links]) 19299bd41f2cSmrg hard_links=yes 19309418810dSmrg $RM conftest* 19319bd41f2cSmrg ln conftest.a conftest.b 2>/dev/null && hard_links=no 19329bd41f2cSmrg touch conftest.a 19339bd41f2cSmrg ln conftest.a conftest.b 2>&5 || hard_links=no 19349bd41f2cSmrg ln conftest.a conftest.b 2>/dev/null && hard_links=no 19359bd41f2cSmrg AC_MSG_RESULT([$hard_links]) 19369bd41f2cSmrg if test "$hard_links" = no; then 19379bd41f2cSmrg AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe]) 19389bd41f2cSmrg need_locks=warn 19399bd41f2cSmrg fi 19409bd41f2cSmrgelse 19419bd41f2cSmrg need_locks=no 19429bd41f2cSmrgfi 19439418810dSmrg_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?]) 19449418810dSmrg])# _LT_COMPILER_FILE_LOCKS 19459bd41f2cSmrg 19469bd41f2cSmrg 19479418810dSmrg# _LT_CHECK_OBJDIR 19489418810dSmrg# ---------------- 19499418810dSmrgm4_defun([_LT_CHECK_OBJDIR], 19509bd41f2cSmrg[AC_CACHE_CHECK([for objdir], [lt_cv_objdir], 19519bd41f2cSmrg[rm -f .libs 2>/dev/null 19529bd41f2cSmrgmkdir .libs 2>/dev/null 19539bd41f2cSmrgif test -d .libs; then 19549bd41f2cSmrg lt_cv_objdir=.libs 19559bd41f2cSmrgelse 19569bd41f2cSmrg # MS-DOS does not allow filenames that begin with a dot. 19579bd41f2cSmrg lt_cv_objdir=_libs 19589bd41f2cSmrgfi 19599bd41f2cSmrgrmdir .libs 2>/dev/null]) 19609bd41f2cSmrgobjdir=$lt_cv_objdir 19619418810dSmrg_LT_DECL([], [objdir], [0], 19629418810dSmrg [The name of the directory that contains temporary libtool files])dnl 19639418810dSmrgm4_pattern_allow([LT_OBJDIR])dnl 19649418810dSmrgAC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/", 19659418810dSmrg [Define to the sub-directory in which libtool stores uninstalled libraries.]) 19669418810dSmrg])# _LT_CHECK_OBJDIR 19679bd41f2cSmrg 19689bd41f2cSmrg 19699418810dSmrg# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME]) 19709418810dSmrg# -------------------------------------- 19719bd41f2cSmrg# Check hardcoding attributes. 19729418810dSmrgm4_defun([_LT_LINKER_HARDCODE_LIBPATH], 19739bd41f2cSmrg[AC_MSG_CHECKING([how to hardcode library paths into programs]) 19749418810dSmrg_LT_TAGVAR(hardcode_action, $1)= 19759418810dSmrgif test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" || 19769418810dSmrg test -n "$_LT_TAGVAR(runpath_var, $1)" || 19779418810dSmrg test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then 19789bd41f2cSmrg 19799418810dSmrg # We can hardcode non-existent directories. 19809418810dSmrg if test "$_LT_TAGVAR(hardcode_direct, $1)" != no && 19819bd41f2cSmrg # If the only mechanism to avoid hardcoding is shlibpath_var, we 19829bd41f2cSmrg # have to relink, otherwise we might link with an installed library 19839bd41f2cSmrg # when we should be linking with a yet-to-be-installed one 19849418810dSmrg ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no && 19859418810dSmrg test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then 19869bd41f2cSmrg # Linking always hardcodes the temporary library directory. 19879418810dSmrg _LT_TAGVAR(hardcode_action, $1)=relink 19889bd41f2cSmrg else 19899bd41f2cSmrg # We can link without hardcoding, and we can hardcode nonexisting dirs. 19909418810dSmrg _LT_TAGVAR(hardcode_action, $1)=immediate 19919bd41f2cSmrg fi 19929bd41f2cSmrgelse 19939bd41f2cSmrg # We cannot hardcode anything, or else we can only hardcode existing 19949bd41f2cSmrg # directories. 19959418810dSmrg _LT_TAGVAR(hardcode_action, $1)=unsupported 19969bd41f2cSmrgfi 19979418810dSmrgAC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)]) 19989bd41f2cSmrg 19999418810dSmrgif test "$_LT_TAGVAR(hardcode_action, $1)" = relink || 20009418810dSmrg test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then 20019bd41f2cSmrg # Fast installation is not supported 20029bd41f2cSmrg enable_fast_install=no 20039bd41f2cSmrgelif test "$shlibpath_overrides_runpath" = yes || 20049bd41f2cSmrg test "$enable_shared" = no; then 20059bd41f2cSmrg # Fast installation is not necessary 20069bd41f2cSmrg enable_fast_install=needless 20079bd41f2cSmrgfi 20089418810dSmrg_LT_TAGDECL([], [hardcode_action], [0], 20099418810dSmrg [How to hardcode a shared library path into an executable]) 20109418810dSmrg])# _LT_LINKER_HARDCODE_LIBPATH 20119bd41f2cSmrg 20129bd41f2cSmrg 20139418810dSmrg# _LT_CMD_STRIPLIB 20149418810dSmrg# ---------------- 20159418810dSmrgm4_defun([_LT_CMD_STRIPLIB], 20169418810dSmrg[m4_require([_LT_DECL_EGREP]) 20179418810dSmrgstriplib= 20189bd41f2cSmrgold_striplib= 20199bd41f2cSmrgAC_MSG_CHECKING([whether stripping libraries is possible]) 20209418810dSmrgif test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 20219bd41f2cSmrg test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 20229bd41f2cSmrg test -z "$striplib" && striplib="$STRIP --strip-unneeded" 20239bd41f2cSmrg AC_MSG_RESULT([yes]) 20249bd41f2cSmrgelse 20259bd41f2cSmrg# FIXME - insert some real tests, host_os isn't really good enough 20269bd41f2cSmrg case $host_os in 20279418810dSmrg darwin*) 20289418810dSmrg if test -n "$STRIP" ; then 20299418810dSmrg striplib="$STRIP -x" 20309418810dSmrg old_striplib="$STRIP -S" 20319418810dSmrg AC_MSG_RESULT([yes]) 20329418810dSmrg else 20339418810dSmrg AC_MSG_RESULT([no]) 20349418810dSmrg fi 20359418810dSmrg ;; 20369418810dSmrg *) 20379418810dSmrg AC_MSG_RESULT([no]) 20389bd41f2cSmrg ;; 20399bd41f2cSmrg esac 20409bd41f2cSmrgfi 20419418810dSmrg_LT_DECL([], [old_striplib], [1], [Commands to strip libraries]) 20429418810dSmrg_LT_DECL([], [striplib], [1]) 20439418810dSmrg])# _LT_CMD_STRIPLIB 20449bd41f2cSmrg 20459bd41f2cSmrg 20469418810dSmrg# _LT_SYS_DYNAMIC_LINKER([TAG]) 20479bd41f2cSmrg# ----------------------------- 20489bd41f2cSmrg# PORTME Fill in your ld.so characteristics 20499418810dSmrgm4_defun([_LT_SYS_DYNAMIC_LINKER], 20509418810dSmrg[AC_REQUIRE([AC_CANONICAL_HOST])dnl 20519418810dSmrgm4_require([_LT_DECL_EGREP])dnl 20529418810dSmrgm4_require([_LT_FILEUTILS_DEFAULTS])dnl 20539418810dSmrgm4_require([_LT_DECL_OBJDUMP])dnl 20549418810dSmrgm4_require([_LT_DECL_SED])dnl 20559bd41f2cSmrgAC_MSG_CHECKING([dynamic linker characteristics]) 20569418810dSmrgm4_if([$1], 20579418810dSmrg [], [ 20589bd41f2cSmrgif test "$GCC" = yes; then 20599bd41f2cSmrg case $host_os in 20609bd41f2cSmrg darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 20619bd41f2cSmrg *) lt_awk_arg="/^libraries:/" ;; 20629bd41f2cSmrg esac 20639bd41f2cSmrg lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 20649418810dSmrg if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then 20659bd41f2cSmrg # if the path contains ";" then we assume it to be the separator 20669bd41f2cSmrg # otherwise default to the standard path separator (i.e. ":") - it is 20679bd41f2cSmrg # assumed that no part of a normal pathname contains ";" but that should 20689bd41f2cSmrg # okay in the real world where ";" in dirpaths is itself problematic. 20699418810dSmrg lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` 20709bd41f2cSmrg else 20719418810dSmrg lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 20729bd41f2cSmrg fi 20739bd41f2cSmrg # Ok, now we have the path, separated by spaces, we can step through it 20749bd41f2cSmrg # and add multilib dir if necessary. 20759bd41f2cSmrg lt_tmp_lt_search_path_spec= 20769bd41f2cSmrg lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 20779bd41f2cSmrg for lt_sys_path in $lt_search_path_spec; do 20789bd41f2cSmrg if test -d "$lt_sys_path/$lt_multi_os_dir"; then 20799bd41f2cSmrg lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 20809bd41f2cSmrg else 20819bd41f2cSmrg test -d "$lt_sys_path" && \ 20829bd41f2cSmrg lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 20839bd41f2cSmrg fi 20849bd41f2cSmrg done 20859418810dSmrg lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' 20869bd41f2cSmrgBEGIN {RS=" "; FS="/|\n";} { 20879bd41f2cSmrg lt_foo=""; 20889bd41f2cSmrg lt_count=0; 20899bd41f2cSmrg for (lt_i = NF; lt_i > 0; lt_i--) { 20909bd41f2cSmrg if ($lt_i != "" && $lt_i != ".") { 20919bd41f2cSmrg if ($lt_i == "..") { 20929bd41f2cSmrg lt_count++; 20939bd41f2cSmrg } else { 20949bd41f2cSmrg if (lt_count == 0) { 20959bd41f2cSmrg lt_foo="/" $lt_i lt_foo; 20969bd41f2cSmrg } else { 20979bd41f2cSmrg lt_count--; 20989bd41f2cSmrg } 20999bd41f2cSmrg } 21009bd41f2cSmrg } 21019bd41f2cSmrg } 21029bd41f2cSmrg if (lt_foo != "") { lt_freq[[lt_foo]]++; } 21039bd41f2cSmrg if (lt_freq[[lt_foo]] == 1) { print lt_foo; } 21049bd41f2cSmrg}'` 21059418810dSmrg sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` 21069bd41f2cSmrgelse 21079bd41f2cSmrg sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 21089bd41f2cSmrgfi]) 21099418810dSmrglibrary_names_spec= 21109418810dSmrglibname_spec='lib$name' 21119418810dSmrgsoname_spec= 21129418810dSmrgshrext_cmds=".so" 21139418810dSmrgpostinstall_cmds= 21149418810dSmrgpostuninstall_cmds= 21159418810dSmrgfinish_cmds= 21169418810dSmrgfinish_eval= 21179418810dSmrgshlibpath_var= 21189418810dSmrgshlibpath_overrides_runpath=unknown 21199418810dSmrgversion_type=none 21209418810dSmrgdynamic_linker="$host_os ld.so" 21219418810dSmrgsys_lib_dlsearch_path_spec="/lib /usr/lib" 21229bd41f2cSmrgneed_lib_prefix=unknown 21239bd41f2cSmrghardcode_into_libs=no 21249bd41f2cSmrg 21259bd41f2cSmrg# when you set need_version to no, make sure it does not cause -set_version 21269bd41f2cSmrg# flags to be left without arguments 21279bd41f2cSmrgneed_version=unknown 21289bd41f2cSmrg 21299bd41f2cSmrgcase $host_os in 21309bd41f2cSmrgaix3*) 21319bd41f2cSmrg version_type=linux 21329bd41f2cSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 21339bd41f2cSmrg shlibpath_var=LIBPATH 21349bd41f2cSmrg 21359bd41f2cSmrg # AIX 3 has no versioning support, so we append a major version to the name. 21369bd41f2cSmrg soname_spec='${libname}${release}${shared_ext}$major' 21379bd41f2cSmrg ;; 21389bd41f2cSmrg 2139d075918cSmrgaix[[4-9]]*) 21409bd41f2cSmrg version_type=linux 21419bd41f2cSmrg need_lib_prefix=no 21429bd41f2cSmrg need_version=no 21439bd41f2cSmrg hardcode_into_libs=yes 21449bd41f2cSmrg if test "$host_cpu" = ia64; then 21459bd41f2cSmrg # AIX 5 supports IA64 21469bd41f2cSmrg library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 21479bd41f2cSmrg shlibpath_var=LD_LIBRARY_PATH 21489bd41f2cSmrg else 21499bd41f2cSmrg # With GCC up to 2.95.x, collect2 would create an import file 21509bd41f2cSmrg # for dependence libraries. The import file would start with 21519bd41f2cSmrg # the line `#! .'. This would cause the generated library to 21529bd41f2cSmrg # depend on `.', always an invalid library. This was fixed in 21539bd41f2cSmrg # development snapshots of GCC prior to 3.0. 21549bd41f2cSmrg case $host_os in 21559bd41f2cSmrg aix4 | aix4.[[01]] | aix4.[[01]].*) 21569bd41f2cSmrg if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 21579bd41f2cSmrg echo ' yes ' 21589418810dSmrg echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 21599bd41f2cSmrg : 21609bd41f2cSmrg else 21619bd41f2cSmrg can_build_shared=no 21629bd41f2cSmrg fi 21639bd41f2cSmrg ;; 21649bd41f2cSmrg esac 21659bd41f2cSmrg # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 21669bd41f2cSmrg # soname into executable. Probably we can add versioning support to 21679bd41f2cSmrg # collect2, so additional links can be useful in future. 21689bd41f2cSmrg if test "$aix_use_runtimelinking" = yes; then 21699bd41f2cSmrg # If using run time linking (on AIX 4.2 or later) use lib<name>.so 21709bd41f2cSmrg # instead of lib<name>.a to let people know that these are not 21719bd41f2cSmrg # typical AIX shared libraries. 21729bd41f2cSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 21739bd41f2cSmrg else 21749bd41f2cSmrg # We preserve .a as extension for shared libraries through AIX4.2 21759bd41f2cSmrg # and later when we are not doing run time linking. 21769bd41f2cSmrg library_names_spec='${libname}${release}.a $libname.a' 21779bd41f2cSmrg soname_spec='${libname}${release}${shared_ext}$major' 21789bd41f2cSmrg fi 21799bd41f2cSmrg shlibpath_var=LIBPATH 21809bd41f2cSmrg fi 21819bd41f2cSmrg ;; 21829bd41f2cSmrg 21839bd41f2cSmrgamigaos*) 21849418810dSmrg case $host_cpu in 21859418810dSmrg powerpc) 21869418810dSmrg # Since July 2007 AmigaOS4 officially supports .so libraries. 21879418810dSmrg # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 21889418810dSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 21899418810dSmrg ;; 21909418810dSmrg m68k) 21919418810dSmrg library_names_spec='$libname.ixlibrary $libname.a' 21929418810dSmrg # Create ${libname}_ixlibrary.a entries in /sys/libs. 21939418810dSmrg 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' 21949418810dSmrg ;; 21959418810dSmrg esac 21969bd41f2cSmrg ;; 21979bd41f2cSmrg 21989bd41f2cSmrgbeos*) 21999bd41f2cSmrg library_names_spec='${libname}${shared_ext}' 22009bd41f2cSmrg dynamic_linker="$host_os ld.so" 22019bd41f2cSmrg shlibpath_var=LIBRARY_PATH 22029bd41f2cSmrg ;; 22039bd41f2cSmrg 22049bd41f2cSmrgbsdi[[45]]*) 22059bd41f2cSmrg version_type=linux 22069bd41f2cSmrg need_version=no 22079bd41f2cSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 22089bd41f2cSmrg soname_spec='${libname}${release}${shared_ext}$major' 22099bd41f2cSmrg finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 22109bd41f2cSmrg shlibpath_var=LD_LIBRARY_PATH 22119bd41f2cSmrg sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 22129bd41f2cSmrg sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 22139bd41f2cSmrg # the default ld.so.conf also contains /usr/contrib/lib and 22149bd41f2cSmrg # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 22159bd41f2cSmrg # libtool to hard-code these into programs 22169bd41f2cSmrg ;; 22179bd41f2cSmrg 22189418810dSmrgcygwin* | mingw* | pw32* | cegcc*) 22199bd41f2cSmrg version_type=windows 22209bd41f2cSmrg shrext_cmds=".dll" 22219bd41f2cSmrg need_version=no 22229bd41f2cSmrg need_lib_prefix=no 22239bd41f2cSmrg 22249bd41f2cSmrg case $GCC,$host_os in 22259418810dSmrg yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 22269bd41f2cSmrg library_names_spec='$libname.dll.a' 22279bd41f2cSmrg # DLL is installed to $(libdir)/../bin by postinstall_cmds 22289bd41f2cSmrg postinstall_cmds='base_file=`basename \${file}`~ 22299418810dSmrg dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 22309bd41f2cSmrg dldir=$destdir/`dirname \$dlpath`~ 22319bd41f2cSmrg test -d \$dldir || mkdir -p \$dldir~ 22329bd41f2cSmrg $install_prog $dir/$dlname \$dldir/$dlname~ 22339418810dSmrg chmod a+x \$dldir/$dlname~ 22349418810dSmrg if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 22359418810dSmrg eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 22369418810dSmrg fi' 22379bd41f2cSmrg postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 22389bd41f2cSmrg dlpath=$dir/\$dldll~ 22399418810dSmrg $RM \$dlpath' 22409bd41f2cSmrg shlibpath_overrides_runpath=yes 22419bd41f2cSmrg 22429bd41f2cSmrg case $host_os in 22439bd41f2cSmrg cygwin*) 22449bd41f2cSmrg # Cygwin DLLs use 'cyg' prefix rather than 'lib' 22459bd41f2cSmrg soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 22469bd41f2cSmrg sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 22479bd41f2cSmrg ;; 22489418810dSmrg mingw* | cegcc*) 22499bd41f2cSmrg # MinGW DLLs use traditional 'lib' prefix 22509bd41f2cSmrg soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 22519418810dSmrg sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 22529418810dSmrg if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then 22539bd41f2cSmrg # It is most probably a Windows format PATH printed by 22549bd41f2cSmrg # mingw gcc, but we are running on Cygwin. Gcc prints its search 22559bd41f2cSmrg # path with ; separators, and with drive letters. We can handle the 22569bd41f2cSmrg # drive letters (cygwin fileutils understands them), so leave them, 22579bd41f2cSmrg # especially as we might pass files found there to a mingw objdump, 22589bd41f2cSmrg # which wouldn't understand a cygwinified path. Ahh. 22599418810dSmrg sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 22609bd41f2cSmrg else 22619418810dSmrg sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 22629bd41f2cSmrg fi 22639bd41f2cSmrg ;; 22649bd41f2cSmrg pw32*) 22659bd41f2cSmrg # pw32 DLLs use 'pw' prefix rather than 'lib' 22669bd41f2cSmrg library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 22679bd41f2cSmrg ;; 22689bd41f2cSmrg esac 22699bd41f2cSmrg ;; 22709bd41f2cSmrg 22719bd41f2cSmrg *) 22729bd41f2cSmrg library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib' 22739bd41f2cSmrg ;; 22749bd41f2cSmrg esac 22759bd41f2cSmrg dynamic_linker='Win32 ld.exe' 22769bd41f2cSmrg # FIXME: first we should search . and the directory the executable is in 22779bd41f2cSmrg shlibpath_var=PATH 22789bd41f2cSmrg ;; 22799bd41f2cSmrg 22809bd41f2cSmrgdarwin* | rhapsody*) 22819bd41f2cSmrg dynamic_linker="$host_os dyld" 22829bd41f2cSmrg version_type=darwin 22839bd41f2cSmrg need_lib_prefix=no 22849bd41f2cSmrg need_version=no 22859418810dSmrg library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 22869bd41f2cSmrg soname_spec='${libname}${release}${major}$shared_ext' 22879bd41f2cSmrg shlibpath_overrides_runpath=yes 22889bd41f2cSmrg shlibpath_var=DYLD_LIBRARY_PATH 22899bd41f2cSmrg shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 22909418810dSmrgm4_if([$1], [],[ 22919418810dSmrg sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) 22929bd41f2cSmrg sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 22939bd41f2cSmrg ;; 22949bd41f2cSmrg 22959bd41f2cSmrgdgux*) 22969bd41f2cSmrg version_type=linux 22979bd41f2cSmrg need_lib_prefix=no 22989bd41f2cSmrg need_version=no 22999bd41f2cSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 23009bd41f2cSmrg soname_spec='${libname}${release}${shared_ext}$major' 23019bd41f2cSmrg shlibpath_var=LD_LIBRARY_PATH 23029bd41f2cSmrg ;; 23039bd41f2cSmrg 23049bd41f2cSmrgfreebsd1*) 23059bd41f2cSmrg dynamic_linker=no 23069bd41f2cSmrg ;; 23079bd41f2cSmrg 23089bd41f2cSmrgfreebsd* | dragonfly*) 23099bd41f2cSmrg # DragonFly does not have aout. When/if they implement a new 23109bd41f2cSmrg # versioning mechanism, adjust this. 23119bd41f2cSmrg if test -x /usr/bin/objformat; then 23129bd41f2cSmrg objformat=`/usr/bin/objformat` 23139bd41f2cSmrg else 23149bd41f2cSmrg case $host_os in 23159bd41f2cSmrg freebsd[[123]]*) objformat=aout ;; 23169bd41f2cSmrg *) objformat=elf ;; 23179bd41f2cSmrg esac 23189bd41f2cSmrg fi 23199bd41f2cSmrg version_type=freebsd-$objformat 23209bd41f2cSmrg case $version_type in 23219bd41f2cSmrg freebsd-elf*) 23229bd41f2cSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 23239bd41f2cSmrg need_version=no 23249bd41f2cSmrg need_lib_prefix=no 23259bd41f2cSmrg ;; 23269bd41f2cSmrg freebsd-*) 23279bd41f2cSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 23289bd41f2cSmrg need_version=yes 23299bd41f2cSmrg ;; 23309bd41f2cSmrg esac 23319bd41f2cSmrg shlibpath_var=LD_LIBRARY_PATH 23329bd41f2cSmrg case $host_os in 23339bd41f2cSmrg freebsd2*) 23349bd41f2cSmrg shlibpath_overrides_runpath=yes 23359bd41f2cSmrg ;; 23369bd41f2cSmrg freebsd3.[[01]]* | freebsdelf3.[[01]]*) 23379bd41f2cSmrg shlibpath_overrides_runpath=yes 23389bd41f2cSmrg hardcode_into_libs=yes 23399bd41f2cSmrg ;; 23409bd41f2cSmrg freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ 23419bd41f2cSmrg freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) 23429bd41f2cSmrg shlibpath_overrides_runpath=no 23439bd41f2cSmrg hardcode_into_libs=yes 23449bd41f2cSmrg ;; 23459bd41f2cSmrg *) # from 4.6 on, and DragonFly 23469bd41f2cSmrg shlibpath_overrides_runpath=yes 23479bd41f2cSmrg hardcode_into_libs=yes 23489bd41f2cSmrg ;; 23499bd41f2cSmrg esac 23509bd41f2cSmrg ;; 23519bd41f2cSmrg 23529bd41f2cSmrggnu*) 23539bd41f2cSmrg version_type=linux 23549bd41f2cSmrg need_lib_prefix=no 23559bd41f2cSmrg need_version=no 23569bd41f2cSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 23579bd41f2cSmrg soname_spec='${libname}${release}${shared_ext}$major' 23589bd41f2cSmrg shlibpath_var=LD_LIBRARY_PATH 23599bd41f2cSmrg hardcode_into_libs=yes 23609bd41f2cSmrg ;; 23619bd41f2cSmrg 23629bd41f2cSmrghpux9* | hpux10* | hpux11*) 23639bd41f2cSmrg # Give a soname corresponding to the major version so that dld.sl refuses to 23649bd41f2cSmrg # link against other versions. 23659bd41f2cSmrg version_type=sunos 23669bd41f2cSmrg need_lib_prefix=no 23679bd41f2cSmrg need_version=no 23689bd41f2cSmrg case $host_cpu in 23699bd41f2cSmrg ia64*) 23709bd41f2cSmrg shrext_cmds='.so' 23719bd41f2cSmrg hardcode_into_libs=yes 23729bd41f2cSmrg dynamic_linker="$host_os dld.so" 23739bd41f2cSmrg shlibpath_var=LD_LIBRARY_PATH 23749bd41f2cSmrg shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 23759bd41f2cSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 23769bd41f2cSmrg soname_spec='${libname}${release}${shared_ext}$major' 23779bd41f2cSmrg if test "X$HPUX_IA64_MODE" = X32; then 23789bd41f2cSmrg sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 23799bd41f2cSmrg else 23809bd41f2cSmrg sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 23819bd41f2cSmrg fi 23829bd41f2cSmrg sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 23839bd41f2cSmrg ;; 23849418810dSmrg hppa*64*) 23859418810dSmrg shrext_cmds='.sl' 23869418810dSmrg hardcode_into_libs=yes 23879418810dSmrg dynamic_linker="$host_os dld.sl" 23889418810dSmrg shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 23899418810dSmrg shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 23909418810dSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 23919418810dSmrg soname_spec='${libname}${release}${shared_ext}$major' 23929418810dSmrg sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 23939418810dSmrg sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 23949418810dSmrg ;; 23959418810dSmrg *) 23969bd41f2cSmrg shrext_cmds='.sl' 23979bd41f2cSmrg dynamic_linker="$host_os dld.sl" 23989bd41f2cSmrg shlibpath_var=SHLIB_PATH 23999bd41f2cSmrg shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 24009bd41f2cSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 24019bd41f2cSmrg soname_spec='${libname}${release}${shared_ext}$major' 24029bd41f2cSmrg ;; 24039bd41f2cSmrg esac 24049bd41f2cSmrg # HP-UX runs *really* slowly unless shared libraries are mode 555. 24059bd41f2cSmrg postinstall_cmds='chmod 555 $lib' 24069bd41f2cSmrg ;; 24079bd41f2cSmrg 24089bd41f2cSmrginterix[[3-9]]*) 24099bd41f2cSmrg version_type=linux 24109bd41f2cSmrg need_lib_prefix=no 24119bd41f2cSmrg need_version=no 24129bd41f2cSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 24139bd41f2cSmrg soname_spec='${libname}${release}${shared_ext}$major' 24149bd41f2cSmrg dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 24159bd41f2cSmrg shlibpath_var=LD_LIBRARY_PATH 24169bd41f2cSmrg shlibpath_overrides_runpath=no 24179bd41f2cSmrg hardcode_into_libs=yes 24189bd41f2cSmrg ;; 24199bd41f2cSmrg 24209bd41f2cSmrgirix5* | irix6* | nonstopux*) 24219bd41f2cSmrg case $host_os in 24229bd41f2cSmrg nonstopux*) version_type=nonstopux ;; 24239bd41f2cSmrg *) 24249bd41f2cSmrg if test "$lt_cv_prog_gnu_ld" = yes; then 24259bd41f2cSmrg version_type=linux 24269bd41f2cSmrg else 24279bd41f2cSmrg version_type=irix 24289bd41f2cSmrg fi ;; 24299bd41f2cSmrg esac 24309bd41f2cSmrg need_lib_prefix=no 24319bd41f2cSmrg need_version=no 24329bd41f2cSmrg soname_spec='${libname}${release}${shared_ext}$major' 24339bd41f2cSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 24349bd41f2cSmrg case $host_os in 24359bd41f2cSmrg irix5* | nonstopux*) 24369bd41f2cSmrg libsuff= shlibsuff= 24379bd41f2cSmrg ;; 24389bd41f2cSmrg *) 24399bd41f2cSmrg case $LD in # libtool.m4 will add one of these switches to LD 24409bd41f2cSmrg *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 24419bd41f2cSmrg libsuff= shlibsuff= libmagic=32-bit;; 24429bd41f2cSmrg *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 24439bd41f2cSmrg libsuff=32 shlibsuff=N32 libmagic=N32;; 24449bd41f2cSmrg *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 24459bd41f2cSmrg libsuff=64 shlibsuff=64 libmagic=64-bit;; 24469bd41f2cSmrg *) libsuff= shlibsuff= libmagic=never-match;; 24479bd41f2cSmrg esac 24489bd41f2cSmrg ;; 24499bd41f2cSmrg esac 24509bd41f2cSmrg shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 24519bd41f2cSmrg shlibpath_overrides_runpath=no 24529bd41f2cSmrg sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 24539bd41f2cSmrg sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 24549bd41f2cSmrg hardcode_into_libs=yes 24559bd41f2cSmrg ;; 24569bd41f2cSmrg 24579bd41f2cSmrg# No shared lib support for Linux oldld, aout, or coff. 24589bd41f2cSmrglinux*oldld* | linux*aout* | linux*coff*) 24599bd41f2cSmrg dynamic_linker=no 24609bd41f2cSmrg ;; 24619bd41f2cSmrg 24629bd41f2cSmrg# This must be Linux ELF. 24639bd41f2cSmrglinux* | k*bsd*-gnu) 24649bd41f2cSmrg version_type=linux 24659bd41f2cSmrg need_lib_prefix=no 24669bd41f2cSmrg need_version=no 24679bd41f2cSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 24689bd41f2cSmrg soname_spec='${libname}${release}${shared_ext}$major' 24699bd41f2cSmrg finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 24709bd41f2cSmrg shlibpath_var=LD_LIBRARY_PATH 24719bd41f2cSmrg shlibpath_overrides_runpath=no 24729418810dSmrg # Some binutils ld are patched to set DT_RUNPATH 24739418810dSmrg save_LDFLAGS=$LDFLAGS 24749418810dSmrg save_libdir=$libdir 24759418810dSmrg eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \ 24769418810dSmrg LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\"" 24779418810dSmrg AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], 24789418810dSmrg [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null], 24799418810dSmrg [shlibpath_overrides_runpath=yes])]) 24809418810dSmrg LDFLAGS=$save_LDFLAGS 24819418810dSmrg libdir=$save_libdir 24829418810dSmrg 24839bd41f2cSmrg # This implies no fast_install, which is unacceptable. 24849bd41f2cSmrg # Some rework will be needed to allow for fast_install 24859bd41f2cSmrg # before this can be enabled. 24869bd41f2cSmrg hardcode_into_libs=yes 24879bd41f2cSmrg 24889418810dSmrg # Add ABI-specific directories to the system library path. 24899418810dSmrg sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 24909418810dSmrg 24919bd41f2cSmrg # Append ld.so.conf contents to the search path 24929bd41f2cSmrg if test -f /etc/ld.so.conf; then 24939418810dSmrg 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' ' '` 24949418810dSmrg sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 24959bd41f2cSmrg fi 24969bd41f2cSmrg 24979bd41f2cSmrg # We used to test for /lib/ld.so.1 and disable shared libraries on 24989bd41f2cSmrg # powerpc, because MkLinux only supported shared libraries with the 24999bd41f2cSmrg # GNU dynamic linker. Since this was broken with cross compilers, 25009bd41f2cSmrg # most powerpc-linux boxes support dynamic linking these days and 25019bd41f2cSmrg # people can always --disable-shared, the test was removed, and we 25029bd41f2cSmrg # assume the GNU/Linux dynamic linker is in use. 25039bd41f2cSmrg dynamic_linker='GNU/Linux ld.so' 25049bd41f2cSmrg ;; 25059bd41f2cSmrg 25069bd41f2cSmrgnetbsd*) 25079bd41f2cSmrg version_type=sunos 25089bd41f2cSmrg need_lib_prefix=no 25099bd41f2cSmrg need_version=no 25109418810dSmrg if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 25119bd41f2cSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 25129bd41f2cSmrg finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 25139bd41f2cSmrg dynamic_linker='NetBSD (a.out) ld.so' 25149bd41f2cSmrg else 25159bd41f2cSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 25169bd41f2cSmrg soname_spec='${libname}${release}${shared_ext}$major' 25179bd41f2cSmrg dynamic_linker='NetBSD ld.elf_so' 25189bd41f2cSmrg fi 25199bd41f2cSmrg shlibpath_var=LD_LIBRARY_PATH 25209bd41f2cSmrg shlibpath_overrides_runpath=yes 25219bd41f2cSmrg hardcode_into_libs=yes 25229bd41f2cSmrg ;; 25239bd41f2cSmrg 25249bd41f2cSmrgnewsos6) 25259bd41f2cSmrg version_type=linux 25269bd41f2cSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 25279bd41f2cSmrg shlibpath_var=LD_LIBRARY_PATH 25289bd41f2cSmrg shlibpath_overrides_runpath=yes 25299bd41f2cSmrg ;; 25309bd41f2cSmrg 25319418810dSmrg*nto* | *qnx*) 25329418810dSmrg version_type=qnx 25339bd41f2cSmrg need_lib_prefix=no 25349bd41f2cSmrg need_version=no 25359bd41f2cSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 25369bd41f2cSmrg soname_spec='${libname}${release}${shared_ext}$major' 25379bd41f2cSmrg shlibpath_var=LD_LIBRARY_PATH 25389418810dSmrg shlibpath_overrides_runpath=no 25399418810dSmrg hardcode_into_libs=yes 25409418810dSmrg dynamic_linker='ldqnx.so' 25419bd41f2cSmrg ;; 25429bd41f2cSmrg 25439bd41f2cSmrgopenbsd*) 25449bd41f2cSmrg version_type=sunos 25459bd41f2cSmrg sys_lib_dlsearch_path_spec="/usr/lib" 25469bd41f2cSmrg need_lib_prefix=no 25479bd41f2cSmrg # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 25489bd41f2cSmrg case $host_os in 25499418810dSmrg openbsd3.3 | openbsd3.3.*) need_version=yes ;; 25509418810dSmrg *) need_version=no ;; 25519bd41f2cSmrg esac 25529bd41f2cSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 25539bd41f2cSmrg finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 25549bd41f2cSmrg shlibpath_var=LD_LIBRARY_PATH 25559418810dSmrg if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 25569bd41f2cSmrg case $host_os in 25579bd41f2cSmrg openbsd2.[[89]] | openbsd2.[[89]].*) 25589bd41f2cSmrg shlibpath_overrides_runpath=no 25599bd41f2cSmrg ;; 25609bd41f2cSmrg *) 25619bd41f2cSmrg shlibpath_overrides_runpath=yes 25629bd41f2cSmrg ;; 25639bd41f2cSmrg esac 25649bd41f2cSmrg else 25659bd41f2cSmrg shlibpath_overrides_runpath=yes 25669bd41f2cSmrg fi 25679bd41f2cSmrg ;; 25689bd41f2cSmrg 25699bd41f2cSmrgos2*) 25709bd41f2cSmrg libname_spec='$name' 25719bd41f2cSmrg shrext_cmds=".dll" 25729bd41f2cSmrg need_lib_prefix=no 25739bd41f2cSmrg library_names_spec='$libname${shared_ext} $libname.a' 25749bd41f2cSmrg dynamic_linker='OS/2 ld.exe' 25759bd41f2cSmrg shlibpath_var=LIBPATH 25769bd41f2cSmrg ;; 25779bd41f2cSmrg 25789bd41f2cSmrgosf3* | osf4* | osf5*) 25799bd41f2cSmrg version_type=osf 25809bd41f2cSmrg need_lib_prefix=no 25819bd41f2cSmrg need_version=no 25829bd41f2cSmrg soname_spec='${libname}${release}${shared_ext}$major' 25839bd41f2cSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 25849bd41f2cSmrg shlibpath_var=LD_LIBRARY_PATH 25859bd41f2cSmrg sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 25869bd41f2cSmrg sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 25879bd41f2cSmrg ;; 25889bd41f2cSmrg 25899bd41f2cSmrgrdos*) 25909bd41f2cSmrg dynamic_linker=no 25919bd41f2cSmrg ;; 25929bd41f2cSmrg 25939bd41f2cSmrgsolaris*) 25949bd41f2cSmrg version_type=linux 25959bd41f2cSmrg need_lib_prefix=no 25969bd41f2cSmrg need_version=no 25979bd41f2cSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 25989bd41f2cSmrg soname_spec='${libname}${release}${shared_ext}$major' 25999bd41f2cSmrg shlibpath_var=LD_LIBRARY_PATH 26009bd41f2cSmrg shlibpath_overrides_runpath=yes 26019bd41f2cSmrg hardcode_into_libs=yes 26029bd41f2cSmrg # ldd complains unless libraries are executable 26039bd41f2cSmrg postinstall_cmds='chmod +x $lib' 26049bd41f2cSmrg ;; 26059bd41f2cSmrg 26069bd41f2cSmrgsunos4*) 26079bd41f2cSmrg version_type=sunos 26089bd41f2cSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 26099bd41f2cSmrg finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 26109bd41f2cSmrg shlibpath_var=LD_LIBRARY_PATH 26119bd41f2cSmrg shlibpath_overrides_runpath=yes 26129bd41f2cSmrg if test "$with_gnu_ld" = yes; then 26139bd41f2cSmrg need_lib_prefix=no 26149bd41f2cSmrg fi 26159bd41f2cSmrg need_version=yes 26169bd41f2cSmrg ;; 26179bd41f2cSmrg 26189bd41f2cSmrgsysv4 | sysv4.3*) 26199bd41f2cSmrg version_type=linux 26209bd41f2cSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 26219bd41f2cSmrg soname_spec='${libname}${release}${shared_ext}$major' 26229bd41f2cSmrg shlibpath_var=LD_LIBRARY_PATH 26239bd41f2cSmrg case $host_vendor in 26249bd41f2cSmrg sni) 26259bd41f2cSmrg shlibpath_overrides_runpath=no 26269bd41f2cSmrg need_lib_prefix=no 26279bd41f2cSmrg runpath_var=LD_RUN_PATH 26289bd41f2cSmrg ;; 26299bd41f2cSmrg siemens) 26309bd41f2cSmrg need_lib_prefix=no 26319bd41f2cSmrg ;; 26329bd41f2cSmrg motorola) 26339bd41f2cSmrg need_lib_prefix=no 26349bd41f2cSmrg need_version=no 26359bd41f2cSmrg shlibpath_overrides_runpath=no 26369bd41f2cSmrg sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 26379bd41f2cSmrg ;; 26389bd41f2cSmrg esac 26399bd41f2cSmrg ;; 26409bd41f2cSmrg 26419bd41f2cSmrgsysv4*MP*) 26429bd41f2cSmrg if test -d /usr/nec ;then 26439bd41f2cSmrg version_type=linux 26449bd41f2cSmrg library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 26459bd41f2cSmrg soname_spec='$libname${shared_ext}.$major' 26469bd41f2cSmrg shlibpath_var=LD_LIBRARY_PATH 26479bd41f2cSmrg fi 26489bd41f2cSmrg ;; 26499bd41f2cSmrg 26509bd41f2cSmrgsysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 26519bd41f2cSmrg version_type=freebsd-elf 26529bd41f2cSmrg need_lib_prefix=no 26539bd41f2cSmrg need_version=no 26549bd41f2cSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 26559bd41f2cSmrg soname_spec='${libname}${release}${shared_ext}$major' 26569bd41f2cSmrg shlibpath_var=LD_LIBRARY_PATH 26579418810dSmrg shlibpath_overrides_runpath=yes 26589bd41f2cSmrg hardcode_into_libs=yes 26599bd41f2cSmrg if test "$with_gnu_ld" = yes; then 26609bd41f2cSmrg sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 26619bd41f2cSmrg else 26629bd41f2cSmrg sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 26639bd41f2cSmrg case $host_os in 26649bd41f2cSmrg sco3.2v5*) 26659bd41f2cSmrg sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 26669bd41f2cSmrg ;; 26679bd41f2cSmrg esac 26689bd41f2cSmrg fi 26699bd41f2cSmrg sys_lib_dlsearch_path_spec='/usr/lib' 26709bd41f2cSmrg ;; 26719bd41f2cSmrg 26729418810dSmrgtpf*) 26739418810dSmrg # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 26749418810dSmrg version_type=linux 26759418810dSmrg need_lib_prefix=no 26769418810dSmrg need_version=no 26779418810dSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 26789418810dSmrg shlibpath_var=LD_LIBRARY_PATH 26799418810dSmrg shlibpath_overrides_runpath=no 26809418810dSmrg hardcode_into_libs=yes 26819418810dSmrg ;; 26829418810dSmrg 26839bd41f2cSmrguts4*) 26849bd41f2cSmrg version_type=linux 26859bd41f2cSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 26869bd41f2cSmrg soname_spec='${libname}${release}${shared_ext}$major' 26879bd41f2cSmrg shlibpath_var=LD_LIBRARY_PATH 26889bd41f2cSmrg ;; 26899bd41f2cSmrg 26909bd41f2cSmrg*) 26919bd41f2cSmrg dynamic_linker=no 26929bd41f2cSmrg ;; 26939bd41f2cSmrgesac 26949bd41f2cSmrgAC_MSG_RESULT([$dynamic_linker]) 26959bd41f2cSmrgtest "$dynamic_linker" = no && can_build_shared=no 26969bd41f2cSmrg 26979bd41f2cSmrgvariables_saved_for_relink="PATH $shlibpath_var $runpath_var" 26989bd41f2cSmrgif test "$GCC" = yes; then 26999bd41f2cSmrg variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 27009bd41f2cSmrgfi 27019bd41f2cSmrg 27029418810dSmrgif test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 27039418810dSmrg sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 27049418810dSmrgfi 27059418810dSmrgif test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 27069418810dSmrg sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 27079418810dSmrgfi 27089bd41f2cSmrg 27099418810dSmrg_LT_DECL([], [variables_saved_for_relink], [1], 27109418810dSmrg [Variables whose values should be saved in libtool wrapper scripts and 27119418810dSmrg restored at link time]) 27129418810dSmrg_LT_DECL([], [need_lib_prefix], [0], 27139418810dSmrg [Do we need the "lib" prefix for modules?]) 27149418810dSmrg_LT_DECL([], [need_version], [0], [Do we need a version for libraries?]) 27159418810dSmrg_LT_DECL([], [version_type], [0], [Library versioning type]) 27169418810dSmrg_LT_DECL([], [runpath_var], [0], [Shared library runtime path variable]) 27179418810dSmrg_LT_DECL([], [shlibpath_var], [0],[Shared library path variable]) 27189418810dSmrg_LT_DECL([], [shlibpath_overrides_runpath], [0], 27199418810dSmrg [Is shlibpath searched before the hard-coded library search path?]) 27209418810dSmrg_LT_DECL([], [libname_spec], [1], [Format of library name prefix]) 27219418810dSmrg_LT_DECL([], [library_names_spec], [1], 27229418810dSmrg [[List of archive names. First name is the real one, the rest are links. 27239418810dSmrg The last name is the one that the linker finds with -lNAME]]) 27249418810dSmrg_LT_DECL([], [soname_spec], [1], 27259418810dSmrg [[The coded name of the library, if different from the real name]]) 27269418810dSmrg_LT_DECL([], [postinstall_cmds], [2], 27279418810dSmrg [Command to use after installation of a shared archive]) 27289418810dSmrg_LT_DECL([], [postuninstall_cmds], [2], 27299418810dSmrg [Command to use after uninstallation of a shared archive]) 27309418810dSmrg_LT_DECL([], [finish_cmds], [2], 27319418810dSmrg [Commands used to finish a libtool library installation in a directory]) 27329418810dSmrg_LT_DECL([], [finish_eval], [1], 27339418810dSmrg [[As "finish_cmds", except a single script fragment to be evaled but 27349418810dSmrg not shown]]) 27359418810dSmrg_LT_DECL([], [hardcode_into_libs], [0], 27369418810dSmrg [Whether we should hardcode library paths into libraries]) 27379418810dSmrg_LT_DECL([], [sys_lib_search_path_spec], [2], 27389418810dSmrg [Compile-time system search path for libraries]) 27399418810dSmrg_LT_DECL([], [sys_lib_dlsearch_path_spec], [2], 27409418810dSmrg [Run-time system search path for libraries]) 27419418810dSmrg])# _LT_SYS_DYNAMIC_LINKER 27429418810dSmrg 27439418810dSmrg 27449418810dSmrg# _LT_PATH_TOOL_PREFIX(TOOL) 27459bd41f2cSmrg# -------------------------- 27469bd41f2cSmrg# find a file program which can recognize shared library 27479418810dSmrgAC_DEFUN([_LT_PATH_TOOL_PREFIX], 27489418810dSmrg[m4_require([_LT_DECL_EGREP])dnl 27499bd41f2cSmrgAC_MSG_CHECKING([for $1]) 27509bd41f2cSmrgAC_CACHE_VAL(lt_cv_path_MAGIC_CMD, 27519bd41f2cSmrg[case $MAGIC_CMD in 27529bd41f2cSmrg[[\\/*] | ?:[\\/]*]) 27539bd41f2cSmrg lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 27549bd41f2cSmrg ;; 27559bd41f2cSmrg*) 27569bd41f2cSmrg lt_save_MAGIC_CMD="$MAGIC_CMD" 27579bd41f2cSmrg lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 27589bd41f2cSmrgdnl $ac_dummy forces splitting on constant user-supplied paths. 27599bd41f2cSmrgdnl POSIX.2 word splitting is done only on the output of word expansions, 27609bd41f2cSmrgdnl not every word. This closes a longstanding sh security hole. 27619418810dSmrg ac_dummy="m4_if([$2], , $PATH, [$2])" 27629bd41f2cSmrg for ac_dir in $ac_dummy; do 27639bd41f2cSmrg IFS="$lt_save_ifs" 27649bd41f2cSmrg test -z "$ac_dir" && ac_dir=. 27659bd41f2cSmrg if test -f $ac_dir/$1; then 27669bd41f2cSmrg lt_cv_path_MAGIC_CMD="$ac_dir/$1" 27679bd41f2cSmrg if test -n "$file_magic_test_file"; then 27689bd41f2cSmrg case $deplibs_check_method in 27699bd41f2cSmrg "file_magic "*) 27709bd41f2cSmrg file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 27719bd41f2cSmrg MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 27729bd41f2cSmrg if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 27739bd41f2cSmrg $EGREP "$file_magic_regex" > /dev/null; then 27749bd41f2cSmrg : 27759bd41f2cSmrg else 27769418810dSmrg cat <<_LT_EOF 1>&2 27779bd41f2cSmrg 27789bd41f2cSmrg*** Warning: the command libtool uses to detect shared libraries, 27799bd41f2cSmrg*** $file_magic_cmd, produces output that libtool cannot recognize. 27809bd41f2cSmrg*** The result is that libtool may fail to recognize shared libraries 27819bd41f2cSmrg*** as such. This will affect the creation of libtool libraries that 27829bd41f2cSmrg*** depend on shared libraries, but programs linked with such libtool 27839bd41f2cSmrg*** libraries will work regardless of this problem. Nevertheless, you 27849bd41f2cSmrg*** may want to report the problem to your system manager and/or to 27859bd41f2cSmrg*** bug-libtool@gnu.org 27869bd41f2cSmrg 27879418810dSmrg_LT_EOF 27889bd41f2cSmrg fi ;; 27899bd41f2cSmrg esac 27909bd41f2cSmrg fi 27919bd41f2cSmrg break 27929bd41f2cSmrg fi 27939bd41f2cSmrg done 27949bd41f2cSmrg IFS="$lt_save_ifs" 27959bd41f2cSmrg MAGIC_CMD="$lt_save_MAGIC_CMD" 27969bd41f2cSmrg ;; 27979bd41f2cSmrgesac]) 27989bd41f2cSmrgMAGIC_CMD="$lt_cv_path_MAGIC_CMD" 27999bd41f2cSmrgif test -n "$MAGIC_CMD"; then 28009bd41f2cSmrg AC_MSG_RESULT($MAGIC_CMD) 28019bd41f2cSmrgelse 28029bd41f2cSmrg AC_MSG_RESULT(no) 28039bd41f2cSmrgfi 28049418810dSmrg_LT_DECL([], [MAGIC_CMD], [0], 28059418810dSmrg [Used to examine libraries when file_magic_cmd begins with "file"])dnl 28069418810dSmrg])# _LT_PATH_TOOL_PREFIX 28079bd41f2cSmrg 28089418810dSmrg# Old name: 28099418810dSmrgAU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX]) 28109418810dSmrgdnl aclocal-1.4 backwards compatibility: 28119418810dSmrgdnl AC_DEFUN([AC_PATH_TOOL_PREFIX], []) 28129bd41f2cSmrg 28139418810dSmrg 28149418810dSmrg# _LT_PATH_MAGIC 28159418810dSmrg# -------------- 28169bd41f2cSmrg# find a file program which can recognize a shared library 28179418810dSmrgm4_defun([_LT_PATH_MAGIC], 28189418810dSmrg[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) 28199bd41f2cSmrgif test -z "$lt_cv_path_MAGIC_CMD"; then 28209bd41f2cSmrg if test -n "$ac_tool_prefix"; then 28219418810dSmrg _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) 28229bd41f2cSmrg else 28239bd41f2cSmrg MAGIC_CMD=: 28249bd41f2cSmrg fi 28259bd41f2cSmrgfi 28269418810dSmrg])# _LT_PATH_MAGIC 28279bd41f2cSmrg 28289bd41f2cSmrg 28299418810dSmrg# LT_PATH_LD 28309bd41f2cSmrg# ---------- 28319bd41f2cSmrg# find the pathname to the GNU or non-GNU linker 28329418810dSmrgAC_DEFUN([LT_PATH_LD], 28339418810dSmrg[AC_REQUIRE([AC_PROG_CC])dnl 28349bd41f2cSmrgAC_REQUIRE([AC_CANONICAL_HOST])dnl 28359bd41f2cSmrgAC_REQUIRE([AC_CANONICAL_BUILD])dnl 28369418810dSmrgm4_require([_LT_DECL_SED])dnl 28379418810dSmrgm4_require([_LT_DECL_EGREP])dnl 28389418810dSmrg 28399418810dSmrgAC_ARG_WITH([gnu-ld], 28409418810dSmrg [AS_HELP_STRING([--with-gnu-ld], 28419418810dSmrg [assume the C compiler uses GNU ld @<:@default=no@:>@])], 28429418810dSmrg [test "$withval" = no || with_gnu_ld=yes], 28439418810dSmrg [with_gnu_ld=no])dnl 28449418810dSmrg 28459bd41f2cSmrgac_prog=ld 28469bd41f2cSmrgif test "$GCC" = yes; then 28479bd41f2cSmrg # Check if gcc -print-prog-name=ld gives a path. 28489bd41f2cSmrg AC_MSG_CHECKING([for ld used by $CC]) 28499bd41f2cSmrg case $host in 28509bd41f2cSmrg *-*-mingw*) 28519bd41f2cSmrg # gcc leaves a trailing carriage return which upsets mingw 28529bd41f2cSmrg ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 28539bd41f2cSmrg *) 28549bd41f2cSmrg ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 28559bd41f2cSmrg esac 28569bd41f2cSmrg case $ac_prog in 28579bd41f2cSmrg # Accept absolute paths. 28589bd41f2cSmrg [[\\/]]* | ?:[[\\/]]*) 28599bd41f2cSmrg re_direlt='/[[^/]][[^/]]*/\.\./' 28609bd41f2cSmrg # Canonicalize the pathname of ld 28619418810dSmrg ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 28629418810dSmrg while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 28639418810dSmrg ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 28649bd41f2cSmrg done 28659bd41f2cSmrg test -z "$LD" && LD="$ac_prog" 28669bd41f2cSmrg ;; 28679bd41f2cSmrg "") 28689bd41f2cSmrg # If it fails, then pretend we aren't using GCC. 28699bd41f2cSmrg ac_prog=ld 28709bd41f2cSmrg ;; 28719bd41f2cSmrg *) 28729bd41f2cSmrg # If it is relative, then search for the first ld in PATH. 28739bd41f2cSmrg with_gnu_ld=unknown 28749bd41f2cSmrg ;; 28759bd41f2cSmrg esac 28769bd41f2cSmrgelif test "$with_gnu_ld" = yes; then 28779bd41f2cSmrg AC_MSG_CHECKING([for GNU ld]) 28789bd41f2cSmrgelse 28799bd41f2cSmrg AC_MSG_CHECKING([for non-GNU ld]) 28809bd41f2cSmrgfi 28819bd41f2cSmrgAC_CACHE_VAL(lt_cv_path_LD, 28829bd41f2cSmrg[if test -z "$LD"; then 28839bd41f2cSmrg lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 28849bd41f2cSmrg for ac_dir in $PATH; do 28859bd41f2cSmrg IFS="$lt_save_ifs" 28869bd41f2cSmrg test -z "$ac_dir" && ac_dir=. 28879bd41f2cSmrg if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 28889bd41f2cSmrg lt_cv_path_LD="$ac_dir/$ac_prog" 28899bd41f2cSmrg # Check to see if the program is GNU ld. I'd rather use --version, 28909bd41f2cSmrg # but apparently some variants of GNU ld only accept -v. 28919bd41f2cSmrg # Break only if it was the GNU/non-GNU ld that we prefer. 28929bd41f2cSmrg case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 28939bd41f2cSmrg *GNU* | *'with BFD'*) 28949bd41f2cSmrg test "$with_gnu_ld" != no && break 28959bd41f2cSmrg ;; 28969bd41f2cSmrg *) 28979bd41f2cSmrg test "$with_gnu_ld" != yes && break 28989bd41f2cSmrg ;; 28999bd41f2cSmrg esac 29009bd41f2cSmrg fi 29019bd41f2cSmrg done 29029bd41f2cSmrg IFS="$lt_save_ifs" 29039bd41f2cSmrgelse 29049bd41f2cSmrg lt_cv_path_LD="$LD" # Let the user override the test with a path. 29059bd41f2cSmrgfi]) 29069bd41f2cSmrgLD="$lt_cv_path_LD" 29079bd41f2cSmrgif test -n "$LD"; then 29089bd41f2cSmrg AC_MSG_RESULT($LD) 29099bd41f2cSmrgelse 29109bd41f2cSmrg AC_MSG_RESULT(no) 29119bd41f2cSmrgfi 29129bd41f2cSmrgtest -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) 29139418810dSmrg_LT_PATH_LD_GNU 29149418810dSmrgAC_SUBST([LD]) 29159bd41f2cSmrg 29169418810dSmrg_LT_TAGDECL([], [LD], [1], [The linker used to build libraries]) 29179418810dSmrg])# LT_PATH_LD 29189bd41f2cSmrg 29199418810dSmrg# Old names: 29209418810dSmrgAU_ALIAS([AM_PROG_LD], [LT_PATH_LD]) 29219418810dSmrgAU_ALIAS([AC_PROG_LD], [LT_PATH_LD]) 29229418810dSmrgdnl aclocal-1.4 backwards compatibility: 29239418810dSmrgdnl AC_DEFUN([AM_PROG_LD], []) 29249418810dSmrgdnl AC_DEFUN([AC_PROG_LD], []) 29259418810dSmrg 29269418810dSmrg 29279418810dSmrg# _LT_PATH_LD_GNU 29289418810dSmrg#- -------------- 29299418810dSmrgm4_defun([_LT_PATH_LD_GNU], 29309418810dSmrg[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld, 29319bd41f2cSmrg[# I'd rather use --version here, but apparently some GNU lds only accept -v. 29329bd41f2cSmrgcase `$LD -v 2>&1 </dev/null` in 29339bd41f2cSmrg*GNU* | *'with BFD'*) 29349bd41f2cSmrg lt_cv_prog_gnu_ld=yes 29359bd41f2cSmrg ;; 29369bd41f2cSmrg*) 29379bd41f2cSmrg lt_cv_prog_gnu_ld=no 29389bd41f2cSmrg ;; 29399bd41f2cSmrgesac]) 29409bd41f2cSmrgwith_gnu_ld=$lt_cv_prog_gnu_ld 29419418810dSmrg])# _LT_PATH_LD_GNU 29429bd41f2cSmrg 29439bd41f2cSmrg 29449418810dSmrg# _LT_CMD_RELOAD 29459418810dSmrg# -------------- 29469bd41f2cSmrg# find reload flag for linker 29479bd41f2cSmrg# -- PORTME Some linkers may need a different reload flag. 29489418810dSmrgm4_defun([_LT_CMD_RELOAD], 29499bd41f2cSmrg[AC_CACHE_CHECK([for $LD option to reload object files], 29509bd41f2cSmrg lt_cv_ld_reload_flag, 29519bd41f2cSmrg [lt_cv_ld_reload_flag='-r']) 29529bd41f2cSmrgreload_flag=$lt_cv_ld_reload_flag 29539bd41f2cSmrgcase $reload_flag in 29549bd41f2cSmrg"" | " "*) ;; 29559bd41f2cSmrg*) reload_flag=" $reload_flag" ;; 29569bd41f2cSmrgesac 29579bd41f2cSmrgreload_cmds='$LD$reload_flag -o $output$reload_objs' 29589bd41f2cSmrgcase $host_os in 29599bd41f2cSmrg darwin*) 29609bd41f2cSmrg if test "$GCC" = yes; then 29619bd41f2cSmrg reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 29629bd41f2cSmrg else 29639bd41f2cSmrg reload_cmds='$LD$reload_flag -o $output$reload_objs' 29649bd41f2cSmrg fi 29659bd41f2cSmrg ;; 29669bd41f2cSmrgesac 29679418810dSmrg_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl 29689418810dSmrg_LT_DECL([], [reload_cmds], [2])dnl 29699418810dSmrg])# _LT_CMD_RELOAD 29709bd41f2cSmrg 29719bd41f2cSmrg 29729418810dSmrg# _LT_CHECK_MAGIC_METHOD 29739418810dSmrg# ---------------------- 29749bd41f2cSmrg# how to check for library dependencies 29759bd41f2cSmrg# -- PORTME fill in with the dynamic library characteristics 29769418810dSmrgm4_defun([_LT_CHECK_MAGIC_METHOD], 29779418810dSmrg[m4_require([_LT_DECL_EGREP]) 29789418810dSmrgm4_require([_LT_DECL_OBJDUMP]) 29799418810dSmrgAC_CACHE_CHECK([how to recognize dependent libraries], 29809bd41f2cSmrglt_cv_deplibs_check_method, 29819bd41f2cSmrg[lt_cv_file_magic_cmd='$MAGIC_CMD' 29829bd41f2cSmrglt_cv_file_magic_test_file= 29839bd41f2cSmrglt_cv_deplibs_check_method='unknown' 29849bd41f2cSmrg# Need to set the preceding variable on all platforms that support 29859bd41f2cSmrg# interlibrary dependencies. 29869bd41f2cSmrg# 'none' -- dependencies not supported. 29879bd41f2cSmrg# `unknown' -- same as none, but documents that we really don't know. 29889bd41f2cSmrg# 'pass_all' -- all dependencies passed with no checks. 29899bd41f2cSmrg# 'test_compile' -- check by making test program. 29909bd41f2cSmrg# 'file_magic [[regex]]' -- check by looking for files in library path 29919bd41f2cSmrg# which responds to the $file_magic_cmd with a given extended regex. 29929bd41f2cSmrg# If you have `file' or equivalent on your system and you're not sure 29939bd41f2cSmrg# whether `pass_all' will *always* work, you probably want this one. 29949bd41f2cSmrg 29959bd41f2cSmrgcase $host_os in 2996d075918cSmrgaix[[4-9]]*) 29979bd41f2cSmrg lt_cv_deplibs_check_method=pass_all 29989bd41f2cSmrg ;; 29999bd41f2cSmrg 30009bd41f2cSmrgbeos*) 30019bd41f2cSmrg lt_cv_deplibs_check_method=pass_all 30029bd41f2cSmrg ;; 30039bd41f2cSmrg 30049bd41f2cSmrgbsdi[[45]]*) 30059bd41f2cSmrg lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)' 30069bd41f2cSmrg lt_cv_file_magic_cmd='/usr/bin/file -L' 30079bd41f2cSmrg lt_cv_file_magic_test_file=/shlib/libc.so 30089bd41f2cSmrg ;; 30099bd41f2cSmrg 30109bd41f2cSmrgcygwin*) 30119bd41f2cSmrg # func_win32_libid is a shell function defined in ltmain.sh 30129bd41f2cSmrg lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 30139bd41f2cSmrg lt_cv_file_magic_cmd='func_win32_libid' 30149bd41f2cSmrg ;; 30159bd41f2cSmrg 30169bd41f2cSmrgmingw* | pw32*) 30179bd41f2cSmrg # Base MSYS/MinGW do not provide the 'file' command needed by 30189bd41f2cSmrg # func_win32_libid shell function, so use a weaker test based on 'objdump', 30199bd41f2cSmrg # unless we find 'file', for example because we are cross-compiling. 30209bd41f2cSmrg if ( file / ) >/dev/null 2>&1; then 30219bd41f2cSmrg lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 30229bd41f2cSmrg lt_cv_file_magic_cmd='func_win32_libid' 30239bd41f2cSmrg else 30249bd41f2cSmrg lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 30259bd41f2cSmrg lt_cv_file_magic_cmd='$OBJDUMP -f' 30269bd41f2cSmrg fi 30279bd41f2cSmrg ;; 30289bd41f2cSmrg 30299418810dSmrgcegcc) 30309418810dSmrg # use the weaker test based on 'objdump'. See mingw*. 30319418810dSmrg lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 30329418810dSmrg lt_cv_file_magic_cmd='$OBJDUMP -f' 30339418810dSmrg ;; 30349418810dSmrg 30359bd41f2cSmrgdarwin* | rhapsody*) 30369bd41f2cSmrg lt_cv_deplibs_check_method=pass_all 30379bd41f2cSmrg ;; 30389bd41f2cSmrg 30399bd41f2cSmrgfreebsd* | dragonfly*) 30409418810dSmrg if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 30419bd41f2cSmrg case $host_cpu in 30429bd41f2cSmrg i*86 ) 30439bd41f2cSmrg # Not sure whether the presence of OpenBSD here was a mistake. 30449bd41f2cSmrg # Let's accept both of them until this is cleared up. 30459bd41f2cSmrg lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' 30469bd41f2cSmrg lt_cv_file_magic_cmd=/usr/bin/file 30479bd41f2cSmrg lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 30489bd41f2cSmrg ;; 30499bd41f2cSmrg esac 30509bd41f2cSmrg else 30519bd41f2cSmrg lt_cv_deplibs_check_method=pass_all 30529bd41f2cSmrg fi 30539bd41f2cSmrg ;; 30549bd41f2cSmrg 30559bd41f2cSmrggnu*) 30569bd41f2cSmrg lt_cv_deplibs_check_method=pass_all 30579bd41f2cSmrg ;; 30589bd41f2cSmrg 30599bd41f2cSmrghpux10.20* | hpux11*) 30609bd41f2cSmrg lt_cv_file_magic_cmd=/usr/bin/file 30619bd41f2cSmrg case $host_cpu in 30629bd41f2cSmrg ia64*) 30639bd41f2cSmrg lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' 30649bd41f2cSmrg lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 30659bd41f2cSmrg ;; 30669bd41f2cSmrg hppa*64*) 30679bd41f2cSmrg [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]'] 30689bd41f2cSmrg lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 30699bd41f2cSmrg ;; 30709bd41f2cSmrg *) 30719bd41f2cSmrg lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library' 30729bd41f2cSmrg lt_cv_file_magic_test_file=/usr/lib/libc.sl 30739bd41f2cSmrg ;; 30749bd41f2cSmrg esac 30759bd41f2cSmrg ;; 30769bd41f2cSmrg 30779bd41f2cSmrginterix[[3-9]]*) 30789bd41f2cSmrg # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 30799bd41f2cSmrg lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' 30809bd41f2cSmrg ;; 30819bd41f2cSmrg 30829bd41f2cSmrgirix5* | irix6* | nonstopux*) 30839bd41f2cSmrg case $LD in 30849bd41f2cSmrg *-32|*"-32 ") libmagic=32-bit;; 30859bd41f2cSmrg *-n32|*"-n32 ") libmagic=N32;; 30869bd41f2cSmrg *-64|*"-64 ") libmagic=64-bit;; 30879bd41f2cSmrg *) libmagic=never-match;; 30889bd41f2cSmrg esac 30899bd41f2cSmrg lt_cv_deplibs_check_method=pass_all 30909bd41f2cSmrg ;; 30919bd41f2cSmrg 30929bd41f2cSmrg# This must be Linux ELF. 30939bd41f2cSmrglinux* | k*bsd*-gnu) 30949bd41f2cSmrg lt_cv_deplibs_check_method=pass_all 30959bd41f2cSmrg ;; 30969bd41f2cSmrg 30979bd41f2cSmrgnetbsd*) 30989418810dSmrg if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 30999bd41f2cSmrg lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' 31009bd41f2cSmrg else 31019bd41f2cSmrg lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' 31029bd41f2cSmrg fi 31039bd41f2cSmrg ;; 31049bd41f2cSmrg 31059bd41f2cSmrgnewos6*) 31069bd41f2cSmrg lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' 31079bd41f2cSmrg lt_cv_file_magic_cmd=/usr/bin/file 31089bd41f2cSmrg lt_cv_file_magic_test_file=/usr/lib/libnls.so 31099bd41f2cSmrg ;; 31109bd41f2cSmrg 31119418810dSmrg*nto* | *qnx*) 31129418810dSmrg lt_cv_deplibs_check_method=pass_all 31139bd41f2cSmrg ;; 31149bd41f2cSmrg 31159bd41f2cSmrgopenbsd*) 31169418810dSmrg if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 31179bd41f2cSmrg lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' 31189bd41f2cSmrg else 31199bd41f2cSmrg lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' 31209bd41f2cSmrg fi 31219bd41f2cSmrg ;; 31229bd41f2cSmrg 31239bd41f2cSmrgosf3* | osf4* | osf5*) 31249bd41f2cSmrg lt_cv_deplibs_check_method=pass_all 31259bd41f2cSmrg ;; 31269bd41f2cSmrg 31279bd41f2cSmrgrdos*) 31289bd41f2cSmrg lt_cv_deplibs_check_method=pass_all 31299bd41f2cSmrg ;; 31309bd41f2cSmrg 31319bd41f2cSmrgsolaris*) 31329bd41f2cSmrg lt_cv_deplibs_check_method=pass_all 31339bd41f2cSmrg ;; 31349bd41f2cSmrg 31359418810dSmrgsysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 31369418810dSmrg lt_cv_deplibs_check_method=pass_all 31379418810dSmrg ;; 31389418810dSmrg 31399bd41f2cSmrgsysv4 | sysv4.3*) 31409bd41f2cSmrg case $host_vendor in 31419bd41f2cSmrg motorola) 31429bd41f2cSmrg 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]]' 31439bd41f2cSmrg lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 31449bd41f2cSmrg ;; 31459bd41f2cSmrg ncr) 31469bd41f2cSmrg lt_cv_deplibs_check_method=pass_all 31479bd41f2cSmrg ;; 31489bd41f2cSmrg sequent) 31499bd41f2cSmrg lt_cv_file_magic_cmd='/bin/file' 31509bd41f2cSmrg lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' 31519bd41f2cSmrg ;; 31529bd41f2cSmrg sni) 31539bd41f2cSmrg lt_cv_file_magic_cmd='/bin/file' 31549bd41f2cSmrg lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" 31559bd41f2cSmrg lt_cv_file_magic_test_file=/lib/libc.so 31569bd41f2cSmrg ;; 31579bd41f2cSmrg siemens) 31589bd41f2cSmrg lt_cv_deplibs_check_method=pass_all 31599bd41f2cSmrg ;; 31609bd41f2cSmrg pc) 31619bd41f2cSmrg lt_cv_deplibs_check_method=pass_all 31629bd41f2cSmrg ;; 31639bd41f2cSmrg esac 31649bd41f2cSmrg ;; 31659bd41f2cSmrg 31669418810dSmrgtpf*) 31679bd41f2cSmrg lt_cv_deplibs_check_method=pass_all 31689bd41f2cSmrg ;; 31699bd41f2cSmrgesac 31709bd41f2cSmrg]) 31719bd41f2cSmrgfile_magic_cmd=$lt_cv_file_magic_cmd 31729bd41f2cSmrgdeplibs_check_method=$lt_cv_deplibs_check_method 31739bd41f2cSmrgtest -z "$deplibs_check_method" && deplibs_check_method=unknown 31749418810dSmrg 31759418810dSmrg_LT_DECL([], [deplibs_check_method], [1], 31769418810dSmrg [Method to check whether dependent libraries are shared objects]) 31779418810dSmrg_LT_DECL([], [file_magic_cmd], [1], 31789418810dSmrg [Command to use when deplibs_check_method == "file_magic"]) 31799418810dSmrg])# _LT_CHECK_MAGIC_METHOD 31809bd41f2cSmrg 31819bd41f2cSmrg 31829418810dSmrg# LT_PATH_NM 31839bd41f2cSmrg# ---------- 31849418810dSmrg# find the pathname to a BSD- or MS-compatible name lister 31859418810dSmrgAC_DEFUN([LT_PATH_NM], 31869418810dSmrg[AC_REQUIRE([AC_PROG_CC])dnl 31879418810dSmrgAC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM, 31889bd41f2cSmrg[if test -n "$NM"; then 31899bd41f2cSmrg # Let the user override the test. 31909bd41f2cSmrg lt_cv_path_NM="$NM" 31919bd41f2cSmrgelse 31929bd41f2cSmrg lt_nm_to_check="${ac_tool_prefix}nm" 31939bd41f2cSmrg if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 31949bd41f2cSmrg lt_nm_to_check="$lt_nm_to_check nm" 31959bd41f2cSmrg fi 31969bd41f2cSmrg for lt_tmp_nm in $lt_nm_to_check; do 31979bd41f2cSmrg lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 31989bd41f2cSmrg for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 31999bd41f2cSmrg IFS="$lt_save_ifs" 32009bd41f2cSmrg test -z "$ac_dir" && ac_dir=. 32019bd41f2cSmrg tmp_nm="$ac_dir/$lt_tmp_nm" 32029bd41f2cSmrg if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 32039bd41f2cSmrg # Check to see if the nm accepts a BSD-compat flag. 32049bd41f2cSmrg # Adding the `sed 1q' prevents false positives on HP-UX, which says: 32059bd41f2cSmrg # nm: unknown option "B" ignored 32069bd41f2cSmrg # Tru64's nm complains that /dev/null is an invalid object file 32079bd41f2cSmrg case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 32089bd41f2cSmrg */dev/null* | *'Invalid file or object type'*) 32099bd41f2cSmrg lt_cv_path_NM="$tmp_nm -B" 32109bd41f2cSmrg break 32119bd41f2cSmrg ;; 32129bd41f2cSmrg *) 32139bd41f2cSmrg case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 32149bd41f2cSmrg */dev/null*) 32159bd41f2cSmrg lt_cv_path_NM="$tmp_nm -p" 32169bd41f2cSmrg break 32179bd41f2cSmrg ;; 32189bd41f2cSmrg *) 32199bd41f2cSmrg lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 32209bd41f2cSmrg continue # so that we can try to find one that supports BSD flags 32219bd41f2cSmrg ;; 32229bd41f2cSmrg esac 32239bd41f2cSmrg ;; 32249bd41f2cSmrg esac 32259bd41f2cSmrg fi 32269bd41f2cSmrg done 32279bd41f2cSmrg IFS="$lt_save_ifs" 32289bd41f2cSmrg done 32299418810dSmrg : ${lt_cv_path_NM=no} 32309bd41f2cSmrgfi]) 32319418810dSmrgif test "$lt_cv_path_NM" != "no"; then 32329418810dSmrg NM="$lt_cv_path_NM" 32339418810dSmrgelse 32349418810dSmrg # Didn't find any BSD compatible name lister, look for dumpbin. 32359418810dSmrg AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :) 32369418810dSmrg AC_SUBST([DUMPBIN]) 32379418810dSmrg if test "$DUMPBIN" != ":"; then 32389418810dSmrg NM="$DUMPBIN" 32399418810dSmrg fi 32409418810dSmrgfi 32419418810dSmrgtest -z "$NM" && NM=nm 32429418810dSmrgAC_SUBST([NM]) 32439418810dSmrg_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl 32449418810dSmrg 32459418810dSmrgAC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface], 32469418810dSmrg [lt_cv_nm_interface="BSD nm" 32479418810dSmrg echo "int some_variable = 0;" > conftest.$ac_ext 32489418810dSmrg (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD) 32499418810dSmrg (eval "$ac_compile" 2>conftest.err) 32509418810dSmrg cat conftest.err >&AS_MESSAGE_LOG_FD 32519418810dSmrg (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD) 32529418810dSmrg (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 32539418810dSmrg cat conftest.err >&AS_MESSAGE_LOG_FD 32549418810dSmrg (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD) 32559418810dSmrg cat conftest.out >&AS_MESSAGE_LOG_FD 32569418810dSmrg if $GREP 'External.*some_variable' conftest.out > /dev/null; then 32579418810dSmrg lt_cv_nm_interface="MS dumpbin" 32589418810dSmrg fi 32599418810dSmrg rm -f conftest*]) 32609418810dSmrg])# LT_PATH_NM 32619bd41f2cSmrg 32629418810dSmrg# Old names: 32639418810dSmrgAU_ALIAS([AM_PROG_NM], [LT_PATH_NM]) 32649418810dSmrgAU_ALIAS([AC_PROG_NM], [LT_PATH_NM]) 32659418810dSmrgdnl aclocal-1.4 backwards compatibility: 32669418810dSmrgdnl AC_DEFUN([AM_PROG_NM], []) 32679418810dSmrgdnl AC_DEFUN([AC_PROG_NM], []) 32689bd41f2cSmrg 32699418810dSmrg 32709418810dSmrg# LT_LIB_M 32719418810dSmrg# -------- 32729bd41f2cSmrg# check for math library 32739418810dSmrgAC_DEFUN([LT_LIB_M], 32749bd41f2cSmrg[AC_REQUIRE([AC_CANONICAL_HOST])dnl 32759bd41f2cSmrgLIBM= 32769bd41f2cSmrgcase $host in 32779bd41f2cSmrg*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*) 32789bd41f2cSmrg # These system don't have libm, or don't need it 32799bd41f2cSmrg ;; 32809bd41f2cSmrg*-ncr-sysv4.3*) 32819bd41f2cSmrg AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw") 32829bd41f2cSmrg AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") 32839bd41f2cSmrg ;; 32849bd41f2cSmrg*) 32859bd41f2cSmrg AC_CHECK_LIB(m, cos, LIBM="-lm") 32869bd41f2cSmrg ;; 32879bd41f2cSmrgesac 32889418810dSmrgAC_SUBST([LIBM]) 32899418810dSmrg])# LT_LIB_M 32909bd41f2cSmrg 32919418810dSmrg# Old name: 32929418810dSmrgAU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M]) 32939418810dSmrgdnl aclocal-1.4 backwards compatibility: 32949418810dSmrgdnl AC_DEFUN([AC_CHECK_LIBM], []) 32959bd41f2cSmrg 32969bd41f2cSmrg 32979418810dSmrg# _LT_COMPILER_NO_RTTI([TAGNAME]) 32989418810dSmrg# ------------------------------- 32999418810dSmrgm4_defun([_LT_COMPILER_NO_RTTI], 33009418810dSmrg[m4_require([_LT_TAG_COMPILER])dnl 33019bd41f2cSmrg 33029418810dSmrg_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= 33039bd41f2cSmrg 33049418810dSmrgif test "$GCC" = yes; then 33059418810dSmrg _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' 33069bd41f2cSmrg 33079418810dSmrg _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], 33089418810dSmrg lt_cv_prog_compiler_rtti_exceptions, 33099418810dSmrg [-fno-rtti -fno-exceptions], [], 33109418810dSmrg [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) 33119418810dSmrgfi 33129418810dSmrg_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1], 33139418810dSmrg [Compiler flag to turn off builtin functions]) 33149418810dSmrg])# _LT_COMPILER_NO_RTTI 33159bd41f2cSmrg 33169bd41f2cSmrg 33179418810dSmrg# _LT_CMD_GLOBAL_SYMBOLS 33189418810dSmrg# ---------------------- 33199418810dSmrgm4_defun([_LT_CMD_GLOBAL_SYMBOLS], 33209418810dSmrg[AC_REQUIRE([AC_CANONICAL_HOST])dnl 33219418810dSmrgAC_REQUIRE([AC_PROG_CC])dnl 33229418810dSmrgAC_REQUIRE([LT_PATH_NM])dnl 33239418810dSmrgAC_REQUIRE([LT_PATH_LD])dnl 33249418810dSmrgm4_require([_LT_DECL_SED])dnl 33259418810dSmrgm4_require([_LT_DECL_EGREP])dnl 33269418810dSmrgm4_require([_LT_TAG_COMPILER])dnl 33279bd41f2cSmrg 33289418810dSmrg# Check for command to grab the raw symbol name followed by C symbol from nm. 33299418810dSmrgAC_MSG_CHECKING([command to parse $NM output from $compiler object]) 33309418810dSmrgAC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], 33319bd41f2cSmrg[ 33329418810dSmrg# These are sane defaults that work on at least a few old systems. 33339418810dSmrg# [They come from Ultrix. What could be older than Ultrix?!! ;)] 33349bd41f2cSmrg 33359418810dSmrg# Character class describing NM global symbol codes. 33369418810dSmrgsymcode='[[BCDEGRST]]' 33379bd41f2cSmrg 33389418810dSmrg# Regexp to match symbols that can be accessed directly from C. 33399418810dSmrgsympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' 33409bd41f2cSmrg 33419418810dSmrg# Define system-specific variables. 33429418810dSmrgcase $host_os in 33439418810dSmrgaix*) 33449418810dSmrg symcode='[[BCDT]]' 33459418810dSmrg ;; 33469418810dSmrgcygwin* | mingw* | pw32* | cegcc*) 33479418810dSmrg symcode='[[ABCDGISTW]]' 33489418810dSmrg ;; 33499418810dSmrghpux*) 33509418810dSmrg if test "$host_cpu" = ia64; then 33519418810dSmrg symcode='[[ABCDEGRST]]' 33529418810dSmrg fi 33539418810dSmrg ;; 33549418810dSmrgirix* | nonstopux*) 33559418810dSmrg symcode='[[BCDEGRST]]' 33569418810dSmrg ;; 33579418810dSmrgosf*) 33589418810dSmrg symcode='[[BCDEGQRST]]' 33599418810dSmrg ;; 33609418810dSmrgsolaris*) 33619418810dSmrg symcode='[[BDRT]]' 33629418810dSmrg ;; 33639418810dSmrgsco3.2v5*) 33649418810dSmrg symcode='[[DT]]' 33659418810dSmrg ;; 33669418810dSmrgsysv4.2uw2*) 33679418810dSmrg symcode='[[DT]]' 33689418810dSmrg ;; 33699418810dSmrgsysv5* | sco5v6* | unixware* | OpenUNIX*) 33709418810dSmrg symcode='[[ABDT]]' 33719418810dSmrg ;; 33729418810dSmrgsysv4) 33739418810dSmrg symcode='[[DFNSTU]]' 33749418810dSmrg ;; 33759418810dSmrgesac 33769bd41f2cSmrg 33779418810dSmrg# If we're using GNU nm, then use its standard symbol codes. 33789418810dSmrgcase `$NM -V 2>&1` in 33799418810dSmrg*GNU* | *'with BFD'*) 33809418810dSmrg symcode='[[ABCDGIRSTW]]' ;; 33819418810dSmrgesac 33829bd41f2cSmrg 33839418810dSmrg# Transform an extracted symbol line into a proper C declaration. 33849418810dSmrg# Some systems (esp. on ia64) link data and code symbols differently, 33859418810dSmrg# so use this general approach. 33869418810dSmrglt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 33879bd41f2cSmrg 33889418810dSmrg# Transform an extracted symbol line into symbol name and symbol address 33899418810dSmrglt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'" 33909418810dSmrglt_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'" 33919bd41f2cSmrg 33929418810dSmrg# Handle CRLF in mingw tool chain 33939418810dSmrgopt_cr= 33949418810dSmrgcase $build_os in 33959418810dSmrgmingw*) 33969418810dSmrg opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 33979418810dSmrg ;; 33989418810dSmrgesac 33999bd41f2cSmrg 34009418810dSmrg# Try without a prefix underscore, then with it. 34019418810dSmrgfor ac_symprfx in "" "_"; do 34029bd41f2cSmrg 34039418810dSmrg # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 34049418810dSmrg symxfrm="\\1 $ac_symprfx\\2 \\2" 34059bd41f2cSmrg 34069418810dSmrg # Write the raw and C identifiers. 34079418810dSmrg if test "$lt_cv_nm_interface" = "MS dumpbin"; then 34089418810dSmrg # Fake it for dumpbin and say T for any non-static function 34099418810dSmrg # and D for any global variable. 34109418810dSmrg # Also find C++ and __fastcall symbols from MSVC++, 34119418810dSmrg # which start with @ or ?. 34129418810dSmrg lt_cv_sys_global_symbol_pipe="$AWK ['"\ 34139418810dSmrg" {last_section=section; section=\$ 3};"\ 34149418810dSmrg" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 34159418810dSmrg" \$ 0!~/External *\|/{next};"\ 34169418810dSmrg" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 34179418810dSmrg" {if(hide[section]) next};"\ 34189418810dSmrg" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 34199418810dSmrg" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 34209418810dSmrg" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 34219418810dSmrg" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 34229418810dSmrg" ' prfx=^$ac_symprfx]" 34239418810dSmrg else 34249418810dSmrg lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 34259bd41f2cSmrg fi 34269bd41f2cSmrg 34279418810dSmrg # Check to see that the pipe works correctly. 34289418810dSmrg pipe_works=no 34299bd41f2cSmrg 34309418810dSmrg rm -f conftest* 34319418810dSmrg cat > conftest.$ac_ext <<_LT_EOF 34329418810dSmrg#ifdef __cplusplus 34339418810dSmrgextern "C" { 34349418810dSmrg#endif 34359418810dSmrgchar nm_test_var; 34369418810dSmrgvoid nm_test_func(void); 34379418810dSmrgvoid nm_test_func(void){} 34389418810dSmrg#ifdef __cplusplus 34399418810dSmrg} 34409418810dSmrg#endif 34419418810dSmrgint main(){nm_test_var='a';nm_test_func();return(0);} 34429418810dSmrg_LT_EOF 34439bd41f2cSmrg 34449418810dSmrg if AC_TRY_EVAL(ac_compile); then 34459418810dSmrg # Now try to grab the symbols. 34469418810dSmrg nlist=conftest.nm 34479418810dSmrg if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then 34489418810dSmrg # Try sorting and uniquifying the output. 34499418810dSmrg if sort "$nlist" | uniq > "$nlist"T; then 34509418810dSmrg mv -f "$nlist"T "$nlist" 34519418810dSmrg else 34529418810dSmrg rm -f "$nlist"T 34539418810dSmrg fi 34549bd41f2cSmrg 34559418810dSmrg # Make sure that we snagged all the symbols we need. 34569418810dSmrg if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 34579418810dSmrg if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 34589418810dSmrg cat <<_LT_EOF > conftest.$ac_ext 34599418810dSmrg#ifdef __cplusplus 34609418810dSmrgextern "C" { 34619418810dSmrg#endif 34629bd41f2cSmrg 34639418810dSmrg_LT_EOF 34649418810dSmrg # Now generate the symbol file. 34659418810dSmrg eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 34669bd41f2cSmrg 34679418810dSmrg cat <<_LT_EOF >> conftest.$ac_ext 34689bd41f2cSmrg 34699418810dSmrg/* The mapping between symbol names and symbols. */ 34709418810dSmrgconst struct { 34719418810dSmrg const char *name; 34729418810dSmrg void *address; 34739418810dSmrg} 34749418810dSmrglt__PROGRAM__LTX_preloaded_symbols[[]] = 34759418810dSmrg{ 34769418810dSmrg { "@PROGRAM@", (void *) 0 }, 34779418810dSmrg_LT_EOF 34789418810dSmrg $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 34799418810dSmrg cat <<\_LT_EOF >> conftest.$ac_ext 34809418810dSmrg {0, (void *) 0} 34819418810dSmrg}; 34829bd41f2cSmrg 34839418810dSmrg/* This works around a problem in FreeBSD linker */ 34849418810dSmrg#ifdef FREEBSD_WORKAROUND 34859418810dSmrgstatic const void *lt_preloaded_setup() { 34869418810dSmrg return lt__PROGRAM__LTX_preloaded_symbols; 34879418810dSmrg} 34889418810dSmrg#endif 34899bd41f2cSmrg 34909418810dSmrg#ifdef __cplusplus 34919418810dSmrg} 34929418810dSmrg#endif 34939418810dSmrg_LT_EOF 34949418810dSmrg # Now try linking the two files. 34959418810dSmrg mv conftest.$ac_objext conftstm.$ac_objext 34969418810dSmrg lt_save_LIBS="$LIBS" 34979418810dSmrg lt_save_CFLAGS="$CFLAGS" 34989418810dSmrg LIBS="conftstm.$ac_objext" 34999418810dSmrg CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" 35009418810dSmrg if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then 35019418810dSmrg pipe_works=yes 35029418810dSmrg fi 35039418810dSmrg LIBS="$lt_save_LIBS" 35049418810dSmrg CFLAGS="$lt_save_CFLAGS" 35059418810dSmrg else 35069418810dSmrg echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD 35079418810dSmrg fi 35089418810dSmrg else 35099418810dSmrg echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD 35109418810dSmrg fi 35119bd41f2cSmrg else 35129418810dSmrg echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD 35139bd41f2cSmrg fi 35149bd41f2cSmrg else 35159418810dSmrg echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD 35169418810dSmrg cat conftest.$ac_ext >&5 35179bd41f2cSmrg fi 35189418810dSmrg rm -rf conftest* conftst* 35199bd41f2cSmrg 35209418810dSmrg # Do not use the global_symbol_pipe unless it works. 35219418810dSmrg if test "$pipe_works" = yes; then 35229418810dSmrg break 35239418810dSmrg else 35249418810dSmrg lt_cv_sys_global_symbol_pipe= 35259418810dSmrg fi 35269418810dSmrgdone 35279418810dSmrg]) 35289418810dSmrgif test -z "$lt_cv_sys_global_symbol_pipe"; then 35299418810dSmrg lt_cv_sys_global_symbol_to_cdecl= 35309418810dSmrgfi 35319418810dSmrgif test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 35329418810dSmrg AC_MSG_RESULT(failed) 35339bd41f2cSmrgelse 35349418810dSmrg AC_MSG_RESULT(ok) 35359bd41f2cSmrgfi 35369bd41f2cSmrg 35379418810dSmrg_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1], 35389418810dSmrg [Take the output of nm and produce a listing of raw symbols and C names]) 35399418810dSmrg_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1], 35409418810dSmrg [Transform the output of nm in a proper C declaration]) 35419418810dSmrg_LT_DECL([global_symbol_to_c_name_address], 35429418810dSmrg [lt_cv_sys_global_symbol_to_c_name_address], [1], 35439418810dSmrg [Transform the output of nm in a C name address pair]) 35449418810dSmrg_LT_DECL([global_symbol_to_c_name_address_lib_prefix], 35459418810dSmrg [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1], 35469418810dSmrg [Transform the output of nm in a C name address pair when lib prefix is needed]) 35479418810dSmrg]) # _LT_CMD_GLOBAL_SYMBOLS 35489bd41f2cSmrg 35499bd41f2cSmrg 35509418810dSmrg# _LT_COMPILER_PIC([TAGNAME]) 35519418810dSmrg# --------------------------- 35529418810dSmrgm4_defun([_LT_COMPILER_PIC], 35539418810dSmrg[m4_require([_LT_TAG_COMPILER])dnl 35549418810dSmrg_LT_TAGVAR(lt_prog_compiler_wl, $1)= 35559418810dSmrg_LT_TAGVAR(lt_prog_compiler_pic, $1)= 35569418810dSmrg_LT_TAGVAR(lt_prog_compiler_static, $1)= 35579bd41f2cSmrg 35589418810dSmrgAC_MSG_CHECKING([for $compiler option to produce PIC]) 35599418810dSmrgm4_if([$1], [CXX], [ 35609418810dSmrg # C++ specific cases for pic, static, wl, etc. 35619418810dSmrg if test "$GXX" = yes; then 35629418810dSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 35639418810dSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 35649bd41f2cSmrg 35659418810dSmrg case $host_os in 35669418810dSmrg aix*) 35679418810dSmrg # All AIX code is PIC. 35689bd41f2cSmrg if test "$host_cpu" = ia64; then 35699418810dSmrg # AIX 5 now supports IA64 processor 35709418810dSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 35719bd41f2cSmrg fi 35729bd41f2cSmrg ;; 35739bd41f2cSmrg 35749418810dSmrg amigaos*) 35759bd41f2cSmrg case $host_cpu in 35769418810dSmrg powerpc) 35779418810dSmrg # see comment about AmigaOS4 .so support 35789418810dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 35799418810dSmrg ;; 35809418810dSmrg m68k) 35819418810dSmrg # FIXME: we need at least 68020 code to build shared libraries, but 35829418810dSmrg # adding the `-m68020' flag to GCC prevents building anything better, 35839418810dSmrg # like `-m68040'. 35849418810dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' 35859bd41f2cSmrg ;; 35869bd41f2cSmrg esac 35879bd41f2cSmrg ;; 35889bd41f2cSmrg 35899418810dSmrg beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 35909418810dSmrg # PIC is the default for these OSes. 35919418810dSmrg ;; 35929418810dSmrg mingw* | cygwin* | os2* | pw32* | cegcc*) 35939418810dSmrg # This hack is so that the source file can tell whether it is being 35949418810dSmrg # built for inclusion in a dll (and should export symbols for example). 35959418810dSmrg # Although the cygwin gcc ignores -fPIC, still need this for old-style 35969418810dSmrg # (--disable-auto-import) libraries 35979418810dSmrg m4_if([$1], [GCJ], [], 35989418810dSmrg [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) 35999418810dSmrg ;; 36009418810dSmrg darwin* | rhapsody*) 36019418810dSmrg # PIC is the default on this platform 36029418810dSmrg # Common symbols not allowed in MH_DYLIB files 36039418810dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' 36049418810dSmrg ;; 36059418810dSmrg *djgpp*) 36069418810dSmrg # DJGPP does not support shared libraries at all 36079418810dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)= 36089418810dSmrg ;; 36099418810dSmrg interix[[3-9]]*) 36109418810dSmrg # Interix 3.x gcc -fpic/-fPIC options generate broken code. 36119418810dSmrg # Instead, we relocate shared libraries at runtime. 36129418810dSmrg ;; 36139418810dSmrg sysv4*MP*) 36149418810dSmrg if test -d /usr/nec; then 36159418810dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic 36169418810dSmrg fi 36179418810dSmrg ;; 36189418810dSmrg hpux*) 36199418810dSmrg # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 36209418810dSmrg # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 36219418810dSmrg # sets the default TLS model and affects inlining. 36229418810dSmrg case $host_cpu in 36239418810dSmrg hppa*64*) 36249bd41f2cSmrg ;; 36259bd41f2cSmrg *) 36269418810dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 36279bd41f2cSmrg ;; 36289418810dSmrg esac 36299418810dSmrg ;; 36309418810dSmrg *qnx* | *nto*) 36319418810dSmrg # QNX uses GNU C++, but need to define -shared option too, otherwise 36329418810dSmrg # it will coredump. 36339418810dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' 36349418810dSmrg ;; 36359418810dSmrg *) 36369418810dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 36379418810dSmrg ;; 36389bd41f2cSmrg esac 36399418810dSmrg else 36409418810dSmrg case $host_os in 36419418810dSmrg aix[[4-9]]*) 36429418810dSmrg # All AIX code is PIC. 36439418810dSmrg if test "$host_cpu" = ia64; then 36449418810dSmrg # AIX 5 now supports IA64 processor 36459418810dSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 36469418810dSmrg else 36479418810dSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' 36489418810dSmrg fi 36499bd41f2cSmrg ;; 36509418810dSmrg chorus*) 36519418810dSmrg case $cc_basename in 36529418810dSmrg cxch68*) 36539418810dSmrg # Green Hills C++ Compiler 36549418810dSmrg # _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" 36559bd41f2cSmrg ;; 36569bd41f2cSmrg esac 36579bd41f2cSmrg ;; 36589418810dSmrg dgux*) 36599418810dSmrg case $cc_basename in 36609418810dSmrg ec++*) 36619418810dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 36629418810dSmrg ;; 36639418810dSmrg ghcx*) 36649418810dSmrg # Green Hills C++ Compiler 36659418810dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 36669418810dSmrg ;; 36679418810dSmrg *) 36689418810dSmrg ;; 36699bd41f2cSmrg esac 36709bd41f2cSmrg ;; 36719418810dSmrg freebsd* | dragonfly*) 36729418810dSmrg # FreeBSD uses GNU C++ 36739bd41f2cSmrg ;; 36749418810dSmrg hpux9* | hpux10* | hpux11*) 36759418810dSmrg case $cc_basename in 36769418810dSmrg CC*) 36779418810dSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 36789418810dSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' 36799418810dSmrg if test "$host_cpu" != ia64; then 36809418810dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 36819418810dSmrg fi 36829418810dSmrg ;; 36839418810dSmrg aCC*) 36849418810dSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 36859418810dSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' 36869418810dSmrg case $host_cpu in 36879418810dSmrg hppa*64*|ia64*) 36889418810dSmrg # +Z the default 36899418810dSmrg ;; 36909418810dSmrg *) 36919418810dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 36929418810dSmrg ;; 36939418810dSmrg esac 36949418810dSmrg ;; 36959418810dSmrg *) 36969418810dSmrg ;; 36979418810dSmrg esac 36989bd41f2cSmrg ;; 36999418810dSmrg interix*) 37009418810dSmrg # This is c89, which is MS Visual C++ (no shared libs) 37019418810dSmrg # Anyone wants to do a port? 37029bd41f2cSmrg ;; 37039418810dSmrg irix5* | irix6* | nonstopux*) 37049418810dSmrg case $cc_basename in 37059418810dSmrg CC*) 37069418810dSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 37079418810dSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 37089418810dSmrg # CC pic flag -KPIC is the default. 37099418810dSmrg ;; 37109418810dSmrg *) 37119418810dSmrg ;; 37129418810dSmrg esac 37139bd41f2cSmrg ;; 37149418810dSmrg linux* | k*bsd*-gnu) 37159418810dSmrg case $cc_basename in 37169418810dSmrg KCC*) 37179418810dSmrg # KAI C++ Compiler 37189418810dSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' 37199418810dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 37209418810dSmrg ;; 37219418810dSmrg ecpc* ) 37229418810dSmrg # old Intel C++ for x86_64 which still supported -KPIC. 37239418810dSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 37249418810dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 37259418810dSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 37269418810dSmrg ;; 37279418810dSmrg icpc* ) 37289418810dSmrg # Intel C++, used to be incompatible with GCC. 37299418810dSmrg # ICC 10 doesn't accept -KPIC any more. 37309418810dSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 37319418810dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 37329418810dSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 37339418810dSmrg ;; 37349418810dSmrg pgCC* | pgcpp*) 37359418810dSmrg # Portland Group C++ compiler 37369418810dSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 37379418810dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' 37389418810dSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 37399418810dSmrg ;; 37409418810dSmrg cxx*) 37419418810dSmrg # Compaq C++ 37429418810dSmrg # Make sure the PIC flag is empty. It appears that all Alpha 37439418810dSmrg # Linux and Compaq Tru64 Unix objects are PIC. 37449418810dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)= 37459418810dSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 37469418810dSmrg ;; 37479418810dSmrg xlc* | xlC*) 37489418810dSmrg # IBM XL 8.0 on PPC 37499418810dSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 37509418810dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' 37519418810dSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' 37529418810dSmrg ;; 37539418810dSmrg *) 37549418810dSmrg case `$CC -V 2>&1 | sed 5q` in 37559418810dSmrg *Sun\ C*) 37569418810dSmrg # Sun C++ 5.9 37579418810dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 37589418810dSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 37599418810dSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 37609418810dSmrg ;; 37619418810dSmrg esac 37629418810dSmrg ;; 37639418810dSmrg esac 37649bd41f2cSmrg ;; 37659418810dSmrg lynxos*) 37669bd41f2cSmrg ;; 37679418810dSmrg m88k*) 37689bd41f2cSmrg ;; 37699418810dSmrg mvs*) 37709418810dSmrg case $cc_basename in 37719418810dSmrg cxx*) 37729418810dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' 37739418810dSmrg ;; 37749418810dSmrg *) 37759418810dSmrg ;; 37769418810dSmrg esac 37779bd41f2cSmrg ;; 37789418810dSmrg netbsd*) 37799bd41f2cSmrg ;; 37809418810dSmrg *qnx* | *nto*) 37819418810dSmrg # QNX uses GNU C++, but need to define -shared option too, otherwise 37829418810dSmrg # it will coredump. 37839418810dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' 37849418810dSmrg ;; 37859418810dSmrg osf3* | osf4* | osf5*) 37869418810dSmrg case $cc_basename in 37879418810dSmrg KCC*) 37889418810dSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' 37899418810dSmrg ;; 37909418810dSmrg RCC*) 37919418810dSmrg # Rational C++ 2.4.1 37929418810dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 37939418810dSmrg ;; 37949418810dSmrg cxx*) 37959418810dSmrg # Digital/Compaq C++ 37969418810dSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 37979418810dSmrg # Make sure the PIC flag is empty. It appears that all Alpha 37989418810dSmrg # Linux and Compaq Tru64 Unix objects are PIC. 37999418810dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)= 38009418810dSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 38019418810dSmrg ;; 38029418810dSmrg *) 38039418810dSmrg ;; 38049418810dSmrg esac 38059bd41f2cSmrg ;; 38069418810dSmrg psos*) 38079bd41f2cSmrg ;; 38089418810dSmrg solaris*) 38099418810dSmrg case $cc_basename in 38109418810dSmrg CC*) 38119418810dSmrg # Sun C++ 4.2, 5.x and Centerline C++ 38129418810dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 38139418810dSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 38149418810dSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 38159418810dSmrg ;; 38169418810dSmrg gcx*) 38179418810dSmrg # Green Hills C++ Compiler 38189418810dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' 38199418810dSmrg ;; 38209418810dSmrg *) 38219418810dSmrg ;; 38229418810dSmrg esac 38239bd41f2cSmrg ;; 38249418810dSmrg sunos4*) 38259418810dSmrg case $cc_basename in 38269418810dSmrg CC*) 38279418810dSmrg # Sun C++ 4.x 38289418810dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 38299418810dSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 38309418810dSmrg ;; 38319418810dSmrg lcc*) 38329418810dSmrg # Lucid 38339418810dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 38349418810dSmrg ;; 38359bd41f2cSmrg *) 38369bd41f2cSmrg ;; 38379bd41f2cSmrg esac 38389bd41f2cSmrg ;; 38399418810dSmrg sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 38409418810dSmrg case $cc_basename in 38419418810dSmrg CC*) 38429418810dSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 38439418810dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 38449418810dSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 38459418810dSmrg ;; 38469418810dSmrg esac 38479bd41f2cSmrg ;; 38489418810dSmrg tandem*) 38499418810dSmrg case $cc_basename in 38509418810dSmrg NCC*) 38519418810dSmrg # NonStop-UX NCC 3.20 38529418810dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 38539418810dSmrg ;; 38549bd41f2cSmrg *) 38559bd41f2cSmrg ;; 38569418810dSmrg esac 38579bd41f2cSmrg ;; 38589418810dSmrg vxworks*) 38599bd41f2cSmrg ;; 38609bd41f2cSmrg *) 38619418810dSmrg _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 38629bd41f2cSmrg ;; 38639bd41f2cSmrg esac 38649418810dSmrg fi 38659418810dSmrg], 38669418810dSmrg[ 38679418810dSmrg if test "$GCC" = yes; then 38689418810dSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 38699418810dSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 38709418810dSmrg 38719418810dSmrg case $host_os in 38729418810dSmrg aix*) 38739418810dSmrg # All AIX code is PIC. 38749418810dSmrg if test "$host_cpu" = ia64; then 38759418810dSmrg # AIX 5 now supports IA64 processor 38769418810dSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 38779418810dSmrg fi 38789418810dSmrg ;; 38799418810dSmrg 38809418810dSmrg amigaos*) 38819418810dSmrg case $host_cpu in 38829418810dSmrg powerpc) 38839418810dSmrg # see comment about AmigaOS4 .so support 38849418810dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 38859418810dSmrg ;; 38869418810dSmrg m68k) 38879418810dSmrg # FIXME: we need at least 68020 code to build shared libraries, but 38889418810dSmrg # adding the `-m68020' flag to GCC prevents building anything better, 38899418810dSmrg # like `-m68040'. 38909418810dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' 38919418810dSmrg ;; 38929418810dSmrg esac 38939418810dSmrg ;; 38949418810dSmrg 38959418810dSmrg beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 38969418810dSmrg # PIC is the default for these OSes. 38979418810dSmrg ;; 38989418810dSmrg 38999418810dSmrg mingw* | cygwin* | pw32* | os2* | cegcc*) 39009418810dSmrg # This hack is so that the source file can tell whether it is being 39019418810dSmrg # built for inclusion in a dll (and should export symbols for example). 39029418810dSmrg # Although the cygwin gcc ignores -fPIC, still need this for old-style 39039418810dSmrg # (--disable-auto-import) libraries 39049418810dSmrg m4_if([$1], [GCJ], [], 39059418810dSmrg [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) 39069418810dSmrg ;; 39079418810dSmrg 39089418810dSmrg darwin* | rhapsody*) 39099418810dSmrg # PIC is the default on this platform 39109418810dSmrg # Common symbols not allowed in MH_DYLIB files 39119418810dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' 39129418810dSmrg ;; 39139418810dSmrg 39149418810dSmrg hpux*) 39159418810dSmrg # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 39169418810dSmrg # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 39179418810dSmrg # sets the default TLS model and affects inlining. 39189418810dSmrg case $host_cpu in 39199418810dSmrg hppa*64*) 39209418810dSmrg # +Z the default 39219bd41f2cSmrg ;; 39229bd41f2cSmrg *) 39239418810dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 39249bd41f2cSmrg ;; 39259418810dSmrg esac 39269418810dSmrg ;; 39279418810dSmrg 39289418810dSmrg interix[[3-9]]*) 39299418810dSmrg # Interix 3.x gcc -fpic/-fPIC options generate broken code. 39309418810dSmrg # Instead, we relocate shared libraries at runtime. 39319418810dSmrg ;; 39329418810dSmrg 39339418810dSmrg msdosdjgpp*) 39349418810dSmrg # Just because we use GCC doesn't mean we suddenly get shared libraries 39359418810dSmrg # on systems that don't support them. 39369418810dSmrg _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 39379418810dSmrg enable_shared=no 39389418810dSmrg ;; 39399418810dSmrg 39409418810dSmrg *nto* | *qnx*) 39419418810dSmrg # QNX uses GNU C++, but need to define -shared option too, otherwise 39429418810dSmrg # it will coredump. 39439418810dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' 39449418810dSmrg ;; 39459418810dSmrg 39469418810dSmrg sysv4*MP*) 39479418810dSmrg if test -d /usr/nec; then 39489418810dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic 39499418810dSmrg fi 39509418810dSmrg ;; 39519418810dSmrg 39529418810dSmrg *) 39539418810dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 39549418810dSmrg ;; 39559bd41f2cSmrg esac 39569418810dSmrg else 39579418810dSmrg # PORTME Check for flag to pass linker flags through the system compiler. 39589418810dSmrg case $host_os in 39599418810dSmrg aix*) 39609418810dSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 39619418810dSmrg if test "$host_cpu" = ia64; then 39629418810dSmrg # AIX 5 now supports IA64 processor 39639418810dSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 39649418810dSmrg else 39659418810dSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' 39669418810dSmrg fi 39679418810dSmrg ;; 39689418810dSmrg 39699418810dSmrg mingw* | cygwin* | pw32* | os2* | cegcc*) 39709418810dSmrg # This hack is so that the source file can tell whether it is being 39719418810dSmrg # built for inclusion in a dll (and should export symbols for example). 39729418810dSmrg m4_if([$1], [GCJ], [], 39739418810dSmrg [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) 39749418810dSmrg ;; 39759418810dSmrg 39769418810dSmrg hpux9* | hpux10* | hpux11*) 39779418810dSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 39789418810dSmrg # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 39799418810dSmrg # not for PA HP-UX. 39809418810dSmrg case $host_cpu in 39819418810dSmrg hppa*64*|ia64*) 39829418810dSmrg # +Z the default 39839bd41f2cSmrg ;; 39849bd41f2cSmrg *) 39859418810dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 39869bd41f2cSmrg ;; 39879418810dSmrg esac 39889418810dSmrg # Is there a better lt_prog_compiler_static that works with the bundled CC? 39899418810dSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' 39909418810dSmrg ;; 39919bd41f2cSmrg 39929418810dSmrg irix5* | irix6* | nonstopux*) 39939418810dSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 39949418810dSmrg # PIC (with -KPIC) is the default. 39959418810dSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 39969418810dSmrg ;; 39979bd41f2cSmrg 39989418810dSmrg linux* | k*bsd*-gnu) 39999418810dSmrg case $cc_basename in 40009418810dSmrg # old Intel for x86_64 which still supported -KPIC. 40019418810dSmrg ecc*) 40029418810dSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 40039418810dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 40049418810dSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 40059418810dSmrg ;; 40069418810dSmrg # icc used to be incompatible with GCC. 40079418810dSmrg # ICC 10 doesn't accept -KPIC any more. 40089418810dSmrg icc* | ifort*) 40099418810dSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 40109418810dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 40119418810dSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 40129418810dSmrg ;; 40139418810dSmrg # Lahey Fortran 8.1. 40149418810dSmrg lf95*) 40159418810dSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 40169418810dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared' 40179418810dSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='--static' 40189418810dSmrg ;; 40199418810dSmrg pgcc* | pgf77* | pgf90* | pgf95*) 40209418810dSmrg # Portland Group compilers (*not* the Pentium gcc compiler, 40219418810dSmrg # which looks to be a dead project) 40229418810dSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 40239418810dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' 40249418810dSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 40259418810dSmrg ;; 40269418810dSmrg ccc*) 40279418810dSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 40289418810dSmrg # All Alpha code is PIC. 40299418810dSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 40309418810dSmrg ;; 40319418810dSmrg xl*) 40329418810dSmrg # IBM XL C 8.0/Fortran 10.1 on PPC 40339418810dSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 40349418810dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' 40359418810dSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' 40369418810dSmrg ;; 40379418810dSmrg *) 40389418810dSmrg case `$CC -V 2>&1 | sed 5q` in 40399418810dSmrg *Sun\ C*) 40409418810dSmrg # Sun C 5.9 40419418810dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 40429418810dSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 40439418810dSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 40449418810dSmrg ;; 40459418810dSmrg *Sun\ F*) 40469418810dSmrg # Sun Fortran 8.3 passes all unrecognized flags to the linker 40479418810dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 40489418810dSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 40499418810dSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='' 40509418810dSmrg ;; 40519418810dSmrg esac 40529418810dSmrg ;; 40539418810dSmrg esac 40549418810dSmrg ;; 40559bd41f2cSmrg 40569418810dSmrg newsos6) 40579418810dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 40589418810dSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 40599418810dSmrg ;; 40609bd41f2cSmrg 40619418810dSmrg *nto* | *qnx*) 40629418810dSmrg # QNX uses GNU C++, but need to define -shared option too, otherwise 40639418810dSmrg # it will coredump. 40649418810dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' 40659418810dSmrg ;; 40669bd41f2cSmrg 40679418810dSmrg osf3* | osf4* | osf5*) 40689418810dSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 40699418810dSmrg # All OSF/1 code is PIC. 40709418810dSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 40719418810dSmrg ;; 40729bd41f2cSmrg 40739418810dSmrg rdos*) 40749418810dSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 40759418810dSmrg ;; 40769bd41f2cSmrg 40779418810dSmrg solaris*) 40789418810dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 40799418810dSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 40809418810dSmrg case $cc_basename in 40819418810dSmrg f77* | f90* | f95*) 40829418810dSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; 40839418810dSmrg *) 40849418810dSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; 40859418810dSmrg esac 40869418810dSmrg ;; 40879bd41f2cSmrg 40889418810dSmrg sunos4*) 40899418810dSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 40909418810dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' 40919418810dSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 40929418810dSmrg ;; 40939bd41f2cSmrg 40949418810dSmrg sysv4 | sysv4.2uw2* | sysv4.3*) 40959418810dSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 40969418810dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 40979418810dSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 40989418810dSmrg ;; 40999bd41f2cSmrg 41009418810dSmrg sysv4*MP*) 41019418810dSmrg if test -d /usr/nec ;then 41029418810dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' 41039418810dSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 41049418810dSmrg fi 41059418810dSmrg ;; 41069bd41f2cSmrg 41079418810dSmrg sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 41089418810dSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 41099418810dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 41109418810dSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 41119418810dSmrg ;; 41129bd41f2cSmrg 41139418810dSmrg unicos*) 41149418810dSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 41159418810dSmrg _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 41169418810dSmrg ;; 41179bd41f2cSmrg 41189418810dSmrg uts4*) 41199418810dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 41209418810dSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 41219418810dSmrg ;; 41229bd41f2cSmrg 41239418810dSmrg *) 41249418810dSmrg _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 41259418810dSmrg ;; 41269418810dSmrg esac 41279418810dSmrg fi 41289418810dSmrg]) 41299418810dSmrgcase $host_os in 41309418810dSmrg # For platforms which do not support PIC, -DPIC is meaningless: 41319418810dSmrg *djgpp*) 41329418810dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)= 41339418810dSmrg ;; 41349418810dSmrg *) 41359418810dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])" 41369418810dSmrg ;; 41379418810dSmrgesac 41389418810dSmrgAC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)]) 41399418810dSmrg_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1], 41409418810dSmrg [How to pass a linker flag through the compiler]) 41419bd41f2cSmrg 41429418810dSmrg# 41439418810dSmrg# Check to make sure the PIC flag actually works. 41449418810dSmrg# 41459418810dSmrgif test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then 41469418810dSmrg _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works], 41479418810dSmrg [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)], 41489418810dSmrg [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [], 41499418810dSmrg [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in 41509418810dSmrg "" | " "*) ;; 41519418810dSmrg *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;; 41529418810dSmrg esac], 41539418810dSmrg [_LT_TAGVAR(lt_prog_compiler_pic, $1)= 41549418810dSmrg _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) 41559418810dSmrgfi 41569418810dSmrg_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1], 41579418810dSmrg [Additional compiler flags for building library objects]) 4158d075918cSmrg 41599418810dSmrg# 41609418810dSmrg# Check to make sure the static flag actually works. 41619418810dSmrg# 41629418810dSmrgwl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\" 41639418810dSmrg_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], 41649418810dSmrg _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1), 41659418810dSmrg $lt_tmp_static_flag, 41669418810dSmrg [], 41679418810dSmrg [_LT_TAGVAR(lt_prog_compiler_static, $1)=]) 41689418810dSmrg_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1], 41699418810dSmrg [Compiler flag to prevent dynamic linking]) 41709418810dSmrg])# _LT_COMPILER_PIC 41719bd41f2cSmrg 41729418810dSmrg 41739418810dSmrg# _LT_LINKER_SHLIBS([TAGNAME]) 41749418810dSmrg# ---------------------------- 41759418810dSmrg# See if the linker supports building shared libraries. 41769418810dSmrgm4_defun([_LT_LINKER_SHLIBS], 41779418810dSmrg[AC_REQUIRE([LT_PATH_LD])dnl 41789418810dSmrgAC_REQUIRE([LT_PATH_NM])dnl 41799418810dSmrgm4_require([_LT_FILEUTILS_DEFAULTS])dnl 41809418810dSmrgm4_require([_LT_DECL_EGREP])dnl 41819418810dSmrgm4_require([_LT_DECL_SED])dnl 41829418810dSmrgm4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl 41839418810dSmrgm4_require([_LT_TAG_COMPILER])dnl 41849418810dSmrgAC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) 41859418810dSmrgm4_if([$1], [CXX], [ 41869418810dSmrg _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 41879418810dSmrg case $host_os in 41889418810dSmrg aix[[4-9]]*) 41899418810dSmrg # If we're using GNU nm, then we don't want the "-C" option. 41909418810dSmrg # -C means demangle to AIX nm, but means don't demangle with GNU nm 41919418810dSmrg if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 41929418810dSmrg _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' 41939418810dSmrg else 41949418810dSmrg _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' 41959bd41f2cSmrg fi 41969bd41f2cSmrg ;; 41979418810dSmrg pw32*) 41989418810dSmrg _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" 41999bd41f2cSmrg ;; 42009418810dSmrg cygwin* | mingw* | cegcc*) 42019418810dSmrg _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' 42029418810dSmrg ;; 42039418810dSmrg *) 42049418810dSmrg _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 42059418810dSmrg ;; 42069418810dSmrg esac 42079418810dSmrg _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] 42089418810dSmrg], [ 42099418810dSmrg runpath_var= 42109418810dSmrg _LT_TAGVAR(allow_undefined_flag, $1)= 42119418810dSmrg _LT_TAGVAR(always_export_symbols, $1)=no 42129418810dSmrg _LT_TAGVAR(archive_cmds, $1)= 42139418810dSmrg _LT_TAGVAR(archive_expsym_cmds, $1)= 42149418810dSmrg _LT_TAGVAR(compiler_needs_object, $1)=no 42159418810dSmrg _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no 42169418810dSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)= 42179418810dSmrg _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 42189418810dSmrg _LT_TAGVAR(hardcode_automatic, $1)=no 42199418810dSmrg _LT_TAGVAR(hardcode_direct, $1)=no 42209418810dSmrg _LT_TAGVAR(hardcode_direct_absolute, $1)=no 42219418810dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 42229418810dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= 42239418810dSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)= 42249418810dSmrg _LT_TAGVAR(hardcode_minus_L, $1)=no 42259418810dSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 42269418810dSmrg _LT_TAGVAR(inherit_rpath, $1)=no 42279418810dSmrg _LT_TAGVAR(link_all_deplibs, $1)=unknown 42289418810dSmrg _LT_TAGVAR(module_cmds, $1)= 42299418810dSmrg _LT_TAGVAR(module_expsym_cmds, $1)= 42309418810dSmrg _LT_TAGVAR(old_archive_from_new_cmds, $1)= 42319418810dSmrg _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)= 42329418810dSmrg _LT_TAGVAR(thread_safe_flag_spec, $1)= 42339418810dSmrg _LT_TAGVAR(whole_archive_flag_spec, $1)= 42349418810dSmrg # include_expsyms should be a list of space-separated symbols to be *always* 42359418810dSmrg # included in the symbol list 42369418810dSmrg _LT_TAGVAR(include_expsyms, $1)= 42379418810dSmrg # exclude_expsyms can be an extended regexp of symbols to exclude 42389418810dSmrg # it will be wrapped by ` (' and `)$', so one must not match beginning or 42399418810dSmrg # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 42409418810dSmrg # as well as any symbol that contains `d'. 42419418810dSmrg _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] 42429418810dSmrg # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 42439418810dSmrg # platforms (ab)use it in PIC code, but their linkers get confused if 42449418810dSmrg # the symbol is explicitly referenced. Since portable code cannot 42459418810dSmrg # rely on this symbol name, it's probably fine to never include it in 42469418810dSmrg # preloaded symbol tables. 42479418810dSmrg # Exclude shared library initialization/finalization symbols. 42489418810dSmrgdnl Note also adjust exclude_expsyms for C++ above. 42499418810dSmrg extract_expsyms_cmds= 42509bd41f2cSmrg 42519418810dSmrg case $host_os in 42529418810dSmrg cygwin* | mingw* | pw32* | cegcc*) 42539418810dSmrg # FIXME: the MSVC++ port hasn't been tested in a loooong time 42549418810dSmrg # When not using gcc, we currently assume that we are using 42559418810dSmrg # Microsoft Visual C++. 42569418810dSmrg if test "$GCC" != yes; then 42579418810dSmrg with_gnu_ld=no 42589bd41f2cSmrg fi 42599bd41f2cSmrg ;; 42609418810dSmrg interix*) 42619418810dSmrg # we just hope/assume this is gcc and not c89 (= MSVC++) 42629418810dSmrg with_gnu_ld=yes 42639418810dSmrg ;; 42649418810dSmrg openbsd*) 42659418810dSmrg with_gnu_ld=no 42669418810dSmrg ;; 42679bd41f2cSmrg esac 42689bd41f2cSmrg 42699418810dSmrg _LT_TAGVAR(ld_shlibs, $1)=yes 42709418810dSmrg if test "$with_gnu_ld" = yes; then 42719418810dSmrg # If archive_cmds runs LD, not CC, wlarc should be empty 42729418810dSmrg wlarc='${wl}' 42739bd41f2cSmrg 42749418810dSmrg # Set some defaults for GNU ld with shared library support. These 42759418810dSmrg # are reset later if shared libraries are not supported. Putting them 42769418810dSmrg # here allows them to be overridden if necessary. 42779418810dSmrg runpath_var=LD_RUN_PATH 42789418810dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 42799418810dSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 42809418810dSmrg # ancient GNU ld didn't support --whole-archive et. al. 42819418810dSmrg if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 42829418810dSmrg _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 42839418810dSmrg else 42849418810dSmrg _LT_TAGVAR(whole_archive_flag_spec, $1)= 42859418810dSmrg fi 42869418810dSmrg supports_anon_versioning=no 42879418810dSmrg case `$LD -v 2>&1` in 42889418810dSmrg *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 42899418810dSmrg *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 42909418810dSmrg *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 42919418810dSmrg *\ 2.11.*) ;; # other 2.11 versions 42929418810dSmrg *) supports_anon_versioning=yes ;; 42939418810dSmrg esac 42949bd41f2cSmrg 42959418810dSmrg # See if GNU ld supports shared libraries. 42969418810dSmrg case $host_os in 42979418810dSmrg aix[[3-9]]*) 42989418810dSmrg # On AIX/PPC, the GNU linker is very broken 42999418810dSmrg if test "$host_cpu" != ia64; then 43009418810dSmrg _LT_TAGVAR(ld_shlibs, $1)=no 43019418810dSmrg cat <<_LT_EOF 1>&2 43029bd41f2cSmrg 43039418810dSmrg*** Warning: the GNU linker, at least up to release 2.9.1, is reported 43049418810dSmrg*** to be unable to reliably create shared libraries on AIX. 43059418810dSmrg*** Therefore, libtool is disabling shared libraries support. If you 43069418810dSmrg*** really care for shared libraries, you may want to modify your PATH 43079418810dSmrg*** so that a non-GNU linker is found, and then restart. 43089bd41f2cSmrg 43099418810dSmrg_LT_EOF 43109418810dSmrg fi 43119418810dSmrg ;; 43129bd41f2cSmrg 43139418810dSmrg amigaos*) 43149418810dSmrg case $host_cpu in 43159418810dSmrg powerpc) 43169418810dSmrg # see comment about AmigaOS4 .so support 43179418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 43189418810dSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='' 43199418810dSmrg ;; 43209418810dSmrg m68k) 43219418810dSmrg _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)' 43229418810dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 43239418810dSmrg _LT_TAGVAR(hardcode_minus_L, $1)=yes 43249418810dSmrg ;; 43259418810dSmrg esac 43269418810dSmrg ;; 43279bd41f2cSmrg 43289418810dSmrg beos*) 43299418810dSmrg if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 43309418810dSmrg _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 43319418810dSmrg # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 43329418810dSmrg # support --undefined. This deserves some investigation. FIXME 43339418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 43349418810dSmrg else 43359418810dSmrg _LT_TAGVAR(ld_shlibs, $1)=no 43369418810dSmrg fi 43379418810dSmrg ;; 43389bd41f2cSmrg 43399418810dSmrg cygwin* | mingw* | pw32* | cegcc*) 43409418810dSmrg # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, 43419418810dSmrg # as there is no search path for DLLs. 43429418810dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 43439418810dSmrg _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 43449418810dSmrg _LT_TAGVAR(always_export_symbols, $1)=no 43459418810dSmrg _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 43469418810dSmrg _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' 43479418810dSmrg 43489418810dSmrg if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 43499418810dSmrg _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' 43509418810dSmrg # If the export-symbols file already is a .def file (1st line 43519418810dSmrg # is EXPORTS), use it as is; otherwise, prepend... 43529418810dSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 43539418810dSmrg cp $export_symbols $output_objdir/$soname.def; 43549418810dSmrg else 43559418810dSmrg echo EXPORTS > $output_objdir/$soname.def; 43569418810dSmrg cat $export_symbols >> $output_objdir/$soname.def; 43579418810dSmrg fi~ 43589418810dSmrg $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 43599418810dSmrg else 43609418810dSmrg _LT_TAGVAR(ld_shlibs, $1)=no 43619418810dSmrg fi 43629418810dSmrg ;; 43639bd41f2cSmrg 43649418810dSmrg interix[[3-9]]*) 43659418810dSmrg _LT_TAGVAR(hardcode_direct, $1)=no 43669418810dSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 43679418810dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 43689418810dSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 43699418810dSmrg # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 43709418810dSmrg # Instead, shared libraries are loaded at an image base (0x10000000 by 43719418810dSmrg # default) and relocated if they conflict, which is a slow very memory 43729418810dSmrg # consuming and fragmenting process. To avoid this, we pick a random, 43739418810dSmrg # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 43749418810dSmrg # time. Moving up from 0x10000000 also allows more sbrk(2) space. 43759418810dSmrg _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' 43769418810dSmrg _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' 43779418810dSmrg ;; 43789bd41f2cSmrg 43799418810dSmrg gnu* | linux* | tpf* | k*bsd*-gnu) 43809418810dSmrg tmp_diet=no 43819418810dSmrg if test "$host_os" = linux-dietlibc; then 43829418810dSmrg case $cc_basename in 43839418810dSmrg diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 43849418810dSmrg esac 43859418810dSmrg fi 43869418810dSmrg if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 43879418810dSmrg && test "$tmp_diet" = no 43889418810dSmrg then 43899418810dSmrg tmp_addflag= 43909418810dSmrg tmp_sharedflag='-shared' 43919418810dSmrg case $cc_basename,$host_cpu in 43929418810dSmrg pgcc*) # Portland Group C compiler 43939418810dSmrg _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' 43949418810dSmrg tmp_addflag=' $pic_flag' 43959418810dSmrg ;; 43969418810dSmrg pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 43979418810dSmrg _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' 43989418810dSmrg tmp_addflag=' $pic_flag -Mnomain' ;; 43999418810dSmrg ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 44009418810dSmrg tmp_addflag=' -i_dynamic' ;; 44019418810dSmrg efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 44029418810dSmrg tmp_addflag=' -i_dynamic -nofor_main' ;; 44039418810dSmrg ifc* | ifort*) # Intel Fortran compiler 44049418810dSmrg tmp_addflag=' -nofor_main' ;; 44059418810dSmrg lf95*) # Lahey Fortran 8.1 44069418810dSmrg _LT_TAGVAR(whole_archive_flag_spec, $1)= 44079418810dSmrg tmp_sharedflag='--shared' ;; 44089418810dSmrg xl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below) 44099418810dSmrg tmp_sharedflag='-qmkshrobj' 44109418810dSmrg tmp_addflag= ;; 44119418810dSmrg esac 44129418810dSmrg case `$CC -V 2>&1 | sed 5q` in 44139418810dSmrg *Sun\ C*) # Sun C 5.9 44149418810dSmrg _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' 44159418810dSmrg _LT_TAGVAR(compiler_needs_object, $1)=yes 44169418810dSmrg tmp_sharedflag='-G' ;; 44179418810dSmrg *Sun\ F*) # Sun Fortran 8.3 44189418810dSmrg tmp_sharedflag='-G' ;; 44199418810dSmrg esac 44209418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 44219bd41f2cSmrg 44229418810dSmrg if test "x$supports_anon_versioning" = xyes; then 44239418810dSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ 44249418810dSmrg cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 44259418810dSmrg echo "local: *; };" >> $output_objdir/$libname.ver~ 44269418810dSmrg $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 44279418810dSmrg fi 44289bd41f2cSmrg 44299418810dSmrg case $cc_basename in 44309418810dSmrg xlf*) 44319418810dSmrg # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 44329418810dSmrg _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive' 44339418810dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 44349418810dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir' 44359418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 44369418810dSmrg if test "x$supports_anon_versioning" = xyes; then 44379418810dSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ 44389418810dSmrg cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 44399418810dSmrg echo "local: *; };" >> $output_objdir/$libname.ver~ 44409418810dSmrg $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 44419418810dSmrg fi 44429418810dSmrg ;; 44439418810dSmrg esac 44449418810dSmrg else 44459418810dSmrg _LT_TAGVAR(ld_shlibs, $1)=no 44469418810dSmrg fi 44479418810dSmrg ;; 44489bd41f2cSmrg 44499418810dSmrg netbsd*) 44509418810dSmrg if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 44519418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 44529418810dSmrg wlarc= 44539418810dSmrg else 44549418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 44559418810dSmrg _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' 44569418810dSmrg fi 44579418810dSmrg ;; 44589bd41f2cSmrg 44599418810dSmrg solaris*) 44609418810dSmrg if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 44619418810dSmrg _LT_TAGVAR(ld_shlibs, $1)=no 44629418810dSmrg cat <<_LT_EOF 1>&2 44639bd41f2cSmrg 44649418810dSmrg*** Warning: The releases 2.8.* of the GNU linker cannot reliably 44659418810dSmrg*** create shared libraries on Solaris systems. Therefore, libtool 44669418810dSmrg*** is disabling shared libraries support. We urge you to upgrade GNU 44679418810dSmrg*** binutils to release 2.9.1 or newer. Another option is to modify 44689418810dSmrg*** your PATH or compiler configuration so that the native linker is 44699418810dSmrg*** used, and then restart. 44709bd41f2cSmrg 44719418810dSmrg_LT_EOF 44729418810dSmrg elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 44739418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 44749418810dSmrg _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' 44759418810dSmrg else 44769418810dSmrg _LT_TAGVAR(ld_shlibs, $1)=no 44779418810dSmrg fi 44789418810dSmrg ;; 44799bd41f2cSmrg 44809418810dSmrg sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 44819418810dSmrg case `$LD -v 2>&1` in 44829418810dSmrg *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) 44839418810dSmrg _LT_TAGVAR(ld_shlibs, $1)=no 44849418810dSmrg cat <<_LT_EOF 1>&2 44859bd41f2cSmrg 44869418810dSmrg*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 44879418810dSmrg*** reliably create shared libraries on SCO systems. Therefore, libtool 44889418810dSmrg*** is disabling shared libraries support. We urge you to upgrade GNU 44899418810dSmrg*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 44909418810dSmrg*** your PATH or compiler configuration so that the native linker is 44919418810dSmrg*** used, and then restart. 44929bd41f2cSmrg 44939418810dSmrg_LT_EOF 44949418810dSmrg ;; 44959418810dSmrg *) 44969418810dSmrg # For security reasons, it is highly recommended that you always 44979418810dSmrg # use absolute paths for naming shared libraries, and exclude the 44989418810dSmrg # DT_RUNPATH tag from executables and libraries. But doing so 44999418810dSmrg # requires that you compile everything twice, which is a pain. 45009418810dSmrg if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 45019418810dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 45029418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 45039418810dSmrg _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' 45049418810dSmrg else 45059418810dSmrg _LT_TAGVAR(ld_shlibs, $1)=no 45069418810dSmrg fi 45079418810dSmrg ;; 45089418810dSmrg esac 45099418810dSmrg ;; 45109bd41f2cSmrg 45119418810dSmrg sunos4*) 45129418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 45139418810dSmrg wlarc= 45149418810dSmrg _LT_TAGVAR(hardcode_direct, $1)=yes 45159418810dSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 45169418810dSmrg ;; 45179bd41f2cSmrg 45189418810dSmrg *) 45199418810dSmrg if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 45209418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 45219418810dSmrg _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' 45229418810dSmrg else 45239418810dSmrg _LT_TAGVAR(ld_shlibs, $1)=no 45249418810dSmrg fi 45259418810dSmrg ;; 45269418810dSmrg esac 45279bd41f2cSmrg 45289418810dSmrg if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then 45299418810dSmrg runpath_var= 45309418810dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 45319418810dSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)= 45329418810dSmrg _LT_TAGVAR(whole_archive_flag_spec, $1)= 45339418810dSmrg fi 45349418810dSmrg else 45359418810dSmrg # PORTME fill in a description of your system's linker (not GNU ld) 45369418810dSmrg case $host_os in 45379418810dSmrg aix3*) 45389418810dSmrg _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 45399418810dSmrg _LT_TAGVAR(always_export_symbols, $1)=yes 45409418810dSmrg _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' 45419418810dSmrg # Note: this linker hardcodes the directories in LIBPATH if there 45429418810dSmrg # are no directories specified by -L. 45439418810dSmrg _LT_TAGVAR(hardcode_minus_L, $1)=yes 45449418810dSmrg if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 45459418810dSmrg # Neither direct hardcoding nor static linking is supported with a 45469418810dSmrg # broken collect2. 45479418810dSmrg _LT_TAGVAR(hardcode_direct, $1)=unsupported 45489418810dSmrg fi 45499418810dSmrg ;; 45509bd41f2cSmrg 45519418810dSmrg aix[[4-9]]*) 45529418810dSmrg if test "$host_cpu" = ia64; then 45539418810dSmrg # On IA64, the linker does run time linking by default, so we don't 45549418810dSmrg # have to do anything special. 45559418810dSmrg aix_use_runtimelinking=no 45569418810dSmrg exp_sym_flag='-Bexport' 45579418810dSmrg no_entry_flag="" 45589418810dSmrg else 45599418810dSmrg # If we're using GNU nm, then we don't want the "-C" option. 45609418810dSmrg # -C means demangle to AIX nm, but means don't demangle with GNU nm 45619418810dSmrg if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 45629418810dSmrg _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' 45639418810dSmrg else 45649418810dSmrg _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' 45659418810dSmrg fi 45669418810dSmrg aix_use_runtimelinking=no 45679bd41f2cSmrg 45689418810dSmrg # Test if we are trying to use run time linking or normal 45699418810dSmrg # AIX style linking. If -brtl is somewhere in LDFLAGS, we 45709418810dSmrg # need to do runtime linking. 45719418810dSmrg case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) 45729418810dSmrg for ld_flag in $LDFLAGS; do 45739418810dSmrg if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 45749418810dSmrg aix_use_runtimelinking=yes 45759418810dSmrg break 45769418810dSmrg fi 45779418810dSmrg done 45789418810dSmrg ;; 45799418810dSmrg esac 45809bd41f2cSmrg 45819418810dSmrg exp_sym_flag='-bexport' 45829418810dSmrg no_entry_flag='-bnoentry' 45839418810dSmrg fi 45849418810dSmrg 45859418810dSmrg # When large executables or shared objects are built, AIX ld can 45869418810dSmrg # have problems creating the table of contents. If linking a library 45879418810dSmrg # or program results in "error TOC overflow" add -mminimal-toc to 45889418810dSmrg # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 45899418810dSmrg # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 45909bd41f2cSmrg 45919418810dSmrg _LT_TAGVAR(archive_cmds, $1)='' 45929418810dSmrg _LT_TAGVAR(hardcode_direct, $1)=yes 45939418810dSmrg _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 45949418810dSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 45959418810dSmrg _LT_TAGVAR(link_all_deplibs, $1)=yes 45969418810dSmrg _LT_TAGVAR(file_list_spec, $1)='${wl}-f,' 45979bd41f2cSmrg 45989418810dSmrg if test "$GCC" = yes; then 45999418810dSmrg case $host_os in aix4.[[012]]|aix4.[[012]].*) 46009418810dSmrg # We only want to do this on AIX 4.2 and lower, the check 46019418810dSmrg # below for broken collect2 doesn't work under 4.3+ 46029418810dSmrg collect2name=`${CC} -print-prog-name=collect2` 46039418810dSmrg if test -f "$collect2name" && 46049418810dSmrg strings "$collect2name" | $GREP resolve_lib_name >/dev/null 46059418810dSmrg then 46069418810dSmrg # We have reworked collect2 46079418810dSmrg : 46089418810dSmrg else 46099418810dSmrg # We have old collect2 46109418810dSmrg _LT_TAGVAR(hardcode_direct, $1)=unsupported 46119418810dSmrg # It fails to find uninstalled libraries when the uninstalled 46129418810dSmrg # path is not listed in the libpath. Setting hardcode_minus_L 46139418810dSmrg # to unsupported forces relinking 46149418810dSmrg _LT_TAGVAR(hardcode_minus_L, $1)=yes 46159418810dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 46169418810dSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)= 46179418810dSmrg fi 46189418810dSmrg ;; 46199418810dSmrg esac 46209418810dSmrg shared_flag='-shared' 46219418810dSmrg if test "$aix_use_runtimelinking" = yes; then 46229418810dSmrg shared_flag="$shared_flag "'${wl}-G' 46239418810dSmrg fi 46249418810dSmrg else 46259418810dSmrg # not using gcc 46269418810dSmrg if test "$host_cpu" = ia64; then 46279418810dSmrg # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 46289418810dSmrg # chokes on -Wl,-G. The following line is correct: 46299418810dSmrg shared_flag='-G' 46309418810dSmrg else 46319418810dSmrg if test "$aix_use_runtimelinking" = yes; then 46329418810dSmrg shared_flag='${wl}-G' 46339418810dSmrg else 46349418810dSmrg shared_flag='${wl}-bM:SRE' 46359418810dSmrg fi 46369418810dSmrg fi 46379418810dSmrg fi 46389bd41f2cSmrg 46399418810dSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall' 46409418810dSmrg # It seems that -bexpall does not export symbols beginning with 46419418810dSmrg # underscore (_), so it is better to generate a list of symbols to export. 46429418810dSmrg _LT_TAGVAR(always_export_symbols, $1)=yes 46439418810dSmrg if test "$aix_use_runtimelinking" = yes; then 46449418810dSmrg # Warning - without using the other runtime loading flags (-brtl), 46459418810dSmrg # -berok will link without error, but may produce a broken library. 46469418810dSmrg _LT_TAGVAR(allow_undefined_flag, $1)='-berok' 46479418810dSmrg # Determine the default libpath from the value encoded in an 46489418810dSmrg # empty executable. 46499418810dSmrg _LT_SYS_MODULE_PATH_AIX 46509418810dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 46519418810dSmrg _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" 46529418810dSmrg else 46539418810dSmrg if test "$host_cpu" = ia64; then 46549418810dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' 46559418810dSmrg _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" 46569418810dSmrg _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" 46579418810dSmrg else 46589418810dSmrg # Determine the default libpath from the value encoded in an 46599418810dSmrg # empty executable. 46609418810dSmrg _LT_SYS_MODULE_PATH_AIX 46619418810dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 46629418810dSmrg # Warning - without using the other run time loading flags, 46639418810dSmrg # -berok will link without error, but may produce a broken library. 46649418810dSmrg _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' 46659418810dSmrg _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' 46669418810dSmrg # Exported symbols can be pulled into shared objects from archives 46679418810dSmrg _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' 46689418810dSmrg _LT_TAGVAR(archive_cmds_need_lc, $1)=yes 46699418810dSmrg # This is similar to how AIX traditionally builds its shared libraries. 46709418810dSmrg _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' 46719418810dSmrg fi 46729418810dSmrg fi 46739418810dSmrg ;; 46749bd41f2cSmrg 46759418810dSmrg amigaos*) 46769418810dSmrg case $host_cpu in 46779418810dSmrg powerpc) 46789418810dSmrg # see comment about AmigaOS4 .so support 46799418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 46809418810dSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='' 46819418810dSmrg ;; 46829418810dSmrg m68k) 46839418810dSmrg _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)' 46849418810dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 46859418810dSmrg _LT_TAGVAR(hardcode_minus_L, $1)=yes 46869418810dSmrg ;; 46879418810dSmrg esac 46889418810dSmrg ;; 46899bd41f2cSmrg 46909418810dSmrg bsdi[[45]]*) 46919418810dSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic 46929418810dSmrg ;; 46939bd41f2cSmrg 46949418810dSmrg cygwin* | mingw* | pw32* | cegcc*) 46959418810dSmrg # When not using gcc, we currently assume that we are using 46969418810dSmrg # Microsoft Visual C++. 46979418810dSmrg # hardcode_libdir_flag_spec is actually meaningless, as there is 46989418810dSmrg # no search path for DLLs. 46999418810dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' 47009418810dSmrg _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 47019418810dSmrg # Tell ltmain to make .lib files, not .a files. 47029418810dSmrg libext=lib 47039418810dSmrg # Tell ltmain to make .dll files, not .so files. 47049418810dSmrg shrext_cmds=".dll" 47059418810dSmrg # FIXME: Setting linknames here is a bad hack. 47069418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' 47079418810dSmrg # The linker will automatically build a .lib file if we build a DLL. 47089418810dSmrg _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' 47099418810dSmrg # FIXME: Should let the user specify the lib program. 47109418810dSmrg _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs' 47119418810dSmrg _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`' 47129418810dSmrg _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 47139418810dSmrg ;; 47149bd41f2cSmrg 47159418810dSmrg darwin* | rhapsody*) 47169418810dSmrg _LT_DARWIN_LINKER_FEATURES($1) 47179418810dSmrg ;; 47189bd41f2cSmrg 47199418810dSmrg dgux*) 47209418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 47219418810dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 47229418810dSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 47239418810dSmrg ;; 47249bd41f2cSmrg 47259418810dSmrg freebsd1*) 47269418810dSmrg _LT_TAGVAR(ld_shlibs, $1)=no 47279418810dSmrg ;; 47289bd41f2cSmrg 47299418810dSmrg # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 47309418810dSmrg # support. Future versions do this automatically, but an explicit c++rt0.o 47319418810dSmrg # does not break anything, and helps significantly (at the cost of a little 47329418810dSmrg # extra space). 47339418810dSmrg freebsd2.2*) 47349418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 47359418810dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 47369418810dSmrg _LT_TAGVAR(hardcode_direct, $1)=yes 47379418810dSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 47389418810dSmrg ;; 47399bd41f2cSmrg 47409418810dSmrg # Unfortunately, older versions of FreeBSD 2 do not have this feature. 47419418810dSmrg freebsd2*) 47429418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 47439418810dSmrg _LT_TAGVAR(hardcode_direct, $1)=yes 47449418810dSmrg _LT_TAGVAR(hardcode_minus_L, $1)=yes 47459418810dSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 47469418810dSmrg ;; 47479bd41f2cSmrg 47489418810dSmrg # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 47499418810dSmrg freebsd* | dragonfly*) 47509418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 47519418810dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 47529418810dSmrg _LT_TAGVAR(hardcode_direct, $1)=yes 47539418810dSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 47549418810dSmrg ;; 47559bd41f2cSmrg 47569418810dSmrg hpux9*) 47579418810dSmrg if test "$GCC" = yes; then 47589418810dSmrg _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' 47599418810dSmrg else 47609418810dSmrg _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' 47619418810dSmrg fi 47629418810dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 47639418810dSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)=: 47649418810dSmrg _LT_TAGVAR(hardcode_direct, $1)=yes 47659bd41f2cSmrg 47669418810dSmrg # hardcode_minus_L: Not really in the search PATH, 47679418810dSmrg # but as the default location of the library. 47689418810dSmrg _LT_TAGVAR(hardcode_minus_L, $1)=yes 47699418810dSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 47709418810dSmrg ;; 47719bd41f2cSmrg 47729418810dSmrg hpux10*) 47739418810dSmrg if test "$GCC" = yes -a "$with_gnu_ld" = no; then 47749418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 47759418810dSmrg else 47769418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 47779418810dSmrg fi 47789418810dSmrg if test "$with_gnu_ld" = no; then 47799418810dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 47809418810dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' 47819418810dSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)=: 47829418810dSmrg _LT_TAGVAR(hardcode_direct, $1)=yes 47839418810dSmrg _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 47849418810dSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 47859418810dSmrg # hardcode_minus_L: Not really in the search PATH, 47869418810dSmrg # but as the default location of the library. 47879418810dSmrg _LT_TAGVAR(hardcode_minus_L, $1)=yes 47889418810dSmrg fi 47899418810dSmrg ;; 47909bd41f2cSmrg 47919418810dSmrg hpux11*) 47929418810dSmrg if test "$GCC" = yes -a "$with_gnu_ld" = no; then 47939418810dSmrg case $host_cpu in 47949418810dSmrg hppa*64*) 47959418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 47969418810dSmrg ;; 47979418810dSmrg ia64*) 47989418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 47999418810dSmrg ;; 48009418810dSmrg *) 48019418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 48029418810dSmrg ;; 48039418810dSmrg esac 48049418810dSmrg else 48059418810dSmrg case $host_cpu in 48069418810dSmrg hppa*64*) 48079418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 48089418810dSmrg ;; 48099418810dSmrg ia64*) 48109418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 48119418810dSmrg ;; 48129418810dSmrg *) 48139418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 48149418810dSmrg ;; 48159418810dSmrg esac 48169418810dSmrg fi 48179418810dSmrg if test "$with_gnu_ld" = no; then 48189418810dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 48199418810dSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)=: 48209bd41f2cSmrg 48219418810dSmrg case $host_cpu in 48229418810dSmrg hppa*64*|ia64*) 48239418810dSmrg _LT_TAGVAR(hardcode_direct, $1)=no 48249418810dSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 48259418810dSmrg ;; 48269418810dSmrg *) 48279418810dSmrg _LT_TAGVAR(hardcode_direct, $1)=yes 48289418810dSmrg _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 48299418810dSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 48309418810dSmrg 48319418810dSmrg # hardcode_minus_L: Not really in the search PATH, 48329418810dSmrg # but as the default location of the library. 48339418810dSmrg _LT_TAGVAR(hardcode_minus_L, $1)=yes 48349418810dSmrg ;; 48359418810dSmrg esac 48369418810dSmrg fi 48379bd41f2cSmrg ;; 48389418810dSmrg 48399418810dSmrg irix5* | irix6* | nonstopux*) 48409418810dSmrg if test "$GCC" = yes; then 48419418810dSmrg _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' 48429418810dSmrg # Try to use the -exported_symbol ld option, if it does not 48439418810dSmrg # work, assume that -exports_file does not work either and 48449418810dSmrg # implicitly export all symbols. 48459418810dSmrg save_LDFLAGS="$LDFLAGS" 48469418810dSmrg LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 48479418810dSmrg AC_LINK_IFELSE(int foo(void) {}, 48489418810dSmrg _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' 48499418810dSmrg ) 48509418810dSmrg LDFLAGS="$save_LDFLAGS" 48519418810dSmrg else 48529418810dSmrg _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' 48539418810dSmrg _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' 48549418810dSmrg fi 48559418810dSmrg _LT_TAGVAR(archive_cmds_need_lc, $1)='no' 48569418810dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 48579418810dSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)=: 48589418810dSmrg _LT_TAGVAR(inherit_rpath, $1)=yes 48599418810dSmrg _LT_TAGVAR(link_all_deplibs, $1)=yes 48609bd41f2cSmrg ;; 48619bd41f2cSmrg 48629418810dSmrg netbsd*) 48639418810dSmrg if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 48649418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 48659418810dSmrg else 48669418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 48679418810dSmrg fi 48689418810dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 48699418810dSmrg _LT_TAGVAR(hardcode_direct, $1)=yes 48709418810dSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 48719418810dSmrg ;; 48729bd41f2cSmrg 48739418810dSmrg newsos6) 48749418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 48759418810dSmrg _LT_TAGVAR(hardcode_direct, $1)=yes 48769418810dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 48779418810dSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)=: 48789418810dSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 48799418810dSmrg ;; 48809bd41f2cSmrg 48819418810dSmrg *nto* | *qnx*) 48829418810dSmrg ;; 48839bd41f2cSmrg 48849418810dSmrg openbsd*) 48859418810dSmrg if test -f /usr/libexec/ld.so; then 48869418810dSmrg _LT_TAGVAR(hardcode_direct, $1)=yes 48879418810dSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 48889418810dSmrg _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 48899418810dSmrg if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 48909418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 48919418810dSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 48929418810dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 48939418810dSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 48949418810dSmrg else 48959418810dSmrg case $host_os in 48969418810dSmrg openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*) 48979418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 48989418810dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 48999418810dSmrg ;; 49009418810dSmrg *) 49019418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 49029418810dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 49039418810dSmrg ;; 49049418810dSmrg esac 49059418810dSmrg fi 49069418810dSmrg else 49079418810dSmrg _LT_TAGVAR(ld_shlibs, $1)=no 49089418810dSmrg fi 49099418810dSmrg ;; 49109bd41f2cSmrg 49119418810dSmrg os2*) 49129418810dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 49139418810dSmrg _LT_TAGVAR(hardcode_minus_L, $1)=yes 49149418810dSmrg _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 49159418810dSmrg _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' 49169418810dSmrg _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 49179418810dSmrg ;; 49189bd41f2cSmrg 49199418810dSmrg osf3*) 49209418810dSmrg if test "$GCC" = yes; then 49219418810dSmrg _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 49229418810dSmrg _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' 49239418810dSmrg else 49249418810dSmrg _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 49259418810dSmrg _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' 49269418810dSmrg fi 49279418810dSmrg _LT_TAGVAR(archive_cmds_need_lc, $1)='no' 49289418810dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 49299418810dSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)=: 49309418810dSmrg ;; 49319bd41f2cSmrg 49329418810dSmrg osf4* | osf5*) # as osf3* with the addition of -msym flag 49339418810dSmrg if test "$GCC" = yes; then 49349418810dSmrg _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 49359418810dSmrg _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' 49369418810dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 49379418810dSmrg else 49389418810dSmrg _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 49399418810dSmrg _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' 49409418810dSmrg _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~ 49419418810dSmrg $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' 49429bd41f2cSmrg 49439418810dSmrg # Both c and cxx compiler support -rpath directly 49449418810dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 49459418810dSmrg fi 49469418810dSmrg _LT_TAGVAR(archive_cmds_need_lc, $1)='no' 49479418810dSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)=: 49489418810dSmrg ;; 49499bd41f2cSmrg 49509418810dSmrg solaris*) 49519418810dSmrg _LT_TAGVAR(no_undefined_flag, $1)=' -z defs' 49529418810dSmrg if test "$GCC" = yes; then 49539418810dSmrg wlarc='${wl}' 49549418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 49559418810dSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 49569418810dSmrg $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 49579418810dSmrg else 49589418810dSmrg case `$CC -V 2>&1` in 49599418810dSmrg *"Compilers 5.0"*) 49609418810dSmrg wlarc='' 49619418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 49629418810dSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 49639418810dSmrg $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 49649418810dSmrg ;; 49659418810dSmrg *) 49669418810dSmrg wlarc='${wl}' 49679418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 49689418810dSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 49699418810dSmrg $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 49709418810dSmrg ;; 49719418810dSmrg esac 49729418810dSmrg fi 49739418810dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 49749418810dSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 49759418810dSmrg case $host_os in 49769418810dSmrg solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 49779418810dSmrg *) 49789418810dSmrg # The compiler driver will combine and reorder linker options, 49799418810dSmrg # but understands `-z linker_flag'. GCC discards it without `$wl', 49809418810dSmrg # but is careful enough not to reorder. 49819418810dSmrg # Supported since Solaris 2.6 (maybe 2.5.1?) 49829418810dSmrg if test "$GCC" = yes; then 49839418810dSmrg _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 49849418810dSmrg else 49859418810dSmrg _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' 49869418810dSmrg fi 49879418810dSmrg ;; 49889418810dSmrg esac 49899418810dSmrg _LT_TAGVAR(link_all_deplibs, $1)=yes 49909418810dSmrg ;; 49919bd41f2cSmrg 49929418810dSmrg sunos4*) 49939418810dSmrg if test "x$host_vendor" = xsequent; then 49949418810dSmrg # Use $CC to link under sequent, because it throws in some extra .o 49959418810dSmrg # files that make .init and .fini sections work. 49969418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 49979418810dSmrg else 49989418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 49999418810dSmrg fi 50009418810dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 50019418810dSmrg _LT_TAGVAR(hardcode_direct, $1)=yes 50029418810dSmrg _LT_TAGVAR(hardcode_minus_L, $1)=yes 50039418810dSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 50049418810dSmrg ;; 50059bd41f2cSmrg 50069418810dSmrg sysv4) 50079418810dSmrg case $host_vendor in 50089418810dSmrg sni) 50099418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 50109418810dSmrg _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true??? 50119418810dSmrg ;; 50129418810dSmrg siemens) 50139418810dSmrg ## LD is ld it makes a PLAMLIB 50149418810dSmrg ## CC just makes a GrossModule. 50159418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' 50169418810dSmrg _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs' 50179418810dSmrg _LT_TAGVAR(hardcode_direct, $1)=no 50189418810dSmrg ;; 50199418810dSmrg motorola) 50209418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 50219418810dSmrg _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie 50229418810dSmrg ;; 50239418810dSmrg esac 50249418810dSmrg runpath_var='LD_RUN_PATH' 50259418810dSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 50269418810dSmrg ;; 50279bd41f2cSmrg 50289418810dSmrg sysv4.3*) 50299418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 50309418810dSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 50319418810dSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport' 50329418810dSmrg ;; 50339bd41f2cSmrg 50349418810dSmrg sysv4*MP*) 50359418810dSmrg if test -d /usr/nec; then 50369418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 50379418810dSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 50389418810dSmrg runpath_var=LD_RUN_PATH 50399418810dSmrg hardcode_runpath_var=yes 50409418810dSmrg _LT_TAGVAR(ld_shlibs, $1)=yes 50419418810dSmrg fi 50429418810dSmrg ;; 50439bd41f2cSmrg 50449418810dSmrg sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) 50459418810dSmrg _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' 50469418810dSmrg _LT_TAGVAR(archive_cmds_need_lc, $1)=no 50479418810dSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 50489418810dSmrg runpath_var='LD_RUN_PATH' 50499bd41f2cSmrg 50509418810dSmrg if test "$GCC" = yes; then 50519418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 50529418810dSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 50539418810dSmrg else 50549418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 50559418810dSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 50569418810dSmrg fi 50579418810dSmrg ;; 50589bd41f2cSmrg 50599418810dSmrg sysv5* | sco3.2v5* | sco5v6*) 50609418810dSmrg # Note: We can NOT use -z defs as we might desire, because we do not 50619418810dSmrg # link with -lc, and that would cause any symbols used from libc to 50629418810dSmrg # always be unresolved, which means just about no library would 50639418810dSmrg # ever link correctly. If we're not using GNU ld we use -z text 50649418810dSmrg # though, which does catch some bad symbols but isn't as heavy-handed 50659418810dSmrg # as -z defs. 50669418810dSmrg _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' 50679418810dSmrg _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' 50689418810dSmrg _LT_TAGVAR(archive_cmds_need_lc, $1)=no 50699418810dSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 50709418810dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir' 50719418810dSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 50729418810dSmrg _LT_TAGVAR(link_all_deplibs, $1)=yes 50739418810dSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' 50749418810dSmrg runpath_var='LD_RUN_PATH' 50759bd41f2cSmrg 50769418810dSmrg if test "$GCC" = yes; then 50779418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 50789418810dSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 50799418810dSmrg else 50809418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 50819418810dSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 50829418810dSmrg fi 50839418810dSmrg ;; 50849bd41f2cSmrg 50859418810dSmrg uts4*) 50869418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 50879418810dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 50889418810dSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 50899418810dSmrg ;; 50909bd41f2cSmrg 50919418810dSmrg *) 50929418810dSmrg _LT_TAGVAR(ld_shlibs, $1)=no 50939418810dSmrg ;; 50949418810dSmrg esac 50959bd41f2cSmrg 50969418810dSmrg if test x$host_vendor = xsni; then 50979418810dSmrg case $host in 50989418810dSmrg sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 50999418810dSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym' 51009418810dSmrg ;; 51019418810dSmrg esac 51029418810dSmrg fi 51039418810dSmrg fi 51049418810dSmrg]) 51059418810dSmrgAC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) 51069418810dSmrgtest "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no 51079bd41f2cSmrg 51089418810dSmrg_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld 51099bd41f2cSmrg 51109418810dSmrg_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl 51119418810dSmrg_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl 51129418810dSmrg_LT_DECL([], [extract_expsyms_cmds], [2], 51139418810dSmrg [The commands to extract the exported symbol list from a shared archive]) 51149bd41f2cSmrg 51159418810dSmrg# 51169418810dSmrg# Do we need to explicitly link libc? 51179418810dSmrg# 51189418810dSmrgcase "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in 51199418810dSmrgx|xyes) 51209418810dSmrg # Assume -lc should be added 51219418810dSmrg _LT_TAGVAR(archive_cmds_need_lc, $1)=yes 51229bd41f2cSmrg 51239418810dSmrg if test "$enable_shared" = yes && test "$GCC" = yes; then 51249418810dSmrg case $_LT_TAGVAR(archive_cmds, $1) in 51259418810dSmrg *'~'*) 51269418810dSmrg # FIXME: we may have to deal with multi-command sequences. 51279418810dSmrg ;; 51289418810dSmrg '$CC '*) 51299418810dSmrg # Test whether the compiler implicitly links with -lc since on some 51309418810dSmrg # systems, -lgcc has to come before -lc. If gcc already passes -lc 51319418810dSmrg # to ld, don't add -lc before -lgcc. 51329418810dSmrg AC_MSG_CHECKING([whether -lc should be explicitly linked in]) 51339418810dSmrg $RM conftest* 51349418810dSmrg echo "$lt_simple_compile_test_code" > conftest.$ac_ext 51359bd41f2cSmrg 51369418810dSmrg if AC_TRY_EVAL(ac_compile) 2>conftest.err; then 51379418810dSmrg soname=conftest 51389418810dSmrg lib=conftest 51399418810dSmrg libobjs=conftest.$ac_objext 51409418810dSmrg deplibs= 51419418810dSmrg wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) 51429418810dSmrg pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1) 51439418810dSmrg compiler_flags=-v 51449418810dSmrg linker_flags=-v 51459418810dSmrg verstring= 51469418810dSmrg output_objdir=. 51479418810dSmrg libname=conftest 51489418810dSmrg lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1) 51499418810dSmrg _LT_TAGVAR(allow_undefined_flag, $1)= 51509418810dSmrg if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 51519418810dSmrg then 51529418810dSmrg _LT_TAGVAR(archive_cmds_need_lc, $1)=no 51539418810dSmrg else 51549418810dSmrg _LT_TAGVAR(archive_cmds_need_lc, $1)=yes 51559418810dSmrg fi 51569418810dSmrg _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag 51579418810dSmrg else 51589418810dSmrg cat conftest.err 1>&5 51599418810dSmrg fi 51609418810dSmrg $RM conftest* 51619418810dSmrg AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)]) 51629418810dSmrg ;; 51639418810dSmrg esac 51649418810dSmrg fi 51659418810dSmrg ;; 51669418810dSmrgesac 51679bd41f2cSmrg 51689418810dSmrg_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0], 51699418810dSmrg [Whether or not to add -lc for building shared libraries]) 51709418810dSmrg_LT_TAGDECL([allow_libtool_libs_with_static_runtimes], 51719418810dSmrg [enable_shared_with_static_runtimes], [0], 51729418810dSmrg [Whether or not to disallow shared libs when runtime libs are static]) 51739418810dSmrg_LT_TAGDECL([], [export_dynamic_flag_spec], [1], 51749418810dSmrg [Compiler flag to allow reflexive dlopens]) 51759418810dSmrg_LT_TAGDECL([], [whole_archive_flag_spec], [1], 51769418810dSmrg [Compiler flag to generate shared objects directly from archives]) 51779418810dSmrg_LT_TAGDECL([], [compiler_needs_object], [1], 51789418810dSmrg [Whether the compiler copes with passing no objects directly]) 51799418810dSmrg_LT_TAGDECL([], [old_archive_from_new_cmds], [2], 51809418810dSmrg [Create an old-style archive from a shared archive]) 51819418810dSmrg_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2], 51829418810dSmrg [Create a temporary old-style archive to link instead of a shared archive]) 51839418810dSmrg_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive]) 51849418810dSmrg_LT_TAGDECL([], [archive_expsym_cmds], [2]) 51859418810dSmrg_LT_TAGDECL([], [module_cmds], [2], 51869418810dSmrg [Commands used to build a loadable module if different from building 51879418810dSmrg a shared archive.]) 51889418810dSmrg_LT_TAGDECL([], [module_expsym_cmds], [2]) 51899418810dSmrg_LT_TAGDECL([], [with_gnu_ld], [1], 51909418810dSmrg [Whether we are building with GNU ld or not]) 51919418810dSmrg_LT_TAGDECL([], [allow_undefined_flag], [1], 51929418810dSmrg [Flag that allows shared libraries with undefined symbols to be built]) 51939418810dSmrg_LT_TAGDECL([], [no_undefined_flag], [1], 51949418810dSmrg [Flag that enforces no undefined symbols]) 51959418810dSmrg_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1], 51969418810dSmrg [Flag to hardcode $libdir into a binary during linking. 51979418810dSmrg This must work even if $libdir does not exist]) 51989418810dSmrg_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1], 51999418810dSmrg [[If ld is used when linking, flag to hardcode $libdir into a binary 52009418810dSmrg during linking. This must work even if $libdir does not exist]]) 52019418810dSmrg_LT_TAGDECL([], [hardcode_libdir_separator], [1], 52029418810dSmrg [Whether we need a single "-rpath" flag with a separated argument]) 52039418810dSmrg_LT_TAGDECL([], [hardcode_direct], [0], 52049418810dSmrg [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes 52059418810dSmrg DIR into the resulting binary]) 52069418810dSmrg_LT_TAGDECL([], [hardcode_direct_absolute], [0], 52079418810dSmrg [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes 52089418810dSmrg DIR into the resulting binary and the resulting library dependency is 52099418810dSmrg "absolute", i.e impossible to change by setting ${shlibpath_var} if the 52109418810dSmrg library is relocated]) 52119418810dSmrg_LT_TAGDECL([], [hardcode_minus_L], [0], 52129418810dSmrg [Set to "yes" if using the -LDIR flag during linking hardcodes DIR 52139418810dSmrg into the resulting binary]) 52149418810dSmrg_LT_TAGDECL([], [hardcode_shlibpath_var], [0], 52159418810dSmrg [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 52169418810dSmrg into the resulting binary]) 52179418810dSmrg_LT_TAGDECL([], [hardcode_automatic], [0], 52189418810dSmrg [Set to "yes" if building a shared library automatically hardcodes DIR 52199418810dSmrg into the library and all subsequent libraries and executables linked 52209418810dSmrg against it]) 52219418810dSmrg_LT_TAGDECL([], [inherit_rpath], [0], 52229418810dSmrg [Set to yes if linker adds runtime paths of dependent libraries 52239418810dSmrg to runtime path list]) 52249418810dSmrg_LT_TAGDECL([], [link_all_deplibs], [0], 52259418810dSmrg [Whether libtool must link a program against all its dependency libraries]) 52269418810dSmrg_LT_TAGDECL([], [fix_srcfile_path], [1], 52279418810dSmrg [Fix the shell variable $srcfile for the compiler]) 52289418810dSmrg_LT_TAGDECL([], [always_export_symbols], [0], 52299418810dSmrg [Set to "yes" if exported symbols are required]) 52309418810dSmrg_LT_TAGDECL([], [export_symbols_cmds], [2], 52319418810dSmrg [The commands to list exported symbols]) 52329418810dSmrg_LT_TAGDECL([], [exclude_expsyms], [1], 52339418810dSmrg [Symbols that should not be listed in the preloaded symbols]) 52349418810dSmrg_LT_TAGDECL([], [include_expsyms], [1], 52359418810dSmrg [Symbols that must always be exported]) 52369418810dSmrg_LT_TAGDECL([], [prelink_cmds], [2], 52379418810dSmrg [Commands necessary for linking programs (against libraries) with templates]) 52389418810dSmrg_LT_TAGDECL([], [file_list_spec], [1], 52399418810dSmrg [Specify filename containing input files]) 52409418810dSmrgdnl FIXME: Not yet implemented 52419418810dSmrgdnl _LT_TAGDECL([], [thread_safe_flag_spec], [1], 52429418810dSmrgdnl [Compiler flag to generate thread safe objects]) 52439418810dSmrg])# _LT_LINKER_SHLIBS 52449418810dSmrg 52459418810dSmrg 52469418810dSmrg# _LT_LANG_C_CONFIG([TAG]) 52479418810dSmrg# ------------------------ 52489418810dSmrg# Ensure that the configuration variables for a C compiler are suitably 52499418810dSmrg# defined. These variables are subsequently used by _LT_CONFIG to write 52509418810dSmrg# the compiler configuration to `libtool'. 52519418810dSmrgm4_defun([_LT_LANG_C_CONFIG], 52529418810dSmrg[m4_require([_LT_DECL_EGREP])dnl 52539418810dSmrglt_save_CC="$CC" 52549418810dSmrgAC_LANG_PUSH(C) 52559bd41f2cSmrg 52569418810dSmrg# Source file extension for C test sources. 52579418810dSmrgac_ext=c 52589bd41f2cSmrg 52599418810dSmrg# Object file extension for compiled C test sources. 52609418810dSmrgobjext=o 52619418810dSmrg_LT_TAGVAR(objext, $1)=$objext 52629bd41f2cSmrg 52639418810dSmrg# Code to be used in simple compile tests 52649418810dSmrglt_simple_compile_test_code="int some_variable = 0;" 52659bd41f2cSmrg 52669418810dSmrg# Code to be used in simple link tests 52679418810dSmrglt_simple_link_test_code='int main(){return(0);}' 52689bd41f2cSmrg 52699418810dSmrg_LT_TAG_COMPILER 52709418810dSmrg# Save the default compiler, since it gets overwritten when the other 52719418810dSmrg# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 52729418810dSmrgcompiler_DEFAULT=$CC 52739bd41f2cSmrg 52749418810dSmrg# save warnings/boilerplate of simple test code 52759418810dSmrg_LT_COMPILER_BOILERPLATE 52769418810dSmrg_LT_LINKER_BOILERPLATE 52779bd41f2cSmrg 52789418810dSmrgif test -n "$compiler"; then 52799418810dSmrg _LT_COMPILER_NO_RTTI($1) 52809418810dSmrg _LT_COMPILER_PIC($1) 52819418810dSmrg _LT_COMPILER_C_O($1) 52829418810dSmrg _LT_COMPILER_FILE_LOCKS($1) 52839418810dSmrg _LT_LINKER_SHLIBS($1) 52849418810dSmrg _LT_SYS_DYNAMIC_LINKER($1) 52859418810dSmrg _LT_LINKER_HARDCODE_LIBPATH($1) 52869418810dSmrg LT_SYS_DLOPEN_SELF 52879418810dSmrg _LT_CMD_STRIPLIB 52889418810dSmrg 52899418810dSmrg # Report which library types will actually be built 52909418810dSmrg AC_MSG_CHECKING([if libtool supports shared libraries]) 52919418810dSmrg AC_MSG_RESULT([$can_build_shared]) 52929418810dSmrg 52939418810dSmrg AC_MSG_CHECKING([whether to build shared libraries]) 52949418810dSmrg test "$can_build_shared" = "no" && enable_shared=no 52959418810dSmrg 52969418810dSmrg # On AIX, shared libraries and static libraries use the same namespace, and 52979418810dSmrg # are all built from PIC. 52989418810dSmrg case $host_os in 52999418810dSmrg aix3*) 53009418810dSmrg test "$enable_shared" = yes && enable_static=no 53019418810dSmrg if test -n "$RANLIB"; then 53029418810dSmrg archive_cmds="$archive_cmds~\$RANLIB \$lib" 53039418810dSmrg postinstall_cmds='$RANLIB $lib' 53049418810dSmrg fi 53059418810dSmrg ;; 53069bd41f2cSmrg 53079418810dSmrg aix[[4-9]]*) 53089418810dSmrg if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 53099418810dSmrg test "$enable_shared" = yes && enable_static=no 53109418810dSmrg fi 53119418810dSmrg ;; 53129418810dSmrg esac 53139418810dSmrg AC_MSG_RESULT([$enable_shared]) 53149bd41f2cSmrg 53159418810dSmrg AC_MSG_CHECKING([whether to build static libraries]) 53169418810dSmrg # Make sure either enable_shared or enable_static is yes. 53179418810dSmrg test "$enable_shared" = yes || enable_static=yes 53189418810dSmrg AC_MSG_RESULT([$enable_static]) 53199bd41f2cSmrg 53209418810dSmrg _LT_CONFIG($1) 53219418810dSmrgfi 53229418810dSmrgAC_LANG_POP 53239418810dSmrgCC="$lt_save_CC" 53249418810dSmrg])# _LT_LANG_C_CONFIG 53259bd41f2cSmrg 53269bd41f2cSmrg 53279418810dSmrg# _LT_PROG_CXX 53289418810dSmrg# ------------ 53299418810dSmrg# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++ 53309418810dSmrg# compiler, we have our own version here. 53319418810dSmrgm4_defun([_LT_PROG_CXX], 53329418810dSmrg[ 53339418810dSmrgpushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes]) 53349418810dSmrgAC_PROG_CXX 53359418810dSmrgif test -n "$CXX" && ( test "X$CXX" != "Xno" && 53369418810dSmrg ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 53379418810dSmrg (test "X$CXX" != "Xg++"))) ; then 53389418810dSmrg AC_PROG_CXXCPP 53399418810dSmrgelse 53409418810dSmrg _lt_caught_CXX_error=yes 53419418810dSmrgfi 53429418810dSmrgpopdef([AC_MSG_ERROR]) 53439418810dSmrg])# _LT_PROG_CXX 53449bd41f2cSmrg 53459418810dSmrgdnl aclocal-1.4 backwards compatibility: 53469418810dSmrgdnl AC_DEFUN([_LT_PROG_CXX], []) 53479bd41f2cSmrg 53489bd41f2cSmrg 53499418810dSmrg# _LT_LANG_CXX_CONFIG([TAG]) 53509418810dSmrg# -------------------------- 53519418810dSmrg# Ensure that the configuration variables for a C++ compiler are suitably 53529418810dSmrg# defined. These variables are subsequently used by _LT_CONFIG to write 53539418810dSmrg# the compiler configuration to `libtool'. 53549418810dSmrgm4_defun([_LT_LANG_CXX_CONFIG], 53559418810dSmrg[AC_REQUIRE([_LT_PROG_CXX])dnl 53569418810dSmrgm4_require([_LT_FILEUTILS_DEFAULTS])dnl 53579418810dSmrgm4_require([_LT_DECL_EGREP])dnl 53589418810dSmrg 53599418810dSmrgAC_LANG_PUSH(C++) 53609418810dSmrg_LT_TAGVAR(archive_cmds_need_lc, $1)=no 53619418810dSmrg_LT_TAGVAR(allow_undefined_flag, $1)= 53629418810dSmrg_LT_TAGVAR(always_export_symbols, $1)=no 53639418810dSmrg_LT_TAGVAR(archive_expsym_cmds, $1)= 53649418810dSmrg_LT_TAGVAR(compiler_needs_object, $1)=no 53659418810dSmrg_LT_TAGVAR(export_dynamic_flag_spec, $1)= 53669418810dSmrg_LT_TAGVAR(hardcode_direct, $1)=no 53679418810dSmrg_LT_TAGVAR(hardcode_direct_absolute, $1)=no 53689418810dSmrg_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 53699418810dSmrg_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= 53709418810dSmrg_LT_TAGVAR(hardcode_libdir_separator, $1)= 53719418810dSmrg_LT_TAGVAR(hardcode_minus_L, $1)=no 53729418810dSmrg_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 53739418810dSmrg_LT_TAGVAR(hardcode_automatic, $1)=no 53749418810dSmrg_LT_TAGVAR(inherit_rpath, $1)=no 53759418810dSmrg_LT_TAGVAR(module_cmds, $1)= 53769418810dSmrg_LT_TAGVAR(module_expsym_cmds, $1)= 53779418810dSmrg_LT_TAGVAR(link_all_deplibs, $1)=unknown 53789418810dSmrg_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 53799418810dSmrg_LT_TAGVAR(no_undefined_flag, $1)= 53809418810dSmrg_LT_TAGVAR(whole_archive_flag_spec, $1)= 53819418810dSmrg_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no 53829bd41f2cSmrg 53839418810dSmrg# Source file extension for C++ test sources. 53849418810dSmrgac_ext=cpp 53859bd41f2cSmrg 53869418810dSmrg# Object file extension for compiled C++ test sources. 53879418810dSmrgobjext=o 53889418810dSmrg_LT_TAGVAR(objext, $1)=$objext 53899418810dSmrg 53909418810dSmrg# No sense in running all these tests if we already determined that 53919418810dSmrg# the CXX compiler isn't working. Some variables (like enable_shared) 53929418810dSmrg# are currently assumed to apply to all compilers on this platform, 53939418810dSmrg# and will be corrupted by setting them based on a non-working compiler. 53949418810dSmrgif test "$_lt_caught_CXX_error" != yes; then 53959418810dSmrg # Code to be used in simple compile tests 53969418810dSmrg lt_simple_compile_test_code="int some_variable = 0;" 53979418810dSmrg 53989418810dSmrg # Code to be used in simple link tests 53999418810dSmrg lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }' 54009418810dSmrg 54019418810dSmrg # ltmain only uses $CC for tagged configurations so make sure $CC is set. 54029418810dSmrg _LT_TAG_COMPILER 54039418810dSmrg 54049418810dSmrg # save warnings/boilerplate of simple test code 54059418810dSmrg _LT_COMPILER_BOILERPLATE 54069418810dSmrg _LT_LINKER_BOILERPLATE 54079418810dSmrg 54089418810dSmrg # Allow CC to be a program name with arguments. 54099418810dSmrg lt_save_CC=$CC 54109418810dSmrg lt_save_LD=$LD 54119418810dSmrg lt_save_GCC=$GCC 54129418810dSmrg GCC=$GXX 54139418810dSmrg lt_save_with_gnu_ld=$with_gnu_ld 54149418810dSmrg lt_save_path_LD=$lt_cv_path_LD 54159418810dSmrg if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 54169418810dSmrg lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 54179418810dSmrg else 54189418810dSmrg $as_unset lt_cv_prog_gnu_ld 54199418810dSmrg fi 54209418810dSmrg if test -n "${lt_cv_path_LDCXX+set}"; then 54219418810dSmrg lt_cv_path_LD=$lt_cv_path_LDCXX 54229418810dSmrg else 54239418810dSmrg $as_unset lt_cv_path_LD 54249418810dSmrg fi 54259418810dSmrg test -z "${LDCXX+set}" || LD=$LDCXX 54269418810dSmrg CC=${CXX-"c++"} 54279418810dSmrg compiler=$CC 54289418810dSmrg _LT_TAGVAR(compiler, $1)=$CC 54299418810dSmrg _LT_CC_BASENAME([$compiler]) 54309bd41f2cSmrg 54319418810dSmrg if test -n "$compiler"; then 54329418810dSmrg # We don't want -fno-exception when compiling C++ code, so set the 54339418810dSmrg # no_builtin_flag separately 54349418810dSmrg if test "$GXX" = yes; then 54359418810dSmrg _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' 54369418810dSmrg else 54379418810dSmrg _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= 54389418810dSmrg fi 54399bd41f2cSmrg 54409418810dSmrg if test "$GXX" = yes; then 54419418810dSmrg # Set up default GNU C++ configuration 54429bd41f2cSmrg 54439418810dSmrg LT_PATH_LD 54449bd41f2cSmrg 54459418810dSmrg # Check if GNU C++ uses GNU ld as the underlying linker, since the 54469418810dSmrg # archiving commands below assume that GNU ld is being used. 54479418810dSmrg if test "$with_gnu_ld" = yes; then 54489418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 54499418810dSmrg _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' 54509bd41f2cSmrg 54519418810dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 54529418810dSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 54539bd41f2cSmrg 54549418810dSmrg # If archive_cmds runs LD, not CC, wlarc should be empty 54559418810dSmrg # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 54569418810dSmrg # investigate it a little bit more. (MM) 54579418810dSmrg wlarc='${wl}' 54589bd41f2cSmrg 54599418810dSmrg # ancient GNU ld didn't support --whole-archive et. al. 54609418810dSmrg if eval "`$CC -print-prog-name=ld` --help 2>&1" | 54619418810dSmrg $GREP 'no-whole-archive' > /dev/null; then 54629418810dSmrg _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 54639418810dSmrg else 54649418810dSmrg _LT_TAGVAR(whole_archive_flag_spec, $1)= 54659418810dSmrg fi 54669418810dSmrg else 54679418810dSmrg with_gnu_ld=no 54689418810dSmrg wlarc= 54699418810dSmrg 54709418810dSmrg # A generic and very simple default shared library creation 54719418810dSmrg # command for GNU C++ for the case where it uses the native 54729418810dSmrg # linker, instead of GNU ld. If possible, this setting should 54739418810dSmrg # overridden to take advantage of the native linker features on 54749418810dSmrg # the platform it is being used on. 54759418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 54769418810dSmrg fi 54779bd41f2cSmrg 54789418810dSmrg # Commands to make compiler produce verbose output that lists 54799418810dSmrg # what "hidden" libraries, object files and flags are used when 54809418810dSmrg # linking a shared library. 54819418810dSmrg output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' 54829bd41f2cSmrg 54839418810dSmrg else 54849418810dSmrg GXX=no 54859418810dSmrg with_gnu_ld=no 54869418810dSmrg wlarc= 54879418810dSmrg fi 54889bd41f2cSmrg 54899418810dSmrg # PORTME: fill in a description of your system's C++ link characteristics 54909418810dSmrg AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) 54919418810dSmrg _LT_TAGVAR(ld_shlibs, $1)=yes 54929418810dSmrg case $host_os in 54939418810dSmrg aix3*) 54949418810dSmrg # FIXME: insert proper C++ library support 54959418810dSmrg _LT_TAGVAR(ld_shlibs, $1)=no 54969418810dSmrg ;; 54979418810dSmrg aix[[4-9]]*) 54989418810dSmrg if test "$host_cpu" = ia64; then 54999418810dSmrg # On IA64, the linker does run time linking by default, so we don't 55009418810dSmrg # have to do anything special. 55019418810dSmrg aix_use_runtimelinking=no 55029418810dSmrg exp_sym_flag='-Bexport' 55039418810dSmrg no_entry_flag="" 55049418810dSmrg else 55059418810dSmrg aix_use_runtimelinking=no 55069418810dSmrg 55079418810dSmrg # Test if we are trying to use run time linking or normal 55089418810dSmrg # AIX style linking. If -brtl is somewhere in LDFLAGS, we 55099418810dSmrg # need to do runtime linking. 55109418810dSmrg case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) 55119418810dSmrg for ld_flag in $LDFLAGS; do 55129418810dSmrg case $ld_flag in 55139418810dSmrg *-brtl*) 55149418810dSmrg aix_use_runtimelinking=yes 55159418810dSmrg break 55169418810dSmrg ;; 55179418810dSmrg esac 55189418810dSmrg done 55199418810dSmrg ;; 55209418810dSmrg esac 55219bd41f2cSmrg 55229418810dSmrg exp_sym_flag='-bexport' 55239418810dSmrg no_entry_flag='-bnoentry' 55249418810dSmrg fi 55259bd41f2cSmrg 55269418810dSmrg # When large executables or shared objects are built, AIX ld can 55279418810dSmrg # have problems creating the table of contents. If linking a library 55289418810dSmrg # or program results in "error TOC overflow" add -mminimal-toc to 55299418810dSmrg # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 55309418810dSmrg # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 55319418810dSmrg 55329418810dSmrg _LT_TAGVAR(archive_cmds, $1)='' 55339418810dSmrg _LT_TAGVAR(hardcode_direct, $1)=yes 55349418810dSmrg _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 55359418810dSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 55369418810dSmrg _LT_TAGVAR(link_all_deplibs, $1)=yes 55379418810dSmrg _LT_TAGVAR(file_list_spec, $1)='${wl}-f,' 55389418810dSmrg 55399418810dSmrg if test "$GXX" = yes; then 55409418810dSmrg case $host_os in aix4.[[012]]|aix4.[[012]].*) 55419418810dSmrg # We only want to do this on AIX 4.2 and lower, the check 55429418810dSmrg # below for broken collect2 doesn't work under 4.3+ 55439418810dSmrg collect2name=`${CC} -print-prog-name=collect2` 55449418810dSmrg if test -f "$collect2name" && 55459418810dSmrg strings "$collect2name" | $GREP resolve_lib_name >/dev/null 55469418810dSmrg then 55479418810dSmrg # We have reworked collect2 55489418810dSmrg : 55499418810dSmrg else 55509418810dSmrg # We have old collect2 55519418810dSmrg _LT_TAGVAR(hardcode_direct, $1)=unsupported 55529418810dSmrg # It fails to find uninstalled libraries when the uninstalled 55539418810dSmrg # path is not listed in the libpath. Setting hardcode_minus_L 55549418810dSmrg # to unsupported forces relinking 55559418810dSmrg _LT_TAGVAR(hardcode_minus_L, $1)=yes 55569418810dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 55579418810dSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)= 55589418810dSmrg fi 55599418810dSmrg esac 55609418810dSmrg shared_flag='-shared' 55619418810dSmrg if test "$aix_use_runtimelinking" = yes; then 55629418810dSmrg shared_flag="$shared_flag "'${wl}-G' 55639418810dSmrg fi 55649418810dSmrg else 55659418810dSmrg # not using gcc 55669418810dSmrg if test "$host_cpu" = ia64; then 55679418810dSmrg # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 55689418810dSmrg # chokes on -Wl,-G. The following line is correct: 55699418810dSmrg shared_flag='-G' 55709418810dSmrg else 55719418810dSmrg if test "$aix_use_runtimelinking" = yes; then 55729418810dSmrg shared_flag='${wl}-G' 55739418810dSmrg else 55749418810dSmrg shared_flag='${wl}-bM:SRE' 55759418810dSmrg fi 55769418810dSmrg fi 55779418810dSmrg fi 55789bd41f2cSmrg 55799418810dSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall' 55809418810dSmrg # It seems that -bexpall does not export symbols beginning with 55819418810dSmrg # underscore (_), so it is better to generate a list of symbols to 55829418810dSmrg # export. 55839418810dSmrg _LT_TAGVAR(always_export_symbols, $1)=yes 55849418810dSmrg if test "$aix_use_runtimelinking" = yes; then 55859418810dSmrg # Warning - without using the other runtime loading flags (-brtl), 55869418810dSmrg # -berok will link without error, but may produce a broken library. 55879418810dSmrg _LT_TAGVAR(allow_undefined_flag, $1)='-berok' 55889418810dSmrg # Determine the default libpath from the value encoded in an empty 55899418810dSmrg # executable. 55909418810dSmrg _LT_SYS_MODULE_PATH_AIX 55919418810dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 55929418810dSmrg 55939418810dSmrg _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" 55949418810dSmrg else 55959418810dSmrg if test "$host_cpu" = ia64; then 55969418810dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' 55979418810dSmrg _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" 55989418810dSmrg _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" 55999418810dSmrg else 56009418810dSmrg # Determine the default libpath from the value encoded in an 56019418810dSmrg # empty executable. 56029418810dSmrg _LT_SYS_MODULE_PATH_AIX 56039418810dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 56049418810dSmrg # Warning - without using the other run time loading flags, 56059418810dSmrg # -berok will link without error, but may produce a broken library. 56069418810dSmrg _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' 56079418810dSmrg _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' 56089418810dSmrg # Exported symbols can be pulled into shared objects from archives 56099418810dSmrg _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' 56109418810dSmrg _LT_TAGVAR(archive_cmds_need_lc, $1)=yes 56119418810dSmrg # This is similar to how AIX traditionally builds its shared 56129418810dSmrg # libraries. 56139418810dSmrg _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' 56149418810dSmrg fi 56159418810dSmrg fi 56169418810dSmrg ;; 56179bd41f2cSmrg 56189418810dSmrg beos*) 56199418810dSmrg if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 56209418810dSmrg _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 56219418810dSmrg # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 56229418810dSmrg # support --undefined. This deserves some investigation. FIXME 56239418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 56249418810dSmrg else 56259418810dSmrg _LT_TAGVAR(ld_shlibs, $1)=no 56269418810dSmrg fi 56279418810dSmrg ;; 56289bd41f2cSmrg 56299418810dSmrg chorus*) 56309418810dSmrg case $cc_basename in 56319418810dSmrg *) 56329418810dSmrg # FIXME: insert proper C++ library support 56339418810dSmrg _LT_TAGVAR(ld_shlibs, $1)=no 56349418810dSmrg ;; 56359418810dSmrg esac 56369418810dSmrg ;; 56379bd41f2cSmrg 56389418810dSmrg cygwin* | mingw* | pw32* | cegcc*) 56399418810dSmrg # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, 56409418810dSmrg # as there is no search path for DLLs. 56419418810dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 56429418810dSmrg _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 56439418810dSmrg _LT_TAGVAR(always_export_symbols, $1)=no 56449418810dSmrg _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 56459418810dSmrg 56469418810dSmrg if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 56479418810dSmrg _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' 56489418810dSmrg # If the export-symbols file already is a .def file (1st line 56499418810dSmrg # is EXPORTS), use it as is; otherwise, prepend... 56509418810dSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 56519418810dSmrg cp $export_symbols $output_objdir/$soname.def; 56529418810dSmrg else 56539418810dSmrg echo EXPORTS > $output_objdir/$soname.def; 56549418810dSmrg cat $export_symbols >> $output_objdir/$soname.def; 56559418810dSmrg fi~ 56569418810dSmrg $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' 56579418810dSmrg else 56589418810dSmrg _LT_TAGVAR(ld_shlibs, $1)=no 56599418810dSmrg fi 56609418810dSmrg ;; 56619418810dSmrg darwin* | rhapsody*) 56629418810dSmrg _LT_DARWIN_LINKER_FEATURES($1) 56639418810dSmrg ;; 56649bd41f2cSmrg 56659418810dSmrg dgux*) 56669418810dSmrg case $cc_basename in 56679418810dSmrg ec++*) 56689418810dSmrg # FIXME: insert proper C++ library support 56699418810dSmrg _LT_TAGVAR(ld_shlibs, $1)=no 56709418810dSmrg ;; 56719418810dSmrg ghcx*) 56729418810dSmrg # Green Hills C++ Compiler 56739418810dSmrg # FIXME: insert proper C++ library support 56749418810dSmrg _LT_TAGVAR(ld_shlibs, $1)=no 56759418810dSmrg ;; 56769418810dSmrg *) 56779418810dSmrg # FIXME: insert proper C++ library support 56789418810dSmrg _LT_TAGVAR(ld_shlibs, $1)=no 56799418810dSmrg ;; 56809418810dSmrg esac 56819418810dSmrg ;; 56829418810dSmrg 56839418810dSmrg freebsd[[12]]*) 56849418810dSmrg # C++ shared libraries reported to be fairly broken before 56859418810dSmrg # switch to ELF 56869418810dSmrg _LT_TAGVAR(ld_shlibs, $1)=no 56879418810dSmrg ;; 56889bd41f2cSmrg 56899418810dSmrg freebsd-elf*) 56909418810dSmrg _LT_TAGVAR(archive_cmds_need_lc, $1)=no 56919418810dSmrg ;; 56929bd41f2cSmrg 56939418810dSmrg freebsd* | dragonfly*) 56949418810dSmrg # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 56959418810dSmrg # conventions 56969418810dSmrg _LT_TAGVAR(ld_shlibs, $1)=yes 56979418810dSmrg ;; 56989bd41f2cSmrg 56999418810dSmrg gnu*) 57009418810dSmrg ;; 57019bd41f2cSmrg 57029418810dSmrg hpux9*) 57039418810dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 57049418810dSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)=: 57059418810dSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 57069418810dSmrg _LT_TAGVAR(hardcode_direct, $1)=yes 57079418810dSmrg _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, 57089418810dSmrg # but as the default 57099418810dSmrg # location of the library. 57109418810dSmrg 57119418810dSmrg case $cc_basename in 57129418810dSmrg CC*) 57139418810dSmrg # FIXME: insert proper C++ library support 57149418810dSmrg _LT_TAGVAR(ld_shlibs, $1)=no 57159418810dSmrg ;; 57169418810dSmrg aCC*) 57179418810dSmrg _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' 57189418810dSmrg # Commands to make compiler produce verbose output that lists 57199418810dSmrg # what "hidden" libraries, object files and flags are used when 57209418810dSmrg # linking a shared library. 57219418810dSmrg # 57229418810dSmrg # There doesn't appear to be a way to prevent this compiler from 57239418810dSmrg # explicitly linking system object files so we need to strip them 57249418810dSmrg # from the output so that they don't get included in the library 57259418810dSmrg # dependencies. 57269418810dSmrg 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' 57279418810dSmrg ;; 57289418810dSmrg *) 57299418810dSmrg if test "$GXX" = yes; then 57309418810dSmrg _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' 57319418810dSmrg else 57329418810dSmrg # FIXME: insert proper C++ library support 57339418810dSmrg _LT_TAGVAR(ld_shlibs, $1)=no 57349418810dSmrg fi 57359418810dSmrg ;; 57369418810dSmrg esac 57379418810dSmrg ;; 57389bd41f2cSmrg 57399418810dSmrg hpux10*|hpux11*) 57409418810dSmrg if test $with_gnu_ld = no; then 57419418810dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 57429418810dSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)=: 57439418810dSmrg 57449418810dSmrg case $host_cpu in 57459418810dSmrg hppa*64*|ia64*) 57469418810dSmrg ;; 57479418810dSmrg *) 57489418810dSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 57499418810dSmrg ;; 57509418810dSmrg esac 57519418810dSmrg fi 57529418810dSmrg case $host_cpu in 57539418810dSmrg hppa*64*|ia64*) 57549418810dSmrg _LT_TAGVAR(hardcode_direct, $1)=no 57559418810dSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 57569418810dSmrg ;; 57579418810dSmrg *) 57589418810dSmrg _LT_TAGVAR(hardcode_direct, $1)=yes 57599418810dSmrg _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 57609418810dSmrg _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, 57619418810dSmrg # but as the default 57629418810dSmrg # location of the library. 57639418810dSmrg ;; 57649418810dSmrg esac 57659418810dSmrg 57669418810dSmrg case $cc_basename in 57679418810dSmrg CC*) 57689418810dSmrg # FIXME: insert proper C++ library support 57699418810dSmrg _LT_TAGVAR(ld_shlibs, $1)=no 57709418810dSmrg ;; 57719418810dSmrg aCC*) 57729418810dSmrg case $host_cpu in 57739418810dSmrg hppa*64*) 57749418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 57759418810dSmrg ;; 57769418810dSmrg ia64*) 57779418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 57789418810dSmrg ;; 57799418810dSmrg *) 57809418810dSmrg _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' 57819418810dSmrg ;; 57829418810dSmrg esac 57839418810dSmrg # Commands to make compiler produce verbose output that lists 57849418810dSmrg # what "hidden" libraries, object files and flags are used when 57859418810dSmrg # linking a shared library. 57869418810dSmrg # 57879418810dSmrg # There doesn't appear to be a way to prevent this compiler from 57889418810dSmrg # explicitly linking system object files so we need to strip them 57899418810dSmrg # from the output so that they don't get included in the library 57909418810dSmrg # dependencies. 57919418810dSmrg 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' 57929418810dSmrg ;; 57939418810dSmrg *) 57949418810dSmrg if test "$GXX" = yes; then 57959418810dSmrg if test $with_gnu_ld = no; then 57969418810dSmrg case $host_cpu in 57979418810dSmrg hppa*64*) 57989418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 57999418810dSmrg ;; 58009418810dSmrg ia64*) 58019418810dSmrg _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' 58029418810dSmrg ;; 58039418810dSmrg *) 58049418810dSmrg _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' 58059418810dSmrg ;; 58069418810dSmrg esac 58079418810dSmrg fi 58089418810dSmrg else 58099418810dSmrg # FIXME: insert proper C++ library support 58109418810dSmrg _LT_TAGVAR(ld_shlibs, $1)=no 58119418810dSmrg fi 58129418810dSmrg ;; 58139418810dSmrg esac 58149418810dSmrg ;; 58159bd41f2cSmrg 58169418810dSmrg interix[[3-9]]*) 58179418810dSmrg _LT_TAGVAR(hardcode_direct, $1)=no 58189418810dSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 58199418810dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 58209418810dSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 58219418810dSmrg # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 58229418810dSmrg # Instead, shared libraries are loaded at an image base (0x10000000 by 58239418810dSmrg # default) and relocated if they conflict, which is a slow very memory 58249418810dSmrg # consuming and fragmenting process. To avoid this, we pick a random, 58259418810dSmrg # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 58269418810dSmrg # time. Moving up from 0x10000000 also allows more sbrk(2) space. 58279418810dSmrg _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' 58289418810dSmrg _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' 58299418810dSmrg ;; 58309418810dSmrg irix5* | irix6*) 58319418810dSmrg case $cc_basename in 58329418810dSmrg CC*) 58339418810dSmrg # SGI C++ 58349418810dSmrg _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' 58359418810dSmrg 58369418810dSmrg # Archives containing C++ object files must be created using 58379418810dSmrg # "CC -ar", where "CC" is the IRIX C++ compiler. This is 58389418810dSmrg # necessary to make sure instantiated templates are included 58399418810dSmrg # in the archive. 58409418810dSmrg _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' 58419418810dSmrg ;; 58429418810dSmrg *) 58439418810dSmrg if test "$GXX" = yes; then 58449418810dSmrg if test "$with_gnu_ld" = no; then 58459418810dSmrg _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' 58469418810dSmrg else 58479418810dSmrg _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' 58489418810dSmrg fi 58499418810dSmrg fi 58509418810dSmrg _LT_TAGVAR(link_all_deplibs, $1)=yes 58519418810dSmrg ;; 58529418810dSmrg esac 58539418810dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 58549418810dSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)=: 58559418810dSmrg _LT_TAGVAR(inherit_rpath, $1)=yes 58569418810dSmrg ;; 58579bd41f2cSmrg 58589418810dSmrg linux* | k*bsd*-gnu) 58599418810dSmrg case $cc_basename in 58609418810dSmrg KCC*) 58619418810dSmrg # Kuck and Associates, Inc. (KAI) C++ Compiler 58629418810dSmrg 58639418810dSmrg # KCC will only create a shared library if the output file 58649418810dSmrg # ends with ".so" (or ".sl" for HP-UX), so rename the library 58659418810dSmrg # to its proper name (with version) after linking. 58669418810dSmrg _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' 58679418810dSmrg _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' 58689418810dSmrg # Commands to make compiler produce verbose output that lists 58699418810dSmrg # what "hidden" libraries, object files and flags are used when 58709418810dSmrg # linking a shared library. 58719418810dSmrg # 58729418810dSmrg # There doesn't appear to be a way to prevent this compiler from 58739418810dSmrg # explicitly linking system object files so we need to strip them 58749418810dSmrg # from the output so that they don't get included in the library 58759418810dSmrg # dependencies. 58769418810dSmrg 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' 58779418810dSmrg 58789418810dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 58799418810dSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 58809418810dSmrg 58819418810dSmrg # Archives containing C++ object files must be created using 58829418810dSmrg # "CC -Bstatic", where "CC" is the KAI C++ compiler. 58839418810dSmrg _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' 58849418810dSmrg ;; 58859418810dSmrg icpc* | ecpc* ) 58869418810dSmrg # Intel C++ 58879418810dSmrg with_gnu_ld=yes 58889418810dSmrg # version 8.0 and above of icpc choke on multiply defined symbols 58899418810dSmrg # if we add $predep_objects and $postdep_objects, however 7.1 and 58909418810dSmrg # earlier do not add the objects themselves. 58919418810dSmrg case `$CC -V 2>&1` in 58929418810dSmrg *"Version 7."*) 58939418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 58949418810dSmrg _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' 58959418810dSmrg ;; 58969418810dSmrg *) # Version 8.0 or newer 58979418810dSmrg tmp_idyn= 58989418810dSmrg case $host_cpu in 58999418810dSmrg ia64*) tmp_idyn=' -i_dynamic';; 59009418810dSmrg esac 59019418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 59029418810dSmrg _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' 59039418810dSmrg ;; 59049418810dSmrg esac 59059418810dSmrg _LT_TAGVAR(archive_cmds_need_lc, $1)=no 59069418810dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 59079418810dSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 59089418810dSmrg _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 59099418810dSmrg ;; 59109418810dSmrg pgCC* | pgcpp*) 59119418810dSmrg # Portland Group C++ compiler 59129418810dSmrg case `$CC -V` in 59139418810dSmrg *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*) 59149418810dSmrg _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~ 59159418810dSmrg rm -rf $tpldir~ 59169418810dSmrg $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 59179418810dSmrg compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"' 59189418810dSmrg _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~ 59199418810dSmrg rm -rf $tpldir~ 59209418810dSmrg $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 59219418810dSmrg $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~ 59229418810dSmrg $RANLIB $oldlib' 59239418810dSmrg _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~ 59249418810dSmrg rm -rf $tpldir~ 59259418810dSmrg $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 59269418810dSmrg $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 59279418810dSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~ 59289418810dSmrg rm -rf $tpldir~ 59299418810dSmrg $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 59309418810dSmrg $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' 59319418810dSmrg ;; 59329418810dSmrg *) # Version 6 will use weak symbols 59339418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 59349418810dSmrg _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' 59359418810dSmrg ;; 59369418810dSmrg esac 59379bd41f2cSmrg 59389418810dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' 59399418810dSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 59409418810dSmrg _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' 59419418810dSmrg ;; 59429418810dSmrg cxx*) 59439418810dSmrg # Compaq C++ 59449418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 59459418810dSmrg _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' 59469bd41f2cSmrg 59479418810dSmrg runpath_var=LD_RUN_PATH 59489418810dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 59499418810dSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)=: 5950d075918cSmrg 59519418810dSmrg # Commands to make compiler produce verbose output that lists 59529418810dSmrg # what "hidden" libraries, object files and flags are used when 59539418810dSmrg # linking a shared library. 59549418810dSmrg # 59559418810dSmrg # There doesn't appear to be a way to prevent this compiler from 59569418810dSmrg # explicitly linking system object files so we need to strip them 59579418810dSmrg # from the output so that they don't get included in the library 59589418810dSmrg # dependencies. 59599418810dSmrg 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' 59609418810dSmrg ;; 59619418810dSmrg xl*) 59629418810dSmrg # IBM XL 8.0 on PPC, with GNU ld 59639418810dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 59649418810dSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 59659418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 59669418810dSmrg if test "x$supports_anon_versioning" = xyes; then 59679418810dSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ 59689418810dSmrg cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 59699418810dSmrg echo "local: *; };" >> $output_objdir/$libname.ver~ 59709418810dSmrg $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 59719418810dSmrg fi 59729418810dSmrg ;; 59739418810dSmrg *) 59749418810dSmrg case `$CC -V 2>&1 | sed 5q` in 59759418810dSmrg *Sun\ C*) 59769418810dSmrg # Sun C++ 5.9 59779418810dSmrg _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' 59789418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 59799418810dSmrg _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' 59809418810dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 59819418810dSmrg _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' 59829418810dSmrg _LT_TAGVAR(compiler_needs_object, $1)=yes 59839418810dSmrg 59849418810dSmrg # Not sure whether something based on 59859418810dSmrg # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 59869418810dSmrg # would be better. 59879418810dSmrg output_verbose_link_cmd='echo' 59889418810dSmrg 59899418810dSmrg # Archives containing C++ object files must be created using 59909418810dSmrg # "CC -xar", where "CC" is the Sun C++ compiler. This is 59919418810dSmrg # necessary to make sure instantiated templates are included 59929418810dSmrg # in the archive. 59939418810dSmrg _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' 59949418810dSmrg ;; 59959418810dSmrg esac 59969418810dSmrg ;; 59979418810dSmrg esac 59989418810dSmrg ;; 59999bd41f2cSmrg 60009418810dSmrg lynxos*) 60019418810dSmrg # FIXME: insert proper C++ library support 60029418810dSmrg _LT_TAGVAR(ld_shlibs, $1)=no 60039418810dSmrg ;; 60049bd41f2cSmrg 60059418810dSmrg m88k*) 60069418810dSmrg # FIXME: insert proper C++ library support 60079418810dSmrg _LT_TAGVAR(ld_shlibs, $1)=no 60089418810dSmrg ;; 60099bd41f2cSmrg 60109418810dSmrg mvs*) 60119418810dSmrg case $cc_basename in 60129418810dSmrg cxx*) 60139418810dSmrg # FIXME: insert proper C++ library support 60149418810dSmrg _LT_TAGVAR(ld_shlibs, $1)=no 60159418810dSmrg ;; 60169418810dSmrg *) 60179418810dSmrg # FIXME: insert proper C++ library support 60189418810dSmrg _LT_TAGVAR(ld_shlibs, $1)=no 60199418810dSmrg ;; 60209418810dSmrg esac 60219418810dSmrg ;; 60229bd41f2cSmrg 60239418810dSmrg netbsd*) 60249418810dSmrg if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 60259418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 60269418810dSmrg wlarc= 60279418810dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 60289418810dSmrg _LT_TAGVAR(hardcode_direct, $1)=yes 60299418810dSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 60309418810dSmrg fi 60319418810dSmrg # Workaround some broken pre-1.5 toolchains 60329418810dSmrg output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 60339418810dSmrg ;; 60349bd41f2cSmrg 60359418810dSmrg *nto* | *qnx*) 60369418810dSmrg _LT_TAGVAR(ld_shlibs, $1)=yes 60379418810dSmrg ;; 60389bd41f2cSmrg 60399418810dSmrg openbsd2*) 60409418810dSmrg # C++ shared libraries are fairly broken 60419418810dSmrg _LT_TAGVAR(ld_shlibs, $1)=no 60429418810dSmrg ;; 60439bd41f2cSmrg 60449418810dSmrg openbsd*) 60459418810dSmrg if test -f /usr/libexec/ld.so; then 60469418810dSmrg _LT_TAGVAR(hardcode_direct, $1)=yes 60479418810dSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 60489418810dSmrg _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 60499418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 60509418810dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 60519418810dSmrg if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 60529418810dSmrg _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' 60539418810dSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 60549418810dSmrg _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 60559418810dSmrg fi 60569418810dSmrg output_verbose_link_cmd=echo 60579418810dSmrg else 60589418810dSmrg _LT_TAGVAR(ld_shlibs, $1)=no 60599418810dSmrg fi 60609418810dSmrg ;; 60619bd41f2cSmrg 60629418810dSmrg osf3* | osf4* | osf5*) 60639418810dSmrg case $cc_basename in 60649418810dSmrg KCC*) 60659418810dSmrg # Kuck and Associates, Inc. (KAI) C++ Compiler 60669418810dSmrg 60679418810dSmrg # KCC will only create a shared library if the output file 60689418810dSmrg # ends with ".so" (or ".sl" for HP-UX), so rename the library 60699418810dSmrg # to its proper name (with version) after linking. 60709418810dSmrg _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' 60719418810dSmrg 60729418810dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 60739418810dSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)=: 60749418810dSmrg 60759418810dSmrg # Archives containing C++ object files must be created using 60769418810dSmrg # the KAI C++ compiler. 60779418810dSmrg case $host in 60789418810dSmrg osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;; 60799418810dSmrg *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;; 60809418810dSmrg esac 60819418810dSmrg ;; 60829418810dSmrg RCC*) 60839418810dSmrg # Rational C++ 2.4.1 60849418810dSmrg # FIXME: insert proper C++ library support 60859418810dSmrg _LT_TAGVAR(ld_shlibs, $1)=no 60869418810dSmrg ;; 60879418810dSmrg cxx*) 60889418810dSmrg case $host in 60899418810dSmrg osf3*) 60909418810dSmrg _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 60919418810dSmrg _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' 60929418810dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 60939418810dSmrg ;; 60949418810dSmrg *) 60959418810dSmrg _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 60969418810dSmrg _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' 60979418810dSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 60989418810dSmrg echo "-hidden">> $lib.exp~ 60999418810dSmrg $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~ 61009418810dSmrg $RM $lib.exp' 61019418810dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 61029418810dSmrg ;; 61039418810dSmrg esac 61049bd41f2cSmrg 61059418810dSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)=: 61069bd41f2cSmrg 61079418810dSmrg # Commands to make compiler produce verbose output that lists 61089418810dSmrg # what "hidden" libraries, object files and flags are used when 61099418810dSmrg # linking a shared library. 61109418810dSmrg # 61119418810dSmrg # There doesn't appear to be a way to prevent this compiler from 61129418810dSmrg # explicitly linking system object files so we need to strip them 61139418810dSmrg # from the output so that they don't get included in the library 61149418810dSmrg # dependencies. 61159418810dSmrg 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' 61169418810dSmrg ;; 61179418810dSmrg *) 61189418810dSmrg if test "$GXX" = yes && test "$with_gnu_ld" = no; then 61199418810dSmrg _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 61209418810dSmrg case $host in 61219418810dSmrg osf3*) 61229418810dSmrg _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' 61239418810dSmrg ;; 61249418810dSmrg *) 61259418810dSmrg _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' 61269418810dSmrg ;; 61279418810dSmrg esac 61289418810dSmrg 61299418810dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 61309418810dSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)=: 61319418810dSmrg 61329418810dSmrg # Commands to make compiler produce verbose output that lists 61339418810dSmrg # what "hidden" libraries, object files and flags are used when 61349418810dSmrg # linking a shared library. 61359418810dSmrg output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' 61369418810dSmrg 61379418810dSmrg else 61389418810dSmrg # FIXME: insert proper C++ library support 61399418810dSmrg _LT_TAGVAR(ld_shlibs, $1)=no 61409418810dSmrg fi 61419418810dSmrg ;; 61429418810dSmrg esac 61439418810dSmrg ;; 61449bd41f2cSmrg 61459418810dSmrg psos*) 61469418810dSmrg # FIXME: insert proper C++ library support 61479418810dSmrg _LT_TAGVAR(ld_shlibs, $1)=no 61489418810dSmrg ;; 61499bd41f2cSmrg 61509418810dSmrg sunos4*) 61519418810dSmrg case $cc_basename in 61529418810dSmrg CC*) 61539418810dSmrg # Sun C++ 4.x 61549418810dSmrg # FIXME: insert proper C++ library support 61559418810dSmrg _LT_TAGVAR(ld_shlibs, $1)=no 61569418810dSmrg ;; 61579418810dSmrg lcc*) 61589418810dSmrg # Lucid 61599418810dSmrg # FIXME: insert proper C++ library support 61609418810dSmrg _LT_TAGVAR(ld_shlibs, $1)=no 61619418810dSmrg ;; 61629418810dSmrg *) 61639418810dSmrg # FIXME: insert proper C++ library support 61649418810dSmrg _LT_TAGVAR(ld_shlibs, $1)=no 61659418810dSmrg ;; 61669418810dSmrg esac 61679418810dSmrg ;; 61689bd41f2cSmrg 61699418810dSmrg solaris*) 61709418810dSmrg case $cc_basename in 61719418810dSmrg CC*) 61729418810dSmrg # Sun C++ 4.2, 5.x and Centerline C++ 61739418810dSmrg _LT_TAGVAR(archive_cmds_need_lc,$1)=yes 61749418810dSmrg _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' 61759418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 61769418810dSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 61779418810dSmrg $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' 61789418810dSmrg 61799418810dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 61809418810dSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 61819418810dSmrg case $host_os in 61829418810dSmrg solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 61839418810dSmrg *) 61849418810dSmrg # The compiler driver will combine and reorder linker options, 61859418810dSmrg # but understands `-z linker_flag'. 61869418810dSmrg # Supported since Solaris 2.6 (maybe 2.5.1?) 61879418810dSmrg _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' 61889418810dSmrg ;; 61899418810dSmrg esac 61909418810dSmrg _LT_TAGVAR(link_all_deplibs, $1)=yes 61919bd41f2cSmrg 61929418810dSmrg output_verbose_link_cmd='echo' 61939bd41f2cSmrg 61949418810dSmrg # Archives containing C++ object files must be created using 61959418810dSmrg # "CC -xar", where "CC" is the Sun C++ compiler. This is 61969418810dSmrg # necessary to make sure instantiated templates are included 61979418810dSmrg # in the archive. 61989418810dSmrg _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' 61999418810dSmrg ;; 62009418810dSmrg gcx*) 62019418810dSmrg # Green Hills C++ Compiler 62029418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 62039bd41f2cSmrg 62049418810dSmrg # The C++ compiler must be used to create the archive. 62059418810dSmrg _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 62069418810dSmrg ;; 62079418810dSmrg *) 62089418810dSmrg # GNU C++ compiler with Solaris linker 62099418810dSmrg if test "$GXX" = yes && test "$with_gnu_ld" = no; then 62109418810dSmrg _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs' 62119418810dSmrg if $CC --version | $GREP -v '^2\.7' > /dev/null; then 62129418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 62139418810dSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 62149418810dSmrg $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 62159418810dSmrg 62169418810dSmrg # Commands to make compiler produce verbose output that lists 62179418810dSmrg # what "hidden" libraries, object files and flags are used when 62189418810dSmrg # linking a shared library. 62199418810dSmrg output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' 62209418810dSmrg else 62219418810dSmrg # g++ 2.7 appears to require `-G' NOT `-shared' on this 62229418810dSmrg # platform. 62239418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 62249418810dSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 62259418810dSmrg $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 62269418810dSmrg 62279418810dSmrg # Commands to make compiler produce verbose output that lists 62289418810dSmrg # what "hidden" libraries, object files and flags are used when 62299418810dSmrg # linking a shared library. 62309418810dSmrg output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' 62319418810dSmrg fi 62329418810dSmrg 62339418810dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' 62349418810dSmrg case $host_os in 62359418810dSmrg solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 62369418810dSmrg *) 62379418810dSmrg _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 62389418810dSmrg ;; 62399418810dSmrg esac 62409418810dSmrg fi 62419418810dSmrg ;; 62429418810dSmrg esac 62439418810dSmrg ;; 62449bd41f2cSmrg 62459418810dSmrg sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) 62469418810dSmrg _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' 62479418810dSmrg _LT_TAGVAR(archive_cmds_need_lc, $1)=no 62489418810dSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 62499418810dSmrg runpath_var='LD_RUN_PATH' 62509bd41f2cSmrg 62519418810dSmrg case $cc_basename in 62529418810dSmrg CC*) 62539418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 62549418810dSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 62559418810dSmrg ;; 62569418810dSmrg *) 62579418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 62589418810dSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 62599418810dSmrg ;; 62609418810dSmrg esac 62619418810dSmrg ;; 62629bd41f2cSmrg 62639418810dSmrg sysv5* | sco3.2v5* | sco5v6*) 62649418810dSmrg # Note: We can NOT use -z defs as we might desire, because we do not 62659418810dSmrg # link with -lc, and that would cause any symbols used from libc to 62669418810dSmrg # always be unresolved, which means just about no library would 62679418810dSmrg # ever link correctly. If we're not using GNU ld we use -z text 62689418810dSmrg # though, which does catch some bad symbols but isn't as heavy-handed 62699418810dSmrg # as -z defs. 62709418810dSmrg _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' 62719418810dSmrg _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' 62729418810dSmrg _LT_TAGVAR(archive_cmds_need_lc, $1)=no 62739418810dSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 62749418810dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir' 62759418810dSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 62769418810dSmrg _LT_TAGVAR(link_all_deplibs, $1)=yes 62779418810dSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' 62789418810dSmrg runpath_var='LD_RUN_PATH' 62799bd41f2cSmrg 62809418810dSmrg case $cc_basename in 62819418810dSmrg CC*) 62829418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 62839418810dSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 62849418810dSmrg ;; 62859418810dSmrg *) 62869418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 62879418810dSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 62889418810dSmrg ;; 62899418810dSmrg esac 62909418810dSmrg ;; 62919bd41f2cSmrg 62929418810dSmrg tandem*) 62939418810dSmrg case $cc_basename in 62949418810dSmrg NCC*) 62959418810dSmrg # NonStop-UX NCC 3.20 62969418810dSmrg # FIXME: insert proper C++ library support 62979418810dSmrg _LT_TAGVAR(ld_shlibs, $1)=no 62989418810dSmrg ;; 62999418810dSmrg *) 63009418810dSmrg # FIXME: insert proper C++ library support 63019418810dSmrg _LT_TAGVAR(ld_shlibs, $1)=no 63029418810dSmrg ;; 63039418810dSmrg esac 63049418810dSmrg ;; 63059bd41f2cSmrg 63069418810dSmrg vxworks*) 63079418810dSmrg # FIXME: insert proper C++ library support 63089418810dSmrg _LT_TAGVAR(ld_shlibs, $1)=no 63099418810dSmrg ;; 63109bd41f2cSmrg 63119418810dSmrg *) 63129418810dSmrg # FIXME: insert proper C++ library support 63139418810dSmrg _LT_TAGVAR(ld_shlibs, $1)=no 63149418810dSmrg ;; 63159418810dSmrg esac 63169bd41f2cSmrg 63179418810dSmrg AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) 63189418810dSmrg test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no 63199418810dSmrg 63209418810dSmrg _LT_TAGVAR(GCC, $1)="$GXX" 63219418810dSmrg _LT_TAGVAR(LD, $1)="$LD" 63229418810dSmrg 63239418810dSmrg ## CAVEAT EMPTOR: 63249418810dSmrg ## There is no encapsulation within the following macros, do not change 63259418810dSmrg ## the running order or otherwise move them around unless you know exactly 63269418810dSmrg ## what you are doing... 63279418810dSmrg _LT_SYS_HIDDEN_LIBDEPS($1) 63289418810dSmrg _LT_COMPILER_PIC($1) 63299418810dSmrg _LT_COMPILER_C_O($1) 63309418810dSmrg _LT_COMPILER_FILE_LOCKS($1) 63319418810dSmrg _LT_LINKER_SHLIBS($1) 63329418810dSmrg _LT_SYS_DYNAMIC_LINKER($1) 63339418810dSmrg _LT_LINKER_HARDCODE_LIBPATH($1) 63349418810dSmrg 63359418810dSmrg _LT_CONFIG($1) 63369418810dSmrg fi # test -n "$compiler" 63379418810dSmrg 63389418810dSmrg CC=$lt_save_CC 63399418810dSmrg LDCXX=$LD 63409418810dSmrg LD=$lt_save_LD 63419418810dSmrg GCC=$lt_save_GCC 63429418810dSmrg with_gnu_ld=$lt_save_with_gnu_ld 63439418810dSmrg lt_cv_path_LDCXX=$lt_cv_path_LD 63449418810dSmrg lt_cv_path_LD=$lt_save_path_LD 63459418810dSmrg lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 63469418810dSmrg lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 63479418810dSmrgfi # test "$_lt_caught_CXX_error" != yes 63489bd41f2cSmrg 63499418810dSmrgAC_LANG_POP 63509418810dSmrg])# _LT_LANG_CXX_CONFIG 63519bd41f2cSmrg 63529bd41f2cSmrg 63539418810dSmrg# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME]) 63549418810dSmrg# --------------------------------- 63559418810dSmrg# Figure out "hidden" library dependencies from verbose 63569418810dSmrg# compiler output when linking a shared library. 63579418810dSmrg# Parse the compiler output and extract the necessary 63589418810dSmrg# objects, libraries and library flags. 63599418810dSmrgm4_defun([_LT_SYS_HIDDEN_LIBDEPS], 63609418810dSmrg[m4_require([_LT_FILEUTILS_DEFAULTS])dnl 63619418810dSmrg# Dependencies to place before and after the object being linked: 63629418810dSmrg_LT_TAGVAR(predep_objects, $1)= 63639418810dSmrg_LT_TAGVAR(postdep_objects, $1)= 63649418810dSmrg_LT_TAGVAR(predeps, $1)= 63659418810dSmrg_LT_TAGVAR(postdeps, $1)= 63669418810dSmrg_LT_TAGVAR(compiler_lib_search_path, $1)= 63679bd41f2cSmrg 63689418810dSmrgdnl we can't use the lt_simple_compile_test_code here, 63699418810dSmrgdnl because it contains code intended for an executable, 63709418810dSmrgdnl not a library. It's possible we should let each 63719418810dSmrgdnl tag define a new lt_????_link_test_code variable, 63729418810dSmrgdnl but it's only used here... 63739418810dSmrgm4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF 63749418810dSmrgint a; 63759418810dSmrgvoid foo (void) { a = 0; } 63769418810dSmrg_LT_EOF 63779418810dSmrg], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF 63789418810dSmrgclass Foo 63799418810dSmrg{ 63809418810dSmrgpublic: 63819418810dSmrg Foo (void) { a = 0; } 63829418810dSmrgprivate: 63839418810dSmrg int a; 63849418810dSmrg}; 63859418810dSmrg_LT_EOF 63869418810dSmrg], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF 63879418810dSmrg subroutine foo 63889418810dSmrg implicit none 63899418810dSmrg integer*4 a 63909418810dSmrg a=0 63919418810dSmrg return 63929418810dSmrg end 63939418810dSmrg_LT_EOF 63949418810dSmrg], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF 63959418810dSmrg subroutine foo 63969418810dSmrg implicit none 63979418810dSmrg integer a 63989418810dSmrg a=0 63999418810dSmrg return 64009418810dSmrg end 64019418810dSmrg_LT_EOF 64029418810dSmrg], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF 64039418810dSmrgpublic class foo { 64049418810dSmrg private int a; 64059418810dSmrg public void bar (void) { 64069418810dSmrg a = 0; 64079418810dSmrg } 64089418810dSmrg}; 64099418810dSmrg_LT_EOF 64109418810dSmrg]) 64119418810dSmrgdnl Parse the compiler output and extract the necessary 64129418810dSmrgdnl objects, libraries and library flags. 64139418810dSmrgif AC_TRY_EVAL(ac_compile); then 64149418810dSmrg # Parse the compiler output and extract the necessary 64159418810dSmrg # objects, libraries and library flags. 64169bd41f2cSmrg 64179418810dSmrg # Sentinel used to keep track of whether or not we are before 64189418810dSmrg # the conftest object file. 64199418810dSmrg pre_test_object_deps_done=no 64209bd41f2cSmrg 64219418810dSmrg for p in `eval "$output_verbose_link_cmd"`; do 64229418810dSmrg case $p in 64239bd41f2cSmrg 64249418810dSmrg -L* | -R* | -l*) 64259418810dSmrg # Some compilers place space between "-{L,R}" and the path. 64269418810dSmrg # Remove the space. 64279418810dSmrg if test $p = "-L" || 64289418810dSmrg test $p = "-R"; then 64299418810dSmrg prev=$p 64309418810dSmrg continue 64319418810dSmrg else 64329418810dSmrg prev= 64339418810dSmrg fi 64349bd41f2cSmrg 64359418810dSmrg if test "$pre_test_object_deps_done" = no; then 64369418810dSmrg case $p in 64379418810dSmrg -L* | -R*) 64389418810dSmrg # Internal compiler library paths should come after those 64399418810dSmrg # provided the user. The postdeps already come after the 64409418810dSmrg # user supplied libs so there is no need to process them. 64419418810dSmrg if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then 64429418810dSmrg _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}" 64439418810dSmrg else 64449418810dSmrg _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}" 64459418810dSmrg fi 64469418810dSmrg ;; 64479418810dSmrg # The "-l" case would never come before the object being 64489418810dSmrg # linked, so don't bother handling this case. 64499418810dSmrg esac 64509418810dSmrg else 64519418810dSmrg if test -z "$_LT_TAGVAR(postdeps, $1)"; then 64529418810dSmrg _LT_TAGVAR(postdeps, $1)="${prev}${p}" 64539418810dSmrg else 64549418810dSmrg _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}" 64559418810dSmrg fi 64569418810dSmrg fi 64579418810dSmrg ;; 64589bd41f2cSmrg 64599418810dSmrg *.$objext) 64609418810dSmrg # This assumes that the test object file only shows up 64619418810dSmrg # once in the compiler output. 64629418810dSmrg if test "$p" = "conftest.$objext"; then 64639418810dSmrg pre_test_object_deps_done=yes 64649418810dSmrg continue 64659418810dSmrg fi 64669bd41f2cSmrg 64679418810dSmrg if test "$pre_test_object_deps_done" = no; then 64689418810dSmrg if test -z "$_LT_TAGVAR(predep_objects, $1)"; then 64699418810dSmrg _LT_TAGVAR(predep_objects, $1)="$p" 64709418810dSmrg else 64719418810dSmrg _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p" 64729418810dSmrg fi 64739418810dSmrg else 64749418810dSmrg if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then 64759418810dSmrg _LT_TAGVAR(postdep_objects, $1)="$p" 64769418810dSmrg else 64779418810dSmrg _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p" 64789418810dSmrg fi 64799418810dSmrg fi 64809418810dSmrg ;; 64819bd41f2cSmrg 64829418810dSmrg *) ;; # Ignore the rest. 64839bd41f2cSmrg 64849418810dSmrg esac 64859418810dSmrg done 64869bd41f2cSmrg 64879418810dSmrg # Clean up. 64889418810dSmrg rm -f a.out a.exe 64899bd41f2cSmrgelse 64909418810dSmrg echo "libtool.m4: error: problem compiling $1 test program" 64919bd41f2cSmrgfi 64929bd41f2cSmrg 64939418810dSmrg$RM -f confest.$objext 64949bd41f2cSmrg 64959418810dSmrg# PORTME: override above test on systems where it is broken 64969418810dSmrgm4_if([$1], [CXX], 64979418810dSmrg[case $host_os in 64989418810dSmrginterix[[3-9]]*) 64999418810dSmrg # Interix 3.5 installs completely hosed .la files for C++, so rather than 65009418810dSmrg # hack all around it, let's just trust "g++" to DTRT. 65019418810dSmrg _LT_TAGVAR(predep_objects,$1)= 65029418810dSmrg _LT_TAGVAR(postdep_objects,$1)= 65039418810dSmrg _LT_TAGVAR(postdeps,$1)= 65049418810dSmrg ;; 65059bd41f2cSmrg 65069418810dSmrglinux*) 65079418810dSmrg case `$CC -V 2>&1 | sed 5q` in 65089418810dSmrg *Sun\ C*) 65099418810dSmrg # Sun C++ 5.9 65109bd41f2cSmrg 65119418810dSmrg # The more standards-conforming stlport4 library is 65129418810dSmrg # incompatible with the Cstd library. Avoid specifying 65139418810dSmrg # it if it's in CXXFLAGS. Ignore libCrun as 65149418810dSmrg # -library=stlport4 depends on it. 65159418810dSmrg case " $CXX $CXXFLAGS " in 65169418810dSmrg *" -library=stlport4 "*) 65179418810dSmrg solaris_use_stlport4=yes 65189418810dSmrg ;; 65199418810dSmrg esac 65209bd41f2cSmrg 65219418810dSmrg if test "$solaris_use_stlport4" != yes; then 65229418810dSmrg _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' 65239418810dSmrg fi 65249418810dSmrg ;; 65259418810dSmrg esac 65269418810dSmrg ;; 65279418810dSmrg 65289418810dSmrgsolaris*) 65299418810dSmrg case $cc_basename in 65309418810dSmrg CC*) 65319418810dSmrg # The more standards-conforming stlport4 library is 65329418810dSmrg # incompatible with the Cstd library. Avoid specifying 65339418810dSmrg # it if it's in CXXFLAGS. Ignore libCrun as 65349418810dSmrg # -library=stlport4 depends on it. 65359418810dSmrg case " $CXX $CXXFLAGS " in 65369418810dSmrg *" -library=stlport4 "*) 65379418810dSmrg solaris_use_stlport4=yes 65389418810dSmrg ;; 65399418810dSmrg esac 65409bd41f2cSmrg 65419418810dSmrg # Adding this requires a known-good setup of shared libraries for 65429418810dSmrg # Sun compiler versions before 5.6, else PIC objects from an old 65439418810dSmrg # archive will be linked into the output, leading to subtle bugs. 65449418810dSmrg if test "$solaris_use_stlport4" != yes; then 65459418810dSmrg _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' 65469418810dSmrg fi 65479418810dSmrg ;; 65489418810dSmrg esac 65499418810dSmrg ;; 65509418810dSmrgesac 65519418810dSmrg]) 65529bd41f2cSmrg 65539418810dSmrgcase " $_LT_TAGVAR(postdeps, $1) " in 65549418810dSmrg*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;; 65559418810dSmrgesac 65569418810dSmrg _LT_TAGVAR(compiler_lib_search_dirs, $1)= 65579418810dSmrgif test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then 65589418810dSmrg _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 65599418810dSmrgfi 65609418810dSmrg_LT_TAGDECL([], [compiler_lib_search_dirs], [1], 65619418810dSmrg [The directories searched by this compiler when creating a shared library]) 65629418810dSmrg_LT_TAGDECL([], [predep_objects], [1], 65639418810dSmrg [Dependencies to place before and after the objects being linked to 65649418810dSmrg create a shared library]) 65659418810dSmrg_LT_TAGDECL([], [postdep_objects], [1]) 65669418810dSmrg_LT_TAGDECL([], [predeps], [1]) 65679418810dSmrg_LT_TAGDECL([], [postdeps], [1]) 65689418810dSmrg_LT_TAGDECL([], [compiler_lib_search_path], [1], 65699418810dSmrg [The library search path used internally by the compiler when linking 65709418810dSmrg a shared library]) 65719418810dSmrg])# _LT_SYS_HIDDEN_LIBDEPS 65729418810dSmrg 65739418810dSmrg 65749418810dSmrg# _LT_PROG_F77 65759418810dSmrg# ------------ 65769418810dSmrg# Since AC_PROG_F77 is broken, in that it returns the empty string 65779418810dSmrg# if there is no fortran compiler, we have our own version here. 65789418810dSmrgm4_defun([_LT_PROG_F77], 65799bd41f2cSmrg[ 65809418810dSmrgpushdef([AC_MSG_ERROR], [_lt_disable_F77=yes]) 65819418810dSmrgAC_PROG_F77 65829418810dSmrgif test -z "$F77" || test "X$F77" = "Xno"; then 65839418810dSmrg _lt_disable_F77=yes 65849418810dSmrgfi 65859418810dSmrgpopdef([AC_MSG_ERROR]) 65869418810dSmrg])# _LT_PROG_F77 65879bd41f2cSmrg 65889418810dSmrgdnl aclocal-1.4 backwards compatibility: 65899418810dSmrgdnl AC_DEFUN([_LT_PROG_F77], []) 65909bd41f2cSmrg 65919bd41f2cSmrg 65929418810dSmrg# _LT_LANG_F77_CONFIG([TAG]) 65939418810dSmrg# -------------------------- 65949418810dSmrg# Ensure that the configuration variables for a Fortran 77 compiler are 65959418810dSmrg# suitably defined. These variables are subsequently used by _LT_CONFIG 65969418810dSmrg# to write the compiler configuration to `libtool'. 65979418810dSmrgm4_defun([_LT_LANG_F77_CONFIG], 65989418810dSmrg[AC_REQUIRE([_LT_PROG_F77])dnl 65999418810dSmrgAC_LANG_PUSH(Fortran 77) 66009bd41f2cSmrg 66019418810dSmrg_LT_TAGVAR(archive_cmds_need_lc, $1)=no 66029418810dSmrg_LT_TAGVAR(allow_undefined_flag, $1)= 66039418810dSmrg_LT_TAGVAR(always_export_symbols, $1)=no 66049418810dSmrg_LT_TAGVAR(archive_expsym_cmds, $1)= 66059418810dSmrg_LT_TAGVAR(export_dynamic_flag_spec, $1)= 66069418810dSmrg_LT_TAGVAR(hardcode_direct, $1)=no 66079418810dSmrg_LT_TAGVAR(hardcode_direct_absolute, $1)=no 66089418810dSmrg_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 66099418810dSmrg_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= 66109418810dSmrg_LT_TAGVAR(hardcode_libdir_separator, $1)= 66119418810dSmrg_LT_TAGVAR(hardcode_minus_L, $1)=no 66129418810dSmrg_LT_TAGVAR(hardcode_automatic, $1)=no 66139418810dSmrg_LT_TAGVAR(inherit_rpath, $1)=no 66149418810dSmrg_LT_TAGVAR(module_cmds, $1)= 66159418810dSmrg_LT_TAGVAR(module_expsym_cmds, $1)= 66169418810dSmrg_LT_TAGVAR(link_all_deplibs, $1)=unknown 66179418810dSmrg_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 66189418810dSmrg_LT_TAGVAR(no_undefined_flag, $1)= 66199418810dSmrg_LT_TAGVAR(whole_archive_flag_spec, $1)= 66209418810dSmrg_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no 66219bd41f2cSmrg 66229418810dSmrg# Source file extension for f77 test sources. 66239418810dSmrgac_ext=f 66249bd41f2cSmrg 66259418810dSmrg# Object file extension for compiled f77 test sources. 66269418810dSmrgobjext=o 66279418810dSmrg_LT_TAGVAR(objext, $1)=$objext 66289418810dSmrg 66299418810dSmrg# No sense in running all these tests if we already determined that 66309418810dSmrg# the F77 compiler isn't working. Some variables (like enable_shared) 66319418810dSmrg# are currently assumed to apply to all compilers on this platform, 66329418810dSmrg# and will be corrupted by setting them based on a non-working compiler. 66339418810dSmrgif test "$_lt_disable_F77" != yes; then 66349418810dSmrg # Code to be used in simple compile tests 66359418810dSmrg lt_simple_compile_test_code="\ 66369418810dSmrg subroutine t 66379418810dSmrg return 66389418810dSmrg end 66399418810dSmrg" 66409bd41f2cSmrg 66419418810dSmrg # Code to be used in simple link tests 66429418810dSmrg lt_simple_link_test_code="\ 66439418810dSmrg program t 66449418810dSmrg end 66459418810dSmrg" 66469bd41f2cSmrg 66479418810dSmrg # ltmain only uses $CC for tagged configurations so make sure $CC is set. 66489418810dSmrg _LT_TAG_COMPILER 66499bd41f2cSmrg 66509418810dSmrg # save warnings/boilerplate of simple test code 66519418810dSmrg _LT_COMPILER_BOILERPLATE 66529418810dSmrg _LT_LINKER_BOILERPLATE 66539bd41f2cSmrg 66549418810dSmrg # Allow CC to be a program name with arguments. 66559418810dSmrg lt_save_CC="$CC" 66569418810dSmrg lt_save_GCC=$GCC 66579418810dSmrg CC=${F77-"f77"} 66589418810dSmrg compiler=$CC 66599418810dSmrg _LT_TAGVAR(compiler, $1)=$CC 66609418810dSmrg _LT_CC_BASENAME([$compiler]) 66619418810dSmrg GCC=$G77 66629418810dSmrg if test -n "$compiler"; then 66639418810dSmrg AC_MSG_CHECKING([if libtool supports shared libraries]) 66649418810dSmrg AC_MSG_RESULT([$can_build_shared]) 66659bd41f2cSmrg 66669418810dSmrg AC_MSG_CHECKING([whether to build shared libraries]) 66679418810dSmrg test "$can_build_shared" = "no" && enable_shared=no 66689bd41f2cSmrg 66699418810dSmrg # On AIX, shared libraries and static libraries use the same namespace, and 66709418810dSmrg # are all built from PIC. 66719418810dSmrg case $host_os in 66729418810dSmrg aix3*) 66739418810dSmrg test "$enable_shared" = yes && enable_static=no 66749418810dSmrg if test -n "$RANLIB"; then 66759418810dSmrg archive_cmds="$archive_cmds~\$RANLIB \$lib" 66769418810dSmrg postinstall_cmds='$RANLIB $lib' 66779418810dSmrg fi 66789418810dSmrg ;; 66799418810dSmrg aix[[4-9]]*) 66809418810dSmrg if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 66819418810dSmrg test "$enable_shared" = yes && enable_static=no 66829418810dSmrg fi 66839418810dSmrg ;; 66849418810dSmrg esac 66859418810dSmrg AC_MSG_RESULT([$enable_shared]) 66869418810dSmrg 66879418810dSmrg AC_MSG_CHECKING([whether to build static libraries]) 66889418810dSmrg # Make sure either enable_shared or enable_static is yes. 66899418810dSmrg test "$enable_shared" = yes || enable_static=yes 66909418810dSmrg AC_MSG_RESULT([$enable_static]) 66919418810dSmrg 66929418810dSmrg _LT_TAGVAR(GCC, $1)="$G77" 66939418810dSmrg _LT_TAGVAR(LD, $1)="$LD" 66949418810dSmrg 66959418810dSmrg ## CAVEAT EMPTOR: 66969418810dSmrg ## There is no encapsulation within the following macros, do not change 66979418810dSmrg ## the running order or otherwise move them around unless you know exactly 66989418810dSmrg ## what you are doing... 66999418810dSmrg _LT_COMPILER_PIC($1) 67009418810dSmrg _LT_COMPILER_C_O($1) 67019418810dSmrg _LT_COMPILER_FILE_LOCKS($1) 67029418810dSmrg _LT_LINKER_SHLIBS($1) 67039418810dSmrg _LT_SYS_DYNAMIC_LINKER($1) 67049418810dSmrg _LT_LINKER_HARDCODE_LIBPATH($1) 67059418810dSmrg 67069418810dSmrg _LT_CONFIG($1) 67079418810dSmrg fi # test -n "$compiler" 67089418810dSmrg 67099418810dSmrg GCC=$lt_save_GCC 67109418810dSmrg CC="$lt_save_CC" 67119418810dSmrgfi # test "$_lt_disable_F77" != yes 67129bd41f2cSmrg 67139418810dSmrgAC_LANG_POP 67149418810dSmrg])# _LT_LANG_F77_CONFIG 67159bd41f2cSmrg 67169bd41f2cSmrg 67179418810dSmrg# _LT_PROG_FC 67189418810dSmrg# ----------- 67199418810dSmrg# Since AC_PROG_FC is broken, in that it returns the empty string 67209418810dSmrg# if there is no fortran compiler, we have our own version here. 67219418810dSmrgm4_defun([_LT_PROG_FC], 67229418810dSmrg[ 67239418810dSmrgpushdef([AC_MSG_ERROR], [_lt_disable_FC=yes]) 67249418810dSmrgAC_PROG_FC 67259418810dSmrgif test -z "$FC" || test "X$FC" = "Xno"; then 67269418810dSmrg _lt_disable_FC=yes 67279418810dSmrgfi 67289418810dSmrgpopdef([AC_MSG_ERROR]) 67299418810dSmrg])# _LT_PROG_FC 67309bd41f2cSmrg 67319418810dSmrgdnl aclocal-1.4 backwards compatibility: 67329418810dSmrgdnl AC_DEFUN([_LT_PROG_FC], []) 67339bd41f2cSmrg 67349bd41f2cSmrg 67359418810dSmrg# _LT_LANG_FC_CONFIG([TAG]) 67369418810dSmrg# ------------------------- 67379418810dSmrg# Ensure that the configuration variables for a Fortran compiler are 67389418810dSmrg# suitably defined. These variables are subsequently used by _LT_CONFIG 67399418810dSmrg# to write the compiler configuration to `libtool'. 67409418810dSmrgm4_defun([_LT_LANG_FC_CONFIG], 67419418810dSmrg[AC_REQUIRE([_LT_PROG_FC])dnl 67429418810dSmrgAC_LANG_PUSH(Fortran) 67439418810dSmrg 67449418810dSmrg_LT_TAGVAR(archive_cmds_need_lc, $1)=no 67459418810dSmrg_LT_TAGVAR(allow_undefined_flag, $1)= 67469418810dSmrg_LT_TAGVAR(always_export_symbols, $1)=no 67479418810dSmrg_LT_TAGVAR(archive_expsym_cmds, $1)= 67489418810dSmrg_LT_TAGVAR(export_dynamic_flag_spec, $1)= 67499418810dSmrg_LT_TAGVAR(hardcode_direct, $1)=no 67509418810dSmrg_LT_TAGVAR(hardcode_direct_absolute, $1)=no 67519418810dSmrg_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 67529418810dSmrg_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= 67539418810dSmrg_LT_TAGVAR(hardcode_libdir_separator, $1)= 67549418810dSmrg_LT_TAGVAR(hardcode_minus_L, $1)=no 67559418810dSmrg_LT_TAGVAR(hardcode_automatic, $1)=no 67569418810dSmrg_LT_TAGVAR(inherit_rpath, $1)=no 67579418810dSmrg_LT_TAGVAR(module_cmds, $1)= 67589418810dSmrg_LT_TAGVAR(module_expsym_cmds, $1)= 67599418810dSmrg_LT_TAGVAR(link_all_deplibs, $1)=unknown 67609418810dSmrg_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 67619418810dSmrg_LT_TAGVAR(no_undefined_flag, $1)= 67629418810dSmrg_LT_TAGVAR(whole_archive_flag_spec, $1)= 67639418810dSmrg_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no 67649418810dSmrg 67659418810dSmrg# Source file extension for fc test sources. 67669418810dSmrgac_ext=${ac_fc_srcext-f} 67679418810dSmrg 67689418810dSmrg# Object file extension for compiled fc test sources. 67699418810dSmrgobjext=o 67709418810dSmrg_LT_TAGVAR(objext, $1)=$objext 67719418810dSmrg 67729418810dSmrg# No sense in running all these tests if we already determined that 67739418810dSmrg# the FC compiler isn't working. Some variables (like enable_shared) 67749418810dSmrg# are currently assumed to apply to all compilers on this platform, 67759418810dSmrg# and will be corrupted by setting them based on a non-working compiler. 67769418810dSmrgif test "$_lt_disable_FC" != yes; then 67779418810dSmrg # Code to be used in simple compile tests 67789418810dSmrg lt_simple_compile_test_code="\ 67799418810dSmrg subroutine t 67809418810dSmrg return 67819418810dSmrg end 67829418810dSmrg" 67839bd41f2cSmrg 67849418810dSmrg # Code to be used in simple link tests 67859418810dSmrg lt_simple_link_test_code="\ 67869418810dSmrg program t 67879418810dSmrg end 67889418810dSmrg" 67899bd41f2cSmrg 67909418810dSmrg # ltmain only uses $CC for tagged configurations so make sure $CC is set. 67919418810dSmrg _LT_TAG_COMPILER 67929bd41f2cSmrg 67939418810dSmrg # save warnings/boilerplate of simple test code 67949418810dSmrg _LT_COMPILER_BOILERPLATE 67959418810dSmrg _LT_LINKER_BOILERPLATE 67969bd41f2cSmrg 67979418810dSmrg # Allow CC to be a program name with arguments. 67989418810dSmrg lt_save_CC="$CC" 67999418810dSmrg lt_save_GCC=$GCC 68009418810dSmrg CC=${FC-"f95"} 68019418810dSmrg compiler=$CC 68029418810dSmrg GCC=$ac_cv_fc_compiler_gnu 68039418810dSmrg 68049418810dSmrg _LT_TAGVAR(compiler, $1)=$CC 68059418810dSmrg _LT_CC_BASENAME([$compiler]) 68069418810dSmrg 68079418810dSmrg if test -n "$compiler"; then 68089418810dSmrg AC_MSG_CHECKING([if libtool supports shared libraries]) 68099418810dSmrg AC_MSG_RESULT([$can_build_shared]) 68109bd41f2cSmrg 68119418810dSmrg AC_MSG_CHECKING([whether to build shared libraries]) 68129418810dSmrg test "$can_build_shared" = "no" && enable_shared=no 68139418810dSmrg 68149418810dSmrg # On AIX, shared libraries and static libraries use the same namespace, and 68159418810dSmrg # are all built from PIC. 68169bd41f2cSmrg case $host_os in 68179418810dSmrg aix3*) 68189418810dSmrg test "$enable_shared" = yes && enable_static=no 68199418810dSmrg if test -n "$RANLIB"; then 68209418810dSmrg archive_cmds="$archive_cmds~\$RANLIB \$lib" 68219418810dSmrg postinstall_cmds='$RANLIB $lib' 68229418810dSmrg fi 68239418810dSmrg ;; 6824d075918cSmrg aix[[4-9]]*) 68259418810dSmrg if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 68269418810dSmrg test "$enable_shared" = yes && enable_static=no 68279bd41f2cSmrg fi 68289418810dSmrg ;; 68299bd41f2cSmrg esac 68309418810dSmrg AC_MSG_RESULT([$enable_shared]) 68319418810dSmrg 68329418810dSmrg AC_MSG_CHECKING([whether to build static libraries]) 68339418810dSmrg # Make sure either enable_shared or enable_static is yes. 68349418810dSmrg test "$enable_shared" = yes || enable_static=yes 68359418810dSmrg AC_MSG_RESULT([$enable_static]) 68369418810dSmrg 68379418810dSmrg _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu" 68389418810dSmrg _LT_TAGVAR(LD, $1)="$LD" 68399418810dSmrg 68409418810dSmrg ## CAVEAT EMPTOR: 68419418810dSmrg ## There is no encapsulation within the following macros, do not change 68429418810dSmrg ## the running order or otherwise move them around unless you know exactly 68439418810dSmrg ## what you are doing... 68449418810dSmrg _LT_SYS_HIDDEN_LIBDEPS($1) 68459418810dSmrg _LT_COMPILER_PIC($1) 68469418810dSmrg _LT_COMPILER_C_O($1) 68479418810dSmrg _LT_COMPILER_FILE_LOCKS($1) 68489418810dSmrg _LT_LINKER_SHLIBS($1) 68499418810dSmrg _LT_SYS_DYNAMIC_LINKER($1) 68509418810dSmrg _LT_LINKER_HARDCODE_LIBPATH($1) 68519418810dSmrg 68529418810dSmrg _LT_CONFIG($1) 68539418810dSmrg fi # test -n "$compiler" 68549418810dSmrg 68559418810dSmrg GCC=$lt_save_GCC 68569418810dSmrg CC="$lt_save_CC" 68579418810dSmrgfi # test "$_lt_disable_FC" != yes 68589bd41f2cSmrg 68599418810dSmrgAC_LANG_POP 68609418810dSmrg])# _LT_LANG_FC_CONFIG 68619bd41f2cSmrg 68629bd41f2cSmrg 68639418810dSmrg# _LT_LANG_GCJ_CONFIG([TAG]) 68649418810dSmrg# -------------------------- 68659418810dSmrg# Ensure that the configuration variables for the GNU Java Compiler compiler 68669418810dSmrg# are suitably defined. These variables are subsequently used by _LT_CONFIG 68679418810dSmrg# to write the compiler configuration to `libtool'. 68689418810dSmrgm4_defun([_LT_LANG_GCJ_CONFIG], 68699418810dSmrg[AC_REQUIRE([LT_PROG_GCJ])dnl 68709418810dSmrgAC_LANG_SAVE 68719bd41f2cSmrg 68729418810dSmrg# Source file extension for Java test sources. 68739418810dSmrgac_ext=java 68749bd41f2cSmrg 68759418810dSmrg# Object file extension for compiled Java test sources. 68769418810dSmrgobjext=o 68779418810dSmrg_LT_TAGVAR(objext, $1)=$objext 68789bd41f2cSmrg 68799418810dSmrg# Code to be used in simple compile tests 68809418810dSmrglt_simple_compile_test_code="class foo {}" 68819bd41f2cSmrg 68829418810dSmrg# Code to be used in simple link tests 68839418810dSmrglt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }' 68849bd41f2cSmrg 68859418810dSmrg# ltmain only uses $CC for tagged configurations so make sure $CC is set. 68869418810dSmrg_LT_TAG_COMPILER 68879bd41f2cSmrg 68889418810dSmrg# save warnings/boilerplate of simple test code 68899418810dSmrg_LT_COMPILER_BOILERPLATE 68909418810dSmrg_LT_LINKER_BOILERPLATE 68919418810dSmrg 68929418810dSmrg# Allow CC to be a program name with arguments. 68939418810dSmrglt_save_CC="$CC" 68949418810dSmrglt_save_GCC=$GCC 68959418810dSmrgGCC=yes 68969418810dSmrgCC=${GCJ-"gcj"} 68979418810dSmrgcompiler=$CC 68989418810dSmrg_LT_TAGVAR(compiler, $1)=$CC 68999418810dSmrg_LT_TAGVAR(LD, $1)="$LD" 69009418810dSmrg_LT_CC_BASENAME([$compiler]) 69019418810dSmrg 69029418810dSmrg# GCJ did not exist at the time GCC didn't implicitly link libc in. 69039418810dSmrg_LT_TAGVAR(archive_cmds_need_lc, $1)=no 69049418810dSmrg 69059418810dSmrg_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 69069418810dSmrg 69079418810dSmrgif test -n "$compiler"; then 69089418810dSmrg _LT_COMPILER_NO_RTTI($1) 69099418810dSmrg _LT_COMPILER_PIC($1) 69109418810dSmrg _LT_COMPILER_C_O($1) 69119418810dSmrg _LT_COMPILER_FILE_LOCKS($1) 69129418810dSmrg _LT_LINKER_SHLIBS($1) 69139418810dSmrg _LT_LINKER_HARDCODE_LIBPATH($1) 69149418810dSmrg 69159418810dSmrg _LT_CONFIG($1) 69169418810dSmrgfi 69179418810dSmrg 69189418810dSmrgAC_LANG_RESTORE 69199bd41f2cSmrg 69209418810dSmrgGCC=$lt_save_GCC 69219418810dSmrgCC="$lt_save_CC" 69229418810dSmrg])# _LT_LANG_GCJ_CONFIG 69239bd41f2cSmrg 69249bd41f2cSmrg 69259418810dSmrg# _LT_LANG_RC_CONFIG([TAG]) 69269418810dSmrg# ------------------------- 69279418810dSmrg# Ensure that the configuration variables for the Windows resource compiler 69289418810dSmrg# are suitably defined. These variables are subsequently used by _LT_CONFIG 69299418810dSmrg# to write the compiler configuration to `libtool'. 69309418810dSmrgm4_defun([_LT_LANG_RC_CONFIG], 69319418810dSmrg[AC_REQUIRE([LT_PROG_RC])dnl 69329418810dSmrgAC_LANG_SAVE 69339bd41f2cSmrg 69349418810dSmrg# Source file extension for RC test sources. 69359418810dSmrgac_ext=rc 69369bd41f2cSmrg 69379418810dSmrg# Object file extension for compiled RC test sources. 69389418810dSmrgobjext=o 69399418810dSmrg_LT_TAGVAR(objext, $1)=$objext 69409bd41f2cSmrg 69419418810dSmrg# Code to be used in simple compile tests 69429418810dSmrglt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' 69439bd41f2cSmrg 69449418810dSmrg# Code to be used in simple link tests 69459418810dSmrglt_simple_link_test_code="$lt_simple_compile_test_code" 69469bd41f2cSmrg 69479418810dSmrg# ltmain only uses $CC for tagged configurations so make sure $CC is set. 69489418810dSmrg_LT_TAG_COMPILER 69499bd41f2cSmrg 69509418810dSmrg# save warnings/boilerplate of simple test code 69519418810dSmrg_LT_COMPILER_BOILERPLATE 69529418810dSmrg_LT_LINKER_BOILERPLATE 69539bd41f2cSmrg 69549418810dSmrg# Allow CC to be a program name with arguments. 69559418810dSmrglt_save_CC="$CC" 69569418810dSmrglt_save_GCC=$GCC 69579418810dSmrgGCC= 69589418810dSmrgCC=${RC-"windres"} 69599418810dSmrgcompiler=$CC 69609418810dSmrg_LT_TAGVAR(compiler, $1)=$CC 69619418810dSmrg_LT_CC_BASENAME([$compiler]) 69629418810dSmrg_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes 69639bd41f2cSmrg 69649418810dSmrgif test -n "$compiler"; then 69659418810dSmrg : 69669418810dSmrg _LT_CONFIG($1) 69679418810dSmrgfi 69689bd41f2cSmrg 69699418810dSmrgGCC=$lt_save_GCC 69709418810dSmrgAC_LANG_RESTORE 69719418810dSmrgCC="$lt_save_CC" 69729418810dSmrg])# _LT_LANG_RC_CONFIG 69739bd41f2cSmrg 69749bd41f2cSmrg 69759418810dSmrg# LT_PROG_GCJ 69769418810dSmrg# ----------- 69779418810dSmrgAC_DEFUN([LT_PROG_GCJ], 69789418810dSmrg[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ], 69799418810dSmrg [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ], 69809418810dSmrg [AC_CHECK_TOOL(GCJ, gcj,) 69819418810dSmrg test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2" 69829418810dSmrg AC_SUBST(GCJFLAGS)])])[]dnl 69839418810dSmrg]) 69849bd41f2cSmrg 69859418810dSmrg# Old name: 69869418810dSmrgAU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ]) 69879418810dSmrgdnl aclocal-1.4 backwards compatibility: 69889418810dSmrgdnl AC_DEFUN([LT_AC_PROG_GCJ], []) 69899bd41f2cSmrg 69909418810dSmrg 69919418810dSmrg# LT_PROG_RC 69929418810dSmrg# ---------- 69939418810dSmrgAC_DEFUN([LT_PROG_RC], 69949418810dSmrg[AC_CHECK_TOOL(RC, windres,) 69959bd41f2cSmrg]) 69969bd41f2cSmrg 69979418810dSmrg# Old name: 69989418810dSmrgAU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC]) 69999418810dSmrgdnl aclocal-1.4 backwards compatibility: 70009418810dSmrgdnl AC_DEFUN([LT_AC_PROG_RC], []) 70019bd41f2cSmrg 70029418810dSmrg 70039418810dSmrg# _LT_DECL_EGREP 70049418810dSmrg# -------------- 70059418810dSmrg# If we don't have a new enough Autoconf to choose the best grep 70069418810dSmrg# available, choose the one first in the user's PATH. 70079418810dSmrgm4_defun([_LT_DECL_EGREP], 70089418810dSmrg[AC_REQUIRE([AC_PROG_EGREP])dnl 70099418810dSmrgAC_REQUIRE([AC_PROG_FGREP])dnl 70109418810dSmrgtest -z "$GREP" && GREP=grep 70119418810dSmrg_LT_DECL([], [GREP], [1], [A grep program that handles long lines]) 70129418810dSmrg_LT_DECL([], [EGREP], [1], [An ERE matcher]) 70139418810dSmrg_LT_DECL([], [FGREP], [1], [A literal string matcher]) 70149418810dSmrgdnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too 70159418810dSmrgAC_SUBST([GREP]) 70169bd41f2cSmrg]) 70179bd41f2cSmrg 70189bd41f2cSmrg 70199418810dSmrg# _LT_DECL_OBJDUMP 70209418810dSmrg# -------------- 70219418810dSmrg# If we don't have a new enough Autoconf to choose the best objdump 70229418810dSmrg# available, choose the one first in the user's PATH. 70239418810dSmrgm4_defun([_LT_DECL_OBJDUMP], 70249418810dSmrg[AC_CHECK_TOOL(OBJDUMP, objdump, false) 70259418810dSmrgtest -z "$OBJDUMP" && OBJDUMP=objdump 70269418810dSmrg_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper]) 70279418810dSmrgAC_SUBST([OBJDUMP]) 70289418810dSmrg]) 70299418810dSmrg 70309418810dSmrg 70319418810dSmrg# _LT_DECL_SED 70329418810dSmrg# ------------ 70339418810dSmrg# Check for a fully-functional sed program, that truncates 70349418810dSmrg# as few characters as possible. Prefer GNU sed if found. 70359418810dSmrgm4_defun([_LT_DECL_SED], 70369418810dSmrg[AC_PROG_SED 70379418810dSmrgtest -z "$SED" && SED=sed 70389418810dSmrgXsed="$SED -e 1s/^X//" 70399418810dSmrg_LT_DECL([], [SED], [1], [A sed program that does not truncate output]) 70409418810dSmrg_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"], 70419418810dSmrg [Sed that helps us avoid accidentally triggering echo(1) options like -n]) 70429418810dSmrg])# _LT_DECL_SED 70439418810dSmrg 70449418810dSmrgm4_ifndef([AC_PROG_SED], [ 70459418810dSmrg# NOTE: This macro has been submitted for inclusion into # 70469418810dSmrg# GNU Autoconf as AC_PROG_SED. When it is available in # 70479418810dSmrg# a released version of Autoconf we should remove this # 70489418810dSmrg# macro and use it instead. # 70499418810dSmrg 70509418810dSmrgm4_defun([AC_PROG_SED], 70519418810dSmrg[AC_MSG_CHECKING([for a sed that does not truncate output]) 70529418810dSmrgAC_CACHE_VAL(lt_cv_path_SED, 70539418810dSmrg[# Loop through the user's path and test for sed and gsed. 70549418810dSmrg# Then use that list of sed's as ones to test for truncation. 70559418810dSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 70569418810dSmrgfor as_dir in $PATH 70579418810dSmrgdo 70589418810dSmrg IFS=$as_save_IFS 70599418810dSmrg test -z "$as_dir" && as_dir=. 70609418810dSmrg for lt_ac_prog in sed gsed; do 70619418810dSmrg for ac_exec_ext in '' $ac_executable_extensions; do 70629418810dSmrg if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 70639418810dSmrg lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 70649418810dSmrg fi 70659418810dSmrg done 70669418810dSmrg done 70679418810dSmrgdone 70689418810dSmrgIFS=$as_save_IFS 70699418810dSmrglt_ac_max=0 70709418810dSmrglt_ac_count=0 70719418810dSmrg# Add /usr/xpg4/bin/sed as it is typically found on Solaris 70729418810dSmrg# along with /bin/sed that truncates output. 70739418810dSmrgfor lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 70749418810dSmrg test ! -f $lt_ac_sed && continue 70759418810dSmrg cat /dev/null > conftest.in 70769418810dSmrg lt_ac_count=0 70779418810dSmrg echo $ECHO_N "0123456789$ECHO_C" >conftest.in 70789418810dSmrg # Check for GNU sed and select it if it is found. 70799418810dSmrg if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 70809418810dSmrg lt_cv_path_SED=$lt_ac_sed 70819418810dSmrg break 70829418810dSmrg fi 70839418810dSmrg while true; do 70849418810dSmrg cat conftest.in conftest.in >conftest.tmp 70859418810dSmrg mv conftest.tmp conftest.in 70869418810dSmrg cp conftest.in conftest.nl 70879418810dSmrg echo >>conftest.nl 70889418810dSmrg $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 70899418810dSmrg cmp -s conftest.out conftest.nl || break 70909418810dSmrg # 10000 chars as input seems more than enough 70919418810dSmrg test $lt_ac_count -gt 10 && break 70929418810dSmrg lt_ac_count=`expr $lt_ac_count + 1` 70939418810dSmrg if test $lt_ac_count -gt $lt_ac_max; then 70949418810dSmrg lt_ac_max=$lt_ac_count 70959418810dSmrg lt_cv_path_SED=$lt_ac_sed 70969bd41f2cSmrg fi 70979418810dSmrg done 70989418810dSmrgdone 70999418810dSmrg]) 71009418810dSmrgSED=$lt_cv_path_SED 71019418810dSmrgAC_SUBST([SED]) 71029418810dSmrgAC_MSG_RESULT([$SED]) 71039418810dSmrg])#AC_PROG_SED 71049418810dSmrg])#m4_ifndef 71059418810dSmrg 71069418810dSmrg# Old name: 71079418810dSmrgAU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED]) 71089418810dSmrgdnl aclocal-1.4 backwards compatibility: 71099418810dSmrgdnl AC_DEFUN([LT_AC_PROG_SED], []) 71109418810dSmrg 71119418810dSmrg 71129418810dSmrg# _LT_CHECK_SHELL_FEATURES 71139418810dSmrg# ------------------------ 71149418810dSmrg# Find out whether the shell is Bourne or XSI compatible, 71159418810dSmrg# or has some other useful features. 71169418810dSmrgm4_defun([_LT_CHECK_SHELL_FEATURES], 71179418810dSmrg[AC_MSG_CHECKING([whether the shell understands some XSI constructs]) 71189418810dSmrg# Try some XSI features 71199418810dSmrgxsi_shell=no 71209418810dSmrg( _lt_dummy="a/b/c" 71219418810dSmrg test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 71229418810dSmrg = c,a/b,, \ 71239418810dSmrg && eval 'test $(( 1 + 1 )) -eq 2 \ 71249418810dSmrg && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 71259418810dSmrg && xsi_shell=yes 71269418810dSmrgAC_MSG_RESULT([$xsi_shell]) 71279418810dSmrg_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell']) 71289418810dSmrg 71299418810dSmrgAC_MSG_CHECKING([whether the shell understands "+="]) 71309418810dSmrglt_shell_append=no 71319418810dSmrg( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \ 71329418810dSmrg >/dev/null 2>&1 \ 71339418810dSmrg && lt_shell_append=yes 71349418810dSmrgAC_MSG_RESULT([$lt_shell_append]) 71359418810dSmrg_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append']) 71369418810dSmrg 71379418810dSmrgif ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 71389418810dSmrg lt_unset=unset 71399418810dSmrgelse 71409418810dSmrg lt_unset=false 71419418810dSmrgfi 71429418810dSmrg_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl 71439418810dSmrg 71449418810dSmrg# test EBCDIC or ASCII 71459418810dSmrgcase `echo X|tr X '\101'` in 71469418810dSmrg A) # ASCII based system 71479418810dSmrg # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 71489418810dSmrg lt_SP2NL='tr \040 \012' 71499418810dSmrg lt_NL2SP='tr \015\012 \040\040' 71509bd41f2cSmrg ;; 71519418810dSmrg *) # EBCDIC based system 71529418810dSmrg lt_SP2NL='tr \100 \n' 71539418810dSmrg lt_NL2SP='tr \r\n \100\100' 71549bd41f2cSmrg ;; 71559418810dSmrgesac 71569418810dSmrg_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl 71579418810dSmrg_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl 71589418810dSmrg])# _LT_CHECK_SHELL_FEATURES 71599418810dSmrg 71609418810dSmrg 71619418810dSmrg# _LT_PROG_XSI_SHELLFNS 71629418810dSmrg# --------------------- 71639418810dSmrg# Bourne and XSI compatible variants of some useful shell functions. 71649418810dSmrgm4_defun([_LT_PROG_XSI_SHELLFNS], 71659418810dSmrg[case $xsi_shell in 71669418810dSmrg yes) 71679418810dSmrg cat << \_LT_EOF >> "$cfgfile" 71689418810dSmrg 71699418810dSmrg# func_dirname file append nondir_replacement 71709418810dSmrg# Compute the dirname of FILE. If nonempty, add APPEND to the result, 71719418810dSmrg# otherwise set result to NONDIR_REPLACEMENT. 71729418810dSmrgfunc_dirname () 71739418810dSmrg{ 71749418810dSmrg case ${1} in 71759418810dSmrg */*) func_dirname_result="${1%/*}${2}" ;; 71769418810dSmrg * ) func_dirname_result="${3}" ;; 71779bd41f2cSmrg esac 71789418810dSmrg} 71799418810dSmrg 71809418810dSmrg# func_basename file 71819418810dSmrgfunc_basename () 71829418810dSmrg{ 71839418810dSmrg func_basename_result="${1##*/}" 71849418810dSmrg} 71859418810dSmrg 71869418810dSmrg# func_dirname_and_basename file append nondir_replacement 71879418810dSmrg# perform func_basename and func_dirname in a single function 71889418810dSmrg# call: 71899418810dSmrg# dirname: Compute the dirname of FILE. If nonempty, 71909418810dSmrg# add APPEND to the result, otherwise set result 71919418810dSmrg# to NONDIR_REPLACEMENT. 71929418810dSmrg# value returned in "$func_dirname_result" 71939418810dSmrg# basename: Compute filename of FILE. 71949418810dSmrg# value retuned in "$func_basename_result" 71959418810dSmrg# Implementation must be kept synchronized with func_dirname 71969418810dSmrg# and func_basename. For efficiency, we do not delegate to 71979418810dSmrg# those functions but instead duplicate the functionality here. 71989418810dSmrgfunc_dirname_and_basename () 71999418810dSmrg{ 72009418810dSmrg case ${1} in 72019418810dSmrg */*) func_dirname_result="${1%/*}${2}" ;; 72029418810dSmrg * ) func_dirname_result="${3}" ;; 72039bd41f2cSmrg esac 72049418810dSmrg func_basename_result="${1##*/}" 72059418810dSmrg} 72069bd41f2cSmrg 72079418810dSmrg# func_stripname prefix suffix name 72089418810dSmrg# strip PREFIX and SUFFIX off of NAME. 72099418810dSmrg# PREFIX and SUFFIX must not contain globbing or regex special 72109418810dSmrg# characters, hashes, percent signs, but SUFFIX may contain a leading 72119418810dSmrg# dot (in which case that matches only a dot). 72129418810dSmrgfunc_stripname () 72139418810dSmrg{ 72149418810dSmrg # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 72159418810dSmrg # positional parameters, so assign one to ordinary parameter first. 72169418810dSmrg func_stripname_result=${3} 72179418810dSmrg func_stripname_result=${func_stripname_result#"${1}"} 72189418810dSmrg func_stripname_result=${func_stripname_result%"${2}"} 72199418810dSmrg} 72209bd41f2cSmrg 72219418810dSmrg# func_opt_split 72229418810dSmrgfunc_opt_split () 72239418810dSmrg{ 72249418810dSmrg func_opt_split_opt=${1%%=*} 72259418810dSmrg func_opt_split_arg=${1#*=} 72269418810dSmrg} 72279bd41f2cSmrg 72289418810dSmrg# func_lo2o object 72299418810dSmrgfunc_lo2o () 72309418810dSmrg{ 72319418810dSmrg case ${1} in 72329418810dSmrg *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 72339418810dSmrg *) func_lo2o_result=${1} ;; 72349418810dSmrg esac 72359418810dSmrg} 72369bd41f2cSmrg 72379418810dSmrg# func_xform libobj-or-source 72389418810dSmrgfunc_xform () 72399418810dSmrg{ 72409418810dSmrg func_xform_result=${1%.*}.lo 72419418810dSmrg} 72429bd41f2cSmrg 72439418810dSmrg# func_arith arithmetic-term... 72449418810dSmrgfunc_arith () 72459418810dSmrg{ 72469418810dSmrg func_arith_result=$(( $[*] )) 72479418810dSmrg} 72489bd41f2cSmrg 72499418810dSmrg# func_len string 72509418810dSmrg# STRING may not start with a hyphen. 72519418810dSmrgfunc_len () 72529418810dSmrg{ 72539418810dSmrg func_len_result=${#1} 72549418810dSmrg} 72559bd41f2cSmrg 72569418810dSmrg_LT_EOF 72579418810dSmrg ;; 72589418810dSmrg *) # Bourne compatible functions. 72599418810dSmrg cat << \_LT_EOF >> "$cfgfile" 72609bd41f2cSmrg 72619418810dSmrg# func_dirname file append nondir_replacement 72629418810dSmrg# Compute the dirname of FILE. If nonempty, add APPEND to the result, 72639418810dSmrg# otherwise set result to NONDIR_REPLACEMENT. 72649418810dSmrgfunc_dirname () 72659418810dSmrg{ 72669418810dSmrg # Extract subdirectory from the argument. 72679418810dSmrg func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` 72689418810dSmrg if test "X$func_dirname_result" = "X${1}"; then 72699418810dSmrg func_dirname_result="${3}" 72709418810dSmrg else 72719418810dSmrg func_dirname_result="$func_dirname_result${2}" 72729418810dSmrg fi 72739418810dSmrg} 72749bd41f2cSmrg 72759418810dSmrg# func_basename file 72769418810dSmrgfunc_basename () 72779418810dSmrg{ 72789418810dSmrg func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` 72799418810dSmrg} 72809bd41f2cSmrg 72819418810dSmrgdnl func_dirname_and_basename 72829418810dSmrgdnl A portable version of this function is already defined in general.m4sh 72839418810dSmrgdnl so there is no need for it here. 72849418810dSmrg 72859418810dSmrg# func_stripname prefix suffix name 72869418810dSmrg# strip PREFIX and SUFFIX off of NAME. 72879418810dSmrg# PREFIX and SUFFIX must not contain globbing or regex special 72889418810dSmrg# characters, hashes, percent signs, but SUFFIX may contain a leading 72899418810dSmrg# dot (in which case that matches only a dot). 72909418810dSmrg# func_strip_suffix prefix name 72919418810dSmrgfunc_stripname () 72929418810dSmrg{ 72939418810dSmrg case ${2} in 72949418810dSmrg .*) func_stripname_result=`$ECHO "X${3}" \ 72959418810dSmrg | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; 72969418810dSmrg *) func_stripname_result=`$ECHO "X${3}" \ 72979418810dSmrg | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; 72989418810dSmrg esac 72999418810dSmrg} 73009bd41f2cSmrg 73019418810dSmrg# sed scripts: 73029418810dSmrgmy_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q' 73039418810dSmrgmy_sed_long_arg='1s/^-[[^=]]*=//' 73049bd41f2cSmrg 73059418810dSmrg# func_opt_split 73069418810dSmrgfunc_opt_split () 73079418810dSmrg{ 73089418810dSmrg func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` 73099418810dSmrg func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` 73109418810dSmrg} 73119bd41f2cSmrg 73129418810dSmrg# func_lo2o object 73139418810dSmrgfunc_lo2o () 73149418810dSmrg{ 73159418810dSmrg func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` 73169418810dSmrg} 73179bd41f2cSmrg 73189418810dSmrg# func_xform libobj-or-source 73199418810dSmrgfunc_xform () 73209418810dSmrg{ 73219418810dSmrg func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'` 73229418810dSmrg} 73239bd41f2cSmrg 73249418810dSmrg# func_arith arithmetic-term... 73259418810dSmrgfunc_arith () 73269418810dSmrg{ 73279418810dSmrg func_arith_result=`expr "$[@]"` 73289418810dSmrg} 73299bd41f2cSmrg 73309418810dSmrg# func_len string 73319418810dSmrg# STRING may not start with a hyphen. 73329418810dSmrgfunc_len () 73339418810dSmrg{ 73349418810dSmrg func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len` 73359418810dSmrg} 73369bd41f2cSmrg 73379418810dSmrg_LT_EOF 73389418810dSmrgesac 73399bd41f2cSmrg 73409418810dSmrgcase $lt_shell_append in 73419418810dSmrg yes) 73429418810dSmrg cat << \_LT_EOF >> "$cfgfile" 73439418810dSmrg 73449418810dSmrg# func_append var value 73459418810dSmrg# Append VALUE to the end of shell variable VAR. 73469418810dSmrgfunc_append () 73479418810dSmrg{ 73489418810dSmrg eval "$[1]+=\$[2]" 73499418810dSmrg} 73509bd41f2cSmrg_LT_EOF 73519418810dSmrg ;; 73529418810dSmrg *) 73539418810dSmrg cat << \_LT_EOF >> "$cfgfile" 73549bd41f2cSmrg 73559418810dSmrg# func_append var value 73569418810dSmrg# Append VALUE to the end of shell variable VAR. 73579418810dSmrgfunc_append () 73589418810dSmrg{ 73599418810dSmrg eval "$[1]=\$$[1]\$[2]" 73609418810dSmrg} 73619bd41f2cSmrg 73629418810dSmrg_LT_EOF 73639418810dSmrg ;; 73649418810dSmrg esac 73659418810dSmrg]) 73669bd41f2cSmrg 73679418810dSmrg# Helper functions for option handling. -*- Autoconf -*- 73689418810dSmrg# 73699418810dSmrg# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc. 73709418810dSmrg# Written by Gary V. Vaughan, 2004 73719418810dSmrg# 73729418810dSmrg# This file is free software; the Free Software Foundation gives 73739418810dSmrg# unlimited permission to copy and/or distribute it, with or without 73749418810dSmrg# modifications, as long as this notice is preserved. 73759bd41f2cSmrg 73769418810dSmrg# serial 6 ltoptions.m4 73779bd41f2cSmrg 73789418810dSmrg# This is to help aclocal find these macros, as it can't see m4_define. 73799418810dSmrgAC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])]) 73809bd41f2cSmrg 73819bd41f2cSmrg 73829418810dSmrg# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME) 73839418810dSmrg# ------------------------------------------ 73849418810dSmrgm4_define([_LT_MANGLE_OPTION], 73859418810dSmrg[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])]) 73869bd41f2cSmrg 73879bd41f2cSmrg 73889418810dSmrg# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME) 73899418810dSmrg# --------------------------------------- 73909418810dSmrg# Set option OPTION-NAME for macro MACRO-NAME, and if there is a 73919418810dSmrg# matching handler defined, dispatch to it. Other OPTION-NAMEs are 73929418810dSmrg# saved as a flag. 73939418810dSmrgm4_define([_LT_SET_OPTION], 73949418810dSmrg[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl 73959418810dSmrgm4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]), 73969418810dSmrg _LT_MANGLE_DEFUN([$1], [$2]), 73979418810dSmrg [m4_warning([Unknown $1 option `$2'])])[]dnl 73989418810dSmrg]) 73999418810dSmrg 74009418810dSmrg 74019418810dSmrg# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET]) 74029418810dSmrg# ------------------------------------------------------------ 74039418810dSmrg# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. 74049418810dSmrgm4_define([_LT_IF_OPTION], 74059418810dSmrg[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])]) 74069418810dSmrg 74079418810dSmrg 74089418810dSmrg# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET) 74099418810dSmrg# ------------------------------------------------------- 74109418810dSmrg# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME 74119418810dSmrg# are set. 74129418810dSmrgm4_define([_LT_UNLESS_OPTIONS], 74139418810dSmrg[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])), 74149418810dSmrg [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option), 74159418810dSmrg [m4_define([$0_found])])])[]dnl 74169418810dSmrgm4_ifdef([$0_found], [m4_undefine([$0_found])], [$3 74179418810dSmrg])[]dnl 74189418810dSmrg]) 74199418810dSmrg 74209418810dSmrg 74219418810dSmrg# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST) 74229418810dSmrg# ---------------------------------------- 74239418810dSmrg# OPTION-LIST is a space-separated list of Libtool options associated 74249418810dSmrg# with MACRO-NAME. If any OPTION has a matching handler declared with 74259418810dSmrg# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about 74269418810dSmrg# the unknown option and exit. 74279418810dSmrgm4_defun([_LT_SET_OPTIONS], 74289418810dSmrg[# Set options 74299418810dSmrgm4_foreach([_LT_Option], m4_split(m4_normalize([$2])), 74309418810dSmrg [_LT_SET_OPTION([$1], _LT_Option)]) 74319418810dSmrg 74329418810dSmrgm4_if([$1],[LT_INIT],[ 74339418810dSmrg dnl 74349418810dSmrg dnl Simply set some default values (i.e off) if boolean options were not 74359418810dSmrg dnl specified: 74369418810dSmrg _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no 74379418810dSmrg ]) 74389418810dSmrg _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no 74399418810dSmrg ]) 74409418810dSmrg dnl 74419418810dSmrg dnl If no reference was made to various pairs of opposing options, then 74429418810dSmrg dnl we run the default mode handler for the pair. For example, if neither 74439418810dSmrg dnl `shared' nor `disable-shared' was passed, we enable building of shared 74449418810dSmrg dnl archives by default: 74459418810dSmrg _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED]) 74469418810dSmrg _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC]) 74479418810dSmrg _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC]) 74489418810dSmrg _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install], 74499418810dSmrg [_LT_ENABLE_FAST_INSTALL]) 74509418810dSmrg ]) 74519418810dSmrg])# _LT_SET_OPTIONS 74529bd41f2cSmrg 74539bd41f2cSmrg 74549bd41f2cSmrg 74559418810dSmrg# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME) 74569418810dSmrg# ----------------------------------------- 74579418810dSmrgm4_define([_LT_MANGLE_DEFUN], 74589418810dSmrg[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])]) 74599bd41f2cSmrg 74609bd41f2cSmrg 74619418810dSmrg# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE) 74629418810dSmrg# ----------------------------------------------- 74639418810dSmrgm4_define([LT_OPTION_DEFINE], 74649418810dSmrg[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl 74659418810dSmrg])# LT_OPTION_DEFINE 74669bd41f2cSmrg 74679bd41f2cSmrg 74689418810dSmrg# dlopen 74699418810dSmrg# ------ 74709418810dSmrgLT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes 74719418810dSmrg]) 74729bd41f2cSmrg 74739418810dSmrgAU_DEFUN([AC_LIBTOOL_DLOPEN], 74749418810dSmrg[_LT_SET_OPTION([LT_INIT], [dlopen]) 74759418810dSmrgAC_DIAGNOSE([obsolete], 74769418810dSmrg[$0: Remove this warning and the call to _LT_SET_OPTION when you 74779418810dSmrgput the `dlopen' option into LT_INIT's first parameter.]) 74789418810dSmrg]) 74799bd41f2cSmrg 74809418810dSmrgdnl aclocal-1.4 backwards compatibility: 74819418810dSmrgdnl AC_DEFUN([AC_LIBTOOL_DLOPEN], []) 74829bd41f2cSmrg 74839bd41f2cSmrg 74849418810dSmrg# win32-dll 74859418810dSmrg# --------- 74869418810dSmrg# Declare package support for building win32 dll's. 74879418810dSmrgLT_OPTION_DEFINE([LT_INIT], [win32-dll], 74889418810dSmrg[enable_win32_dll=yes 74899bd41f2cSmrg 74909418810dSmrgcase $host in 74919418810dSmrg*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*) 74929418810dSmrg AC_CHECK_TOOL(AS, as, false) 74939418810dSmrg AC_CHECK_TOOL(DLLTOOL, dlltool, false) 74949418810dSmrg AC_CHECK_TOOL(OBJDUMP, objdump, false) 74959418810dSmrg ;; 74969418810dSmrgesac 74979bd41f2cSmrg 74989418810dSmrgtest -z "$AS" && AS=as 74999418810dSmrg_LT_DECL([], [AS], [0], [Assembler program])dnl 75009bd41f2cSmrg 75019418810dSmrgtest -z "$DLLTOOL" && DLLTOOL=dlltool 75029418810dSmrg_LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl 75039bd41f2cSmrg 75049418810dSmrgtest -z "$OBJDUMP" && OBJDUMP=objdump 75059418810dSmrg_LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl 75069418810dSmrg])# win32-dll 75079bd41f2cSmrg 75089418810dSmrgAU_DEFUN([AC_LIBTOOL_WIN32_DLL], 75099418810dSmrg[AC_REQUIRE([AC_CANONICAL_HOST])dnl 75109418810dSmrg_LT_SET_OPTION([LT_INIT], [win32-dll]) 75119418810dSmrgAC_DIAGNOSE([obsolete], 75129418810dSmrg[$0: Remove this warning and the call to _LT_SET_OPTION when you 75139418810dSmrgput the `win32-dll' option into LT_INIT's first parameter.]) 75149418810dSmrg]) 75159bd41f2cSmrg 75169418810dSmrgdnl aclocal-1.4 backwards compatibility: 75179418810dSmrgdnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], []) 75189bd41f2cSmrg 75199bd41f2cSmrg 75209418810dSmrg# _LT_ENABLE_SHARED([DEFAULT]) 75219418810dSmrg# ---------------------------- 75229418810dSmrg# implement the --enable-shared flag, and supports the `shared' and 75239418810dSmrg# `disable-shared' LT_INIT options. 75249418810dSmrg# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. 75259418810dSmrgm4_define([_LT_ENABLE_SHARED], 75269418810dSmrg[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl 75279418810dSmrgAC_ARG_ENABLE([shared], 75289418810dSmrg [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@], 75299418810dSmrg [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])], 75309418810dSmrg [p=${PACKAGE-default} 75319418810dSmrg case $enableval in 75329418810dSmrg yes) enable_shared=yes ;; 75339418810dSmrg no) enable_shared=no ;; 75349418810dSmrg *) 75359418810dSmrg enable_shared=no 75369418810dSmrg # Look at the argument we got. We use all the common list separators. 75379418810dSmrg lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 75389418810dSmrg for pkg in $enableval; do 75399418810dSmrg IFS="$lt_save_ifs" 75409418810dSmrg if test "X$pkg" = "X$p"; then 75419418810dSmrg enable_shared=yes 75429418810dSmrg fi 75439418810dSmrg done 75449418810dSmrg IFS="$lt_save_ifs" 75459bd41f2cSmrg ;; 75469418810dSmrg esac], 75479418810dSmrg [enable_shared=]_LT_ENABLE_SHARED_DEFAULT) 75489bd41f2cSmrg 75499418810dSmrg _LT_DECL([build_libtool_libs], [enable_shared], [0], 75509418810dSmrg [Whether or not to build shared libraries]) 75519418810dSmrg])# _LT_ENABLE_SHARED 75529bd41f2cSmrg 75539418810dSmrgLT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])]) 75549418810dSmrgLT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])]) 75559bd41f2cSmrg 75569418810dSmrg# Old names: 75579418810dSmrgAC_DEFUN([AC_ENABLE_SHARED], 75589418810dSmrg[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared]) 75599418810dSmrg]) 75609bd41f2cSmrg 75619418810dSmrgAC_DEFUN([AC_DISABLE_SHARED], 75629418810dSmrg[_LT_SET_OPTION([LT_INIT], [disable-shared]) 75639418810dSmrg]) 75649bd41f2cSmrg 75659418810dSmrgAU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) 75669418810dSmrgAU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) 75679bd41f2cSmrg 75689418810dSmrgdnl aclocal-1.4 backwards compatibility: 75699418810dSmrgdnl AC_DEFUN([AM_ENABLE_SHARED], []) 75709418810dSmrgdnl AC_DEFUN([AM_DISABLE_SHARED], []) 75719bd41f2cSmrg 75729bd41f2cSmrg 75739418810dSmrg 75749418810dSmrg# _LT_ENABLE_STATIC([DEFAULT]) 75759418810dSmrg# ---------------------------- 75769418810dSmrg# implement the --enable-static flag, and support the `static' and 75779418810dSmrg# `disable-static' LT_INIT options. 75789418810dSmrg# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. 75799418810dSmrgm4_define([_LT_ENABLE_STATIC], 75809418810dSmrg[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl 75819418810dSmrgAC_ARG_ENABLE([static], 75829418810dSmrg [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@], 75839418810dSmrg [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])], 75849418810dSmrg [p=${PACKAGE-default} 75859418810dSmrg case $enableval in 75869418810dSmrg yes) enable_static=yes ;; 75879418810dSmrg no) enable_static=no ;; 75889418810dSmrg *) 75899418810dSmrg enable_static=no 75909418810dSmrg # Look at the argument we got. We use all the common list separators. 75919418810dSmrg lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 75929418810dSmrg for pkg in $enableval; do 75939418810dSmrg IFS="$lt_save_ifs" 75949418810dSmrg if test "X$pkg" = "X$p"; then 75959418810dSmrg enable_static=yes 75969bd41f2cSmrg fi 75979418810dSmrg done 75989418810dSmrg IFS="$lt_save_ifs" 75999bd41f2cSmrg ;; 76009418810dSmrg esac], 76019418810dSmrg [enable_static=]_LT_ENABLE_STATIC_DEFAULT) 76029bd41f2cSmrg 76039418810dSmrg _LT_DECL([build_old_libs], [enable_static], [0], 76049418810dSmrg [Whether or not to build static libraries]) 76059418810dSmrg])# _LT_ENABLE_STATIC 76069bd41f2cSmrg 76079418810dSmrgLT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])]) 76089418810dSmrgLT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])]) 76099418810dSmrg 76109418810dSmrg# Old names: 76119418810dSmrgAC_DEFUN([AC_ENABLE_STATIC], 76129418810dSmrg[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static]) 76139418810dSmrg]) 76149418810dSmrg 76159418810dSmrgAC_DEFUN([AC_DISABLE_STATIC], 76169418810dSmrg[_LT_SET_OPTION([LT_INIT], [disable-static]) 76179418810dSmrg]) 76189418810dSmrg 76199418810dSmrgAU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) 76209418810dSmrgAU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) 76219418810dSmrg 76229418810dSmrgdnl aclocal-1.4 backwards compatibility: 76239418810dSmrgdnl AC_DEFUN([AM_ENABLE_STATIC], []) 76249418810dSmrgdnl AC_DEFUN([AM_DISABLE_STATIC], []) 76259418810dSmrg 76269418810dSmrg 76279418810dSmrg 76289418810dSmrg# _LT_ENABLE_FAST_INSTALL([DEFAULT]) 76299418810dSmrg# ---------------------------------- 76309418810dSmrg# implement the --enable-fast-install flag, and support the `fast-install' 76319418810dSmrg# and `disable-fast-install' LT_INIT options. 76329418810dSmrg# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. 76339418810dSmrgm4_define([_LT_ENABLE_FAST_INSTALL], 76349418810dSmrg[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl 76359418810dSmrgAC_ARG_ENABLE([fast-install], 76369418810dSmrg [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@], 76379418810dSmrg [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])], 76389418810dSmrg [p=${PACKAGE-default} 76399418810dSmrg case $enableval in 76409418810dSmrg yes) enable_fast_install=yes ;; 76419418810dSmrg no) enable_fast_install=no ;; 76429418810dSmrg *) 76439418810dSmrg enable_fast_install=no 76449418810dSmrg # Look at the argument we got. We use all the common list separators. 76459418810dSmrg lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 76469418810dSmrg for pkg in $enableval; do 76479418810dSmrg IFS="$lt_save_ifs" 76489418810dSmrg if test "X$pkg" = "X$p"; then 76499418810dSmrg enable_fast_install=yes 76509418810dSmrg fi 76519418810dSmrg done 76529418810dSmrg IFS="$lt_save_ifs" 76539bd41f2cSmrg ;; 76549418810dSmrg esac], 76559418810dSmrg [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT) 76569bd41f2cSmrg 76579418810dSmrg_LT_DECL([fast_install], [enable_fast_install], [0], 76589418810dSmrg [Whether or not to optimize for fast installation])dnl 76599418810dSmrg])# _LT_ENABLE_FAST_INSTALL 76609bd41f2cSmrg 76619418810dSmrgLT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])]) 76629418810dSmrgLT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])]) 76639bd41f2cSmrg 76649418810dSmrg# Old names: 76659418810dSmrgAU_DEFUN([AC_ENABLE_FAST_INSTALL], 76669418810dSmrg[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install]) 76679418810dSmrgAC_DIAGNOSE([obsolete], 76689418810dSmrg[$0: Remove this warning and the call to _LT_SET_OPTION when you put 76699418810dSmrgthe `fast-install' option into LT_INIT's first parameter.]) 76709418810dSmrg]) 76719bd41f2cSmrg 76729418810dSmrgAU_DEFUN([AC_DISABLE_FAST_INSTALL], 76739418810dSmrg[_LT_SET_OPTION([LT_INIT], [disable-fast-install]) 76749418810dSmrgAC_DIAGNOSE([obsolete], 76759418810dSmrg[$0: Remove this warning and the call to _LT_SET_OPTION when you put 76769418810dSmrgthe `disable-fast-install' option into LT_INIT's first parameter.]) 76779418810dSmrg]) 76789bd41f2cSmrg 76799418810dSmrgdnl aclocal-1.4 backwards compatibility: 76809418810dSmrgdnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], []) 76819418810dSmrgdnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], []) 76829bd41f2cSmrg 76839bd41f2cSmrg 76849418810dSmrg# _LT_WITH_PIC([MODE]) 76859418810dSmrg# -------------------- 76869418810dSmrg# implement the --with-pic flag, and support the `pic-only' and `no-pic' 76879418810dSmrg# LT_INIT options. 76889418810dSmrg# MODE is either `yes' or `no'. If omitted, it defaults to `both'. 76899418810dSmrgm4_define([_LT_WITH_PIC], 76909418810dSmrg[AC_ARG_WITH([pic], 76919418810dSmrg [AS_HELP_STRING([--with-pic], 76929418810dSmrg [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], 76939418810dSmrg [pic_mode="$withval"], 76949418810dSmrg [pic_mode=default]) 76959bd41f2cSmrg 76969418810dSmrgtest -z "$pic_mode" && pic_mode=m4_default([$1], [default]) 76979418810dSmrg 76989418810dSmrg_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl 76999418810dSmrg])# _LT_WITH_PIC 77009418810dSmrg 77019418810dSmrgLT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])]) 77029418810dSmrgLT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])]) 77039418810dSmrg 77049418810dSmrg# Old name: 77059418810dSmrgAU_DEFUN([AC_LIBTOOL_PICMODE], 77069418810dSmrg[_LT_SET_OPTION([LT_INIT], [pic-only]) 77079418810dSmrgAC_DIAGNOSE([obsolete], 77089418810dSmrg[$0: Remove this warning and the call to _LT_SET_OPTION when you 77099418810dSmrgput the `pic-only' option into LT_INIT's first parameter.]) 77109bd41f2cSmrg]) 77119bd41f2cSmrg 77129418810dSmrgdnl aclocal-1.4 backwards compatibility: 77139418810dSmrgdnl AC_DEFUN([AC_LIBTOOL_PICMODE], []) 77149bd41f2cSmrg 77159bd41f2cSmrg 77169418810dSmrgm4_define([_LTDL_MODE], []) 77179418810dSmrgLT_OPTION_DEFINE([LTDL_INIT], [nonrecursive], 77189418810dSmrg [m4_define([_LTDL_MODE], [nonrecursive])]) 77199418810dSmrgLT_OPTION_DEFINE([LTDL_INIT], [recursive], 77209418810dSmrg [m4_define([_LTDL_MODE], [recursive])]) 77219418810dSmrgLT_OPTION_DEFINE([LTDL_INIT], [subproject], 77229418810dSmrg [m4_define([_LTDL_MODE], [subproject])]) 77239bd41f2cSmrg 77249418810dSmrgm4_define([_LTDL_TYPE], []) 77259418810dSmrgLT_OPTION_DEFINE([LTDL_INIT], [installable], 77269418810dSmrg [m4_define([_LTDL_TYPE], [installable])]) 77279418810dSmrgLT_OPTION_DEFINE([LTDL_INIT], [convenience], 77289418810dSmrg [m4_define([_LTDL_TYPE], [convenience])]) 77299bd41f2cSmrg 77309418810dSmrg# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*- 77319bd41f2cSmrg# 77329418810dSmrg# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc. 77339418810dSmrg# Written by Gary V. Vaughan, 2004 77349bd41f2cSmrg# 77359418810dSmrg# This file is free software; the Free Software Foundation gives 77369418810dSmrg# unlimited permission to copy and/or distribute it, with or without 77379418810dSmrg# modifications, as long as this notice is preserved. 77389418810dSmrg 77399418810dSmrg# serial 6 ltsugar.m4 77409418810dSmrg 77419418810dSmrg# This is to help aclocal find these macros, as it can't see m4_define. 77429418810dSmrgAC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])]) 77439418810dSmrg 77449418810dSmrg 77459418810dSmrg# lt_join(SEP, ARG1, [ARG2...]) 77469418810dSmrg# ----------------------------- 77479418810dSmrg# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their 77489418810dSmrg# associated separator. 77499418810dSmrg# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier 77509418810dSmrg# versions in m4sugar had bugs. 77519418810dSmrgm4_define([lt_join], 77529418810dSmrg[m4_if([$#], [1], [], 77539418810dSmrg [$#], [2], [[$2]], 77549418810dSmrg [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])]) 77559418810dSmrgm4_define([_lt_join], 77569418810dSmrg[m4_if([$#$2], [2], [], 77579418810dSmrg [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])]) 77589418810dSmrg 77599418810dSmrg 77609418810dSmrg# lt_car(LIST) 77619418810dSmrg# lt_cdr(LIST) 77629418810dSmrg# ------------ 77639418810dSmrg# Manipulate m4 lists. 77649418810dSmrg# These macros are necessary as long as will still need to support 77659418810dSmrg# Autoconf-2.59 which quotes differently. 77669418810dSmrgm4_define([lt_car], [[$1]]) 77679418810dSmrgm4_define([lt_cdr], 77689418810dSmrg[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])], 77699418810dSmrg [$#], 1, [], 77709418810dSmrg [m4_dquote(m4_shift($@))])]) 77719418810dSmrgm4_define([lt_unquote], $1) 77729418810dSmrg 77739418810dSmrg 77749418810dSmrg# lt_append(MACRO-NAME, STRING, [SEPARATOR]) 77759418810dSmrg# ------------------------------------------ 77769418810dSmrg# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'. 77779418810dSmrg# Note that neither SEPARATOR nor STRING are expanded; they are appended 77789418810dSmrg# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked). 77799418810dSmrg# No SEPARATOR is output if MACRO-NAME was previously undefined (different 77809418810dSmrg# than defined and empty). 77819bd41f2cSmrg# 77829418810dSmrg# This macro is needed until we can rely on Autoconf 2.62, since earlier 77839418810dSmrg# versions of m4sugar mistakenly expanded SEPARATOR but not STRING. 77849418810dSmrgm4_define([lt_append], 77859418810dSmrg[m4_define([$1], 77869418810dSmrg m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])]) 77879418810dSmrg 77889418810dSmrg 77899418810dSmrg 77909418810dSmrg# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...]) 77919418810dSmrg# ---------------------------------------------------------- 77929418810dSmrg# Produce a SEP delimited list of all paired combinations of elements of 77939418810dSmrg# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list 77949418810dSmrg# has the form PREFIXmINFIXSUFFIXn. 77959418810dSmrg# Needed until we can rely on m4_combine added in Autoconf 2.62. 77969418810dSmrgm4_define([lt_combine], 77979418810dSmrg[m4_if(m4_eval([$# > 3]), [1], 77989418810dSmrg [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl 77999418810dSmrg[[m4_foreach([_Lt_prefix], [$2], 78009418810dSmrg [m4_foreach([_Lt_suffix], 78019418810dSmrg ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[, 78029418810dSmrg [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])]) 78039418810dSmrg 78049418810dSmrg 78059418810dSmrg# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ]) 78069418810dSmrg# ----------------------------------------------------------------------- 78079418810dSmrg# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited 78089418810dSmrg# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ. 78099418810dSmrgm4_define([lt_if_append_uniq], 78109418810dSmrg[m4_ifdef([$1], 78119418810dSmrg [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1], 78129418810dSmrg [lt_append([$1], [$2], [$3])$4], 78139418810dSmrg [$5])], 78149418810dSmrg [lt_append([$1], [$2], [$3])$4])]) 78159418810dSmrg 78169418810dSmrg 78179418810dSmrg# lt_dict_add(DICT, KEY, VALUE) 78189418810dSmrg# ----------------------------- 78199418810dSmrgm4_define([lt_dict_add], 78209418810dSmrg[m4_define([$1($2)], [$3])]) 78219bd41f2cSmrg 78229bd41f2cSmrg 78239418810dSmrg# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE) 78249418810dSmrg# -------------------------------------------- 78259418810dSmrgm4_define([lt_dict_add_subkey], 78269418810dSmrg[m4_define([$1($2:$3)], [$4])]) 78279418810dSmrg 78289bd41f2cSmrg 78299418810dSmrg# lt_dict_fetch(DICT, KEY, [SUBKEY]) 78309418810dSmrg# ---------------------------------- 78319418810dSmrgm4_define([lt_dict_fetch], 78329418810dSmrg[m4_ifval([$3], 78339418810dSmrg m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]), 78349418810dSmrg m4_ifdef([$1($2)], [m4_defn([$1($2)])]))]) 78359bd41f2cSmrg 78369bd41f2cSmrg 78379418810dSmrg# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE]) 78389418810dSmrg# ----------------------------------------------------------------- 78399418810dSmrgm4_define([lt_if_dict_fetch], 78409418810dSmrg[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4], 78419418810dSmrg [$5], 78429418810dSmrg [$6])]) 78439bd41f2cSmrg 78449bd41f2cSmrg 78459418810dSmrg# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...]) 78469418810dSmrg# -------------------------------------------------------------- 78479418810dSmrgm4_define([lt_dict_filter], 78489418810dSmrg[m4_if([$5], [], [], 78499418810dSmrg [lt_join(m4_quote(m4_default([$4], [[, ]])), 78509418810dSmrg lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]), 78519418810dSmrg [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl 78529bd41f2cSmrg]) 78539bd41f2cSmrg 78549418810dSmrg# ltversion.m4 -- version numbers -*- Autoconf -*- 78559418810dSmrg# 78569418810dSmrg# Copyright (C) 2004 Free Software Foundation, Inc. 78579418810dSmrg# Written by Scott James Remnant, 2004 78589418810dSmrg# 78599418810dSmrg# This file is free software; the Free Software Foundation gives 78609418810dSmrg# unlimited permission to copy and/or distribute it, with or without 78619418810dSmrg# modifications, as long as this notice is preserved. 78629bd41f2cSmrg 78639418810dSmrg# Generated from ltversion.in. 78649bd41f2cSmrg 78659418810dSmrg# serial 3017 ltversion.m4 78669418810dSmrg# This file is part of GNU Libtool 78679bd41f2cSmrg 78689418810dSmrgm4_define([LT_PACKAGE_VERSION], [2.2.6b]) 78699418810dSmrgm4_define([LT_PACKAGE_REVISION], [1.3017]) 78709bd41f2cSmrg 78719418810dSmrgAC_DEFUN([LTVERSION_VERSION], 78729418810dSmrg[macro_version='2.2.6b' 78739418810dSmrgmacro_revision='1.3017' 78749418810dSmrg_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?]) 78759418810dSmrg_LT_DECL(, macro_revision, 0) 78769bd41f2cSmrg]) 78779bd41f2cSmrg 78789418810dSmrg# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*- 78799418810dSmrg# 78809418810dSmrg# Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc. 78819418810dSmrg# Written by Scott James Remnant, 2004. 78829418810dSmrg# 78839418810dSmrg# This file is free software; the Free Software Foundation gives 78849418810dSmrg# unlimited permission to copy and/or distribute it, with or without 78859418810dSmrg# modifications, as long as this notice is preserved. 78869418810dSmrg 78879418810dSmrg# serial 4 lt~obsolete.m4 78889418810dSmrg 78899418810dSmrg# These exist entirely to fool aclocal when bootstrapping libtool. 78909418810dSmrg# 78919418810dSmrg# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN) 78929418810dSmrg# which have later been changed to m4_define as they aren't part of the 78939418810dSmrg# exported API, or moved to Autoconf or Automake where they belong. 78949418810dSmrg# 78959418810dSmrg# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN 78969418810dSmrg# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us 78979418810dSmrg# using a macro with the same name in our local m4/libtool.m4 it'll 78989418810dSmrg# pull the old libtool.m4 in (it doesn't see our shiny new m4_define 78999418810dSmrg# and doesn't know about Autoconf macros at all.) 79009418810dSmrg# 79019418810dSmrg# So we provide this file, which has a silly filename so it's always 79029418810dSmrg# included after everything else. This provides aclocal with the 79039418810dSmrg# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything 79049418810dSmrg# because those macros already exist, or will be overwritten later. 79059418810dSmrg# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6. 79069418810dSmrg# 79079418810dSmrg# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here. 79089418810dSmrg# Yes, that means every name once taken will need to remain here until 79099418810dSmrg# we give up compatibility with versions before 1.7, at which point 79109418810dSmrg# we need to keep only those names which we still refer to. 79119418810dSmrg 79129418810dSmrg# This is to help aclocal find these macros, as it can't see m4_define. 79139418810dSmrgAC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])]) 79149418810dSmrg 79159418810dSmrgm4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])]) 79169418810dSmrgm4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])]) 79179418810dSmrgm4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])]) 79189418810dSmrgm4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])]) 79199418810dSmrgm4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])]) 79209418810dSmrgm4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])]) 79219418810dSmrgm4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])]) 79229418810dSmrgm4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])]) 79239418810dSmrgm4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])]) 79249418810dSmrgm4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])]) 79259418810dSmrgm4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])]) 79269418810dSmrgm4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])]) 79279418810dSmrgm4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])]) 79289418810dSmrgm4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])]) 79299418810dSmrgm4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])]) 79309418810dSmrgm4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])]) 79319418810dSmrgm4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])]) 79329418810dSmrgm4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])]) 79339418810dSmrgm4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])]) 79349418810dSmrgm4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])]) 79359418810dSmrgm4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])]) 79369418810dSmrgm4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])]) 79379418810dSmrgm4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])]) 79389418810dSmrgm4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])]) 79399418810dSmrgm4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])]) 79409418810dSmrgm4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])]) 79419418810dSmrgm4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])]) 79429418810dSmrgm4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])]) 79439418810dSmrgm4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])]) 79449418810dSmrgm4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])]) 79459418810dSmrgm4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])]) 79469418810dSmrgm4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])]) 79479418810dSmrgm4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])]) 79489418810dSmrgm4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])]) 79499418810dSmrgm4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])]) 79509418810dSmrgm4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])]) 79519418810dSmrgm4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])]) 79529418810dSmrgm4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])]) 79539418810dSmrgm4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])]) 79549418810dSmrgm4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])]) 79559418810dSmrgm4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])]) 79569418810dSmrgm4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])]) 79579418810dSmrgm4_ifndef([AC_LIBTOOL_RC], [AC_DEFUN([AC_LIBTOOL_RC])]) 79589418810dSmrgm4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])]) 79599418810dSmrgm4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])]) 79609418810dSmrgm4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])]) 79619418810dSmrgm4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])]) 79629418810dSmrgm4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])]) 79639418810dSmrgm4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])]) 79649418810dSmrgm4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])]) 79659418810dSmrgm4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])]) 79669418810dSmrgm4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])]) 79679418810dSmrgm4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])]) 79689418810dSmrgm4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])]) 79699418810dSmrgm4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])]) 79709418810dSmrg 79719bd41f2cSmrg# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- 79729bd41f2cSmrg# 79739bd41f2cSmrg# Copyright © 2004 Scott James Remnant <scott@netsplit.com>. 79749bd41f2cSmrg# 79759bd41f2cSmrg# This program is free software; you can redistribute it and/or modify 79769bd41f2cSmrg# it under the terms of the GNU General Public License as published by 79779bd41f2cSmrg# the Free Software Foundation; either version 2 of the License, or 79789bd41f2cSmrg# (at your option) any later version. 79799bd41f2cSmrg# 79809bd41f2cSmrg# This program is distributed in the hope that it will be useful, but 79819bd41f2cSmrg# WITHOUT ANY WARRANTY; without even the implied warranty of 79829bd41f2cSmrg# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 79839bd41f2cSmrg# General Public License for more details. 79849bd41f2cSmrg# 79859bd41f2cSmrg# You should have received a copy of the GNU General Public License 79869bd41f2cSmrg# along with this program; if not, write to the Free Software 79879bd41f2cSmrg# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 79889bd41f2cSmrg# 79899bd41f2cSmrg# As a special exception to the GNU General Public License, if you 79909bd41f2cSmrg# distribute this file as part of a program that contains a 79919bd41f2cSmrg# configuration script generated by Autoconf, you may include it under 79929bd41f2cSmrg# the same distribution terms that you use for the rest of that program. 79939bd41f2cSmrg 79949bd41f2cSmrg# PKG_PROG_PKG_CONFIG([MIN-VERSION]) 79959bd41f2cSmrg# ---------------------------------- 79969bd41f2cSmrgAC_DEFUN([PKG_PROG_PKG_CONFIG], 79979bd41f2cSmrg[m4_pattern_forbid([^_?PKG_[A-Z_]+$]) 79989bd41f2cSmrgm4_pattern_allow([^PKG_CONFIG(_PATH)?$]) 79999bd41f2cSmrgAC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl 80009bd41f2cSmrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 80019bd41f2cSmrg AC_PATH_TOOL([PKG_CONFIG], [pkg-config]) 80029bd41f2cSmrgfi 80039bd41f2cSmrgif test -n "$PKG_CONFIG"; then 80049bd41f2cSmrg _pkg_min_version=m4_default([$1], [0.9.0]) 80059bd41f2cSmrg AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version]) 80069bd41f2cSmrg if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 80079bd41f2cSmrg AC_MSG_RESULT([yes]) 80089bd41f2cSmrg else 80099bd41f2cSmrg AC_MSG_RESULT([no]) 80109bd41f2cSmrg PKG_CONFIG="" 80119bd41f2cSmrg fi 80129bd41f2cSmrg 80139bd41f2cSmrgfi[]dnl 80149bd41f2cSmrg])# PKG_PROG_PKG_CONFIG 80159bd41f2cSmrg 80169bd41f2cSmrg# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) 80179bd41f2cSmrg# 80189bd41f2cSmrg# Check to see whether a particular set of modules exists. Similar 80199bd41f2cSmrg# to PKG_CHECK_MODULES(), but does not set variables or print errors. 80209bd41f2cSmrg# 80219bd41f2cSmrg# 80229bd41f2cSmrg# Similar to PKG_CHECK_MODULES, make sure that the first instance of 80239bd41f2cSmrg# this or PKG_CHECK_MODULES is called, or make sure to call 80249bd41f2cSmrg# PKG_CHECK_EXISTS manually 80259bd41f2cSmrg# -------------------------------------------------------------- 80269bd41f2cSmrgAC_DEFUN([PKG_CHECK_EXISTS], 80279bd41f2cSmrg[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl 80289bd41f2cSmrgif test -n "$PKG_CONFIG" && \ 80299bd41f2cSmrg AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then 80309bd41f2cSmrg m4_ifval([$2], [$2], [:]) 80319bd41f2cSmrgm4_ifvaln([$3], [else 80329bd41f2cSmrg $3])dnl 80339bd41f2cSmrgfi]) 80349bd41f2cSmrg 80359bd41f2cSmrg 80369bd41f2cSmrg# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) 80379bd41f2cSmrg# --------------------------------------------- 80389bd41f2cSmrgm4_define([_PKG_CONFIG], 8039d075918cSmrg[if test -n "$$1"; then 8040d075918cSmrg pkg_cv_[]$1="$$1" 8041d075918cSmrg elif test -n "$PKG_CONFIG"; then 8042d075918cSmrg PKG_CHECK_EXISTS([$3], 8043d075918cSmrg [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`], 8044d075918cSmrg [pkg_failed=yes]) 8045d075918cSmrg else 8046d075918cSmrg pkg_failed=untried 80479bd41f2cSmrgfi[]dnl 80489bd41f2cSmrg])# _PKG_CONFIG 80499bd41f2cSmrg 80509bd41f2cSmrg# _PKG_SHORT_ERRORS_SUPPORTED 80519bd41f2cSmrg# ----------------------------- 80529bd41f2cSmrgAC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED], 80539bd41f2cSmrg[AC_REQUIRE([PKG_PROG_PKG_CONFIG]) 80549bd41f2cSmrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 80559bd41f2cSmrg _pkg_short_errors_supported=yes 80569bd41f2cSmrgelse 80579bd41f2cSmrg _pkg_short_errors_supported=no 80589bd41f2cSmrgfi[]dnl 80599bd41f2cSmrg])# _PKG_SHORT_ERRORS_SUPPORTED 80609bd41f2cSmrg 80619bd41f2cSmrg 80629bd41f2cSmrg# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], 80639bd41f2cSmrg# [ACTION-IF-NOT-FOUND]) 80649bd41f2cSmrg# 80659bd41f2cSmrg# 80669bd41f2cSmrg# Note that if there is a possibility the first call to 80679bd41f2cSmrg# PKG_CHECK_MODULES might not happen, you should be sure to include an 80689bd41f2cSmrg# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac 80699bd41f2cSmrg# 80709bd41f2cSmrg# 80719bd41f2cSmrg# -------------------------------------------------------------- 80729bd41f2cSmrgAC_DEFUN([PKG_CHECK_MODULES], 80739bd41f2cSmrg[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl 80749bd41f2cSmrgAC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl 80759bd41f2cSmrgAC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl 80769bd41f2cSmrg 80779bd41f2cSmrgpkg_failed=no 80789bd41f2cSmrgAC_MSG_CHECKING([for $1]) 80799bd41f2cSmrg 80809bd41f2cSmrg_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2]) 80819bd41f2cSmrg_PKG_CONFIG([$1][_LIBS], [libs], [$2]) 80829bd41f2cSmrg 80839bd41f2cSmrgm4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS 80849bd41f2cSmrgand $1[]_LIBS to avoid the need to call pkg-config. 80859bd41f2cSmrgSee the pkg-config man page for more details.]) 80869bd41f2cSmrg 80879bd41f2cSmrgif test $pkg_failed = yes; then 80889bd41f2cSmrg _PKG_SHORT_ERRORS_SUPPORTED 80899bd41f2cSmrg if test $_pkg_short_errors_supported = yes; then 8090d075918cSmrg $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1` 80919bd41f2cSmrg else 8092d075918cSmrg $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1` 80939bd41f2cSmrg fi 80949bd41f2cSmrg # Put the nasty error message in config.log where it belongs 80959bd41f2cSmrg echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD 80969bd41f2cSmrg 80979bd41f2cSmrg ifelse([$4], , [AC_MSG_ERROR(dnl 80989bd41f2cSmrg[Package requirements ($2) were not met: 80999bd41f2cSmrg 81009bd41f2cSmrg$$1_PKG_ERRORS 81019bd41f2cSmrg 81029bd41f2cSmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you 81039bd41f2cSmrginstalled software in a non-standard prefix. 81049bd41f2cSmrg 81059bd41f2cSmrg_PKG_TEXT 81069bd41f2cSmrg])], 81079bd41f2cSmrg [AC_MSG_RESULT([no]) 81089bd41f2cSmrg $4]) 81099bd41f2cSmrgelif test $pkg_failed = untried; then 81109bd41f2cSmrg ifelse([$4], , [AC_MSG_FAILURE(dnl 81119bd41f2cSmrg[The pkg-config script could not be found or is too old. Make sure it 81129bd41f2cSmrgis in your PATH or set the PKG_CONFIG environment variable to the full 81139bd41f2cSmrgpath to pkg-config. 81149bd41f2cSmrg 81159bd41f2cSmrg_PKG_TEXT 81169bd41f2cSmrg 81179bd41f2cSmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>.])], 81189bd41f2cSmrg [$4]) 81199bd41f2cSmrgelse 81209bd41f2cSmrg $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS 81219bd41f2cSmrg $1[]_LIBS=$pkg_cv_[]$1[]_LIBS 81229bd41f2cSmrg AC_MSG_RESULT([yes]) 81239bd41f2cSmrg ifelse([$3], , :, [$3]) 81249bd41f2cSmrgfi[]dnl 81259bd41f2cSmrg])# PKG_CHECK_MODULES 81269bd41f2cSmrg 81279418810dSmrg# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 81289418810dSmrg# 81299418810dSmrg# This file is free software; the Free Software Foundation 81309418810dSmrg# gives unlimited permission to copy and/or distribute it, 81319418810dSmrg# with or without modifications, as long as this notice is preserved. 81329bd41f2cSmrg 81339418810dSmrg# AM_AUTOMAKE_VERSION(VERSION) 81349418810dSmrg# ---------------------------- 81359418810dSmrg# Automake X.Y traces this macro to ensure aclocal.m4 has been 81369418810dSmrg# generated from the m4 files accompanying Automake X.Y. 81379418810dSmrg# (This private macro should not be called outside this file.) 81389418810dSmrgAC_DEFUN([AM_AUTOMAKE_VERSION], 81399418810dSmrg[am__api_version='1.11' 81409418810dSmrgdnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to 81419418810dSmrgdnl require some minimum version. Point them to the right macro. 81429418810dSmrgm4_if([$1], [1.11.1], [], 81439418810dSmrg [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl 81449418810dSmrg]) 81459418810dSmrg 81469418810dSmrg# _AM_AUTOCONF_VERSION(VERSION) 81479418810dSmrg# ----------------------------- 81489418810dSmrg# aclocal traces this macro to find the Autoconf version. 81499418810dSmrg# This is a private macro too. Using m4_define simplifies 81509418810dSmrg# the logic in aclocal, which can simply ignore this definition. 81519418810dSmrgm4_define([_AM_AUTOCONF_VERSION], []) 81529418810dSmrg 81539418810dSmrg# AM_SET_CURRENT_AUTOMAKE_VERSION 81549418810dSmrg# ------------------------------- 81559418810dSmrg# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. 81569418810dSmrg# This function is AC_REQUIREd by AM_INIT_AUTOMAKE. 81579418810dSmrgAC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], 81589418810dSmrg[AM_AUTOMAKE_VERSION([1.11.1])dnl 81599418810dSmrgm4_ifndef([AC_AUTOCONF_VERSION], 81609418810dSmrg [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl 81619418810dSmrg_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) 81629418810dSmrg 81639418810dSmrg# AM_AUX_DIR_EXPAND -*- Autoconf -*- 81649418810dSmrg 81659418810dSmrg# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. 81669bd41f2cSmrg# 81679418810dSmrg# This file is free software; the Free Software Foundation 81689418810dSmrg# gives unlimited permission to copy and/or distribute it, 81699418810dSmrg# with or without modifications, as long as this notice is preserved. 81709418810dSmrg 81719418810dSmrg# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets 81729418810dSmrg# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to 81739418810dSmrg# `$srcdir', `$srcdir/..', or `$srcdir/../..'. 81749bd41f2cSmrg# 81759418810dSmrg# Of course, Automake must honor this variable whenever it calls a 81769418810dSmrg# tool from the auxiliary directory. The problem is that $srcdir (and 81779418810dSmrg# therefore $ac_aux_dir as well) can be either absolute or relative, 81789418810dSmrg# depending on how configure is run. This is pretty annoying, since 81799418810dSmrg# it makes $ac_aux_dir quite unusable in subdirectories: in the top 81809418810dSmrg# source directory, any form will work fine, but in subdirectories a 81819418810dSmrg# relative path needs to be adjusted first. 81829bd41f2cSmrg# 81839418810dSmrg# $ac_aux_dir/missing 81849418810dSmrg# fails when called from a subdirectory if $ac_aux_dir is relative 81859418810dSmrg# $top_srcdir/$ac_aux_dir/missing 81869418810dSmrg# fails if $ac_aux_dir is absolute, 81879418810dSmrg# fails when called from a subdirectory in a VPATH build with 81889418810dSmrg# a relative $ac_aux_dir 81899bd41f2cSmrg# 81909418810dSmrg# The reason of the latter failure is that $top_srcdir and $ac_aux_dir 81919418810dSmrg# are both prefixed by $srcdir. In an in-source build this is usually 81929418810dSmrg# harmless because $srcdir is `.', but things will broke when you 81939418810dSmrg# start a VPATH build or use an absolute $srcdir. 81949418810dSmrg# 81959418810dSmrg# So we could use something similar to $top_srcdir/$ac_aux_dir/missing, 81969418810dSmrg# iff we strip the leading $srcdir from $ac_aux_dir. That would be: 81979418810dSmrg# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` 81989418810dSmrg# and then we would define $MISSING as 81999418810dSmrg# MISSING="\${SHELL} $am_aux_dir/missing" 82009418810dSmrg# This will work as long as MISSING is not called from configure, because 82019418810dSmrg# unfortunately $(top_srcdir) has no meaning in configure. 82029418810dSmrg# However there are other variables, like CC, which are often used in 82039418810dSmrg# configure, and could therefore not use this "fixed" $ac_aux_dir. 82049418810dSmrg# 82059418810dSmrg# Another solution, used here, is to always expand $ac_aux_dir to an 82069418810dSmrg# absolute PATH. The drawback is that using absolute paths prevent a 82079418810dSmrg# configured tree to be moved without reconfiguration. 82089bd41f2cSmrg 82099418810dSmrgAC_DEFUN([AM_AUX_DIR_EXPAND], 82109418810dSmrg[dnl Rely on autoconf to set up CDPATH properly. 82119418810dSmrgAC_PREREQ([2.50])dnl 82129418810dSmrg# expand $ac_aux_dir to an absolute path 82139418810dSmrgam_aux_dir=`cd $ac_aux_dir && pwd` 82149418810dSmrg]) 82159418810dSmrg 82169418810dSmrg# AM_CONDITIONAL -*- Autoconf -*- 82179418810dSmrg 82189418810dSmrg# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008 82199418810dSmrg# Free Software Foundation, Inc. 82209bd41f2cSmrg# 82219418810dSmrg# This file is free software; the Free Software Foundation 82229418810dSmrg# gives unlimited permission to copy and/or distribute it, 82239418810dSmrg# with or without modifications, as long as this notice is preserved. 82249bd41f2cSmrg 82259418810dSmrg# serial 9 82269bd41f2cSmrg 82279418810dSmrg# AM_CONDITIONAL(NAME, SHELL-CONDITION) 82289418810dSmrg# ------------------------------------- 82299418810dSmrg# Define a conditional. 82309418810dSmrgAC_DEFUN([AM_CONDITIONAL], 82319418810dSmrg[AC_PREREQ(2.52)dnl 82329418810dSmrg ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], 82339418810dSmrg [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl 82349418810dSmrgAC_SUBST([$1_TRUE])dnl 82359418810dSmrgAC_SUBST([$1_FALSE])dnl 82369418810dSmrg_AM_SUBST_NOTMAKE([$1_TRUE])dnl 82379418810dSmrg_AM_SUBST_NOTMAKE([$1_FALSE])dnl 82389418810dSmrgm4_define([_AM_COND_VALUE_$1], [$2])dnl 82399418810dSmrgif $2; then 82409418810dSmrg $1_TRUE= 82419418810dSmrg $1_FALSE='#' 82429bd41f2cSmrgelse 82439418810dSmrg $1_TRUE='#' 82449418810dSmrg $1_FALSE= 82459bd41f2cSmrgfi 82469418810dSmrgAC_CONFIG_COMMANDS_PRE( 82479418810dSmrg[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then 82489418810dSmrg AC_MSG_ERROR([[conditional "$1" was never defined. 82499418810dSmrgUsually this means the macro was only invoked conditionally.]]) 82509418810dSmrgfi])]) 82519bd41f2cSmrg 82529418810dSmrg# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009 82539418810dSmrg# Free Software Foundation, Inc. 82549bd41f2cSmrg# 82559418810dSmrg# This file is free software; the Free Software Foundation 82569418810dSmrg# gives unlimited permission to copy and/or distribute it, 82579418810dSmrg# with or without modifications, as long as this notice is preserved. 82589bd41f2cSmrg 82599418810dSmrg# serial 10 82609bd41f2cSmrg 82619418810dSmrg# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be 82629418810dSmrg# written in clear, in which case automake, when reading aclocal.m4, 82639418810dSmrg# will think it sees a *use*, and therefore will trigger all it's 82649418810dSmrg# C support machinery. Also note that it means that autoscan, seeing 82659418810dSmrg# CC etc. in the Makefile, will ask for an AC_PROG_CC use... 82669bd41f2cSmrg 82679bd41f2cSmrg 82689418810dSmrg# _AM_DEPENDENCIES(NAME) 82699418810dSmrg# ---------------------- 82709418810dSmrg# See how the compiler implements dependency checking. 82719418810dSmrg# NAME is "CC", "CXX", "GCJ", or "OBJC". 82729418810dSmrg# We try a few techniques and use that to set a single cache variable. 82739418810dSmrg# 82749418810dSmrg# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was 82759418810dSmrg# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular 82769418810dSmrg# dependency, and given that the user is not expected to run this macro, 82779418810dSmrg# just rely on AC_PROG_CC. 82789418810dSmrgAC_DEFUN([_AM_DEPENDENCIES], 82799418810dSmrg[AC_REQUIRE([AM_SET_DEPDIR])dnl 82809418810dSmrgAC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl 82819418810dSmrgAC_REQUIRE([AM_MAKE_INCLUDE])dnl 82829418810dSmrgAC_REQUIRE([AM_DEP_TRACK])dnl 82839bd41f2cSmrg 82849418810dSmrgifelse([$1], CC, [depcc="$CC" am_compiler_list=], 82859418810dSmrg [$1], CXX, [depcc="$CXX" am_compiler_list=], 82869418810dSmrg [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], 82879418810dSmrg [$1], UPC, [depcc="$UPC" am_compiler_list=], 82889418810dSmrg [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], 82899418810dSmrg [depcc="$$1" am_compiler_list=]) 82909bd41f2cSmrg 82919418810dSmrgAC_CACHE_CHECK([dependency style of $depcc], 82929418810dSmrg [am_cv_$1_dependencies_compiler_type], 82939418810dSmrg[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 82949418810dSmrg # We make a subdir and do the tests there. Otherwise we can end up 82959418810dSmrg # making bogus files that we don't know about and never remove. For 82969418810dSmrg # instance it was reported that on HP-UX the gcc test will end up 82979418810dSmrg # making a dummy file named `D' -- because `-MD' means `put the output 82989418810dSmrg # in D'. 82999418810dSmrg mkdir conftest.dir 83009418810dSmrg # Copy depcomp to subdir because otherwise we won't find it if we're 83019418810dSmrg # using a relative directory. 83029418810dSmrg cp "$am_depcomp" conftest.dir 83039418810dSmrg cd conftest.dir 83049418810dSmrg # We will build objects and dependencies in a subdirectory because 83059418810dSmrg # it helps to detect inapplicable dependency modes. For instance 83069418810dSmrg # both Tru64's cc and ICC support -MD to output dependencies as a 83079418810dSmrg # side effect of compilation, but ICC will put the dependencies in 83089418810dSmrg # the current directory while Tru64 will put them in the object 83099418810dSmrg # directory. 83109418810dSmrg mkdir sub 83119bd41f2cSmrg 83129418810dSmrg am_cv_$1_dependencies_compiler_type=none 83139418810dSmrg if test "$am_compiler_list" = ""; then 83149418810dSmrg am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` 83159418810dSmrg fi 83169418810dSmrg am__universal=false 83179418810dSmrg m4_case([$1], [CC], 83189418810dSmrg [case " $depcc " in #( 83199418810dSmrg *\ -arch\ *\ -arch\ *) am__universal=true ;; 83209418810dSmrg esac], 83219418810dSmrg [CXX], 83229418810dSmrg [case " $depcc " in #( 83239418810dSmrg *\ -arch\ *\ -arch\ *) am__universal=true ;; 83249418810dSmrg esac]) 83259418810dSmrg 83269418810dSmrg for depmode in $am_compiler_list; do 83279418810dSmrg # Setup a source with many dependencies, because some compilers 83289418810dSmrg # like to wrap large dependency lists on column 80 (with \), and 83299418810dSmrg # we should not choose a depcomp mode which is confused by this. 83309418810dSmrg # 83319418810dSmrg # We need to recreate these files for each test, as the compiler may 83329418810dSmrg # overwrite some of them when testing with obscure command lines. 83339418810dSmrg # This happens at least with the AIX C compiler. 83349418810dSmrg : > sub/conftest.c 83359418810dSmrg for i in 1 2 3 4 5 6; do 83369418810dSmrg echo '#include "conftst'$i'.h"' >> sub/conftest.c 83379418810dSmrg # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 83389418810dSmrg # Solaris 8's {/usr,}/bin/sh. 83399418810dSmrg touch sub/conftst$i.h 83409418810dSmrg done 83419418810dSmrg echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 83429418810dSmrg 83439418810dSmrg # We check with `-c' and `-o' for the sake of the "dashmstdout" 83449418810dSmrg # mode. It turns out that the SunPro C++ compiler does not properly 83459418810dSmrg # handle `-M -o', and we need to detect this. Also, some Intel 83469418810dSmrg # versions had trouble with output in subdirs 83479418810dSmrg am__obj=sub/conftest.${OBJEXT-o} 83489418810dSmrg am__minus_obj="-o $am__obj" 83499418810dSmrg case $depmode in 83509418810dSmrg gcc) 83519418810dSmrg # This depmode causes a compiler race in universal mode. 83529418810dSmrg test "$am__universal" = false || continue 83539418810dSmrg ;; 83549418810dSmrg nosideeffect) 83559418810dSmrg # after this tag, mechanisms are not by side-effect, so they'll 83569418810dSmrg # only be used when explicitly requested 83579418810dSmrg if test "x$enable_dependency_tracking" = xyes; then 83589418810dSmrg continue 83599418810dSmrg else 83609418810dSmrg break 83619418810dSmrg fi 83629418810dSmrg ;; 83639418810dSmrg msvisualcpp | msvcmsys) 83649418810dSmrg # This compiler won't grok `-c -o', but also, the minuso test has 83659418810dSmrg # not run yet. These depmodes are late enough in the game, and 83669418810dSmrg # so weak that their functioning should not be impacted. 83679418810dSmrg am__obj=conftest.${OBJEXT-o} 83689418810dSmrg am__minus_obj= 83699418810dSmrg ;; 83709418810dSmrg none) break ;; 83719bd41f2cSmrg esac 83729418810dSmrg if depmode=$depmode \ 83739418810dSmrg source=sub/conftest.c object=$am__obj \ 83749418810dSmrg depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 83759418810dSmrg $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 83769418810dSmrg >/dev/null 2>conftest.err && 83779418810dSmrg grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 83789418810dSmrg grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 83799418810dSmrg grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 83809418810dSmrg ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 83819418810dSmrg # icc doesn't choke on unknown options, it will just issue warnings 83829418810dSmrg # or remarks (even with -Werror). So we grep stderr for any message 83839418810dSmrg # that says an option was ignored or not supported. 83849418810dSmrg # When given -MP, icc 7.0 and 7.1 complain thusly: 83859418810dSmrg # icc: Command line warning: ignoring option '-M'; no argument required 83869418810dSmrg # The diagnosis changed in icc 8.0: 83879418810dSmrg # icc: Command line remark: option '-MP' not supported 83889418810dSmrg if (grep 'ignoring option' conftest.err || 83899418810dSmrg grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 83909418810dSmrg am_cv_$1_dependencies_compiler_type=$depmode 83919418810dSmrg break 83929418810dSmrg fi 83939418810dSmrg fi 83949418810dSmrg done 83959418810dSmrg 83969418810dSmrg cd .. 83979418810dSmrg rm -rf conftest.dir 83989418810dSmrgelse 83999418810dSmrg am_cv_$1_dependencies_compiler_type=none 84009bd41f2cSmrgfi 84019418810dSmrg]) 84029418810dSmrgAC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) 84039418810dSmrgAM_CONDITIONAL([am__fastdep$1], [ 84049418810dSmrg test "x$enable_dependency_tracking" != xno \ 84059418810dSmrg && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) 84069418810dSmrg]) 84079bd41f2cSmrg 84089bd41f2cSmrg 84099418810dSmrg# AM_SET_DEPDIR 84109418810dSmrg# ------------- 84119418810dSmrg# Choose a directory name for dependency files. 84129418810dSmrg# This macro is AC_REQUIREd in _AM_DEPENDENCIES 84139418810dSmrgAC_DEFUN([AM_SET_DEPDIR], 84149418810dSmrg[AC_REQUIRE([AM_SET_LEADING_DOT])dnl 84159418810dSmrgAC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl 84169418810dSmrg]) 84179bd41f2cSmrg 84189bd41f2cSmrg 84199418810dSmrg# AM_DEP_TRACK 84209418810dSmrg# ------------ 84219418810dSmrgAC_DEFUN([AM_DEP_TRACK], 84229418810dSmrg[AC_ARG_ENABLE(dependency-tracking, 84239418810dSmrg[ --disable-dependency-tracking speeds up one-time build 84249418810dSmrg --enable-dependency-tracking do not reject slow dependency extractors]) 84259418810dSmrgif test "x$enable_dependency_tracking" != xno; then 84269418810dSmrg am_depcomp="$ac_aux_dir/depcomp" 84279418810dSmrg AMDEPBACKSLASH='\' 84289bd41f2cSmrgfi 84299418810dSmrgAM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) 84309418810dSmrgAC_SUBST([AMDEPBACKSLASH])dnl 84319418810dSmrg_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl 84329418810dSmrg]) 84339bd41f2cSmrg 84349418810dSmrg# Generate code to set up dependency tracking. -*- Autoconf -*- 84359bd41f2cSmrg 84369418810dSmrg# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008 84379418810dSmrg# Free Software Foundation, Inc. 84389418810dSmrg# 84399418810dSmrg# This file is free software; the Free Software Foundation 84409418810dSmrg# gives unlimited permission to copy and/or distribute it, 84419418810dSmrg# with or without modifications, as long as this notice is preserved. 84429bd41f2cSmrg 84439418810dSmrg#serial 5 84449bd41f2cSmrg 84459418810dSmrg# _AM_OUTPUT_DEPENDENCY_COMMANDS 84469418810dSmrg# ------------------------------ 84479418810dSmrgAC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], 84489418810dSmrg[{ 84499418810dSmrg # Autoconf 2.62 quotes --file arguments for eval, but not when files 84509418810dSmrg # are listed without --file. Let's play safe and only enable the eval 84519418810dSmrg # if we detect the quoting. 84529418810dSmrg case $CONFIG_FILES in 84539418810dSmrg *\'*) eval set x "$CONFIG_FILES" ;; 84549418810dSmrg *) set x $CONFIG_FILES ;; 84559418810dSmrg esac 84569418810dSmrg shift 84579418810dSmrg for mf 84589418810dSmrg do 84599418810dSmrg # Strip MF so we end up with the name of the file. 84609418810dSmrg mf=`echo "$mf" | sed -e 's/:.*$//'` 84619418810dSmrg # Check whether this is an Automake generated Makefile or not. 84629418810dSmrg # We used to match only the files named `Makefile.in', but 84639418810dSmrg # some people rename them; so instead we look at the file content. 84649418810dSmrg # Grep'ing the first line is not enough: some people post-process 84659418810dSmrg # each Makefile.in and add a new line on top of each file to say so. 84669418810dSmrg # Grep'ing the whole file is not good either: AIX grep has a line 84679418810dSmrg # limit of 2048, but all sed's we know have understand at least 4000. 84689418810dSmrg if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 84699418810dSmrg dirpart=`AS_DIRNAME("$mf")` 84709418810dSmrg else 84719418810dSmrg continue 84729418810dSmrg fi 84739418810dSmrg # Extract the definition of DEPDIR, am__include, and am__quote 84749418810dSmrg # from the Makefile without running `make'. 84759418810dSmrg DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 84769418810dSmrg test -z "$DEPDIR" && continue 84779418810dSmrg am__include=`sed -n 's/^am__include = //p' < "$mf"` 84789418810dSmrg test -z "am__include" && continue 84799418810dSmrg am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 84809418810dSmrg # When using ansi2knr, U may be empty or an underscore; expand it 84819418810dSmrg U=`sed -n 's/^U = //p' < "$mf"` 84829418810dSmrg # Find all dependency output files, they are included files with 84839418810dSmrg # $(DEPDIR) in their names. We invoke sed twice because it is the 84849418810dSmrg # simplest approach to changing $(DEPDIR) to its actual value in the 84859418810dSmrg # expansion. 84869418810dSmrg for file in `sed -n " 84879418810dSmrg s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 84889418810dSmrg sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 84899418810dSmrg # Make sure the directory exists. 84909418810dSmrg test -f "$dirpart/$file" && continue 84919418810dSmrg fdir=`AS_DIRNAME(["$file"])` 84929418810dSmrg AS_MKDIR_P([$dirpart/$fdir]) 84939418810dSmrg # echo "creating $dirpart/$file" 84949418810dSmrg echo '# dummy' > "$dirpart/$file" 84959418810dSmrg done 84969418810dSmrg done 84979418810dSmrg} 84989418810dSmrg])# _AM_OUTPUT_DEPENDENCY_COMMANDS 84999bd41f2cSmrg 85009bd41f2cSmrg 85019418810dSmrg# AM_OUTPUT_DEPENDENCY_COMMANDS 85029418810dSmrg# ----------------------------- 85039418810dSmrg# This macro should only be invoked once -- use via AC_REQUIRE. 85049418810dSmrg# 85059418810dSmrg# This code is only required when automatic dependency tracking 85069418810dSmrg# is enabled. FIXME. This creates each `.P' file that we will 85079418810dSmrg# need in order to bootstrap the dependency handling code. 85089418810dSmrgAC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], 85099418810dSmrg[AC_CONFIG_COMMANDS([depfiles], 85109418810dSmrg [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], 85119418810dSmrg [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) 85129418810dSmrg]) 85139bd41f2cSmrg 85149418810dSmrg# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 85159418810dSmrg# Free Software Foundation, Inc. 85169418810dSmrg# 85179418810dSmrg# This file is free software; the Free Software Foundation 85189418810dSmrg# gives unlimited permission to copy and/or distribute it, 85199418810dSmrg# with or without modifications, as long as this notice is preserved. 85209bd41f2cSmrg 85219418810dSmrg# serial 8 85229bd41f2cSmrg 85239418810dSmrg# AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS. 85249418810dSmrgAU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)]) 85259bd41f2cSmrg 85269418810dSmrg# Do all the work for Automake. -*- Autoconf -*- 85279bd41f2cSmrg 85289418810dSmrg# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 85299418810dSmrg# 2005, 2006, 2008, 2009 Free Software Foundation, Inc. 85309bd41f2cSmrg# 85319418810dSmrg# This file is free software; the Free Software Foundation 85329418810dSmrg# gives unlimited permission to copy and/or distribute it, 85339418810dSmrg# with or without modifications, as long as this notice is preserved. 85349bd41f2cSmrg 85359418810dSmrg# serial 16 85369bd41f2cSmrg 85379418810dSmrg# This macro actually does too much. Some checks are only needed if 85389418810dSmrg# your package does certain things. But this isn't really a big deal. 85399bd41f2cSmrg 85409418810dSmrg# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) 85419418810dSmrg# AM_INIT_AUTOMAKE([OPTIONS]) 85429418810dSmrg# ----------------------------------------------- 85439418810dSmrg# The call with PACKAGE and VERSION arguments is the old style 85449418810dSmrg# call (pre autoconf-2.50), which is being phased out. PACKAGE 85459418810dSmrg# and VERSION should now be passed to AC_INIT and removed from 85469418810dSmrg# the call to AM_INIT_AUTOMAKE. 85479418810dSmrg# We support both call styles for the transition. After 85489418810dSmrg# the next Automake release, Autoconf can make the AC_INIT 85499418810dSmrg# arguments mandatory, and then we can depend on a new Autoconf 85509418810dSmrg# release and drop the old call support. 85519418810dSmrgAC_DEFUN([AM_INIT_AUTOMAKE], 85529418810dSmrg[AC_PREREQ([2.62])dnl 85539418810dSmrgdnl Autoconf wants to disallow AM_ names. We explicitly allow 85549418810dSmrgdnl the ones we care about. 85559418810dSmrgm4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl 85569418810dSmrgAC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl 85579418810dSmrgAC_REQUIRE([AC_PROG_INSTALL])dnl 85589418810dSmrgif test "`cd $srcdir && pwd`" != "`pwd`"; then 85599418810dSmrg # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 85609418810dSmrg # is not polluted with repeated "-I." 85619418810dSmrg AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl 85629418810dSmrg # test to see if srcdir already configured 85639418810dSmrg if test -f $srcdir/config.status; then 85649418810dSmrg AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) 85659418810dSmrg fi 85669bd41f2cSmrgfi 85679bd41f2cSmrg 85689418810dSmrg# test whether we have cygpath 85699418810dSmrgif test -z "$CYGPATH_W"; then 85709418810dSmrg if (cygpath --version) >/dev/null 2>/dev/null; then 85719418810dSmrg CYGPATH_W='cygpath -w' 85729418810dSmrg else 85739418810dSmrg CYGPATH_W=echo 85749418810dSmrg fi 85759bd41f2cSmrgfi 85769418810dSmrgAC_SUBST([CYGPATH_W]) 85779bd41f2cSmrg 85789418810dSmrg# Define the identity of the package. 85799418810dSmrgdnl Distinguish between old-style and new-style calls. 85809418810dSmrgm4_ifval([$2], 85819418810dSmrg[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl 85829418810dSmrg AC_SUBST([PACKAGE], [$1])dnl 85839418810dSmrg AC_SUBST([VERSION], [$2])], 85849418810dSmrg[_AM_SET_OPTIONS([$1])dnl 85859418810dSmrgdnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. 85869418810dSmrgm4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,, 85879418810dSmrg [m4_fatal([AC_INIT should be called with package and version arguments])])dnl 85889418810dSmrg AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl 85899418810dSmrg AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl 85909bd41f2cSmrg 85919418810dSmrg_AM_IF_OPTION([no-define],, 85929418810dSmrg[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) 85939418810dSmrg AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl 85949bd41f2cSmrg 85959418810dSmrg# Some tools Automake needs. 85969418810dSmrgAC_REQUIRE([AM_SANITY_CHECK])dnl 85979418810dSmrgAC_REQUIRE([AC_ARG_PROGRAM])dnl 85989418810dSmrgAM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) 85999418810dSmrgAM_MISSING_PROG(AUTOCONF, autoconf) 86009418810dSmrgAM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) 86019418810dSmrgAM_MISSING_PROG(AUTOHEADER, autoheader) 86029418810dSmrgAM_MISSING_PROG(MAKEINFO, makeinfo) 86039418810dSmrgAC_REQUIRE([AM_PROG_INSTALL_SH])dnl 86049418810dSmrgAC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl 86059418810dSmrgAC_REQUIRE([AM_PROG_MKDIR_P])dnl 86069418810dSmrg# We need awk for the "check" target. The system "awk" is bad on 86079418810dSmrg# some platforms. 86089418810dSmrgAC_REQUIRE([AC_PROG_AWK])dnl 86099418810dSmrgAC_REQUIRE([AC_PROG_MAKE_SET])dnl 86109418810dSmrgAC_REQUIRE([AM_SET_LEADING_DOT])dnl 86119418810dSmrg_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], 86129418810dSmrg [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], 86139418810dSmrg [_AM_PROG_TAR([v7])])]) 86149418810dSmrg_AM_IF_OPTION([no-dependencies],, 86159418810dSmrg[AC_PROVIDE_IFELSE([AC_PROG_CC], 86169418810dSmrg [_AM_DEPENDENCIES(CC)], 86179418810dSmrg [define([AC_PROG_CC], 86189418810dSmrg defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl 86199418810dSmrgAC_PROVIDE_IFELSE([AC_PROG_CXX], 86209418810dSmrg [_AM_DEPENDENCIES(CXX)], 86219418810dSmrg [define([AC_PROG_CXX], 86229418810dSmrg defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl 86239418810dSmrgAC_PROVIDE_IFELSE([AC_PROG_OBJC], 86249418810dSmrg [_AM_DEPENDENCIES(OBJC)], 86259418810dSmrg [define([AC_PROG_OBJC], 86269418810dSmrg defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl 86279418810dSmrg]) 86289418810dSmrg_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl 86299418810dSmrgdnl The `parallel-tests' driver may need to know about EXEEXT, so add the 86309418810dSmrgdnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro 86319418810dSmrgdnl is hooked onto _AC_COMPILER_EXEEXT early, see below. 86329418810dSmrgAC_CONFIG_COMMANDS_PRE(dnl 86339418810dSmrg[m4_provide_if([_AM_COMPILER_EXEEXT], 86349418810dSmrg [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl 86359418810dSmrg]) 86369bd41f2cSmrg 86379418810dSmrgdnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not 86389418810dSmrgdnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further 86399418810dSmrgdnl mangled by Autoconf and run in a shell conditional statement. 86409418810dSmrgm4_define([_AC_COMPILER_EXEEXT], 86419418810dSmrgm4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) 86429418810dSmrg 86439418810dSmrg 86449418810dSmrg# When config.status generates a header, we must update the stamp-h file. 86459418810dSmrg# This file resides in the same directory as the config header 86469418810dSmrg# that is generated. The stamp files are numbered to have different names. 86479418810dSmrg 86489418810dSmrg# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the 86499418810dSmrg# loop where config.status creates the headers, so we can generate 86509418810dSmrg# our stamp files there. 86519418810dSmrgAC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], 86529418810dSmrg[# Compute $1's index in $config_headers. 86539418810dSmrg_am_arg=$1 86549418810dSmrg_am_stamp_count=1 86559418810dSmrgfor _am_header in $config_headers :; do 86569418810dSmrg case $_am_header in 86579418810dSmrg $_am_arg | $_am_arg:* ) 86589418810dSmrg break ;; 86599418810dSmrg * ) 86609418810dSmrg _am_stamp_count=`expr $_am_stamp_count + 1` ;; 86619418810dSmrg esac 86629418810dSmrgdone 86639418810dSmrgecho "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) 86649bd41f2cSmrg 86659418810dSmrg# Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc. 86669bd41f2cSmrg# 86679418810dSmrg# This file is free software; the Free Software Foundation 86689418810dSmrg# gives unlimited permission to copy and/or distribute it, 86699418810dSmrg# with or without modifications, as long as this notice is preserved. 86709bd41f2cSmrg 86719418810dSmrg# AM_PROG_INSTALL_SH 86729418810dSmrg# ------------------ 86739418810dSmrg# Define $install_sh. 86749418810dSmrgAC_DEFUN([AM_PROG_INSTALL_SH], 86759418810dSmrg[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 86769418810dSmrgif test x"${install_sh}" != xset; then 86779418810dSmrg case $am_aux_dir in 86789418810dSmrg *\ * | *\ *) 86799418810dSmrg install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 86809418810dSmrg *) 86819418810dSmrg install_sh="\${SHELL} $am_aux_dir/install-sh" 86829418810dSmrg esac 86839bd41f2cSmrgfi 86849418810dSmrgAC_SUBST(install_sh)]) 86859bd41f2cSmrg 86869418810dSmrg# Copyright (C) 2003, 2005 Free Software Foundation, Inc. 86879418810dSmrg# 86889418810dSmrg# This file is free software; the Free Software Foundation 86899418810dSmrg# gives unlimited permission to copy and/or distribute it, 86909418810dSmrg# with or without modifications, as long as this notice is preserved. 86919418810dSmrg 86929418810dSmrg# serial 2 86939418810dSmrg 86949418810dSmrg# Check whether the underlying file-system supports filenames 86959418810dSmrg# with a leading dot. For instance MS-DOS doesn't. 86969418810dSmrgAC_DEFUN([AM_SET_LEADING_DOT], 86979418810dSmrg[rm -rf .tst 2>/dev/null 86989418810dSmrgmkdir .tst 2>/dev/null 86999418810dSmrgif test -d .tst; then 87009418810dSmrg am__leading_dot=. 87019bd41f2cSmrgelse 87029418810dSmrg am__leading_dot=_ 87039bd41f2cSmrgfi 87049418810dSmrgrmdir .tst 2>/dev/null 87059418810dSmrgAC_SUBST([am__leading_dot])]) 87069bd41f2cSmrg 87079418810dSmrg# Add --enable-maintainer-mode option to configure. -*- Autoconf -*- 87089418810dSmrg# From Jim Meyering 87099bd41f2cSmrg 87109418810dSmrg# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008 87119418810dSmrg# Free Software Foundation, Inc. 87129bd41f2cSmrg# 87139418810dSmrg# This file is free software; the Free Software Foundation 87149418810dSmrg# gives unlimited permission to copy and/or distribute it, 87159418810dSmrg# with or without modifications, as long as this notice is preserved. 87169bd41f2cSmrg 87179418810dSmrg# serial 5 87189bd41f2cSmrg 87199418810dSmrg# AM_MAINTAINER_MODE([DEFAULT-MODE]) 87209418810dSmrg# ---------------------------------- 87219418810dSmrg# Control maintainer-specific portions of Makefiles. 87229418810dSmrg# Default is to disable them, unless `enable' is passed literally. 87239418810dSmrg# For symmetry, `disable' may be passed as well. Anyway, the user 87249418810dSmrg# can override the default with the --enable/--disable switch. 87259418810dSmrgAC_DEFUN([AM_MAINTAINER_MODE], 87269418810dSmrg[m4_case(m4_default([$1], [disable]), 87279418810dSmrg [enable], [m4_define([am_maintainer_other], [disable])], 87289418810dSmrg [disable], [m4_define([am_maintainer_other], [enable])], 87299418810dSmrg [m4_define([am_maintainer_other], [enable]) 87309418810dSmrg m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])]) 87319418810dSmrgAC_MSG_CHECKING([whether to am_maintainer_other maintainer-specific portions of Makefiles]) 87329418810dSmrg dnl maintainer-mode's default is 'disable' unless 'enable' is passed 87339418810dSmrg AC_ARG_ENABLE([maintainer-mode], 87349418810dSmrg[ --][am_maintainer_other][-maintainer-mode am_maintainer_other make rules and dependencies not useful 87359418810dSmrg (and sometimes confusing) to the casual installer], 87369418810dSmrg [USE_MAINTAINER_MODE=$enableval], 87379418810dSmrg [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes])) 87389418810dSmrg AC_MSG_RESULT([$USE_MAINTAINER_MODE]) 87399418810dSmrg AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes]) 87409418810dSmrg MAINT=$MAINTAINER_MODE_TRUE 87419418810dSmrg AC_SUBST([MAINT])dnl 87429418810dSmrg] 87439418810dSmrg) 87449bd41f2cSmrg 87459418810dSmrgAU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE]) 87469bd41f2cSmrg 87479418810dSmrg# Check to see how 'make' treats includes. -*- Autoconf -*- 87489bd41f2cSmrg 87499418810dSmrg# Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc. 87509418810dSmrg# 87519418810dSmrg# This file is free software; the Free Software Foundation 87529418810dSmrg# gives unlimited permission to copy and/or distribute it, 87539418810dSmrg# with or without modifications, as long as this notice is preserved. 87549bd41f2cSmrg 87559418810dSmrg# serial 4 87569bd41f2cSmrg 87579418810dSmrg# AM_MAKE_INCLUDE() 87589418810dSmrg# ----------------- 87599418810dSmrg# Check to see how make treats includes. 87609418810dSmrgAC_DEFUN([AM_MAKE_INCLUDE], 87619418810dSmrg[am_make=${MAKE-make} 87629418810dSmrgcat > confinc << 'END' 87639418810dSmrgam__doit: 87649418810dSmrg @echo this is the am__doit target 87659418810dSmrg.PHONY: am__doit 87669418810dSmrgEND 87679418810dSmrg# If we don't find an include directive, just comment out the code. 87689418810dSmrgAC_MSG_CHECKING([for style of include used by $am_make]) 87699418810dSmrgam__include="#" 87709418810dSmrgam__quote= 87719418810dSmrg_am_result=none 87729418810dSmrg# First try GNU make style include. 87739418810dSmrgecho "include confinc" > confmf 87749418810dSmrg# Ignore all kinds of additional output from `make'. 87759418810dSmrgcase `$am_make -s -f confmf 2> /dev/null` in #( 87769418810dSmrg*the\ am__doit\ target*) 87779418810dSmrg am__include=include 87789418810dSmrg am__quote= 87799418810dSmrg _am_result=GNU 87809418810dSmrg ;; 87819418810dSmrgesac 87829418810dSmrg# Now try BSD make style include. 87839418810dSmrgif test "$am__include" = "#"; then 87849418810dSmrg echo '.include "confinc"' > confmf 87859418810dSmrg case `$am_make -s -f confmf 2> /dev/null` in #( 87869418810dSmrg *the\ am__doit\ target*) 87879418810dSmrg am__include=.include 87889418810dSmrg am__quote="\"" 87899418810dSmrg _am_result=BSD 87909418810dSmrg ;; 87919418810dSmrg esac 8792b15a006bSmrgfi 87939418810dSmrgAC_SUBST([am__include]) 87949418810dSmrgAC_SUBST([am__quote]) 87959418810dSmrgAC_MSG_RESULT([$_am_result]) 87969418810dSmrgrm -f confinc confmf 87979bd41f2cSmrg]) 87989bd41f2cSmrg 87999418810dSmrg# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- 88009418810dSmrg 88019418810dSmrg# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008 88029418810dSmrg# Free Software Foundation, Inc. 8803b15a006bSmrg# 88049418810dSmrg# This file is free software; the Free Software Foundation 88059418810dSmrg# gives unlimited permission to copy and/or distribute it, 88069418810dSmrg# with or without modifications, as long as this notice is preserved. 8807b15a006bSmrg 88089418810dSmrg# serial 6 8809b15a006bSmrg 88109418810dSmrg# AM_MISSING_PROG(NAME, PROGRAM) 88119418810dSmrg# ------------------------------ 88129418810dSmrgAC_DEFUN([AM_MISSING_PROG], 88139418810dSmrg[AC_REQUIRE([AM_MISSING_HAS_RUN]) 88149418810dSmrg$1=${$1-"${am_missing_run}$2"} 88159418810dSmrgAC_SUBST($1)]) 8816b15a006bSmrg 88179418810dSmrg 88189418810dSmrg# AM_MISSING_HAS_RUN 88199418810dSmrg# ------------------ 88209418810dSmrg# Define MISSING if not defined so far and test if it supports --run. 88219418810dSmrg# If it does, set am_missing_run to use it, otherwise, to nothing. 88229418810dSmrgAC_DEFUN([AM_MISSING_HAS_RUN], 88239418810dSmrg[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 88249418810dSmrgAC_REQUIRE_AUX_FILE([missing])dnl 88259418810dSmrgif test x"${MISSING+set}" != xset; then 88269418810dSmrg case $am_aux_dir in 88279418810dSmrg *\ * | *\ *) 88289418810dSmrg MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 88299418810dSmrg *) 88309418810dSmrg MISSING="\${SHELL} $am_aux_dir/missing" ;; 88319418810dSmrg esac 88329418810dSmrgfi 88339418810dSmrg# Use eval to expand $SHELL 88349418810dSmrgif eval "$MISSING --run true"; then 88359418810dSmrg am_missing_run="$MISSING --run " 88369418810dSmrgelse 88379418810dSmrg am_missing_run= 88389418810dSmrg AC_MSG_WARN([`missing' script is too old or missing]) 88399418810dSmrgfi 8840b15a006bSmrg]) 8841b15a006bSmrg 88429418810dSmrg# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 88439bd41f2cSmrg# 88449bd41f2cSmrg# This file is free software; the Free Software Foundation 88459bd41f2cSmrg# gives unlimited permission to copy and/or distribute it, 88469bd41f2cSmrg# with or without modifications, as long as this notice is preserved. 88479bd41f2cSmrg 88489418810dSmrg# AM_PROG_MKDIR_P 88499418810dSmrg# --------------- 88509418810dSmrg# Check for `mkdir -p'. 88519418810dSmrgAC_DEFUN([AM_PROG_MKDIR_P], 88529418810dSmrg[AC_PREREQ([2.60])dnl 88539418810dSmrgAC_REQUIRE([AC_PROG_MKDIR_P])dnl 88549418810dSmrgdnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P, 88559418810dSmrgdnl while keeping a definition of mkdir_p for backward compatibility. 88569418810dSmrgdnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile. 88579418810dSmrgdnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of 88589418810dSmrgdnl Makefile.ins that do not define MKDIR_P, so we do our own 88599418810dSmrgdnl adjustment using top_builddir (which is defined more often than 88609418810dSmrgdnl MKDIR_P). 88619418810dSmrgAC_SUBST([mkdir_p], ["$MKDIR_P"])dnl 88629418810dSmrgcase $mkdir_p in 88639418810dSmrg [[\\/$]]* | ?:[[\\/]]*) ;; 88649418810dSmrg */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 88659418810dSmrgesac 88669bd41f2cSmrg]) 88679bd41f2cSmrg 88689418810dSmrg# Helper functions for option handling. -*- Autoconf -*- 88699bd41f2cSmrg 88709418810dSmrg# Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc. 88719418810dSmrg# 88729418810dSmrg# This file is free software; the Free Software Foundation 88739418810dSmrg# gives unlimited permission to copy and/or distribute it, 88749418810dSmrg# with or without modifications, as long as this notice is preserved. 88759bd41f2cSmrg 88769418810dSmrg# serial 4 88779bd41f2cSmrg 88789418810dSmrg# _AM_MANGLE_OPTION(NAME) 88799418810dSmrg# ----------------------- 88809418810dSmrgAC_DEFUN([_AM_MANGLE_OPTION], 88819418810dSmrg[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) 88829418810dSmrg 88839418810dSmrg# _AM_SET_OPTION(NAME) 88849418810dSmrg# ------------------------------ 88859418810dSmrg# Set option NAME. Presently that only means defining a flag for this option. 88869418810dSmrgAC_DEFUN([_AM_SET_OPTION], 88879418810dSmrg[m4_define(_AM_MANGLE_OPTION([$1]), 1)]) 88889418810dSmrg 88899418810dSmrg# _AM_SET_OPTIONS(OPTIONS) 88909418810dSmrg# ---------------------------------- 88919418810dSmrg# OPTIONS is a space-separated list of Automake options. 88929418810dSmrgAC_DEFUN([_AM_SET_OPTIONS], 88939418810dSmrg[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) 88949418810dSmrg 88959418810dSmrg# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) 88969418810dSmrg# ------------------------------------------- 88979418810dSmrg# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. 88989418810dSmrgAC_DEFUN([_AM_IF_OPTION], 88999418810dSmrg[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) 89009418810dSmrg 89019418810dSmrg# Check to make sure that the build environment is sane. -*- Autoconf -*- 89029418810dSmrg 89039418810dSmrg# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008 89049418810dSmrg# Free Software Foundation, Inc. 89059bd41f2cSmrg# 89069bd41f2cSmrg# This file is free software; the Free Software Foundation 89079bd41f2cSmrg# gives unlimited permission to copy and/or distribute it, 89089bd41f2cSmrg# with or without modifications, as long as this notice is preserved. 89099bd41f2cSmrg 89109418810dSmrg# serial 5 89119418810dSmrg 89129418810dSmrg# AM_SANITY_CHECK 89139418810dSmrg# --------------- 89149418810dSmrgAC_DEFUN([AM_SANITY_CHECK], 89159418810dSmrg[AC_MSG_CHECKING([whether build environment is sane]) 89169418810dSmrg# Just in case 89179418810dSmrgsleep 1 89189418810dSmrgecho timestamp > conftest.file 89199418810dSmrg# Reject unsafe characters in $srcdir or the absolute working directory 89209418810dSmrg# name. Accept space and tab only in the latter. 89219418810dSmrgam_lf=' 89229418810dSmrg' 89239418810dSmrgcase `pwd` in 89249418810dSmrg *[[\\\"\#\$\&\'\`$am_lf]]*) 89259418810dSmrg AC_MSG_ERROR([unsafe absolute working directory name]);; 89269418810dSmrgesac 89279418810dSmrgcase $srcdir in 89289418810dSmrg *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) 89299418810dSmrg AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);; 89309418810dSmrgesac 89319418810dSmrg 89329418810dSmrg# Do `set' in a subshell so we don't clobber the current shell's 89339418810dSmrg# arguments. Must try -L first in case configure is actually a 89349418810dSmrg# symlink; some systems play weird games with the mod time of symlinks 89359418810dSmrg# (eg FreeBSD returns the mod time of the symlink's containing 89369418810dSmrg# directory). 89379418810dSmrgif ( 89389418810dSmrg set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 89399418810dSmrg if test "$[*]" = "X"; then 89409418810dSmrg # -L didn't work. 89419418810dSmrg set X `ls -t "$srcdir/configure" conftest.file` 89429418810dSmrg fi 89439418810dSmrg rm -f conftest.file 89449418810dSmrg if test "$[*]" != "X $srcdir/configure conftest.file" \ 89459418810dSmrg && test "$[*]" != "X conftest.file $srcdir/configure"; then 89469418810dSmrg 89479418810dSmrg # If neither matched, then we have a broken ls. This can happen 89489418810dSmrg # if, for instance, CONFIG_SHELL is bash and it inherits a 89499418810dSmrg # broken ls alias from the environment. This has actually 89509418810dSmrg # happened. Such a system could not be considered "sane". 89519418810dSmrg AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken 89529418810dSmrgalias in your environment]) 89539418810dSmrg fi 89549418810dSmrg 89559418810dSmrg test "$[2]" = conftest.file 89569418810dSmrg ) 89579418810dSmrgthen 89589418810dSmrg # Ok. 89599418810dSmrg : 89609418810dSmrgelse 89619418810dSmrg AC_MSG_ERROR([newly created file is older than distributed files! 89629418810dSmrgCheck your system clock]) 89639418810dSmrgfi 89649418810dSmrgAC_MSG_RESULT(yes)]) 89659418810dSmrg 89669418810dSmrg# Copyright (C) 2009 Free Software Foundation, Inc. 89679bd41f2cSmrg# 89689418810dSmrg# This file is free software; the Free Software Foundation 89699418810dSmrg# gives unlimited permission to copy and/or distribute it, 89709418810dSmrg# with or without modifications, as long as this notice is preserved. 89719bd41f2cSmrg 89729418810dSmrg# serial 1 89739bd41f2cSmrg 89749418810dSmrg# AM_SILENT_RULES([DEFAULT]) 89759418810dSmrg# -------------------------- 89769418810dSmrg# Enable less verbose build rules; with the default set to DEFAULT 89779418810dSmrg# (`yes' being less verbose, `no' or empty being verbose). 89789418810dSmrgAC_DEFUN([AM_SILENT_RULES], 89799418810dSmrg[AC_ARG_ENABLE([silent-rules], 89809418810dSmrg[ --enable-silent-rules less verbose build output (undo: `make V=1') 89819418810dSmrg --disable-silent-rules verbose build output (undo: `make V=0')]) 89829418810dSmrgcase $enable_silent_rules in 89839418810dSmrgyes) AM_DEFAULT_VERBOSITY=0;; 89849418810dSmrgno) AM_DEFAULT_VERBOSITY=1;; 89859418810dSmrg*) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);; 89869418810dSmrgesac 89879418810dSmrgAC_SUBST([AM_DEFAULT_VERBOSITY])dnl 89889418810dSmrgAM_BACKSLASH='\' 89899418810dSmrgAC_SUBST([AM_BACKSLASH])dnl 89909418810dSmrg_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl 89919418810dSmrg]) 89929bd41f2cSmrg 89939418810dSmrg# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. 89949bd41f2cSmrg# 89959bd41f2cSmrg# This file is free software; the Free Software Foundation 89969bd41f2cSmrg# gives unlimited permission to copy and/or distribute it, 89979bd41f2cSmrg# with or without modifications, as long as this notice is preserved. 89989bd41f2cSmrg 89999418810dSmrg# AM_PROG_INSTALL_STRIP 90009418810dSmrg# --------------------- 90019418810dSmrg# One issue with vendor `install' (even GNU) is that you can't 90029418810dSmrg# specify the program used to strip binaries. This is especially 90039418810dSmrg# annoying in cross-compiling environments, where the build's strip 90049418810dSmrg# is unlikely to handle the host's binaries. 90059418810dSmrg# Fortunately install-sh will honor a STRIPPROG variable, so we 90069418810dSmrg# always use install-sh in `make install-strip', and initialize 90079418810dSmrg# STRIPPROG with the value of the STRIP variable (set by the user). 90089418810dSmrgAC_DEFUN([AM_PROG_INSTALL_STRIP], 90099418810dSmrg[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl 90109418810dSmrg# Installed binaries are usually stripped using `strip' when the user 90119418810dSmrg# run `make install-strip'. However `strip' might not be the right 90129418810dSmrg# tool to use in cross-compilation environments, therefore Automake 90139418810dSmrg# will honor the `STRIP' environment variable to overrule this program. 90149418810dSmrgdnl Don't test for $cross_compiling = yes, because it might be `maybe'. 90159418810dSmrgif test "$cross_compiling" != no; then 90169418810dSmrg AC_CHECK_TOOL([STRIP], [strip], :) 90179bd41f2cSmrgfi 90189418810dSmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 90199418810dSmrgAC_SUBST([INSTALL_STRIP_PROGRAM])]) 90209bd41f2cSmrg 90219418810dSmrg# Copyright (C) 2006, 2008 Free Software Foundation, Inc. 90229bd41f2cSmrg# 90239bd41f2cSmrg# This file is free software; the Free Software Foundation 90249bd41f2cSmrg# gives unlimited permission to copy and/or distribute it, 90259bd41f2cSmrg# with or without modifications, as long as this notice is preserved. 90269bd41f2cSmrg 90279418810dSmrg# serial 2 90289bd41f2cSmrg 90299418810dSmrg# _AM_SUBST_NOTMAKE(VARIABLE) 90309418810dSmrg# --------------------------- 90319418810dSmrg# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. 90329418810dSmrg# This macro is traced by Automake. 90339418810dSmrgAC_DEFUN([_AM_SUBST_NOTMAKE]) 90349bd41f2cSmrg 90359418810dSmrg# AM_SUBST_NOTMAKE(VARIABLE) 90369418810dSmrg# --------------------------- 90379418810dSmrg# Public sister of _AM_SUBST_NOTMAKE. 90389418810dSmrgAC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) 90399bd41f2cSmrg 90409418810dSmrg# Check how to create a tarball. -*- Autoconf -*- 90419418810dSmrg 90429418810dSmrg# Copyright (C) 2004, 2005 Free Software Foundation, Inc. 90439bd41f2cSmrg# 90449418810dSmrg# This file is free software; the Free Software Foundation 90459418810dSmrg# gives unlimited permission to copy and/or distribute it, 90469418810dSmrg# with or without modifications, as long as this notice is preserved. 90479bd41f2cSmrg 90489418810dSmrg# serial 2 90499bd41f2cSmrg 90509418810dSmrg# _AM_PROG_TAR(FORMAT) 90519418810dSmrg# -------------------- 90529418810dSmrg# Check how to create a tarball in format FORMAT. 90539418810dSmrg# FORMAT should be one of `v7', `ustar', or `pax'. 90549418810dSmrg# 90559418810dSmrg# Substitute a variable $(am__tar) that is a command 90569418810dSmrg# writing to stdout a FORMAT-tarball containing the directory 90579418810dSmrg# $tardir. 90589418810dSmrg# tardir=directory && $(am__tar) > result.tar 90599418810dSmrg# 90609418810dSmrg# Substitute a variable $(am__untar) that extract such 90619418810dSmrg# a tarball read from stdin. 90629418810dSmrg# $(am__untar) < result.tar 90639418810dSmrgAC_DEFUN([_AM_PROG_TAR], 90649418810dSmrg[# Always define AMTAR for backward compatibility. 90659418810dSmrgAM_MISSING_PROG([AMTAR], [tar]) 90669418810dSmrgm4_if([$1], [v7], 90679418810dSmrg [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'], 90689418810dSmrg [m4_case([$1], [ustar],, [pax],, 90699418810dSmrg [m4_fatal([Unknown tar format])]) 90709418810dSmrgAC_MSG_CHECKING([how to create a $1 tar archive]) 90719418810dSmrg# Loop over all known methods to create a tar archive until one works. 90729418810dSmrg_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' 90739418810dSmrg_am_tools=${am_cv_prog_tar_$1-$_am_tools} 90749418810dSmrg# Do not fold the above two line into one, because Tru64 sh and 90759418810dSmrg# Solaris sh will not grok spaces in the rhs of `-'. 90769418810dSmrgfor _am_tool in $_am_tools 90779418810dSmrgdo 90789418810dSmrg case $_am_tool in 90799418810dSmrg gnutar) 90809418810dSmrg for _am_tar in tar gnutar gtar; 90819418810dSmrg do 90829418810dSmrg AM_RUN_LOG([$_am_tar --version]) && break 90839418810dSmrg done 90849418810dSmrg am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' 90859418810dSmrg am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' 90869418810dSmrg am__untar="$_am_tar -xf -" 90879418810dSmrg ;; 90889418810dSmrg plaintar) 90899418810dSmrg # Must skip GNU tar: if it does not support --format= it doesn't create 90909418810dSmrg # ustar tarball either. 90919418810dSmrg (tar --version) >/dev/null 2>&1 && continue 90929418810dSmrg am__tar='tar chf - "$$tardir"' 90939418810dSmrg am__tar_='tar chf - "$tardir"' 90949418810dSmrg am__untar='tar xf -' 90959418810dSmrg ;; 90969418810dSmrg pax) 90979418810dSmrg am__tar='pax -L -x $1 -w "$$tardir"' 90989418810dSmrg am__tar_='pax -L -x $1 -w "$tardir"' 90999418810dSmrg am__untar='pax -r' 91009418810dSmrg ;; 91019418810dSmrg cpio) 91029418810dSmrg am__tar='find "$$tardir" -print | cpio -o -H $1 -L' 91039418810dSmrg am__tar_='find "$tardir" -print | cpio -o -H $1 -L' 91049418810dSmrg am__untar='cpio -i -H $1 -d' 91059418810dSmrg ;; 91069418810dSmrg none) 91079418810dSmrg am__tar=false 91089418810dSmrg am__tar_=false 91099418810dSmrg am__untar=false 91109418810dSmrg ;; 91119418810dSmrg esac 91129bd41f2cSmrg 91139418810dSmrg # If the value was cached, stop now. We just wanted to have am__tar 91149418810dSmrg # and am__untar set. 91159418810dSmrg test -n "${am_cv_prog_tar_$1}" && break 91169418810dSmrg 91179418810dSmrg # tar/untar a dummy directory, and stop if the command works 91189418810dSmrg rm -rf conftest.dir 91199418810dSmrg mkdir conftest.dir 91209418810dSmrg echo GrepMe > conftest.dir/file 91219418810dSmrg AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) 91229418810dSmrg rm -rf conftest.dir 91239418810dSmrg if test -s conftest.tar; then 91249418810dSmrg AM_RUN_LOG([$am__untar <conftest.tar]) 91259418810dSmrg grep GrepMe conftest.dir/file >/dev/null 2>&1 && break 91269bd41f2cSmrg fi 91279418810dSmrgdone 91289418810dSmrgrm -rf conftest.dir 91299bd41f2cSmrg 91309418810dSmrgAC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) 91319418810dSmrgAC_MSG_RESULT([$am_cv_prog_tar_$1])]) 91329418810dSmrgAC_SUBST([am__tar]) 91339418810dSmrgAC_SUBST([am__untar]) 91349418810dSmrg]) # _AM_PROG_TAR 91359418810dSmrg 91369418810dSmrgdnl xorg-macros.m4. Generated from xorg-macros.m4.in xorgversion.m4 by configure. 91379418810dSmrgdnl 91389418810dSmrgdnl Copyright 2005-2006 Sun Microsystems, Inc. All rights reserved. 91399418810dSmrgdnl 91409418810dSmrgdnl Permission is hereby granted, free of charge, to any person obtaining a 91419418810dSmrgdnl copy of this software and associated documentation files (the "Software"), 91429418810dSmrgdnl to deal in the Software without restriction, including without limitation 91439418810dSmrgdnl the rights to use, copy, modify, merge, publish, distribute, sublicense, 91449418810dSmrgdnl and/or sell copies of the Software, and to permit persons to whom the 91459418810dSmrgdnl Software is furnished to do so, subject to the following conditions: 91469418810dSmrgdnl 91479418810dSmrgdnl The above copyright notice and this permission notice (including the next 91489418810dSmrgdnl paragraph) shall be included in all copies or substantial portions of the 91499418810dSmrgdnl Software. 91509418810dSmrgdnl 91519418810dSmrgdnl THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 91529418810dSmrgdnl IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 91539418810dSmrgdnl FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 91549418810dSmrgdnl THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 91559418810dSmrgdnl LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 91569418810dSmrgdnl FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 91579418810dSmrgdnl DEALINGS IN THE SOFTWARE. 91589418810dSmrg 91599418810dSmrg# XORG_MACROS_VERSION(required-version) 91609418810dSmrg# ------------------------------------- 91619418810dSmrg# Minimum version: 1.1.0 91629418810dSmrg# 91639418810dSmrg# If you're using a macro added in Version 1.1 or newer, include this in 91649418810dSmrg# your configure.ac with the minimum required version, such as: 91659418810dSmrg# XORG_MACROS_VERSION(1.1) 91669418810dSmrg# 91679418810dSmrg# To ensure that this macro is defined, also add: 91689418810dSmrg# m4_ifndef([XORG_MACROS_VERSION], 91699418810dSmrg# [m4_fatal([must install xorg-macros 1.1 or later before running autoconf/autogen])]) 91709418810dSmrg# 91719418810dSmrg# 91729418810dSmrg# See the "minimum version" comment for each macro you use to see what 91739418810dSmrg# version you require. 91749418810dSmrgm4_defun([XORG_MACROS_VERSION],[ 91759418810dSmrgm4_define([vers_have], [1.7.0]) 91769418810dSmrgm4_define([maj_have], m4_substr(vers_have, 0, m4_index(vers_have, [.]))) 91779418810dSmrgm4_define([maj_needed], m4_substr([$1], 0, m4_index([$1], [.]))) 91789418810dSmrgm4_if(m4_cmp(maj_have, maj_needed), 0,, 91799418810dSmrg [m4_fatal([xorg-macros major version ]maj_needed[ is required but ]vers_have[ found])]) 91809418810dSmrgm4_if(m4_version_compare(vers_have, [$1]), -1, 91819418810dSmrg [m4_fatal([xorg-macros version $1 or higher is required but ]vers_have[ found])]) 91829418810dSmrgm4_undefine([vers_have]) 91839418810dSmrgm4_undefine([maj_have]) 91849418810dSmrgm4_undefine([maj_needed]) 91859418810dSmrg]) # XORG_MACROS_VERSION 91869bd41f2cSmrg 91879418810dSmrg# XORG_PROG_RAWCPP() 91889418810dSmrg# ------------------ 91899418810dSmrg# Minimum version: 1.0.0 91909418810dSmrg# 91919418810dSmrg# Find cpp program and necessary flags for use in pre-processing text files 91929418810dSmrg# such as man pages and config files 91939418810dSmrgAC_DEFUN([XORG_PROG_RAWCPP],[ 91949418810dSmrgAC_REQUIRE([AC_PROG_CPP]) 91959418810dSmrgAC_PATH_PROGS(RAWCPP, [cpp], [${CPP}], 91969418810dSmrg [$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib]) 91979418810dSmrg 91989418810dSmrg# Check for flag to avoid builtin definitions - assumes unix is predefined, 91999418810dSmrg# which is not the best choice for supporting other OS'es, but covers most 92009418810dSmrg# of the ones we need for now. 92019418810dSmrgAC_MSG_CHECKING([if $RAWCPP requires -undef]) 92029418810dSmrgAC_LANG_CONFTEST([Does cpp redefine unix ?]) 92039418810dSmrgif test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 92049418810dSmrg AC_MSG_RESULT([no]) 92059bd41f2cSmrgelse 92069418810dSmrg if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 92079418810dSmrg RAWCPPFLAGS=-undef 92089418810dSmrg AC_MSG_RESULT([yes]) 92099418810dSmrg # under Cygwin unix is still defined even with -undef 92109418810dSmrg elif test `${RAWCPP} -undef -ansi < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 92119418810dSmrg RAWCPPFLAGS="-undef -ansi" 92129418810dSmrg AC_MSG_RESULT([yes, with -ansi]) 92139418810dSmrg else 92149418810dSmrg AC_MSG_ERROR([${RAWCPP} defines unix with or without -undef. I don't know what to do.]) 92159418810dSmrg fi 92169bd41f2cSmrgfi 92179418810dSmrgrm -f conftest.$ac_ext 92189bd41f2cSmrg 92199418810dSmrgAC_MSG_CHECKING([if $RAWCPP requires -traditional]) 92209418810dSmrgAC_LANG_CONFTEST([Does cpp preserve "whitespace"?]) 92219418810dSmrgif test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then 92229418810dSmrg AC_MSG_RESULT([no]) 92239418810dSmrgelse 92249418810dSmrg if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then 92259418810dSmrg RAWCPPFLAGS="${RAWCPPFLAGS} -traditional" 92269418810dSmrg AC_MSG_RESULT([yes]) 92279418810dSmrg else 92289418810dSmrg AC_MSG_ERROR([${RAWCPP} does not preserve whitespace with or without -traditional. I don't know what to do.]) 92299418810dSmrg fi 92309418810dSmrgfi 92319418810dSmrgrm -f conftest.$ac_ext 92329418810dSmrgAC_SUBST(RAWCPPFLAGS) 92339418810dSmrg]) # XORG_PROG_RAWCPP 92349bd41f2cSmrg 92359418810dSmrg# XORG_MANPAGE_SECTIONS() 92369418810dSmrg# ----------------------- 92379418810dSmrg# Minimum version: 1.0.0 92389418810dSmrg# 92399418810dSmrg# Determine which sections man pages go in for the different man page types 92409418810dSmrg# on this OS - replaces *ManSuffix settings in old Imake *.cf per-os files. 92419418810dSmrg# Not sure if there's any better way than just hardcoding by OS name. 92429418810dSmrg# Override default settings by setting environment variables 92439bd41f2cSmrg 92449418810dSmrgAC_DEFUN([XORG_MANPAGE_SECTIONS],[ 92459418810dSmrgAC_REQUIRE([AC_CANONICAL_HOST]) 92469bd41f2cSmrg 92479418810dSmrgif test x$APP_MAN_SUFFIX = x ; then 92489418810dSmrg APP_MAN_SUFFIX=1 92499418810dSmrgfi 92509418810dSmrgif test x$APP_MAN_DIR = x ; then 92519418810dSmrg APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 92529bd41f2cSmrgfi 92539bd41f2cSmrg 92549418810dSmrgif test x$LIB_MAN_SUFFIX = x ; then 92559418810dSmrg LIB_MAN_SUFFIX=3 92569418810dSmrgfi 92579418810dSmrgif test x$LIB_MAN_DIR = x ; then 92589418810dSmrg LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 92599418810dSmrgfi 92609bd41f2cSmrg 92619418810dSmrgif test x$FILE_MAN_SUFFIX = x ; then 92629418810dSmrg case $host_os in 92639418810dSmrg solaris*) FILE_MAN_SUFFIX=4 ;; 92649418810dSmrg *) FILE_MAN_SUFFIX=5 ;; 92659418810dSmrg esac 92669418810dSmrgfi 92679418810dSmrgif test x$FILE_MAN_DIR = x ; then 92689418810dSmrg FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 92699418810dSmrgfi 92709bd41f2cSmrg 92719418810dSmrgif test x$MISC_MAN_SUFFIX = x ; then 92729418810dSmrg case $host_os in 92739418810dSmrg solaris*) MISC_MAN_SUFFIX=5 ;; 92749418810dSmrg *) MISC_MAN_SUFFIX=7 ;; 92759418810dSmrg esac 92769418810dSmrgfi 92779418810dSmrgif test x$MISC_MAN_DIR = x ; then 92789418810dSmrg MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 92799418810dSmrgfi 92809bd41f2cSmrg 92819418810dSmrgif test x$DRIVER_MAN_SUFFIX = x ; then 92829418810dSmrg case $host_os in 92839418810dSmrg solaris*) DRIVER_MAN_SUFFIX=7 ;; 92849418810dSmrg *) DRIVER_MAN_SUFFIX=4 ;; 92859418810dSmrg esac 92869418810dSmrgfi 92879418810dSmrgif test x$DRIVER_MAN_DIR = x ; then 92889418810dSmrg DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 92899418810dSmrgfi 92909bd41f2cSmrg 92919418810dSmrgif test x$ADMIN_MAN_SUFFIX = x ; then 92929418810dSmrg case $host_os in 92939418810dSmrg solaris*) ADMIN_MAN_SUFFIX=1m ;; 92949418810dSmrg *) ADMIN_MAN_SUFFIX=8 ;; 92959418810dSmrg esac 92969418810dSmrgfi 92979418810dSmrgif test x$ADMIN_MAN_DIR = x ; then 92989418810dSmrg ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 92999418810dSmrgfi 93009bd41f2cSmrg 93019bd41f2cSmrg 93029418810dSmrgAC_SUBST([APP_MAN_SUFFIX]) 93039418810dSmrgAC_SUBST([LIB_MAN_SUFFIX]) 93049418810dSmrgAC_SUBST([FILE_MAN_SUFFIX]) 93059418810dSmrgAC_SUBST([MISC_MAN_SUFFIX]) 93069418810dSmrgAC_SUBST([DRIVER_MAN_SUFFIX]) 93079418810dSmrgAC_SUBST([ADMIN_MAN_SUFFIX]) 93089418810dSmrgAC_SUBST([APP_MAN_DIR]) 93099418810dSmrgAC_SUBST([LIB_MAN_DIR]) 93109418810dSmrgAC_SUBST([FILE_MAN_DIR]) 93119418810dSmrgAC_SUBST([MISC_MAN_DIR]) 93129418810dSmrgAC_SUBST([DRIVER_MAN_DIR]) 93139418810dSmrgAC_SUBST([ADMIN_MAN_DIR]) 93149418810dSmrg]) # XORG_MANPAGE_SECTIONS 93159bd41f2cSmrg 93169418810dSmrg# XORG_CHECK_SGML_DOCTOOLS 93179418810dSmrg# ------------------------ 93189418810dSmrg# Minimum version: 1.7.0 93199418810dSmrg# 93209418810dSmrg# Defines the variable XORG_SGML_PATH containing the location of X11/defs.ent 93219418810dSmrg# provided by xorg-sgml-doctools, if installed. 93229418810dSmrgAC_DEFUN([XORG_CHECK_SGML_DOCTOOLS],[ 93239418810dSmrgAC_MSG_CHECKING([for X.Org SGML entities]) 93249418810dSmrgXORG_SGML_PATH= 93259418810dSmrgPKG_CHECK_EXISTS([xorg-sgml-doctools], 93269418810dSmrg [XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools`], 93279418810dSmrg [if test x"$cross_compiling" != x"yes" ; then 93289418810dSmrg AC_CHECK_FILE([$prefix/share/sgml/X11/defs.ent], 93299418810dSmrg [XORG_SGML_PATH=$prefix/share/sgml]) 93309418810dSmrg fi]) 93319418810dSmrg 93329418810dSmrgif test "x$XORG_SGML_PATH" != "x" ; then 93339418810dSmrg AC_MSG_RESULT([$XORG_SGML_PATH]) 93349418810dSmrgelse 93359418810dSmrg AC_MSG_RESULT([no]) 93369418810dSmrgfi 93379bd41f2cSmrg 93389418810dSmrgAC_SUBST(XORG_SGML_PATH) 93399418810dSmrg]) # XORG_CHECK_SGML_DOCTOOLS 93409bd41f2cSmrg 93419418810dSmrg# XORG_CHECK_LINUXDOC 93429418810dSmrg# ------------------- 93439418810dSmrg# Minimum version: 1.0.0 93449bd41f2cSmrg# 93459418810dSmrg# Defines the variable MAKE_TEXT if the necessary tools and 93469418810dSmrg# files are found. $(MAKE_TEXT) blah.sgml will then produce blah.txt. 93479418810dSmrg# Whether or not the necessary tools and files are found can be checked 93489418810dSmrg# with the AM_CONDITIONAL "BUILD_LINUXDOC" 93499418810dSmrgAC_DEFUN([XORG_CHECK_LINUXDOC],[ 93509418810dSmrgAC_REQUIRE([XORG_CHECK_SGML_DOCTOOLS]) 93519bd41f2cSmrg 93529418810dSmrgAC_PATH_PROG(LINUXDOC, linuxdoc) 93539418810dSmrgAC_PATH_PROG(PS2PDF, ps2pdf) 93549bd41f2cSmrg 93559418810dSmrgAC_MSG_CHECKING([whether to build documentation]) 93569bd41f2cSmrg 93579418810dSmrgif test x$XORG_SGML_PATH != x && test x$LINUXDOC != x ; then 93589418810dSmrg BUILDDOC=yes 93599418810dSmrgelse 93609418810dSmrg BUILDDOC=no 93619bd41f2cSmrgfi 93629bd41f2cSmrg 93639418810dSmrgAM_CONDITIONAL(BUILD_LINUXDOC, [test x$BUILDDOC = xyes]) 93649bd41f2cSmrg 93659418810dSmrgAC_MSG_RESULT([$BUILDDOC]) 93669bd41f2cSmrg 93679418810dSmrgAC_MSG_CHECKING([whether to build pdf documentation]) 93689bd41f2cSmrg 93699418810dSmrgif test x$PS2PDF != x && test x$BUILD_PDFDOC != xno; then 93709418810dSmrg BUILDPDFDOC=yes 93719418810dSmrgelse 93729418810dSmrg BUILDPDFDOC=no 93739418810dSmrgfi 93749bd41f2cSmrg 93759418810dSmrgAM_CONDITIONAL(BUILD_PDFDOC, [test x$BUILDPDFDOC = xyes]) 93769bd41f2cSmrg 93779418810dSmrgAC_MSG_RESULT([$BUILDPDFDOC]) 93789bd41f2cSmrg 93799418810dSmrgMAKE_TEXT="SGML_SEARCH_PATH=$XORG_SGML_PATH GROFF_NO_SGR=y $LINUXDOC -B txt" 93809418810dSmrgMAKE_PS="SGML_SEARCH_PATH=$XORG_SGML_PATH $LINUXDOC -B latex --papersize=letter --output=ps" 93819418810dSmrgMAKE_PDF="$PS2PDF" 93829418810dSmrgMAKE_HTML="SGML_SEARCH_PATH=$XORG_SGML_PATH $LINUXDOC -B html --split=0" 93839bd41f2cSmrg 93849418810dSmrgAC_SUBST(MAKE_TEXT) 93859418810dSmrgAC_SUBST(MAKE_PS) 93869418810dSmrgAC_SUBST(MAKE_PDF) 93879418810dSmrgAC_SUBST(MAKE_HTML) 93889418810dSmrg]) # XORG_CHECK_LINUXDOC 93899bd41f2cSmrg 93909418810dSmrg# XORG_CHECK_DOCBOOK 93919418810dSmrg# ------------------- 93929418810dSmrg# Minimum version: 1.0.0 93939bd41f2cSmrg# 93949418810dSmrg# Checks for the ability to build output formats from SGML DocBook source. 93959418810dSmrg# For XXX in {TXT, PDF, PS, HTML}, the AM_CONDITIONAL "BUILD_XXXDOC" 93969418810dSmrg# indicates whether the necessary tools and files are found and, if set, 93979418810dSmrg# $(MAKE_XXX) blah.sgml will produce blah.xxx. 93989418810dSmrgAC_DEFUN([XORG_CHECK_DOCBOOK],[ 93999418810dSmrgAC_REQUIRE([XORG_CHECK_SGML_DOCTOOLS]) 94009bd41f2cSmrg 94019418810dSmrgBUILDTXTDOC=no 94029418810dSmrgBUILDPDFDOC=no 94039418810dSmrgBUILDPSDOC=no 94049418810dSmrgBUILDHTMLDOC=no 94059bd41f2cSmrg 94069418810dSmrgAC_PATH_PROG(DOCBOOKPS, docbook2ps) 94079418810dSmrgAC_PATH_PROG(DOCBOOKPDF, docbook2pdf) 94089418810dSmrgAC_PATH_PROG(DOCBOOKHTML, docbook2html) 94099418810dSmrgAC_PATH_PROG(DOCBOOKTXT, docbook2txt) 94109418810dSmrg 94119418810dSmrgAC_MSG_CHECKING([whether to build text documentation]) 94129418810dSmrgif test x$XORG_SGML_PATH != x && test x$DOCBOOKTXT != x && 94139418810dSmrg test x$BUILD_TXTDOC != xno; then 94149418810dSmrg BUILDTXTDOC=yes 94159bd41f2cSmrgfi 94169418810dSmrgAM_CONDITIONAL(BUILD_TXTDOC, [test x$BUILDTXTDOC = xyes]) 94179418810dSmrgAC_MSG_RESULT([$BUILDTXTDOC]) 94189bd41f2cSmrg 94199418810dSmrgAC_MSG_CHECKING([whether to build PDF documentation]) 94209418810dSmrgif test x$XORG_SGML_PATH != x && test x$DOCBOOKPDF != x && 94219418810dSmrg test x$BUILD_PDFDOC != xno; then 94229418810dSmrg BUILDPDFDOC=yes 94239418810dSmrgfi 94249418810dSmrgAM_CONDITIONAL(BUILD_PDFDOC, [test x$BUILDPDFDOC = xyes]) 94259418810dSmrgAC_MSG_RESULT([$BUILDPDFDOC]) 94269bd41f2cSmrg 94279418810dSmrgAC_MSG_CHECKING([whether to build PostScript documentation]) 94289418810dSmrgif test x$XORG_SGML_PATH != x && test x$DOCBOOKPS != x && 94299418810dSmrg test x$BUILD_PSDOC != xno; then 94309418810dSmrg BUILDPSDOC=yes 94319418810dSmrgfi 94329418810dSmrgAM_CONDITIONAL(BUILD_PSDOC, [test x$BUILDPSDOC = xyes]) 94339418810dSmrgAC_MSG_RESULT([$BUILDPSDOC]) 94349bd41f2cSmrg 94359418810dSmrgAC_MSG_CHECKING([whether to build HTML documentation]) 94369418810dSmrgif test x$XORG_SGML_PATH != x && test x$DOCBOOKHTML != x && 94379418810dSmrg test x$BUILD_HTMLDOC != xno; then 94389418810dSmrg BUILDHTMLDOC=yes 94399418810dSmrgfi 94409418810dSmrgAM_CONDITIONAL(BUILD_HTMLDOC, [test x$BUILDHTMLDOC = xyes]) 94419418810dSmrgAC_MSG_RESULT([$BUILDHTMLDOC]) 94429bd41f2cSmrg 94439418810dSmrgMAKE_TEXT="SGML_SEARCH_PATH=$XORG_SGML_PATH $DOCBOOKTXT" 94449418810dSmrgMAKE_PS="SGML_SEARCH_PATH=$XORG_SGML_PATH $DOCBOOKPS" 94459418810dSmrgMAKE_PDF="SGML_SEARCH_PATH=$XORG_SGML_PATH $DOCBOOKPDF" 94469418810dSmrgMAKE_HTML="SGML_SEARCH_PATH=$XORG_SGML_PATH $DOCBOOKHTML" 94479bd41f2cSmrg 94489418810dSmrgAC_SUBST(MAKE_TEXT) 94499418810dSmrgAC_SUBST(MAKE_PS) 94509418810dSmrgAC_SUBST(MAKE_PDF) 94519418810dSmrgAC_SUBST(MAKE_HTML) 94529418810dSmrg]) # XORG_CHECK_DOCBOOK 94539bd41f2cSmrg 94549418810dSmrg# XORG_WITH_XMLTO([MIN-VERSION]) 94559418810dSmrg# ---------------- 94569418810dSmrg# Minimum version: 1.5.0 94579418810dSmrg# 94589418810dSmrg# Documentation tools are not always available on all platforms and sometimes 94599418810dSmrg# not at the appropriate level. This macro enables a module to test for the 94609418810dSmrg# presence of the tool and obtain it's path in separate variables. Coupled with 94619418810dSmrg# the --with-xmlto option, it allows maximum flexibilty in making decisions 94629418810dSmrg# as whether or not to use the xmlto package. 94639418810dSmrg# 94649418810dSmrg# Interface to module: 94659418810dSmrg# HAVE_XMLTO: used in makefiles to conditionally generate documentation 94669418810dSmrg# XMLTO: returns the path of the xmlto program found 94679418810dSmrg# returns the path set by the user in the environment 94689418810dSmrg# --with-xmlto: 'yes' user instructs the module to use xmlto 94699418810dSmrg# 'no' user instructs the module not to use xmlto 94709418810dSmrg# 94719418810dSmrg# If the user sets the value of XMLTO, AC_PATH_PROG skips testing the path. 94729418810dSmrg# 94739418810dSmrgAC_DEFUN([XORG_WITH_XMLTO],[ 94749418810dSmrgAC_ARG_VAR([XMLTO], [Path to xmlto command]) 94759418810dSmrgAC_ARG_WITH(xmlto, 94769418810dSmrg AS_HELP_STRING([--with-xmlto], 94779418810dSmrg [Use xmlto to regenerate documentation (default: yes, if installed)]), 94789418810dSmrg [use_xmlto=$withval], [use_xmlto=auto]) 94799418810dSmrg 94809418810dSmrgif test "x$use_xmlto" = x"auto"; then 94819418810dSmrg AC_PATH_PROG([XMLTO], [xmlto]) 94829418810dSmrg if test "x$XMLTO" = "x"; then 94839418810dSmrg AC_MSG_WARN([xmlto not found - documentation targets will be skipped]) 94849418810dSmrg have_xmlto=no 94859418810dSmrg else 94869418810dSmrg have_xmlto=yes 94879418810dSmrg fi 94889418810dSmrgelif test "x$use_xmlto" = x"yes" ; then 94899418810dSmrg AC_PATH_PROG([XMLTO], [xmlto]) 94909418810dSmrg if test "x$XMLTO" = "x"; then 94919418810dSmrg AC_MSG_ERROR([--with-xmlto=yes specified but xmlto not found in PATH]) 94929418810dSmrg fi 94939418810dSmrg have_xmlto=yes 94949418810dSmrgelif test "x$use_xmlto" = x"no" ; then 94959418810dSmrg if test "x$XMLTO" != "x"; then 94969418810dSmrg AC_MSG_WARN([ignoring XMLTO environment variable since --with-xmlto=no was specified]) 94979418810dSmrg fi 94989418810dSmrg have_xmlto=no 94999418810dSmrgelse 95009418810dSmrg AC_MSG_ERROR([--with-xmlto expects 'yes' or 'no']) 95019418810dSmrgfi 95029418810dSmrgm4_ifval([$1], 95039418810dSmrg[if test "$have_xmlto" = yes; then 95049418810dSmrg # scrape the xmlto version 95059418810dSmrg AC_MSG_CHECKING([the xmlto version]) 95069418810dSmrg xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3` 95079418810dSmrg AC_MSG_RESULT([$xmlto_version]) 95089418810dSmrg AS_VERSION_COMPARE([$xmlto_version], [$1], 95099418810dSmrg [if test "x$use_xmlto" = xauto; then 95109418810dSmrg AC_MSG_WARN([xmlto version $xmlto_version found, but $1 needed]) 95119418810dSmrg have_xmlto=no 95129418810dSmrg else 95139418810dSmrg AC_MSG_ERROR([xmlto version $xmlto_version found, but $1 needed]) 95149418810dSmrg fi]) 95159418810dSmrgfi]) 95169418810dSmrgAM_CONDITIONAL([HAVE_XMLTO], [test "$have_xmlto" = yes]) 95179418810dSmrg]) # XORG_WITH_XMLTO 95189bd41f2cSmrg 95199418810dSmrg# XORG_WITH_ASCIIDOC([MIN-VERSION]) 95209418810dSmrg# ---------------- 95219418810dSmrg# Minimum version: 1.5.0 95229bd41f2cSmrg# 95239418810dSmrg# Documentation tools are not always available on all platforms and sometimes 95249418810dSmrg# not at the appropriate level. This macro enables a module to test for the 95259418810dSmrg# presence of the tool and obtain it's path in separate variables. Coupled with 95269418810dSmrg# the --with-asciidoc option, it allows maximum flexibilty in making decisions 95279418810dSmrg# as whether or not to use the asciidoc package. 95289418810dSmrg# 95299418810dSmrg# Interface to module: 95309418810dSmrg# HAVE_ASCIIDOC: used in makefiles to conditionally generate documentation 95319418810dSmrg# ASCIIDOC: returns the path of the asciidoc program found 95329418810dSmrg# returns the path set by the user in the environment 95339418810dSmrg# --with-asciidoc: 'yes' user instructs the module to use asciidoc 95349418810dSmrg# 'no' user instructs the module not to use asciidoc 95359418810dSmrg# 95369418810dSmrg# If the user sets the value of ASCIIDOC, AC_PATH_PROG skips testing the path. 95379418810dSmrg# 95389418810dSmrgAC_DEFUN([XORG_WITH_ASCIIDOC],[ 95399418810dSmrgAC_ARG_VAR([ASCIIDOC], [Path to asciidoc command]) 95409418810dSmrgAC_ARG_WITH(asciidoc, 95419418810dSmrg AS_HELP_STRING([--with-asciidoc], 95429418810dSmrg [Use asciidoc to regenerate documentation (default: yes, if installed)]), 95439418810dSmrg [use_asciidoc=$withval], [use_asciidoc=auto]) 95449418810dSmrg 95459418810dSmrgif test "x$use_asciidoc" = x"auto"; then 95469418810dSmrg AC_PATH_PROG([ASCIIDOC], [asciidoc]) 95479418810dSmrg if test "x$ASCIIDOC" = "x"; then 95489418810dSmrg AC_MSG_WARN([asciidoc not found - documentation targets will be skipped]) 95499418810dSmrg have_asciidoc=no 95509418810dSmrg else 95519418810dSmrg have_asciidoc=yes 95529418810dSmrg fi 95539418810dSmrgelif test "x$use_asciidoc" = x"yes" ; then 95549418810dSmrg AC_PATH_PROG([ASCIIDOC], [asciidoc]) 95559418810dSmrg if test "x$ASCIIDOC" = "x"; then 95569418810dSmrg AC_MSG_ERROR([--with-asciidoc=yes specified but asciidoc not found in PATH]) 95579418810dSmrg fi 95589418810dSmrg have_asciidoc=yes 95599418810dSmrgelif test "x$use_asciidoc" = x"no" ; then 95609418810dSmrg if test "x$ASCIIDOC" != "x"; then 95619418810dSmrg AC_MSG_WARN([ignoring ASCIIDOC environment variable since --with-asciidoc=no was specified]) 95629418810dSmrg fi 95639418810dSmrg have_asciidoc=no 95649418810dSmrgelse 95659418810dSmrg AC_MSG_ERROR([--with-asciidoc expects 'yes' or 'no']) 95669418810dSmrgfi 95679418810dSmrgm4_ifval([$1], 95689418810dSmrg[if test "$have_asciidoc" = yes; then 95699418810dSmrg # scrape the asciidoc version 95709418810dSmrg AC_MSG_CHECKING([the asciidoc version]) 95719418810dSmrg asciidoc_version=`$ASCIIDOC --version 2>/dev/null | cut -d' ' -f2` 95729418810dSmrg AC_MSG_RESULT([$asciidoc_version]) 95739418810dSmrg AS_VERSION_COMPARE([$asciidoc_version], [$1], 95749418810dSmrg [if test "x$use_asciidoc" = xauto; then 95759418810dSmrg AC_MSG_WARN([asciidoc version $asciidoc_version found, but $1 needed]) 95769418810dSmrg have_asciidoc=no 95779418810dSmrg else 95789418810dSmrg AC_MSG_ERROR([asciidoc version $asciidoc_version found, but $1 needed]) 95799418810dSmrg fi]) 95809418810dSmrgfi]) 95819418810dSmrgAM_CONDITIONAL([HAVE_ASCIIDOC], [test "$have_asciidoc" = yes]) 95829418810dSmrg]) # XORG_WITH_ASCIIDOC 95839bd41f2cSmrg 95849418810dSmrg# XORG_WITH_DOXYGEN([MIN-VERSION]) 95859418810dSmrg# -------------------------------- 95869418810dSmrg# Minimum version: 1.5.0 95879418810dSmrg# 95889418810dSmrg# Documentation tools are not always available on all platforms and sometimes 95899418810dSmrg# not at the appropriate level. This macro enables a module to test for the 95909418810dSmrg# presence of the tool and obtain it's path in separate variables. Coupled with 95919418810dSmrg# the --with-doxygen option, it allows maximum flexibilty in making decisions 95929418810dSmrg# as whether or not to use the doxygen package. 95939418810dSmrg# 95949418810dSmrg# Interface to module: 95959418810dSmrg# HAVE_DOXYGEN: used in makefiles to conditionally generate documentation 95969418810dSmrg# DOXYGEN: returns the path of the doxygen program found 95979418810dSmrg# returns the path set by the user in the environment 95989418810dSmrg# --with-doxygen: 'yes' user instructs the module to use doxygen 95999418810dSmrg# 'no' user instructs the module not to use doxygen 96009418810dSmrg# 96019418810dSmrg# If the user sets the value of DOXYGEN, AC_PATH_PROG skips testing the path. 96029418810dSmrg# 96039418810dSmrgAC_DEFUN([XORG_WITH_DOXYGEN],[ 96049418810dSmrgAC_ARG_VAR([DOXYGEN], [Path to doxygen command]) 96059418810dSmrgAC_ARG_WITH(doxygen, 96069418810dSmrg AS_HELP_STRING([--with-doxygen], 96079418810dSmrg [Use doxygen to regenerate documentation (default: yes, if installed)]), 96089418810dSmrg [use_doxygen=$withval], [use_doxygen=auto]) 96099418810dSmrg 96109418810dSmrgif test "x$use_doxygen" = x"auto"; then 96119418810dSmrg AC_PATH_PROG([DOXYGEN], [doxygen]) 96129418810dSmrg if test "x$DOXYGEN" = "x"; then 96139418810dSmrg AC_MSG_WARN([doxygen not found - documentation targets will be skipped]) 96149418810dSmrg have_doxygen=no 96159418810dSmrg else 96169418810dSmrg have_doxygen=yes 96179418810dSmrg fi 96189418810dSmrgelif test "x$use_doxygen" = x"yes" ; then 96199418810dSmrg AC_PATH_PROG([DOXYGEN], [doxygen]) 96209418810dSmrg if test "x$DOXYGEN" = "x"; then 96219418810dSmrg AC_MSG_ERROR([--with-doxygen=yes specified but doxygen not found in PATH]) 96229418810dSmrg fi 96239418810dSmrg have_doxygen=yes 96249418810dSmrgelif test "x$use_doxygen" = x"no" ; then 96259418810dSmrg if test "x$DOXYGEN" != "x"; then 96269418810dSmrg AC_MSG_WARN([ignoring DOXYGEN environment variable since --with-doxygen=no was specified]) 96279418810dSmrg fi 96289418810dSmrg have_doxygen=no 96299418810dSmrgelse 96309418810dSmrg AC_MSG_ERROR([--with-doxygen expects 'yes' or 'no']) 96319418810dSmrgfi 96329418810dSmrgm4_ifval([$1], 96339418810dSmrg[if test "$have_doxygen" = yes; then 96349418810dSmrg # scrape the doxygen version 96359418810dSmrg AC_MSG_CHECKING([the doxygen version]) 96369418810dSmrg doxygen_version=`$DOXYGEN --version 2>/dev/null` 96379418810dSmrg AC_MSG_RESULT([$doxygen_version]) 96389418810dSmrg AS_VERSION_COMPARE([$doxygen_version], [$1], 96399418810dSmrg [if test "x$use_doxygen" = xauto; then 96409418810dSmrg AC_MSG_WARN([doxygen version $doxygen_version found, but $1 needed]) 96419418810dSmrg have_doxygen=no 96429418810dSmrg else 96439418810dSmrg AC_MSG_ERROR([doxygen version $doxygen_version found, but $1 needed]) 96449418810dSmrg fi]) 96459418810dSmrgfi]) 96469418810dSmrgAM_CONDITIONAL([HAVE_DOXYGEN], [test "$have_doxygen" = yes]) 96479418810dSmrg]) # XORG_WITH_DOXYGEN 96489bd41f2cSmrg 96499418810dSmrg# XORG_WITH_GROFF 96509418810dSmrg# ---------------- 96519418810dSmrg# Minimum version: 1.6.0 96529418810dSmrg# 96539418810dSmrg# Documentation tools are not always available on all platforms and sometimes 96549418810dSmrg# not at the appropriate level. This macro enables a module to test for the 96559418810dSmrg# presence of the tool and obtain it's path in separate variables. Coupled with 96569418810dSmrg# the --with-groff option, it allows maximum flexibilty in making decisions 96579418810dSmrg# as whether or not to use the groff package. 96589418810dSmrg# 96599418810dSmrg# Interface to module: 96609418810dSmrg# HAVE_GROFF: used in makefiles to conditionally generate documentation 96619418810dSmrg# HAVE_GROFF_MM: the memorandum macros (-mm) package 96629418810dSmrg# HAVE_GROFF_MS: the -ms macros package 96639418810dSmrg# GROFF: returns the path of the groff program found 96649418810dSmrg# returns the path set by the user in the environment 96659418810dSmrg# --with-groff: 'yes' user instructs the module to use groff 96669418810dSmrg# 'no' user instructs the module not to use groff 96679418810dSmrg# 96689418810dSmrg# If the user sets the value of GROFF, AC_PATH_PROG skips testing the path. 96699418810dSmrg# 96709418810dSmrg# OS and distros often splits groff in a basic and full package, the former 96719418810dSmrg# having the groff program and the later having devices, fonts and macros 96729418810dSmrg# Checking for the groff executable is not enough. 96739418810dSmrg# 96749418810dSmrg# If macros are missing, we cannot assume that groff is useless, so we don't 96759418810dSmrg# unset HAVE_GROFF or GROFF env variables. 96769418810dSmrg# HAVE_GROFF_?? can never be true while HAVE_GROFF is false. 96779418810dSmrg# 96789418810dSmrgAC_DEFUN([XORG_WITH_GROFF],[ 96799418810dSmrgAC_ARG_VAR([GROFF], [Path to groff command]) 96809418810dSmrgAC_ARG_WITH(groff, 96819418810dSmrg AS_HELP_STRING([--with-groff], 96829418810dSmrg [Use groff to regenerate documentation (default: yes, if installed)]), 96839418810dSmrg [use_groff=$withval], [use_groff=auto]) 96849418810dSmrg 96859418810dSmrgif test "x$use_groff" = x"auto"; then 96869418810dSmrg AC_PATH_PROG([GROFF], [groff]) 96879418810dSmrg if test "x$GROFF" = "x"; then 96889418810dSmrg AC_MSG_WARN([groff not found - documentation targets will be skipped]) 96899418810dSmrg have_groff=no 96909418810dSmrg else 96919418810dSmrg have_groff=yes 96929418810dSmrg fi 96939418810dSmrgelif test "x$use_groff" = x"yes" ; then 96949418810dSmrg AC_PATH_PROG([GROFF], [groff]) 96959418810dSmrg if test "x$GROFF" = "x"; then 96969418810dSmrg AC_MSG_ERROR([--with-groff=yes specified but groff not found in PATH]) 96979418810dSmrg fi 96989418810dSmrg have_groff=yes 96999418810dSmrgelif test "x$use_groff" = x"no" ; then 97009418810dSmrg if test "x$GROFF" != "x"; then 97019418810dSmrg AC_MSG_WARN([ignoring GROFF environment variable since --with-groff=no was specified]) 97029418810dSmrg fi 97039418810dSmrg have_groff=no 97049418810dSmrgelse 97059418810dSmrg AC_MSG_ERROR([--with-groff expects 'yes' or 'no']) 97069bd41f2cSmrgfi 97079418810dSmrg# We have groff, test for the presence of the macro packages 97089418810dSmrgif test "x$have_groff" = x"yes"; then 97099418810dSmrg AC_MSG_CHECKING([for ${GROFF} -ms macros]) 97109418810dSmrg if ${GROFF} -ms -I. /dev/null >/dev/null 2>&1 ; then 97119418810dSmrg groff_ms_works=yes 97129418810dSmrg else 97139418810dSmrg groff_ms_works=no 97149418810dSmrg fi 97159418810dSmrg AC_MSG_RESULT([$groff_ms_works]) 97169418810dSmrg AC_MSG_CHECKING([for ${GROFF} -mm macros]) 97179418810dSmrg if ${GROFF} -mm -I. /dev/null >/dev/null 2>&1 ; then 97189418810dSmrg groff_mm_works=yes 97199418810dSmrg else 97209418810dSmrg groff_mm_works=no 97219418810dSmrg fi 97229418810dSmrg AC_MSG_RESULT([$groff_mm_works]) 97239418810dSmrgfi 97249418810dSmrgAM_CONDITIONAL([HAVE_GROFF], [test "$have_groff" = yes]) 97259418810dSmrgAM_CONDITIONAL([HAVE_GROFF_MS], [test "$groff_ms_works" = yes]) 97269418810dSmrgAM_CONDITIONAL([HAVE_GROFF_MM], [test "$groff_mm_works" = yes]) 97279418810dSmrg]) # XORG_WITH_GROFF 97289418810dSmrg 97299418810dSmrg# XORG_WITH_FOP 97309418810dSmrg# ---------------- 97319418810dSmrg# Minimum version: 1.6.0 97329418810dSmrg# 97339418810dSmrg# Documentation tools are not always available on all platforms and sometimes 97349418810dSmrg# not at the appropriate level. This macro enables a module to test for the 97359418810dSmrg# presence of the tool and obtain it's path in separate variables. Coupled with 97369418810dSmrg# the --with-fop option, it allows maximum flexibilty in making decisions 97379418810dSmrg# as whether or not to use the fop package. 97389418810dSmrg# 97399418810dSmrg# Interface to module: 97409418810dSmrg# HAVE_FOP: used in makefiles to conditionally generate documentation 97419418810dSmrg# FOP: returns the path of the fop program found 97429418810dSmrg# returns the path set by the user in the environment 97439418810dSmrg# --with-fop: 'yes' user instructs the module to use fop 97449418810dSmrg# 'no' user instructs the module not to use fop 97459418810dSmrg# 97469418810dSmrg# If the user sets the value of FOP, AC_PATH_PROG skips testing the path. 97479418810dSmrg# 97489418810dSmrgAC_DEFUN([XORG_WITH_FOP],[ 97499418810dSmrgAC_ARG_VAR([FOP], [Path to fop command]) 97509418810dSmrgAC_ARG_WITH(fop, 97519418810dSmrg AS_HELP_STRING([--with-fop], 97529418810dSmrg [Use fop to regenerate documentation (default: yes, if installed)]), 97539418810dSmrg [use_fop=$withval], [use_fop=auto]) 97549418810dSmrg 97559418810dSmrgif test "x$use_fop" = x"auto"; then 97569418810dSmrg AC_PATH_PROG([FOP], [fop]) 97579418810dSmrg if test "x$FOP" = "x"; then 97589418810dSmrg AC_MSG_WARN([fop not found - documentation targets will be skipped]) 97599418810dSmrg have_fop=no 97609418810dSmrg else 97619418810dSmrg have_fop=yes 97629418810dSmrg fi 97639418810dSmrgelif test "x$use_fop" = x"yes" ; then 97649418810dSmrg AC_PATH_PROG([FOP], [fop]) 97659418810dSmrg if test "x$FOP" = "x"; then 97669418810dSmrg AC_MSG_ERROR([--with-fop=yes specified but fop not found in PATH]) 97679418810dSmrg fi 97689418810dSmrg have_fop=yes 97699418810dSmrgelif test "x$use_fop" = x"no" ; then 97709418810dSmrg if test "x$FOP" != "x"; then 97719418810dSmrg AC_MSG_WARN([ignoring FOP environment variable since --with-fop=no was specified]) 97729418810dSmrg fi 97739418810dSmrg have_fop=no 97749418810dSmrgelse 97759418810dSmrg AC_MSG_ERROR([--with-fop expects 'yes' or 'no']) 97769418810dSmrgfi 97779418810dSmrgAM_CONDITIONAL([HAVE_FOP], [test "$have_fop" = yes]) 97789418810dSmrg]) # XORG_WITH_FOP 97799418810dSmrg 97809418810dSmrg# XORG_WITH_PS2PDF 97819418810dSmrg# ---------------- 97829418810dSmrg# Minimum version: 1.6.0 97839418810dSmrg# 97849418810dSmrg# Documentation tools are not always available on all platforms and sometimes 97859418810dSmrg# not at the appropriate level. This macro enables a module to test for the 97869418810dSmrg# presence of the tool and obtain it's path in separate variables. Coupled with 97879418810dSmrg# the --with-ps2pdf option, it allows maximum flexibilty in making decisions 97889418810dSmrg# as whether or not to use the ps2pdf package. 97899418810dSmrg# 97909418810dSmrg# Interface to module: 97919418810dSmrg# HAVE_PS2PDF: used in makefiles to conditionally generate documentation 97929418810dSmrg# PS2PDF: returns the path of the ps2pdf program found 97939418810dSmrg# returns the path set by the user in the environment 97949418810dSmrg# --with-ps2pdf: 'yes' user instructs the module to use ps2pdf 97959418810dSmrg# 'no' user instructs the module not to use ps2pdf 97969418810dSmrg# 97979418810dSmrg# If the user sets the value of PS2PDF, AC_PATH_PROG skips testing the path. 97989418810dSmrg# 97999418810dSmrgAC_DEFUN([XORG_WITH_PS2PDF],[ 98009418810dSmrgAC_ARG_VAR([PS2PDF], [Path to ps2pdf command]) 98019418810dSmrgAC_ARG_WITH(ps2pdf, 98029418810dSmrg AS_HELP_STRING([--with-ps2pdf], 98039418810dSmrg [Use ps2pdf to regenerate documentation (default: yes, if installed)]), 98049418810dSmrg [use_ps2pdf=$withval], [use_ps2pdf=auto]) 98059418810dSmrg 98069418810dSmrgif test "x$use_ps2pdf" = x"auto"; then 98079418810dSmrg AC_PATH_PROG([PS2PDF], [ps2pdf]) 98089418810dSmrg if test "x$PS2PDF" = "x"; then 98099418810dSmrg AC_MSG_WARN([ps2pdf not found - documentation targets will be skipped]) 98109418810dSmrg have_ps2pdf=no 98119418810dSmrg else 98129418810dSmrg have_ps2pdf=yes 98139bd41f2cSmrg fi 98149418810dSmrgelif test "x$use_ps2pdf" = x"yes" ; then 98159418810dSmrg AC_PATH_PROG([PS2PDF], [ps2pdf]) 98169418810dSmrg if test "x$PS2PDF" = "x"; then 98179418810dSmrg AC_MSG_ERROR([--with-ps2pdf=yes specified but ps2pdf not found in PATH]) 98189418810dSmrg fi 98199418810dSmrg have_ps2pdf=yes 98209418810dSmrgelif test "x$use_ps2pdf" = x"no" ; then 98219418810dSmrg if test "x$PS2PDF" != "x"; then 98229418810dSmrg AC_MSG_WARN([ignoring PS2PDF environment variable since --with-ps2pdf=no was specified]) 98239418810dSmrg fi 98249418810dSmrg have_ps2pdf=no 98259418810dSmrgelse 98269418810dSmrg AC_MSG_ERROR([--with-ps2pdf expects 'yes' or 'no']) 98279bd41f2cSmrgfi 98289418810dSmrgAM_CONDITIONAL([HAVE_PS2PDF], [test "$have_ps2pdf" = yes]) 98299418810dSmrg]) # XORG_WITH_PS2PDF 98309bd41f2cSmrg 98319418810dSmrg# XORG_ENABLE_DOCS (enable_docs=yes) 98329418810dSmrg# ---------------- 98339418810dSmrg# Minimum version: 1.6.0 98349bd41f2cSmrg# 98359418810dSmrg# Documentation tools are not always available on all platforms and sometimes 98369418810dSmrg# not at the appropriate level. This macro enables a builder to skip all 98379418810dSmrg# documentation targets except traditional man pages. 98389418810dSmrg# Combined with the specific tool checking macros XORG_WITH_*, it provides 98399418810dSmrg# maximum flexibilty in controlling documentation building. 98409418810dSmrg# Refer to: 98419418810dSmrg# XORG_WITH_XMLTO --with-xmlto 98429418810dSmrg# XORG_WITH_ASCIIDOC --with-asciidoc 98439418810dSmrg# XORG_WITH_DOXYGEN --with-doxygen 98449418810dSmrg# XORG_WITH_FOP --with-fop 98459418810dSmrg# XORG_WITH_GROFF --with-groff 98469418810dSmrg# XORG_WITH_PS2PDF --with-ps2pdf 98479418810dSmrg# 98489418810dSmrg# Interface to module: 98499418810dSmrg# ENABLE_DOCS: used in makefiles to conditionally generate documentation 98509418810dSmrg# --enable-docs: 'yes' user instructs the module to generate docs 98519418810dSmrg# 'no' user instructs the module not to generate docs 98529418810dSmrg# parm1: specify the default value, yes or no. 98539418810dSmrg# 98549418810dSmrgAC_DEFUN([XORG_ENABLE_DOCS],[ 98559418810dSmrgdefault=$1 98569418810dSmrgif test "x$default" = x ; then 98579418810dSmrg default="yes" 98589418810dSmrgfi 98599418810dSmrgAC_ARG_ENABLE(docs, 98609418810dSmrg AS_HELP_STRING([--enable-docs], 98619418810dSmrg [Enable building the documentation (default: yes)]), 98629418810dSmrg [build_docs=$enableval], [build_docs=$default]) 98639418810dSmrgAM_CONDITIONAL(ENABLE_DOCS, [test x$build_docs = xyes]) 98649418810dSmrgAC_MSG_CHECKING([whether to build documentation]) 98659418810dSmrgAC_MSG_RESULT([$build_docs]) 98669418810dSmrg]) # XORG_ENABLE_DOCS 98679418810dSmrg 98689418810dSmrg# XORG_ENABLE_DEVEL_DOCS (enable_devel_docs=yes) 98699418810dSmrg# ---------------- 98709418810dSmrg# Minimum version: 1.6.0 98719418810dSmrg# 98729418810dSmrg# This macro enables a builder to skip all developer documentation. 98739418810dSmrg# Combined with the specific tool checking macros XORG_WITH_*, it provides 98749418810dSmrg# maximum flexibilty in controlling documentation building. 98759418810dSmrg# Refer to: 98769418810dSmrg# XORG_WITH_XMLTO --with-xmlto 98779418810dSmrg# XORG_WITH_ASCIIDOC --with-asciidoc 98789418810dSmrg# XORG_WITH_DOXYGEN --with-doxygen 98799418810dSmrg# XORG_WITH_FOP --with-fop 98809418810dSmrg# XORG_WITH_GROFF --with-groff 98819418810dSmrg# XORG_WITH_PS2PDF --with-ps2pdf 98829418810dSmrg# 98839418810dSmrg# Interface to module: 98849418810dSmrg# ENABLE_DEVEL_DOCS: used in makefiles to conditionally generate developer docs 98859418810dSmrg# --enable-devel-docs: 'yes' user instructs the module to generate developer docs 98869418810dSmrg# 'no' user instructs the module not to generate developer docs 98879418810dSmrg# parm1: specify the default value, yes or no. 98889418810dSmrg# 98899418810dSmrgAC_DEFUN([XORG_ENABLE_DEVEL_DOCS],[ 98909418810dSmrgdevel_default=$1 98919418810dSmrgif test "x$devel_default" = x ; then 98929418810dSmrg devel_default="yes" 98939418810dSmrgfi 98949418810dSmrgAC_ARG_ENABLE(devel-docs, 98959418810dSmrg AS_HELP_STRING([--enable-devel-docs], 98969418810dSmrg [Enable building the developer documentation (default: yes)]), 98979418810dSmrg [build_devel_docs=$enableval], [build_devel_docs=$devel_default]) 98989418810dSmrgAM_CONDITIONAL(ENABLE_DEVEL_DOCS, [test x$build_devel_docs = xyes]) 98999418810dSmrgAC_MSG_CHECKING([whether to build developer documentation]) 99009418810dSmrgAC_MSG_RESULT([$build_devel_docs]) 99019418810dSmrg]) # XORG_ENABLE_DEVEL_DOCS 99029418810dSmrg 99039418810dSmrg# XORG_ENABLE_SPECS (enable_specs=yes) 99049418810dSmrg# ---------------- 99059418810dSmrg# Minimum version: 1.6.0 99069418810dSmrg# 99079418810dSmrg# This macro enables a builder to skip all functional specification targets. 99089418810dSmrg# Combined with the specific tool checking macros XORG_WITH_*, it provides 99099418810dSmrg# maximum flexibilty in controlling documentation building. 99109418810dSmrg# Refer to: 99119418810dSmrg# XORG_WITH_XMLTO --with-xmlto 99129418810dSmrg# XORG_WITH_ASCIIDOC --with-asciidoc 99139418810dSmrg# XORG_WITH_DOXYGEN --with-doxygen 99149418810dSmrg# XORG_WITH_FOP --with-fop 99159418810dSmrg# XORG_WITH_GROFF --with-groff 99169418810dSmrg# XORG_WITH_PS2PDF --with-ps2pdf 99179418810dSmrg# 99189418810dSmrg# Interface to module: 99199418810dSmrg# ENABLE_SPECS: used in makefiles to conditionally generate specs 99209418810dSmrg# --enable-specs: 'yes' user instructs the module to generate specs 99219418810dSmrg# 'no' user instructs the module not to generate specs 99229418810dSmrg# parm1: specify the default value, yes or no. 99239418810dSmrg# 99249418810dSmrgAC_DEFUN([XORG_ENABLE_SPECS],[ 99259418810dSmrgspec_default=$1 99269418810dSmrgif test "x$spec_default" = x ; then 99279418810dSmrg spec_default="yes" 99289418810dSmrgfi 99299418810dSmrgAC_ARG_ENABLE(specs, 99309418810dSmrg AS_HELP_STRING([--enable-specs], 99319418810dSmrg [Enable building the specs (default: yes)]), 99329418810dSmrg [build_specs=$enableval], [build_specs=$spec_default]) 99339418810dSmrgAM_CONDITIONAL(ENABLE_SPECS, [test x$build_specs = xyes]) 99349418810dSmrgAC_MSG_CHECKING([whether to build functional specifications]) 99359418810dSmrgAC_MSG_RESULT([$build_specs]) 99369418810dSmrg]) # XORG_ENABLE_SPECS 99379bd41f2cSmrg 99389418810dSmrg# XORG_CHECK_MALLOC_ZERO 99399418810dSmrg# ---------------------- 99409418810dSmrg# Minimum version: 1.0.0 99419418810dSmrg# 99429418810dSmrg# Defines {MALLOC,XMALLOC,XTMALLOC}_ZERO_CFLAGS appropriately if 99439418810dSmrg# malloc(0) returns NULL. Packages should add one of these cflags to 99449418810dSmrg# their AM_CFLAGS (or other appropriate *_CFLAGS) to use them. 99459418810dSmrgAC_DEFUN([XORG_CHECK_MALLOC_ZERO],[ 99469418810dSmrgAC_ARG_ENABLE(malloc0returnsnull, 99479418810dSmrg AS_HELP_STRING([--enable-malloc0returnsnull], 99489418810dSmrg [malloc(0) returns NULL (default: auto)]), 99499418810dSmrg [MALLOC_ZERO_RETURNS_NULL=$enableval], 99509418810dSmrg [MALLOC_ZERO_RETURNS_NULL=auto]) 99519bd41f2cSmrg 99529418810dSmrgAC_MSG_CHECKING([whether malloc(0) returns NULL]) 99539418810dSmrgif test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then 99549418810dSmrg AC_RUN_IFELSE([ 99559418810dSmrgchar *malloc(); 99569418810dSmrgchar *realloc(); 99579418810dSmrgchar *calloc(); 99589418810dSmrgmain() { 99599418810dSmrg char *m0, *r0, *c0, *p; 99609418810dSmrg m0 = malloc(0); 99619418810dSmrg p = malloc(10); 99629418810dSmrg r0 = realloc(p,0); 99639418810dSmrg c0 = calloc(0); 99649418810dSmrg exit(m0 == 0 || r0 == 0 || c0 == 0 ? 0 : 1); 99659418810dSmrg}], 99669418810dSmrg [MALLOC_ZERO_RETURNS_NULL=yes], 99679418810dSmrg [MALLOC_ZERO_RETURNS_NULL=no], 99689418810dSmrg [MALLOC_ZERO_RETURNS_NULL=yes]) 99699418810dSmrgfi 99709418810dSmrgAC_MSG_RESULT([$MALLOC_ZERO_RETURNS_NULL]) 99719bd41f2cSmrg 99729418810dSmrgif test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then 99739418810dSmrg MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL" 99749418810dSmrg XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS 99759418810dSmrg XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC" 99769bd41f2cSmrgelse 99779418810dSmrg MALLOC_ZERO_CFLAGS="" 99789418810dSmrg XMALLOC_ZERO_CFLAGS="" 99799418810dSmrg XTMALLOC_ZERO_CFLAGS="" 99809bd41f2cSmrgfi 99819bd41f2cSmrg 99829418810dSmrgAC_SUBST([MALLOC_ZERO_CFLAGS]) 99839418810dSmrgAC_SUBST([XMALLOC_ZERO_CFLAGS]) 99849418810dSmrgAC_SUBST([XTMALLOC_ZERO_CFLAGS]) 99859418810dSmrg]) # XORG_CHECK_MALLOC_ZERO 99869bd41f2cSmrg 99879418810dSmrg# XORG_WITH_LINT() 99889418810dSmrg# ---------------- 99899418810dSmrg# Minimum version: 1.1.0 99909bd41f2cSmrg# 99919418810dSmrg# Sets up flags for source checkers such as lint and sparse if --with-lint 99929418810dSmrg# is specified. (Use --with-lint=sparse for sparse.) 99939418810dSmrg# Sets $LINT to name of source checker passed with --with-lint (default: lint) 99949418810dSmrg# Sets $LINT_FLAGS to flags to pass to source checker 99959418810dSmrg# Sets LINT automake conditional if enabled (default: disabled) 99969418810dSmrg# 99979418810dSmrgAC_DEFUN([XORG_WITH_LINT],[ 99989bd41f2cSmrg 99999418810dSmrg# Allow checking code with lint, sparse, etc. 100009418810dSmrgAC_ARG_WITH(lint, [AS_HELP_STRING([--with-lint], 100019418810dSmrg [Use a lint-style source code checker (default: disabled)])], 100029418810dSmrg [use_lint=$withval], [use_lint=no]) 100039418810dSmrgif test "x$use_lint" = "xyes" ; then 100049418810dSmrg LINT="lint" 100059418810dSmrgelse 100069418810dSmrg LINT="$use_lint" 100079418810dSmrgfi 100089418810dSmrgif test "x$LINT_FLAGS" = "x" -a "x$LINT" != "xno" ; then 100099418810dSmrg case $LINT in 100109418810dSmrg lint|*/lint) 100119418810dSmrg case $host_os in 100129418810dSmrg solaris*) 100139418810dSmrg LINT_FLAGS="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2" 100149418810dSmrg ;; 100159418810dSmrg esac 100169418810dSmrg ;; 100179418810dSmrg esac 100189418810dSmrgfi 100199bd41f2cSmrg 100209418810dSmrgAC_SUBST(LINT) 100219418810dSmrgAC_SUBST(LINT_FLAGS) 100229418810dSmrgAM_CONDITIONAL(LINT, [test x$LINT != xno]) 100239bd41f2cSmrg 100249418810dSmrg]) # XORG_WITH_LINT 100259bd41f2cSmrg 100269418810dSmrg# XORG_LINT_LIBRARY(LIBNAME) 100279418810dSmrg# -------------------------- 100289418810dSmrg# Minimum version: 1.1.0 100299418810dSmrg# 100309418810dSmrg# Sets up flags for building lint libraries for checking programs that call 100319418810dSmrg# functions in the library. 100329418810dSmrg# Disabled by default, enable with --enable-lint-library 100339418810dSmrg# Sets: 100349418810dSmrg# @LINTLIB@ - name of lint library file to make 100359418810dSmrg# MAKE_LINT_LIB - automake conditional 100369bd41f2cSmrg# 100379bd41f2cSmrg 100389418810dSmrgAC_DEFUN([XORG_LINT_LIBRARY],[ 100399418810dSmrgAC_REQUIRE([XORG_WITH_LINT]) 100409418810dSmrg# Build lint "library" for more indepth checks of programs calling this library 100419418810dSmrgAC_ARG_ENABLE(lint-library, [AS_HELP_STRING([--enable-lint-library], 100429418810dSmrg [Create lint library (default: disabled)])], 100439418810dSmrg [make_lint_lib=$enableval], [make_lint_lib=no]) 100449418810dSmrgif test "x$make_lint_lib" != "xno" ; then 100459418810dSmrg if test "x$LINT" = "xno" ; then 100469418810dSmrg AC_MSG_ERROR([Cannot make lint library without --with-lint]) 100479418810dSmrg fi 100489418810dSmrg if test "x$make_lint_lib" = "xyes" ; then 100499418810dSmrg LINTLIB=llib-l$1.ln 100509418810dSmrg else 100519418810dSmrg LINTLIB=$make_lint_lib 100529418810dSmrg fi 100539418810dSmrgfi 100549418810dSmrgAC_SUBST(LINTLIB) 100559418810dSmrgAM_CONDITIONAL(MAKE_LINT_LIB, [test x$make_lint_lib != xno]) 100569bd41f2cSmrg 100579418810dSmrg]) # XORG_LINT_LIBRARY 100589bd41f2cSmrg 100599418810dSmrg# XORG_CWARNFLAGS 100609418810dSmrg# --------------- 100619418810dSmrg# Minimum version: 1.2.0 100629418810dSmrg# 100639418810dSmrg# Defines CWARNFLAGS to enable C compiler warnings. 100649418810dSmrg# 100659418810dSmrgAC_DEFUN([XORG_CWARNFLAGS], [ 100669418810dSmrgAC_REQUIRE([AC_PROG_CC]) 100679418810dSmrgif test "x$GCC" = xyes ; then 100689418810dSmrg CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \ 100699418810dSmrg-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \ 100709418810dSmrg-Wbad-function-cast -Wformat=2" 100719418810dSmrg case `$CC -dumpversion` in 100729418810dSmrg 3.4.* | 4.*) 100739418810dSmrg CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement" 100749418810dSmrg ;; 100759418810dSmrg esac 100769bd41f2cSmrgelse 100779418810dSmrg AC_CHECK_DECL([__SUNPRO_C], [SUNCC="yes"], [SUNCC="no"]) 100789418810dSmrg if test "x$SUNCC" = "xyes"; then 100799418810dSmrg CWARNFLAGS="-v" 100809418810dSmrg fi 100819bd41f2cSmrgfi 100829418810dSmrgAC_SUBST(CWARNFLAGS) 100839418810dSmrg]) # XORG_CWARNFLAGS 100849bd41f2cSmrg 100859418810dSmrg# XORG_STRICT_OPTION 100869418810dSmrg# ----------------------- 100879418810dSmrg# Minimum version: 1.3.0 100889bd41f2cSmrg# 100899418810dSmrg# Add configure option to enable strict compilation 100909418810dSmrgAC_DEFUN([XORG_STRICT_OPTION], [ 100919418810dSmrgAC_REQUIRE([AC_PROG_CC]) 100929418810dSmrgAC_REQUIRE([AC_PROG_CC_C99]) 100939418810dSmrgAC_REQUIRE([XORG_CWARNFLAGS]) 100949418810dSmrg 100959418810dSmrgAC_ARG_ENABLE(strict-compilation, 100969418810dSmrg AS_HELP_STRING([--enable-strict-compilation], 100979418810dSmrg [Enable all warnings from compiler and make them errors (default: disabled)]), 100989418810dSmrg [STRICT_COMPILE=$enableval], [STRICT_COMPILE=no]) 100999418810dSmrgif test "x$STRICT_COMPILE" = "xyes"; then 101009418810dSmrg AC_CHECK_DECL([__SUNPRO_C], [SUNCC="yes"], [SUNCC="no"]) 101019418810dSmrg AC_CHECK_DECL([__INTEL_COMPILER], [INTELCC="yes"], [INTELCC="no"]) 101029418810dSmrg if test "x$GCC" = xyes ; then 101039418810dSmrg STRICT_CFLAGS="-pedantic -Werror" 101049418810dSmrg elif test "x$SUNCC" = "xyes"; then 101059418810dSmrg STRICT_CFLAGS="-errwarn" 101069418810dSmrg elif test "x$INTELCC" = "xyes"; then 101079418810dSmrg STRICT_CFLAGS="-Werror" 101089418810dSmrg fi 101099bd41f2cSmrgfi 101109418810dSmrgCWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 101119418810dSmrgAC_SUBST([CWARNFLAGS]) 101129418810dSmrg]) # XORG_STRICT_OPTION 101139bd41f2cSmrg 101149418810dSmrg# XORG_DEFAULT_OPTIONS 101159418810dSmrg# -------------------- 101169418810dSmrg# Minimum version: 1.3.0 101179bd41f2cSmrg# 101189418810dSmrg# Defines default options for X.Org modules. 101199bd41f2cSmrg# 101209418810dSmrgAC_DEFUN([XORG_DEFAULT_OPTIONS], [ 101219418810dSmrgXORG_CWARNFLAGS 101229418810dSmrgXORG_STRICT_OPTION 101239418810dSmrgXORG_RELEASE_VERSION 101249418810dSmrgXORG_CHANGELOG 101259418810dSmrgXORG_INSTALL 101269418810dSmrgXORG_MANPAGE_SECTIONS 101279418810dSmrgm4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])], 101289418810dSmrg [AC_SUBST([AM_DEFAULT_VERBOSITY], [1])]) 101299418810dSmrg]) # XORG_DEFAULT_OPTIONS 101309418810dSmrg 101319418810dSmrg# XORG_INSTALL() 101329418810dSmrg# ---------------- 101339418810dSmrg# Minimum version: 1.4.0 101349418810dSmrg# 101359418810dSmrg# Defines the variable INSTALL_CMD as the command to copy 101369418810dSmrg# INSTALL from $prefix/share/util-macros. 101379418810dSmrg# 101389418810dSmrgAC_DEFUN([XORG_INSTALL], [ 101399418810dSmrgAC_REQUIRE([PKG_PROG_PKG_CONFIG]) 101409418810dSmrgmacros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 101419418810dSmrgINSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 101429418810dSmrgmv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 101439418810dSmrg|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 101449418810dSmrgecho 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 101459418810dSmrgAC_SUBST([INSTALL_CMD]) 101469418810dSmrg]) # XORG_INSTALL 101479418810dSmrgdnl Copyright 2005 Red Hat, Inc 101489418810dSmrgdnl 101499418810dSmrgdnl Permission to use, copy, modify, distribute, and sell this software and its 101509418810dSmrgdnl documentation for any purpose is hereby granted without fee, provided that 101519418810dSmrgdnl the above copyright notice appear in all copies and that both that 101529418810dSmrgdnl copyright notice and this permission notice appear in supporting 101539418810dSmrgdnl documentation. 101549418810dSmrgdnl 101559418810dSmrgdnl The above copyright notice and this permission notice shall be included 101569418810dSmrgdnl in all copies or substantial portions of the Software. 101579418810dSmrgdnl 101589418810dSmrgdnl THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 101599418810dSmrgdnl OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 101609418810dSmrgdnl MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 101619418810dSmrgdnl IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR 101629418810dSmrgdnl OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 101639418810dSmrgdnl ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 101649418810dSmrgdnl OTHER DEALINGS IN THE SOFTWARE. 101659418810dSmrgdnl 101669418810dSmrgdnl Except as contained in this notice, the name of the copyright holders shall 101679418810dSmrgdnl not be used in advertising or otherwise to promote the sale, use or 101689418810dSmrgdnl other dealings in this Software without prior written authorization 101699418810dSmrgdnl from the copyright holders. 101709418810dSmrgdnl 101719bd41f2cSmrg 101729418810dSmrg# XORG_RELEASE_VERSION 101739bd41f2cSmrg# -------------------- 101749418810dSmrg# Adds --with/without-release-string and changes the PACKAGE and 101759418810dSmrg# PACKAGE_TARNAME to use "$PACKAGE{_TARNAME}-$RELEASE_VERSION". If 101769418810dSmrg# no option is given, PACKAGE and PACKAGE_TARNAME are unchanged. Also 101779418810dSmrg# defines PACKAGE_VERSION_{MAJOR,MINOR,PATCHLEVEL} for modules to use. 101789418810dSmrg 101799418810dSmrgAC_DEFUN([XORG_RELEASE_VERSION],[ 101809418810dSmrg AC_ARG_WITH(release-version, 101819418810dSmrg AS_HELP_STRING([--with-release-version=STRING], 101829418810dSmrg [Use release version string in package name]), 101839418810dSmrg [RELEASE_VERSION="$withval"], 101849418810dSmrg [RELEASE_VERSION=""]) 101859418810dSmrg if test "x$RELEASE_VERSION" != "x"; then 101869418810dSmrg PACKAGE="$PACKAGE-$RELEASE_VERSION" 101879418810dSmrg PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION" 101889418810dSmrg AC_MSG_NOTICE([Building with package name set to $PACKAGE]) 101899418810dSmrg fi 101909418810dSmrg AC_DEFINE_UNQUOTED([PACKAGE_VERSION_MAJOR], 101919418810dSmrg [`echo $PACKAGE_VERSION | cut -d . -f 1`], 101929418810dSmrg [Major version of this package]) 101939418810dSmrg PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 101949418810dSmrg if test "x$PVM" = "x"; then 101959418810dSmrg PVM="0" 101969418810dSmrg fi 101979418810dSmrg AC_DEFINE_UNQUOTED([PACKAGE_VERSION_MINOR], 101989418810dSmrg [$PVM], 101999418810dSmrg [Minor version of this package]) 102009418810dSmrg PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 102019418810dSmrg if test "x$PVP" = "x"; then 102029418810dSmrg PVP="0" 102039418810dSmrg fi 102049418810dSmrg AC_DEFINE_UNQUOTED([PACKAGE_VERSION_PATCHLEVEL], 102059418810dSmrg [$PVP], 102069418810dSmrg [Patch version of this package]) 102079418810dSmrg]) 102089418810dSmrg 102099418810dSmrg# XORG_CHANGELOG() 102109418810dSmrg# ---------------- 102119418810dSmrg# Minimum version: 1.2.0 102129bd41f2cSmrg# 102139418810dSmrg# Defines the variable CHANGELOG_CMD as the command to generate 102149418810dSmrg# ChangeLog from git. 102159bd41f2cSmrg# 102169418810dSmrg# 102179418810dSmrgAC_DEFUN([XORG_CHANGELOG], [ 102189418810dSmrgCHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 102199418810dSmrgmv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 102209418810dSmrg|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 102219418810dSmrgecho 'git directory not found: installing possibly empty changelog.' >&2)" 102229418810dSmrgAC_SUBST([CHANGELOG_CMD]) 102239418810dSmrg]) # XORG_CHANGELOG 102249bd41f2cSmrg 102259418810dSmrgdnl Copyright 2005 Red Hat, Inc 102269418810dSmrgdnl 102279418810dSmrgdnl Permission to use, copy, modify, distribute, and sell this software and its 102289418810dSmrgdnl documentation for any purpose is hereby granted without fee, provided that 102299418810dSmrgdnl the above copyright notice appear in all copies and that both that 102309418810dSmrgdnl copyright notice and this permission notice appear in supporting 102319418810dSmrgdnl documentation. 102329418810dSmrgdnl 102339418810dSmrgdnl The above copyright notice and this permission notice shall be included 102349418810dSmrgdnl in all copies or substantial portions of the Software. 102359418810dSmrgdnl 102369418810dSmrgdnl THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 102379418810dSmrgdnl OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 102389418810dSmrgdnl MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 102399418810dSmrgdnl IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR 102409418810dSmrgdnl OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 102419418810dSmrgdnl ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 102429418810dSmrgdnl OTHER DEALINGS IN THE SOFTWARE. 102439418810dSmrgdnl 102449418810dSmrgdnl Except as contained in this notice, the name of the copyright holders shall 102459418810dSmrgdnl not be used in advertising or otherwise to promote the sale, use or 102469418810dSmrgdnl other dealings in this Software without prior written authorization 102479418810dSmrgdnl from the copyright holders. 102489418810dSmrgdnl 102499bd41f2cSmrg 102509418810dSmrg# XORG_DRIVER_CHECK_EXT() 102519418810dSmrg# -------------------------- 102529418810dSmrg# Checks for the $1 define in xorg-server.h (from the sdk). If it 102539418810dSmrg# is defined, then add $1 to $REQUIRED_MODULES. 102549bd41f2cSmrg 102559418810dSmrgAC_DEFUN([XORG_DRIVER_CHECK_EXT],[ 102569418810dSmrg AC_REQUIRE([PKG_PROG_PKG_CONFIG]) 102579418810dSmrg SAVE_CFLAGS="$CFLAGS" 102589418810dSmrg CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 102599418810dSmrg AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ 102609418810dSmrg#include "xorg-server.h" 102619418810dSmrg#if !defined $1 102629418810dSmrg#error $1 not defined 102639418810dSmrg#endif 102649418810dSmrg ]])], 102659418810dSmrg [_EXT_CHECK=yes], 102669418810dSmrg [_EXT_CHECK=no]) 102679418810dSmrg CFLAGS="$SAVE_CFLAGS" 102689418810dSmrg AC_MSG_CHECKING([if $1 is defined]) 102699418810dSmrg AC_MSG_RESULT([$_EXT_CHECK]) 102709418810dSmrg if test "$_EXT_CHECK" != no; then 102719418810dSmrg REQUIRED_MODULES="$REQUIRED_MODULES $2" 102729418810dSmrg fi 102739418810dSmrg]) 102749bd41f2cSmrg 10275