aclocal.m4 revision 96ce994a
196ce994aSmrg# generated automatically by aclocal 1.11 -*- Autoconf -*- 2bdcaa8d0Smrg 3bdcaa8d0Smrg# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 496ce994aSmrg# 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. 5bdcaa8d0Smrg# This file is free software; the Free Software Foundation 6bdcaa8d0Smrg# gives unlimited permission to copy and/or distribute it, 7bdcaa8d0Smrg# with or without modifications, as long as this notice is preserved. 8bdcaa8d0Smrg 9bdcaa8d0Smrg# This program is distributed in the hope that it will be useful, 10bdcaa8d0Smrg# but WITHOUT ANY WARRANTY, to the extent permitted by law; without 11bdcaa8d0Smrg# even the implied warranty of MERCHANTABILITY or FITNESS FOR A 12bdcaa8d0Smrg# PARTICULAR PURPOSE. 13bdcaa8d0Smrg 1472313efbSmrgm4_ifndef([AC_AUTOCONF_VERSION], 1572313efbSmrg [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl 1672313efbSmrgm4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.63],, 1772313efbSmrg[m4_warning([this file was generated for autoconf 2.63. 1872313efbSmrgYou have another version of autoconf. It may work, but is not guaranteed to. 1972313efbSmrgIf you have problems, you may need to regenerate the build system entirely. 2072313efbSmrgTo do so, use the procedure documented by the package, typically `autoreconf'.])]) 2172313efbSmrg 22bdcaa8d0Smrg# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- 23bdcaa8d0Smrg 2496ce994aSmrg# serial 52 AC_PROG_LIBTOOL 25bdcaa8d0Smrg 26bdcaa8d0Smrg 2796ce994aSmrg# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED) 2896ce994aSmrg# ----------------------------------------------------------- 2996ce994aSmrg# If this macro is not defined by Autoconf, define it here. 3096ce994aSmrgm4_ifdef([AC_PROVIDE_IFELSE], 3196ce994aSmrg [], 3296ce994aSmrg [m4_define([AC_PROVIDE_IFELSE], 3396ce994aSmrg [m4_ifdef([AC_PROVIDE_$1], 3496ce994aSmrg [$2], [$3])])]) 3572313efbSmrg 3672313efbSmrg 3796ce994aSmrg# AC_PROG_LIBTOOL 3896ce994aSmrg# --------------- 3996ce994aSmrgAC_DEFUN([AC_PROG_LIBTOOL], 4096ce994aSmrg[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl 4196ce994aSmrgdnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX 4296ce994aSmrgdnl immediately, otherwise, hook it in at the end of AC_PROG_CXX. 4396ce994aSmrg AC_PROVIDE_IFELSE([AC_PROG_CXX], 4496ce994aSmrg [AC_LIBTOOL_CXX], 4596ce994aSmrg [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX 4696ce994aSmrg ])]) 4796ce994aSmrgdnl And a similar setup for Fortran 77 support 4896ce994aSmrg AC_PROVIDE_IFELSE([AC_PROG_F77], 4996ce994aSmrg [AC_LIBTOOL_F77], 5096ce994aSmrg [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77 5196ce994aSmrg])]) 5296ce994aSmrg 5396ce994aSmrgdnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly. 5496ce994aSmrgdnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run 5596ce994aSmrgdnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both. 5696ce994aSmrg AC_PROVIDE_IFELSE([AC_PROG_GCJ], 5796ce994aSmrg [AC_LIBTOOL_GCJ], 5896ce994aSmrg [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], 5996ce994aSmrg [AC_LIBTOOL_GCJ], 6096ce994aSmrg [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ], 6196ce994aSmrg [AC_LIBTOOL_GCJ], 6296ce994aSmrg [ifdef([AC_PROG_GCJ], 6396ce994aSmrg [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])]) 6496ce994aSmrg ifdef([A][M_PROG_GCJ], 6596ce994aSmrg [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])]) 6696ce994aSmrg ifdef([LT_AC_PROG_GCJ], 6796ce994aSmrg [define([LT_AC_PROG_GCJ], 6896ce994aSmrg defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])]) 6996ce994aSmrg])])# AC_PROG_LIBTOOL 7096ce994aSmrg 7196ce994aSmrg 7296ce994aSmrg# _AC_PROG_LIBTOOL 7396ce994aSmrg# ---------------- 7496ce994aSmrgAC_DEFUN([_AC_PROG_LIBTOOL], 7596ce994aSmrg[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl 7696ce994aSmrgAC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl 7796ce994aSmrgAC_BEFORE([$0],[AC_LIBTOOL_F77])dnl 7896ce994aSmrgAC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl 79bdcaa8d0Smrg 80bdcaa8d0Smrg# This can be used to rebuild libtool when needed 8196ce994aSmrgLIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 82bdcaa8d0Smrg 83bdcaa8d0Smrg# Always use our own libtool. 84bdcaa8d0SmrgLIBTOOL='$(SHELL) $(top_builddir)/libtool' 85bdcaa8d0SmrgAC_SUBST(LIBTOOL)dnl 86bdcaa8d0Smrg 8796ce994aSmrg# Prevent multiple expansion 8896ce994aSmrgdefine([AC_PROG_LIBTOOL], []) 8996ce994aSmrg])# _AC_PROG_LIBTOOL 9072313efbSmrg 9172313efbSmrg 9296ce994aSmrg# AC_LIBTOOL_SETUP 9396ce994aSmrg# ---------------- 9496ce994aSmrgAC_DEFUN([AC_LIBTOOL_SETUP], 9596ce994aSmrg[AC_PREREQ(2.50)dnl 9696ce994aSmrgAC_REQUIRE([AC_ENABLE_SHARED])dnl 9796ce994aSmrgAC_REQUIRE([AC_ENABLE_STATIC])dnl 9896ce994aSmrgAC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl 9996ce994aSmrgAC_REQUIRE([AC_CANONICAL_HOST])dnl 100bdcaa8d0SmrgAC_REQUIRE([AC_CANONICAL_BUILD])dnl 101bdcaa8d0SmrgAC_REQUIRE([AC_PROG_CC])dnl 10296ce994aSmrgAC_REQUIRE([AC_PROG_LD])dnl 10396ce994aSmrgAC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl 10496ce994aSmrgAC_REQUIRE([AC_PROG_NM])dnl 10596ce994aSmrg 106bdcaa8d0SmrgAC_REQUIRE([AC_PROG_LN_S])dnl 10796ce994aSmrgAC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl 10896ce994aSmrg# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 10996ce994aSmrgAC_REQUIRE([AC_OBJEXT])dnl 11096ce994aSmrgAC_REQUIRE([AC_EXEEXT])dnl 111bdcaa8d0Smrgdnl 11296ce994aSmrgAC_LIBTOOL_SYS_MAX_CMD_LEN 11396ce994aSmrgAC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE 11496ce994aSmrgAC_LIBTOOL_OBJDIR 115bdcaa8d0Smrg 11696ce994aSmrgAC_REQUIRE([_LT_AC_SYS_COMPILER])dnl 11796ce994aSmrg_LT_AC_PROG_ECHO_BACKSLASH 118bdcaa8d0Smrg 119bdcaa8d0Smrgcase $host_os in 120bdcaa8d0Smrgaix3*) 121bdcaa8d0Smrg # AIX sometimes has problems with the GCC collect2 program. For some 122bdcaa8d0Smrg # reason, if we set the COLLECT_NAMES environment variable, the problems 123bdcaa8d0Smrg # vanish in a puff of smoke. 124bdcaa8d0Smrg if test "X${COLLECT_NAMES+set}" != Xset; then 125bdcaa8d0Smrg COLLECT_NAMES= 126bdcaa8d0Smrg export COLLECT_NAMES 127bdcaa8d0Smrg fi 128bdcaa8d0Smrg ;; 129bdcaa8d0Smrgesac 130bdcaa8d0Smrg 131bdcaa8d0Smrg# Sed substitution that helps us do robust quoting. It backslashifies 132bdcaa8d0Smrg# metacharacters that are still active within double-quoted strings. 13396ce994aSmrgXsed='sed -e 1s/^X//' 13496ce994aSmrg[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'] 135bdcaa8d0Smrg 136bdcaa8d0Smrg# Same as above, but do not quote variable references. 13796ce994aSmrg[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'] 138bdcaa8d0Smrg 139bdcaa8d0Smrg# Sed substitution to delay expansion of an escaped shell variable in a 140bdcaa8d0Smrg# double_quote_subst'ed string. 141bdcaa8d0Smrgdelay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 142bdcaa8d0Smrg 143bdcaa8d0Smrg# Sed substitution to avoid accidental globbing in evaled expressions 144bdcaa8d0Smrgno_glob_subst='s/\*/\\\*/g' 145bdcaa8d0Smrg 14696ce994aSmrg# Constants: 14796ce994aSmrgrm="rm -f" 14896ce994aSmrg 149bdcaa8d0Smrg# Global variables: 15096ce994aSmrgdefault_ofile=libtool 151bdcaa8d0Smrgcan_build_shared=yes 152bdcaa8d0Smrg 153bdcaa8d0Smrg# All known linkers require a `.a' archive for static linking (except MSVC, 154bdcaa8d0Smrg# which needs '.lib'). 155bdcaa8d0Smrglibext=a 15696ce994aSmrgltmain="$ac_aux_dir/ltmain.sh" 15796ce994aSmrgofile="$default_ofile" 15872313efbSmrgwith_gnu_ld="$lt_cv_prog_gnu_ld" 159bdcaa8d0Smrg 16096ce994aSmrgAC_CHECK_TOOL(AR, ar, false) 16196ce994aSmrgAC_CHECK_TOOL(RANLIB, ranlib, :) 16296ce994aSmrgAC_CHECK_TOOL(STRIP, strip, :) 16396ce994aSmrg 164bdcaa8d0Smrgold_CC="$CC" 165bdcaa8d0Smrgold_CFLAGS="$CFLAGS" 166bdcaa8d0Smrg 167bdcaa8d0Smrg# Set sane defaults for various variables 16896ce994aSmrgtest -z "$AR" && AR=ar 16996ce994aSmrgtest -z "$AR_FLAGS" && AR_FLAGS=cru 17096ce994aSmrgtest -z "$AS" && AS=as 171bdcaa8d0Smrgtest -z "$CC" && CC=cc 172bdcaa8d0Smrgtest -z "$LTCC" && LTCC=$CC 173bdcaa8d0Smrgtest -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 17496ce994aSmrgtest -z "$DLLTOOL" && DLLTOOL=dlltool 175bdcaa8d0Smrgtest -z "$LD" && LD=ld 17696ce994aSmrgtest -z "$LN_S" && LN_S="ln -s" 17796ce994aSmrgtest -z "$MAGIC_CMD" && MAGIC_CMD=file 17896ce994aSmrgtest -z "$NM" && NM=nm 17996ce994aSmrgtest -z "$SED" && SED=sed 18096ce994aSmrgtest -z "$OBJDUMP" && OBJDUMP=objdump 18196ce994aSmrgtest -z "$RANLIB" && RANLIB=: 18296ce994aSmrgtest -z "$STRIP" && STRIP=: 183bdcaa8d0Smrgtest -z "$ac_objext" && ac_objext=o 184bdcaa8d0Smrg 18596ce994aSmrg# Determine commands to create old-style static archives. 18696ce994aSmrgold_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 18796ce994aSmrgold_postinstall_cmds='chmod 644 $oldlib' 18896ce994aSmrgold_postuninstall_cmds= 18996ce994aSmrg 19096ce994aSmrgif test -n "$RANLIB"; then 19196ce994aSmrg case $host_os in 19296ce994aSmrg openbsd*) 19396ce994aSmrg old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 19496ce994aSmrg ;; 19596ce994aSmrg *) 19696ce994aSmrg old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 19796ce994aSmrg ;; 19896ce994aSmrg esac 19996ce994aSmrg old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 20096ce994aSmrgfi 20196ce994aSmrg 202bdcaa8d0Smrg_LT_CC_BASENAME([$compiler]) 203bdcaa8d0Smrg 204bdcaa8d0Smrg# Only perform the check for file, if the check method requires it 205bdcaa8d0Smrgcase $deplibs_check_method in 206bdcaa8d0Smrgfile_magic*) 207bdcaa8d0Smrg if test "$file_magic_cmd" = '$MAGIC_CMD'; then 20896ce994aSmrg AC_PATH_MAGIC 209bdcaa8d0Smrg fi 210bdcaa8d0Smrg ;; 211bdcaa8d0Smrgesac 212bdcaa8d0Smrg 21396ce994aSmrg_LT_REQUIRED_DARWIN_CHECKS 21472313efbSmrg 21596ce994aSmrgAC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no) 21696ce994aSmrgAC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], 21796ce994aSmrgenable_win32_dll=yes, enable_win32_dll=no) 21872313efbSmrg 21996ce994aSmrgAC_ARG_ENABLE([libtool-lock], 22096ce994aSmrg [AC_HELP_STRING([--disable-libtool-lock], 22196ce994aSmrg [avoid locking (might break parallel builds)])]) 22296ce994aSmrgtest "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 22372313efbSmrg 22496ce994aSmrgAC_ARG_WITH([pic], 22596ce994aSmrg [AC_HELP_STRING([--with-pic], 22696ce994aSmrg [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], 22796ce994aSmrg [pic_mode="$withval"], 22896ce994aSmrg [pic_mode=default]) 22996ce994aSmrgtest -z "$pic_mode" && pic_mode=default 23072313efbSmrg 23196ce994aSmrg# Use C for the default configuration in the libtool script 23296ce994aSmrgtagname= 23396ce994aSmrgAC_LIBTOOL_LANG_C_CONFIG 23496ce994aSmrg_LT_AC_TAGCONFIG 23596ce994aSmrg])# AC_LIBTOOL_SETUP 23672313efbSmrg 23772313efbSmrg 23896ce994aSmrg# _LT_AC_SYS_COMPILER 23972313efbSmrg# ------------------- 24096ce994aSmrgAC_DEFUN([_LT_AC_SYS_COMPILER], 24172313efbSmrg[AC_REQUIRE([AC_PROG_CC])dnl 242bdcaa8d0Smrg 24372313efbSmrg# If no C compiler was specified, use CC. 24472313efbSmrgLTCC=${LTCC-"$CC"} 245bdcaa8d0Smrg 24672313efbSmrg# If no C compiler flags were specified, use CFLAGS. 24772313efbSmrgLTCFLAGS=${LTCFLAGS-"$CFLAGS"} 248bdcaa8d0Smrg 24972313efbSmrg# Allow CC to be a program name with arguments. 25072313efbSmrgcompiler=$CC 25196ce994aSmrg])# _LT_AC_SYS_COMPILER 25296ce994aSmrg 25396ce994aSmrg 25496ce994aSmrg# _LT_CC_BASENAME(CC) 25596ce994aSmrg# ------------------- 25696ce994aSmrg# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 25796ce994aSmrgAC_DEFUN([_LT_CC_BASENAME], 25896ce994aSmrg[for cc_temp in $1""; do 25996ce994aSmrg case $cc_temp in 26096ce994aSmrg compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; 26196ce994aSmrg distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; 26296ce994aSmrg \-*) ;; 26396ce994aSmrg *) break;; 26496ce994aSmrg esac 26596ce994aSmrgdone 26696ce994aSmrgcc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 26796ce994aSmrg]) 268bdcaa8d0Smrg 269bdcaa8d0Smrg 27072313efbSmrg# _LT_COMPILER_BOILERPLATE 27172313efbSmrg# ------------------------ 27272313efbSmrg# Check for compiler boilerplate output or warnings with 27372313efbSmrg# the simple compiler test code. 27496ce994aSmrgAC_DEFUN([_LT_COMPILER_BOILERPLATE], 27596ce994aSmrg[AC_REQUIRE([LT_AC_PROG_SED])dnl 27672313efbSmrgac_outfile=conftest.$ac_objext 27772313efbSmrgecho "$lt_simple_compile_test_code" >conftest.$ac_ext 27872313efbSmrgeval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 27972313efbSmrg_lt_compiler_boilerplate=`cat conftest.err` 28096ce994aSmrg$rm conftest* 28172313efbSmrg])# _LT_COMPILER_BOILERPLATE 282bdcaa8d0Smrg 283bdcaa8d0Smrg 28472313efbSmrg# _LT_LINKER_BOILERPLATE 28572313efbSmrg# ---------------------- 28672313efbSmrg# Check for linker boilerplate output or warnings with 28772313efbSmrg# the simple link test code. 28896ce994aSmrgAC_DEFUN([_LT_LINKER_BOILERPLATE], 28996ce994aSmrg[AC_REQUIRE([LT_AC_PROG_SED])dnl 29072313efbSmrgac_outfile=conftest.$ac_objext 29172313efbSmrgecho "$lt_simple_link_test_code" >conftest.$ac_ext 29272313efbSmrgeval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 29372313efbSmrg_lt_linker_boilerplate=`cat conftest.err` 29496ce994aSmrg$rm -r conftest* 29572313efbSmrg])# _LT_LINKER_BOILERPLATE 296bdcaa8d0Smrg 29772313efbSmrg# _LT_REQUIRED_DARWIN_CHECKS 29896ce994aSmrg# -------------------------- 29996ce994aSmrg# Check for some things on darwin 30096ce994aSmrgAC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS],[ 30172313efbSmrg case $host_os in 30272313efbSmrg rhapsody* | darwin*) 30372313efbSmrg AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:]) 30472313efbSmrg AC_CHECK_TOOL([NMEDIT], [nmedit], [:]) 30572313efbSmrg 30672313efbSmrg AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod], 30772313efbSmrg [lt_cv_apple_cc_single_mod=no 30872313efbSmrg if test -z "${LT_MULTI_MODULE}"; then 30996ce994aSmrg # By default we will add the -single_module flag. You can override 31096ce994aSmrg # by either setting the environment variable LT_MULTI_MODULE 31196ce994aSmrg # non-empty at configure time, or by adding -multi_module to the 31296ce994aSmrg # link flags. 31396ce994aSmrg echo "int foo(void){return 1;}" > conftest.c 31496ce994aSmrg $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 31596ce994aSmrg -dynamiclib ${wl}-single_module conftest.c 31696ce994aSmrg if test -f libconftest.dylib; then 31796ce994aSmrg lt_cv_apple_cc_single_mod=yes 31896ce994aSmrg rm -rf libconftest.dylib* 31996ce994aSmrg fi 32096ce994aSmrg rm conftest.c 32172313efbSmrg fi]) 32272313efbSmrg AC_CACHE_CHECK([for -exported_symbols_list linker flag], 32372313efbSmrg [lt_cv_ld_exported_symbols_list], 32472313efbSmrg [lt_cv_ld_exported_symbols_list=no 32572313efbSmrg save_LDFLAGS=$LDFLAGS 32672313efbSmrg echo "_main" > conftest.sym 32772313efbSmrg LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 32872313efbSmrg AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], 32996ce994aSmrg [lt_cv_ld_exported_symbols_list=yes], 33096ce994aSmrg [lt_cv_ld_exported_symbols_list=no]) 33196ce994aSmrg LDFLAGS="$save_LDFLAGS" 332bdcaa8d0Smrg ]) 33372313efbSmrg case $host_os in 33496ce994aSmrg rhapsody* | darwin1.[[0123]]) 33572313efbSmrg _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 33672313efbSmrg darwin1.*) 33796ce994aSmrg _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 33896ce994aSmrg darwin*) 33972313efbSmrg # if running on 10.5 or later, the deployment target defaults 34072313efbSmrg # to the OS version, if on x86, and 10.4, the deployment 34172313efbSmrg # target defaults to 10.4. Don't you love it? 34272313efbSmrg case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 34396ce994aSmrg 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*) 34496ce994aSmrg _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 34596ce994aSmrg 10.[[012]]*) 34696ce994aSmrg _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 34796ce994aSmrg 10.*) 34896ce994aSmrg _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 34972313efbSmrg esac 35072313efbSmrg ;; 35172313efbSmrg esac 35272313efbSmrg if test "$lt_cv_apple_cc_single_mod" = "yes"; then 35372313efbSmrg _lt_dar_single_mod='$single_module' 35472313efbSmrg fi 35572313efbSmrg if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 35672313efbSmrg _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 35772313efbSmrg else 35896ce994aSmrg _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}" 35972313efbSmrg fi 36072313efbSmrg if test "$DSYMUTIL" != ":"; then 36196ce994aSmrg _lt_dsymutil="~$DSYMUTIL \$lib || :" 36272313efbSmrg else 36372313efbSmrg _lt_dsymutil= 364bdcaa8d0Smrg fi 365bdcaa8d0Smrg ;; 366bdcaa8d0Smrg esac 36772313efbSmrg]) 368bdcaa8d0Smrg 36996ce994aSmrg# _LT_AC_SYS_LIBPATH_AIX 37096ce994aSmrg# ---------------------- 37172313efbSmrg# Links a minimal program and checks the executable 37272313efbSmrg# for the system default hardcoded library path. In most cases, 37372313efbSmrg# this is /usr/lib:/lib, but when the MPI compilers are used 37472313efbSmrg# the location of the communication and MPI libs are included too. 37572313efbSmrg# If we don't find anything, use the default library path according 37672313efbSmrg# to the aix ld manual. 37796ce994aSmrgAC_DEFUN([_LT_AC_SYS_LIBPATH_AIX], 37896ce994aSmrg[AC_REQUIRE([LT_AC_PROG_SED])dnl 37972313efbSmrgAC_LINK_IFELSE(AC_LANG_PROGRAM,[ 38072313efbSmrglt_aix_libpath_sed=' 38172313efbSmrg /Import File Strings/,/^$/ { 38272313efbSmrg /^0/ { 38372313efbSmrg s/^0 *\(.*\)$/\1/ 38472313efbSmrg p 38572313efbSmrg } 38672313efbSmrg }' 38772313efbSmrgaix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 38872313efbSmrg# Check for a 64-bit object if we didn't find anything. 38972313efbSmrgif test -z "$aix_libpath"; then 39072313efbSmrg aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 39172313efbSmrgfi],[]) 39272313efbSmrgif test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 39396ce994aSmrg])# _LT_AC_SYS_LIBPATH_AIX 394bdcaa8d0Smrg 395bdcaa8d0Smrg 39696ce994aSmrg# _LT_AC_SHELL_INIT(ARG) 39796ce994aSmrg# ---------------------- 39896ce994aSmrgAC_DEFUN([_LT_AC_SHELL_INIT], 39972313efbSmrg[ifdef([AC_DIVERSION_NOTICE], 40072313efbSmrg [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)], 40172313efbSmrg [AC_DIVERT_PUSH(NOTICE)]) 40272313efbSmrg$1 40372313efbSmrgAC_DIVERT_POP 40496ce994aSmrg])# _LT_AC_SHELL_INIT 405bdcaa8d0Smrg 406bdcaa8d0Smrg 40796ce994aSmrg# _LT_AC_PROG_ECHO_BACKSLASH 40896ce994aSmrg# -------------------------- 40972313efbSmrg# Add some code to the start of the generated configure script which 41072313efbSmrg# will find an echo command which doesn't interpret backslashes. 41196ce994aSmrgAC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH], 41296ce994aSmrg[_LT_AC_SHELL_INIT([ 41372313efbSmrg# Check that we are running under the correct shell. 41472313efbSmrgSHELL=${CONFIG_SHELL-/bin/sh} 415bdcaa8d0Smrg 41696ce994aSmrgcase X$ECHO in 41772313efbSmrgX*--fallback-echo) 41872313efbSmrg # Remove one level of quotation (which was required for Make). 41996ce994aSmrg ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','` 42072313efbSmrg ;; 42172313efbSmrgesac 42272313efbSmrg 42396ce994aSmrgecho=${ECHO-echo} 42472313efbSmrgif test "X[$]1" = X--no-reexec; then 42572313efbSmrg # Discard the --no-reexec flag, and continue. 42672313efbSmrg shift 42772313efbSmrgelif test "X[$]1" = X--fallback-echo; then 42872313efbSmrg # Avoid inline document here, it may be left over 42972313efbSmrg : 43096ce994aSmrgelif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then 43196ce994aSmrg # Yippee, $echo works! 43272313efbSmrg : 433bdcaa8d0Smrgelse 43472313efbSmrg # Restart under the correct shell. 43572313efbSmrg exec $SHELL "[$]0" --no-reexec ${1+"[$]@"} 436bdcaa8d0Smrgfi 437bdcaa8d0Smrg 43872313efbSmrgif test "X[$]1" = X--fallback-echo; then 43972313efbSmrg # used as fallback echo 44072313efbSmrg shift 44196ce994aSmrg cat <<EOF 44272313efbSmrg[$]* 44396ce994aSmrgEOF 44472313efbSmrg exit 0 445bdcaa8d0Smrgfi 446bdcaa8d0Smrg 44772313efbSmrg# The HP-UX ksh and POSIX shell print the target directory to stdout 44872313efbSmrg# if CDPATH is set. 44972313efbSmrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 450bdcaa8d0Smrg 45196ce994aSmrgif test -z "$ECHO"; then 45296ce994aSmrgif test "X${echo_test_string+set}" != Xset; then 45396ce994aSmrg# find a string as large as possible, as long as the shell can cope with it 45496ce994aSmrg for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do 45596ce994aSmrg # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 45696ce994aSmrg if (echo_test_string=`eval $cmd`) 2>/dev/null && 45796ce994aSmrg echo_test_string=`eval $cmd` && 45896ce994aSmrg (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 45996ce994aSmrg then 46096ce994aSmrg break 46196ce994aSmrg fi 46296ce994aSmrg done 46396ce994aSmrgfi 464bdcaa8d0Smrg 46596ce994aSmrgif test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 46696ce994aSmrg echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 46796ce994aSmrg test "X$echo_testing_string" = "X$echo_test_string"; then 46896ce994aSmrg : 46996ce994aSmrgelse 47096ce994aSmrg # The Solaris, AIX, and Digital Unix default echo programs unquote 47196ce994aSmrg # backslashes. This makes it impossible to quote backslashes using 47296ce994aSmrg # echo "$something" | sed 's/\\/\\\\/g' 47396ce994aSmrg # 47496ce994aSmrg # So, first we look for a working echo in the user's PATH. 475bdcaa8d0Smrg 47696ce994aSmrg lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 47796ce994aSmrg for dir in $PATH /usr/ucb; do 47872313efbSmrg IFS="$lt_save_ifs" 47996ce994aSmrg if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 48096ce994aSmrg test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 48196ce994aSmrg echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 48296ce994aSmrg test "X$echo_testing_string" = "X$echo_test_string"; then 48396ce994aSmrg echo="$dir/echo" 48496ce994aSmrg break 48596ce994aSmrg fi 48696ce994aSmrg done 48796ce994aSmrg IFS="$lt_save_ifs" 488bdcaa8d0Smrg 48996ce994aSmrg if test "X$echo" = Xecho; then 49096ce994aSmrg # We didn't find a better echo, so look for alternatives. 49196ce994aSmrg if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 49296ce994aSmrg echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 49396ce994aSmrg test "X$echo_testing_string" = "X$echo_test_string"; then 49496ce994aSmrg # This shell has a builtin print -r that does the trick. 49596ce994aSmrg echo='print -r' 49696ce994aSmrg elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 49796ce994aSmrg test "X$CONFIG_SHELL" != X/bin/ksh; then 49896ce994aSmrg # If we have ksh, try running configure again with it. 49996ce994aSmrg ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 50096ce994aSmrg export ORIGINAL_CONFIG_SHELL 50196ce994aSmrg CONFIG_SHELL=/bin/ksh 50296ce994aSmrg export CONFIG_SHELL 50396ce994aSmrg exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"} 50496ce994aSmrg else 50596ce994aSmrg # Try using printf. 50696ce994aSmrg echo='printf %s\n' 50796ce994aSmrg if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 50896ce994aSmrg echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 50996ce994aSmrg test "X$echo_testing_string" = "X$echo_test_string"; then 51096ce994aSmrg # Cool, printf works 51196ce994aSmrg : 51296ce994aSmrg elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && 51396ce994aSmrg test "X$echo_testing_string" = 'X\t' && 51496ce994aSmrg echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && 51572313efbSmrg test "X$echo_testing_string" = "X$echo_test_string"; then 51696ce994aSmrg CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 51796ce994aSmrg export CONFIG_SHELL 51896ce994aSmrg SHELL="$CONFIG_SHELL" 51996ce994aSmrg export SHELL 52096ce994aSmrg echo="$CONFIG_SHELL [$]0 --fallback-echo" 52196ce994aSmrg elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && 52296ce994aSmrg test "X$echo_testing_string" = 'X\t' && 52396ce994aSmrg echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && 52496ce994aSmrg test "X$echo_testing_string" = "X$echo_test_string"; then 52596ce994aSmrg echo="$CONFIG_SHELL [$]0 --fallback-echo" 52696ce994aSmrg else 52796ce994aSmrg # maybe with a smaller string... 52896ce994aSmrg prev=: 529bdcaa8d0Smrg 53096ce994aSmrg for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do 53196ce994aSmrg if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 53296ce994aSmrg then 53396ce994aSmrg break 53472313efbSmrg fi 53596ce994aSmrg prev="$cmd" 53696ce994aSmrg done 53796ce994aSmrg 53896ce994aSmrg if test "$prev" != 'sed 50q "[$]0"'; then 53996ce994aSmrg echo_test_string=`eval $prev` 54096ce994aSmrg export echo_test_string 54196ce994aSmrg exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"} 54296ce994aSmrg else 54396ce994aSmrg # Oops. We lost completely, so just stick with echo. 54496ce994aSmrg echo=echo 54596ce994aSmrg fi 54672313efbSmrg fi 54772313efbSmrg fi 548bdcaa8d0Smrg fi 549bdcaa8d0Smrgfi 55096ce994aSmrgfi 551bdcaa8d0Smrg 55272313efbSmrg# Copy echo and quote the copy suitably for passing to libtool from 55372313efbSmrg# the Makefile, instead of quoting the original, which is used later. 55496ce994aSmrgECHO=$echo 55596ce994aSmrgif test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then 55696ce994aSmrg ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo" 55772313efbSmrgfi 558bdcaa8d0Smrg 55996ce994aSmrgAC_SUBST(ECHO) 56096ce994aSmrg])])# _LT_AC_PROG_ECHO_BACKSLASH 561bdcaa8d0Smrg 562bdcaa8d0Smrg 56396ce994aSmrg# _LT_AC_LOCK 56496ce994aSmrg# ----------- 56596ce994aSmrgAC_DEFUN([_LT_AC_LOCK], 56672313efbSmrg[AC_ARG_ENABLE([libtool-lock], 56796ce994aSmrg [AC_HELP_STRING([--disable-libtool-lock], 56896ce994aSmrg [avoid locking (might break parallel builds)])]) 56972313efbSmrgtest "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 57072313efbSmrg 57172313efbSmrg# Some flags need to be propagated to the compiler or linker for good 57272313efbSmrg# libtool support. 57372313efbSmrgcase $host in 57472313efbSmrgia64-*-hpux*) 57572313efbSmrg # Find out which ABI we are using. 57672313efbSmrg echo 'int i;' > conftest.$ac_ext 57772313efbSmrg if AC_TRY_EVAL(ac_compile); then 57872313efbSmrg case `/usr/bin/file conftest.$ac_objext` in 57996ce994aSmrg *ELF-32*) 58096ce994aSmrg HPUX_IA64_MODE="32" 58196ce994aSmrg ;; 58296ce994aSmrg *ELF-64*) 58396ce994aSmrg HPUX_IA64_MODE="64" 58496ce994aSmrg ;; 585bdcaa8d0Smrg esac 58672313efbSmrg fi 58772313efbSmrg rm -rf conftest* 58872313efbSmrg ;; 58972313efbSmrg*-*-irix6*) 59072313efbSmrg # Find out which ABI we are using. 59172313efbSmrg echo '[#]line __oline__ "configure"' > conftest.$ac_ext 59272313efbSmrg if AC_TRY_EVAL(ac_compile); then 59396ce994aSmrg if test "$lt_cv_prog_gnu_ld" = yes; then 59496ce994aSmrg case `/usr/bin/file conftest.$ac_objext` in 59596ce994aSmrg *32-bit*) 59696ce994aSmrg LD="${LD-ld} -melf32bsmip" 59796ce994aSmrg ;; 59896ce994aSmrg *N32*) 59996ce994aSmrg LD="${LD-ld} -melf32bmipn32" 60096ce994aSmrg ;; 60196ce994aSmrg *64-bit*) 60296ce994aSmrg LD="${LD-ld} -melf64bmip" 60396ce994aSmrg ;; 60496ce994aSmrg esac 60596ce994aSmrg else 60696ce994aSmrg case `/usr/bin/file conftest.$ac_objext` in 60796ce994aSmrg *32-bit*) 60896ce994aSmrg LD="${LD-ld} -32" 60996ce994aSmrg ;; 61096ce994aSmrg *N32*) 61196ce994aSmrg LD="${LD-ld} -n32" 61296ce994aSmrg ;; 61396ce994aSmrg *64-bit*) 61496ce994aSmrg LD="${LD-ld} -64" 61596ce994aSmrg ;; 61696ce994aSmrg esac 61796ce994aSmrg fi 618bdcaa8d0Smrg fi 61972313efbSmrg rm -rf conftest* 620bdcaa8d0Smrg ;; 621bdcaa8d0Smrg 62272313efbSmrgx86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 62396ce994aSmrgs390*-*linux*|sparc*-*linux*) 62472313efbSmrg # Find out which ABI we are using. 62572313efbSmrg echo 'int i;' > conftest.$ac_ext 62672313efbSmrg if AC_TRY_EVAL(ac_compile); then 62772313efbSmrg case `/usr/bin/file conftest.o` in 62896ce994aSmrg *32-bit*) 62996ce994aSmrg case $host in 63096ce994aSmrg x86_64-*kfreebsd*-gnu) 63196ce994aSmrg LD="${LD-ld} -m elf_i386_fbsd" 63296ce994aSmrg ;; 63396ce994aSmrg x86_64-*linux*) 63496ce994aSmrg LD="${LD-ld} -m elf_i386" 63596ce994aSmrg ;; 63696ce994aSmrg ppc64-*linux*|powerpc64-*linux*) 63796ce994aSmrg LD="${LD-ld} -m elf32ppclinux" 63896ce994aSmrg ;; 63996ce994aSmrg s390x-*linux*) 64096ce994aSmrg LD="${LD-ld} -m elf_s390" 64196ce994aSmrg ;; 64296ce994aSmrg sparc64-*linux*) 64396ce994aSmrg LD="${LD-ld} -m elf32_sparc" 64496ce994aSmrg ;; 64596ce994aSmrg esac 64696ce994aSmrg ;; 64796ce994aSmrg *64-bit*) 64896ce994aSmrg libsuff=64 64996ce994aSmrg case $host in 65096ce994aSmrg x86_64-*kfreebsd*-gnu) 65196ce994aSmrg LD="${LD-ld} -m elf_x86_64_fbsd" 65296ce994aSmrg ;; 65396ce994aSmrg x86_64-*linux*) 65496ce994aSmrg LD="${LD-ld} -m elf_x86_64" 65596ce994aSmrg ;; 65696ce994aSmrg ppc*-*linux*|powerpc*-*linux*) 65796ce994aSmrg LD="${LD-ld} -m elf64ppc" 65896ce994aSmrg ;; 65996ce994aSmrg s390*-*linux*) 66096ce994aSmrg LD="${LD-ld} -m elf64_s390" 66196ce994aSmrg ;; 66296ce994aSmrg sparc*-*linux*) 66396ce994aSmrg LD="${LD-ld} -m elf64_sparc" 66496ce994aSmrg ;; 66596ce994aSmrg esac 66696ce994aSmrg ;; 66772313efbSmrg esac 66872313efbSmrg fi 66972313efbSmrg rm -rf conftest* 670bdcaa8d0Smrg ;; 671bdcaa8d0Smrg 67272313efbSmrg*-*-sco3.2v5*) 67372313efbSmrg # On SCO OpenServer 5, we need -belf to get full-featured binaries. 67472313efbSmrg SAVE_CFLAGS="$CFLAGS" 67572313efbSmrg CFLAGS="$CFLAGS -belf" 67672313efbSmrg AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, 67772313efbSmrg [AC_LANG_PUSH(C) 67896ce994aSmrg AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) 67972313efbSmrg AC_LANG_POP]) 68072313efbSmrg if test x"$lt_cv_cc_needs_belf" != x"yes"; then 68172313efbSmrg # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 68272313efbSmrg CFLAGS="$SAVE_CFLAGS" 68372313efbSmrg fi 684bdcaa8d0Smrg ;; 68572313efbSmrgsparc*-*solaris*) 68672313efbSmrg # Find out which ABI we are using. 68772313efbSmrg echo 'int i;' > conftest.$ac_ext 68872313efbSmrg if AC_TRY_EVAL(ac_compile); then 68972313efbSmrg case `/usr/bin/file conftest.o` in 69072313efbSmrg *64-bit*) 69172313efbSmrg case $lt_cv_prog_gnu_ld in 69272313efbSmrg yes*) LD="${LD-ld} -m elf64_sparc" ;; 69372313efbSmrg *) 69496ce994aSmrg if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 69572313efbSmrg LD="${LD-ld} -64" 69672313efbSmrg fi 69772313efbSmrg ;; 69872313efbSmrg esac 69972313efbSmrg ;; 70072313efbSmrg esac 70172313efbSmrg fi 70272313efbSmrg rm -rf conftest* 703bdcaa8d0Smrg ;; 70496ce994aSmrg 70596ce994aSmrgAC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], 70696ce994aSmrg[*-*-cygwin* | *-*-mingw* | *-*-pw32*) 70796ce994aSmrg AC_CHECK_TOOL(DLLTOOL, dlltool, false) 70896ce994aSmrg AC_CHECK_TOOL(AS, as, false) 70996ce994aSmrg AC_CHECK_TOOL(OBJDUMP, objdump, false) 71096ce994aSmrg ;; 71196ce994aSmrg ]) 71272313efbSmrgesac 713bdcaa8d0Smrg 71472313efbSmrgneed_locks="$enable_libtool_lock" 71572313efbSmrg 71696ce994aSmrg])# _LT_AC_LOCK 717bdcaa8d0Smrg 718bdcaa8d0Smrg 71996ce994aSmrg# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, 72072313efbSmrg# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) 72172313efbSmrg# ---------------------------------------------------------------- 72272313efbSmrg# Check whether the given compiler option works 72396ce994aSmrgAC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], 72496ce994aSmrg[AC_REQUIRE([LT_AC_PROG_SED]) 72572313efbSmrgAC_CACHE_CHECK([$1], [$2], 72672313efbSmrg [$2=no 72796ce994aSmrg ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) 72872313efbSmrg echo "$lt_simple_compile_test_code" > conftest.$ac_ext 72972313efbSmrg lt_compiler_flag="$3" 73072313efbSmrg # Insert the option either (1) after the last *FLAGS variable, or 73172313efbSmrg # (2) before a word containing "conftest.", or (3) at the end. 73272313efbSmrg # Note that $ac_compile itself does not contain backslashes and begins 73372313efbSmrg # with a dollar sign (not a hyphen), so the echo should work correctly. 73472313efbSmrg # The option is referenced via a variable to avoid confusing sed. 73572313efbSmrg lt_compile=`echo "$ac_compile" | $SED \ 73672313efbSmrg -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 73772313efbSmrg -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ 73872313efbSmrg -e 's:$: $lt_compiler_flag:'` 73972313efbSmrg (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) 74072313efbSmrg (eval "$lt_compile" 2>conftest.err) 74172313efbSmrg ac_status=$? 74272313efbSmrg cat conftest.err >&AS_MESSAGE_LOG_FD 74372313efbSmrg echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD 74472313efbSmrg if (exit $ac_status) && test -s "$ac_outfile"; then 74572313efbSmrg # The compiler can only warn and ignore the option if not recognized 74672313efbSmrg # So say no if there are warnings other than the usual output. 74796ce994aSmrg $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 74872313efbSmrg $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 74972313efbSmrg if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 75072313efbSmrg $2=yes 75172313efbSmrg fi 75272313efbSmrg fi 75396ce994aSmrg $rm conftest* 75472313efbSmrg]) 755bdcaa8d0Smrg 75672313efbSmrgif test x"[$]$2" = xyes; then 75796ce994aSmrg ifelse([$5], , :, [$5]) 75872313efbSmrgelse 75996ce994aSmrg ifelse([$6], , :, [$6]) 76072313efbSmrgfi 76196ce994aSmrg])# AC_LIBTOOL_COMPILER_OPTION 76272313efbSmrg 76372313efbSmrg 76496ce994aSmrg# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, 76596ce994aSmrg# [ACTION-SUCCESS], [ACTION-FAILURE]) 76696ce994aSmrg# ------------------------------------------------------------ 76796ce994aSmrg# Check whether the given compiler option works 76896ce994aSmrgAC_DEFUN([AC_LIBTOOL_LINKER_OPTION], 76996ce994aSmrg[AC_REQUIRE([LT_AC_PROG_SED])dnl 77072313efbSmrgAC_CACHE_CHECK([$1], [$2], 77172313efbSmrg [$2=no 77272313efbSmrg save_LDFLAGS="$LDFLAGS" 77372313efbSmrg LDFLAGS="$LDFLAGS $3" 77472313efbSmrg echo "$lt_simple_link_test_code" > conftest.$ac_ext 77572313efbSmrg if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 77672313efbSmrg # The linker can only warn and ignore the option if not recognized 77772313efbSmrg # So say no if there are warnings 77872313efbSmrg if test -s conftest.err; then 77972313efbSmrg # Append any errors to the config.log. 78072313efbSmrg cat conftest.err 1>&AS_MESSAGE_LOG_FD 78196ce994aSmrg $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 78272313efbSmrg $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 78372313efbSmrg if diff conftest.exp conftest.er2 >/dev/null; then 78472313efbSmrg $2=yes 78572313efbSmrg fi 78672313efbSmrg else 78772313efbSmrg $2=yes 78872313efbSmrg fi 78972313efbSmrg fi 79096ce994aSmrg $rm -r conftest* 79172313efbSmrg LDFLAGS="$save_LDFLAGS" 79272313efbSmrg]) 79372313efbSmrg 79472313efbSmrgif test x"[$]$2" = xyes; then 79596ce994aSmrg ifelse([$4], , :, [$4]) 79672313efbSmrgelse 79796ce994aSmrg ifelse([$5], , :, [$5]) 79872313efbSmrgfi 79996ce994aSmrg])# AC_LIBTOOL_LINKER_OPTION 80072313efbSmrg 80172313efbSmrg 80296ce994aSmrg# AC_LIBTOOL_SYS_MAX_CMD_LEN 80396ce994aSmrg# -------------------------- 80496ce994aSmrgAC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], 80596ce994aSmrg[# find the maximum length of command line arguments 80672313efbSmrgAC_MSG_CHECKING([the maximum length of command line arguments]) 80772313efbSmrgAC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl 80872313efbSmrg i=0 80972313efbSmrg teststring="ABCD" 81072313efbSmrg 81172313efbSmrg case $build_os in 81272313efbSmrg msdosdjgpp*) 81372313efbSmrg # On DJGPP, this test can blow up pretty badly due to problems in libc 81472313efbSmrg # (any single argument exceeding 2000 bytes causes a buffer overrun 81572313efbSmrg # during glob expansion). Even if it were fixed, the result of this 81672313efbSmrg # check would be larger than it should be. 81772313efbSmrg lt_cv_sys_max_cmd_len=12288; # 12K is about right 818bdcaa8d0Smrg ;; 81972313efbSmrg 82072313efbSmrg gnu*) 82172313efbSmrg # Under GNU Hurd, this test is not required because there is 82272313efbSmrg # no limit to the length of command line arguments. 82372313efbSmrg # Libtool will interpret -1 as no limit whatsoever 82472313efbSmrg lt_cv_sys_max_cmd_len=-1; 825bdcaa8d0Smrg ;; 82672313efbSmrg 82796ce994aSmrg cygwin* | mingw*) 82872313efbSmrg # On Win9x/ME, this test blows up -- it succeeds, but takes 82972313efbSmrg # about 5 minutes as the teststring grows exponentially. 83072313efbSmrg # Worse, since 9x/ME are not pre-emptively multitasking, 83172313efbSmrg # you end up with a "frozen" computer, even though with patience 83272313efbSmrg # the test eventually succeeds (with a max line length of 256k). 83372313efbSmrg # Instead, let's just punt: use the minimum linelength reported by 83472313efbSmrg # all of the supported platforms: 8192 (on NT/2K/XP). 83572313efbSmrg lt_cv_sys_max_cmd_len=8192; 836bdcaa8d0Smrg ;; 837bdcaa8d0Smrg 83872313efbSmrg amigaos*) 83972313efbSmrg # On AmigaOS with pdksh, this test takes hours, literally. 84072313efbSmrg # So we just punt and use a minimum line length of 8192. 84172313efbSmrg lt_cv_sys_max_cmd_len=8192; 84272313efbSmrg ;; 843bdcaa8d0Smrg 84472313efbSmrg netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 84572313efbSmrg # This has been around since 386BSD, at least. Likely further. 84672313efbSmrg if test -x /sbin/sysctl; then 84772313efbSmrg lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 84872313efbSmrg elif test -x /usr/sbin/sysctl; then 84972313efbSmrg lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 850bdcaa8d0Smrg else 85172313efbSmrg lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 852bdcaa8d0Smrg fi 85372313efbSmrg # And add a safety zone 85472313efbSmrg lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 85572313efbSmrg lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 856bdcaa8d0Smrg ;; 857bdcaa8d0Smrg 85872313efbSmrg interix*) 85972313efbSmrg # We know the value 262144 and hardcode it with a safety zone (like BSD) 86072313efbSmrg lt_cv_sys_max_cmd_len=196608 86172313efbSmrg ;; 862bdcaa8d0Smrg 86372313efbSmrg osf*) 86472313efbSmrg # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 86572313efbSmrg # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 86672313efbSmrg # nice to cause kernel panics so lets avoid the loop below. 86772313efbSmrg # First set a reasonable default. 86872313efbSmrg lt_cv_sys_max_cmd_len=16384 86972313efbSmrg # 87072313efbSmrg if test -x /sbin/sysconfig; then 87172313efbSmrg case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 87272313efbSmrg *1*) lt_cv_sys_max_cmd_len=-1 ;; 87372313efbSmrg esac 87472313efbSmrg fi 87572313efbSmrg ;; 87672313efbSmrg sco3.2v5*) 87772313efbSmrg lt_cv_sys_max_cmd_len=102400 87872313efbSmrg ;; 87972313efbSmrg sysv5* | sco5v6* | sysv4.2uw2*) 88072313efbSmrg kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 88172313efbSmrg if test -n "$kargmax"; then 88296ce994aSmrg lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'` 88372313efbSmrg else 88472313efbSmrg lt_cv_sys_max_cmd_len=32768 88572313efbSmrg fi 886bdcaa8d0Smrg ;; 887bdcaa8d0Smrg *) 88872313efbSmrg lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 88972313efbSmrg if test -n "$lt_cv_sys_max_cmd_len"; then 89072313efbSmrg lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 89172313efbSmrg lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 89272313efbSmrg else 89372313efbSmrg SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 89496ce994aSmrg while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \ 89596ce994aSmrg = "XX$teststring") >/dev/null 2>&1 && 89696ce994aSmrg new_result=`expr "X$teststring" : ".*" 2>&1` && 89796ce994aSmrg lt_cv_sys_max_cmd_len=$new_result && 89872313efbSmrg test $i != 17 # 1/2 MB should be enough 89972313efbSmrg do 90072313efbSmrg i=`expr $i + 1` 90172313efbSmrg teststring=$teststring$teststring 90272313efbSmrg done 90372313efbSmrg teststring= 90496ce994aSmrg # Add a significant safety factor because C++ compilers can tack on massive 90596ce994aSmrg # amounts of additional arguments before passing them to the linker. 90696ce994aSmrg # It appears as though 1/2 is a usable value. 90772313efbSmrg lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 90872313efbSmrg fi 909bdcaa8d0Smrg ;; 910bdcaa8d0Smrg esac 91172313efbSmrg]) 91272313efbSmrgif test -n $lt_cv_sys_max_cmd_len ; then 91372313efbSmrg AC_MSG_RESULT($lt_cv_sys_max_cmd_len) 91472313efbSmrgelse 91572313efbSmrg AC_MSG_RESULT(none) 91672313efbSmrgfi 91796ce994aSmrg])# AC_LIBTOOL_SYS_MAX_CMD_LEN 918bdcaa8d0Smrg 919bdcaa8d0Smrg 92096ce994aSmrg# _LT_AC_CHECK_DLFCN 92196ce994aSmrg# ------------------ 92296ce994aSmrgAC_DEFUN([_LT_AC_CHECK_DLFCN], 92396ce994aSmrg[AC_CHECK_HEADERS(dlfcn.h)dnl 92496ce994aSmrg])# _LT_AC_CHECK_DLFCN 925bdcaa8d0Smrg 926bdcaa8d0Smrg 92796ce994aSmrg# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, 92896ce994aSmrg# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) 92996ce994aSmrg# --------------------------------------------------------------------- 93096ce994aSmrgAC_DEFUN([_LT_AC_TRY_DLOPEN_SELF], 93196ce994aSmrg[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl 93272313efbSmrgif test "$cross_compiling" = yes; then : 93372313efbSmrg [$4] 93472313efbSmrgelse 93572313efbSmrg lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 93672313efbSmrg lt_status=$lt_dlunknown 93796ce994aSmrg cat > conftest.$ac_ext <<EOF 93872313efbSmrg[#line __oline__ "configure" 93972313efbSmrg#include "confdefs.h" 940bdcaa8d0Smrg 94172313efbSmrg#if HAVE_DLFCN_H 94272313efbSmrg#include <dlfcn.h> 94372313efbSmrg#endif 944bdcaa8d0Smrg 94572313efbSmrg#include <stdio.h> 946bdcaa8d0Smrg 94772313efbSmrg#ifdef RTLD_GLOBAL 94872313efbSmrg# define LT_DLGLOBAL RTLD_GLOBAL 94972313efbSmrg#else 95072313efbSmrg# ifdef DL_GLOBAL 95172313efbSmrg# define LT_DLGLOBAL DL_GLOBAL 95272313efbSmrg# else 95372313efbSmrg# define LT_DLGLOBAL 0 95472313efbSmrg# endif 95572313efbSmrg#endif 956bdcaa8d0Smrg 95772313efbSmrg/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 95872313efbSmrg find out it does not work in some platform. */ 95972313efbSmrg#ifndef LT_DLLAZY_OR_NOW 96072313efbSmrg# ifdef RTLD_LAZY 96172313efbSmrg# define LT_DLLAZY_OR_NOW RTLD_LAZY 96272313efbSmrg# else 96372313efbSmrg# ifdef DL_LAZY 96472313efbSmrg# define LT_DLLAZY_OR_NOW DL_LAZY 96572313efbSmrg# else 96672313efbSmrg# ifdef RTLD_NOW 96772313efbSmrg# define LT_DLLAZY_OR_NOW RTLD_NOW 96872313efbSmrg# else 96972313efbSmrg# ifdef DL_NOW 97072313efbSmrg# define LT_DLLAZY_OR_NOW DL_NOW 97172313efbSmrg# else 97272313efbSmrg# define LT_DLLAZY_OR_NOW 0 97372313efbSmrg# endif 97472313efbSmrg# endif 97572313efbSmrg# endif 97672313efbSmrg# endif 97772313efbSmrg#endif 97872313efbSmrg 97996ce994aSmrg#ifdef __cplusplus 98096ce994aSmrgextern "C" void exit (int); 98196ce994aSmrg#endif 98296ce994aSmrg 98372313efbSmrgvoid fnord() { int i=42;} 98472313efbSmrgint main () 98572313efbSmrg{ 98672313efbSmrg void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 98772313efbSmrg int status = $lt_dlunknown; 98872313efbSmrg 98972313efbSmrg if (self) 99072313efbSmrg { 99172313efbSmrg if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 99272313efbSmrg else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 99372313efbSmrg /* dlclose (self); */ 99472313efbSmrg } 995bdcaa8d0Smrg else 99672313efbSmrg puts (dlerror ()); 99772313efbSmrg 99896ce994aSmrg exit (status); 99972313efbSmrg}] 100096ce994aSmrgEOF 100172313efbSmrg if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then 100272313efbSmrg (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null 100372313efbSmrg lt_status=$? 100472313efbSmrg case x$lt_status in 100572313efbSmrg x$lt_dlno_uscore) $1 ;; 100672313efbSmrg x$lt_dlneed_uscore) $2 ;; 100772313efbSmrg x$lt_dlunknown|x*) $3 ;; 100872313efbSmrg esac 100972313efbSmrg else : 101072313efbSmrg # compilation failed 101172313efbSmrg $3 1012bdcaa8d0Smrg fi 101372313efbSmrgfi 101472313efbSmrgrm -fr conftest* 101596ce994aSmrg])# _LT_AC_TRY_DLOPEN_SELF 1016bdcaa8d0Smrg 1017bdcaa8d0Smrg 101896ce994aSmrg# AC_LIBTOOL_DLOPEN_SELF 101996ce994aSmrg# ---------------------- 102096ce994aSmrgAC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], 102196ce994aSmrg[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl 102272313efbSmrgif test "x$enable_dlopen" != xyes; then 102372313efbSmrg enable_dlopen=unknown 102472313efbSmrg enable_dlopen_self=unknown 102572313efbSmrg enable_dlopen_self_static=unknown 102672313efbSmrgelse 102772313efbSmrg lt_cv_dlopen=no 102872313efbSmrg lt_cv_dlopen_libs= 1029bdcaa8d0Smrg 103072313efbSmrg case $host_os in 103172313efbSmrg beos*) 103272313efbSmrg lt_cv_dlopen="load_add_on" 103372313efbSmrg lt_cv_dlopen_libs= 103472313efbSmrg lt_cv_dlopen_self=yes 103572313efbSmrg ;; 1036bdcaa8d0Smrg 103796ce994aSmrg mingw* | pw32*) 103872313efbSmrg lt_cv_dlopen="LoadLibrary" 103972313efbSmrg lt_cv_dlopen_libs= 104096ce994aSmrg ;; 1041bdcaa8d0Smrg 104272313efbSmrg cygwin*) 104372313efbSmrg lt_cv_dlopen="dlopen" 104472313efbSmrg lt_cv_dlopen_libs= 104596ce994aSmrg ;; 1046bdcaa8d0Smrg 104772313efbSmrg darwin*) 104872313efbSmrg # if libdl is installed we need to link against it 104972313efbSmrg AC_CHECK_LIB([dl], [dlopen], 105072313efbSmrg [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[ 105172313efbSmrg lt_cv_dlopen="dyld" 105272313efbSmrg lt_cv_dlopen_libs= 105372313efbSmrg lt_cv_dlopen_self=yes 105472313efbSmrg ]) 105596ce994aSmrg ;; 1056bdcaa8d0Smrg 105772313efbSmrg *) 105872313efbSmrg AC_CHECK_FUNC([shl_load], 105972313efbSmrg [lt_cv_dlopen="shl_load"], 106072313efbSmrg [AC_CHECK_LIB([dld], [shl_load], 106172313efbSmrg [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"], 106272313efbSmrg [AC_CHECK_FUNC([dlopen], 106372313efbSmrg [lt_cv_dlopen="dlopen"], 106472313efbSmrg [AC_CHECK_LIB([dl], [dlopen], 106572313efbSmrg [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], 106672313efbSmrg [AC_CHECK_LIB([svld], [dlopen], 106772313efbSmrg [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], 106872313efbSmrg [AC_CHECK_LIB([dld], [dld_link], 106972313efbSmrg [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"]) 107072313efbSmrg ]) 107172313efbSmrg ]) 107272313efbSmrg ]) 107372313efbSmrg ]) 107472313efbSmrg ]) 107572313efbSmrg ;; 107672313efbSmrg esac 107772313efbSmrg 107872313efbSmrg if test "x$lt_cv_dlopen" != xno; then 107972313efbSmrg enable_dlopen=yes 1080bdcaa8d0Smrg else 108172313efbSmrg enable_dlopen=no 1082bdcaa8d0Smrg fi 1083bdcaa8d0Smrg 108472313efbSmrg case $lt_cv_dlopen in 108572313efbSmrg dlopen) 108672313efbSmrg save_CPPFLAGS="$CPPFLAGS" 108772313efbSmrg test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 1088bdcaa8d0Smrg 108972313efbSmrg save_LDFLAGS="$LDFLAGS" 109072313efbSmrg wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 1091bdcaa8d0Smrg 109272313efbSmrg save_LIBS="$LIBS" 109372313efbSmrg LIBS="$lt_cv_dlopen_libs $LIBS" 1094bdcaa8d0Smrg 109572313efbSmrg AC_CACHE_CHECK([whether a program can dlopen itself], 109672313efbSmrg lt_cv_dlopen_self, [dnl 109796ce994aSmrg _LT_AC_TRY_DLOPEN_SELF( 109872313efbSmrg lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, 109972313efbSmrg lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) 110072313efbSmrg ]) 1101bdcaa8d0Smrg 110272313efbSmrg if test "x$lt_cv_dlopen_self" = xyes; then 110372313efbSmrg wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 110472313efbSmrg AC_CACHE_CHECK([whether a statically linked program can dlopen itself], 110596ce994aSmrg lt_cv_dlopen_self_static, [dnl 110696ce994aSmrg _LT_AC_TRY_DLOPEN_SELF( 110772313efbSmrg lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, 110872313efbSmrg lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) 110972313efbSmrg ]) 1110bdcaa8d0Smrg fi 1111bdcaa8d0Smrg 111272313efbSmrg CPPFLAGS="$save_CPPFLAGS" 111372313efbSmrg LDFLAGS="$save_LDFLAGS" 111472313efbSmrg LIBS="$save_LIBS" 111572313efbSmrg ;; 111672313efbSmrg esac 1117bdcaa8d0Smrg 111872313efbSmrg case $lt_cv_dlopen_self in 111972313efbSmrg yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 112072313efbSmrg *) enable_dlopen_self=unknown ;; 112172313efbSmrg esac 1122bdcaa8d0Smrg 112372313efbSmrg case $lt_cv_dlopen_self_static in 112472313efbSmrg yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 112572313efbSmrg *) enable_dlopen_self_static=unknown ;; 112672313efbSmrg esac 1127bdcaa8d0Smrgfi 112896ce994aSmrg])# AC_LIBTOOL_DLOPEN_SELF 1129bdcaa8d0Smrg 1130bdcaa8d0Smrg 113196ce994aSmrg# AC_LIBTOOL_PROG_CC_C_O([TAGNAME]) 113296ce994aSmrg# --------------------------------- 113396ce994aSmrg# Check to see if options -c and -o are simultaneously supported by compiler 113496ce994aSmrgAC_DEFUN([AC_LIBTOOL_PROG_CC_C_O], 113596ce994aSmrg[AC_REQUIRE([LT_AC_PROG_SED])dnl 113696ce994aSmrgAC_REQUIRE([_LT_AC_SYS_COMPILER])dnl 113772313efbSmrgAC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], 113896ce994aSmrg [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)], 113996ce994aSmrg [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no 114096ce994aSmrg $rm -r conftest 2>/dev/null 114172313efbSmrg mkdir conftest 114272313efbSmrg cd conftest 114372313efbSmrg mkdir out 114472313efbSmrg echo "$lt_simple_compile_test_code" > conftest.$ac_ext 1145bdcaa8d0Smrg 114672313efbSmrg lt_compiler_flag="-o out/conftest2.$ac_objext" 114772313efbSmrg # Insert the option either (1) after the last *FLAGS variable, or 114872313efbSmrg # (2) before a word containing "conftest.", or (3) at the end. 114972313efbSmrg # Note that $ac_compile itself does not contain backslashes and begins 115072313efbSmrg # with a dollar sign (not a hyphen), so the echo should work correctly. 115172313efbSmrg lt_compile=`echo "$ac_compile" | $SED \ 115272313efbSmrg -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 115372313efbSmrg -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ 115472313efbSmrg -e 's:$: $lt_compiler_flag:'` 115572313efbSmrg (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) 115672313efbSmrg (eval "$lt_compile" 2>out/conftest.err) 115772313efbSmrg ac_status=$? 115872313efbSmrg cat out/conftest.err >&AS_MESSAGE_LOG_FD 115972313efbSmrg echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD 116072313efbSmrg if (exit $ac_status) && test -s out/conftest2.$ac_objext 116172313efbSmrg then 116272313efbSmrg # The compiler can only warn and ignore the option if not recognized 116372313efbSmrg # So say no if there are warnings 116496ce994aSmrg $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 116572313efbSmrg $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 116672313efbSmrg if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 116796ce994aSmrg _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes 116872313efbSmrg fi 116972313efbSmrg fi 117072313efbSmrg chmod u+w . 2>&AS_MESSAGE_LOG_FD 117196ce994aSmrg $rm conftest* 117272313efbSmrg # SGI C++ compiler will create directory out/ii_files/ for 117372313efbSmrg # template instantiation 117496ce994aSmrg test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 117596ce994aSmrg $rm out/* && rmdir out 117672313efbSmrg cd .. 117796ce994aSmrg rmdir conftest 117896ce994aSmrg $rm conftest* 117972313efbSmrg]) 118096ce994aSmrg])# AC_LIBTOOL_PROG_CC_C_O 1181bdcaa8d0Smrg 1182bdcaa8d0Smrg 118396ce994aSmrg# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME]) 118496ce994aSmrg# ----------------------------------------- 118572313efbSmrg# Check to see if we can do hard links to lock some files if needed 118696ce994aSmrgAC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], 118796ce994aSmrg[AC_REQUIRE([_LT_AC_LOCK])dnl 1188bdcaa8d0Smrg 118972313efbSmrghard_links="nottested" 119096ce994aSmrgif test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then 119172313efbSmrg # do not overwrite the value of need_locks provided by the user 119272313efbSmrg AC_MSG_CHECKING([if we can lock with hard links]) 119372313efbSmrg hard_links=yes 119496ce994aSmrg $rm conftest* 119572313efbSmrg ln conftest.a conftest.b 2>/dev/null && hard_links=no 119672313efbSmrg touch conftest.a 119772313efbSmrg ln conftest.a conftest.b 2>&5 || hard_links=no 119872313efbSmrg ln conftest.a conftest.b 2>/dev/null && hard_links=no 119972313efbSmrg AC_MSG_RESULT([$hard_links]) 120072313efbSmrg if test "$hard_links" = no; then 120172313efbSmrg AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe]) 120272313efbSmrg need_locks=warn 120372313efbSmrg fi 120472313efbSmrgelse 120572313efbSmrg need_locks=no 120672313efbSmrgfi 120796ce994aSmrg])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS 1208bdcaa8d0Smrg 1209bdcaa8d0Smrg 121096ce994aSmrg# AC_LIBTOOL_OBJDIR 121196ce994aSmrg# ----------------- 121296ce994aSmrgAC_DEFUN([AC_LIBTOOL_OBJDIR], 121372313efbSmrg[AC_CACHE_CHECK([for objdir], [lt_cv_objdir], 121472313efbSmrg[rm -f .libs 2>/dev/null 121572313efbSmrgmkdir .libs 2>/dev/null 121672313efbSmrgif test -d .libs; then 121772313efbSmrg lt_cv_objdir=.libs 121872313efbSmrgelse 121972313efbSmrg # MS-DOS does not allow filenames that begin with a dot. 122072313efbSmrg lt_cv_objdir=_libs 122172313efbSmrgfi 122272313efbSmrgrmdir .libs 2>/dev/null]) 122372313efbSmrgobjdir=$lt_cv_objdir 122496ce994aSmrg])# AC_LIBTOOL_OBJDIR 1225bdcaa8d0Smrg 1226bdcaa8d0Smrg 122796ce994aSmrg# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME]) 122896ce994aSmrg# ---------------------------------------------- 122972313efbSmrg# Check hardcoding attributes. 123096ce994aSmrgAC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], 123172313efbSmrg[AC_MSG_CHECKING([how to hardcode library paths into programs]) 123296ce994aSmrg_LT_AC_TAGVAR(hardcode_action, $1)= 123396ce994aSmrgif test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \ 123496ce994aSmrg test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \ 123596ce994aSmrg test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then 1236bdcaa8d0Smrg 123796ce994aSmrg # We can hardcode non-existant directories. 123896ce994aSmrg if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no && 123972313efbSmrg # If the only mechanism to avoid hardcoding is shlibpath_var, we 124072313efbSmrg # have to relink, otherwise we might link with an installed library 124172313efbSmrg # when we should be linking with a yet-to-be-installed one 124296ce994aSmrg ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no && 124396ce994aSmrg test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then 124472313efbSmrg # Linking always hardcodes the temporary library directory. 124596ce994aSmrg _LT_AC_TAGVAR(hardcode_action, $1)=relink 124672313efbSmrg else 124772313efbSmrg # We can link without hardcoding, and we can hardcode nonexisting dirs. 124896ce994aSmrg _LT_AC_TAGVAR(hardcode_action, $1)=immediate 124972313efbSmrg fi 125072313efbSmrgelse 125172313efbSmrg # We cannot hardcode anything, or else we can only hardcode existing 125272313efbSmrg # directories. 125396ce994aSmrg _LT_AC_TAGVAR(hardcode_action, $1)=unsupported 125472313efbSmrgfi 125596ce994aSmrgAC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)]) 1256bdcaa8d0Smrg 125796ce994aSmrgif test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then 125872313efbSmrg # Fast installation is not supported 125972313efbSmrg enable_fast_install=no 126072313efbSmrgelif test "$shlibpath_overrides_runpath" = yes || 126172313efbSmrg test "$enable_shared" = no; then 126272313efbSmrg # Fast installation is not necessary 126372313efbSmrg enable_fast_install=needless 126472313efbSmrgfi 126596ce994aSmrg])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH 1266bdcaa8d0Smrg 1267bdcaa8d0Smrg 126896ce994aSmrg# AC_LIBTOOL_SYS_LIB_STRIP 126996ce994aSmrg# ------------------------ 127096ce994aSmrgAC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP], 127196ce994aSmrg[striplib= 127272313efbSmrgold_striplib= 127372313efbSmrgAC_MSG_CHECKING([whether stripping libraries is possible]) 127496ce994aSmrgif test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 127572313efbSmrg test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 127672313efbSmrg test -z "$striplib" && striplib="$STRIP --strip-unneeded" 127772313efbSmrg AC_MSG_RESULT([yes]) 127872313efbSmrgelse 127972313efbSmrg# FIXME - insert some real tests, host_os isn't really good enough 128072313efbSmrg case $host_os in 128196ce994aSmrg darwin*) 128296ce994aSmrg if test -n "$STRIP" ; then 128396ce994aSmrg striplib="$STRIP -x" 128496ce994aSmrg old_striplib="$STRIP -S" 128596ce994aSmrg AC_MSG_RESULT([yes]) 128696ce994aSmrg else 128796ce994aSmrg AC_MSG_RESULT([no]) 128896ce994aSmrgfi 128996ce994aSmrg ;; 129096ce994aSmrg *) 129196ce994aSmrg AC_MSG_RESULT([no]) 129272313efbSmrg ;; 129372313efbSmrg esac 129472313efbSmrgfi 129596ce994aSmrg])# AC_LIBTOOL_SYS_LIB_STRIP 1296bdcaa8d0Smrg 1297bdcaa8d0Smrg 129896ce994aSmrg# AC_LIBTOOL_SYS_DYNAMIC_LINKER 129972313efbSmrg# ----------------------------- 130072313efbSmrg# PORTME Fill in your ld.so characteristics 130196ce994aSmrgAC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER], 130296ce994aSmrg[AC_REQUIRE([LT_AC_PROG_SED])dnl 130372313efbSmrgAC_MSG_CHECKING([dynamic linker characteristics]) 130496ce994aSmrglibrary_names_spec= 130596ce994aSmrglibname_spec='lib$name' 130696ce994aSmrgsoname_spec= 130796ce994aSmrgshrext_cmds=".so" 130896ce994aSmrgpostinstall_cmds= 130996ce994aSmrgpostuninstall_cmds= 131096ce994aSmrgfinish_cmds= 131196ce994aSmrgfinish_eval= 131296ce994aSmrgshlibpath_var= 131396ce994aSmrgshlibpath_overrides_runpath=unknown 131496ce994aSmrgversion_type=none 131596ce994aSmrgdynamic_linker="$host_os ld.so" 131696ce994aSmrgsys_lib_dlsearch_path_spec="/lib /usr/lib" 131796ce994aSmrgm4_if($1,[],[ 131872313efbSmrgif test "$GCC" = yes; then 131972313efbSmrg case $host_os in 132072313efbSmrg darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 132172313efbSmrg *) lt_awk_arg="/^libraries:/" ;; 132272313efbSmrg esac 132372313efbSmrg lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 132496ce994aSmrg if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then 132572313efbSmrg # if the path contains ";" then we assume it to be the separator 132672313efbSmrg # otherwise default to the standard path separator (i.e. ":") - it is 132772313efbSmrg # assumed that no part of a normal pathname contains ";" but that should 132872313efbSmrg # okay in the real world where ";" in dirpaths is itself problematic. 132996ce994aSmrg lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'` 133072313efbSmrg else 133196ce994aSmrg lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 133272313efbSmrg fi 133372313efbSmrg # Ok, now we have the path, separated by spaces, we can step through it 133472313efbSmrg # and add multilib dir if necessary. 133572313efbSmrg lt_tmp_lt_search_path_spec= 133672313efbSmrg lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 133772313efbSmrg for lt_sys_path in $lt_search_path_spec; do 133872313efbSmrg if test -d "$lt_sys_path/$lt_multi_os_dir"; then 133972313efbSmrg lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 134072313efbSmrg else 134172313efbSmrg test -d "$lt_sys_path" && \ 134272313efbSmrg lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 1343bdcaa8d0Smrg fi 1344bdcaa8d0Smrg done 134596ce994aSmrg lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk ' 134672313efbSmrgBEGIN {RS=" "; FS="/|\n";} { 134772313efbSmrg lt_foo=""; 134872313efbSmrg lt_count=0; 134972313efbSmrg for (lt_i = NF; lt_i > 0; lt_i--) { 135072313efbSmrg if ($lt_i != "" && $lt_i != ".") { 135172313efbSmrg if ($lt_i == "..") { 135272313efbSmrg lt_count++; 135372313efbSmrg } else { 135472313efbSmrg if (lt_count == 0) { 135572313efbSmrg lt_foo="/" $lt_i lt_foo; 135672313efbSmrg } else { 135772313efbSmrg lt_count--; 135872313efbSmrg } 135972313efbSmrg } 136072313efbSmrg } 136172313efbSmrg } 136272313efbSmrg if (lt_foo != "") { lt_freq[[lt_foo]]++; } 136372313efbSmrg if (lt_freq[[lt_foo]] == 1) { print lt_foo; } 136472313efbSmrg}'` 136596ce994aSmrg sys_lib_search_path_spec=`echo $lt_search_path_spec` 1366bdcaa8d0Smrgelse 136772313efbSmrg sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 136872313efbSmrgfi]) 136972313efbSmrgneed_lib_prefix=unknown 137072313efbSmrghardcode_into_libs=no 1371bdcaa8d0Smrg 137272313efbSmrg# when you set need_version to no, make sure it does not cause -set_version 137372313efbSmrg# flags to be left without arguments 137472313efbSmrgneed_version=unknown 1375bdcaa8d0Smrg 137672313efbSmrgcase $host_os in 137772313efbSmrgaix3*) 137872313efbSmrg version_type=linux 137972313efbSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 138072313efbSmrg shlibpath_var=LIBPATH 1381bdcaa8d0Smrg 138272313efbSmrg # AIX 3 has no versioning support, so we append a major version to the name. 138372313efbSmrg soname_spec='${libname}${release}${shared_ext}$major' 138472313efbSmrg ;; 1385bdcaa8d0Smrg 138672313efbSmrgaix[[4-9]]*) 138772313efbSmrg version_type=linux 138872313efbSmrg need_lib_prefix=no 138972313efbSmrg need_version=no 139072313efbSmrg hardcode_into_libs=yes 139172313efbSmrg if test "$host_cpu" = ia64; then 139272313efbSmrg # AIX 5 supports IA64 139372313efbSmrg library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 139472313efbSmrg shlibpath_var=LD_LIBRARY_PATH 139572313efbSmrg else 139672313efbSmrg # With GCC up to 2.95.x, collect2 would create an import file 139772313efbSmrg # for dependence libraries. The import file would start with 139872313efbSmrg # the line `#! .'. This would cause the generated library to 139972313efbSmrg # depend on `.', always an invalid library. This was fixed in 140072313efbSmrg # development snapshots of GCC prior to 3.0. 140172313efbSmrg case $host_os in 140272313efbSmrg aix4 | aix4.[[01]] | aix4.[[01]].*) 140372313efbSmrg if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 140472313efbSmrg echo ' yes ' 140596ce994aSmrg echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 140672313efbSmrg : 140772313efbSmrg else 140872313efbSmrg can_build_shared=no 140972313efbSmrg fi 1410bdcaa8d0Smrg ;; 141172313efbSmrg esac 141272313efbSmrg # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 141372313efbSmrg # soname into executable. Probably we can add versioning support to 141472313efbSmrg # collect2, so additional links can be useful in future. 141572313efbSmrg if test "$aix_use_runtimelinking" = yes; then 141672313efbSmrg # If using run time linking (on AIX 4.2 or later) use lib<name>.so 141772313efbSmrg # instead of lib<name>.a to let people know that these are not 141872313efbSmrg # typical AIX shared libraries. 141972313efbSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 142072313efbSmrg else 142172313efbSmrg # We preserve .a as extension for shared libraries through AIX4.2 142272313efbSmrg # and later when we are not doing run time linking. 142372313efbSmrg library_names_spec='${libname}${release}.a $libname.a' 142472313efbSmrg soname_spec='${libname}${release}${shared_ext}$major' 1425bdcaa8d0Smrg fi 142672313efbSmrg shlibpath_var=LIBPATH 142772313efbSmrg fi 1428bdcaa8d0Smrg ;; 1429bdcaa8d0Smrg 143072313efbSmrgamigaos*) 143196ce994aSmrg library_names_spec='$libname.ixlibrary $libname.a' 143296ce994aSmrg # Create ${libname}_ixlibrary.a entries in /sys/libs. 143396ce994aSmrg 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' 1434bdcaa8d0Smrg ;; 1435bdcaa8d0Smrg 1436bdcaa8d0Smrgbeos*) 143772313efbSmrg library_names_spec='${libname}${shared_ext}' 143872313efbSmrg dynamic_linker="$host_os ld.so" 143972313efbSmrg shlibpath_var=LIBRARY_PATH 1440bdcaa8d0Smrg ;; 1441bdcaa8d0Smrg 1442bdcaa8d0Smrgbsdi[[45]]*) 144372313efbSmrg version_type=linux 144472313efbSmrg need_version=no 144572313efbSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 144672313efbSmrg soname_spec='${libname}${release}${shared_ext}$major' 144772313efbSmrg finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 144872313efbSmrg shlibpath_var=LD_LIBRARY_PATH 144972313efbSmrg sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 145072313efbSmrg sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 145172313efbSmrg # the default ld.so.conf also contains /usr/contrib/lib and 145272313efbSmrg # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 145372313efbSmrg # libtool to hard-code these into programs 1454bdcaa8d0Smrg ;; 1455bdcaa8d0Smrg 145696ce994aSmrgcygwin* | mingw* | pw32*) 145772313efbSmrg version_type=windows 145872313efbSmrg shrext_cmds=".dll" 145972313efbSmrg need_version=no 146072313efbSmrg need_lib_prefix=no 1461bdcaa8d0Smrg 146272313efbSmrg case $GCC,$host_os in 146396ce994aSmrg yes,cygwin* | yes,mingw* | yes,pw32*) 146472313efbSmrg library_names_spec='$libname.dll.a' 146572313efbSmrg # DLL is installed to $(libdir)/../bin by postinstall_cmds 146672313efbSmrg postinstall_cmds='base_file=`basename \${file}`~ 146796ce994aSmrg dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 146872313efbSmrg dldir=$destdir/`dirname \$dlpath`~ 146972313efbSmrg test -d \$dldir || mkdir -p \$dldir~ 147072313efbSmrg $install_prog $dir/$dlname \$dldir/$dlname~ 147196ce994aSmrg chmod a+x \$dldir/$dlname' 147272313efbSmrg postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 147372313efbSmrg dlpath=$dir/\$dldll~ 147496ce994aSmrg $rm \$dlpath' 147572313efbSmrg shlibpath_overrides_runpath=yes 1476bdcaa8d0Smrg 147772313efbSmrg case $host_os in 147872313efbSmrg cygwin*) 147972313efbSmrg # Cygwin DLLs use 'cyg' prefix rather than 'lib' 148072313efbSmrg soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 148172313efbSmrg sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 148272313efbSmrg ;; 148396ce994aSmrg mingw*) 148472313efbSmrg # MinGW DLLs use traditional 'lib' prefix 148572313efbSmrg soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 148696ce994aSmrg sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 148796ce994aSmrg if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then 148872313efbSmrg # It is most probably a Windows format PATH printed by 148972313efbSmrg # mingw gcc, but we are running on Cygwin. Gcc prints its search 149072313efbSmrg # path with ; separators, and with drive letters. We can handle the 149172313efbSmrg # drive letters (cygwin fileutils understands them), so leave them, 149272313efbSmrg # especially as we might pass files found there to a mingw objdump, 149372313efbSmrg # which wouldn't understand a cygwinified path. Ahh. 149496ce994aSmrg sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 149572313efbSmrg else 149696ce994aSmrg sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 149772313efbSmrg fi 149872313efbSmrg ;; 149972313efbSmrg pw32*) 150072313efbSmrg # pw32 DLLs use 'pw' prefix rather than 'lib' 150172313efbSmrg library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 1502bdcaa8d0Smrg ;; 1503bdcaa8d0Smrg esac 1504bdcaa8d0Smrg ;; 150572313efbSmrg 1506bdcaa8d0Smrg *) 150772313efbSmrg library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib' 1508bdcaa8d0Smrg ;; 1509bdcaa8d0Smrg esac 151072313efbSmrg dynamic_linker='Win32 ld.exe' 151172313efbSmrg # FIXME: first we should search . and the directory the executable is in 151272313efbSmrg shlibpath_var=PATH 1513bdcaa8d0Smrg ;; 1514bdcaa8d0Smrg 151572313efbSmrgdarwin* | rhapsody*) 151672313efbSmrg dynamic_linker="$host_os dyld" 151772313efbSmrg version_type=darwin 151872313efbSmrg need_lib_prefix=no 151972313efbSmrg need_version=no 152096ce994aSmrg library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 152172313efbSmrg soname_spec='${libname}${release}${major}$shared_ext' 152272313efbSmrg shlibpath_overrides_runpath=yes 152372313efbSmrg shlibpath_var=DYLD_LIBRARY_PATH 152472313efbSmrg shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 152596ce994aSmrg m4_if([$1], [],[ 152696ce994aSmrg sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) 152772313efbSmrg sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 1528bdcaa8d0Smrg ;; 1529bdcaa8d0Smrg 153072313efbSmrgdgux*) 153172313efbSmrg version_type=linux 153272313efbSmrg need_lib_prefix=no 153372313efbSmrg need_version=no 153472313efbSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 153572313efbSmrg soname_spec='${libname}${release}${shared_ext}$major' 153672313efbSmrg shlibpath_var=LD_LIBRARY_PATH 1537bdcaa8d0Smrg ;; 1538bdcaa8d0Smrg 153972313efbSmrgfreebsd1*) 154072313efbSmrg dynamic_linker=no 1541bdcaa8d0Smrg ;; 1542bdcaa8d0Smrg 154372313efbSmrgfreebsd* | dragonfly*) 154472313efbSmrg # DragonFly does not have aout. When/if they implement a new 154572313efbSmrg # versioning mechanism, adjust this. 154672313efbSmrg if test -x /usr/bin/objformat; then 154772313efbSmrg objformat=`/usr/bin/objformat` 1548bdcaa8d0Smrg else 154972313efbSmrg case $host_os in 155072313efbSmrg freebsd[[123]]*) objformat=aout ;; 155172313efbSmrg *) objformat=elf ;; 155272313efbSmrg esac 1553bdcaa8d0Smrg fi 155472313efbSmrg version_type=freebsd-$objformat 155572313efbSmrg case $version_type in 155672313efbSmrg freebsd-elf*) 155772313efbSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 155872313efbSmrg need_version=no 155972313efbSmrg need_lib_prefix=no 156072313efbSmrg ;; 156172313efbSmrg freebsd-*) 156272313efbSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 156372313efbSmrg need_version=yes 156472313efbSmrg ;; 156572313efbSmrg esac 156672313efbSmrg shlibpath_var=LD_LIBRARY_PATH 156772313efbSmrg case $host_os in 156872313efbSmrg freebsd2*) 156972313efbSmrg shlibpath_overrides_runpath=yes 157072313efbSmrg ;; 157172313efbSmrg freebsd3.[[01]]* | freebsdelf3.[[01]]*) 157272313efbSmrg shlibpath_overrides_runpath=yes 157372313efbSmrg hardcode_into_libs=yes 157472313efbSmrg ;; 157572313efbSmrg freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ 157672313efbSmrg freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) 157772313efbSmrg shlibpath_overrides_runpath=no 157872313efbSmrg hardcode_into_libs=yes 157972313efbSmrg ;; 158072313efbSmrg *) # from 4.6 on, and DragonFly 158172313efbSmrg shlibpath_overrides_runpath=yes 158272313efbSmrg hardcode_into_libs=yes 158372313efbSmrg ;; 158472313efbSmrg esac 1585bdcaa8d0Smrg ;; 1586bdcaa8d0Smrg 158772313efbSmrggnu*) 158872313efbSmrg version_type=linux 158972313efbSmrg need_lib_prefix=no 159072313efbSmrg need_version=no 159172313efbSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 159272313efbSmrg soname_spec='${libname}${release}${shared_ext}$major' 159372313efbSmrg shlibpath_var=LD_LIBRARY_PATH 159472313efbSmrg hardcode_into_libs=yes 1595bdcaa8d0Smrg ;; 1596bdcaa8d0Smrg 159772313efbSmrghpux9* | hpux10* | hpux11*) 159872313efbSmrg # Give a soname corresponding to the major version so that dld.sl refuses to 159972313efbSmrg # link against other versions. 160072313efbSmrg version_type=sunos 160172313efbSmrg need_lib_prefix=no 160272313efbSmrg need_version=no 160372313efbSmrg case $host_cpu in 160472313efbSmrg ia64*) 160572313efbSmrg shrext_cmds='.so' 160672313efbSmrg hardcode_into_libs=yes 160772313efbSmrg dynamic_linker="$host_os dld.so" 160872313efbSmrg shlibpath_var=LD_LIBRARY_PATH 160972313efbSmrg shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 161072313efbSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 161172313efbSmrg soname_spec='${libname}${release}${shared_ext}$major' 161272313efbSmrg if test "X$HPUX_IA64_MODE" = X32; then 161372313efbSmrg sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 161472313efbSmrg else 161572313efbSmrg sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 161672313efbSmrg fi 161772313efbSmrg sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 1618bdcaa8d0Smrg ;; 161996ce994aSmrg hppa*64*) 162096ce994aSmrg shrext_cmds='.sl' 162196ce994aSmrg hardcode_into_libs=yes 162296ce994aSmrg dynamic_linker="$host_os dld.sl" 162396ce994aSmrg shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 162496ce994aSmrg shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 162596ce994aSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 162696ce994aSmrg soname_spec='${libname}${release}${shared_ext}$major' 162796ce994aSmrg sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 162896ce994aSmrg sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 162996ce994aSmrg ;; 163096ce994aSmrg *) 163172313efbSmrg shrext_cmds='.sl' 163272313efbSmrg dynamic_linker="$host_os dld.sl" 163372313efbSmrg shlibpath_var=SHLIB_PATH 163472313efbSmrg shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 163572313efbSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 163672313efbSmrg soname_spec='${libname}${release}${shared_ext}$major' 1637bdcaa8d0Smrg ;; 163872313efbSmrg esac 163972313efbSmrg # HP-UX runs *really* slowly unless shared libraries are mode 555. 164072313efbSmrg postinstall_cmds='chmod 555 $lib' 164172313efbSmrg ;; 164272313efbSmrg 164372313efbSmrginterix[[3-9]]*) 164472313efbSmrg version_type=linux 164572313efbSmrg need_lib_prefix=no 164672313efbSmrg need_version=no 164772313efbSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 164872313efbSmrg soname_spec='${libname}${release}${shared_ext}$major' 164972313efbSmrg dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 165072313efbSmrg shlibpath_var=LD_LIBRARY_PATH 165172313efbSmrg shlibpath_overrides_runpath=no 165272313efbSmrg hardcode_into_libs=yes 165372313efbSmrg ;; 165472313efbSmrg 165572313efbSmrgirix5* | irix6* | nonstopux*) 165672313efbSmrg case $host_os in 165772313efbSmrg nonstopux*) version_type=nonstopux ;; 165872313efbSmrg *) 165972313efbSmrg if test "$lt_cv_prog_gnu_ld" = yes; then 166072313efbSmrg version_type=linux 166172313efbSmrg else 166272313efbSmrg version_type=irix 166372313efbSmrg fi ;; 166472313efbSmrg esac 166572313efbSmrg need_lib_prefix=no 166672313efbSmrg need_version=no 166772313efbSmrg soname_spec='${libname}${release}${shared_ext}$major' 166872313efbSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 166972313efbSmrg case $host_os in 167072313efbSmrg irix5* | nonstopux*) 167172313efbSmrg libsuff= shlibsuff= 1672bdcaa8d0Smrg ;; 167372313efbSmrg *) 167472313efbSmrg case $LD in # libtool.m4 will add one of these switches to LD 167572313efbSmrg *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 167672313efbSmrg libsuff= shlibsuff= libmagic=32-bit;; 167772313efbSmrg *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 167872313efbSmrg libsuff=32 shlibsuff=N32 libmagic=N32;; 167972313efbSmrg *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 168072313efbSmrg libsuff=64 shlibsuff=64 libmagic=64-bit;; 168172313efbSmrg *) libsuff= shlibsuff= libmagic=never-match;; 168272313efbSmrg esac 1683bdcaa8d0Smrg ;; 1684bdcaa8d0Smrg esac 168572313efbSmrg shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 168672313efbSmrg shlibpath_overrides_runpath=no 168772313efbSmrg sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 168872313efbSmrg sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 168972313efbSmrg hardcode_into_libs=yes 1690bdcaa8d0Smrg ;; 1691bdcaa8d0Smrg 169272313efbSmrg# No shared lib support for Linux oldld, aout, or coff. 169372313efbSmrglinux*oldld* | linux*aout* | linux*coff*) 169472313efbSmrg dynamic_linker=no 1695bdcaa8d0Smrg ;; 1696bdcaa8d0Smrg 169772313efbSmrg# This must be Linux ELF. 169872313efbSmrglinux* | k*bsd*-gnu) 169972313efbSmrg version_type=linux 170072313efbSmrg need_lib_prefix=no 170172313efbSmrg need_version=no 170272313efbSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 170372313efbSmrg soname_spec='${libname}${release}${shared_ext}$major' 170472313efbSmrg finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 170572313efbSmrg shlibpath_var=LD_LIBRARY_PATH 170672313efbSmrg shlibpath_overrides_runpath=no 170772313efbSmrg # This implies no fast_install, which is unacceptable. 170872313efbSmrg # Some rework will be needed to allow for fast_install 170972313efbSmrg # before this can be enabled. 171072313efbSmrg hardcode_into_libs=yes 171196ce994aSmrg sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 171296ce994aSmrg sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 171366c2ea32Smrg 171472313efbSmrg # Append ld.so.conf contents to the search path 171572313efbSmrg if test -f /etc/ld.so.conf; then 171696ce994aSmrg 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' ' '` 171766c2ea32Smrg sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 1718bdcaa8d0Smrg fi 1719bdcaa8d0Smrg 172072313efbSmrg # We used to test for /lib/ld.so.1 and disable shared libraries on 172172313efbSmrg # powerpc, because MkLinux only supported shared libraries with the 172272313efbSmrg # GNU dynamic linker. Since this was broken with cross compilers, 172372313efbSmrg # most powerpc-linux boxes support dynamic linking these days and 172472313efbSmrg # people can always --disable-shared, the test was removed, and we 172572313efbSmrg # assume the GNU/Linux dynamic linker is in use. 172672313efbSmrg dynamic_linker='GNU/Linux ld.so' 1727bdcaa8d0Smrg ;; 172872313efbSmrg 172972313efbSmrgnetbsd*) 173072313efbSmrg version_type=sunos 173172313efbSmrg need_lib_prefix=no 173272313efbSmrg need_version=no 173396ce994aSmrg if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 173472313efbSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 173572313efbSmrg finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 173672313efbSmrg dynamic_linker='NetBSD (a.out) ld.so' 173772313efbSmrg else 173872313efbSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 173972313efbSmrg soname_spec='${libname}${release}${shared_ext}$major' 174072313efbSmrg dynamic_linker='NetBSD ld.elf_so' 174172313efbSmrg fi 174272313efbSmrg shlibpath_var=LD_LIBRARY_PATH 174372313efbSmrg shlibpath_overrides_runpath=yes 174472313efbSmrg hardcode_into_libs=yes 1745bdcaa8d0Smrg ;; 174672313efbSmrg 174772313efbSmrgnewsos6) 174872313efbSmrg version_type=linux 174972313efbSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 175072313efbSmrg shlibpath_var=LD_LIBRARY_PATH 175172313efbSmrg shlibpath_overrides_runpath=yes 1752bdcaa8d0Smrg ;; 1753bdcaa8d0Smrg 175496ce994aSmrgnto-qnx*) 175596ce994aSmrg version_type=linux 175672313efbSmrg need_lib_prefix=no 175772313efbSmrg need_version=no 175872313efbSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 175972313efbSmrg soname_spec='${libname}${release}${shared_ext}$major' 176072313efbSmrg shlibpath_var=LD_LIBRARY_PATH 176196ce994aSmrg shlibpath_overrides_runpath=yes 176272313efbSmrg ;; 1763bdcaa8d0Smrg 176472313efbSmrgopenbsd*) 176572313efbSmrg version_type=sunos 176672313efbSmrg sys_lib_dlsearch_path_spec="/usr/lib" 176772313efbSmrg need_lib_prefix=no 176872313efbSmrg # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 176972313efbSmrg case $host_os in 177096ce994aSmrg openbsd3.3 | openbsd3.3.*) need_version=yes ;; 177196ce994aSmrg *) need_version=no ;; 1772bdcaa8d0Smrg esac 177372313efbSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 177472313efbSmrg finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 177572313efbSmrg shlibpath_var=LD_LIBRARY_PATH 177696ce994aSmrg if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 177772313efbSmrg case $host_os in 177872313efbSmrg openbsd2.[[89]] | openbsd2.[[89]].*) 177972313efbSmrg shlibpath_overrides_runpath=no 178072313efbSmrg ;; 178172313efbSmrg *) 178272313efbSmrg shlibpath_overrides_runpath=yes 178372313efbSmrg ;; 178472313efbSmrg esac 1785bdcaa8d0Smrg else 178672313efbSmrg shlibpath_overrides_runpath=yes 1787bdcaa8d0Smrg fi 178872313efbSmrg ;; 1789bdcaa8d0Smrg 179072313efbSmrgos2*) 179172313efbSmrg libname_spec='$name' 179272313efbSmrg shrext_cmds=".dll" 179372313efbSmrg need_lib_prefix=no 179472313efbSmrg library_names_spec='$libname${shared_ext} $libname.a' 179572313efbSmrg dynamic_linker='OS/2 ld.exe' 179672313efbSmrg shlibpath_var=LIBPATH 179772313efbSmrg ;; 1798bdcaa8d0Smrg 179972313efbSmrgosf3* | osf4* | osf5*) 180072313efbSmrg version_type=osf 180172313efbSmrg need_lib_prefix=no 180272313efbSmrg need_version=no 180372313efbSmrg soname_spec='${libname}${release}${shared_ext}$major' 180472313efbSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 180572313efbSmrg shlibpath_var=LD_LIBRARY_PATH 180672313efbSmrg sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 180772313efbSmrg sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 180872313efbSmrg ;; 1809bdcaa8d0Smrg 181072313efbSmrgrdos*) 181172313efbSmrg dynamic_linker=no 181272313efbSmrg ;; 1813bdcaa8d0Smrg 181472313efbSmrgsolaris*) 181572313efbSmrg version_type=linux 181672313efbSmrg need_lib_prefix=no 181772313efbSmrg need_version=no 181872313efbSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 181972313efbSmrg soname_spec='${libname}${release}${shared_ext}$major' 182072313efbSmrg shlibpath_var=LD_LIBRARY_PATH 182172313efbSmrg shlibpath_overrides_runpath=yes 182272313efbSmrg hardcode_into_libs=yes 182372313efbSmrg # ldd complains unless libraries are executable 182472313efbSmrg postinstall_cmds='chmod +x $lib' 182572313efbSmrg ;; 1826bdcaa8d0Smrg 182772313efbSmrgsunos4*) 182872313efbSmrg version_type=sunos 182972313efbSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 183072313efbSmrg finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 183172313efbSmrg shlibpath_var=LD_LIBRARY_PATH 183272313efbSmrg shlibpath_overrides_runpath=yes 183372313efbSmrg if test "$with_gnu_ld" = yes; then 183472313efbSmrg need_lib_prefix=no 183572313efbSmrg fi 183672313efbSmrg need_version=yes 183772313efbSmrg ;; 1838bdcaa8d0Smrg 183972313efbSmrgsysv4 | sysv4.3*) 184072313efbSmrg version_type=linux 184172313efbSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 184272313efbSmrg soname_spec='${libname}${release}${shared_ext}$major' 184372313efbSmrg shlibpath_var=LD_LIBRARY_PATH 184472313efbSmrg case $host_vendor in 184572313efbSmrg sni) 184672313efbSmrg shlibpath_overrides_runpath=no 184772313efbSmrg need_lib_prefix=no 184896ce994aSmrg export_dynamic_flag_spec='${wl}-Blargedynsym' 184972313efbSmrg runpath_var=LD_RUN_PATH 185072313efbSmrg ;; 185172313efbSmrg siemens) 185272313efbSmrg need_lib_prefix=no 185372313efbSmrg ;; 185472313efbSmrg motorola) 185572313efbSmrg need_lib_prefix=no 185672313efbSmrg need_version=no 185772313efbSmrg shlibpath_overrides_runpath=no 185872313efbSmrg sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 185972313efbSmrg ;; 186072313efbSmrg esac 186172313efbSmrg ;; 1862bdcaa8d0Smrg 186372313efbSmrgsysv4*MP*) 186472313efbSmrg if test -d /usr/nec ;then 186572313efbSmrg version_type=linux 186672313efbSmrg library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 186772313efbSmrg soname_spec='$libname${shared_ext}.$major' 186872313efbSmrg shlibpath_var=LD_LIBRARY_PATH 1869bdcaa8d0Smrg fi 1870bdcaa8d0Smrg ;; 1871bdcaa8d0Smrg 187272313efbSmrgsysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 187372313efbSmrg version_type=freebsd-elf 187472313efbSmrg need_lib_prefix=no 187572313efbSmrg need_version=no 187672313efbSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 187772313efbSmrg soname_spec='${libname}${release}${shared_ext}$major' 187872313efbSmrg shlibpath_var=LD_LIBRARY_PATH 187972313efbSmrg hardcode_into_libs=yes 188072313efbSmrg if test "$with_gnu_ld" = yes; then 188172313efbSmrg sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 188296ce994aSmrg shlibpath_overrides_runpath=no 188372313efbSmrg else 188472313efbSmrg sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 188596ce994aSmrg shlibpath_overrides_runpath=yes 188672313efbSmrg case $host_os in 188772313efbSmrg sco3.2v5*) 188872313efbSmrg sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 188972313efbSmrg ;; 189072313efbSmrg esac 1891bdcaa8d0Smrg fi 189272313efbSmrg sys_lib_dlsearch_path_spec='/usr/lib' 189372313efbSmrg ;; 1894bdcaa8d0Smrg 189572313efbSmrguts4*) 189672313efbSmrg version_type=linux 189772313efbSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 189872313efbSmrg soname_spec='${libname}${release}${shared_ext}$major' 189972313efbSmrg shlibpath_var=LD_LIBRARY_PATH 190072313efbSmrg ;; 1901bdcaa8d0Smrg 190272313efbSmrg*) 190372313efbSmrg dynamic_linker=no 190472313efbSmrg ;; 190572313efbSmrgesac 190672313efbSmrgAC_MSG_RESULT([$dynamic_linker]) 190772313efbSmrgtest "$dynamic_linker" = no && can_build_shared=no 1908bdcaa8d0Smrg 190996ce994aSmrgAC_CACHE_VAL([lt_cv_sys_lib_search_path_spec], 191096ce994aSmrg[lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"]) 191196ce994aSmrgsys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 191296ce994aSmrgAC_CACHE_VAL([lt_cv_sys_lib_dlsearch_path_spec], 191396ce994aSmrg[lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"]) 191496ce994aSmrgsys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 191596ce994aSmrg 191672313efbSmrgvariables_saved_for_relink="PATH $shlibpath_var $runpath_var" 191772313efbSmrgif test "$GCC" = yes; then 191872313efbSmrg variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 191972313efbSmrgfi 192096ce994aSmrg])# AC_LIBTOOL_SYS_DYNAMIC_LINKER 1921bdcaa8d0Smrg 1922bdcaa8d0Smrg 192396ce994aSmrg# _LT_AC_TAGCONFIG 192496ce994aSmrg# ---------------- 192596ce994aSmrgAC_DEFUN([_LT_AC_TAGCONFIG], 192696ce994aSmrg[AC_REQUIRE([LT_AC_PROG_SED])dnl 192796ce994aSmrgAC_ARG_WITH([tags], 192896ce994aSmrg [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@], 192996ce994aSmrg [include additional configurations @<:@automatic@:>@])], 193096ce994aSmrg [tagnames="$withval"]) 193196ce994aSmrg 193296ce994aSmrgif test -f "$ltmain" && test -n "$tagnames"; then 193396ce994aSmrg if test ! -f "${ofile}"; then 193496ce994aSmrg AC_MSG_WARN([output file `$ofile' does not exist]) 193596ce994aSmrg fi 193696ce994aSmrg 193796ce994aSmrg if test -z "$LTCC"; then 193896ce994aSmrg eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 193996ce994aSmrg if test -z "$LTCC"; then 194096ce994aSmrg AC_MSG_WARN([output file `$ofile' does not look like a libtool script]) 194196ce994aSmrg else 194296ce994aSmrg AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile']) 194396ce994aSmrg fi 194496ce994aSmrg fi 194596ce994aSmrg if test -z "$LTCFLAGS"; then 194696ce994aSmrg eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" 194796ce994aSmrg fi 194896ce994aSmrg 194996ce994aSmrg # Extract list of available tagged configurations in $ofile. 195096ce994aSmrg # Note that this assumes the entire list is on one line. 195196ce994aSmrg available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 195296ce994aSmrg 195396ce994aSmrg lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 195496ce994aSmrg for tagname in $tagnames; do 195596ce994aSmrg IFS="$lt_save_ifs" 195696ce994aSmrg # Check whether tagname contains only valid characters 195796ce994aSmrg case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in 195896ce994aSmrg "") ;; 195996ce994aSmrg *) AC_MSG_ERROR([invalid tag name: $tagname]) 196096ce994aSmrg ;; 196196ce994aSmrg esac 196296ce994aSmrg 196396ce994aSmrg if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 196496ce994aSmrg then 196596ce994aSmrg AC_MSG_ERROR([tag name \"$tagname\" already exists]) 196696ce994aSmrg fi 196796ce994aSmrg 196896ce994aSmrg # Update the list of available tags. 196996ce994aSmrg if test -n "$tagname"; then 197096ce994aSmrg echo appending configuration tag \"$tagname\" to $ofile 197196ce994aSmrg 197296ce994aSmrg case $tagname in 197396ce994aSmrg CXX) 197496ce994aSmrg if test -n "$CXX" && ( test "X$CXX" != "Xno" && 197596ce994aSmrg ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 197696ce994aSmrg (test "X$CXX" != "Xg++"))) ; then 197796ce994aSmrg AC_LIBTOOL_LANG_CXX_CONFIG 197896ce994aSmrg else 197996ce994aSmrg tagname="" 198096ce994aSmrg fi 198196ce994aSmrg ;; 198296ce994aSmrg 198396ce994aSmrg F77) 198496ce994aSmrg if test -n "$F77" && test "X$F77" != "Xno"; then 198596ce994aSmrg AC_LIBTOOL_LANG_F77_CONFIG 198696ce994aSmrg else 198796ce994aSmrg tagname="" 198896ce994aSmrg fi 198996ce994aSmrg ;; 199096ce994aSmrg 199196ce994aSmrg GCJ) 199296ce994aSmrg if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 199396ce994aSmrg AC_LIBTOOL_LANG_GCJ_CONFIG 199496ce994aSmrg else 199596ce994aSmrg tagname="" 199696ce994aSmrg fi 199796ce994aSmrg ;; 199896ce994aSmrg 199996ce994aSmrg RC) 200096ce994aSmrg AC_LIBTOOL_LANG_RC_CONFIG 200196ce994aSmrg ;; 200296ce994aSmrg 200396ce994aSmrg *) 200496ce994aSmrg AC_MSG_ERROR([Unsupported tag name: $tagname]) 200596ce994aSmrg ;; 200696ce994aSmrg esac 200796ce994aSmrg 200896ce994aSmrg # Append the new tag name to the list of available tags. 200996ce994aSmrg if test -n "$tagname" ; then 201096ce994aSmrg available_tags="$available_tags $tagname" 201196ce994aSmrg fi 201296ce994aSmrg fi 201396ce994aSmrg done 201496ce994aSmrg IFS="$lt_save_ifs" 201596ce994aSmrg 201696ce994aSmrg # Now substitute the updated list of available tags. 201796ce994aSmrg if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 201896ce994aSmrg mv "${ofile}T" "$ofile" 201996ce994aSmrg chmod +x "$ofile" 202096ce994aSmrg else 202196ce994aSmrg rm -f "${ofile}T" 202296ce994aSmrg AC_MSG_ERROR([unable to update list of available tagged configurations.]) 202396ce994aSmrg fi 202496ce994aSmrgfi 202596ce994aSmrg])# _LT_AC_TAGCONFIG 202696ce994aSmrg 202796ce994aSmrg 202896ce994aSmrg# AC_LIBTOOL_DLOPEN 202996ce994aSmrg# ----------------- 203096ce994aSmrg# enable checks for dlopen support 203196ce994aSmrgAC_DEFUN([AC_LIBTOOL_DLOPEN], 203296ce994aSmrg [AC_BEFORE([$0],[AC_LIBTOOL_SETUP]) 203396ce994aSmrg])# AC_LIBTOOL_DLOPEN 203496ce994aSmrg 203596ce994aSmrg 203696ce994aSmrg# AC_LIBTOOL_WIN32_DLL 203796ce994aSmrg# -------------------- 203896ce994aSmrg# declare package support for building win32 DLLs 203996ce994aSmrgAC_DEFUN([AC_LIBTOOL_WIN32_DLL], 204096ce994aSmrg[AC_BEFORE([$0], [AC_LIBTOOL_SETUP]) 204196ce994aSmrg])# AC_LIBTOOL_WIN32_DLL 204296ce994aSmrg 204396ce994aSmrg 204496ce994aSmrg# AC_ENABLE_SHARED([DEFAULT]) 204596ce994aSmrg# --------------------------- 204696ce994aSmrg# implement the --enable-shared flag 204796ce994aSmrg# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. 204896ce994aSmrgAC_DEFUN([AC_ENABLE_SHARED], 204996ce994aSmrg[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl 205096ce994aSmrgAC_ARG_ENABLE([shared], 205196ce994aSmrg [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@], 205296ce994aSmrg [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])], 205396ce994aSmrg [p=${PACKAGE-default} 205496ce994aSmrg case $enableval in 205596ce994aSmrg yes) enable_shared=yes ;; 205696ce994aSmrg no) enable_shared=no ;; 205796ce994aSmrg *) 205896ce994aSmrg enable_shared=no 205996ce994aSmrg # Look at the argument we got. We use all the common list separators. 206096ce994aSmrg lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 206196ce994aSmrg for pkg in $enableval; do 206296ce994aSmrg IFS="$lt_save_ifs" 206396ce994aSmrg if test "X$pkg" = "X$p"; then 206496ce994aSmrg enable_shared=yes 206596ce994aSmrg fi 206696ce994aSmrg done 206796ce994aSmrg IFS="$lt_save_ifs" 206896ce994aSmrg ;; 206996ce994aSmrg esac], 207096ce994aSmrg [enable_shared=]AC_ENABLE_SHARED_DEFAULT) 207196ce994aSmrg])# AC_ENABLE_SHARED 207296ce994aSmrg 207396ce994aSmrg 207496ce994aSmrg# AC_DISABLE_SHARED 207596ce994aSmrg# ----------------- 207696ce994aSmrg# set the default shared flag to --disable-shared 207796ce994aSmrgAC_DEFUN([AC_DISABLE_SHARED], 207896ce994aSmrg[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl 207996ce994aSmrgAC_ENABLE_SHARED(no) 208096ce994aSmrg])# AC_DISABLE_SHARED 208196ce994aSmrg 208296ce994aSmrg 208396ce994aSmrg# AC_ENABLE_STATIC([DEFAULT]) 208496ce994aSmrg# --------------------------- 208596ce994aSmrg# implement the --enable-static flag 208696ce994aSmrg# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. 208796ce994aSmrgAC_DEFUN([AC_ENABLE_STATIC], 208896ce994aSmrg[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl 208996ce994aSmrgAC_ARG_ENABLE([static], 209096ce994aSmrg [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@], 209196ce994aSmrg [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])], 209296ce994aSmrg [p=${PACKAGE-default} 209396ce994aSmrg case $enableval in 209496ce994aSmrg yes) enable_static=yes ;; 209596ce994aSmrg no) enable_static=no ;; 209696ce994aSmrg *) 209796ce994aSmrg enable_static=no 209896ce994aSmrg # Look at the argument we got. We use all the common list separators. 209996ce994aSmrg lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 210096ce994aSmrg for pkg in $enableval; do 210196ce994aSmrg IFS="$lt_save_ifs" 210296ce994aSmrg if test "X$pkg" = "X$p"; then 210396ce994aSmrg enable_static=yes 210496ce994aSmrg fi 210596ce994aSmrg done 210696ce994aSmrg IFS="$lt_save_ifs" 210796ce994aSmrg ;; 210896ce994aSmrg esac], 210996ce994aSmrg [enable_static=]AC_ENABLE_STATIC_DEFAULT) 211096ce994aSmrg])# AC_ENABLE_STATIC 211196ce994aSmrg 211296ce994aSmrg 211396ce994aSmrg# AC_DISABLE_STATIC 211496ce994aSmrg# ----------------- 211596ce994aSmrg# set the default static flag to --disable-static 211696ce994aSmrgAC_DEFUN([AC_DISABLE_STATIC], 211796ce994aSmrg[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl 211896ce994aSmrgAC_ENABLE_STATIC(no) 211996ce994aSmrg])# AC_DISABLE_STATIC 212096ce994aSmrg 212196ce994aSmrg 212296ce994aSmrg# AC_ENABLE_FAST_INSTALL([DEFAULT]) 212396ce994aSmrg# --------------------------------- 212496ce994aSmrg# implement the --enable-fast-install flag 212596ce994aSmrg# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. 212696ce994aSmrgAC_DEFUN([AC_ENABLE_FAST_INSTALL], 212796ce994aSmrg[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl 212896ce994aSmrgAC_ARG_ENABLE([fast-install], 212996ce994aSmrg [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@], 213096ce994aSmrg [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])], 213196ce994aSmrg [p=${PACKAGE-default} 213296ce994aSmrg case $enableval in 213396ce994aSmrg yes) enable_fast_install=yes ;; 213496ce994aSmrg no) enable_fast_install=no ;; 213596ce994aSmrg *) 213696ce994aSmrg enable_fast_install=no 213796ce994aSmrg # Look at the argument we got. We use all the common list separators. 213896ce994aSmrg lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 213996ce994aSmrg for pkg in $enableval; do 214096ce994aSmrg IFS="$lt_save_ifs" 214196ce994aSmrg if test "X$pkg" = "X$p"; then 214296ce994aSmrg enable_fast_install=yes 214396ce994aSmrg fi 214496ce994aSmrg done 214596ce994aSmrg IFS="$lt_save_ifs" 214696ce994aSmrg ;; 214796ce994aSmrg esac], 214896ce994aSmrg [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT) 214996ce994aSmrg])# AC_ENABLE_FAST_INSTALL 215096ce994aSmrg 215196ce994aSmrg 215296ce994aSmrg# AC_DISABLE_FAST_INSTALL 215396ce994aSmrg# ----------------------- 215496ce994aSmrg# set the default to --disable-fast-install 215596ce994aSmrgAC_DEFUN([AC_DISABLE_FAST_INSTALL], 215696ce994aSmrg[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl 215796ce994aSmrgAC_ENABLE_FAST_INSTALL(no) 215896ce994aSmrg])# AC_DISABLE_FAST_INSTALL 215996ce994aSmrg 216096ce994aSmrg 216196ce994aSmrg# AC_LIBTOOL_PICMODE([MODE]) 216296ce994aSmrg# -------------------------- 216396ce994aSmrg# implement the --with-pic flag 216496ce994aSmrg# MODE is either `yes' or `no'. If omitted, it defaults to `both'. 216596ce994aSmrgAC_DEFUN([AC_LIBTOOL_PICMODE], 216696ce994aSmrg[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl 216796ce994aSmrgpic_mode=ifelse($#,1,$1,default) 216896ce994aSmrg])# AC_LIBTOOL_PICMODE 216996ce994aSmrg 217096ce994aSmrg 217196ce994aSmrg# AC_PROG_EGREP 217296ce994aSmrg# ------------- 217396ce994aSmrg# This is predefined starting with Autoconf 2.54, so this conditional 217496ce994aSmrg# definition can be removed once we require Autoconf 2.54 or later. 217596ce994aSmrgm4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP], 217696ce994aSmrg[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep], 217796ce994aSmrg [if echo a | (grep -E '(a|b)') >/dev/null 2>&1 217896ce994aSmrg then ac_cv_prog_egrep='grep -E' 217996ce994aSmrg else ac_cv_prog_egrep='egrep' 218096ce994aSmrg fi]) 218196ce994aSmrg EGREP=$ac_cv_prog_egrep 218296ce994aSmrg AC_SUBST([EGREP]) 218396ce994aSmrg])]) 218496ce994aSmrg 218596ce994aSmrg 218696ce994aSmrg# AC_PATH_TOOL_PREFIX 218796ce994aSmrg# ------------------- 218896ce994aSmrg# find a file program which can recognize shared library 218996ce994aSmrgAC_DEFUN([AC_PATH_TOOL_PREFIX], 219096ce994aSmrg[AC_REQUIRE([AC_PROG_EGREP])dnl 219196ce994aSmrgAC_MSG_CHECKING([for $1]) 219296ce994aSmrgAC_CACHE_VAL(lt_cv_path_MAGIC_CMD, 219396ce994aSmrg[case $MAGIC_CMD in 219472313efbSmrg[[\\/*] | ?:[\\/]*]) 219572313efbSmrg lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 219672313efbSmrg ;; 219772313efbSmrg*) 219872313efbSmrg lt_save_MAGIC_CMD="$MAGIC_CMD" 219972313efbSmrg lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 220072313efbSmrgdnl $ac_dummy forces splitting on constant user-supplied paths. 220172313efbSmrgdnl POSIX.2 word splitting is done only on the output of word expansions, 220272313efbSmrgdnl not every word. This closes a longstanding sh security hole. 220396ce994aSmrg ac_dummy="ifelse([$2], , $PATH, [$2])" 220472313efbSmrg for ac_dir in $ac_dummy; do 220572313efbSmrg IFS="$lt_save_ifs" 220672313efbSmrg test -z "$ac_dir" && ac_dir=. 220772313efbSmrg if test -f $ac_dir/$1; then 220872313efbSmrg lt_cv_path_MAGIC_CMD="$ac_dir/$1" 220972313efbSmrg if test -n "$file_magic_test_file"; then 221072313efbSmrg case $deplibs_check_method in 221172313efbSmrg "file_magic "*) 221272313efbSmrg file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 221372313efbSmrg MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 221472313efbSmrg if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 221572313efbSmrg $EGREP "$file_magic_regex" > /dev/null; then 221672313efbSmrg : 221772313efbSmrg else 221896ce994aSmrg cat <<EOF 1>&2 2219bdcaa8d0Smrg 222072313efbSmrg*** Warning: the command libtool uses to detect shared libraries, 222172313efbSmrg*** $file_magic_cmd, produces output that libtool cannot recognize. 222272313efbSmrg*** The result is that libtool may fail to recognize shared libraries 222372313efbSmrg*** as such. This will affect the creation of libtool libraries that 222472313efbSmrg*** depend on shared libraries, but programs linked with such libtool 222572313efbSmrg*** libraries will work regardless of this problem. Nevertheless, you 222672313efbSmrg*** may want to report the problem to your system manager and/or to 222772313efbSmrg*** bug-libtool@gnu.org 2228bdcaa8d0Smrg 222996ce994aSmrgEOF 223072313efbSmrg fi ;; 223172313efbSmrg esac 223272313efbSmrg fi 223372313efbSmrg break 223472313efbSmrg fi 223572313efbSmrg done 223672313efbSmrg IFS="$lt_save_ifs" 223772313efbSmrg MAGIC_CMD="$lt_save_MAGIC_CMD" 223872313efbSmrg ;; 223972313efbSmrgesac]) 224072313efbSmrgMAGIC_CMD="$lt_cv_path_MAGIC_CMD" 224172313efbSmrgif test -n "$MAGIC_CMD"; then 224272313efbSmrg AC_MSG_RESULT($MAGIC_CMD) 224372313efbSmrgelse 224472313efbSmrg AC_MSG_RESULT(no) 224572313efbSmrgfi 224696ce994aSmrg])# AC_PATH_TOOL_PREFIX 2247bdcaa8d0Smrg 2248bdcaa8d0Smrg 224996ce994aSmrg# AC_PATH_MAGIC 225096ce994aSmrg# ------------- 225172313efbSmrg# find a file program which can recognize a shared library 225296ce994aSmrgAC_DEFUN([AC_PATH_MAGIC], 225396ce994aSmrg[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) 225472313efbSmrgif test -z "$lt_cv_path_MAGIC_CMD"; then 225572313efbSmrg if test -n "$ac_tool_prefix"; then 225696ce994aSmrg AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) 225772313efbSmrg else 225872313efbSmrg MAGIC_CMD=: 225972313efbSmrg fi 226072313efbSmrgfi 226196ce994aSmrg])# AC_PATH_MAGIC 2262bdcaa8d0Smrg 226372313efbSmrg 226496ce994aSmrg# AC_PROG_LD 226572313efbSmrg# ---------- 226672313efbSmrg# find the pathname to the GNU or non-GNU linker 226796ce994aSmrgAC_DEFUN([AC_PROG_LD], 226896ce994aSmrg[AC_ARG_WITH([gnu-ld], 226996ce994aSmrg [AC_HELP_STRING([--with-gnu-ld], 227072313efbSmrg [assume the C compiler uses GNU ld @<:@default=no@:>@])], 227172313efbSmrg [test "$withval" = no || with_gnu_ld=yes], 227296ce994aSmrg [with_gnu_ld=no]) 227396ce994aSmrgAC_REQUIRE([LT_AC_PROG_SED])dnl 227496ce994aSmrgAC_REQUIRE([AC_PROG_CC])dnl 227596ce994aSmrgAC_REQUIRE([AC_CANONICAL_HOST])dnl 227696ce994aSmrgAC_REQUIRE([AC_CANONICAL_BUILD])dnl 227772313efbSmrgac_prog=ld 227872313efbSmrgif test "$GCC" = yes; then 227972313efbSmrg # Check if gcc -print-prog-name=ld gives a path. 228072313efbSmrg AC_MSG_CHECKING([for ld used by $CC]) 228172313efbSmrg case $host in 228272313efbSmrg *-*-mingw*) 228372313efbSmrg # gcc leaves a trailing carriage return which upsets mingw 228472313efbSmrg ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 228572313efbSmrg *) 228672313efbSmrg ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 228772313efbSmrg esac 228872313efbSmrg case $ac_prog in 228972313efbSmrg # Accept absolute paths. 229072313efbSmrg [[\\/]]* | ?:[[\\/]]*) 229172313efbSmrg re_direlt='/[[^/]][[^/]]*/\.\./' 229272313efbSmrg # Canonicalize the pathname of ld 229396ce994aSmrg ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 229496ce994aSmrg while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 229596ce994aSmrg ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 229672313efbSmrg done 229772313efbSmrg test -z "$LD" && LD="$ac_prog" 229872313efbSmrg ;; 229972313efbSmrg "") 230072313efbSmrg # If it fails, then pretend we aren't using GCC. 230172313efbSmrg ac_prog=ld 230272313efbSmrg ;; 230372313efbSmrg *) 230472313efbSmrg # If it is relative, then search for the first ld in PATH. 230572313efbSmrg with_gnu_ld=unknown 230672313efbSmrg ;; 230772313efbSmrg esac 230872313efbSmrgelif test "$with_gnu_ld" = yes; then 230972313efbSmrg AC_MSG_CHECKING([for GNU ld]) 2310bdcaa8d0Smrgelse 231172313efbSmrg AC_MSG_CHECKING([for non-GNU ld]) 2312bdcaa8d0Smrgfi 231372313efbSmrgAC_CACHE_VAL(lt_cv_path_LD, 231472313efbSmrg[if test -z "$LD"; then 231572313efbSmrg lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 231672313efbSmrg for ac_dir in $PATH; do 231772313efbSmrg IFS="$lt_save_ifs" 231872313efbSmrg test -z "$ac_dir" && ac_dir=. 231972313efbSmrg if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 232072313efbSmrg lt_cv_path_LD="$ac_dir/$ac_prog" 232172313efbSmrg # Check to see if the program is GNU ld. I'd rather use --version, 232272313efbSmrg # but apparently some variants of GNU ld only accept -v. 232372313efbSmrg # Break only if it was the GNU/non-GNU ld that we prefer. 232472313efbSmrg case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 232572313efbSmrg *GNU* | *'with BFD'*) 232672313efbSmrg test "$with_gnu_ld" != no && break 232772313efbSmrg ;; 232872313efbSmrg *) 232972313efbSmrg test "$with_gnu_ld" != yes && break 233072313efbSmrg ;; 233172313efbSmrg esac 233272313efbSmrg fi 233372313efbSmrg done 233472313efbSmrg IFS="$lt_save_ifs" 2335bdcaa8d0Smrgelse 233672313efbSmrg lt_cv_path_LD="$LD" # Let the user override the test with a path. 233772313efbSmrgfi]) 233872313efbSmrgLD="$lt_cv_path_LD" 233972313efbSmrgif test -n "$LD"; then 234072313efbSmrg AC_MSG_RESULT($LD) 2341bdcaa8d0Smrgelse 234272313efbSmrg AC_MSG_RESULT(no) 2343bdcaa8d0Smrgfi 234472313efbSmrgtest -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) 234596ce994aSmrgAC_PROG_LD_GNU 234696ce994aSmrg])# AC_PROG_LD 2347bdcaa8d0Smrg 2348bdcaa8d0Smrg 234996ce994aSmrg# AC_PROG_LD_GNU 235096ce994aSmrg# -------------- 235196ce994aSmrgAC_DEFUN([AC_PROG_LD_GNU], 235296ce994aSmrg[AC_REQUIRE([AC_PROG_EGREP])dnl 235396ce994aSmrgAC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld, 235472313efbSmrg[# I'd rather use --version here, but apparently some GNU lds only accept -v. 235572313efbSmrgcase `$LD -v 2>&1 </dev/null` in 235672313efbSmrg*GNU* | *'with BFD'*) 235772313efbSmrg lt_cv_prog_gnu_ld=yes 235872313efbSmrg ;; 235972313efbSmrg*) 236072313efbSmrg lt_cv_prog_gnu_ld=no 236172313efbSmrg ;; 236272313efbSmrgesac]) 236372313efbSmrgwith_gnu_ld=$lt_cv_prog_gnu_ld 236496ce994aSmrg])# AC_PROG_LD_GNU 2365bdcaa8d0Smrg 2366bdcaa8d0Smrg 236796ce994aSmrg# AC_PROG_LD_RELOAD_FLAG 236896ce994aSmrg# ---------------------- 236972313efbSmrg# find reload flag for linker 237072313efbSmrg# -- PORTME Some linkers may need a different reload flag. 237196ce994aSmrgAC_DEFUN([AC_PROG_LD_RELOAD_FLAG], 237272313efbSmrg[AC_CACHE_CHECK([for $LD option to reload object files], 237372313efbSmrg lt_cv_ld_reload_flag, 237472313efbSmrg [lt_cv_ld_reload_flag='-r']) 237572313efbSmrgreload_flag=$lt_cv_ld_reload_flag 237672313efbSmrgcase $reload_flag in 237772313efbSmrg"" | " "*) ;; 237872313efbSmrg*) reload_flag=" $reload_flag" ;; 237972313efbSmrgesac 238072313efbSmrgreload_cmds='$LD$reload_flag -o $output$reload_objs' 238172313efbSmrgcase $host_os in 238272313efbSmrg darwin*) 238372313efbSmrg if test "$GCC" = yes; then 238472313efbSmrg reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 2385bdcaa8d0Smrg else 238672313efbSmrg reload_cmds='$LD$reload_flag -o $output$reload_objs' 2387bdcaa8d0Smrg fi 238872313efbSmrg ;; 238972313efbSmrgesac 239096ce994aSmrg])# AC_PROG_LD_RELOAD_FLAG 2391bdcaa8d0Smrg 2392bdcaa8d0Smrg 239396ce994aSmrg# AC_DEPLIBS_CHECK_METHOD 239496ce994aSmrg# ----------------------- 239572313efbSmrg# how to check for library dependencies 239672313efbSmrg# -- PORTME fill in with the dynamic library characteristics 239796ce994aSmrgAC_DEFUN([AC_DEPLIBS_CHECK_METHOD], 239896ce994aSmrg[AC_CACHE_CHECK([how to recognize dependent libraries], 239972313efbSmrglt_cv_deplibs_check_method, 240072313efbSmrg[lt_cv_file_magic_cmd='$MAGIC_CMD' 240172313efbSmrglt_cv_file_magic_test_file= 240272313efbSmrglt_cv_deplibs_check_method='unknown' 240372313efbSmrg# Need to set the preceding variable on all platforms that support 240472313efbSmrg# interlibrary dependencies. 240572313efbSmrg# 'none' -- dependencies not supported. 240672313efbSmrg# `unknown' -- same as none, but documents that we really don't know. 240772313efbSmrg# 'pass_all' -- all dependencies passed with no checks. 240872313efbSmrg# 'test_compile' -- check by making test program. 240972313efbSmrg# 'file_magic [[regex]]' -- check by looking for files in library path 241072313efbSmrg# which responds to the $file_magic_cmd with a given extended regex. 241172313efbSmrg# If you have `file' or equivalent on your system and you're not sure 241272313efbSmrg# whether `pass_all' will *always* work, you probably want this one. 2413bdcaa8d0Smrg 2414bdcaa8d0Smrgcase $host_os in 241572313efbSmrgaix[[4-9]]*) 241672313efbSmrg lt_cv_deplibs_check_method=pass_all 241772313efbSmrg ;; 2418bdcaa8d0Smrg 241972313efbSmrgbeos*) 242072313efbSmrg lt_cv_deplibs_check_method=pass_all 242172313efbSmrg ;; 2422bdcaa8d0Smrg 242372313efbSmrgbsdi[[45]]*) 242472313efbSmrg lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)' 242572313efbSmrg lt_cv_file_magic_cmd='/usr/bin/file -L' 242672313efbSmrg lt_cv_file_magic_test_file=/shlib/libc.so 242772313efbSmrg ;; 2428bdcaa8d0Smrg 242972313efbSmrgcygwin*) 243072313efbSmrg # func_win32_libid is a shell function defined in ltmain.sh 243172313efbSmrg lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 243272313efbSmrg lt_cv_file_magic_cmd='func_win32_libid' 243372313efbSmrg ;; 2434bdcaa8d0Smrg 243572313efbSmrgmingw* | pw32*) 243672313efbSmrg # Base MSYS/MinGW do not provide the 'file' command needed by 243772313efbSmrg # func_win32_libid shell function, so use a weaker test based on 'objdump', 243872313efbSmrg # unless we find 'file', for example because we are cross-compiling. 243972313efbSmrg if ( file / ) >/dev/null 2>&1; then 244072313efbSmrg lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 244172313efbSmrg lt_cv_file_magic_cmd='func_win32_libid' 244272313efbSmrg else 244372313efbSmrg lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 244472313efbSmrg lt_cv_file_magic_cmd='$OBJDUMP -f' 244572313efbSmrg fi 244672313efbSmrg ;; 2447bdcaa8d0Smrg 244872313efbSmrgdarwin* | rhapsody*) 244972313efbSmrg lt_cv_deplibs_check_method=pass_all 245072313efbSmrg ;; 2451bdcaa8d0Smrg 245272313efbSmrgfreebsd* | dragonfly*) 245396ce994aSmrg if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 2454bdcaa8d0Smrg case $host_cpu in 245572313efbSmrg i*86 ) 245672313efbSmrg # Not sure whether the presence of OpenBSD here was a mistake. 245772313efbSmrg # Let's accept both of them until this is cleared up. 245872313efbSmrg lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' 245972313efbSmrg lt_cv_file_magic_cmd=/usr/bin/file 246072313efbSmrg lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 2461bdcaa8d0Smrg ;; 2462bdcaa8d0Smrg esac 246372313efbSmrg else 246472313efbSmrg lt_cv_deplibs_check_method=pass_all 246572313efbSmrg fi 246672313efbSmrg ;; 2467bdcaa8d0Smrg 246872313efbSmrggnu*) 246972313efbSmrg lt_cv_deplibs_check_method=pass_all 247072313efbSmrg ;; 2471bdcaa8d0Smrg 247272313efbSmrghpux10.20* | hpux11*) 247372313efbSmrg lt_cv_file_magic_cmd=/usr/bin/file 247472313efbSmrg case $host_cpu in 247572313efbSmrg ia64*) 247672313efbSmrg lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' 247772313efbSmrg lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 2478bdcaa8d0Smrg ;; 247972313efbSmrg hppa*64*) 248072313efbSmrg [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]'] 248172313efbSmrg lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 2482bdcaa8d0Smrg ;; 248372313efbSmrg *) 248472313efbSmrg lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library' 248572313efbSmrg lt_cv_file_magic_test_file=/usr/lib/libc.sl 2486bdcaa8d0Smrg ;; 248772313efbSmrg esac 248872313efbSmrg ;; 2489bdcaa8d0Smrg 249072313efbSmrginterix[[3-9]]*) 249172313efbSmrg # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 249272313efbSmrg lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' 249372313efbSmrg ;; 2494bdcaa8d0Smrg 249572313efbSmrgirix5* | irix6* | nonstopux*) 249672313efbSmrg case $LD in 249772313efbSmrg *-32|*"-32 ") libmagic=32-bit;; 249872313efbSmrg *-n32|*"-n32 ") libmagic=N32;; 249972313efbSmrg *-64|*"-64 ") libmagic=64-bit;; 250072313efbSmrg *) libmagic=never-match;; 250172313efbSmrg esac 250272313efbSmrg lt_cv_deplibs_check_method=pass_all 250372313efbSmrg ;; 2504bdcaa8d0Smrg 250572313efbSmrg# This must be Linux ELF. 250672313efbSmrglinux* | k*bsd*-gnu) 250772313efbSmrg lt_cv_deplibs_check_method=pass_all 250872313efbSmrg ;; 2509bdcaa8d0Smrg 251072313efbSmrgnetbsd*) 251196ce994aSmrg if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 251272313efbSmrg lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' 251372313efbSmrg else 251472313efbSmrg lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' 251572313efbSmrg fi 251672313efbSmrg ;; 2517bdcaa8d0Smrg 251872313efbSmrgnewos6*) 251972313efbSmrg lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' 252072313efbSmrg lt_cv_file_magic_cmd=/usr/bin/file 252172313efbSmrg lt_cv_file_magic_test_file=/usr/lib/libnls.so 252272313efbSmrg ;; 2523bdcaa8d0Smrg 252496ce994aSmrgnto-qnx*) 252596ce994aSmrg lt_cv_deplibs_check_method=unknown 252672313efbSmrg ;; 2527bdcaa8d0Smrg 252872313efbSmrgopenbsd*) 252996ce994aSmrg if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 253072313efbSmrg lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' 253172313efbSmrg else 253272313efbSmrg lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' 253372313efbSmrg fi 253472313efbSmrg ;; 2535bdcaa8d0Smrg 253672313efbSmrgosf3* | osf4* | osf5*) 253772313efbSmrg lt_cv_deplibs_check_method=pass_all 253872313efbSmrg ;; 2539bdcaa8d0Smrg 254072313efbSmrgrdos*) 254172313efbSmrg lt_cv_deplibs_check_method=pass_all 254272313efbSmrg ;; 2543bdcaa8d0Smrg 254472313efbSmrgsolaris*) 254572313efbSmrg lt_cv_deplibs_check_method=pass_all 254672313efbSmrg ;; 254772313efbSmrg 254872313efbSmrgsysv4 | sysv4.3*) 254972313efbSmrg case $host_vendor in 255072313efbSmrg motorola) 255172313efbSmrg 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]]' 255272313efbSmrg lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 255372313efbSmrg ;; 255472313efbSmrg ncr) 255572313efbSmrg lt_cv_deplibs_check_method=pass_all 2556bdcaa8d0Smrg ;; 255772313efbSmrg sequent) 255872313efbSmrg lt_cv_file_magic_cmd='/bin/file' 255972313efbSmrg lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' 2560bdcaa8d0Smrg ;; 256172313efbSmrg sni) 256272313efbSmrg lt_cv_file_magic_cmd='/bin/file' 256372313efbSmrg lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" 256472313efbSmrg lt_cv_file_magic_test_file=/lib/libc.so 2565bdcaa8d0Smrg ;; 256672313efbSmrg siemens) 256772313efbSmrg lt_cv_deplibs_check_method=pass_all 256872313efbSmrg ;; 256972313efbSmrg pc) 257072313efbSmrg lt_cv_deplibs_check_method=pass_all 257172313efbSmrg ;; 257272313efbSmrg esac 257372313efbSmrg ;; 2574bdcaa8d0Smrg 257596ce994aSmrgsysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 257672313efbSmrg lt_cv_deplibs_check_method=pass_all 257772313efbSmrg ;; 257872313efbSmrgesac 257972313efbSmrg]) 258072313efbSmrgfile_magic_cmd=$lt_cv_file_magic_cmd 258172313efbSmrgdeplibs_check_method=$lt_cv_deplibs_check_method 258272313efbSmrgtest -z "$deplibs_check_method" && deplibs_check_method=unknown 258396ce994aSmrg])# AC_DEPLIBS_CHECK_METHOD 2584bdcaa8d0Smrg 2585bdcaa8d0Smrg 258696ce994aSmrg# AC_PROG_NM 258772313efbSmrg# ---------- 258896ce994aSmrg# find the pathname to a BSD-compatible name lister 258996ce994aSmrgAC_DEFUN([AC_PROG_NM], 259096ce994aSmrg[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM, 259172313efbSmrg[if test -n "$NM"; then 259272313efbSmrg # Let the user override the test. 259372313efbSmrg lt_cv_path_NM="$NM" 259472313efbSmrgelse 259572313efbSmrg lt_nm_to_check="${ac_tool_prefix}nm" 259672313efbSmrg if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 259772313efbSmrg lt_nm_to_check="$lt_nm_to_check nm" 259872313efbSmrg fi 259972313efbSmrg for lt_tmp_nm in $lt_nm_to_check; do 260072313efbSmrg lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 260172313efbSmrg for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 260272313efbSmrg IFS="$lt_save_ifs" 260372313efbSmrg test -z "$ac_dir" && ac_dir=. 260472313efbSmrg tmp_nm="$ac_dir/$lt_tmp_nm" 260572313efbSmrg if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 260672313efbSmrg # Check to see if the nm accepts a BSD-compat flag. 260772313efbSmrg # Adding the `sed 1q' prevents false positives on HP-UX, which says: 260872313efbSmrg # nm: unknown option "B" ignored 260972313efbSmrg # Tru64's nm complains that /dev/null is an invalid object file 261072313efbSmrg case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 261172313efbSmrg */dev/null* | *'Invalid file or object type'*) 261272313efbSmrg lt_cv_path_NM="$tmp_nm -B" 261372313efbSmrg break 261472313efbSmrg ;; 261572313efbSmrg *) 261672313efbSmrg case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 261772313efbSmrg */dev/null*) 261872313efbSmrg lt_cv_path_NM="$tmp_nm -p" 261972313efbSmrg break 262072313efbSmrg ;; 262172313efbSmrg *) 262272313efbSmrg lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 262372313efbSmrg continue # so that we can try to find one that supports BSD flags 262472313efbSmrg ;; 262572313efbSmrg esac 262672313efbSmrg ;; 262772313efbSmrg esac 262872313efbSmrg fi 262972313efbSmrg done 263072313efbSmrg IFS="$lt_save_ifs" 2631bdcaa8d0Smrg done 263296ce994aSmrg test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 263372313efbSmrgfi]) 263496ce994aSmrgNM="$lt_cv_path_NM" 263596ce994aSmrg])# AC_PROG_NM 2636bdcaa8d0Smrg 2637bdcaa8d0Smrg 263896ce994aSmrg# AC_CHECK_LIBM 263996ce994aSmrg# ------------- 264072313efbSmrg# check for math library 264196ce994aSmrgAC_DEFUN([AC_CHECK_LIBM], 264272313efbSmrg[AC_REQUIRE([AC_CANONICAL_HOST])dnl 264372313efbSmrgLIBM= 264472313efbSmrgcase $host in 264572313efbSmrg*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*) 264672313efbSmrg # These system don't have libm, or don't need it 264772313efbSmrg ;; 264872313efbSmrg*-ncr-sysv4.3*) 264972313efbSmrg AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw") 265072313efbSmrg AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") 265172313efbSmrg ;; 265272313efbSmrg*) 265372313efbSmrg AC_CHECK_LIB(m, cos, LIBM="-lm") 2654bdcaa8d0Smrg ;; 2655bdcaa8d0Smrgesac 265696ce994aSmrg])# AC_CHECK_LIBM 2657bdcaa8d0Smrg 2658bdcaa8d0Smrg 265996ce994aSmrg# AC_LIBLTDL_CONVENIENCE([DIRECTORY]) 266096ce994aSmrg# ----------------------------------- 266196ce994aSmrg# sets LIBLTDL to the link flags for the libltdl convenience library and 266296ce994aSmrg# LTDLINCL to the include flags for the libltdl header and adds 266396ce994aSmrg# --enable-ltdl-convenience to the configure arguments. Note that 266496ce994aSmrg# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided, 266596ce994aSmrg# it is assumed to be `libltdl'. LIBLTDL will be prefixed with 266696ce994aSmrg# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/' 266796ce994aSmrg# (note the single quotes!). If your package is not flat and you're not 266896ce994aSmrg# using automake, define top_builddir and top_srcdir appropriately in 266996ce994aSmrg# the Makefiles. 267096ce994aSmrgAC_DEFUN([AC_LIBLTDL_CONVENIENCE], 267196ce994aSmrg[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl 267296ce994aSmrg case $enable_ltdl_convenience in 267396ce994aSmrg no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;; 267496ce994aSmrg "") enable_ltdl_convenience=yes 267596ce994aSmrg ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;; 267696ce994aSmrg esac 267796ce994aSmrg LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la 267896ce994aSmrg LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) 267996ce994aSmrg # For backwards non-gettext consistent compatibility... 268096ce994aSmrg INCLTDL="$LTDLINCL" 268196ce994aSmrg])# AC_LIBLTDL_CONVENIENCE 2682bdcaa8d0Smrg 2683bdcaa8d0Smrg 268496ce994aSmrg# AC_LIBLTDL_INSTALLABLE([DIRECTORY]) 268596ce994aSmrg# ----------------------------------- 268696ce994aSmrg# sets LIBLTDL to the link flags for the libltdl installable library and 268796ce994aSmrg# LTDLINCL to the include flags for the libltdl header and adds 268896ce994aSmrg# --enable-ltdl-install to the configure arguments. Note that 268996ce994aSmrg# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided, 269096ce994aSmrg# and an installed libltdl is not found, it is assumed to be `libltdl'. 269196ce994aSmrg# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with 269296ce994aSmrg# '${top_srcdir}/' (note the single quotes!). If your package is not 269396ce994aSmrg# flat and you're not using automake, define top_builddir and top_srcdir 269496ce994aSmrg# appropriately in the Makefiles. 269596ce994aSmrg# In the future, this macro may have to be called after AC_PROG_LIBTOOL. 269696ce994aSmrgAC_DEFUN([AC_LIBLTDL_INSTALLABLE], 269796ce994aSmrg[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl 269896ce994aSmrg AC_CHECK_LIB(ltdl, lt_dlinit, 269996ce994aSmrg [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no], 270096ce994aSmrg [if test x"$enable_ltdl_install" = xno; then 270196ce994aSmrg AC_MSG_WARN([libltdl not installed, but installation disabled]) 270296ce994aSmrg else 270396ce994aSmrg enable_ltdl_install=yes 270496ce994aSmrg fi 270596ce994aSmrg ]) 270696ce994aSmrg if test x"$enable_ltdl_install" = x"yes"; then 270796ce994aSmrg ac_configure_args="$ac_configure_args --enable-ltdl-install" 270896ce994aSmrg LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la 270996ce994aSmrg LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) 271096ce994aSmrg else 271196ce994aSmrg ac_configure_args="$ac_configure_args --enable-ltdl-install=no" 271296ce994aSmrg LIBLTDL="-lltdl" 271396ce994aSmrg LTDLINCL= 271496ce994aSmrg fi 271596ce994aSmrg # For backwards non-gettext consistent compatibility... 271696ce994aSmrg INCLTDL="$LTDLINCL" 271796ce994aSmrg])# AC_LIBLTDL_INSTALLABLE 2718bdcaa8d0Smrg 2719bdcaa8d0Smrg 272096ce994aSmrg# AC_LIBTOOL_CXX 272196ce994aSmrg# -------------- 272296ce994aSmrg# enable support for C++ libraries 272396ce994aSmrgAC_DEFUN([AC_LIBTOOL_CXX], 272496ce994aSmrg[AC_REQUIRE([_LT_AC_LANG_CXX]) 272596ce994aSmrg])# AC_LIBTOOL_CXX 2726bdcaa8d0Smrg 2727bdcaa8d0Smrg 272896ce994aSmrg# _LT_AC_LANG_CXX 272996ce994aSmrg# --------------- 273096ce994aSmrgAC_DEFUN([_LT_AC_LANG_CXX], 273196ce994aSmrg[AC_REQUIRE([AC_PROG_CXX]) 273296ce994aSmrgAC_REQUIRE([_LT_AC_PROG_CXXCPP]) 273396ce994aSmrg_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX]) 273496ce994aSmrg])# _LT_AC_LANG_CXX 2735bdcaa8d0Smrg 273696ce994aSmrg# _LT_AC_PROG_CXXCPP 273796ce994aSmrg# ------------------ 273896ce994aSmrgAC_DEFUN([_LT_AC_PROG_CXXCPP], 273972313efbSmrg[ 274096ce994aSmrgAC_REQUIRE([AC_PROG_CXX]) 274196ce994aSmrgif test -n "$CXX" && ( test "X$CXX" != "Xno" && 274296ce994aSmrg ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 274396ce994aSmrg (test "X$CXX" != "Xg++"))) ; then 274496ce994aSmrg AC_PROG_CXXCPP 274596ce994aSmrgfi 274696ce994aSmrg])# _LT_AC_PROG_CXXCPP 2747bdcaa8d0Smrg 274896ce994aSmrg# AC_LIBTOOL_F77 274996ce994aSmrg# -------------- 275096ce994aSmrg# enable support for Fortran 77 libraries 275196ce994aSmrgAC_DEFUN([AC_LIBTOOL_F77], 275296ce994aSmrg[AC_REQUIRE([_LT_AC_LANG_F77]) 275396ce994aSmrg])# AC_LIBTOOL_F77 2754bdcaa8d0Smrg 2755bdcaa8d0Smrg 275696ce994aSmrg# _LT_AC_LANG_F77 275796ce994aSmrg# --------------- 275896ce994aSmrgAC_DEFUN([_LT_AC_LANG_F77], 275996ce994aSmrg[AC_REQUIRE([AC_PROG_F77]) 276096ce994aSmrg_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77]) 276196ce994aSmrg])# _LT_AC_LANG_F77 2762bdcaa8d0Smrg 2763bdcaa8d0Smrg 276496ce994aSmrg# AC_LIBTOOL_GCJ 276596ce994aSmrg# -------------- 276696ce994aSmrg# enable support for GCJ libraries 276796ce994aSmrgAC_DEFUN([AC_LIBTOOL_GCJ], 276896ce994aSmrg[AC_REQUIRE([_LT_AC_LANG_GCJ]) 276996ce994aSmrg])# AC_LIBTOOL_GCJ 2770bdcaa8d0Smrg 2771bdcaa8d0Smrg 277296ce994aSmrg# _LT_AC_LANG_GCJ 277396ce994aSmrg# --------------- 277496ce994aSmrgAC_DEFUN([_LT_AC_LANG_GCJ], 277596ce994aSmrg[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[], 277696ce994aSmrg [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[], 277796ce994aSmrg [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[], 277896ce994aSmrg [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])], 277996ce994aSmrg [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])], 278096ce994aSmrg [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])]) 278196ce994aSmrg_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ]) 278296ce994aSmrg])# _LT_AC_LANG_GCJ 278396ce994aSmrg 278496ce994aSmrg 278596ce994aSmrg# AC_LIBTOOL_RC 278696ce994aSmrg# ------------- 278796ce994aSmrg# enable support for Windows resource files 278896ce994aSmrgAC_DEFUN([AC_LIBTOOL_RC], 278996ce994aSmrg[AC_REQUIRE([LT_AC_PROG_RC]) 279096ce994aSmrg_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC]) 279196ce994aSmrg])# AC_LIBTOOL_RC 2792bdcaa8d0Smrg 2793bdcaa8d0Smrg 279496ce994aSmrg# AC_LIBTOOL_LANG_C_CONFIG 279596ce994aSmrg# ------------------------ 279696ce994aSmrg# Ensure that the configuration vars for the C compiler are 279796ce994aSmrg# suitably defined. Those variables are subsequently used by 279896ce994aSmrg# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. 279996ce994aSmrgAC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG]) 280096ce994aSmrgAC_DEFUN([_LT_AC_LANG_C_CONFIG], 280196ce994aSmrg[lt_save_CC="$CC" 280296ce994aSmrgAC_LANG_PUSH(C) 2803bdcaa8d0Smrg 280496ce994aSmrg# Source file extension for C test sources. 280596ce994aSmrgac_ext=c 280696ce994aSmrg 280796ce994aSmrg# Object file extension for compiled C test sources. 280896ce994aSmrgobjext=o 280996ce994aSmrg_LT_AC_TAGVAR(objext, $1)=$objext 281096ce994aSmrg 281196ce994aSmrg# Code to be used in simple compile tests 281296ce994aSmrglt_simple_compile_test_code="int some_variable = 0;" 281396ce994aSmrg 281496ce994aSmrg# Code to be used in simple link tests 281596ce994aSmrglt_simple_link_test_code='int main(){return(0);}' 281696ce994aSmrg 281796ce994aSmrg_LT_AC_SYS_COMPILER 281896ce994aSmrg 281996ce994aSmrg# save warnings/boilerplate of simple test code 282096ce994aSmrg_LT_COMPILER_BOILERPLATE 282196ce994aSmrg_LT_LINKER_BOILERPLATE 282296ce994aSmrg 282396ce994aSmrgAC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) 282496ce994aSmrgAC_LIBTOOL_PROG_COMPILER_PIC($1) 282596ce994aSmrgAC_LIBTOOL_PROG_CC_C_O($1) 282696ce994aSmrgAC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) 282796ce994aSmrgAC_LIBTOOL_PROG_LD_SHLIBS($1) 282896ce994aSmrgAC_LIBTOOL_SYS_DYNAMIC_LINKER($1) 282996ce994aSmrgAC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) 283096ce994aSmrgAC_LIBTOOL_SYS_LIB_STRIP 283196ce994aSmrgAC_LIBTOOL_DLOPEN_SELF 283296ce994aSmrg 283396ce994aSmrg# Report which library types will actually be built 283496ce994aSmrgAC_MSG_CHECKING([if libtool supports shared libraries]) 283596ce994aSmrgAC_MSG_RESULT([$can_build_shared]) 283696ce994aSmrg 283796ce994aSmrgAC_MSG_CHECKING([whether to build shared libraries]) 283896ce994aSmrgtest "$can_build_shared" = "no" && enable_shared=no 283996ce994aSmrg 284096ce994aSmrg# On AIX, shared libraries and static libraries use the same namespace, and 284196ce994aSmrg# are all built from PIC. 284296ce994aSmrgcase $host_os in 284396ce994aSmrgaix3*) 284496ce994aSmrg test "$enable_shared" = yes && enable_static=no 284596ce994aSmrg if test -n "$RANLIB"; then 284696ce994aSmrg archive_cmds="$archive_cmds~\$RANLIB \$lib" 284796ce994aSmrg postinstall_cmds='$RANLIB $lib' 284872313efbSmrg fi 284996ce994aSmrg ;; 2850bdcaa8d0Smrg 285196ce994aSmrgaix[[4-9]]*) 285296ce994aSmrg if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 285396ce994aSmrg test "$enable_shared" = yes && enable_static=no 285496ce994aSmrg fi 285596ce994aSmrg ;; 285696ce994aSmrgesac 285796ce994aSmrgAC_MSG_RESULT([$enable_shared]) 2858bdcaa8d0Smrg 285996ce994aSmrgAC_MSG_CHECKING([whether to build static libraries]) 286096ce994aSmrg# Make sure either enable_shared or enable_static is yes. 286196ce994aSmrgtest "$enable_shared" = yes || enable_static=yes 286296ce994aSmrgAC_MSG_RESULT([$enable_static]) 2863bdcaa8d0Smrg 286496ce994aSmrgAC_LIBTOOL_CONFIG($1) 2865bdcaa8d0Smrg 286696ce994aSmrgAC_LANG_POP 286796ce994aSmrgCC="$lt_save_CC" 286896ce994aSmrg])# AC_LIBTOOL_LANG_C_CONFIG 2869bdcaa8d0Smrg 2870bdcaa8d0Smrg 287196ce994aSmrg# AC_LIBTOOL_LANG_CXX_CONFIG 287296ce994aSmrg# -------------------------- 287396ce994aSmrg# Ensure that the configuration vars for the C compiler are 287496ce994aSmrg# suitably defined. Those variables are subsequently used by 287596ce994aSmrg# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. 287696ce994aSmrgAC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)]) 287796ce994aSmrgAC_DEFUN([_LT_AC_LANG_CXX_CONFIG], 287896ce994aSmrg[AC_LANG_PUSH(C++) 287996ce994aSmrgAC_REQUIRE([AC_PROG_CXX]) 288096ce994aSmrgAC_REQUIRE([_LT_AC_PROG_CXXCPP]) 288196ce994aSmrg 288296ce994aSmrg_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 288396ce994aSmrg_LT_AC_TAGVAR(allow_undefined_flag, $1)= 288496ce994aSmrg_LT_AC_TAGVAR(always_export_symbols, $1)=no 288596ce994aSmrg_LT_AC_TAGVAR(archive_expsym_cmds, $1)= 288696ce994aSmrg_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= 288796ce994aSmrg_LT_AC_TAGVAR(hardcode_direct, $1)=no 288896ce994aSmrg_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= 288996ce994aSmrg_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= 289096ce994aSmrg_LT_AC_TAGVAR(hardcode_libdir_separator, $1)= 289196ce994aSmrg_LT_AC_TAGVAR(hardcode_minus_L, $1)=no 289296ce994aSmrg_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 289396ce994aSmrg_LT_AC_TAGVAR(hardcode_automatic, $1)=no 289496ce994aSmrg_LT_AC_TAGVAR(module_cmds, $1)= 289596ce994aSmrg_LT_AC_TAGVAR(module_expsym_cmds, $1)= 289696ce994aSmrg_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown 289796ce994aSmrg_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 289896ce994aSmrg_LT_AC_TAGVAR(no_undefined_flag, $1)= 289996ce994aSmrg_LT_AC_TAGVAR(whole_archive_flag_spec, $1)= 290096ce994aSmrg_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no 2901bdcaa8d0Smrg 290296ce994aSmrg# Dependencies to place before and after the object being linked: 290396ce994aSmrg_LT_AC_TAGVAR(predep_objects, $1)= 290496ce994aSmrg_LT_AC_TAGVAR(postdep_objects, $1)= 290596ce994aSmrg_LT_AC_TAGVAR(predeps, $1)= 290696ce994aSmrg_LT_AC_TAGVAR(postdeps, $1)= 290796ce994aSmrg_LT_AC_TAGVAR(compiler_lib_search_path, $1)= 290896ce994aSmrg_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)= 2909bdcaa8d0Smrg 291096ce994aSmrg# Source file extension for C++ test sources. 291196ce994aSmrgac_ext=cpp 2912bdcaa8d0Smrg 291396ce994aSmrg# Object file extension for compiled C++ test sources. 291496ce994aSmrgobjext=o 291596ce994aSmrg_LT_AC_TAGVAR(objext, $1)=$objext 291696ce994aSmrg 291796ce994aSmrg# Code to be used in simple compile tests 291896ce994aSmrglt_simple_compile_test_code="int some_variable = 0;" 291996ce994aSmrg 292096ce994aSmrg# Code to be used in simple link tests 292196ce994aSmrglt_simple_link_test_code='int main(int, char *[[]]) { return(0); }' 292296ce994aSmrg 292396ce994aSmrg# ltmain only uses $CC for tagged configurations so make sure $CC is set. 292496ce994aSmrg_LT_AC_SYS_COMPILER 292596ce994aSmrg 292696ce994aSmrg# save warnings/boilerplate of simple test code 292796ce994aSmrg_LT_COMPILER_BOILERPLATE 292896ce994aSmrg_LT_LINKER_BOILERPLATE 292996ce994aSmrg 293096ce994aSmrg# Allow CC to be a program name with arguments. 293196ce994aSmrglt_save_CC=$CC 293296ce994aSmrglt_save_LD=$LD 293396ce994aSmrglt_save_GCC=$GCC 293496ce994aSmrgGCC=$GXX 293596ce994aSmrglt_save_with_gnu_ld=$with_gnu_ld 293696ce994aSmrglt_save_path_LD=$lt_cv_path_LD 293796ce994aSmrgif test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 293896ce994aSmrg lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 293996ce994aSmrgelse 294096ce994aSmrg $as_unset lt_cv_prog_gnu_ld 294196ce994aSmrgfi 294296ce994aSmrgif test -n "${lt_cv_path_LDCXX+set}"; then 294396ce994aSmrg lt_cv_path_LD=$lt_cv_path_LDCXX 294496ce994aSmrgelse 294596ce994aSmrg $as_unset lt_cv_path_LD 294696ce994aSmrgfi 294796ce994aSmrgtest -z "${LDCXX+set}" || LD=$LDCXX 294896ce994aSmrgCC=${CXX-"c++"} 294996ce994aSmrgcompiler=$CC 295096ce994aSmrg_LT_AC_TAGVAR(compiler, $1)=$CC 295196ce994aSmrg_LT_CC_BASENAME([$compiler]) 295296ce994aSmrg 295396ce994aSmrg# We don't want -fno-exception wen compiling C++ code, so set the 295496ce994aSmrg# no_builtin_flag separately 295596ce994aSmrgif test "$GXX" = yes; then 295696ce994aSmrg _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' 295796ce994aSmrgelse 295896ce994aSmrg _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= 295996ce994aSmrgfi 296096ce994aSmrg 296196ce994aSmrgif test "$GXX" = yes; then 296296ce994aSmrg # Set up default GNU C++ configuration 296396ce994aSmrg 296496ce994aSmrg AC_PROG_LD 296596ce994aSmrg 296696ce994aSmrg # Check if GNU C++ uses GNU ld as the underlying linker, since the 296796ce994aSmrg # archiving commands below assume that GNU ld is being used. 296896ce994aSmrg if test "$with_gnu_ld" = yes; then 296996ce994aSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 297096ce994aSmrg _LT_AC_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' 297196ce994aSmrg 297296ce994aSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' 297396ce994aSmrg _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 297496ce994aSmrg 297596ce994aSmrg # If archive_cmds runs LD, not CC, wlarc should be empty 297696ce994aSmrg # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 297796ce994aSmrg # investigate it a little bit more. (MM) 297896ce994aSmrg wlarc='${wl}' 297996ce994aSmrg 298096ce994aSmrg # ancient GNU ld didn't support --whole-archive et. al. 298196ce994aSmrg if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 298296ce994aSmrg grep 'no-whole-archive' > /dev/null; then 298396ce994aSmrg _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 298472313efbSmrg else 298596ce994aSmrg _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= 298672313efbSmrg fi 298772313efbSmrg else 298896ce994aSmrg with_gnu_ld=no 298996ce994aSmrg wlarc= 299096ce994aSmrg 299196ce994aSmrg # A generic and very simple default shared library creation 299296ce994aSmrg # command for GNU C++ for the case where it uses the native 299396ce994aSmrg # linker, instead of GNU ld. If possible, this setting should 299496ce994aSmrg # overridden to take advantage of the native linker features on 299596ce994aSmrg # the platform it is being used on. 299696ce994aSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 299772313efbSmrg fi 2998bdcaa8d0Smrg 299996ce994aSmrg # Commands to make compiler produce verbose output that lists 300096ce994aSmrg # what "hidden" libraries, object files and flags are used when 300196ce994aSmrg # linking a shared library. 300296ce994aSmrg output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 300396ce994aSmrg 300472313efbSmrgelse 300596ce994aSmrg GXX=no 300696ce994aSmrg with_gnu_ld=no 300796ce994aSmrg wlarc= 300872313efbSmrgfi 3009bdcaa8d0Smrg 301096ce994aSmrg# PORTME: fill in a description of your system's C++ link characteristics 301196ce994aSmrgAC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) 301296ce994aSmrg_LT_AC_TAGVAR(ld_shlibs, $1)=yes 301396ce994aSmrgcase $host_os in 301496ce994aSmrg aix3*) 301596ce994aSmrg # FIXME: insert proper C++ library support 301696ce994aSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 301796ce994aSmrg ;; 301896ce994aSmrg aix[[4-9]]*) 301996ce994aSmrg if test "$host_cpu" = ia64; then 302096ce994aSmrg # On IA64, the linker does run time linking by default, so we don't 302196ce994aSmrg # have to do anything special. 302296ce994aSmrg aix_use_runtimelinking=no 302396ce994aSmrg exp_sym_flag='-Bexport' 302496ce994aSmrg no_entry_flag="" 302596ce994aSmrg else 302696ce994aSmrg aix_use_runtimelinking=no 302796ce994aSmrg 302896ce994aSmrg # Test if we are trying to use run time linking or normal 302996ce994aSmrg # AIX style linking. If -brtl is somewhere in LDFLAGS, we 303096ce994aSmrg # need to do runtime linking. 303196ce994aSmrg case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) 303296ce994aSmrg for ld_flag in $LDFLAGS; do 303396ce994aSmrg case $ld_flag in 303496ce994aSmrg *-brtl*) 303596ce994aSmrg aix_use_runtimelinking=yes 303696ce994aSmrg break 303796ce994aSmrg ;; 303896ce994aSmrg esac 303996ce994aSmrg done 304096ce994aSmrg ;; 304196ce994aSmrg esac 3042bdcaa8d0Smrg 304396ce994aSmrg exp_sym_flag='-bexport' 304496ce994aSmrg no_entry_flag='-bnoentry' 304596ce994aSmrg fi 3046bdcaa8d0Smrg 304796ce994aSmrg # When large executables or shared objects are built, AIX ld can 304896ce994aSmrg # have problems creating the table of contents. If linking a library 304996ce994aSmrg # or program results in "error TOC overflow" add -mminimal-toc to 305096ce994aSmrg # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 305196ce994aSmrg # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 3052bdcaa8d0Smrg 305396ce994aSmrg _LT_AC_TAGVAR(archive_cmds, $1)='' 305496ce994aSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=yes 305596ce994aSmrg _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' 305696ce994aSmrg _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 3057bdcaa8d0Smrg 305896ce994aSmrg if test "$GXX" = yes; then 305996ce994aSmrg case $host_os in aix4.[[012]]|aix4.[[012]].*) 306096ce994aSmrg # We only want to do this on AIX 4.2 and lower, the check 306196ce994aSmrg # below for broken collect2 doesn't work under 4.3+ 306296ce994aSmrg collect2name=`${CC} -print-prog-name=collect2` 306396ce994aSmrg if test -f "$collect2name" && \ 306496ce994aSmrg strings "$collect2name" | grep resolve_lib_name >/dev/null 306596ce994aSmrg then 306696ce994aSmrg # We have reworked collect2 306796ce994aSmrg : 306896ce994aSmrg else 306996ce994aSmrg # We have old collect2 307096ce994aSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported 307196ce994aSmrg # It fails to find uninstalled libraries when the uninstalled 307296ce994aSmrg # path is not listed in the libpath. Setting hardcode_minus_L 307396ce994aSmrg # to unsupported forces relinking 307496ce994aSmrg _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 307596ce994aSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 307696ce994aSmrg _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= 307796ce994aSmrg fi 307896ce994aSmrg ;; 307996ce994aSmrg esac 308096ce994aSmrg shared_flag='-shared' 308196ce994aSmrg if test "$aix_use_runtimelinking" = yes; then 308296ce994aSmrg shared_flag="$shared_flag "'${wl}-G' 308396ce994aSmrg fi 308496ce994aSmrg else 308596ce994aSmrg # not using gcc 308672313efbSmrg if test "$host_cpu" = ia64; then 308796ce994aSmrg # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 308896ce994aSmrg # chokes on -Wl,-G. The following line is correct: 308996ce994aSmrg shared_flag='-G' 309096ce994aSmrg else 309196ce994aSmrg if test "$aix_use_runtimelinking" = yes; then 309296ce994aSmrg shared_flag='${wl}-G' 309396ce994aSmrg else 309496ce994aSmrg shared_flag='${wl}-bM:SRE' 309596ce994aSmrg fi 309696ce994aSmrg fi 309796ce994aSmrg fi 309896ce994aSmrg 309996ce994aSmrg # It seems that -bexpall does not export symbols beginning with 310096ce994aSmrg # underscore (_), so it is better to generate a list of symbols to export. 310196ce994aSmrg _LT_AC_TAGVAR(always_export_symbols, $1)=yes 310296ce994aSmrg if test "$aix_use_runtimelinking" = yes; then 310396ce994aSmrg # Warning - without using the other runtime loading flags (-brtl), 310496ce994aSmrg # -berok will link without error, but may produce a broken library. 310596ce994aSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok' 310696ce994aSmrg # Determine the default libpath from the value encoded in an empty executable. 310796ce994aSmrg _LT_AC_SYS_LIBPATH_AIX 310896ce994aSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 310996ce994aSmrg 311096ce994aSmrg _LT_AC_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 "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 311196ce994aSmrg else 311296ce994aSmrg if test "$host_cpu" = ia64; then 311396ce994aSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' 311496ce994aSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" 311596ce994aSmrg _LT_AC_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" 311696ce994aSmrg else 311796ce994aSmrg # Determine the default libpath from the value encoded in an empty executable. 311896ce994aSmrg _LT_AC_SYS_LIBPATH_AIX 311996ce994aSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 312096ce994aSmrg # Warning - without using the other run time loading flags, 312196ce994aSmrg # -berok will link without error, but may produce a broken library. 312296ce994aSmrg _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' 312396ce994aSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' 312496ce994aSmrg # Exported symbols can be pulled into shared objects from archives 312596ce994aSmrg _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience' 312696ce994aSmrg _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes 312796ce994aSmrg # This is similar to how AIX traditionally builds its shared libraries. 312896ce994aSmrg _LT_AC_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' 312996ce994aSmrg fi 313096ce994aSmrg fi 313196ce994aSmrg ;; 313296ce994aSmrg 313396ce994aSmrg beos*) 313496ce994aSmrg if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 313596ce994aSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported 313696ce994aSmrg # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 313796ce994aSmrg # support --undefined. This deserves some investigation. FIXME 313896ce994aSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 313996ce994aSmrg else 314096ce994aSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 314196ce994aSmrg fi 314296ce994aSmrg ;; 314396ce994aSmrg 314496ce994aSmrg chorus*) 314596ce994aSmrg case $cc_basename in 314696ce994aSmrg *) 314796ce994aSmrg # FIXME: insert proper C++ library support 314896ce994aSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 314996ce994aSmrg ;; 315096ce994aSmrg esac 315196ce994aSmrg ;; 315296ce994aSmrg 315396ce994aSmrg cygwin* | mingw* | pw32*) 315496ce994aSmrg # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, 315596ce994aSmrg # as there is no search path for DLLs. 315696ce994aSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 315796ce994aSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported 315896ce994aSmrg _LT_AC_TAGVAR(always_export_symbols, $1)=no 315996ce994aSmrg _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 316096ce994aSmrg 316196ce994aSmrg if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 316296ce994aSmrg _LT_AC_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' 316396ce994aSmrg # If the export-symbols file already is a .def file (1st line 316496ce994aSmrg # is EXPORTS), use it as is; otherwise, prepend... 316596ce994aSmrg _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 316696ce994aSmrg cp $export_symbols $output_objdir/$soname.def; 316796ce994aSmrg else 316896ce994aSmrg echo EXPORTS > $output_objdir/$soname.def; 316996ce994aSmrg cat $export_symbols >> $output_objdir/$soname.def; 317096ce994aSmrg fi~ 317196ce994aSmrg $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' 317296ce994aSmrg else 317396ce994aSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 317496ce994aSmrg fi 317596ce994aSmrg ;; 317696ce994aSmrg darwin* | rhapsody*) 317796ce994aSmrg _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 317896ce994aSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=no 317996ce994aSmrg _LT_AC_TAGVAR(hardcode_automatic, $1)=yes 318096ce994aSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 318196ce994aSmrg _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='' 318296ce994aSmrg _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 318396ce994aSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined" 318496ce994aSmrg if test "$GXX" = yes ; then 318596ce994aSmrg output_verbose_link_cmd='echo' 318696ce994aSmrg _LT_AC_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}" 318796ce994aSmrg _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 318896ce994aSmrg _LT_AC_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}" 318996ce994aSmrg _LT_AC_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}" 319096ce994aSmrg if test "$lt_cv_apple_cc_single_mod" != "yes"; then 319196ce994aSmrg _LT_AC_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}" 319296ce994aSmrg _LT_AC_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}" 319396ce994aSmrg fi 319496ce994aSmrg else 319596ce994aSmrg case $cc_basename in 319696ce994aSmrg xlc*) 319796ce994aSmrg output_verbose_link_cmd='echo' 319896ce994aSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 319996ce994aSmrg _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 320096ce994aSmrg # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 320196ce994aSmrg _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 320296ce994aSmrg _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 320396ce994aSmrg ;; 320496ce994aSmrg *) 320596ce994aSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 320696ce994aSmrg ;; 320796ce994aSmrg esac 320896ce994aSmrg fi 320996ce994aSmrg ;; 321096ce994aSmrg 321196ce994aSmrg dgux*) 321296ce994aSmrg case $cc_basename in 321396ce994aSmrg ec++*) 321496ce994aSmrg # FIXME: insert proper C++ library support 321596ce994aSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 321696ce994aSmrg ;; 321796ce994aSmrg ghcx*) 321896ce994aSmrg # Green Hills C++ Compiler 321996ce994aSmrg # FIXME: insert proper C++ library support 322096ce994aSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 322196ce994aSmrg ;; 322296ce994aSmrg *) 322396ce994aSmrg # FIXME: insert proper C++ library support 322496ce994aSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 322596ce994aSmrg ;; 322696ce994aSmrg esac 322796ce994aSmrg ;; 322896ce994aSmrg freebsd[[12]]*) 322996ce994aSmrg # C++ shared libraries reported to be fairly broken before switch to ELF 323096ce994aSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 323196ce994aSmrg ;; 323296ce994aSmrg freebsd-elf*) 323396ce994aSmrg _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 323496ce994aSmrg ;; 323596ce994aSmrg freebsd* | dragonfly*) 323696ce994aSmrg # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 323796ce994aSmrg # conventions 323896ce994aSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=yes 323996ce994aSmrg ;; 324096ce994aSmrg gnu*) 324196ce994aSmrg ;; 324296ce994aSmrg hpux9*) 324396ce994aSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 324496ce994aSmrg _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 324596ce994aSmrg _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 324696ce994aSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=yes 324796ce994aSmrg _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, 324896ce994aSmrg # but as the default 324996ce994aSmrg # location of the library. 325096ce994aSmrg 325196ce994aSmrg case $cc_basename in 325296ce994aSmrg CC*) 325396ce994aSmrg # FIXME: insert proper C++ library support 325496ce994aSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 325596ce994aSmrg ;; 325696ce994aSmrg aCC*) 325796ce994aSmrg _LT_AC_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' 325896ce994aSmrg # Commands to make compiler produce verbose output that lists 325996ce994aSmrg # what "hidden" libraries, object files and flags are used when 326096ce994aSmrg # linking a shared library. 326196ce994aSmrg # 326296ce994aSmrg # There doesn't appear to be a way to prevent this compiler from 326396ce994aSmrg # explicitly linking system object files so we need to strip them 326496ce994aSmrg # from the output so that they don't get included in the library 326596ce994aSmrg # dependencies. 326696ce994aSmrg 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 $list' 326796ce994aSmrg ;; 326896ce994aSmrg *) 326996ce994aSmrg if test "$GXX" = yes; then 327096ce994aSmrg _LT_AC_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' 327196ce994aSmrg else 327296ce994aSmrg # FIXME: insert proper C++ library support 327396ce994aSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 327472313efbSmrg fi 327572313efbSmrg ;; 327696ce994aSmrg esac 327796ce994aSmrg ;; 327896ce994aSmrg hpux10*|hpux11*) 327996ce994aSmrg if test $with_gnu_ld = no; then 328096ce994aSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 328196ce994aSmrg _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 3282bdcaa8d0Smrg 328372313efbSmrg case $host_cpu in 328496ce994aSmrg hppa*64*|ia64*) ;; 328596ce994aSmrg *) 328696ce994aSmrg _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 328772313efbSmrg ;; 328872313efbSmrg esac 328996ce994aSmrg fi 329096ce994aSmrg case $host_cpu in 329196ce994aSmrg hppa*64*|ia64*) 329296ce994aSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=no 329396ce994aSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 329496ce994aSmrg ;; 329596ce994aSmrg *) 329696ce994aSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=yes 329796ce994aSmrg _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, 329896ce994aSmrg # but as the default 329996ce994aSmrg # location of the library. 330072313efbSmrg ;; 330196ce994aSmrg esac 3302bdcaa8d0Smrg 330396ce994aSmrg case $cc_basename in 330496ce994aSmrg CC*) 330596ce994aSmrg # FIXME: insert proper C++ library support 330696ce994aSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 330772313efbSmrg ;; 330896ce994aSmrg aCC*) 330996ce994aSmrg case $host_cpu in 331096ce994aSmrg hppa*64*) 331196ce994aSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 331296ce994aSmrg ;; 331396ce994aSmrg ia64*) 331496ce994aSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 331596ce994aSmrg ;; 331696ce994aSmrg *) 331796ce994aSmrg _LT_AC_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' 331872313efbSmrg ;; 331972313efbSmrg esac 332096ce994aSmrg # Commands to make compiler produce verbose output that lists 332196ce994aSmrg # what "hidden" libraries, object files and flags are used when 332296ce994aSmrg # linking a shared library. 332396ce994aSmrg # 332496ce994aSmrg # There doesn't appear to be a way to prevent this compiler from 332596ce994aSmrg # explicitly linking system object files so we need to strip them 332696ce994aSmrg # from the output so that they don't get included in the library 332796ce994aSmrg # dependencies. 332896ce994aSmrg 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 $list' 332972313efbSmrg ;; 333096ce994aSmrg *) 333196ce994aSmrg if test "$GXX" = yes; then 333296ce994aSmrg if test $with_gnu_ld = no; then 333372313efbSmrg case $host_cpu in 333496ce994aSmrg hppa*64*) 333596ce994aSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 333696ce994aSmrg ;; 333796ce994aSmrg ia64*) 333896ce994aSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 333972313efbSmrg ;; 334072313efbSmrg *) 334196ce994aSmrg _LT_AC_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' 334272313efbSmrg ;; 334372313efbSmrg esac 334496ce994aSmrg fi 334596ce994aSmrg else 334696ce994aSmrg # FIXME: insert proper C++ library support 334796ce994aSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 334896ce994aSmrg fi 334972313efbSmrg ;; 335096ce994aSmrg esac 335196ce994aSmrg ;; 335296ce994aSmrg interix[[3-9]]*) 335396ce994aSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=no 335496ce994aSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 335596ce994aSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 335696ce994aSmrg _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 335796ce994aSmrg # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 335896ce994aSmrg # Instead, shared libraries are loaded at an image base (0x10000000 by 335996ce994aSmrg # default) and relocated if they conflict, which is a slow very memory 336096ce994aSmrg # consuming and fragmenting process. To avoid this, we pick a random, 336196ce994aSmrg # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 336296ce994aSmrg # time. Moving up from 0x10000000 also allows more sbrk(2) space. 336396ce994aSmrg _LT_AC_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' 336496ce994aSmrg _LT_AC_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' 336596ce994aSmrg ;; 336696ce994aSmrg irix5* | irix6*) 336796ce994aSmrg case $cc_basename in 336896ce994aSmrg CC*) 336996ce994aSmrg # SGI C++ 337096ce994aSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 337196ce994aSmrg 337296ce994aSmrg # Archives containing C++ object files must be created using 337396ce994aSmrg # "CC -ar", where "CC" is the IRIX C++ compiler. This is 337496ce994aSmrg # necessary to make sure instantiated templates are included 337596ce994aSmrg # in the archive. 337696ce994aSmrg _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' 337772313efbSmrg ;; 337896ce994aSmrg *) 337996ce994aSmrg if test "$GXX" = yes; then 338096ce994aSmrg if test "$with_gnu_ld" = no; then 338196ce994aSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 338296ce994aSmrg else 338396ce994aSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib' 338496ce994aSmrg fi 338596ce994aSmrg fi 338696ce994aSmrg _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 338796ce994aSmrg ;; 338896ce994aSmrg esac 338996ce994aSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 339096ce994aSmrg _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 339196ce994aSmrg ;; 339296ce994aSmrg linux* | k*bsd*-gnu) 339396ce994aSmrg case $cc_basename in 339496ce994aSmrg KCC*) 339596ce994aSmrg # Kuck and Associates, Inc. (KAI) C++ Compiler 339696ce994aSmrg 339796ce994aSmrg # KCC will only create a shared library if the output file 339896ce994aSmrg # ends with ".so" (or ".sl" for HP-UX), so rename the library 339996ce994aSmrg # to its proper name (with version) after linking. 340096ce994aSmrg _LT_AC_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' 340196ce994aSmrg _LT_AC_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' 340296ce994aSmrg # Commands to make compiler produce verbose output that lists 340396ce994aSmrg # what "hidden" libraries, object files and flags are used when 340496ce994aSmrg # linking a shared library. 340596ce994aSmrg # 340696ce994aSmrg # There doesn't appear to be a way to prevent this compiler from 340796ce994aSmrg # explicitly linking system object files so we need to strip them 340896ce994aSmrg # from the output so that they don't get included in the library 340996ce994aSmrg # dependencies. 341096ce994aSmrg 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 $list' 341196ce994aSmrg 341296ce994aSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir' 341396ce994aSmrg _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 341496ce994aSmrg 341596ce994aSmrg # Archives containing C++ object files must be created using 341696ce994aSmrg # "CC -Bstatic", where "CC" is the KAI C++ compiler. 341796ce994aSmrg _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' 341896ce994aSmrg ;; 341996ce994aSmrg icpc*) 342096ce994aSmrg # Intel C++ 342196ce994aSmrg with_gnu_ld=yes 342296ce994aSmrg # version 8.0 and above of icpc choke on multiply defined symbols 342396ce994aSmrg # if we add $predep_objects and $postdep_objects, however 7.1 and 342496ce994aSmrg # earlier do not add the objects themselves. 342596ce994aSmrg case `$CC -V 2>&1` in 342696ce994aSmrg *"Version 7."*) 342796ce994aSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 342896ce994aSmrg _LT_AC_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' 342996ce994aSmrg ;; 343096ce994aSmrg *) # Version 8.0 or newer 343196ce994aSmrg tmp_idyn= 343296ce994aSmrg case $host_cpu in 343396ce994aSmrg ia64*) tmp_idyn=' -i_dynamic';; 343496ce994aSmrg esac 343596ce994aSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 343696ce994aSmrg _LT_AC_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' 343796ce994aSmrg ;; 343872313efbSmrg esac 343996ce994aSmrg _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 344096ce994aSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 344196ce994aSmrg _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 344296ce994aSmrg _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 344372313efbSmrg ;; 344496ce994aSmrg pgCC* | pgcpp*) 344596ce994aSmrg # Portland Group C++ compiler 344696ce994aSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 344796ce994aSmrg _LT_AC_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' 344896ce994aSmrg 344996ce994aSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' 345096ce994aSmrg _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 345196ce994aSmrg _LT_AC_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' 345296ce994aSmrg ;; 345396ce994aSmrg cxx*) 345496ce994aSmrg # Compaq C++ 345596ce994aSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 345696ce994aSmrg _LT_AC_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' 345796ce994aSmrg 345896ce994aSmrg runpath_var=LD_RUN_PATH 345996ce994aSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 346096ce994aSmrg _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 346196ce994aSmrg 346296ce994aSmrg # Commands to make compiler produce verbose output that lists 346396ce994aSmrg # what "hidden" libraries, object files and flags are used when 346496ce994aSmrg # linking a shared library. 346596ce994aSmrg # 346696ce994aSmrg # There doesn't appear to be a way to prevent this compiler from 346796ce994aSmrg # explicitly linking system object files so we need to strip them 346896ce994aSmrg # from the output so that they don't get included in the library 346996ce994aSmrg # dependencies. 347096ce994aSmrg output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 347196ce994aSmrg ;; 347296ce994aSmrg *) 347396ce994aSmrg case `$CC -V 2>&1 | sed 5q` in 347496ce994aSmrg *Sun\ C*) 347596ce994aSmrg # Sun C++ 5.9 347696ce994aSmrg _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs' 347796ce994aSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 347896ce994aSmrg _LT_AC_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' 347996ce994aSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 348096ce994aSmrg _LT_AC_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' 348196ce994aSmrg 348296ce994aSmrg # Not sure whether something based on 348396ce994aSmrg # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 348496ce994aSmrg # would be better. 348596ce994aSmrg output_verbose_link_cmd='echo' 348696ce994aSmrg 348796ce994aSmrg # Archives containing C++ object files must be created using 348896ce994aSmrg # "CC -xar", where "CC" is the Sun C++ compiler. This is 348996ce994aSmrg # necessary to make sure instantiated templates are included 349096ce994aSmrg # in the archive. 349196ce994aSmrg _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' 349296ce994aSmrg ;; 349372313efbSmrg esac 349472313efbSmrg ;; 349596ce994aSmrg esac 349696ce994aSmrg ;; 349796ce994aSmrg lynxos*) 349896ce994aSmrg # FIXME: insert proper C++ library support 349996ce994aSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 350096ce994aSmrg ;; 350196ce994aSmrg m88k*) 350296ce994aSmrg # FIXME: insert proper C++ library support 350396ce994aSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 350496ce994aSmrg ;; 350596ce994aSmrg mvs*) 350696ce994aSmrg case $cc_basename in 350796ce994aSmrg cxx*) 350896ce994aSmrg # FIXME: insert proper C++ library support 350996ce994aSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 351072313efbSmrg ;; 351196ce994aSmrg *) 351296ce994aSmrg # FIXME: insert proper C++ library support 351396ce994aSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 351472313efbSmrg ;; 351596ce994aSmrg esac 351696ce994aSmrg ;; 351796ce994aSmrg netbsd*) 351896ce994aSmrg if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 351996ce994aSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 352096ce994aSmrg wlarc= 352196ce994aSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 352296ce994aSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=yes 352396ce994aSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 352496ce994aSmrg fi 352596ce994aSmrg # Workaround some broken pre-1.5 toolchains 352696ce994aSmrg output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 352796ce994aSmrg ;; 352896ce994aSmrg openbsd2*) 352996ce994aSmrg # C++ shared libraries are fairly broken 353096ce994aSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 353196ce994aSmrg ;; 353296ce994aSmrg openbsd*) 353396ce994aSmrg if test -f /usr/libexec/ld.so; then 353496ce994aSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=yes 353596ce994aSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 353696ce994aSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 353796ce994aSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 353896ce994aSmrg if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 353996ce994aSmrg _LT_AC_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' 354096ce994aSmrg _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 354196ce994aSmrg _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 354296ce994aSmrg fi 354396ce994aSmrg output_verbose_link_cmd='echo' 354496ce994aSmrg else 354596ce994aSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 354696ce994aSmrg fi 354796ce994aSmrg ;; 354896ce994aSmrg osf3*) 354996ce994aSmrg case $cc_basename in 355096ce994aSmrg KCC*) 355196ce994aSmrg # Kuck and Associates, Inc. (KAI) C++ Compiler 355296ce994aSmrg 355396ce994aSmrg # KCC will only create a shared library if the output file 355496ce994aSmrg # ends with ".so" (or ".sl" for HP-UX), so rename the library 355596ce994aSmrg # to its proper name (with version) after linking. 355696ce994aSmrg _LT_AC_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' 355796ce994aSmrg 355896ce994aSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 355996ce994aSmrg _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 356096ce994aSmrg 356196ce994aSmrg # Archives containing C++ object files must be created using 356296ce994aSmrg # "CC -Bstatic", where "CC" is the KAI C++ compiler. 356396ce994aSmrg _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' 356496ce994aSmrg 356572313efbSmrg ;; 356696ce994aSmrg RCC*) 356796ce994aSmrg # Rational C++ 2.4.1 356896ce994aSmrg # FIXME: insert proper C++ library support 356996ce994aSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 357072313efbSmrg ;; 357196ce994aSmrg cxx*) 357296ce994aSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 357396ce994aSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 357496ce994aSmrg 357596ce994aSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 357696ce994aSmrg _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 357796ce994aSmrg 357896ce994aSmrg # Commands to make compiler produce verbose output that lists 357996ce994aSmrg # what "hidden" libraries, object files and flags are used when 358096ce994aSmrg # linking a shared library. 358196ce994aSmrg # 358296ce994aSmrg # There doesn't appear to be a way to prevent this compiler from 358396ce994aSmrg # explicitly linking system object files so we need to strip them 358496ce994aSmrg # from the output so that they don't get included in the library 358596ce994aSmrg # dependencies. 358696ce994aSmrg output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 358772313efbSmrg ;; 358896ce994aSmrg *) 358996ce994aSmrg if test "$GXX" = yes && test "$with_gnu_ld" = no; then 359096ce994aSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 359196ce994aSmrg _LT_AC_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 ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 359296ce994aSmrg 359396ce994aSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 359496ce994aSmrg _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 359596ce994aSmrg 359696ce994aSmrg # Commands to make compiler produce verbose output that lists 359796ce994aSmrg # what "hidden" libraries, object files and flags are used when 359896ce994aSmrg # linking a shared library. 359996ce994aSmrg output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 360096ce994aSmrg 360196ce994aSmrg else 360296ce994aSmrg # FIXME: insert proper C++ library support 360396ce994aSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 360496ce994aSmrg fi 360572313efbSmrg ;; 360696ce994aSmrg esac 360796ce994aSmrg ;; 360896ce994aSmrg osf4* | osf5*) 360996ce994aSmrg case $cc_basename in 361096ce994aSmrg KCC*) 361196ce994aSmrg # Kuck and Associates, Inc. (KAI) C++ Compiler 361296ce994aSmrg 361396ce994aSmrg # KCC will only create a shared library if the output file 361496ce994aSmrg # ends with ".so" (or ".sl" for HP-UX), so rename the library 361596ce994aSmrg # to its proper name (with version) after linking. 361696ce994aSmrg _LT_AC_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' 361796ce994aSmrg 361896ce994aSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 361996ce994aSmrg _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 362096ce994aSmrg 362196ce994aSmrg # Archives containing C++ object files must be created using 362296ce994aSmrg # the KAI C++ compiler. 362396ce994aSmrg _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' 362472313efbSmrg ;; 362596ce994aSmrg RCC*) 362696ce994aSmrg # Rational C++ 2.4.1 362796ce994aSmrg # FIXME: insert proper C++ library support 362896ce994aSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 362972313efbSmrg ;; 363096ce994aSmrg cxx*) 363196ce994aSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 363296ce994aSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 363396ce994aSmrg _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 363496ce994aSmrg echo "-hidden">> $lib.exp~ 363596ce994aSmrg $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~ 363696ce994aSmrg $rm $lib.exp' 363796ce994aSmrg 363896ce994aSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 363996ce994aSmrg _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 364096ce994aSmrg 364196ce994aSmrg # Commands to make compiler produce verbose output that lists 364296ce994aSmrg # what "hidden" libraries, object files and flags are used when 364396ce994aSmrg # linking a shared library. 364496ce994aSmrg # 364596ce994aSmrg # There doesn't appear to be a way to prevent this compiler from 364696ce994aSmrg # explicitly linking system object files so we need to strip them 364796ce994aSmrg # from the output so that they don't get included in the library 364896ce994aSmrg # dependencies. 364996ce994aSmrg output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 365072313efbSmrg ;; 365196ce994aSmrg *) 365296ce994aSmrg if test "$GXX" = yes && test "$with_gnu_ld" = no; then 365396ce994aSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 365496ce994aSmrg _LT_AC_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` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 365596ce994aSmrg 365696ce994aSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 365796ce994aSmrg _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 365896ce994aSmrg 365996ce994aSmrg # Commands to make compiler produce verbose output that lists 366096ce994aSmrg # what "hidden" libraries, object files and flags are used when 366196ce994aSmrg # linking a shared library. 366296ce994aSmrg output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 366396ce994aSmrg 366496ce994aSmrg else 366596ce994aSmrg # FIXME: insert proper C++ library support 366696ce994aSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 366796ce994aSmrg fi 366896ce994aSmrg ;; 366996ce994aSmrg esac 367096ce994aSmrg ;; 367196ce994aSmrg psos*) 367296ce994aSmrg # FIXME: insert proper C++ library support 367396ce994aSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 367496ce994aSmrg ;; 367596ce994aSmrg sunos4*) 367696ce994aSmrg case $cc_basename in 367796ce994aSmrg CC*) 367896ce994aSmrg # Sun C++ 4.x 367996ce994aSmrg # FIXME: insert proper C++ library support 368096ce994aSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 368196ce994aSmrg ;; 368296ce994aSmrg lcc*) 368396ce994aSmrg # Lucid 368496ce994aSmrg # FIXME: insert proper C++ library support 368596ce994aSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 368696ce994aSmrg ;; 368796ce994aSmrg *) 368896ce994aSmrg # FIXME: insert proper C++ library support 368996ce994aSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 369096ce994aSmrg ;; 369196ce994aSmrg esac 369296ce994aSmrg ;; 369396ce994aSmrg solaris*) 369496ce994aSmrg case $cc_basename in 369596ce994aSmrg CC*) 369696ce994aSmrg # Sun C++ 4.2, 5.x and Centerline C++ 369796ce994aSmrg _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes 369896ce994aSmrg _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs' 369996ce994aSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 370096ce994aSmrg _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 370196ce994aSmrg $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' 370296ce994aSmrg 370396ce994aSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 370496ce994aSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 370596ce994aSmrg case $host_os in 370696ce994aSmrg solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 370772313efbSmrg *) 370896ce994aSmrg # The compiler driver will combine and reorder linker options, 370996ce994aSmrg # but understands `-z linker_flag'. 371096ce994aSmrg # Supported since Solaris 2.6 (maybe 2.5.1?) 371196ce994aSmrg _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' 371272313efbSmrg ;; 371372313efbSmrg esac 371496ce994aSmrg _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 371596ce994aSmrg 371696ce994aSmrg output_verbose_link_cmd='echo' 371796ce994aSmrg 371896ce994aSmrg # Archives containing C++ object files must be created using 371996ce994aSmrg # "CC -xar", where "CC" is the Sun C++ compiler. This is 372096ce994aSmrg # necessary to make sure instantiated templates are included 372196ce994aSmrg # in the archive. 372296ce994aSmrg _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' 372372313efbSmrg ;; 372496ce994aSmrg gcx*) 372596ce994aSmrg # Green Hills C++ Compiler 372696ce994aSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 372796ce994aSmrg 372896ce994aSmrg # The C++ compiler must be used to create the archive. 372996ce994aSmrg _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 373072313efbSmrg ;; 373172313efbSmrg *) 373296ce994aSmrg # GNU C++ compiler with Solaris linker 373396ce994aSmrg if test "$GXX" = yes && test "$with_gnu_ld" = no; then 373496ce994aSmrg _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs' 373596ce994aSmrg if $CC --version | grep -v '^2\.7' > /dev/null; then 373696ce994aSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 373796ce994aSmrg _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 373896ce994aSmrg $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 3739bdcaa8d0Smrg 374096ce994aSmrg # Commands to make compiler produce verbose output that lists 374196ce994aSmrg # what "hidden" libraries, object files and flags are used when 374296ce994aSmrg # linking a shared library. 374396ce994aSmrg output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 374496ce994aSmrg else 374596ce994aSmrg # g++ 2.7 appears to require `-G' NOT `-shared' on this 374696ce994aSmrg # platform. 374796ce994aSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 374896ce994aSmrg _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 374996ce994aSmrg $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 3750bdcaa8d0Smrg 375196ce994aSmrg # Commands to make compiler produce verbose output that lists 375296ce994aSmrg # what "hidden" libraries, object files and flags are used when 375396ce994aSmrg # linking a shared library. 375496ce994aSmrg output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 375596ce994aSmrg fi 3756bdcaa8d0Smrg 375796ce994aSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' 375896ce994aSmrg case $host_os in 375996ce994aSmrg solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 376096ce994aSmrg *) 376196ce994aSmrg _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 376296ce994aSmrg ;; 376396ce994aSmrg esac 376496ce994aSmrg fi 376596ce994aSmrg ;; 376696ce994aSmrg esac 376796ce994aSmrg ;; 376896ce994aSmrg sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) 376996ce994aSmrg _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' 377096ce994aSmrg _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 377196ce994aSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 377296ce994aSmrg runpath_var='LD_RUN_PATH' 377396ce994aSmrg 377496ce994aSmrg case $cc_basename in 377596ce994aSmrg CC*) 377696ce994aSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 377796ce994aSmrg _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 377872313efbSmrg ;; 377972313efbSmrg *) 378096ce994aSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 378196ce994aSmrg _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 378272313efbSmrg ;; 378372313efbSmrg esac 378496ce994aSmrg ;; 378596ce994aSmrg sysv5* | sco3.2v5* | sco5v6*) 378696ce994aSmrg # Note: We can NOT use -z defs as we might desire, because we do not 378796ce994aSmrg # link with -lc, and that would cause any symbols used from libc to 378896ce994aSmrg # always be unresolved, which means just about no library would 378996ce994aSmrg # ever link correctly. If we're not using GNU ld we use -z text 379096ce994aSmrg # though, which does catch some bad symbols but isn't as heavy-handed 379196ce994aSmrg # as -z defs. 379296ce994aSmrg # For security reasons, it is highly recommended that you always 379396ce994aSmrg # use absolute paths for naming shared libraries, and exclude the 379496ce994aSmrg # DT_RUNPATH tag from executables and libraries. But doing so 379596ce994aSmrg # requires that you compile everything twice, which is a pain. 379696ce994aSmrg # So that behaviour is only enabled if SCOABSPATH is set to a 379796ce994aSmrg # non-empty value in the environment. Most likely only useful for 379896ce994aSmrg # creating official distributions of packages. 379996ce994aSmrg # This is a hack until libtool officially supports absolute path 380096ce994aSmrg # names for shared libraries. 380196ce994aSmrg _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' 380296ce994aSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' 380396ce994aSmrg _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 380496ce994aSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 380596ce994aSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 380696ce994aSmrg _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' 380796ce994aSmrg _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 380896ce994aSmrg _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' 380996ce994aSmrg runpath_var='LD_RUN_PATH' 381096ce994aSmrg 381196ce994aSmrg case $cc_basename in 381296ce994aSmrg CC*) 381396ce994aSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 381496ce994aSmrg _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 381572313efbSmrg ;; 381672313efbSmrg *) 381796ce994aSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 381896ce994aSmrg _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 381972313efbSmrg ;; 382096ce994aSmrg esac 382196ce994aSmrg ;; 382296ce994aSmrg tandem*) 382396ce994aSmrg case $cc_basename in 382496ce994aSmrg NCC*) 382596ce994aSmrg # NonStop-UX NCC 3.20 382696ce994aSmrg # FIXME: insert proper C++ library support 382796ce994aSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 382872313efbSmrg ;; 382972313efbSmrg *) 383096ce994aSmrg # FIXME: insert proper C++ library support 383196ce994aSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 383272313efbSmrg ;; 383396ce994aSmrg esac 383496ce994aSmrg ;; 383596ce994aSmrg vxworks*) 383696ce994aSmrg # FIXME: insert proper C++ library support 383796ce994aSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 383896ce994aSmrg ;; 383996ce994aSmrg *) 384096ce994aSmrg # FIXME: insert proper C++ library support 384196ce994aSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 384296ce994aSmrg ;; 384396ce994aSmrgesac 384496ce994aSmrgAC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)]) 384596ce994aSmrgtest "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no 3846bdcaa8d0Smrg 384796ce994aSmrg_LT_AC_TAGVAR(GCC, $1)="$GXX" 384896ce994aSmrg_LT_AC_TAGVAR(LD, $1)="$LD" 3849bdcaa8d0Smrg 385096ce994aSmrgAC_LIBTOOL_POSTDEP_PREDEP($1) 385196ce994aSmrgAC_LIBTOOL_PROG_COMPILER_PIC($1) 385296ce994aSmrgAC_LIBTOOL_PROG_CC_C_O($1) 385396ce994aSmrgAC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) 385496ce994aSmrgAC_LIBTOOL_PROG_LD_SHLIBS($1) 385596ce994aSmrgAC_LIBTOOL_SYS_DYNAMIC_LINKER($1) 385696ce994aSmrgAC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) 3857bdcaa8d0Smrg 385896ce994aSmrgAC_LIBTOOL_CONFIG($1) 3859bdcaa8d0Smrg 386096ce994aSmrgAC_LANG_POP 386196ce994aSmrgCC=$lt_save_CC 386296ce994aSmrgLDCXX=$LD 386396ce994aSmrgLD=$lt_save_LD 386496ce994aSmrgGCC=$lt_save_GCC 386596ce994aSmrgwith_gnu_ldcxx=$with_gnu_ld 386696ce994aSmrgwith_gnu_ld=$lt_save_with_gnu_ld 386796ce994aSmrglt_cv_path_LDCXX=$lt_cv_path_LD 386896ce994aSmrglt_cv_path_LD=$lt_save_path_LD 386996ce994aSmrglt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 387096ce994aSmrglt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 387196ce994aSmrg])# AC_LIBTOOL_LANG_CXX_CONFIG 387296ce994aSmrg 387396ce994aSmrg# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME]) 387496ce994aSmrg# ------------------------------------ 387596ce994aSmrg# Figure out "hidden" library dependencies from verbose 387696ce994aSmrg# compiler output when linking a shared library. 387796ce994aSmrg# Parse the compiler output and extract the necessary 387896ce994aSmrg# objects, libraries and library flags. 387996ce994aSmrgAC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP], 388096ce994aSmrg[AC_REQUIRE([LT_AC_PROG_SED])dnl 388196ce994aSmrgdnl we can't use the lt_simple_compile_test_code here, 388296ce994aSmrgdnl because it contains code intended for an executable, 388396ce994aSmrgdnl not a library. It's possible we should let each 388496ce994aSmrgdnl tag define a new lt_????_link_test_code variable, 388596ce994aSmrgdnl but it's only used here... 388696ce994aSmrgifelse([$1],[],[cat > conftest.$ac_ext <<EOF 388796ce994aSmrgint a; 388896ce994aSmrgvoid foo (void) { a = 0; } 388996ce994aSmrgEOF 389096ce994aSmrg],[$1],[CXX],[cat > conftest.$ac_ext <<EOF 389196ce994aSmrgclass Foo 389296ce994aSmrg{ 389396ce994aSmrgpublic: 389496ce994aSmrg Foo (void) { a = 0; } 389596ce994aSmrgprivate: 389696ce994aSmrg int a; 389796ce994aSmrg}; 389896ce994aSmrgEOF 389996ce994aSmrg],[$1],[F77],[cat > conftest.$ac_ext <<EOF 390096ce994aSmrg subroutine foo 390196ce994aSmrg implicit none 390296ce994aSmrg integer*4 a 390396ce994aSmrg a=0 390496ce994aSmrg return 390596ce994aSmrg end 390696ce994aSmrgEOF 390796ce994aSmrg],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF 390896ce994aSmrgpublic class foo { 390996ce994aSmrg private int a; 391096ce994aSmrg public void bar (void) { 391196ce994aSmrg a = 0; 391296ce994aSmrg } 391396ce994aSmrg}; 391496ce994aSmrgEOF 391596ce994aSmrg]) 391696ce994aSmrgdnl Parse the compiler output and extract the necessary 391796ce994aSmrgdnl objects, libraries and library flags. 391896ce994aSmrgif AC_TRY_EVAL(ac_compile); then 391996ce994aSmrg # Parse the compiler output and extract the necessary 392096ce994aSmrg # objects, libraries and library flags. 3921bdcaa8d0Smrg 392296ce994aSmrg # Sentinel used to keep track of whether or not we are before 392396ce994aSmrg # the conftest object file. 392496ce994aSmrg pre_test_object_deps_done=no 3925bdcaa8d0Smrg 392696ce994aSmrg # The `*' in the case matches for architectures that use `case' in 392796ce994aSmrg # $output_verbose_cmd can trigger glob expansion during the loop 392896ce994aSmrg # eval without this substitution. 392996ce994aSmrg output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 3930bdcaa8d0Smrg 393196ce994aSmrg for p in `eval $output_verbose_link_cmd`; do 393296ce994aSmrg case $p in 3933bdcaa8d0Smrg 393496ce994aSmrg -L* | -R* | -l*) 393596ce994aSmrg # Some compilers place space between "-{L,R}" and the path. 393696ce994aSmrg # Remove the space. 393796ce994aSmrg if test $p = "-L" \ 393896ce994aSmrg || test $p = "-R"; then 393996ce994aSmrg prev=$p 394096ce994aSmrg continue 394196ce994aSmrg else 394296ce994aSmrg prev= 394396ce994aSmrg fi 3944bdcaa8d0Smrg 394596ce994aSmrg if test "$pre_test_object_deps_done" = no; then 394696ce994aSmrg case $p in 394796ce994aSmrg -L* | -R*) 394896ce994aSmrg # Internal compiler library paths should come after those 394996ce994aSmrg # provided the user. The postdeps already come after the 395096ce994aSmrg # user supplied libs so there is no need to process them. 395196ce994aSmrg if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then 395296ce994aSmrg _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}" 395396ce994aSmrg else 395496ce994aSmrg _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}" 395596ce994aSmrg fi 395696ce994aSmrg ;; 395796ce994aSmrg # The "-l" case would never come before the object being 395896ce994aSmrg # linked, so don't bother handling this case. 395996ce994aSmrg esac 396096ce994aSmrg else 396196ce994aSmrg if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then 396296ce994aSmrg _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}" 396396ce994aSmrg else 396496ce994aSmrg _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}" 396596ce994aSmrg fi 396696ce994aSmrg fi 396796ce994aSmrg ;; 3968bdcaa8d0Smrg 396996ce994aSmrg *.$objext) 397096ce994aSmrg # This assumes that the test object file only shows up 397196ce994aSmrg # once in the compiler output. 397296ce994aSmrg if test "$p" = "conftest.$objext"; then 397396ce994aSmrg pre_test_object_deps_done=yes 397496ce994aSmrg continue 397596ce994aSmrg fi 3976bdcaa8d0Smrg 397796ce994aSmrg if test "$pre_test_object_deps_done" = no; then 397896ce994aSmrg if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then 397996ce994aSmrg _LT_AC_TAGVAR(predep_objects, $1)="$p" 398096ce994aSmrg else 398196ce994aSmrg _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p" 398296ce994aSmrg fi 398396ce994aSmrg else 398496ce994aSmrg if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then 398596ce994aSmrg _LT_AC_TAGVAR(postdep_objects, $1)="$p" 398696ce994aSmrg else 398796ce994aSmrg _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p" 398896ce994aSmrg fi 398996ce994aSmrg fi 399096ce994aSmrg ;; 399196ce994aSmrg 399296ce994aSmrg *) ;; # Ignore the rest. 3993bdcaa8d0Smrg 399472313efbSmrg esac 399596ce994aSmrg done 3996bdcaa8d0Smrg 399796ce994aSmrg # Clean up. 399896ce994aSmrg rm -f a.out a.exe 399996ce994aSmrgelse 400096ce994aSmrg echo "libtool.m4: error: problem compiling $1 test program" 400172313efbSmrgfi 4002bdcaa8d0Smrg 400396ce994aSmrg$rm -f confest.$objext 4004bdcaa8d0Smrg 400596ce994aSmrg_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)= 400696ce994aSmrgif test -n "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then 400796ce994aSmrg _LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_AC_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 400896ce994aSmrgfi 4009bdcaa8d0Smrg 401096ce994aSmrg# PORTME: override above test on systems where it is broken 401196ce994aSmrgifelse([$1],[CXX], 401296ce994aSmrg[case $host_os in 401396ce994aSmrginterix[[3-9]]*) 401496ce994aSmrg # Interix 3.5 installs completely hosed .la files for C++, so rather than 401596ce994aSmrg # hack all around it, let's just trust "g++" to DTRT. 401696ce994aSmrg _LT_AC_TAGVAR(predep_objects,$1)= 401796ce994aSmrg _LT_AC_TAGVAR(postdep_objects,$1)= 401896ce994aSmrg _LT_AC_TAGVAR(postdeps,$1)= 401996ce994aSmrg ;; 402096ce994aSmrg 402196ce994aSmrglinux*) 402296ce994aSmrg case `$CC -V 2>&1 | sed 5q` in 402396ce994aSmrg *Sun\ C*) 402496ce994aSmrg # Sun C++ 5.9 402596ce994aSmrg # 402696ce994aSmrg # The more standards-conforming stlport4 library is 402796ce994aSmrg # incompatible with the Cstd library. Avoid specifying 402896ce994aSmrg # it if it's in CXXFLAGS. Ignore libCrun as 402996ce994aSmrg # -library=stlport4 depends on it. 403096ce994aSmrg case " $CXX $CXXFLAGS " in 403196ce994aSmrg *" -library=stlport4 "*) 403296ce994aSmrg solaris_use_stlport4=yes 403396ce994aSmrg ;; 403496ce994aSmrg esac 403596ce994aSmrg if test "$solaris_use_stlport4" != yes; then 403696ce994aSmrg _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' 403772313efbSmrg fi 403872313efbSmrg ;; 403972313efbSmrg esac 404096ce994aSmrg ;; 4041bdcaa8d0Smrg 404296ce994aSmrgsolaris*) 404396ce994aSmrg case $cc_basename in 404496ce994aSmrg CC*) 404596ce994aSmrg # The more standards-conforming stlport4 library is 404696ce994aSmrg # incompatible with the Cstd library. Avoid specifying 404796ce994aSmrg # it if it's in CXXFLAGS. Ignore libCrun as 404896ce994aSmrg # -library=stlport4 depends on it. 404996ce994aSmrg case " $CXX $CXXFLAGS " in 405096ce994aSmrg *" -library=stlport4 "*) 405196ce994aSmrg solaris_use_stlport4=yes 405296ce994aSmrg ;; 405396ce994aSmrg esac 405496ce994aSmrg 405596ce994aSmrg # Adding this requires a known-good setup of shared libraries for 405696ce994aSmrg # Sun compiler versions before 5.6, else PIC objects from an old 405796ce994aSmrg # archive will be linked into the output, leading to subtle bugs. 405896ce994aSmrg if test "$solaris_use_stlport4" != yes; then 405996ce994aSmrg _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' 406072313efbSmrg fi 406172313efbSmrg ;; 406272313efbSmrg esac 406396ce994aSmrg ;; 406496ce994aSmrgesac 406596ce994aSmrg]) 406696ce994aSmrgcase " $_LT_AC_TAGVAR(postdeps, $1) " in 406796ce994aSmrg*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;; 406896ce994aSmrgesac 406996ce994aSmrg])# AC_LIBTOOL_POSTDEP_PREDEP 4070bdcaa8d0Smrg 407196ce994aSmrg# AC_LIBTOOL_LANG_F77_CONFIG 407296ce994aSmrg# -------------------------- 407396ce994aSmrg# Ensure that the configuration vars for the C compiler are 407496ce994aSmrg# suitably defined. Those variables are subsequently used by 407596ce994aSmrg# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. 407696ce994aSmrgAC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)]) 407796ce994aSmrgAC_DEFUN([_LT_AC_LANG_F77_CONFIG], 407896ce994aSmrg[AC_REQUIRE([AC_PROG_F77]) 407996ce994aSmrgAC_LANG_PUSH(Fortran 77) 4080bdcaa8d0Smrg 408196ce994aSmrg_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 408296ce994aSmrg_LT_AC_TAGVAR(allow_undefined_flag, $1)= 408396ce994aSmrg_LT_AC_TAGVAR(always_export_symbols, $1)=no 408496ce994aSmrg_LT_AC_TAGVAR(archive_expsym_cmds, $1)= 408596ce994aSmrg_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= 408696ce994aSmrg_LT_AC_TAGVAR(hardcode_direct, $1)=no 408796ce994aSmrg_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= 408896ce994aSmrg_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= 408996ce994aSmrg_LT_AC_TAGVAR(hardcode_libdir_separator, $1)= 409096ce994aSmrg_LT_AC_TAGVAR(hardcode_minus_L, $1)=no 409196ce994aSmrg_LT_AC_TAGVAR(hardcode_automatic, $1)=no 409296ce994aSmrg_LT_AC_TAGVAR(module_cmds, $1)= 409396ce994aSmrg_LT_AC_TAGVAR(module_expsym_cmds, $1)= 409496ce994aSmrg_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown 409596ce994aSmrg_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 409696ce994aSmrg_LT_AC_TAGVAR(no_undefined_flag, $1)= 409796ce994aSmrg_LT_AC_TAGVAR(whole_archive_flag_spec, $1)= 409896ce994aSmrg_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no 4099bdcaa8d0Smrg 410096ce994aSmrg# Source file extension for f77 test sources. 410196ce994aSmrgac_ext=f 4102bdcaa8d0Smrg 410396ce994aSmrg# Object file extension for compiled f77 test sources. 410496ce994aSmrgobjext=o 410596ce994aSmrg_LT_AC_TAGVAR(objext, $1)=$objext 4106bdcaa8d0Smrg 410796ce994aSmrg# Code to be used in simple compile tests 410896ce994aSmrglt_simple_compile_test_code="\ 410996ce994aSmrg subroutine t 411096ce994aSmrg return 411196ce994aSmrg end 411296ce994aSmrg" 4113bdcaa8d0Smrg 411496ce994aSmrg# Code to be used in simple link tests 411596ce994aSmrglt_simple_link_test_code="\ 411696ce994aSmrg program t 411796ce994aSmrg end 411896ce994aSmrg" 4119bdcaa8d0Smrg 412096ce994aSmrg# ltmain only uses $CC for tagged configurations so make sure $CC is set. 412196ce994aSmrg_LT_AC_SYS_COMPILER 4122bdcaa8d0Smrg 412396ce994aSmrg# save warnings/boilerplate of simple test code 412496ce994aSmrg_LT_COMPILER_BOILERPLATE 412596ce994aSmrg_LT_LINKER_BOILERPLATE 4126bdcaa8d0Smrg 412796ce994aSmrg# Allow CC to be a program name with arguments. 412896ce994aSmrglt_save_CC="$CC" 412996ce994aSmrgCC=${F77-"f77"} 413096ce994aSmrgcompiler=$CC 413196ce994aSmrg_LT_AC_TAGVAR(compiler, $1)=$CC 413296ce994aSmrg_LT_CC_BASENAME([$compiler]) 4133bdcaa8d0Smrg 413496ce994aSmrgAC_MSG_CHECKING([if libtool supports shared libraries]) 413596ce994aSmrgAC_MSG_RESULT([$can_build_shared]) 4136bdcaa8d0Smrg 413796ce994aSmrgAC_MSG_CHECKING([whether to build shared libraries]) 413896ce994aSmrgtest "$can_build_shared" = "no" && enable_shared=no 4139bdcaa8d0Smrg 414096ce994aSmrg# On AIX, shared libraries and static libraries use the same namespace, and 414196ce994aSmrg# are all built from PIC. 414296ce994aSmrgcase $host_os in 414396ce994aSmrgaix3*) 414496ce994aSmrg test "$enable_shared" = yes && enable_static=no 414596ce994aSmrg if test -n "$RANLIB"; then 414696ce994aSmrg archive_cmds="$archive_cmds~\$RANLIB \$lib" 414796ce994aSmrg postinstall_cmds='$RANLIB $lib' 414896ce994aSmrg fi 414996ce994aSmrg ;; 415096ce994aSmrgaix[[4-9]]*) 415196ce994aSmrg if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 415296ce994aSmrg test "$enable_shared" = yes && enable_static=no 415396ce994aSmrg fi 415496ce994aSmrg ;; 415596ce994aSmrgesac 415696ce994aSmrgAC_MSG_RESULT([$enable_shared]) 4157bdcaa8d0Smrg 415896ce994aSmrgAC_MSG_CHECKING([whether to build static libraries]) 415996ce994aSmrg# Make sure either enable_shared or enable_static is yes. 416096ce994aSmrgtest "$enable_shared" = yes || enable_static=yes 416196ce994aSmrgAC_MSG_RESULT([$enable_static]) 4162bdcaa8d0Smrg 416396ce994aSmrg_LT_AC_TAGVAR(GCC, $1)="$G77" 416496ce994aSmrg_LT_AC_TAGVAR(LD, $1)="$LD" 4165bdcaa8d0Smrg 416696ce994aSmrgAC_LIBTOOL_PROG_COMPILER_PIC($1) 416796ce994aSmrgAC_LIBTOOL_PROG_CC_C_O($1) 416896ce994aSmrgAC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) 416996ce994aSmrgAC_LIBTOOL_PROG_LD_SHLIBS($1) 417096ce994aSmrgAC_LIBTOOL_SYS_DYNAMIC_LINKER($1) 417196ce994aSmrgAC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) 4172bdcaa8d0Smrg 417396ce994aSmrgAC_LIBTOOL_CONFIG($1) 4174bdcaa8d0Smrg 417596ce994aSmrgAC_LANG_POP 417696ce994aSmrgCC="$lt_save_CC" 417796ce994aSmrg])# AC_LIBTOOL_LANG_F77_CONFIG 4178bdcaa8d0Smrg 4179bdcaa8d0Smrg 418096ce994aSmrg# AC_LIBTOOL_LANG_GCJ_CONFIG 418196ce994aSmrg# -------------------------- 418296ce994aSmrg# Ensure that the configuration vars for the C compiler are 418396ce994aSmrg# suitably defined. Those variables are subsequently used by 418496ce994aSmrg# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. 418596ce994aSmrgAC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)]) 418696ce994aSmrgAC_DEFUN([_LT_AC_LANG_GCJ_CONFIG], 418796ce994aSmrg[AC_LANG_SAVE 4188bdcaa8d0Smrg 418996ce994aSmrg# Source file extension for Java test sources. 419096ce994aSmrgac_ext=java 4191bdcaa8d0Smrg 419296ce994aSmrg# Object file extension for compiled Java test sources. 419396ce994aSmrgobjext=o 419496ce994aSmrg_LT_AC_TAGVAR(objext, $1)=$objext 4195bdcaa8d0Smrg 419696ce994aSmrg# Code to be used in simple compile tests 419796ce994aSmrglt_simple_compile_test_code="class foo {}" 4198bdcaa8d0Smrg 419996ce994aSmrg# Code to be used in simple link tests 420096ce994aSmrglt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }' 4201bdcaa8d0Smrg 420296ce994aSmrg# ltmain only uses $CC for tagged configurations so make sure $CC is set. 420396ce994aSmrg_LT_AC_SYS_COMPILER 4204bdcaa8d0Smrg 420596ce994aSmrg# save warnings/boilerplate of simple test code 420696ce994aSmrg_LT_COMPILER_BOILERPLATE 420796ce994aSmrg_LT_LINKER_BOILERPLATE 4208bdcaa8d0Smrg 420996ce994aSmrg# Allow CC to be a program name with arguments. 421096ce994aSmrglt_save_CC="$CC" 421196ce994aSmrgCC=${GCJ-"gcj"} 421296ce994aSmrgcompiler=$CC 421396ce994aSmrg_LT_AC_TAGVAR(compiler, $1)=$CC 421496ce994aSmrg_LT_CC_BASENAME([$compiler]) 4215bdcaa8d0Smrg 421696ce994aSmrg# GCJ did not exist at the time GCC didn't implicitly link libc in. 421796ce994aSmrg_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 4218bdcaa8d0Smrg 421996ce994aSmrg_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 4220bdcaa8d0Smrg 422196ce994aSmrgAC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) 422296ce994aSmrgAC_LIBTOOL_PROG_COMPILER_PIC($1) 422396ce994aSmrgAC_LIBTOOL_PROG_CC_C_O($1) 422496ce994aSmrgAC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) 422596ce994aSmrgAC_LIBTOOL_PROG_LD_SHLIBS($1) 422696ce994aSmrgAC_LIBTOOL_SYS_DYNAMIC_LINKER($1) 422796ce994aSmrgAC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) 4228bdcaa8d0Smrg 422996ce994aSmrgAC_LIBTOOL_CONFIG($1) 4230bdcaa8d0Smrg 423196ce994aSmrgAC_LANG_RESTORE 423296ce994aSmrgCC="$lt_save_CC" 423396ce994aSmrg])# AC_LIBTOOL_LANG_GCJ_CONFIG 4234bdcaa8d0Smrg 4235bdcaa8d0Smrg 423696ce994aSmrg# AC_LIBTOOL_LANG_RC_CONFIG 423796ce994aSmrg# ------------------------- 423896ce994aSmrg# Ensure that the configuration vars for the Windows resource compiler are 423996ce994aSmrg# suitably defined. Those variables are subsequently used by 424096ce994aSmrg# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. 424196ce994aSmrgAC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)]) 424296ce994aSmrgAC_DEFUN([_LT_AC_LANG_RC_CONFIG], 424396ce994aSmrg[AC_LANG_SAVE 4244bdcaa8d0Smrg 424596ce994aSmrg# Source file extension for RC test sources. 424696ce994aSmrgac_ext=rc 4247bdcaa8d0Smrg 424896ce994aSmrg# Object file extension for compiled RC test sources. 424996ce994aSmrgobjext=o 425096ce994aSmrg_LT_AC_TAGVAR(objext, $1)=$objext 4251bdcaa8d0Smrg 425296ce994aSmrg# Code to be used in simple compile tests 425396ce994aSmrglt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' 4254bdcaa8d0Smrg 425596ce994aSmrg# Code to be used in simple link tests 425696ce994aSmrglt_simple_link_test_code="$lt_simple_compile_test_code" 4257bdcaa8d0Smrg 425896ce994aSmrg# ltmain only uses $CC for tagged configurations so make sure $CC is set. 425996ce994aSmrg_LT_AC_SYS_COMPILER 4260bdcaa8d0Smrg 426196ce994aSmrg# save warnings/boilerplate of simple test code 426296ce994aSmrg_LT_COMPILER_BOILERPLATE 426396ce994aSmrg_LT_LINKER_BOILERPLATE 4264bdcaa8d0Smrg 426596ce994aSmrg# Allow CC to be a program name with arguments. 426696ce994aSmrglt_save_CC="$CC" 426796ce994aSmrgCC=${RC-"windres"} 426896ce994aSmrgcompiler=$CC 426996ce994aSmrg_LT_AC_TAGVAR(compiler, $1)=$CC 427096ce994aSmrg_LT_CC_BASENAME([$compiler]) 427196ce994aSmrg_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes 4272bdcaa8d0Smrg 427396ce994aSmrgAC_LIBTOOL_CONFIG($1) 4274bdcaa8d0Smrg 427596ce994aSmrgAC_LANG_RESTORE 427696ce994aSmrgCC="$lt_save_CC" 427796ce994aSmrg])# AC_LIBTOOL_LANG_RC_CONFIG 4278bdcaa8d0Smrg 4279bdcaa8d0Smrg 428096ce994aSmrg# AC_LIBTOOL_CONFIG([TAGNAME]) 428196ce994aSmrg# ---------------------------- 428296ce994aSmrg# If TAGNAME is not passed, then create an initial libtool script 428396ce994aSmrg# with a default configuration from the untagged config vars. Otherwise 428496ce994aSmrg# add code to config.status for appending the configuration named by 428596ce994aSmrg# TAGNAME from the matching tagged config vars. 428696ce994aSmrgAC_DEFUN([AC_LIBTOOL_CONFIG], 428796ce994aSmrg[# The else clause should only fire when bootstrapping the 428896ce994aSmrg# libtool distribution, otherwise you forgot to ship ltmain.sh 428996ce994aSmrg# with your package, and you will get complaints that there are 429096ce994aSmrg# no rules to generate ltmain.sh. 429196ce994aSmrgif test -f "$ltmain"; then 429296ce994aSmrg # See if we are running on zsh, and set the options which allow our commands through 429396ce994aSmrg # without removal of \ escapes. 429496ce994aSmrg if test -n "${ZSH_VERSION+set}" ; then 429596ce994aSmrg setopt NO_GLOB_SUBST 429696ce994aSmrg fi 429796ce994aSmrg # Now quote all the things that may contain metacharacters while being 429896ce994aSmrg # careful not to overquote the AC_SUBSTed values. We take copies of the 429996ce994aSmrg # variables and quote the copies for generation of the libtool script. 430096ce994aSmrg for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 430196ce994aSmrg SED SHELL STRIP \ 430296ce994aSmrg libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 430396ce994aSmrg old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 430496ce994aSmrg deplibs_check_method reload_flag reload_cmds need_locks \ 430596ce994aSmrg lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 430696ce994aSmrg lt_cv_sys_global_symbol_to_c_name_address \ 430796ce994aSmrg sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 430896ce994aSmrg old_postinstall_cmds old_postuninstall_cmds \ 430996ce994aSmrg _LT_AC_TAGVAR(compiler, $1) \ 431096ce994aSmrg _LT_AC_TAGVAR(CC, $1) \ 431196ce994aSmrg _LT_AC_TAGVAR(LD, $1) \ 431296ce994aSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \ 431396ce994aSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \ 431496ce994aSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \ 431596ce994aSmrg _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \ 431696ce994aSmrg _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \ 431796ce994aSmrg _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \ 431896ce994aSmrg _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \ 431996ce994aSmrg _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \ 432096ce994aSmrg _LT_AC_TAGVAR(old_archive_cmds, $1) \ 432196ce994aSmrg _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \ 432296ce994aSmrg _LT_AC_TAGVAR(predep_objects, $1) \ 432396ce994aSmrg _LT_AC_TAGVAR(postdep_objects, $1) \ 432496ce994aSmrg _LT_AC_TAGVAR(predeps, $1) \ 432596ce994aSmrg _LT_AC_TAGVAR(postdeps, $1) \ 432696ce994aSmrg _LT_AC_TAGVAR(compiler_lib_search_path, $1) \ 432796ce994aSmrg _LT_AC_TAGVAR(compiler_lib_search_dirs, $1) \ 432896ce994aSmrg _LT_AC_TAGVAR(archive_cmds, $1) \ 432996ce994aSmrg _LT_AC_TAGVAR(archive_expsym_cmds, $1) \ 433096ce994aSmrg _LT_AC_TAGVAR(postinstall_cmds, $1) \ 433196ce994aSmrg _LT_AC_TAGVAR(postuninstall_cmds, $1) \ 433296ce994aSmrg _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \ 433396ce994aSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1) \ 433496ce994aSmrg _LT_AC_TAGVAR(no_undefined_flag, $1) \ 433596ce994aSmrg _LT_AC_TAGVAR(export_symbols_cmds, $1) \ 433696ce994aSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \ 433796ce994aSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \ 433896ce994aSmrg _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \ 433996ce994aSmrg _LT_AC_TAGVAR(hardcode_automatic, $1) \ 434096ce994aSmrg _LT_AC_TAGVAR(module_cmds, $1) \ 434196ce994aSmrg _LT_AC_TAGVAR(module_expsym_cmds, $1) \ 434296ce994aSmrg _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \ 434396ce994aSmrg _LT_AC_TAGVAR(fix_srcfile_path, $1) \ 434496ce994aSmrg _LT_AC_TAGVAR(exclude_expsyms, $1) \ 434596ce994aSmrg _LT_AC_TAGVAR(include_expsyms, $1); do 434696ce994aSmrg 434796ce994aSmrg case $var in 434896ce994aSmrg _LT_AC_TAGVAR(old_archive_cmds, $1) | \ 434996ce994aSmrg _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \ 435096ce994aSmrg _LT_AC_TAGVAR(archive_cmds, $1) | \ 435196ce994aSmrg _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \ 435296ce994aSmrg _LT_AC_TAGVAR(module_cmds, $1) | \ 435396ce994aSmrg _LT_AC_TAGVAR(module_expsym_cmds, $1) | \ 435496ce994aSmrg _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \ 435596ce994aSmrg _LT_AC_TAGVAR(export_symbols_cmds, $1) | \ 435696ce994aSmrg extract_expsyms_cmds | reload_cmds | finish_cmds | \ 435796ce994aSmrg postinstall_cmds | postuninstall_cmds | \ 435896ce994aSmrg old_postinstall_cmds | old_postuninstall_cmds | \ 435996ce994aSmrg sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 436096ce994aSmrg # Double-quote double-evaled strings. 436196ce994aSmrg eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 436272313efbSmrg ;; 436396ce994aSmrg *) 436496ce994aSmrg eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 436572313efbSmrg ;; 436696ce994aSmrg esac 436796ce994aSmrg done 4368bdcaa8d0Smrg 436996ce994aSmrg case $lt_echo in 437096ce994aSmrg *'\[$]0 --fallback-echo"') 437196ce994aSmrg lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'` 437296ce994aSmrg ;; 437396ce994aSmrg esac 4374bdcaa8d0Smrg 437596ce994aSmrgifelse([$1], [], 437696ce994aSmrg [cfgfile="${ofile}T" 437796ce994aSmrg trap "$rm \"$cfgfile\"; exit 1" 1 2 15 437896ce994aSmrg $rm -f "$cfgfile" 437996ce994aSmrg AC_MSG_NOTICE([creating $ofile])], 438096ce994aSmrg [cfgfile="$ofile"]) 4381bdcaa8d0Smrg 438296ce994aSmrg cat <<__EOF__ >> "$cfgfile" 438396ce994aSmrgifelse([$1], [], 438496ce994aSmrg[#! $SHELL 4385bdcaa8d0Smrg 438696ce994aSmrg# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 438796ce994aSmrg# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 438896ce994aSmrg# NOTE: Changes made to this file will be lost: look at ltmain.sh. 438996ce994aSmrg# 439096ce994aSmrg# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 439196ce994aSmrg# Free Software Foundation, Inc. 439296ce994aSmrg# 439396ce994aSmrg# This file is part of GNU Libtool: 439496ce994aSmrg# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 439596ce994aSmrg# 439696ce994aSmrg# This program is free software; you can redistribute it and/or modify 439796ce994aSmrg# it under the terms of the GNU General Public License as published by 439896ce994aSmrg# the Free Software Foundation; either version 2 of the License, or 439996ce994aSmrg# (at your option) any later version. 440096ce994aSmrg# 440196ce994aSmrg# This program is distributed in the hope that it will be useful, but 440296ce994aSmrg# WITHOUT ANY WARRANTY; without even the implied warranty of 440396ce994aSmrg# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 440496ce994aSmrg# General Public License for more details. 440596ce994aSmrg# 440696ce994aSmrg# You should have received a copy of the GNU General Public License 440796ce994aSmrg# along with this program; if not, write to the Free Software 440896ce994aSmrg# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 440996ce994aSmrg# 441096ce994aSmrg# As a special exception to the GNU General Public License, if you 441196ce994aSmrg# distribute this file as part of a program that contains a 441296ce994aSmrg# configuration script generated by Autoconf, you may include it under 441396ce994aSmrg# the same distribution terms that you use for the rest of that program. 4414bdcaa8d0Smrg 441596ce994aSmrg# A sed program that does not truncate output. 441696ce994aSmrgSED=$lt_SED 4417bdcaa8d0Smrg 441896ce994aSmrg# Sed that helps us avoid accidentally triggering echo(1) options like -n. 441996ce994aSmrgXsed="$SED -e 1s/^X//" 4420bdcaa8d0Smrg 442196ce994aSmrg# The HP-UX ksh and POSIX shell print the target directory to stdout 442296ce994aSmrg# if CDPATH is set. 442396ce994aSmrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 4424bdcaa8d0Smrg 442596ce994aSmrg# The names of the tagged configurations supported by this script. 442696ce994aSmrgavailable_tags= 4427bdcaa8d0Smrg 442896ce994aSmrg# ### BEGIN LIBTOOL CONFIG], 442996ce994aSmrg[# ### BEGIN LIBTOOL TAG CONFIG: $tagname]) 4430bdcaa8d0Smrg 443196ce994aSmrg# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 4432bdcaa8d0Smrg 443396ce994aSmrg# Shell to use when invoking shell scripts. 443496ce994aSmrgSHELL=$lt_SHELL 4435bdcaa8d0Smrg 443696ce994aSmrg# Whether or not to build shared libraries. 443796ce994aSmrgbuild_libtool_libs=$enable_shared 4438bdcaa8d0Smrg 443996ce994aSmrg# Whether or not to build static libraries. 444096ce994aSmrgbuild_old_libs=$enable_static 4441bdcaa8d0Smrg 444296ce994aSmrg# Whether or not to add -lc for building shared libraries. 444396ce994aSmrgbuild_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1) 4444bdcaa8d0Smrg 444596ce994aSmrg# Whether or not to disallow shared libs when runtime libs are static 444696ce994aSmrgallow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) 4447bdcaa8d0Smrg 444896ce994aSmrg# Whether or not to optimize for fast installation. 444996ce994aSmrgfast_install=$enable_fast_install 4450bdcaa8d0Smrg 445196ce994aSmrg# The host system. 445296ce994aSmrghost_alias=$host_alias 445396ce994aSmrghost=$host 445496ce994aSmrghost_os=$host_os 4455bdcaa8d0Smrg 445696ce994aSmrg# The build system. 445796ce994aSmrgbuild_alias=$build_alias 445896ce994aSmrgbuild=$build 445996ce994aSmrgbuild_os=$build_os 4460bdcaa8d0Smrg 446196ce994aSmrg# An echo program that does not interpret backslashes. 446296ce994aSmrgecho=$lt_echo 4463bdcaa8d0Smrg 446496ce994aSmrg# The archiver. 446596ce994aSmrgAR=$lt_AR 446696ce994aSmrgAR_FLAGS=$lt_AR_FLAGS 4467bdcaa8d0Smrg 446896ce994aSmrg# A C compiler. 446996ce994aSmrgLTCC=$lt_LTCC 4470bdcaa8d0Smrg 447196ce994aSmrg# LTCC compiler flags. 447296ce994aSmrgLTCFLAGS=$lt_LTCFLAGS 4473bdcaa8d0Smrg 447496ce994aSmrg# A language-specific compiler. 447596ce994aSmrgCC=$lt_[]_LT_AC_TAGVAR(compiler, $1) 4476bdcaa8d0Smrg 447796ce994aSmrg# Is the compiler the GNU C compiler? 447896ce994aSmrgwith_gcc=$_LT_AC_TAGVAR(GCC, $1) 447972313efbSmrg 448096ce994aSmrg# An ERE matcher. 448196ce994aSmrgEGREP=$lt_EGREP 4482bdcaa8d0Smrg 448396ce994aSmrg# The linker used to build libraries. 448496ce994aSmrgLD=$lt_[]_LT_AC_TAGVAR(LD, $1) 4485bdcaa8d0Smrg 448696ce994aSmrg# Whether we need hard or soft links. 448796ce994aSmrgLN_S=$lt_LN_S 4488bdcaa8d0Smrg 448996ce994aSmrg# A BSD-compatible nm program. 449096ce994aSmrgNM=$lt_NM 4491bdcaa8d0Smrg 449296ce994aSmrg# A symbol stripping program 449396ce994aSmrgSTRIP=$lt_STRIP 4494bdcaa8d0Smrg 449596ce994aSmrg# Used to examine libraries when file_magic_cmd begins "file" 449696ce994aSmrgMAGIC_CMD=$MAGIC_CMD 4497bdcaa8d0Smrg 449896ce994aSmrg# Used on cygwin: DLL creation program. 449996ce994aSmrgDLLTOOL="$DLLTOOL" 4500bdcaa8d0Smrg 450196ce994aSmrg# Used on cygwin: object dumper. 450296ce994aSmrgOBJDUMP="$OBJDUMP" 4503bdcaa8d0Smrg 450496ce994aSmrg# Used on cygwin: assembler. 450596ce994aSmrgAS="$AS" 4506bdcaa8d0Smrg 450796ce994aSmrg# The name of the directory that contains temporary libtool files. 450896ce994aSmrgobjdir=$objdir 4509bdcaa8d0Smrg 451096ce994aSmrg# How to create reloadable object files. 451196ce994aSmrgreload_flag=$lt_reload_flag 451296ce994aSmrgreload_cmds=$lt_reload_cmds 4513bdcaa8d0Smrg 451496ce994aSmrg# How to pass a linker flag through the compiler. 451596ce994aSmrgwl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) 4516bdcaa8d0Smrg 451796ce994aSmrg# Object file suffix (normally "o"). 451896ce994aSmrgobjext="$ac_objext" 4519bdcaa8d0Smrg 452096ce994aSmrg# Old archive suffix (normally "a"). 452196ce994aSmrglibext="$libext" 452272313efbSmrg 452396ce994aSmrg# Shared library suffix (normally ".so"). 452496ce994aSmrgshrext_cmds='$shrext_cmds' 452572313efbSmrg 452696ce994aSmrg# Executable file suffix (normally ""). 452796ce994aSmrgexeext="$exeext" 452872313efbSmrg 452996ce994aSmrg# Additional compiler flags for building library objects. 453096ce994aSmrgpic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) 453196ce994aSmrgpic_mode=$pic_mode 453272313efbSmrg 453396ce994aSmrg# What is the maximum length of a command? 453496ce994aSmrgmax_cmd_len=$lt_cv_sys_max_cmd_len 453572313efbSmrg 453696ce994aSmrg# Does compiler simultaneously support -c and -o options? 453796ce994aSmrgcompiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) 4538bdcaa8d0Smrg 453996ce994aSmrg# Must we lock files when doing compilation? 454096ce994aSmrgneed_locks=$lt_need_locks 4541bdcaa8d0Smrg 454296ce994aSmrg# Do we need the lib prefix for modules? 454396ce994aSmrgneed_lib_prefix=$need_lib_prefix 4544bdcaa8d0Smrg 454596ce994aSmrg# Do we need a version for libraries? 454696ce994aSmrgneed_version=$need_version 4547bdcaa8d0Smrg 454896ce994aSmrg# Whether dlopen is supported. 454996ce994aSmrgdlopen_support=$enable_dlopen 455072313efbSmrg 455196ce994aSmrg# Whether dlopen of programs is supported. 455296ce994aSmrgdlopen_self=$enable_dlopen_self 455372313efbSmrg 455496ce994aSmrg# Whether dlopen of statically linked programs is supported. 455596ce994aSmrgdlopen_self_static=$enable_dlopen_self_static 455672313efbSmrg 455796ce994aSmrg# Compiler flag to prevent dynamic linking. 455896ce994aSmrglink_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1) 455972313efbSmrg 456096ce994aSmrg# Compiler flag to turn off builtin functions. 456196ce994aSmrgno_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) 456272313efbSmrg 456396ce994aSmrg# Compiler flag to allow reflexive dlopens. 456496ce994aSmrgexport_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1) 456572313efbSmrg 456696ce994aSmrg# Compiler flag to generate shared objects directly from archives. 456796ce994aSmrgwhole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1) 456872313efbSmrg 456996ce994aSmrg# Compiler flag to generate thread-safe objects. 457096ce994aSmrgthread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1) 457172313efbSmrg 457296ce994aSmrg# Library versioning type. 457396ce994aSmrgversion_type=$version_type 457472313efbSmrg 457596ce994aSmrg# Format of library name prefix. 457696ce994aSmrglibname_spec=$lt_libname_spec 457772313efbSmrg 457896ce994aSmrg# List of archive names. First name is the real one, the rest are links. 457996ce994aSmrg# The last name is the one that the linker finds with -lNAME. 458096ce994aSmrglibrary_names_spec=$lt_library_names_spec 458172313efbSmrg 458296ce994aSmrg# The coded name of the library, if different from the real name. 458396ce994aSmrgsoname_spec=$lt_soname_spec 458472313efbSmrg 458596ce994aSmrg# Commands used to build and install an old-style archive. 458696ce994aSmrgRANLIB=$lt_RANLIB 458796ce994aSmrgold_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1) 458896ce994aSmrgold_postinstall_cmds=$lt_old_postinstall_cmds 458996ce994aSmrgold_postuninstall_cmds=$lt_old_postuninstall_cmds 459072313efbSmrg 459196ce994aSmrg# Create an old-style archive from a shared archive. 459296ce994aSmrgold_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1) 459372313efbSmrg 459496ce994aSmrg# Create a temporary old-style archive to link instead of a shared archive. 459596ce994aSmrgold_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) 459672313efbSmrg 459796ce994aSmrg# Commands used to build and install a shared archive. 459896ce994aSmrgarchive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1) 459996ce994aSmrgarchive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1) 460096ce994aSmrgpostinstall_cmds=$lt_postinstall_cmds 460196ce994aSmrgpostuninstall_cmds=$lt_postuninstall_cmds 460272313efbSmrg 460396ce994aSmrg# Commands used to build a loadable module (assumed same as above if empty) 460496ce994aSmrgmodule_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1) 460596ce994aSmrgmodule_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1) 460672313efbSmrg 460796ce994aSmrg# Commands to strip libraries. 460896ce994aSmrgold_striplib=$lt_old_striplib 460996ce994aSmrgstriplib=$lt_striplib 461072313efbSmrg 461196ce994aSmrg# Dependencies to place before the objects being linked to create a 461296ce994aSmrg# shared library. 461396ce994aSmrgpredep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1) 461472313efbSmrg 461596ce994aSmrg# Dependencies to place after the objects being linked to create a 461696ce994aSmrg# shared library. 461796ce994aSmrgpostdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1) 461872313efbSmrg 461996ce994aSmrg# Dependencies to place before the objects being linked to create a 462096ce994aSmrg# shared library. 462196ce994aSmrgpredeps=$lt_[]_LT_AC_TAGVAR(predeps, $1) 462272313efbSmrg 462396ce994aSmrg# Dependencies to place after the objects being linked to create a 462496ce994aSmrg# shared library. 462596ce994aSmrgpostdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1) 462672313efbSmrg 462796ce994aSmrg# The directories searched by this compiler when creating a shared 462896ce994aSmrg# library 462996ce994aSmrgcompiler_lib_search_dirs=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_dirs, $1) 463072313efbSmrg 463196ce994aSmrg# The library search path used internally by the compiler when linking 463296ce994aSmrg# a shared library. 463396ce994aSmrgcompiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1) 463472313efbSmrg 463596ce994aSmrg# Method to check whether dependent libraries are shared objects. 463696ce994aSmrgdeplibs_check_method=$lt_deplibs_check_method 463772313efbSmrg 463896ce994aSmrg# Command to use when deplibs_check_method == file_magic. 463996ce994aSmrgfile_magic_cmd=$lt_file_magic_cmd 464072313efbSmrg 464196ce994aSmrg# Flag that allows shared libraries with undefined symbols to be built. 464296ce994aSmrgallow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1) 464372313efbSmrg 464496ce994aSmrg# Flag that forces no undefined symbols. 464596ce994aSmrgno_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1) 464672313efbSmrg 464796ce994aSmrg# Commands used to finish a libtool library installation in a directory. 464896ce994aSmrgfinish_cmds=$lt_finish_cmds 464972313efbSmrg 465096ce994aSmrg# Same as above, but a single script fragment to be evaled but not shown. 465196ce994aSmrgfinish_eval=$lt_finish_eval 465272313efbSmrg 465396ce994aSmrg# Take the output of nm and produce a listing of raw symbols and C names. 465496ce994aSmrgglobal_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 465572313efbSmrg 465696ce994aSmrg# Transform the output of nm in a proper C declaration 465796ce994aSmrgglobal_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 465872313efbSmrg 465996ce994aSmrg# Transform the output of nm in a C name address pair 466096ce994aSmrgglobal_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 466172313efbSmrg 466296ce994aSmrg# This is the shared library runtime path variable. 466396ce994aSmrgrunpath_var=$runpath_var 466472313efbSmrg 466596ce994aSmrg# This is the shared library path variable. 466696ce994aSmrgshlibpath_var=$shlibpath_var 466772313efbSmrg 466896ce994aSmrg# Is shlibpath searched before the hard-coded library search path? 466996ce994aSmrgshlibpath_overrides_runpath=$shlibpath_overrides_runpath 467072313efbSmrg 467196ce994aSmrg# How to hardcode a shared library path into an executable. 467296ce994aSmrghardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1) 467372313efbSmrg 467496ce994aSmrg# Whether we should hardcode library paths into libraries. 467596ce994aSmrghardcode_into_libs=$hardcode_into_libs 467672313efbSmrg 467796ce994aSmrg# Flag to hardcode \$libdir into a binary during linking. 467896ce994aSmrg# This must work even if \$libdir does not exist. 467996ce994aSmrghardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) 468072313efbSmrg 468196ce994aSmrg# If ld is used when linking, flag to hardcode \$libdir into 468296ce994aSmrg# a binary during linking. This must work even if \$libdir does 468396ce994aSmrg# not exist. 468496ce994aSmrghardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) 468572313efbSmrg 468696ce994aSmrg# Whether we need a single -rpath flag with a separated argument. 468796ce994aSmrghardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1) 468872313efbSmrg 468996ce994aSmrg# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 469096ce994aSmrg# resulting binary. 469196ce994aSmrghardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1) 469272313efbSmrg 469396ce994aSmrg# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 469496ce994aSmrg# resulting binary. 469596ce994aSmrghardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1) 469672313efbSmrg 469796ce994aSmrg# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 469896ce994aSmrg# the resulting binary. 469996ce994aSmrghardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1) 470072313efbSmrg 470196ce994aSmrg# Set to yes if building a shared library automatically hardcodes DIR into the library 470296ce994aSmrg# and all subsequent libraries and executables linked against it. 470396ce994aSmrghardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1) 470472313efbSmrg 470596ce994aSmrg# Variables whose values should be saved in libtool wrapper scripts and 470696ce994aSmrg# restored at relink time. 470796ce994aSmrgvariables_saved_for_relink="$variables_saved_for_relink" 470872313efbSmrg 470996ce994aSmrg# Whether libtool must link a program against all its dependency libraries. 471096ce994aSmrglink_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1) 4711bdcaa8d0Smrg 471296ce994aSmrg# Compile-time system search path for libraries 471396ce994aSmrgsys_lib_search_path_spec=$lt_sys_lib_search_path_spec 4714bdcaa8d0Smrg 471596ce994aSmrg# Run-time system search path for libraries 471696ce994aSmrgsys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 4717bdcaa8d0Smrg 471896ce994aSmrg# Fix the shell variable \$srcfile for the compiler. 471996ce994aSmrgfix_srcfile_path=$lt_fix_srcfile_path 4720bdcaa8d0Smrg 472196ce994aSmrg# Set to yes if exported symbols are required. 472296ce994aSmrgalways_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1) 4723bdcaa8d0Smrg 472496ce994aSmrg# The commands to list exported symbols. 472596ce994aSmrgexport_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1) 4726bdcaa8d0Smrg 472796ce994aSmrg# The commands to extract the exported symbol list from a shared archive. 472896ce994aSmrgextract_expsyms_cmds=$lt_extract_expsyms_cmds 4729bdcaa8d0Smrg 473096ce994aSmrg# Symbols that should not be listed in the preloaded symbols. 473196ce994aSmrgexclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1) 4732bdcaa8d0Smrg 473396ce994aSmrg# Symbols that must always be exported. 473496ce994aSmrginclude_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1) 4735bdcaa8d0Smrg 473696ce994aSmrgifelse([$1],[], 473796ce994aSmrg[# ### END LIBTOOL CONFIG], 473896ce994aSmrg[# ### END LIBTOOL TAG CONFIG: $tagname]) 473972313efbSmrg 474096ce994aSmrg__EOF__ 474172313efbSmrg 474296ce994aSmrgifelse([$1],[], [ 474396ce994aSmrg case $host_os in 474496ce994aSmrg aix3*) 474596ce994aSmrg cat <<\EOF >> "$cfgfile" 474672313efbSmrg 474796ce994aSmrg# AIX sometimes has problems with the GCC collect2 program. For some 474896ce994aSmrg# reason, if we set the COLLECT_NAMES environment variable, the problems 474996ce994aSmrg# vanish in a puff of smoke. 475096ce994aSmrgif test "X${COLLECT_NAMES+set}" != Xset; then 475196ce994aSmrg COLLECT_NAMES= 475296ce994aSmrg export COLLECT_NAMES 475396ce994aSmrgfi 475496ce994aSmrgEOF 475596ce994aSmrg ;; 475696ce994aSmrg esac 475772313efbSmrg 475896ce994aSmrg # We use sed instead of cat because bash on DJGPP gets confused if 475996ce994aSmrg # if finds mixed CR/LF and LF-only lines. Since sed operates in 476096ce994aSmrg # text mode, it properly converts lines to CR/LF. This bash problem 476196ce994aSmrg # is reportedly fixed, but why not run on old versions too? 476296ce994aSmrg sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 476372313efbSmrg 476496ce994aSmrg mv -f "$cfgfile" "$ofile" || \ 476596ce994aSmrg (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 476696ce994aSmrg chmod +x "$ofile" 476796ce994aSmrg]) 476872313efbSmrgelse 476996ce994aSmrg # If there is no Makefile yet, we rely on a make rule to execute 477096ce994aSmrg # `config.status --recheck' to rerun these tests and create the 477196ce994aSmrg # libtool script then. 477296ce994aSmrg ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 477396ce994aSmrg if test -f "$ltmain_in"; then 477496ce994aSmrg test -f Makefile && make "$ltmain" 477596ce994aSmrg fi 477672313efbSmrgfi 477796ce994aSmrg])# AC_LIBTOOL_CONFIG 477872313efbSmrg 477972313efbSmrg 478096ce994aSmrg# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME]) 478196ce994aSmrg# ------------------------------------------- 478296ce994aSmrgAC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], 478396ce994aSmrg[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl 478472313efbSmrg 478596ce994aSmrg_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= 478672313efbSmrg 478796ce994aSmrgif test "$GCC" = yes; then 478896ce994aSmrg _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' 478972313efbSmrg 479096ce994aSmrg AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], 479196ce994aSmrg lt_cv_prog_compiler_rtti_exceptions, 479296ce994aSmrg [-fno-rtti -fno-exceptions], [], 479396ce994aSmrg [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) 479472313efbSmrgfi 479596ce994aSmrg])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI 479672313efbSmrg 479772313efbSmrg 479896ce994aSmrg# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE 479996ce994aSmrg# --------------------------------- 480096ce994aSmrgAC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], 480196ce994aSmrg[AC_REQUIRE([AC_CANONICAL_HOST]) 480296ce994aSmrgAC_REQUIRE([LT_AC_PROG_SED]) 480396ce994aSmrgAC_REQUIRE([AC_PROG_NM]) 480496ce994aSmrgAC_REQUIRE([AC_OBJEXT]) 480596ce994aSmrg# Check for command to grab the raw symbol name followed by C symbol from nm. 480696ce994aSmrgAC_MSG_CHECKING([command to parse $NM output from $compiler object]) 480796ce994aSmrgAC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], 480896ce994aSmrg[ 480996ce994aSmrg# These are sane defaults that work on at least a few old systems. 481096ce994aSmrg# [They come from Ultrix. What could be older than Ultrix?!! ;)] 481172313efbSmrg 481296ce994aSmrg# Character class describing NM global symbol codes. 481396ce994aSmrgsymcode='[[BCDEGRST]]' 481472313efbSmrg 481596ce994aSmrg# Regexp to match symbols that can be accessed directly from C. 481696ce994aSmrgsympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' 481772313efbSmrg 481896ce994aSmrg# Transform an extracted symbol line into a proper C declaration 481996ce994aSmrglt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 482072313efbSmrg 482196ce994aSmrg# Transform an extracted symbol line into symbol name and symbol address 482296ce994aSmrglt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" 482372313efbSmrg 482496ce994aSmrg# Define system-specific variables. 482596ce994aSmrgcase $host_os in 482696ce994aSmrgaix*) 482796ce994aSmrg symcode='[[BCDT]]' 482896ce994aSmrg ;; 482996ce994aSmrgcygwin* | mingw* | pw32*) 483096ce994aSmrg symcode='[[ABCDGISTW]]' 483196ce994aSmrg ;; 483296ce994aSmrghpux*) # Its linker distinguishes data from code symbols 483396ce994aSmrg if test "$host_cpu" = ia64; then 483496ce994aSmrg symcode='[[ABCDEGRST]]' 483596ce994aSmrg fi 483696ce994aSmrg lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 483796ce994aSmrg lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" 483896ce994aSmrg ;; 483996ce994aSmrglinux* | k*bsd*-gnu) 484096ce994aSmrg if test "$host_cpu" = ia64; then 484196ce994aSmrg symcode='[[ABCDGIRSTW]]' 484296ce994aSmrg lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 484396ce994aSmrg lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" 484496ce994aSmrg fi 484596ce994aSmrg ;; 484696ce994aSmrgirix* | nonstopux*) 484796ce994aSmrg symcode='[[BCDEGRST]]' 484896ce994aSmrg ;; 484996ce994aSmrgosf*) 485096ce994aSmrg symcode='[[BCDEGQRST]]' 485196ce994aSmrg ;; 485296ce994aSmrgsolaris*) 485396ce994aSmrg symcode='[[BDRT]]' 485496ce994aSmrg ;; 485596ce994aSmrgsco3.2v5*) 485696ce994aSmrg symcode='[[DT]]' 485796ce994aSmrg ;; 485896ce994aSmrgsysv4.2uw2*) 485996ce994aSmrg symcode='[[DT]]' 486096ce994aSmrg ;; 486196ce994aSmrgsysv5* | sco5v6* | unixware* | OpenUNIX*) 486296ce994aSmrg symcode='[[ABDT]]' 486396ce994aSmrg ;; 486496ce994aSmrgsysv4) 486596ce994aSmrg symcode='[[DFNSTU]]' 486696ce994aSmrg ;; 486796ce994aSmrgesac 486872313efbSmrg 486996ce994aSmrg# Handle CRLF in mingw tool chain 487096ce994aSmrgopt_cr= 487196ce994aSmrgcase $build_os in 487296ce994aSmrgmingw*) 487396ce994aSmrg opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 487496ce994aSmrg ;; 487596ce994aSmrgesac 487672313efbSmrg 487796ce994aSmrg# If we're using GNU nm, then use its standard symbol codes. 487896ce994aSmrgcase `$NM -V 2>&1` in 487996ce994aSmrg*GNU* | *'with BFD'*) 488096ce994aSmrg symcode='[[ABCDGIRSTW]]' ;; 488196ce994aSmrgesac 488272313efbSmrg 488396ce994aSmrg# Try without a prefix undercore, then with it. 488496ce994aSmrgfor ac_symprfx in "" "_"; do 488572313efbSmrg 488696ce994aSmrg # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 488796ce994aSmrg symxfrm="\\1 $ac_symprfx\\2 \\2" 488872313efbSmrg 488996ce994aSmrg # Write the raw and C identifiers. 489096ce994aSmrg lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 489172313efbSmrg 489296ce994aSmrg # Check to see that the pipe works correctly. 489396ce994aSmrg pipe_works=no 489472313efbSmrg 489596ce994aSmrg rm -f conftest* 489696ce994aSmrg cat > conftest.$ac_ext <<EOF 489796ce994aSmrg#ifdef __cplusplus 489896ce994aSmrgextern "C" { 489996ce994aSmrg#endif 490096ce994aSmrgchar nm_test_var; 490196ce994aSmrgvoid nm_test_func(){} 490296ce994aSmrg#ifdef __cplusplus 490396ce994aSmrg} 490496ce994aSmrg#endif 490596ce994aSmrgint main(){nm_test_var='a';nm_test_func();return(0);} 490696ce994aSmrgEOF 490772313efbSmrg 490896ce994aSmrg if AC_TRY_EVAL(ac_compile); then 490996ce994aSmrg # Now try to grab the symbols. 491096ce994aSmrg nlist=conftest.nm 491196ce994aSmrg if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then 491296ce994aSmrg # Try sorting and uniquifying the output. 491396ce994aSmrg if sort "$nlist" | uniq > "$nlist"T; then 491496ce994aSmrg mv -f "$nlist"T "$nlist" 491596ce994aSmrg else 491696ce994aSmrg rm -f "$nlist"T 491796ce994aSmrg fi 491872313efbSmrg 491996ce994aSmrg # Make sure that we snagged all the symbols we need. 492096ce994aSmrg if grep ' nm_test_var$' "$nlist" >/dev/null; then 492196ce994aSmrg if grep ' nm_test_func$' "$nlist" >/dev/null; then 492296ce994aSmrg cat <<EOF > conftest.$ac_ext 492396ce994aSmrg#ifdef __cplusplus 492496ce994aSmrgextern "C" { 492596ce994aSmrg#endif 492672313efbSmrg 492796ce994aSmrgEOF 492896ce994aSmrg # Now generate the symbol file. 492996ce994aSmrg eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 493072313efbSmrg 493196ce994aSmrg cat <<EOF >> conftest.$ac_ext 493296ce994aSmrg#if defined (__STDC__) && __STDC__ 493396ce994aSmrg# define lt_ptr_t void * 493496ce994aSmrg#else 493596ce994aSmrg# define lt_ptr_t char * 493696ce994aSmrg# define const 493796ce994aSmrg#endif 493872313efbSmrg 493996ce994aSmrg/* The mapping between symbol names and symbols. */ 494096ce994aSmrgconst struct { 494196ce994aSmrg const char *name; 494296ce994aSmrg lt_ptr_t address; 494396ce994aSmrg} 494496ce994aSmrglt_preloaded_symbols[[]] = 494596ce994aSmrg{ 494696ce994aSmrgEOF 494796ce994aSmrg $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 494896ce994aSmrg cat <<\EOF >> conftest.$ac_ext 494996ce994aSmrg {0, (lt_ptr_t) 0} 495096ce994aSmrg}; 495172313efbSmrg 495296ce994aSmrg#ifdef __cplusplus 495396ce994aSmrg} 495496ce994aSmrg#endif 495596ce994aSmrgEOF 495696ce994aSmrg # Now try linking the two files. 495796ce994aSmrg mv conftest.$ac_objext conftstm.$ac_objext 495896ce994aSmrg lt_save_LIBS="$LIBS" 495996ce994aSmrg lt_save_CFLAGS="$CFLAGS" 496096ce994aSmrg LIBS="conftstm.$ac_objext" 496196ce994aSmrg CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" 496296ce994aSmrg if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then 496396ce994aSmrg pipe_works=yes 496496ce994aSmrg fi 496596ce994aSmrg LIBS="$lt_save_LIBS" 496696ce994aSmrg CFLAGS="$lt_save_CFLAGS" 496796ce994aSmrg else 496896ce994aSmrg echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD 496972313efbSmrg fi 497096ce994aSmrg else 497196ce994aSmrg echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD 497296ce994aSmrg fi 497396ce994aSmrg else 497496ce994aSmrg echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD 497596ce994aSmrg fi 497696ce994aSmrg else 497796ce994aSmrg echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD 497896ce994aSmrg cat conftest.$ac_ext >&5 497996ce994aSmrg fi 498096ce994aSmrg rm -rf conftest* conftst* 498172313efbSmrg 498296ce994aSmrg # Do not use the global_symbol_pipe unless it works. 498396ce994aSmrg if test "$pipe_works" = yes; then 498496ce994aSmrg break 498596ce994aSmrg else 498696ce994aSmrg lt_cv_sys_global_symbol_pipe= 498796ce994aSmrg fi 498896ce994aSmrgdone 498996ce994aSmrg]) 499096ce994aSmrgif test -z "$lt_cv_sys_global_symbol_pipe"; then 499196ce994aSmrg lt_cv_sys_global_symbol_to_cdecl= 499296ce994aSmrgfi 499396ce994aSmrgif test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 499496ce994aSmrg AC_MSG_RESULT(failed) 499596ce994aSmrgelse 499696ce994aSmrg AC_MSG_RESULT(ok) 499796ce994aSmrgfi 499896ce994aSmrg]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE 499972313efbSmrg 500072313efbSmrg 500196ce994aSmrg# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME]) 500296ce994aSmrg# --------------------------------------- 500396ce994aSmrgAC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC], 500496ce994aSmrg[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)= 500596ce994aSmrg_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= 500696ce994aSmrg_LT_AC_TAGVAR(lt_prog_compiler_static, $1)= 500772313efbSmrg 500896ce994aSmrgAC_MSG_CHECKING([for $compiler option to produce PIC]) 500996ce994aSmrg ifelse([$1],[CXX],[ 501096ce994aSmrg # C++ specific cases for pic, static, wl, etc. 501196ce994aSmrg if test "$GXX" = yes; then 501296ce994aSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 501396ce994aSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' 501472313efbSmrg 501596ce994aSmrg case $host_os in 501696ce994aSmrg aix*) 501796ce994aSmrg # All AIX code is PIC. 501896ce994aSmrg if test "$host_cpu" = ia64; then 501996ce994aSmrg # AIX 5 now supports IA64 processor 502096ce994aSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 502196ce994aSmrg fi 502296ce994aSmrg ;; 502396ce994aSmrg amigaos*) 502496ce994aSmrg # FIXME: we need at least 68020 code to build shared libraries, but 502596ce994aSmrg # adding the `-m68020' flag to GCC prevents building anything better, 502696ce994aSmrg # like `-m68040'. 502796ce994aSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' 502896ce994aSmrg ;; 502996ce994aSmrg beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 503096ce994aSmrg # PIC is the default for these OSes. 503196ce994aSmrg ;; 503296ce994aSmrg mingw* | cygwin* | os2* | pw32*) 503396ce994aSmrg # This hack is so that the source file can tell whether it is being 503496ce994aSmrg # built for inclusion in a dll (and should export symbols for example). 503596ce994aSmrg # Although the cygwin gcc ignores -fPIC, still need this for old-style 503696ce994aSmrg # (--disable-auto-import) libraries 503796ce994aSmrg m4_if([$1], [GCJ], [], 503896ce994aSmrg [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) 503996ce994aSmrg ;; 504096ce994aSmrg darwin* | rhapsody*) 504196ce994aSmrg # PIC is the default on this platform 504296ce994aSmrg # Common symbols not allowed in MH_DYLIB files 504396ce994aSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' 504496ce994aSmrg ;; 504596ce994aSmrg *djgpp*) 504696ce994aSmrg # DJGPP does not support shared libraries at all 504796ce994aSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= 504896ce994aSmrg ;; 504996ce994aSmrg interix[[3-9]]*) 505096ce994aSmrg # Interix 3.x gcc -fpic/-fPIC options generate broken code. 505196ce994aSmrg # Instead, we relocate shared libraries at runtime. 505296ce994aSmrg ;; 505396ce994aSmrg sysv4*MP*) 505496ce994aSmrg if test -d /usr/nec; then 505596ce994aSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic 505696ce994aSmrg fi 505796ce994aSmrg ;; 505896ce994aSmrg hpux*) 505996ce994aSmrg # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 506096ce994aSmrg # not for PA HP-UX. 506196ce994aSmrg case $host_cpu in 506296ce994aSmrg hppa*64*|ia64*) 506396ce994aSmrg ;; 506496ce994aSmrg *) 506596ce994aSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 506696ce994aSmrg ;; 506796ce994aSmrg esac 506896ce994aSmrg ;; 506996ce994aSmrg *) 507096ce994aSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 507196ce994aSmrg ;; 507296ce994aSmrg esac 507396ce994aSmrg else 507496ce994aSmrg case $host_os in 507596ce994aSmrg aix[[4-9]]*) 507696ce994aSmrg # All AIX code is PIC. 507796ce994aSmrg if test "$host_cpu" = ia64; then 507896ce994aSmrg # AIX 5 now supports IA64 processor 507996ce994aSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 508096ce994aSmrg else 508196ce994aSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' 508296ce994aSmrg fi 508396ce994aSmrg ;; 508496ce994aSmrg chorus*) 508596ce994aSmrg case $cc_basename in 508696ce994aSmrg cxch68*) 508796ce994aSmrg # Green Hills C++ Compiler 508896ce994aSmrg # _LT_AC_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" 508996ce994aSmrg ;; 509096ce994aSmrg esac 509196ce994aSmrg ;; 509296ce994aSmrg darwin*) 509396ce994aSmrg # PIC is the default on this platform 509496ce994aSmrg # Common symbols not allowed in MH_DYLIB files 509596ce994aSmrg case $cc_basename in 509696ce994aSmrg xlc*) 509796ce994aSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon' 509896ce994aSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 509996ce994aSmrg ;; 510096ce994aSmrg esac 510196ce994aSmrg ;; 510296ce994aSmrg dgux*) 510396ce994aSmrg case $cc_basename in 510496ce994aSmrg ec++*) 510596ce994aSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 510696ce994aSmrg ;; 510796ce994aSmrg ghcx*) 510896ce994aSmrg # Green Hills C++ Compiler 510996ce994aSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 511096ce994aSmrg ;; 511196ce994aSmrg *) 511296ce994aSmrg ;; 511396ce994aSmrg esac 511496ce994aSmrg ;; 511596ce994aSmrg freebsd* | dragonfly*) 511696ce994aSmrg # FreeBSD uses GNU C++ 511796ce994aSmrg ;; 511896ce994aSmrg hpux9* | hpux10* | hpux11*) 511996ce994aSmrg case $cc_basename in 512096ce994aSmrg CC*) 512196ce994aSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 512296ce994aSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' 512396ce994aSmrg if test "$host_cpu" != ia64; then 512496ce994aSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 512596ce994aSmrg fi 512696ce994aSmrg ;; 512796ce994aSmrg aCC*) 512896ce994aSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 512996ce994aSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' 513096ce994aSmrg case $host_cpu in 513196ce994aSmrg hppa*64*|ia64*) 513296ce994aSmrg # +Z the default 513396ce994aSmrg ;; 513496ce994aSmrg *) 513596ce994aSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 513696ce994aSmrg ;; 513796ce994aSmrg esac 513896ce994aSmrg ;; 513996ce994aSmrg *) 514096ce994aSmrg ;; 514196ce994aSmrg esac 514296ce994aSmrg ;; 514396ce994aSmrg interix*) 514496ce994aSmrg # This is c89, which is MS Visual C++ (no shared libs) 514596ce994aSmrg # Anyone wants to do a port? 514696ce994aSmrg ;; 514796ce994aSmrg irix5* | irix6* | nonstopux*) 514896ce994aSmrg case $cc_basename in 514996ce994aSmrg CC*) 515096ce994aSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 515196ce994aSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 515296ce994aSmrg # CC pic flag -KPIC is the default. 515396ce994aSmrg ;; 515496ce994aSmrg *) 515596ce994aSmrg ;; 515696ce994aSmrg esac 515796ce994aSmrg ;; 515896ce994aSmrg linux* | k*bsd*-gnu) 515996ce994aSmrg case $cc_basename in 516096ce994aSmrg KCC*) 516196ce994aSmrg # KAI C++ Compiler 516296ce994aSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' 516396ce994aSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 516496ce994aSmrg ;; 516596ce994aSmrg icpc* | ecpc*) 516696ce994aSmrg # Intel C++ 516796ce994aSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 516896ce994aSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 516996ce994aSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' 517096ce994aSmrg ;; 517196ce994aSmrg pgCC* | pgcpp*) 517296ce994aSmrg # Portland Group C++ compiler. 517396ce994aSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 517496ce994aSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' 517596ce994aSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 517696ce994aSmrg ;; 517796ce994aSmrg cxx*) 517896ce994aSmrg # Compaq C++ 517996ce994aSmrg # Make sure the PIC flag is empty. It appears that all Alpha 518096ce994aSmrg # Linux and Compaq Tru64 Unix objects are PIC. 518196ce994aSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= 518296ce994aSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 518396ce994aSmrg ;; 518496ce994aSmrg *) 518596ce994aSmrg case `$CC -V 2>&1 | sed 5q` in 518696ce994aSmrg *Sun\ C*) 518796ce994aSmrg # Sun C++ 5.9 518896ce994aSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 518996ce994aSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 519096ce994aSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 519196ce994aSmrg ;; 519296ce994aSmrg esac 519396ce994aSmrg ;; 519496ce994aSmrg esac 519596ce994aSmrg ;; 519696ce994aSmrg lynxos*) 519796ce994aSmrg ;; 519896ce994aSmrg m88k*) 519996ce994aSmrg ;; 520096ce994aSmrg mvs*) 520196ce994aSmrg case $cc_basename in 520296ce994aSmrg cxx*) 520396ce994aSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' 520496ce994aSmrg ;; 520596ce994aSmrg *) 520696ce994aSmrg ;; 520796ce994aSmrg esac 520896ce994aSmrg ;; 520996ce994aSmrg netbsd*) 521096ce994aSmrg ;; 521196ce994aSmrg osf3* | osf4* | osf5*) 521296ce994aSmrg case $cc_basename in 521396ce994aSmrg KCC*) 521496ce994aSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' 521596ce994aSmrg ;; 521696ce994aSmrg RCC*) 521796ce994aSmrg # Rational C++ 2.4.1 521896ce994aSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 521996ce994aSmrg ;; 522096ce994aSmrg cxx*) 522196ce994aSmrg # Digital/Compaq C++ 522296ce994aSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 522396ce994aSmrg # Make sure the PIC flag is empty. It appears that all Alpha 522496ce994aSmrg # Linux and Compaq Tru64 Unix objects are PIC. 522596ce994aSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= 522696ce994aSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 522796ce994aSmrg ;; 522896ce994aSmrg *) 522996ce994aSmrg ;; 523096ce994aSmrg esac 523196ce994aSmrg ;; 523296ce994aSmrg psos*) 523396ce994aSmrg ;; 523496ce994aSmrg solaris*) 523596ce994aSmrg case $cc_basename in 523696ce994aSmrg CC*) 523796ce994aSmrg # Sun C++ 4.2, 5.x and Centerline C++ 523896ce994aSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 523996ce994aSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 524096ce994aSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 524196ce994aSmrg ;; 524296ce994aSmrg gcx*) 524396ce994aSmrg # Green Hills C++ Compiler 524496ce994aSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' 524596ce994aSmrg ;; 524696ce994aSmrg *) 524796ce994aSmrg ;; 524896ce994aSmrg esac 524996ce994aSmrg ;; 525096ce994aSmrg sunos4*) 525196ce994aSmrg case $cc_basename in 525296ce994aSmrg CC*) 525396ce994aSmrg # Sun C++ 4.x 525496ce994aSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 525596ce994aSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 525696ce994aSmrg ;; 525796ce994aSmrg lcc*) 525896ce994aSmrg # Lucid 525996ce994aSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 526096ce994aSmrg ;; 526196ce994aSmrg *) 526296ce994aSmrg ;; 526396ce994aSmrg esac 526496ce994aSmrg ;; 526596ce994aSmrg tandem*) 526696ce994aSmrg case $cc_basename in 526796ce994aSmrg NCC*) 526896ce994aSmrg # NonStop-UX NCC 3.20 526996ce994aSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 527096ce994aSmrg ;; 527196ce994aSmrg *) 527296ce994aSmrg ;; 527396ce994aSmrg esac 527496ce994aSmrg ;; 527596ce994aSmrg sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 527696ce994aSmrg case $cc_basename in 527796ce994aSmrg CC*) 527896ce994aSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 527996ce994aSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 528096ce994aSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 528196ce994aSmrg ;; 528296ce994aSmrg esac 528396ce994aSmrg ;; 528496ce994aSmrg vxworks*) 528596ce994aSmrg ;; 528696ce994aSmrg *) 528796ce994aSmrg _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 528896ce994aSmrg ;; 528996ce994aSmrg esac 529096ce994aSmrg fi 529196ce994aSmrg], 529296ce994aSmrg[ 529396ce994aSmrg if test "$GCC" = yes; then 529496ce994aSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 529596ce994aSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' 529672313efbSmrg 529796ce994aSmrg case $host_os in 529896ce994aSmrg aix*) 529996ce994aSmrg # All AIX code is PIC. 530096ce994aSmrg if test "$host_cpu" = ia64; then 530196ce994aSmrg # AIX 5 now supports IA64 processor 530296ce994aSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 530396ce994aSmrg fi 530496ce994aSmrg ;; 530572313efbSmrg 530696ce994aSmrg amigaos*) 530796ce994aSmrg # FIXME: we need at least 68020 code to build shared libraries, but 530896ce994aSmrg # adding the `-m68020' flag to GCC prevents building anything better, 530996ce994aSmrg # like `-m68040'. 531096ce994aSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' 531196ce994aSmrg ;; 531272313efbSmrg 531396ce994aSmrg beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 531496ce994aSmrg # PIC is the default for these OSes. 531596ce994aSmrg ;; 531672313efbSmrg 531796ce994aSmrg mingw* | cygwin* | pw32* | os2*) 531896ce994aSmrg # This hack is so that the source file can tell whether it is being 531996ce994aSmrg # built for inclusion in a dll (and should export symbols for example). 532096ce994aSmrg # Although the cygwin gcc ignores -fPIC, still need this for old-style 532196ce994aSmrg # (--disable-auto-import) libraries 532296ce994aSmrg m4_if([$1], [GCJ], [], 532396ce994aSmrg [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) 532496ce994aSmrg ;; 532572313efbSmrg 532696ce994aSmrg darwin* | rhapsody*) 532796ce994aSmrg # PIC is the default on this platform 532896ce994aSmrg # Common symbols not allowed in MH_DYLIB files 532996ce994aSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' 533096ce994aSmrg ;; 533172313efbSmrg 533296ce994aSmrg interix[[3-9]]*) 533396ce994aSmrg # Interix 3.x gcc -fpic/-fPIC options generate broken code. 533496ce994aSmrg # Instead, we relocate shared libraries at runtime. 533596ce994aSmrg ;; 533672313efbSmrg 533796ce994aSmrg msdosdjgpp*) 533896ce994aSmrg # Just because we use GCC doesn't mean we suddenly get shared libraries 533996ce994aSmrg # on systems that don't support them. 534096ce994aSmrg _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 534196ce994aSmrg enable_shared=no 534296ce994aSmrg ;; 534372313efbSmrg 534496ce994aSmrg sysv4*MP*) 534596ce994aSmrg if test -d /usr/nec; then 534696ce994aSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic 534796ce994aSmrg fi 534896ce994aSmrg ;; 534972313efbSmrg 535096ce994aSmrg hpux*) 535196ce994aSmrg # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 535296ce994aSmrg # not for PA HP-UX. 535396ce994aSmrg case $host_cpu in 535496ce994aSmrg hppa*64*|ia64*) 535596ce994aSmrg # +Z the default 535696ce994aSmrg ;; 535796ce994aSmrg *) 535896ce994aSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 535996ce994aSmrg ;; 536096ce994aSmrg esac 536196ce994aSmrg ;; 5362bdcaa8d0Smrg 536396ce994aSmrg *) 536496ce994aSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 536596ce994aSmrg ;; 536696ce994aSmrg esac 536796ce994aSmrg else 536896ce994aSmrg # PORTME Check for flag to pass linker flags through the system compiler. 536996ce994aSmrg case $host_os in 537096ce994aSmrg aix*) 537196ce994aSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 537296ce994aSmrg if test "$host_cpu" = ia64; then 537396ce994aSmrg # AIX 5 now supports IA64 processor 537496ce994aSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 537596ce994aSmrg else 537696ce994aSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' 537796ce994aSmrg fi 537896ce994aSmrg ;; 537996ce994aSmrg darwin*) 538096ce994aSmrg # PIC is the default on this platform 538196ce994aSmrg # Common symbols not allowed in MH_DYLIB files 538296ce994aSmrg case $cc_basename in 538396ce994aSmrg xlc*) 538496ce994aSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon' 538596ce994aSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 538696ce994aSmrg ;; 538796ce994aSmrg esac 538896ce994aSmrg ;; 5389bdcaa8d0Smrg 539096ce994aSmrg mingw* | cygwin* | pw32* | os2*) 539196ce994aSmrg # This hack is so that the source file can tell whether it is being 539296ce994aSmrg # built for inclusion in a dll (and should export symbols for example). 539396ce994aSmrg m4_if([$1], [GCJ], [], 539496ce994aSmrg [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) 539596ce994aSmrg ;; 5396bdcaa8d0Smrg 539796ce994aSmrg hpux9* | hpux10* | hpux11*) 539896ce994aSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 539996ce994aSmrg # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 540096ce994aSmrg # not for PA HP-UX. 540196ce994aSmrg case $host_cpu in 540296ce994aSmrg hppa*64*|ia64*) 540396ce994aSmrg # +Z the default 540496ce994aSmrg ;; 540596ce994aSmrg *) 540696ce994aSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 540796ce994aSmrg ;; 540896ce994aSmrg esac 540996ce994aSmrg # Is there a better lt_prog_compiler_static that works with the bundled CC? 541096ce994aSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' 541196ce994aSmrg ;; 5412bdcaa8d0Smrg 541396ce994aSmrg irix5* | irix6* | nonstopux*) 541496ce994aSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 541596ce994aSmrg # PIC (with -KPIC) is the default. 541696ce994aSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 541796ce994aSmrg ;; 5418bdcaa8d0Smrg 541996ce994aSmrg newsos6) 542096ce994aSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 542196ce994aSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 542296ce994aSmrg ;; 5423bdcaa8d0Smrg 542496ce994aSmrg linux* | k*bsd*-gnu) 542596ce994aSmrg case $cc_basename in 542696ce994aSmrg icc* | ecc*) 542796ce994aSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 542896ce994aSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 542996ce994aSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' 543096ce994aSmrg ;; 543196ce994aSmrg pgcc* | pgf77* | pgf90* | pgf95*) 543296ce994aSmrg # Portland Group compilers (*not* the Pentium gcc compiler, 543396ce994aSmrg # which looks to be a dead project) 543496ce994aSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 543596ce994aSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' 543696ce994aSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 543796ce994aSmrg ;; 543896ce994aSmrg ccc*) 543996ce994aSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 544096ce994aSmrg # All Alpha code is PIC. 544196ce994aSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 544296ce994aSmrg ;; 544396ce994aSmrg *) 544496ce994aSmrg case `$CC -V 2>&1 | sed 5q` in 544596ce994aSmrg *Sun\ C*) 544696ce994aSmrg # Sun C 5.9 544796ce994aSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 544896ce994aSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 544996ce994aSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 545096ce994aSmrg ;; 545196ce994aSmrg *Sun\ F*) 545296ce994aSmrg # Sun Fortran 8.3 passes all unrecognized flags to the linker 545396ce994aSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 545496ce994aSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 545596ce994aSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='' 545696ce994aSmrg ;; 545796ce994aSmrg esac 545896ce994aSmrg ;; 545996ce994aSmrg esac 546096ce994aSmrg ;; 5461bdcaa8d0Smrg 546296ce994aSmrg osf3* | osf4* | osf5*) 546396ce994aSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 546496ce994aSmrg # All OSF/1 code is PIC. 546596ce994aSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 546696ce994aSmrg ;; 5467bdcaa8d0Smrg 546896ce994aSmrg rdos*) 546996ce994aSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 547096ce994aSmrg ;; 5471bdcaa8d0Smrg 547296ce994aSmrg solaris*) 547396ce994aSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 547496ce994aSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 547596ce994aSmrg case $cc_basename in 547696ce994aSmrg f77* | f90* | f95*) 547796ce994aSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; 547896ce994aSmrg *) 547996ce994aSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; 548096ce994aSmrg esac 548196ce994aSmrg ;; 5482bdcaa8d0Smrg 548396ce994aSmrg sunos4*) 548496ce994aSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 548596ce994aSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' 548696ce994aSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 548796ce994aSmrg ;; 5488bdcaa8d0Smrg 548996ce994aSmrg sysv4 | sysv4.2uw2* | sysv4.3*) 549096ce994aSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 549196ce994aSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 549296ce994aSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 549396ce994aSmrg ;; 5494bdcaa8d0Smrg 549596ce994aSmrg sysv4*MP*) 549696ce994aSmrg if test -d /usr/nec ;then 549796ce994aSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' 549896ce994aSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 549996ce994aSmrg fi 550096ce994aSmrg ;; 5501bdcaa8d0Smrg 550296ce994aSmrg sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 550396ce994aSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 550496ce994aSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 550596ce994aSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 550696ce994aSmrg ;; 5507bdcaa8d0Smrg 550896ce994aSmrg unicos*) 550996ce994aSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 551096ce994aSmrg _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 551196ce994aSmrg ;; 551272313efbSmrg 551396ce994aSmrg uts4*) 551496ce994aSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 551596ce994aSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 551696ce994aSmrg ;; 551772313efbSmrg 551896ce994aSmrg *) 551996ce994aSmrg _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 552096ce994aSmrg ;; 552196ce994aSmrg esac 5522bdcaa8d0Smrg fi 5523bdcaa8d0Smrg]) 552496ce994aSmrgAC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)]) 5525bdcaa8d0Smrg 552696ce994aSmrg# 552796ce994aSmrg# Check to make sure the PIC flag actually works. 552896ce994aSmrg# 552996ce994aSmrgif test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then 553096ce994aSmrg AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works], 553196ce994aSmrg _LT_AC_TAGVAR(lt_cv_prog_compiler_pic_works, $1), 553296ce994aSmrg [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [], 553396ce994aSmrg [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in 553496ce994aSmrg "" | " "*) ;; 553596ce994aSmrg *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;; 553696ce994aSmrg esac], 553796ce994aSmrg [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= 553896ce994aSmrg _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) 5539bdcaa8d0Smrgfi 554096ce994aSmrgcase $host_os in 554196ce994aSmrg # For platforms which do not support PIC, -DPIC is meaningless: 554296ce994aSmrg *djgpp*) 554396ce994aSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= 554496ce994aSmrg ;; 554596ce994aSmrg *) 554696ce994aSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])" 554796ce994aSmrg ;; 5548bdcaa8d0Smrgesac 554972313efbSmrg 555096ce994aSmrg# 555196ce994aSmrg# Check to make sure the static flag actually works. 555296ce994aSmrg# 555396ce994aSmrgwl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\" 555496ce994aSmrgAC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], 555596ce994aSmrg _LT_AC_TAGVAR(lt_cv_prog_compiler_static_works, $1), 555696ce994aSmrg $lt_tmp_static_flag, 555796ce994aSmrg [], 555896ce994aSmrg [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=]) 555996ce994aSmrg]) 556072313efbSmrg 556172313efbSmrg 556296ce994aSmrg# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME]) 556396ce994aSmrg# ------------------------------------ 556496ce994aSmrg# See if the linker supports building shared libraries. 556596ce994aSmrgAC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS], 556696ce994aSmrg[AC_REQUIRE([LT_AC_PROG_SED])dnl 556796ce994aSmrgAC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) 556896ce994aSmrgifelse([$1],[CXX],[ 556996ce994aSmrg _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 557096ce994aSmrg case $host_os in 557196ce994aSmrg aix[[4-9]]*) 557296ce994aSmrg # If we're using GNU nm, then we don't want the "-C" option. 557396ce994aSmrg # -C means demangle to AIX nm, but means don't demangle with GNU nm 557496ce994aSmrg if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 557596ce994aSmrg _LT_AC_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' 557696ce994aSmrg else 557796ce994aSmrg _LT_AC_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' 557896ce994aSmrg fi 557996ce994aSmrg ;; 558096ce994aSmrg pw32*) 558196ce994aSmrg _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" 558296ce994aSmrg ;; 558396ce994aSmrg cygwin* | mingw*) 558496ce994aSmrg _LT_AC_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' 558596ce994aSmrg ;; 558696ce994aSmrg *) 558796ce994aSmrg _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 558896ce994aSmrg ;; 5589bdcaa8d0Smrg esac 559096ce994aSmrg _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] 559196ce994aSmrg],[ 559296ce994aSmrg runpath_var= 559396ce994aSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)= 559496ce994aSmrg _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no 559596ce994aSmrg _LT_AC_TAGVAR(archive_cmds, $1)= 559696ce994aSmrg _LT_AC_TAGVAR(archive_expsym_cmds, $1)= 559796ce994aSmrg _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)= 559896ce994aSmrg _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)= 559996ce994aSmrg _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= 560096ce994aSmrg _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= 560196ce994aSmrg _LT_AC_TAGVAR(thread_safe_flag_spec, $1)= 560296ce994aSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= 560396ce994aSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= 560496ce994aSmrg _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= 560596ce994aSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=no 560696ce994aSmrg _LT_AC_TAGVAR(hardcode_minus_L, $1)=no 560796ce994aSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 560896ce994aSmrg _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown 560996ce994aSmrg _LT_AC_TAGVAR(hardcode_automatic, $1)=no 561096ce994aSmrg _LT_AC_TAGVAR(module_cmds, $1)= 561196ce994aSmrg _LT_AC_TAGVAR(module_expsym_cmds, $1)= 561296ce994aSmrg _LT_AC_TAGVAR(always_export_symbols, $1)=no 561396ce994aSmrg _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 561496ce994aSmrg # include_expsyms should be a list of space-separated symbols to be *always* 561596ce994aSmrg # included in the symbol list 561696ce994aSmrg _LT_AC_TAGVAR(include_expsyms, $1)= 561796ce994aSmrg # exclude_expsyms can be an extended regexp of symbols to exclude 561896ce994aSmrg # it will be wrapped by ` (' and `)$', so one must not match beginning or 561996ce994aSmrg # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 562096ce994aSmrg # as well as any symbol that contains `d'. 562196ce994aSmrg _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] 562296ce994aSmrg # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 562396ce994aSmrg # platforms (ab)use it in PIC code, but their linkers get confused if 562496ce994aSmrg # the symbol is explicitly referenced. Since portable code cannot 562596ce994aSmrg # rely on this symbol name, it's probably fine to never include it in 562696ce994aSmrg # preloaded symbol tables. 562796ce994aSmrg # Exclude shared library initialization/finalization symbols. 562896ce994aSmrgdnl Note also adjust exclude_expsyms for C++ above. 562996ce994aSmrg extract_expsyms_cmds= 563096ce994aSmrg # Just being paranoid about ensuring that cc_basename is set. 563196ce994aSmrg _LT_CC_BASENAME([$compiler]) 563296ce994aSmrg case $host_os in 563396ce994aSmrg cygwin* | mingw* | pw32*) 563496ce994aSmrg # FIXME: the MSVC++ port hasn't been tested in a loooong time 563596ce994aSmrg # When not using gcc, we currently assume that we are using 563696ce994aSmrg # Microsoft Visual C++. 563796ce994aSmrg if test "$GCC" != yes; then 563896ce994aSmrg with_gnu_ld=no 563996ce994aSmrg fi 564096ce994aSmrg ;; 564196ce994aSmrg interix*) 564296ce994aSmrg # we just hope/assume this is gcc and not c89 (= MSVC++) 564396ce994aSmrg with_gnu_ld=yes 564496ce994aSmrg ;; 564596ce994aSmrg openbsd*) 564696ce994aSmrg with_gnu_ld=no 564772313efbSmrg ;; 564872313efbSmrg esac 5649bdcaa8d0Smrg 565096ce994aSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=yes 565196ce994aSmrg if test "$with_gnu_ld" = yes; then 565296ce994aSmrg # If archive_cmds runs LD, not CC, wlarc should be empty 565396ce994aSmrg wlarc='${wl}' 5654bdcaa8d0Smrg 565596ce994aSmrg # Set some defaults for GNU ld with shared library support. These 565696ce994aSmrg # are reset later if shared libraries are not supported. Putting them 565796ce994aSmrg # here allows them to be overridden if necessary. 565896ce994aSmrg runpath_var=LD_RUN_PATH 565996ce994aSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' 566096ce994aSmrg _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 566196ce994aSmrg # ancient GNU ld didn't support --whole-archive et. al. 566296ce994aSmrg if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 566396ce994aSmrg _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 566496ce994aSmrg else 566596ce994aSmrg _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= 566696ce994aSmrg fi 566796ce994aSmrg supports_anon_versioning=no 566896ce994aSmrg case `$LD -v 2>/dev/null` in 566996ce994aSmrg *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 567096ce994aSmrg *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 567196ce994aSmrg *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 567296ce994aSmrg *\ 2.11.*) ;; # other 2.11 versions 567396ce994aSmrg *) supports_anon_versioning=yes ;; 567496ce994aSmrg esac 5675bdcaa8d0Smrg 567696ce994aSmrg # See if GNU ld supports shared libraries. 567796ce994aSmrg case $host_os in 567896ce994aSmrg aix[[3-9]]*) 567996ce994aSmrg # On AIX/PPC, the GNU linker is very broken 568096ce994aSmrg if test "$host_cpu" != ia64; then 568196ce994aSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 568296ce994aSmrg cat <<EOF 1>&2 5683bdcaa8d0Smrg 568496ce994aSmrg*** Warning: the GNU linker, at least up to release 2.9.1, is reported 568596ce994aSmrg*** to be unable to reliably create shared libraries on AIX. 568696ce994aSmrg*** Therefore, libtool is disabling shared libraries support. If you 568796ce994aSmrg*** really care for shared libraries, you may want to modify your PATH 568896ce994aSmrg*** so that a non-GNU linker is found, and then restart. 5689bdcaa8d0Smrg 569096ce994aSmrgEOF 569196ce994aSmrg fi 569296ce994aSmrg ;; 5693bdcaa8d0Smrg 569496ce994aSmrg amigaos*) 569596ce994aSmrg _LT_AC_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)' 569696ce994aSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 569796ce994aSmrg _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 569896ce994aSmrg 569996ce994aSmrg # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 570096ce994aSmrg # that the semantics of dynamic libraries on AmigaOS, at least up 570196ce994aSmrg # to version 4, is to share data among multiple programs linked 570296ce994aSmrg # with the same dynamic library. Since this doesn't match the 570396ce994aSmrg # behavior of shared libraries on other platforms, we can't use 570496ce994aSmrg # them. 570596ce994aSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 570696ce994aSmrg ;; 5707bdcaa8d0Smrg 570896ce994aSmrg beos*) 570996ce994aSmrg if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 571096ce994aSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported 571196ce994aSmrg # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 571296ce994aSmrg # support --undefined. This deserves some investigation. FIXME 571396ce994aSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 571496ce994aSmrg else 571596ce994aSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 571696ce994aSmrg fi 571796ce994aSmrg ;; 5718bdcaa8d0Smrg 571996ce994aSmrg cygwin* | mingw* | pw32*) 572096ce994aSmrg # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, 572196ce994aSmrg # as there is no search path for DLLs. 572296ce994aSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 572396ce994aSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported 572496ce994aSmrg _LT_AC_TAGVAR(always_export_symbols, $1)=no 572596ce994aSmrg _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 572696ce994aSmrg _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols' 572796ce994aSmrg 572896ce994aSmrg if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 572996ce994aSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 573096ce994aSmrg # If the export-symbols file already is a .def file (1st line 573196ce994aSmrg # is EXPORTS), use it as is; otherwise, prepend... 573296ce994aSmrg _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 573396ce994aSmrg cp $export_symbols $output_objdir/$soname.def; 573496ce994aSmrg else 573596ce994aSmrg echo EXPORTS > $output_objdir/$soname.def; 573696ce994aSmrg cat $export_symbols >> $output_objdir/$soname.def; 573796ce994aSmrg fi~ 573896ce994aSmrg $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 573996ce994aSmrg else 574096ce994aSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 574196ce994aSmrg fi 574296ce994aSmrg ;; 5743bdcaa8d0Smrg 574496ce994aSmrg interix[[3-9]]*) 574596ce994aSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=no 574696ce994aSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 574796ce994aSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 574896ce994aSmrg _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 574996ce994aSmrg # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 575096ce994aSmrg # Instead, shared libraries are loaded at an image base (0x10000000 by 575196ce994aSmrg # default) and relocated if they conflict, which is a slow very memory 575296ce994aSmrg # consuming and fragmenting process. To avoid this, we pick a random, 575396ce994aSmrg # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 575496ce994aSmrg # time. Moving up from 0x10000000 also allows more sbrk(2) space. 575596ce994aSmrg _LT_AC_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' 575696ce994aSmrg _LT_AC_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' 575796ce994aSmrg ;; 5758bdcaa8d0Smrg 575996ce994aSmrg gnu* | linux* | k*bsd*-gnu) 576096ce994aSmrg if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 576196ce994aSmrg tmp_addflag= 576296ce994aSmrg case $cc_basename,$host_cpu in 576396ce994aSmrg pgcc*) # Portland Group C compiler 576496ce994aSmrg _LT_AC_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' 576596ce994aSmrg tmp_addflag=' $pic_flag' 576696ce994aSmrg ;; 576796ce994aSmrg pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 576896ce994aSmrg _LT_AC_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' 576996ce994aSmrg tmp_addflag=' $pic_flag -Mnomain' ;; 577096ce994aSmrg ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 577196ce994aSmrg tmp_addflag=' -i_dynamic' ;; 577296ce994aSmrg efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 577396ce994aSmrg tmp_addflag=' -i_dynamic -nofor_main' ;; 577496ce994aSmrg ifc* | ifort*) # Intel Fortran compiler 577596ce994aSmrg tmp_addflag=' -nofor_main' ;; 577696ce994aSmrg esac 577796ce994aSmrg case `$CC -V 2>&1 | sed 5q` in 577896ce994aSmrg *Sun\ C*) # Sun C 5.9 577996ce994aSmrg _LT_AC_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' 578096ce994aSmrg tmp_sharedflag='-G' ;; 578196ce994aSmrg *Sun\ F*) # Sun Fortran 8.3 578296ce994aSmrg tmp_sharedflag='-G' ;; 578396ce994aSmrg *) 578496ce994aSmrg tmp_sharedflag='-shared' ;; 578596ce994aSmrg esac 578696ce994aSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 5787bdcaa8d0Smrg 578896ce994aSmrg if test $supports_anon_versioning = yes; then 578996ce994aSmrg _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~ 579096ce994aSmrg cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 579196ce994aSmrg $echo "local: *; };" >> $output_objdir/$libname.ver~ 579296ce994aSmrg $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 579396ce994aSmrg fi 579496ce994aSmrg else 579596ce994aSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 579696ce994aSmrg fi 579796ce994aSmrg ;; 5798bdcaa8d0Smrg 579996ce994aSmrg netbsd*) 580096ce994aSmrg if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 580196ce994aSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 580296ce994aSmrg wlarc= 580396ce994aSmrg else 580496ce994aSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 580596ce994aSmrg _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 580696ce994aSmrg fi 580796ce994aSmrg ;; 5808bdcaa8d0Smrg 580996ce994aSmrg solaris*) 581096ce994aSmrg if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 581196ce994aSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 581296ce994aSmrg cat <<EOF 1>&2 5813bdcaa8d0Smrg 581496ce994aSmrg*** Warning: The releases 2.8.* of the GNU linker cannot reliably 581596ce994aSmrg*** create shared libraries on Solaris systems. Therefore, libtool 581696ce994aSmrg*** is disabling shared libraries support. We urge you to upgrade GNU 581796ce994aSmrg*** binutils to release 2.9.1 or newer. Another option is to modify 581896ce994aSmrg*** your PATH or compiler configuration so that the native linker is 581996ce994aSmrg*** used, and then restart. 5820bdcaa8d0Smrg 582196ce994aSmrgEOF 582296ce994aSmrg elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 582396ce994aSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 582496ce994aSmrg _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 582596ce994aSmrg else 582696ce994aSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 582796ce994aSmrg fi 582896ce994aSmrg ;; 5829bdcaa8d0Smrg 583096ce994aSmrg sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 583196ce994aSmrg case `$LD -v 2>&1` in 583296ce994aSmrg *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) 583396ce994aSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 583496ce994aSmrg cat <<_LT_EOF 1>&2 5835bdcaa8d0Smrg 583696ce994aSmrg*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 583796ce994aSmrg*** reliably create shared libraries on SCO systems. Therefore, libtool 583896ce994aSmrg*** is disabling shared libraries support. We urge you to upgrade GNU 583996ce994aSmrg*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 584096ce994aSmrg*** your PATH or compiler configuration so that the native linker is 584196ce994aSmrg*** used, and then restart. 5842bdcaa8d0Smrg 584396ce994aSmrg_LT_EOF 584496ce994aSmrg ;; 584596ce994aSmrg *) 584696ce994aSmrg if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 584796ce994aSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 584896ce994aSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 584996ce994aSmrg _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 585096ce994aSmrg else 585196ce994aSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 585296ce994aSmrg fi 585396ce994aSmrg ;; 585496ce994aSmrg esac 585596ce994aSmrg ;; 5856bdcaa8d0Smrg 585796ce994aSmrg sunos4*) 585896ce994aSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 585996ce994aSmrg wlarc= 586096ce994aSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=yes 586196ce994aSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 586296ce994aSmrg ;; 5863bdcaa8d0Smrg 586496ce994aSmrg *) 586596ce994aSmrg if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 586696ce994aSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 586796ce994aSmrg _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 586896ce994aSmrg else 586996ce994aSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 587096ce994aSmrg fi 587196ce994aSmrg ;; 587296ce994aSmrg esac 5873bdcaa8d0Smrg 587496ce994aSmrg if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then 587596ce994aSmrg runpath_var= 587696ce994aSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= 587796ce994aSmrg _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= 587896ce994aSmrg _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= 587996ce994aSmrg fi 588096ce994aSmrg else 588196ce994aSmrg # PORTME fill in a description of your system's linker (not GNU ld) 588296ce994aSmrg case $host_os in 588396ce994aSmrg aix3*) 588496ce994aSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported 588596ce994aSmrg _LT_AC_TAGVAR(always_export_symbols, $1)=yes 588696ce994aSmrg _LT_AC_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' 588796ce994aSmrg # Note: this linker hardcodes the directories in LIBPATH if there 588896ce994aSmrg # are no directories specified by -L. 588996ce994aSmrg _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 589096ce994aSmrg if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 589196ce994aSmrg # Neither direct hardcoding nor static linking is supported with a 589296ce994aSmrg # broken collect2. 589396ce994aSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported 589496ce994aSmrg fi 589596ce994aSmrg ;; 5896bdcaa8d0Smrg 589796ce994aSmrg aix[[4-9]]*) 589896ce994aSmrg if test "$host_cpu" = ia64; then 589996ce994aSmrg # On IA64, the linker does run time linking by default, so we don't 590096ce994aSmrg # have to do anything special. 590196ce994aSmrg aix_use_runtimelinking=no 590296ce994aSmrg exp_sym_flag='-Bexport' 590396ce994aSmrg no_entry_flag="" 590496ce994aSmrg else 590596ce994aSmrg # If we're using GNU nm, then we don't want the "-C" option. 590696ce994aSmrg # -C means demangle to AIX nm, but means don't demangle with GNU nm 590796ce994aSmrg if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 590896ce994aSmrg _LT_AC_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' 590996ce994aSmrg else 591096ce994aSmrg _LT_AC_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' 591196ce994aSmrg fi 591296ce994aSmrg aix_use_runtimelinking=no 5913bdcaa8d0Smrg 591496ce994aSmrg # Test if we are trying to use run time linking or normal 591596ce994aSmrg # AIX style linking. If -brtl is somewhere in LDFLAGS, we 591696ce994aSmrg # need to do runtime linking. 591796ce994aSmrg case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) 591896ce994aSmrg for ld_flag in $LDFLAGS; do 591996ce994aSmrg if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 592096ce994aSmrg aix_use_runtimelinking=yes 592196ce994aSmrg break 592296ce994aSmrg fi 592396ce994aSmrg done 592496ce994aSmrg ;; 592596ce994aSmrg esac 5926bdcaa8d0Smrg 592796ce994aSmrg exp_sym_flag='-bexport' 592896ce994aSmrg no_entry_flag='-bnoentry' 592996ce994aSmrg fi 5930bdcaa8d0Smrg 593196ce994aSmrg # When large executables or shared objects are built, AIX ld can 593296ce994aSmrg # have problems creating the table of contents. If linking a library 593396ce994aSmrg # or program results in "error TOC overflow" add -mminimal-toc to 593496ce994aSmrg # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 593596ce994aSmrg # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 5936bdcaa8d0Smrg 593796ce994aSmrg _LT_AC_TAGVAR(archive_cmds, $1)='' 593896ce994aSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=yes 593996ce994aSmrg _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' 594096ce994aSmrg _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 5941bdcaa8d0Smrg 594296ce994aSmrg if test "$GCC" = yes; then 594396ce994aSmrg case $host_os in aix4.[[012]]|aix4.[[012]].*) 594496ce994aSmrg # We only want to do this on AIX 4.2 and lower, the check 594596ce994aSmrg # below for broken collect2 doesn't work under 4.3+ 594696ce994aSmrg collect2name=`${CC} -print-prog-name=collect2` 594796ce994aSmrg if test -f "$collect2name" && \ 594896ce994aSmrg strings "$collect2name" | grep resolve_lib_name >/dev/null 594996ce994aSmrg then 595096ce994aSmrg # We have reworked collect2 595196ce994aSmrg : 595296ce994aSmrg else 595396ce994aSmrg # We have old collect2 595496ce994aSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported 595596ce994aSmrg # It fails to find uninstalled libraries when the uninstalled 595696ce994aSmrg # path is not listed in the libpath. Setting hardcode_minus_L 595796ce994aSmrg # to unsupported forces relinking 595896ce994aSmrg _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 595996ce994aSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 596096ce994aSmrg _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= 596196ce994aSmrg fi 596296ce994aSmrg ;; 596396ce994aSmrg esac 596496ce994aSmrg shared_flag='-shared' 596596ce994aSmrg if test "$aix_use_runtimelinking" = yes; then 596696ce994aSmrg shared_flag="$shared_flag "'${wl}-G' 596796ce994aSmrg fi 596896ce994aSmrg else 596996ce994aSmrg # not using gcc 597096ce994aSmrg if test "$host_cpu" = ia64; then 597196ce994aSmrg # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 597296ce994aSmrg # chokes on -Wl,-G. The following line is correct: 597396ce994aSmrg shared_flag='-G' 597496ce994aSmrg else 597596ce994aSmrg if test "$aix_use_runtimelinking" = yes; then 597696ce994aSmrg shared_flag='${wl}-G' 597796ce994aSmrg else 597896ce994aSmrg shared_flag='${wl}-bM:SRE' 597996ce994aSmrg fi 598096ce994aSmrg fi 598196ce994aSmrg fi 5982bdcaa8d0Smrg 598396ce994aSmrg # It seems that -bexpall does not export symbols beginning with 598496ce994aSmrg # underscore (_), so it is better to generate a list of symbols to export. 598596ce994aSmrg _LT_AC_TAGVAR(always_export_symbols, $1)=yes 598696ce994aSmrg if test "$aix_use_runtimelinking" = yes; then 598796ce994aSmrg # Warning - without using the other runtime loading flags (-brtl), 598896ce994aSmrg # -berok will link without error, but may produce a broken library. 598996ce994aSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok' 599096ce994aSmrg # Determine the default libpath from the value encoded in an empty executable. 599196ce994aSmrg _LT_AC_SYS_LIBPATH_AIX 599296ce994aSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 599396ce994aSmrg _LT_AC_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 "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 599496ce994aSmrg else 599596ce994aSmrg if test "$host_cpu" = ia64; then 599696ce994aSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' 599796ce994aSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" 599896ce994aSmrg _LT_AC_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" 599996ce994aSmrg else 600096ce994aSmrg # Determine the default libpath from the value encoded in an empty executable. 600196ce994aSmrg _LT_AC_SYS_LIBPATH_AIX 600296ce994aSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 600396ce994aSmrg # Warning - without using the other run time loading flags, 600496ce994aSmrg # -berok will link without error, but may produce a broken library. 600596ce994aSmrg _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' 600696ce994aSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' 600796ce994aSmrg # Exported symbols can be pulled into shared objects from archives 600896ce994aSmrg _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience' 600996ce994aSmrg _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes 601096ce994aSmrg # This is similar to how AIX traditionally builds its shared libraries. 601196ce994aSmrg _LT_AC_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' 601296ce994aSmrg fi 601396ce994aSmrg fi 601496ce994aSmrg ;; 601572313efbSmrg 601696ce994aSmrg amigaos*) 601796ce994aSmrg _LT_AC_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)' 601896ce994aSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 601996ce994aSmrg _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 602096ce994aSmrg # see comment about different semantics on the GNU ld section 602196ce994aSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 602296ce994aSmrg ;; 6023bdcaa8d0Smrg 602496ce994aSmrg bsdi[[45]]*) 602596ce994aSmrg _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic 602696ce994aSmrg ;; 6027bdcaa8d0Smrg 602896ce994aSmrg cygwin* | mingw* | pw32*) 602996ce994aSmrg # When not using gcc, we currently assume that we are using 603096ce994aSmrg # Microsoft Visual C++. 603196ce994aSmrg # hardcode_libdir_flag_spec is actually meaningless, as there is 603296ce994aSmrg # no search path for DLLs. 603396ce994aSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' 603496ce994aSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported 603596ce994aSmrg # Tell ltmain to make .lib files, not .a files. 603696ce994aSmrg libext=lib 603796ce994aSmrg # Tell ltmain to make .dll files, not .so files. 603896ce994aSmrg shrext_cmds=".dll" 603996ce994aSmrg # FIXME: Setting linknames here is a bad hack. 604096ce994aSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 604196ce994aSmrg # The linker will automatically build a .lib file if we build a DLL. 604296ce994aSmrg _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true' 604396ce994aSmrg # FIXME: Should let the user specify the lib program. 604496ce994aSmrg _LT_AC_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs' 604596ce994aSmrg _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`' 604696ce994aSmrg _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 604796ce994aSmrg ;; 6048bdcaa8d0Smrg 604996ce994aSmrg darwin* | rhapsody*) 605096ce994aSmrg case $host_os in 605196ce994aSmrg rhapsody* | darwin1.[[012]]) 605296ce994aSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress' 605396ce994aSmrg ;; 605496ce994aSmrg *) # Darwin 1.3 on 605596ce994aSmrg if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 605696ce994aSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 605796ce994aSmrg else 605896ce994aSmrg case ${MACOSX_DEPLOYMENT_TARGET} in 605996ce994aSmrg 10.[[012]]) 606096ce994aSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 606196ce994aSmrg ;; 606296ce994aSmrg 10.*) 606396ce994aSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup' 606496ce994aSmrg ;; 606596ce994aSmrg esac 606696ce994aSmrg fi 606796ce994aSmrg ;; 606896ce994aSmrg esac 606996ce994aSmrg _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 607096ce994aSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=no 607196ce994aSmrg _LT_AC_TAGVAR(hardcode_automatic, $1)=yes 607296ce994aSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 607396ce994aSmrg _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='' 607496ce994aSmrg _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 607596ce994aSmrg if test "$GCC" = yes ; then 607696ce994aSmrg output_verbose_link_cmd='echo' 607796ce994aSmrg _LT_AC_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}" 607896ce994aSmrg _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 607996ce994aSmrg _LT_AC_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}" 608096ce994aSmrg _LT_AC_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}" 608196ce994aSmrg else 608296ce994aSmrg case $cc_basename in 608396ce994aSmrg xlc*) 608496ce994aSmrg output_verbose_link_cmd='echo' 608596ce994aSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 608696ce994aSmrg _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 608796ce994aSmrg # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 608896ce994aSmrg _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 608996ce994aSmrg _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 609096ce994aSmrg ;; 609196ce994aSmrg *) 609296ce994aSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 609396ce994aSmrg ;; 609496ce994aSmrg esac 609596ce994aSmrg fi 609696ce994aSmrg ;; 6097bdcaa8d0Smrg 609896ce994aSmrg dgux*) 609996ce994aSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 610096ce994aSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 610196ce994aSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 610296ce994aSmrg ;; 6103bdcaa8d0Smrg 610496ce994aSmrg freebsd1*) 610596ce994aSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 610696ce994aSmrg ;; 6107bdcaa8d0Smrg 610896ce994aSmrg # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 610996ce994aSmrg # support. Future versions do this automatically, but an explicit c++rt0.o 611096ce994aSmrg # does not break anything, and helps significantly (at the cost of a little 611196ce994aSmrg # extra space). 611296ce994aSmrg freebsd2.2*) 611396ce994aSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 611496ce994aSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 611596ce994aSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=yes 611696ce994aSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 611796ce994aSmrg ;; 6118bdcaa8d0Smrg 611996ce994aSmrg # Unfortunately, older versions of FreeBSD 2 do not have this feature. 612096ce994aSmrg freebsd2*) 612196ce994aSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 612296ce994aSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=yes 612396ce994aSmrg _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 612496ce994aSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 6125bdcaa8d0Smrg ;; 6126bdcaa8d0Smrg 612796ce994aSmrg # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 612896ce994aSmrg freebsd* | dragonfly*) 612996ce994aSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 613096ce994aSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 613196ce994aSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=yes 613296ce994aSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 613396ce994aSmrg ;; 6134bdcaa8d0Smrg 613596ce994aSmrg hpux9*) 613696ce994aSmrg if test "$GCC" = yes; then 613796ce994aSmrg _LT_AC_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' 613896ce994aSmrg else 613996ce994aSmrg _LT_AC_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' 614096ce994aSmrg fi 614196ce994aSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 614296ce994aSmrg _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 614396ce994aSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=yes 6144bdcaa8d0Smrg 614596ce994aSmrg # hardcode_minus_L: Not really in the search PATH, 614696ce994aSmrg # but as the default location of the library. 614796ce994aSmrg _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 614896ce994aSmrg _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 614996ce994aSmrg ;; 6150bdcaa8d0Smrg 615196ce994aSmrg hpux10*) 615296ce994aSmrg if test "$GCC" = yes -a "$with_gnu_ld" = no; then 615396ce994aSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 615496ce994aSmrg else 615596ce994aSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 615696ce994aSmrg fi 615796ce994aSmrg if test "$with_gnu_ld" = no; then 615896ce994aSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 615996ce994aSmrg _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 6160bdcaa8d0Smrg 616196ce994aSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=yes 616296ce994aSmrg _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 6163bdcaa8d0Smrg 616496ce994aSmrg # hardcode_minus_L: Not really in the search PATH, 616596ce994aSmrg # but as the default location of the library. 616696ce994aSmrg _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 616796ce994aSmrg fi 616896ce994aSmrg ;; 6169bdcaa8d0Smrg 617096ce994aSmrg hpux11*) 617196ce994aSmrg if test "$GCC" = yes -a "$with_gnu_ld" = no; then 617296ce994aSmrg case $host_cpu in 617396ce994aSmrg hppa*64*) 617496ce994aSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 617596ce994aSmrg ;; 617696ce994aSmrg ia64*) 617796ce994aSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 617896ce994aSmrg ;; 617996ce994aSmrg *) 618096ce994aSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 618196ce994aSmrg ;; 618296ce994aSmrg esac 618396ce994aSmrg else 618496ce994aSmrg case $host_cpu in 618596ce994aSmrg hppa*64*) 618696ce994aSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 618796ce994aSmrg ;; 618896ce994aSmrg ia64*) 618996ce994aSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 619096ce994aSmrg ;; 619196ce994aSmrg *) 619296ce994aSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 619396ce994aSmrg ;; 619496ce994aSmrg esac 619596ce994aSmrg fi 619696ce994aSmrg if test "$with_gnu_ld" = no; then 619796ce994aSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 619896ce994aSmrg _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 6199bdcaa8d0Smrg 620096ce994aSmrg case $host_cpu in 620196ce994aSmrg hppa*64*|ia64*) 620296ce994aSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' 620396ce994aSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=no 620496ce994aSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 620596ce994aSmrg ;; 620696ce994aSmrg *) 620796ce994aSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=yes 620896ce994aSmrg _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 6209bdcaa8d0Smrg 621096ce994aSmrg # hardcode_minus_L: Not really in the search PATH, 621196ce994aSmrg # but as the default location of the library. 621296ce994aSmrg _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 621396ce994aSmrg ;; 621496ce994aSmrg esac 621596ce994aSmrg fi 6216bdcaa8d0Smrg ;; 6217bdcaa8d0Smrg 621896ce994aSmrg irix5* | irix6* | nonstopux*) 621996ce994aSmrg if test "$GCC" = yes; then 622096ce994aSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 622196ce994aSmrg else 622296ce994aSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 622396ce994aSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir' 622496ce994aSmrg fi 622596ce994aSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 622696ce994aSmrg _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 622796ce994aSmrg _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 622896ce994aSmrg ;; 6229bdcaa8d0Smrg 623096ce994aSmrg netbsd*) 623196ce994aSmrg if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 623296ce994aSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 623396ce994aSmrg else 623496ce994aSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 623596ce994aSmrg fi 623696ce994aSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 623796ce994aSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=yes 623896ce994aSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 623996ce994aSmrg ;; 6240bdcaa8d0Smrg 624196ce994aSmrg newsos6) 624296ce994aSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 624396ce994aSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=yes 624496ce994aSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 624596ce994aSmrg _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 624696ce994aSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 624796ce994aSmrg ;; 6248bdcaa8d0Smrg 624996ce994aSmrg openbsd*) 625096ce994aSmrg if test -f /usr/libexec/ld.so; then 625196ce994aSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=yes 625296ce994aSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 625396ce994aSmrg if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 625496ce994aSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 625596ce994aSmrg _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 625696ce994aSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 625796ce994aSmrg _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 625896ce994aSmrg else 625996ce994aSmrg case $host_os in 626096ce994aSmrg openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*) 626196ce994aSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 626296ce994aSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 626396ce994aSmrg ;; 626496ce994aSmrg *) 626596ce994aSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 626696ce994aSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 626796ce994aSmrg ;; 626896ce994aSmrg esac 626996ce994aSmrg fi 627096ce994aSmrg else 627196ce994aSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 627296ce994aSmrg fi 627396ce994aSmrg ;; 6274bdcaa8d0Smrg 627596ce994aSmrg os2*) 627696ce994aSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 627796ce994aSmrg _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 627896ce994aSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported 627996ce994aSmrg _LT_AC_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' 628096ce994aSmrg _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 628196ce994aSmrg ;; 6282bdcaa8d0Smrg 628396ce994aSmrg osf3*) 628496ce994aSmrg if test "$GCC" = yes; then 628596ce994aSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 628696ce994aSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 628796ce994aSmrg else 628896ce994aSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 628996ce994aSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 629096ce994aSmrg fi 629196ce994aSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 629296ce994aSmrg _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 629396ce994aSmrg ;; 6294bdcaa8d0Smrg 629596ce994aSmrg osf4* | osf5*) # as osf3* with the addition of -msym flag 629696ce994aSmrg if test "$GCC" = yes; then 629796ce994aSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 629896ce994aSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 629996ce994aSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 630096ce994aSmrg else 630196ce994aSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 630296ce994aSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 630396ce994aSmrg _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 630496ce994aSmrg $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' 6305bdcaa8d0Smrg 630696ce994aSmrg # Both c and cxx compiler support -rpath directly 630796ce994aSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 630896ce994aSmrg fi 630996ce994aSmrg _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 631096ce994aSmrg ;; 6311bdcaa8d0Smrg 631296ce994aSmrg solaris*) 631396ce994aSmrg _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text' 631496ce994aSmrg if test "$GCC" = yes; then 631596ce994aSmrg wlarc='${wl}' 631696ce994aSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 631796ce994aSmrg _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 631896ce994aSmrg $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 631996ce994aSmrg else 632096ce994aSmrg wlarc='' 632196ce994aSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 632296ce994aSmrg _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 632396ce994aSmrg $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 632496ce994aSmrg fi 632596ce994aSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 632696ce994aSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 632796ce994aSmrg case $host_os in 632896ce994aSmrg solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 632996ce994aSmrg *) 633096ce994aSmrg # The compiler driver will combine and reorder linker options, 633196ce994aSmrg # but understands `-z linker_flag'. GCC discards it without `$wl', 633296ce994aSmrg # but is careful enough not to reorder. 633396ce994aSmrg # Supported since Solaris 2.6 (maybe 2.5.1?) 633496ce994aSmrg if test "$GCC" = yes; then 633596ce994aSmrg _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 633696ce994aSmrg else 633796ce994aSmrg _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' 633872313efbSmrg fi 633996ce994aSmrg ;; 634096ce994aSmrg esac 634196ce994aSmrg _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 6342bdcaa8d0Smrg ;; 6343bdcaa8d0Smrg 634496ce994aSmrg sunos4*) 634596ce994aSmrg if test "x$host_vendor" = xsequent; then 634696ce994aSmrg # Use $CC to link under sequent, because it throws in some extra .o 634796ce994aSmrg # files that make .init and .fini sections work. 634896ce994aSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 634996ce994aSmrg else 635096ce994aSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 635196ce994aSmrg fi 635296ce994aSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 635396ce994aSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=yes 635496ce994aSmrg _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 635596ce994aSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 635696ce994aSmrg ;; 6357bdcaa8d0Smrg 635896ce994aSmrg sysv4) 635996ce994aSmrg case $host_vendor in 636096ce994aSmrg sni) 636196ce994aSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 636296ce994aSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true??? 636396ce994aSmrg ;; 636496ce994aSmrg siemens) 636596ce994aSmrg ## LD is ld it makes a PLAMLIB 636696ce994aSmrg ## CC just makes a GrossModule. 636796ce994aSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' 636896ce994aSmrg _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs' 636996ce994aSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=no 637096ce994aSmrg ;; 637196ce994aSmrg motorola) 637296ce994aSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 637396ce994aSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie 637496ce994aSmrg ;; 637596ce994aSmrg esac 637696ce994aSmrg runpath_var='LD_RUN_PATH' 637796ce994aSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 637896ce994aSmrg ;; 6379bdcaa8d0Smrg 638096ce994aSmrg sysv4.3*) 638196ce994aSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 638296ce994aSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 638396ce994aSmrg _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport' 638496ce994aSmrg ;; 6385bdcaa8d0Smrg 638696ce994aSmrg sysv4*MP*) 638796ce994aSmrg if test -d /usr/nec; then 638896ce994aSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 638996ce994aSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 639096ce994aSmrg runpath_var=LD_RUN_PATH 639196ce994aSmrg hardcode_runpath_var=yes 639296ce994aSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=yes 639396ce994aSmrg fi 639496ce994aSmrg ;; 6395bdcaa8d0Smrg 639696ce994aSmrg sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) 639796ce994aSmrg _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' 639896ce994aSmrg _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 639996ce994aSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 640096ce994aSmrg runpath_var='LD_RUN_PATH' 6401bdcaa8d0Smrg 640296ce994aSmrg if test "$GCC" = yes; then 640396ce994aSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 640496ce994aSmrg _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 640596ce994aSmrg else 640696ce994aSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 640796ce994aSmrg _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 640896ce994aSmrg fi 640996ce994aSmrg ;; 641072313efbSmrg 641196ce994aSmrg sysv5* | sco3.2v5* | sco5v6*) 641296ce994aSmrg # Note: We can NOT use -z defs as we might desire, because we do not 641396ce994aSmrg # link with -lc, and that would cause any symbols used from libc to 641496ce994aSmrg # always be unresolved, which means just about no library would 641596ce994aSmrg # ever link correctly. If we're not using GNU ld we use -z text 641696ce994aSmrg # though, which does catch some bad symbols but isn't as heavy-handed 641796ce994aSmrg # as -z defs. 641896ce994aSmrg _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' 641996ce994aSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' 642096ce994aSmrg _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 642196ce994aSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 642296ce994aSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 642396ce994aSmrg _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' 642496ce994aSmrg _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 642596ce994aSmrg _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' 642696ce994aSmrg runpath_var='LD_RUN_PATH' 642772313efbSmrg 642896ce994aSmrg if test "$GCC" = yes; then 642996ce994aSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 643096ce994aSmrg _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 643196ce994aSmrg else 643296ce994aSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 643396ce994aSmrg _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 643496ce994aSmrg fi 643596ce994aSmrg ;; 643672313efbSmrg 643796ce994aSmrg uts4*) 643896ce994aSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 643996ce994aSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 644096ce994aSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 644196ce994aSmrg ;; 644272313efbSmrg 644396ce994aSmrg *) 644496ce994aSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 644596ce994aSmrg ;; 644696ce994aSmrg esac 644796ce994aSmrg fi 644872313efbSmrg]) 644996ce994aSmrgAC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)]) 645096ce994aSmrgtest "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no 6451bdcaa8d0Smrg 645296ce994aSmrg# 645396ce994aSmrg# Do we need to explicitly link libc? 645496ce994aSmrg# 645596ce994aSmrgcase "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in 645696ce994aSmrgx|xyes) 645796ce994aSmrg # Assume -lc should be added 645896ce994aSmrg _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes 6459bdcaa8d0Smrg 646096ce994aSmrg if test "$enable_shared" = yes && test "$GCC" = yes; then 646196ce994aSmrg case $_LT_AC_TAGVAR(archive_cmds, $1) in 646296ce994aSmrg *'~'*) 646396ce994aSmrg # FIXME: we may have to deal with multi-command sequences. 646496ce994aSmrg ;; 646596ce994aSmrg '$CC '*) 646696ce994aSmrg # Test whether the compiler implicitly links with -lc since on some 646796ce994aSmrg # systems, -lgcc has to come before -lc. If gcc already passes -lc 646896ce994aSmrg # to ld, don't add -lc before -lgcc. 646996ce994aSmrg AC_MSG_CHECKING([whether -lc should be explicitly linked in]) 647096ce994aSmrg $rm conftest* 647196ce994aSmrg echo "$lt_simple_compile_test_code" > conftest.$ac_ext 647272313efbSmrg 647396ce994aSmrg if AC_TRY_EVAL(ac_compile) 2>conftest.err; then 647496ce994aSmrg soname=conftest 647596ce994aSmrg lib=conftest 647696ce994aSmrg libobjs=conftest.$ac_objext 647796ce994aSmrg deplibs= 647896ce994aSmrg wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) 647996ce994aSmrg pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) 648096ce994aSmrg compiler_flags=-v 648196ce994aSmrg linker_flags=-v 648296ce994aSmrg verstring= 648396ce994aSmrg output_objdir=. 648496ce994aSmrg libname=conftest 648596ce994aSmrg lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1) 648696ce994aSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)= 648796ce994aSmrg if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 648896ce994aSmrg then 648996ce994aSmrg _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 649096ce994aSmrg else 649196ce994aSmrg _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes 649296ce994aSmrg fi 649396ce994aSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag 649496ce994aSmrg else 649596ce994aSmrg cat conftest.err 1>&5 649696ce994aSmrg fi 649796ce994aSmrg $rm conftest* 649896ce994aSmrg AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)]) 649996ce994aSmrg ;; 650096ce994aSmrg esac 650196ce994aSmrg fi 650296ce994aSmrg ;; 650396ce994aSmrgesac 650496ce994aSmrg])# AC_LIBTOOL_PROG_LD_SHLIBS 650572313efbSmrg 650672313efbSmrg 650796ce994aSmrg# _LT_AC_FILE_LTDLL_C 650896ce994aSmrg# ------------------- 650996ce994aSmrg# Be careful that the start marker always follows a newline. 651096ce994aSmrgAC_DEFUN([_LT_AC_FILE_LTDLL_C], [ 651196ce994aSmrg# /* ltdll.c starts here */ 651296ce994aSmrg# #define WIN32_LEAN_AND_MEAN 651396ce994aSmrg# #include <windows.h> 651496ce994aSmrg# #undef WIN32_LEAN_AND_MEAN 651596ce994aSmrg# #include <stdio.h> 6516bdcaa8d0Smrg# 651796ce994aSmrg# #ifndef __CYGWIN__ 651896ce994aSmrg# # ifdef __CYGWIN32__ 651996ce994aSmrg# # define __CYGWIN__ __CYGWIN32__ 652096ce994aSmrg# # endif 652196ce994aSmrg# #endif 6522bdcaa8d0Smrg# 652396ce994aSmrg# #ifdef __cplusplus 652496ce994aSmrg# extern "C" { 652596ce994aSmrg# #endif 652696ce994aSmrg# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved); 652796ce994aSmrg# #ifdef __cplusplus 652896ce994aSmrg# } 652996ce994aSmrg# #endif 6530bdcaa8d0Smrg# 653196ce994aSmrg# #ifdef __CYGWIN__ 653296ce994aSmrg# #include <cygwin/cygwin_dll.h> 653396ce994aSmrg# DECLARE_CYGWIN_DLL( DllMain ); 653496ce994aSmrg# #endif 653596ce994aSmrg# HINSTANCE __hDllInstance_base; 653696ce994aSmrg# 653796ce994aSmrg# BOOL APIENTRY 653896ce994aSmrg# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved) 653996ce994aSmrg# { 654096ce994aSmrg# __hDllInstance_base = hInst; 654196ce994aSmrg# return TRUE; 654296ce994aSmrg# } 654396ce994aSmrg# /* ltdll.c ends here */ 654496ce994aSmrg])# _LT_AC_FILE_LTDLL_C 6545bdcaa8d0Smrg 6546bdcaa8d0Smrg 654796ce994aSmrg# _LT_AC_TAGVAR(VARNAME, [TAGNAME]) 654896ce994aSmrg# --------------------------------- 654996ce994aSmrgAC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])]) 6550bdcaa8d0Smrg 6551bdcaa8d0Smrg 655296ce994aSmrg# old names 655396ce994aSmrgAC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL]) 655496ce994aSmrgAC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) 655596ce994aSmrgAC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) 655696ce994aSmrgAC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) 655796ce994aSmrgAC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) 655896ce994aSmrgAC_DEFUN([AM_PROG_LD], [AC_PROG_LD]) 655996ce994aSmrgAC_DEFUN([AM_PROG_NM], [AC_PROG_NM]) 6560bdcaa8d0Smrg 656196ce994aSmrg# This is just to silence aclocal about the macro not being used 656296ce994aSmrgifelse([AC_DISABLE_FAST_INSTALL]) 6563bdcaa8d0Smrg 656496ce994aSmrgAC_DEFUN([LT_AC_PROG_GCJ], 656596ce994aSmrg[AC_CHECK_TOOL(GCJ, gcj, no) 656696ce994aSmrg test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2" 656796ce994aSmrg AC_SUBST(GCJFLAGS) 656896ce994aSmrg]) 6569bdcaa8d0Smrg 657096ce994aSmrgAC_DEFUN([LT_AC_PROG_RC], 657196ce994aSmrg[AC_CHECK_TOOL(RC, windres, no) 6572bdcaa8d0Smrg]) 657372313efbSmrg 657472313efbSmrg 657596ce994aSmrg# Cheap backport of AS_EXECUTABLE_P and required macros 657696ce994aSmrg# from Autoconf 2.59; we should not use $as_executable_p directly. 657772313efbSmrg 657896ce994aSmrg# _AS_TEST_PREPARE 657996ce994aSmrg# ---------------- 658096ce994aSmrgm4_ifndef([_AS_TEST_PREPARE], 658196ce994aSmrg[m4_defun([_AS_TEST_PREPARE], 658296ce994aSmrg[if test -x / >/dev/null 2>&1; then 658396ce994aSmrg as_executable_p='test -x' 658496ce994aSmrgelse 658596ce994aSmrg as_executable_p='test -f' 658696ce994aSmrgfi 658796ce994aSmrg])])# _AS_TEST_PREPARE 658872313efbSmrg 658996ce994aSmrg# AS_EXECUTABLE_P 659096ce994aSmrg# --------------- 659196ce994aSmrg# Check whether a file is executable. 659296ce994aSmrgm4_ifndef([AS_EXECUTABLE_P], 659396ce994aSmrg[m4_defun([AS_EXECUTABLE_P], 659496ce994aSmrg[AS_REQUIRE([_AS_TEST_PREPARE])dnl 659596ce994aSmrg$as_executable_p $1[]dnl 659696ce994aSmrg])])# AS_EXECUTABLE_P 659772313efbSmrg 659896ce994aSmrg# NOTE: This macro has been submitted for inclusion into # 659996ce994aSmrg# GNU Autoconf as AC_PROG_SED. When it is available in # 660096ce994aSmrg# a released version of Autoconf we should remove this # 660196ce994aSmrg# macro and use it instead. # 660296ce994aSmrg# LT_AC_PROG_SED 660396ce994aSmrg# -------------- 660496ce994aSmrg# Check for a fully-functional sed program, that truncates 660596ce994aSmrg# as few characters as possible. Prefer GNU sed if found. 660696ce994aSmrgAC_DEFUN([LT_AC_PROG_SED], 660796ce994aSmrg[AC_MSG_CHECKING([for a sed that does not truncate output]) 660896ce994aSmrgAC_CACHE_VAL(lt_cv_path_SED, 660996ce994aSmrg[# Loop through the user's path and test for sed and gsed. 661096ce994aSmrg# Then use that list of sed's as ones to test for truncation. 661196ce994aSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 661296ce994aSmrgfor as_dir in $PATH 661396ce994aSmrgdo 661496ce994aSmrg IFS=$as_save_IFS 661596ce994aSmrg test -z "$as_dir" && as_dir=. 661696ce994aSmrg for lt_ac_prog in sed gsed; do 661796ce994aSmrg for ac_exec_ext in '' $ac_executable_extensions; do 661896ce994aSmrg if AS_EXECUTABLE_P(["$as_dir/$lt_ac_prog$ac_exec_ext"]); then 661996ce994aSmrg lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 662096ce994aSmrg fi 662196ce994aSmrg done 662296ce994aSmrg done 662396ce994aSmrgdone 662496ce994aSmrgIFS=$as_save_IFS 662596ce994aSmrglt_ac_max=0 662696ce994aSmrglt_ac_count=0 662796ce994aSmrg# Add /usr/xpg4/bin/sed as it is typically found on Solaris 662896ce994aSmrg# along with /bin/sed that truncates output. 662996ce994aSmrgfor lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 663096ce994aSmrg test ! -f $lt_ac_sed && continue 663196ce994aSmrg cat /dev/null > conftest.in 663296ce994aSmrg lt_ac_count=0 663396ce994aSmrg echo $ECHO_N "0123456789$ECHO_C" >conftest.in 663496ce994aSmrg # Check for GNU sed and select it if it is found. 663596ce994aSmrg if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 663696ce994aSmrg lt_cv_path_SED=$lt_ac_sed 663796ce994aSmrg break 663896ce994aSmrg fi 663996ce994aSmrg while true; do 664096ce994aSmrg cat conftest.in conftest.in >conftest.tmp 664196ce994aSmrg mv conftest.tmp conftest.in 664296ce994aSmrg cp conftest.in conftest.nl 664396ce994aSmrg echo >>conftest.nl 664496ce994aSmrg $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 664596ce994aSmrg cmp -s conftest.out conftest.nl || break 664696ce994aSmrg # 10000 chars as input seems more than enough 664796ce994aSmrg test $lt_ac_count -gt 10 && break 664896ce994aSmrg lt_ac_count=`expr $lt_ac_count + 1` 664996ce994aSmrg if test $lt_ac_count -gt $lt_ac_max; then 665096ce994aSmrg lt_ac_max=$lt_ac_count 665196ce994aSmrg lt_cv_path_SED=$lt_ac_sed 665296ce994aSmrg fi 665396ce994aSmrg done 665496ce994aSmrgdone 665596ce994aSmrg]) 665696ce994aSmrgSED=$lt_cv_path_SED 665796ce994aSmrgAC_SUBST([SED]) 665896ce994aSmrgAC_MSG_RESULT([$SED]) 6659bdcaa8d0Smrg]) 666072313efbSmrg 6661bdcaa8d0Smrg# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- 6662bdcaa8d0Smrg# 6663bdcaa8d0Smrg# Copyright © 2004 Scott James Remnant <scott@netsplit.com>. 6664bdcaa8d0Smrg# 6665bdcaa8d0Smrg# This program is free software; you can redistribute it and/or modify 6666bdcaa8d0Smrg# it under the terms of the GNU General Public License as published by 6667bdcaa8d0Smrg# the Free Software Foundation; either version 2 of the License, or 6668bdcaa8d0Smrg# (at your option) any later version. 6669bdcaa8d0Smrg# 6670bdcaa8d0Smrg# This program is distributed in the hope that it will be useful, but 6671bdcaa8d0Smrg# WITHOUT ANY WARRANTY; without even the implied warranty of 6672bdcaa8d0Smrg# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 6673bdcaa8d0Smrg# General Public License for more details. 6674bdcaa8d0Smrg# 6675bdcaa8d0Smrg# You should have received a copy of the GNU General Public License 6676bdcaa8d0Smrg# along with this program; if not, write to the Free Software 6677bdcaa8d0Smrg# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 6678bdcaa8d0Smrg# 6679bdcaa8d0Smrg# As a special exception to the GNU General Public License, if you 6680bdcaa8d0Smrg# distribute this file as part of a program that contains a 6681bdcaa8d0Smrg# configuration script generated by Autoconf, you may include it under 6682bdcaa8d0Smrg# the same distribution terms that you use for the rest of that program. 6683bdcaa8d0Smrg 6684bdcaa8d0Smrg# PKG_PROG_PKG_CONFIG([MIN-VERSION]) 6685bdcaa8d0Smrg# ---------------------------------- 6686bdcaa8d0SmrgAC_DEFUN([PKG_PROG_PKG_CONFIG], 6687bdcaa8d0Smrg[m4_pattern_forbid([^_?PKG_[A-Z_]+$]) 6688bdcaa8d0Smrgm4_pattern_allow([^PKG_CONFIG(_PATH)?$]) 6689bdcaa8d0SmrgAC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl 6690bdcaa8d0Smrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 6691bdcaa8d0Smrg AC_PATH_TOOL([PKG_CONFIG], [pkg-config]) 6692bdcaa8d0Smrgfi 6693bdcaa8d0Smrgif test -n "$PKG_CONFIG"; then 6694bdcaa8d0Smrg _pkg_min_version=m4_default([$1], [0.9.0]) 6695bdcaa8d0Smrg AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version]) 6696bdcaa8d0Smrg if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 6697bdcaa8d0Smrg AC_MSG_RESULT([yes]) 6698bdcaa8d0Smrg else 6699bdcaa8d0Smrg AC_MSG_RESULT([no]) 6700bdcaa8d0Smrg PKG_CONFIG="" 6701bdcaa8d0Smrg fi 6702bdcaa8d0Smrg 6703bdcaa8d0Smrgfi[]dnl 6704bdcaa8d0Smrg])# PKG_PROG_PKG_CONFIG 6705bdcaa8d0Smrg 6706bdcaa8d0Smrg# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) 6707bdcaa8d0Smrg# 6708bdcaa8d0Smrg# Check to see whether a particular set of modules exists. Similar 6709bdcaa8d0Smrg# to PKG_CHECK_MODULES(), but does not set variables or print errors. 6710bdcaa8d0Smrg# 6711bdcaa8d0Smrg# 6712bdcaa8d0Smrg# Similar to PKG_CHECK_MODULES, make sure that the first instance of 6713bdcaa8d0Smrg# this or PKG_CHECK_MODULES is called, or make sure to call 6714bdcaa8d0Smrg# PKG_CHECK_EXISTS manually 6715bdcaa8d0Smrg# -------------------------------------------------------------- 6716bdcaa8d0SmrgAC_DEFUN([PKG_CHECK_EXISTS], 6717bdcaa8d0Smrg[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl 6718bdcaa8d0Smrgif test -n "$PKG_CONFIG" && \ 6719bdcaa8d0Smrg AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then 6720bdcaa8d0Smrg m4_ifval([$2], [$2], [:]) 6721bdcaa8d0Smrgm4_ifvaln([$3], [else 6722bdcaa8d0Smrg $3])dnl 6723bdcaa8d0Smrgfi]) 6724bdcaa8d0Smrg 6725bdcaa8d0Smrg 6726bdcaa8d0Smrg# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) 6727bdcaa8d0Smrg# --------------------------------------------- 6728bdcaa8d0Smrgm4_define([_PKG_CONFIG], 672972313efbSmrg[if test -n "$$1"; then 673072313efbSmrg pkg_cv_[]$1="$$1" 673172313efbSmrg elif test -n "$PKG_CONFIG"; then 673272313efbSmrg PKG_CHECK_EXISTS([$3], 673372313efbSmrg [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`], 673472313efbSmrg [pkg_failed=yes]) 673572313efbSmrg else 673672313efbSmrg pkg_failed=untried 6737bdcaa8d0Smrgfi[]dnl 6738bdcaa8d0Smrg])# _PKG_CONFIG 6739bdcaa8d0Smrg 6740bdcaa8d0Smrg# _PKG_SHORT_ERRORS_SUPPORTED 6741bdcaa8d0Smrg# ----------------------------- 6742bdcaa8d0SmrgAC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED], 6743bdcaa8d0Smrg[AC_REQUIRE([PKG_PROG_PKG_CONFIG]) 6744bdcaa8d0Smrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 6745bdcaa8d0Smrg _pkg_short_errors_supported=yes 6746bdcaa8d0Smrgelse 6747bdcaa8d0Smrg _pkg_short_errors_supported=no 6748bdcaa8d0Smrgfi[]dnl 6749bdcaa8d0Smrg])# _PKG_SHORT_ERRORS_SUPPORTED 6750bdcaa8d0Smrg 6751bdcaa8d0Smrg 6752bdcaa8d0Smrg# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], 6753bdcaa8d0Smrg# [ACTION-IF-NOT-FOUND]) 6754bdcaa8d0Smrg# 6755bdcaa8d0Smrg# 6756bdcaa8d0Smrg# Note that if there is a possibility the first call to 6757bdcaa8d0Smrg# PKG_CHECK_MODULES might not happen, you should be sure to include an 6758bdcaa8d0Smrg# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac 6759bdcaa8d0Smrg# 6760bdcaa8d0Smrg# 6761bdcaa8d0Smrg# -------------------------------------------------------------- 6762bdcaa8d0SmrgAC_DEFUN([PKG_CHECK_MODULES], 6763bdcaa8d0Smrg[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl 6764bdcaa8d0SmrgAC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl 6765bdcaa8d0SmrgAC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl 6766bdcaa8d0Smrg 6767bdcaa8d0Smrgpkg_failed=no 6768bdcaa8d0SmrgAC_MSG_CHECKING([for $1]) 6769bdcaa8d0Smrg 6770bdcaa8d0Smrg_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2]) 6771bdcaa8d0Smrg_PKG_CONFIG([$1][_LIBS], [libs], [$2]) 6772bdcaa8d0Smrg 6773bdcaa8d0Smrgm4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS 6774bdcaa8d0Smrgand $1[]_LIBS to avoid the need to call pkg-config. 6775bdcaa8d0SmrgSee the pkg-config man page for more details.]) 6776bdcaa8d0Smrg 6777bdcaa8d0Smrgif test $pkg_failed = yes; then 6778bdcaa8d0Smrg _PKG_SHORT_ERRORS_SUPPORTED 6779bdcaa8d0Smrg if test $_pkg_short_errors_supported = yes; then 678072313efbSmrg $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1` 6781bdcaa8d0Smrg else 678272313efbSmrg $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1` 6783bdcaa8d0Smrg fi 6784bdcaa8d0Smrg # Put the nasty error message in config.log where it belongs 6785bdcaa8d0Smrg echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD 6786bdcaa8d0Smrg 6787bdcaa8d0Smrg ifelse([$4], , [AC_MSG_ERROR(dnl 6788bdcaa8d0Smrg[Package requirements ($2) were not met: 6789bdcaa8d0Smrg 6790bdcaa8d0Smrg$$1_PKG_ERRORS 6791bdcaa8d0Smrg 6792bdcaa8d0SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you 6793bdcaa8d0Smrginstalled software in a non-standard prefix. 6794bdcaa8d0Smrg 6795bdcaa8d0Smrg_PKG_TEXT 6796bdcaa8d0Smrg])], 679772313efbSmrg [AC_MSG_RESULT([no]) 679872313efbSmrg $4]) 6799bdcaa8d0Smrgelif test $pkg_failed = untried; then 6800bdcaa8d0Smrg ifelse([$4], , [AC_MSG_FAILURE(dnl 6801bdcaa8d0Smrg[The pkg-config script could not be found or is too old. Make sure it 6802bdcaa8d0Smrgis in your PATH or set the PKG_CONFIG environment variable to the full 6803bdcaa8d0Smrgpath to pkg-config. 6804bdcaa8d0Smrg 6805bdcaa8d0Smrg_PKG_TEXT 6806bdcaa8d0Smrg 680772313efbSmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>.])], 6808bdcaa8d0Smrg [$4]) 6809bdcaa8d0Smrgelse 6810bdcaa8d0Smrg $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS 6811bdcaa8d0Smrg $1[]_LIBS=$pkg_cv_[]$1[]_LIBS 6812bdcaa8d0Smrg AC_MSG_RESULT([yes]) 6813bdcaa8d0Smrg ifelse([$3], , :, [$3]) 6814bdcaa8d0Smrgfi[]dnl 6815bdcaa8d0Smrg])# PKG_CHECK_MODULES 6816bdcaa8d0Smrg 681772313efbSmrgdnl xorg-macros.m4. Generated from xorg-macros.m4.in xorgversion.m4 by configure. 6818bdcaa8d0Smrgdnl 6819bdcaa8d0Smrgdnl Copyright 2005-2006 Sun Microsystems, Inc. All rights reserved. 6820bdcaa8d0Smrgdnl 6821bdcaa8d0Smrgdnl Permission is hereby granted, free of charge, to any person obtaining a 6822bdcaa8d0Smrgdnl copy of this software and associated documentation files (the 6823bdcaa8d0Smrgdnl "Software"), to deal in the Software without restriction, including 6824bdcaa8d0Smrgdnl without limitation the rights to use, copy, modify, merge, publish, 6825bdcaa8d0Smrgdnl distribute, and/or sell copies of the Software, and to permit persons 6826bdcaa8d0Smrgdnl to whom the Software is furnished to do so, provided that the above 6827bdcaa8d0Smrgdnl copyright notice(s) and this permission notice appear in all copies of 6828bdcaa8d0Smrgdnl the Software and that both the above copyright notice(s) and this 6829bdcaa8d0Smrgdnl permission notice appear in supporting documentation. 6830bdcaa8d0Smrgdnl 6831bdcaa8d0Smrgdnl THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 6832bdcaa8d0Smrgdnl OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 6833bdcaa8d0Smrgdnl MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT 6834bdcaa8d0Smrgdnl OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 6835bdcaa8d0Smrgdnl HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL 6836bdcaa8d0Smrgdnl INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING 6837bdcaa8d0Smrgdnl FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, 6838bdcaa8d0Smrgdnl NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION 6839bdcaa8d0Smrgdnl WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 6840bdcaa8d0Smrgdnl 6841bdcaa8d0Smrgdnl Except as contained in this notice, the name of a copyright holder 6842bdcaa8d0Smrgdnl shall not be used in advertising or otherwise to promote the sale, use 6843bdcaa8d0Smrgdnl or other dealings in this Software without prior written authorization 6844bdcaa8d0Smrgdnl of the copyright holder. 6845bdcaa8d0Smrg 6846bdcaa8d0Smrg# XORG_MACROS_VERSION(required-version) 6847bdcaa8d0Smrg# ------------------------------------- 6848bdcaa8d0Smrg# Minimum version: 1.1.0 6849bdcaa8d0Smrg# 6850bdcaa8d0Smrg# If you're using a macro added in Version 1.1 or newer, include this in 6851bdcaa8d0Smrg# your configure.ac with the minimum required version, such as: 6852bdcaa8d0Smrg# XORG_MACROS_VERSION(1.1) 6853bdcaa8d0Smrg# 6854bdcaa8d0Smrg# To force at least a version with this macro defined, also add: 6855bdcaa8d0Smrg# m4_ifndef([XORG_MACROS_VERSION], [AC_FATAL([must install xorg-macros 1.1 or later before running autoconf/autogen])]) 6856bdcaa8d0Smrg# 6857bdcaa8d0Smrg# 6858bdcaa8d0Smrg# See the "minimum version" comment for each macro you use to see what 6859bdcaa8d0Smrg# version you require. 6860bdcaa8d0SmrgAC_DEFUN([XORG_MACROS_VERSION],[ 6861bdcaa8d0Smrg [XORG_MACROS_needed_version=$1 6862bdcaa8d0Smrg XORG_MACROS_needed_major=`echo $XORG_MACROS_needed_version | sed 's/\..*$//'` 6863bdcaa8d0Smrg XORG_MACROS_needed_minor=`echo $XORG_MACROS_needed_version | sed -e 's/^[0-9]*\.//' -e 's/\..*$//'`] 6864bdcaa8d0Smrg AC_MSG_CHECKING([if xorg-macros used to generate configure is at least ${XORG_MACROS_needed_major}.${XORG_MACROS_needed_minor}]) 686572313efbSmrg [XORG_MACROS_version=1.2.1 6866bdcaa8d0Smrg XORG_MACROS_major=`echo $XORG_MACROS_version | sed 's/\..*$//'` 6867bdcaa8d0Smrg XORG_MACROS_minor=`echo $XORG_MACROS_version | sed -e 's/^[0-9]*\.//' -e 's/\..*$//'`] 6868bdcaa8d0Smrg if test $XORG_MACROS_major -ne $XORG_MACROS_needed_major ; then 6869bdcaa8d0Smrg AC_MSG_ERROR([configure built with incompatible version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.x]) 6870bdcaa8d0Smrg fi 6871bdcaa8d0Smrg if test $XORG_MACROS_minor -lt $XORG_MACROS_needed_minor ; then 6872bdcaa8d0Smrg AC_MSG_ERROR([configure built with too old of a version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.${XORG_MACROS_minor}.0 or newer]) 6873bdcaa8d0Smrg fi 6874bdcaa8d0Smrg AC_MSG_RESULT([yes, $XORG_MACROS_version]) 6875bdcaa8d0Smrg]) # XORG_MACROS_VERSION 6876bdcaa8d0Smrg 6877bdcaa8d0Smrg# XORG_PROG_RAWCPP() 6878bdcaa8d0Smrg# ------------------ 6879bdcaa8d0Smrg# Minimum version: 1.0.0 6880bdcaa8d0Smrg# 6881bdcaa8d0Smrg# Find cpp program and necessary flags for use in pre-processing text files 6882bdcaa8d0Smrg# such as man pages and config files 6883bdcaa8d0SmrgAC_DEFUN([XORG_PROG_RAWCPP],[ 6884bdcaa8d0SmrgAC_REQUIRE([AC_PROG_CPP]) 6885bdcaa8d0SmrgAC_PATH_PROGS(RAWCPP, [cpp], [${CPP}], 6886bdcaa8d0Smrg [$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib]) 6887bdcaa8d0Smrg 6888bdcaa8d0Smrg# Check for flag to avoid builtin definitions - assumes unix is predefined, 6889bdcaa8d0Smrg# which is not the best choice for supporting other OS'es, but covers most 6890bdcaa8d0Smrg# of the ones we need for now. 6891bdcaa8d0SmrgAC_MSG_CHECKING([if $RAWCPP requires -undef]) 6892bdcaa8d0SmrgAC_LANG_CONFTEST([Does cpp redefine unix ?]) 6893bdcaa8d0Smrgif test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 6894bdcaa8d0Smrg AC_MSG_RESULT([no]) 6895bdcaa8d0Smrgelse 6896bdcaa8d0Smrg if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 6897bdcaa8d0Smrg RAWCPPFLAGS=-undef 6898bdcaa8d0Smrg AC_MSG_RESULT([yes]) 689972313efbSmrg # under Cygwin unix is still defined even with -undef 690072313efbSmrg elif test `${RAWCPP} -undef -ansi < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 690172313efbSmrg RAWCPPFLAGS="-undef -ansi" 690272313efbSmrg AC_MSG_RESULT([yes, with -ansi]) 6903bdcaa8d0Smrg else 6904bdcaa8d0Smrg AC_MSG_ERROR([${RAWCPP} defines unix with or without -undef. I don't know what to do.]) 6905bdcaa8d0Smrg fi 6906bdcaa8d0Smrgfi 6907bdcaa8d0Smrgrm -f conftest.$ac_ext 6908bdcaa8d0Smrg 6909bdcaa8d0SmrgAC_MSG_CHECKING([if $RAWCPP requires -traditional]) 6910bdcaa8d0SmrgAC_LANG_CONFTEST([Does cpp preserve "whitespace"?]) 6911bdcaa8d0Smrgif test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then 6912bdcaa8d0Smrg AC_MSG_RESULT([no]) 6913bdcaa8d0Smrgelse 6914bdcaa8d0Smrg if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then 6915bdcaa8d0Smrg RAWCPPFLAGS="${RAWCPPFLAGS} -traditional" 6916bdcaa8d0Smrg AC_MSG_RESULT([yes]) 6917bdcaa8d0Smrg else 6918bdcaa8d0Smrg AC_MSG_ERROR([${RAWCPP} does not preserve whitespace with or without -traditional. I don't know what to do.]) 6919bdcaa8d0Smrg fi 6920bdcaa8d0Smrgfi 6921bdcaa8d0Smrgrm -f conftest.$ac_ext 6922bdcaa8d0SmrgAC_SUBST(RAWCPPFLAGS) 6923bdcaa8d0Smrg]) # XORG_PROG_RAWCPP 6924bdcaa8d0Smrg 6925bdcaa8d0Smrg# XORG_MANPAGE_SECTIONS() 6926bdcaa8d0Smrg# ----------------------- 6927bdcaa8d0Smrg# Minimum version: 1.0.0 6928bdcaa8d0Smrg# 6929bdcaa8d0Smrg# Determine which sections man pages go in for the different man page types 6930bdcaa8d0Smrg# on this OS - replaces *ManSuffix settings in old Imake *.cf per-os files. 6931bdcaa8d0Smrg# Not sure if there's any better way than just hardcoding by OS name. 6932bdcaa8d0Smrg# Override default settings by setting environment variables 6933bdcaa8d0Smrg 6934bdcaa8d0SmrgAC_DEFUN([XORG_MANPAGE_SECTIONS],[ 6935bdcaa8d0SmrgAC_REQUIRE([AC_CANONICAL_HOST]) 6936bdcaa8d0Smrg 6937bdcaa8d0Smrgif test x$APP_MAN_SUFFIX = x ; then 6938bdcaa8d0Smrg APP_MAN_SUFFIX=1 6939bdcaa8d0Smrgfi 6940bdcaa8d0Smrgif test x$APP_MAN_DIR = x ; then 6941bdcaa8d0Smrg APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 6942bdcaa8d0Smrgfi 6943bdcaa8d0Smrg 6944bdcaa8d0Smrgif test x$LIB_MAN_SUFFIX = x ; then 6945bdcaa8d0Smrg LIB_MAN_SUFFIX=3 6946bdcaa8d0Smrgfi 6947bdcaa8d0Smrgif test x$LIB_MAN_DIR = x ; then 6948bdcaa8d0Smrg LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 6949bdcaa8d0Smrgfi 6950bdcaa8d0Smrg 6951bdcaa8d0Smrgif test x$FILE_MAN_SUFFIX = x ; then 6952bdcaa8d0Smrg case $host_os in 6953bdcaa8d0Smrg solaris*) FILE_MAN_SUFFIX=4 ;; 6954bdcaa8d0Smrg *) FILE_MAN_SUFFIX=5 ;; 6955bdcaa8d0Smrg esac 6956bdcaa8d0Smrgfi 6957bdcaa8d0Smrgif test x$FILE_MAN_DIR = x ; then 6958bdcaa8d0Smrg FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 6959bdcaa8d0Smrgfi 6960bdcaa8d0Smrg 6961bdcaa8d0Smrgif test x$MISC_MAN_SUFFIX = x ; then 6962bdcaa8d0Smrg case $host_os in 6963bdcaa8d0Smrg solaris*) MISC_MAN_SUFFIX=5 ;; 6964bdcaa8d0Smrg *) MISC_MAN_SUFFIX=7 ;; 6965bdcaa8d0Smrg esac 6966bdcaa8d0Smrgfi 6967bdcaa8d0Smrgif test x$MISC_MAN_DIR = x ; then 6968bdcaa8d0Smrg MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 6969bdcaa8d0Smrgfi 6970bdcaa8d0Smrg 6971bdcaa8d0Smrgif test x$DRIVER_MAN_SUFFIX = x ; then 6972bdcaa8d0Smrg case $host_os in 6973bdcaa8d0Smrg solaris*) DRIVER_MAN_SUFFIX=7 ;; 6974bdcaa8d0Smrg *) DRIVER_MAN_SUFFIX=4 ;; 6975bdcaa8d0Smrg esac 6976bdcaa8d0Smrgfi 6977bdcaa8d0Smrgif test x$DRIVER_MAN_DIR = x ; then 6978bdcaa8d0Smrg DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 6979bdcaa8d0Smrgfi 6980bdcaa8d0Smrg 6981bdcaa8d0Smrgif test x$ADMIN_MAN_SUFFIX = x ; then 6982bdcaa8d0Smrg case $host_os in 6983bdcaa8d0Smrg solaris*) ADMIN_MAN_SUFFIX=1m ;; 6984bdcaa8d0Smrg *) ADMIN_MAN_SUFFIX=8 ;; 6985bdcaa8d0Smrg esac 6986bdcaa8d0Smrgfi 6987bdcaa8d0Smrgif test x$ADMIN_MAN_DIR = x ; then 6988bdcaa8d0Smrg ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 6989bdcaa8d0Smrgfi 6990bdcaa8d0Smrg 6991bdcaa8d0Smrg 6992bdcaa8d0SmrgAC_SUBST([APP_MAN_SUFFIX]) 6993bdcaa8d0SmrgAC_SUBST([LIB_MAN_SUFFIX]) 6994bdcaa8d0SmrgAC_SUBST([FILE_MAN_SUFFIX]) 6995bdcaa8d0SmrgAC_SUBST([MISC_MAN_SUFFIX]) 6996bdcaa8d0SmrgAC_SUBST([DRIVER_MAN_SUFFIX]) 6997bdcaa8d0SmrgAC_SUBST([ADMIN_MAN_SUFFIX]) 6998bdcaa8d0SmrgAC_SUBST([APP_MAN_DIR]) 6999bdcaa8d0SmrgAC_SUBST([LIB_MAN_DIR]) 7000bdcaa8d0SmrgAC_SUBST([FILE_MAN_DIR]) 7001bdcaa8d0SmrgAC_SUBST([MISC_MAN_DIR]) 7002bdcaa8d0SmrgAC_SUBST([DRIVER_MAN_DIR]) 7003bdcaa8d0SmrgAC_SUBST([ADMIN_MAN_DIR]) 7004bdcaa8d0Smrg]) # XORG_MANPAGE_SECTIONS 7005bdcaa8d0Smrg 7006bdcaa8d0Smrg# XORG_CHECK_LINUXDOC 7007bdcaa8d0Smrg# ------------------- 7008bdcaa8d0Smrg# Minimum version: 1.0.0 7009bdcaa8d0Smrg# 7010bdcaa8d0Smrg# Defines the variable MAKE_TEXT if the necessary tools and 7011bdcaa8d0Smrg# files are found. $(MAKE_TEXT) blah.sgml will then produce blah.txt. 7012bdcaa8d0Smrg# Whether or not the necessary tools and files are found can be checked 7013bdcaa8d0Smrg# with the AM_CONDITIONAL "BUILD_LINUXDOC" 7014bdcaa8d0SmrgAC_DEFUN([XORG_CHECK_LINUXDOC],[ 701572313efbSmrgif test x$XORG_SGML_PATH = x ; then 701672313efbSmrg XORG_SGML_PATH=$prefix/share/sgml 701772313efbSmrgfi 7018bdcaa8d0SmrgHAVE_DEFS_ENT= 7019bdcaa8d0Smrg 702072313efbSmrgif test x"$cross_compiling" = x"yes" ; then 702172313efbSmrg HAVE_DEFS_ENT=no 702272313efbSmrgelse 702372313efbSmrg AC_CHECK_FILE([$XORG_SGML_PATH/X11/defs.ent], [HAVE_DEFS_ENT=yes]) 702472313efbSmrgfi 7025bdcaa8d0Smrg 7026bdcaa8d0SmrgAC_PATH_PROG(LINUXDOC, linuxdoc) 7027bdcaa8d0SmrgAC_PATH_PROG(PS2PDF, ps2pdf) 7028bdcaa8d0Smrg 7029bdcaa8d0SmrgAC_MSG_CHECKING([Whether to build documentation]) 7030bdcaa8d0Smrg 7031bdcaa8d0Smrgif test x$HAVE_DEFS_ENT != x && test x$LINUXDOC != x ; then 7032bdcaa8d0Smrg BUILDDOC=yes 7033bdcaa8d0Smrgelse 7034bdcaa8d0Smrg BUILDDOC=no 7035bdcaa8d0Smrgfi 7036bdcaa8d0Smrg 7037bdcaa8d0SmrgAM_CONDITIONAL(BUILD_LINUXDOC, [test x$BUILDDOC = xyes]) 7038bdcaa8d0Smrg 7039bdcaa8d0SmrgAC_MSG_RESULT([$BUILDDOC]) 7040bdcaa8d0Smrg 7041bdcaa8d0SmrgAC_MSG_CHECKING([Whether to build pdf documentation]) 7042bdcaa8d0Smrg 7043bdcaa8d0Smrgif test x$PS2PDF != x && test x$BUILD_PDFDOC != xno; then 7044bdcaa8d0Smrg BUILDPDFDOC=yes 7045bdcaa8d0Smrgelse 7046bdcaa8d0Smrg BUILDPDFDOC=no 7047bdcaa8d0Smrgfi 7048bdcaa8d0Smrg 7049bdcaa8d0SmrgAM_CONDITIONAL(BUILD_PDFDOC, [test x$BUILDPDFDOC = xyes]) 7050bdcaa8d0Smrg 7051bdcaa8d0SmrgAC_MSG_RESULT([$BUILDPDFDOC]) 7052bdcaa8d0Smrg 7053bdcaa8d0SmrgMAKE_TEXT="SGML_SEARCH_PATH=$XORG_SGML_PATH GROFF_NO_SGR=y $LINUXDOC -B txt" 7054bdcaa8d0SmrgMAKE_PS="SGML_SEARCH_PATH=$XORG_SGML_PATH $LINUXDOC -B latex --papersize=letter --output=ps" 7055bdcaa8d0SmrgMAKE_PDF="$PS2PDF" 7056bdcaa8d0SmrgMAKE_HTML="SGML_SEARCH_PATH=$XORG_SGML_PATH $LINUXDOC -B html --split=0" 7057bdcaa8d0Smrg 7058bdcaa8d0SmrgAC_SUBST(MAKE_TEXT) 7059bdcaa8d0SmrgAC_SUBST(MAKE_PS) 7060bdcaa8d0SmrgAC_SUBST(MAKE_PDF) 7061bdcaa8d0SmrgAC_SUBST(MAKE_HTML) 7062bdcaa8d0Smrg]) # XORG_CHECK_LINUXDOC 7063bdcaa8d0Smrg 7064bdcaa8d0Smrg# XORG_CHECK_DOCBOOK 7065bdcaa8d0Smrg# ------------------- 7066bdcaa8d0Smrg# Minimum version: 1.0.0 7067bdcaa8d0Smrg# 7068bdcaa8d0Smrg# Checks for the ability to build output formats from SGML DocBook source. 7069bdcaa8d0Smrg# For XXX in {TXT, PDF, PS, HTML}, the AM_CONDITIONAL "BUILD_XXXDOC" 7070bdcaa8d0Smrg# indicates whether the necessary tools and files are found and, if set, 7071bdcaa8d0Smrg# $(MAKE_XXX) blah.sgml will produce blah.xxx. 7072bdcaa8d0SmrgAC_DEFUN([XORG_CHECK_DOCBOOK],[ 707372313efbSmrgif test x$XORG_SGML_PATH = x ; then 707472313efbSmrg XORG_SGML_PATH=$prefix/share/sgml 707572313efbSmrgfi 7076bdcaa8d0SmrgHAVE_DEFS_ENT= 7077bdcaa8d0SmrgBUILDTXTDOC=no 7078bdcaa8d0SmrgBUILDPDFDOC=no 7079bdcaa8d0SmrgBUILDPSDOC=no 7080bdcaa8d0SmrgBUILDHTMLDOC=no 7081bdcaa8d0Smrg 7082bdcaa8d0SmrgAC_CHECK_FILE([$XORG_SGML_PATH/X11/defs.ent], [HAVE_DEFS_ENT=yes]) 7083bdcaa8d0Smrg 7084bdcaa8d0SmrgAC_PATH_PROG(DOCBOOKPS, docbook2ps) 7085bdcaa8d0SmrgAC_PATH_PROG(DOCBOOKPDF, docbook2pdf) 7086bdcaa8d0SmrgAC_PATH_PROG(DOCBOOKHTML, docbook2html) 7087bdcaa8d0SmrgAC_PATH_PROG(DOCBOOKTXT, docbook2txt) 7088bdcaa8d0Smrg 7089bdcaa8d0SmrgAC_MSG_CHECKING([Whether to build text documentation]) 7090bdcaa8d0Smrgif test x$HAVE_DEFS_ENT != x && test x$DOCBOOKTXT != x && 7091bdcaa8d0Smrg test x$BUILD_TXTDOC != xno; then 7092bdcaa8d0Smrg BUILDTXTDOC=yes 7093bdcaa8d0Smrgfi 7094bdcaa8d0SmrgAM_CONDITIONAL(BUILD_TXTDOC, [test x$BUILDTXTDOC = xyes]) 7095bdcaa8d0SmrgAC_MSG_RESULT([$BUILDTXTDOC]) 7096bdcaa8d0Smrg 7097bdcaa8d0SmrgAC_MSG_CHECKING([Whether to build PDF documentation]) 7098bdcaa8d0Smrgif test x$HAVE_DEFS_ENT != x && test x$DOCBOOKPDF != x && 7099bdcaa8d0Smrg test x$BUILD_PDFDOC != xno; then 7100bdcaa8d0Smrg BUILDPDFDOC=yes 7101bdcaa8d0Smrgfi 7102bdcaa8d0SmrgAM_CONDITIONAL(BUILD_PDFDOC, [test x$BUILDPDFDOC = xyes]) 7103bdcaa8d0SmrgAC_MSG_RESULT([$BUILDPDFDOC]) 7104bdcaa8d0Smrg 7105bdcaa8d0SmrgAC_MSG_CHECKING([Whether to build PostScript documentation]) 7106bdcaa8d0Smrgif test x$HAVE_DEFS_ENT != x && test x$DOCBOOKPS != x && 7107bdcaa8d0Smrg test x$BUILD_PSDOC != xno; then 7108bdcaa8d0Smrg BUILDPSDOC=yes 7109bdcaa8d0Smrgfi 7110bdcaa8d0SmrgAM_CONDITIONAL(BUILD_PSDOC, [test x$BUILDPSDOC = xyes]) 7111bdcaa8d0SmrgAC_MSG_RESULT([$BUILDPSDOC]) 7112bdcaa8d0Smrg 7113bdcaa8d0SmrgAC_MSG_CHECKING([Whether to build HTML documentation]) 7114bdcaa8d0Smrgif test x$HAVE_DEFS_ENT != x && test x$DOCBOOKHTML != x && 7115bdcaa8d0Smrg test x$BUILD_HTMLDOC != xno; then 7116bdcaa8d0Smrg BUILDHTMLDOC=yes 7117bdcaa8d0Smrgfi 7118bdcaa8d0SmrgAM_CONDITIONAL(BUILD_HTMLDOC, [test x$BUILDHTMLDOC = xyes]) 7119bdcaa8d0SmrgAC_MSG_RESULT([$BUILDHTMLDOC]) 7120bdcaa8d0Smrg 7121bdcaa8d0SmrgMAKE_TEXT="SGML_SEARCH_PATH=$XORG_SGML_PATH $DOCBOOKTXT" 7122bdcaa8d0SmrgMAKE_PS="SGML_SEARCH_PATH=$XORG_SGML_PATH $DOCBOOKPS" 7123bdcaa8d0SmrgMAKE_PDF="SGML_SEARCH_PATH=$XORG_SGML_PATH $DOCBOOKPDF" 7124bdcaa8d0SmrgMAKE_HTML="SGML_SEARCH_PATH=$XORG_SGML_PATH $DOCBOOKHTML" 7125bdcaa8d0Smrg 7126bdcaa8d0SmrgAC_SUBST(MAKE_TEXT) 7127bdcaa8d0SmrgAC_SUBST(MAKE_PS) 7128bdcaa8d0SmrgAC_SUBST(MAKE_PDF) 7129bdcaa8d0SmrgAC_SUBST(MAKE_HTML) 7130bdcaa8d0Smrg]) # XORG_CHECK_DOCBOOK 7131bdcaa8d0Smrg 7132bdcaa8d0Smrg# XORG_CHECK_MALLOC_ZERO 7133bdcaa8d0Smrg# ---------------------- 7134bdcaa8d0Smrg# Minimum version: 1.0.0 7135bdcaa8d0Smrg# 7136bdcaa8d0Smrg# Defines {MALLOC,XMALLOC,XTMALLOC}_ZERO_CFLAGS appropriately if 7137bdcaa8d0Smrg# malloc(0) returns NULL. Packages should add one of these cflags to 7138bdcaa8d0Smrg# their AM_CFLAGS (or other appropriate *_CFLAGS) to use them. 7139bdcaa8d0SmrgAC_DEFUN([XORG_CHECK_MALLOC_ZERO],[ 7140bdcaa8d0SmrgAC_ARG_ENABLE(malloc0returnsnull, 7141bdcaa8d0Smrg AC_HELP_STRING([--enable-malloc0returnsnull], 7142bdcaa8d0Smrg [malloc(0) returns NULL (default: auto)]), 7143bdcaa8d0Smrg [MALLOC_ZERO_RETURNS_NULL=$enableval], 7144bdcaa8d0Smrg [MALLOC_ZERO_RETURNS_NULL=auto]) 7145bdcaa8d0Smrg 7146bdcaa8d0SmrgAC_MSG_CHECKING([whether malloc(0) returns NULL]) 7147bdcaa8d0Smrgif test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then 7148bdcaa8d0Smrg AC_RUN_IFELSE([ 7149bdcaa8d0Smrgchar *malloc(); 7150bdcaa8d0Smrgchar *realloc(); 7151bdcaa8d0Smrgchar *calloc(); 7152bdcaa8d0Smrgmain() { 7153bdcaa8d0Smrg char *m0, *r0, *c0, *p; 7154bdcaa8d0Smrg m0 = malloc(0); 7155bdcaa8d0Smrg p = malloc(10); 7156bdcaa8d0Smrg r0 = realloc(p,0); 7157bdcaa8d0Smrg c0 = calloc(0); 7158bdcaa8d0Smrg exit(m0 == 0 || r0 == 0 || c0 == 0 ? 0 : 1); 7159bdcaa8d0Smrg}], 7160bdcaa8d0Smrg [MALLOC_ZERO_RETURNS_NULL=yes], 7161bdcaa8d0Smrg [MALLOC_ZERO_RETURNS_NULL=no]) 7162bdcaa8d0Smrgfi 7163bdcaa8d0SmrgAC_MSG_RESULT([$MALLOC_ZERO_RETURNS_NULL]) 7164bdcaa8d0Smrg 7165bdcaa8d0Smrgif test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then 7166bdcaa8d0Smrg MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL" 7167bdcaa8d0Smrg XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS 7168bdcaa8d0Smrg XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC" 7169bdcaa8d0Smrgelse 7170bdcaa8d0Smrg MALLOC_ZERO_CFLAGS="" 7171bdcaa8d0Smrg XMALLOC_ZERO_CFLAGS="" 7172bdcaa8d0Smrg XTMALLOC_ZERO_CFLAGS="" 7173bdcaa8d0Smrgfi 7174bdcaa8d0Smrg 7175bdcaa8d0SmrgAC_SUBST([MALLOC_ZERO_CFLAGS]) 7176bdcaa8d0SmrgAC_SUBST([XMALLOC_ZERO_CFLAGS]) 7177bdcaa8d0SmrgAC_SUBST([XTMALLOC_ZERO_CFLAGS]) 7178bdcaa8d0Smrg]) # XORG_CHECK_MALLOC_ZERO 7179bdcaa8d0Smrg 7180bdcaa8d0Smrg# XORG_WITH_LINT() 7181bdcaa8d0Smrg# ---------------- 7182bdcaa8d0Smrg# Minimum version: 1.1.0 7183bdcaa8d0Smrg# 7184bdcaa8d0Smrg# Sets up flags for source checkers such as lint and sparse if --with-lint 7185bdcaa8d0Smrg# is specified. (Use --with-lint=sparse for sparse.) 7186bdcaa8d0Smrg# Sets $LINT to name of source checker passed with --with-lint (default: lint) 7187bdcaa8d0Smrg# Sets $LINT_FLAGS to flags to pass to source checker 7188bdcaa8d0Smrg# Sets LINT automake conditional if enabled (default: disabled) 7189bdcaa8d0Smrg# 7190bdcaa8d0SmrgAC_DEFUN([XORG_WITH_LINT],[ 7191bdcaa8d0Smrg 7192bdcaa8d0Smrg# Allow checking code with lint, sparse, etc. 7193bdcaa8d0SmrgAC_ARG_WITH(lint, [AC_HELP_STRING([--with-lint], 7194bdcaa8d0Smrg [Use a lint-style source code checker (default: disabled)])], 7195bdcaa8d0Smrg [use_lint=$withval], [use_lint=no]) 7196bdcaa8d0Smrgif test "x$use_lint" = "xyes" ; then 7197bdcaa8d0Smrg LINT="lint" 7198bdcaa8d0Smrgelse 7199bdcaa8d0Smrg LINT="$use_lint" 7200bdcaa8d0Smrgfi 7201bdcaa8d0Smrgif test "x$LINT_FLAGS" = "x" -a "x$LINT" != "xno" ; then 7202bdcaa8d0Smrg case $LINT in 7203bdcaa8d0Smrg lint|*/lint) 7204bdcaa8d0Smrg case $host_os in 7205bdcaa8d0Smrg solaris*) 7206bdcaa8d0Smrg LINT_FLAGS="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2" 7207bdcaa8d0Smrg ;; 7208bdcaa8d0Smrg esac 7209bdcaa8d0Smrg ;; 7210bdcaa8d0Smrg esac 7211bdcaa8d0Smrgfi 7212bdcaa8d0Smrg 7213bdcaa8d0SmrgAC_SUBST(LINT) 7214bdcaa8d0SmrgAC_SUBST(LINT_FLAGS) 7215bdcaa8d0SmrgAM_CONDITIONAL(LINT, [test x$LINT != xno]) 7216bdcaa8d0Smrg 7217bdcaa8d0Smrg]) # XORG_WITH_LINT 7218bdcaa8d0Smrg 7219bdcaa8d0Smrg# XORG_LINT_LIBRARY(LIBNAME) 7220bdcaa8d0Smrg# -------------------------- 7221bdcaa8d0Smrg# Minimum version: 1.1.0 7222bdcaa8d0Smrg# 7223bdcaa8d0Smrg# Sets up flags for building lint libraries for checking programs that call 7224bdcaa8d0Smrg# functions in the library. 7225bdcaa8d0Smrg# Disabled by default, enable with --enable-lint-library 7226bdcaa8d0Smrg# Sets: 7227bdcaa8d0Smrg# @LINTLIB@ - name of lint library file to make 7228bdcaa8d0Smrg# MAKE_LINT_LIB - automake conditional 7229bdcaa8d0Smrg# 7230bdcaa8d0Smrg 7231bdcaa8d0SmrgAC_DEFUN([XORG_LINT_LIBRARY],[ 7232bdcaa8d0SmrgAC_REQUIRE([XORG_WITH_LINT]) 7233bdcaa8d0Smrg# Build lint "library" for more indepth checks of programs calling this library 7234bdcaa8d0SmrgAC_ARG_ENABLE(lint-library, [AC_HELP_STRING([--enable-lint-library], 7235bdcaa8d0Smrg [Create lint library (default: disabled)])], 7236bdcaa8d0Smrg [make_lint_lib=$enableval], [make_lint_lib=no]) 7237bdcaa8d0Smrgif test "x$make_lint_lib" != "xno" ; then 7238bdcaa8d0Smrg if test "x$LINT" = "xno" ; then 7239bdcaa8d0Smrg AC_MSG_ERROR([Cannot make lint library without --with-lint]) 7240bdcaa8d0Smrg fi 7241bdcaa8d0Smrg if test "x$make_lint_lib" = "xyes" ; then 7242bdcaa8d0Smrg LINTLIB=llib-l$1.ln 7243bdcaa8d0Smrg else 7244bdcaa8d0Smrg LINTLIB=$make_lint_lib 7245bdcaa8d0Smrg fi 7246bdcaa8d0Smrgfi 7247bdcaa8d0SmrgAC_SUBST(LINTLIB) 7248bdcaa8d0SmrgAM_CONDITIONAL(MAKE_LINT_LIB, [test x$make_lint_lib != xno]) 7249bdcaa8d0Smrg 7250bdcaa8d0Smrg]) # XORG_LINT_LIBRARY 7251bdcaa8d0Smrg 725272313efbSmrg# XORG_CWARNFLAGS 725372313efbSmrg# --------------- 725472313efbSmrg# Minimum version: 1.2.0 725572313efbSmrg# 725672313efbSmrg# Defines CWARNFLAGS to enable C compiler warnings. 725772313efbSmrg# 725872313efbSmrgAC_DEFUN([XORG_CWARNFLAGS], [ 725972313efbSmrgAC_REQUIRE([AC_PROG_CC]) 726072313efbSmrgif test "x$GCC" = xyes ; then 726172313efbSmrg CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \ 726272313efbSmrg-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \ 726372313efbSmrg-Wbad-function-cast" 726472313efbSmrg case `gcc -dumpversion` in 726572313efbSmrg 3.4.* | 4.*) 726672313efbSmrg CWARNFLAGS+=" -Wold-style-definition -Wdeclaration-after-statement" 726772313efbSmrg ;; 726872313efbSmrg esac 726972313efbSmrgelse 727072313efbSmrg AC_CHECK_DECL([__SUNPRO_C], [SUNCC="yes"], [SUNCC="no"]) 727172313efbSmrg if test "x$SUNCC" = "xyes"; then 727272313efbSmrg CWARNFLAGS="-v" 727372313efbSmrg fi 727472313efbSmrgfi 727572313efbSmrgAC_SUBST(CWARNFLAGS) 727672313efbSmrg]) # XORG_CWARNFLAGS 7277bdcaa8d0Smrgdnl Copyright 2005 Red Hat, Inc 7278bdcaa8d0Smrgdnl 7279bdcaa8d0Smrgdnl Permission to use, copy, modify, distribute, and sell this software and its 7280bdcaa8d0Smrgdnl documentation for any purpose is hereby granted without fee, provided that 7281bdcaa8d0Smrgdnl the above copyright notice appear in all copies and that both that 7282bdcaa8d0Smrgdnl copyright notice and this permission notice appear in supporting 7283bdcaa8d0Smrgdnl documentation. 7284bdcaa8d0Smrgdnl 7285bdcaa8d0Smrgdnl The above copyright notice and this permission notice shall be included 7286bdcaa8d0Smrgdnl in all copies or substantial portions of the Software. 7287bdcaa8d0Smrgdnl 7288bdcaa8d0Smrgdnl THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 7289bdcaa8d0Smrgdnl OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 7290bdcaa8d0Smrgdnl MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 7291bdcaa8d0Smrgdnl IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR 7292bdcaa8d0Smrgdnl OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 7293bdcaa8d0Smrgdnl ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 7294bdcaa8d0Smrgdnl OTHER DEALINGS IN THE SOFTWARE. 7295bdcaa8d0Smrgdnl 7296bdcaa8d0Smrgdnl Except as contained in this notice, the name of the copyright holders shall 7297bdcaa8d0Smrgdnl not be used in advertising or otherwise to promote the sale, use or 7298bdcaa8d0Smrgdnl other dealings in this Software without prior written authorization 7299bdcaa8d0Smrgdnl from the copyright holders. 7300bdcaa8d0Smrgdnl 7301bdcaa8d0Smrg 7302bdcaa8d0Smrg# XORG_RELEASE_VERSION 7303bdcaa8d0Smrg# -------------------- 7304bdcaa8d0Smrg# Adds --with/without-release-string and changes the PACKAGE and 7305bdcaa8d0Smrg# PACKAGE_TARNAME to use "$PACKAGE{_TARNAME}-$RELEASE_VERSION". If 7306bdcaa8d0Smrg# no option is given, PACKAGE and PACKAGE_TARNAME are unchanged. Also 7307bdcaa8d0Smrg# defines PACKAGE_VERSION_{MAJOR,MINOR,PATCHLEVEL} for modules to use. 7308bdcaa8d0Smrg 7309bdcaa8d0SmrgAC_DEFUN([XORG_RELEASE_VERSION],[ 7310bdcaa8d0Smrg AC_ARG_WITH(release-version, 7311bdcaa8d0Smrg AC_HELP_STRING([--with-release-version=STRING], 7312bdcaa8d0Smrg [Use release version string in package name]), 7313bdcaa8d0Smrg [RELEASE_VERSION="$withval"], 7314bdcaa8d0Smrg [RELEASE_VERSION=""]) 7315bdcaa8d0Smrg if test "x$RELEASE_VERSION" != "x"; then 7316bdcaa8d0Smrg PACKAGE="$PACKAGE-$RELEASE_VERSION" 7317bdcaa8d0Smrg PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION" 7318bdcaa8d0Smrg AC_MSG_NOTICE([Building with package name set to $PACKAGE]) 7319bdcaa8d0Smrg fi 7320bdcaa8d0Smrg AC_DEFINE_UNQUOTED([PACKAGE_VERSION_MAJOR], 732172313efbSmrg [`echo $PACKAGE_VERSION | cut -d . -f 1`], 7322bdcaa8d0Smrg [Major version of this package]) 732372313efbSmrg PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 7324bdcaa8d0Smrg if test "x$PVM" = "x"; then 7325bdcaa8d0Smrg PVM="0" 7326bdcaa8d0Smrg fi 7327bdcaa8d0Smrg AC_DEFINE_UNQUOTED([PACKAGE_VERSION_MINOR], 7328bdcaa8d0Smrg [$PVM], 7329bdcaa8d0Smrg [Minor version of this package]) 733072313efbSmrg PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 7331bdcaa8d0Smrg if test "x$PVP" = "x"; then 7332bdcaa8d0Smrg PVP="0" 7333bdcaa8d0Smrg fi 7334bdcaa8d0Smrg AC_DEFINE_UNQUOTED([PACKAGE_VERSION_PATCHLEVEL], 7335bdcaa8d0Smrg [$PVP], 7336bdcaa8d0Smrg [Patch version of this package]) 7337bdcaa8d0Smrg]) 7338bdcaa8d0Smrg 733972313efbSmrg# XORG_CHANGELOG() 734072313efbSmrg# ---------------- 734172313efbSmrg# Minimum version: 1.2.0 734272313efbSmrg# 734372313efbSmrg# Defines the variable CHANGELOG_CMD as the command to generate 734472313efbSmrg# ChangeLog from git. 734572313efbSmrg# 734672313efbSmrg# Arrange that distcleancheck ignores ChangeLog left over by distclean. 734772313efbSmrg# 734872313efbSmrgAC_DEFUN([XORG_CHANGELOG], [ 734972313efbSmrgCHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > .changelog.tmp && \ 735072313efbSmrgmv .changelog.tmp ChangeLog) || (rm -f .changelog.tmp; touch ChangeLog; \ 735172313efbSmrgecho 'git directory not found: installing possibly empty changelog.' >&2)" 735272313efbSmrgAC_SUBST([CHANGELOG_CMD]) 735372313efbSmrgAC_SUBST([distcleancheck_listfiles], ['find . -type f ! -name ChangeLog -print']) 735472313efbSmrg]) # XORG_CHANGELOG 735572313efbSmrg 735672313efbSmrg# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 7357bdcaa8d0Smrg# 7358bdcaa8d0Smrg# This file is free software; the Free Software Foundation 7359bdcaa8d0Smrg# gives unlimited permission to copy and/or distribute it, 7360bdcaa8d0Smrg# with or without modifications, as long as this notice is preserved. 7361bdcaa8d0Smrg 7362bdcaa8d0Smrg# AM_AUTOMAKE_VERSION(VERSION) 7363bdcaa8d0Smrg# ---------------------------- 7364bdcaa8d0Smrg# Automake X.Y traces this macro to ensure aclocal.m4 has been 7365bdcaa8d0Smrg# generated from the m4 files accompanying Automake X.Y. 736672313efbSmrg# (This private macro should not be called outside this file.) 736772313efbSmrgAC_DEFUN([AM_AUTOMAKE_VERSION], 736896ce994aSmrg[am__api_version='1.11' 736972313efbSmrgdnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to 737072313efbSmrgdnl require some minimum version. Point them to the right macro. 737196ce994aSmrgm4_if([$1], [1.11], [], 737272313efbSmrg [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl 737372313efbSmrg]) 737472313efbSmrg 737572313efbSmrg# _AM_AUTOCONF_VERSION(VERSION) 737672313efbSmrg# ----------------------------- 737772313efbSmrg# aclocal traces this macro to find the Autoconf version. 737872313efbSmrg# This is a private macro too. Using m4_define simplifies 737972313efbSmrg# the logic in aclocal, which can simply ignore this definition. 738072313efbSmrgm4_define([_AM_AUTOCONF_VERSION], []) 7381bdcaa8d0Smrg 7382bdcaa8d0Smrg# AM_SET_CURRENT_AUTOMAKE_VERSION 7383bdcaa8d0Smrg# ------------------------------- 738472313efbSmrg# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. 738572313efbSmrg# This function is AC_REQUIREd by AM_INIT_AUTOMAKE. 7386bdcaa8d0SmrgAC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], 738796ce994aSmrg[AM_AUTOMAKE_VERSION([1.11])dnl 738872313efbSmrgm4_ifndef([AC_AUTOCONF_VERSION], 738972313efbSmrg [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl 739072313efbSmrg_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) 7391bdcaa8d0Smrg 7392bdcaa8d0Smrg# AM_AUX_DIR_EXPAND -*- Autoconf -*- 7393bdcaa8d0Smrg 7394bdcaa8d0Smrg# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. 7395bdcaa8d0Smrg# 7396bdcaa8d0Smrg# This file is free software; the Free Software Foundation 7397bdcaa8d0Smrg# gives unlimited permission to copy and/or distribute it, 7398bdcaa8d0Smrg# with or without modifications, as long as this notice is preserved. 7399bdcaa8d0Smrg 7400bdcaa8d0Smrg# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets 7401bdcaa8d0Smrg# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to 7402bdcaa8d0Smrg# `$srcdir', `$srcdir/..', or `$srcdir/../..'. 7403bdcaa8d0Smrg# 7404bdcaa8d0Smrg# Of course, Automake must honor this variable whenever it calls a 7405bdcaa8d0Smrg# tool from the auxiliary directory. The problem is that $srcdir (and 7406bdcaa8d0Smrg# therefore $ac_aux_dir as well) can be either absolute or relative, 7407bdcaa8d0Smrg# depending on how configure is run. This is pretty annoying, since 7408bdcaa8d0Smrg# it makes $ac_aux_dir quite unusable in subdirectories: in the top 7409bdcaa8d0Smrg# source directory, any form will work fine, but in subdirectories a 7410bdcaa8d0Smrg# relative path needs to be adjusted first. 7411bdcaa8d0Smrg# 7412bdcaa8d0Smrg# $ac_aux_dir/missing 7413bdcaa8d0Smrg# fails when called from a subdirectory if $ac_aux_dir is relative 7414bdcaa8d0Smrg# $top_srcdir/$ac_aux_dir/missing 7415bdcaa8d0Smrg# fails if $ac_aux_dir is absolute, 7416bdcaa8d0Smrg# fails when called from a subdirectory in a VPATH build with 7417bdcaa8d0Smrg# a relative $ac_aux_dir 7418bdcaa8d0Smrg# 7419bdcaa8d0Smrg# The reason of the latter failure is that $top_srcdir and $ac_aux_dir 7420bdcaa8d0Smrg# are both prefixed by $srcdir. In an in-source build this is usually 7421bdcaa8d0Smrg# harmless because $srcdir is `.', but things will broke when you 7422bdcaa8d0Smrg# start a VPATH build or use an absolute $srcdir. 7423bdcaa8d0Smrg# 7424bdcaa8d0Smrg# So we could use something similar to $top_srcdir/$ac_aux_dir/missing, 7425bdcaa8d0Smrg# iff we strip the leading $srcdir from $ac_aux_dir. That would be: 7426bdcaa8d0Smrg# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` 7427bdcaa8d0Smrg# and then we would define $MISSING as 7428bdcaa8d0Smrg# MISSING="\${SHELL} $am_aux_dir/missing" 7429bdcaa8d0Smrg# This will work as long as MISSING is not called from configure, because 7430bdcaa8d0Smrg# unfortunately $(top_srcdir) has no meaning in configure. 7431bdcaa8d0Smrg# However there are other variables, like CC, which are often used in 7432bdcaa8d0Smrg# configure, and could therefore not use this "fixed" $ac_aux_dir. 7433bdcaa8d0Smrg# 7434bdcaa8d0Smrg# Another solution, used here, is to always expand $ac_aux_dir to an 7435bdcaa8d0Smrg# absolute PATH. The drawback is that using absolute paths prevent a 7436bdcaa8d0Smrg# configured tree to be moved without reconfiguration. 7437bdcaa8d0Smrg 7438bdcaa8d0SmrgAC_DEFUN([AM_AUX_DIR_EXPAND], 7439bdcaa8d0Smrg[dnl Rely on autoconf to set up CDPATH properly. 7440bdcaa8d0SmrgAC_PREREQ([2.50])dnl 7441bdcaa8d0Smrg# expand $ac_aux_dir to an absolute path 7442bdcaa8d0Smrgam_aux_dir=`cd $ac_aux_dir && pwd` 7443bdcaa8d0Smrg]) 7444bdcaa8d0Smrg 7445bdcaa8d0Smrg# AM_CONDITIONAL -*- Autoconf -*- 7446bdcaa8d0Smrg 744796ce994aSmrg# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008 7448bdcaa8d0Smrg# Free Software Foundation, Inc. 7449bdcaa8d0Smrg# 7450bdcaa8d0Smrg# This file is free software; the Free Software Foundation 7451bdcaa8d0Smrg# gives unlimited permission to copy and/or distribute it, 7452bdcaa8d0Smrg# with or without modifications, as long as this notice is preserved. 7453bdcaa8d0Smrg 745496ce994aSmrg# serial 9 7455bdcaa8d0Smrg 7456bdcaa8d0Smrg# AM_CONDITIONAL(NAME, SHELL-CONDITION) 7457bdcaa8d0Smrg# ------------------------------------- 7458bdcaa8d0Smrg# Define a conditional. 7459bdcaa8d0SmrgAC_DEFUN([AM_CONDITIONAL], 7460bdcaa8d0Smrg[AC_PREREQ(2.52)dnl 7461bdcaa8d0Smrg ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], 7462bdcaa8d0Smrg [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl 746372313efbSmrgAC_SUBST([$1_TRUE])dnl 746472313efbSmrgAC_SUBST([$1_FALSE])dnl 746572313efbSmrg_AM_SUBST_NOTMAKE([$1_TRUE])dnl 746672313efbSmrg_AM_SUBST_NOTMAKE([$1_FALSE])dnl 746796ce994aSmrgm4_define([_AM_COND_VALUE_$1], [$2])dnl 7468bdcaa8d0Smrgif $2; then 7469bdcaa8d0Smrg $1_TRUE= 7470bdcaa8d0Smrg $1_FALSE='#' 7471bdcaa8d0Smrgelse 7472bdcaa8d0Smrg $1_TRUE='#' 7473bdcaa8d0Smrg $1_FALSE= 7474bdcaa8d0Smrgfi 7475bdcaa8d0SmrgAC_CONFIG_COMMANDS_PRE( 7476bdcaa8d0Smrg[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then 7477bdcaa8d0Smrg AC_MSG_ERROR([[conditional "$1" was never defined. 7478bdcaa8d0SmrgUsually this means the macro was only invoked conditionally.]]) 7479bdcaa8d0Smrgfi])]) 7480bdcaa8d0Smrg 748196ce994aSmrg# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009 7482bdcaa8d0Smrg# Free Software Foundation, Inc. 7483bdcaa8d0Smrg# 7484bdcaa8d0Smrg# This file is free software; the Free Software Foundation 7485bdcaa8d0Smrg# gives unlimited permission to copy and/or distribute it, 7486bdcaa8d0Smrg# with or without modifications, as long as this notice is preserved. 7487bdcaa8d0Smrg 748896ce994aSmrg# serial 10 7489bdcaa8d0Smrg 7490bdcaa8d0Smrg# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be 7491bdcaa8d0Smrg# written in clear, in which case automake, when reading aclocal.m4, 7492bdcaa8d0Smrg# will think it sees a *use*, and therefore will trigger all it's 7493bdcaa8d0Smrg# C support machinery. Also note that it means that autoscan, seeing 7494bdcaa8d0Smrg# CC etc. in the Makefile, will ask for an AC_PROG_CC use... 7495bdcaa8d0Smrg 7496bdcaa8d0Smrg 7497bdcaa8d0Smrg# _AM_DEPENDENCIES(NAME) 7498bdcaa8d0Smrg# ---------------------- 7499bdcaa8d0Smrg# See how the compiler implements dependency checking. 7500bdcaa8d0Smrg# NAME is "CC", "CXX", "GCJ", or "OBJC". 7501bdcaa8d0Smrg# We try a few techniques and use that to set a single cache variable. 7502bdcaa8d0Smrg# 7503bdcaa8d0Smrg# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was 7504bdcaa8d0Smrg# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular 7505bdcaa8d0Smrg# dependency, and given that the user is not expected to run this macro, 7506bdcaa8d0Smrg# just rely on AC_PROG_CC. 7507bdcaa8d0SmrgAC_DEFUN([_AM_DEPENDENCIES], 7508bdcaa8d0Smrg[AC_REQUIRE([AM_SET_DEPDIR])dnl 7509bdcaa8d0SmrgAC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl 7510bdcaa8d0SmrgAC_REQUIRE([AM_MAKE_INCLUDE])dnl 7511bdcaa8d0SmrgAC_REQUIRE([AM_DEP_TRACK])dnl 7512bdcaa8d0Smrg 7513bdcaa8d0Smrgifelse([$1], CC, [depcc="$CC" am_compiler_list=], 7514bdcaa8d0Smrg [$1], CXX, [depcc="$CXX" am_compiler_list=], 7515bdcaa8d0Smrg [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], 751672313efbSmrg [$1], UPC, [depcc="$UPC" am_compiler_list=], 7517bdcaa8d0Smrg [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], 7518bdcaa8d0Smrg [depcc="$$1" am_compiler_list=]) 7519bdcaa8d0Smrg 7520bdcaa8d0SmrgAC_CACHE_CHECK([dependency style of $depcc], 7521bdcaa8d0Smrg [am_cv_$1_dependencies_compiler_type], 7522bdcaa8d0Smrg[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 7523bdcaa8d0Smrg # We make a subdir and do the tests there. Otherwise we can end up 7524bdcaa8d0Smrg # making bogus files that we don't know about and never remove. For 7525bdcaa8d0Smrg # instance it was reported that on HP-UX the gcc test will end up 7526bdcaa8d0Smrg # making a dummy file named `D' -- because `-MD' means `put the output 7527bdcaa8d0Smrg # in D'. 7528bdcaa8d0Smrg mkdir conftest.dir 7529bdcaa8d0Smrg # Copy depcomp to subdir because otherwise we won't find it if we're 7530bdcaa8d0Smrg # using a relative directory. 7531bdcaa8d0Smrg cp "$am_depcomp" conftest.dir 7532bdcaa8d0Smrg cd conftest.dir 7533bdcaa8d0Smrg # We will build objects and dependencies in a subdirectory because 7534bdcaa8d0Smrg # it helps to detect inapplicable dependency modes. For instance 7535bdcaa8d0Smrg # both Tru64's cc and ICC support -MD to output dependencies as a 7536bdcaa8d0Smrg # side effect of compilation, but ICC will put the dependencies in 7537bdcaa8d0Smrg # the current directory while Tru64 will put them in the object 7538bdcaa8d0Smrg # directory. 7539bdcaa8d0Smrg mkdir sub 7540bdcaa8d0Smrg 7541bdcaa8d0Smrg am_cv_$1_dependencies_compiler_type=none 7542bdcaa8d0Smrg if test "$am_compiler_list" = ""; then 7543bdcaa8d0Smrg am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` 7544bdcaa8d0Smrg fi 754596ce994aSmrg am__universal=false 754696ce994aSmrg m4_case([$1], [CC], 754796ce994aSmrg [case " $depcc " in #( 754896ce994aSmrg *\ -arch\ *\ -arch\ *) am__universal=true ;; 754996ce994aSmrg esac], 755096ce994aSmrg [CXX], 755196ce994aSmrg [case " $depcc " in #( 755296ce994aSmrg *\ -arch\ *\ -arch\ *) am__universal=true ;; 755396ce994aSmrg esac]) 755496ce994aSmrg 7555bdcaa8d0Smrg for depmode in $am_compiler_list; do 7556bdcaa8d0Smrg # Setup a source with many dependencies, because some compilers 7557bdcaa8d0Smrg # like to wrap large dependency lists on column 80 (with \), and 7558bdcaa8d0Smrg # we should not choose a depcomp mode which is confused by this. 7559bdcaa8d0Smrg # 7560bdcaa8d0Smrg # We need to recreate these files for each test, as the compiler may 7561bdcaa8d0Smrg # overwrite some of them when testing with obscure command lines. 7562bdcaa8d0Smrg # This happens at least with the AIX C compiler. 7563bdcaa8d0Smrg : > sub/conftest.c 7564bdcaa8d0Smrg for i in 1 2 3 4 5 6; do 7565bdcaa8d0Smrg echo '#include "conftst'$i'.h"' >> sub/conftest.c 7566bdcaa8d0Smrg # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 7567bdcaa8d0Smrg # Solaris 8's {/usr,}/bin/sh. 7568bdcaa8d0Smrg touch sub/conftst$i.h 7569bdcaa8d0Smrg done 7570bdcaa8d0Smrg echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 7571bdcaa8d0Smrg 757296ce994aSmrg # We check with `-c' and `-o' for the sake of the "dashmstdout" 757396ce994aSmrg # mode. It turns out that the SunPro C++ compiler does not properly 757496ce994aSmrg # handle `-M -o', and we need to detect this. Also, some Intel 757596ce994aSmrg # versions had trouble with output in subdirs 757696ce994aSmrg am__obj=sub/conftest.${OBJEXT-o} 757796ce994aSmrg am__minus_obj="-o $am__obj" 7578bdcaa8d0Smrg case $depmode in 757996ce994aSmrg gcc) 758096ce994aSmrg # This depmode causes a compiler race in universal mode. 758196ce994aSmrg test "$am__universal" = false || continue 758296ce994aSmrg ;; 7583bdcaa8d0Smrg nosideeffect) 7584bdcaa8d0Smrg # after this tag, mechanisms are not by side-effect, so they'll 7585bdcaa8d0Smrg # only be used when explicitly requested 7586bdcaa8d0Smrg if test "x$enable_dependency_tracking" = xyes; then 7587bdcaa8d0Smrg continue 7588bdcaa8d0Smrg else 7589bdcaa8d0Smrg break 7590bdcaa8d0Smrg fi 7591bdcaa8d0Smrg ;; 759296ce994aSmrg msvisualcpp | msvcmsys) 759396ce994aSmrg # This compiler won't grok `-c -o', but also, the minuso test has 759496ce994aSmrg # not run yet. These depmodes are late enough in the game, and 759596ce994aSmrg # so weak that their functioning should not be impacted. 759696ce994aSmrg am__obj=conftest.${OBJEXT-o} 759796ce994aSmrg am__minus_obj= 759896ce994aSmrg ;; 7599bdcaa8d0Smrg none) break ;; 7600bdcaa8d0Smrg esac 7601bdcaa8d0Smrg if depmode=$depmode \ 760296ce994aSmrg source=sub/conftest.c object=$am__obj \ 7603bdcaa8d0Smrg depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 760496ce994aSmrg $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 7605bdcaa8d0Smrg >/dev/null 2>conftest.err && 760672313efbSmrg grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 7607bdcaa8d0Smrg grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 760896ce994aSmrg grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 7609bdcaa8d0Smrg ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 7610bdcaa8d0Smrg # icc doesn't choke on unknown options, it will just issue warnings 7611bdcaa8d0Smrg # or remarks (even with -Werror). So we grep stderr for any message 7612bdcaa8d0Smrg # that says an option was ignored or not supported. 7613bdcaa8d0Smrg # When given -MP, icc 7.0 and 7.1 complain thusly: 7614bdcaa8d0Smrg # icc: Command line warning: ignoring option '-M'; no argument required 7615bdcaa8d0Smrg # The diagnosis changed in icc 8.0: 7616bdcaa8d0Smrg # icc: Command line remark: option '-MP' not supported 7617bdcaa8d0Smrg if (grep 'ignoring option' conftest.err || 7618bdcaa8d0Smrg grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 7619bdcaa8d0Smrg am_cv_$1_dependencies_compiler_type=$depmode 7620bdcaa8d0Smrg break 7621bdcaa8d0Smrg fi 7622bdcaa8d0Smrg fi 7623bdcaa8d0Smrg done 7624bdcaa8d0Smrg 7625bdcaa8d0Smrg cd .. 7626bdcaa8d0Smrg rm -rf conftest.dir 7627bdcaa8d0Smrgelse 7628bdcaa8d0Smrg am_cv_$1_dependencies_compiler_type=none 7629bdcaa8d0Smrgfi 7630bdcaa8d0Smrg]) 7631bdcaa8d0SmrgAC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) 7632bdcaa8d0SmrgAM_CONDITIONAL([am__fastdep$1], [ 7633bdcaa8d0Smrg test "x$enable_dependency_tracking" != xno \ 7634bdcaa8d0Smrg && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) 7635bdcaa8d0Smrg]) 7636bdcaa8d0Smrg 7637bdcaa8d0Smrg 7638bdcaa8d0Smrg# AM_SET_DEPDIR 7639bdcaa8d0Smrg# ------------- 7640bdcaa8d0Smrg# Choose a directory name for dependency files. 7641bdcaa8d0Smrg# This macro is AC_REQUIREd in _AM_DEPENDENCIES 7642bdcaa8d0SmrgAC_DEFUN([AM_SET_DEPDIR], 7643bdcaa8d0Smrg[AC_REQUIRE([AM_SET_LEADING_DOT])dnl 7644bdcaa8d0SmrgAC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl 7645bdcaa8d0Smrg]) 7646bdcaa8d0Smrg 7647bdcaa8d0Smrg 7648bdcaa8d0Smrg# AM_DEP_TRACK 7649bdcaa8d0Smrg# ------------ 7650bdcaa8d0SmrgAC_DEFUN([AM_DEP_TRACK], 7651bdcaa8d0Smrg[AC_ARG_ENABLE(dependency-tracking, 7652bdcaa8d0Smrg[ --disable-dependency-tracking speeds up one-time build 7653bdcaa8d0Smrg --enable-dependency-tracking do not reject slow dependency extractors]) 7654bdcaa8d0Smrgif test "x$enable_dependency_tracking" != xno; then 7655bdcaa8d0Smrg am_depcomp="$ac_aux_dir/depcomp" 7656bdcaa8d0Smrg AMDEPBACKSLASH='\' 7657bdcaa8d0Smrgfi 7658bdcaa8d0SmrgAM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) 765972313efbSmrgAC_SUBST([AMDEPBACKSLASH])dnl 766072313efbSmrg_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl 7661bdcaa8d0Smrg]) 7662bdcaa8d0Smrg 7663bdcaa8d0Smrg# Generate code to set up dependency tracking. -*- Autoconf -*- 7664bdcaa8d0Smrg 766572313efbSmrg# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008 7666bdcaa8d0Smrg# Free Software Foundation, Inc. 7667bdcaa8d0Smrg# 7668bdcaa8d0Smrg# This file is free software; the Free Software Foundation 7669bdcaa8d0Smrg# gives unlimited permission to copy and/or distribute it, 7670bdcaa8d0Smrg# with or without modifications, as long as this notice is preserved. 7671bdcaa8d0Smrg 767296ce994aSmrg#serial 5 7673bdcaa8d0Smrg 7674bdcaa8d0Smrg# _AM_OUTPUT_DEPENDENCY_COMMANDS 7675bdcaa8d0Smrg# ------------------------------ 7676bdcaa8d0SmrgAC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], 767796ce994aSmrg[{ 767896ce994aSmrg # Autoconf 2.62 quotes --file arguments for eval, but not when files 767996ce994aSmrg # are listed without --file. Let's play safe and only enable the eval 768096ce994aSmrg # if we detect the quoting. 768196ce994aSmrg case $CONFIG_FILES in 768296ce994aSmrg *\'*) eval set x "$CONFIG_FILES" ;; 768396ce994aSmrg *) set x $CONFIG_FILES ;; 768496ce994aSmrg esac 768596ce994aSmrg shift 768696ce994aSmrg for mf 768796ce994aSmrg do 768896ce994aSmrg # Strip MF so we end up with the name of the file. 768996ce994aSmrg mf=`echo "$mf" | sed -e 's/:.*$//'` 769096ce994aSmrg # Check whether this is an Automake generated Makefile or not. 769196ce994aSmrg # We used to match only the files named `Makefile.in', but 769296ce994aSmrg # some people rename them; so instead we look at the file content. 769396ce994aSmrg # Grep'ing the first line is not enough: some people post-process 769496ce994aSmrg # each Makefile.in and add a new line on top of each file to say so. 769596ce994aSmrg # Grep'ing the whole file is not good either: AIX grep has a line 769696ce994aSmrg # limit of 2048, but all sed's we know have understand at least 4000. 769796ce994aSmrg if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 769896ce994aSmrg dirpart=`AS_DIRNAME("$mf")` 769996ce994aSmrg else 770096ce994aSmrg continue 770196ce994aSmrg fi 770296ce994aSmrg # Extract the definition of DEPDIR, am__include, and am__quote 770396ce994aSmrg # from the Makefile without running `make'. 770496ce994aSmrg DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 770596ce994aSmrg test -z "$DEPDIR" && continue 770696ce994aSmrg am__include=`sed -n 's/^am__include = //p' < "$mf"` 770796ce994aSmrg test -z "am__include" && continue 770896ce994aSmrg am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 770996ce994aSmrg # When using ansi2knr, U may be empty or an underscore; expand it 771096ce994aSmrg U=`sed -n 's/^U = //p' < "$mf"` 771196ce994aSmrg # Find all dependency output files, they are included files with 771296ce994aSmrg # $(DEPDIR) in their names. We invoke sed twice because it is the 771396ce994aSmrg # simplest approach to changing $(DEPDIR) to its actual value in the 771496ce994aSmrg # expansion. 771596ce994aSmrg for file in `sed -n " 771696ce994aSmrg s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 771796ce994aSmrg sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 771896ce994aSmrg # Make sure the directory exists. 771996ce994aSmrg test -f "$dirpart/$file" && continue 772096ce994aSmrg fdir=`AS_DIRNAME(["$file"])` 772196ce994aSmrg AS_MKDIR_P([$dirpart/$fdir]) 772296ce994aSmrg # echo "creating $dirpart/$file" 772396ce994aSmrg echo '# dummy' > "$dirpart/$file" 772496ce994aSmrg done 7725bdcaa8d0Smrg done 772696ce994aSmrg} 7727bdcaa8d0Smrg])# _AM_OUTPUT_DEPENDENCY_COMMANDS 7728bdcaa8d0Smrg 7729bdcaa8d0Smrg 7730bdcaa8d0Smrg# AM_OUTPUT_DEPENDENCY_COMMANDS 7731bdcaa8d0Smrg# ----------------------------- 7732bdcaa8d0Smrg# This macro should only be invoked once -- use via AC_REQUIRE. 7733bdcaa8d0Smrg# 7734bdcaa8d0Smrg# This code is only required when automatic dependency tracking 7735bdcaa8d0Smrg# is enabled. FIXME. This creates each `.P' file that we will 7736bdcaa8d0Smrg# need in order to bootstrap the dependency handling code. 7737bdcaa8d0SmrgAC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], 7738bdcaa8d0Smrg[AC_CONFIG_COMMANDS([depfiles], 7739bdcaa8d0Smrg [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], 7740bdcaa8d0Smrg [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) 7741bdcaa8d0Smrg]) 7742bdcaa8d0Smrg 7743bdcaa8d0Smrg# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 7744bdcaa8d0Smrg# Free Software Foundation, Inc. 7745bdcaa8d0Smrg# 7746bdcaa8d0Smrg# This file is free software; the Free Software Foundation 7747bdcaa8d0Smrg# gives unlimited permission to copy and/or distribute it, 7748bdcaa8d0Smrg# with or without modifications, as long as this notice is preserved. 7749bdcaa8d0Smrg 7750bdcaa8d0Smrg# serial 8 7751bdcaa8d0Smrg 7752bdcaa8d0Smrg# AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS. 7753bdcaa8d0SmrgAU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)]) 7754bdcaa8d0Smrg 7755bdcaa8d0Smrg# Do all the work for Automake. -*- Autoconf -*- 7756bdcaa8d0Smrg 775772313efbSmrg# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 775896ce994aSmrg# 2005, 2006, 2008, 2009 Free Software Foundation, Inc. 7759bdcaa8d0Smrg# 7760bdcaa8d0Smrg# This file is free software; the Free Software Foundation 7761bdcaa8d0Smrg# gives unlimited permission to copy and/or distribute it, 7762bdcaa8d0Smrg# with or without modifications, as long as this notice is preserved. 7763bdcaa8d0Smrg 776496ce994aSmrg# serial 16 7765bdcaa8d0Smrg 7766bdcaa8d0Smrg# This macro actually does too much. Some checks are only needed if 7767bdcaa8d0Smrg# your package does certain things. But this isn't really a big deal. 7768bdcaa8d0Smrg 7769bdcaa8d0Smrg# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) 7770bdcaa8d0Smrg# AM_INIT_AUTOMAKE([OPTIONS]) 7771bdcaa8d0Smrg# ----------------------------------------------- 7772bdcaa8d0Smrg# The call with PACKAGE and VERSION arguments is the old style 7773bdcaa8d0Smrg# call (pre autoconf-2.50), which is being phased out. PACKAGE 7774bdcaa8d0Smrg# and VERSION should now be passed to AC_INIT and removed from 7775bdcaa8d0Smrg# the call to AM_INIT_AUTOMAKE. 7776bdcaa8d0Smrg# We support both call styles for the transition. After 7777bdcaa8d0Smrg# the next Automake release, Autoconf can make the AC_INIT 7778bdcaa8d0Smrg# arguments mandatory, and then we can depend on a new Autoconf 7779bdcaa8d0Smrg# release and drop the old call support. 7780bdcaa8d0SmrgAC_DEFUN([AM_INIT_AUTOMAKE], 778196ce994aSmrg[AC_PREREQ([2.62])dnl 7782bdcaa8d0Smrgdnl Autoconf wants to disallow AM_ names. We explicitly allow 7783bdcaa8d0Smrgdnl the ones we care about. 7784bdcaa8d0Smrgm4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl 7785bdcaa8d0SmrgAC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl 7786bdcaa8d0SmrgAC_REQUIRE([AC_PROG_INSTALL])dnl 778772313efbSmrgif test "`cd $srcdir && pwd`" != "`pwd`"; then 778872313efbSmrg # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 778972313efbSmrg # is not polluted with repeated "-I." 779072313efbSmrg AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl 779172313efbSmrg # test to see if srcdir already configured 779272313efbSmrg if test -f $srcdir/config.status; then 779372313efbSmrg AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) 779472313efbSmrg fi 7795bdcaa8d0Smrgfi 7796bdcaa8d0Smrg 7797bdcaa8d0Smrg# test whether we have cygpath 7798bdcaa8d0Smrgif test -z "$CYGPATH_W"; then 7799bdcaa8d0Smrg if (cygpath --version) >/dev/null 2>/dev/null; then 7800bdcaa8d0Smrg CYGPATH_W='cygpath -w' 7801bdcaa8d0Smrg else 7802bdcaa8d0Smrg CYGPATH_W=echo 7803bdcaa8d0Smrg fi 7804bdcaa8d0Smrgfi 7805bdcaa8d0SmrgAC_SUBST([CYGPATH_W]) 7806bdcaa8d0Smrg 7807bdcaa8d0Smrg# Define the identity of the package. 7808bdcaa8d0Smrgdnl Distinguish between old-style and new-style calls. 7809bdcaa8d0Smrgm4_ifval([$2], 7810bdcaa8d0Smrg[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl 7811bdcaa8d0Smrg AC_SUBST([PACKAGE], [$1])dnl 7812bdcaa8d0Smrg AC_SUBST([VERSION], [$2])], 7813bdcaa8d0Smrg[_AM_SET_OPTIONS([$1])dnl 781472313efbSmrgdnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. 781572313efbSmrgm4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,, 781672313efbSmrg [m4_fatal([AC_INIT should be called with package and version arguments])])dnl 7817bdcaa8d0Smrg AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl 7818bdcaa8d0Smrg AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl 7819bdcaa8d0Smrg 7820bdcaa8d0Smrg_AM_IF_OPTION([no-define],, 7821bdcaa8d0Smrg[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) 7822bdcaa8d0Smrg AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl 7823bdcaa8d0Smrg 7824bdcaa8d0Smrg# Some tools Automake needs. 7825bdcaa8d0SmrgAC_REQUIRE([AM_SANITY_CHECK])dnl 7826bdcaa8d0SmrgAC_REQUIRE([AC_ARG_PROGRAM])dnl 7827bdcaa8d0SmrgAM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) 7828bdcaa8d0SmrgAM_MISSING_PROG(AUTOCONF, autoconf) 7829bdcaa8d0SmrgAM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) 7830bdcaa8d0SmrgAM_MISSING_PROG(AUTOHEADER, autoheader) 7831bdcaa8d0SmrgAM_MISSING_PROG(MAKEINFO, makeinfo) 783296ce994aSmrgAC_REQUIRE([AM_PROG_INSTALL_SH])dnl 783396ce994aSmrgAC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl 7834bdcaa8d0SmrgAC_REQUIRE([AM_PROG_MKDIR_P])dnl 7835bdcaa8d0Smrg# We need awk for the "check" target. The system "awk" is bad on 7836bdcaa8d0Smrg# some platforms. 7837bdcaa8d0SmrgAC_REQUIRE([AC_PROG_AWK])dnl 7838bdcaa8d0SmrgAC_REQUIRE([AC_PROG_MAKE_SET])dnl 7839bdcaa8d0SmrgAC_REQUIRE([AM_SET_LEADING_DOT])dnl 7840bdcaa8d0Smrg_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], 784196ce994aSmrg [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], 784296ce994aSmrg [_AM_PROG_TAR([v7])])]) 7843bdcaa8d0Smrg_AM_IF_OPTION([no-dependencies],, 7844bdcaa8d0Smrg[AC_PROVIDE_IFELSE([AC_PROG_CC], 784596ce994aSmrg [_AM_DEPENDENCIES(CC)], 784696ce994aSmrg [define([AC_PROG_CC], 784796ce994aSmrg defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl 7848bdcaa8d0SmrgAC_PROVIDE_IFELSE([AC_PROG_CXX], 784996ce994aSmrg [_AM_DEPENDENCIES(CXX)], 785096ce994aSmrg [define([AC_PROG_CXX], 785196ce994aSmrg defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl 785272313efbSmrgAC_PROVIDE_IFELSE([AC_PROG_OBJC], 785396ce994aSmrg [_AM_DEPENDENCIES(OBJC)], 785496ce994aSmrg [define([AC_PROG_OBJC], 785596ce994aSmrg defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl 7856bdcaa8d0Smrg]) 785796ce994aSmrg_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl 785896ce994aSmrgdnl The `parallel-tests' driver may need to know about EXEEXT, so add the 785996ce994aSmrgdnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro 786096ce994aSmrgdnl is hooked onto _AC_COMPILER_EXEEXT early, see below. 786196ce994aSmrgAC_CONFIG_COMMANDS_PRE(dnl 786296ce994aSmrg[m4_provide_if([_AM_COMPILER_EXEEXT], 786396ce994aSmrg [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl 7864bdcaa8d0Smrg]) 7865bdcaa8d0Smrg 786696ce994aSmrgdnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not 786796ce994aSmrgdnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further 786896ce994aSmrgdnl mangled by Autoconf and run in a shell conditional statement. 786996ce994aSmrgm4_define([_AC_COMPILER_EXEEXT], 787096ce994aSmrgm4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) 787196ce994aSmrg 7872bdcaa8d0Smrg 7873bdcaa8d0Smrg# When config.status generates a header, we must update the stamp-h file. 7874bdcaa8d0Smrg# This file resides in the same directory as the config header 7875bdcaa8d0Smrg# that is generated. The stamp files are numbered to have different names. 7876bdcaa8d0Smrg 7877bdcaa8d0Smrg# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the 7878bdcaa8d0Smrg# loop where config.status creates the headers, so we can generate 7879bdcaa8d0Smrg# our stamp files there. 7880bdcaa8d0SmrgAC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], 7881bdcaa8d0Smrg[# Compute $1's index in $config_headers. 788272313efbSmrg_am_arg=$1 7883bdcaa8d0Smrg_am_stamp_count=1 7884bdcaa8d0Smrgfor _am_header in $config_headers :; do 7885bdcaa8d0Smrg case $_am_header in 788672313efbSmrg $_am_arg | $_am_arg:* ) 7887bdcaa8d0Smrg break ;; 7888bdcaa8d0Smrg * ) 7889bdcaa8d0Smrg _am_stamp_count=`expr $_am_stamp_count + 1` ;; 7890bdcaa8d0Smrg esac 7891bdcaa8d0Smrgdone 789272313efbSmrgecho "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) 7893bdcaa8d0Smrg 789496ce994aSmrg# Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc. 7895bdcaa8d0Smrg# 7896bdcaa8d0Smrg# This file is free software; the Free Software Foundation 7897bdcaa8d0Smrg# gives unlimited permission to copy and/or distribute it, 7898bdcaa8d0Smrg# with or without modifications, as long as this notice is preserved. 7899bdcaa8d0Smrg 7900bdcaa8d0Smrg# AM_PROG_INSTALL_SH 7901bdcaa8d0Smrg# ------------------ 7902bdcaa8d0Smrg# Define $install_sh. 7903bdcaa8d0SmrgAC_DEFUN([AM_PROG_INSTALL_SH], 7904bdcaa8d0Smrg[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 790596ce994aSmrgif test x"${install_sh}" != xset; then 790696ce994aSmrg case $am_aux_dir in 790796ce994aSmrg *\ * | *\ *) 790896ce994aSmrg install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 790996ce994aSmrg *) 791096ce994aSmrg install_sh="\${SHELL} $am_aux_dir/install-sh" 791196ce994aSmrg esac 791296ce994aSmrgfi 7913bdcaa8d0SmrgAC_SUBST(install_sh)]) 7914bdcaa8d0Smrg 7915bdcaa8d0Smrg# Copyright (C) 2003, 2005 Free Software Foundation, Inc. 7916bdcaa8d0Smrg# 7917bdcaa8d0Smrg# This file is free software; the Free Software Foundation 7918bdcaa8d0Smrg# gives unlimited permission to copy and/or distribute it, 7919bdcaa8d0Smrg# with or without modifications, as long as this notice is preserved. 7920bdcaa8d0Smrg 7921bdcaa8d0Smrg# serial 2 7922bdcaa8d0Smrg 7923bdcaa8d0Smrg# Check whether the underlying file-system supports filenames 7924bdcaa8d0Smrg# with a leading dot. For instance MS-DOS doesn't. 7925bdcaa8d0SmrgAC_DEFUN([AM_SET_LEADING_DOT], 7926bdcaa8d0Smrg[rm -rf .tst 2>/dev/null 7927bdcaa8d0Smrgmkdir .tst 2>/dev/null 7928bdcaa8d0Smrgif test -d .tst; then 7929bdcaa8d0Smrg am__leading_dot=. 7930bdcaa8d0Smrgelse 7931bdcaa8d0Smrg am__leading_dot=_ 7932bdcaa8d0Smrgfi 7933bdcaa8d0Smrgrmdir .tst 2>/dev/null 7934bdcaa8d0SmrgAC_SUBST([am__leading_dot])]) 7935bdcaa8d0Smrg 7936bdcaa8d0Smrg# Add --enable-maintainer-mode option to configure. -*- Autoconf -*- 7937bdcaa8d0Smrg# From Jim Meyering 7938bdcaa8d0Smrg 793996ce994aSmrg# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008 7940bdcaa8d0Smrg# Free Software Foundation, Inc. 7941bdcaa8d0Smrg# 7942bdcaa8d0Smrg# This file is free software; the Free Software Foundation 7943bdcaa8d0Smrg# gives unlimited permission to copy and/or distribute it, 7944bdcaa8d0Smrg# with or without modifications, as long as this notice is preserved. 7945bdcaa8d0Smrg 794696ce994aSmrg# serial 5 7947bdcaa8d0Smrg 794896ce994aSmrg# AM_MAINTAINER_MODE([DEFAULT-MODE]) 794996ce994aSmrg# ---------------------------------- 795096ce994aSmrg# Control maintainer-specific portions of Makefiles. 795196ce994aSmrg# Default is to disable them, unless `enable' is passed literally. 795296ce994aSmrg# For symmetry, `disable' may be passed as well. Anyway, the user 795396ce994aSmrg# can override the default with the --enable/--disable switch. 7954bdcaa8d0SmrgAC_DEFUN([AM_MAINTAINER_MODE], 795596ce994aSmrg[m4_case(m4_default([$1], [disable]), 795696ce994aSmrg [enable], [m4_define([am_maintainer_other], [disable])], 795796ce994aSmrg [disable], [m4_define([am_maintainer_other], [enable])], 795896ce994aSmrg [m4_define([am_maintainer_other], [enable]) 795996ce994aSmrg m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])]) 796096ce994aSmrgAC_MSG_CHECKING([whether to am_maintainer_other maintainer-specific portions of Makefiles]) 796196ce994aSmrg dnl maintainer-mode's default is 'disable' unless 'enable' is passed 796296ce994aSmrg AC_ARG_ENABLE([maintainer-mode], 796396ce994aSmrg[ --][am_maintainer_other][-maintainer-mode am_maintainer_other make rules and dependencies not useful 7964bdcaa8d0Smrg (and sometimes confusing) to the casual installer], 796596ce994aSmrg [USE_MAINTAINER_MODE=$enableval], 796696ce994aSmrg [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes])) 7967bdcaa8d0Smrg AC_MSG_RESULT([$USE_MAINTAINER_MODE]) 796896ce994aSmrg AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes]) 7969bdcaa8d0Smrg MAINT=$MAINTAINER_MODE_TRUE 797096ce994aSmrg AC_SUBST([MAINT])dnl 7971bdcaa8d0Smrg] 7972bdcaa8d0Smrg) 7973bdcaa8d0Smrg 7974bdcaa8d0SmrgAU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE]) 7975bdcaa8d0Smrg 7976bdcaa8d0Smrg# Check to see how 'make' treats includes. -*- Autoconf -*- 7977bdcaa8d0Smrg 797896ce994aSmrg# Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc. 7979bdcaa8d0Smrg# 7980bdcaa8d0Smrg# This file is free software; the Free Software Foundation 7981bdcaa8d0Smrg# gives unlimited permission to copy and/or distribute it, 7982bdcaa8d0Smrg# with or without modifications, as long as this notice is preserved. 7983bdcaa8d0Smrg 798496ce994aSmrg# serial 4 7985bdcaa8d0Smrg 7986bdcaa8d0Smrg# AM_MAKE_INCLUDE() 7987bdcaa8d0Smrg# ----------------- 7988bdcaa8d0Smrg# Check to see how make treats includes. 7989bdcaa8d0SmrgAC_DEFUN([AM_MAKE_INCLUDE], 7990bdcaa8d0Smrg[am_make=${MAKE-make} 7991bdcaa8d0Smrgcat > confinc << 'END' 7992bdcaa8d0Smrgam__doit: 799396ce994aSmrg @echo this is the am__doit target 7994bdcaa8d0Smrg.PHONY: am__doit 7995bdcaa8d0SmrgEND 7996bdcaa8d0Smrg# If we don't find an include directive, just comment out the code. 7997bdcaa8d0SmrgAC_MSG_CHECKING([for style of include used by $am_make]) 7998bdcaa8d0Smrgam__include="#" 7999bdcaa8d0Smrgam__quote= 8000bdcaa8d0Smrg_am_result=none 8001bdcaa8d0Smrg# First try GNU make style include. 8002bdcaa8d0Smrgecho "include confinc" > confmf 800396ce994aSmrg# Ignore all kinds of additional output from `make'. 800496ce994aSmrgcase `$am_make -s -f confmf 2> /dev/null` in #( 800596ce994aSmrg*the\ am__doit\ target*) 800696ce994aSmrg am__include=include 800796ce994aSmrg am__quote= 800896ce994aSmrg _am_result=GNU 800996ce994aSmrg ;; 801096ce994aSmrgesac 8011bdcaa8d0Smrg# Now try BSD make style include. 8012bdcaa8d0Smrgif test "$am__include" = "#"; then 8013bdcaa8d0Smrg echo '.include "confinc"' > confmf 801496ce994aSmrg case `$am_make -s -f confmf 2> /dev/null` in #( 801596ce994aSmrg *the\ am__doit\ target*) 801696ce994aSmrg am__include=.include 801796ce994aSmrg am__quote="\"" 801896ce994aSmrg _am_result=BSD 801996ce994aSmrg ;; 802096ce994aSmrg esac 8021bdcaa8d0Smrgfi 8022bdcaa8d0SmrgAC_SUBST([am__include]) 8023bdcaa8d0SmrgAC_SUBST([am__quote]) 8024bdcaa8d0SmrgAC_MSG_RESULT([$_am_result]) 8025bdcaa8d0Smrgrm -f confinc confmf 8026bdcaa8d0Smrg]) 8027bdcaa8d0Smrg 8028bdcaa8d0Smrg# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- 8029bdcaa8d0Smrg 803096ce994aSmrg# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008 8031bdcaa8d0Smrg# Free Software Foundation, Inc. 8032bdcaa8d0Smrg# 8033bdcaa8d0Smrg# This file is free software; the Free Software Foundation 8034bdcaa8d0Smrg# gives unlimited permission to copy and/or distribute it, 8035bdcaa8d0Smrg# with or without modifications, as long as this notice is preserved. 8036bdcaa8d0Smrg 803796ce994aSmrg# serial 6 8038bdcaa8d0Smrg 8039bdcaa8d0Smrg# AM_MISSING_PROG(NAME, PROGRAM) 8040bdcaa8d0Smrg# ------------------------------ 8041bdcaa8d0SmrgAC_DEFUN([AM_MISSING_PROG], 8042bdcaa8d0Smrg[AC_REQUIRE([AM_MISSING_HAS_RUN]) 8043bdcaa8d0Smrg$1=${$1-"${am_missing_run}$2"} 8044bdcaa8d0SmrgAC_SUBST($1)]) 8045bdcaa8d0Smrg 8046bdcaa8d0Smrg 8047bdcaa8d0Smrg# AM_MISSING_HAS_RUN 8048bdcaa8d0Smrg# ------------------ 8049bdcaa8d0Smrg# Define MISSING if not defined so far and test if it supports --run. 8050bdcaa8d0Smrg# If it does, set am_missing_run to use it, otherwise, to nothing. 8051bdcaa8d0SmrgAC_DEFUN([AM_MISSING_HAS_RUN], 8052bdcaa8d0Smrg[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 805372313efbSmrgAC_REQUIRE_AUX_FILE([missing])dnl 805496ce994aSmrgif test x"${MISSING+set}" != xset; then 805596ce994aSmrg case $am_aux_dir in 805696ce994aSmrg *\ * | *\ *) 805796ce994aSmrg MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 805896ce994aSmrg *) 805996ce994aSmrg MISSING="\${SHELL} $am_aux_dir/missing" ;; 806096ce994aSmrg esac 806196ce994aSmrgfi 8062bdcaa8d0Smrg# Use eval to expand $SHELL 8063bdcaa8d0Smrgif eval "$MISSING --run true"; then 8064bdcaa8d0Smrg am_missing_run="$MISSING --run " 8065bdcaa8d0Smrgelse 8066bdcaa8d0Smrg am_missing_run= 8067bdcaa8d0Smrg AC_MSG_WARN([`missing' script is too old or missing]) 8068bdcaa8d0Smrgfi 8069bdcaa8d0Smrg]) 8070bdcaa8d0Smrg 807172313efbSmrg# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 8072bdcaa8d0Smrg# 8073bdcaa8d0Smrg# This file is free software; the Free Software Foundation 8074bdcaa8d0Smrg# gives unlimited permission to copy and/or distribute it, 8075bdcaa8d0Smrg# with or without modifications, as long as this notice is preserved. 8076bdcaa8d0Smrg 8077bdcaa8d0Smrg# AM_PROG_MKDIR_P 8078bdcaa8d0Smrg# --------------- 807972313efbSmrg# Check for `mkdir -p'. 8080bdcaa8d0SmrgAC_DEFUN([AM_PROG_MKDIR_P], 808172313efbSmrg[AC_PREREQ([2.60])dnl 808272313efbSmrgAC_REQUIRE([AC_PROG_MKDIR_P])dnl 808372313efbSmrgdnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P, 808472313efbSmrgdnl while keeping a definition of mkdir_p for backward compatibility. 808572313efbSmrgdnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile. 808672313efbSmrgdnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of 808772313efbSmrgdnl Makefile.ins that do not define MKDIR_P, so we do our own 808872313efbSmrgdnl adjustment using top_builddir (which is defined more often than 808972313efbSmrgdnl MKDIR_P). 809072313efbSmrgAC_SUBST([mkdir_p], ["$MKDIR_P"])dnl 809172313efbSmrgcase $mkdir_p in 809272313efbSmrg [[\\/$]]* | ?:[[\\/]]*) ;; 809372313efbSmrg */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 809472313efbSmrgesac 809572313efbSmrg]) 8096bdcaa8d0Smrg 8097bdcaa8d0Smrg# Helper functions for option handling. -*- Autoconf -*- 8098bdcaa8d0Smrg 809972313efbSmrg# Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc. 8100bdcaa8d0Smrg# 8101bdcaa8d0Smrg# This file is free software; the Free Software Foundation 8102bdcaa8d0Smrg# gives unlimited permission to copy and/or distribute it, 8103bdcaa8d0Smrg# with or without modifications, as long as this notice is preserved. 8104bdcaa8d0Smrg 810572313efbSmrg# serial 4 8106bdcaa8d0Smrg 8107bdcaa8d0Smrg# _AM_MANGLE_OPTION(NAME) 8108bdcaa8d0Smrg# ----------------------- 8109bdcaa8d0SmrgAC_DEFUN([_AM_MANGLE_OPTION], 8110bdcaa8d0Smrg[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) 8111bdcaa8d0Smrg 8112bdcaa8d0Smrg# _AM_SET_OPTION(NAME) 8113bdcaa8d0Smrg# ------------------------------ 8114bdcaa8d0Smrg# Set option NAME. Presently that only means defining a flag for this option. 8115bdcaa8d0SmrgAC_DEFUN([_AM_SET_OPTION], 8116bdcaa8d0Smrg[m4_define(_AM_MANGLE_OPTION([$1]), 1)]) 8117bdcaa8d0Smrg 8118bdcaa8d0Smrg# _AM_SET_OPTIONS(OPTIONS) 8119bdcaa8d0Smrg# ---------------------------------- 8120bdcaa8d0Smrg# OPTIONS is a space-separated list of Automake options. 8121bdcaa8d0SmrgAC_DEFUN([_AM_SET_OPTIONS], 812272313efbSmrg[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) 8123bdcaa8d0Smrg 8124bdcaa8d0Smrg# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) 8125bdcaa8d0Smrg# ------------------------------------------- 8126bdcaa8d0Smrg# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. 8127bdcaa8d0SmrgAC_DEFUN([_AM_IF_OPTION], 8128bdcaa8d0Smrg[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) 8129bdcaa8d0Smrg 8130bdcaa8d0Smrg# Check to make sure that the build environment is sane. -*- Autoconf -*- 8131bdcaa8d0Smrg 813296ce994aSmrg# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008 8133bdcaa8d0Smrg# Free Software Foundation, Inc. 8134bdcaa8d0Smrg# 8135bdcaa8d0Smrg# This file is free software; the Free Software Foundation 8136bdcaa8d0Smrg# gives unlimited permission to copy and/or distribute it, 8137bdcaa8d0Smrg# with or without modifications, as long as this notice is preserved. 8138bdcaa8d0Smrg 813996ce994aSmrg# serial 5 8140bdcaa8d0Smrg 8141bdcaa8d0Smrg# AM_SANITY_CHECK 8142bdcaa8d0Smrg# --------------- 8143bdcaa8d0SmrgAC_DEFUN([AM_SANITY_CHECK], 8144bdcaa8d0Smrg[AC_MSG_CHECKING([whether build environment is sane]) 8145bdcaa8d0Smrg# Just in case 8146bdcaa8d0Smrgsleep 1 8147bdcaa8d0Smrgecho timestamp > conftest.file 814896ce994aSmrg# Reject unsafe characters in $srcdir or the absolute working directory 814996ce994aSmrg# name. Accept space and tab only in the latter. 815096ce994aSmrgam_lf=' 815196ce994aSmrg' 815296ce994aSmrgcase `pwd` in 815396ce994aSmrg *[[\\\"\#\$\&\'\`$am_lf]]*) 815496ce994aSmrg AC_MSG_ERROR([unsafe absolute working directory name]);; 815596ce994aSmrgesac 815696ce994aSmrgcase $srcdir in 815796ce994aSmrg *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) 815896ce994aSmrg AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);; 815996ce994aSmrgesac 816096ce994aSmrg 8161bdcaa8d0Smrg# Do `set' in a subshell so we don't clobber the current shell's 8162bdcaa8d0Smrg# arguments. Must try -L first in case configure is actually a 8163bdcaa8d0Smrg# symlink; some systems play weird games with the mod time of symlinks 8164bdcaa8d0Smrg# (eg FreeBSD returns the mod time of the symlink's containing 8165bdcaa8d0Smrg# directory). 8166bdcaa8d0Smrgif ( 816796ce994aSmrg set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 8168bdcaa8d0Smrg if test "$[*]" = "X"; then 8169bdcaa8d0Smrg # -L didn't work. 817096ce994aSmrg set X `ls -t "$srcdir/configure" conftest.file` 8171bdcaa8d0Smrg fi 8172bdcaa8d0Smrg rm -f conftest.file 8173bdcaa8d0Smrg if test "$[*]" != "X $srcdir/configure conftest.file" \ 8174bdcaa8d0Smrg && test "$[*]" != "X conftest.file $srcdir/configure"; then 8175bdcaa8d0Smrg 8176bdcaa8d0Smrg # If neither matched, then we have a broken ls. This can happen 8177bdcaa8d0Smrg # if, for instance, CONFIG_SHELL is bash and it inherits a 8178bdcaa8d0Smrg # broken ls alias from the environment. This has actually 8179bdcaa8d0Smrg # happened. Such a system could not be considered "sane". 8180bdcaa8d0Smrg AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken 8181bdcaa8d0Smrgalias in your environment]) 8182bdcaa8d0Smrg fi 8183bdcaa8d0Smrg 8184bdcaa8d0Smrg test "$[2]" = conftest.file 8185bdcaa8d0Smrg ) 8186bdcaa8d0Smrgthen 8187bdcaa8d0Smrg # Ok. 8188bdcaa8d0Smrg : 8189bdcaa8d0Smrgelse 8190bdcaa8d0Smrg AC_MSG_ERROR([newly created file is older than distributed files! 8191bdcaa8d0SmrgCheck your system clock]) 8192bdcaa8d0Smrgfi 8193bdcaa8d0SmrgAC_MSG_RESULT(yes)]) 8194bdcaa8d0Smrg 8195bdcaa8d0Smrg# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. 8196bdcaa8d0Smrg# 8197bdcaa8d0Smrg# This file is free software; the Free Software Foundation 8198bdcaa8d0Smrg# gives unlimited permission to copy and/or distribute it, 8199bdcaa8d0Smrg# with or without modifications, as long as this notice is preserved. 8200bdcaa8d0Smrg 8201bdcaa8d0Smrg# AM_PROG_INSTALL_STRIP 8202bdcaa8d0Smrg# --------------------- 8203bdcaa8d0Smrg# One issue with vendor `install' (even GNU) is that you can't 8204bdcaa8d0Smrg# specify the program used to strip binaries. This is especially 8205bdcaa8d0Smrg# annoying in cross-compiling environments, where the build's strip 8206bdcaa8d0Smrg# is unlikely to handle the host's binaries. 8207bdcaa8d0Smrg# Fortunately install-sh will honor a STRIPPROG variable, so we 8208bdcaa8d0Smrg# always use install-sh in `make install-strip', and initialize 8209bdcaa8d0Smrg# STRIPPROG with the value of the STRIP variable (set by the user). 8210bdcaa8d0SmrgAC_DEFUN([AM_PROG_INSTALL_STRIP], 8211bdcaa8d0Smrg[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl 8212bdcaa8d0Smrg# Installed binaries are usually stripped using `strip' when the user 8213bdcaa8d0Smrg# run `make install-strip'. However `strip' might not be the right 8214bdcaa8d0Smrg# tool to use in cross-compilation environments, therefore Automake 8215bdcaa8d0Smrg# will honor the `STRIP' environment variable to overrule this program. 8216bdcaa8d0Smrgdnl Don't test for $cross_compiling = yes, because it might be `maybe'. 8217bdcaa8d0Smrgif test "$cross_compiling" != no; then 8218bdcaa8d0Smrg AC_CHECK_TOOL([STRIP], [strip], :) 8219bdcaa8d0Smrgfi 822072313efbSmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 8221bdcaa8d0SmrgAC_SUBST([INSTALL_STRIP_PROGRAM])]) 8222bdcaa8d0Smrg 822396ce994aSmrg# Copyright (C) 2006, 2008 Free Software Foundation, Inc. 822472313efbSmrg# 822572313efbSmrg# This file is free software; the Free Software Foundation 822672313efbSmrg# gives unlimited permission to copy and/or distribute it, 822772313efbSmrg# with or without modifications, as long as this notice is preserved. 822872313efbSmrg 822996ce994aSmrg# serial 2 823096ce994aSmrg 823172313efbSmrg# _AM_SUBST_NOTMAKE(VARIABLE) 823272313efbSmrg# --------------------------- 823372313efbSmrg# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. 823472313efbSmrg# This macro is traced by Automake. 823572313efbSmrgAC_DEFUN([_AM_SUBST_NOTMAKE]) 823672313efbSmrg 823796ce994aSmrg# AM_SUBST_NOTMAKE(VARIABLE) 823896ce994aSmrg# --------------------------- 823996ce994aSmrg# Public sister of _AM_SUBST_NOTMAKE. 824096ce994aSmrgAC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) 824196ce994aSmrg 8242bdcaa8d0Smrg# Check how to create a tarball. -*- Autoconf -*- 8243bdcaa8d0Smrg 8244bdcaa8d0Smrg# Copyright (C) 2004, 2005 Free Software Foundation, Inc. 8245bdcaa8d0Smrg# 8246bdcaa8d0Smrg# This file is free software; the Free Software Foundation 8247bdcaa8d0Smrg# gives unlimited permission to copy and/or distribute it, 8248bdcaa8d0Smrg# with or without modifications, as long as this notice is preserved. 8249bdcaa8d0Smrg 8250bdcaa8d0Smrg# serial 2 8251bdcaa8d0Smrg 8252bdcaa8d0Smrg# _AM_PROG_TAR(FORMAT) 8253bdcaa8d0Smrg# -------------------- 8254bdcaa8d0Smrg# Check how to create a tarball in format FORMAT. 8255bdcaa8d0Smrg# FORMAT should be one of `v7', `ustar', or `pax'. 8256bdcaa8d0Smrg# 8257bdcaa8d0Smrg# Substitute a variable $(am__tar) that is a command 8258bdcaa8d0Smrg# writing to stdout a FORMAT-tarball containing the directory 8259bdcaa8d0Smrg# $tardir. 8260bdcaa8d0Smrg# tardir=directory && $(am__tar) > result.tar 8261bdcaa8d0Smrg# 8262bdcaa8d0Smrg# Substitute a variable $(am__untar) that extract such 8263bdcaa8d0Smrg# a tarball read from stdin. 8264bdcaa8d0Smrg# $(am__untar) < result.tar 8265bdcaa8d0SmrgAC_DEFUN([_AM_PROG_TAR], 8266bdcaa8d0Smrg[# Always define AMTAR for backward compatibility. 8267bdcaa8d0SmrgAM_MISSING_PROG([AMTAR], [tar]) 8268bdcaa8d0Smrgm4_if([$1], [v7], 8269bdcaa8d0Smrg [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'], 8270bdcaa8d0Smrg [m4_case([$1], [ustar],, [pax],, 8271bdcaa8d0Smrg [m4_fatal([Unknown tar format])]) 8272bdcaa8d0SmrgAC_MSG_CHECKING([how to create a $1 tar archive]) 8273bdcaa8d0Smrg# Loop over all known methods to create a tar archive until one works. 8274bdcaa8d0Smrg_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' 8275bdcaa8d0Smrg_am_tools=${am_cv_prog_tar_$1-$_am_tools} 8276bdcaa8d0Smrg# Do not fold the above two line into one, because Tru64 sh and 8277bdcaa8d0Smrg# Solaris sh will not grok spaces in the rhs of `-'. 8278bdcaa8d0Smrgfor _am_tool in $_am_tools 8279bdcaa8d0Smrgdo 8280bdcaa8d0Smrg case $_am_tool in 8281bdcaa8d0Smrg gnutar) 8282bdcaa8d0Smrg for _am_tar in tar gnutar gtar; 8283bdcaa8d0Smrg do 8284bdcaa8d0Smrg AM_RUN_LOG([$_am_tar --version]) && break 8285bdcaa8d0Smrg done 8286bdcaa8d0Smrg am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' 8287bdcaa8d0Smrg am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' 8288bdcaa8d0Smrg am__untar="$_am_tar -xf -" 8289bdcaa8d0Smrg ;; 8290bdcaa8d0Smrg plaintar) 8291bdcaa8d0Smrg # Must skip GNU tar: if it does not support --format= it doesn't create 8292bdcaa8d0Smrg # ustar tarball either. 8293bdcaa8d0Smrg (tar --version) >/dev/null 2>&1 && continue 8294bdcaa8d0Smrg am__tar='tar chf - "$$tardir"' 8295bdcaa8d0Smrg am__tar_='tar chf - "$tardir"' 8296bdcaa8d0Smrg am__untar='tar xf -' 8297bdcaa8d0Smrg ;; 8298bdcaa8d0Smrg pax) 8299bdcaa8d0Smrg am__tar='pax -L -x $1 -w "$$tardir"' 8300bdcaa8d0Smrg am__tar_='pax -L -x $1 -w "$tardir"' 8301bdcaa8d0Smrg am__untar='pax -r' 8302bdcaa8d0Smrg ;; 8303bdcaa8d0Smrg cpio) 8304bdcaa8d0Smrg am__tar='find "$$tardir" -print | cpio -o -H $1 -L' 8305bdcaa8d0Smrg am__tar_='find "$tardir" -print | cpio -o -H $1 -L' 8306bdcaa8d0Smrg am__untar='cpio -i -H $1 -d' 8307bdcaa8d0Smrg ;; 8308bdcaa8d0Smrg none) 8309bdcaa8d0Smrg am__tar=false 8310bdcaa8d0Smrg am__tar_=false 8311bdcaa8d0Smrg am__untar=false 8312bdcaa8d0Smrg ;; 8313bdcaa8d0Smrg esac 8314bdcaa8d0Smrg 8315bdcaa8d0Smrg # If the value was cached, stop now. We just wanted to have am__tar 8316bdcaa8d0Smrg # and am__untar set. 8317bdcaa8d0Smrg test -n "${am_cv_prog_tar_$1}" && break 8318bdcaa8d0Smrg 8319bdcaa8d0Smrg # tar/untar a dummy directory, and stop if the command works 8320bdcaa8d0Smrg rm -rf conftest.dir 8321bdcaa8d0Smrg mkdir conftest.dir 8322bdcaa8d0Smrg echo GrepMe > conftest.dir/file 8323bdcaa8d0Smrg AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) 8324bdcaa8d0Smrg rm -rf conftest.dir 8325bdcaa8d0Smrg if test -s conftest.tar; then 8326bdcaa8d0Smrg AM_RUN_LOG([$am__untar <conftest.tar]) 8327bdcaa8d0Smrg grep GrepMe conftest.dir/file >/dev/null 2>&1 && break 8328bdcaa8d0Smrg fi 8329bdcaa8d0Smrgdone 8330bdcaa8d0Smrgrm -rf conftest.dir 8331bdcaa8d0Smrg 8332bdcaa8d0SmrgAC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) 8333bdcaa8d0SmrgAC_MSG_RESULT([$am_cv_prog_tar_$1])]) 8334bdcaa8d0SmrgAC_SUBST([am__tar]) 8335bdcaa8d0SmrgAC_SUBST([am__untar]) 8336bdcaa8d0Smrg]) # _AM_PROG_TAR 8337bdcaa8d0Smrg 833896ce994aSmrgdnl Copyright 2005 Red Hat, Inc 833996ce994aSmrgdnl 834096ce994aSmrgdnl Permission to use, copy, modify, distribute, and sell this software and its 834196ce994aSmrgdnl documentation for any purpose is hereby granted without fee, provided that 834296ce994aSmrgdnl the above copyright notice appear in all copies and that both that 834396ce994aSmrgdnl copyright notice and this permission notice appear in supporting 834496ce994aSmrgdnl documentation. 834596ce994aSmrgdnl 834696ce994aSmrgdnl The above copyright notice and this permission notice shall be included 834796ce994aSmrgdnl in all copies or substantial portions of the Software. 834896ce994aSmrgdnl 834996ce994aSmrgdnl THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 835096ce994aSmrgdnl OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 835196ce994aSmrgdnl MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 835296ce994aSmrgdnl IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR 835396ce994aSmrgdnl OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 835496ce994aSmrgdnl ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 835596ce994aSmrgdnl OTHER DEALINGS IN THE SOFTWARE. 835696ce994aSmrgdnl 835796ce994aSmrgdnl Except as contained in this notice, the name of the copyright holders shall 835896ce994aSmrgdnl not be used in advertising or otherwise to promote the sale, use or 835996ce994aSmrgdnl other dealings in this Software without prior written authorization 836096ce994aSmrgdnl from the copyright holders. 836196ce994aSmrgdnl 836296ce994aSmrg 836396ce994aSmrg# XORG_DRIVER_CHECK_EXT() 836496ce994aSmrg# -------------------------- 836596ce994aSmrg# Checks for the $1 define in xorg-server.h (from the sdk). If it 836696ce994aSmrg# is defined, then add $1 to $REQUIRED_MODULES. 836796ce994aSmrg 836896ce994aSmrgAC_DEFUN([XORG_DRIVER_CHECK_EXT],[ 836996ce994aSmrg SAVE_CFLAGS="$CFLAGS" 837096ce994aSmrg CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`" 837196ce994aSmrg AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ 837296ce994aSmrg#include "xorg-server.h" 837396ce994aSmrg#if !defined $1 837496ce994aSmrg#error $1 not defined 837596ce994aSmrg#endif 837696ce994aSmrg ]])], 837796ce994aSmrg [_EXT_CHECK=yes], 837896ce994aSmrg [_EXT_CHECK=no]) 837996ce994aSmrg CFLAGS="$SAVE_CFLAGS" 838096ce994aSmrg AC_MSG_CHECKING([if $1 is defined]) 838196ce994aSmrg AC_MSG_RESULT([$_EXT_CHECK]) 838296ce994aSmrg if test "$_EXT_CHECK" != no; then 838396ce994aSmrg REQUIRED_MODULES="$REQUIRED_MODULES $2" 838496ce994aSmrg fi 838596ce994aSmrg]) 838696ce994aSmrg 8387